@zync/zync-screnplay-player 0.1.187

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.
Files changed (133) hide show
  1. package/dist/ZyncScreenplayPlayer.js +35 -0
  2. package/dist/bundle.js +2 -0
  3. package/dist/bundle.js.LICENSE.txt +54 -0
  4. package/dist/index.js +4 -0
  5. package/dist/screenplay/RemotionRenderer/RemotionRenderer.js +281 -0
  6. package/dist/screenplay/RemotionRenderer/Root.js +22 -0
  7. package/dist/screenplay/RemotionRenderer/components/LottieAnimationGlobal.js +116 -0
  8. package/dist/screenplay/RemotionRenderer/components/backgrounds/VirtualBackground.js +26 -0
  9. package/dist/screenplay/RemotionRenderer/components/backgrounds/VirtualBackgroundUnderlay.js +41 -0
  10. package/dist/screenplay/RemotionRenderer/components/captions/CaptionSimple.js +12 -0
  11. package/dist/screenplay/RemotionRenderer/components/effects/BrollFullscreen.js +27 -0
  12. package/dist/screenplay/RemotionRenderer/components/effects/GlitchText.js +22 -0
  13. package/dist/screenplay/RemotionRenderer/components/effects/HandoffNametag.js +7 -0
  14. package/dist/screenplay/RemotionRenderer/components/effects/LottieAnimation.js +64 -0
  15. package/dist/screenplay/RemotionRenderer/components/effects/Nametag.js +9 -0
  16. package/dist/screenplay/RemotionRenderer/components/effects/PhraseRainbowEffect.js +34 -0
  17. package/dist/screenplay/RemotionRenderer/components/effects/Sentence.js +50 -0
  18. package/dist/screenplay/RemotionRenderer/components/effects/Title.js +12 -0
  19. package/dist/screenplay/RemotionRenderer/components/layouts/BrollGreenScreen.js +742 -0
  20. package/dist/screenplay/RemotionRenderer/components/layouts/BrollSplitScreen.js +714 -0
  21. package/dist/screenplay/RemotionRenderer/components/layouts/BrollStudioBackdrop.js +620 -0
  22. package/dist/screenplay/RemotionRenderer/components/layouts/DynamicTriangle.js +618 -0
  23. package/dist/screenplay/RemotionRenderer/components/layouts/Handoff.js +161 -0
  24. package/dist/screenplay/RemotionRenderer/components/layouts/IntroVideo.js +1330 -0
  25. package/dist/screenplay/RemotionRenderer/components/layouts/KeyPointOverlayDepth.js +397 -0
  26. package/dist/screenplay/RemotionRenderer/components/layouts/Keyword.js +539 -0
  27. package/dist/screenplay/RemotionRenderer/components/layouts/KeywordStudioBackdrop.js +714 -0
  28. package/dist/screenplay/RemotionRenderer/components/layouts/MotionStill.js +381 -0
  29. package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillFullScreen.js +178 -0
  30. package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillGreenScreen.js +568 -0
  31. package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillGreenScreenV2.js +731 -0
  32. package/dist/screenplay/RemotionRenderer/components/layouts/MotionStillStudioBackdrop.js +588 -0
  33. package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrame.js +183 -0
  34. package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrameBroll.js +181 -0
  35. package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrameSentence.js +17 -0
  36. package/dist/screenplay/RemotionRenderer/components/layouts/SimpleFrameZoomCut.js +13 -0
  37. package/dist/screenplay/RemotionRenderer/components/layouts/TextWithVideo.js +373 -0
  38. package/dist/screenplay/RemotionRenderer/components/layouts/quote-bubble-animation.json +1 -0
  39. package/dist/screenplay/RemotionRenderer/components/utils/BlurOverlay.js +19 -0
  40. package/dist/screenplay/RemotionRenderer/components/utils/ChromaKeyedVideo.js +59 -0
  41. package/dist/screenplay/RemotionRenderer/components/utils/FaceCenteredVideo.js +562 -0
  42. package/dist/screenplay/RemotionRenderer/components/utils/PausableImg.js +124 -0
  43. package/dist/screenplay/RemotionRenderer/components/utils/README.md +80 -0
  44. package/dist/screenplay/RemotionRenderer/components/utils/SafeZones.js +69 -0
  45. package/dist/screenplay/RemotionRenderer/components/utils/StretchText.js +124 -0
  46. package/dist/screenplay/RemotionRenderer/components/utils/StretchTextDemo.js +66 -0
  47. package/dist/screenplay/RemotionRenderer/config.js +8 -0
  48. package/dist/screenplay/RemotionRenderer/development.js +1370 -0
  49. package/dist/screenplay/RemotionRenderer/helpers/cleanFacemetadata.js +29 -0
  50. package/dist/screenplay/RemotionRenderer/helpers/convertToSeconds.js +14 -0
  51. package/dist/screenplay/RemotionRenderer/helpers/faceBasedVideoStyles.js +212 -0
  52. package/dist/screenplay/RemotionRenderer/helpers/faceCenteredVideoTransforms.js +468 -0
  53. package/dist/screenplay/RemotionRenderer/helpers/getContrastColor.js +15 -0
  54. package/dist/screenplay/RemotionRenderer/helpers/getVideoOrientation.js +21 -0
  55. package/dist/screenplay/RemotionRenderer/helpers/hexToRgb.js +48 -0
  56. package/dist/screenplay/RemotionRenderer/hooks/useLottieReplaceColor.js +45 -0
  57. package/dist/screenplay/RemotionRenderer/hooks/useOrientationBased.js +29 -0
  58. package/dist/screenplay/RemotionRenderer/hooks/useTimeInterpolate.js +54 -0
  59. package/dist/screenplay/RemotionRenderer/hooks/useVirtualBackground.js +38 -0
  60. package/dist/screenplay/RemotionRenderer/index.js +3 -0
  61. package/dist/screenplay/RemotionRenderer/main/lib/Sequence.js +76 -0
  62. package/dist/screenplay/RemotionRenderer/main/lib/layouts/DefaultLayout.js +72 -0
  63. package/dist/screenplay/RemotionRenderer/main/lib/layouts/DynamicTriangleLayout.js +54 -0
  64. package/dist/screenplay/RemotionRenderer/main/lib/layouts/HandoffLayout.js +50 -0
  65. package/dist/screenplay/RemotionRenderer/main/lib/layouts/IntroVideoLayout.js +33 -0
  66. package/dist/screenplay/RemotionRenderer/main/lib/layouts/KeywordLayout.js +36 -0
  67. package/dist/screenplay/RemotionRenderer/main/lib/layouts/LayoutFactory.js +68 -0
  68. package/dist/screenplay/RemotionRenderer/main/lib/layouts/MotionStillLayout.js +36 -0
  69. package/dist/screenplay/RemotionRenderer/main/lib/layouts/SimpleFrameLayout.js +43 -0
  70. package/dist/screenplay/RemotionRenderer/main/lib/layouts/TextWithVideoLayout.js +52 -0
  71. package/dist/screenplay/RemotionRenderer/main/screenplaySchema.js +92 -0
  72. package/dist/screenplay/RemotionRenderer/registeredComponents.js +91 -0
  73. package/dist/screenplay/RemotionRenderer/theme/config.js +8 -0
  74. package/dist/screenplay/RemotionRenderer/theme/hooks/useTheme.js +24 -0
  75. package/dist/screenplay/RemotionRenderer/theme/hooks/useThemedComponents.js +101 -0
  76. package/dist/screenplay/RemotionRenderer/theme/themes/bigbold/BigBoldNameTag.js +147 -0
  77. package/dist/screenplay/RemotionRenderer/theme/themes/bigbold/BigBoldSentence.js +138 -0
  78. package/dist/screenplay/RemotionRenderer/theme/themes/bigbold/BigBoldTitle.js +136 -0
  79. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionColor.js +67 -0
  80. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionColorInverse.js +67 -0
  81. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionColorShadow.js +66 -0
  82. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionElegant.js +134 -0
  83. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionEmphasis.js +122 -0
  84. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionPunctuated.js +84 -0
  85. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionWordBoom.js +88 -0
  86. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionWordBubble.js +91 -0
  87. package/dist/screenplay/RemotionRenderer/theme/themes/default/CaptionWordPopup.js +118 -0
  88. package/dist/screenplay/RemotionRenderer/theme/themes/default/DefaultCaption.js +62 -0
  89. package/dist/screenplay/RemotionRenderer/theme/themes/default/HandoffNametag/handoffNametagConfig.js +59 -0
  90. package/dist/screenplay/RemotionRenderer/theme/themes/default/HandoffNametag.js +173 -0
  91. package/dist/screenplay/RemotionRenderer/theme/themes/default/Nametag.js +129 -0
  92. package/dist/screenplay/RemotionRenderer/theme/themes/default/Sentence/AnimatedSentence.js +20 -0
  93. package/dist/screenplay/RemotionRenderer/theme/themes/default/Sentence/AnimatedSentenceDefault.js +29 -0
  94. package/dist/screenplay/RemotionRenderer/theme/themes/default/Sentence/SentenceSimple.helpers.js +61 -0
  95. package/dist/screenplay/RemotionRenderer/theme/themes/default/Sentence.js +86 -0
  96. package/dist/screenplay/RemotionRenderer/theme/themes/default/Title.js +112 -0
  97. package/dist/screenplay/RemotionRenderer/theme/themes/default/constants.js +1 -0
  98. package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/Nametag.js +134 -0
  99. package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/Sentence.js +49 -0
  100. package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/Title.js +108 -0
  101. package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/animations.js +30 -0
  102. package/dist/screenplay/RemotionRenderer/theme/themes/glassmorphism/config.js +9 -0
  103. package/dist/screenplay/RemotionRenderer/theme/themes/glitch/GlitchNametag.js +252 -0
  104. package/dist/screenplay/RemotionRenderer/theme/themes/glitch/GlitchSentence.js +156 -0
  105. package/dist/screenplay/RemotionRenderer/theme/themes/glitch/GlitchTitle.js +142 -0
  106. package/dist/screenplay/RemotionRenderer/theme/themes/glitch/components/DisplacedText.js +66 -0
  107. package/dist/screenplay/RemotionRenderer/theme/themes/glitch/components/GlitchAnimatedLine.js +38 -0
  108. package/dist/screenplay/RemotionRenderer/theme/themes/glitch/components/SplitSentence.js +80 -0
  109. package/dist/screenplay/RemotionRenderer/theme/themes/glitch/helpers.js +32 -0
  110. package/dist/screenplay/RemotionRenderer/theme/themes/none/Nametag.js +3 -0
  111. package/dist/screenplay/RemotionRenderer/theme/themes/none/Title.js +3 -0
  112. package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/PushPullNametag.js +165 -0
  113. package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/PushPullSentence.js +94 -0
  114. package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/PushPullTitle.js +98 -0
  115. package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/designs/sentence.js +92 -0
  116. package/dist/screenplay/RemotionRenderer/theme/themes/pushpull/designs/title.js +119 -0
  117. package/dist/screenplay/RemotionRenderer/theme/themes/sports/Nametag.js +122 -0
  118. package/dist/screenplay/RemotionRenderer/theme/themes/sports/SportsCaption.js +93 -0
  119. package/dist/screenplay/RemotionRenderer/theme/themes/sports/SportsSentence.js +76 -0
  120. package/dist/screenplay/RemotionRenderer/theme/themes/sports/Title.js +90 -0
  121. package/dist/screenplay/RemotionRenderer/theme/themes/sports/shared.js +62 -0
  122. package/dist/screenplay/RemotionRenderer/theme/themes/sportsbounce/Nametag.js +145 -0
  123. package/dist/screenplay/RemotionRenderer/theme/themes/sportsbounce/SportsBounceSentence.js +148 -0
  124. package/dist/screenplay/RemotionRenderer/theme/themes/sportsbounce/Title.js +160 -0
  125. package/dist/screenplay/RemotionRenderer/tracks/AudioTrack.js +23 -0
  126. package/dist/screenplay/RemotionRenderer/tracks/CaptionsVideoTrack.js +23 -0
  127. package/dist/screenplay/RemotionRenderer/tracks/DynamicVideoComposition.js +31 -0
  128. package/dist/screenplay/RemotionRenderer/tracks/EffectsVideoTrack.js +23 -0
  129. package/dist/screenplay/RemotionRenderer/tracks/LayoutVideoTrack.js +141 -0
  130. package/dist/screenplay/RemotionRenderer/tracks/Soundtrack.js +16 -0
  131. package/dist/screenplay/RemotionRenderer/tracks/Watermark.js +23 -0
  132. package/dist/screenplay/RemotionRenderer/tracks/transitions/GlitchOne.js +92 -0
  133. package/package.json +45 -0
package/dist/bundle.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see bundle.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ZyncScreenplayPlayer=t():e.ZyncScreenplayPlayer=t()}(this,(()=>(()=>{var __webpack_modules__={192:(e,t,r)=>{"use strict";var n=r(696),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},403:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var x=b.prototype=new v;x.constructor=b,m(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,U={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:U.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var F=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return a=a(l=e),e=""===o?"."+P(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(F,"$&/")+"/"),T(a,t,i,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(F,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+P(s=e[c],c);l+=T(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,u=o+P(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function _(e,t,r){if(null==e)return e;var n=[],i=0;return T(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},A={transition:null},R={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:A,ReactCurrentOwner:U};function V(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:_,forEach:function(e,t,r){_(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=V,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=U.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=V,t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,r){return M.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,r){return M.current.useReducer(e,t,r)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return M.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return M.current.useTransition()},t.version="18.3.1"},696:(e,t,r)=>{"use strict";e.exports=r(403)},159:(e,t,r)=>{"use strict";e.exports=r(192)},891:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(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,n,i=e.length;for(r=0;r<i;r+=1)for(var o in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(t.prototype[o]=n[o])}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,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=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,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var 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),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}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,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<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}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,i,o,a,s,l,c,u;switch(l=r*(1-t),c=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=r*(1-(1-s)*t),a%6){case 0:n=r,i=u,o=l;break;case 1:n=c,i=r,o=l;break;case 2:n=l,i=r,o=u;break;case 3:n=l,i=c,o=r;break;case 4:n=u,i=l,o=r;break;case 5:n=r,i=l,o=c}return[n,i,o]}function RGBtoHSV(e,t,r){var n,i=Math.max(e,t,r),o=Math.min(e,t,r),a=i-o,s=0===i?0:a/i,l=i/255;switch(i){case o:n=0;break;case e:n=t-r+a*(t<r?6:0),n/=6*a;break;case t:n=r-e+2*a,n/=6*a;break;case r:n=e-t+4*a,n/=6*a}return[n,s,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,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};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,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,i}((function(e){if(o.dataManager||(o.dataManager=function(){function e(i,o){var a,s,l,c,u,d,p=i.length;for(s=0;s<p;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(c=h.length,l=0;l<c;l+=1)if(h[l].pt.k.i)n(h[l].pt.k);else for(d=h[l].pt.k.length,u=0;u<d;u+=1)h[l].pt.k[u].s&&n(h[l].pt.k[u].s[0]),h[l].pt.k[u].e&&n(h[l].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&f(a)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){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,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;i<o;i+=1)e[t].ks.k[i].s&&n(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&n(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(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 o,a=function(){var e=[4,4,14];function t(e){var t,r,n,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(n=void 0,n=(r=e[t]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),s=(o=[4,7,99],function(e){if(e.chars&&!i(o,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,r,n=e.length;for(t=0;t<n;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 n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&t(r.assets[n].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var r,n,i,o=e.length;for(r=0;r<o;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,n=0;n<i;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].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,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var r,n,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,n=0;n<i;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,i,o,a,s,l=e.length;for(n=0;n<l;n+=1){if((r=e[n]).hasMask){var c=r.masksProperties;for(o=c.length,i=0;i<o;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(s=c[i].pt.k.length,a=0;a<s;a+=1)c[i].pt.k[a].s&&(c[i].pt.k[a].s[0].c=c[i].cl),c[i].pt.k[a].e&&(c[i].pt.k[a].e[0].c=c[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();function f(e){0===e.t.a.length&&e.t.p}var d={completeData:function(r){r.__complete||(c(r),a(r),s(r),l(r),u(r),e(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,n),e(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return d.checkColors=c,d.checkChars=s,d.checkPathProperties=l,d.checkShapes=u,d.completeLayers=e,d}()),o.assetLoader||(o.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,n,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),n(o);else try{o=e(a),n(o)}catch(e){i&&i(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,(function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){o.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=n[r];n[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(r+=1);return n[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,n){a();var i=s(r,n);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 n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=t+i}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},r=n(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 a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;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=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:t};return o},createImageData:function(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.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 o={img:i,assetData:t};return o},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)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](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,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=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"),n={},i=0,o=0;o<r.length;o+=1)2===(t=r[o].split(":")).length&&(n[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var i=t[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[n].cm)}catch(r){try{o.payload=e(t[n].cm)}catch(e){o.payload={name:t[n].cm}}}r.push(o)}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 getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}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),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||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},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,o=e.layers,a=o.length;for(r=0;r<a;r+=1)for(t=0;t<i;){if(n[t].id===o[r].id){n[t]=o[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(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},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.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),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 n=Number(e);if(isNaN(n)){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 n=Number(e);if(isNaN(n)){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(n,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,n=e.length;for(r=0;r<n;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.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-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,n=0,i=0,o=!0,a=!1;function s(e){for(var r=0,i=e.target;r<n;)t[r].animation===i&&(t.splice(r,1),r-=1,n-=1,i.isPaused||u()),r+=1}function l(e,r){if(!e)return null;for(var i=0;i<n;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var o=new AnimationItem;return f(o,e),o.setData(e,r),o}function c(){i+=1,h()}function u(){i-=1}function f(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",u),t.push({elem:r,animation:e}),n+=1}function d(e){var s,l=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(l);r=e,i&&!a?window.requestAnimationFrame(d):o=!0}function p(e){r=e,window.requestAnimationFrame(d)}function h(){!a&&i&&o&&(window.requestAnimationFrame(p),o=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return f(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),l(i[n],e);if(t&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var o;for(o=0;o<n;o+=1)t[o].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,h()},e.setVolume=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,i,o){var a=o||("bez_"+e+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new u([e,r,n,i]);return t[a]=s,s}},t={},r=11,n=1/(r-1),i="function"==typeof Float32Array;function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((o(t,r)*e+a(t,r))*e+s(t))*e}function c(e,t,r){return 3*o(t,r)*e*e+2*a(t,r)*e+s(t)}function u(e){this._p=e,this._mSampleValues=i?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&n===i?e:0===e?0:1===e?1:l(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<r;++i)this._mSampleValues[i]=l(i*n,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],o=this._mSampleValues,a=0,s=1,u=r-1;s!==u&&o[s]<=e;++s)a+=n;var f=a+(e-o[--s])/(o[s+1]-o[s])*n,d=c(f,t,i);return d>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var o=c(t,r,n);if(0===o)return t;t-=(l(t,r,n)-e)/o}return t}(e,f,t,i):0===d?f:function(e,t,r,n,i){var o,a,s=0;do{(o=l(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,a,a+n,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,i=e,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:t()},release:function(e){n===i&&(o=pooling.double(o),i*=2),r&&r(e),o[n]=e,n+=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,n,i,o){var a=e*n+t*i+r*o-i*n-o*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,n){var i,o,a,s,l,c,u=getDefaultCurveSegments(),f=0,d=[],p=[],h=bezierLengthPool.newElement();for(a=r.length,i=0;i<u;i+=1){for(l=i/(u-1),c=0,o=0;o<a;o+=1)s=bmPow(1-l,3)*e[o]+3*bmPow(1-l,2)*l*r[o]+3*(1-l)*bmPow(l,2)*n[o]+bmPow(l,3)*t[o],d[o]=s,null!==p[o]&&(c+=bmPow(d[o]-p[o],2)),p[o]=d[o];c&&(f+=c=bmSqrt(c)),h.percents[i]=l,h.lengths[i]=f}return h.addedLength=f,h};function n(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var o,a=(o={},function(e,r,a,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[l]){var c,u,f,d,p,h,m,g=getDefaultCurveSegments(),y=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]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new n(g);for(f=a.length,c=0;c<g;c+=1){for(m=createSizedArray(f),p=c/(g-1),h=0,u=0;u<f;u+=1)d=bmPow(1-p,3)*e[u]+3*bmPow(1-p,2)*p*(e[u]+a[u])+3*(1-p)*bmPow(p,2)*(r[u]+s[u])+bmPow(p,3)*r[u],m[u]=d,null!==v&&(h+=bmPow(m[u]-v[u],2));y+=h=bmSqrt(h),b.points[c]=new i(h,m),v=m}b.segmentLength=y,o[l]=b}return o[l]});function s(e,t){var r=t.percents,n=t.lengths,i=r.length,o=bmFloor((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===n[o])return r[o];for(var l=n[o]>a?-1:1,c=!0;c;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),c=!1):o+=l,o<0||o>=i-1){if(o===i-1)return r[o];c=!1}return r[o]+(r[o+1]-r[o])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,l=e._length,c=n.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=r(o[t],o[t+1],a[t],s[t+1]),u+=c[t].addedLength;return i&&l&&(c[t]=r(o[t],o[0],a[t],s[0]),u+=c[t].addedLength),n.totalLength=u,n},getNewSegment:function(t,r,n,i,o,a,c){o<0?o=0:o>1&&(o=1);var u,f=s(o,c),d=s(a=a>1?1:a,c),p=t.length,h=1-f,m=1-d,g=h*h*h,y=f*h*h*3,v=f*f*h*3,b=f*f*f,x=h*h*m,w=f*h*m+h*f*m+h*h*d,E=f*f*m+h*f*d+f*h*d,U=f*f*d,S=h*m*m,k=f*m*m+h*d*m+h*m*d,C=f*d*m+h*d*d+f*m*d,F=f*d*d,P=m*m*m,T=d*m*m+m*d*m+m*m*d,_=d*d*m+m*d*d+d*m*d,I=d*d*d;for(u=0;u<p;u+=1)l[4*u]=e.round(1e3*(g*t[u]+y*n[u]+v*i[u]+b*r[u]))/1e3,l[4*u+1]=e.round(1e3*(x*t[u]+w*n[u]+E*i[u]+U*r[u]))/1e3,l[4*u+2]=e.round(1e3*(S*t[u]+k*n[u]+C*i[u]+F*r[u]))/1e3,l[4*u+3]=e.round(1e3*(P*t[u]+T*n[u]+_*i[u]+I*r[u]))/1e3;return l},getPointInSegment:function(t,r,n,i,o,a){var l=s(o,a),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*n[0]+(l*l*c+c*l*l+l*c*l)*i[0]+l*l*l*r[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*n[1]+(l*l*c+c*l*l+l*c*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,n,i,o,a,s,l,c,u){if(0===i&&0===s&&0===u)return t(r,n,o,a,l,c);var f,d=e.sqrt(e.pow(o-r,2)+e.pow(a-n,2)+e.pow(s-i,2)),p=e.sqrt(e.pow(l-r,2)+e.pow(c-n,2)+e.pow(u-i,2)),h=e.sqrt(e.pow(l-o,2)+e.pow(c-a,2)+e.pow(u-s,2));return(f=d>p?d>h?d-p-h:h-p-d:h>p?h-p-d:p-d-h)>-1e-4&&f<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,o,a,s,l,c,u,f,d,p=t.lastIndex,h=p,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[h],o=this.keyframes[h+1],h===m-1&&e>=o.t-n){i.h&&(i=o),p=0;break}if(o.t-n>e){p=h;break}h<m-1?h+=1:(p=0,g=!1)}a=this.keyframesMetadata[h]||{};var y,v=o.t-n,b=i.t-n;if(i.to){a.bezierData||(a.bezierData=bez.buildBezierData(i.s,o.s||i.e,i.to,i.ti));var x=a.bezierData;if(e>=v||e<b){var w=e>=v?x.points.length-1:0;for(l=x.points[w].point.length,s=0;s<l;s+=1)r[s]=x.points[w].point[s]}else{a.__fnct?d=a.__fnct:(d=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=d),c=d((e-b)/(v-b));var E,U=x.segmentLength*c,S=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastAddedLength:0;for(f=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastPoint:0,g=!0,u=x.points.length;g;){if(S+=x.points[f].partialLength,0===U||0===c||f===x.points.length-1){for(l=x.points[f].point.length,s=0;s<l;s+=1)r[s]=x.points[f].point[s];break}if(U>=S&&U<S+x.points[f+1].partialLength){for(E=(U-S)/x.points[f+1].partialLength,l=x.points[f].point.length,s=0;s<l;s+=1)r[s]=x.points[f].point[s]+(x.points[f+1].point[s]-x.points[f].point[s])*E;break}f<u-1?f+=1:g=!1}t._lastPoint=f,t._lastAddedLength=S-x.points[f].partialLength,t._lastKeyframeIndex=h}}else{var k,C,F,P,T;if(m=i.s.length,y=o.s||i.e,this.sh&&1!==i.h)e>=v?(r[0]=y[0],r[1]=y[1],r[2]=y[2]):e<=b?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(y),(e-b)/(v-b)));else for(h=0;h<m;h+=1)1!==i.h&&(e>=v?c=1:e<b?c=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[h]?d=a.__fnct[h]:(k=void 0===i.o.x[h]?i.o.x[0]:i.o.x[h],C=void 0===i.o.y[h]?i.o.y[0]:i.o.y[h],F=void 0===i.i.x[h]?i.i.x[0]:i.i.x[h],P=void 0===i.i.y[h]?i.i.y[0]:i.i.y[h],d=BezierFactory.getBezierEasing(k,C,F,P).get,a.__fnct[h]=d)):a.__fnct?d=a.__fnct:(k=i.o.x,C=i.o.y,F=i.i.x,P=i.i.y,d=BezierFactory.getBezierEasing(k,C,F,P).get,i.keyframeMetadata=d),c=d((e-b)/(v-b)))),y=o.s||i.e,T=1===i.h?i.s[h]:i.s[h]+(y[h]-i.s[h])*c,"multidimensional"===this.propType?r[h]=T:r=T}return t.lastIndex=p,r}function slerp(e,t,r){var n,i,o,a,s,l=[],c=e[0],u=e[1],f=e[2],d=e[3],p=t[0],h=t[1],m=t[2],g=t[3];return(i=c*p+u*h+f*m+d*g)<0&&(i=-i,p=-p,h=-h,m=-m,g=-g),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/o):(a=1-r,s=r),l[0]=a*c+s*p,l[1]=a*u+s*h,l[2]=a*f+s*m,l[3]=a*d+s*g,l}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i),s=Math.asin(2*r*n+2*i*o),l=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(n/2);return[s*l*a+i*o*c,s*o*a+i*l*c,i*l*a-s*o*c,i*o*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);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 addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){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=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var i;this.propType="multidimensional";var o,a,s,l,c=t.k.length;for(i=0;i<c-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(o=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,l=t.k[i].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,i){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,n,i);else switch(r){case 0:o=new KeyframedValueProperty(e,t,n,i);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,n,i)}else o=new ValueProperty(e,t,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}};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,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=e,o[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};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(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;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 n,i,o,a,s,l,c,u,f,d=r.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)n=p[0].s[0],o=!0,d=0;else if(e>=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],o=!0;else{for(var h,m,g,y=d,v=p.length-1,b=!0;b&&(h=p[y],!((m=p[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},d=y,!(o=1===h.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<h.t-this.offsetTime)u=0;else{var x;g.__fnct?x=g.__fnct:(x=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,g.__fnct=x),u=x((e-(h.t-this.offsetTime))/(m.t-this.offsetTime-(h.t-this.offsetTime)))}i=m.s?m.s[0]:h.e[0]}n=h.s[0]}for(l=t._length,c=n.i[0].length,r.lastIndex=d,a=0;a<l;a+=1)for(s=0;s<c;s+=1)f=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*u,t.i[a][s]=f,f=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*u,t.o[a][s]=f,f=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*u,t.v[a][s]=f}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;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 o(){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 a(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=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,l.prototype.getValue=o,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=s;var c=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:n,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],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-i,a.v[1][0]=o?t+n:t-n,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+i,a.v[3][0]=o?t-n:t+n,a.v[3][1]=r,a.i[0][0]=o?t-n*e:t+n*e,a.i[0][1]=r-i,a.i[1][0]=o?t+n:t-n,a.i[1][1]=r-i*e,a.i[2][0]=o?t+n*e:t-n*e,a.i[2][1]=r+i,a.i[3][0]=o?t-n:t+n,a.i[3][1]=r+i*e,a.o[0][0]=o?t+n*e:t-n*e,a.o[0][1]=r-i,a.o[1][0]=o?t+n:t-n,a.o[1][1]=r+i*e,a.o[2][0]=o?t-n*e:t+n*e,a.o[2][1]=r+i,a.o[3][0]=o?t-n:t+n,a.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=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:n,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,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,f=2*Math.PI*s/(2*i),d=2*Math.PI*l/(2*i),p=-Math.PI/2;p+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=a?c:u,n=a?f:d;var m=(t=a?s:l)*Math.cos(p),g=t*Math.sin(p),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*n*r*h,g-v*n*r*h,m+y*n*r*h,g+v*n*r*h,e,!0),a=!a,p+=o*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=n*Math.cos(a),c=n*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),f=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*o*i*s,c-f*o*i*s,l+u*o*i*s,c+f*o*i*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),f=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,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+i,e+r,t-n+o,0,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-o,e+r,t+n-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+n,e+r-i,t+n,e+r-o,t+n,2,!0),this.v.setTripleAt(e-r+i,t+n,e-r+o,t+n,e-r+i,t+n,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-i,e-r,t+n-o,4,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+o,e-r,t-n+i,5,!0),this.v.setTripleAt(e-r+i,t-n,e-r+i,t-n,e-r+o,t-n,6,!0),this.v.setTripleAt(e+r-i,t-n,e+r-o,t-n,e+r-i,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+o,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+o,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+o,e+r,t-n+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-n,e+r-i,t-n,e+r-o,t-n,1,!0),this.v.setTripleAt(e-r+i,t-n,e-r+o,t-n,e-r+i,t-n,2,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+i,e-r,t-n+o,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-o,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r+i,t+n,e-r+i,t+n,e-r+o,t+n,5,!0),this.v.setTripleAt(e+r-i,t+n,e+r-o,t+n,e+r-i,t+n,6,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-i,e+r,t+n-o,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+o,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-o,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-o,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),d={getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new a(e,t,r):5===r?n=new f(e,t):6===r?n=new c(e,t):7===r&&(n=new u(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return d}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=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 o(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function l(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(r(e),r(t))}function f(n,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,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 p(e,t,r,n,i,o,a,s,l,c,u,f,d,p,h,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=f,this.props[12]=d,this.props[13]=p,this.props[14]=h,this.props[15]=m,this}function h(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 m(e,t,r,n,i,o,a,s,l,c,u,f,d,p,h,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===l&&0===c&&1===u&&0===f)return g[12]=g[12]*e+g[15]*d,g[13]=g[13]*o+g[15]*p,g[14]=g[14]*u+g[15]*h,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],w=g[4],E=g[5],U=g[6],S=g[7],k=g[8],C=g[9],F=g[10],P=g[11],T=g[12],_=g[13],I=g[14],M=g[15];return g[0]=y*e+v*i+b*l+x*d,g[1]=y*t+v*o+b*c+x*p,g[2]=y*r+v*a+b*u+x*h,g[3]=y*n+v*s+b*f+x*m,g[4]=w*e+E*i+U*l+S*d,g[5]=w*t+E*o+U*c+S*p,g[6]=w*r+E*a+U*u+S*h,g[7]=w*n+E*s+U*f+S*m,g[8]=k*e+C*i+F*l+P*d,g[9]=k*t+C*o+F*c+P*p,g[10]=k*r+C*a+F*u+P*h,g[11]=k*n+C*s+F*f+P*m,g[12]=T*e+_*i+I*l+M*d,g[13]=T*t+_*o+I*c+M*p,g[14]=T*r+_*a+I*u+M*h,g[15]=T*n+_*s+I*f+M*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.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])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(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 E(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function U(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function S(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function k(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function C(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function F(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=C(e[t]);return n}function P(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];n[0]=e[0]*i+e[1]*a+l,n[1]=e[0]*o+e[1]*s+c,n[2]=t[0]*i+t[1]*a+l,n[3]=t[0]*o+t[1]*s+c,n[4]=r[0]*i+r[1]*a+l,n[5]=r[0]*o+r[1]*s+c}return n}function T(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 _(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 I(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(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?n(1e4*e)/1e4:e}function A(){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=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=f,this.shear=c,this.scale=d,this.setTransform=p,this.translate=h,this.transform=m,this.multiply=g,this.applyToPoint=w,this.applyToX=E,this.applyToY=U,this.applyToZ=S,this.applyToPointArray=T,this.applyToTriplePoints=P,this.applyToPointStringified=_,this.toCSS=I,this.to2dCSS=A,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=F,this.inversePoint=C,this.getInverseMatrix=k,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={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),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);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}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 n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},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,n,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,l=[],c=o.length;for(a=0;a<c;a+=1){var u,f;(s=o[a]).e*i<n||s.s*i>n+r||(u=s.s*i<=n?0:(s.s*i-n)/r,f=s.e*i>=n+r?1:(s.e*i-n)/r,l.push([u,f]))}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,n,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=r,r=a}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 s,l,c,u,f,d=this.shapes.length,p=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 h,m,g=[];for(i=0;i<d;i+=1)if((h=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(n=h.shape.paths)._length,f=0,!h.shape._mdf&&h.pathsData.length)f=h.totalShapeLength;else{for(c=this.releasePathsData(h.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(n.shapes[s]),c.push(u),f+=u.totalLength;h.totalShapeLength=f,h.pathsData=c}p+=f,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var y,v=t,b=r,x=0;for(i=d-1;i>=0;i-=1)if((h=this.shapes[i]).shape._mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(t,r,h.totalShapeLength,x,p),x+=h.totalShapeLength):y=[[v,b]],l=y.length,s=0;s<l;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:h.totalShapeLength*v,e:h.totalShapeLength*b}):v>=1?g.push({s:h.totalShapeLength*(v-1),e:h.totalShapeLength*(b-1)}):(g.push({s:h.totalShapeLength*v,e:h.totalShapeLength}),g.push({s:0,e:h.totalShapeLength*(b-1)}));var w=this.addShapes(h,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var E=w.pop();this.addPaths(w,m),w=this.addShapes(h,g[1],E)}else this.addPaths(w,m),w=this.addShapes(h,g[1]);this.addPaths(w,m)}}h.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&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 n,i,o,a,s,l,c,u,f=e.pathsData,d=e.shape.paths.shapes,p=e.shape.paths._length,h=0,m=[],g=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<p;n+=1){for(l=f[n].lengths,r.c=d[n].c,o=d[n].c?l.length:l.length+1,i=1;i<o;i+=1)if(h+(a=l[i-1]).addedLength<t.s)h+=a.addedLength,r.c=!1;else{if(h>t.e){r.c=!1;break}t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(d[n].v[i-1],d[n].o[i-1],d[n].i[i],d[n].v[i],r,s,g),g=!1):(c=bez.getNewSegment(d[n].v[i-1],d[n].v[i],d[n].o[i-1],d[n].i[i],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1),h+=a.addedLength,s+=1}if(d[n].c&&l.length){if(a=l[i-1],h<=t.e){var y=l[i-1].addedLength;t.s<=h&&t.e>=h+y?(this.addSegment(d[n].v[i-1],d[n].o[i-1],d[n].i[0],d[n].v[0],r,s,g),g=!1):(c=bez.getNewSegment(d[n].v[i-1],d[n].v[0],d[n].o[i-1],d[n].i[0],(t.s-h)/y,(t.e-h)/y,l[i-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1)}else r.c=!1;h+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),h>t.e)break;n<p-1&&(r=shapePool.newElement(),g=!0,m.push(r),s=0)}return m},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,n=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)n[0]+=e.v[o][0],n[1]+=e.v[o][1];n[0]/=i,n[1]/=i;var a,s,l,c,u,f,d=shapePool.newElement();for(d.c=e.c,o=0;o<i;o+=1)a=e.v[o][0]+(n[0]-e.v[o][0])*r,s=e.v[o][1]+(n[1]-e.v[o][1])*r,l=e.o[o][0]+(n[0]-e.o[o][0])*-r,c=e.o[o][1]+(n[1]-e.o[o][1])*-r,u=e.i[o][0]+(n[0]-e.i[o][0])*-r,f=e.i[o][1]+(n[1]-e.i[o][1])*-r,d.setTripleAt(a,s,l,c,u,f,o);return d},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],l));o.shape.paths=o.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 n,i=t.or.k.length;for(n=0;n<i;n+=1)t.or.k[n].to=null,t.or.k[n].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 n,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?(n=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?(n=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)):(n=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){n=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[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.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],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,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var o=Math.sqrt(n)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],n[0]),a=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,i,o){if(boxIntersect(e,t))if(r>=o||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)i.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,n,i,o),intersectsImpl(a[0],s[1],r+1,n,i,o),intersectsImpl(a[1],s[0],r+1,n,i,o),intersectsImpl(a[1],s[1],r+1,n,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],l=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,o,a){var s=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*n*i,u=t[1]-Math.sin(r)*n*i;e.setTripleAt(c,u,c+Math.cos(s)*o,u-Math.sin(s)*o,c+Math.cos(l)*a,u-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,o,a){var s=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[0===r?t._length-1:r-1],u=t.v[(r+1)%t._length],f=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,d=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],s,a,n,d/(2*(i+1)),f/(2*(i+1)),o)}function zigZagSegment(e,t,r,n,i,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,o,r,l/(2*(n+1)),l/(2*(n+1)),i),o=-o}return o}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,i,o,a,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],n=l[1],i=(l=linearOffset(e.points[1],e.points[2],t))[0],o=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(r,n,i,o);null===c&&(c=n);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(r,c,u,s)}function joinLines(e,t,r,n,i){var o=t.points[3],a=r.points[0];if(3===n)return o;if(pointEqual(o,a))return o;if(2===n){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=c?pointDistance(c,o):pointDistance(o,a)/2,f=polarOffset(o,s,2*u*roundCorner);return e.setXYAt(f[0],f[1],"o",e.length()-1),f=polarOffset(a,l,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],f[0],f[1],e.length()),a}var d=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return d&&pointDistance(d,o)<i?(e.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],e.length()),d):o}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(r[e.length-1]=e[e.length-1].split(i[0])[0],n[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(i=e.split(a[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":n="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:n,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,n,i,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),l=n.s.v[1]+(1-n.s.v[1])*(1-i);e.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*a*i),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/s:s,o?1/l:l),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,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,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,i,o,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<l,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var u=this.elemsData[n].it,f=u[u.length-1];0!==f.transform.op.v?(f.transform.op._mdf=!0,f.transform.op.v=0):f.transform.op._mdf=!1}o+=1}this._currentCopies=l;var d=this.o.v,p=d%1,h=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(d>0){for(;x<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),x+=p)}else if(d<0){for(;x>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),x-=p)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(r=(t=this.elemsData[n].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)*(n/(this._currentCopies-1)),0!==x){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<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,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,n+=i;return a},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,n=shapePool.newElement();n.c=e.c;var i,o,a,s,l,c,u,f,d,p,h,m,g=e._length,y=0;for(r=0;r<g;r+=1)i=e.v[r],a=e.o[r],o=e.i[r],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=h=i[0]+(s[0]-i[0])*c,f=m=i[1]-(i[1]-s[1])*c,d=u-(u-i[0])*roundCorner,p=f-(f-i[1])*roundCorner,n.setTripleAt(u,f,d,p,h,m,y),y+=1,s=r===g-1?e.v[0]:e.v[r+1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=d=i[0]+(s[0]-i[0])*c,f=p=i[1]+(s[1]-i[1])*c,h=u-(u-i[0])*roundCorner,m=f-(f-i[1])*roundCorner,n.setTripleAt(u,f,d,p,h,m,y),y+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],y),y+=1):(n.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],y),y+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),o=lerpPoint(r,n,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,n,a);for(var l=0;l<i;l+=1)a=zigZagSegment(o,s,t,r,n,-a),s=l!==i-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%i):null,zigZagCorner(o,e,l+1,t,r,n,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],l,c,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var i=shapePool.newElement();i.c=e.c;var o,a,s,l=e.length();e.c||(l-=1);var c=[];for(o=0;o<l;o+=1)s=PolynomialBezier.shapeSegment(e,o),c.push(offsetSegmentSplit(s,t));if(!e.c)for(o=l-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var u=null,f=null;for(o=0;o<c.length;o+=1){var d=c[o];for(f&&(u=joinLines(i,f,d[0],r,n)),f=d[d.length-1],a=0;a<d.length;a+=1)s=d[a],u&&pointEqual(s.points[0],u)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),u=s.points[3]}return c.length&&joinLines(i,f,c[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],l,u,c));o.shape.paths=o.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=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.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(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,i=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:n,w:i,parent:r}}function o(e,t){var r,n=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var n=a(e.substr(t,2));if(n!==r)return!1;var i=0;for(t+=2;i<5;){if((n=a(e.substr(t,2)))<917601||n>917626)return!1;i+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(r=0,n=!1;r<o;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),o+=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=o(e),e.cache={}})),void(this.fonts=e.list);var r,n=e.list,a=n.length,s=a;for(r=0;r<a;r+=1){var l,c,u=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(u=!1),u){var f=createTag("style");f.setAttribute("f-forigin",n[r].fOrigin),f.setAttribute("f-origin",n[r].origin),f.setAttribute("f-family",n[r].fFamily),f.type="text/css",f.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(f)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(n[r].fPath)&&(u=!1);if(u){var d=createTag("link");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.type="text/css",d.rel="stylesheet",d.href=n[r].fPath,document.body.appendChild(d)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)n[r].fPath===l[c].src&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",n[r].fPath),t.appendChild(p)}}}else n[r].loaded=!0,s-=1;n[r].helper=o(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===n)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,n)),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 n=this.getFontByName(t),i=e;if(!n.cache[i]){var o=n.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");n.cache[i]=(a-s)/100}else n.cache[i]=o.measureText(e)/100}return n.cache[i]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,i=n;for(e=0;e<n;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 l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},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 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,n=e.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}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 n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),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(){}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 n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],t,this);break;case 1:n=new AngleEffect(o[r],t,this);break;case 2:n=new ColorEffect(o[r],t,this);break;case 3:n=new PointEffect(o[r],t,this);break;case 4:case 7:n=new CheckboxEffect(o[r],t,this);break;case 10:n=new LayerIndexEffect(o[r],t,this);break;case 11:n=new MaskIndexEffect(o[r],t,this);break;case 5:n=new EffectsManager(o[r],t,this);break;default:n=new NoValueEffect(o[r],t,this)}n&&this.effectElements.push(n)}},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(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),i=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(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,n=this.dynamicProperties.length;for(r=0;r<n;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)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},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,n=this.layers.length;for(this.completeLayers=!0,t=n-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,n=e.length,i=this.layers.length;for(t=0;t<n;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 n=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,r):e.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(e))),o+=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 n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}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 n,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,u,f,d,p=this.masksProperties,h=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(n=0;n<a;n+=1)if(("a"!==p[n].mode&&"n"!==p[n].mode||p[n].inv||100!==p[n].o.k||p[n].o.x)&&(y="mask",v="mask"),"s"!==p[n].mode&&"i"!==p[n].mode||0!==h?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),i=createNS("path"),"n"===p[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(h+=1,i.setAttribute("fill","s"===p[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==p[n].x.k?(y="mask",v="mask",d=PropertyFactory.getProp(this.element,p[n].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(f=createNS("feMorphology")).setAttribute("operator","erode"),f.setAttribute("in","SourceGraphic"),f.setAttribute("radius","0"),u.appendChild(f),o.appendChild(u),i.setAttribute("stroke","s"===p[n].mode?"#000000":"#ffffff")):(f=null,d=null),this.storedData[n]={elem:i,x:d,expan:f,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===p[n].mode){l=m.length;var x=createNS("g");for(s=0;s<l;s+=1)x.appendChild(m[s]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+h),w.appendChild(i),o.appendChild(w),x.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+h+")"),m.length=0,m.push(x)}else m.push(i);p[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),invRect:c},this.viewData[n].prop.k||this.drawPath(p[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(y),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);h>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){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<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,a=t.length;for(r=0;r<a;r+=1)o=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[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,n=this.masksProperties.length;for(t=0;t<n;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 n,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,n=1;n<i;n+=1)o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&i>1&&(o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},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,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}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)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},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=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=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 r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,i,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),c.appendChild(u),this.globalData.defs.appendChild(r);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(f),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(f),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},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.renderLocalTransform(),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,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].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 n=0,i=e.length;n<i;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=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,n){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(n);var o,a=t.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};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 n=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",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,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,n=this.o.length/2;r<n;){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,n,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,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,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,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(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)i=createNS("stop"),n.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),l=createElementID();o.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),u.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=o,this.ost=u,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,l=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&t&&(l+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[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 n(){}function i(r,n,i){var o,a,s,l,c,u,f,d,p,h,m=n.styles.length,g=n.lvl;for(u=0;u<m;u+=1){if(l=n.sh._mdf||i,n.styles[u].lvl<g){for(d=t.reset(),p=g-n.styles[u].lvl,h=n.transformers.length-1;!l&&p>0;)l=n.transformers[h].mProps._mdf||l,p-=1,h-=1;if(l)for(p=g-n.styles[u].lvl,h=n.transformers.length-1;p>0;)d.multiply(n.transformers[h].mProps.v),p-=1,h-=1}else d=e;if(a=(f=n.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(c=f.shapes[o])&&c._length&&(s+=buildShapeString(c,c._length,c.c,d));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=l||n.styles[u]._mdf}}function o(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,r){s(e,t,r),l(0,t,r)}function s(e,t,r){var n,i,o,a,s,l=t.gf,c=t.g._hasOpacity,u=t.s.v,f=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 p=1===e.t?"x1":"cx",h="x1"===p?"y1":"cy";l.setAttribute(p,u[0]),l.setAttribute(h,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(p,u[0]),t.of.setAttribute(h,u[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(o=n.length,i=0;i<o;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(t.g._omdf||r)){var g=t.g.o;for(o=(n=t.g._collapsable?t.cst:t.ost).length,i=0;i<o;i+=1)a=n[i],t.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",f[0]),l.setAttribute("y2",f[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",f[0]),t.of.setAttribute("y2",f[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-f[0],2)+Math.pow(u[1]-f[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-f[0],2)+Math.pow(u[1]-f[1],2)));var y=Math.atan2(f[1]-u[1],f[0]-u[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,x=Math.cos(y+t.a.v)*b+u[0],w=Math.sin(y+t.a.v)*b+u[1];l.setAttribute("fx",x),l.setAttribute("fy",w),c&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",w))}}function l(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;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,n,i,o){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}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,n,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),i=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),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,n)),"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(n),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),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){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,n=this.stylesList.length;for(t=0;t<n;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,n,i,o,a){var s,l,c,u,f,d,p=[].concat(o),h=e.length-1,m=[],g=[];for(s=h;s>=0;s-=1){if((d=this.searchProcessedElement(e[s]))?t[s]=r[d-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)d?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(d)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,p,a),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(d||(t[s]=this.createTransformElement(e[s],n)),u=t[s].transform,p.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(d||(t[s]=this.createShapeElement(e[s],p,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(d?(f=t[s]).closed=!1:((f=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=f,this.shapeModifiers.push(f)),g.push(f)):"rp"===e[s].ty&&(d?(f=t[s]).closed=!0:(f=ShapeModifiers.getModifier(e[s].ty),t[s]=f,f.init(this,e,s,t),this.shapeModifiers.push(f),a=!1),g.push(f));this.addProcessedElement(e[s],s+1)}for(h=m.length,s=0;s<h;s+=1)m[s].closed=!0;for(h=g.length,s=0;s<h;s+=1)g[s].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,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},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 n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);t!==o&&this.setCurrentData(o),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,n=e.length;r<=n-1&&!(r===n-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,n=[],i=0,o=e.length,a=!1,s=!1,l="";i<o;)a=s,s=!1,t=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(i,2),a=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(n[n.length-1]+=l,a=!1):n.push(l),i+=l.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,i,o,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],f=0,d=c.m.g,p=0,h=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),x=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var E,U=e.tr/1e3*e.finalSize;if(e.sz)for(var S,k,C=!0,F=e.sz[0],P=e.sz[1];C;){S=0,y=0,r=(k=this.buildFinalText(e.t)).length,U=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<r;t+=1)E=k[t].charCodeAt(0),n=!1," "===k[t]?T=t:13!==E&&3!==E||(y=0,n=!0,S+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(k[t],b.fStyle,b.fFamily),x=n?0:s.w*e.finalSize/100):x=l.measureText(k[t],e.f,e.finalSize),y+x>F&&" "!==k[t]?(-1===T?r+=1:t=T,S+=e.finalLineHeight||1.2*e.finalSize,k.splice(t,T===t?1:0,"\r"),T=-1,y=0):(y+=x,y+=U);S+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&P<S?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=k,r=e.finalText.length,C=!1)}y=-U,x=0;var _,I=0;for(t=0;t<r;t+=1)if(n=!1,13===(E=(_=e.finalText[t]).charCodeAt(0))||3===E?(I=0,g.push(y),v=y>v?y:v,y=-2*U,i="",n=!0,m+=1):i=_,l.chars?(s=l.getCharData(_,b.fStyle,l.getFontByName(e.f).fFamily),x=n?0:s.w*e.finalSize/100):x=l.measureText(i,e.f,e.finalSize)," "===_?I+=x+U:(y+=x+U+I,I=0),u.push({l:x,an:x,add:p,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(p+=x,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(p-=x);h<=t;)u[h].an=p,u[h].ind=f,u[h].extra=x,h+=1;f+=1,p=0}}else if(3==d){if(p+=x,""===i||t===r-1){for(""===i&&(p-=x);h<=t;)u[h].an=p,u[h].ind=f,u[h].extra=x,h+=1;p=0,f+=1}}else u[f].ind=f,u[f].extra=0,f+=1;if(e.l=u,v=y>v?y:v,g.push(y),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=g;var M,A,R,V,D=c.a;a=D.length;var O=[];for(o=0;o<a;o+=1){for((M=D[o]).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),V=0,R=M.s.b,t=0;t<r;t+=1)(A=u[t]).anIndexes[o]=V,(1==R&&""!==A.val||2==R&&""!==A.val&&" "!==A.val||3==R&&(A.n||" "==A.val||t==r-1)||4==R&&(A.n||t==r-1))&&(1===M.s.rn&&O.push(V),V+=1);c.a[o].s.totalChars=V;var j,z=-1;if(1===M.s.rn)for(t=0;t<r;t+=1)z!=(A=u[t]).anIndexes[o]&&(z=A.anIndexes[o],j=O.splice(Math.floor(Math.random()*O.length),1)[0]),A.anIndexes[o]=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.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(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 n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,o,a,s).get,c=0,u=this.finalS,f=this.finalE,d=this.data.sh;if(2===d)c=l(c=f===u?n>=f?1:0:e(0,t(.5/(f-u)+(n-u)/(f-u),1)));else if(3===d)c=l(c=f===u?n>=f?0:1:1-e(0,t(.5/(f-u)+(n-u)/(f-u),1)));else if(4===d)f===u?c=0:(c=e(0,t(.5/(f-u)+(n-u)/(f-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(f===u)c=0;else{var p=f-u,h=-p/2+(n=t(e(0,n+.5-u),f-u)),m=p/2;c=Math.sqrt(1-h*h/(m*m))}c=l(c)}else 6===d?(f===u?c=0:(n=t(e(0,n+.5-u),f-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(f-u)))/2),c=l(c)):(n>=r(u)&&(c=e(0,t(n-u<0?t(f,1)-(u-n):f-n,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*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,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,r):n,rx:o.rx?i(e,o.rx,0,degToRads,r):n,ry:o.ry?i(e,o.ry,0,degToRads,r):n,sk:o.sk?i(e,o.sk,0,degToRads,r):n,sa:o.sa?i(e,o.sa,0,degToRads,r):n,s:o.s?i(e,o.s,1,.01,r):n,a:o.a?i(e,o.a,1,0,r):n,o:o.o?i(e,o.o,0,.01,r):n,p:o.p?i(e,o.p,1,0,r):n,sw:o.sw?i(e,o.sw,0,0,r):n,sc:o.sc?i(e,o.sc,1,0,r):n,fc:o.fc?i(e,o.fc,1,0,r):n,fh:o.fh?i(e,o.fh,0,0,r):n,fs:o.fs?i(e,o.fs,0,.01,r):n,fb:o.fb?i(e,o.fb,0,.01,r):n,t:o.t?i(e,o.t,0,0,r):n},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,n=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:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(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=n(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,n,i,o,a,s,l,c,u,f,d,p,h,m,g,y,v,b,x,w=this._moreOptions.alignment.v,E=this._animatorsData,U=this._textData,S=this.mHelper,k=this._renderType,C=this.renderedLetters.length,F=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=x.v;for(this._pathData.r.v&&(T=T.reverse()),a={tLength:0,segments:[]},o=T._length-1,y=0,i=0;i<o;i+=1)P=bez.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength;i=o,x.v.c&&(P=bez.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,d=0,f=1,c=0,u=!0,m=a.segments,s<0&&x.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),f=(h=m[d=m.length-1].points).length-1;s<0;)s+=h[f].partialLength,(f-=1)<0&&(f=(h=m[d-=1].points).length-1);p=(h=m[d].points)[f-1],g=(l=h[f]).partialLength}o=F.length,r=0,n=0;var _,I,M,A,R,V=1.2*e.finalSize*.714,D=!0;M=E.length;var O,j,z,B,L,N,H,W,G,$,K,J,q=-1,X=s,Z=d,Y=f,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,ie=2===e.j?-.5:-1,oe=0,ae=!0;for(i=0;i<o;i+=1)if(F[i].n){for(re&&(re+=ne);oe<i;)F[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(I=0;I<M;I+=1)(_=E[I].a).t.propType&&(ae&&2===e.j&&(ne+=_.t.v*ie),(R=E[I].s.getMult(F[i].anIndexes[I],U.a[I].s.totalChars)).length?re+=_.t.v*R[0]*ie:re+=_.t.v*R*ie);ae=!1}for(re&&(re+=ne);oe<i;)F[oe].animatorJustifyOffset=re,oe+=1}for(i=0;i<o;i+=1){if(S.reset(),B=1,F[i].n)r=0,n+=e.yOffset,n+=D?1:0,s=X,D=!1,this._hasMaskedPath&&(f=Y,p=(h=m[d=Z].points)[f-1],g=(l=h[f]).partialLength,c=0),ee="",K="",G="",J="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==F[i].line){switch(e.j){case 1:s+=y-e.lineWidths[F[i].line];break;case 2:s+=(y-e.lineWidths[F[i].line])/2}Q=F[i].line}q!==F[i].ind&&(F[q]&&(s+=F[q].extra),s+=F[i].an/2,q=F[i].ind),s+=w[0]*F[i].an*.005;var se=0;for(I=0;I<M;I+=1)(_=E[I].a).p.propType&&((R=E[I].s.getMult(F[i].anIndexes[I],U.a[I].s.totalChars)).length?se+=_.p.v[0]*R[0]:se+=_.p.v[0]*R),_.a.propType&&((R=E[I].s.getMult(F[i].anIndexes[I],U.a[I].s.totalChars)).length?se+=_.a.v[0]*R[0]:se+=_.a.v[0]*R);for(u=!0,this._pathData.a.v&&(s=.5*F[0].an+(y-this._pathData.f.v-.5*F[0].an-.5*F[F.length-1].an)*q/(o-1),s+=this._pathData.f.v);u;)c+g>=s+se||!h?(v=(s+se-c)/l.partialLength,j=p.point[0]+(l.point[0]-p.point[0])*v,z=p.point[1]+(l.point[1]-p.point[1])*v,S.translate(-w[0]*F[i].an*.005,-w[1]*V*.01),u=!1):h&&(c+=l.partialLength,(f+=1)>=h.length&&(f=0,m[d+=1]?h=m[d].points:x.v.c?(f=0,h=m[d=0].points):(c-=l.partialLength,h=null)),h&&(p=l,g=(l=h[f]).partialLength));O=F[i].an/2-F[i].add,S.translate(-O,0,0)}else O=F[i].an/2-F[i].add,S.translate(-O,0,0),S.translate(-w[0]*F[i].an*.005,-w[1]*V*.01,0);for(I=0;I<M;I+=1)(_=E[I].a).t.propType&&(R=E[I].s.getMult(F[i].anIndexes[I],U.a[I].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?R.length?s+=_.t.v*R[0]:s+=_.t.v*R:R.length?r+=_.t.v*R[0]:r+=_.t.v*R));for(e.strokeWidthAnim&&(N=e.sw||0),e.strokeColorAnim&&(L=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(H=[e.fc[0],e.fc[1],e.fc[2]]),I=0;I<M;I+=1)(_=E[I].a).a.propType&&((R=E[I].s.getMult(F[i].anIndexes[I],U.a[I].s.totalChars)).length?S.translate(-_.a.v[0]*R[0],-_.a.v[1]*R[1],_.a.v[2]*R[2]):S.translate(-_.a.v[0]*R,-_.a.v[1]*R,_.a.v[2]*R));for(I=0;I<M;I+=1)(_=E[I].a).s.propType&&((R=E[I].s.getMult(F[i].anIndexes[I],U.a[I].s.totalChars)).length?S.scale(1+(_.s.v[0]-1)*R[0],1+(_.s.v[1]-1)*R[1],1):S.scale(1+(_.s.v[0]-1)*R,1+(_.s.v[1]-1)*R,1));for(I=0;I<M;I+=1){if(_=E[I].a,R=E[I].s.getMult(F[i].anIndexes[I],U.a[I].s.totalChars),_.sk.propType&&(R.length?S.skewFromAxis(-_.sk.v*R[0],_.sa.v*R[1]):S.skewFromAxis(-_.sk.v*R,_.sa.v*R)),_.r.propType&&(R.length?S.rotateZ(-_.r.v*R[2]):S.rotateZ(-_.r.v*R)),_.ry.propType&&(R.length?S.rotateY(_.ry.v*R[1]):S.rotateY(_.ry.v*R)),_.rx.propType&&(R.length?S.rotateX(_.rx.v*R[0]):S.rotateX(_.rx.v*R)),_.o.propType&&(R.length?B+=(_.o.v*R[0]-B)*R[0]:B+=(_.o.v*R-B)*R),e.strokeWidthAnim&&_.sw.propType&&(R.length?N+=_.sw.v*R[0]:N+=_.sw.v*R),e.strokeColorAnim&&_.sc.propType)for(W=0;W<3;W+=1)R.length?L[W]+=(_.sc.v[W]-L[W])*R[0]:L[W]+=(_.sc.v[W]-L[W])*R;if(e.fillColorAnim&&e.fc){if(_.fc.propType)for(W=0;W<3;W+=1)R.length?H[W]+=(_.fc.v[W]-H[W])*R[0]:H[W]+=(_.fc.v[W]-H[W])*R;_.fh.propType&&(H=R.length?addHueToRGB(H,_.fh.v*R[0]):addHueToRGB(H,_.fh.v*R)),_.fs.propType&&(H=R.length?addSaturationToRGB(H,_.fs.v*R[0]):addSaturationToRGB(H,_.fs.v*R)),_.fb.propType&&(H=R.length?addBrightnessToRGB(H,_.fb.v*R[0]):addBrightnessToRGB(H,_.fb.v*R))}}for(I=0;I<M;I+=1)(_=E[I].a).p.propType&&(R=E[I].s.getMult(F[i].anIndexes[I],U.a[I].s.totalChars),this._hasMaskedPath?R.length?S.translate(0,_.p.v[1]*R[0],-_.p.v[2]*R[1]):S.translate(0,_.p.v[1]*R,-_.p.v[2]*R):R.length?S.translate(_.p.v[0]*R[0],_.p.v[1]*R[1],-_.p.v[2]*R[2]):S.translate(_.p.v[0]*R,_.p.v[1]*R,-_.p.v[2]*R));if(e.strokeWidthAnim&&(G=N<0?0:N),e.strokeColorAnim&&($="rgb("+Math.round(255*L[0])+","+Math.round(255*L[1])+","+Math.round(255*L[2])+")"),e.fillColorAnim&&e.fc&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(S.translate(0,-e.ls),S.translate(0,w[1]*V*.01+n,0),this._pathData.p.v){b=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<p.point[0]&&(le+=180),S.rotate(-le*Math.PI/180)}S.translate(j,z,0),s-=w[0]*F[i].an*.005,F[i+1]&&q!==F[i+1].ind&&(s+=F[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(S.translate(r,n,0),e.ps&&S.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:S.translate(F[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[F[i].line]),0,0);break;case 2:S.translate(F[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[F[i].line])/2,0,0)}S.translate(0,-e.ls),S.translate(O,0,0),S.translate(w[0]*F[i].an*.005,w[1]*V*.01,0),r+=F[i].l+.001*e.tr*e.finalSize}"html"===k?ee=S.toCSS():"svg"===k?ee=S.to2dCSS():te=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],J=B}C<=i?(A=new LetterProps(J,G,$,K,ee,te),this.renderedLetters.push(A),C+=1,this.lettersChangedFlag=!0):(A=this.renderedLetters[i],this.lettersChangedFlag=A.update(J,G,$,K,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)},ITextElement.prototype.createPathShape=function(e,t){var r,n,i=t.length,o="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,o+=buildShapeString(n,n.i.length,!0,e));return o},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,n,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(n,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(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}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 n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=t.title,this.svgElement.appendChild(n),r+=i}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);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,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(i),i=""):i+=e[t],t+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.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 n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,u=this.data.singleShape,f=0,d=0,p=!0,h=.001*r.tr*r.finalSize;if(!u||l||r.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),u&&(s[e].n&&(f=-h,d+=r.yOffset,d+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,c,s[e].line,f,d),f+=s[e].l||0,f+=h),l){var v;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.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===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var w=this.textContainer,E="start";switch(r.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}w.setAttribute("text-anchor",E),w.setAttribute("letter-spacing",h);var U=this.buildTextContents(r.finalText);for(t=U.length,d=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=U[e],a.setAttribute("x",0),a.setAttribute("y",d),a.style.display="inherit",w.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,d+=r.finalLineHeight;this.layerElement.appendChild(w)}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.validateText(),(!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,n,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=o[e],n=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.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.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),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"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),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[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=t[n].getMatte(this.layers[e].tt);r.setMatte(i)}else this.buildItem(n),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){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(i);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 n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):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,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-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)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r=0,n=e.transforms.length,i=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},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}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function i(){var i,o,a;t||(i=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(a),i.appendChild(o),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return t||i(),t.width=n.width,t.height=n.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;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(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[e].v,t=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(t[0],t[1]);var l=n._length;for(s=1;s<l;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(a={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(a),r[i].elements.push(a))}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(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(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||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}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 n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(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%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var 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),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.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),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},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,n,i){var o,a,s,l,c,u,f=e.length-1,d=[],p=[],h=[].concat(i);for(o=f;o>=0;o-=1){if((l=this.searchProcessedElement(e[o]))?t[o]=r[l-1]:e[o]._shouldRender=n,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)l?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],h),d.push(t[o].style);else if("gr"===e[o].ty){if(l)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,n,h)}else"tr"===e[o].ty?(l||(u=this.createTransformElement(e[o]),t[o]=u),h.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?l||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(l?(c=t[o]).closed=!1:((c=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),p.push(c)):"rp"===e[o].ty&&(l?(c=t[o]).closed=!0:(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),n=!1),p.push(c));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),f=p.length,o=0;o<f;o+=1)p[o].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,n,i,o,a,s,l,c=this.stylesList.length,u=this.globalData.renderer,f=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=l.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?l.co:l.grd),u.ctxLineWidth(l.wi),u.ctxLineCap(l.lc),u.ctxLineJoin(l.lj),u.ctxMiterLimit(l.ml||0)):u.ctxFillStyle("fl"===s?l.co:l.grd),u.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&f.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(f.beginPath(),l.da&&(f.setLineDash(l.da),f.lineDashOffset=l.do)),i=(a=o[t].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?f.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?f.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):f.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),l.da&&f.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var i,o;for(o=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(o=r[i].transform,this.renderShapeTransform(e,o)):"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],o):"st"===t[i].ty?this.renderStroke(t[i],r[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var l=e.transforms.finalTransform;for(i=0;i<s;i+=1){var c=a.shapes[i];if(c&&c.v){for(n=c._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===n&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&n&&(o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,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 o,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)n=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),f=t.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var d=c*f,p=Math.cos(u+t.a.v)*d+s[0],h=Math.sin(u+t.a.v)*d+s[1];n=a.createRadialGradient(p,h,0,s[0],s[1],c)}var m=e.g.p,g=t.g.c,y=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*o+1]),n.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+y+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.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 n,i,o,a,s,l,c,u,f,d,p,h,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=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,w=0,E=!0,U=0;for(n=0;n<i;n+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},y.reset(),v&&g[n].n&&(x=-b,w+=e.yOffset,w+=E?1:0,E=!1),f=(c=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,y,g[n].line,x,w),p=createSizedArray(f-1);var S=0;for(u=0;u<f;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,d=c[u].ks.k,h=[],s=1;s<l;s+=1)1===s&&h.push(y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),h.push(y.applyToX(d.o[s-1][0],d.o[s-1][1],0),y.applyToY(d.o[s-1][0],d.o[s-1][1],0),y.applyToX(d.i[s][0],d.i[s][1],0),y.applyToY(d.i[s][0],d.i[s][1],0),y.applyToX(d.v[s][0],d.v[s][1],0),y.applyToY(d.v[s][0],d.v[s][1],0));h.push(y.applyToX(d.o[s-1][0],d.o[s-1][1],0),y.applyToY(d.o[s-1][0],d.o[s-1][1],0),y.applyToX(d.i[0][0],d.i[0][1],0),y.applyToY(d.i[0][0],d.i[0][1],0),y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),p[S]=h,S+=1}v&&(x+=g[n].l,x+=b),this.textSpans[U]?this.textSpans[U].elem=p:this.textSpans[U]={elem:p},U+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,i,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,u,f=null,d=null,p=null,h=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=s[e])&&(h.save(),h.ctxTransform(a.p),h.ctxOpacity(a.o)),this.fill){for(a&&a.fc?f!==a.fc&&(h.ctxFillStyle(a.fc),f=a.fc):f!==this.values.fill&&(f=this.values.fill,h.ctxFillStyle(this.values.fill)),n=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,h.ctxLineWidth(a.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),a&&a.sc?d!==a.sc&&(d=a.sc,h.ctxStrokeStyle(a.sc)):d!==this.values.stroke&&(d=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),n=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),h.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?t=(r=o)*s:r=(t=i)/s,n.drawImage(this.img,(i-t)/2,(o-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(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(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){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):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.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,i,o;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(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[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 n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;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=n-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"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var 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),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,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,i,o,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[r+1]),a=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(n,i,o,a,t);s.c&&(n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(n,i,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,i){this.getBoundsOfCurve(e,t,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.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,n){for(var i,o,a,s,l,c,u,f=[[e[0],n[0]],[e[1],n[1]]],d=0;d<2;++d)o=6*e[d]-12*t[d]+6*r[d],i=-3*e[d]+9*t[d]-9*r[d]+3*n[d],a=3*t[d]-3*e[d],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&f[d].push(this.calculateF(s,e,t,r,n,d)):(l=o*o-4*a*i)>=0&&((c=(-o+bmSqrt(l))/(2*i))>0&&c<1&&f[d].push(this.calculateF(c,e,t,r,n,d)),(u=(-o-bmSqrt(l))/(2*i))>0&&u<1&&f[d].push(this.calculateF(u,e,t,r,n,d))));this.shapeBoundingBox.left=bmMin.apply(null,f[0]),this.shapeBoundingBox.top=bmMin.apply(null,f[1]),this.shapeBoundingBox.right=bmMax.apply(null,f[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,f[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*n[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;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 n=0;n<e.keyframes.length;n+=1){var i=e.keyframes[n].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 n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.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 n,i,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,u,f=e.l;i=f.length;var d,p=this.mHelper,h="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),h=this.createPathShape(p,d),l.setAttribute("d",h)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute("width",v.width+2),u.setAttribute("height",v.height+2),u.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=u.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=x,b.webkitTransform=x,f[n].yOffset=v.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=f[n].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var w=l.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=E,w.webkitTransform=E}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),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,n,i,o,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(n=c.length,r=0;r<n;r+=1)c[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],i=l[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},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 n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.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 o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var f,d,p;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(f=this.comp.threeDElements[e]).type){if(u){var h=this.mat.toCSS();(p=f.container.style).transform=h,p.webkitTransform=h}this.pe._mdf&&((d=f.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 n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.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,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=s,n.webkitTransform=s}i.appendChild(o);var l={container:o,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,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="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,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=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,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,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]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.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,n=this.threeDElements.length;for(e=0;e<n;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,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],n,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,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=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 CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){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};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)}function seedRandom(e,t){var r=this,n=256,i="random",o=t.pow(n,6),a=t.pow(2,52),s=2*a,l=255;function c(e){var t,r=e.length,i=this,o=0,a=i.i=i.j=0,s=i.S=[];for(r||(e=[r++]);o<n;)s[o]=o++;for(o=0;o<n;o++)s[o]=s[a=l&a+e[o%r]+(t=s[o])],s[a]=t;i.g=function(e){for(var t,r=0,o=i.i,a=i.j,s=i.S;e--;)t=s[o=l&o+1],r=r*n+s[l&(s[o]=s[a=l&a+t])+(s[a]=t)];return i.i=o,i.j=a,r}}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(f(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function d(e,t){for(var r,n=e+"",i=0;i<n.length;)t[l&i]=l&(r^=19*t[l&i])+n.charCodeAt(i++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t["seed"+i]=function(l,h,m){var g=[],y=d(f((h=!0===h?{entropy:!0}:h||{}).entropy?[l,p(e)]:null===l?function(){try{var t=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(t),p(t)}catch(t){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,p(e)]}}():l,3),g),v=new c(g),b=function(){for(var e=v.g(6),t=o,r=0;e<a;)e=(e+r)*n,t*=n,r=v.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,d(p(v.S),e),(h.pass||m||function(e,r,n,o){return o&&(o.S&&u(o,v),e.state=function(){return u(v,{})}),n?(t[i]=e,r):e})(b,y,"global"in h?h.global:this==t,h.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};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)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,i=[];for(r=0;r<n;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$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,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,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,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,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]*t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]/t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e/t[n];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 n=r;r=t,t=n}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 n=Math.min(e.length,t.length),i=0;for(r=0;r<n;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,n=e[0],i=e[1],o=e[2],a=Math.max(n,i,o),s=Math.min(n,i,o),l=(a+s)/2;if(a===s)t=0,r=0;else{var c=a-s;switch(r=l>.5?c/(2-a-s):c/(a+s),a){case n:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-n)/c+2;break;case o:t=(n-i)/c+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,n,i=e[0],o=e[1],a=e[2];if(0===o)t=a,n=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;t=hue2rgb(l,s,i+1/3),r=hue2rgb(l,s,i),n=hue2rgb(l,s,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if(void 0!==n&&void 0!==i||(n=t,i=r,t=0,r=1),r<t){var o=r;r=t,t=o}if(e<=t)return n;if(e>=r)return i;var a,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*s;var l=n.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=n[a]+(i[a]-n[a])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=e[r]+o*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var i,o=e.length,a=shapePool.newElement();a.setPathData(!!n,o);var s,l,c=[0,0];for(i=0;i<o;i+=1)s=t&&t[i]?t[i]:c,l=r&&r[i]?r[i]:c,a.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-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,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)o[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)c[n]=this.pv[n]+o[n]+(-t+2*t*BMMath.random())*l;return c}return this.pv+o[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]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,i){return applyEase(easeOutBez,e,t,r,n,i)}function easeIn(e,t,r,n,i){return applyEase(easeInBez,e,t,r,n,i)}function ease(e,t,r,n,i){return applyEase(easeInOutBez,e,t,r,n,i)}function applyEase(e,t,r,n,i,o){void 0===i?(i=r,o=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(o[s]-i[s])*a+i[s];return c}return(o-i)*a+i}function nearestKey(e){var t,r,n,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,n=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,n=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,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(e){var t,r,n;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(n=i.length,r=0;r<n;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,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),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.resetFrame=ExpressionManager.resetFrame,e}(),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,n=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return n[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(n){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv*n,o=new Number(i);return o.value=i,r(o,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*n,o.value!==i&&((o=new Number(i)).value=i,r(o,t,"unidimensional")),o}}(i):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,r(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*n,o[t]=a[t];return o}}(i):n}}(),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,n,i,o;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?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[r(),n(),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 n(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 o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;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(c){var u;function f(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return f.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return f.effect;case"ADBE Text Properties":return f.textInterface;default:return null}}f.getMatrix=e,f.invertPoint=a,f.applyPoint=o,f.toWorld=r,f.toWorldVec=t,f.fromWorld=i,f.fromWorldVec=n,f.toComp=r,f.fromComp=s,f.sampleImage=l,f.sourceRectAtTime=c.sourceRectAtTime.bind(c),f._elem=c;var d=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(f,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),f.startTime=c.data.st,f.index=c.data.ind,f.source=c.data.refId,f.height=0===c.data.ty?c.data.h:100,f.width=0===c.data.ty?c.data.w:100,f.inPoint=c.data.ip/c.comp.globalData.frameRate,f.outPoint=c.data.op/c.comp.globalData.frameRate,f._name=c.data.nm,f.registerMaskInterface=function(e){f.mask=new MaskManagerInterface(e,c)},f.registerEffectsInterface=function(e){f.effect=e},f}}(),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,n,i,o){function a(e){for(var t=r.ef,n=0,i=t.length;n<i;){if(e===t[n].nm||e===t[n].mn||e===t[n].ix)return 5===t[n].ty?c[n]:c[n]();n+=1}throw new Error}var s,l=propertyGroupFactory(a,i),c=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?c.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):c.push(t(n.effectElements[s],r.ef[s].ty,o,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),a.enabled=0!==r.en,a.active=a.enabled,a}function t(e,t,r,n){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var n,i=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(e(o[n],t.effectsManager.effectElements[n],r,t));var s=t.data.ef||[],l=function(e){for(n=0,a=s.length;n<a;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(e,t,r){var n=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_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,a,d){var p,h=[],m=e?e.length:0;for(p=0;p<m;p+=1)"gr"===e[p].ty?h.push(t(e[p],a[p],d)):"fl"===e[p].ty?h.push(r(e[p],a[p],d)):"st"===e[p].ty?h.push(i(e[p],a[p],d)):"tm"===e[p].ty?h.push(o(e[p],a[p],d)):"tr"===e[p].ty||("el"===e[p].ty?h.push(s(e[p],a[p],d)):"sr"===e[p].ty?h.push(l(e[p],a[p],d)):"sh"===e[p].ty?h.push(ShapePathInterface(e[p],a[p],d)):"rc"===e[p].ty?h.push(c(e[p],a[p],d)):"rd"===e[p].ty?h.push(u(e[p],a[p],d)):"rp"===e[p].ty?h.push(f(e[p],a[p],d)):"gf"===e[p].ty?h.push(n(e[p],a[p],d)):h.push((e[p],a[p],function(){return null})));return h}function t(t,r,n){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,n);var o=function(t,r,n){var i,o=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};o.propertyGroup=propertyGroupFactory(o,n),i=e(t.it,r.it,o.propertyGroup),o.numProperties=i.length;var s=a(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,i.propertyGroup),s=a(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,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 n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{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)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{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)),n}function i(e,t,r){var n,i=propertyGroupFactory(c,r),o=propertyGroupFactory(l,i);function a(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(n=0;n<s;n+=1)a(n),t.d.dataProps[n].p.setGroupProperty(o);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{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)),c}function o(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function a(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var i=propertyGroupFactory(n,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(n,{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}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function s(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function l(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function f(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var i;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n: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 o.propertyGroup=propertyGroupFactory(o,(function(){return n})),i=e(t,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};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 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 n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var i=e.indexOf(t);if(-1!==i){var o=parseInt(e.substr(i+t.length),10);return"object"===_typeof(r=r[o])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var 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),n=0;if(t.length){var i;for(i=0;i<t.length;i+=1)n+=Math.pow(r[i]-t[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,i=this.getValueAtTime(e),o=this.getValueAtTime(e+n);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(o[r]-i[r])/n;else t=(o-i)/n;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 n,i,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(r?i=u-(n=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),n=u-(i=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/n)%2!=0)return this.getValueAtTime((n-(l-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var f=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0),h=Math.floor((l-i)/n);if(this.pv.length){for(a=(s=new Array(f.length)).length,o=0;o<a;o+=1)s[o]=(d[o]-f[o])*h+p[o];return s}return(d-f)*h+p}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*((l-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-u)/.001*(m-g)}}return this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(r?i=u+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),n=(i=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/n)%2==0)return this.getValueAtTime(((u-l)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var f=this.getValueAtTime(u/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime((n-(u-l)%n+u)/this.comp.globalData.frameRate,0),h=Math.floor((u-l)/n)+1;if(this.pv.length){for(a=(s=new Array(f.length)).length,o=0;o<a;o+=1)s[o]=p[o]-(d[o]-f[o])*h;return s}return p-(d-f)*h}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*(u-l)/.001;return s}return m+(m-g)*(u-l)/.001}}return this.getValueAtTime((n-((u-l)%n+u))/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,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-e,a=t>1?(i+e-o)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(o+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=n[l];else r+=n;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function n(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 n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var f=this.px.getValueAtTime(e),d=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(f*this.px.mult,d*this.py.mult,-p*this.pz.mult)}else t.translate(f*this.px.mult,d*this.py.mult,0)}else{var h=this.p.getValueAtTime(e);t.translate(h[0]*this.p.mult,h[1]*this.p.mult,-h[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=o(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,s,l){var c=a(n,i,o,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===i.a?i.k.length:0,c.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,i,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var i=n._length,o=n[e],a=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===e||"o"===e?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},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 n,i=this._segmentsLength,o=i.lengths,a=i.totalLength*e,s=0,l=o.length,c=0;s<l;){if(c+o[s].addedLength>a){var u=s,f=r.c&&s===l-1?0:s+1,d=(a-c)/o[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[f],r.o[u],r.i[f],d,o[s]);break}c+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-n[0],a=i[1]-n[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},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([c],s),extendPrototype([c],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 u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var o=u(e,t,r,n,i);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}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(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",n+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,n){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",n),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,n){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 o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,e.appendChild(o)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var i=this.filterManager.effectElements,o=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",o)),(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",o)),(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",o)),(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",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(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)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,r,n,i){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(u);var f=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(f)}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,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},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,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=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<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,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,n,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],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.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 o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();o="0 0 0 "+l*a+" ";var c,u=l*(s-a),f=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(u/f);for(c=0;c<d;c+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*l+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}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 p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+t[0],o=n[1]+" "+r[1]+" "+t[1],a=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},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,n,i){for(var o,a,s=0,l=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:256}),f=0,d=i-n,p=t-e;s<=256;)a=(o=s/256)<=l?p<0?i:n:o>=c?p<0?n:i:n+d*Math.pow((o-e)/p,1/r),u[f]=a,f+=1,s+=256/255;return u.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,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};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,n){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",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}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 n,i=r.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(t,r),o.appendChild(t.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)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,n=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,i=1===t[2].p.v,o=t[3].p.v,a=i?o:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},228:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;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 n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))r.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},551:(e,t,r)=>{"use strict";var n=r(540),i=r(228),o=r(982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(a(227));function s(e,t,r,n,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,f=null,d={onError:function(e){l=!0,c=e}};function p(e,t,r,n,i,o,a,u,f){l=!1,c=null,s.apply(d,arguments)}var h=null,m=null,g=null;function y(e,t,r){var n=e.type||"unknown-event";e.currentTarget=g(r),function(e,t,r,n,i,o,s,d,h){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var m=c;l=!1,c=null,u||(u=!0,f=m)}}(n,t,void 0,e),e.currentTarget=null}var v=null,b={};function x(){if(v)for(var e in b){var t=b[e],r=v.indexOf(e);if(!(-1<r))throw Error(a(96,e));if(!E[r]){if(!t.extractEvents)throw Error(a(97,e));for(var n in E[r]=t,r=t.eventTypes){var i=void 0,o=r[n],s=t,l=n;if(U.hasOwnProperty(l))throw Error(a(99,l));U[l]=o;var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&w(c[i],s,l);i=!0}else o.registrationName?(w(o.registrationName,s,l),i=!0):i=!1;if(!i)throw Error(a(98,n,e))}}}}function w(e,t,r){if(S[e])throw Error(a(100,e));S[e]=t,k[e]=t.eventTypes[r].dependencies}var E=[],U={},S={},k={};function C(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!b.hasOwnProperty(t)||b[t]!==n){if(b[t])throw Error(a(102,t));b[t]=n,r=!0}}r&&x()}var F=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),P=null,T=null,_=null;function I(e){if(e=m(e)){if("function"!=typeof P)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),P(e.stateNode,e.type,t))}}function M(e){T?_?_.push(e):_=[e]:T=e}function A(){if(T){var e=T,t=_;if(_=T=null,I(e),t)for(e=0;e<t.length;e++)I(t[e])}}function R(e,t){return e(t)}function V(e,t,r,n,i){return e(t,r,n,i)}function D(){}var O=R,j=!1,z=!1;function B(){null===T&&null===_||(D(),A())}function L(e,t,r){if(z)return e(t,r);z=!0;try{return O(e,t,r)}finally{z=!1,B()}}var N=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,W={},G={};function $(e,t,r,n,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){K[e]=new $(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];K[t]=new $(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){K[e]=new $(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){K[e]=new $(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){K[e]=new $(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){K[e]=new $(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){K[e]=new $(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){K[e]=new $(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){K[e]=new $(e,5,!1,e.toLowerCase(),null,!1)}));var J=/[\-:]([a-z])/g;function q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(J,q);K[t]=new $(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(J,q);K[t]=new $(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(J,q);K[t]=new $(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){K[e]=new $(e,1,!1,e.toLowerCase(),null,!1)})),K.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){K[e]=new $(e,1,!1,e.toLowerCase(),null,!0)}));var X=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(e,t,r,n){var i=K.hasOwnProperty(t)?K[t]:null;(null!==i?0===i.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!H.call(G,e)||!H.call(W,e)&&(N.test(e)?G[e]=!0:(W[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Y=/^(.*)[\\\/]/,Q="function"==typeof Symbol&&Symbol.for,ee=Q?Symbol.for("react.element"):60103,te=Q?Symbol.for("react.portal"):60106,re=Q?Symbol.for("react.fragment"):60107,ne=Q?Symbol.for("react.strict_mode"):60108,ie=Q?Symbol.for("react.profiler"):60114,oe=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,se=Q?Symbol.for("react.concurrent_mode"):60111,le=Q?Symbol.for("react.forward_ref"):60112,ce=Q?Symbol.for("react.suspense"):60113,ue=Q?Symbol.for("react.suspense_list"):60120,fe=Q?Symbol.for("react.memo"):60115,de=Q?Symbol.for("react.lazy"):60116,pe=Q?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case re:return"Fragment";case te:return"Portal";case ie:return"Profiler";case ne:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ge(e.type);case pe:return ge(e.render);case de:if(e=1===e._status?e._result:null)return ge(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,i=e._debugSource,o=ge(e.type);r=null,n&&(r=ge(n.type)),n=o,o="",i?o=" (at "+i.fileName.replace(Y,"")+":"+i.lineNumber+")":r&&(o=" (created by "+r+")"),r="\n in "+(n||"Unknown")+o}t+=r,e=e.return}while(e);return t}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function xe(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=be(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Ee(e,t){var r=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Ue(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=ve(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Z(e,"checked",t,!1)}function ke(e,t){Se(e,t);var r=ve(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Fe(e,t.type,r):t.hasOwnProperty("defaultValue")&&Fe(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Fe(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Pe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Te(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ve(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function _e(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:ve(r)}}function Me(e,t){var r=ve(t.value),n=ve(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Re="http://www.w3.org/1999/xhtml",Ve="http://www.w3.org/2000/svg";function De(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Oe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?De(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var je,ze,Be=(ze=function(e,t){if(e.namespaceURI!==Ve||"innerHTML"in e)e.innerHTML=t;else{for((je=je||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ze(e,t)}))}:ze);function Le(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function Ne(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var He={animationend:Ne("Animation","AnimationEnd"),animationiteration:Ne("Animation","AnimationIteration"),animationstart:Ne("Animation","AnimationStart"),transitionend:Ne("Transition","TransitionEnd")},We={},Ge={};function $e(e){if(We[e])return We[e];if(!He[e])return e;var t,r=He[e];for(t in r)if(r.hasOwnProperty(t)&&t in Ge)return We[e]=r[t];return e}F&&(Ge=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Ke=$e("animationend"),Je=$e("animationiteration"),qe=$e("animationstart"),Xe=$e("transitionend"),Ze="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new("function"==typeof WeakMap?WeakMap:Map);function Qe(e){var t=Ye.get(e);return void 0===t&&(t=new Map,Ye.set(e,t)),t}function et(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function rt(e){if(et(e)!==e)throw Error(a(188))}function nt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return rt(i),e;if(o===n)return rt(i),t;o=o.sibling}throw Error(a(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function it(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var at=null;function st(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)y(e,t[n],r[n]);else t&&y(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function lt(e){if(null!==e&&(at=it(at,e)),e=at,at=null,e){if(ot(e,st),at)throw Error(a(95));if(u)throw e=f,u=!1,f=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!F)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ft=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ft.length&&ft.push(e)}function pt(e,t,r,n){if(ft.length){var i=ft.pop();return i.topLevelType=e,i.eventSystemFlags=n,i.nativeEvent=t,i.targetInst=r,i}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function ht(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=Mr(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var i=ct(e.nativeEvent);n=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===r&&(a|=64);for(var s=null,l=0;l<E.length;l++){var c=E[l];c&&(c=c.extractEvents(n,t,o,i,a))&&(s=it(s,c))}lt(s)}}function mt(e,t,r){if(!r.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":ut(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ze.indexOf(e)&&Jt(e,t)}r.set(e,null)}}var gt,yt,vt,bt=!1,xt=[],wt=null,Et=null,Ut=null,St=new Map,kt=new Map,Ct=[],Ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Pt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Tt(e,t,r,n,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:i,container:n}}function _t(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Ut=null;break;case"pointerover":case"pointerout":St.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function It(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e=Tt(t,r,n,i,o),null!==t&&(null!==(t=Ar(t))&&yt(t)),e):(e.eventSystemFlags|=n,e)}function Mt(e){var t=Mr(e.target);if(null!==t){var r=et(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=tt(r)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){vt(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Qt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=Ar(t);return null!==r&&yt(r),e.blockedOn=t,!1}return!0}function Rt(e,t,r){At(e)&&r.delete(t)}function Vt(){for(bt=!1;0<xt.length;){var e=xt[0];if(null!==e.blockedOn){null!==(e=Ar(e.blockedOn))&&gt(e);break}var t=Qt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:xt.shift()}null!==wt&&At(wt)&&(wt=null),null!==Et&&At(Et)&&(Et=null),null!==Ut&&At(Ut)&&(Ut=null),St.forEach(Rt),kt.forEach(Rt)}function Dt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Vt)))}function Ot(e){function t(t){return Dt(t,e)}if(0<xt.length){Dt(xt[0],e);for(var r=1;r<xt.length;r++){var n=xt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==wt&&Dt(wt,e),null!==Et&&Dt(Et,e),null!==Ut&&Dt(Ut,e),St.forEach(t),kt.forEach(t),r=0;r<Ct.length;r++)(n=Ct[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Ct.length&&null===(r=Ct[0]).blockedOn;)Mt(r),null===r.blockedOn&&Ct.shift()}var jt={},zt=new Map,Bt=new Map,Lt=["abort","abort",Ke,"animationEnd",Je,"animationIteration",qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Xe,"transitionEnd","waiting","waiting"];function Nt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],eventPriority:t},Bt.set(n,t),zt.set(n,o),jt[i]=o}}Nt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Nt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Nt(Lt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Wt=0;Wt<Ht.length;Wt++)Bt.set(Ht[Wt],0);var Gt=o.unstable_UserBlockingPriority,$t=o.unstable_runWithPriority,Kt=!0;function Jt(e,t){qt(t,e,!1)}function qt(e,t,r){var n=Bt.get(t);switch(void 0===n?2:n){case 0:n=Xt.bind(null,t,1,e);break;case 1:n=Zt.bind(null,t,1,e);break;default:n=Yt.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Xt(e,t,r,n){j||D();var i=Yt,o=j;j=!0;try{V(i,e,t,r,n)}finally{(j=o)||B()}}function Zt(e,t,r,n){$t(Gt,Yt.bind(null,e,t,r,n))}function Yt(e,t,r,n){if(Kt)if(0<xt.length&&-1<Ft.indexOf(e))e=Tt(null,e,t,r,n),xt.push(e);else{var i=Qt(e,t,r,n);if(null===i)_t(e,n);else if(-1<Ft.indexOf(e))e=Tt(i,e,t,r,n),xt.push(e);else if(!function(e,t,r,n,i){switch(t){case"focus":return wt=It(wt,e,t,r,n,i),!0;case"dragenter":return Et=It(Et,e,t,r,n,i),!0;case"mouseover":return Ut=It(Ut,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return St.set(o,It(St.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,kt.set(o,It(kt.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n)){_t(e,n),e=pt(e,n,null,t);try{L(ht,e)}finally{dt(e)}}}}function Qt(e,t,r,n){if(null!==(r=Mr(r=ct(n)))){var i=et(r);if(null===i)r=null;else{var o=i.tag;if(13===o){if(null!==(r=tt(i)))return r;r=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}e=pt(e,n,r,t);try{L(ht,e)}finally{dt(e)}return null}var er={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,gridArea:!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},tr=["Webkit","ms","Moz","O"];function rr(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||er.hasOwnProperty(e)&&er[e]?(""+t).trim():t+"px"}function nr(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=rr(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(er).forEach((function(e){tr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),er[t]=er[e]}))}));var ir=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function or(e,t){if(t){if(ir[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function ar(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sr=Re;function lr(e,t){var r=Qe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var n=0;n<t.length;n++)mt(t[n],e,r)}function cr(){}function ur(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var r,n=fr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fr(n)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=ur();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=ur((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr="$",yr="/$",vr="$?",br="$!",xr=null,wr=null;function Er(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Sr="function"==typeof setTimeout?setTimeout:void 0,kr="function"==typeof clearTimeout?clearTimeout:void 0;function Cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Fr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if(r===gr||r===br||r===vr){if(0===t)return e;t--}else r===yr&&t++}e=e.previousSibling}return null}var Pr=Math.random().toString(36).slice(2),Tr="__reactInternalInstance$"+Pr,_r="__reactEventHandlers$"+Pr,Ir="__reactContainere$"+Pr;function Mr(e){var t=e[Tr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ir]||r[Tr]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Fr(e);null!==e;){if(r=e[Tr])return r;e=Fr(e)}return t}r=(e=r).parentNode}return null}function Ar(e){return!(e=e[Tr]||e[Ir])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Rr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Vr(e){return e[_r]||null}function Dr(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Or(e,t){var r=e.stateNode;if(!r)return null;var n=h(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(a(231,t,typeof r));return r}function jr(e,t,r){(t=Or(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=it(r._dispatchListeners,t),r._dispatchInstances=it(r._dispatchInstances,e))}function zr(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=Dr(t);for(t=r.length;0<t--;)jr(r[t],"captured",e);for(t=0;t<r.length;t++)jr(r[t],"bubbled",e)}}function Br(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Or(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=it(r._dispatchListeners,t),r._dispatchInstances=it(r._dispatchInstances,e))}function Lr(e){e&&e.dispatchConfig.registrationName&&Br(e._targetInst,null,e)}function Nr(e){ot(e,zr)}var Hr=null,Wr=null,Gr=null;function $r(){if(Gr)return Gr;var e,t,r=Wr,n=r.length,i="value"in Hr?Hr.value:Hr.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return Gr=i.slice(e,1<t?1-t:void 0)}function Kr(){return!0}function Jr(){return!1}function qr(e,t,r,n){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(r):"target"===i?this.target=n:this[i]=r[i]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Kr:Jr,this.isPropagationStopped=Jr,this}function Xr(e,t,r,n){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,r,n),i}return new this(e,t,r,n)}function Zr(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Yr(e){e.eventPool=[],e.getPooled=Xr,e.release=Zr}i(qr.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kr)},persist:function(){this.isPersistent=Kr},isPersistent:Jr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Jr,this._dispatchInstances=this._dispatchListeners=null}}),qr.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},qr.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var o=new t;return i(o,r.prototype),r.prototype=o,r.prototype.constructor=r,r.Interface=i({},n.Interface,e),r.extend=n.extend,Yr(r),r},Yr(qr);var Qr=qr.extend({data:null}),en=qr.extend({data:null}),tn=[9,13,27,32],rn=F&&"CompositionEvent"in window,nn=null;F&&"documentMode"in document&&(nn=document.documentMode);var on=F&&"TextEvent"in window&&!nn,an=F&&(!rn||nn&&8<nn&&11>=nn),sn=String.fromCharCode(32),ln={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},cn=!1;function un(e,t){switch(e){case"keyup":return-1!==tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var dn=!1;var pn={eventTypes:ln,extractEvents:function(e,t,r,n){var i;if(rn)e:{switch(e){case"compositionstart":var o=ln.compositionStart;break e;case"compositionend":o=ln.compositionEnd;break e;case"compositionupdate":o=ln.compositionUpdate;break e}o=void 0}else dn?un(e,r)&&(o=ln.compositionEnd):"keydown"===e&&229===r.keyCode&&(o=ln.compositionStart);return o?(an&&"ko"!==r.locale&&(dn||o!==ln.compositionStart?o===ln.compositionEnd&&dn&&(i=$r()):(Wr="value"in(Hr=n)?Hr.value:Hr.textContent,dn=!0)),o=Qr.getPooled(o,t,r,n),i?o.data=i:null!==(i=fn(r))&&(o.data=i),Nr(o),i=o):i=null,(e=on?function(e,t){switch(e){case"compositionend":return fn(t);case"keypress":return 32!==t.which?null:(cn=!0,sn);case"textInput":return(e=t.data)===sn&&cn?null:e;default:return null}}(e,r):function(e,t){if(dn)return"compositionend"===e||!rn&&un(e,t)?(e=$r(),Gr=Wr=Hr=null,dn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return an&&"ko"!==t.locale?null:t.data}}(e,r))?((t=en.getPooled(ln.beforeInput,t,r,n)).data=e,Nr(t)):t=null,null===i?t:null===t?i:[i,t]}},hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!hn[e.type]:"textarea"===t}var gn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function yn(e,t,r){return(e=qr.getPooled(gn.change,e,t,r)).type="change",M(r),Nr(e),e}var vn=null,bn=null;function xn(e){lt(e)}function wn(e){if(we(Rr(e)))return e}function En(e,t){if("change"===e)return t}var Un=!1;function Sn(){vn&&(vn.detachEvent("onpropertychange",kn),bn=vn=null)}function kn(e){if("value"===e.propertyName&&wn(bn))if(e=yn(bn,e,ct(e)),j)lt(e);else{j=!0;try{R(xn,e)}finally{j=!1,B()}}}function Cn(e,t,r){"focus"===e?(Sn(),bn=r,(vn=t).attachEvent("onpropertychange",kn)):"blur"===e&&Sn()}function Fn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return wn(bn)}function Pn(e,t){if("click"===e)return wn(t)}function Tn(e,t){if("input"===e||"change"===e)return wn(t)}F&&(Un=ut("input")&&(!document.documentMode||9<document.documentMode));var _n={eventTypes:gn,_isInputEventSupported:Un,extractEvents:function(e,t,r,n){var i=t?Rr(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=En;else if(mn(i))if(Un)a=Tn;else{a=Fn;var s=Cn}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Pn);if(a&&(a=a(e,t)))return yn(a,r,n);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Fe(i,"number",i.value)}},In=qr.extend({view:null,detail:null}),Mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mn[e])&&!!t[e]}function Rn(){return An}var Vn=0,Dn=0,On=!1,jn=!1,zn=In.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Rn,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Vn;return Vn=e.screenX,On?"mousemove"===e.type?e.screenX-t:0:(On=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Dn;return Dn=e.screenY,jn?"mousemove"===e.type?e.screenY-t:0:(jn=!0,0)}}),Bn=zn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ln={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Nn={eventTypes:Ln,extractEvents:function(e,t,r,n,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&!(32&i)&&(r.relatedTarget||r.fromElement)||!a&&!o)return null;(o=n.window===n?n:(o=n.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=r.relatedTarget||r.toElement)?Mr(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=zn,l=Ln.mouseLeave,c=Ln.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Bn,l=Ln.pointerLeave,c=Ln.pointerEnter,u="pointer");if(e=null==a?o:Rr(a),o=null==t?o:Rr(t),(l=s.getPooled(l,a,r,n)).type=u+"leave",l.target=e,l.relatedTarget=o,(r=s.getPooled(c,t,r,n)).type=u+"enter",r.target=o,r.relatedTarget=e,u=t,(n=a)&&u)e:{for(c=u,a=0,e=s=n;e;e=Dr(e))a++;for(e=0,t=c;t;t=Dr(t))e++;for(;0<a-e;)s=Dr(s),a--;for(;0<e-a;)c=Dr(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=Dr(s),c=Dr(c)}s=null}else s=null;for(c=s,s=[];n&&n!==c&&(null===(a=n.alternate)||a!==c);)s.push(n),n=Dr(n);for(n=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)n.push(u),u=Dr(u);for(u=0;u<s.length;u++)Br(s[u],"bubbled",l);for(u=n.length;0<u--;)Br(n[u],"captured",r);return 64&i?[l,r]:[l]}};var Hn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Wn=Object.prototype.hasOwnProperty;function Gn(e,t){if(Hn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!Wn.call(t,r[n])||!Hn(e[r[n]],t[r[n]]))return!1;return!0}var $n=F&&"documentMode"in document&&11>=document.documentMode,Kn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Jn=null,qn=null,Xn=null,Zn=!1;function Yn(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Zn||null==Jn||Jn!==ur(r)?null:("selectionStart"in(r=Jn)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Xn&&Gn(Xn,r)?null:(Xn=r,(e=qr.getPooled(Kn.select,qn,e,t)).type="select",e.target=Jn,Nr(e),e))}var Qn={eventTypes:Kn,extractEvents:function(e,t,r,n,i,o){if(!(o=!(i=o||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{i=Qe(i),o=k.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Rr(t):window,e){case"focus":(mn(i)||"true"===i.contentEditable)&&(Jn=i,qn=t,Xn=null);break;case"blur":Xn=qn=Jn=null;break;case"mousedown":Zn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Zn=!1,Yn(r,n);case"selectionchange":if($n)break;case"keydown":case"keyup":return Yn(r,n)}return null}},ei=qr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ti=qr.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ri=In.extend({relatedTarget:null});function ni(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ii={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ai=In.extend({key:function(e){if(e.key){var t=ii[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ni(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?oi[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Rn,charCode:function(e){return"keypress"===e.type?ni(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ni(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),si=zn.extend({dataTransfer:null}),li=In.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Rn}),ci=qr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ui=zn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),fi={eventTypes:jt,extractEvents:function(e,t,r,n){var i=zt.get(e);if(!i)return null;switch(e){case"keypress":if(0===ni(r))return null;case"keydown":case"keyup":e=ai;break;case"blur":case"focus":e=ri;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=zn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=si;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=li;break;case Ke:case Je:case qe:e=ei;break;case Xe:e=ci;break;case"scroll":e=In;break;case"wheel":e=ui;break;case"copy":case"cut":case"paste":e=ti;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Bn;break;default:e=qr}return Nr(t=e.getPooled(i,t,r,n)),t}};if(v)throw Error(a(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x(),h=Vr,m=Ar,g=Rr,C({SimpleEventPlugin:fi,EnterLeaveEventPlugin:Nn,ChangeEventPlugin:_n,SelectEventPlugin:Qn,BeforeInputEventPlugin:pn});var di=[],pi=-1;function hi(e){0>pi||(e.current=di[pi],di[pi]=null,pi--)}function mi(e,t){pi++,di[pi]=e.current,e.current=t}var gi={},yi={current:gi},vi={current:!1},bi=gi;function xi(e,t){var r=e.type.contextTypes;if(!r)return gi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wi(e){return null!=(e=e.childContextTypes)}function Ei(){hi(vi),hi(yi)}function Ui(e,t,r){if(yi.current!==gi)throw Error(a(168));mi(yi,t),mi(vi,r)}function Si(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in e))throw Error(a(108,ge(t)||"Unknown",o));return i({},r,{},n)}function ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gi,bi=yi.current,mi(yi,e),mi(vi,vi.current),!0}function Ci(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=Si(e,t,bi),n.__reactInternalMemoizedMergedChildContext=e,hi(vi),hi(yi),mi(yi,e)):hi(vi),mi(vi,r)}var Fi=o.unstable_runWithPriority,Pi=o.unstable_scheduleCallback,Ti=o.unstable_cancelCallback,_i=o.unstable_requestPaint,Ii=o.unstable_now,Mi=o.unstable_getCurrentPriorityLevel,Ai=o.unstable_ImmediatePriority,Ri=o.unstable_UserBlockingPriority,Vi=o.unstable_NormalPriority,Di=o.unstable_LowPriority,Oi=o.unstable_IdlePriority,ji={},zi=o.unstable_shouldYield,Bi=void 0!==_i?_i:function(){},Li=null,Ni=null,Hi=!1,Wi=Ii(),Gi=1e4>Wi?Ii:function(){return Ii()-Wi};function $i(){switch(Mi()){case Ai:return 99;case Ri:return 98;case Vi:return 97;case Di:return 96;case Oi:return 95;default:throw Error(a(332))}}function Ki(e){switch(e){case 99:return Ai;case 98:return Ri;case 97:return Vi;case 96:return Di;case 95:return Oi;default:throw Error(a(332))}}function Ji(e,t){return e=Ki(e),Fi(e,t)}function qi(e,t,r){return e=Ki(e),Pi(e,t,r)}function Xi(e){return null===Li?(Li=[e],Ni=Pi(Ai,Yi)):Li.push(e),ji}function Zi(){if(null!==Ni){var e=Ni;Ni=null,Ti(e)}Yi()}function Yi(){if(!Hi&&null!==Li){Hi=!0;var e=0;try{var t=Li;Ji(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Li=null}catch(t){throw null!==Li&&(Li=Li.slice(e+1)),Pi(Ai,Zi),t}finally{Hi=!1}}}function Qi(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function eo(e,t){if(e&&e.defaultProps)for(var r in t=i({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var to={current:null},ro=null,no=null,io=null;function oo(){io=no=ro=null}function ao(e){var t=to.current;hi(to),e.type._context._currentValue=t}function so(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function lo(e,t){ro=e,io=no=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Da=!0),e.firstContext=null)}function co(e,t){if(io!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(io=e,t=1073741823),t={context:e,observedBits:t,next:null},null===no){if(null===ro)throw Error(a(308));no=t,ro.dependencies={expirationTime:0,firstContext:t,responders:null}}else no=no.next=t;return e._currentValue}var uo=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ho(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function mo(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function go(e,t){var r=e.alternate;null!==r&&po(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function yo(e,t,r,n){var o=e.updateQueue;uo=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var c=o.baseState,u=0,f=null,d=null,p=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<n){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=m,f=c):p=p.next=m,s>u&&(u=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),El(s,h.suspenseConfig);e:{var g=e,y=h;switch(s=t,m=r,y.tag){case 1:if("function"==typeof(g=y.payload)){c=g.call(m,c,s);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=y.payload)?g.call(m,c,s):g))break e;c=i({},c,s);break e;case 2:uo=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}}null===p?f=c:p.next=d,o.baseState=f,o.baseQueue=p,Ul(u),e.expirationTime=u,e.memoizedState=c}}function vo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=i,i=r,"function"!=typeof n)throw Error(a(191,n));n.call(i)}}}var bo=X.ReactCurrentBatchConfig,xo=(new n.Component).refs;function wo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:i({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var Eo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=cl(),i=bo.suspense;(i=ho(n=ul(n,e,i),i)).payload=t,null!=r&&(i.callback=r),mo(e,i),fl(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=cl(),i=bo.suspense;(i=ho(n=ul(n,e,i),i)).tag=1,i.payload=t,null!=r&&(i.callback=r),mo(e,i),fl(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=cl(),n=bo.suspense;(n=ho(r=ul(r,e,n),n)).tag=2,null!=t&&(n.callback=t),mo(e,n),fl(e,r)}};function Uo(e,t,r,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Gn(r,n)||!Gn(i,o))}function So(e,t,r){var n=!1,i=gi,o=t.contextType;return"object"==typeof o&&null!==o?o=co(o):(i=wi(t)?bi:yi.current,o=(n=null!=(n=t.contextTypes))?xi(e,i):gi),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Eo,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ko(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Eo.enqueueReplaceState(t,t.state,null)}function Co(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=xo,fo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=co(o):(o=wi(t)?bi:yi.current,i.context=xi(e,o)),yo(e,r,i,n),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(wo(e,t,o,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Eo.enqueueReplaceState(i,i.state,null),yo(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var Fo=Array.isArray;function Po(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=n.refs;t===xo&&(t=n.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function To(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function _o(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hl(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=$l(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=i(t,r.props)).ref=Po(e,t,r),n.return=e,n):((n=Wl(r.type,r.key,r.props,null,e.mode,n)).ref=Po(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Kl(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function f(e,t,r,n,o){return null===t||7!==t.tag?((t=Gl(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t||"number"==typeof t)return(t=$l(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=Wl(t.type,t.key,t.props,null,e.mode,r)).ref=Po(e,null,t),r.return=e,r;case te:return(t=Kl(t,e.mode,r)).return=e,t}if(Fo(t)||me(t))return(t=Gl(t,e.mode,r,null)).return=e,t;To(e,t)}return null}function p(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r||"number"==typeof r)return null!==i?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return r.key===i?r.type===re?f(e,t,r.props.children,n,i):c(e,t,r,n):null;case te:return r.key===i?u(e,t,r,n):null}if(Fo(r)||me(r))return null!==i?null:f(e,t,r,n,null);To(e,r)}return null}function h(e,t,r,n,i){if("string"==typeof n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return e=e.get(null===n.key?r:n.key)||null,n.type===re?f(t,e,n.props.children,i,n.key):c(t,e,n,i);case te:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i)}if(Fo(n)||me(n))return f(t,e=e.get(r)||null,n,i,null);To(t,n)}return null}function m(i,a,s,l){for(var c=null,u=null,f=a,m=a=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var y=p(i,f,s[m],l);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,f=g}if(m===s.length)return r(i,f),c;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],l))&&(a=o(f,a,m),null===u?c=f:u.sibling=f,u=f);return c}for(f=n(i,f);m<s.length;m++)null!==(g=h(f,i,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&f.forEach((function(e){return t(i,e)})),c}function g(i,s,l,c){var u=me(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var f=u=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(i,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===f?u=b:f.sibling=b,f=b,m=y}if(v.done)return r(i,m),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(i,v.value,c))&&(s=o(v,s,g),null===f?u=v:f.sibling=v,f=v);return u}for(m=n(i,m);!v.done;g++,v=l.next())null!==(v=h(m,i,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=o(v,s,g),null===f?u=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,n,o,l){var c="object"==typeof o&&null!==o&&o.type===re&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,c=n;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===re){r(e,c.sibling),(n=i(c,o.props.children)).return=e,e=n;break e}}else if(c.elementType===o.type){r(e,c.sibling),(n=i(c,o.props)).ref=Po(e,c,o),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}o.type===re?((n=Gl(o.props.children,e.mode,l,o.key)).return=e,e=n):((l=Wl(o.type,o.key,o.props,null,e.mode,l)).ref=Po(e,n,o),l.return=e,e=l)}return s(e);case te:e:{for(c=o.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){r(e,n.sibling),(n=i(n,o.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Kl(o,e.mode,l)).return=e,e=n}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(r(e,n.sibling),(n=i(n,o)).return=e,e=n):(r(e,n),(n=$l(o,e.mode,l)).return=e,e=n),s(e);if(Fo(o))return m(e,n,o,l);if(me(o))return g(e,n,o,l);if(u&&To(e,o),void 0===o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return r(e,n)}}var Io=_o(!0),Mo=_o(!1),Ao={},Ro={current:Ao},Vo={current:Ao},Do={current:Ao};function Oo(e){if(e===Ao)throw Error(a(174));return e}function jo(e,t){switch(mi(Do,t),mi(Vo,e),mi(Ro,Ao),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oe(null,"");break;default:t=Oe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}hi(Ro),mi(Ro,t)}function zo(){hi(Ro),hi(Vo),hi(Do)}function Bo(e){Oo(Do.current);var t=Oo(Ro.current),r=Oe(t,e.type);t!==r&&(mi(Vo,e),mi(Ro,r))}function Lo(e){Vo.current===e&&(hi(Ro),hi(Vo))}var No={current:0};function Ho(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||r.data===vr||r.data===br))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.effectTag)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Wo(e,t){return{responder:e,props:t}}var Go=X.ReactCurrentDispatcher,$o=X.ReactCurrentBatchConfig,Ko=0,Jo=null,qo=null,Xo=null,Zo=!1;function Yo(){throw Error(a(321))}function Qo(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Hn(e[r],t[r]))return!1;return!0}function ea(e,t,r,n,i,o){if(Ko=o,Jo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Go.current=null===e||null===e.memoizedState?Ua:Sa,e=r(n,i),t.expirationTime===Ko){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Xo=qo=null,t.updateQueue=null,Go.current=ka,e=r(n,i)}while(t.expirationTime===Ko)}if(Go.current=Ea,t=null!==qo&&null!==qo.next,Ko=0,Xo=qo=Jo=null,Zo=!1,t)throw Error(a(300));return e}function ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xo?Jo.memoizedState=Xo=e:Xo=Xo.next=e,Xo}function ra(){if(null===qo){var e=Jo.alternate;e=null!==e?e.memoizedState:null}else e=qo.next;var t=null===Xo?Jo.memoizedState:Xo.next;if(null!==t)Xo=t,qo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(qo=e).memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},null===Xo?Jo.memoizedState=Xo=e:Xo=Xo.next=e}return Xo}function na(e,t){return"function"==typeof t?t(e):t}function ia(e){var t=ra(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=qo,i=n.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(null!==i){i=i.next,n=n.baseState;var l=s=o=null,c=i;do{var u=c.expirationTime;if(u<Ko){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=f,o=n):l=l.next=f,u>Jo.expirationTime&&(Jo.expirationTime=u,Ul(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),El(u,c.suspenseConfig),n=c.eagerReducer===e?c.eagerState:e(n,c.action);c=c.next}while(null!==c&&c!==i);null===l?o=n:l.next=s,Hn(n,t.memoizedState)||(Da=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function oa(e){var t=ra(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Hn(o,t.memoizedState)||(Da=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function aa(e){var t=ta();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:na,lastRenderedState:e}).dispatch=wa.bind(null,Jo,e),[t.memoizedState,e]}function sa(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Jo.updateQueue)?(t={lastEffect:null},Jo.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function la(){return ra().memoizedState}function ca(e,t,r,n){var i=ta();Jo.effectTag|=e,i.memoizedState=sa(1|t,r,void 0,void 0===n?null:n)}function ua(e,t,r,n){var i=ra();n=void 0===n?null:n;var o=void 0;if(null!==qo){var a=qo.memoizedState;if(o=a.destroy,null!==n&&Qo(n,a.deps))return void sa(t,r,o,n)}Jo.effectTag|=e,i.memoizedState=sa(1|t,r,o,n)}function fa(e,t){return ca(516,4,e,t)}function da(e,t){return ua(516,4,e,t)}function pa(e,t){return ua(4,2,e,t)}function ha(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ma(e,t,r){return r=null!=r?r.concat([e]):null,ua(4,2,ha.bind(null,t,e),r)}function ga(){}function ya(e,t){return ta().memoizedState=[e,void 0===t?null:t],e}function va(e,t){var r=ra();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Qo(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ba(e,t){var r=ra();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Qo(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function xa(e,t,r){var n=$i();Ji(98>n?98:n,(function(){e(!0)})),Ji(97<n?97:n,(function(){var n=$o.suspense;$o.suspense=void 0===t?null:t;try{e(!1),r()}finally{$o.suspense=n}}))}function wa(e,t,r){var n=cl(),i=bo.suspense;i={expirationTime:n=ul(n,e,i),suspenseConfig:i,action:r,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Jo||null!==o&&o===Jo)Zo=!0,i.expirationTime=Ko,Jo.expirationTime=Ko;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.eagerReducer=o,i.eagerState=s,Hn(s,a))return}catch(e){}fl(e,n)}}var Ea={readContext:co,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useResponder:Yo,useDeferredValue:Yo,useTransition:Yo},Ua={readContext:co,useCallback:ya,useContext:co,useEffect:fa,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,ca(4,2,ha.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ca(4,2,e,t)},useMemo:function(e,t){var r=ta();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ta();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=wa.bind(null,Jo,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ta().memoizedState=e},useState:aa,useDebugValue:ga,useResponder:Wo,useDeferredValue:function(e,t){var r=aa(e),n=r[0],i=r[1];return fa((function(){var r=$o.suspense;$o.suspense=void 0===t?null:t;try{i(e)}finally{$o.suspense=r}}),[e,t]),n},useTransition:function(e){var t=aa(!1),r=t[0];return t=t[1],[ya(xa.bind(null,t,e),[t,e]),r]}},Sa={readContext:co,useCallback:va,useContext:co,useEffect:da,useImperativeHandle:ma,useLayoutEffect:pa,useMemo:ba,useReducer:ia,useRef:la,useState:function(){return ia(na)},useDebugValue:ga,useResponder:Wo,useDeferredValue:function(e,t){var r=ia(na),n=r[0],i=r[1];return da((function(){var r=$o.suspense;$o.suspense=void 0===t?null:t;try{i(e)}finally{$o.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ia(na),r=t[0];return t=t[1],[va(xa.bind(null,t,e),[t,e]),r]}},ka={readContext:co,useCallback:va,useContext:co,useEffect:da,useImperativeHandle:ma,useLayoutEffect:pa,useMemo:ba,useReducer:oa,useRef:la,useState:function(){return oa(na)},useDebugValue:ga,useResponder:Wo,useDeferredValue:function(e,t){var r=oa(na),n=r[0],i=r[1];return da((function(){var r=$o.suspense;$o.suspense=void 0===t?null:t;try{i(e)}finally{$o.suspense=r}}),[e,t]),n},useTransition:function(e){var t=oa(na),r=t[0];return t=t[1],[va(xa.bind(null,t,e),[t,e]),r]}},Ca=null,Fa=null,Pa=!1;function Ta(e,t){var r=Ll(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function _a(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ia(e){if(Pa){var t=Fa;if(t){var r=t;if(!_a(e,t)){if(!(t=Cr(r.nextSibling))||!_a(e,t))return e.effectTag=-1025&e.effectTag|2,Pa=!1,void(Ca=e);Ta(Ca,r)}Ca=e,Fa=Cr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Pa=!1,Ca=e}}function Ma(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ca=e}function Aa(e){if(e!==Ca)return!1;if(!Pa)return Ma(e),Pa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=Fa;t;)Ta(e,t),t=Cr(t.nextSibling);if(Ma(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if(r===yr){if(0===t){Fa=Cr(e.nextSibling);break e}t--}else r!==gr&&r!==br&&r!==vr||t++}e=e.nextSibling}Fa=null}}else Fa=Ca?Cr(e.stateNode.nextSibling):null;return!0}function Ra(){Fa=Ca=null,Pa=!1}var Va=X.ReactCurrentOwner,Da=!1;function Oa(e,t,r,n){t.child=null===e?Mo(t,null,r,n):Io(t,e.child,r,n)}function ja(e,t,r,n,i){r=r.render;var o=t.ref;return lo(t,i),n=ea(e,t,r,n,o,i),null===e||Da?(t.effectTag|=1,Oa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),ts(e,t,i))}function za(e,t,r,n,i,o){if(null===e){var a=r.type;return"function"!=typeof a||Nl(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Wl(r.type,null,n,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ba(e,t,a,n,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(r=null!==(r=r.compare)?r:Gn)(i,n)&&e.ref===t.ref)?ts(e,t,o):(t.effectTag|=1,(e=Hl(a,n)).ref=t.ref,e.return=t,t.child=e)}function Ba(e,t,r,n,i,o){return null!==e&&Gn(e.memoizedProps,n)&&e.ref===t.ref&&(Da=!1,i<o)?(t.expirationTime=e.expirationTime,ts(e,t,o)):Na(e,t,r,n,o)}function La(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function Na(e,t,r,n,i){var o=wi(r)?bi:yi.current;return o=xi(t,o),lo(t,i),r=ea(e,t,r,n,o,i),null===e||Da?(t.effectTag|=1,Oa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),ts(e,t,i))}function Ha(e,t,r,n,i){if(wi(r)){var o=!0;ki(t)}else o=!1;if(lo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),So(t,r,n),Co(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;"object"==typeof c&&null!==c?c=co(c):c=xi(t,c=wi(r)?bi:yi.current);var u=r.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&ko(t,a,n,c),uo=!1;var d=t.memoizedState;a.state=d,yo(t,n,a,i),l=t.memoizedState,s!==n||d!==l||vi.current||uo?("function"==typeof u&&(wo(t,r,u,n),l=t.memoizedState),(s=uo||Uo(t,r,s,n,d,l,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),n=!1)}else a=t.stateNode,po(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:eo(t.type,s),l=a.context,"object"==typeof(c=r.contextType)&&null!==c?c=co(c):c=xi(t,c=wi(r)?bi:yi.current),(f="function"==typeof(u=r.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&ko(t,a,n,c),uo=!1,l=t.memoizedState,a.state=l,yo(t,n,a,i),d=t.memoizedState,s!==n||l!==d||vi.current||uo?("function"==typeof u&&(wo(t,r,u,n),d=t.memoizedState),(u=uo||Uo(t,r,s,n,l,d,c))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,d,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,d,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=d),a.props=n,a.state=d,a.context=c,n=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),n=!1);return Wa(e,t,r,n,o,i)}function Wa(e,t,r,n,i,o){La(e,t);var a=!!(64&t.effectTag);if(!n&&!a)return i&&Ci(t,r,!1),ts(e,t,o);n=t.stateNode,Va.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&a?(t.child=Io(t,e.child,null,o),t.child=Io(t,null,s,o)):Oa(e,t,s,o),t.memoizedState=n.state,i&&Ci(t,r,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?Ui(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ui(0,t.context,!1),jo(e,t.containerInfo)}var $a,Ka,Ja,qa,Xa={dehydrated:null,retryTime:0};function Za(e,t,r){var n,i=t.mode,o=t.pendingProps,a=No.current,s=!1;if((n=!!(64&t.effectTag))||(n=!!(2&a)&&(null===e||null!==e.memoizedState)),n?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),mi(No,1&a),null===e){if(void 0!==o.fallback&&Ia(t),s){if(s=o.fallback,(o=Gl(null,i,0,null)).return=t,!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Gl(s,i,r,null)).return=t,o.sibling=r,t.memoizedState=Xa,t.child=o,r}return i=o.children,t.memoizedState=null,t.child=Mo(t,null,i,r)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(r=Hl(e,e.pendingProps)).return=t,!(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=s;null!==s;)s.return=r,s=s.sibling;return(i=Hl(i,o)).return=t,r.sibling=i,r.childExpirationTime=0,t.memoizedState=Xa,t.child=r,i}return r=Io(t,e.child,o.children,r),t.memoizedState=null,t.child=r}if(e=e.child,s){if(s=o.fallback,(o=Gl(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(r=Gl(s,i,r,null)).return=t,o.sibling=r,r.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Xa,t.child=o,r}return t.memoizedState=null,t.child=Io(t,e,o.children,r)}function Ya(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),so(e.return,t)}function Qa(e,t,r,n,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function es(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Oa(e,t,n.children,r),2&(n=No.current))n=1&n|2,t.effectTag|=64;else{if(null!==e&&64&e.effectTag)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ya(e,r);else if(19===e.tag)Ya(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(mi(No,n),2&t.mode)switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===Ho(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Qa(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ho(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Qa(t,!0,r,null,o,t.lastEffect);break;case"together":Qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function ts(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&Ul(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=Hl(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Hl(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function rs(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ns(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return wi(t.type)&&Ei(),null;case 3:return zo(),hi(vi),hi(yi),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!Aa(t)||(t.effectTag|=4),Ka(t),null;case 5:Lo(t),r=Oo(Do.current);var o=t.type;if(null!==e&&null!=t.stateNode)Ja(e,t,o,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(a(166));return null}if(e=Oo(Ro.current),Aa(t)){n=t.stateNode,o=t.type;var s=t.memoizedProps;switch(n[Tr]=t,n[_r]=s,o){case"iframe":case"object":case"embed":Jt("load",n);break;case"video":case"audio":for(e=0;e<Ze.length;e++)Jt(Ze[e],n);break;case"source":Jt("error",n);break;case"img":case"image":case"link":Jt("error",n),Jt("load",n);break;case"form":Jt("reset",n),Jt("submit",n);break;case"details":Jt("toggle",n);break;case"input":Ue(n,s),Jt("invalid",n),lr(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Jt("invalid",n),lr(r,"onChange");break;case"textarea":Ie(n,s),Jt("invalid",n),lr(r,"onChange")}for(var l in or(o,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?n.textContent!==c&&(e=["children",c]):"number"==typeof c&&n.textContent!==""+c&&(e=["children",""+c]):S.hasOwnProperty(l)&&null!=c&&lr(r,l)}switch(o){case"input":xe(n),Ce(n,s,!0);break;case"textarea":xe(n),Ae(n);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(n.onclick=cr)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(l=9===r.nodeType?r:r.ownerDocument,e===sr&&(e=De(o)),e===sr?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(o,{is:n.is}):(e=l.createElement(o),"select"===o&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,o),e[Tr]=t,e[_r]=n,$a(e,t,!1,!1),t.stateNode=e,l=ar(o,n),o){case"iframe":case"object":case"embed":Jt("load",e),c=n;break;case"video":case"audio":for(c=0;c<Ze.length;c++)Jt(Ze[c],e);c=n;break;case"source":Jt("error",e),c=n;break;case"img":case"image":case"link":Jt("error",e),Jt("load",e),c=n;break;case"form":Jt("reset",e),Jt("submit",e),c=n;break;case"details":Jt("toggle",e),c=n;break;case"input":Ue(e,n),c=Ee(e,n),Jt("invalid",e),lr(r,"onChange");break;case"option":c=Pe(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},c=i({},n,{value:void 0}),Jt("invalid",e),lr(r,"onChange");break;case"textarea":Ie(e,n),c=_e(e,n),Jt("invalid",e),lr(r,"onChange");break;default:c=n}or(o,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var f=u[s];"style"===s?nr(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Be(e,f):"children"===s?"string"==typeof f?("textarea"!==o||""!==f)&&Le(e,f):"number"==typeof f&&Le(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=f&&lr(r,s):null!=f&&Z(e,s,f,l))}switch(o){case"input":xe(e),Ce(e,n,!1);break;case"textarea":xe(e),Ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+ve(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?Te(e,!!n.multiple,r,!1):null!=n.defaultValue&&Te(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=cr)}Er(o,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(a(166));r=Oo(Do.current),Oo(Ro.current),Aa(t)?(r=t.stateNode,n=t.memoizedProps,r[Tr]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Tr]=t,t.stateNode=r)}return null;case 13:return hi(No),n=t.memoizedState,64&t.effectTag?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Aa(t):(n=null!==(o=e.memoizedState),r||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),r&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&No.current?Hs===As&&(Hs=Ds):(Hs!==As&&Hs!==Ds||(Hs=Os),0!==Js&&null!==Bs&&(Xl(Bs,Ns),Zl(Bs,Js)))),(r||n)&&(t.effectTag|=4),null);case 4:return zo(),Ka(t),null;case 10:return ao(t),null;case 19:if(hi(No),null===(n=t.memoizedState))return null;if(o=!!(64&t.effectTag),null===(s=n.rendering)){if(o)rs(n,!1);else if(Hs!==As||null!==e&&64&e.effectTag)for(s=t.child;null!==s;){if(null!==(e=Ho(s))){for(t.effectTag|=64,rs(n,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)s=r,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),n=n.sibling;return mi(No,1&No.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Ho(s))){if(t.effectTag|=64,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),rs(n,!0),null===n.tail&&"hidden"===n.tailMode&&!s.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Gi()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,o=!0,rs(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=n.last)?r.sibling=s:t.child=s,n.last=s)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=Gi()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Gi(),r.sibling=null,t=No.current,mi(No,o?1&t|2:1&t),r):null}throw Error(a(156,t.tag))}function is(e){switch(e.tag){case 1:wi(e.type)&&Ei();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(zo(),hi(vi),hi(yi),64&(t=e.effectTag))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Lo(e),null;case 13:return hi(No),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return hi(No),null;case 4:return zo(),null;case 10:return ao(e),null;default:return null}}function os(e,t){return{value:e,source:t,stack:ye(t)}}$a=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ka=function(){},Ja=function(e,t,r,n,o){var a=e.memoizedProps;if(a!==n){var s,l,c=t.stateNode;switch(Oo(Ro.current),e=null,r){case"input":a=Ee(c,a),n=Ee(c,n),e=[];break;case"option":a=Pe(c,a),n=Pe(c,n),e=[];break;case"select":a=i({},a,{value:void 0}),n=i({},n,{value:void 0}),e=[];break;case"textarea":a=_e(c,a),n=_e(c,n),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof n.onClick&&(c.onclick=cr)}for(s in or(r,n),r=null,a)if(!n.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(r||(r={}),r[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in n){var u=n[s];if(c=null!=a?a[s]:void 0,n.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(r||(r={}),r[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(r||(r={}),r[l]=u[l])}else r||(e||(e=[]),e.push(s,r)),r=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=u&&lr(o,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}r&&(e=e||[]).push("style",r),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},qa=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var as="function"==typeof WeakSet?WeakSet:Set;function ss(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=ye(r)),null!==r&&ge(r.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ls(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Vl(e,t)}else t.current=null}function cs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:eo(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function us(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function fs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ds(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void fs(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:eo(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&vo(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}vo(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&Er(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&Ot(r)))))}throw Error(a(163))}function ps(e,t,r){switch("function"==typeof zl&&zl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;Ji(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var i=t;try{r()}catch(e){Vl(i,e)}}e=e.next}while(e!==n)}))}break;case 1:ls(t),"function"==typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Vl(e,t)}}(t,r);break;case 5:ls(t);break;case 4:bs(e,t,r)}}function hs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&hs(t)}function ms(e){return 5===e.tag||3===e.tag||4===e.tag}function gs(e){e:{for(var t=e.return;null!==t;){if(ms(t)){var r=t;break e}t=t.return}throw Error(a(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(a(161))}16&r.effectTag&&(Le(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||ms(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?ys(e,r,t):vs(e,r,t)}function ys(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=cr));else if(4!==n&&null!==(e=e.child))for(ys(e,t,r),e=e.sibling;null!==e;)ys(e,t,r),e=e.sibling}function vs(e,t,r){var n=e.tag,i=5===n||6===n;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(vs(e,t,r),e=e.sibling;null!==e;)vs(e,t,r),e=e.sibling}function bs(e,t,r){for(var n,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(n=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:n=n.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,c=o,u=r,f=c;;)if(ps(l,f,u),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(l=n,c=o.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(ps(e,o,r),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function xs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void us(3,t);case 1:case 12:case 17:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,i=null!==e?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(r[_r]=n,"input"===e&&"radio"===n.type&&null!=n.name&&Se(r,n),ar(e,i),t=ar(e,n),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?nr(r,l):"dangerouslySetInnerHTML"===s?Be(r,l):"children"===s?Le(r,l):Z(r,s,l,t)}switch(e){case"input":ke(r,n);break;case"textarea":Me(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?Te(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?Te(r,!!n.multiple,n.defaultValue,!0):Te(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ot(t.containerInfo)));case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Xs=Gi()),null!==r)e:for(e=r;;){if(5===e.tag)o=e.stateNode,n?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=rr("display",i));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ws(t);case 19:return void ws(t)}throw Error(a(163))}function ws(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new as),t.forEach((function(t){var n=Ol.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var Es="function"==typeof WeakMap?WeakMap:Map;function Us(e,t,r){(r=ho(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Qs||(Qs=!0,el=n),ss(e,t)},r}function Ss(e,t,r){(r=ho(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return ss(e,t),n(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===tl?tl=new Set([this]):tl.add(this),ss(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var ks,Cs=Math.ceil,Fs=X.ReactCurrentDispatcher,Ps=X.ReactCurrentOwner,Ts=0,_s=8,Is=16,Ms=32,As=0,Rs=1,Vs=2,Ds=3,Os=4,js=5,zs=Ts,Bs=null,Ls=null,Ns=0,Hs=As,Ws=null,Gs=1073741823,$s=1073741823,Ks=null,Js=0,qs=!1,Xs=0,Zs=500,Ys=null,Qs=!1,el=null,tl=null,rl=!1,nl=null,il=90,ol=null,al=0,sl=null,ll=0;function cl(){return(zs&(Is|Ms))!==Ts?1073741821-(Gi()/10|0):0!==ll?ll:ll=1073741821-(Gi()/10|0)}function ul(e,t,r){if(!(2&(t=t.mode)))return 1073741823;var n=$i();if(!(4&t))return 99===n?1073741823:1073741822;if((zs&Is)!==Ts)return Ns;if(null!==r)e=Qi(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Qi(e,150,100);break;case 97:case 96:e=Qi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Bs&&e===Ns&&--e,e}function fl(e,t){if(50<al)throw al=0,sl=null,Error(a(185));if(null!==(e=dl(e,t))){var r=$i();1073741823===t?(zs&_s)!==Ts&&(zs&(Is|Ms))===Ts?gl(e):(hl(e),zs===Ts&&Zi()):hl(e),(4&zs)===Ts||98!==r&&99!==r||(null===ol?ol=new Map([[e,t]]):(void 0===(r=ol.get(e))||r>t)&&ol.set(e,t))}}function dl(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,i=null;if(null===n&&3===e.tag)i=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){i=n.stateNode;break}n=n.return}return null!==i&&(Bs===i&&(Ul(t),Hs===Os&&Xl(i,Ns)),Zl(i,t)),i}function pl(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!ql(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function hl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Xi(gl.bind(null,e));else{var t=pl(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=cl();if(1073741823===t?n=99:1===t||2===t?n=95:n=0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=n)return;r!==ji&&Ti(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?Xi(gl.bind(null,e)):qi(n,ml.bind(null,e),{timeout:10*(1073741821-t)-Gi()}),e.callbackNode=t}}}function ml(e,t){if(ll=0,t)return Yl(e,t=cl()),hl(e),null;var r=pl(e);if(0!==r){if(t=e.callbackNode,(zs&(Is|Ms))!==Ts)throw Error(a(327));if(Ml(),e===Bs&&r===Ns||bl(e,r),null!==Ls){var n=zs;zs|=Is;for(var i=wl();;)try{kl();break}catch(t){xl(e,t)}if(oo(),zs=n,Fs.current=i,Hs===Rs)throw t=Ws,bl(e,r),Xl(e,r),hl(e),t;if(null===Ls)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Hs,Bs=null,n){case As:case Rs:throw Error(a(345));case Vs:Yl(e,2<r?2:r);break;case Ds:if(Xl(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Pl(i)),1073741823===Gs&&10<(i=Xs+Zs-Gi())){if(qs){var o=e.lastPingedTime;if(0===o||o>=r){e.lastPingedTime=r,bl(e,r);break}}if(0!==(o=pl(e))&&o!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=Sr(Tl.bind(null,e),i);break}Tl(e);break;case Os:if(Xl(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Pl(i)),qs&&(0===(i=e.lastPingedTime)||i>=r)){e.lastPingedTime=r,bl(e,r);break}if(0!==(i=pl(e))&&i!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==$s?n=10*(1073741821-$s)-Gi():1073741823===Gs?n=0:(n=10*(1073741821-Gs)-5e3,0>(n=(i=Gi())-n)&&(n=0),(r=10*(1073741821-r)-i)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=Sr(Tl.bind(null,e),n);break}Tl(e);break;case js:if(1073741823!==Gs&&null!==Ks){o=Gs;var s=Ks;if(0>=(n=0|s.busyMinDurationMs)?n=0:(i=0|s.busyDelayMs,n=(o=Gi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+n-o),10<n){Xl(e,r),e.timeoutHandle=Sr(Tl.bind(null,e),n);break}}Tl(e);break;default:throw Error(a(329))}if(hl(e),e.callbackNode===t)return ml.bind(null,e)}}return null}function gl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(zs&(Is|Ms))!==Ts)throw Error(a(327));if(Ml(),e===Bs&&t===Ns||bl(e,t),null!==Ls){var r=zs;zs|=Is;for(var n=wl();;)try{Sl();break}catch(t){xl(e,t)}if(oo(),zs=r,Fs.current=n,Hs===Rs)throw r=Ws,bl(e,t),Xl(e,t),hl(e),r;if(null!==Ls)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Bs=null,Tl(e),hl(e)}return null}function yl(e,t){var r=zs;zs|=1;try{return e(t)}finally{(zs=r)===Ts&&Zi()}}function vl(e,t){var r=zs;zs&=-2,zs|=_s;try{return e(t)}finally{(zs=r)===Ts&&Zi()}}function bl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,kr(r)),null!==Ls)for(r=Ls.return;null!==r;){var n=r;switch(n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ei();break;case 3:zo(),hi(vi),hi(yi);break;case 5:Lo(n);break;case 4:zo();break;case 13:case 19:hi(No);break;case 10:ao(n)}r=r.return}Bs=e,Ls=Hl(e.current,null),Ns=t,Hs=As,Ws=null,$s=Gs=1073741823,Ks=null,Js=0,qs=!1}function xl(e,t){for(;;){try{if(oo(),Go.current=Ea,Zo)for(var r=Jo.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Ko=0,Xo=qo=Jo=null,Zo=!1,null===Ls||null===Ls.return)return Hs=Rs,Ws=t,Ls=null;e:{var i=e,o=Ls.return,a=Ls,s=t;if(t=Ns,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(!(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=!!(1&No.current),f=o;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(d){var m=f.updateQueue;if(null===m){var g=new Set;g.add(l),f.updateQueue=g}else m.add(l);if(!(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=ho(1073741823,null);y.tag=2,mo(a,y)}a.expirationTime=1073741823;break e}s=void 0,a=t;var v=i.pingCache;if(null===v?(v=i.pingCache=new Es,s=new Set,v.set(l,s)):void 0===(s=v.get(l))&&(s=new Set,v.set(l,s)),!s.has(a)){s.add(a);var b=Dl.bind(null,i,l,a);l.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(a))}Hs!==js&&(Hs=Vs),s=os(s,a),f=o;do{switch(f.tag){case 3:l=s,f.effectTag|=4096,f.expirationTime=t,go(f,Us(f,l,t));break e;case 1:l=s;var x=f.type,w=f.stateNode;if(!(64&f.effectTag||"function"!=typeof x.getDerivedStateFromError&&(null===w||"function"!=typeof w.componentDidCatch||null!==tl&&tl.has(w)))){f.effectTag|=4096,f.expirationTime=t,go(f,Ss(f,l,t));break e}}f=f.return}while(null!==f)}Ls=Fl(Ls)}catch(e){t=e;continue}break}}function wl(){var e=Fs.current;return Fs.current=Ea,null===e?Ea:e}function El(e,t){e<Gs&&2<e&&(Gs=e),null!==t&&e<$s&&2<e&&($s=e,Ks=t)}function Ul(e){e>Js&&(Js=e)}function Sl(){for(;null!==Ls;)Ls=Cl(Ls)}function kl(){for(;null!==Ls&&!zi();)Ls=Cl(Ls)}function Cl(e){var t=ks(e.alternate,e,Ns);return e.memoizedProps=e.pendingProps,null===t&&(t=Fl(e)),Ps.current=null,t}function Fl(e){Ls=e;do{var t=Ls.alternate;if(e=Ls.return,2048&Ls.effectTag){if(null!==(t=is(Ls)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=ns(t,Ls,Ns),1===Ns||1!==Ls.childExpirationTime){for(var r=0,n=Ls.child;null!==n;){var i=n.expirationTime,o=n.childExpirationTime;i>r&&(r=i),o>r&&(r=o),n=n.sibling}Ls.childExpirationTime=r}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ls.firstEffect),null!==Ls.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ls.firstEffect),e.lastEffect=Ls.lastEffect),1<Ls.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ls:e.firstEffect=Ls,e.lastEffect=Ls))}if(null!==(t=Ls.sibling))return t;Ls=e}while(null!==Ls);return Hs===As&&(Hs=js),null}function Pl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Tl(e){var t=$i();return Ji(99,_l.bind(null,e,t)),null}function _l(e,t){do{Ml()}while(null!==nl);if((zs&(Is|Ms))!==Ts)throw Error(a(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Pl(r);if(e.firstPendingTime=i,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Bs&&(Ls=Bs=null,Ns=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,i=r.firstEffect):i=r:i=r.firstEffect,null!==i){var o=zs;zs|=Ms,Ps.current=null,xr=Kt;var s=hr();if(mr(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{l.nodeType,f.nodeType}catch(e){l=null;break e}var d=0,p=-1,h=-1,m=0,g=0,y=s,v=null;t:for(;;){for(var b;y!==l||0!==u&&3!==y.nodeType||(p=d+u),y!==f||0!==c&&3!==y.nodeType||(h=d+c),3===y.nodeType&&(d+=y.nodeValue.length),null!==(b=y.firstChild);)v=y,y=b;for(;;){if(y===s)break t;if(v===l&&++m===u&&(p=d),v===f&&++g===c&&(h=d),null!==(b=y.nextSibling))break;v=(y=v).parentNode}y=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;wr={activeElementDetached:null,focusedElem:s,selectionRange:l},Kt=!1,Ys=i;do{try{Il()}catch(e){if(null===Ys)throw Error(a(330));Vl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);Ys=i;do{try{for(s=e,l=t;null!==Ys;){var x=Ys.effectTag;if(16&x&&Le(Ys.stateNode,""),128&x){var w=Ys.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&x){case 2:gs(Ys),Ys.effectTag&=-3;break;case 6:gs(Ys),Ys.effectTag&=-3,xs(Ys.alternate,Ys);break;case 1024:Ys.effectTag&=-1025;break;case 1028:Ys.effectTag&=-1025,xs(Ys.alternate,Ys);break;case 4:xs(Ys.alternate,Ys);break;case 8:bs(s,u=Ys,l),hs(u)}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));Vl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);if(E=wr,w=hr(),x=E.focusedElem,l=E.selectionRange,w!==x&&x&&x.ownerDocument&&pr(x.ownerDocument.documentElement,x)){null!==l&&mr(x)&&(w=l.start,void 0===(E=l.end)&&(E=w),"selectionStart"in x?(x.selectionStart=w,x.selectionEnd=Math.min(E,x.value.length)):(E=(w=x.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),u=x.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!E.extend&&s>l&&(u=l,l=s,s=u),u=dr(x,s),f=dr(x,l),u&&f&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==f.node||E.focusOffset!==f.offset)&&((w=w.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),s>l?(E.addRange(w),E.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),E.addRange(w))))),w=[];for(E=x;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof x.focus&&x.focus(),x=0;x<w.length;x++)(E=w[x]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Kt=!!xr,wr=xr=null,e.current=r,Ys=i;do{try{for(x=e;null!==Ys;){var U=Ys.effectTag;if(36&U&&ds(x,Ys.alternate,Ys),128&U){w=void 0;var S=Ys.ref;if(null!==S){var k=Ys.stateNode;Ys.tag,w=k,"function"==typeof S?S(w):S.current=w}}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));Vl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);Ys=null,Bi(),zs=o}else e.current=r;if(rl)rl=!1,nl=e,il=t;else for(Ys=i;null!==Ys;)t=Ys.nextEffect,Ys.nextEffect=null,Ys=t;if(0===(t=e.firstPendingTime)&&(tl=null),1073741823===t?e===sl?al++:(al=0,sl=e):al=0,"function"==typeof jl&&jl(r.stateNode,n),hl(e),Qs)throw Qs=!1,e=el,el=null,e;return(zs&_s)!==Ts||Zi(),null}function Il(){for(;null!==Ys;){var e=Ys.effectTag;256&e&&cs(Ys.alternate,Ys),!(512&e)||rl||(rl=!0,qi(97,(function(){return Ml(),null}))),Ys=Ys.nextEffect}}function Ml(){if(90!==il){var e=97<il?97:il;return il=90,Ji(e,Al)}}function Al(){if(null===nl)return!1;var e=nl;if(nl=null,(zs&(Is|Ms))!==Ts)throw Error(a(331));var t=zs;for(zs|=Ms,e=e.current.firstEffect;null!==e;){try{var r=e;if(512&r.effectTag)switch(r.tag){case 0:case 11:case 15:case 22:us(5,r),fs(5,r)}}catch(t){if(null===e)throw Error(a(330));Vl(e,t)}r=e.nextEffect,e.nextEffect=null,e=r}return zs=t,Zi(),!0}function Rl(e,t,r){mo(e,t=Us(e,t=os(r,t),1073741823)),null!==(e=dl(e,1073741823))&&hl(e)}function Vl(e,t){if(3===e.tag)Rl(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){Rl(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===tl||!tl.has(n))){mo(r,e=Ss(r,e=os(t,e),1073741823)),null!==(r=dl(r,1073741823))&&hl(r);break}}r=r.return}}function Dl(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),Bs===e&&Ns===r?Hs===Os||Hs===Ds&&1073741823===Gs&&Gi()-Xs<Zs?bl(e,Ns):qs=!0:ql(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,hl(e)))}function Ol(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(t=ul(t=cl(),e,null)),null!==(e=dl(e,t))&&hl(e)}ks=function(e,t,r){var n=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||vi.current)Da=!0;else{if(n<r){switch(Da=!1,t.tag){case 3:Ga(t),Ra();break;case 5:if(Bo(t),4&t.mode&&1!==r&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:wi(t.type)&&ki(t);break;case 4:jo(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,i=t.type._context,mi(to,i._currentValue),i._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?Za(e,t,r):(mi(No,1&No.current),null!==(t=ts(e,t,r))?t.sibling:null);mi(No,1&No.current);break;case 19:if(n=t.childExpirationTime>=r,64&e.effectTag){if(n)return es(e,t,r);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),mi(No,No.current),!n)return null}return ts(e,t,r)}Da=!1}}else Da=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=xi(t,yi.current),lo(t,r),i=ea(null,t,n,e,i,r),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,wi(n)){var o=!0;ki(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,fo(t);var s=n.getDerivedStateFromProps;"function"==typeof s&&wo(t,n,s,e),i.updater=Eo,t.stateNode=i,i._reactInternalFiber=t,Co(t,n,e,r),t=Wa(null,t,n,!0,o,r)}else t.tag=0,Oa(null,t,i,r),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Nl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===fe)return 14}return 2}(i),e=eo(i,e),o){case 0:t=Na(null,t,i,e,r);break e;case 1:t=Ha(null,t,i,e,r);break e;case 11:t=ja(null,t,i,e,r);break e;case 14:t=za(null,t,i,eo(i.type,e),n,r);break e}throw Error(a(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,Na(e,t,n,i=t.elementType===n?i:eo(n,i),r);case 1:return n=t.type,i=t.pendingProps,Ha(e,t,n,i=t.elementType===n?i:eo(n,i),r);case 3:if(Ga(t),n=t.updateQueue,null===e||null===n)throw Error(a(282));if(n=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,po(e,t),yo(t,n,null,r),(n=t.memoizedState.element)===i)Ra(),t=ts(e,t,r);else{if((i=t.stateNode.hydrate)&&(Fa=Cr(t.stateNode.containerInfo.firstChild),Ca=t,i=Pa=!0),i)for(r=Mo(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Oa(e,t,n,r),Ra();t=t.child}return t;case 5:return Bo(t),null===e&&Ia(t),n=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Ur(n,i)?s=null:null!==o&&Ur(n,o)&&(t.effectTag|=16),La(e,t),4&t.mode&&1!==r&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Oa(e,t,s,r),t=t.child),t;case 6:return null===e&&Ia(t),null;case 13:return Za(e,t,r);case 4:return jo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Io(t,null,n,r):Oa(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,ja(e,t,n,i=t.elementType===n?i:eo(n,i),r);case 7:return Oa(e,t,t.pendingProps,r),t.child;case 8:case 12:return Oa(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(mi(to,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=Hn(l,o)?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!vi.current){t=ts(e,t,r);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===n&&u.observedBits&o){1===l.tag&&((u=ho(r,null)).tag=2,mo(l,u)),l.expirationTime<r&&(l.expirationTime=r),null!==(u=l.alternate)&&u.expirationTime<r&&(u.expirationTime=r),so(l.return,r),c.expirationTime<r&&(c.expirationTime=r);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Oa(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=(o=t.pendingProps).children,lo(t,r),n=n(i=co(i,o.unstable_observedBits)),t.effectTag|=1,Oa(e,t,n,r),t.child;case 14:return o=eo(i=t.type,t.pendingProps),za(e,t,i,o=eo(i.type,o),n,r);case 15:return Ba(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:eo(n,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,wi(n)?(e=!0,ki(t)):e=!1,lo(t,r),So(t,n,i),Co(t,n,i,r),Wa(null,t,n,!0,e,r);case 19:return es(e,t,r)}throw Error(a(156,t.tag))};var jl=null,zl=null;function Bl(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ll(e,t,r,n){return new Bl(e,t,r,n)}function Nl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var r=e.alternate;return null===r?((r=Ll(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Wl(e,t,r,n,i,o){var s=2;if(n=e,"function"==typeof e)Nl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case re:return Gl(r.children,i,o,t);case se:s=8,i|=7;break;case ne:s=8,i|=1;break;case ie:return(e=Ll(12,r,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case ce:return(e=Ll(13,r,t,i)).type=ce,e.elementType=ce,e.expirationTime=o,e;case ue:return(e=Ll(19,r,t,i)).elementType=ue,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case fe:s=14;break e;case de:s=16,n=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ll(s,r,t,i)).elementType=e,t.type=n,t.expirationTime=o,t}function Gl(e,t,r,n){return(e=Ll(7,e,n,t)).expirationTime=r,e}function $l(e,t,r){return(e=Ll(6,e,null,t)).expirationTime=r,e}function Kl(e,t,r){return(t=Ll(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function ql(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function Xl(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Zl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Yl(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function Ql(e,t,r,n){var i=t.current,o=cl(),s=bo.suspense;o=ul(o,i,s);e:if(r){t:{if(et(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(a(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(wi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===r.tag){var c=r.type;if(wi(c)){r=Si(r,c,l);break e}}r=l}else r=gi;return null===t.context?t.context=r:t.pendingContext=r,(t=ho(o,s)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),mo(i,t),fl(i,o),o}function ec(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function rc(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function nc(e,t,r){var n=new Jl(e,t,r=null!=r&&!0===r.hydrate),i=Ll(3,null,null,2===t?7:1===t?3:0);n.current=i,i.stateNode=n,fo(i),e[Ir]=n.current,r&&0!==t&&function(e,t){var r=Qe(t);Ft.forEach((function(e){mt(e,t,r)})),Pt.forEach((function(e){mt(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=ec(a);s.call(e)}}Ql(t,a,e,i)}else{if(o=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new nc(e,0,t?{hydrate:!0}:void 0)}(r,n),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=ec(a);l.call(e)}}vl((function(){Ql(t,a,e,i)}))}return ec(a)}function ac(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)}nc.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},nc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,(function(){t[Ir]=null}))},gt=function(e){if(13===e.tag){var t=Qi(cl(),150,100);fl(e,t),rc(e,t)}},yt=function(e){13===e.tag&&(fl(e,3),rc(e,3))},vt=function(e){if(13===e.tag){var t=cl();fl(e,t=ul(t,e,null)),rc(e,t)}},P=function(e,t,r){switch(t){case"input":if(ke(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Vr(n);if(!i)throw Error(a(90));we(n),ke(n,i)}}}break;case"textarea":Me(e,r);break;case"select":null!=(t=r.value)&&Te(e,!!r.multiple,t,!1)}},R=yl,V=function(e,t,r,n,i){var o=zs;zs|=4;try{return Ji(98,e.bind(null,t,r,n,i))}finally{(zs=o)===Ts&&Zi()}},D=function(){(zs&(1|Is|Ms))===Ts&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e,t){Yl(t,e),hl(t)})),Zi()}}(),Ml())},O=function(e,t){var r=zs;zs|=2;try{return e(t)}finally{(zs=r)===Ts&&Zi()}};var sc={Events:[Ar,Rr,Vr,C,U,Nr,function(e){ot(e,Lr)},M,A,Yt,lt,Ml,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);jl=function(e){try{t.onCommitFiberRoot(r,e,void 0,!(64&~e.current.effectTag))}catch(e){}},zl=function(e){try{t.onCommitFiberUnmount(r,e)}catch(e){}}}catch(e){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Mr,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.createPortal=ac},961:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(551)},287:(e,t,r)=>{"use strict";var n=r(228),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function x(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}function w(){}function E(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=x.prototype;var U=E.prototype=new w;U.constructor=E,n(U,x.prototype),U.isPureReactComponent=!0;var S={current:null},k=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,r){var n,i={},a=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,n)&&!C.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===i[n]&&(i[n]=l[n]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:S.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var T=/\/+/g,_=[];function I(e,t,r,n){if(_.length){var i=_.pop();return i.result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>_.length&&_.push(e)}function A(e,t,r,n){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return r(n,e,""===t?"."+V(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=t+V(i=e[l],l);s+=A(i,c,r,n)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=g&&e[g]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),l=0;!(i=e.next()).done;)s+=A(i=i.value,c=t+V(i,l++),r,n);else if("object"===i)throw r=""+e,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return s}function R(e,t,r){return null==e?0:A(e,"",t,r)}function V(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function O(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j(e,n,r,(function(e){return e})):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+r)),n.push(e))}function j(e,t,r,n,i){var o="";null!=r&&(o=(""+r).replace(T,"$&/")+"/"),R(e,O,t=I(t,o,n,i)),M(t)}var z={current:null};function B(){var e=z.current;if(null===e)throw Error(y(321));return e}var L={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:function(e,t,r){if(null==e)return e;var n=[];return j(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;R(e,D,t=I(null,null,t,r)),M(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return j(e,t,null,(function(e){return e})),t},only:function(e){if(!P(e))throw Error(y(143));return e}},t.Component=x,t.Fragment=s,t.Profiler=c,t.PureComponent=E,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,r){if(null==e)throw Error(y(267,e));var i=n({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)k.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=F,t.createFactory=function(e){var t=F.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return B().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,r){return B().useReducer(e,t,r)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},540:(e,t,r)=>{"use strict";e.exports=r(287)},463:(e,t)=>{"use strict";var r,n,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(c,0))},n=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var g=d.now();t.unstable_now=function(){return d.now()-g}}var y=!1,v=null,b=-1,x=5,w=0;o=function(){return t.unstable_now()>=w},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,U=E.port2;E.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();w=e+x;try{v(!0,e)?U.postMessage(null):(y=!1,v=null)}catch(e){throw U.postMessage(null),e}}else y=!1},r=function(e){v=e,y||(y=!0,U.postMessage(null))},n=function(e,r){b=p((function(){e(t.unstable_now())}),r)},i=function(){h(b),b=-1}}function S(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(!(void 0!==i&&0<F(i,t)))break e;e[n]=t,e[r]=i,r=n}}function k(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>F(a,r))void 0!==l&&0>F(l,a)?(e[n]=l,e[s]=r,n=s):(e[n]=a,e[o]=r,n=o);else{if(!(void 0!==l&&0>F(l,r)))break e;e[n]=l,e[s]=r,n=s}}}return t}return null}function F(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var P=[],T=[],_=1,I=null,M=3,A=!1,R=!1,V=!1;function D(e){for(var t=k(T);null!==t;){if(null===t.callback)C(T);else{if(!(t.startTime<=e))break;C(T),t.sortIndex=t.expirationTime,S(P,t)}t=k(T)}}function O(e){if(V=!1,D(e),!R)if(null!==k(P))R=!0,r(j);else{var t=k(T);null!==t&&n(O,t.startTime-e)}}function j(e,r){R=!1,V&&(V=!1,i()),A=!0;var a=M;try{for(D(r),I=k(P);null!==I&&(!(I.expirationTime>r)||e&&!o());){var s=I.callback;if(null!==s){I.callback=null,M=I.priorityLevel;var l=s(I.expirationTime<=r);r=t.unstable_now(),"function"==typeof l?I.callback=l:I===k(P)&&C(P),D(r)}else C(P);I=k(P)}if(null!==I)var c=!0;else{var u=k(T);null!==u&&n(O,u.startTime-r),c=!1}return c}finally{I=null,M=a,A=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||A||(R=!0,r(j))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return k(P)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var r=M;M=t;try{return e()}finally{M=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=M;M=e;try{return t()}finally{M=r}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),l=s;return e={id:_++,callback:o,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,S(T,e),null===k(P)&&e===k(T)&&(V?i():V=!0,n(O,l-s))):(e.sortIndex=a,S(P,e),R||A||(R=!0,r(j))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var r=k(P);return r!==I&&null!==I&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<I.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=M;return function(){var r=M;M=t;try{return e.apply(this,arguments)}finally{M=r}}}},982:(e,t,r)=>{"use strict";e.exports=r(463)},947:(e,t,r)=>{"use strict";r.d(t,{BO:()=>Nt,Bk:()=>pe,E9:()=>or,GS:()=>ir,GW:()=>et,H1:()=>w,IH:()=>Ct,Kl:()=>me,UC:()=>he,Xp:()=>vr,_8:()=>Ft,fP:()=>Tt,gd:()=>ve,oz:()=>Ar,pe:()=>Dr,sf:()=>kr,yT:()=>ze,zo:()=>Se});var n=r(540),i=r(159),o=r(961),a=Object.defineProperty,s=(e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0,configurable:!0,set:e=>t[r]=()=>e})};if("function"!=typeof n.createContext){throw new Error(['Remotion requires React.createContext, but it is "undefined".','If you are in a React Server Component, turn it into a client component by adding "use client" at the top of the file.',"","Before:",' import {useCurrentFrame} from "remotion";',"","After:",' "use client";',' import {useCurrentFrame} from "remotion";'].join("\n"))}var l=(0,n.createContext)({setClipRegion:()=>{throw new Error("NativeLayers not set")},clipRegion:null}),c=({children:e})=>{const[t,r]=(0,n.useState)(null),o=(0,n.useMemo)((()=>({setClipRegion:r,clipRegion:t})),[t,r]);return"undefined"!=typeof window&&(0,n.useLayoutEffect)((()=>{window.remotion_getClipRegion=()=>t}),[t,r]),(0,i.jsx)(l.Provider,{value:o,children:e})},u=function(){return["NOD","E_EN","V"].join("")},f=()=>["e","nv"].join(""),d=()=>{const e="undefined"!=typeof window&&window.remotion_isPlayer,t="undefined"!=typeof window&&void 0!==window.process&&void 0!==window.process.env&&("test"===window.process[f()][u()]||"production"===window.process[f()][u()]&&"undefined"!=typeof window&&void 0!==window.remotion_puppeteerTimeout);return{isStudio:"undefined"!=typeof window&&window.remotion_isStudio,isRendering:t,isPlayer:e}},p=n.createElement,h=[],m=()=>{if(!d().isStudio)return;const e=new Proxy(p,{apply(e,t,r){if(h.includes(r[0])){const[n,i,...o]=r,a={...i??{},stack:(new Error).stack};return Reflect.apply(e,t,[n,a,...o])}return Reflect.apply(e,t,r)}});n.createElement=e},g=e=>{h.push(e),m()},y=(0,n.createContext)(!1),v=()=>(0,n.useContext)(y);function b(e){return Boolean(e)}var x="4.0.208",w=(0,n.forwardRef)(((e,t)=>{const{style:r,...o}=e,a=(0,n.useMemo)((()=>({position:"absolute",top:0,left:0,right:0,bottom:0,width:"100%",height:"100%",display:"flex",flexDirection:"column",...r})),[r]);return(0,i.jsx)("div",{ref:t,style:a,...o})})),E=(0,n.createContext)(null),U=n.createContext({registerSequence:()=>{throw new Error("SequenceManagerContext not initialized")},unregisterSequence:()=>{throw new Error("SequenceManagerContext not initialized")},sequences:[]}),S=n.createContext({hidden:{},setHidden:()=>{throw new Error("SequenceVisibilityToggle not initialized")}}),k=({children:e})=>{const[t,r]=(0,n.useState)([]),[o,a]=(0,n.useState)({}),s=(0,n.useCallback)((e=>{r((t=>[...t,e]))}),[]),l=(0,n.useCallback)((e=>{r((t=>t.filter((t=>t.id!==e))))}),[]),c=(0,n.useMemo)((()=>({registerSequence:s,sequences:t,unregisterSequence:l})),[s,t,l]),u=(0,n.useMemo)((()=>({hidden:o,setHidden:a})),[o]);return(0,i.jsx)(U.Provider,{value:c,children:(0,i.jsx)(S.Provider,{value:u,children:e})})},C=(0,n.createContext)({getNonce:()=>0,fastRefreshes:0}),F=()=>{const e=(0,n.useContext)(C),[t,r]=(0,n.useState)((()=>e.getNonce())),i=(0,n.useRef)(e);return(0,n.useEffect)((()=>{i.current!==e&&(i.current=e,r(e.getNonce))}),[e]),t},P={};s(P,{useTimelineSetFrame:()=>le,useTimelinePosition:()=>se,usePlayingState:()=>ce,persistCurrentFrame:()=>ie,getInitialFrameState:()=>oe,getFrameForComposition:()=>ae,TimelineContext:()=>re,SetTimelineContext:()=>ne});var T=(0,n.createContext)({compositions:[],registerComposition:()=>{},unregisterComposition:()=>{},registerFolder:()=>{},unregisterFolder:()=>{},setCurrentCompositionMetadata:()=>{},updateCompositionDefaultProps:()=>{},folders:[],currentCompositionMetadata:null,canvasContent:null,setCanvasContent:()=>{}}),_=(0,n.createContext)({props:{},updateProps:()=>{throw new Error("Not implemented")},resetUnsaved:()=>{throw new Error("Not implemented")}}),I=n.createRef(),M=({children:e})=>{const[t,r]=n.useState({}),o=(0,n.useCallback)((({defaultProps:e,id:t,newProps:n})=>{r((r=>({...r,[t]:"function"==typeof n?n(r[t]??e):n})))}),[]),a=(0,n.useCallback)((()=>{r({})}),[]);(0,n.useImperativeHandle)(I,(()=>({getProps:()=>t,setProps:r})),[t]);const s=(0,n.useMemo)((()=>({props:t,updateProps:o,resetUnsaved:a})),[t,a,o]);return(0,i.jsx)(_.Provider,{value:s,children:e})},A={"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";"},R={},V=e=>e.startsWith("/")?V(e.substring(1)):e,D=e=>{if(e.startsWith("http://")||e.startsWith("https://"))throw new TypeError(`staticFile() does not support remote URLs - got "${e}". Instead, pass the URL without wrapping it in staticFile(). See: https://remotion.dev/docs/staticfile-remote-urls`);if(e.startsWith("..")||e.startsWith("./"))throw new TypeError(`staticFile() does not support relative paths - got "${e}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);if(e.startsWith("/Users")||e.startsWith("/home")||e.startsWith("/tmp")||e.startsWith("/etc")||e.startsWith("/opt")||e.startsWith("/var")||e.startsWith("C:")||e.startsWith("D:")||e.startsWith("E:"))throw new TypeError(`staticFile() does not support absolute paths - got "${e}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);if(e.startsWith("public/"))throw new TypeError(`Do not include the public/ prefix when using staticFile() - got "${e}". See: https://remotion.dev/docs/staticfile-relative-paths`);const t=(e=>{for(const t of Object.keys(A))if(e.includes(t))return{containsHex:!0,hexCode:t};return{containsHex:!1}})(e);var r;t.containsHex&&(r=`WARNING: You seem to pass an already encoded path (path contains ${t.hexCode}). Since Remotion 4.0, the encoding is done by staticFile() itself. You may want to remove a encodeURIComponent() wrapping.`,R[r]||(console.warn(r),R[r]=!0));const n=(e=>e.split("/").map((e=>encodeURIComponent(e))).join("/"))(e),i=(e=>{if("undefined"!=typeof window&&window.remotion_staticBase){if(e.startsWith(window.remotion_staticBase))throw new Error(`The value "${e}" is already prefixed with the static base ${window.remotion_staticBase}. You don't need to call staticFile() on it.`);return`${window.remotion_staticBase}/${V(e)}`}return`/${V(e)}`})(n);return i.startsWith("/")?i:`/${i}`},O="remotion-date:",j="remotion-file:",z=({data:e,indent:t,staticBase:r})=>{let n=!1,i=!1,o=!1,a=!1;try{return{serializedString:JSON.stringify(e,(function(e,t){const s=this[e];return s instanceof Date?(n=!0,`${O}${s.toISOString()}`):s instanceof Map?(o=!0,t):s instanceof Set?(a=!0,t):"string"==typeof s&&null!==r&&s.startsWith(r)?(i=!0,`${j}${s.replace(r+"/","")}`):t}),t),customDateUsed:n,customFileUsed:i,mapUsed:o,setUsed:a}}catch(e){throw new Error("Could not serialize the passed input props to JSON: "+e.message)}},B=e=>JSON.parse(e,((e,t)=>"string"==typeof t&&t.startsWith(O)?new Date(t.replace(O,"")):"string"==typeof t&&t.startsWith(j)?D(t.replace(j,"")):t)),L=e=>d().isStudio?B(z({data:e,indent:2,staticBase:window.remotion_staticBase}).serializedString):e,N=!1,H=()=>{if("undefined"==typeof window)return N||(N=!0,console.warn("Called `getInputProps()` on the server. This function is not available server-side and has returned an empty object."),console.warn("To hide this warning, don't call this function on the server:"),console.warn(" typeof window === 'undefined' ? {} : getInputProps()")),{};if(d().isPlayer)throw new Error("You cannot call `getInputProps()` from a <Player>. Instead, the props are available as React props from component that you passed as `component` prop.");const e=window.remotion_inputProps;if(!e)return{};return B(e)},W=["h264","h265","vp8","vp9","mp3","aac","wav","prores","h264-mkv","h264-ts","gif"];function G(e,t,r){if("number"!=typeof e)throw new Error(`The "${t}" prop ${r} must be a number, but you passed a value of type ${typeof e}`);if(isNaN(e))throw new TypeError(`The "${t}" prop ${r} must not be NaN, but is NaN.`);if(!Number.isFinite(e))throw new TypeError(`The "${t}" prop ${r} must be finite, but is ${e}.`);if(e%1!=0)throw new TypeError(`The "${t}" prop ${r} must be an integer, but is ${e}.`);if(e<=0)throw new TypeError(`The "${t}" prop ${r} must be positive, but got ${e}.`)}function $(e,t){const{allowFloats:r,component:n}=t;if(void 0===e)throw new Error(`The "durationInFrames" prop ${n} is missing.`);if("number"!=typeof e)throw new Error(`The "durationInFrames" prop ${n} must be a number, but you passed a value of type ${typeof e}`);if(e<=0)throw new TypeError(`The "durationInFrames" prop ${n} must be positive, but got ${e}.`);if(!r&&e%1!=0)throw new TypeError(`The "durationInFrames" prop ${n} must be an integer, but got ${e}.`);if(!Number.isFinite(e))throw new TypeError(`The "durationInFrames" prop ${n} must be finite, but got ${e}.`)}function K(e,t,r){if("number"!=typeof e)throw new Error(`"fps" must be a number, but you passed a value of type ${typeof e} ${t}`);if(!Number.isFinite(e))throw new Error(`"fps" must be a finite, but you passed ${e} ${t}`);if(isNaN(e))throw new Error(`"fps" must not be NaN, but got ${e} ${t}`);if(e<=0)throw new TypeError(`"fps" must be positive, but got ${e} ${t}`);if(r&&e>50)throw new TypeError("The FPS for a GIF cannot be higher than 50. Use the --every-nth-frame option to lower the FPS: https://remotion.dev/docs/render-as-gif")}var J=({calculated:e,compositionId:t,compositionFps:r,compositionHeight:n,compositionWidth:i,compositionDurationInFrames:o})=>{const a=`calculated by calculateMetadata() for the composition "${t}"`,s=`of the "<Composition />" component with the id "${t}"`,l=e?.width??i??void 0;G(l,"width",e?.width?a:s);const c=e?.height??n??void 0;G(c,"height",e?.height?a:s);const u=e?.fps??r??null;K(u,e?.fps?a:s,!1);const f=e?.durationInFrames??o??null;$(f,{allowFloats:!1,component:`of the "<Composition />" component with the id "${t}"`});const d=e?.defaultCodec;return function(e,t){if(void 0!==e){if("string"!=typeof e)throw new TypeError(`The "defaultCodec" prop ${t} must be a string, but you passed a value of type ${typeof e}.`);if(!W.includes(e))throw new Error(`The "defaultCodec" prop ${t} must be one of ${W.join(", ")}, but you passed ${e}.`)}}(d,a),{width:l,height:c,fps:u,durationInFrames:f,defaultCodec:d}},q=({calculateMetadata:e,signal:t,defaultProps:r,originalProps:n,compositionId:i,compositionDurationInFrames:o,compositionFps:a,compositionHeight:s,compositionWidth:l})=>{const c=e?e({defaultProps:r,props:n,abortSignal:t,compositionId:i}):null;if(null!==c&&"object"==typeof c&&"then"in c)return c.then((e=>{const{height:t,width:c,durationInFrames:u,fps:f,defaultCodec:d}=J({calculated:e,compositionDurationInFrames:o,compositionFps:a,compositionHeight:s,compositionWidth:l,compositionId:i});return{width:c,height:t,fps:f,durationInFrames:u,id:i,defaultProps:L(r),props:L(e.props??n),defaultCodec:d??null}}));const u=J({calculated:c,compositionDurationInFrames:o,compositionFps:a,compositionHeight:s,compositionWidth:l,compositionId:i});return null===c?{...u,id:i,defaultProps:L(r??{}),props:L(n),defaultCodec:null}:{...u,id:i,defaultProps:L(r??{}),props:L(c.props??n),defaultCodec:c.defaultCodec??null}},X=(0,n.createContext)(null),Z=(0,n.createRef)(),Y=e=>Boolean(e.calculateMetadata),Q=({children:e})=>{const[t,r]=(0,n.useState)(null),{compositions:o,canvasContent:a,currentCompositionMetadata:s}=(0,n.useContext)(T),{fastRefreshes:l}=(0,n.useContext)(C),c=(0,n.useMemo)((()=>o.find((e=>a&&"composition"===a.type&&a.compositionId===e.id))),[a,o]),u=o.find((e=>e.id===t)),{props:f}=(0,n.useContext)(_),p=(0,n.useMemo)((()=>"undefined"==typeof window||d().isPlayer?{}:H()??{}),[]),[h,m]=(0,n.useState)({}),g=(0,n.useMemo)((()=>c?f[c.id]??{}:{}),[f,c]),y=(0,n.useMemo)((()=>u?f[u.id]??{}:{}),[f,u]),v=Boolean(s),b=(0,n.useCallback)((({calculateMetadata:e,combinedProps:t,compositionDurationInFrames:r,compositionFps:n,compositionHeight:i,compositionId:o,compositionWidth:a,defaultProps:s})=>{const l=new AbortController;if(v)return l;const{signal:c}=l,u=(e=>{try{return{type:"success",result:q(e)}}catch(e){return{type:"error",error:e}}})({compositionId:o,calculateMetadata:e,originalProps:t,signal:c,defaultProps:s,compositionDurationInFrames:r,compositionFps:n,compositionHeight:i,compositionWidth:a});if("error"===u.type)return m((e=>({...e,[o]:{type:"error",error:u.error}}))),l;const f=u.result;return"object"==typeof f&&"then"in f?(m((e=>{const t=e[o];return"success"===t?.type||"success-and-refreshing"===t?.type?{...e,[o]:{type:"success-and-refreshing",result:t.result}}:{...e,[o]:{type:"loading"}}})),f.then((e=>{l.signal.aborted||m((t=>({...t,[o]:{type:"success",result:e}})))})).catch((e=>{l.signal.aborted||m((t=>({...t,[o]:{type:"error",error:e}})))}))):m((e=>({...e,[o]:{type:"success",result:f}}))),l}),[v]),x="composition"===a?.type?a.compositionId:null;(0,n.useImperativeHandle)(Z,(()=>({setCurrentRenderModalComposition:e=>{r(e)},reloadCurrentlySelectedComposition:()=>{if(!x)return;const e=o.find((e=>e.id===x));if(!e)throw new Error(`Could not find composition with id ${x}`);const t=f[x]??{},r={...e.defaultProps??{},...t??{}},n={...r,...p??{}};b({defaultProps:r,calculateMetadata:e.calculateMetadata,combinedProps:n,compositionDurationInFrames:e.durationInFrames??null,compositionFps:e.fps??null,compositionHeight:e.height??null,compositionWidth:e.width??null,compositionId:e.id})}})),[f,o,x,b,p]);const w=c?.id===u?.id,E=(0,n.useMemo)((()=>({...c?.defaultProps??{},...g??{}})),[c?.defaultProps,g]),U=(0,n.useMemo)((()=>({...E,...p??{}})),[E,p]),S=c&&Y(c),k="undefined"!=typeof window&&window.remotion_ignoreFastRefreshUpdate&&l<=window.remotion_ignoreFastRefreshUpdate;(0,n.useEffect)((()=>{if(!k&&S){const e=b({calculateMetadata:c.calculateMetadata,combinedProps:U,compositionDurationInFrames:c.durationInFrames??null,compositionFps:c.fps??null,compositionHeight:c.height??null,compositionWidth:c.width??null,defaultProps:E,compositionId:c.id});return()=>{e.abort()}}}),[S,E,b,U,c?.calculateMetadata,c?.durationInFrames,c?.fps,c?.height,c?.id,c?.width,k]),(0,n.useEffect)((()=>{k||window.dispatchEvent(new CustomEvent("remotion.propsUpdatedExternally"))}),[l]),(0,n.useEffect)((()=>{if(u&&!w){const e={...u.defaultProps??{},...y??{},...p??{}},t=b({calculateMetadata:u.calculateMetadata,compositionDurationInFrames:u.durationInFrames??null,compositionFps:u.fps??null,compositionHeight:u.height??null,compositionId:u.id,compositionWidth:u.width??null,defaultProps:E,combinedProps:e});return()=>{t.abort()}}}),[E,b,p,w,u,y]);const F=(0,n.useMemo)((()=>{const e=o.filter((e=>null===e.calculateMetadata));return{...h,...e.reduce(((e,t)=>({...e,[t.id]:{type:"success",result:{...t,defaultProps:t.defaultProps??{}}}})),{})}}),[o,h]);return(0,i.jsx)(X.Provider,{value:F,children:e})},ee=e=>{const t=(0,n.useContext)(X),{props:r}=(0,n.useContext)(_),{compositions:i,canvasContent:o,currentCompositionMetadata:a}=(0,n.useContext)(T),s="composition"===o?.type?o.compositionId:null,l=e??s,c=i.find((e=>e.id===l)),u=(0,n.useMemo)((()=>c?r[c.id]??{}:{}),[r,c]);return(0,n.useMemo)((()=>c?a?{type:"success",result:{...a,id:c.id,props:a.props,defaultProps:c.defaultProps??{},defaultCodec:a.defaultCodec}}:Y(c)?t[c.id]?t[c.id]:null:($(c.durationInFrames,{allowFloats:!1,component:`in <Composition id="${c.id}">`}),K(c.fps,`in <Composition id="${c.id}">`,!1),G(c.width,"width",`in <Composition id="${c.id}">`),G(c.height,"height",`in <Composition id="${c.id}">`),{type:"success",result:{width:c.width,height:c.height,fps:c.fps,id:c.id,durationInFrames:c.durationInFrames,defaultProps:c.defaultProps??{},props:{...c.defaultProps??{},...u??{},..."undefined"==typeof window||d().isPlayer?{}:H()??{}},defaultCodec:null}}):null),[c,t,a,u])},te=()=>{const{canvasContent:e,compositions:t,currentCompositionMetadata:r}=(0,n.useContext)(T),i=t.find((t=>"composition"===e?.type&&t.id===e.compositionId)),o=ee(i?.id??null);return(0,n.useMemo)((()=>o?"error"===o.type||"loading"===o.type?null:i?{...o.result,defaultProps:i.defaultProps??{},id:i.id,...r??{},component:i.component}:null:null),[r,o,i])},re=(0,n.createContext)({frame:{},playing:!1,playbackRate:1,rootId:"",imperativePlaying:{current:!1},setPlaybackRate:()=>{throw new Error("default")},audioAndVideoTags:{current:[]}}),ne=(0,n.createContext)({setFrame:()=>{throw new Error("default")},setPlaying:()=>{throw new Error("default")}}),ie=e=>{localStorage.setItem("remotion.time-all",JSON.stringify(e))},oe=()=>{const e=localStorage.getItem("remotion.time-all")??"{}";return JSON.parse(e)},ae=e=>{const t=localStorage.getItem("remotion.time-all")??"{}",r=JSON.parse(t);return void 0!==r[e]?Number(r[e]):"undefined"==typeof window?0:window.remotion_initialFrame??0},se=()=>{const e=te(),t=(0,n.useContext)(re);if(!e)return"undefined"==typeof window?0:window.remotion_initialFrame??0;const r=t.frame[e.id]??(d().isPlayer?0:ae(e.id));return Math.min(e.durationInFrames-1,r)},le=()=>{const{setFrame:e}=(0,n.useContext)(ne);return e},ce=()=>{const{playing:e,imperativePlaying:t}=(0,n.useContext)(re),{setPlaying:r}=(0,n.useContext)(ne);return(0,n.useMemo)((()=>[e,r,t]),[t,e,r])},ue=(0,n.createContext)(!1),fe=({children:e})=>(0,i.jsx)(ue.Provider,{value:!0,children:e}),de=()=>{const e=(0,n.useContext)(E),t=e?.width??null,r=e?.height??null,i=e?.durationInFrames??null,o=te();return(0,n.useMemo)((()=>{if(!o)return null;const{id:e,durationInFrames:n,fps:a,height:s,width:l,defaultProps:c,props:u,defaultCodec:f}=o;return{id:e,width:t??l,height:r??s,fps:a,durationInFrames:i??n,defaultProps:c,props:u,defaultCodec:f}}),[i,r,t,o])},pe=()=>{const e=de(),t=(0,n.useContext)(ue),r=v();if(!e){if("undefined"!=typeof window&&window.remotion_isPlayer||r)throw new Error(["No video config found. Likely reasons:","- You are probably calling useVideoConfig() from outside the component passed to <Player />. See https://www.remotion.dev/docs/player/examples for how to set up the Player correctly.","- You have multiple versions of Remotion installed which causes the React context to get lost."].join("-"));throw new Error("No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.")}if(!t)throw new Error("Called useVideoConfig() outside a Remotion composition.");return e},he=()=>{if(!(0,n.useContext)(ue)){if(d().isPlayer)throw new Error("useCurrentFrame can only be called inside a component that was passed to <Player>. See: https://www.remotion.dev/docs/player/examples");throw new Error("useCurrentFrame() can only be called inside a component that was registered as a composition. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions")}const e=se(),t=(0,n.useContext)(E);return e-(t?t.cumulatedFrom+t.relativeFrom:0)},me=({frame:e,children:t,active:r=!0})=>{const o=he(),a=pe();if(void 0===e)throw new Error("The <Freeze /> component requires a 'frame' prop, but none was passed.");if("number"!=typeof e)throw new Error("The 'frame' prop of <Freeze /> must be a number, but is of type "+typeof e);if(Number.isNaN(e))throw new Error("The 'frame' prop of <Freeze /> must be a real number, but it is NaN.");if(!Number.isFinite(e))throw new Error(`The 'frame' prop of <Freeze /> must be a finite number, but it is ${e}.`);const s=(0,n.useMemo)((()=>"boolean"==typeof r?r:"function"==typeof r?r(o):void 0),[r,o]),l=(0,n.useContext)(re),c=(0,n.useContext)(E),u=c?.relativeFrom??0,f=(0,n.useMemo)((()=>s?{...l,playing:!1,imperativePlaying:{current:!1},frame:{[a.id]:e+u}}:l),[s,l,a.id,e,u]);return(0,i.jsx)(re.Provider,{value:f,children:t})},ge=(0,n.forwardRef)((({from:e=0,durationInFrames:t=1/0,children:r,name:o,height:a,width:s,showInTimeline:l=!0,_remotionInternalLoopDisplay:c,_remotionInternalStack:u,_remotionInternalPremountDisplay:f,...p},h)=>{const{layout:m="absolute-fill"}=p,[g]=(0,n.useState)((()=>String(Math.random()))),y=(0,n.useContext)(E),{rootId:v}=(0,n.useContext)(re),b=y?y.cumulatedFrom+y.relativeFrom:0,x=F();if("absolute-fill"!==m&&"none"!==m)throw new TypeError(`The layout prop of <Sequence /> expects either "absolute-fill" or "none", but you passed: ${m}`);if("none"===m&&void 0!==p.style)throw new TypeError('If layout="none", you may not pass a style.');if("number"!=typeof t)throw new TypeError(`You passed to durationInFrames an argument of type ${typeof t}, but it must be a number.`);if(t<=0)throw new TypeError(`durationInFrames must be positive, but got ${t}`);if("number"!=typeof e)throw new TypeError(`You passed to the "from" props of your <Sequence> an argument of type ${typeof e}, but it must be a number.`);if(!Number.isFinite(e))throw new TypeError(`The "from" prop of a sequence must be finite, but got ${e}.`);const k=se(),C=pe(),P=y?Math.min(y.durationInFrames-e,t):t,T=Math.max(0,Math.min(C.durationInFrames-e,P)),{registerSequence:_,unregisterSequence:I}=(0,n.useContext)(U),{hidden:M}=(0,n.useContext)(S),A=(0,n.useMemo)((()=>y?.premounting??Boolean(p._remotionInternalIsPremounting)),[p._remotionInternalIsPremounting,y?.premounting]),R=(0,n.useMemo)((()=>({cumulatedFrom:b,relativeFrom:e,durationInFrames:T,parentFrom:y?.relativeFrom??0,id:g,height:a??y?.height??null,width:s??y?.width??null,premounting:A})),[b,e,T,y,g,a,s,A]),V=(0,n.useMemo)((()=>o??""),[o]);(0,n.useEffect)((()=>{if(d().isStudio)return _({from:e,duration:T,id:g,displayName:V,parent:y?.id??null,type:"sequence",rootId:v,showInTimeline:l,nonce:x,loopDisplay:c,stack:u??null,premountDisplay:f??null}),()=>{I(g)}}),[t,g,o,_,V,I,y?.id,T,v,e,l,x,c,u,f]);const D=Math.ceil(b+e+t-1),O=k<b+e||k>D?null:r,j="none"===p.layout?void 0:p.style,z=(0,n.useMemo)((()=>({flexDirection:void 0,...s?{width:s}:{},...a?{height:a}:{},...j??{}})),[a,j,s]);if(null!==h&&"none"===m)throw new TypeError('It is not supported to pass both a `ref` and `layout="none"` to <Sequence />.');return M[g]??!1?null:(0,i.jsx)(E.Provider,{value:R,children:null===O?null:"none"===p.layout?O:(0,i.jsx)(w,{ref:h,style:z,className:p.className,children:O})})})),ye=(0,n.forwardRef)(((e,t)=>{const r=he();if("none"===e.layout)throw new Error('`<Sequence>` with `premountFor` prop does not support layout="none"');const{style:o,from:a=0,premountFor:s=0,...l}=e,c=r<a&&r>=a-s,u=(0,n.useMemo)((()=>({...o,opacity:c?0:1,pointerEvents:c?"none":o?.pointerEvents??void 0})),[c,o]);return(0,i.jsx)(me,{frame:a,active:c,children:(0,i.jsx)(ve,{ref:t,from:a,style:u,_remotionInternalPremountDisplay:s,_remotionInternalIsPremounting:c,...l})})})),ve=(0,n.forwardRef)(((e,t)=>"none"!==e.layout&&e.premountFor&&!d().isRendering?(0,i.jsx)(ye,{...e,ref:t}):(0,i.jsx)(ge,{...e,ref:t}))),be=e=>{"artifact"===e.type&&((e=>{if("string"!=typeof e)throw new TypeError('The "filename" must be a string, but you passed a value of type '+typeof e);if(""===e.trim())throw new Error("The `filename` must not be empty");if(!e.match(/^([0-9a-zA-Z-!_.*'()/:&$@=;+,?]+)/g))throw new Error('The `filename` must match "/^([0-9a-zA-Z-!_.*\'()/:&$@=;+,?]+)/g". Use forward slashes only, even on Windows.')})(e.filename),(e=>{if("string"!=typeof e&&!(e instanceof Uint8Array))throw new TypeError('The "content" must be a string or Uint8Array, but you passed a value of type '+typeof e);if("string"==typeof e&&""===e.trim())throw new Error("The `content` must not be empty")})(e.content))},xe=(0,n.createContext)({registerRenderAsset:()=>{},unregisterRenderAsset:()=>{},renderAssets:[]}),we=({children:e})=>{const[t,r]=(0,n.useState)([]),o=(0,n.useCallback)((e=>{be(e),r((t=>[...t,e]))}),[]),a=(0,n.useCallback)((e=>{r((t=>t.filter((t=>t.id!==e))))}),[]);(0,n.useLayoutEffect)((()=>{"undefined"!=typeof window&&(window.remotion_collectAssets=()=>(r([]),t))}),[t]);const s=(0,n.useMemo)((()=>({registerRenderAsset:o,unregisterRenderAsset:a,renderAssets:t})),[t,o,a]);return(0,i.jsx)(xe.Provider,{value:s,children:e})},Ee=e=>"undefined"==typeof window?e:new URL(e,window.origin).href,Ue=({endAt:e,mediaDuration:t,playbackRate:r,startFrom:n})=>{let i=t;void 0!==e&&(i=e),void 0!==n&&(i-=n);const o=i/r;return Math.floor(o)};function Se(e){let t;throw ke(e)?(t=e,t.stack||(t.stack=new Error(t.message).stack)):t="string"==typeof e?Error(e):Error("Rendering was cancelled"),window.remotion_cancelledError=t.stack,t}var ke=e=>e instanceof Error||null!==e&&("object"==typeof e&&("stack"in e&&("string"==typeof e.stack&&("message"in e&&"string"==typeof e.message)))),Ce=(0,n.createContext)(null),Fe=({durationInFrames:e,times:t=1/0,children:r,name:o,...a})=>{const s=he(),{durationInFrames:l}=pe();if($(e,{component:"of the <Loop /> component",allowFloats:!0}),"number"!=typeof t)throw new TypeError(`You passed to "times" an argument of type ${typeof t}, but it must be a number.`);if(t!==1/0&&t%1!=0)throw new TypeError(`The "times" prop of a loop must be an integer, but got ${t}.`);if(t<0)throw new TypeError(`The "times" prop of a loop must be at least 0, but got ${t}`);const c=Math.ceil(l/e),u=Math.min(c,t),f="none"===a.layout?void 0:a.style,d=e*(u-1),p=Math.floor(s/e)*e,h=Math.min(p,d),m=(0,n.useMemo)((()=>({numberOfTimes:u,startOffset:-h,durationInFrames:e})),[u,e,h]),g=(0,n.useMemo)((()=>({iteration:Math.floor(s/e),durationInFrames:e})),[s,e]);return(0,i.jsx)(Ce.Provider,{value:g,children:(0,i.jsx)(ve,{durationInFrames:e,from:h,name:o??"<Loop>",_remotionInternalLoopDisplay:m,layout:a.layout,style:f,children:r})})};Fe.useLoop=()=>n.useContext(Ce);var Pe=(0,n.createContext)({}),Te={},_e=[],Ie=({children:e})=>{const[t,r]=(0,n.useState)((()=>Te));return(0,n.useEffect)((()=>{const e=()=>{r(Te)};return _e.push(e),()=>{_e=_e.filter((t=>t!==e))}}),[]),(0,i.jsx)(Pe.Provider,{value:t,children:e})},Me=e=>(0,n.useContext)(Pe)[e]??e,Ae=(e,t)=>{if("number"!=typeof e.volume&&"function"!=typeof e.volume&&void 0!==e.volume)throw new TypeError(`You have passed a volume of type ${typeof e.volume} to your <${t} /> component. Volume must be a number or a function with the signature '(frame: number) => number' undefined.`);if("number"==typeof e.volume&&e.volume<0)throw new TypeError(`You have passed a volume below 0 to your <${t} /> component. Volume must be between 0 and 1`);if("number"!=typeof e.playbackRate&&void 0!==e.playbackRate)throw new TypeError(`You have passed a playbackRate of type ${typeof e.playbackRate} to your <${t} /> component. Playback rate must a real number or undefined.`);if("number"==typeof e.playbackRate&&(isNaN(e.playbackRate)||!Number.isFinite(e.playbackRate)||e.playbackRate<=0))throw new TypeError(`You have passed a playbackRate of ${e.playbackRate} to your <${t} /> component. Playback rate must be a real number above 0.`)},Re=(e,t)=>{if(void 0!==e){if("number"!=typeof e)throw new TypeError(`type of startFrom prop must be a number, instead got type ${typeof e}.`);if(isNaN(e)||e===1/0)throw new TypeError("startFrom prop can not be NaN or Infinity.");if(e<0)throw new TypeError(`startFrom must be greater than equal to 0 instead got ${e}.`)}if(void 0!==t){if("number"!=typeof t)throw new TypeError(`type of endAt prop must be a number, instead got type ${typeof t}.`);if(isNaN(t))throw new TypeError("endAt prop can not be NaN.");if(t<=0)throw new TypeError(`endAt must be a positive number, instead got ${t}.`)}if(t<e)throw new TypeError("endAt prop must be greater than startFrom prop.")},Ve=(e,t)=>{if("got-duration"===t.type){const r=Ee(t.src);return e[r]===t.durationInSeconds?e:{...e,[r]:t.durationInSeconds}}return e},De=(0,n.createContext)({durations:{},setDurations:()=>{throw new Error("context missing")}}),Oe=({children:e})=>{const[t,r]=(0,n.useReducer)(Ve,{}),o=(0,n.useMemo)((()=>({durations:t,setDurations:r})),[t]);return(0,i.jsx)(De.Provider,{value:o,children:e})},je=function(e){let t=e+1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},ze=(e,t)=>{if(void 0!==t)throw new TypeError("random() takes only one argument");if(null===e)return Math.random();if("string"==typeof e)return je(function(e){let t=0,r=0,n=0;for(t=0;t<e.length;t++)r=e.charCodeAt(t),n=(n<<5)-n+r,n|=0;return n}(e));if("number"==typeof e)return je(1e10*e);throw new Error("random() argument must be a number or a string")},Be=()=>{const e=(0,n.useContext)(E);return Math.min(0,e?.relativeFrom??0)},Le=e=>{const t=Fe.useLoop(),r=he(),n=Be();return"repeat"===e||null===t?r+n:r+n+t.durationInFrames*t.iteration},Ne=e=>{if(/data:|blob:/.test(e.substring(0,5)))return"Data URL";const t=e.split("/").map((e=>e.split("\\"))).flat(1);return t[t.length-1]},He=(e,t,r)=>{const{current:n}=e;if(!n)return;const i=n.play();i.catch&&i.catch((e=>{if(n&&!e.message.includes("request was interrupted by a call to pause")&&!e.message.includes("The operation was aborted.")&&!(e.message.includes("The fetching process for the media resource was aborted by the user agent")||e.message.includes("request was interrupted by a new load request")||e.message.includes("because the media was removed from the document")||(console.log(`Could not play ${t} due to following error: `,e),n.muted))){if(r)return void r();console.log("The video will be muted and we'll retry playing it."),"video"===t&&d().isPlayer&&console.log("Use onAutoPlayError() to handle this error yourself."),n.muted=!0,n.play()}}))},We=({frame:e,volume:t,mediaVolume:r=1,allowAmplificationDuringRender:n})=>{const i=n?1/0:1;if("number"==typeof t)return Math.min(i,t*r);if(void 0===t)return Number(r);const o=t(e)*r;if("number"!=typeof o)throw new TypeError(`You passed in a a function to the volume prop but it did not return a number but a value of type ${typeof o} for frame ${e}`);if(Number.isNaN(o))throw new TypeError(`You passed in a function to the volume prop but it returned NaN for frame ${e}.`);if(!Number.isFinite(o))throw new TypeError(`You passed in a function to the volume prop but it returned a non-finite number for frame ${e}.`);return Math.max(0,Math.min(i,o))},Ge={},$e=({volume:e,mediaVolume:t,mediaRef:r,src:i,mediaType:o,playbackRate:a,displayName:s,id:l,stack:c,showInTimeline:u,premountDisplay:f,onAutoPlayError:p})=>{const h=pe(),{rootId:m,audioAndVideoTags:g}=(0,n.useContext)(re),y=(0,n.useContext)(E),v=y?y.relativeFrom+y.cumulatedFrom:0,[b]=ce(),x=Be(),{registerSequence:w,unregisterSequence:S}=(0,n.useContext)(U),[k]=(0,n.useState)((()=>e)),C=F(),P=y?Math.min(y.durationInFrames,h.durationInFrames):h.durationInFrames,T="function"==typeof e,_=(0,n.useMemo)((()=>"number"==typeof e?e:new Array(Math.floor(Math.max(0,P+x))).fill(!0).map(((r,n)=>We({frame:n+x,volume:e,mediaVolume:t,allowAmplificationDuringRender:!1}))).join(",")),[P,x,e,t]);(0,n.useEffect)((()=>{var t;"number"==typeof e&&e!==k&&(Ge[t=`Remotion: The ${o} with src ${i} has changed it's volume. Prefer the callback syntax for setting volume to get better timeline display: https://www.remotion.dev/docs/using-audio/#controlling-volume`]||(console.warn(t),Ge[t]=!0))}),[k,o,i,e]),(0,n.useEffect)((()=>{if(r.current){if(!i)throw new Error("No src passed");if((d().isStudio||"test"===window.process?.env?.NODE_ENV)&&u)return w({type:o,src:i,id:l,duration:P,from:0,parent:y?.id??null,displayName:s??Ne(i),rootId:m,volume:_,showInTimeline:!0,nonce:C,startMediaFrom:0-x,doesVolumeChange:T,loopDisplay:void 0,playbackRate:a,stack:c,premountDisplay:f}),()=>{S(l)}}}),[v,P,l,y,i,w,m,S,h,_,T,C,r,o,x,a,s,c,u,f]),(0,n.useEffect)((()=>{const e={id:l,play:()=>{if(b)return He(r,o,p)}};return g.current.push(e),()=>{g.current=g.current.filter((e=>e.id!==l))}}),[g,l,r,o,p,b])},Ke=n.createContext(null),Je=({children:e})=>{const t=(()=>{const[e,t]=(0,n.useState)([]),[r,i]=(0,n.useState)([]),[o,a]=(0,n.useState)([]),s=(0,n.useRef)(!1),l=(0,n.useCallback)((e=>(t((t=>[...t,e])),{unblock:()=>{t((t=>{const r=t.filter((t=>t!==e));return r.length===t.length?t:r}))}})),[]),c=(0,n.useCallback)((e=>(i((t=>[...t,e])),{remove:()=>{i((t=>t.filter((t=>t!==e))))}})),[]),u=(0,n.useCallback)((e=>(a((t=>[...t,e])),{remove:()=>{a((t=>t.filter((t=>t!==e))))}})),[]);return(0,n.useEffect)((()=>{e.length>0&&r.forEach((e=>e()))}),[e]),(0,n.useEffect)((()=>{0===e.length&&o.forEach((e=>e()))}),[e]),(0,n.useMemo)((()=>({addBlock:l,listenForBuffering:c,listenForResume:u,buffering:s})),[l,s,c,u])})();return(0,i.jsx)(Ke.Provider,{value:t,children:e})},qe=()=>{const e=(0,n.useContext)(Ke),t=e?e.addBlock:null;return(0,n.useMemo)((()=>({delayPlayback:()=>{if(!t)throw new Error("Tried to enable the buffering state, but a Remotion context was not found. This API can only be called in a component that was passed to the Remotion Player or a <Composition>. Or you might have experienced a version mismatch - run `npx remotion versions` and ensure all packages have the same version. This error is thrown by the buffer state https://remotion.dev/docs/player/buffer-state");const{unblock:e}=t({id:String(Math.random())});return{unblock:e}}})),[t])},Xe=function(e,t,r,n){const{extrapolateLeft:i,extrapolateRight:o,easing:a}=n;let s=e;const[l,c]=t,[u,f]=r;if(s<l){if("identity"===i)return s;if("clamp"===i)s=l;else if("wrap"===i){const e=c-l;s=((s-l)%e+e)%e+l}}if(s>c){if("identity"===o)return s;if("clamp"===o)s=c;else if("wrap"===o){const e=c-l;s=((s-l)%e+e)%e+l}}return u===f?u:(s=(s-l)/(c-l),s=a(s),s=s*(f-u)+u,s)},Ze=function(e,t){let r;for(r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1},Ye=function(e){for(let t=1;t<e.length;++t)if(!(e[t]>e[t-1]))throw new Error(`inputRange must be strictly monotonically increasing but got [${e.join(",")}]`)},Qe=function(e,t){if(t.length<2)throw new Error(e+" must have at least 2 elements");for(const r of t){if("number"!=typeof r)throw new Error(`${e} must contain only numbers`);if(!Number.isFinite(r))throw new Error(`${e} must contain only finite numbers, but got [${t.join(",")}]`)}};function et(e,t,r,n){if(void 0===e)throw new Error("input can not be undefined");if(void 0===t)throw new Error("inputRange can not be undefined");if(void 0===r)throw new Error("outputRange can not be undefined");if(t.length!==r.length)throw new Error("inputRange ("+t.length+") and outputRange ("+r.length+") must have the same length");Qe("inputRange",t),Qe("outputRange",r),Ye(t);const i=n?.easing??(e=>e);let o="extend";void 0!==n?.extrapolateLeft&&(o=n.extrapolateLeft);let a="extend";if(void 0!==n?.extrapolateRight&&(a=n.extrapolateRight),"number"!=typeof e)throw new TypeError("Cannot interpolate an input which is not a number");const s=Ze(e,t);return Xe(e,[t[s],t[s+1]],[r[s],r[s+1]],{easing:i,extrapolateLeft:o,extrapolateRight:a})}var tt=({frame:e,playbackRate:t,startFrom:r})=>et(e,[-1,r,r+1],[-1,r,r+t]),rt=({fps:e,frame:t,playbackRate:r,startFrom:n})=>tt({frame:t,playbackRate:r,startFrom:n})*(1e3/e)/1e3,nt=(e,t)=>Math.round(e/t*100)/100,it=()=>{if("undefined"==typeof window)return!1;const e=/iP(ad|od|hone)/i.test(window.navigator.userAgent),t=/AppleWebKit/.test(window.navigator.userAgent);return e&&t},ot=({actualFrom:e,fps:t})=>nt(Math.max(0,-e),t),at=({duration:e,fps:t})=>nt(e,t),st=({actualSrc:e,actualFrom:t,duration:r,fps:n})=>{if((e=>it()&&e.startsWith("blob:"))(e))return e;if(e.startsWith("data:"))return e;if(Boolean(new URL(e,("undefined"==typeof window?null:window.location.href)??"http://localhost:3000").hash))return e;if(!Number.isFinite(t))return e;const i=`${e}#t=${ot({actualFrom:t,fps:n})}`;return Number.isFinite(r)?`${i},${at({duration:r,fps:n})}`:i},lt=({actualSrc:e,actualFrom:t,duration:r,fps:i})=>{const o=(0,n.useRef)(t),a=(0,n.useRef)(r),s=(0,n.useRef)(e);(({prevStartFrom:e,newStartFrom:t,prevDuration:r,newDuration:n,fps:i})=>{const o=ot({actualFrom:e,fps:i}),a=ot({actualFrom:t,fps:i}),s=at({duration:r,fps:i}),l=at({duration:n,fps:i});return!(a<o||l>s)})({prevStartFrom:o.current,newStartFrom:t,prevDuration:a.current,newDuration:r,fps:i})&&e===s.current||(o.current=t,a.current=r,s.current=e);return st({actualSrc:s.current,actualFrom:o.current,duration:a.current,fps:i})},ct={},ut=.45,ft=(e,t)=>{if(!e.current)return;const r=it()?Number(t.toFixed(1)):t;e.current.currentTime=r},dt=({mediaRef:e,src:t,mediaType:r,playbackRate:i,onlyWarnForMediaSeekingError:o,acceptableTimeshift:a,pauseWhenBuffering:s,isPremounting:l,debugSeeking:c,onAutoPlayError:u})=>{const{playbackRate:f}=(0,n.useContext)(re),d=he(),p=se(),[h]=ce(),m=(0,n.useContext)(Ke),{fps:g}=pe(),y=Be(),v=(0,n.useRef)(null),b=(0,n.useRef)(null);if(!m)throw new Error("useMediaPlayback must be used inside a <BufferingContext>");const x=(0,n.useRef)({}),w=(0,n.useCallback)((()=>{t&&(c&&console.log(`Detected ${t} as a variable FPS video. Disabling buffering while seeking.`),x.current[t]=!0)}),[c,t]),E=(({mediaRef:e,mediaType:t,lastSeek:r,onVariableFpsVideoDetected:i})=>{const o=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const{current:n}=e;if(!n)return void(o.current=null);if(o.current=n.currentTime,"video"!==t)return void(o.current=null);const a=n;if(!a.requestVideoFrameCallback)return;let s=()=>{};const l=()=>{if(!a)return;const e=a.requestVideoFrameCallback(((e,t)=>{if(null!==o.current){const e=Math.abs(o.current-t.mediaTime),n=Math.abs(null===r.current?1/0:t.mediaTime-r.current);e>.5&&n>.5&&t.mediaTime>o.current&&i()}o.current=t.mediaTime,l()}));s=()=>{a.cancelVideoFrameCallback(e),s=()=>{}}};return l(),()=>{s()}}),[r,e,t,i]),o})({mediaRef:e,mediaType:r,lastSeek:b,onVariableFpsVideoDetected:w}),U=rt({frame:d,playbackRate:i,startFrom:-y,fps:g}),S=(({element:e,shouldBuffer:t,isPremounting:r})=>{const i=qe(),[o,a]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{let n=[];const{current:o}=e;if(!o)return;if(!t)return;if(r)return;const s=()=>{n.forEach((e=>e())),n=[],a(!1)},l=()=>{a(!0);const{unblock:e}=i.delayPlayback(),t=()=>{s(),c()},r=()=>{s(),c()};o.addEventListener("canplay",t,{once:!0}),n.push((()=>{o.removeEventListener("canplay",t)})),o.addEventListener("error",r,{once:!0}),n.push((()=>{o.removeEventListener("error",r)})),n.push((()=>{e()}))},c=()=>{o.readyState<o.HAVE_FUTURE_DATA?(l(),navigator.userAgent.includes("Firefox/")||o.load()):(o.addEventListener("waiting",l),n.push((()=>{o.removeEventListener("waiting",l)})))};return c(),()=>{s()}}),[i,e,r,t]),o})({element:e,shouldBuffer:s,isPremounting:l}),{bufferUntilFirstFrame:k,isBuffering:C}=(({mediaRef:e,mediaType:t,onVariableFpsVideoDetected:r,pauseWhenBuffering:i})=>{const o=(0,n.useRef)(!1),{delayPlayback:a}=qe(),s=(0,n.useCallback)((n=>{if("video"!==t)return;if(!i)return;const s=e.current;if(!s)return;if(!s.requestVideoFrameCallback)return;o.current=!0;const l=a(),c=()=>{l.unblock(),s.removeEventListener("ended",c,{once:!0}),s.removeEventListener("pause",c,{once:!0}),o.current=!1},u=()=>{c()};s.requestVideoFrameCallback(((e,t)=>{Math.abs(t.mediaTime-n)>.5&&r(),s.requestVideoFrameCallback((()=>{c()}))})),s.addEventListener("ended",u,{once:!0}),s.addEventListener("pause",u,{once:!0})}),[a,e,t,r,i]);return(0,n.useMemo)((()=>({isBuffering:()=>o.current,bufferUntilFirstFrame:s})),[s])})({mediaRef:e,mediaType:r,onVariableFpsVideoDetected:w,pauseWhenBuffering:s}),F=i*f,P=e.current?.duration?Math.min(e.current.duration,a??ut):a;(0,n.useEffect)((()=>{if(!h)return void e.current?.pause();const t=m.buffering.current,r=S||C();t&&!r&&e.current?.pause()}),[m.buffering,C,S,e,h]),(0,n.useEffect)((()=>{const n="audio"===r?"<Audio>":"<Video>";if(!e.current)throw new Error(`No ${r} ref found`);if(!t)throw new Error(`No 'src' attribute was passed to the ${n} element.`);const i=Math.max(0,F);e.current.playbackRate!==i&&(e.current.playbackRate=i);const{duration:a}=e.current,s=!Number.isNaN(a)&&Number.isFinite(a)?Math.min(a,U):U,l=e.current.currentTime,f=E.current??null,d=x.current[t],g=Math.abs(s-l),y=f?Math.abs(s-f):null,w=y&&!d?y:g;if(c&&console.log({mediaTagTime:l,rvcTime:f,shouldBeTime:s,state:e.current.readyState,playing:!e.current.paused,isVariableFpsVideo:d}),w>P&&v.current!==s)return c&&console.log("Seeking",{shouldBeTime:s,isTime:l,rvcTime:f,timeShift:w,isVariableFpsVideo:d}),ft(e,s),b.current=s,v.current=s,h&&!d&&(F>0&&k(s),e.current.paused&&He(e,r,u)),void(o||((e,t)=>{if(null===e)return;if(0===e.seekable.length)return;if(e.seekable.length>1)return;if(ct[e.src])return;const r=e.seekable.start(0),n=e.seekable.end(0);if(0===r&&0===n){const r=[`The media ${e.src} cannot be seeked. This could be one of few reasons:`,"1) The media resource was replaced while the video is playing but it was not loaded yet.","2) The media does not support seeking.","3) The media was loaded with security headers prventing it from being included.","Please see https://remotion.dev/docs/non-seekable-media for assistance."].join("\n");if("console-error"===t)console.error(r);else{if("console-warning"!==t)throw new Error(r);console.warn(`The media ${e.src} does not support seeking. The video will render fine, but may not play correctly in the Remotion Studio and in the <Player>. See https://remotion.dev/docs/non-seekable-media for an explanation.`)}ct[e.src]=!0}})(e.current,o?"console-warning":"console-error"));const T=h?.15:1e-5,_=Math.abs(e.current.currentTime-s)>T,I=S||C(),M=m.buffering.current&&!I;h&&!M?(e.current.paused&&!e.current.ended||0===p)&&(_&&(ft(e,s),b.current=s),He(e,r,u),d||F>0&&k(s)):_&&(ft(e,s),b.current=s)}),[p,P,k,m.buffering,E,c,U,C,S,e,r,o,F,h,t,u])},pt=e=>{const[t,r]=(0,n.useState)(1);return(0,n.useEffect)((()=>{const t=e.current;if(!t)return;const n=()=>{r(t.volume)};return t.addEventListener("volumechange",n),()=>t.removeEventListener("volumechange",n)}),[e]),(0,n.useEffect)((()=>{const n=e.current;n&&n.volume!==t&&r(n.volume)}),[t,e]),t},ht=(e,t)=>Math.abs(e-t)<1e-5,mt=({volumePropFrame:e,actualVolume:t,volume:r,mediaVolume:i,mediaRef:o})=>{(0,n.useEffect)((()=>{const n=We({frame:e,volume:r,mediaVolume:i,allowAmplificationDuringRender:!1});!ht(n,t)&&o.current&&(o.current.volume=n)}),[t,e,o,r,i])},gt=(0,n.createContext)({mediaMuted:!1,mediaVolume:1}),yt=(0,n.createContext)({setMediaMuted:()=>{throw new Error("default")},setMediaVolume:()=>{throw new Error("default")}}),vt=()=>{const{mediaVolume:e}=(0,n.useContext)(gt),{setMediaVolume:t}=(0,n.useContext)(yt);return(0,n.useMemo)((()=>[e,t]),[e,t])},bt=()=>{const{mediaMuted:e}=(0,n.useContext)(gt),{setMediaMuted:t}=(0,n.useContext)(yt);return(0,n.useMemo)((()=>[e,t]),[e,t])},xt="data:audio/mp3;base64,/+MYxAAJcAV8AAgAABn//////+/gQ5BAMA+D4Pg+BAQBAEAwD4Pg+D4EBAEAQDAPg++hYBH///hUFQVBUFREDQNHmf///////+MYxBUGkAGIMAAAAP/29Xt6lUxBTUUzLjEwMFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxDUAAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",wt=(0,n.createContext)(null),Et=({children:e,numberOfAudioTags:t,component:r})=>{const o=(0,n.useRef)([]),[a]=(0,n.useState)(t);if(t!==a)throw new Error("The number of shared audio tags has changed dynamically. Once you have set this property, you cannot change it afterwards.");const s=(0,n.useMemo)((()=>new Array(t).fill(!0).map((()=>({id:Math.random(),ref:(0,n.createRef)()})))),[t]),l=(0,n.useRef)(new Array(t).fill(!1)),c=(0,n.useCallback)((()=>{s.forEach((({ref:e,id:t})=>{const r=o.current?.find((e=>e.id===t)),{current:n}=e;if(n)if(void 0!==r){if(!r)throw new TypeError("Expected audio data to be there");Object.keys(r.props).forEach((e=>{((e,t,r)=>"src"!==e||r.startsWith("data:")||t.startsWith("data:")?r!==t:new URL(r,window.origin).toString()!==new URL(t,window.origin).toString())(e,r.props[e],n[e])&&(n[e]=r.props[e])}))}else n.src=xt}))}),[s]),u=(0,n.useCallback)(((e,r)=>{const n=o.current?.find((e=>e.audioId===r));if(n)return n;const i=l.current.findIndex((e=>!1===e));if(-1===i)throw new Error(`Tried to simultaneously mount ${t+1} <Audio /> tags at the same time. With the current settings, the maximum amount of <Audio /> tags is limited to ${t} at the same time. Remotion pre-mounts silent audio tags to help avoid browser autoplay restrictions. See https://remotion.dev/docs/player/autoplay#use-the-numberofsharedaudiotags-property for more information on how to increase this limit.`);const{id:a,ref:u}=s[i],f=[...l.current];f[i]=a,l.current=f;const d={props:e,id:a,el:u,audioId:r};return o.current?.push(d),c(),d}),[t,s,c]),f=(0,n.useCallback)((e=>{const t=[...l.current],r=s.findIndex((t=>t.id===e));if(-1===r)throw new TypeError("Error occured in ");t[r]=!1,l.current=t,o.current=o.current?.filter((t=>t.id!==e)),c()}),[s,c]),d=(0,n.useCallback)((({aud:e,audioId:t,id:r})=>{let n=!1;o.current=o.current?.map((i=>{if(i.id===r){return((e,t)=>{const r=Object.keys(e).sort(),n=Object.keys(t).sort();if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){if(r[i]!==n[i])return!1;if(e[r[i]]!==t[n[i]])return!1}return!0})(e,i.props)?i:(n=!0,{...i,props:e,audioId:t})}return i})),n&&c()}),[c]),p=(0,n.useCallback)((()=>{s.forEach((e=>{He(e.ref,"audio",null)}))}),[s]),h=(0,n.useMemo)((()=>({registerAudio:u,unregisterAudio:f,updateAudio:d,playAllAudios:p,numberOfAudioTags:t})),[t,p,u,f,d]),m=(0,n.useCallback)((()=>{l.current=new Array(t).fill(!1),o.current=[],c()}),[t,c]);return(0,n.useEffect)((()=>()=>{m()}),[r,m]),(0,i.jsxs)(wt.Provider,{value:h,children:[s.map((({id:e,ref:t})=>(0,i.jsx)("audio",{ref:t,preload:"metadata",src:xt},e))),e]})},Ut=(0,n.forwardRef)(((e,t)=>{const[r]=(0,n.useState)(e.shouldPreMountAudioTags);if(e.shouldPreMountAudioTags!==r)throw new Error("Cannot change the behavior for pre-mounting audio tags dynamically.");const{volume:o,muted:a,playbackRate:s,shouldPreMountAudioTags:l,src:c,onDuration:u,acceptableTimeShiftInSeconds:f,_remotionInternalNeedsDurationCalculation:d,_remotionInternalNativeLoopPassed:p,_remotionInternalStack:h,_remotionDebugSeeking:m,allowAmplificationDuringRender:g,name:y,pauseWhenBuffering:v,showInTimeline:b,loopVolumeCurveBehavior:x,stack:w,...U}=e,[k]=vt(),[C]=bt(),F=Le(x??"repeat"),{hidden:P}=(0,n.useContext)(S);if(!c)throw new TypeError("No 'src' was passed to <Audio>.");const T=Me(c),_=(0,n.useContext)(E),[I]=(0,n.useState)((()=>String(Math.random()))),M=P[I]??!1,A=We({frame:F,volume:o,mediaVolume:k,allowAmplificationDuringRender:!1}),R=(0,n.useMemo)((()=>({muted:a||C||M||A<=0,src:T,loop:p,...U})),[p,M,C,a,U,T,A]),V=((e,t)=>{const r=(0,n.useContext)(wt),[i]=(0,n.useState)((()=>r&&r.numberOfAudioTags>0?r.registerAudio(e,t):{el:n.createRef(),id:Math.random(),props:e,audioId:t})),o=n.useInsertionEffect??n.useLayoutEffect;return"undefined"!=typeof document&&(o((()=>{r&&r.numberOfAudioTags>0&&r.updateAudio({id:i.id,aud:e,audioId:t})}),[e,r,i.id,t]),o((()=>()=>{r&&r.numberOfAudioTags>0&&r.unregisterAudio(i.id)}),[r,i.id])),i})(R,(0,n.useMemo)((()=>`audio-${ze(c??"")}-${_?.relativeFrom}-${_?.cumulatedFrom}-${_?.durationInFrames}-muted:${e.muted}-loop:${e.loop}`),[c,_?.relativeFrom,_?.cumulatedFrom,_?.durationInFrames,e.muted,e.loop])).el,D=pt(V);mt({volumePropFrame:F,actualVolume:D,volume:o,mediaVolume:k,mediaRef:V}),$e({volume:o,mediaVolume:k,mediaRef:V,src:c,mediaType:"audio",playbackRate:s??1,displayName:y??null,id:I,stack:h,showInTimeline:b,premountDisplay:null,onAutoPlayError:null}),dt({mediaRef:V,src:c,mediaType:"audio",playbackRate:s??1,onlyWarnForMediaSeekingError:!1,acceptableTimeshift:f??ut,isPremounting:Boolean(_?.premounting),pauseWhenBuffering:v,debugSeeking:m,onAutoPlayError:null}),(0,n.useImperativeHandle)(t,(()=>V.current),[V]);const O=(0,n.useRef)();return O.current=u,(0,n.useEffect)((()=>{const{current:e}=V;if(!e)return;if(e.duration)return void O.current?.(e.src,e.duration);const t=()=>{O.current?.(e.src,e.duration)};return e.addEventListener("loadedmetadata",t),()=>{e.removeEventListener("loadedmetadata",t)}}),[V,c]),r?null:(0,i.jsx)("audio",{ref:V,preload:"metadata",...R})}));"undefined"!=typeof window&&(window.remotion_renderReady=!1);var St=[];"undefined"!=typeof window&&(window.remotion_delayRenderTimeouts={});var kt="The delayRender was called:",Ct=(e,t)=>{if("string"!=typeof e&&void 0!==e)throw new Error("The label parameter of delayRender() must be a string or undefined, got: "+JSON.stringify(e));const r=Math.random();St.push(r);const n=Error().stack?.replace(/^Error/g,"")??"";if(d().isRendering){const i=(t?.timeoutInMilliseconds??("undefined"==typeof window?3e4:window.remotion_puppeteerTimeout??3e4))-2e3;if("undefined"!=typeof window){const o=(t?.retries??0)-(window.remotion_attempt-1);window.remotion_delayRenderTimeouts[r]={label:e??null,timeout:setTimeout((()=>{const t=["A delayRender()",e?`"${e}"`:null,`was called but not cleared after ${i}ms. See https://remotion.dev/docs/timeout for help.`,o>0?"Retries left: "+o:null,o>0?"- Rendering the frame will be retried.":null,kt,n].filter(b).join(" ");Se(Error(t))}),i)}}}return"undefined"!=typeof window&&(window.remotion_renderReady=!1),r},Ft=e=>{if(void 0===e)throw new TypeError("The continueRender() method must be called with a parameter that is the return value of delayRender(). No value was passed.");if("number"!=typeof e)throw new TypeError("The parameter passed into continueRender() must be the return value of delayRender() which is a number. Got: "+JSON.stringify(e));0===(St=St.filter((t=>t!==e||(d().isRendering&&(clearTimeout(window.remotion_delayRenderTimeouts[e].timeout),delete window.remotion_delayRenderTimeouts[e]),!1)))).length&&"undefined"!=typeof window&&(window.remotion_renderReady=!0)},Pt=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null),{volume:o,playbackRate:a,allowAmplificationDuringRender:s,onDuration:l,toneFrequency:c,_remotionInternalNeedsDurationCalculation:u,_remotionInternalNativeLoopPassed:f,acceptableTimeShiftInSeconds:d,name:p,onError:h,delayRenderRetries:m,delayRenderTimeoutInMilliseconds:g,loopVolumeCurveBehavior:y,pauseWhenBuffering:v,...b}=e,x=se(),w=Le(y??"repeat"),U=he(),S=(0,n.useContext)(E),{registerRenderAsset:k,unregisterRenderAsset:C}=(0,n.useContext)(xe),F=(0,n.useMemo)((()=>`audio-${ze(e.src??"")}-${S?.relativeFrom}-${S?.cumulatedFrom}-${S?.durationInFrames}`),[e.src,S?.relativeFrom,S?.cumulatedFrom,S?.durationInFrames]),P=We({volume:o,frame:w,mediaVolume:1,allowAmplificationDuringRender:s??!1});(0,n.useImperativeHandle)(t,(()=>r.current),[]),(0,n.useEffect)((()=>{if(!e.src)throw new Error("No src passed");if(window.remotion_audioEnabled&&!(e.muted||P<=0))return k({type:"audio",src:Ee(e.src),id:F,frame:x,volume:P,mediaFrame:U,playbackRate:e.playbackRate??1,allowAmplificationDuringRender:s??!1,toneFrequency:c??null,audioStartFrame:Math.max(0,-(S?.relativeFrom??0))}),()=>C(F)}),[e.muted,e.src,k,x,F,C,P,w,U,a,e.playbackRate,s,c,S?.relativeFrom]);const{src:T}=e,_=t||u;return(0,n.useLayoutEffect)((()=>{if("test"===window.process?.env?.NODE_ENV)return;if(!_)return;const e=Ct("Loading <Audio> duration with src="+T,{retries:m??void 0,timeoutInMilliseconds:g??void 0}),{current:t}=r,n=()=>{t?.duration&&l(t.src,t.duration),Ft(e)};return t?.duration?(l(t.src,t.duration),Ft(e)):t?.addEventListener("loadedmetadata",n,{once:!0}),()=>{t?.removeEventListener("loadedmetadata",n),Ft(e)}}),[T,l,_,m,g]),_?(0,i.jsx)("audio",{ref:r,...b}):null})),Tt=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useContext)(wt),{startFrom:o,endAt:a,name:s,stack:l,pauseWhenBuffering:c,showInTimeline:u,_remotionDebugSeeking:f,...p}=e,{loop:h,...m}=e,{fps:g}=pe(),y=d(),{durations:v,setDurations:b}=(0,n.useContext)(De);if("string"!=typeof e.src)throw new TypeError(`The \`<Audio>\` tag requires a string for \`src\`, but got ${JSON.stringify(e.src)} instead.`);const x=Me(e.src),w=(0,n.useCallback)((e=>{console.log(e.currentTarget.error);const t=`Could not play audio with src ${x}: ${e.currentTarget.error}. See https://remotion.dev/docs/media-playback-error for help.`;h?Se(new Error(t)):console.warn(t)}),[h,x]),E=(0,n.useCallback)(((e,t)=>{b({type:"got-duration",durationInSeconds:t,src:e})}),[b]),U=v[Ee(x)]??v[Ee(e.src)];if(h&&void 0!==U){const r=U*g;return(0,i.jsx)(Fe,{layout:"none",durationInFrames:Ue({endAt:a,mediaDuration:r,playbackRate:e.playbackRate??1,startFrom:o}),children:(0,i.jsx)(Tt,{...m,ref:t,_remotionInternalNativeLoopPassed:!0})})}if(void 0!==o||void 0!==a){Re(o,a);const e=o??0,r=a??1/0;return(0,i.jsx)(ve,{layout:"none",from:0-e,showInTimeline:!1,durationInFrames:r,name:s,children:(0,i.jsx)(Tt,{_remotionInternalNeedsDurationCalculation:Boolean(h),pauseWhenBuffering:c??!1,...p,ref:t})})}return Ae(e,"Audio"),y.isRendering?(0,i.jsx)(Pt,{onDuration:E,...e,ref:t,onError:w,_remotionInternalNeedsDurationCalculation:Boolean(h)}):(0,i.jsx)(Ut,{_remotionInternalNativeLoopPassed:e._remotionInternalNativeLoopPassed??!1,_remotionDebugSeeking:f??!1,_remotionInternalStack:l??null,shouldPreMountAudioTags:null!==r&&r.numberOfAudioTags>0,...e,ref:t,onError:w,onDuration:E,pauseWhenBuffering:c??!1,_remotionInternalNeedsDurationCalculation:Boolean(h),showInTimeline:u??!0})}));g(Tt);var _t=(0,n.createContext)({folderName:null,parentName:null}),It={transform:"rotate(90deg)"},Mt={color:"white",fontSize:14,fontFamily:"sans-serif"},At={justifyContent:"center",alignItems:"center"},Rt=()=>(0,i.jsxs)(w,{style:At,id:"remotion-comp-loading",children:[(0,i.jsx)("style",{type:"text/css",children:"\n\t\t\t\t@keyframes anim {\n\t\t\t\t\tfrom {\n\t\t\t\t\t\topacity: 0\n\t\t\t\t\t}\n\t\t\t\t\tto {\n\t\t\t\t\t\topacity: 1\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t#remotion-comp-loading {\n\t\t\t\t\tanimation: anim 2s;\n\t\t\t\t\tanimation-fill-mode: forwards;\n\t\t\t\t}\n\t\t\t"}),(0,i.jsx)("svg",{width:40,height:40,viewBox:"-100 -100 400 400",style:It,children:(0,i.jsx)("path",{fill:"#555",stroke:"#555",strokeWidth:"100",strokeLinejoin:"round",d:"M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z"})}),(0,i.jsxs)("p",{style:Mt,children:["Resolving ","<Suspense>","..."]})]}),Vt=null,Dt=()=>{if(!Vt){if("undefined"==typeof document)throw new Error("Tried to call an API that only works in the browser from outside the browser");(Vt=document.createElement("div")).style.position="absolute",Vt.style.top="0px",Vt.style.left="0px",Vt.style.right="0px",Vt.style.bottom="0px",Vt.style.width="100%",Vt.style.height="100%",Vt.style.display="flex",Vt.style.flexDirection="column";const e=document.createElement("div");e.style.position="fixed",e.style.top="-999999px",e.appendChild(Vt),document.body.appendChild(e)}return Vt},Ot=e=>(0,n.useMemo)((()=>{if("lazyComponent"in e&&void 0!==e.lazyComponent)return n.lazy(e.lazyComponent);if("component"in e)return"undefined"==typeof document?e.component:n.lazy((()=>Promise.resolve({default:e.component})));throw new Error("You must pass either 'component' or 'lazyComponent'")}),[e.component,e.lazyComponent]),jt=e=>e.match(/^([a-zA-Z0-9-\u4E00-\u9FFF])+$/g),zt=`Composition ID must match ${String(/^([a-zA-Z0-9-\u4E00-\u9FFF])+$/g)}`,Bt=({children:e})=>{const{clipRegion:t}=(0,n.useContext)(l),r=(0,n.useMemo)((()=>({display:"flex",flexDirection:"row",opacity:"hide"===t?0:1,clipPath:t&&"hide"!==t?`polygon(${t.x}px ${t.y}px, ${t.x}px ${t.height+t.y}px, ${t.width+t.x}px ${t.height+t.y}px, ${t.width+t.x}px ${t.y}px)`:void 0})),[t]);return(0,i.jsx)(w,{style:r,children:e})},Lt=()=>((0,n.useEffect)((()=>{const e=Ct("Waiting for Root component to unsuspend");return()=>Ft(e)}),[]),null),Nt=({width:e,height:t,fps:r,durationInFrames:a,id:s,defaultProps:l,schema:c,...u})=>{const{registerComposition:f,unregisterComposition:p}=(0,n.useContext)(T),h=te(),m=Ot(u),g=F(),y=v(),b=d();if((0,n.useContext)(ue)){if(y)throw new Error("<Composition> was mounted inside the `component` that was passed to the <Player>. See https://remotion.dev/docs/wrong-composition-mount for help.");throw new Error("<Composition> mounted inside another composition. See https://remotion.dev/docs/wrong-composition-mount for help.")}const{folderName:x,parentName:w}=(0,n.useContext)(_t);(0,n.useEffect)((()=>{if(!s)throw new Error("No id for composition passed.");return(e=>{if(!jt(e))throw new Error(`Composition id can only contain a-z, A-Z, 0-9, CJK characters and -. You passed ${e}`)})(s),((e,t,r)=>{if(e){if("object"!=typeof e)throw new Error(`"${t}" must be an object, but you passed a value of type ${typeof e}`);if(Array.isArray(e))throw new Error(`"${t}" must be an object, an array was passed ${r?`for composition "${r}"`:""}`)}})(l,"defaultProps",s),f({durationInFrames:a??void 0,fps:r??void 0,height:t??void 0,width:e??void 0,id:s,folderName:x,component:m,defaultProps:L(l??{}),nonce:g,parentFolderName:w,schema:c??null,calculateMetadata:u.calculateMetadata??null}),()=>{p(s)}}),[a,r,t,m,s,x,l,f,p,e,g,w,c,u.calculateMetadata]);const E=ee(s);if(b.isStudio&&h&&h.component===m){const e=m;return null===E||"success"!==E.type?null:(0,o.createPortal)((0,i.jsx)(Bt,{children:(0,i.jsx)(fe,{children:(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)(Rt,{}),children:(0,i.jsx)(e,{...E.result.props??{}})})})}),Dt())}if(b.isRendering&&h&&h.component===m){const e=m;return null===E||"success"!==E.type?null:(0,o.createPortal)((0,i.jsx)(fe,{children:(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)(Lt,{}),children:(0,i.jsx)(e,{...E.result.props??{}})})}),Dt())}return null},Ht=n.createRef(),Wt=({children:e,numberOfAudioTags:t})=>{const[r,o]=(0,n.useState)([]),a=(0,n.useRef)(r),[s,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(null),[f,d]=(0,n.useState)(null),p=(0,n.useCallback)((e=>{o((t=>{const r=e(t);return a.current=r,r}))}),[]),h=(0,n.useCallback)((e=>{p((t=>{if(t.find((t=>t.id===e.id)))throw new Error(`Multiple composition with id ${e.id} are registered.`);const r=[...t,e].slice().sort(((e,t)=>e.nonce-t.nonce));return r}))}),[p]),m=(0,n.useCallback)((e=>{o((t=>t.filter((t=>t.id!==e))))}),[]),g=(0,n.useCallback)(((e,t)=>{l((r=>[...r,{name:e,parent:t}]))}),[]),y=(0,n.useCallback)(((e,t)=>{l((r=>r.filter((r=>!(r.name===e&&r.parent===t)))))}),[]);(0,n.useImperativeHandle)(Ht,(()=>({getCompositions:()=>a.current})),[]);const v=r.find((e=>"composition"===c?.type?e.id===c.compositionId:null)),b=(0,n.useCallback)(((e,t)=>{o((r=>{const n=r.map((r=>r.id===e?{...r,defaultProps:t}:r));return n}))}),[]),x=(0,n.useMemo)((()=>({compositions:r,registerComposition:h,unregisterComposition:m,folders:s,registerFolder:g,unregisterFolder:y,currentCompositionMetadata:f,setCurrentCompositionMetadata:d,canvasContent:c,setCanvasContent:u,updateCompositionDefaultProps:b})),[r,h,m,s,g,y,f,c,b]);return(0,i.jsx)(T.Provider,{value:x,children:(0,i.jsx)(k,{children:(0,i.jsx)(we,{children:(0,i.jsx)(Q,{children:(0,i.jsx)(Et,{numberOfAudioTags:t,component:v?.component??null,children:e})})})})})},Gt=function(e,t){return 1-3*t+3*e},$t=function(e,t){return 3*t-6*e},Kt=function(e){return 3*e},Jt=function(e,t,r){return((Gt(t,r)*e+$t(t,r))*e+Kt(t))*e},qt=function(e,t,r){return 3*Gt(t,r)*e*e+2*$t(t,r)*e+Kt(t)};function Xt(e,t,r,n){if(!(e>=0&&e<=1&&r>=0&&r<=1))throw new Error("bezier x values must be in [0, 1] range");const i=nr?new Float32Array(tr):new Array(tr);if(e!==t||r!==n)for(let t=0;t<tr;++t)i[t]=Jt(t*rr,e,r);function o(t){let n=0,o=1;const a=tr-1;for(;o!==a&&i[o]<=t;++o)n+=rr;--o;const s=n+(t-i[o])/(i[o+1]-i[o])*rr,l=qt(s,e,r);return l>=Yt?function(e,t,r,n){let i=t;for(let t=0;t<Zt;++t){const t=qt(i,r,n);if(0===t)return i;i-=(Jt(i,r,n)-e)/t}return i}(t,s,e,r):0===l?s:function({aX:e,_aA:t,_aB:r,mX1:n,mX2:i}){let o,a,s=0,l=t,c=r;do{a=l+(c-l)/2,o=Jt(a,n,i)-e,o>0?c=a:l=a}while(Math.abs(o)>Qt&&++s<er);return a}({aX:t,_aA:n,_aB:n+rr,mX1:e,mX2:r})}return function(i){return e===t&&r===n?i:0===i?0:1===i?1:Jt(o(i),t,n)}}var Zt=4,Yt=.001,Qt=1e-7,er=10,tr=11,rr=1/(tr-1),nr="function"==typeof Float32Array;class ir{static step0(e){return e>0?1:0}static step1(e){return e>=1?1:0}static linear(e){return e}static ease(e){return ir.bezier(.42,0,1,1)(e)}static quad(e){return e*e}static cubic(e){return e*e*e}static poly(e){return t=>t**e}static sin(e){return 1-Math.cos(e*Math.PI/2)}static circle(e){return 1-Math.sqrt(1-e*e)}static exp(e){return 2**(10*(e-1))}static elastic(e=1){const t=e*Math.PI;return e=>1-Math.cos(e*Math.PI/2)**3*Math.cos(e*t)}static back(e=1.70158){return t=>t*t*((e+1)*t-e)}static bounce(e){if(e<1/2.75)return 7.5625*e*e;if(e<2/2.75){const t=e-1.5/2.75;return 7.5625*t*t+.75}if(e<2.5/2.75){const t=e-2.25/2.75;return 7.5625*t*t+.9375}const t=e-2.625/2.75;return 7.5625*t*t+.984375}static bezier(e,t,r,n){return Xt(e,t,r,n)}static in(e){return e}static out(e){return t=>1-e(1-t)}static inOut(e){return t=>t<.5?e(2*t)/2:1-e(2*(1-t))/2}}(0,n.forwardRef)((({onLoad:e,onError:t,delayRenderRetries:r,delayRenderTimeoutInMilliseconds:o,...a},s)=>{const[l]=(0,n.useState)((()=>Ct(`Loading <IFrame> with source ${a.src}`,{retries:r??void 0,timeoutInMilliseconds:o??void 0}))),c=(0,n.useCallback)((t=>{Ft(l),e?.(t)}),[l,e]),u=(0,n.useCallback)((e=>{Ft(l),t?t(e):console.error("Error loading iframe:",e,"Handle the event using the onError() prop to make this message disappear.")}),[l,t]);return(0,i.jsx)("iframe",{...a,ref:s,onError:u,onLoad:c})}));var or=(0,n.forwardRef)((({onError:e,maxRetries:t=2,src:r,pauseWhenLoading:o,delayRenderRetries:a,delayRenderTimeoutInMilliseconds:s,onImageFrame:l,...c},u)=>{const f=(0,n.useRef)(null),d=(0,n.useRef)({}),{delayPlayback:p}=qe(),h=(0,n.useContext)(E);if(!r)throw new Error('No "src" prop was passed to <Img>.');(0,n.useImperativeHandle)(u,(()=>f.current),[]);const m=Me(r),g=(0,n.useCallback)((e=>{if(!f.current)return;const t=f.current.src;setTimeout((()=>{if(!f.current)return;const e=f.current?.src;e===t&&(f.current.removeAttribute("src"),f.current.setAttribute("src",e))}),e)}),[]),y=(0,n.useCallback)((r=>{if(d.current)if(d.current[f.current?.src]=(d.current[f.current?.src]??0)+1,e&&(d.current[f.current?.src]??0)>t)e(r);else{if((d.current[f.current?.src]??0)<=t){const e=1e3*2**((d.current[f.current?.src]??0)-1);return console.warn(`Could not load image with source ${f.current?.src}, retrying again in ${e}ms`),void g(e)}Se("Error loading image with src: "+f.current?.src)}}),[t,e,g]);if("undefined"!=typeof window){const e=Boolean(h?.premounting);(0,n.useLayoutEffect)((()=>{if("test"===window.process?.env?.NODE_ENV)return;const t=Ct("Loading <Img> with src="+m,{retries:a??void 0,timeoutInMilliseconds:s??void 0}),r=o&&!e?p().unblock:()=>{},{current:n}=f,i=()=>{(d.current[f.current?.src]??0)>0&&(delete d.current[f.current?.src],console.info(`Retry successful - ${f.current?.src} is now loaded`)),n&&l?.(n),r(),Ft(t)},c=()=>{i()};return n?.complete?i():n?.addEventListener("load",c,{once:!0}),()=>{n?.removeEventListener("load",c),r(),Ft(t)}}),[m,p,a,s,o,e,l])}return(0,i.jsx)("img",{...c,ref:f,src:m,onError:y})})),ar={};s(ar,{makeDefaultPreviewCSS:()=>ur,injectCSS:()=>lr,OFFTHREAD_VIDEO_CLASS_NAME:()=>cr});var sr={},lr=e=>{if("undefined"==typeof document)return;if(sr[e])return;const t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.appendChild(document.createTextNode(e)),t.prepend(r),sr[e]=!0},cr="__remotion_offthreadvideo",ur=(e,t)=>e?`\n ${e} * {\n box-sizing: border-box;\n }\n ${e} *:-webkit-full-screen {\n width: 100%;\n height: 100%;\n }\n ${e} .${cr} {\n object-fit: contain;\n }\n `:`\n * {\n box-sizing: border-box;\n }\n body {\n margin: 0;\n\t background-color: ${t};\n }\n .${cr} {\n object-fit: contain;\n }\n `,fr="__remotion-studio-container",dr=null,pr=[],hr=n.createContext(null),mr=(0,n.createContext)({setSize:()=>{},size:{size:"auto",translation:{x:0,y:0}}}),gr=({canvasSize:e,compositionHeight:t,compositionWidth:r,previewSize:n})=>{const i=e.height/t,o=e.width/r,a=Math.min(i,o);return"auto"===n?a:Number(n)},yr="remotion_staticFilesChanged";var vr={useUnsafeVideoConfig:de,Timeline:P,CompositionManager:T,SequenceManager:U,SequenceVisibilityToggleContext:S,RemotionRoot:({children:t,numberOfAudioTags:r})=>{const[o]=(0,n.useState)((()=>String(ze(null)))),[a,s]=(0,n.useState)((()=>oe())),[l,u]=(0,n.useState)(!1),f=(0,n.useRef)(!1),[d,p]=(0,n.useState)(0),[h,m]=(0,n.useState)(1),g=(0,n.useRef)([]);"undefined"!=typeof window&&(0,n.useLayoutEffect)((()=>{window.remotion_setFrame=(e,t,r)=>{window.remotion_attempt=r;const n=Ct(`Setting the current frame to ${e}`);let i=!0;s((r=>(r[t]??window.remotion_initialFrame)===e?(i=!1,r):{...r,[t]:e})),i?requestAnimationFrame((()=>Ft(n))):Ft(n)},window.remotion_isPlayer=!1}),[]);const y=(0,n.useMemo)((()=>({frame:a,playing:l,imperativePlaying:f,rootId:o,playbackRate:h,setPlaybackRate:m,audioAndVideoTags:g})),[a,h,l,o]),v=(0,n.useMemo)((()=>({setFrame:s,setPlaying:u})),[]),b=(0,n.useMemo)((()=>{let e=0;return{getNonce:()=>e++,fastRefreshes:d}}),[d]);return(0,n.useEffect)((()=>{e.hot&&e.hot.addStatusHandler((e=>{"idle"===e&&p((e=>e+1))}))}),[]),(0,i.jsx)(C.Provider,{value:b,children:(0,i.jsx)(re.Provider,{value:y,children:(0,i.jsx)(ne.Provider,{value:v,children:(0,i.jsx)(M,{children:(0,i.jsx)(Ie,{children:(0,i.jsx)(c,{children:(0,i.jsx)(Wt,{numberOfAudioTags:r,children:(0,i.jsx)(Oe,{children:(0,i.jsx)(Je,{children:t})})})})})})})})})},useVideo:te,getRoot:()=>dr,useMediaVolumeState:vt,useMediaMutedState:bt,useLazyComponent:Ot,truthy:b,SequenceContext:E,useRemotionContexts:function(){const e=n.useContext(T),t=n.useContext(re),r=n.useContext(ne),i=n.useContext(E),o=n.useContext(C),a=n.useContext(ue),s=n.useContext(l),c=n.useContext(Pe),u=n.useContext(X),f=n.useContext(xe),d=n.useContext(U),p=n.useContext(Ke);return(0,n.useMemo)((()=>({compositionManagerCtx:e,timelineContext:t,setTimelineContext:r,sequenceContext:i,nonceContext:o,canUseRemotionHooksContext:a,nativeLayersContext:s,preloadContext:c,resolveCompositionContext:u,renderAssetManagerContext:f,sequenceManagerContext:d,bufferManagerContext:p})),[e,o,i,r,t,a,s,c,u,f,d,p])},RemotionContextProvider:e=>{const{children:t,contexts:r}=e;return(0,i.jsx)(ue.Provider,{value:r.canUseRemotionHooksContext,children:(0,i.jsx)(C.Provider,{value:r.nonceContext,children:(0,i.jsx)(l.Provider,{value:r.nativeLayersContext,children:(0,i.jsx)(Pe.Provider,{value:r.preloadContext,children:(0,i.jsx)(T.Provider,{value:r.compositionManagerCtx,children:(0,i.jsx)(U.Provider,{value:r.sequenceManagerContext,children:(0,i.jsx)(xe.Provider,{value:r.renderAssetManagerContext,children:(0,i.jsx)(X.Provider,{value:r.resolveCompositionContext,children:(0,i.jsx)(re.Provider,{value:r.timelineContext,children:(0,i.jsx)(ne.Provider,{value:r.setTimelineContext,children:(0,i.jsx)(E.Provider,{value:r.sequenceContext,children:(0,i.jsx)(Ke.Provider,{value:r.bufferManagerContext,children:t})})})})})})})})})})})})},CSSUtils:ar,setupEnvVariables:()=>{const e=(()=>{if(d().isRendering){const e=window.remotion_envVariables;return e?{...JSON.parse(e),NODE_ENV:"production"}:{}}return{NODE_ENV:"production"}})();window.process||(window.process={}),window.process.env||(window.process.env={}),Object.keys(e).forEach((t=>{window.process.env[t]=e[t]}))},MediaVolumeContext:gt,SetMediaVolumeContext:yt,getRemotionEnvironment:d,SharedAudioContext:wt,SharedAudioContextProvider:Et,invalidCompositionErrorMessage:zt,isCompositionIdValid:jt,getPreviewDomElement:()=>document.getElementById(fr),compositionsRef:Ht,portalNode:Dt,waitForRoot:e=>dr?(e(dr),()=>{}):(pr.push(e),()=>{pr=pr.filter((t=>t!==e))}),CanUseRemotionHooksProvider:fe,CanUseRemotionHooks:ue,PrefetchProvider:Ie,DurationsContextProvider:Oe,IsPlayerContextProvider:({children:e})=>(0,i.jsx)(y.Provider,{value:!0,children:e}),useIsPlayer:v,EditorPropsProvider:M,EditorPropsContext:_,usePreload:Me,NonceContext:C,resolveVideoConfig:q,useResolvedVideoConfig:ee,resolveCompositionsRef:Z,ResolveCompositionConfig:Q,REMOTION_STUDIO_CONTAINER_ELEMENT:fr,RenderAssetManager:xe,persistCurrentFrame:ie,useTimelineSetFrame:le,NativeLayersProvider:c,ClipComposition:Bt,isIosSafari:it,WATCH_REMOTION_STATIC_FILES:yr,addSequenceStackTraces:g,useMediaStartsAt:Be,BufferingProvider:Je,BufferingContextReact:Ke,enableSequenceStackTraces:m,CurrentScaleContext:hr,PreviewSizeContext:mr,calculateScale:gr,editorPropsProviderRef:I,PROPS_UPDATED_EXTERNALLY:"remotion.propsUpdatedExternally",validateRenderAsset:be};var br=({allowFloats:e,durationInFrames:t,frame:r})=>{if(void 0===r)throw new TypeError('Argument missing for parameter "frame"');if("number"!=typeof r)throw new TypeError(`Argument passed for "frame" is not a number: ${r}`);if(!Number.isFinite(r))throw new RangeError(`Frame ${r} is not finite`);if(r%1!=0&&!e)throw new RangeError(`Argument for frame must be an integer, but got ${r}`);if(r<0&&r<-t)throw new RangeError(`Cannot use frame ${r}: Duration of composition is ${t}, therefore the lowest frame that can be rendered is ${-t}`);if(r>t-1)throw new RangeError(`Cannot use frame ${r}: Duration of composition is ${t}, therefore the highest frame that can be rendered is ${t-1}`)},xr=e=>n.Children.toArray(e).reduce(((e,t)=>t.type===n.Fragment?e.concat(xr(t.props.children)):(e.push(t),e)),[]),wr=(0,n.createContext)(!1),Er=({children:e})=>(0,i.jsx)(wr.Provider,{value:!0,children:e}),Ur=({children:e})=>(0,i.jsx)(wr.Provider,{value:!1,children:e}),Sr=(0,n.forwardRef)((({children:e},t)=>((()=>{if(!n.useContext(wr))throw new Error("This component must be inside a <Series /> component.")})(),(0,i.jsx)(Ur,{children:e})))),kr=e=>{const t=(0,n.useMemo)((()=>{let t=0;const r=xr(e.children);return n.Children.map(r,((e,n)=>{const o=e;if("string"==typeof o){if(""===o.trim())return null;throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but you passed a string "${o}"`)}if(o.type!==Sr)throw new TypeError(`The <Series /> component only accepts a list of <Series.Sequence /> components as its children, but got ${o} instead`);const a=`index = ${n}, duration = ${o.props.durationInFrames}`;if(!o?.props.children)throw new TypeError(`A <Series.Sequence /> component (${a}) was detected to not have any children. Delete it to fix this error.`);const s=o.props.durationInFrames,{durationInFrames:l,children:c,from:u,name:f,...d}=o.props;n===r.length-1&&s===1/0||$(s,{component:"of a <Series.Sequence /> component",allowFloats:!0});const p=o.props.offset??0;if(Number.isNaN(p))throw new TypeError(`The "offset" property of a <Series.Sequence /> must not be NaN, but got NaN (${a}).`);if(!Number.isFinite(p))throw new TypeError(`The "offset" property of a <Series.Sequence /> must be finite, but got ${p} (${a}).`);if(p%1!=0)throw new TypeError(`The "offset" property of a <Series.Sequence /> must be finite, but got ${p} (${a}).`);const h=t+p;return t+=s+p,(0,i.jsx)(ve,{name:f||"<Series.Sequence>",from:h,durationInFrames:s,...d,ref:o.ref,children:e})}))}),[e.children]);return(0,i.jsx)(Er,{children:t})};kr.Sequence=Sr,g(Sr);var Cr=e=>{if(void 0!==e){if("number"!=typeof e)throw new TypeError(`A "duration" of a spring must be a "number" but is "${typeof e}"`);if(Number.isNaN(e))throw new TypeError('A "duration" of a spring is NaN, which it must not be');if(!Number.isFinite(e))throw new TypeError('A "duration" of a spring must be finite, but is '+e);if(e<=0)throw new TypeError('A "duration" of a spring must be positive, but is '+e)}},Fr=function({animation:e,now:t,config:r}){const{toValue:n,lastTimestamp:i,current:o,velocity:a}=e,s=Math.min(t-i,64);if(r.damping<=0)throw new Error("Spring damping must be greater than 0, otherwise the spring() animation will never end, causing an infinite loop.");const l=r.damping,c=r.mass,u=r.stiffness,f=[n,i,o,a,l,c,u,t].join("-");if(_r[f])return _r[f];const d=-a,p=n-o,h=l/(2*Math.sqrt(u*c)),m=Math.sqrt(u/c),g=m*Math.sqrt(1-h**2),y=s/1e3,v=Math.sin(g*y),b=Math.cos(g*y),x=Math.exp(-h*m*y),w=x*(v*((d+h*m*p)/g)+p*b),E=n-w,U=h*m*w-x*(b*(d+h*m*p)-g*p*v),S=Math.exp(-m*y),k={toValue:n,prevPosition:o,lastTimestamp:t,current:h<1?E:n-S*(p+(d+m*p)*y),velocity:h<1?U:S*(d*(y*m-1)+y*p*m*m)};return _r[f]=k,k};function Pr({frame:e,fps:t,config:r={}}){const n=[e,t,r.damping,r.mass,r.overshootClamping,r.stiffness].join("-");if(Ir[n])return Ir[n];let i={lastTimestamp:0,current:0,toValue:1,velocity:0,prevPosition:0};const o=Math.max(0,e),a=o%1;for(let e=0;e<=Math.floor(o);e++){e===Math.floor(o)&&(e+=a);i=Fr({animation:i,now:e/t*1e3,config:{...Tr,...r}})}return Ir[n]=i,i}var Tr={damping:10,mass:1,stiffness:100,overshootClamping:!1},_r={},Ir={};var Mr=new Map;function Ar({frame:e,fps:t,config:r={},from:n=0,to:i=1,durationInFrames:o,durationRestThreshold:a,delay:s=0,reverse:l=!1}){Cr(o),br({frame:e,durationInFrames:1/0,allowFloats:!0}),K(t,"to spring()",!1);const c=l||void 0!==o,u=c?function({fps:e,config:t={},threshold:r=.005}){if("number"!=typeof r)throw new TypeError(`threshold must be a number, got ${r} of type ${typeof r}`);if(0===r)return 1/0;if(1===r)return 0;if(isNaN(r))throw new TypeError("Threshold is NaN");if(!Number.isFinite(r))throw new TypeError("Threshold is not finite");if(r<0)throw new TypeError("Threshold is below 0");const n=[e,t.damping,t.mass,t.overshootClamping,t.stiffness,r].join("-");if(Mr.has(n))return Mr.get(n);K(e,"to the measureSpring() function",!1);let i=0,o=0;const a=()=>Pr({fps:e,frame:i,config:t});let s=a();const l=()=>Math.abs(s.current-s.toValue);let c=l();for(;c>=r;)i++,s=a(),c=l();o=i;for(let e=0;e<20;e++)i++,s=a(),c=l(),c>=r&&(e=0,o=i+1);return Mr.set(n,o),o}({fps:t,config:r,threshold:a}):void 0,f=c?{get:()=>u}:{get:()=>{throw new Error("did not calculate natural duration, this is an error with Remotion. Please report")}},d=(l?(o??f.get())-e:e)+(l?s:-s),p=void 0===o?d:d/(o/f.get());if(o&&d>o)return i;const h=Pr({fps:t,frame:p,config:r}),m=r.overshootClamping?i>=n?Math.min(h.current,i):Math.max(h.current,i):h.current;return 0===n&&1===i?m:et(m,[0,1],[n,i])}var Rr=({onError:e,volume:t,playbackRate:r,src:o,muted:a,allowAmplificationDuringRender:s,transparent:l=!1,toneMapped:c=!0,toneFrequency:u,name:f,loopVolumeCurveBehavior:d,delayRenderRetries:p,delayRenderTimeoutInMilliseconds:h,onVideoFrame:m,...g})=>{const y=se(),v=he(),x=Le(d??"repeat"),w=de(),U=(0,n.useContext)(E),S=Be(),{registerRenderAsset:k,unregisterRenderAsset:C}=(0,n.useContext)(xe);if(!o)throw new TypeError("No `src` was passed to <OffthreadVideo>.");const F=(0,n.useMemo)((()=>`offthreadvideo-${ze(o??"")}-${U?.cumulatedFrom}-${U?.relativeFrom}-${U?.durationInFrames}`),[o,U?.cumulatedFrom,U?.relativeFrom,U?.durationInFrames]);if(!w)throw new Error("No video config found");const P=We({volume:t,frame:x,mediaVolume:1,allowAmplificationDuringRender:s??!1});(0,n.useEffect)((()=>{if(!o)throw new Error("No src passed");if(window.remotion_audioEnabled&&!(a||P<=0))return k({type:"video",src:Ee(o),id:F,frame:y,volume:P,mediaFrame:v,playbackRate:r??1,allowAmplificationDuringRender:s??!1,toneFrequency:u??null,audioStartFrame:Math.max(0,-(U?.relativeFrom??0))}),()=>C(F)}),[a,o,k,F,C,P,v,y,r,s,u,U?.relativeFrom]);const T=(0,n.useMemo)((()=>tt({frame:v,playbackRate:r||1,startFrom:-S})/w.fps),[v,S,r,w.fps]),_=(0,n.useMemo)((()=>(({src:e,transparent:t,currentTime:r,toneMapped:n})=>`http://localhost:${window.remotion_proxyPort}/proxy?src=${encodeURIComponent(Ee(e))}&time=${encodeURIComponent(r)}&transparent=${String(t)}&toneMapped=${String(n)}`)({src:o,currentTime:T,transparent:l,toneMapped:c})),[c,T,o,l]),[I,M]=(0,n.useState)(null);(0,n.useLayoutEffect)((()=>{const t=[];M(null);const r=new AbortController,n=Ct("Fetching "+_+"from server",{retries:p??void 0,timeoutInMilliseconds:h??void 0});return(async()=>{try{const e=await fetch(_,{signal:r.signal});if(200!==e.status){if(500===e.status){const t=await e.json();if(t.error){const e=t.error.replace(/^Error: /,"");throw new Error(e)}}throw new Error(`Server returned status ${e.status} while fetching ${_}`)}const i=await e.blob(),o=URL.createObjectURL(i);t.push((()=>URL.revokeObjectURL(o))),M({src:o,handle:n})}catch(t){if(t.message.includes("aborted"))return;if(r.signal.aborted)return;t.message.includes("Failed to fetch")&&(t=new Error(`Failed to fetch ${_}. This could be caused by Chrome rejecting the request because the disk space is low. Consider increasing the disk size of your environment.`,{cause:t})),e?e(t):Se(t)}})(),t.push((()=>{r.signal.aborted||r.abort()})),()=>{t.forEach((e=>e()))}}),[_,p,h,e]);const A=(0,n.useCallback)((()=>{e?e?.(new Error("Failed to load image with src "+I)):Se("Failed to load image with src "+I)}),[I,e]),R=(0,n.useMemo)((()=>[cr,g.className].filter(b).join(" ")),[g.className]),V=(0,n.useCallback)((e=>{m&&m(e)}),[m]);return I?(Ft(I.handle),(0,i.jsx)(or,{src:I.src,className:R,delayRenderRetries:p,delayRenderTimeoutInMilliseconds:h,onImageFrame:V,...g,onError:A})):null},Vr=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null),{volume:o,muted:a,playbackRate:s,onlyWarnForMediaSeekingError:l,src:c,onDuration:u,acceptableTimeShift:f,acceptableTimeShiftInSeconds:d,toneFrequency:p,name:h,_remotionInternalNativeLoopPassed:m,_remotionInternalStack:g,_remotionDebugSeeking:y,style:v,pauseWhenBuffering:b,showInTimeline:x,loopVolumeCurveBehavior:w,onError:U,onAutoPlayError:k,onVideoFrame:C,crossOrigin:F,...P}=e,T=Le(w??"repeat"),{fps:_,durationInFrames:I}=pe(),M=(0,n.useContext)(E),{hidden:A}=(0,n.useContext)(S),[R]=(0,n.useState)((()=>String(Math.random()))),V=A[R]??!1;if(void 0!==f)throw new Error("acceptableTimeShift has been removed. Use acceptableTimeShiftInSeconds instead.");const D=pt(r),[O]=vt(),[j]=bt();$e({mediaRef:r,volume:o,mediaVolume:O,mediaType:"video",src:c,playbackRate:e.playbackRate??1,displayName:h??null,id:R,stack:g,showInTimeline:x,premountDisplay:null,onAutoPlayError:k??null}),mt({volumePropFrame:T,actualVolume:D,volume:o,mediaVolume:O,mediaRef:r}),dt({mediaRef:r,src:c,mediaType:"video",playbackRate:e.playbackRate??1,onlyWarnForMediaSeekingError:l,acceptableTimeshift:d??ut,isPremounting:Boolean(M?.premounting),pauseWhenBuffering:b,debugSeeking:y,onAutoPlayError:k??null});const z=M?M.relativeFrom:0,B=M?Math.min(M.durationInFrames,I):I,L=lt({actualSrc:Me(c),actualFrom:z,duration:B,fps:_});(0,n.useImperativeHandle)(t,(()=>r.current),[]),(0,n.useEffect)((()=>{const{current:e}=r;if(!e)return;const t=()=>{if(e.error){if(console.error("Error occurred in video",e?.error),U){const t=new Error(`Code ${e.error.code}: ${e.error.message}`);return void U(t)}throw new Error(`The browser threw an error while playing the video ${c}: Code ${e.error.code} - ${e?.error?.message}. See https://remotion.dev/docs/media-playback-error for help. Pass an onError() prop to handle the error.`)}if(!U)throw new Error("The browser threw an error while playing the video");{const e=new Error(`The browser threw an error while playing the video ${c}`);U(e)}};return e.addEventListener("error",t,{once:!0}),()=>{e.removeEventListener("error",t)}}),[U,c]);const N=(0,n.useRef)();N.current=u,(({ref:e,onVideoFrame:t})=>{(0,n.useEffect)((()=>{const{current:r}=e;if(!r)return;if(!t)return;let n=0;const i=()=>{e.current&&(t(e.current),n=e.current.requestVideoFrameCallback(i))};return i(),()=>{r.cancelVideoFrameCallback(n)}}),[t,e])})({ref:r,onVideoFrame:C}),(0,n.useEffect)((()=>{const{current:e}=r;if(!e)return;if(e.duration)return void N.current?.(c,e.duration);const t=()=>{N.current?.(c,e.duration)};return e.addEventListener("loadedmetadata",t),()=>{e.removeEventListener("loadedmetadata",t)}}),[c]),(0,n.useEffect)((()=>{const{current:e}=r;e&&(it()?e.preload="metadata":e.preload="auto")}),[]);const H=(0,n.useMemo)((()=>({...v,opacity:V?0:v?.opacity??1})),[V,v]),W=F??(C?"anonymous":void 0);return(0,i.jsx)("video",{ref:r,muted:a||j,playsInline:!0,src:L,loop:m,style:H,disableRemotePlayback:!0,crossOrigin:W,...P})})),Dr=e=>{const{startFrom:t,endAt:r,name:o,pauseWhenBuffering:a,stack:s,showInTimeline:l,...c}=e,u=d(),f=(0,n.useCallback)((()=>{}),[]);if("string"!=typeof e.src)throw new TypeError(`The \`<OffthreadVideo>\` tag requires a string for \`src\`, but got ${JSON.stringify(e.src)} instead.`);if(e.imageFormat)throw new TypeError("The `<OffthreadVideo>` tag does no longer accept `imageFormat`. Use the `transparent` prop if you want to render a transparent video.");if(void 0!==t||void 0!==r){Re(t,r);const e=t??0,n=r??1/0;return(0,i.jsx)(ve,{layout:"none",from:0-e,showInTimeline:!1,durationInFrames:n,name:o,children:(0,i.jsx)(Dr,{pauseWhenBuffering:a??!1,...c})})}if(Ae(e,"Video"),u.isRendering)return(0,i.jsx)(Rr,{...c});const{transparent:p,toneMapped:h,_remotionDebugSeeking:m,onAutoPlayError:g,onVideoFrame:y,crossOrigin:v,...b}=c;return(0,i.jsx)(Vr,{_remotionInternalStack:s??null,_remotionInternalNativeLoopPassed:!1,_remotionDebugSeeking:m??!1,onDuration:f,onlyWarnForMediaSeekingError:!0,pauseWhenBuffering:a??!1,showInTimeline:l??!0,onAutoPlayError:g??void 0,onVideoFrame:y??null,crossOrigin:v,...b})},Or=e=>Math.round(1e5*e)/1e5,jr=(e,t)=>{let r;e.currentTime=t;let n=null;const i=new Promise((t=>{r=e.requestVideoFrameCallback(((e,r)=>{const n=r.expectedDisplayTime-e;n<=0?t(r.mediaTime):setTimeout((()=>{t(r.mediaTime)}),n+150)}))})),o=new Promise((t=>{const r=()=>{t()};e.addEventListener("seeked",r,{once:!0}),n=()=>{e.removeEventListener("seeked",r)}}));return{wait:Promise.all([i,o]).then((([e])=>e)),cancel:()=>{n?.(),e.cancelVideoFrameCallback(r)}}},zr=(0,n.forwardRef)((({onError:e,volume:t,allowAmplificationDuringRender:r,playbackRate:o,onDuration:a,toneFrequency:s,name:l,acceptableTimeShiftInSeconds:c,delayRenderRetries:u,delayRenderTimeoutInMilliseconds:f,loopVolumeCurveBehavior:p,...h},m)=>{const g=se(),y=he(),v=Le(p??"repeat"),b=de(),x=(0,n.useRef)(null),w=(0,n.useContext)(E),U=Be(),S=d(),{registerRenderAsset:k,unregisterRenderAsset:C}=(0,n.useContext)(xe),F=(0,n.useMemo)((()=>`video-${ze(h.src??"")}-${w?.cumulatedFrom}-${w?.relativeFrom}-${w?.durationInFrames}`),[h.src,w?.cumulatedFrom,w?.relativeFrom,w?.durationInFrames]);if(!b)throw new Error("No video config found");const P=We({volume:t,frame:v,mediaVolume:1,allowAmplificationDuringRender:r??!1});(0,n.useEffect)((()=>{if(!h.src)throw new Error("No src passed");if(!h.muted&&!(P<=0)&&window.remotion_audioEnabled)return k({type:"video",src:Ee(h.src),id:F,frame:g,volume:P,mediaFrame:y,playbackRate:o??1,allowAmplificationDuringRender:r??!1,toneFrequency:s??null,audioStartFrame:Math.max(0,-(w?.relativeFrom??0))}),()=>C(F)}),[h.muted,h.src,k,F,C,P,y,g,o,r,s,w?.relativeFrom]),(0,n.useImperativeHandle)(m,(()=>x.current),[]),(0,n.useEffect)((()=>{if(!window.remotion_videoEnabled)return;const{current:t}=x;if(!t)return;const r=rt({frame:y,playbackRate:o||1,startFrom:-U,fps:b.fps}),n=Ct(`Rendering <Video /> with src="${h.src}"`,{retries:u??void 0,timeoutInMilliseconds:f??void 0});if("test"===window.process?.env?.NODE_ENV)return void Ft(n);if(ht(t.currentTime,r)){if(t.readyState>=2)return void Ft(n);const e=()=>{Ft(n)};return t.addEventListener("loadeddata",e,{once:!0}),()=>{t.removeEventListener("loadeddata",e)}}const i=()=>{Ft(n)},a=((e,t,r)=>{const n=1/r/2;let i=()=>{};return Number.isFinite(e.duration)&&e.currentTime>=e.duration&&t>=e.duration?{prom:Promise.resolve(),cancel:()=>{}}:{prom:new Promise(((r,o)=>{const a=jr(e,t+n);a.wait.then((a=>{if(Math.abs(t-a)<=n)return r();const s=jr(e,a+n*(t>a?1:-1));i=s.cancel,s.wait.then((a=>{const s=Math.abs(t-a);if(Or(s)<=Or(n))return r();const l=jr(e,t+n);return i=l.cancel,l.wait.then((()=>{r()})).catch((e=>{o(e)}))})).catch((e=>{o(e)}))})),i=a.cancel})),cancel:()=>{i()}}})(t,r,b.fps);a.prom.then((()=>{Ft(n)})),t.addEventListener("ended",i,{once:!0});const s=()=>{if(t?.error){if(console.error("Error occurred in video",t?.error),e)return;throw new Error(`The browser threw an error while playing the video ${h.src}: Code ${t.error.code} - ${t?.error?.message}. See https://remotion.dev/docs/media-playback-error for help. Pass an onError() prop to handle the error.`)}throw new Error("The browser threw an error")};return t.addEventListener("error",s,{once:!0}),()=>{a.cancel(),t.removeEventListener("ended",i),t.removeEventListener("error",s),Ft(n)}}),[v,h.src,o,b.fps,y,U,e,u,f]);const{src:T}=h;return S.isRendering&&(0,n.useLayoutEffect)((()=>{if("test"===window.process?.env?.NODE_ENV)return;const e=Ct("Loading <Video> duration with src="+T,{retries:u??void 0,timeoutInMilliseconds:f??void 0}),{current:t}=x,r=()=>{t?.duration&&a(T,t.duration),Ft(e)};return t?.duration?(a(T,t.duration),Ft(e)):t?.addEventListener("loadedmetadata",r,{once:!0}),()=>{t?.removeEventListener("loadedmetadata",r),Ft(e)}}),[T,a,u,f]),(0,i.jsx)("video",{ref:x,...h})})),Br=(0,n.forwardRef)(((e,t)=>{const{startFrom:r,endAt:o,name:a,pauseWhenBuffering:s,stack:l,_remotionInternalNativeLoopPassed:c,showInTimeline:u,onAutoPlayError:f,crossOrigin:p,...h}=e,{loop:m,_remotionDebugSeeking:g,...y}=e,{fps:v}=pe(),b=d(),{durations:x,setDurations:w}=(0,n.useContext)(De);if("string"==typeof t)throw new Error("string refs are not supported");if("string"!=typeof e.src)throw new TypeError(`The \`<Video>\` tag requires a string for \`src\`, but got ${JSON.stringify(e.src)} instead.`);const E=Me(e.src),U=(0,n.useCallback)(((e,t)=>{w({type:"got-duration",durationInSeconds:t,src:e})}),[w]),S=(0,n.useCallback)((()=>{}),[]),k=x[Ee(E)]??x[Ee(e.src)];if(m&&void 0!==k){const n=k*v;return(0,i.jsx)(Fe,{durationInFrames:Ue({endAt:o,mediaDuration:n,playbackRate:e.playbackRate??1,startFrom:r}),layout:"none",name:a,children:(0,i.jsx)(Br,{...y,ref:t,_remotionInternalNativeLoopPassed:!0})})}if(void 0!==r||void 0!==o){Re(r,o);const e=r??0,n=o??1/0;return(0,i.jsx)(ve,{layout:"none",from:0-e,showInTimeline:!1,durationInFrames:n,name:a,children:(0,i.jsx)(Br,{pauseWhenBuffering:s??!1,...h,ref:t})})}return Ae(e,"Video"),b.isRendering?(0,i.jsx)(zr,{onDuration:U,onVideoFrame:S??null,...h,ref:t}):(0,i.jsx)(Vr,{onlyWarnForMediaSeekingError:!1,...h,ref:t,onVideoFrame:null,pauseWhenBuffering:s??!1,onDuration:U,_remotionInternalStack:l??null,_remotionInternalNativeLoopPassed:c??!1,_remotionDebugSeeking:g??!1,showInTimeline:u??!0,onAutoPlayError:f??void 0,crossOrigin:p})}));g(Br),(()=>{if("undefined"==typeof globalThis)return;const e=globalThis.remotion_imported||"undefined"!=typeof window&&window.remotion_imported;if(e){if(e===x)return;throw new TypeError(`🚨 Multiple versions of Remotion detected: ${[x,"string"==typeof e?e:"an older version"].filter(b).join(" and ")}. This will cause things to break in an unexpected way.\nCheck that all your Remotion packages are on the same version. If your dependencies depend on Remotion, make them peer dependencies. You can also run \`npx remotion versions\` from your terminal to see which versions are mismatching.`)}globalThis.remotion_imported=x,"undefined"!=typeof window&&(window.remotion_imported=x)})();var Lr=new Proxy({},{get:(e,t)=>"Bundling"===t||"Rendering"===t||"Log"===t||"Puppeteer"===t||"Output"===t?Lr:()=>{console.warn("⚠️ The CLI configuration has been extracted from Remotion Core."),console.warn("Update the import from the config file:"),console.warn(),console.warn("- Delete:"),console.warn('import {Config} from "remotion";'),console.warn("+ Replace:"),console.warn('import {Config} from "@remotion/cli/config";'),console.warn(),console.warn("For more information, see https://www.remotion.dev/docs/4-0-migration."),process.exit(1)}});g(ve)}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.amdO={},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{RemotionRenderer:()=>hl,ZyncScreenplayPlayer:()=>Ru,default:()=>Vu});var e=__webpack_require__(540),t=__webpack_require__(159),r=__webpack_require__(947);"undefined"!=typeof window&&(window.remotion_renderReady=!1),"undefined"!=typeof window&&(window.remotion_delayRenderTimeouts={});var n=!1;var i=function(e,t,r){if("number"!=typeof e)throw new Error(`"fps" must be a number, but you passed a value of type ${typeof e} ${t}`);if(!Number.isFinite(e))throw new Error(`"fps" must be a finite, but you passed ${e} ${t}`);if(isNaN(e))throw new Error(`"fps" must not be NaN, but got ${e} ${t}`);if(e<=0)throw new TypeError(`"fps" must be positive, but got ${e} ${t}`);if(r&&e>50)throw new TypeError("The FPS for a GIF cannot be higher than 50. Use the --every-nth-frame option to lower the FPS: https://remotion.dev/docs/render-as-gif")},o=function(e,t,r){if("number"!=typeof e)throw new Error(`The "${t}" prop ${r} must be a number, but you passed a value of type ${typeof e}`);if(isNaN(e))throw new TypeError(`The "${t}" prop ${r} must not be NaN, but is NaN.`);if(!Number.isFinite(e))throw new TypeError(`The "${t}" prop ${r} must be finite, but is ${e}.`);if(e%1!=0)throw new TypeError(`The "${t}" prop ${r} must be an integer, but is ${e}.`);if(e<=0)throw new TypeError(`The "${t}" prop ${r} must be positive, but got ${e}.`)},a=function(e,t){const{allowFloats:r,component:n}=t;if(void 0===e)throw new Error(`The "durationInFrames" prop ${n} is missing.`);if("number"!=typeof e)throw new Error(`The "durationInFrames" prop ${n} must be a number, but you passed a value of type ${typeof e}`);if(e<=0)throw new TypeError(`The "durationInFrames" prop ${n} must be positive, but got ${e}.`);if(!r&&e%1!=0)throw new TypeError(`The "durationInFrames" prop ${n} must be an integer, but got ${e}.`);if(!Number.isFinite(e))throw new TypeError(`The "durationInFrames" prop ${n} must be finite, but got ${e}.`)},s=(e,t,r)=>{if(e){if("object"!=typeof e)throw new Error(`"${t}" must be an object, but you passed a value of type ${typeof e}`);if(Array.isArray(e))throw new Error(`"${t}" must be an object, an array was passed ${r?`for composition "${r}"`:""}`)}},l=n,c=25,u=()=>(0,t.jsx)("svg",{width:c,height:c,viewBox:"0 0 25 25",fill:"none",children:(0,t.jsx)("path",{d:"M8 6.375C7.40904 8.17576 7.06921 10.2486 7.01438 12.3871C6.95955 14.5255 7.19163 16.6547 7.6875 18.5625C9.95364 18.2995 12.116 17.6164 14.009 16.5655C15.902 15.5147 17.4755 14.124 18.6088 12.5C17.5158 10.8949 15.9949 9.51103 14.1585 8.45082C12.3222 7.3906 10.2174 6.68116 8 6.375Z",fill:"white",stroke:"white",strokeWidth:"6.25",strokeLinejoin:"round"})}),f=()=>(0,t.jsxs)("svg",{viewBox:"0 0 100 100",width:c,height:c,children:[(0,t.jsx)("rect",{x:"25",y:"20",width:"20",height:"60",fill:"#fff",ry:"5",rx:"5"}),(0,t.jsx)("rect",{x:"55",y:"20",width:"20",height:"60",fill:"#fff",ry:"5",rx:"5"})]}),d=({isFullscreen:e})=>{const r=32,n=e?0:3,i=e?6*1.6:3,o=e?6*1.6:12;return(0,t.jsxs)("svg",{viewBox:"0 0 32 32",height:16,width:16,children:[(0,t.jsx)("path",{d:`\n\t\t\t\tM ${n} ${o}\n\t\t\t\tL ${i} ${i}\n\t\t\t\tL ${o} ${n}\n\t\t\t\t`,stroke:"#fff",strokeWidth:6,fill:"none"}),(0,t.jsx)("path",{d:`\n\t\t\t\tM ${r-n} ${o}\n\t\t\t\tL ${r-i} ${i}\n\t\t\t\tL ${r-o} ${n}\n\t\t\t\t`,stroke:"#fff",strokeWidth:6,fill:"none"}),(0,t.jsx)("path",{d:`\n\t\t\t\tM ${n} ${r-o}\n\t\t\t\tL ${i} ${r-i}\n\t\t\t\tL ${o} ${r-n}\n\t\t\t\t`,stroke:"#fff",strokeWidth:6,fill:"none"}),(0,t.jsx)("path",{d:`\n\t\t\t\tM ${r-n} ${r-o}\n\t\t\t\tL ${r-i} ${r-i}\n\t\t\t\tL ${r-o} ${r-n}\n\t\t\t\t`,stroke:"#fff",strokeWidth:6,fill:"none"})]})},p=()=>(0,t.jsx)("svg",{width:c,height:c,viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M3.63 3.63a.996.996 0 000 1.41L7.29 8.7 7 9H4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71v-4.17l4.18 4.18c-.49.37-1.02.68-1.6.91-.36.15-.58.53-.58.92 0 .72.73 1.18 1.39.91.8-.33 1.55-.77 2.22-1.31l1.34 1.34a.996.996 0 101.41-1.41L5.05 3.63c-.39-.39-1.02-.39-1.42 0zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-3.83-2.4-7.11-5.78-8.4-.59-.23-1.22.23-1.22.86v.19c0 .38.25.71.61.85C17.18 6.54 19 9.06 19 12zm-8.71-6.29l-.17.17L12 7.76V6.41c0-.89-1.08-1.33-1.71-.7zM16.5 12A4.5 4.5 0 0014 7.97v1.79l2.48 2.48c.01-.08.02-.16.02-.24z",fill:"#fff"})}),h=()=>(0,t.jsx)("svg",{width:c,height:c,viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M3 10v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71V6.41c0-.89-1.08-1.34-1.71-.71L7 9H4c-.55 0-1 .45-1 1zm13.5 2A4.5 4.5 0 0014 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 4.45v.2c0 .38.25.71.6.85C17.18 6.53 19 9.06 19 12s-1.82 5.47-4.4 6.5c-.36.14-.6.47-.6.85v.2c0 .63.63 1.07 1.21.85C18.6 19.11 21 15.84 21 12s-2.4-7.11-5.79-8.4c-.58-.23-1.21.22-1.21.85z",fill:"#fff"})}),m="__remotion_buffering_indicator",g="__remotion_buffering_animation",y={width:c,height:c,overflow:"hidden",lineHeight:"normal",fontSize:"inherit"},v={width:14,height:14,overflow:"hidden",lineHeight:"normal",fontSize:"inherit"},b=({type:e})=>{const r="player"===e?y:v;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{type:"text/css",children:`\n\t\t\t\t@keyframes ${g} {\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n }\n \n .${m} {\n animation: ${g} 1s linear infinite;\n } \n\t\t\t`}),(0,t.jsx)("div",{style:r,children:(0,t.jsx)("svg",{viewBox:"player"===e?"0 0 22 22":"0 0 18 18",style:r,className:m,children:(0,t.jsx)("path",{d:"player"===e?"M 11 4 A 7 7 0 0 1 15.1145 16.66312":"M 9 2 A 7 7 0 0 1 13.1145 14.66312",stroke:"white",strokeLinecap:"round",fill:"none",strokeWidth:3})})})]})},x=({currentSize:e,width:t,height:r,compositionWidth:n,compositionHeight:i})=>void 0!==t&&void 0===r||void 0!==r&&void 0===t?{aspectRatio:[n,i].join("/")}:{width:n,height:i},w=({previewSize:e,compositionWidth:t,compositionHeight:n,canvasSize:i})=>{const o=r.Xp.calculateScale({canvasSize:i,compositionHeight:n,compositionWidth:t,previewSize:e}),a=0-(1-o)/2,s=a*t,l=a*n,c=t*o,u=n*o;return{centerX:i.width/2-c/2,centerY:i.height/2-u/2,xCorrection:s,yCorrection:l,scale:o}},E=({config:e,style:t,canvasSize:r,overflowVisible:n})=>e?{position:"relative",overflow:n?"visible":"hidden",...x({compositionHeight:e.height,compositionWidth:e.width,currentSize:r,height:t?.height,width:t?.width}),...t}:{},U=({config:e,canvasSize:t,layout:r,scale:n,overflowVisible:i})=>e&&t&&r?{position:"absolute",width:e.width,height:e.height,display:"flex",transform:`scale(${n})`,marginLeft:r.xCorrection,marginTop:r.yCorrection,overflow:i?"visible":"hidden"}:{},S=({layout:e,scale:t,config:r,overflowVisible:n})=>{if(!e||!r)return{};const{centerX:i,centerY:o}=e;return{width:r.width*t,height:r.height*t,display:"flex",flexDirection:"column",position:"absolute",left:i,top:o,overflow:n?"visible":"hidden"}},k=e.createContext(void 0),C=e.createContext(void 0);class F{listeners={ended:[],error:[],pause:[],play:[],ratechange:[],scalechange:[],seeked:[],timeupdate:[],frameupdate:[],fullscreenchange:[],volumechange:[],mutechange:[],waiting:[],resume:[]};addEventListener(e,t){this.listeners[e].push(t)}removeEventListener(e,t){this.listeners[e]=this.listeners[e].filter((e=>e!==t))}dispatchEvent(e,t){this.listeners[e].forEach((e=>{e({detail:t})}))}dispatchSeek(e){this.dispatchEvent("seeked",{frame:e})}dispatchVolumeChange(e){this.dispatchEvent("volumechange",{volume:e})}dispatchPause(){this.dispatchEvent("pause",void 0)}dispatchPlay(){this.dispatchEvent("play",void 0)}dispatchEnded(){this.dispatchEvent("ended",void 0)}dispatchRateChange(e){this.dispatchEvent("ratechange",{playbackRate:e})}dispatchScaleChange(e){this.dispatchEvent("scalechange",{scale:e})}dispatchError(e){this.dispatchEvent("error",{error:e})}dispatchTimeUpdate(e){this.dispatchEvent("timeupdate",e)}dispatchFrameUpdate(e){this.dispatchEvent("frameupdate",e)}dispatchFullscreenChange(e){this.dispatchEvent("fullscreenchange",e)}dispatchMuteChange(e){this.dispatchEvent("mutechange",e)}dispatchWaiting(e){this.dispatchEvent("waiting",e)}dispatchResume(e){this.dispatchEvent("resume",e)}}class P{listeners={error:[],waiting:[],resume:[]};addEventListener(e,t){this.listeners[e].push(t)}removeEventListener(e,t){this.listeners[e]=this.listeners[e].filter((e=>e!==t))}dispatchEvent(e,t){this.listeners[e].forEach((e=>{e({detail:t})}))}dispatchError(e){this.dispatchEvent("error",{error:e})}dispatchWaiting(e){this.dispatchEvent("waiting",e)}dispatchResume(e){this.dispatchEvent("resume",e)}}var T=t=>{const n=(0,e.useContext)(r.Xp.BufferingContextReact);if(!n)throw new Error("BufferingContextReact not found");(0,e.useEffect)((()=>{const e=n.listenForBuffering((()=>{n.buffering.current=!0,t.dispatchWaiting({})})),r=n.listenForResume((()=>{n.buffering.current=!1,t.dispatchResume({})}));return()=>{e.remove(),r.remove()}}),[n,t])},_=({children:n,currentPlaybackRate:i})=>{const[o]=(0,e.useState)((()=>new F));if(!(0,e.useContext)(r.Xp.BufferingContextReact))throw new Error("BufferingContextReact not found");return(0,e.useEffect)((()=>{i&&o.dispatchRateChange(i)}),[o,i]),T(o),(0,t.jsx)(k.Provider,{value:o,children:n})},I=(t,r)=>{const[n,i]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{const{current:e}=t;if(!e)return;let n;const o=()=>{r&&(clearTimeout(n),n=setTimeout((()=>{i(!1)}),!0===r?3e3:r))},a=()=>{i(!0),o()},s=()=>{i(!1),clearTimeout(n)},l=()=>{i(!0),o()};return e.addEventListener("mouseenter",a),e.addEventListener("mouseleave",s),e.addEventListener("mousemove",l),()=>{e.removeEventListener("mouseenter",a),e.removeEventListener("mouseleave",s),e.removeEventListener("mousemove",l),clearTimeout(n)}}),[r,t]),n},M=()=>"undefined"!=typeof document&&"hidden"===document.visibilityState,A=()=>{const[t,n,i]=r.Xp.Timeline.usePlayingState(),[o,a]=(0,e.useState)(!1),s=r.Xp.Timeline.useTimelinePosition(),l=(0,e.useRef)(s),c=r.Xp.Timeline.useTimelineSetFrame(),u=r.Xp.Timeline.useTimelineSetFrame(),f=(0,e.useContext)(r.Xp.SharedAudioContext),{audioAndVideoTags:d}=(0,e.useContext)(r.Xp.Timeline.TimelineContext),p=(0,e.useRef)(s);p.current=s;const h=r.Xp.useVideo(),m=r.Xp.useUnsafeVideoConfig(),g=(0,e.useContext)(k),y=(m?.durationInFrames??1)-1,v=s===y,b=0===s;if(!g)throw new TypeError("Expected Player event emitter context");const x=(0,e.useContext)(r.Xp.BufferingContextReact);if(!x)throw new Error("Missing the buffering context. Most likely you have a Remotion version mismatch.");const{buffering:w}=x,E=(0,e.useCallback)((e=>{h?.id&&u((t=>({...t,[h.id]:e}))),p.current=e,g.dispatchSeek(e)}),[g,u,h?.id]),U=(0,e.useCallback)((e=>{i.current||(a(!0),v&&E(0),f&&f.numberOfAudioTags>0&&e&&f.playAllAudios(),d.current.forEach((e=>e.play())),i.current=!0,n(!0),l.current=p.current,g.dispatchPlay())}),[i,v,f,n,g,E,d]),S=(0,e.useCallback)((()=>{i.current&&(i.current=!1,n(!1),g.dispatchPause())}),[g,i,n]),C=(0,e.useCallback)((()=>{i.current&&(i.current=!1,p.current=l.current,m&&(u((e=>({...e,[m.id]:l.current}))),n(!1),g.dispatchPause()))}),[m,g,i,n,u]),F=h?.id,P=(0,e.useCallback)((e=>{if(!F)return null;i.current||c((t=>{const r=t[F]??window.remotion_initialFrame??0;return{...t,[F]:Math.max(0,r-e)}}))}),[i,c,F]),T=(0,e.useCallback)((e=>{if(!F)return null;i.current||c((t=>{const r=t[F]??window.remotion_initialFrame??0;return{...t,[F]:Math.min(y,r+e)}}))}),[F,i,y,c]);return(0,e.useMemo)((()=>({frameBack:P,frameForward:T,isLastFrame:v,emitter:g,playing:t,play:U,pause:S,seek:E,isFirstFrame:b,getCurrentFrame:()=>p.current,isPlaying:()=>i.current,isBuffering:()=>w.current,pauseAndReturnToPlayStart:C,hasPlayed:o,remotionInternal_currentFrameRef:p})),[P,T,v,g,t,U,S,E,b,C,o,i,w])},R=({loop:t,playbackRate:n,moveToBeginningWhenEnded:i,inFrame:o,outFrame:a,frameRef:s})=>{const l=r.Xp.useUnsafeVideoConfig(),c=r.Xp.Timeline.useTimelinePosition(),{playing:u,pause:f,emitter:d}=A(),p=r.Xp.Timeline.useTimelineSetFrame(),h=(0,e.useRef)(null),m=(()=>{const t=(0,e.useRef)(M());return(0,e.useEffect)((()=>{const e=()=>{t.current=M()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[]),t})(),g=(0,e.useRef)(null),y=(0,e.useContext)(r.Xp.BufferingContextReact);if(!y)throw new Error("Missing the buffering context. Most likely you have a Remotion version mismatch.");(0,e.useEffect)((()=>{const e=y.listenForBuffering((()=>{h.current=performance.now()})),t=y.listenForResume((()=>{h.current=null}));return()=>{e.remove(),t.remove()}}),[y]),(0,e.useEffect)((()=>{if(!l)return;if(!u)return;let e=!1,r=null,c=performance.now(),g=0;const v=()=>{null!==r&&("raf"===r.type?cancelAnimationFrame(r.id):clearTimeout(r.id))},b=()=>{e=!0,v()},x=()=>{const r=performance.now()-c,u=a??l.durationInFrames-1,h=o??0,m=s.current,{nextFrame:y,framesToAdvance:v,hasEnded:x}=(({time:e,currentFrame:t,playbackSpeed:r,fps:n,actualLastFrame:i,actualFirstFrame:o,framesAdvanced:a,shouldLoop:s})=>{const l=(r<0?Math.ceil:Math.floor)(e*r/(1e3/n))-a,c=l+t,u=c>i||c<o,f=!s&&u&&!(t>i||t<o);return r>0?u?{nextFrame:o,framesToAdvance:l,hasEnded:f}:{nextFrame:c,framesToAdvance:l,hasEnded:f}:u?{nextFrame:i,framesToAdvance:l,hasEnded:f}:{nextFrame:c,framesToAdvance:l,hasEnded:f}})({time:r,currentFrame:m,playbackSpeed:n,fps:l.fps,actualFirstFrame:h,actualLastFrame:u,framesAdvanced:g,shouldLoop:t});if(g+=v,y===s.current||x&&!i||p((e=>({...e,[l.id]:y}))),x)return b(),f(),void d.dispatchEnded();e||w()},w=()=>{if(h.current){const t=y.listenForResume((()=>{t.remove(),e||(c=performance.now(),g=0,x())}))}else r=m.current?{type:"timeout",id:setTimeout(x,1e3/l.fps)}:{type:"raf",id:requestAnimationFrame(x)}};w();const E=()=>{"visible"!==document.visibilityState&&(v(),x())};return window.addEventListener("visibilitychange",E),()=>{window.removeEventListener("visibilitychange",E),b()}}),[l,t,f,u,p,d,n,o,a,i,m,s,h,y]),(0,e.useEffect)((()=>{const e=setInterval((()=>{g.current!==s.current&&(d.dispatchTimeUpdate({frame:s.current}),g.current=s.current)}),250);return()=>clearInterval(e)}),[d,s]),(0,e.useEffect)((()=>{d.dispatchFrameUpdate({frame:c})}),[d,c])},V=[],D=(t,r)=>{const[n,i]=(0,e.useState)((()=>{if(!t.current)return null;const e=t.current.getClientRects();return e[0]?{width:e[0].width,height:e[0].height,left:e[0].x,top:e[0].y,windowSize:{height:window.innerHeight,width:window.innerWidth}}:null})),o=(0,e.useMemo)((()=>"undefined"==typeof ResizeObserver?null:new ResizeObserver((e=>{const{contentRect:t,target:n}=e[0],o=n.getClientRects();if(!o?.[0])return void i(null);const a=0===t.width?1:o[0].width/t.width,s=r.shouldApplyCssTransforms?o[0].width:o[0].width*(1/a),l=r.shouldApplyCssTransforms?o[0].height:o[0].height*(1/a);i({width:s,height:l,left:o[0].x,top:o[0].y,windowSize:{height:window.innerHeight,width:window.innerWidth}})}))),[r.shouldApplyCssTransforms]),a=(0,e.useCallback)((()=>{if(!t.current)return;const e=t.current.getClientRects();e[0]?i((t=>t&&t.width===e[0].width&&t.height===e[0].height&&t.left===e[0].x&&t.top===e[0].y&&t.windowSize.height===window.innerHeight&&t.windowSize.width===window.innerWidth?t:{width:e[0].width,height:e[0].height,left:e[0].x,top:e[0].y,windowSize:{height:window.innerHeight,width:window.innerWidth}})):i(null)}),[t]);return(0,e.useEffect)((()=>{if(!o)return;const{current:e}=t;return e&&o.observe(e),()=>{e&&o.unobserve(e)}}),[o,t,a]),(0,e.useEffect)((()=>{if(r.triggerOnWindowResize)return window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}),[r.triggerOnWindowResize,a]),(0,e.useEffect)((()=>(V.push(a),()=>{V=V.filter((e=>e!==a))})),[a]),(0,e.useMemo)((()=>n?{...n,refresh:a}:null),[n,a])},O=({playing:e,buffering:r})=>e&&r?(0,t.jsx)(b,{type:"player"}):e?(0,t.jsx)(f,{}):(0,t.jsx)(u,{}),j=({volume:n,isVertical:i,onBlur:o,inputRef:a,setVolume:s})=>{const l=(0,e.useMemo)((()=>{const e={paddingLeft:5,height:c,width:B,display:"inline-flex",alignItems:"center"};return i?{...e,position:"absolute",transform:`rotate(-90deg) translateX(${B/2+12.5}px)`}:{...e}}),[i]),u=void 0===e.useId?"volume-slider":e.useId(),[f]=(0,e.useState)((()=>`__remotion-volume-slider-${(0,r.yT)(u)}`.replace(".",""))),d=(0,e.useCallback)((e=>{s(parseFloat(e.target.value))}),[s]),p=(0,e.useMemo)((()=>{const e={WebkitAppearance:"none",backgroundColor:"rgba(255, 255, 255, 0.5)",borderRadius:2.5,cursor:"pointer",height:5,width:B,backgroundImage:`linear-gradient(\n\t\t\t\tto right,\n\t\t\t\twhite ${100*n}%, rgba(255, 255, 255, 0) ${100*n}%\n\t\t\t)`};return i?{...e,bottom:c+B/2}:e}),[i,n]),h=`\n\t.${f}::-webkit-slider-thumb {\n\t\t-webkit-appearance: none;\n\t\tbackground-color: white;\n\t\tborder-radius: 6px;\n\t\tbox-shadow: 0 0 2px black;\n\t\theight: 12px;\n\t\twidth: 12px;\n\t}\n\n\t.${f}::-moz-range-thumb {\n\t\t-webkit-appearance: none;\n\t\tbackground-color: white;\n\t\tborder-radius: 6px;\n\t\tbox-shadow: 0 0 2px black;\n\t\theight: 12px;\n\t\twidth: 12px;\n\t}\n`;return(0,t.jsxs)("div",{style:l,children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:h}}),(0,t.jsx)("input",{ref:a,"aria-label":"Change volume",className:f,max:1,min:0,onBlur:o,onChange:d,step:.01,type:"range",value:n,style:p})]})},z=e=>(0,t.jsx)(j,{...e}),B=100,L=({displayVerticalVolumeSlider:n,renderMuteButton:i,renderVolumeSlider:o})=>{const[a,s]=r.Xp.useMediaMutedState(),[l,u]=r.Xp.useMediaVolumeState(),[f,d]=(0,e.useState)(!1),m=(0,e.useRef)(null),g=(0,e.useRef)(null),y=I(m,!1),v=(0,e.useCallback)((()=>{setTimeout((()=>{g.current&&document.activeElement!==g.current&&d(!1)}),10)}),[]),b=0===l,x=(0,e.useCallback)((()=>{if(b)return u(1),void s(!1);s((e=>!e))}),[b,s,u]),w=(0,e.useMemo)((()=>({display:"inline-flex",background:"none",border:"none",justifyContent:"center",alignItems:"center",touchAction:"none",...n&&{position:"relative"}})),[n]),E=(0,e.useMemo)((()=>({display:"inline",width:c,height:c,cursor:"pointer",appearance:"none",background:"none",border:"none",padding:0})),[]),U=(0,e.useCallback)((({muted:e,volume:r})=>{const n=e||0===r;return(0,t.jsx)("button",{"aria-label":n?"Unmute sound":"Mute sound",title:n?"Unmute sound":"Mute sound",onClick:x,onBlur:v,onFocus:()=>d(!0),style:E,type:"button",children:n?(0,t.jsx)(p,{}):(0,t.jsx)(h,{})})}),[v,x,E]),S=(0,e.useMemo)((()=>i?i({muted:a,volume:l}):U({muted:a,volume:l})),[a,l,U,i]),k=(0,e.useMemo)((()=>!f&&!y||a||r.Xp.isIosSafari()?null:(o??z)({isVertical:n,volume:l,onBlur:()=>d(!1),inputRef:g,setVolume:u})),[n,f,y,a,l,o,u]);return(0,t.jsxs)("div",{ref:m,style:w,children:[S,k]})};var N={height:30,paddingRight:15,paddingLeft:12,display:"flex",flexDirection:"row",alignItems:"center"},H={width:22,display:"flex",alignItems:"center"},W={width:14,height:14,color:"black"},G=()=>(0,t.jsx)("svg",{viewBox:"0 0 512 512",style:W,children:(0,t.jsx)("path",{fill:"currentColor",d:"M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"})}),$=({rate:r,onSelect:n,selectedRate:i,keyboardSelectedRate:o})=>{const a=(0,e.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),n(r)}),[n,r]),[s,l]=(0,e.useState)(!1),c=(0,e.useCallback)((()=>{l(!0)}),[]),u=(0,e.useCallback)((()=>{l(!1)}),[]),f=o===r,d=(0,e.useMemo)((()=>({...N,backgroundColor:s||f?"#eee":"transparent"})),[s,f]);return(0,t.jsxs)("div",{onMouseEnter:c,onMouseLeave:u,tabIndex:0,style:d,onClick:a,children:[(0,t.jsx)("div",{style:H,children:r===i?(0,t.jsx)(G,{}):null}),r.toFixed(1),"x"]},r)},K=({setIsComponentVisible:n,playbackRates:i,canvasSize:o})=>{const{setPlaybackRate:a,playbackRate:s}=(0,e.useContext)(r.Xp.Timeline.TimelineContext),[l,c]=(0,e.useState)(s);(0,e.useEffect)((()=>{const e=e=>{if(e.preventDefault(),"ArrowUp"===e.key){const e=i.findIndex((e=>e===l));if(0===e)return;c(-1===e?i[0]:i[e-1])}else if("ArrowDown"===e.key){const e=i.findIndex((e=>e===l));if(e===i.length-1)return;c(-1===e?i[i.length-1]:i[e+1])}else"Enter"===e.key&&(a(l),n(!1))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[i,l,a,n]);const u=(0,e.useCallback)((e=>{a(e),n(!1)}),[n,a]),f=(0,e.useMemo)((()=>({position:"absolute",right:0,width:125,maxHeight:o.height-70-35,bottom:35,background:"#fff",borderRadius:4,overflow:"auto",color:"black",textAlign:"left"})),[o.height]);return(0,t.jsx)("div",{style:f,children:i.map((e=>(0,t.jsx)($,{selectedRate:s,onSelect:u,rate:e,keyboardSelectedRate:l},e)))})},J={fontSize:13,fontWeight:"bold",color:"white",border:"2px solid white",borderRadius:20,paddingLeft:8,paddingRight:8,paddingTop:2,paddingBottom:2},q={appearance:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",paddingLeft:0,paddingRight:0,paddingTop:6,paddingBottom:6,height:37,display:"inline-flex",marginBottom:0,marginTop:0,alignItems:"center"},X={...q,position:"relative"},Z=({playbackRates:n,canvasSize:i})=>{const{ref:o,isComponentVisible:a,setIsComponentVisible:s}=function(t){const[r,n]=(0,e.useState)(t),i=(0,e.useRef)(null);return(0,e.useEffect)((()=>{const e=e=>{i.current&&!i.current.contains(e.target)&&n(!1)};return document.addEventListener("pointerup",e,!0),()=>{document.removeEventListener("pointerup",e,!0)}}),[]),{ref:i,isComponentVisible:r,setIsComponentVisible:n}}(!1),{playbackRate:l}=(0,e.useContext)(r.Xp.Timeline.TimelineContext),c=(0,e.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),s((e=>!e))}),[s]);return(0,t.jsx)("div",{ref:o,children:(0,t.jsxs)("button",{type:"button","aria-label":"Change playback rate",style:X,onClick:c,children:[(0,t.jsxs)("div",{style:J,children:[l,"x"]}),a&&(0,t.jsx)(K,{canvasSize:i,playbackRates:n,setIsComponentVisible:s})]})})},Y=(e,t,n)=>{const i=e;return Math.round((0,r.GW)(i,[0,n],[0,t-1],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}))},Q={userSelect:"none",WebkitUserSelect:"none",paddingTop:4,paddingBottom:4,boxSizing:"border-box",cursor:"pointer",position:"relative",touchAction:"none"},ee={height:5,backgroundColor:"rgba(255, 255, 255, 0.25)",width:"100%",borderRadius:2.5},te=({durationInFrames:n,onSeekEnd:i,onSeekStart:o,inFrame:a,outFrame:s})=>{const l=(0,e.useRef)(null),c=I(l,!1),u=D(l,{triggerOnWindowResize:!0,shouldApplyCssTransforms:!0}),{seek:f,play:d,pause:p,playing:h}=A(),m=r.Xp.Timeline.useTimelinePosition(),[g,y]=(0,e.useState)({dragging:!1}),v=u?.width??0,b=(0,e.useCallback)((e=>{if(0!==e.button)return;const t=l.current?.getBoundingClientRect().left,r=Y(e.clientX-t,n,v);p(),f(r),y({dragging:!0,wasPlaying:h}),o()}),[n,v,p,f,h,o]),x=(0,e.useCallback)((e=>{if(!u)throw new Error("Player has no size");if(!g.dragging)return;const t=l.current?.getBoundingClientRect().left,r=Y(e.clientX-t,n,u.width);f(r)}),[g.dragging,n,f,u]),w=(0,e.useCallback)((()=>{y({dragging:!1}),g.dragging&&(g.wasPlaying?d():p(),i())}),[g,i,p,d]);(0,e.useEffect)((()=>{if(!g.dragging)return;const e=(e=>{let t=e;for(;t.parentElement;)t=t.parentElement;return t})(l.current);return e.addEventListener("pointermove",x),e.addEventListener("pointerup",w),()=>{e.removeEventListener("pointermove",x),e.removeEventListener("pointerup",w)}}),[g.dragging,x,w]);const E=(0,e.useMemo)((()=>({height:12,width:12,borderRadius:6,position:"absolute",top:.5,backgroundColor:"white",left:Math.max(0,m/Math.max(1,n-1)*v-6),boxShadow:"0 0 2px black",opacity:Number(c)})),[c,n,m,v]),U=(0,e.useMemo)((()=>({height:5,backgroundColor:"rgba(255, 255, 255, 1)",width:(m-(a??0))/(n-1)*100+"%",marginLeft:(a??0)/(n-1)*100+"%",borderRadius:2.5})),[n,m,a]),S=(0,e.useMemo)((()=>({height:5,backgroundColor:"rgba(255, 255, 255, 0.25)",width:((s??n-1)-(a??0))/(n-1)*100+"%",marginLeft:(a??0)/(n-1)*100+"%",borderRadius:2.5,position:"absolute"})),[n,a,s]);return(0,t.jsxs)("div",{ref:l,onPointerDown:b,style:Q,children:[(0,t.jsxs)("div",{style:ee,children:[(0,t.jsx)("div",{style:S}),(0,t.jsx)("div",{style:U})]}),(0,t.jsx)("div",{style:E})]})},re=e=>{const t=Math.floor(e/60),r=Math.floor(e-60*t);return`${String(t)}:${String(r).padStart(2,"0")}`},ne=[0,8.1,15.5,22.5,29,35.3,41.2,47.1,52.9,58.8,64.7,71,77.5,84.5,91.9],ie=1/.7,oe={boxSizing:"border-box",position:"absolute",bottom:0,width:"100%",paddingTop:40,paddingBottom:10,backgroundImage:`linear-gradient(to bottom,${[0,.013,.049,.104,.175,.259,.352,.45,.55,.648,.741,.825,.896,.951,.987].map(((e,t)=>`hsla(0, 0%, 0%, ${e}) ${ne[t]*ie}%`)).join(", ")}, hsl(0, 0%, 0%) 100%)`,backgroundSize:"auto 145px",display:"flex",paddingRight:12,paddingLeft:12,flexDirection:"column",transition:"opacity 0.3s"},ae={display:"flex",flexDirection:"row",width:"100%",alignItems:"center",justifyContent:"center",userSelect:"none",WebkitUserSelect:"none"},se={display:"flex",flexDirection:"row",userSelect:"none",WebkitUserSelect:"none",alignItems:"center"},le={width:12},ce={height:8},ue={flex:1},fe={},de=({durationInFrames:n,isFullscreen:i,fps:o,player:a,showVolumeControls:s,onFullscreenButtonClick:l,allowFullscreen:c,onExitFullscreenButtonClick:u,spaceKeyToPlayOrPause:f,onSeekEnd:p,onSeekStart:h,inFrame:m,outFrame:g,initiallyShowControls:y,canvasSize:v,renderPlayPauseButton:b,renderFullscreenButton:x,alwaysShowControls:w,showPlaybackRateControl:E,containerRef:U,buffering:S,hideControlsWhenPointerDoesntMove:k,onPointerDown:C,onDoubleClick:F,renderMuteButton:P,renderVolumeSlider:T})=>{const _=(0,e.useRef)(null),M=r.Xp.Timeline.useTimelinePosition(),[A,R]=(0,e.useState)(!1),V=I(U,k),{maxTimeLabelWidth:D,displayVerticalVolumeSlider:j}=(({allowFullscreen:t,playerWidth:r})=>(0,e.useMemo)((()=>{const e=50+(t?16:0)+24+20,n=r-e,i=Math.max(n,0),o=i-B;return{maxTimeLabelWidth:0===i?null:i,displayVerticalVolumeSlider:r<(o<B?i:o)+e+B}}),[t,r]))({allowFullscreen:c,playerWidth:v?.width??0}),[z,N]=(0,e.useState)((()=>{if("boolean"==typeof y)return y;if("number"==typeof y){if(y%1!=0)throw new Error("initiallyShowControls must be an integer or a boolean");if(Number.isNaN(y))throw new Error("initiallyShowControls must not be NaN");if(!Number.isFinite(y))throw new Error("initiallyShowControls must be finite");if(y<=0)throw new Error("initiallyShowControls must be a positive integer");return y}throw new TypeError("initiallyShowControls must be a number or a boolean")})),H=(0,e.useMemo)((()=>{const e=V||!a.playing||z||w;return{...oe,opacity:Number(e)}}),[V,z,a.playing,w]);(0,e.useEffect)((()=>{_.current&&f&&_.current.focus({preventScroll:!0})}),[a.playing,f]),(0,e.useEffect)((()=>{R(("undefined"!=typeof document&&(document.fullscreenEnabled||document.webkitFullscreenEnabled))??!1)}),[]),(0,e.useEffect)((()=>{if(!1===z)return;const e=setTimeout((()=>{N(!1)}),!0===z?2e3:z);return()=>{clearInterval(e)}}),[z]);const W=(0,e.useMemo)((()=>({color:"white",fontFamily:"sans-serif",fontSize:14,maxWidth:null===D?void 0:D,overflow:"hidden",textOverflow:"ellipsis"})),[D]),G=(0,e.useMemo)((()=>{if(!0===E)return[.5,.8,1,1.2,1.5,1.8,2,2.5,3];if(Array.isArray(E)){for(const e of E){if("number"!=typeof e)throw new Error("Every item in showPlaybackRateControl must be a number");if(e<=0)throw new Error("Every item in showPlaybackRateControl must be positive")}return E}return null}),[E]),$=(0,e.useRef)(null),K=(0,e.useRef)(null),J=(0,e.useCallback)((e=>{e.target!==$.current&&e.target!==K.current||C?.(e)}),[C]),X=(0,e.useCallback)((e=>{e.target!==$.current&&e.target!==K.current||F?.(e)}),[F]);return(0,t.jsxs)("div",{ref:$,style:H,onPointerDown:J,onDoubleClick:X,children:[(0,t.jsxs)("div",{ref:K,style:ae,children:[(0,t.jsxs)("div",{style:se,children:[(0,t.jsx)("button",{ref:_,type:"button",style:q,onClick:a.playing?a.pause:a.play,"aria-label":a.playing?"Pause video":"Play video",title:a.playing?"Pause video":"Play video",children:null===b?(0,t.jsx)(O,{buffering:S,playing:a.playing}):b({playing:a.playing,isBuffering:S})??(0,t.jsx)(O,{buffering:S,playing:a.playing})}),s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:le}),(0,t.jsx)(L,{renderMuteButton:P,renderVolumeSlider:T,displayVerticalVolumeSlider:j})]}):null,(0,t.jsx)("div",{style:le}),(0,t.jsxs)("div",{style:W,children:[re(M/o)," / ",re(n/o)]}),(0,t.jsx)("div",{style:le})]}),(0,t.jsx)("div",{style:ue}),G&&v&&(0,t.jsx)(Z,{canvasSize:v,playbackRates:G}),G&&A&&c?(0,t.jsx)("div",{style:le}):null,(0,t.jsx)("div",{style:fe,children:A&&c?(0,t.jsx)("button",{type:"button","aria-label":i?"Exit fullscreen":"Enter Fullscreen",title:i?"Exit fullscreen":"Enter Fullscreen",style:q,onClick:i?u:l,children:null===x?(0,t.jsx)(d,{isFullscreen:i}):x({isFullscreen:i})}):null})]}),(0,t.jsx)("div",{style:ce}),(0,t.jsx)(te,{onSeekEnd:p,onSeekStart:h,durationInFrames:n,inFrame:m,outFrame:g})]})},pe={display:"flex",justifyContent:"center",alignItems:"center",flex:1,height:"100%",width:"100%"};class he extends e.Component{state={hasError:null};static getDerivedStateFromError(e){return{hasError:e}}componentDidCatch(e){this.props.onError(e)}render(){return this.state.hasError?(0,t.jsx)("div",{style:pe,children:this.props.errorFallback({error:this.state.hasError})}):this.props.children}}var me="__remotion-player",ge="undefined"==typeof document,ye=(t,r,n)=>{const i=(()=>{const t=(0,e.useRef)([]),r=(0,e.useCallback)((e=>{t.current=[...t.current,e]}),[]),n=(0,e.useCallback)((e=>{t.current=t.current.filter((t=>t!==e))}),[]),i=(0,e.useCallback)((()=>t.current.map((e=>e.cancel()))),[]);return(0,e.useMemo)((()=>({appendPendingPromise:r,removePendingPromise:n,clearPendingPromises:i})),[r,i,n])})(),o=(0,e.useCallback)((async e=>{if(e instanceof PointerEvent?"touch"===e.pointerType:"touch"===e.nativeEvent.pointerType)return void t(e);i.clearPendingPromises();const r=(e=>{let t=!1;return{promise:new Promise(((r,n)=>{e.then((e=>{t?n({isCanceled:t,value:e}):r(e)})).catch((e=>{n({isCanceled:t,error:e})}))})),cancel:()=>{t=!0}}})((n=200,new Promise((e=>setTimeout(e,n)))));var n;i.appendPendingPromise(r);try{await r.promise,i.removePendingPromise(r),t(e)}catch(e){const t=e;if(i.removePendingPromise(r),!t.isCanceled)throw t.error}}),[i,t]),a=(0,e.useCallback)((()=>{document.addEventListener("pointerup",(e=>{o(e)}),{once:!0})}),[o]),s=(0,e.useCallback)((()=>{i.clearPendingPromises(),r()}),[i,r]);return(0,e.useMemo)((()=>n?{handlePointerDown:a,handleDoubleClick:s}:{handlePointerDown:t,handleDoubleClick:()=>{}}),[n,s,a,t])},ve=e.version.split(".")[0];if("0"===ve)throw new Error(`Version ${ve} of "react" is not supported by Remotion`);var be=parseInt(ve,10)>=18,xe=(0,e.forwardRef)((({controls:n,style:i,loop:o,autoPlay:a,allowFullscreen:s,inputProps:l,clickToPlay:c,showVolumeControls:u,doubleClickToFullscreen:f,spaceKeyToPlayOrPause:d,errorFallback:p,playbackRate:h,renderLoading:m,renderPoster:g,className:y,moveToBeginningWhenEnded:v,showPosterWhenUnplayed:b,showPosterWhenEnded:x,showPosterWhenPaused:k,showPosterWhenBuffering:C,inFrame:F,outFrame:P,initiallyShowControls:T,renderFullscreen:_,renderPlayPauseButton:I,renderMuteButton:M,renderVolumeSlider:V,alwaysShowControls:O,showPlaybackRateControl:j,posterFillMode:z,bufferStateDelayInMilliseconds:B,hideControlsWhenPointerDoesntMove:L,overflowVisible:N},H)=>{const W=r.Xp.useUnsafeVideoConfig(),G=r.Xp.useVideo(),$=(0,e.useRef)(null),K=D($,{triggerOnWindowResize:!1,shouldApplyCssTransforms:!1}),[J,q]=(0,e.useState)(!1),[X,Z]=(0,e.useState)(a),[Y,Q]=(0,e.useState)((()=>!1)),[ee,te]=(0,e.useState)(!1),re=(0,e.useMemo)((()=>"undefined"!=typeof document&&Boolean(document.fullscreenEnabled||document.webkitFullscreenEnabled)),[]),ne=A();R({loop:o,playbackRate:h,moveToBeginningWhenEnded:v,inFrame:F,outFrame:P,frameRef:ne.remotionInternal_currentFrameRef}),(0,e.useEffect)((()=>{J&&!ne.playing&&(q(!1),ne.play())}),[J,ne]),(0,e.useEffect)((()=>{const{current:e}=$;if(!e)return;const t=()=>{const t=document.fullscreenElement===e||document.webkitFullscreenElement===e;Q(t)};return document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),()=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t)}}),[]);const ie=(0,e.useCallback)((e=>{ne.isPlaying()?ne.pause():ne.play(e)}),[ne]),oe=(0,e.useCallback)((()=>{if(!s)throw new Error("allowFullscreen is false");if(!re)throw new Error("Browser doesnt support fullscreen");if(!$.current)throw new Error("No player ref found");$.current.webkitRequestFullScreen?$.current.webkitRequestFullScreen():$.current.requestFullscreen()}),[s,re]),ae=(0,e.useCallback)((()=>{document.webkitExitFullscreen?document.webkitExitFullscreen():document.exitFullscreen()}),[]);(0,e.useEffect)((()=>{const{current:e}=$;if(!e)return;const t=()=>{const e=document.webkitFullscreenElement??document.fullscreenElement;e&&e===$.current?ne.emitter.dispatchFullscreenChange({isFullscreen:!0}):ne.emitter.dispatchFullscreenChange({isFullscreen:!1})};return e.addEventListener("webkitfullscreenchange",t),e.addEventListener("fullscreenchange",t),()=>{e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("fullscreenchange",t)}}),[ne.emitter]);const se=W?.durationInFrames??1,le=(0,e.useMemo)((()=>W&&K?w({canvasSize:K,compositionHeight:W.height,compositionWidth:W.width,previewSize:"auto"}):null),[K,W]),ce=le?.scale??1,ue=(0,e.useRef)(!1);(0,e.useEffect)((()=>{ue.current?ne.emitter.dispatchScaleChange(ce):ue.current=!0}),[ne.emitter,ce]);const{setMediaVolume:fe,setMediaMuted:pe}=(0,e.useContext)(r.Xp.SetMediaVolumeContext),{mediaMuted:ve,mediaVolume:xe}=(0,e.useContext)(r.Xp.MediaVolumeContext);(0,e.useEffect)((()=>{ne.emitter.dispatchVolumeChange(xe)}),[ne.emitter,xe]);const we=ve||0===xe;(0,e.useEffect)((()=>{ne.emitter.dispatchMuteChange({isMuted:we})}),[ne.emitter,we]);const[Ee,Ue]=(0,e.useState)(!1);(0,e.useEffect)((()=>{let e=null,t=!1;const r=()=>{t=!1,requestAnimationFrame((()=>{0===B?Ue(!0):e=setTimeout((()=>{t||Ue(!0)}),B)}))},n=()=>{requestAnimationFrame((()=>{t=!0,Ue(!1),e&&clearTimeout(e)}))};return ne.emitter.addEventListener("waiting",r),ne.emitter.addEventListener("resume",n),()=>{ne.emitter.removeEventListener("waiting",r),ne.emitter.removeEventListener("resume",n),Ue(!1),e&&clearTimeout(e),t=!0}}),[B,ne.emitter]),(0,e.useImperativeHandle)(H,(()=>{const e={play:ne.play,pause:()=>{q(!1),ne.pause()},toggle:ie,getContainerNode:()=>$.current,getCurrentFrame:ne.getCurrentFrame,isPlaying:ne.isPlaying,seekTo:e=>{const t=se-1,r=Math.max(0,Math.min(t,e));if(ne.isPlaying()){q(r!==t||o),ne.pause()}r!==t||o||ne.emitter.dispatchEnded(),ne.seek(r)},isFullscreen:()=>{const{current:e}=$;return!!e&&(document.fullscreenElement===e||document.webkitFullscreenElement===e)},requestFullscreen:oe,exitFullscreen:ae,getVolume:()=>ve?0:xe,setVolume:e=>{if("number"!=typeof e)throw new TypeError("setVolume() takes a number, got value of type "+typeof e);if(isNaN(e))throw new TypeError("setVolume() got a number that is NaN. Volume must be between 0 and 1.");if(e<0||e>1)throw new TypeError("setVolume() got a number that is out of range. Must be between 0 and 1, got "+typeof e);fe(e)},isMuted:()=>we,mute:()=>{pe(!0)},unmute:()=>{pe(!1)},getScale:()=>ce,pauseAndReturnToPlayStart:()=>{ne.pauseAndReturnToPlayStart()}};return Object.assign(ne.emitter,e)}),[se,ae,o,ve,we,xe,ne,oe,pe,fe,ie,ce]);const Se=G?G.component:null,ke=(0,e.useMemo)((()=>E({canvasSize:K,config:W,style:i,overflowVisible:N})),[K,W,N,i]),Ce=(0,e.useMemo)((()=>S({config:W,layout:le,scale:ce,overflowVisible:N})),[W,le,N,ce]),Fe=(0,e.useMemo)((()=>U({canvasSize:K,config:W,layout:le,scale:ce,overflowVisible:N})),[K,W,le,N,ce]),Pe=(0,e.useCallback)((e=>{ne.pause(),ne.emitter.dispatchError(e)}),[ne]),Te=(0,e.useCallback)((e=>{e.stopPropagation(),oe()}),[oe]),_e=(0,e.useCallback)((e=>{e.stopPropagation(),ae()}),[ae]),Ie=(0,e.useCallback)((e=>{(e instanceof MouseEvent?2===e.button:e.nativeEvent.button)||ie(e)}),[ie]),Me=(0,e.useCallback)((()=>{te(!0)}),[]),Ae=(0,e.useCallback)((()=>{te(!1)}),[]),Re=(0,e.useCallback)((()=>{Y?ae():oe()}),[ae,Y,oe]),{handlePointerDown:Ve,handleDoubleClick:De}=ye(Ie,Re,f&&s&&re);(0,e.useEffect)((()=>{X&&(ne.play(),Z(!1))}),[X,ne]);const Oe=(0,e.useMemo)((()=>m?m({height:ke.height,width:ke.width,isBuffering:Ee}):null),[ke.height,ke.width,m,Ee]),je=(0,e.useMemo)((()=>({type:"scale",scale:ce})),[ce]);if(!W)return null;const ze=g?g({height:"player-size"===z?ke.height:W.height,width:"player-size"===z?ke.width:W.width,isBuffering:Ee}):null;if(void 0===ze)throw new TypeError("renderPoster() must return a React element, but undefined was returned");const Be=ze&&[k&&!ne.isPlaying()&&!ee,x&&ne.isLastFrame&&!ne.isPlaying(),b&&!ne.hasPlayed&&!ne.isPlaying(),C&&Ee&&ne.isPlaying()].some(Boolean),{left:Le,top:Ne,width:He,height:We,...Ge}=Ce,$e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:Ce,onPointerDown:c?Ve:void 0,onDoubleClick:f?De:void 0,children:(0,t.jsxs)("div",{style:Fe,className:me,children:[Se?(0,t.jsx)(he,{onError:Pe,errorFallback:p,children:(0,t.jsx)(r.Xp.ClipComposition,{children:(0,t.jsx)(r.Xp.CurrentScaleContext.Provider,{value:je,children:(0,t.jsx)(Se,{...G?.props??{},...l??{}})})})}):null,Be&&"composition-size"===z?(0,t.jsx)("div",{style:{...Ge,width:W.width,height:W.height},onPointerDown:c?Ve:void 0,onDoubleClick:f?De:void 0,children:ze}):null]})}),Be&&"player-size"===z?(0,t.jsx)("div",{style:Ce,onPointerDown:c?Ve:void 0,onDoubleClick:f?De:void 0,children:ze}):null,n?(0,t.jsx)(de,{fps:W.fps,durationInFrames:W.durationInFrames,player:ne,containerRef:$,onFullscreenButtonClick:Te,isFullscreen:Y,allowFullscreen:s,showVolumeControls:u,onExitFullscreenButtonClick:_e,spaceKeyToPlayOrPause:d,onSeekEnd:Ae,onSeekStart:Me,inFrame:F,outFrame:P,initiallyShowControls:T,canvasSize:K,renderFullscreenButton:_,renderPlayPauseButton:I,alwaysShowControls:O,showPlaybackRateControl:j,buffering:Ee,hideControlsWhenPointerDoesntMove:L,onDoubleClick:f?De:void 0,onPointerDown:c?Ve:void 0,renderMuteButton:M,renderVolumeSlider:V}):null]});return ge&&!be?(0,t.jsx)("div",{ref:$,style:ke,className:y,children:$e}):(0,t.jsx)("div",{ref:$,style:ke,className:y,children:(0,t.jsx)(e.Suspense,{fallback:Oe,children:$e})})})),we="remotion.volumePreference",Ee="player-comp",Ue=({children:n,timelineContext:i,fps:o,compositionHeight:a,compositionWidth:s,durationInFrames:l,component:c,numberOfSharedAudioTags:u,initiallyMuted:f})=>{const d=(0,e.useMemo)((()=>({compositions:[{component:c,durationInFrames:l,height:a,width:s,fps:o,id:Ee,nonce:777,folderName:null,parentFolderName:null,schema:null,calculateMetadata:null}],folders:[],registerFolder:()=>{},unregisterFolder:()=>{},registerComposition:()=>{},unregisterComposition:()=>{},currentCompositionMetadata:null,setCurrentCompositionMetadata:()=>{},canvasContent:{type:"composition",compositionId:"player-comp"},setCanvasContent:()=>{},updateCompositionDefaultProps:()=>{}})),[c,l,a,s,o]),[p,h]=(0,e.useState)((()=>f)),[m,g]=(0,e.useState)((()=>(()=>{if("undefined"==typeof window)return 1;try{const e=window.localStorage.getItem(we);return e?Number(e):1}catch(e){return 1}})())),y=(0,e.useMemo)((()=>({mediaMuted:p,mediaVolume:m})),[p,m]),v=(0,e.useCallback)((e=>{g(e),(e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(we,String(e))}catch(e){console.log("Could not persist volume",e)}})(e)}),[]),b=(0,e.useMemo)((()=>({setMediaMuted:h,setMediaVolume:v})),[v]);return(0,t.jsx)(r.Xp.CanUseRemotionHooksProvider,{children:(0,t.jsx)(r.Xp.Timeline.TimelineContext.Provider,{value:i,children:(0,t.jsx)(r.Xp.CompositionManager.Provider,{value:d,children:(0,t.jsx)(r.Xp.ResolveCompositionConfig,{children:(0,t.jsx)(r.Xp.PrefetchProvider,{children:(0,t.jsx)(r.Xp.DurationsContextProvider,{children:(0,t.jsx)(r.Xp.MediaVolumeContext.Provider,{value:y,children:(0,t.jsx)(r.Xp.NativeLayersProvider,{children:(0,t.jsx)(r.Xp.SetMediaVolumeContext.Provider,{value:b,children:(0,t.jsx)(r.Xp.SharedAudioContextProvider,{numberOfAudioTags:u,component:c,children:(0,t.jsx)(r.Xp.BufferingProvider,{children:n})})})})})})})})})})})},Se=(e,t)=>{if(null==e)return e??null;if("number"!=typeof e)throw new TypeError(`"${t}" must be a number, but is ${JSON.stringify(e)}`);if(Number.isNaN(e))throw new TypeError(`"${t}" must not be NaN, but is ${JSON.stringify(e)}`);if(!Number.isFinite(e))throw new TypeError(`"${t}" must be finite, but is ${JSON.stringify(e)}`);if(e%1!=0)throw new TypeError(`"${t}" must be an integer, but is ${JSON.stringify(e)}`);return e},ke=i,Ce=o,Fe=a,Pe=s,Te=(0,e.forwardRef)((({durationInFrames:n,compositionHeight:i,compositionWidth:o,fps:a,inputProps:s,style:l,controls:c=!1,loop:u=!1,autoPlay:f=!1,showVolumeControls:d=!0,allowFullscreen:p=!0,clickToPlay:h,doubleClickToFullscreen:m=!1,spaceKeyToPlayOrPause:g=!0,moveToBeginningWhenEnded:y=!0,numberOfSharedAudioTags:v=5,errorFallback:b=()=>"⚠️",playbackRate:x=1,renderLoading:w,className:E,showPosterWhenUnplayed:U,showPosterWhenEnded:S,showPosterWhenPaused:k,showPosterWhenBuffering:C,initialFrame:F,renderPoster:P,inFrame:T,outFrame:I,initiallyShowControls:M,renderFullscreenButton:A,renderPlayPauseButton:R,renderVolumeSlider:V,alwaysShowControls:D=!1,initiallyMuted:O=!1,showPlaybackRateControl:j=!1,posterFillMode:z="player-size",bufferStateDelayInMilliseconds:B,hideControlsWhenPointerDoesntMove:L=!0,overflowVisible:N=!1,renderMuteButton:H,...W},G)=>{if("undefined"!=typeof window&&(0,e.useLayoutEffect)((()=>{window.remotion_isPlayer=!0}),[]),void 0!==W.defaultProps)throw new Error("The <Player /> component does not accept `defaultProps`, but some were passed. Use `inputProps` instead.");const $="component"in(K=W)?K.component:null;var K;if($?.type===r.BO)throw new TypeError("'component' should not be an instance of <Composition/>. Pass the React component directly, and set the duration, fps and dimensions as separate props. See https://www.remotion.dev/docs/player/examples for an example.");if($===r.BO)throw new TypeError("'component' must not be the 'Composition' component. Pass your own React component directly, and set the duration, fps and dimensions as separate props. See https://www.remotion.dev/docs/player/examples for an example.");const J=r.Xp.useLazyComponent(W);(({initialFrame:e,durationInFrames:t})=>{if("number"!=typeof t)throw new Error(`\`durationInFrames\` must be a number, but is ${JSON.stringify(t)}`);if(void 0!==e){if("number"!=typeof e)throw new Error(`\`initialFrame\` must be a number, but is ${JSON.stringify(e)}`);if(Number.isNaN(e))throw new Error("`initialFrame` must be a number, but is NaN");if(!Number.isFinite(e))throw new Error("`initialFrame` must be a number, but is Infinity");if(e%1!=0)throw new Error(`\`initialFrame\` must be an integer, but is ${JSON.stringify(e)}`);if(e>t-1)throw new Error(`\`initialFrame\` must be less or equal than \`durationInFrames - 1\`, but is ${JSON.stringify(e)}`)}})({initialFrame:F,durationInFrames:n});const[q,X]=(0,e.useState)((()=>({[Ee]:F??0}))),[Z,Y]=(0,e.useState)(!1),[Q]=(0,e.useState)("player-comp"),ee=(0,e.useRef)(null),te=(0,e.useRef)([]),re=(0,e.useRef)(!1),[ne,ie]=(0,e.useState)(x);if("number"!=typeof i)throw new TypeError(`'compositionHeight' must be a number but got '${typeof i}' instead`);if("number"!=typeof o)throw new TypeError(`'compositionWidth' must be a number but got '${typeof o}' instead`);if(Ce(i,"compositionHeight","of the <Player /> component"),Ce(o,"compositionWidth","of the <Player /> component"),Fe(n,{component:"of the <Player/> component",allowFloats:!1}),ke(a,"as a prop of the <Player/> component",!1),Pe(s,"inputProps",null),(({inFrame:e,durationInFrames:t,outFrame:r})=>{const n=Se(e,"inFrame"),i=Se(r,"outFrame");if(null!==n||null!==i){if(null!==n&&n>t-1)throw new Error("inFrame must be less than (durationInFrames - 1), but is "+n);if(null!==i&&i>t-1)throw new Error("outFrame must be less than (durationInFrames - 1), but is "+i);if(null!==n&&n<0)throw new Error("inFrame must be greater than 0, but is "+n);if(null!==i&&i<=0)throw new Error(`outFrame must be greater than 0, but is ${i}. If you want to render a single frame, use <Thumbnail /> instead.`);if(null!==i&&null!==n&&i<=n)throw new Error("outFrame must be greater than inFrame, but is "+i+" <= "+n)}})({durationInFrames:n,inFrame:T,outFrame:I}),"boolean"!=typeof c&&void 0!==c)throw new TypeError(`'controls' must be a boolean or undefined but got '${typeof c}' instead`);if("boolean"!=typeof f&&void 0!==f)throw new TypeError(`'autoPlay' must be a boolean or undefined but got '${typeof f}' instead`);if("boolean"!=typeof u&&void 0!==u)throw new TypeError(`'loop' must be a boolean or undefined but got '${typeof u}' instead`);if("boolean"!=typeof m&&void 0!==m)throw new TypeError(`'doubleClickToFullscreen' must be a boolean or undefined but got '${typeof m}' instead`);if("boolean"!=typeof d&&void 0!==d)throw new TypeError(`'showVolumeControls' must be a boolean or undefined but got '${typeof d}' instead`);if("boolean"!=typeof p&&void 0!==p)throw new TypeError(`'allowFullscreen' must be a boolean or undefined but got '${typeof p}' instead`);if("boolean"!=typeof h&&void 0!==h)throw new TypeError(`'clickToPlay' must be a boolean or undefined but got '${typeof h}' instead`);if("boolean"!=typeof g&&void 0!==g)throw new TypeError(`'spaceKeyToPlayOrPause' must be a boolean or undefined but got '${typeof g}' instead`);if("number"!=typeof v||v%1!=0||!Number.isFinite(v)||Number.isNaN(v)||v<0)throw new TypeError(`'numberOfSharedAudioTags' must be an integer but got '${v}' instead`);(e=>{if(void 0!==e){if(e>4)throw new Error(`The highest possible playback rate is 4. You passed: ${e}`);if(e<-4)throw new Error(`The lowest possible playback rate is -4. You passed: ${e}`);if(0===e)throw new Error("A playback rate of 0 is not supported.")}})(ne),(0,e.useEffect)((()=>{ie(x)}),[x]),(0,e.useImperativeHandle)(G,(()=>ee.current),[]);const oe=(0,e.useMemo)((()=>({frame:q,playing:Z,rootId:Q,playbackRate:ne,imperativePlaying:re,setPlaybackRate:e=>{ie(e)},audioAndVideoTags:te})),[q,ne,Z,Q]),ae=(0,e.useMemo)((()=>({setFrame:X,setPlaying:Y})),[X]);"undefined"!=typeof window&&(0,e.useLayoutEffect)((()=>{r.Xp.CSSUtils.injectCSS(r.Xp.CSSUtils.makeDefaultPreviewCSS(`.${me}`,"#fff"))}),[]);const se=(0,e.useMemo)((()=>s??{}),[s]);return(0,t.jsx)(r.Xp.IsPlayerContextProvider,{children:(0,t.jsx)(Ue,{timelineContext:oe,component:J,compositionHeight:i,compositionWidth:o,durationInFrames:n,fps:a,numberOfSharedAudioTags:v,initiallyMuted:O,children:(0,t.jsx)(r.Xp.Timeline.SetTimelineContext.Provider,{value:ae,children:(0,t.jsx)(_,{currentPlaybackRate:ne,children:(0,t.jsx)(xe,{ref:ee,posterFillMode:z,renderLoading:w,autoPlay:Boolean(f),loop:Boolean(u),controls:Boolean(c),errorFallback:b,style:l,inputProps:se,allowFullscreen:Boolean(p),moveToBeginningWhenEnded:Boolean(y),clickToPlay:"boolean"==typeof h?h:Boolean(c),showVolumeControls:Boolean(d),doubleClickToFullscreen:Boolean(m),spaceKeyToPlayOrPause:Boolean(g),playbackRate:ne,className:E??void 0,showPosterWhenUnplayed:Boolean(U),showPosterWhenEnded:Boolean(S),showPosterWhenPaused:Boolean(k),showPosterWhenBuffering:Boolean(C),renderPoster:P,inFrame:T??null,outFrame:I??null,initiallyShowControls:M??!0,renderFullscreen:A??null,renderPlayPauseButton:R??null,renderMuteButton:H??null,renderVolumeSlider:V??null,alwaysShowControls:D,showPlaybackRateControl:j,bufferStateDelayInMilliseconds:B??300,hideControlsWhenPointerDoesntMove:L,overflowVisible:N})})})})})})),_e=e.version.split(".")[0];if("0"===_e)throw new Error(`Version ${_e} of "react" is not supported by Remotion`);var Ie,Me,Ae=parseInt(_e,10)>=18,Re=(0,e.forwardRef)((({style:n,inputProps:i,errorFallback:o,renderLoading:a,className:s,overflowVisible:l},c)=>{const u=r.Xp.useUnsafeVideoConfig(),f=r.Xp.useVideo(),d=(0,e.useRef)(null),p=D(d,{triggerOnWindowResize:!1,shouldApplyCssTransforms:!1}),h=(0,e.useMemo)((()=>u&&p?w({canvasSize:p,compositionHeight:u.height,compositionWidth:u.width,previewSize:"auto"}):null),[p,u]),m=h?.scale??1,g=(()=>{const t=(0,e.useContext)(C);if(!t)throw new TypeError("Expected Player event emitter context");return(0,e.useMemo)((()=>({emitter:t})),[t])})();T(g.emitter),(0,e.useImperativeHandle)(c,(()=>{const e={getContainerNode:()=>d.current,getScale:()=>m};return Object.assign(g.emitter,e)}),[m,g.emitter]);const y=f?f.component:null,v=(0,e.useMemo)((()=>E({config:u,style:n,canvasSize:p,overflowVisible:l})),[p,u,l,n]),b=(0,e.useMemo)((()=>S({config:u,layout:h,scale:m,overflowVisible:l})),[u,h,l,m]),x=(0,e.useMemo)((()=>U({canvasSize:p,config:u,layout:h,scale:m,overflowVisible:l})),[p,u,h,l,m]),k=(0,e.useCallback)((e=>{g.emitter.dispatchError(e)}),[g.emitter]),F=(0,e.useMemo)((()=>a?a({height:v.height,width:v.width,isBuffering:!1}):null),[v.height,v.width,a]),P=(0,e.useMemo)((()=>({type:"scale",scale:m})),[m]);if(!u)return null;const _=(0,t.jsx)("div",{style:b,children:(0,t.jsx)("div",{style:x,className:me,children:y?(0,t.jsx)(he,{onError:k,errorFallback:o,children:(0,t.jsx)(r.Xp.CurrentScaleContext.Provider,{value:P,children:(0,t.jsx)(y,{...f?.props??{},...i??{}})})}):null})});return ge&&!Ae?(0,t.jsx)("div",{ref:d,style:v,className:s,children:_}):(0,t.jsx)("div",{ref:d,style:v,className:s,children:(0,t.jsx)(e.Suspense,{fallback:F,children:_})})}));(0,e.forwardRef)((({frameToDisplay:n,style:i,inputProps:o,compositionHeight:a,compositionWidth:s,durationInFrames:l,fps:c,className:u,errorFallback:f=()=>"⚠️",renderLoading:d,overflowVisible:p=!1,...h},m)=>{"undefined"!=typeof window&&(0,e.useLayoutEffect)((()=>{window.remotion_isPlayer=!0}),[]);const[g]=(0,e.useState)((()=>String((0,r.yT)(null)))),y=(0,e.useRef)(null),v=(0,e.useMemo)((()=>({playing:!1,frame:{[Ee]:n},rootId:g,imperativePlaying:{current:!1},playbackRate:1,setPlaybackRate:()=>{throw new Error("thumbnail")},audioAndVideoTags:{current:[]}})),[n,g]);(0,e.useImperativeHandle)(m,(()=>y.current),[]);const b=r.Xp.useLazyComponent(h),[x]=(0,e.useState)((()=>new P)),w=(0,e.useMemo)((()=>o??{}),[o]);return(0,t.jsx)(r.Xp.IsPlayerContextProvider,{children:(0,t.jsx)(Ue,{timelineContext:v,component:b,compositionHeight:a,compositionWidth:s,durationInFrames:l,fps:c,numberOfSharedAudioTags:0,initiallyMuted:!0,children:(0,t.jsx)(C.Provider,{value:x,children:(0,t.jsx)(Re,{ref:y,className:u,errorFallback:f,inputProps:w,renderLoading:d,style:i,overflowVisible:p})})})})}));!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Ie||(Ie={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Me||(Me={}));const Ve=Ie.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),De=e=>{switch(typeof e){case"undefined":return Ve.undefined;case"string":return Ve.string;case"number":return isNaN(e)?Ve.nan:Ve.number;case"boolean":return Ve.boolean;case"function":return Ve.function;case"bigint":return Ve.bigint;case"symbol":return Ve.symbol;case"object":return Array.isArray(e)?Ve.array:null===e?Ve.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Ve.promise:"undefined"!=typeof Map&&e instanceof Map?Ve.map:"undefined"!=typeof Set&&e instanceof Set?Ve.set:"undefined"!=typeof Date&&e instanceof Date?Ve.date:Ve.object;default:return Ve.unknown}},Oe=Ie.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class je extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){const r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof je))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ie.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},r=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}je.create=e=>new je(e);const ze=(e,t)=>{let r;switch(e.code){case Oe.invalid_type:r=e.received===Ve.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Oe.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ie.jsonStringifyReplacer)}`;break;case Oe.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ie.joinValues(e.keys,", ")}`;break;case Oe.invalid_union:r="Invalid input";break;case Oe.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ie.joinValues(e.options)}`;break;case Oe.invalid_enum_value:r=`Invalid enum value. Expected ${Ie.joinValues(e.options)}, received '${e.received}'`;break;case Oe.invalid_arguments:r="Invalid function arguments";break;case Oe.invalid_return_type:r="Invalid function return type";break;case Oe.invalid_date:r="Invalid date";break;case Oe.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ie.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Oe.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Oe.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Oe.custom:r="Invalid input";break;case Oe.invalid_intersection_types:r="Intersection results could not be merged";break;case Oe.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Oe.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ie.assertNever(e)}return{message:r}};let Be=ze;function Le(){return Be}const Ne=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";const l=n.filter((e=>!!e)).slice().reverse();for(const e of l)s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function He(e,t){const r=Le(),n=Ne({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===ze?void 0:ze].filter((e=>!!e))});e.common.issues.push(n)}class We{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return Ge;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const e of t){const t=await e.key,n=await e.value;r.push({key:t,value:n})}return We.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:i}=n;if("aborted"===t.status)return Ge;if("aborted"===i.status)return Ge;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||void 0===i.value&&!n.alwaysSet||(r[t.value]=i.value)}return{status:e.value,value:r}}}const Ge=Object.freeze({status:"aborted"}),$e=e=>({status:"dirty",value:e}),Ke=e=>({status:"valid",value:e}),Je=e=>"aborted"===e.status,qe=e=>"dirty"===e.status,Xe=e=>"valid"===e.status,Ze=e=>"undefined"!=typeof Promise&&e instanceof Promise;function Ye(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function Qe(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}var et,tt,rt;"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(et||(et={}));class nt{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const it=(e,t)=>{if(Xe(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new je(e.common.issues);return this._error=t,this._error}}};function ot(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(t,i)=>{var o,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(o=null!=s?s:n)&&void 0!==o?o:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(a=null!=s?s:r)&&void 0!==a?a:i.defaultError}},description:i}}class at{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return De(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:De(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new We,ctx:{common:e.parent.common,data:e.data,parsedType:De(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ze(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:De(e)},i=this._parseSync({data:e,path:n.path,parent:n});return it(n,i)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:De(e)},n=this._parse({data:e,path:r.path,parent:r}),i=await(Ze(n)?n:Promise.resolve(n));return it(r,i)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,n)=>{const i=e(t),o=()=>n.addIssue({code:Oe.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1)))}_refinement(e){return new er({schema:this,typeName:dr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return tr.create(this,this._def)}nullable(){return rr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Vt.create(this,this._def)}promise(){return Qt.create(this,this._def)}or(e){return jt.create([this,e],this._def)}and(e){return Nt.create(this,e,this._def)}transform(e){return new er({...ot(this._def),schema:this,typeName:dr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new nr({...ot(this._def),innerType:this,defaultValue:t,typeName:dr.ZodDefault})}brand(){return new sr({typeName:dr.ZodBranded,type:this,...ot(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ir({...ot(this._def),innerType:this,catchValue:t,typeName:dr.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return lr.create(this,e)}readonly(){return cr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const st=/^c[^\s-]{8,}$/i,lt=/^[0-9a-z]+$/,ct=/^[0-9A-HJKMNP-TV-Z]{26}$/,ut=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ft=/^[a-z0-9_-]{21}$/i,dt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,pt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let ht;const mt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,gt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,yt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vt="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bt=new RegExp(`^${vt}$`);function xt(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function wt(e){let t=`${vt}T${xt(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}class Et extends at{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==Ve.string){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.string,received:t.parsedType}),Ge}const t=new We;let r;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const n=e.data.length>o.value,i=e.data.length<o.value;(n||i)&&(r=this._getOrReturnCtx(e,r),n?He(r,{code:Oe.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):i&&He(r,{code:Oe.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),t.dirty())}else if("email"===o.kind)pt.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"email",code:Oe.invalid_string,message:o.message}),t.dirty());else if("emoji"===o.kind)ht||(ht=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ht.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"emoji",code:Oe.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)ut.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"uuid",code:Oe.invalid_string,message:o.message}),t.dirty());else if("nanoid"===o.kind)ft.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"nanoid",code:Oe.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)st.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"cuid",code:Oe.invalid_string,message:o.message}),t.dirty());else if("cuid2"===o.kind)lt.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"cuid2",code:Oe.invalid_string,message:o.message}),t.dirty());else if("ulid"===o.kind)ct.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"ulid",code:Oe.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(n){r=this._getOrReturnCtx(e,r),He(r,{validation:"url",code:Oe.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"regex",code:Oe.invalid_string,message:o.message}),t.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),t.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty());else if("datetime"===o.kind){wt(o).test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.invalid_string,validation:"datetime",message:o.message}),t.dirty())}else if("date"===o.kind){bt.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.invalid_string,validation:"date",message:o.message}),t.dirty())}else if("time"===o.kind){new RegExp(`^${xt(o)}$`).test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.invalid_string,validation:"time",message:o.message}),t.dirty())}else"duration"===o.kind?dt.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"duration",code:Oe.invalid_string,message:o.message}),t.dirty()):"ip"===o.kind?(n=e.data,("v4"!==(i=o.version)&&i||!mt.test(n))&&("v6"!==i&&i||!gt.test(n))&&(r=this._getOrReturnCtx(e,r),He(r,{validation:"ip",code:Oe.invalid_string,message:o.message}),t.dirty())):"base64"===o.kind?yt.test(e.data)||(r=this._getOrReturnCtx(e,r),He(r,{validation:"base64",code:Oe.invalid_string,message:o.message}),t.dirty()):Ie.assertNever(o);var n,i;return{status:t.value,value:e.data}}_regex(e,t,r){return this.refinement((t=>e.test(t)),{validation:t,code:Oe.invalid_string,...et.errToObj(r)})}_addCheck(e){return new Et({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...et.errToObj(e)})}url(e){return this._addCheck({kind:"url",...et.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...et.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...et.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...et.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...et.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...et.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...et.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...et.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...et.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...et.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...et.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...et.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...et.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...et.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...et.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...et.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...et.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...et.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...et.errToObj(t)})}nonempty(e){return this.min(1,et.errToObj(e))}trim(){return new Et({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Et({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Et({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Ut(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}Et.create=e=>{var t;return new Et({checks:[],typeName:dr.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ot(e)})};class St extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==Ve.number){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.number,received:t.parsedType}),Ge}let t;const r=new We;for(const n of this._def.checks)if("int"===n.kind)Ie.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),He(t,{code:Oe.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),He(t,{code:Oe.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),He(t,{code:Oe.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==Ut(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),He(t,{code:Oe.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),He(t,{code:Oe.not_finite,message:n.message}),r.dirty()):Ie.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,et.toString(t))}gt(e,t){return this.setLimit("min",e,!1,et.toString(t))}lte(e,t){return this.setLimit("max",e,!0,et.toString(t))}lt(e,t){return this.setLimit("max",e,!1,et.toString(t))}setLimit(e,t,r,n){return new St({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:et.toString(n)}]})}_addCheck(e){return new St({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:et.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:et.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:et.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:et.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:et.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:et.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:et.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:et.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:et.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Ie.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}St.create=e=>new St({checks:[],typeName:dr.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...ot(e)});class kt extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==Ve.bigint){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.bigint,received:t.parsedType}),Ge}let t;const r=new We;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),He(t,{code:Oe.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else if("max"===n.kind){(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),He(t,{code:Oe.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),He(t,{code:Oe.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):Ie.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,et.toString(t))}gt(e,t){return this.setLimit("min",e,!1,et.toString(t))}lte(e,t){return this.setLimit("max",e,!0,et.toString(t))}lt(e,t){return this.setLimit("max",e,!1,et.toString(t))}setLimit(e,t,r,n){return new kt({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:et.toString(n)}]})}_addCheck(e){return new kt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:et.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:et.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:et.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:et.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:et.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}kt.create=e=>{var t;return new kt({checks:[],typeName:dr.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ot(e)})};class Ct extends at{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==Ve.boolean){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.boolean,received:t.parsedType}),Ge}return Ke(e.data)}}Ct.create=e=>new Ct({typeName:dr.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...ot(e)});class Ft extends at{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==Ve.date){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.date,received:t.parsedType}),Ge}if(isNaN(e.data.getTime())){return He(this._getOrReturnCtx(e),{code:Oe.invalid_date}),Ge}const t=new We;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),t.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(r=this._getOrReturnCtx(e,r),He(r,{code:Oe.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):Ie.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Ft({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:et.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:et.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Ft.create=e=>new Ft({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:dr.ZodDate,...ot(e)});class Pt extends at{_parse(e){if(this._getType(e)!==Ve.symbol){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.symbol,received:t.parsedType}),Ge}return Ke(e.data)}}Pt.create=e=>new Pt({typeName:dr.ZodSymbol,...ot(e)});class Tt extends at{_parse(e){if(this._getType(e)!==Ve.undefined){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.undefined,received:t.parsedType}),Ge}return Ke(e.data)}}Tt.create=e=>new Tt({typeName:dr.ZodUndefined,...ot(e)});class _t extends at{_parse(e){if(this._getType(e)!==Ve.null){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.null,received:t.parsedType}),Ge}return Ke(e.data)}}_t.create=e=>new _t({typeName:dr.ZodNull,...ot(e)});class It extends at{constructor(){super(...arguments),this._any=!0}_parse(e){return Ke(e.data)}}It.create=e=>new It({typeName:dr.ZodAny,...ot(e)});class Mt extends at{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ke(e.data)}}Mt.create=e=>new Mt({typeName:dr.ZodUnknown,...ot(e)});class At extends at{_parse(e){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.never,received:t.parsedType}),Ge}}At.create=e=>new At({typeName:dr.ZodNever,...ot(e)});class Rt extends at{_parse(e){if(this._getType(e)!==Ve.undefined){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.void,received:t.parsedType}),Ge}return Ke(e.data)}}Rt.create=e=>new Rt({typeName:dr.ZodVoid,...ot(e)});class Vt extends at{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==Ve.array)return He(t,{code:Oe.invalid_type,expected:Ve.array,received:t.parsedType}),Ge;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(He(t,{code:e?Oe.too_big:Oe.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(He(t,{code:Oe.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(He(t,{code:Oe.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>n.type._parseAsync(new nt(t,e,t.path,r))))).then((e=>We.mergeArray(r,e)));const i=[...t.data].map(((e,r)=>n.type._parseSync(new nt(t,e,t.path,r))));return We.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new Vt({...this._def,minLength:{value:e,message:et.toString(t)}})}max(e,t){return new Vt({...this._def,maxLength:{value:e,message:et.toString(t)}})}length(e,t){return new Vt({...this._def,exactLength:{value:e,message:et.toString(t)}})}nonempty(e){return this.min(1,e)}}function Dt(e){if(e instanceof Ot){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=tr.create(Dt(n))}return new Ot({...e._def,shape:()=>t})}return e instanceof Vt?new Vt({...e._def,type:Dt(e.element)}):e instanceof tr?tr.create(Dt(e.unwrap())):e instanceof rr?rr.create(Dt(e.unwrap())):e instanceof Ht?Ht.create(e.items.map((e=>Dt(e)))):e}Vt.create=(e,t)=>new Vt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:dr.ZodArray,...ot(t)});class Ot extends at{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Ie.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Ve.object){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.object,received:t.parsedType}),Ge}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof At&&"strip"===this._def.unknownKeys))for(const e in r.data)i.includes(e)||o.push(e);const a=[];for(const e of i){const t=n[e],i=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new nt(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof At){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(He(r,{code:Oe.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new nt(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e})).then((e=>We.mergeObjectSync(t,e))):We.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return et.errToObj,new Ot({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;const s=null!==(o=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=et.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new Ot({...this._def,unknownKeys:"strip"})}passthrough(){return new Ot({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ot({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ot({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:dr.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ot({...this._def,catchall:e})}pick(e){const t={};return Ie.objectKeys(e).forEach((r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])})),new Ot({...this._def,shape:()=>t})}omit(e){const t={};return Ie.objectKeys(this.shape).forEach((r=>{e[r]||(t[r]=this.shape[r])})),new Ot({...this._def,shape:()=>t})}deepPartial(){return Dt(this)}partial(e){const t={};return Ie.objectKeys(this.shape).forEach((r=>{const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()})),new Ot({...this._def,shape:()=>t})}required(e){const t={};return Ie.objectKeys(this.shape).forEach((r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof tr;)e=e._def.innerType;t[r]=e}})),new Ot({...this._def,shape:()=>t})}keyof(){return Xt(Ie.objectKeys(this.shape))}}Ot.create=(e,t)=>new Ot({shape:()=>e,unknownKeys:"strip",catchall:At.create(),typeName:dr.ZodObject,...ot(t)}),Ot.strictCreate=(e,t)=>new Ot({shape:()=>e,unknownKeys:"strict",catchall:At.create(),typeName:dr.ZodObject,...ot(t)}),Ot.lazycreate=(e,t)=>new Ot({shape:e,unknownKeys:"strip",catchall:At.create(),typeName:dr.ZodObject,...ot(t)});class jt extends at{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map((e=>new je(e.ctx.common.issues)));return He(t,{code:Oe.invalid_union,unionErrors:r}),Ge}));{let e;const n=[];for(const i of r){const r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=n.map((e=>new je(e)));return He(t,{code:Oe.invalid_union,unionErrors:i}),Ge}}get options(){return this._def.options}}jt.create=(e,t)=>new jt({options:e,typeName:dr.ZodUnion,...ot(t)});const zt=e=>e instanceof Jt?zt(e.schema):e instanceof er?zt(e.innerType()):e instanceof qt?[e.value]:e instanceof Zt?e.options:e instanceof Yt?Ie.objectValues(e.enum):e instanceof nr?zt(e._def.innerType):e instanceof Tt?[void 0]:e instanceof _t?[null]:e instanceof tr?[void 0,...zt(e.unwrap())]:e instanceof rr?[null,...zt(e.unwrap())]:e instanceof sr||e instanceof cr?zt(e.unwrap()):e instanceof ir?zt(e._def.innerType):[];class Bt extends at{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ve.object)return He(t,{code:Oe.invalid_type,expected:Ve.object,received:t.parsedType}),Ge;const r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(He(t,{code:Oe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ge)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const n=new Map;for(const r of t){const t=zt(r.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const i of t){if(n.has(i))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new Bt({typeName:dr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...ot(r)})}}function Lt(e,t){const r=De(e),n=De(t);if(e===t)return{valid:!0,data:e};if(r===Ve.object&&n===Ve.object){const r=Ie.objectKeys(t),n=Ie.objectKeys(e).filter((e=>-1!==r.indexOf(e))),i={...e,...t};for(const r of n){const n=Lt(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===Ve.array&&n===Ve.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n<e.length;n++){const i=Lt(e[n],t[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}return r===Ve.date&&n===Ve.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Nt extends at{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(Je(e)||Je(n))return Ge;const i=Lt(e.value,n.value);return i.valid?((qe(e)||qe(n))&&t.dirty(),{status:t.value,value:i.data}):(He(r,{code:Oe.invalid_intersection_types}),Ge)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Nt.create=(e,t,r)=>new Nt({left:e,right:t,typeName:dr.ZodIntersection,...ot(r)});class Ht extends at{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ve.array)return He(r,{code:Oe.invalid_type,expected:Ve.array,received:r.parsedType}),Ge;if(r.data.length<this._def.items.length)return He(r,{code:Oe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ge;!this._def.rest&&r.data.length>this._def.items.length&&(He(r,{code:Oe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map(((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new nt(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(n).then((e=>We.mergeArray(t,e))):We.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Ht({...this._def,rest:e})}}Ht.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ht({items:e,typeName:dr.ZodTuple,rest:null,...ot(t)})};class Wt extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ve.object)return He(r,{code:Oe.invalid_type,expected:Ve.object,received:r.parsedType}),Ge;const n=[],i=this._def.keyType,o=this._def.valueType;for(const e in r.data)n.push({key:i._parse(new nt(r,e,r.path,e)),value:o._parse(new nt(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?We.mergeObjectAsync(t,n):We.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new Wt(t instanceof at?{keyType:e,valueType:t,typeName:dr.ZodRecord,...ot(r)}:{keyType:Et.create(),valueType:e,typeName:dr.ZodRecord,...ot(t)})}}class Gt extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ve.map)return He(r,{code:Oe.invalid_type,expected:Ve.map,received:r.parsedType}),Ge;const n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map((([e,t],o)=>({key:n._parse(new nt(r,e,r.path,[o,"key"])),value:i._parse(new nt(r,t,r.path,[o,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of o){const n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return Ge;"dirty"!==n.status&&"dirty"!==i.status||t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of o){const n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return Ge;"dirty"!==n.status&&"dirty"!==i.status||t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}Gt.create=(e,t,r)=>new Gt({valueType:t,keyType:e,typeName:dr.ZodMap,...ot(r)});class $t extends at{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ve.set)return He(r,{code:Oe.invalid_type,expected:Ve.set,received:r.parsedType}),Ge;const n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(He(r,{code:Oe.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(He(r,{code:Oe.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const i=this._def.valueType;function o(e){const r=new Set;for(const n of e){if("aborted"===n.status)return Ge;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const a=[...r.data.values()].map(((e,t)=>i._parse(new nt(r,e,r.path,t))));return r.common.async?Promise.all(a).then((e=>o(e))):o(a)}min(e,t){return new $t({...this._def,minSize:{value:e,message:et.toString(t)}})}max(e,t){return new $t({...this._def,maxSize:{value:e,message:et.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}$t.create=(e,t)=>new $t({valueType:e,minSize:null,maxSize:null,typeName:dr.ZodSet,...ot(t)});class Kt extends at{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ve.function)return He(t,{code:Oe.invalid_type,expected:Ve.function,received:t.parsedType}),Ge;function r(e,r){return Ne({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Le(),ze].filter((e=>!!e)),issueData:{code:Oe.invalid_arguments,argumentsError:r}})}function n(e,r){return Ne({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Le(),ze].filter((e=>!!e)),issueData:{code:Oe.invalid_return_type,returnTypeError:r}})}const i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Qt){const e=this;return Ke((async function(...t){const a=new je([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw a.addIssue(r(t,e)),a})),l=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch((e=>{throw a.addIssue(n(l,e)),a}))}))}{const e=this;return Ke((function(...t){const a=e._def.args.safeParse(t,i);if(!a.success)throw new je([r(t,a.error)]);const s=Reflect.apply(o,this,a.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new je([n(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Kt({...this._def,args:Ht.create(e).rest(Mt.create())})}returns(e){return new Kt({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new Kt({args:e||Ht.create([]).rest(Mt.create()),returns:t||Mt.create(),typeName:dr.ZodFunction,...ot(r)})}}class Jt extends at{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Jt.create=(e,t)=>new Jt({getter:e,typeName:dr.ZodLazy,...ot(t)});class qt extends at{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return He(t,{received:t.data,code:Oe.invalid_literal,expected:this._def.value}),Ge}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Xt(e,t){return new Zt({values:e,typeName:dr.ZodEnum,...ot(t)})}qt.create=(e,t)=>new qt({value:e,typeName:dr.ZodLiteral,...ot(t)});class Zt extends at{constructor(){super(...arguments),tt.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return He(t,{expected:Ie.joinValues(r),received:t.parsedType,code:Oe.invalid_type}),Ge}if(Ye(this,tt,"f")||Qe(this,tt,new Set(this._def.values),"f"),!Ye(this,tt,"f").has(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return He(t,{received:t.data,code:Oe.invalid_enum_value,options:r}),Ge}return Ke(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Zt.create(e,{...this._def,...t})}exclude(e,t=this._def){return Zt.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}tt=new WeakMap,Zt.create=Xt;class Yt extends at{constructor(){super(...arguments),rt.set(this,void 0)}_parse(e){const t=Ie.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Ve.string&&r.parsedType!==Ve.number){const e=Ie.objectValues(t);return He(r,{expected:Ie.joinValues(e),received:r.parsedType,code:Oe.invalid_type}),Ge}if(Ye(this,rt,"f")||Qe(this,rt,new Set(Ie.getValidEnumValues(this._def.values)),"f"),!Ye(this,rt,"f").has(e.data)){const e=Ie.objectValues(t);return He(r,{received:r.data,code:Oe.invalid_enum_value,options:e}),Ge}return Ke(e.data)}get enum(){return this._def.values}}rt=new WeakMap,Yt.create=(e,t)=>new Yt({values:e,typeName:dr.ZodNativeEnum,...ot(t)});class Qt extends at{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ve.promise&&!1===t.common.async)return He(t,{code:Oe.invalid_type,expected:Ve.promise,received:t.parsedType}),Ge;const r=t.parsedType===Ve.promise?t.data:Promise.resolve(t.data);return Ke(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Qt.create=(e,t)=>new Qt({type:e,typeName:dr.ZodPromise,...ot(t)});class er extends at{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===dr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{He(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){const e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return Ge;const n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?Ge:"dirty"===n.status||"dirty"===t.value?$e(n.value):n}));{if("aborted"===t.value)return Ge;const n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?Ge:"dirty"===n.status||"dirty"===t.value?$e(n.value):n}}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?Ge:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?Ge:("dirty"===r.status&&t.dirty(),e(r.value).then((()=>({status:t.value,value:r.value}))))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Xe(e))return e;const o=n.transform(e.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((e=>Xe(e)?Promise.resolve(n.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}Ie.assertNever(n)}}er.create=(e,t,r)=>new er({schema:e,typeName:dr.ZodEffects,effect:t,...ot(r)}),er.createWithPreprocess=(e,t,r)=>new er({schema:t,effect:{type:"preprocess",transform:e},typeName:dr.ZodEffects,...ot(r)});class tr extends at{_parse(e){return this._getType(e)===Ve.undefined?Ke(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}tr.create=(e,t)=>new tr({innerType:e,typeName:dr.ZodOptional,...ot(t)});class rr extends at{_parse(e){return this._getType(e)===Ve.null?Ke(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}rr.create=(e,t)=>new rr({innerType:e,typeName:dr.ZodNullable,...ot(t)});class nr extends at{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===Ve.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}nr.create=(e,t)=>new nr({innerType:e,typeName:dr.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...ot(t)});class ir extends at{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ze(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new je(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new je(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ir.create=(e,t)=>new ir({innerType:e,typeName:dr.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...ot(t)});class or extends at{_parse(e){if(this._getType(e)!==Ve.nan){const t=this._getOrReturnCtx(e);return He(t,{code:Oe.invalid_type,expected:Ve.nan,received:t.parsedType}),Ge}return{status:"valid",value:e.data}}}or.create=e=>new or({typeName:dr.ZodNaN,...ot(e)});const ar=Symbol("zod_brand");class sr extends at{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class lr extends at{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Ge:"dirty"===e.status?(t.dirty(),$e(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Ge:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new lr({in:e,out:t,typeName:dr.ZodPipeline})}}class cr extends at{_parse(e){const t=this._def.innerType._parse(e),r=e=>(Xe(e)&&(e.value=Object.freeze(e.value)),e);return Ze(t)?t.then((e=>r(e))):r(t)}unwrap(){return this._def.innerType}}function ur(e,t={},r){return e?It.create().superRefine(((n,i)=>{var o,a;if(!e(n)){const e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===a||a,l="string"==typeof e?{message:e}:e;i.addIssue({code:"custom",...l,fatal:s})}})):It.create()}cr.create=(e,t)=>new cr({innerType:e,typeName:dr.ZodReadonly,...ot(t)});const fr={object:Ot.lazycreate};var dr;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(dr||(dr={}));const pr=Et.create,hr=St.create,mr=or.create,gr=kt.create,yr=Ct.create,vr=Ft.create,br=Pt.create,xr=Tt.create,wr=_t.create,Er=It.create,Ur=Mt.create,Sr=At.create,kr=Rt.create,Cr=Vt.create,Fr=Ot.create,Pr=Ot.strictCreate,Tr=jt.create,_r=Bt.create,Ir=Nt.create,Mr=Ht.create,Ar=Wt.create,Rr=Gt.create,Vr=$t.create,Dr=Kt.create,Or=Jt.create,jr=qt.create,zr=Zt.create,Br=Yt.create,Lr=Qt.create,Nr=er.create,Hr=tr.create,Wr=rr.create,Gr=er.createWithPreprocess,$r=lr.create,Kr={string:e=>Et.create({...e,coerce:!0}),number:e=>St.create({...e,coerce:!0}),boolean:e=>Ct.create({...e,coerce:!0}),bigint:e=>kt.create({...e,coerce:!0}),date:e=>Ft.create({...e,coerce:!0})},Jr=Ge;var qr=Object.freeze({__proto__:null,defaultErrorMap:ze,setErrorMap:function(e){Be=e},getErrorMap:Le,makeIssue:Ne,EMPTY_PATH:[],addIssueToContext:He,ParseStatus:We,INVALID:Ge,DIRTY:$e,OK:Ke,isAborted:Je,isDirty:qe,isValid:Xe,isAsync:Ze,get util(){return Ie},get objectUtil(){return Me},ZodParsedType:Ve,getParsedType:De,ZodType:at,datetimeRegex:wt,ZodString:Et,ZodNumber:St,ZodBigInt:kt,ZodBoolean:Ct,ZodDate:Ft,ZodSymbol:Pt,ZodUndefined:Tt,ZodNull:_t,ZodAny:It,ZodUnknown:Mt,ZodNever:At,ZodVoid:Rt,ZodArray:Vt,ZodObject:Ot,ZodUnion:jt,ZodDiscriminatedUnion:Bt,ZodIntersection:Nt,ZodTuple:Ht,ZodRecord:Wt,ZodMap:Gt,ZodSet:$t,ZodFunction:Kt,ZodLazy:Jt,ZodLiteral:qt,ZodEnum:Zt,ZodNativeEnum:Yt,ZodPromise:Qt,ZodEffects:er,ZodTransformer:er,ZodOptional:tr,ZodNullable:rr,ZodDefault:nr,ZodCatch:ir,ZodNaN:or,BRAND:ar,ZodBranded:sr,ZodPipeline:lr,ZodReadonly:cr,custom:ur,Schema:at,ZodSchema:at,late:fr,get ZodFirstPartyTypeKind(){return dr},coerce:Kr,any:Er,array:Cr,bigint:gr,boolean:yr,date:vr,discriminatedUnion:_r,effect:Nr,enum:zr,function:Dr,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ur((t=>t instanceof e),t),intersection:Ir,lazy:Or,literal:jr,map:Rr,nan:mr,nativeEnum:Br,never:Sr,null:wr,nullable:Wr,number:hr,object:Fr,oboolean:()=>yr().optional(),onumber:()=>hr().optional(),optional:Hr,ostring:()=>pr().optional(),pipeline:$r,preprocess:Gr,promise:Lr,record:Ar,set:Vr,strictObject:Pr,string:pr,symbol:br,transformer:Nr,tuple:Mr,undefined:xr,union:Tr,unknown:Ur,void:kr,NEVER:Jr,ZodIssueCode:Oe,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:je}),Xr=/^#(?:[0-9a-fA-F]{3}){1,2}$/,Zr=(qr.object({type:qr.string(),data:{sourceVideo:qr.object({videoUrl:qr.string().url(),start:qr.number()}).optional(),offset:qr.number(),duration:qr.number()}}),qr.object({input:qr.object({backgroundColor:qr.string().regex(Xr),primaryColor:qr.string().regex(Xr),accentColor:qr.string().regex(Xr),theme:qr.enum(["default"])}),tracks:qr.array(qr.union([qr.object({type:"segments"}),qr.object({type:"segmentx"})])),output:qr.object({orientation:qr.enum(["landscape","portrait","square"]),fps:qr.number().step(30).min(30).max(60),callbackUrl:qr.string().url().optional(),callbackMetadata:qr.any().optional()})}));function Yr(e){return Yr="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},Yr(e)}function Qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(r),!0).forEach((function(t){rn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nn(n.key),n)}}function rn(e,t,r){return(t=nn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nn(e){var t=function(e,t){if("object"!=Yr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yr(t)?t:t+""}var on=function(e){return e.split("_").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")},an=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"==typeof e&&Number.isFinite(e)){var n=r?0:1,i=Math.round(e),o=Math.max(n,i);if(!t)return o;var a=n%2==0?n:n+1;if(o%2==0)return Math.max(a,o);var s=o-1;if(s>=a)return s;var l=o+1;return Math.max(a,l)}};function sn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ln(e,t);var r={}.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)?ln(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var cn="square",un="portrait",fn="landscape",dn=function(){var e=sn((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(":"),2),t=e[0],r=e[1];return t&&r?Number(t)===Number(r)?cn:Number(t)>Number(r)?fn:un:fn};function pn(e){return pn="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},pn(e)}function hn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(r),!0).forEach((function(t){gn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=pn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var yn=function(e){var t,r,n;if(!e)return e;var i=null!==(t=e.face_metadata)&&void 0!==t?t:[],o=i.filter((function(e){var t=e.face_data;return Boolean(t)})),a=i.find((function(e){return"average"===e.aggregation}));return mn(mn({},e),{},{metadata:{videoProperties:e.video_properties,frames:o,averageFaceData:null!==(r=null==a?void 0:a.face_data)&&void 0!==r?r:null,averageSampleCount:null!==(n=null==a?void 0:a.sample_count)&&void 0!==n?n:0}})};function vn(e){return vn="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},vn(e)}function bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xn(e,t);var r={}.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)?xn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function wn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,En(n.key),n)}}function En(e){var t=function(e,t){if("object"!=vn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vn(t)?t:t+""}function Un(e,t,r){return t=kn(t),function(e,t){if(t&&("object"==vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sn()?Reflect.construct(t,r||[],kn(e).constructor):t.apply(e,r))}function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sn=function(){return!!e})()}function kn(e){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kn(e)}function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cn(e,t)}var Fn=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Un(this,t,[e])).getLayoutProps(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cn(e,t)}(t,e),r=t,n=[{key:"getLayoutProps",value:function(e){var t,r,n,i,o,a,s=dn(e.data.sourceVideo.aspectRatio),l=(null===(t=e.data)||void 0===t?void 0:t.trimLeft)||0,c=(null===(r=e.data)||void 0===r?void 0:r.trimRight)||0;this.config={theme:e.theme,frameColor:e.data.frameColor,logoUrl:e.data.logoUrl,videoUrl:e.data.sourceVideo.videoUrl,videoZoom:e.data.sourceVideo.zoom,sourceVideoOrientation:s,startVideoFrom:an(this.fps*((null===(n=e.data.sourceVideo)||void 0===n?void 0:n.start)+l),!0)||0,disableTransitionSounds:null===(i=e.data)||void 0===i?void 0:i.disableTransitionSounds,trimLeft:l,trimRight:c,words:e.data.words,noBackgroundVideoUrl:null===(o=e.data.noBackgroundVideo)||void 0===o?void 0:o.videoUrl,noBackgroundVideoEffects:function(e){return e?Object.entries(e).reduce((function(e,t){var r,n=bn(t,2),i=n[0],o=n[1];return e[i]=!0===(r=o)||"true"===r||1===r||"1"===r,e}),{}):e}(e.data.noBackgroundVideoEffects),faceMetadata:yn(null===(a=e.data.noBackgroundVideo)||void 0===a?void 0:a.faceMetadata)}}}],n&&wn(r.prototype,n),i&&wn(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rn(this,"fps",30),rn(this,"component",void 0),rn(this,"config",{}),rn(this,"props",{}),rn(this,"from",void 0),rn(this,"durationInFrames",void 0),rn(this,"to",void 0);var r=t.data.duration-(t.data.trimLeft||0)-(t.data.trimRight||0);this.from=this.fps*t.data.offset||0,this.durationInFrames=an(this.fps*r),this.to=this.from+this.durationInFrames,this.component=on(t.type)},(t=[{key:"flatten",value:function(){return en(en({fps:this.fps,from:this.from,to:this.to,durationInFrames:this.durationInFrames,component:this.component},this.config),this.props)}}])&&tn(e.prototype,t),r&&tn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()),Pn={},Tn=(e,t)=>((e,t,n)=>{const i=[],o=t?[t]:Object.keys(e.fonts);for(const t of o){if("undefined"==typeof FontFace)continue;if(!e.fonts[t])throw new Error(`The font ${e.fontFamily} does not have a style ${t}`);const o=n?.weights??Object.keys(e.fonts[t]);for(const a of o){if(!e.fonts[t][a])throw new Error(`The font ${e.fontFamily} does not have a weight ${a} in style ${t}`);const o=n?.subsets??Object.keys(e.fonts[t][a]);for(const s of o){let o=e.fonts[t]?.[a]?.[s];if(!o)throw new Error(`weight: ${a} subset: ${s} is not available for '${e.fontFamily}'`);let l=`${e.fontFamily}-${t}-${a}-${s}`;const c=Pn[l];if(c){i.push(c);continue}const u=(0,r.IH)(`Fetching ${e.fontFamily} font ${JSON.stringify({style:t,weight:a,subset:s})}`),f=new FontFace(e.fontFamily,`url(${o}) format('woff2')`,{weight:a,style:t,unicodeRange:e.unicodeRanges[s]}),d=f.load().then((()=>{(n?.document??document).fonts.add(f),(0,r._8)(u)})).catch((e=>{throw Pn[l]=void 0,e}));Pn[l]=d,i.push(d)}}}return{fontFamily:e.fontFamily,fonts:e.fonts,unicodeRanges:e.unicodeRanges,waitUntilDone:()=>Promise.all(i).then((()=>{}))}})({fontFamily:"Poppins",importName:"Poppins",version:"v20",url:"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900",unicodeRanges:{"latin-ext":"U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{italic:{100:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiAyp8kv8JHgFVrJJLmE0tMMPKzSQ.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiAyp8kv8JHgFVrJJLmE0tCMPI.woff2"},200:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLmv1pVGdeOcEg.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLmv1pVF9eO.woff2"},300:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLm21lVGdeOcEg.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLm21lVF9eO.woff2"},400:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiGyp8kv8JHgFVrJJLufntAKPY.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiGyp8kv8JHgFVrJJLucHtA.woff2"},500:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLmg1hVGdeOcEg.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLmg1hVF9eO.woff2"},600:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLmr19VGdeOcEg.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLmr19VF9eO.woff2"},700:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLmy15VGdeOcEg.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLmy15VF9eO.woff2"},800:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLm111VGdeOcEg.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLm111VF9eO.woff2"},900:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLm81xVGdeOcEg.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiDyp8kv8JHgFVrJJLm81xVF9eO.woff2"}},normal:{100:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiGyp8kv8JHgFVrLPTufntAKPY.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiGyp8kv8JHgFVrLPTucHtA.woff2"},200:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLFj_Z1JlFc-K.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLFj_Z1xlFQ.woff2"},300:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2"},400:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecmNE.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecg.woff2"},500:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2"},600:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2"},700:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2"},800:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2"},900:{"latin-ext":"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLBT5Z1JlFc-K.woff2",latin:"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLBT5Z1xlFQ.woff2"}}}},e,t);function _n(e){return function(e){if(Array.isArray(e))return In(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var r={}.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)?In(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Mn=function(e,t,r,n){var i=e?e.replaceAll("-"," - ").split(" "):[];function o(e,t){var r=1.6*t,n=e.length*r;return{width:Math.max.apply(Math,_n(e.map((function(e){return a(e,t)})))),height:n}}function a(e,t){var r=.6*t;return e.length*r}function s(e,t,r){var n=[],i="";return e.forEach((function(e){var o=i.length?i+" "+e:e;if(a(o,t)<=r)i=o;else{if(i.length&&n.push(i),a(e,t)>r)for(var s=e;a(s,t)>r&&t>1;)t-=1;i=e}})),i.length&&n.push(i),n}for(var l=n,c=s(i,l,t),u=o(c,l);(u.height>r||u.width>t)&&l>1;)u=o(c=s(i,l-=1,t),l);return{lines:c,fontSize:l}},An=function(e){var t,n=(0,r.Bk)().props.output,i=(void 0===n?{orientation:window.screenplayProps.output.orientation}:n).orientation;switch(i){case"portrait":t=e.portrait;break;case"square":t=e.square;break;case"landscape":t=e.landscape}return t.orientation=i,t};function Rn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Vn(e,t);var r={}.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)?Vn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Dn={extrapolateRight:"clamp",extrapolateLeft:"clamp"},On=function(e,t){var r,n=[],i=0+t,o=Rn(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push(i),i+=a}}catch(e){o.e(e)}finally{o.f()}return n.push(i),n},jn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,1],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=(0,r.UC)(),o=(0,r.Bk)().fps,a=e.map((function(e){return e*o}));return(0,r.GW)(i,a,t,n)},zn=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,1]).map((function(e){return e*n}));return(0,r.GW)(i,o,e,t)},Bn=Tn().fontFamily,Ln=function(t){var r=t.children,n=t.index,i=.5*(void 0===n?0:n),o=jn([.5+i,1+i],[0,1],{extrapolateRight:"clamp",extrapolateLeft:"clamp"}),a=jn([i,.5+i],[-100,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp"});return e.createElement("div",{style:{position:"relative",marginBottom:15,width:"fit-content",overflow:"hidden",isolation:"isolate",padding:"10px 20px",marginLeft:"auto"}},e.createElement("div",{style:{position:"absolute",inset:0,backgroundColor:"white",borderRadius:10,transform:"translateY(".concat(-1*a,"%)")}}),e.createElement("div",{style:{position:"relative",opacity:o,zIndex:1}},r))},Nn=Tn().fontFamily,Hn={},Wn=(e,t)=>((e,t,n)=>{const i=[],o=t?[t]:Object.keys(e.fonts);for(const t of o){if("undefined"==typeof FontFace)continue;if(!e.fonts[t])throw new Error(`The font ${e.fontFamily} does not have a style ${t}`);const o=n?.weights??Object.keys(e.fonts[t]);for(const a of o){if(!e.fonts[t][a])throw new Error(`The font ${e.fontFamily} does not have a weight ${a} in style ${t}`);const o=n?.subsets??Object.keys(e.fonts[t][a]);for(const s of o){let o=e.fonts[t]?.[a]?.[s];if(!o)throw new Error(`weight: ${a} subset: ${s} is not available for '${e.fontFamily}'`);let l=`${e.fontFamily}-${t}-${a}-${s}`;const c=Hn[l];if(c){i.push(c);continue}const u=(0,r.IH)(`Fetching ${e.fontFamily} font ${JSON.stringify({style:t,weight:a,subset:s})}`),f=new FontFace(e.fontFamily,`url(${o}) format('woff2')`,{weight:a,style:t,unicodeRange:e.unicodeRanges[s]}),d=f.load().then((()=>{(n?.document??document).fonts.add(f),(0,r._8)(u)})).catch((e=>{throw Hn[l]=void 0,e}));Hn[l]=d,i.push(d)}}}return{fontFamily:e.fontFamily,fonts:e.fonts,unicodeRanges:e.unicodeRanges,waitUntilDone:()=>Promise.all(i).then((()=>{}))}})({fontFamily:"Kanit",importName:"Kanit",version:"v15",url:"https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900",unicodeRanges:{thai:"U+0E01-0E5B, U+200C-200D, U+25CC",vietnamese:"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB","latin-ext":"U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{italic:{100:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKV-Go6G5tXcraQI2GwZoREDFs.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKV-Go6G5tXcraQI2GwfYREDFs.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKV-Go6G5tXcraQI2GwfIREDFs.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKV-Go6G5tXcraQI2GwcoRE.woff2"},200:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI82hZbdhMWJy.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI82hZaxhMWJy.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI82hZa1hMWJy.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI82hZaNhMQ.woff2"},300:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI6miZbdhMWJy.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI6miZaxhMWJy.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI6miZa1hMWJy.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI6miZaNhMQ.woff2"},400:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKX-Go6G5tXcraQKxaAcJxA.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKX-Go6G5tXcraQKw2AcJxA.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKX-Go6G5tXcraQKwyAcJxA.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKX-Go6G5tXcraQKwKAcA.woff2"},500:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI_GjZbdhMWJy.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI_GjZaxhMWJy.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI_GjZa1hMWJy.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI_GjZaNhMQ.woff2"},600:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI92kZbdhMWJy.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI92kZaxhMWJy.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI92kZa1hMWJy.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI92kZaNhMQ.woff2"},700:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI7mlZbdhMWJy.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI7mlZaxhMWJy.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI7mlZa1hMWJy.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI7mlZaNhMQ.woff2"},800:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI6WmZbdhMWJy.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI6WmZaxhMWJy.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI6WmZa1hMWJy.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI6WmZaNhMQ.woff2"},900:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI4GnZbdhMWJy.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI4GnZaxhMWJy.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI4GnZa1hMWJy.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKS-Go6G5tXcraQI4GnZaNhMQ.woff2"}},normal:{100:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKX-Go6G5tXcr72KxaAcJxA.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKX-Go6G5tXcr72Kw2AcJxA.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKX-Go6G5tXcr72KwyAcJxA.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKX-Go6G5tXcr72KwKAcA.woff2"},200:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5aOhWzVaF5NQ.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5aOhWoVaF5NQ.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5aOhWpVaF5NQ.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5aOhWnVaE.woff2"},300:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4-ORWzVaF5NQ.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4-ORWoVaF5NQ.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4-ORWpVaF5NQ.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4-ORWnVaE.woff2"},400:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKZ-Go6G5tXcraBGwCYdA.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKZ-Go6G5tXcraaGwCYdA.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKZ-Go6G5tXcrabGwCYdA.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKZ-Go6G5tXcraVGwA.woff2"},500:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5mOBWzVaF5NQ.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5mOBWoVaF5NQ.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5mOBWpVaF5NQ.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5mOBWnVaE.woff2"},600:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5KPxWzVaF5NQ.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5KPxWoVaF5NQ.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5KPxWpVaF5NQ.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr5KPxWnVaE.woff2"},700:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4uPhWzVaF5NQ.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4uPhWoVaF5NQ.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4uPhWpVaF5NQ.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4uPhWnVaE.woff2"},800:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4yPRWzVaF5NQ.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4yPRWoVaF5NQ.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4yPRWpVaF5NQ.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4yPRWnVaE.woff2"},900:{thai:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4WPBWzVaF5NQ.woff2",vietnamese:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4WPBWoVaF5NQ.woff2","latin-ext":"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4WPBWpVaF5NQ.woff2",latin:"https://fonts.gstatic.com/s/kanit/v15/nKKU-Go6G5tXcr4WPBWnVaE.woff2"}}}},e,t),Gn=30,$n={none:{durationInFrames:15,presentation:"glitchOnePresentation"}},Kn={background:"rgba(255, 255, 255, 0.2)",boxShadow:"0 4px 30px rgba(0, 0, 0, 0.4)",backdropFilter:"blur(10.6px)",WebkitBackdropFilter:"blur(10.6px)",border:"2px solid rgba(255, 255, 255, 0.13)",transform:"translateZ(0)",backfaceVisibility:"hidden"},Jn=.25,qn=function(t){var n=t.children,i=t.index,o=(0,r.UC)(),a=(0,r.Bk)().fps,s=(0,r.GW)(o,[i*a*Jn,1/(1/a)+i*a*Jn],[3e3,0],{easing:r.GS.out(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"}),l=(0,r.GW)(o,[28+i*a*Jn,33+i*a*Jn],[0,1],{easing:r.GS.out(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"});return e.createElement("div",{style:{transform:"translateX(".concat(s,"vh)"),opacity:l}},n)};function Xn(e){return Xn="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},Xn(e)}function Zn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(r),!0).forEach((function(t){Qn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Xn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ei=Wn().fontFamily,ti={};function ri(e){return ri="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},ri(e)}function ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(r),!0).forEach((function(t){oi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ri(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ri(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ai=function(){var e,t,n,i,o=(0,r.Bk)().props,a=ii(ii({},window.screenplayProps),o);return{primaryColor:null==a||null===(e=a.input)||void 0===e?void 0:e.primaryColor,primaryContrast:null==a||null===(t=a.input)||void 0===t?void 0:t.primaryContrast,accentColor:null==a||null===(n=a.input)||void 0===n?void 0:n.accentColor,accentContrast:null==a||null===(i=a.input)||void 0===i?void 0:i.accentContrast}};function si(e){return si="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},si(e)}function li(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=si(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=si(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==si(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ci(e){return ci="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},ci(e)}var ui=["src"];function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fi.apply(null,arguments)}function di(){di=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new _(n||[]);return i(a,"_invoke",{value:C(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function y(){}function v(){}function b(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(I([])));E&&E!==r&&n.call(E,a)&&(x=E);var U=b.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(i,o,a,s){var l=f(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ci(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var i=d;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=F(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var c=f(t,r,n);if("normal"===c.type){if(i=n.done?m:p,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=m,n.method="throw",n.arg=c.arg)}}}function F(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,F(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=f(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(ci(t)+" is not iterable")}return v.prototype=b,i(U,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(U),e},t.awrap=function(e){return{__await:e}},S(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new k(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(U),c(U,l,"Generator"),c(U,a,(function(){return this})),c(U,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function pi(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function hi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mi(e,t);var r={}.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)?mi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var gi=e.memo((function(t){var n=t.src,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,ui),o=hi((0,e.useState)(!1),2),a=o[0],s=o[1],l=hi((0,e.useState)(null),2),c=l[0],u=l[1];return(0,e.useEffect)((function(){if(n){var e=(0,r.IH)();u(e);var t=function(){var t,i=(t=di().mark((function t(){var i,o;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(n,{method:"HEAD"});case 3:t.sent.ok?((i=new Image).onload=function(){s(!0),(0,r._8)(e)},i.onerror=function(){s(!1),(0,r._8)(e)},i.src=n):(s(!1),(0,r._8)(e)),t.next=13;break;case 7:t.prev=7,t.t0=t.catch(0),(o=new Image).onload=function(){s(!0),(0,r._8)(e)},o.onerror=function(){s(!1),(0,r._8)(e)},o.src=n;case 13:case"end":return t.stop()}}),t,null,[[0,7]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(e){pi(o,n,i,a,s,"next",e)}function s(e){pi(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(){return i.apply(this,arguments)}}();return t(),function(){if(null!==c&&c!==e)try{(0,r._8)(c)}catch(e){}}}s(!1)}),[n]),a?e.createElement(r.E9,fi({src:n},i)):null}));const yi=gi;var vi,bi,xi=((e,t,n)=>{const i=[],o=t?[t]:Object.keys(e.fonts);for(const t of o){if("undefined"==typeof FontFace)continue;if(!e.fonts[t])throw new Error(`The font ${e.fontFamily} does not have a style ${t}`);const o=n?.weights??Object.keys(e.fonts[t]);for(const a of o){if(!e.fonts[t][a])throw new Error(`The font ${e.fontFamily} does not have a weight ${a} in style ${t}`);const o=n?.subsets??Object.keys(e.fonts[t][a]);for(const s of o){let o=e.fonts[t]?.[a]?.[s];if(!o)throw new Error(`weight: ${a} subset: ${s} is not available for '${e.fontFamily}'`);let l=`${e.fontFamily}-${t}-${a}-${s}`;const c=ti[l];if(c){i.push(c);continue}const u=(0,r.IH)(`Fetching ${e.fontFamily} font ${JSON.stringify({style:t,weight:a,subset:s})}`),f=new FontFace(e.fontFamily,`url(${o}) format('woff2')`,{weight:a,style:t,unicodeRange:e.unicodeRanges[s]}),d=f.load().then((()=>{(n?.document??document).fonts.add(f),(0,r._8)(u)})).catch((e=>{throw ti[l]=void 0,e}));ti[l]=d,i.push(d)}}}return{fontFamily:e.fontFamily,fonts:e.fonts,unicodeRanges:e.unicodeRanges,waitUntilDone:()=>Promise.all(i).then((()=>{}))}})({fontFamily:"Roboto",importName:"Roboto",version:"v30",url:"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900",unicodeRanges:{"cyrillic-ext":"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F",cyrillic:"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116","greek-ext":"U+1F00-1FFF",greek:"U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF",vietnamese:"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB","latin-ext":"U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{italic:{100:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOiCnqEu92Fr1Mu51QrEz0dL_nz.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOiCnqEu92Fr1Mu51QrEzQdL_nz.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOiCnqEu92Fr1Mu51QrEzwdL_nz.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOiCnqEu92Fr1Mu51QrEzMdL_nz.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOiCnqEu92Fr1Mu51QrEz8dL_nz.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOiCnqEu92Fr1Mu51QrEz4dL_nz.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOiCnqEu92Fr1Mu51QrEzAdLw.woff2"},300:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc3CsTKlA.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc-CsTKlA.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc2CsTKlA.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc5CsTKlA.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc1CsTKlA.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc0CsTKlA.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjASc6CsQ.woff2"},400:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xFIzIFKw.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xMIzIFKw.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xEIzIFKw.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xLIzIFKw.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xGIzIFKw.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu51xIIzI.woff2"},500:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ACc3CsTKlA.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ACc-CsTKlA.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ACc2CsTKlA.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ACc5CsTKlA.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ACc1CsTKlA.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ACc0CsTKlA.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ACc6CsQ.woff2"},700:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic3CsTKlA.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic-CsTKlA.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic2CsTKlA.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic5CsTKlA.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic1CsTKlA.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic0CsTKlA.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2"},900:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TLBCc3CsTKlA.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TLBCc-CsTKlA.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TLBCc2CsTKlA.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TLBCc5CsTKlA.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TLBCc1CsTKlA.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TLBCc0CsTKlA.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TLBCc6CsQ.woff2"}},normal:{100:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgVxFIzIFKw.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgVxMIzIFKw.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgVxEIzIFKw.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgVxLIzIFKw.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgVxHIzIFKw.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgVxGIzIFKw.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgVxIIzI.woff2"},300:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5fBBc4.woff2"},400:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2"},500:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fCRc4EsA.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fABc4EsA.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fCBc4EsA.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fBxc4EsA.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9fBBc4.woff2"},700:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2"},900:{"cyrillic-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfCRc4EsA.woff2",cyrillic:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfABc4EsA.woff2","greek-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfCBc4EsA.woff2",greek:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfBxc4EsA.woff2",vietnamese:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfCxc4EsA.woff2","latin-ext":"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfChc4EsA.woff2",latin:"https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfBBc4.woff2"}}}},vi,bi),wi=xi.fontFamily;function Ei(e){return Ei="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},Ei(e)}function Ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Si(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(r),!0).forEach((function(t){ki(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ui(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ki(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ei(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ei(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ei(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ci=[{top:0,height:10},{top:10,height:45},{top:45,height:60},{top:60,height:70},{top:70,height:90},{top:90,height:100}],Fi=function(t){var r=t.children,n=t.style,i=void 0===n?{}:n,o=t.parts,a=(void 0===o?Ci:o).map((function(t,n,o){return e.createElement("div",{style:Si({position:0===n?"relative":"absolute",top:0,left:0,width:"100%",clipPath:"inset(".concat(t.top,"% -10% ").concat(100-t.height,"% -10%)"),transform:"translateX(".concat(t.offsetX,"px) translateZ(0) ")},i),key:n},r)}));return e.createElement("div",{style:{position:"relative"}},a)},Pi=function(t){var n=t.children,i=t.style,o=void 0===i?{}:i,a=t.parts,s=(void 0===a?Ci:a).map((function(t,r,i){var a=0===r;return e.createElement("div",{style:Si({position:a?"relative":"absolute",top:0,left:0,width:"100%",height:"100%",clipPath:"inset(".concat(t.top,"% -10% ").concat(100-t.height,"% -10%)"),transform:"translateX(".concat(t.offsetX,"px) translateZ(0) ")},o),key:r},n)}));return e.createElement(r.H1,{style:{position:"relative",zIndex:99999}},s)};function Ti(e){return Ti="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},Ti(e)}function _i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(r),!0).forEach((function(t){Mi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ti(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ti(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ai={default:function(e){return{transform:"translateX(".concat(e,"px)")}},warpFromRight:function(e,t){return{transform:"translateX(".concat(e/2,"px) scaleX(").concat(t,")"),transformOrigin:"right"}}},Ri=function(t){var r=t.text,n=t.offset,i=t.style,o=void 0===i?{margin:0,textAlign:"left",transform:"translateZ(0px)"}:i,a=t.sentenceParts,s=t.variant,l=void 0===s?"default":s;return e.createElement(Fi,{parts:a},e.createElement("div",{style:Ii(Ii({},o),{},{textAlign:"center",width:"100%",isolation:"isolate",letterSpacing:10})},e.createElement("p",{style:o},r),e.createElement("p",{style:Ii(Ii({},o),{},{top:0,position:"absolute",color:"rgb(255,0,0)",width:"100%",opacity:n?1:0,zIndex:-2},Ai[l](-n,1+n/4/100+.01))},r),e.createElement("p",{style:Ii(Ii({},o),{},{top:0,position:"absolute",color:"rgb(0,255,255)",width:"100%",opacity:n?1:0,zIndex:-1},Ai[l](n,1+n/4/100))},r)))},Vi=function(){var e=new Array(arguments.length>0&&void 0!==arguments[0]?arguments[0]:300).fill(0).map((function(e,t){return t+1})),t=[],r=1;return e.forEach((function(e,n){r<60?(t.push(r),r++):60===r&&(t.push(r),r=1)})),[e,t]},Di=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=i,a=20+i;return(0,r.GW)(e,[o,a],[t,0],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:r.GS.bezier(Math.random()/4,Math.random()/4,Math.random()/4,n?1+Math.random()/2:1.05)})};function Oi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ji(e,t);var r={}.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)?ji(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var zi=Wn().fontFamily;function Bi(e){return Bi="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},Bi(e)}function Li(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ni(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(r),!0).forEach((function(t){Hi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Li(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Hi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Bi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Wi=function(e){var t=e.children,r=jn([0,1.25,2.5,3.75,5,6.25,7.5,8.75,10,11.25,12.5,13.75,15],[-5,0,10,0,-5,0,10,0,-5,0,10,0,-5],{extrapolateRight:"wrap",extrapolateLeft:"wrap"});return React.Children.map(t,(function(e,t){return 0===t?React.cloneElement(e,{style:Ni(Ni({},e.props.style),{},{transform:"translateY(".concat(r,"px)")})}):e}))},Gi=function(e){var t=e.children;return React.createElement(Wi,null,t)};function $i(e){return $i="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},$i(e)}function Ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ji(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(r),!0).forEach((function(t){qi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=$i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xi=Tn().fontFamily,Zi=function(t){var n=t.children,i=t.index,o=void 0===i?0:i,a=(0,r.Bk)().height,s=jn([.5*o,1+.5*o],[-a/2,0],{easing:r.GS.out(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"});return e.createElement("div",{style:{transform:"translateY(".concat(s,"px)")}},n)};function Yi(e){return Yi="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},Yi(e)}function Qi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function eo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(r),!0).forEach((function(t){to(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function to(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Yi(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ro=Tn().fontFamily,no=function(e){var t=e.children,n=e.index,i=(0,r.UC)(),o=(0,r.Bk)().fps,a=(0,r.GW)(i,[n*o*.25,60/(60/o)+n*o*.25],[200,0],{easing:r.GS.out(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"});return React.createElement("div",{style:{transform:"translateY(".concat(a,"vh)")}},t)},io=Tn().fontFamily,oo=__webpack_require__(891),ao=({currentFrame:e,direction:t,loop:r,totalFrames:n})=>{const i=r?e%n:Math.min(e,n);return"backward"===t?n-i:i},so=({animationData:n,className:i,direction:o,loop:a,playbackRate:s,style:l,onAnimationLoaded:c,renderer:u,preserveAspectRatio:f,assetsPath:d})=>{if("object"!=typeof n)throw new Error("animationData should be provided as an object. If you only have the path to the JSON file, load it and pass it as animationData. See https://remotion.dev/docs/lottie/lottie#example for more information.");(e=>{if(void 0!==e){if("number"!=typeof e)throw new TypeError(`The "playbackRate" prop must be a number or undefined, but is ${JSON.stringify(e)}`);if(Number.isNaN(e)||!Number.isFinite(e))throw new TypeError(`The "playbackRate" props must be a real number, but is ${e}`);if(e<=0)throw new TypeError(`The "playbackRate" props must be positive, but is ${e}`)}})(s),(e=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The "loop" prop must be a boolean or undefined, but is "${JSON.stringify(e)}"`)})(a);const p=(0,e.useRef)(),h=(0,e.useRef)(null),m=(0,e.useRef)(null),g=(0,e.useRef)();g.current=c;const[y]=(0,e.useState)((()=>(0,r.IH)("Waiting for Lottie animation to load"))),v=(0,r.UC)();return h.current=v,(0,e.useEffect)((()=>{if(!m.current)return;p.current=oo.loadAnimation({container:m.current,autoplay:!1,animationData:n,assetsPath:d??void 0,renderer:u??"svg",rendererSettings:{preserveAspectRatio:f??void 0}});const{current:e}=p,t=()=>{if(h.current){const t=ao({currentFrame:h.current*(s??1),direction:o,loop:a,totalFrames:e.totalFrames});p.current?.goToAndStop(Math.max(0,t-1),!0),p.current?.goToAndStop(t,!0)}(0,r._8)(y)};return e.addEventListener("DOMLoaded",t),g.current?.(e),()=>{e.removeEventListener("DOMLoaded",t),e.destroy()}}),[n,d,o,y,a,s,f,u]),(0,e.useEffect)((()=>{p.current&&o&&p.current.setDirection("backward"===o?-1:1)}),[o]),(0,e.useEffect)((()=>{p.current&&s&&p.current.setSpeed(s)}),[s]),(0,e.useEffect)((()=>{if(!p.current)return;const{totalFrames:e}=p.current,t=ao({currentFrame:v*(s??1),direction:o,loop:a,totalFrames:e});p.current.goToAndStop(t,!0);const n=m.current?.querySelectorAll("image");n.forEach((e=>{const t=e.getAttributeNS("http://www.w3.org/1999/xlink","href");if(t&&t===e.href.baseVal)return;const n=(0,r.IH)(`Waiting for lottie image with src="${e.href.baseVal}" to load`);e.addEventListener("load",(()=>{(0,r._8)(n)}),{once:!0}),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href.baseVal)}))}),[o,v,a,s]),(0,t.jsx)("div",{ref:m,className:i,style:l})},lo=function(e,t){var r=e.replace("#",""),n=parseInt(r,16),i=(n>>16&255)/255,o=(n>>8&255)/255,a=(255&n)/255;return t?[i,o,a,t]:[i,o,a]},co=function(e,t){return"rgba(".concat(lo(e,t).map((function(e,t){return 3===t?e:255*e})).join(","),")")};function uo(e){return.299*e.r+.587*e.g+.114*e.b}var fo=function(e,t){var r=function(e,t){var r=lo(e),n=lo(t),i=uo(r),o=uo(n);return Math.abs(i-o)<1e-4?0:i>o?1:-1}(e,t);switch(r){case-1:return t;case 0:case 1:return e}},po=function(e,t,r){var n,i;e&&e.layers&&(null===(n=e.assets[0])||void 0===n||null===(i=n.layers)||void 0===i||i.forEach((function(e){var n;null!==(n=e.nm)&&void 0!==n&&n.includes(t)&&e.shapes&&e.shapes.forEach((function(e){"fl"===e.ty&&(e.c.k=lo(r)),"st"===e.ty&&(e.c.k=lo(r)),e.it&&e.it.forEach((function(e){"fl"===e.ty&&(e.c.k=lo(r)),"st"===e.ty&&(e.c.k=lo(r))}))}))})))};function ho(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mo(e,t);var r={}.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)?mo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var go=function(t){var n=t.animationPath,i=t.primaryColor,o=t.accentColor,a=t.autoplay,s=void 0!==a&&a,l=t.loop,c=void 0!==l&&l,u=ho((0,e.useState)((function(){return(0,r.IH)("Loading Lottie animation")})),1)[0],f=ho((0,e.useState)(null),2),d=f[0],p=f[1];return(0,e.useEffect)((function(){fetch(n).then((function(e){return e.json()})).then((function(e){p(e),(0,r._8)(u)})).catch((function(e){(0,r.zo)(e),console.log("Animation failed to load",e)}))}),[u]),function(e){var t=e.animationData,r=e.dynamicColors,n="PrimaryColor",i="AccentColor";t&&r[n]&&r[i]&&(po(t,n,r[n]),po(t,i,r[i]))}({animationData:d,dynamicColors:{PrimaryColor:i,AccentColor:o}}),d?e.createElement("div",{className:"lottie-animation-wrapper",style:{width:"100%",height:"100%"}},e.createElement(so,{animationData:d,loop:c,autoplay:s}),e.createElement("style",null,"\n .lottie-animation-wrapper *:not(style) {\n display: block !important;\n visibility: visible !important;\n }\n ")):null},yo=function(e,t){return e+t/(arguments.length>3&&void 0!==arguments[3]?arguments[3]:24)+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)},vo=function(e){return e?(.2126*parseInt(e.substring(1,3),16)+.7152*parseInt(e.substring(3,5),16)+.0722*parseInt(e.substring(5,7),16))/255>.5?"#000000":"#FFFFFF":e},bo=Wn().fontFamily,xo={extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.bezier(.42,.27,.14,1.41)},wo=function(t){var r=t.children,n=t.text,i=t.fontSize,o=t.delayInSeconds,a=ai(),s=a.primaryColor,l=a.primaryContrast,c=yo(0,18,o),u=yo(1,10,o),f=jn([c,u],[0,1]),d=jn([c,u],[-150,0],xo),p=yo(0,15,o),h=yo(1,10,o),m=jn([p,h],[0,1]),g=jn([p,h],[150,0],xo);return e.createElement("div",{style:{position:"relative",height:"fit-content",width:"fit-content",padding:0,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{style:{position:"absolute",width:"calc(100% + ".concat(60,"px)"),left:-30,height:"100%",backgroundColor:s,textAlign:"center",transform:"translateX(".concat(d,"%)"),opacity:f}}),e.createElement("div",{style:{position:"relative",textAlign:"center",lineHeight:1.1,textTransform:"uppercase",transform:"translateX(".concat(g,"%)"),opacity:m,color:l,fontSize:i}},r||n))},Eo=Wn().fontFamily,Uo=420,So=Tn().fontFamily,ko=Wn().fontFamily,Co={},Fo=(e,t)=>((e,t,n)=>{const i=[],o=t?[t]:Object.keys(e.fonts);for(const t of o){if("undefined"==typeof FontFace)continue;if(!e.fonts[t])throw new Error(`The font ${e.fontFamily} does not have a style ${t}`);const o=n?.weights??Object.keys(e.fonts[t]);for(const a of o){if(!e.fonts[t][a])throw new Error(`The font ${e.fontFamily} does not have a weight ${a} in style ${t}`);const o=n?.subsets??Object.keys(e.fonts[t][a]);for(const s of o){let o=e.fonts[t]?.[a]?.[s];if(!o)throw new Error(`weight: ${a} subset: ${s} is not available for '${e.fontFamily}'`);let l=`${e.fontFamily}-${t}-${a}-${s}`;const c=Co[l];if(c){i.push(c);continue}const u=(0,r.IH)(`Fetching ${e.fontFamily} font ${JSON.stringify({style:t,weight:a,subset:s})}`),f=new FontFace(e.fontFamily,`url(${o}) format('woff2')`,{weight:a,style:t,unicodeRange:e.unicodeRanges[s]}),d=f.load().then((()=>{(n?.document??document).fonts.add(f),(0,r._8)(u)})).catch((e=>{throw Co[l]=void 0,e}));Co[l]=d,i.push(d)}}}return{fontFamily:e.fontFamily,fonts:e.fonts,unicodeRanges:e.unicodeRanges,waitUntilDone:()=>Promise.all(i).then((()=>{}))}})({fontFamily:"Montserrat",importName:"Montserrat",version:"v26",url:"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900",unicodeRanges:{"cyrillic-ext":"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F",cyrillic:"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116",vietnamese:"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB","latin-ext":"U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{italic:{100:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"},200:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"},300:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"},400:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"},500:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"},600:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"},700:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"},800:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"},900:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2"}},normal:{100:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"},200:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"},300:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"},400:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"},500:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"},600:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"},700:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"},800:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"},900:{"cyrillic-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2",cyrillic:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2",vietnamese:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2","latin-ext":"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2",latin:"https://fonts.gstatic.com/s/montserrat/v26/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2"}}}},e,t),Po=Fo().fontFamily,To=Fo().fontFamily,_o=Fo().fontFamily,Io=Fo().fontFamily,Mo=function(t){var r=t.text,n=t.translateY,i=t.scaleY,o=t.fontSize,a=t.color,s=t.backgroundColor,l=t.fontW;return e.createElement("div",{style:{position:"relative",padding:"20px",fontSize:o,fontFamily:Io,fontWeight:l,color:a,whiteSpace:"nowrap",transform:"translateY(".concat(n,"px) scaleY(").concat(i,")"),textAlign:"right",display:"inline-block"}},e.createElement("div",{style:{position:"absolute",top:0,right:0,zIndex:-1,width:"100%",height:"100%",backgroundColor:s}}),e.createElement("span",null,r))},Ao=Fo().fontFamily,Ro=function(t){var r=t.text,n=t.translateY,i=t.scaleY,o=t.fontSize,a=t.color;return e.createElement("div",{style:{position:"absolute",width:"fit-content",height:"fit-content",transform:"translateY(".concat(n,"px) scaleY(").concat(i,")"),padding:"20px 50px",backgroundColor:"#013654",textAlign:"center",whiteSpace:"nowrap",lineHeight:1.2}},e.createElement("div",{style:{color:a,fontSize:o,fontFamily:Ao,fontWeight:600}},r))},Vo=function(t){var n=t.sentence,i=(0,r.UC)(),o=(0,r.Bk)(),a=o.fps,s=o.width,l=o.height,c=ai().primaryContrast,u=An({landscape:{alignItems:"end",backdropHeightFactor:.3,maxFontSize:50,right:"5%"},portrait:{alignItems:"end",backdropHeightFactor:.4,maxFontSize:50,right:125},square:{alignItems:"end",backdropHeightFactor:.4,maxFontSize:50,right:"5%"}}),f=u.alignItems,d=u.backdropHeightFactor,p=u.maxFontSize,h=u.right,m=Mn(n,s*d,l*d,p),g=m.lines,y=m.fontSize;return e.createElement(r.H1,null,e.createElement("div",{style:{position:"absolute",top:"6%",right:h,display:"flex",flexDirection:"column",alignItems:f}},g.map((function(t,n){var o=.1*a+.3*n*a,s=1.5*a,l=(0,r.oz)({frame:Math.max(0,i-o),fps:a,from:100*n-100,to:98*n,stiffness:200,durationInFrames:15,damping:15}),u=(0,r.oz)({frame:Math.max(0,i-o),fps:a,from:0,to:1,stiffness:3e3,damping:10,durationInFrames:15}),f=Math.max(0,i-(o+15+s)),d=f<15?40*Math.sin(1*f):0,p=(0,r.oz)({frame:Math.max(0,f-15),fps:a,from:100*n,to:100*n-500,stiffness:500,damping:20,durationInFrames:10}),h=zn([0,5,15],[1,1,0],{extrapolate:"clamp"},a,i),m=f>0?p+d:l,g=f>0?h:u;return e.createElement(Ro,{key:n,text:t,fontSize:y,translateY:m,scaleY:g,color:c})}))))},Do=({children:e,shutterAngle:n=180,samples:i=10})=>{const o=(0,r.UC)();if("number"!=typeof i||Number.isNaN(i)||!Number.isFinite(i))throw new TypeError(`"samples" must be a number, but got ${JSON.stringify(i)}`);if(i%1!=0)throw new TypeError(`"samples" must be an integer, but got ${JSON.stringify(i)}`);if(i<0)throw new TypeError(`"samples" must be non-negative, but got ${JSON.stringify(i)}`);if("number"!=typeof n||Number.isNaN(n)||!Number.isFinite(n))throw new TypeError(`"shutterAngle" must be a number, but got ${JSON.stringify(n)}`);if(n<0||n>360)throw new TypeError(`"shutterAngle" must be between 0 and 360, but got ${JSON.stringify(n)}`);const a=n/360,s=(({shutterFraction:e,samples:t,currentFrame:r})=>{const n=e*t,i=r-n,o=Math.min(1,Math.max(0,i/n+1));return Math.max(1,Math.round(Math.min(o*t,t)))})({currentFrame:o,samples:i,shutterFraction:a});return(0,t.jsx)(r.H1,{style:{isolation:"isolate"},children:new Array(s).fill(!0).map(((n,i)=>{const l=a*((i+1)/s);return(0,t.jsx)(r.H1,{style:{mixBlendMode:"plus-lighter",filter:`opacity(${1/s})`},children:(0,t.jsx)(r.Kl,{frame:o-l+1,children:e})},`frame-${i.toString()}`)}))})},Oo=Wn().fontFamily,jo=function(t){var n=t.text,i=An({landscape:{backdropHeightFactor:.6},portrait:{backdropHeightFactor:.4},square:{backdropHeightFactor:.4}}).backdropHeightFactor,o=An({portrait:{maxFontSize:160},landscape:{maxFontSize:160},square:{maxFontSize:160}}).maxFontSize,a=(0,r.Bk)(),s=a.height,l=a.width,c=Mn(n,.8*l,s*i,o),u=c.lines,f=c.fontSize,d=ai(),p=d.primaryColor,h=d.primaryContrast,m=(0,r.UC)(),g=(0,r.Bk)().fps;return e.createElement(r.H1,{style:{color:"white",fontSize:f,fontFamily:Oo,fontWeight:800}},e.createElement("div",{style:{position:"relative",top:"50%",transform:"translateY(-50%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}},u.map((function(t,n){var i=.2*(u.length-n+1)*g,o=m-50+i,a=(0,r.oz)({frame:o,fps:g,from:30,to:0,stiffness:2e3,damping:3,mass:4,durationInFrames:15}),s=(0,r.oz)({frame:o,fps:g,from:0,to:100,stiffness:2500,damping:8,mass:.8,durationInFrames:15}),l=.9*g,c=o-l-i,d=(0,r.oz)({frame:c,fps:g,from:0,to:30,stiffness:3e3,damping:5,mass:1}),y=(l+50)/g,v=zn([y,y+.2],[0,300],{easing:r.GS.out(r.GS.cubic),extrapolateRight:"clamp",extrapolateLeft:"clamp"},g,m),b=(m+(c-10))/g,x=zn([b,b+.2],[3e3,0],{easing:r.GS.out(r.GS.cubic),extrapolateRight:"clamp",extrapolateLeft:"clamp"},g,m);return e.createElement("div",{key:n,style:{position:"relative",height:"fit-content",width:"fit-content",padding:"0 50px 0 50px",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement("div",{style:{position:"relative",backgroundColor:p,padding:"0 50px 0 50px",textAlign:"center",lineHeight:1.4,textTransform:"uppercase",transform:n%2==0?"rotate(".concat(-a,"deg) scale(").concat(s,"%) skewX(").concat(d,"deg) translateX(").concat(x-v,"px)"):"rotate(".concat(a,"deg) scale(").concat(s,"%) skewX(").concat(-d,"deg) translateX(").concat(-x+v,"px)"),color:h,fontSize:f}},t))}))))},zo=Wn().fontFamily,Bo=function(t){var n=t.name,i=t.title,o=t.themeSettings,a=(0,r.Bk)(),s=a.width,l=a.fps,c=An({portrait:{bottom:440,left:100,top:void 0,maxWidth:s-200,maxNameFontSize:110,titleFontSize:70},landscape:{top:void 0,left:100,bottom:225,maxWidth:s-200,maxNameFontSize:120,titleFontSize:75},square:{bottom:240,left:100,top:void 0,maxWidth:s-200,maxNameFontSize:120,titleFontSize:75}}),u=c.top,f=c.left,d=c.bottom,p=c.maxWidth,h=c.maxNameFontSize,m=c.titleFontSize,g=Mn(n,p-100,300,h).fontSize,y=ai(),v=y.primaryColor,b=(y.primaryContrast,y.accentColor),x=(y.accentContrast,n.split(" ")),w=(0,r.UC)(),E=x.map((function(e,t){return{text:e,linePosition:(0,r.oz)({frame:w,fps:l,from:1e3,to:0,delay:5*t,config:{stiffness:3300,damping:120,mass:2},durationInFrames:l/2})}})),U=(0,r.oz)({frame:w,fps:l,from:-200,to:0,delay:l,config:{stiffness:1250,damping:28,mass:.25},durationInFrames:l/2}),S=(null==o?void 0:o.primaryColor)||v,k=(null==o?void 0:o.secondaryColor)||b;return e.createElement("div",{style:{position:"absolute",display:"flex",flexDirection:"column",gap:10,left:f,bottom:d,top:u,fontFamily:zo}},e.createElement("div",{style:{width:"fit-content",textTransform:"uppercase",position:"relative",isolation:"isolate"}},E.map((function(t,r){var n=t.text,i=t.linePosition;return e.createElement("div",{key:r,style:{color:S,textShadow:"4px 4px 0px ".concat(co(vo(S),.5)),fontWeight:900,fontSize:g,lineHeight:"".concat(4*g/5,"px"),transform:"translateY(".concat(i,"%)")}},n)}))),e.createElement("div",{style:{position:"relative",width:"fit-content",maxWidth:p,isolation:"isolate",opacity:i?1:0,transform:"translateX(".concat(U,"%)")}},e.createElement("div",{style:{position:"absolute",backgroundColor:"white",borderRadius:10,width:"100%",bottom:0,zIndex:-1}}),e.createElement("div",{style:{fontSize:m,color:k,fontWeight:900,textShadow:"4px 4px 0px ".concat(co(vo(k),.5)),lineHeight:"".concat(3*m/4,"px")}},i)))};function Lo(e){return Lo="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},Lo(e)}function No(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ho(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?No(Object(r),!0).forEach((function(t){Wo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):No(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Lo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Lo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Go=function(t){var n=t.children,i=t.from,o=t.to,a=(0,r.Bk)().height,s=jn([i,o],[2*-a,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.cloneElement(n,{style:Ho(Ho({},n.props.style),{},{transform:"translateY(".concat(s,"px)")})})},$o=function(t){var n=t.children,i=t.from,o=t.to,a=(0,r.Bk)().width,s=jn([i,o],[2*a,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.cloneElement(n,{style:Ho(Ho({},n.props.style),{},{transform:"translateX(".concat(s,"px)")})})},Ko=function(t){var n=t.children,i=t.from,o=t.to,a=(0,r.Bk)().width,s=jn([i,o],[2*-a,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.cloneElement(n,{style:Ho(Ho({},n.props.style),{},{transform:"translateX(".concat(s,"px)")})})},Jo=function(t){var n=t.children,i=t.from,o=t.to,a=(0,r.Bk)().height,s=jn([i,o],[2*a,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.cloneElement(n,{style:Ho(Ho({},n.props.style),{},{transform:"translateY(".concat(s,"px)")})})},qo=function(t){var n=t.children,i=t.from,o=t.to,a=jn([i,o],[200,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.cloneElement(n,{style:Ho(Ho({},n.props.style),{},{transform:"translateY(".concat(a,"px)")})})};function Xo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zo(e,t);var r={}.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)?Zo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Yo=Wn().fontFamily,Qo=[Go,$o,Jo,Ko,Go,$o,Jo,Ko,Go,$o],ea=[[0,.25],[.25,.5],[.5,.75],[.75,1],[1,1.25],[1.25,1.5],[1.5,1.75],[1.75,2],[2,2.25],[2.25,2.5]],ta=function(t){var n=t.lines,i=(t.maxWidth,t.maxHeight,An({landscape:{alignItems:"end",justifyContent:"start ",padding:60},portrait:{alignItems:"end",justifyContent:"start",padding:120},square:{alignItems:"end",justifyContent:"start",padding:60}})),o=(i.alignItems,i.justifyContent,i.padding,i.marginRight,ai()),a=o.accentContrast,s=o.primaryContrast;return e.createElement(qo,{from:.5,to:.75},e.createElement(r.H1,{style:{display:"flex",alignItems:"end",justifyContent:"center",textAlign:"right",paddingRight:120}},n.map((function(t,r){var n=Qo[r],i=Xo(ea[r],2),o=i[0],l=i[1];return e.createElement(n,{key:r,from:o,to:l},e.createElement("p",{style:{animationDelay:"".concat(1e3*r,"ms"),color:s,textShadow:"4px 4px 0px ".concat(co(a,.5)),fontWeight:700,fontSize:115,textTransform:"uppercase",lineHeight:"100px",margin:0,fontFamily:Yo,textWrap:"nowrap"}},t))}))))};function ra(e){return ra="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},ra(e)}function na(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ia(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?na(Object(r),!0).forEach((function(t){oa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):na(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ra(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ra(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ra(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var aa=57.5,sa=function(t){var n=t.children,i=t.from1,o=t.to1,a=t.from2,s=t.to2,l=(0,r.Bk)(),c=l.width,u=l.fps,f=(0,r.UC)(),d=(0,r.oz)({frame:f,fps:u,from:2*c,to:0,delay:i*u,duration:(o-i)*u,config:{stiffness:200,damping:20,mass:.75}}),p=jn([a,s],[115,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.cloneElement(n,{style:ia(ia({},n.props.style),{},{transform:"translate(".concat(d,"px, ").concat(p,"px)")})})},la=function(t){var n=t.children,i=t.from1,o=t.to1,a=t.from2,s=t.to2,l=(0,r.Bk)(),c=(l.width,l.height),u=(l.fps,(0,r.UC)(),jn([i,o],[2*c,aa],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)})),f=jn([a,s],[aa,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.cloneElement(n,{style:ia(ia({},n.props.style),{},{transform:"translateY( ".concat(u!==aa?u:f,"px)")})})},ca=function(t){var n=t.children,i=t.from1,o=t.to1,a=jn([i,o],[90,0],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.cloneElement(n,{style:ia(ia({},n.props.style),{},{transform:"rotateX(".concat(a,"deg)")})})},ua=function(t){var n=t.children,i=t.from1,o=t.to1,a=(0,r.UC)(),s=(0,r.Bk)().fps,l=jn([i,i+1/24],[0,1],{extrapolateRight:"clamp",extrapolateLeft:"clamp"}),c=(0,r.oz)({frame:a,fps:s,from:135,to:0,delay:i*s,durationInFrames:o*s-i*s,config:{stiffness:250,damping:30,mass:15}});return e.cloneElement(n,{style:ia(ia({},n.props.style),{},{opacity:l,transformOrigin:"top center",transform:"rotateX(".concat(c,"deg)")})})};function fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return da(e,t);var r={}.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)?da(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function da(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var pa=Wn().fontFamily,ha=[sa,la,ca,ua,sa,la,ca,ua,sa,la,ca,ua],ma=[[0,.25,.75,.9],[.7,.9,1.25,1.5],[1.25,1.5],[2,4.5],[2.5,2.75,3.25,3.4],[3.2,3.4,3.75,4],[3.75,4],[4,7],[5,5.25,5.75,5.9],[5.7,5.9,6.35,6.6],[6.25,6.5],[6,8.5]],ga=function(t){var n=t.text,i=An({portrait:{top:125,right:140,width:900,maxFontSize:200},landscape:{top:75,right:75,width:1550,maxFontSize:200},square:{top:75,right:75,width:700,maxFontSize:200}}),o=(i.top,i.right,i.width),a=i.maxFontSize,s=(0,r.Bk)().height,l=Mn(n,o,s,a),c=l.lines,u=l.fontSize,f=ai(),d=f.primaryContrast,p=f.accentContrast;return e.createElement(r.H1,{style:{display:"grid",placeContent:"center"}},e.createElement("div",null,c.map((function(t,r){var n=ha[r],i=fa(ma[r],4),o=i[0],a=i[1],s=i[2],l=i[3];return e.createElement(n,{key:r,from1:o,to1:a,from2:s,to2:l},e.createElement("h1",{key:r,style:{fontSize:u,fontWeight:900,color:d,textShadow:"4px 4px 0px ".concat(co(p,.5)),fontFamily:pa,padding:0,margin:0,lineHeight:"".concat(2.75*u/4,"px"),textWrap:"nowrap",textTransform:"uppercase",textAlign:"center"}},t))}))))};function ya(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return va(e,t);var r={}.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)?va(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ba=Wn().fontFamily,xa=function(t){var n,i=t.name,o=t.title,a=t.themeSettings,s=(0,r.Bk)(),l=s.width,c=s.fps,u=An({portrait:{bottom:440,left:100,top:void 0,maxWidth:l-200,maxNameFontSize:110,maxTitleFontSize:70},landscape:{top:void 0,left:100,bottom:225,maxWidth:l-200,maxNameFontSize:120,maxTitleFontSize:75},square:{bottom:240,left:100,top:void 0,maxWidth:l-200,maxNameFontSize:120,maxTitleFontSize:75}}),f=u.top,d=u.left,p=u.bottom,h=u.maxWidth,m=u.maxNameFontSize,g=u.maxTitleFontSize,y=Mn(i,h-100,300,m).fontSize,v=ai(),b=v.primaryColor,x=v.accentColor,w=i.split(" "),E=(0,r.UC)(),U=w.map((function(e,t){return{text:e,linePosition:(0,r.oz)({frame:E,fps:c,from:1e3,to:0,delay:5*t,config:{stiffness:3300,damping:120,mass:2},durationInFrames:c/2})}})),S=[{top:0,height:10,offsetX:Di(E,3.5*-l,!0)},{top:10,height:45,offsetX:Di(E,4*-l,!0)},{top:45,height:50,offsetX:Di(E,3.25*l,!0)},{top:50,height:80,offsetX:Di(E,3.75*l,!0)},{top:80,height:100,offsetX:Di(E,5*-l,!0)}],k=!0,C=[{top:0,height:10,offsetX:Di(E,1.5*-l,k,45)},{top:10,height:45,offsetX:Di(E,1.5*-l,k,45)},{top:45,height:50,offsetX:Di(E,1.25*l,k,45)},{top:50,height:80,offsetX:Di(E,1.75*l,k,45)},{top:80,height:100,offsetX:Di(E,2*-l,k,45)}],F=ya((0,e.useMemo)(Vi,[]),2),P=F[0],T=F[1],_=(0,r.GW)(E,P,T,{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),I=(n=_)<1||1===n?0:2===n?2:3===n?3:4===n?4:5===n?3:6===n?2:7===n?1:0,M=[{top:0,height:15,offsetX:0},{top:15,height:25,offsetX:0},{top:25,height:50,offsetX:0},{top:50,height:75,offsetX:0},{top:75,height:80,offsetX:0},{top:80,height:100,offsetX:0}],A=(null==a?void 0:a.primaryColor)||b,R=(null==a?void 0:a.secondaryColor)||x;return e.createElement("div",{style:{position:"absolute",display:"flex",flexDirection:"column",left:d,bottom:p,top:f,fontFamily:ba,fontStyle:"italic"}},e.createElement("div",{style:{width:"fit-content",textTransform:"uppercase",position:"relative",isolation:"isolate"}},U.map((function(t,r){var n=t.text;t.linePosition;return e.createElement("div",{key:r,style:{color:A,fontWeight:900,fontSize:y,lineHeight:"".concat(4*y/5,"px"),textShadow:"4px 4px 0px ".concat(co(vo(A),.5))}},e.createElement(Fi,{parts:S},e.createElement(Ri,{sentenceParts:M,offset:I,text:n,variant:"warpFromRight"})))}))),e.createElement("div",{style:{position:"relative",width:"fit-content",maxWidth:h,isolation:"isolate",opacity:o?1:0}},e.createElement("div",{style:{fontSize:g,color:R,fontWeight:900,textShadow:"4px 4px 0px ".concat(co(vo(R),.5)),lineHeight:"".concat(4*g/5,"px")}},e.createElement(Fi,{parts:C},e.createElement(Ri,{sentenceParts:M,offset:I,text:o,variant:"warpFromRight"})))))},wa=(r.GS.bezier(.42,.27,.14,1.41),function(t){var r=t.children,n=t.text,i=t.fontSize,o=t.delayInSeconds,a=ai(),s=a.primaryColor,l=a.primaryContrast,c=yo(0,0,o),u=yo(0,20,o),f=jn([c,u],[0,1]);return e.createElement("div",{style:{position:"relative",lineHeight:1.1,textTransform:"uppercase",opacity:f,color:l,fontSize:i,background:s,width:"fit-content",paddingLeft:20,paddingRight:20,whiteSpace:"nowrap"}},r||n)});function Ea(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ua(e,t);var r={}.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)?Ua(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Sa=Wn().fontFamily;function ka(e){return ka="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},ka(e)}var Ca=["text","color","fontFamily","maxFontSize","minFontSize","style","textStrokeColor","textFillColor","textStrokeWidth"];function Fa(){return Fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fa.apply(null,arguments)}function Pa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(r),!0).forEach((function(t){_a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ka(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ka(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ia(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ma(e,t);var r={}.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)?Ma(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Aa=function(t){var n=t.text,i=t.color,o=void 0===i?"#000":i,a=t.fontFamily,s=void 0===a?"Arial":a,l=t.maxFontSize,c=void 0===l?300:l,u=t.minFontSize,f=void 0===u?10:u,d=t.style,p=void 0===d?{}:d,h=t.textStrokeColor,m=t.textFillColor,g=t.textStrokeWidth,y=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Ca),v=(0,e.useRef)(null),b=(0,e.useRef)(null),x=Ia((0,e.useState)({fontSize:f,h:0,w:0}),2),w=x[0],E=x[1],U=function(){if(v.current&&b.current){for(var e=v.current.offsetWidth,t=f,r=c,n=f;t<=r;){var i=t+r>>1;b.current.setAttribute("font-size",i),b.current.getBBox().width<=e?(n=i,t=i+1):r=i-1}b.current.setAttribute("font-size",n);var o=b.current.getBBox(),a=o.width,s=o.height;E({fontSize:n,h:s,w:a})}};(0,e.useLayoutEffect)(U,[n]),(0,e.useLayoutEffect)((function(){var e=new ResizeObserver(U);return e.observe(v.current),function(){return e.disconnect()}}),[]);var S=Ia((0,e.useState)((function(){return(0,r.IH)("stretch")})),1)[0],k=w.h,C=w.w;(0,e.useLayoutEffect)((function(){C>=0&&k>=0&&(0,r._8)(S)}),[C,k,S]);var F=w.fontSize,P=w.h,T=w.w,_=m||o,I=h||"none",M=g?parseInt(g):0;return e.createElement("div",Fa({ref:v,style:Ta({width:"100%",height:P/1.6},p)},y),e.createElement("svg",{width:"100%",height:P,viewBox:"0 0 ".concat(T," ").concat(P),preserveAspectRatio:"none"},e.createElement("text",{ref:b,y:"30%",dominantBaseline:"central",fontFamily:s,fontSize:F,fill:_,stroke:I,strokeWidth:M,paintOrder:"stroke fill"},n)))};function Ra(e){return Ra="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},Ra(e)}var Va=["src","faceMetadata","containerWidth","containerHeight","enableInterpolation","useAveragePosition","centerHorizontally","translateX","translateY","showDebugInfo","style","className","containerStyle","noBackgroundVideoEffects","noBackgroundEffects","transparent"];function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Da.apply(null,arguments)}function Oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ja(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(r),!0).forEach((function(t){za(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function za(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ra(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ra(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ra(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ba=function(e){var t,n,i=e.faceMetadata,o=e.containerWidth,a=e.containerHeight,s=e.currentFrame,l=void 0===s?null:s,c=e.enableInterpolation,u=void 0===c||c,f=e.useAveragePosition,d=void 0!==f&&f,p=e.centerHorizontally,h=void 0!==p&&p,m=e.translateX,g=void 0===m?0:m,y=e.translateY,v=void 0===y?0:y,b=e.orientation,x=void 0===b?"landscape":b,w=l;if(null===w)try{w=(0,r.UC)()}catch(e){w=0}if(null==i||null===(t=i.metadata)||void 0===t||!t.frames||null==i||null===(n=i.metadata)||void 0===n||!n.videoProperties)return{transform:"translate(".concat(g,"px, ").concat(v,"px)"),debugInfo:{error:"Invalid face metadata"}};var E=i.metadata,U=E.frames,S=E.videoProperties,k=E.averageFaceData,C=S.width,F=S.height,P=d?null!=k?k:function(e){if(!e||0===e.length)return null;var t=e.filter((function(e){return e.face_detected&&e.face_data}));if(0===t.length)return null;var r=0,n=0,i=0,o=0,a=0;t.forEach((function(e){var t=e.face_data,s=t.face_center,l=t.face_bbox;r+=s[0],n+=s[1],l&&l.length>=4&&(i+=l[2],o+=l[3],a++)}));var s=r/t.length,l=n/t.length;return{face_center:[s,l],face_bbox:a>0?[0,0,i/a,o/a]:null}}(U):function(e,t,r){var n,i;if(!e||0===e.length)return null;var o=Math.max(0,Math.min(t,e.length-1)),a=e[o];if(a&&a.face_detected&&a.face_data)return a.face_data;if(!r){for(var s=0;s<e.length;s++){var l=e[s];if(l&&l.face_detected&&l.face_data)return l.face_data}return null}for(var c=null,u=null,f=o;f>=0;f--)if(e[f]&&e[f].face_detected&&e[f].face_data){c={index:f,data:e[f].face_data};break}for(var d=o;d<e.length;d++)if(e[d]&&e[d].face_detected&&e[d].face_data){u={index:d,data:e[d].face_data};break}if(c&&u&&c.index!==u.index){var p=(o-c.index)/(u.index-c.index);return{face_center:[c.data.face_center[0]+p*(u.data.face_center[0]-c.data.face_center[0]),c.data.face_center[1]+p*(u.data.face_center[1]-c.data.face_center[1])],face_bbox:c.data.face_bbox||u.data.face_bbox}}return(null===(n=c)||void 0===n?void 0:n.data)||(null===(i=u)||void 0===i?void 0:i.data)||null}(U,w,u);if(!P)return{transform:"translate(".concat(g,"px, ").concat(v,"px)"),debugInfo:{error:"No face data available"}};var T=P.face_center[0]/C,_=P.face_center[1]/F,I=T*C,M=_*F,A=o/2,R=a/2,V=1;F<a&&(V=a/F);var D="number"==typeof C&&"number"==typeof F;if(D&&(D&&F>C)&&"square"===x&&o>0&&C>0){var O=o/C;O>V&&(V=O)}var j=A-I+g,z=h?v:R-M+v,B=V>1?j/V:j,L=V>1?z/V:z;if(!h){var N=R-M*V,H=R+(F-M)*V,W=N<0?Math.abs(N):0,G=H>a?H-a:0;if(W>0||G>0){var $=0;G>0&&0===W?$=G:W>0&&0===G?$=-W:W>0&&G>0&&($=(G-W)/2),L-=$/V}}var K=La(i,o,a,V).horizontalOffset;V>1&&(K/=V);var J=V>1?"scale(".concat(V,") translate(").concat(B+K,"px, ").concat(L,"px)"):"translate(".concat(B+K,"px, ").concat(L,"px)"),q=(100*T).toFixed(2),X=(100*_).toFixed(2),Z="".concat(q,"% ").concat(X,"%");return{transform:J,transformOrigin:Z,debugInfo:{frameIndex:d?"AVERAGE":w,relativeFaceX:T.toFixed(3),relativeFaceY:_.toFixed(3),faceX:I.toFixed(1),faceY:M.toFixed(1),containerCenterX:A.toFixed(1),containerCenterY:R.toFixed(1),finalTranslateX:B.toFixed(1),finalTranslateY:L.toFixed(1),scale:V.toFixed(3),transformOrigin:Z,sourceWidth:C,sourceHeight:F,containerWidth:o,containerHeight:a,useAveragePosition:d,centerHorizontally:h,scalingApplied:V>1,orientation:x}}};var La=function(e,t,r){var n,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(null==e||null===(n=e.metadata)||void 0===n||!n.frames||null==e||null===(i=e.metadata)||void 0===i||!i.videoProperties)return{horizontalOffset:0,verticalOffset:0,side:"none",error:"Invalid face metadata"};var a=e.metadata,s=a.frames,l=a.videoProperties,c=l.width,u=l.height,f=c*o,d=s.filter((function(e){return e.face_detected&&e.face_data}));if(0===d.length)return{horizontalOffset:0,verticalOffset:0,side:"none",error:"No face data available"};var p=0,h=0;d.forEach((function(e){p+=e.face_data.face_center[0],h+=e.face_data.face_center[1]}));var m=p/d.length,g=h/d.length,y=t/2-m*o,v=r/2-g*o,b=0,x="none",w=y+f;y>0?(b=-y,x="left"):w<t&&(b=t-w,x="right");var E=0,U=v+u;return v>0?E=-v:U<r&&(E=r-U),{horizontalOffset:Math.round(b),verticalOffset:Math.round(E),side:x,avgFacePosition:{x:Math.round(m),y:Math.round(g)},translation:{x:Math.round(y),y:Math.round(v)}}};const Na=function(t){var n,i,o,a,s=t.src,l=t.faceMetadata,c=t.containerWidth,u=t.containerHeight,f=t.enableInterpolation,d=void 0===f||f,p=t.useAveragePosition,h=void 0===p||p,m=t.centerHorizontally,g=void 0!==m&&m,y=t.translateX,v=void 0===y?0:y,b=t.translateY,x=void 0===b?0:b,w=t.showDebugInfo,E=void 0!==w&&w,U=t.style,S=void 0===U?{}:U,k=t.className,C=void 0===k?"":k,F=t.containerStyle,P=void 0===F?{}:F,T=t.noBackgroundVideoEffects,_=void 0===T?{}:T,I=(t.noBackgroundEffects,t.transparent),M=void 0!==I&&I,A=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Va),R=An({portrait:{},landscape:{},square:{}}).orientation,V=null==l||null===(n=l.metadata)||void 0===n||null===(i=n.videoProperties)||void 0===i?void 0:i.width,D=null==l||null===(o=l.metadata)||void 0===o||null===(a=o.videoProperties)||void 0===a?void 0:a.height,O=Ba({faceMetadata:l,containerWidth:c,containerHeight:u,enableInterpolation:d,useAveragePosition:h,centerHorizontally:g,translateX:v,translateY:x,orientation:R}),j=O.transform,z=O.transformOrigin,B=O.debugInfo,L=ja({width:V||"100%",height:D||"100%",transform:D===u&&V===c?void 0:j,transformOrigin:z||"center center",position:"absolute",top:0,left:0,maxWidth:"unset",filter:null!=_&&_.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0},S);return c&&u?e.createElement("div",{className:"face-centered-video-container ".concat(C),style:ja({position:"relative",width:c,height:u,overflow:"hidden",isolation:"isolate"},P)},e.createElement(r.pe,Da({src:s,style:L,transparent:M},A)),E&&B&&e.createElement("div",{style:{position:"absolute",top:10,left:10,background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"8px",fontSize:"12px",fontFamily:"monospace",borderRadius:"30px",zIndex:1e3,maxWidth:"300px"}},e.createElement("div",null,e.createElement("strong",null,"Face-Centered Video Debug")),e.createElement("div",{style:{color:"lightblue"}},B.scalingApplied?"Using Scale + Translation":"Using Translation"),e.createElement("div",null,"Frame: ",B.frameIndex),e.createElement("div",null,"Face Position: (",B.relativeFaceX,", ",B.relativeFaceY,")"),e.createElement("div",null,"Face Absolute: (",B.faceX,"px, ",B.faceY,"px)"),e.createElement("div",null,"Container Center: (",B.containerCenterX,"px,"," ",B.containerCenterY,"px)"),e.createElement("div",null,"Translation: (",B.finalTranslateX,"px,"," ",B.finalTranslateY,"px)"),B.scalingApplied&&e.createElement(e.Fragment,null,e.createElement("div",{style:{color:"orange"}},"Scale: ",B.scale,"x"),e.createElement("div",{style:{color:"orange"}},"Transform Origin: ",B.transformOrigin)),e.createElement("div",null,"Source: ",B.sourceWidth,"x",B.sourceHeight),e.createElement("div",null,"Container: ",B.containerWidth,"x",B.containerHeight),B.useAveragePosition&&e.createElement("div",{style:{color:"yellow"}},"Using Average Position"),B.centerHorizontally&&e.createElement("div",{style:{color:"cyan"}},"Center Horizontally Only"),B.error&&e.createElement("div",{style:{color:"red"}},"Error: ",B.error))):(console.error("FaceCenteredVideo: containerWidth and containerHeight are required props"),null)};var Ha=function(t){var n=t.show,i=t.width,o=t.height,a=t.zIndex,s=void 0===a?1:a;return n?e.createElement(r.H1,{style:{width:i,height:o,backdropFilter:"blur(10px)",isolation:"isolate",zIndex:s}}):null},Wa=function(){var e,t,n=(0,r.Bk)().props,i=(void 0===n?{}:n).input,o=(void 0===i?(null===(e=window)||void 0===e||null===(t=e.screenplayProps)||void 0===t?void 0:t.input)||{}:i)||{},a=o.userBackgroundType,s=o.dynamicBackgroundLandscape,l=o.dynamicBackgroundPortrait,c=o.dynamicBackgroundSquare,u=An({landscape:{url:s},portrait:{url:l},square:{url:c}}),f=null==u?void 0:u.url,d=null==u?void 0:u.orientation;return{isVirtual:"virtual"===a&&"string"==typeof f&&f.length>0,url:f,orientation:d}},Ga=function(t){var n=t.url,i=t.zIndex,o=void 0===i?2:i,a=t.borderRadius,s=void 0===a?"30px":a;return n?e.createElement(r.H1,{style:{overflow:"hidden",borderRadius:s,width:"100%",height:"100%",zIndex:o}},e.createElement(r.E9,{src:n,style:{width:"100%",height:"100%",objectFit:"cover"}})):null},$a=Tn().fontFamily,Ka=function(t){var n=t.children,i=t.startVideoFrom,o=t.videoUrl,a=t.noBackgroundVideoUrl,s=t.words,l=void 0===s?[]:s,c=t.exitStartFrame,u=t.durationInFrames,f=t.faceMetadata,d=t.noBackgroundVideoEffects,p=(0,r.Bk)(),h=p.height,m=p.width,g=p.fps,y=(0,r.UC)(),v=Wa(),b=v.isVirtual,x=v.url,w=b&&!!a,E={width:"100%",margin:"0 auto"},U=An({portrait:{bottom:800,wordsContainerStyle:E,justifyWords:"start"},landscape:{bottom:200,wordsContainerStyle:{width:"90%",margin:"0 auto"},justifyWords:"end"},square:{bottom:400,wordsContainerStyle:E,justifyWords:"start"}}),S=U.orientation,k=U.bottom,C=U.wordsContainerStyle,F=U.justifyWords,P=ai(),T=P.primaryColor,_=P.accentColor,I=fo(T,_),M=u-Math.floor(.5*g);return e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:0,isolation:"isolate",zIndex:0}},e.createElement(r.H1,null,w&&x?e.createElement(Ga,{url:x,zIndex:1}):null,f?e.createElement(Na,{startFrom:i,src:o,muted:!0,transparent:!1,faceMetadata:f,aspectRatio:S,containerWidth:m,containerHeight:h,useAveragePosition:!0,centerHorizontally:!1,style:{position:"relative",zIndex:0,isolation:"isolate",filter:!w&&null!=d&&d.backgroundDim&&a?"brightness(0.7)":void 0}}):e.createElement("div",{style:{position:"absolute",overflow:"hidden",height:"100%",width:"100%"}},e.createElement(r.pe,{startFrom:i,src:o,muted:!0,transparent:!1,style:{height:"100%",objectFit:"cover",width:"100%",filter:!w&&null!=d&&d.backgroundDim&&a?"brightness(0.7)":void 0}}))),e.createElement(Ha,{show:!w&&(null==d?void 0:d.backgroundBlur)&&a,width:m,height:h,zIndex:1}),e.createElement(r.H1,{style:{zIndex:3,isolation:"isolate",paddingBottom:k,justifyContent:F}},l.filter((function(e){return null!=e})).map((function(t,n,i){var o=15*n,a=o+30,s=a+8,l=0,u=0;if(y<o)l=-h,u=0;else if(y<a)l=-(h-k),u=.8;else if(y<s){var f=(y-a)/8;l=(0,r.GW)(f,[0,1],[-(h-k-50),0]),u=.3}else{l=0,u=(0,r.oz)({frame:y-s,from:0,to:.9,fps:g,config:{damping:8,stiffness:300}})}var d=y>=c,p=d?Math.max(0,(y-c)/(M-c)):0,m=d?Math.sin(2*y):1,v=d?(0,r.GW)(m,[-1,1],[.3,.9]):.9,b=y<o||y>M?0:d?v*(1-p):u,x=y<o?.5:d?1-.05*p:(0,r.GW)(u,[0,1],[.8,1]);return e.createElement("div",{style:C,key:"word-layer1-".concat(n,"-").concat(t)},e.createElement(Aa,{text:t,maxFontSize:(h-k)/i.length,fontFamily:$a,color:n%2==1?I:"white",minFontSize:50,style:{fontStyle:"italic",fontWeight:800,textShadow:0===n&&"2px 2px 5px rgba(255, 255, 255, 0.5), 5px 5px 10px rgba(255, 255, 255, 0.5), 10px 10px 70px rgba(255, 255, 255, 0.5)",textTransform:"uppercase",opacity:b,backdropFilter:"blur(10px)",transition:"transform 0.1s ease-out",transform:"translateY(".concat(l,"px) scale(").concat(x,")")}}))}))),e.createElement(r.H1,{style:{zIndex:3,isolation:"isolate"}},f?e.createElement(Na,{startFrom:i,src:a,muted:!1,transparent:!0,faceMetadata:f,aspectRatio:S,containerWidth:m,containerHeight:h,useAveragePosition:!0,centerHorizontally:!1}):e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",zIndex:2,height:"100%",width:"100%"}},e.createElement(r.pe,{startFrom:i,src:a,muted:!1,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%"}}))),a&&(w||(null==d?void 0:d.facePop)||(null==d?void 0:d.backgroundDim)||(null==d?void 0:d.backgroundBlur))&&e.createElement(r.H1,{style:{zIndex:3,isolation:"isolate"}},f?e.createElement(Na,{startFrom:i,src:a,muted:!1,transparent:!0,faceMetadata:f,aspectRatio:S,containerWidth:m,containerHeight:h,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:d}):e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",zIndex:2,height:"100%",width:"100%"}},e.createElement(r.pe,{startFrom:i,src:a,muted:!1,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",filter:null!=d&&d.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}}))),e.createElement(r.H1,{style:{zIndex:3,paddingBottom:k,justifyContent:F}},l.filter((function(e){return null!=e})).map((function(t,n,i){var o=15*n,a=o+10,s=a+8,l=0,u=0;if(y<o)l=-h,u=0;else if(y<a)l=-(h-k-50),u=.8;else if(y<s){var f=(y-a)/8;l=(0,r.GW)(f,[0,1],[-(h-k-50),0]),u=.3}else{l=0,u=(0,r.oz)({frame:y-s,from:0,to:1,fps:g,config:{damping:8,stiffness:300}})}var d=y>=c,p=d?Math.max(0,(y-c)/(M-c)):0,m=d?Math.sin(3*y):1,v=(d&&(0,r.GW)(m,[-1,1],[.3,1]),y<o?.5:d?1-.05*p:(0,r.GW)(u,[0,1],[.8,1]));return e.createElement("div",{style:C,key:"word-layer2-".concat(n,"-").concat(t)},e.createElement(Aa,{text:t,maxFontSize:h/i.length,color:"transparent",textStrokeWidth:"2px",textFillColor:"transparent",textStrokeColor:n%2==1?I:"white",minFontSize:50,fontFamily:$a,style:{fontStyle:"italic",fontWeight:800,textTransform:"uppercase",opacity:0,transition:"transform 0.1s ease-out",transform:"translateY(".concat(l,"px) scale(").concat(v,")")}}))}))),e.createElement(r.H1,{style:{zIndex:11}},n))},Ja=function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.children,a=t.sourceVideoOrientation,s=t.disableTransitionSounds,l=void 0!==s&&s,c=t.noBackgroundVideoUrl,u=t.durationInFrames,f=t.words,d=void 0===f?[]:f,p=t.noBackgroundVideoEffects,h=t.faceMetadata,m=u-60;return e.createElement(e.Fragment,null,!l&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(Ka,{videoUrl:n,startVideoFrom:i,noBackgroundVideoUrl:c,sourceVideoOrientation:a,exitStartFrame:m,durationInFrames:u,words:d,faceMetadata:h,noBackgroundVideoEffects:p},o))},qa={default:{Title:function(t){var n=t.text,i=An({portrait:{top:125,right:140,width:700},landscape:{top:75,right:75,width:1550},square:{top:75,right:75,width:700}}),o=i.top,a=i.right,s=i.width,l=An({portrait:{maxFontSize:50},landscape:{maxFontSize:50},square:{maxFontSize:50}}).maxFontSize,c=(0,r.Bk)().height,u=Mn(n,s,c,l),f=u.lines,d=u.fontSize;return e.createElement(r.H1,null,e.createElement("div",{style:{position:"absolute",top:o,right:a,width:s,textAlign:"center"}},f.map((function(t,r){return e.createElement(Ln,{key:r,index:r},e.createElement("h1",{style:{fontSize:d,fontWeight:600,color:"#333",fontFamily:Bn,padding:0,margin:0,textWrap:"nowrap"}},t))}))))},Nametag:function(t){var n=t.name,i=t.title,o=t.themeSettings,a=(0,r.Bk)().width,s=An({portrait:{bottom:440,left:100,top:void 0,maxWidth:a-200,nameFontSize:60,titleFontSize:50},landscape:{top:void 0,left:100,bottom:225,maxWidth:"450px",nameFontSize:40,titleFontSize:20},square:{bottom:240,left:100,top:void 0,maxWidth:a-200,nameFontSize:40,titleFontSize:30}}),l=s.top,c=s.left,u=s.bottom,f=s.maxWidth,d=s.nameFontSize,p=s.titleFontSize,h=jn([0,.5],[0,100],{easing:r.GS.in(r.GS.quad),extrapolateRight:"clamp"}),m=jn([1,1.5],[0,100],{easing:r.GS.in(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"}),g=jn([.5,1],[0,1],{easing:r.GS.in(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"}),y=jn([1.5,2],[0,1],{easing:r.GS.in(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"}),v=(null==o?void 0:o.primaryColor)||"#000000",b=(null==o?void 0:o.secondaryColor)||"#ffffff";return e.createElement("div",{style:{position:"absolute",display:"flex",flexDirection:"column",gap:10,left:c,bottom:u,top:l,fontFamily:Nn}},e.createElement("div",{style:{width:"fit-content",fontSize:d,textTransform:"uppercase",position:"relative",isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",backgroundColor:b,borderRadius:10,width:"100%",height:"".concat(h,"%"),bottom:0,zIndex:-1}}),e.createElement("div",{style:{padding:"10px 20px",opacity:g,color:v}},n)),e.createElement("div",{style:{position:"relative",width:"fit-content",maxWidth:f,fontSize:p,fontWeight:600,isolation:"isolate",opacity:i?1:0}},e.createElement("div",{style:{position:"absolute",backgroundColor:b,borderRadius:10,width:"100%",height:"".concat(m,"%"),bottom:0,zIndex:-1}}),e.createElement("div",{style:{padding:"10px 20px",opacity:y,color:v}},i)))},Sentence:function(t){var n=t.lines,i=t.fontSize,o=t.maxWidth,a=t.maxHeight,s=jn([0,.5],[0,1]),l=An({landscape:{alignItems:"end",justifyContent:"start",padding:60},portrait:{alignItems:"end",justifyContent:"start",padding:120},square:{alignItems:"end",justifyContent:"start",padding:60}}),c=l.alignItems,u=l.justifyContent,f=l.padding;l.marginRight;return e.createElement(r.H1,{style:{display:"flex",alignItems:c,justifyContent:u,padding:f}},e.createElement("div",{style:{width:o,height:a,display:"flex",flexDirection:"column",alignItems:"end",justifyContent:"start",opacity:s}},e.createElement("div",{style:Yn({borderRadius:"30px",textAlign:"right",padding:Gn},Kn)},n.map((function(t,r){return e.createElement(qn,{key:r,index:r,linesCount:n.length},e.createElement("p",{style:{animationDelay:"".concat(1e3*r,"ms"),color:"#000",fontWeight:700,fontSize:i,textTransform:"uppercase",lineHeight:1,margin:0,fontFamily:ei,textWrap:"nowrap"}},t))})))))},Caption:function(t){var n=t.transcripts,i=t.color,o=(0,r.Bk)().width,a=An({portrait:{fontSize:75,bottom:Uo},landscape:{fontSize:60,bottom:110},square:{fontSize:75,bottom:110}}),s=a.bottom,l=a.fontSize,c=.8*o;return e.createElement(r.H1,null,n.map((function(t,n){var a=Mn(t.text,.7*o,1.6*l,l),u=(a.lines,a.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:1.6*l,position:"absolute",bottom:s,left:"50%",width:c,margin:"0 auto",transform:"translateX(-50%)",color:i||"white",fontSize:u,textTransform:"uppercase",textAlign:"center",fontFamily:So,textShadow:"3px 3px 3px #000",fontWeight:700,textWrap:"nowrap"}},t.text))})))},HandoffNametag:function(t){var n=t.pictureUrl,i=t.fullName,o=t.title,a=t.alignment,s=t.duration,l=(0,r.Bk)(),c=l.fps,u=l.width,f=ai(),d=f.primaryColor,p=f.primaryContrast,h=(0,r.UC)(),m=An(function(e){return{portrait:{targetImageHeights:[130,230,200,170,200,170,170,170,170,170],targetImageTranslateY:li(li({},"first-left",[770,160,160,160,110,0,0,0,0,0]),"second-right",[770,160,160,160,110,0,0,0,0,0]),opacity:[.1,.5,.7,1,1,1,1,1,1,0],targetImageWidths:[60,60,170,170,170,170,170,170,170,170],rotation:[180,180,180,360,360,360,360,360,360,360],targetTextOpacity:[1,1,1,1,1,1,1,1,1,0],textContainerWidth:e-15-170-20,textContainerHeight:170,lineJustifyContent:li(li({},"first-left","flex-start"),"second-right","flex-end"),fullNameMaxFontSize:42,titleMaxFontSize:30,targetContainerTops:li(li({},"first-left",[700,700,700,700,700,700,700,700,700,700]),"second-right",[1050,1050,1050,1050,1050,1050,1050,1050,1050,1050]),containerLeft:li(li({},"first-left",70),"second-right",-120),containerFlexDirection:li(li({},"first-left","row"),"second-right","row-reverse"),containerAlignItems:li(li({},"first-left","center"),"second-right","center")},landscape:{targetImageHeights:[130,230,200,170,200,170,170,170],targetImageTranslateY:li(li({},"first-left",[-770,-160,-160,-160,-110,0,0,0]),"second-right",[-770,-160,-160,-160,-110,0,0,0]),opacity:[.1,.5,.7,1,1,1,1,0],targetImageWidths:[60,60,170,170,170,170,170,170],rotation:[180,180,180,360,360,360,360,360],targetTextOpacity:[1,1,1,1,1,1,1,0],textContainerWidth:e/2-15-170-20,textContainerHeight:170,lineJustifyContent:li(li({},"first-left","flex-start"),"second-right","flex-end"),fullNameMaxFontSize:42,titleMaxFontSize:30,targetContainerTops:li(li({},"first-left",[600,600,600,600,600,600,600,600]),"second-right",[600,600,600,600,600,600,600,600]),containerLeft:li(li({},"first-left",75),"second-right",-75),containerFlexDirection:li(li({},"first-left","row"),"second-right","row-reverse"),containerAlignItems:li(li({},"first-left","center"),"second-right","center")},square:{targetImageHeights:[130,180,150,120,150,120,120,120],targetImageTranslateY:li(li({},"first-left",[-770,-160,-160,-160,-110,0,0,0]),"second-right",[-770,-160,-160,-160,-110,0,0,0]),opacity:[.1,.5,.7,1,1,1,1,0],targetImageWidths:[60,60,120,120,120,120,120,120],rotation:[180,180,180,360,360,360,360,360],targetTextOpacity:[1,1,1,1,1,1,1,0],textContainerWidth:e/2-15-170-20-20,textContainerHeight:170,lineJustifyContent:li(li({},"first-left","flex-start"),"second-right","flex-end"),fullNameMaxFontSize:36,titleMaxFontSize:24,targetContainerTops:li(li({},"first-left",[750,750,750,750,750,750,750,750]),"second-right",[750,750,750,750,750,750,750,750]),containerLeft:li(li({},"first-left",50),"second-right",580),containerFlexDirection:li(li({},"first-left","row"),"second-right","row-reverse"),containerAlignItems:li(li({},"first-left","center"),"second-right","center")}}}(u)),g=m.targetImageHeights,y=m.opacity,v=m.targetImageWidths,b=m.rotation,x=m.textContainerWidth,w=m.textContainerHeight,E=m.fullNameMaxFontSize,U=m.titleMaxFontSize,S=m.targetImageTranslateY,k=m.containerLeft,C=m.targetContainerTops,F=m.containerFlexDirection,P=m.orientation,T=m.containerAlignItems,_=m.lineJustifyContent,I="square"===P,M=On("portrait"===P?[.1,.05,.05,.05,.05,3.75,.4,s-3.75,.25]:[.1,.05,.05,.05,.05,s,.25],0),A=jn(M,g,Dn),R=jn(M,S[a],Dn),V=jn(M,y,Dn),D=jn(M,v,Dn),O=jn(M,b,Dn),j=jn(M,C[a],Dn),z=.2*c,B=i.split(" "),L=z/B.length,N=Mn(i,x,w/2,E),H=N.lines,W=N.fontSize,G=null!=o&&o.length?o.split(" "):null,$=G?z/G.length:0,K=Mn(o||"",x,w/2,U),J=K.lines,q=K.fontSize;return e.createElement(r.H1,{style:{flexDirection:F[a],left:k[a],top:j,height:"min-content",alignItems:T[a],gap:I?"5px":"20px",opacity:V,width:I?"min-content":"100%"}},n&&e.createElement("div",{style:{height:A,width:D,backgroundColor:d,borderRadius:"9999px",opacity:V,display:"flex",justifyContent:"center",alignItems:"center",maxHeight:A,maxWidth:D,overflow:"hidden",border:"10px solid ".concat(d),transform:"translateY(".concat(R,"px)")}},h>=4&&e.createElement(yi,{delayRenderTimeoutInMilliseconds:62e3,src:n,style:{objectFit:"cover",width:"100%",height:"100%",transform:"rotate(".concat(O,"deg)")}})),e.createElement("div",{style:{fontFamily:wi,display:"flex",flexDirection:"column"}},e.createElement("div",{style:{fontSize:"".concat(W,"px"),fontWeight:900,color:p,display:"flex",textTransform:"uppercase",flexDirection:"column"}},H.map((function(t){var n=0;return e.createElement("div",{style:{display:"flex",gap:"10px",justifyContent:_[a]}},t.split(" ").map((function(t){var i=Math.min(n*L,z);n++;var o=(0,r.GW)(h-i,[0,15],[0,1],{easing:r.GS.in(r.GS.ease),extrapolateRight:"clamp"}),a=(0,r.GW)(h-i,[0,15],[-50,0],{easing:r.GS.in(r.GS.ease),extrapolateRight:"clamp"});return e.createElement("span",{style:{opacity:o,transform:"translateY(".concat(a,"px)")}},t)})))}))),G&&e.createElement("div",{style:{fontSize:"".concat(q,"px"),fontWeight:900,color:d,display:"flex",flexDirection:"column"}},J.map((function(t){return e.createElement("div",{style:{display:"flex",gap:"10px",justifyContent:_[a]}},t.split(" ").map((function(t){var n=Math.min(0*$,z),i=(0,r.GW)(h-n,[0,15],[0,1],{easing:r.GS.in(r.GS.ease),extrapolateRight:"clamp"}),o=(0,r.GW)(h-n,[0,15],[50,0],{easing:r.GS.in(r.GS.ease),extrapolateRight:"clamp"});return e.createElement("span",{style:{opacity:i,transform:"translateY(".concat(o,"px)")}},t)})))})))))}},glitch:{Title:function(t){var n=t.text,i=(0,r.Bk)(),o=i.width,a=i.height,s=An({portrait:{maxFontSize:150,maxWidth:.65*o},landscape:{maxFontSize:210,maxWidth:o},square:{maxFontSize:130,maxWidth:o}}),l=s.maxFontSize,c=s.maxWidth,u=ai().primaryContrast,f=Mn(n,c,a,l),d=f.lines,p=f.fontSize,h=(0,r.UC)(),m=[{top:0,height:10,offsetX:Di(h,2.5*-o)},{top:10,height:45,offsetX:Di(h,3*-o)},{top:45,height:50,offsetX:Di(h,2.25*o)},{top:50,height:80,offsetX:Di(h,2.75*o)},{top:80,height:100,offsetX:Di(h,4*-o)}],g=Oi((0,e.useMemo)(Vi,[]),2),y=g[0],v=g[1],b=(0,r.GW)(h,y,v,{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),x=b>4&&b<8,w=b>=8&&b<12,E=[{top:0,height:15,offsetX:x?8:w?12:0},{top:15,height:25,offsetX:x?-8:w?-12:0},{top:25,height:50,offsetX:0},{top:50,height:75,offsetX:x?8:w?12:0},{top:75,height:80,offsetX:x?24:w?30:0},{top:80,height:100,offsetX:x?4:w?8:0}],U=x?8:w?12:0,S=(0,r.GW)(h,[0,15],[0,.8],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)});return e.createElement(r.H1,{style:{display:"grid",placeContent:"center",fontFamily:zi,fontSize:p,textAlign:"center",textTransform:"uppercase",fontWeight:900,fontStyle:"italic",color:u,isolation:"isolate"}},e.createElement(r.H1,{style:{opacity:S,backgroundColor:"black"}}),e.createElement(Fi,{parts:m},d.map((function(t,r){return e.createElement(Ri,{key:r,text:t,offset:U,sentenceParts:E,style:{textAlign:"center",position:"relative",margin:0,color:"#fff",lineHeight:"".concat(p/8*6,"px")}},t)}))))},Nametag:function(t){var r=t.name,n=t.title,i=t.themeSettings;return e.createElement(xa,{name:r,title:n,themeSettings:i})},Sentence:function(t){var n=t.sentence,i=(0,r.Bk)(),o=i.height,a=i.width,s=An({landscape:{paddingRight:180,padding:60,maxWidth:.45*a,maxFontSize:115},portrait:{paddingRight:150,padding:110,maxWidth:.8*a,maxFontSize:75},square:{paddingRight:90,padding:60,maxWidth:.8*a,maxFontSize:90}}),l=s.padding,c=s.paddingRight,u=s.maxWidth,f=s.maxFontSize,d=o,p=Mn(n,u-110,d-100,f),h=p.lines,m=p.fontSize,g=(0,r.UC)(),y=Ea((0,e.useMemo)(Vi,[]),2),v=y[0],b=y[1],x=(0,r.GW)(g,v,b,{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),w=x>4&&x<8?1:0,E=x>=8&&x<12?1:0,U=x>=4&&x<8||x>=12&&x<16?8:0,S=!0,k=[{top:0,height:10,offsetX:Di(g,2.5*-a,S,0)},{top:10,height:45,offsetX:Di(g,3*-a,S,0)},{top:45,height:50,offsetX:Di(g,2.25*a,S,0)},{top:50,height:80,offsetX:Di(g,2.75*a,S,0)},{top:80,height:100,offsetX:Di(g,4*-a,S,0)}];return e.createElement(r.H1,{style:{display:"flex",padding:l,paddingRight:c,justifyContent:"end",alignItems:"end",isolation:"isolate"}},e.createElement("div",{style:{width:u,height:d,borderRadius:"30px",display:"flex",flexDirection:"column",alignItems:"end",justifyContent:"center",zIndex:2}},e.createElement(Fi,{style:{display:"flex",flexDirection:"column",justifyContent:"end",alignItems:"end"},parts:k},h.map((function(t,r){return e.createElement(wa,{key:r,text:t,delayInSeconds:0},e.createElement("div",{style:{fontSize:m,fontWeight:900,textTransform:"uppercase",fontStyle:"italic",fontFamily:Sa}},e.createElement(Ri,{text:t,offset:U})))})))),e.createElement(yi,{delayRenderTimeoutInMilliseconds:62e3,src:"https://cdn.zync.ai/assets/static/glitch1.png",style:{position:"absolute",right:0,width:a,height:o,opacity:w,zIndex:1}}),e.createElement(yi,{delayRenderTimeoutInMilliseconds:63e3,src:"https://cdn.zync.ai/assets/static/glitch2.png",style:{position:"absolute",right:0,width:a,height:o,opacity:E,zIndex:1}}))}},glassmorphism:{Title:function(t){var n=t.text,i=An({portrait:{top:Gn,right:60,width:700},landscape:{top:Gn,right:60,width:1550},square:{top:Gn,right:60,width:700}}),o=i.top,a=i.right,s=i.width,l=ai().primaryColor,c=An({portrait:{maxFontSize:60},landscape:{maxFontSize:40},square:{maxFontSize:40}}).maxFontSize,u=(0,r.Bk)().height,f=Mn(n,s,u,c),d=f.lines,p=f.fontSize;return e.createElement(r.H1,null,e.createElement("div",{style:{position:"absolute",top:o,right:a,width:s}},e.createElement("div",{style:{textAlign:"right",fontFamily:Xi,color:"#fff"}},d.map((function(t,r){return e.createElement(Zi,{key:r,index:r},e.createElement(Gi,null,e.createElement("h1",{style:Ji(Ji({},Kn),{},{animationDelay:"".concat(1e3*r,"ms"),fontSize:p,color:l,borderRadius:16,width:"fit-content",padding:15,marginLeft:"auto"})},t)))})))))},Nametag:function(t){var n=t.name,i=t.title,o=(0,r.Bk)().width,a=ai().primaryColor,s=An({portrait:{bottom:225,left:100,top:void 0,maxWidth:o-200,nameFontSize:60,titleFontSize:50},landscape:{top:void 0,left:100,bottom:175,maxWidth:"450px",nameFontSize:40,titleFontSize:20},square:{bottom:220,left:100,top:void 0,maxWidth:o-200,nameFontSize:40,titleFontSize:30}}),l=s.top,c=s.left,u=s.bottom,f=s.maxWidth,d=s.nameFontSize,p=s.titleFontSize,h=jn([0,.5],[0,100],{easing:r.GS.in(r.GS.quad),extrapolateRight:"clamp"}),m=jn([1,1.5],[0,100],{easing:r.GS.in(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"}),g=jn([.5,1],[0,1],{easing:r.GS.in(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"}),y=jn([1.5,2],[0,1],{easing:r.GS.in(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"});return e.createElement("div",{style:{position:"absolute",display:"flex",flexDirection:"column",gap:10,left:c,bottom:u,top:l,fontFamily:ro}},e.createElement("div",{style:{width:"fit-content",fontSize:d,textTransform:"uppercase",position:"relative",isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",width:"100%",height:"".concat(h,"%"),bottom:0,zIndex:-1}}),e.createElement(Gi,null,e.createElement("div",{style:eo(eo({},Kn),{},{borderRadius:15,color:a,padding:"10px 20px",opacity:g})},n))),e.createElement("div",{style:{position:"relative",width:"fit-content",maxWidth:f,fontSize:p,fontWeight:600,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",width:"100%",height:"".concat(m,"%"),bottom:0,zIndex:-1}}),e.createElement(Gi,null,e.createElement("div",{style:eo(eo({},Kn),{},{borderRadius:15,color:a,padding:"10px 20px",opacity:y})},i))))},Sentence:function(t){var n=t.lines,i=t.fontSize,o=t.maxWidth,a=t.maxHeight,s=jn([0,.5],[0,1]);return e.createElement(r.H1,{style:{display:"grid",placeContent:"center"}},e.createElement("div",{style:{width:o,height:a,background:"rgba(255, 255, 255, 0.75)",borderRadius:"30px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:s}},n.map((function(t,r){return e.createElement(no,{key:r,index:r,linesCount:n.length},e.createElement("p",{style:{text:"#101840",fontSize:i,fontWeight:"bold",textTransform:"uppercase",lineHeight:1.6,margin:0,fontFamily:io,textWrap:"nowrap"}},t))}))))}},sports:{Nametag:function(t){var n=t.name,i=t.title,o=t.themeSettings,a=An({landscape:{containerBottomOffset:-75,nameStyles:{bottom:185,left:140,fontSize:55},titleStyles:{bottom:130,left:140,fontSize:42},lottieAnimationPath:"https://storage.googleapis.com/zync-media/assets/lottie/sports/nametag/landscape.json"},portrait:{containerBottomOffset:-310,nameStyles:{bottom:175,left:100,fontSize:50},titleStyles:{bottom:135,left:100,fontSize:30},lottieAnimationPath:"https://storage.googleapis.com/zync-media/assets/lottie/sports/nametag/portrait.json"},square:{containerBottomOffset:-120,nameStyles:{bottom:170,left:100,fontSize:50},titleStyles:{bottom:132,left:100,fontSize:32},lottieAnimationPath:"https://storage.googleapis.com/zync-media/assets/lottie/sports/nametag/square.json"}}),s=a.containerBottomOffset,l=a.lottieAnimationPath,c=a.nameStyles,u=a.titleStyles,f=yo(1,4),d=yo(1,14),p=jn([f,d],[0,1]),h=jn([f,yo(1,9),d],[100,-15,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.ease)}),m=yo(1,20),g=yo(2,8),y=jn([m,g],[0,1]),v=jn([m,yo(2,4),g],[-50,10,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.ease)}),b=ai(),x=b.primaryColor,w=(b.accentContrast,b.primaryContrast,b.accentColor),E=(null==o?void 0:o.primaryColor)||w,U=(null==o?void 0:o.secondaryColor)||x,S=vo(U),k=vo(E);return e.createElement(r.H1,{style:{transform:"translateY(".concat(s,"px)"),isolation:"isolate"}},e.createElement(go,{animationPath:l,primaryColor:U,accentColor:E}),e.createElement("div",{style:{position:"absolute",bottom:c.bottom,left:c.left,fontSize:c.fontSize,color:k,fontFamily:bo,fontStyle:"italic",opacity:p,transform:"translateX(".concat(h,"%)"),fontWeight:800}},n),e.createElement("div",{style:{position:"absolute",bottom:u.bottom,left:u.left,fontSize:u.fontSize,color:S,fontFamily:bo,opacity:y,transform:"translateX(".concat(v,"%)"),fontWeight:400}},i))},Title:function(t){var n=t.text,i=An({landscape:{backdropHeightFactor:.6},portrait:{backdropHeightFactor:.6},square:{backdropHeightFactor:.4}}).backdropHeightFactor,o=An({portrait:{maxFontSize:160,backdropTop:"45%",titleTop:"45%"},landscape:{maxFontSize:160,backdropTop:"50%",titleTop:"50%"},square:{maxFontSize:160,backdropTop:"50%",titleTop:"50%"}}),a=o.maxFontSize,s=o.backdropTop,l=o.titleTop,c=(0,r.Bk)(),u=c.height,f=c.width,d=Mn(n,.8*f,u*i,a),p=d.lines,h=d.fontSize,m=yo(0,0),g=yo(1,0),y=jn([m,g],[0,100*i],Dn);return e.createElement(r.H1,{style:{color:"white",fontSize:h,fontFamily:Eo,fontWeight:800}},e.createElement("div",{style:{position:"absolute",width:"100%",height:"".concat(y,"%"),left:"50%",top:s,transform:"translate(-50%, -50%)",backdropFilter:"blur(10.6px)",WebkitBackdropFilter:"blur(10.6px)"}}),e.createElement("div",{style:{position:"relative",top:l,transform:"translateY(-50%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:20}},p.map((function(t,r){return e.createElement(wo,{key:r,text:t,delayInSeconds:.15*r})}))))},Sentence:function(t){var n=t.sentence,i=Mn(n,700,500,110),o=i.lines,a=i.fontSize,s=An({landscape:{alignItems:"end",justifyContent:"start",paddingRight:90,padding:60},portrait:{alignItems:"end",justifyContent:"start",paddingRight:150,padding:110},square:{alignItems:"end",justifyContent:"start",paddingRight:90,padding:60}}),l=s.alignItems,c=s.justifyContent,u=s.padding,f=s.paddingRight;return e.createElement(r.H1,{style:{display:"flex",alignItems:l,justifyContent:c,padding:u,paddingRight:f}},e.createElement("div",{style:{width:800,height:600,borderRadius:"30px",display:"flex",flexDirection:"column",alignItems:"end",justifyContent:"start",gap:20}},o.map((function(t,r){return e.createElement(wo,{key:r,index:r,text:t,fontSize:a,delayInSeconds:.15*r},e.createElement("div",{style:{fontSize:a,fontWeight:800,textTransform:"initial",fontFamily:ko}},t))}))))}},sportsbounce:{Nametag:function(t){var n=t.name,i=t.title,o=t.themeSettings,a=An({landscape:{alignItems:"start",justifyContent:"center",backdropHeightFactor:.3,maxFontSize:50,nameFontSize:"63px",titleFontSize:"39px"},portrait:{alignItems:"start",justifyContent:"start",backdropHeightFactor:.6,nameFontSize:"63px",titleFontSize:"39px"},square:{alignItems:"start",justifyContent:"start",backdropHeightFactor:.4,nameFontSize:"63px",titleFontSize:"39px"}}),s=a.alignItems,l=a.nameFontSize,c=a.titleFontSize,u=(0,r.UC)(),f=(0,r.Bk)().fps,d=.1*f+.3*f,p=1.5*f,h=(0,r.oz)({frame:Math.max(0,u-d),fps:f,from:-300,to:0,stiffness:5e3,damping:1.5,durationInFrames:25}),m=(0,r.GW)(h,[-800,-200,0],[1.5,1.2,1],{extrapolateRight:"clamp"}),g=Math.max(0,u-(d+25+p)),y=g<15?40*Math.sin(.5*g):0,v=(0,r.oz)({frame:Math.max(0,g-15),fps:f,from:0,to:-400,stiffness:500,damping:20,durationInFrames:20}),b=(0,r.GW)(Math.max(0,g-15),[0,10,30],[1,2,.5],{extrapolate:"clamp"}),x=g>0?v+y:h,w=g>0?b:m,E=ai(),U=E.primaryColor,S=(E.primaryContrast,E.accentColor),k=(E.accentContrast,(null==o?void 0:o.primaryColor)||U),C=vo(k),F=(null==o?void 0:o.secondaryColor)||S,P=vo(F);return e.createElement(r.H1,null,e.createElement("div",{style:{position:"absolute",bottom:"23%",left:"5%",display:"flex",flexDirection:"column",alignItems:s,overflow:"hidden"}},e.createElement(Mo,{text:n,fontSize:l,translateY:x/2,scaleY:w,fontW:"900",color:C,backgroundColor:k}),e.createElement(Mo,{text:i,fontSize:c,translateY:-x/2,fontW:"600",scaleY:w,color:F,backgroundColor:P})))},Title:function(t){var n=t.text;return e.createElement(r.H1,null,e.createElement(Do,{shutterAngle:360,samples:5},e.createElement(jo,{text:n})))},Sentence:function(t){var n=t.sentence;return e.createElement(r.H1,null,e.createElement(Vo,{sentence:n}))}},bigbold:{Nametag:function(t){var n=t.name,i=t.title,o=t.themeSettings,a=(0,r.UC)(),s=(0,r.Bk)(),l=s.fps,c=s.width,u=An({portrait:{bottom:"52%",left:"6%",top:void 0,maxWidth:.8*c,nameFontSize:.12*c,titleFontSize:.1*c},landscape:{top:void 0,left:"4.5%",bottom:"65%",maxWidth:.42*c,nameFontSize:.07*c,titleFontSize:.05*c},square:{bottom:"64%",left:"4%",top:void 0,maxWidth:.8*c,nameFontSize:.11*c,titleFontSize:.08*c}}),f=u.top,d=u.left,p=u.bottom,h=u.maxWidth,m=u.nameFontSize,g=u.titleFontSize,y=ai(),v=y.primaryColor,b=(y.primaryContrast,y.accentColor),x=(y.accentContrast,(0,r.oz)({frame:a,fps:l,from:0,to:100,stiffness:300,damping:20,durationInFrames:15})),w=yo(5/l,0),E=(0,r.oz)({frame:a-w*l,fps:l,from:0,to:50,stiffness:300,damping:500,durationInFrames:15}),U=w+yo(25/l,0),S=jn([U+1,U+1.5],[0,2e3],{easing:r.GS.out(r.GS.cubic),extrapolateRight:"clamp",extrapolateLeft:"clamp"}),k=(null==o?void 0:o.primaryColor)||v,C=vo(k),F=(null==o?void 0:o.secondaryColor)||b,P=vo(F);return e.createElement("div",{style:{position:"absolute",display:"flex",flexDirection:"column",left:d,bottom:p,top:f,fontFamily:Po,fontWeight:"900"}},e.createElement("div",{style:{width:"fit-content",fontSize:m,position:"relative",isolation:"isolate"}}),e.createElement("div",{style:{position:"absolute",display:"flex",flexDirection:"column",fontFamily:Po,top:50,fontWeight:"900"}},e.createElement("div",{style:{textShadow:"5px 5px ".concat(C),rotationPoint:"0% 100%",left:"10",position:"relative",color:k,fontSize:m,width:h,whiteSpace:"wrap",transformOrigin:"left",transform:"translateX(".concat(S,"px) scale(").concat(x,"%)")}},n),e.createElement("div",{style:{position:"relative",top:-50,left:20,textShadow:"5px 5px ".concat(P),whiteSpace:"wrap",width:h+350,color:F,fontSize:g,transformOrigin:"left",transform:"translateX(".concat(-S,"px) scale(").concat(E,"%)")}},i)))},Title:function(t){var n=t.text,i=(0,r.Bk)(),o=i.height,a=i.width,s=An({landscape:{backdropHeightFactor:.6},portrait:{backdropHeightFactor:.3},square:{backdropHeightFactor:.5}}).backdropHeightFactor,l=Mn(n,.65*a,o*s*1.3,210),c=l.lines,u=l.fontSize,f=yo(3,0),d=yo(.3,0),p=yo(0,0),h=yo(1,0),m=jn([p,h],[0,2],{easing:r.GS.out(r.GS.cubic),extrapolateLeft:"clamp",extrapolateRight:"clamp"}),g=jn([f,f+d],[100,110],{easing:r.GS.in(r.GS.cubic),extrapolateLeft:"clamp",extrapolateRight:"clamp"}),y=jn([f,f+d],[1,0],{easing:r.GS.in(r.GS.cubic),extrapolateLeft:"clamp",extrapolateRight:"clamp"}),v=An({landscape:{alignItems:"center",justifyContent:"center",fontSize:"160px"},portrait:{alignItems:"center",justifyContent:"center",fontSize:"120px"},square:{alignItems:"center",justifyContent:"center",fontSize:"120px"}});v.alignItems,v.justifyContent,ai().primaryContrast;return e.createElement(r.H1,{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:75,transform:"scale(".concat(g,"%)")}},e.createElement("div",{style:{position:"absolute",width:"100%",height:"92%",backgroundColor:"#000000b6",transform:"scale(".concat(m,")"),opacity:y}}),c.map((function(t,n){return e.createElement("div",{key:n,style:{display:"flex",marginRight:"30px",marginBottom:131===u?"-45px":"-30px",flexDirection:"row",justifyContent:"flex-start"}},t.split(" ").map((function(t,i){var o=yo(.2,.2*n*30+.1+.12*i*30),a=jn([o,o+yo(.3,0)],[0,100],{easing:r.GS.in(r.GS.cubic),extrapolateLeft:"clamp",extrapolateRight:"clamp"});return e.createElement("div",{key:i,style:{fontSize:u,fontFamily:_o,paddingLeft:"2rem",fontWeight:"900",textAlign:"center",transform:"scale(".concat(a,"%)"),color:"white",whiteSpace:"nowrap",textTransform:"uppercase",transformOrigin:"bottom",opacity:y}},t)})))})))},Sentence:function(t){var n=t.sentence,i=(0,r.Bk)().fps,o=(0,r.UC)(),a=yo(3.5,0),s=yo(1,0),l=yo(0,0),c=yo(.5,0),u=(0,r.Bk)(),f=u.width,d=u.height,p=jn([l,c],[0,f],{easing:r.GS.out(r.GS.cubic),extrapolateLeft:"clamp",extrapolateRight:"clamp"}),h=jn([a,a+s],[1,1.5],{easing:r.GS.out(r.GS.cubic),extrapolateLeft:"clamp",extrapolateRight:"clamp"}),m=jn([a,a+s],[1,0],{easing:r.GS.out(r.GS.cubic),extrapolateLeft:"clamp",extrapolateRight:"clamp"}),g=An({landscape:{alignItems:"end",justifyContent:"center",maxFontSize:120,size:{width:.45*f,height:.95*d}},portrait:{alignItems:"end",justifyContent:"start",maxFontSize:120,size:{width:.7*f,height:.8*d}},square:{size:{width:.68*f,height:.9*d},maxFontSize:120,alignItems:"end",justifyContent:"start"}}),y=g.alignItems,v=g.justifyContent,b=g.size,x=g.maxFontSize,w=Mn(n,b.width,b.height,x),E=w.lines,U=w.fontSize;return e.createElement(r.H1,{style:{display:"flex",alignItems:y,justifyContent:v,marginTop:0}},e.createElement("div",{style:{position:"absolute",width:p,height:d,backgroundColor:"#00000066",transformOrigin:"center",transform:"scale(".concat(h,")"),opacity:m}}),e.createElement("div",{style:{padding:60}},E.map((function(t,n){return e.createElement("div",{key:n,style:{display:"flex",flexDirection:"row",justifyContent:"flex-end"}},t.split(" ").map((function(t,a){var s=yo(.6,.1*n*24+.1*a*24),l=zn([s,s+yo(1,0)],[4e3,1],{easing:r.GS.out(r.GS.cubic),extrapolateLeft:"clamp",extrapolateRight:"clamp"},i,o);return e.createElement("div",{key:a,style:{fontSize:U,fontFamily:To,paddingRight:"30px",fontWeight:"700",textAlign:"right",transform:"translateY(".concat(l,"%)"),color:"#fff",whiteSpace:"nowrap",opacity:m}},t)})))}))))}},pushpull:{Nametag:function(t){var r=t.name,n=t.title,i=t.themeSettings;return e.createElement(Do,{shutterAngle:180,samples:5},e.createElement(Bo,{name:r,title:n,themeSettings:i}))},Sentence:function(t){var r=t.maxWidth,n=t.maxHeight,i=t.lines,o=t.fontSize;return e.createElement(ta,{maxWidth:r,maxHeight:n,lines:i,fontSize:o})},Title:function(t){var r=t.text;return e.createElement(Do,{shutterAngle:180,samples:5},e.createElement(ga,{text:r}))}},none:{Nametag:function(){return null},Title:function(){return null}},depth:{Sentence:Ja}},Xa=function(e,t){var n=(0,r.Bk)().props.output,i=(void 0===n?{theme:window.screenplayProps.output.theme}:n).theme,o=void 0===i?"default":i;return function(){if(!e)throw new Error("You must specify componentName prop, got ".concat(e));if(!qa.default[e])throw new Error("Component is not implemented, possible components ".concat(Object.keys(qa.default).join(", "),", got ").concat(e));if(!qa[o])throw new Error("Invalid theme. Supported themes [".concat(Object.keys(qa).join(", "),"], got ").concat(o));try{return qa[t||o][e]||qa.default[e]}catch(t){return qa.default[e]||null}}()},Za=function(t){var n=t.sentence,i=t.theme,o=Xa("Sentence",i),a=(0,r.Bk)(),s=a.width,l=a.height,c=(a.props,An({portrait:{size:{width:.6,height:.8}},landscape:{size:{width:.35,height:.8}},square:{size:{width:.55,height:.6}}}).size),u=s*c.width,f=l*c.height,d=Mn(n,u-120,f-120,76),p=d.lines,h=d.fontSize;return e.createElement(o,{sentence:n,lines:p,fontSize:h,maxHeight:f,maxWidth:u})},Ya=function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.muted,a=t.frameColor,s=t.logoUrl,l=t.videoZoom,c=t.faceMetadata,u=t.children,f=t.disableTransitionSounds,d=void 0!==f&&f,p=t.noBackgroundVideoEffects,h=t.noBackgroundVideoUrl,m=(0,r.Bk)(),g=m.width,y=m.height,v=Wa(),b=v.isVirtual,x=v.url,w=b&&!!h,E=jn([0,.5],[1,l||1],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)});return e.createElement(e.Fragment,null,!d&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(r.H1,{style:{backgroundColor:a||"transparent",padding:a?Gn:0,isolation:"isolate",width:g,height:y}},c?e.createElement("div",{style:{width:"100%",height:"100%",overflow:"hidden",borderRadius:"30px",filter:!w&&null!=p&&p.backgroundDim&&h?"brightness(0.7)":void 0,transform:l>1?"scale(".concat(E,")"):void 0}},e.createElement(Na,{src:n,startFrom:i,containerWidth:g,containerHeight:y,faceMetadata:c,useAveragePosition:!0,centerHorizontally:!1,muted:o})):e.createElement("div",{style:{overflow:"hidden",borderRadius:"30px",width:"100%",height:"100%",filter:!w&&null!=p&&p.backgroundDim&&h?"brightness(0.7)":void 0}},e.createElement(r.pe,{startFrom:i,src:n,muted:o,style:{position:"relative",top:"50%",height:"100%",objectFit:"cover",width:"100%",borderRadius:"30px",transform:l?"translateY(-50%) scale(".concat(E,")"):void 0}})),e.createElement(r.H1,{style:{margin:a?Gn:0,width:a?g-60:g,height:a?y-60:y,transform:l>1?"scale(".concat(E,")"):void 0}},w&&x?e.createElement(Ga,{url:x}):null),!w&&null!=p&&p.backgroundBlur&&h?e.createElement(r.H1,{style:{width:g,height:y,backdropFilter:"blur(10px)",zIndex:1}}):null,h&&(w||null!=p&&p.facePop||null!=p&&p.backgroundDim||null!=p&&p.backgroundBlur)&&c?e.createElement(r.H1,{style:{padding:a?Gn:0,isolation:"isolate",width:g,height:y,zIndex:9}},e.createElement("div",{style:{width:"100%",height:"100%",overflow:"hidden",borderRadius:"30px",transform:l>1?"scale(".concat(E,")"):void 0}},e.createElement(Na,{src:h,startFrom:i,containerWidth:g,containerHeight:y,faceMetadata:c,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:p,muted:!0,transparent:!0}))):null,h&&(w||null!=p&&p.facePop||null!=p&&p.backgroundDim||null!=p&&p.backgroundBlur)&&!c?e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:a?Gn:0,isolation:"isolate",width:g,height:y,zIndex:9}},e.createElement(r.H1,{style:{overflow:"hidden",borderRadius:"30px",width:"100%",height:"100%"}},e.createElement(r.pe,{startFrom:i,src:h,muted:!0,transparent:!0,style:{position:"relative",top:"50%",height:"100%",objectFit:"cover",width:"100%",borderRadius:"30px",filter:null!=p&&p.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,transform:l?"translateY(-50%) scale(".concat(E,")"):void 0}}))):null,e.createElement(r.H1,{style:{zIndex:10}},u),s?e.createElement("div",{style:{position:"fixed",left:a?Gn:25,top:a?Gn:25,padding:20,zIndex:11}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:s})):null))};function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qa.apply(null,arguments)}function es(e){return es="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},es(e)}function ts(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rs(n.key),n)}}function rs(e){var t=function(e,t){if("object"!=es(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=es(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==es(t)?t:t+""}function ns(e,t,r){return t=os(t),function(e,t){if(t&&("object"==es(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,is()?Reflect.construct(t,r||[],os(e).constructor):t.apply(e,r))}function is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(is=function(){return!!e})()}function os(e){return os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},os(e)}function as(e,t){return as=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},as(e,t)}var ss=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=ns(this,t,[e])).getVideoProps(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&as(e,t)}(t,e),r=t,(n=[{key:"getVideoProps",value:function(e){var t,r,n,i,o,a,s;this.props={noBackgroundVideoEffects:e.data.noBackgroundVideoEffects,noBackgroundVideoUrl:null===(t=e.data.noBackgroundVideo)||void 0===t?void 0:t.videoUrl,faceMetadata:yn(null===(r=e.data.noBackgroundVideo)||void 0===r?void 0:r.faceMetadata),videoUrl:null===(n=e.data.sourceVideo)||void 0===n?void 0:n.videoUrl,videoZoom:(null===(i=e.data.sourceVideo)||void 0===i?void 0:i.zoom)||1,disableTransitionSounds:null===(o=e.data)||void 0===o?void 0:o.disableTransitionSounds,brollUrl:null===(a=e.data)||void 0===a?void 0:a.brollUrl,sentenceText:null===(s=e.data)||void 0===s?void 0:s.sentenceText,theme:null==e?void 0:e.theme}}}])&&ts(r.prototype,n),i&&ts(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Fn);function ls(e){return ls="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},ls(e)}function cs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,us(n.key),n)}}function us(e){var t=function(e,t){if("object"!=ls(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ls(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ls(t)?t:t+""}function fs(e,t,r){return t=ps(t),function(e,t){if(t&&("object"==ls(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ds()?Reflect.construct(t,r||[],ps(e).constructor):t.apply(e,r))}function ds(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ds=function(){return!!e})()}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ps(e)}function hs(e,t){return hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hs(e,t)}var ms="LEFT_TO_RIGHT",gs="RIGHT_TO_LEFT",ys=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=fs(this,t,[e])).getVideoProps(e),r.getLayoutVariant(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hs(e,t)}(t,e),r=t,(n=[{key:"getLayoutVariant",value:function(){this.props.variant||(this.props.variant=[ms,gs][process.env.REACT_APP_DOMAIN?0:Math.floor(2*Math.random())])}},{key:"getVideoProps",value:function(e){var t,r,n,i,o=dn(null===(t=e.data.sourceVideo)||void 0===t?void 0:t.aspectRatio);this.props={videoUrl:null===(r=e.data.sourceVideo)||void 0===r?void 0:r.videoUrl,sourceVideoOrientation:o,videoZoom:(null===(n=e.data.sourceVideo)||void 0===n?void 0:n.zoom)||1,text:e.data.text,disableTransitionSounds:null===(i=e.data)||void 0===i?void 0:i.disableTransitionSounds}}}])&&cs(r.prototype,n),i&&cs(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Fn);function vs(e){return vs="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},vs(e)}function bs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xs(n.key),n)}}function xs(e){var t=function(e,t){if("object"!=vs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=vs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vs(t)?t:t+""}function ws(e,t,r){return t=Us(t),function(e,t){if(t&&("object"==vs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Es()?Reflect.construct(t,r||[],Us(e).constructor):t.apply(e,r))}function Es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Es=function(){return!!e})()}function Us(e){return Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Us(e)}function Ss(e,t){return Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ss(e,t)}var ks=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=ws(this,t,[e])).getVideoProps(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ss(e,t)}(t,e),r=t,(n=[{key:"getVideoProps",value:function(e){var t,r,n,i,o,a,s,l,c,u,f,d,p,h,m,g,y,v,b,x=dn(null===(t=e.data.sourceVideo)||void 0===t?void 0:t.aspectRatio);this.props={startFirstVideoFrom:an(this.fps*((null===(r=e.data)||void 0===r?void 0:r.startFirstVideoFrom)+((null===(n=e.data)||void 0===n?void 0:n.trimLeft)||0)),!0)||0,firstVideoFile:null===(i=e.data)||void 0===i?void 0:i.firstVideoFile,firstVideoDuration:(null===(o=e.data)||void 0===o?void 0:o.firstVideoDuration)-((null===(a=e.data)||void 0===a?void 0:a.trimLeft)||0),firstNoBackgroundVideoUrl:null===(s=e.data)||void 0===s||null===(l=s.firstNoBackgroundVideo)||void 0===l?void 0:l.videoUrl,firstNoBackgroundFaceMetadata:yn(null===(c=e.data)||void 0===c||null===(u=c.firstNoBackgroundVideo)||void 0===u?void 0:u.faceMetadata),startSecondVideoFrom:an(this.fps*(null===(f=e.data)||void 0===f?void 0:f.startSecondVideoFrom),!0)||0,firstVideoDurationWithoutLastSegment:null===(d=e.data)||void 0===d?void 0:d.firstVideoDurationWithoutLastSegment,secondVideoFile:null===(p=e.data)||void 0===p?void 0:p.secondVideoFile,secondNoBackgroundVideoUrl:null===(h=e.data)||void 0===h||null===(m=h.secondNoBackgroundVideo)||void 0===m?void 0:m.videoUrl,secondNoBackgroundFaceMetadata:yn(null===(g=e.data)||void 0===g||null===(y=g.secondNoBackgroundVideo)||void 0===y?void 0:y.faceMetadata),videoUrl:null===(v=e.data.sourceVideo)||void 0===v?void 0:v.videoUrl,sourceVideoOrientation:x,videoZoom:(null===(b=e.data.sourceVideo)||void 0===b?void 0:b.zoom)||1,text:e.data.text}}}])&&bs(r.prototype,n),i&&bs(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Fn);function Cs(e){return Cs="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},Cs(e)}function Fs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ps(n.key),n)}}function Ps(e){var t=function(e,t){if("object"!=Cs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cs(t)?t:t+""}function Ts(e,t,r){return t=Is(t),function(e,t){if(t&&("object"==Cs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_s()?Reflect.construct(t,r||[],Is(e).constructor):t.apply(e,r))}function _s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_s=function(){return!!e})()}function Is(e){return Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Is(e)}function Ms(e,t){return Ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ms(e,t)}var As=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ts(this,t,[e])).getVideoProps(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ms(e,t)}(t,e),r=t,(n=[{key:"getVideoProps",value:function(e){var t,r,n;this.props={videoUrl:null===(t=e.data.sourceVideo)||void 0===t?void 0:t.videoUrl,imageUrl:e.data.imageUrl,videoZoom:(null===(r=e.data.sourceVideo)||void 0===r?void 0:r.zoom)||1,disableTransitionSounds:null===(n=e.data)||void 0===n?void 0:n.disableTransitionSounds}}}])&&Fs(r.prototype,n),i&&Fs(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Fn);function Rs(e){return Rs="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},Rs(e)}function Vs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ds(n.key),n)}}function Ds(e){var t=function(e,t){if("object"!=Rs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Rs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rs(t)?t:t+""}function Os(e,t,r){return t=zs(t),function(e,t){if(t&&("object"==Rs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,js()?Reflect.construct(t,r||[],zs(e).constructor):t.apply(e,r))}function js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(js=function(){return!!e})()}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zs(e)}function Bs(e,t){return Bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bs(e,t)}var Ls=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Os(this,t,[e])).getVideoProps(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bs(e,t)}(t,e),r=t,(n=[{key:"getVideoProps",value:function(e){var t,r,n;this.props={videoUrl:null===(t=e.data.sourceVideo)||void 0===t?void 0:t.videoUrl,videoZoom:(null===(r=e.data.sourceVideo)||void 0===r?void 0:r.zoom)||1,disableTransitionSounds:null===(n=e.data)||void 0===n?void 0:n.disableTransitionSounds,words:e.data.words}}}])&&Vs(r.prototype,n),i&&Vs(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Fn);function Ns(e){return Ns="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},Ns(e)}function Hs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ws(n.key),n)}}function Ws(e){var t=function(e,t){if("object"!=Ns(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ns(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ns(t)?t:t+""}function Gs(e,t,r){return t=Ks(t),function(e,t){if(t&&("object"==Ns(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$s()?Reflect.construct(t,r||[],Ks(e).constructor):t.apply(e,r))}function $s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($s=function(){return!!e})()}function Ks(e){return Ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ks(e)}function Js(e,t){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Js(e,t)}var qs=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Gs(this,t,[e])).getVideoProps(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Js(e,t)}(t,e),r=t,(n=[{key:"getVideoProps",value:function(e){this.props={sentenceText:e.data.sentenceText,sentenceTextTwo:e.data.sentenceTextTwo}}}])&&Hs(r.prototype,n),i&&Hs(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Fn);function Xs(e){return Xs="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},Xs(e)}function Zs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ys(n.key),n)}}function Ys(e){var t=function(e,t){if("object"!=Xs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xs(t)?t:t+""}function Qs(e,t,r){return t=tl(t),function(e,t){if(t&&("object"==Xs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,el()?Reflect.construct(t,r||[],tl(e).constructor):t.apply(e,r))}function el(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(el=function(){return!!e})()}function tl(e){return tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tl(e)}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rl(e,t)}var nl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Qs(this,t,[e])).getVideoProps(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rl(e,t)}(t,e),r=t,(n=[{key:"getVideoProps",value:function(e){var t,r,n,i,o,a,s,l,c,u,f,d,p,h,m;this.props={videoUrl:null===(t=e.data.sourceVideo)||void 0===t?void 0:t.videoUrl,videoZoom:(null===(r=e.data.sourceVideo)||void 0===r?void 0:r.zoom)||1,disableTransitionSounds:null===(n=e.data)||void 0===n?void 0:n.disableTransitionSounds,triangleSize:(null===(i=e.data)||void 0===i?void 0:i.triangleSize)||600,triangleColor:(null===(o=e.data)||void 0===o?void 0:o.triangleColor)||"#00FF7F",triangleBorderWidth:(null===(a=e.data)||void 0===a?void 0:a.triangleBorderWidth)||20,borderRadius:(null===(s=e.data)||void 0===s?void 0:s.borderRadius)||80,rotationSpeed:(null===(l=e.data)||void 0===l?void 0:l.rotationSpeed)||30,horizontalMovement:(null===(c=e.data)||void 0===c?void 0:c.horizontalMovement)||0,verticalMovement:(null===(u=e.data)||void 0===u?void 0:u.verticalMovement)||0,maskStartScale:void 0!==(null===(f=e.data)||void 0===f?void 0:f.maskStartScale)?e.data.maskStartScale:10,maskEndScale:void 0!==(null===(d=e.data)||void 0===d?void 0:d.maskEndScale)?e.data.maskEndScale:1,maskAnimationDuration:(null===(p=e.data)||void 0===p?void 0:p.maskAnimationDuration)||2,sentenceText:null===(h=e.data)||void 0===h?void 0:h.sentenceText,text:null===(m=e.data)||void 0===m?void 0:m.text}}}])&&Zs(r.prototype,n),i&&Zs(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(Fn);function il(e){return il="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},il(e)}function ol(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,al(n.key),n)}}function al(e){var t=function(e,t){if("object"!=il(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=il(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==il(t)?t:t+""}var sl=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},r=[{key:"createObject",value:function(e){switch(e.type){case"text_with_video":return new ys(e).flatten();case"broll_background":case"simple_frame_broll":case"simple_frame_sentence":case"broll_split_screen":case"broll_green_screen":case"broll_studio_backdrop":case"key_point_overlay_depth":case"simple_frame":return new ss(e).flatten();case"handoff":return new ks(e).flatten();case"motion_still":case"motion_still_green_screen":case"motion_still_full_screen":case"motion_still_studio_backdrop":return new As(e).flatten();case"keyword":return new Ls(e).flatten();case"intro_video":return new qs(e).flatten();case"dynamic_triangle":return new nl(e).flatten();default:return new Fn(e).flatten()}}}],(t=null)&&ol(e.prototype,t),r&&ol(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ll(e){return ll="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},ll(e)}function cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ul(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(r),!0).forEach((function(t){dl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pl(n.key),n)}}function dl(e,t,r){return(t=pl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pl(e){var t=function(e,t){if("object"!=ll(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ll(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ll(t)?t:t+""}var hl=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),dl(this,"screenplay",void 0),dl(this,"fps",30),dl(this,"mainVideoTrack",{}),dl(this,"layoutVideoTrack",[]),dl(this,"effectsVideoTrack",[]),dl(this,"captionsVideoTrack",[]),dl(this,"audioTrack",[]),dl(this,"output",void 0),this.screenplay=t,this.output=this.getRemotionOutputSettings()},t=[{key:"validate",value:function(){try{Zr.parse(this.screenplay)}catch(e){console.log({error:e})}}},{key:"getRemotionOutputSettings",value:function(){var e=this,t={},r=this.screenplay.output.orientation,n=this.screenplay.input.theme||"default";switch(r){case"landscape":t.width=1920,t.height=1080;break;case"portrait":t.width=1080,t.height=1920;break;case"square":t.width=1080,t.height=1080}var i=this.getSegmentTrack().segments;return t.durationInFrames=i.reduce((function(t,r,i,o){var a=t+((r.layout.data.duration||0)-(r.layout.data.trimLeft||0)-(r.layout.data.trimRight||0))*e.fps,s=$n[n];if(s){var l=i===o.length-1;return an(a)-(l?0:s.durationInFrames)}return an(a)}),0),t.theme=this.screenplay.input.theme||"default",t.fps=this.fps,ul(ul({},this.screenplay.output),t)}},{key:"toRemotionFragment",value:function(e,t){var r,n,i,o,a=0;t&&(a=t.data.trimLeft||0);var s=this.fps*(e.data.offset-a)||0,l=an(this.fps*e.data.duration),c=s+l;return ul(ul({},e.data),{},{component:on(e.type),videoUrl:null===(r=e.data.sourceVideo)||void 0===r?void 0:r.videoUrl,startVideoFrom:null!==(n=an(this.fps*(null===(i=e.data.sourceVideo)||void 0===i?void 0:i.start),!1,!0))&&void 0!==n?n:0,durationInFrames:l,from:s,to:c,videoZoom:null===(o=e.data.sourceVideo)||void 0===o?void 0:o.zoom,offset:an(this.fps*(e.data.offset-a))||0,theme:e.theme,themeSettings:null==e?void 0:e.themeSettings})}},{key:"toRemotionAudioFragment",value:function(e){var t,r,n,i,o,a,s,l,c=this.fps*e.data.offset||0,u=an(this.fps*e.data.duration)||void 0,f=c+u;return ul(ul({},e.data),{},{component:on(e.type),src:null===(t=e.data.sourceAudio)||void 0===t?void 0:t.url,startAudioFrom:null!==(r=an(this.fps*(null===(n=e.data.sourceAudio)||void 0===n?void 0:n.start),!1,!0))&&void 0!==r?r:0,durationInFrames:u,from:c,to:f,offset:this.fps*e.data.offset||0,volume:null!==(i=null===(o=e.data)||void 0===o||null===(a=o.sourceAudio)||void 0===a?void 0:a.volume)&&void 0!==i?i:1,loop:(null===(s=e.data)||void 0===s||null===(l=s.sourceAudio)||void 0===l?void 0:l.loop)||!1})}},{key:"toRemotionSegment",value:function(e){var t=this,r=e.layout,n=e.effects;return{layout:sl.createObject(r),effects:n.map((function(e){return e.type.includes("caption")?t.toRemotionCaptionSegment(e,r):t.toRemotionFragment(e,r)}))}}},{key:"toEffectSegment",value:function(e){return this.toRemotionFragment(e)}},{key:"toRemotionCaptionSegment",value:function(e,t){var r=this,n=t.data.trimLeft||0,i=this.fps*(e.data.offset+n)||0,o=e.data.transcript_text;if(!o)throw new Error("No transcript_text provided in transcript segment");return o=o.map((function(e){var t=r.fps*(e.offset-n)||0,i=an(r.fps*e.duration);return{text:e.text,from:t,durationInFrames:i,punctuations:e.punctuations?e.punctuations.map((function(e){return ul(ul({},e),{},{start:an(r.fps*(e.start-n)),end:an(r.fps*(e.end-n))})})):[]}})),{component:on(e.type),durationInFrames:an(this.screenplay.durationInFrames),from:i,transcripts:o,theme:e.theme,color:e.data.color}}},{key:"generateMainVideoTrack",value:function(){var e,t=this.screenplay.tracks.find((function(e){return"segment"===e.type}));if(!t)throw new Error("Layout track not found");if(!t.segments&&0===(null===(e=t.segments)||void 0===e?void 0:e.length))throw new Error("Layout track has no segments specified");this.mainVideoTrack=this.toRemotionSegment(t.segments[0])}},{key:"getSegmentTrack",value:function(){var e=this.screenplay.tracks.find((function(e){return"segment"===e.type}));if(!e)throw new Error("Layout track not found");return e}},{key:"generateLayoutTrack",value:function(){var e=this;this.getSegmentTrack().segments.forEach((function(t){e.layoutVideoTrack.push(e.toRemotionSegment(t))}))}},{key:"generateEffectsTrack",value:function(){var e=this,t=this.screenplay.tracks.find((function(e){return"effect"===e.type}));if(!t)throw new Error("Effect track not found");t.segments.forEach((function(t){e.effectsVideoTrack.push(e.toEffectSegment(t))}))}},{key:"generateCaptionsTrack",value:function(){var e=this,t=this.screenplay.tracks.find((function(e){return"caption"===e.type}));if(!t)throw new Error("Caption track not found");t.segments.forEach((function(t,r){!function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(r),e.captionsVideoTrack.push(e.toRemotionCaptionSegment(t))}))}},{key:"generateAudioTrack",value:function(){var e=this,t=this.screenplay.tracks.find((function(e){return"audio"===e.type}));t?t.segments.forEach((function(t){e.audioTrack.push(e.toRemotionAudioFragment(t))})):console.log("[ScreenPlay] Audio track not found. Skipping")}},{key:"buildRemotionTimeline",value:function(){return{input:this.screenplay.input,mainVideoTrack:this.mainVideoTrack,layoutVideoTrack:this.layoutVideoTrack,effectsVideoTrack:this.effectsVideoTrack,captionsVideoTrack:this.captionsVideoTrack,audioTrack:this.audioTrack,output:this.output}}}],t&&fl(e.prototype,t),r&&fl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),ml=function(t){var n=t.url,i=t.top,o=void 0===i?0:i,a=t.left,s=void 0===a?0:a,l=t.width,c=void 0===l?"100%":l,u=t.height,f=void 0===u?"100%":u,d=t.zIndex,p=void 0===d?2:d,h=t.borderRadius,m=t.zoom,g=void 0===m?1:m;return n?e.createElement("div",{style:{position:"absolute",top:o,left:s,width:c,height:f,overflow:"hidden",borderRadius:h,zIndex:p,transform:"scale(".concat(g,")")}},e.createElement(r.E9,{src:n,style:{width:"100%",height:"100%",objectFit:"cover"}})):null};function gl(e){return gl="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},gl(e)}function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yl.apply(null,arguments)}function vl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=gl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gl(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bl=Tn().fontFamily,xl=function(e,t){return e.map((function(e){return e+t}))},wl=function(e){return.15*e},El=function(t){var r=t.logoUrl,n=t.top,i=t.left,o=t.right;return r?e.createElement("div",{style:{position:"fixed",zIndex:1,top:n,left:i,right:o}},e.createElement(yi,{style:{width:"225px",maxHeight:"auto",objectFit:"contain"},delayRenderTimeoutInMilliseconds:6e4,src:r})):null},Ul=function(t){var n=t.children,i=t.revealBlockColor,o=t.startRevealAtFrame,a=void 0===o?120:o,s=t.index,l=void 0===s?0:s,c=xl([a,a+.5],wl(l)),u=xl([a+1,a+1.5],wl(l)),f=xl([a+1.5,a+2],wl(l)),d=jn(c,[-105,0],{easing:r.GS.out(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"}),p=jn(u,[0,1],{extrapolateRight:"clamp"}),h=jn(f,[0,105],{easing:r.GS.out(r.GS.quad),extrapolateRight:"clamp",extrapolateLeft:"clamp"})||d;return e.createElement("div",{style:{overflow:"hidden",position:"relative",textAlign:"left"}},e.createElement("div",{style:{opacity:p,willChange:"opacity",zIndex:10}},n),e.createElement("div",{style:{position:"absolute",inset:0,backgroundColor:i,transform:"translateX(".concat(h,"%)"),willChange:"transform"}}))},Sl=function(t){var n=t.startVideoFrom,i=t.videoUrl,o=t.logoUrl,a=t.text,s=t.children,l=t.textColor,c=t.textBackgroundColor,u=t.accentColor,f=t.variant,d=void 0===f?ms:f,p=t.faceMetadata,h=t.muted,m=t.noBackgroundVideoEffects,g=t.noBackgroundVideoUrl,y=(0,r.Bk)(),v=y.width,b=y.height,x=Wa(),w=x.isVirtual,E=x.url,U=w&&!!g,S=vl(vl({},gs,{flowDirection:"row-reverse",logoLeft:60,logoRight:void 0}),ms,{flowDirection:"row",logoLeft:void 0,logoRight:60}),k=An({portrait:{targetTextWidth:v-60,targetVideoWidth:v-60,targetVideoHeight:.6*b,targetTextHeight:.4*b,logoTop:.4*b+Gn,logoLeft:55,logoRight:void 0,maxFontSize:80,flowDirection:"column"},landscape:{targetTextWidth:v/2,targetVideoWidth:v/2,targetVideoHeight:b,targetTextHeight:b,logoTop:60,logoLeft:S[d].logoLeft,logoRight:S[d].logoRight,maxFontSize:80,flowDirection:S[d].flowDirection},square:{targetTextWidth:v/2,targetVideoWidth:v/2,targetVideoHeight:b,targetTextHeight:b,logoTop:60,logoLeft:S[d].logoLeft,logoRight:S[d].logoRight,maxFontSize:50,flowDirection:S[d].flowDirection}}),C=k.targetTextWidth,F=k.targetTextHeight,P=k.targetVideoWidth,T=k.targetVideoHeight,_=k.logoTop,I=k.logoLeft,M=k.logoRight,A=k.maxFontSize,R=k.flowDirection,V=k.orientation,D=[0,.5],O="portrait"===V,j=jn(D,[0,C],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),z=jn(D,[0,F],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),B=jn(D,[v,P],{extrapolateRight:"clamp"}),L=jn(D,[b,T],{extrapolateRight:"clamp"}),N=Mn(a,C-100,F-100,A),H=N.lines,W=N.fontSize;return e.createElement(r.H1,{style:{isolation:"isolate",width:v,height:b,padding:Gn,backgroundColor:u}},e.createElement(El,{logoUrl:o,top:_,left:I,right:M}),e.createElement("div",{style:{display:"flex",flexDirection:R,width:"100%",height:"100%",borderRadius:30,overflow:"hidden"}},e.createElement("div",{style:{width:O?v-60:j,height:O?z:b-60,backgroundColor:c,color:l,fontFamily:bl,fontSize:W,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",zIndex:1}},e.createElement("div",null,H.map((function(t,r){return e.createElement(Ul,{startRevealAtFrame:D[1],revealBlockColor:u,index:r,key:r},t)})))),e.createElement("div",{style:{width:O?v-60:B,height:O?L:b-60,overflow:"hidden",position:"relative",filter:!U&&null!=m&&m.backgroundDim&&g?"brightness(0.7)":void 0}},U&&E?e.createElement(ml,{url:E,top:0,left:0,width:"100%",height:"100%",zIndex:1}):null,p?e.createElement(Na,{startFrom:n,src:i,muted:h,faceMetadata:p,containerWidth:O?v-60:B,containerHeight:O?L:b-60}):e.createElement(r.pe,{startFrom:n,src:i,muted:h,style:{height:"100%",objectFit:"cover",width:B}})),e.createElement(Ha,{show:!U&&(null==m?void 0:m.backgroundBlur)&&g,width:v,height:b,zIndex:0}),g&&(U||null!=m&&m.facePop||null!=m&&m.backgroundDim||null!=m&&m.backgroundBlur)&&p?e.createElement(r.H1,{style:{padding:Gn,isolation:"isolate",width:v,height:b,zIndex:9}},e.createElement("div",{style:{display:"flex",flexDirection:R,width:"100%",height:"100%",borderRadius:30,overflow:"hidden"}},e.createElement("div",{style:{width:O?v-60:j,height:O?z:b-60}}),e.createElement("div",{style:{width:O?v-60:B,height:O?L:b-60,overflow:"hidden"}},e.createElement(Na,{startFrom:n,src:g,muted:!0,transparent:!0,faceMetadata:p,containerWidth:O?v-60:B,containerHeight:O?L:b-60,noBackgroundVideoEffects:m})))):null,g&&(U||null!=m&&m.facePop||null!=m&&m.backgroundDim||null!=m&&m.backgroundBlur)&&!p?e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:Gn,isolation:"isolate",width:v,height:b,zIndex:9}},e.createElement("div",{style:{display:"flex",flexDirection:R,width:"100%",height:"100%",borderRadius:30,overflow:"hidden"}},e.createElement("div",{style:{width:O?v-60:j,height:O?z:b-60}}),e.createElement("div",{style:{width:O?v-60:B,height:O?L:b-60,overflow:"hidden"}},e.createElement(r.pe,{startFrom:n,src:g,muted:!0,transparent:!0,style:{height:"100%",objectFit:"cover",width:B,filter:null!=m&&m.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}})))):null),e.createElement(r.H1,{style:{zIndex:10}},s))},kl=function(t){var r=t.transcripts,n=t.color,i=t.theme,o=Xa("Caption",i);return e.createElement(o,{transcripts:r,color:n})},Cl=function(t){var n=Xa("Nametag",t.theme);return e.createElement(e.Fragment,null,"none"!==t.theme&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/blip.mp3"}),e.createElement(r.H1,null,e.createElement(n,t)))},Fl=20,Pl=20;function Tl(e){return Tl="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},Tl(e)}function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_l.apply(null,arguments)}function Il(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ml(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(r),!0).forEach((function(t){Al(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Il(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Al(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Tl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Tl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tl(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Rl=Tn().fontFamily,Vl=function(t){var r=t.logoUrl,n=t.top,i=t.left,o=t.right;return r?e.createElement("div",{style:{position:"fixed",zIndex:1,top:n,left:i,right:o}},e.createElement(yi,{style:{width:"225px",maxHeight:"auto",objectFit:"contain"},delayRenderTimeoutInMilliseconds:6e4,src:r})):null},Dl=function(t){var n=t.imageUrl,i=t.style,o=void 0===i?{}:i,a=(0,r.UC)(),s=[0,100],l=(0,r.GW)(a,s,[1.25,1.55],{extrapolateLeft:"clamp"}),c=(0,r.GW)(a,s,[0,5],{extrapolateLeft:"clamp"});return n?e.createElement("div",{style:{width:"100%",height:"100%"}},e.createElement(yi,{src:n,delayRenderTimeoutInMilliseconds:6e4,style:Ml({objectFit:"cover",width:"100%",height:"100%",transform:"rotate(".concat(c,"deg) scale(").concat(l,")"),willChange:"transform"},o)})):null},Ol=function(t){var n=t.startVideoFrom,i=t.videoUrl,o=t.logoUrl,a=t.children,s=t.textColor,l=t.textBackgroundColor,c=t.accentColor,u=t.variant,f=void 0===u?ms:u,d=t.imageUrl,p=t.durationInFrames,h=t.faceMetadata,m=t.muted,g=t.noBackgroundVideoEffects,y=t.noBackgroundVideoUrl,v=(0,r.Bk)(),b=v.width,x=v.height,w=v.fps,E=(0,r.UC)(),U=Wa(),S=U.isVirtual,k=U.url,C=S&&!!y,F=Al(Al({},gs,{flowDirection:"row-reverse",logoLeft:60,logoRight:void 0}),ms,{flowDirection:"row",logoLeft:void 0,logoRight:60}),P=An({portrait:{imageContainerOutputRange:[-x,.35*-x],targetVideoWidth:b-60,targetVideoHeight:.4*x,clipPath:"polygon(100% 0, 100% 95%, 10% 100%, 0 95%, 0% 0%)",logoTop:60,logoLeft:55,logoRight:void 0,flowDirection:"column-reverse"},landscape:{imageContainerOutputRange:[b,.35*b],targetVideoWidth:.45*b,targetVideoHeight:x,clipPath:"polygon(100% 0%, 100% 100%, 7% 100%, 0 20%, 7% 0)",logoTop:60,logoLeft:F[f].logoLeft,logoRight:F[f].logoRight,flowDirection:"row"},square:{imageContainerOutputRange:[-b,.45*-b],targetVideoWidth:.6*b,targetVideoHeight:x,clipPath:"polygon(94% 0, 100% 14%, 89% 100%, 0% 100%, 0% 0%)",logoTop:60,logoLeft:F[f].logoLeft,logoRight:F[f].logoRight,flowDirection:"row-reverse"}}),T=P.imageContainerOutputRange,_=P.targetVideoWidth,I=P.targetVideoHeight,M=P.clipPath,A=P.logoTop,R=P.logoLeft,V=P.logoRight,D=P.flowDirection,O=P.orientation,j="portrait"===O,z=p?p/w-.5:null,B=E/w,L=0;if(p&&z&&B>=z){var N=(B-z)/.5;L=Math.max(0,1-N)}else L=B<=.5?Math.min(1,B/.5):1;var H=r.GS.in(r.GS.quad)(L),W=T[0]+(T[1]-T[0])*H,G=b+(_-b)*H,$=x+(I-x)*H;return e.createElement(r.H1,null,e.createElement(r.H1,{style:{width:b,height:x,padding:Gn,backgroundColor:c,overflow:"hidden",isolation:"isolate"}},e.createElement("div",{style:{position:"fixed",zIndex:999,height:Gn,width:b,top:0,backgroundColor:c}}),e.createElement("div",{style:{position:"fixed",zIndex:999,width:Gn,height:x,right:0,backgroundColor:c}}),e.createElement("div",{style:{position:"fixed",zIndex:999,width:Gn,height:x,left:0,backgroundColor:c}}),e.createElement(Vl,{logoUrl:o,top:A,left:R,right:V}),e.createElement("div",{style:{display:"flex",flexDirection:D,width:"100%",height:"100%",overflow:"hidden"}},h?e.createElement(Na,{startFrom:n,src:i,transparent:!1,muted:m,faceMetadata:h,containerWidth:G,containerHeight:j?$:x-60,containerStyle:{display:"flex",justifyContent:"landscape"===O?"start":"end",alignItems:"end",filter:!C&&null!=g&&g.backgroundDim&&y?"brightness(0.7)":void 0}}):e.createElement("div",{style:{width:G,height:j?$:x-60,overflow:"hidden",filter:!C&&null!=g&&g.backgroundDim&&y?"brightness(0.7)":void 0}},e.createElement(r.pe,{startFrom:n,src:i,muted:m,style:{height:"100%",objectFit:"cover",width:G}})),C&&k?e.createElement(ml,{url:k,top:Gn,left:Gn,width:b-60,height:x-60,borderRadius:"0px",zIndex:1}):null,e.createElement(Ha,{show:!C&&(null==g?void 0:g.backgroundBlur)&&y,width:b,height:x,zIndex:0}),y&&(C||null!=g&&g.facePop||null!=g&&g.backgroundDim||null!=g&&g.backgroundBlur)&&h?e.createElement(r.H1,{style:{padding:Gn,isolation:"isolate",width:b,height:x,zIndex:9}},e.createElement("div",{style:{display:"flex",flexDirection:D,width:"100%",height:"100%",overflow:"hidden"}},e.createElement(Na,{startFrom:n,src:y,transparent:!0,muted:!0,faceMetadata:h,containerWidth:G,containerHeight:j?$:x-60,containerStyle:{display:"flex",justifyContent:"landscape"===O?"start":"end",alignItems:"end"},noBackgroundVideoEffects:g}))):null,y&&(C||null!=g&&g.facePop||null!=g&&g.backgroundDim||null!=g&&g.backgroundBlur)&&!h?e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:Gn,isolation:"isolate",width:b,height:x,zIndex:9}},e.createElement("div",{style:{display:"flex",flexDirection:D,width:"100%",height:"100%",overflow:"hidden"}},e.createElement("div",{style:{width:G,height:j?$:x-60,overflow:"hidden"}},e.createElement(r.pe,{startFrom:n,src:y,muted:!0,transparent:!0,style:{height:"100%",objectFit:"cover",width:G,filter:null!=g&&g.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}})))):null,e.createElement("div",{style:{position:"absolute",backgroundColor:l,color:s,fontFamily:Rl,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",clipPath:M,width:"100%",transform:"translateX(".concat(j?0:W,"px) translateY(").concat(j?W:0,"px)"),height:x-60,zIndex:9}},e.createElement(Dl,{imageUrl:d})))),e.createElement(r.H1,{style:{zIndex:20}},a))};function jl(e){return jl="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},jl(e)}function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zl.apply(null,arguments)}function Bl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=jl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jl(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ll=Tn().fontFamily,Nl=function(t){var r=t.logoUrl,n=t.top,i=t.left,o=t.right;return r?e.createElement("div",{style:{position:"fixed",zIndex:11,top:n,left:i,right:o}},e.createElement(yi,{style:{width:"225px",maxHeight:"auto",objectFit:"contain"},delayRenderTimeoutInMilliseconds:6e4,src:r})):null},Hl=function(t){var n=t.word,i=t.index,o=Mn(n,300,120,50),a=o.fontSize,s=o.lines,l=(0,r.UC)(),c=(0,r.GW)(l,[0,90],[0,30],{}),u=["translate(".concat(c,"px, ").concat(c,"px)"),"translateX(".concat(c/2,"px)"),"translate(".concat(c,"px)"),"translateY(".concat(c,"px)"),"translateX(".concat(c,"px)")];return e.createElement("div",{style:{transform:u[i%u.length],display:"flex",alignItems:"center",gap:30,willChange:"transform"}},e.createElement("div",{style:{position:"relative",width:3,height:3,borderRadius:"100%",backgroundColor:"white",border:"1px solid white",padding:9}},e.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:45,height:45,transform:"translate(-50%, -50%)",borderRadius:"100%",border:"1px solid white"}})),e.createElement("p",{style:{color:"white",textTransform:"uppercase",fontWeight:300,letterSpacing:"10px",fontSize:a,margin:0,height:80,display:"flex",alignItems:"center",gap:20}},s.map((function(t,r){return e.createElement("span",{key:t+r,style:{willChange:"transform"}},t)}))))},Wl=e.memo((function(t){var r=t.words,n=void 0===r?[]:r;return e.createElement("div",{style:{fontFamily:Ll,position:"absolute",height:"100%"}},e.createElement("div",{style:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"space-evenly"}},n.map((function(t,r){return e.createElement(e.Fragment,{key:r+t},e.createElement("div",{style:{position:"relative",display:"flex",gap:"30px",alignItems:"center",width:"100%"}},e.createElement(Hl,{word:t,index:r})),e.createElement("div",{style:{position:"relative",display:"flex",gap:"30px",alignItems:"center",width:"100%",left:"75%"}},e.createElement(Hl,{word:t,index:r})),e.createElement("div",{style:{position:"relative",display:"flex",gap:"30px",alignItems:"center",width:"100%",left:"-75%"}},e.createElement(Hl,{word:t,index:r})))}))))})),Gl=function(t){var n=t.startVideoFrom,i=t.videoUrl,o=t.logoUrl,a=t.children,s=t.textColor,l=(t.textBackgroundColor,t.accentColor),c=t.variant,u=void 0===c?ms:c,f=t.words,d=void 0===f?[]:f,p=t.durationInFrames,h=t.faceMetadata,m=t.muted,g=t.noBackgroundVideoEffects,y=t.noBackgroundVideoUrl,v=(0,r.Bk)(),b=v.width,x=v.height,w=v.fps,E=(0,r.UC)(),U=Wa(),S=U.isVirtual,k=U.url,C=S&&!!y,F=Bl(Bl({},gs,{flowDirection:"row-reverse",logoLeft:60,logoRight:void 0}),ms,{flowDirection:"row",logoLeft:void 0,logoRight:60}),P=An({portrait:{containerWidth:"100%",imageContainerOutputRange:[-x,.41*-x],targetVideoWidth:b-60,targetVideoHeight:.5*x,clipPath:"polygon(0 0, 100% 0, 100% 90%, 0% 100%)",logoTop:60,logoLeft:55,logoRight:void 0,flowDirection:"column-reverse"},landscape:{containerWidth:"65%",imageContainerOutputRange:[-b,.35*-b],targetVideoWidth:.45*b,targetVideoHeight:x,clipPath:"polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%)",logoTop:60,logoLeft:F[u].logoLeft,logoRight:F[u].logoRight,flowDirection:"row-reverse"},square:{containerWidth:"65%",imageContainerOutputRange:[-b,.45*-b],targetVideoWidth:.55*b,targetVideoHeight:x,clipPath:"polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%)",logoTop:60,logoLeft:F[u].logoLeft,logoRight:F[u].logoRight,flowDirection:"row-reverse"}}),T=P.imageContainerOutputRange,_=P.containerWidth,I=P.targetVideoWidth,M=P.targetVideoHeight,A=P.clipPath,R=P.logoTop,V=P.logoLeft,D=P.logoRight,O=P.flowDirection,j="portrait"===P.orientation,z=p?p/w-.5:null,B=E/w,L=0;if(p&&z&&B>=z){var N=(B-z)/.5;L=Math.max(0,1-N)}else L=B<=.5?Math.min(1,B/.5):1;var H=r.GS.in(r.GS.quad)(L),W=T[0]+(T[1]-T[0])*H,G=b+(I-b)*H,$=x+(M-x)*H;return e.createElement(r.H1,{style:{isolation:"isolate",width:b,height:x,padding:Gn,backgroundColor:l}},e.createElement("div",{style:{position:"fixed",zIndex:999,height:Gn,width:b,top:0,backgroundColor:l}}),e.createElement("div",{style:{position:"fixed",zIndex:999,width:Gn,height:x,right:0,backgroundColor:l}}),e.createElement("div",{style:{position:"fixed",zIndex:999,width:Gn,height:x,left:0,backgroundColor:l}}),e.createElement(Nl,{logoUrl:o,top:R,left:V,right:D}),e.createElement("div",{style:{display:"flex",flexDirection:O,width:"100%",height:"100%",overflow:"hidden"}},e.createElement("div",{style:{width:_,position:"absolute",backgroundColor:s,fontFamily:Ll,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",clipPath:A,transform:"translateX(".concat(j?0:W,"px) translateY(").concat(j?W:0,"px)"),height:x-60,zIndex:2}},e.createElement(r.pe,{style:{objectFit:"cover",width:"100%",height:"100%",mixBlendMode:"screen"},src:"https://storage.googleapis.com/zync-media/assets/static/plexus1.mov",startFrom:120}),e.createElement(Wl,{words:d})),e.createElement("div",{style:{width:G,height:j?$:x-60,overflow:"hidden",position:"relative",filter:!C&&null!=g&&g.backgroundDim&&y?"brightness(0.7)":void 0}},C&&k?e.createElement(ml,{url:k,top:0,left:0,width:"100%",height:"100%",zIndex:1}):null,h?e.createElement(Na,{startFrom:n,src:i,muted:m,faceMetadata:h,containerWidth:G,containerHeight:$,useObjectPosition:j,centerHorizontally:j}):e.createElement(r.pe,{startFrom:n,src:i,muted:m,style:{height:"100%",objectFit:"cover",width:G}})),e.createElement(Ha,{show:!C&&(null==g?void 0:g.backgroundBlur)&&y,width:b,height:x,zIndex:1}),y&&(C||null!=g&&g.facePop||null!=g&&g.backgroundDim||null!=g&&g.backgroundBlur)&&h?e.createElement(r.H1,{style:{padding:Gn,isolation:"isolate",width:b,height:x,zIndex:9}},e.createElement("div",{style:{display:"flex",flexDirection:O,width:"100%",height:"100%",overflow:"hidden"}},e.createElement("div",{style:{width:_,position:"absolute",backgroundColor:s,fontFamily:Ll,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",clipPath:A,transform:"translateX(".concat(j?0:W,"px) translateY(").concat(j?W:0,"px)"),height:x-60,zIndex:2}},e.createElement(r.pe,{style:{objectFit:"cover",width:"100%",height:"100%",mixBlendMode:"screen"},src:"https://storage.googleapis.com/zync-media/assets/static/plexus1.mov",startFrom:120}),e.createElement(Wl,{words:d})),e.createElement("div",{style:{width:G,height:j?$:x-60,overflow:"hidden"}},e.createElement(Na,{startFrom:n,src:y,muted:!0,transparent:!0,faceMetadata:h,containerWidth:G,containerHeight:$,useObjectPosition:j,centerHorizontally:j,noBackgroundVideoEffects:g})))):null,y&&(C||null!=g&&g.facePop||null!=g&&g.backgroundDim||null!=g&&g.backgroundBlur)&&!h?e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:Gn,isolation:"isolate",width:b,height:x,zIndex:9}},e.createElement("div",{style:{display:"flex",flexDirection:O,width:"100%",height:"100%",overflow:"hidden"}},e.createElement("div",{style:{width:_,position:"absolute",backgroundColor:s,fontFamily:Ll,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",clipPath:A,transform:"translateX(".concat(j?0:W,"px) translateY(").concat(j?W:0,"px)"),height:x-60,zIndex:2}},e.createElement(r.pe,{style:{objectFit:"cover",width:"100%",height:"100%",mixBlendMode:"screen"},src:"https://storage.googleapis.com/zync-media/assets/static/plexus1.mov",startFrom:120}),e.createElement(Wl,{words:d})),e.createElement("div",{style:{width:G,height:j?$:x-60,overflow:"hidden"}},e.createElement(r.pe,{startFrom:n,src:y,muted:!0,transparent:!0,style:{height:"100%",objectFit:"cover",width:G,filter:null!=g&&g.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}})))):null),e.createElement(r.H1,{style:{zIndex:10}},a))},$l=Tn().fontFamily,Kl=Tn().fontFamily,Jl=Fo().fontFamily,ql=Tn().fontFamily,Xl=["children"];function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zl.apply(null,arguments)}function Yl(e){return function(e){if(Array.isArray(e))return Ql(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ql(e,t);var r={}.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)?Ql(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ec=function(t){var n=t.children,i=t.brollUrl,o=t.brollVideoWidthTransition,a=t.brollVideoHeightTransition,s=t.brollVideoTopTransition,l=t.brollVideoLeftTransition,c=t.mainVideoWidthTransition,u=t.mainVideoHeightTransition,f=t.mainVideoTopTransition,d=t.mainVideoLeftTransition,p=t.logoUrl,h=t.logoLeft,m=t.logoTop,g=t.frameColor,y=t.startVideoFrom,v=t.videoUrl,b=t.sourceVideoOrientation,x=t.muted,w=t.faceMetadata,E=(t.orientation,t.noBackgroundVideoUrl),U=t.noBackgroundVideoEffects,S=t.showVirtual,k=t.virtualBgUrl,C=(0,r.Bk)(),F=C.width,P=C.height;return e.createElement(r.H1,{style:{backgroundColor:g||"transparent",padding:0,isolation:"isolate"}},i&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px 20px 0px 0px",width:o,height:a,top:s,left:l,zIndex:2}},e.createElement(r.pe,{src:i,style:{height:"100%",objectFit:"cover",width:"100%"},muted:!0})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"0px 0px 20px 20px",width:c,height:u,top:f,left:d,zIndex:1}},S&&k?e.createElement(ml,{url:k,top:0,left:0,width:"100%",height:"100%",borderRadius:"0px 0px 20px 20px",zIndex:1}):null,w?e.createElement(Na,{startFrom:y,src:v,transparent:!1,faceMetadata:w,containerWidth:c,containerHeight:u,centerHorizontally:!1,translateY:100}):e.createElement(r.pe,{startFrom:y,src:v,muted:x,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===b?"0% 30%":void 0,filter:!S&&null!=U&&U.backgroundDim&&E?"brightness(0.7)":void 0}})),e.createElement(Ha,{show:!S&&(null==U?void 0:U.backgroundBlur)&&E,width:F,height:P,zIndex:1}),E&&(S||null!=U&&U.facePop||null!=U&&U.backgroundDim||null!=U&&U.backgroundBlur)&&w?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",borderRadius:"0px 0px 20px 20px",width:c,height:u,top:f,left:d,zIndex:9,willChange:"transform"}},e.createElement(Na,{src:E,startFrom:y,containerWidth:c,containerHeight:u,faceMetadata:w,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:U,transparent:!0,muted:!0,translateY:100})):null,E&&(S||null!=U&&U.facePop||null!=U&&U.backgroundDim||null!=U&&U.backgroundBlur)&&!w?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",borderRadius:"0px 0px 20px 20px",width:c,height:u,top:f,left:d,zIndex:9}},e.createElement(r.pe,{startFrom:y,src:E,muted:!0,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===b?"0% 30%":void 0,filter:null!=U&&U.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}})):null,e.createElement(r.H1,{style:{zIndex:13}},n),p?e.createElement("div",{style:{position:"fixed",left:h,top:m,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:p})):null)},tc=function(t){var n=t.children,i=t.brollUrl,o=t.brollVideoWidthTransition,a=t.brollVideoHeightTransition,s=t.brollVideoTopTransition,l=t.brollVideoLeftTransition,c=t.mainVideoWidthTransition,u=t.mainVideoHeightTransition,f=t.mainVideoTopTransition,d=t.mainVideoLeftTransition,p=t.logoUrl,h=t.logoLeft,m=t.logoTop,g=t.frameColor,y=t.startVideoFrom,v=t.videoUrl,b=t.sourceVideoOrientation,x=t.muted,w=(t.orientation,t.faceMetadata),E=t.noBackgroundVideoUrl,U=t.noBackgroundVideoEffects,S=t.showVirtual,k=t.virtualBgUrl;return e.createElement(r.H1,{style:{backgroundColor:g||"transparent",padding:0,isolation:"isolate"}},i&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px 20px 0px 0px",width:o,height:a,top:s,left:l,zIndex:2,mask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)",WebkitMask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)"}},e.createElement(r.pe,{src:i,style:{height:"100%",objectFit:"cover",width:"100%"},muted:!0})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"0px 0px 20px 20px",width:c,height:u,top:f,left:d,zIndex:1}},S&&k?e.createElement(ml,{url:k,top:0,left:0,width:"100%",height:"100%",borderRadius:"0px 0px 20px 20px",zIndex:1}):null,w?e.createElement(Na,{startFrom:y,src:v,transparent:!1,muted:x,faceMetadata:w,containerWidth:c,centerHorizontally:!1,containerHeight:u,containerStyle:{filter:null!=U&&U.backgroundDim&&E?"brightness(0.7)":void 0}}):e.createElement(r.pe,{startFrom:y,src:v,muted:x,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===b?"0% 30%":void 0,filter:!S&&null!=U&&U.backgroundDim&&E?"brightness(0.7)":void 0}})),E&&(S||null!=U&&U.facePop||null!=U&&U.backgroundDim||null!=U&&U.backgroundBlur)&&w?e.createElement(r.H1,{style:{padding:g?Gn:0,isolation:"isolate",width:c,height:u,zIndex:9}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"0px 0px 20px 20px",width:c,height:u,top:f,left:d}},e.createElement(Na,{src:E,startFrom:y,containerWidth:c,containerHeight:u,faceMetadata:w,centerHorizontally:!1,noBackgroundVideoEffects:U,transparent:!0,muted:!0}))):null,E&&(S||null!=U&&U.facePop||null!=U&&U.backgroundDim||null!=U&&U.backgroundBlur)&&!w?e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:g?Gn:0,isolation:"isolate",width:c,height:u,zIndex:9}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"0px 0px 20px 20px",width:c,height:u,top:f,left:d}},e.createElement(r.pe,{startFrom:y,src:E,muted:!0,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",filter:null!=U&&U.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,objectPosition:"portrait"===b?"0% 30%":void 0}}))):null,e.createElement(r.H1,{style:{zIndex:10}},n),p?e.createElement("div",{style:{position:"fixed",left:h,top:m,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:p})):null)},rc=function(t){var n=t.children,i=t.brollUrl,o=t.brollVideoWidthTransition,a=t.brollVideoHeightTransition,s=t.brollVideoTopTransition,l=t.brollVideoLeftTransition,c=t.mainVideoWidthTransition,u=t.mainVideoHeightTransition,f=t.mainVideoTopTransition,d=t.mainVideoLeftTransition,p=t.logoUrl,h=t.logoLeft,m=t.logoTop,g=t.frameColor,y=t.startVideoFrom,v=t.videoUrl,b=t.sourceVideoOrientation,x=t.muted,w=t.faceMetadata,E=t.noBackgroundVideoEffects,U=t.noBackgroundVideoUrl,S=t.showVirtual,k=t.virtualBgUrl,C=ai().accentColor;return e.createElement(r.H1,{style:{backgroundColor:g||"transparent",padding:0,isolation:"isolate"}},i&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"0px",width:o,height:a,top:s,left:l,zIndex:1}},e.createElement(r.pe,{src:i,style:{height:"100%",objectFit:"cover",width:"100%"},muted:!0})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",border:"12px solid ".concat(C),width:c,height:u,top:f,left:d,zIndex:2}},S&&k?e.createElement(ml,{url:k,top:0,left:0,width:"100%",height:"100%",borderRadius:"20px",zIndex:1}):null,w?e.createElement(Na,{startFrom:y,src:v,transparent:!1,muted:x,faceMetadata:w,containerWidth:c,centerHorizontally:!1,containerHeight:u,containerStyle:{filter:!S&&null!=E&&E.backgroundDim&&U?"brightness(0.7)":void 0}}):e.createElement(r.pe,{startFrom:y,src:v,muted:x,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===b?"0% 30%":void 0,filter:!S&&null!=E&&E.backgroundDim&&U?"brightness(0.7)":void 0}})),(S||null!=E&&E.facePop||null!=E&&E.backgroundDim||null!=E&&E.backgroundBlur)&&U&&w?e.createElement(r.H1,{style:{padding:g?Gn:0,isolation:"isolate",width:c,height:u,zIndex:9}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",border:"12px solid ".concat(C),width:c,height:u,top:f,left:d}},e.createElement(Na,{src:U,startFrom:y,containerWidth:c,containerHeight:u,faceMetadata:w,centerHorizontally:!1,noBackgroundVideoEffects:E,transparent:!0,muted:!0}))):null,(S||null!=E&&E.facePop||null!=E&&E.backgroundDim||null!=E&&E.backgroundBlur)&&U&&!w?e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:g?Gn:0,isolation:"isolate",width:c,height:u,zIndex:9}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",border:"12px solid ".concat(C),width:c,height:u,top:f,left:d}},e.createElement(r.pe,{startFrom:y,src:U,muted:!0,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",filter:null!=E&&E.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,objectPosition:"portrait"===b?"0% 30%":void 0}}))):null,e.createElement(r.H1,{style:{zIndex:10}},n),p?e.createElement("div",{style:{position:"fixed",left:h,top:m,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:p})):null)},nc={},ic=((e,t)=>((e,t,n)=>{const i=[],o=t?[t]:Object.keys(e.fonts);for(const t of o){if("undefined"==typeof FontFace)continue;if(!e.fonts[t])throw new Error(`The font ${e.fontFamily} does not have a style ${t}`);const o=n?.weights??Object.keys(e.fonts[t]);for(const a of o){if(!e.fonts[t][a])throw new Error(`The font ${e.fontFamily} does not have a weight ${a} in style ${t}`);const o=n?.subsets??Object.keys(e.fonts[t][a]);for(const s of o){let o=e.fonts[t]?.[a]?.[s];if(!o)throw new Error(`weight: ${a} subset: ${s} is not available for '${e.fontFamily}'`);let l=`${e.fontFamily}-${t}-${a}-${s}`;const c=nc[l];if(c){i.push(c);continue}const u=(0,r.IH)(`Fetching ${e.fontFamily} font ${JSON.stringify({style:t,weight:a,subset:s})}`),f=new FontFace(e.fontFamily,`url(${o}) format('woff2')`,{weight:a,style:t,unicodeRange:e.unicodeRanges[s]}),d=f.load().then((()=>{(n?.document??document).fonts.add(f),(0,r._8)(u)})).catch((e=>{throw nc[l]=void 0,e}));nc[l]=d,i.push(d)}}}return{fontFamily:e.fontFamily,fonts:e.fonts,unicodeRanges:e.unicodeRanges,waitUntilDone:()=>Promise.all(i).then((()=>{}))}})({fontFamily:"Titan One",importName:"TitanOne",version:"v15",url:"https://fonts.googleapis.com/css2?family=Titan+One:ital,wght@0,400",unicodeRanges:{"latin-ext":"U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{normal:{400:{"latin-ext":"https://fonts.gstatic.com/s/titanone/v15/mFTzWbsGxbbS_J5cQcjCmjgm6Es.woff2",latin:"https://fonts.gstatic.com/s/titanone/v15/mFTzWbsGxbbS_J5cQcjClDgm.woff2"}}}},e,t))(),oc=ic.fontFamily,ac=Fo().fontFamily,sc={},lc=Fo().fontFamily,cc=((e,t)=>((e,t,n)=>{const i=[],o=t?[t]:Object.keys(e.fonts);for(const t of o){if("undefined"==typeof FontFace)continue;if(!e.fonts[t])throw new Error(`The font ${e.fontFamily} does not have a style ${t}`);const o=n?.weights??Object.keys(e.fonts[t]);for(const a of o){if(!e.fonts[t][a])throw new Error(`The font ${e.fontFamily} does not have a weight ${a} in style ${t}`);const o=n?.subsets??Object.keys(e.fonts[t][a]);for(const s of o){let o=e.fonts[t]?.[a]?.[s];if(!o)throw new Error(`weight: ${a} subset: ${s} is not available for '${e.fontFamily}'`);let l=`${e.fontFamily}-${t}-${a}-${s}`;const c=sc[l];if(c){i.push(c);continue}const u=(0,r.IH)(`Fetching ${e.fontFamily} font ${JSON.stringify({style:t,weight:a,subset:s})}`),f=new FontFace(e.fontFamily,`url(${o}) format('woff2')`,{weight:a,style:t,unicodeRange:e.unicodeRanges[s]}),d=f.load().then((()=>{(n?.document??document).fonts.add(f),(0,r._8)(u)})).catch((e=>{throw sc[l]=void 0,e}));sc[l]=d,i.push(d)}}}return{fontFamily:e.fontFamily,fonts:e.fonts,unicodeRanges:e.unicodeRanges,waitUntilDone:()=>Promise.all(i).then((()=>{}))}})({fontFamily:"Cherry Bomb One",importName:"CherryBombOne",version:"v8",url:"https://fonts.googleapis.com/css2?family=Cherry+Bomb+One:ital,wght@0,400",unicodeRanges:{"[3]":"U+fa10, U+fa12-fa6d, U+fb00-fb04, U+fe10-fe19, U+fe30-fe42, U+fe44-fe52, U+fe54-fe66, U+fe68-fe6b, U+ff02, U+ff04, U+ff07, U+ff51, U+ff5b, U+ff5d, U+ff5f-ff60, U+ff66, U+ff69, U+ff87, U+ffa1-ffbe, U+ffc2-ffc7, U+ffca-ffcf, U+ffd2-ffd6","[54]":"U+3028-303f, U+3094-3096, U+309f-30a0, U+30ee, U+30f7-30fa, U+30ff, U+3105-312f, U+3131-3163, U+3165-318e, U+3190-31bb, U+31c0-31c7","[58]":"U+2105, U+2109-210a, U+210f, U+2116, U+2121, U+2126-2127, U+212b, U+212e, U+2135, U+213b, U+2194-2199, U+21b8-21b9, U+21c4-21c6, U+21cb-21cc, U+21d0, U+21e6-21e9, U+21f5, U+2202-2203, U+2205-2206, U+2208-220b, U+220f, U+2211, U+2213, U+2215, U+221a, U+221d, U+2220, U+2223, U+2225-2226, U+2228, U+222a-222e, U+2234-2237, U+223d, U+2243, U+2245, U+2248, U+224c, U+2260, U+2262, U+2264-2265, U+226e-226f, U+2272-2273, U+2276-2277, U+2283-2287, U+228a-228b, U+2295-2299, U+22a0, U+22a5, U+22bf, U+22da-22db, U+22ef, U+2305-2307, U+2318, U+2329-232a, U+23b0-23b1, U+23be-23cc, U+23ce, U+23da-23db, U+2423, U+2469-24d0","[59]":"U+a1-a4, U+a6-a7, U+aa, U+ac-ad, U+b5-b6, U+b8-ba, U+bc-c8, U+ca-cc, U+ce-d5, U+d9-db, U+dd-df, U+e6, U+ee, U+f0, U+f5, U+f7, U+f9, U+fb, U+fe-102, U+110-113, U+11a-11b, U+128-12b, U+143-144, U+147-148, U+14c, U+14e-14f, U+152-153, U+168-16d, U+192, U+1a0-1a1, U+1af, U+1cd-1dc, U+1f8-1f9, U+251, U+261, U+2bb, U+2c7, U+2c9, U+2ea-2eb, U+304, U+307, U+30c, U+1e3e-1e3f, U+1ea0-1ebe, U+1ec0-1ec6, U+1ec8-1ef9, U+2011-2012, U+2016, U+2018-201a, U+201e, U+2021, U+2030, U+2033, U+2035, U+2042, U+2047, U+2051, U+2074, U+20a9, U+20ab-20ac, U+20dd-20de, U+2100","[61]":"U+a8, U+2032, U+2261, U+2282, U+3090, U+30f1, U+339c, U+535c, U+53d9, U+56a2, U+56c1, U+5806, U+589f, U+59d0, U+5a7f, U+60e0, U+639f, U+65af, U+68fa, U+69ae, U+6d1b, U+6ef2, U+71fb, U+725d, U+7262, U+75bc, U+7768, U+7940, U+79bf, U+7bed, U+7d68, U+7dfb, U+814b, U+8207, U+83e9, U+8494, U+8526, U+8568, U+85ea, U+86d9, U+87ba, U+8861, U+887f, U+8fe6, U+9059, U+9061, U+916a, U+976d, U+97ad, U+9ece","[62]":"U+2d9, U+21d4, U+301d, U+515c, U+52fe, U+5420, U+5750, U+5766, U+5954, U+5b95, U+5f8a, U+5f98, U+620c, U+621f, U+641c, U+66d9, U+676d, U+6775, U+67f5, U+694a, U+6a02, U+6a3a, U+6a80, U+6c23, U+6c72, U+6dcb, U+6faa, U+707c, U+71c8, U+7422, U+74e2, U+7791, U+7825, U+7a14, U+7a1c, U+7c95, U+7fc1, U+82a5, U+82db, U+8304, U+853d, U+8cd3, U+8de8, U+8f0c, U+8f3f, U+9091, U+91c7, U+929a, U+98af, U+9913","[65]":"U+b1, U+309b, U+4e5e, U+51f1, U+5506, U+55c5, U+58cc, U+59d1, U+5c51, U+5ef7, U+6284, U+62d7, U+6689, U+673d, U+6a2b, U+6a8e, U+6a9c, U+6d63, U+6dd1, U+70b8, U+7235, U+72db, U+72f8, U+7560, U+7c9b, U+7ce7, U+7e1e, U+80af, U+82eb, U+8463, U+8499, U+85dd, U+86ee, U+8a60, U+8a6e, U+8c79, U+8e87, U+8e8a, U+8f5f, U+9010, U+918d, U+9190, U+965b, U+97fb, U+9ab8, U+9bad, U+9d3b, U+9d5c, U+9dfa, U+9e93","[66]":"U+2020, U+3003, U+3231, U+4e9b, U+4f3d, U+4f47, U+51b6, U+51dc, U+53e1, U+5bc5, U+602f, U+60bc, U+61c9, U+633d, U+637b, U+6492, U+65fa, U+660f, U+66f0, U+6703, U+681e, U+6876, U+6893, U+6912, U+698e, U+6c7d, U+714c, U+7169, U+71d5, U+725f, U+72d7, U+745b, U+74dc, U+75e2, U+7891, U+7897, U+7dcb, U+810a, U+8218, U+8339, U+840e, U+852d, U+8823, U+8a0a, U+9089, U+919c, U+971c, U+9ad9, U+ff4a, U+ff5a","[70]":"U+266b, U+3006, U+5176, U+5197, U+51a8, U+51c6, U+52f2, U+5614, U+5875, U+5a2f, U+5b54, U+5ce0, U+5dba, U+5deb, U+5e63, U+5f59, U+5fcc, U+6068, U+6367, U+68b6, U+6a0b, U+6b64, U+6e15, U+6eba, U+7272, U+72a0, U+7947, U+7985, U+79e6, U+79e9, U+7a3d, U+7a9f, U+7aaf, U+7b95, U+7f60, U+7f9e, U+7fe0, U+8098, U+80ba, U+8106, U+82d4, U+831c, U+87f9, U+8a1f, U+8acf, U+90c1, U+920d, U+9756, U+fe43, U+ff94","[71]":"U+af, U+2465, U+2517, U+33a1, U+4f10, U+50c5, U+51b4, U+5384, U+5606, U+5bb0, U+5cac, U+5ee3, U+618e, U+61f2, U+62c9, U+66ab, U+66f9, U+6816, U+6960, U+6b3e, U+6f20, U+7078, U+72d0, U+73ed, U+7ad9, U+7b1b, U+7be4, U+7d62, U+7f51, U+80b4, U+80f4, U+8154, U+85fb, U+865c, U+8702, U+895f, U+8aed, U+8b90, U+8ced, U+8fbf, U+91d8, U+9418, U+9583, U+9591, U+9813, U+982c, U+9bd6, U+ff46, U+ff7f, U+ff88","[75]":"U+2464, U+2501, U+2640, U+2642, U+339d, U+4f0e, U+5091, U+50b5, U+5132, U+51cc, U+558b, U+55aa, U+585e, U+5bee, U+5dfe, U+60b6, U+62b9, U+6349, U+6566, U+6590, U+6842, U+689d, U+6a58, U+6c70, U+6ff1, U+7815, U+7881, U+7aaa, U+7bc7, U+7def, U+7fa8, U+8017, U+8036, U+8061, U+821f, U+8429, U+8ce0, U+8e74, U+9019, U+90ca, U+9162, U+932f, U+93ae, U+9644, U+990c, U+9cf3, U+ff56, U+ff6e, U+ff7e, U+ff85","[76]":"U+2266-2267, U+4f2f, U+5208, U+5451, U+546a, U+5589, U+576a, U+5815, U+5a9a, U+5b9b, U+5c3a, U+5efb, U+5faa, U+6109, U+6643, U+6652, U+695a, U+69fd, U+6b86, U+6bb4, U+6daf, U+7089, U+70cf, U+7a00, U+7a4f, U+7b39, U+7d33, U+80e1, U+828b, U+82a6, U+86cd, U+8c8c, U+8cca, U+8df3, U+9077, U+9175, U+91dc, U+925b, U+9262, U+9271, U+92ed, U+9855, U+9905, U+9d28, U+ff3f, U+ff58, U+ff68, U+ff6d, U+ff9c","[77]":"U+2207, U+25ef, U+309c, U+4e4f, U+5146, U+51dd, U+5351, U+540a, U+5629, U+5eb5, U+5f04, U+5f13, U+60dc, U+6212, U+63b4, U+642c, U+6627, U+66a6, U+66c7, U+66fd, U+674e, U+6b96, U+6c4e, U+6df3, U+6e67, U+6f84, U+72fc, U+733f, U+7c97, U+7db1, U+7e4d, U+816b, U+82d1, U+84cb, U+854e, U+8607, U+86c7, U+871c, U+8776, U+8a89, U+8fc4, U+91a4, U+9285, U+9685, U+9903, U+9b31, U+9f13, U+ff42, U+ff74, U+ff91","[78]":"U+4e32, U+51db, U+53a8, U+53ea, U+5609, U+5674, U+5a92, U+5e7e, U+6115, U+611a, U+62cc, U+62ed, U+63c9, U+64b9, U+64e6, U+65cb, U+6606, U+6731, U+683d, U+6afb, U+7460, U+771e, U+78ef, U+7b26, U+7b51, U+7cde, U+7d10, U+7d2f, U+7d46, U+80de, U+819c, U+84b2, U+85cd, U+865a, U+8ecc, U+9022, U+90b8, U+9192, U+9675, U+96b7, U+99ff, U+ff44, U+ff55, U+ff6c, U+ff73, U+ff75, U+ff86, U+ff8d, U+ff92, U+ffe3","[79]":"U+25b3, U+30f5, U+4eae, U+4f46, U+4f51, U+5203, U+52ff, U+55a7, U+564c, U+565b, U+57f9, U+5805, U+5b64, U+5e06, U+5f70, U+5f90, U+60e8, U+6182, U+62f3, U+62fe, U+63aa, U+64a4, U+65d7, U+673a, U+6851, U+68cb, U+68df, U+6d1e, U+6e58, U+6e9d, U+77b3, U+7832, U+7c3f, U+7db4, U+7f70, U+80aa, U+80c6, U+8105, U+819d, U+8276, U+8679, U+8986, U+8c9d, U+8fc5, U+916c, U+9665, U+9699, U+96c0, U+9a19, U+ff8b","[80]":"U+2463, U+25a1, U+4ef0, U+5076, U+5098, U+51fd, U+5302, U+5448, U+54c9, U+570b, U+583a, U+5893, U+58a8, U+58ee, U+5949, U+5bdb, U+5f26, U+5f81, U+6052, U+6170, U+61c7, U+631f, U+635c, U+664b, U+69fb, U+6f01, U+7070, U+722a, U+745e, U+755c, U+76c6, U+78c1, U+79e4, U+7bb8, U+7d0b, U+81a8, U+82d7, U+8b5c, U+8f14, U+8fb1, U+8fbb, U+9283, U+9298, U+9a30, U+ff03, U+ff50, U+ff59, U+ff7b, U+ff8e-ff8f","[81]":"U+2010, U+2502, U+25b6, U+4f3a, U+514b, U+5265, U+52c3, U+5339, U+53ec, U+54c0, U+55b0, U+5854, U+5b8f, U+5cb3, U+5e84, U+60da, U+6247, U+6249, U+628a, U+62cd, U+65ac, U+6838, U+690e, U+6cf0, U+6f02, U+6f2c, U+6f70, U+708a, U+7434, U+75be, U+77ef, U+7c60, U+7c98, U+7d1b, U+7e2b, U+80a5, U+81e3, U+820c, U+8210, U+8475, U+862d, U+8650, U+8997, U+906d, U+91c8, U+9700, U+9727, U+9df9, U+ff3a, U+ff9a","[82]":"U+2103, U+5049, U+52b1, U+5320, U+5553, U+572d, U+58c7, U+5b5d, U+5bc2, U+5de3, U+5e61, U+5f80, U+61a9, U+67d0, U+67f4, U+6c88, U+6ca1, U+6ce5, U+6d78, U+6e9c, U+6f54, U+731b, U+73b2, U+74a7, U+74f6, U+75e9, U+7b20, U+7c8b, U+7f72, U+809d, U+8108, U+82b3, U+82bd, U+84b8, U+84c4, U+88c2, U+8ae6, U+8ef8, U+902e, U+9065, U+9326, U+935b, U+938c, U+9676, U+9694, U+96f7, U+9ed9, U+ff48, U+ff4c, U+ff81","[84]":"U+3014-3015, U+4e3c, U+5036, U+5075, U+533f, U+53e9, U+5531, U+5642, U+5984, U+59e6, U+5a01, U+5b6b, U+5c0b, U+5f25, U+6069, U+60a0, U+614e, U+62b5, U+62d2-62d3, U+6597, U+660c, U+674f, U+67cf, U+6841, U+6905, U+6cf3, U+6d32, U+6d69, U+6f64, U+716e, U+7761, U+7b52, U+7be0, U+7dbf, U+7de9, U+7f36, U+81d3, U+8302, U+8389, U+846c, U+84ee, U+8a69, U+9038, U+9d8f, U+ff47, U+ff4b, U+ff76, U+ff9b","[85]":"U+25c7, U+3007, U+504f, U+507d, U+51a0, U+52a3, U+5410, U+5510, U+559a, U+5782, U+582a, U+5c0a, U+5c3f, U+5c48, U+5f6b, U+6176, U+622f, U+6279, U+62bd, U+62dd, U+65ed, U+67b6, U+6817, U+6850, U+6d6a, U+6deb, U+6ea2, U+6edd, U+6f5c, U+72e9, U+73a9, U+7573, U+76bf, U+7950, U+7956, U+7f8a, U+7ffc, U+80a2, U+80c3, U+83ca, U+8a02, U+8a13, U+8df5, U+9375, U+983b, U+99b4, U+ff4e, U+ff71, U+ff89, U+ff97","[86]":"U+24, U+2022, U+2212, U+221f, U+2665, U+4ecf, U+5100, U+51cd, U+52d8, U+5378, U+53f6, U+574a, U+5982, U+5996, U+5c1a, U+5e1d, U+5f84, U+609f, U+61a7, U+61f8, U+6398, U+63ee, U+6676, U+6691, U+6eb6, U+7126, U+71e5, U+7687, U+7965, U+7d17, U+80a1, U+8107, U+8266, U+85a6, U+8987, U+8ca2, U+8cab, U+8e0a, U+9042, U+95c7, U+9810, U+9867, U+98fc, U+ff52-ff54, U+ff61, U+ff77, U+ff98-ff99","[87]":"U+b0, U+226a, U+2462, U+4e39, U+4fc3, U+4fd7, U+50be, U+50da, U+5200, U+5211, U+54f2, U+5618, U+596a, U+5b22, U+5bb4, U+5d50, U+60a3, U+63fa, U+658e, U+65e8, U+6669, U+6795, U+679d, U+67a0, U+6b3a, U+6e09, U+757f, U+7cd6, U+7dbe, U+7ffb, U+83cc, U+83f1, U+840c, U+845b, U+8846, U+8972, U+8a34, U+8a50, U+8a87, U+8edf, U+8ff0, U+90a6, U+9154, U+95a3, U+9663, U+9686, U+96c7, U+ff3c, U+ff7c, U+ff8a","[88]":"U+25bd, U+4e59, U+4ec1, U+4ff3, U+515a, U+518a, U+525b, U+5375, U+552f, U+57a3, U+5b9c, U+5c3d, U+5e3d, U+5e7b, U+5f0a, U+6094, U+6458, U+654f, U+67f3, U+6b8a, U+6bd2, U+6c37, U+6ce1, U+6e56, U+6e7f, U+6ed1, U+6ede, U+6f0f, U+70ad, U+7267, U+7363, U+786c, U+7a42, U+7db2, U+7f85, U+8178, U+829d, U+8896, U+8c5a, U+8cb0, U+8ce2, U+8ed2, U+9047, U+9177, U+970a, U+9ea6, U+ff1b, U+ff31, U+ff39, U+ff80","[89]":"U+a5, U+4e80, U+4f34, U+4f73, U+4f75, U+511f, U+5192, U+52aa, U+53c8, U+570f, U+57cb, U+596e, U+5d8b, U+5f66, U+5fd9, U+62db, U+62f6, U+6328, U+633f, U+63a7, U+6469, U+6bbf, U+6c41, U+6c57, U+6d44, U+6dbc, U+706f, U+72c2, U+72ed, U+7551, U+75f4, U+7949, U+7e26, U+7fd4, U+8150, U+8af8, U+8b0e, U+8b72, U+8ca7, U+934b, U+9a0e, U+9a12, U+9b42, U+ff41, U+ff43, U+ff45, U+ff49, U+ff4f, U+ff62-ff63","[90]":"U+4e18, U+4fb5, U+5104, U+52c7, U+5353, U+5374, U+53e5, U+587e, U+594f, U+5a20, U+5de1, U+5f18, U+5fcd, U+6291, U+62ab, U+6355, U+6392, U+63da, U+63e1, U+656c, U+6687, U+68b0-68b1, U+68d2, U+68da, U+6b27, U+6cbc, U+7159, U+7344, U+73cd, U+76df, U+790e, U+7cf8, U+8102, U+88c1, U+8aa0, U+8e0f, U+9178, U+92ad, U+9670, U+96c5, U+9cf4, U+9db4, U+ff3e, U+ff6f, U+ff72, U+ff78, U+ff7d, U+ff84, U+ff8c","[91]":"U+60, U+2200, U+226b, U+2461, U+517c, U+526f, U+5800, U+5b97, U+5bf8, U+5c01, U+5d29, U+5e4c, U+5e81, U+6065, U+61d0, U+667a, U+6696, U+6843, U+6c99, U+6d99, U+6ec5, U+6f22, U+6f6e, U+6fa4, U+6fef, U+71c3, U+72d9, U+7384, U+78e8, U+7a1a, U+7a32, U+7a3c, U+7adc, U+7ca7, U+7d2b, U+7dad, U+7e4b, U+80a9, U+8170, U+81ed, U+820e, U+8a17, U+8afe, U+90aa, U+914e, U+963f, U+99c4, U+9eba, U+9f3b, U+ff38","[92]":"U+2460, U+4e5f, U+4e7e, U+4ed9, U+501f, U+502b, U+5968, U+5974, U+5ac1, U+5b99, U+5ba3, U+5be7, U+5be9, U+5c64, U+5cb8, U+5ec3, U+5f1f, U+616e, U+6297, U+62e0, U+62ec, U+6368, U+642d, U+65e6, U+6717, U+676f, U+6b04, U+732e, U+7652, U+76ca, U+76d7, U+7802, U+7e70, U+7f6a, U+8133, U+81e8, U+866b, U+878d, U+88f8, U+8a5e, U+8cdb, U+8d08, U+907a, U+90e1, U+96f2, U+9f8d, U+ff35, U+ff37, U+ff40, U+ff9d","[93]":"U+21d2, U+25ce, U+300a-300b, U+4e89, U+4e9c, U+4ea1, U+5263, U+53cc, U+5426, U+5869, U+5947, U+598a, U+5999, U+5e55, U+5e72, U+5e79, U+5fae, U+5fb9, U+602a, U+6163, U+624d, U+6749, U+6c5a, U+6cbf, U+6d45, U+6dfb, U+6e7e, U+708e, U+725b, U+7763, U+79c0, U+7bc4, U+7c89, U+7e01, U+7e2e, U+8010, U+8033, U+8c6a, U+8cc3, U+8f1d, U+8f9b, U+8fb2, U+907f, U+90f7, U+9707, U+9818, U+9b3c, U+ff0a, U+ff4d","[94]":"U+2015, U+2190, U+4e43, U+5019, U+5247, U+52e7, U+5438, U+54b2, U+55ab, U+57f7, U+5bd2, U+5e8a, U+5ef6, U+6016, U+60b2, U+6162, U+6319, U+6551, U+6607, U+66b4, U+675f, U+67d4, U+6b20, U+6b53, U+6ce3, U+719f, U+75b2, U+770b, U+7720, U+77ac, U+79d2, U+7af9, U+7d05, U+7dca, U+8056, U+80f8, U+81f3, U+8352, U+885d, U+8a70, U+8aa4, U+8cbc, U+900f, U+9084, U+91e3, U+9451, U+96c4, U+99c6, U+9ad4, U+ff70","[95]":"U+2193, U+25b2, U+4e4b, U+516d, U+51c4, U+529f, U+52c9, U+5360, U+5442, U+5857, U+5915, U+59eb, U+5a9b, U+5c3b, U+6012, U+61b6, U+62b1, U+6311, U+6577, U+65e2, U+65ec, U+6613, U+6790, U+6cb9, U+7372, U+76ae, U+7d5e, U+7fcc, U+88ab, U+88d5, U+8caf, U+8ddd, U+8ecd, U+8f38, U+8f9e, U+8feb, U+9063, U+90f5, U+93e1, U+968a, U+968f, U+98fe, U+9ec4, U+ff1d, U+ff27, U+ff2a, U+ff36, U+ff3b, U+ff3d, U+ffe5","[96]":"U+4e03, U+4f38, U+50b7, U+5264, U+5348, U+5371, U+585a, U+58ca, U+5951, U+59b9, U+59d4, U+5b98, U+5f8b, U+6388, U+64cd, U+65e7, U+6803, U+6b6f, U+6d66, U+6e0b, U+6ecb, U+6fc3, U+72ac, U+773c, U+77e2, U+7968, U+7a74, U+7dba, U+7dd1, U+7e3e, U+808c, U+811a, U+8179, U+8239, U+8584, U+8a0e, U+8a72, U+8b66, U+8c46, U+8f29, U+90a3, U+9234, U+96f0, U+9769, U+9774, U+9aa8, U+ff26, U+ff28, U+ff9e-ff9f","[97]":"U+7e, U+b4, U+25c6, U+2661, U+4e92, U+4eee, U+4ffa, U+5144, U+5237, U+5287, U+52b4, U+58c1, U+5bff, U+5c04, U+5c06, U+5e95, U+5f31, U+5f93, U+63c3, U+640d, U+6557, U+6614, U+662f, U+67d3, U+690d, U+6bba, U+6e6f, U+72af, U+732b, U+7518, U+7ae0, U+7ae5, U+7af6, U+822a, U+89e6, U+8a3a, U+8a98, U+8cb8, U+8de1, U+8e8d, U+95d8, U+961c, U+96a3, U+96ea, U+9bae, U+ff20, U+ff22, U+ff29, U+ff2b-ff2c","[98]":"U+25cb, U+4e71, U+4f59, U+50d5, U+520a, U+5217, U+5230, U+523a-523b, U+541b, U+5439, U+5747, U+59c9, U+5bdf, U+5c31, U+5de8, U+5e7c, U+5f69, U+6050, U+60d1, U+63cf, U+663c, U+67c4, U+6885, U+6c38, U+6d6e, U+6db2, U+6df7, U+6e2c, U+6f5f, U+7532, U+76e3-76e4, U+7701, U+793c, U+79f0, U+7a93, U+7d00, U+7de0, U+7e54, U+8328, U+8840, U+969c, U+96e8, U+9811, U+9aea, U+9b5a, U+ff24, U+ff2e, U+ff57","[99]":"U+2191, U+505c, U+52e4, U+5305, U+535a, U+56e0, U+59bb, U+5acc, U+5b09, U+5b87, U+5c90, U+5df1, U+5e2d, U+5e33, U+5f3e, U+6298, U+6383, U+653b, U+6697, U+6804, U+6a39, U+6cca, U+6e90, U+6f2b, U+702c, U+7206, U+7236, U+7559, U+7565, U+7591, U+75c7, U+75db, U+7b4b, U+7bb1, U+7d99, U+7fbd, U+8131, U+885b, U+8b1d, U+8ff7, U+9003, U+9045, U+96a0, U+9732, U+990a, U+99d0, U+9e97, U+9f62, U+ff25, U+ff2d","[100]":"U+4e08, U+4f9d, U+5012, U+514d, U+51b7, U+5275, U+53ca, U+53f8, U+5584, U+57fc, U+5b9d, U+5bfa, U+5c3e, U+5f01, U+5fb4, U+5fd7, U+606f, U+62e1, U+6563, U+6674, U+6cb3, U+6d3e, U+6d74, U+6e1b, U+6e2f, U+718a, U+7247, U+79d8, U+7d14, U+7d66, U+7d71, U+7df4, U+7e41, U+80cc, U+8155, U+83d3, U+8a95, U+8ab2, U+8ad6, U+8ca1, U+9000, U+9006, U+9678, U+97d3, U+9808, U+98ef, U+9a5a, U+9b45, U+ff23, U+ff30","[101]":"U+25bc, U+3012, U+4ef2, U+4f0a, U+516b, U+5373, U+539a, U+53b3, U+559c, U+56f0, U+5727, U+5742, U+5965, U+59ff, U+5bc6, U+5dfb, U+5e45, U+5ead, U+5fb3, U+6211, U+6253, U+639b, U+63a8, U+6545, U+6575, U+6628, U+672d, U+68a8, U+6bdb, U+6d25, U+707d, U+767e, U+7834, U+7b46, U+7bc9, U+8074, U+82e6, U+8349, U+8a2a, U+8d70, U+8da3, U+8fce, U+91cc, U+967d, U+97ff, U+9996, U+ff1c, U+ff2f, U+ff32, U+ff34","[102]":"U+3d, U+5e, U+25cf, U+4e0e, U+4e5d, U+4e73, U+4e94, U+4f3c, U+5009, U+5145, U+51ac, U+5238, U+524a, U+53f3, U+547c, U+5802, U+5922, U+5a66, U+5c0e, U+5de6, U+5fd8, U+5feb, U+6797, U+685c, U+6b7b, U+6c5f-6c60, U+6cc9, U+6ce2, U+6d17, U+6e21, U+7167, U+7642, U+76db, U+8001, U+821e, U+8857, U+89d2, U+8b1b, U+8b70, U+8cb4, U+8cde, U+8f03, U+8f2a, U+968e, U+9b54, U+9e7f, U+9ebb, U+ff05, U+ff33","[103]":"U+500d, U+5074, U+50cd, U+5175, U+52e2, U+5352, U+5354, U+53f2, U+5409, U+56fa, U+5a18, U+5b88, U+5bdd, U+5ca9, U+5f92, U+5fa9, U+60a9, U+623f, U+6483, U+653f, U+666f, U+66ae, U+66f2, U+6a21, U+6b66, U+6bcd, U+6d5c, U+796d, U+7a4d, U+7aef, U+7b56, U+7b97, U+7c4d, U+7e04, U+7fa9, U+8377, U+83dc, U+83ef, U+8535, U+8863, U+88cf, U+88dc, U+8907, U+8acb, U+90ce, U+91dd, U+ff0b, U+ff0d, U+ff19, U+ff65","[104]":"U+4e01, U+4e21, U+4e38, U+52a9, U+547d, U+592e, U+5931, U+5b63, U+5c40, U+5dde, U+5e78, U+5efa, U+5fa1, U+604b, U+6075, U+62c5, U+632f, U+6a19, U+6c0f, U+6c11, U+6c96, U+6e05, U+70ba, U+71b1, U+7387, U+7403, U+75c5, U+77ed, U+795d, U+7b54, U+7cbe, U+7d19, U+7fa4, U+8089, U+81f4, U+8208, U+8336, U+8457, U+8a33, U+8c4a, U+8ca0, U+8ca8, U+8cc0, U+9014, U+964d, U+9803, U+983c, U+98db, U+ff17, U+ff21","[105]":"U+25, U+25a0, U+4e26, U+4f4e, U+5341, U+56f2, U+5bbf, U+5c45, U+5c55, U+5c5e, U+5dee, U+5e9c, U+5f7c, U+6255, U+627f, U+62bc, U+65cf, U+661f, U+666e, U+66dc, U+67fb, U+6975, U+6a4b, U+6b32, U+6df1, U+6e29, U+6fc0, U+738b, U+7686, U+7a76, U+7a81, U+7c73, U+7d75, U+7dd2, U+82e5, U+82f1, U+85ac, U+888b, U+899a, U+8a31, U+8a8c, U+8ab0, U+8b58, U+904a, U+9060, U+9280, U+95b2, U+984d, U+9ce5, U+ff18","[106]":"U+30f6, U+50ac, U+5178, U+51e6, U+5224, U+52dd, U+5883, U+5897, U+590f, U+5a5a, U+5bb3, U+5c65, U+5e03, U+5e2b, U+5e30, U+5eb7, U+6271, U+63f4, U+64ae, U+6574, U+672b, U+679a, U+6a29-6a2a, U+6ca2, U+6cc1, U+6d0b, U+713c, U+74b0, U+7981, U+7a0b, U+7bc0, U+7d1a, U+7d61, U+7fd2, U+822c, U+8996, U+89aa, U+8cac, U+8cbb, U+8d77, U+8def, U+9020, U+9152, U+9244, U+9662, U+967a, U+96e3, U+9759, U+ff16","[107]":"U+23, U+3c, U+2192, U+4e45, U+4efb, U+4f50, U+4f8b, U+4fc2, U+5024, U+5150, U+5272, U+5370, U+53bb, U+542b, U+56db, U+56e3, U+57ce, U+5bc4, U+5bcc, U+5f71, U+60aa, U+6238, U+6280, U+629c, U+6539, U+66ff, U+670d, U+677e-677f, U+6839, U+69cb, U+6b4c, U+6bb5, U+6e96, U+6f14, U+72ec, U+7389, U+7814, U+79cb, U+79d1, U+79fb, U+7a0e, U+7d0d, U+85e4, U+8d64, U+9632, U+96e2, U+9805, U+99ac, U+ff1e","[108]":"U+2605-2606, U+301c, U+4e57, U+4fee, U+5065, U+52df, U+533b, U+5357, U+57df, U+58eb, U+58f0, U+591c, U+592a-592b, U+5948, U+5b85, U+5d0e, U+5ea7, U+5ff5, U+6025, U+63a1, U+63a5, U+63db, U+643a, U+65bd, U+671d, U+68ee, U+6982, U+6b73, U+6bd4, U+6d88, U+7570, U+7b11, U+7d76, U+8077, U+8217, U+8c37, U+8c61, U+8cc7, U+8d85, U+901f, U+962a, U+9802, U+9806, U+9854, U+98f2, U+9928, U+99c5, U+9ed2","[109]":"U+266a, U+4f11, U+533a, U+5343, U+534a, U+53cd, U+5404, U+56f3, U+5b57-5b58, U+5bae, U+5c4a, U+5e0c, U+5e2f, U+5eab, U+5f35, U+5f79, U+614b, U+6226, U+629e, U+65c5, U+6625, U+6751, U+6821, U+6b69, U+6b8b, U+6bce, U+6c42, U+706b, U+7c21, U+7cfb, U+805e, U+80b2, U+82b8, U+843d, U+8853, U+88c5, U+8a3c, U+8a66, U+8d8a, U+8fba, U+9069, U+91cf, U+9752, U+975e, U+9999, U+ff0f-ff10, U+ff14-ff15","[110]":"U+40, U+4e86, U+4e95, U+4f01, U+4f1d, U+4fbf, U+5099, U+5171, U+5177, U+53cb, U+53ce, U+53f0, U+5668, U+5712, U+5ba4, U+5ca1, U+5f85, U+60f3, U+653e, U+65ad, U+65e9, U+6620, U+6750, U+6761, U+6b62, U+6b74, U+6e08, U+6e80, U+7248, U+7531, U+7533, U+753a, U+77f3, U+798f, U+7f6e, U+8449, U+88fd, U+89b3, U+8a55, U+8ac7, U+8b77, U+8db3, U+8efd, U+8fd4, U+9031-9032, U+9580, U+9589, U+96d1, U+985e","[111]":"U+2b, U+d7, U+300e-300f, U+4e07, U+4e8c, U+512a, U+5149, U+518d, U+5236, U+52b9, U+52d9, U+5468, U+578b, U+57fa, U+5b8c, U+5ba2, U+5c02, U+5de5, U+5f37, U+5f62, U+623b, U+63d0, U+652f, U+672a, U+6848, U+6d41, U+7136, U+7537, U+754c, U+76f4, U+79c1, U+7ba1, U+7d44, U+7d4c, U+7dcf, U+7dda, U+7de8, U+82b1, U+897f, U+8ca9, U+8cfc, U+904e, U+9664, U+982d, U+9858, U+98a8, U+9a13, U+ff13, U+ff5c","[112]":"U+4e16, U+4e3b, U+4ea4, U+4ee4, U+4f4d, U+4f4f, U+4f55, U+4f9b, U+5317, U+5358, U+53c2, U+53e4, U+548c, U+571f, U+59cb, U+5cf6, U+5e38, U+63a2, U+63b2, U+6559, U+662d, U+679c, U+6c7a, U+72b6, U+7523, U+767d, U+770c, U+7a2e, U+7a3f, U+7a7a, U+7b2c, U+7b49, U+7d20, U+7d42, U+8003, U+8272, U+8a08, U+8aac, U+8cb7, U+8eab, U+8ee2, U+9054-9055, U+90fd, U+914d, U+91cd, U+969b, U+97f3, U+984c, U+ff06","[113]":"U+26, U+5f, U+2026, U+203b, U+4e09, U+4eac, U+4ed5, U+4fa1, U+5143, U+5199, U+5207, U+539f, U+53e3, U+53f7, U+5411, U+5473, U+5546, U+55b6, U+5929, U+597d, U+5bb9, U+5c11, U+5c4b, U+5ddd, U+5f97, U+5fc5, U+6295, U+6301, U+6307, U+671b, U+76f8, U+78ba, U+795e, U+7d30, U+7d39, U+7d9a, U+89e3, U+8a00, U+8a73, U+8a8d, U+8a9e, U+8aad, U+8abf, U+8cea, U+8eca, U+8ffd, U+904b, U+9650, U+ff11-ff12","[114]":"U+3e, U+3005, U+4e0d, U+4e88, U+4ecb, U+4ee3, U+4ef6, U+4fdd, U+4fe1, U+500b, U+50cf, U+5186, U+5316, U+53d7, U+540c, U+544a, U+54e1, U+5728, U+58f2, U+5973, U+5b89, U+5c71, U+5e02, U+5e97, U+5f15, U+5fc3, U+5fdc, U+601d, U+611b, U+611f, U+671f, U+6728, U+6765, U+683c, U+6b21, U+6ce8, U+6d3b, U+6d77, U+7530, U+7740, U+7acb, U+7d50, U+826f, U+8f09, U+8fbc, U+9001, U+9053, U+91ce, U+9762, U+98df","[115]":"U+7c, U+3080, U+4ee5, U+5148, U+516c, U+521d, U+5225, U+529b, U+52a0, U+53ef, U+56de, U+56fd, U+5909, U+591a, U+5b66, U+5b9f, U+5bb6, U+5bfe, U+5e73, U+5e83, U+5ea6, U+5f53, U+6027, U+610f, U+6210, U+6240, U+660e, U+66f4, U+66f8, U+6709, U+6771, U+697d, U+69d8, U+6a5f, U+6c34, U+6cbb, U+73fe, U+756a, U+7684, U+771f, U+793a, U+7f8e, U+898f, U+8a2d, U+8a71, U+8fd1, U+9078, U+9577, U+96fb, U+ff5e","[116]":"U+a9, U+3010-3011, U+30e2, U+4e0b, U+4eca, U+4ed6, U+4ed8, U+4f53, U+4f5c, U+4f7f, U+53d6, U+540d, U+54c1, U+5730, U+5916, U+5b50, U+5c0f, U+5f8c, U+624b, U+6570, U+6587, U+6599, U+691c, U+696d, U+6cd5, U+7269, U+7279, U+7406, U+767a-767b, U+77e5, U+7d04, U+7d22, U+8005, U+80fd, U+81ea, U+8868, U+8981, U+89a7, U+901a, U+9023, U+90e8, U+91d1, U+9332, U+958b, U+96c6, U+9ad8, U+ff1a, U+ff1f","[117]":"U+4e, U+a0, U+3000, U+300c-300d, U+4e00, U+4e0a, U+4e2d, U+4e8b, U+4eba, U+4f1a, U+5165, U+5168, U+5185, U+51fa, U+5206, U+5229, U+524d, U+52d5, U+5408, U+554f, U+5831, U+5834, U+5927, U+5b9a, U+5e74, U+5f0f, U+60c5, U+65b0, U+65b9, U+6642, U+6700, U+672c, U+682a, U+6b63, U+6c17, U+7121, U+751f, U+7528, U+753b, U+76ee, U+793e, U+884c, U+898b, U+8a18, U+9593, U+95a2, U+ff01, U+ff08-ff09","[118]":"U+21-22, U+27-2a, U+2c-3b, U+3f, U+41-4d, U+4f-5d, U+61-7b, U+7d, U+ab, U+ae, U+b2-b3, U+b7, U+bb, U+c9, U+cd, U+d6, U+d8, U+dc, U+e0-e5, U+e7-ed, U+ef, U+f1-f4, U+f6, U+f8, U+fa, U+fc-fd, U+103, U+14d, U+1b0, U+300-301, U+1ebf, U+1ec7, U+2013-2014, U+201c-201d, U+2039-203a, U+203c, U+2048-2049, U+2113, U+2122, U+65e5, U+6708, U+70b9","[119]":"U+20, U+2027, U+3001-3002, U+3041-307f, U+3081-308f, U+3091-3093, U+3099-309a, U+309d-309e, U+30a1-30e1, U+30e3-30ed, U+30ef-30f0, U+30f2-30f4, U+30fb-30fe, U+ff0c, U+ff0e",vietnamese:"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB","latin-ext":"U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{normal:{400:{"[3]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.3.woff2","[54]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.54.woff2","[58]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.58.woff2","[59]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.59.woff2","[61]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.61.woff2","[62]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.62.woff2","[65]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.65.woff2","[66]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.66.woff2","[70]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.70.woff2","[71]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.71.woff2","[75]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.75.woff2","[76]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.76.woff2","[77]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.77.woff2","[78]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.78.woff2","[79]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.79.woff2","[80]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.80.woff2","[81]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.81.woff2","[82]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.82.woff2","[84]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.84.woff2","[85]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.85.woff2","[86]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.86.woff2","[87]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.87.woff2","[88]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.88.woff2","[89]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.89.woff2","[90]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.90.woff2","[91]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.91.woff2","[92]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.92.woff2","[93]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.93.woff2","[94]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.94.woff2","[95]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.95.woff2","[96]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.96.woff2","[97]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.97.woff2","[98]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.98.woff2","[99]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.99.woff2","[100]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.100.woff2","[101]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.101.woff2","[102]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.102.woff2","[103]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.103.woff2","[104]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.104.woff2","[105]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.105.woff2","[106]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.106.woff2","[107]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.107.woff2","[108]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.108.woff2","[109]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.109.woff2","[110]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.110.woff2","[111]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.111.woff2","[112]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.112.woff2","[113]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.113.woff2","[114]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.114.woff2","[115]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.115.woff2","[116]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.116.woff2","[117]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.117.woff2","[118]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.118.woff2","[119]":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhrKCbJV4UaZm3sXy9jN_RPRW5J5Vu-09rA.119.woff2",vietnamese:"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhr6BNBE01c.woff2","latin-ext":"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhr6BdBE01c.woff2",latin:"https://fonts.gstatic.com/s/cherrybombone/v8/y83DW4od1h6KlV3c6JJhRhGOdhr6C9BE.woff2"}}}},e,t))(),uc=cc.fontFamily,fc=Fo().fontFamily,dc=function(t){var n=t.transcript,i=t.color,o=t.accentColor,a=t.frame;return n.text.split(" ").map((function(t,s){var l,c,u=a>=Number((null===(l=n.punctuations.find((function(e){return e.index===s})))||void 0===l?void 0:l.start)||0)&&Number(a<=(null===(c=n.punctuations.find((function(e){return e.index===s})))||void 0===c?void 0:c.end)),f=(0,r.UC)(),d=(0,r.Bk)().fps,p=(0,r.oz)({frame:f,fps:d,from:20,to:100,stiffness:200,damping:80,durationInFrames:15});return e.createElement("span",{key:s,style:{willChange:"transform",transform:"scale(".concat(p,"%)"),position:"relative",borderRadius:"10px",color:u?i||o:"white"}},e.createElement("span",null,t.split("").map((function(t){return e.createElement("span",{style:{display:"inline-block",position:"relative",textShadow:"4px 4px 0 #000,\n -4px 4px 0 #000,\n 4px -4px 0 #000,\n -4px -4px 0 #000,\n 0px 4px 0 #000,\n 0px -4px 0 #000,\n -4px 0px 0 #000,\n 4px 0px 0 #000,\n 8px 8px 0 #000,\n -8px 8px 0 #000,\n 8px -8px 0 #000,\n -8px -8px 0 #000,\n 0px 8px 0 #000,\n 0px -8px 0 #000,\n -8px 0px 0 #000,\n 8px 0px 0 #000,\n 4px 8px 0 #000,\n -4px 8px 0 #000,\n 4px -8px 0 #000, \n -4px -8px 0 #000,\n 8px 4px 0 #000,\n -8px 4px 0 #000, \n 8px -4px 0 #000,\n -8px -4px 0 #000"}},t)}))))}))},pc={},hc=Fo().fontFamily,mc=((e,t)=>((e,t,n)=>{const i=[],o=t?[t]:Object.keys(e.fonts);for(const t of o){if("undefined"==typeof FontFace)continue;if(!e.fonts[t])throw new Error(`The font ${e.fontFamily} does not have a style ${t}`);const o=n?.weights??Object.keys(e.fonts[t]);for(const a of o){if(!e.fonts[t][a])throw new Error(`The font ${e.fontFamily} does not have a weight ${a} in style ${t}`);const o=n?.subsets??Object.keys(e.fonts[t][a]);for(const s of o){let o=e.fonts[t]?.[a]?.[s];if(!o)throw new Error(`weight: ${a} subset: ${s} is not available for '${e.fontFamily}'`);let l=`${e.fontFamily}-${t}-${a}-${s}`;const c=pc[l];if(c){i.push(c);continue}const u=(0,r.IH)(`Fetching ${e.fontFamily} font ${JSON.stringify({style:t,weight:a,subset:s})}`),f=new FontFace(e.fontFamily,`url(${o}) format('woff2')`,{weight:a,style:t,unicodeRange:e.unicodeRanges[s]}),d=f.load().then((()=>{(n?.document??document).fonts.add(f),(0,r._8)(u)})).catch((e=>{throw pc[l]=void 0,e}));pc[l]=d,i.push(d)}}}return{fontFamily:e.fontFamily,fonts:e.fonts,unicodeRanges:e.unicodeRanges,waitUntilDone:()=>Promise.all(i).then((()=>{}))}})({fontFamily:"Rochester",importName:"Rochester",version:"v22",url:"https://fonts.googleapis.com/css2?family=Rochester:ital,wght@0,400",unicodeRanges:{latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{normal:{400:{latin:"https://fonts.gstatic.com/s/rochester/v22/6ae-4KCqVa4Zy6Fif-UC2FHX.woff2"}}}},e,t))(),gc=mc.fontFamily,yc=function(e,t){var r=Number(e);return Number.isFinite(r)?r:t},vc=function(t){var n=t.children,i=t.brollUrl,o=(t.brollVideoWidthTransition,t.brollVideoHeightTransition),a=(t.brollVideoTopTransition,t.brollVideoLeftTransition,t.mainVideoWidthTransition),s=t.mainVideoHeightTransition,l=t.mainVideoTopTransition,c=t.mainVideoLeftTransition,u=t.logoUrl,f=t.logoLeft,d=t.logoTop,p=t.frameColor,h=t.startVideoFrom,m=t.noBackgroundVideoUrl,g=t.sourceVideoOrientation,y=t.videoUrl,v=t.faceMetadata,b=t.noBackgroundVideoEffects,x=t.showVirtual,w=t.virtualBgUrl,E=(0,r.Bk)(),U=E.width,S=E.height;return e.createElement(r.H1,{style:{backgroundColor:p||"transparent",padding:0,isolation:"isolate"}},i&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:"100%",height:o,transform:"translateX(-50%) scale(1.25)",transformOrigin:"center center",left:"50%",zIndex:2,mask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)",WebkitMask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)"}},e.createElement(r.pe,{src:i,style:{height:"100%",objectFit:"cover",width:"100%",filter:!x&&null!=b&&b.backgroundDim&&m?"brightness(0.7)":void 0},muted:!0})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:l,left:c,zIndex:2}},x&&w?e.createElement(ml,{url:w,top:0,left:0,width:"100%",height:"100%",zIndex:2}):null,v?e.createElement(Na,{startFrom:h,src:m,faceMetadata:v,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!0,transparent:!0}):e.createElement(r.pe,{startFrom:h,src:m,muted:!1,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===g?"0% 30%":void 0}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:l,left:c,zIndex:0}},v?e.createElement(Na,{startFrom:h,src:y,transparent:!1,faceMetadata:v,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!0,muted:!0,style:{zIndex:0,filter:!x&&null!=b&&b.backgroundDim&&m?"brightness(0.7)":void 0}}):e.createElement(r.pe,{startFrom:h,src:y,muted:!0,transparent:!1,style:{zIndex:0,height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===g?"0% 30%":void 0,filter:!x&&null!=b&&b.backgroundDim&&m?"brightness(0.7)":void 0}})),e.createElement(Ha,{show:!x&&(null==b?void 0:b.backgroundBlur)&&m,width:U,height:S,zIndex:1}),m&&(x||null!=b&&b.facePop||null!=b&&b.backgroundDim||null!=b&&b.backgroundBlur)&&v?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:l,left:c,zIndex:9}},e.createElement(Na,{src:m,startFrom:h,containerWidth:a,containerHeight:s,faceMetadata:v,useAveragePosition:!0,centerHorizontally:!0,noBackgroundVideoEffects:b,transparent:!0,muted:!0})):null,m&&(x||null!=b&&b.facePop||null!=b&&b.backgroundDim||null!=b&&b.backgroundBlur)&&!v?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:l,left:c,zIndex:9}},e.createElement(r.pe,{startFrom:h,src:m,muted:!0,transparent:!0,style:{position:"relative",top:"50%",objectFit:"cover",width:a,height:s,borderRadius:"30px",filter:null!=b&&b.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,transform:"translateY(-50%)"}})):null,e.createElement(r.H1,{style:{zIndex:10}},n),u?e.createElement("div",{style:{position:"fixed",left:f,top:d,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:u})):null)},bc=function(t){var n=t.children,i=t.brollUrl,o=(t.brollVideoWidthTransition,t.brollVideoHeightTransition),a=t.brollVideoTopTransition,s=t.brollVideoLeftTransition,l=t.mainVideoWidthTransition,c=t.mainVideoHeightTransition,u=t.mainVideoTopTransition,f=t.mainVideoLeftTransition,d=t.logoUrl,p=t.logoLeft,h=t.logoTop,m=t.frameColor,g=t.orientation,y=t.startVideoFrom,v=t.noBackgroundVideoUrl,b=t.sourceVideoOrientation,x=t.videoUrl,w=t.faceMetadata,E=t.noBackgroundVideoEffects,U=t.showVirtual,S=t.virtualBgUrl,k=(0,r.Bk)(),C=k.width,F=k.height;return e.createElement(r.H1,{style:{backgroundColor:m||"transparent",padding:0,isolation:"isolate"}},i&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"landscape"===g?"0px":"20px",width:"100%",height:o,top:a,left:s,zIndex:2,transformOrigin:"center center",transform:"scale(1.1)",mask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)",WebkitMask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)"}},e.createElement(r.pe,{src:i,style:{height:"100%",objectFit:"cover",width:"100%",filter:!U&&null!=E&&E.backgroundDim&&v?"brightness(0.7)":void 0},muted:!0})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",width:l,height:c,top:u,left:f,zIndex:2}},U&&S?e.createElement(ml,{url:S,top:0,left:0,width:"100%",height:"100%",borderRadius:"20px",zIndex:2}):null,w?e.createElement(Na,{startFrom:y,src:v,faceMetadata:w,containerWidth:l,containerHeight:c,useAveragePosition:!0,centerHorizontally:!1,transparent:!0}):e.createElement(r.pe,{startFrom:y,src:v,muted:!1,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===b?"0% 30%":void 0}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",width:l,height:c,top:u,left:f,transform:"scale(1)",zIndex:0}},w?e.createElement(Na,{startFrom:y,src:x,faceMetadata:w,containerWidth:l,containerHeight:c,noBackgroundVideoEffects:E,useAveragePosition:!0,muted:!0,transparent:!1,style:{zIndex:0}}):e.createElement(r.pe,{startFrom:y,src:x,muted:!0,transparent:!1,style:{zIndex:0,height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===b?"0% 30%":void 0,filter:!U&&null!=E&&E.backgroundDim&&v?"brightness(0.7)":void 0}})),e.createElement(Ha,{show:!U&&(null==E?void 0:E.backgroundBlur)&&v,width:C,height:F,zIndex:1}),v&&(U||null!=E&&E.facePop||null!=E&&E.backgroundDim||null!=E&&E.backgroundBlur)&&w?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",width:l,height:c,top:u,left:f,transform:"scale(1)",zIndex:9}},e.createElement(Na,{src:v,startFrom:y,containerWidth:l,containerHeight:c,faceMetadata:w,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:E,transparent:!0,muted:!0})):null,v&&(U||null!=E&&E.facePop||null!=E&&E.backgroundDim||null!=E&&E.backgroundBlur)&&!w?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",width:l,height:c,top:u,left:f,transform:"scale(1)",zIndex:9}},e.createElement(r.pe,{startFrom:y,src:v,muted:!0,transparent:!0,style:{position:"relative",width:l,height:c,top:"50%",objectFit:"cover",borderRadius:"30px",filter:null!=E&&E.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,transform:"translateY(-50%)"}})):null,e.createElement(r.H1,{style:{zIndex:3}},n),d?e.createElement("div",{style:{position:"fixed",left:p,top:h,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:d})):null)};function xc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wc(e,t);var r={}.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)?wc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ec=function(e,t){null==e||e.forEach((function(e){"fl"!==e.ty&&"st"!==e.ty||(e.c.k=t),e.it&&Ec(e.it,t)}))},Uc=function(e,t){var r,n=function(e){var t=e.replace("#",""),r=parseInt(t,16);return[(r>>16&255)/255,(r>>8&255)/255,(255&r)/255,1]}(t),i=function(e){null==e||e.forEach((function(e){return Ec(e.shapes,n)}))};i(e.layers),null===(r=e.assets)||void 0===r||r.forEach((function(e){return i(e.layers)}))},Sc=function(t){var n=t.animationPath,i=t.primaryColor,o=void 0===i?"#ffffff":i,a=t.autoplay,s=void 0!==a&&a,l=t.loop,c=void 0!==l&&l,u=xc((0,e.useState)((function(){return(0,r.IH)("loading‑bubble‑lottie")})),1)[0],f=xc((0,e.useState)(null),2),d=f[0],p=f[1];return(0,e.useEffect)((function(){fetch(n).then((function(e){return e.json()})).then((function(e){Uc(e,o),p(e),(0,r._8)(u)})).catch((function(e){(0,r.zo)(e),console.error("BubbleLottieAnimation: failed to load",e)}))}),[n,o,u]),d?e.createElement("div",{className:"lottie-animation-wrapper",style:{width:"100%",height:"100%"}},e.createElement(so,{animationData:d,loop:c,autoplay:s}),e.createElement("style",null,"\n .lottie-animation-wrapper *:not(style) {\n display: block !important;\n visibility: visible !important;\n }\n ")):null},kc={};function Cc(e){return Cc="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},Cc(e)}function Fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(r),!0).forEach((function(t){Tc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Cc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Cc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _c=((e,t)=>((e,t,n)=>{const i=[],o=t?[t]:Object.keys(e.fonts);for(const t of o){if("undefined"==typeof FontFace)continue;if(!e.fonts[t])throw new Error(`The font ${e.fontFamily} does not have a style ${t}`);const o=n?.weights??Object.keys(e.fonts[t]);for(const a of o){if(!e.fonts[t][a])throw new Error(`The font ${e.fontFamily} does not have a weight ${a} in style ${t}`);const o=n?.subsets??Object.keys(e.fonts[t][a]);for(const s of o){let o=e.fonts[t]?.[a]?.[s];if(!o)throw new Error(`weight: ${a} subset: ${s} is not available for '${e.fontFamily}'`);let l=`${e.fontFamily}-${t}-${a}-${s}`;const c=kc[l];if(c){i.push(c);continue}const u=(0,r.IH)(`Fetching ${e.fontFamily} font ${JSON.stringify({style:t,weight:a,subset:s})}`),f=new FontFace(e.fontFamily,`url(${o}) format('woff2')`,{weight:a,style:t,unicodeRange:e.unicodeRanges[s]}),d=f.load().then((()=>{(n?.document??document).fonts.add(f),(0,r._8)(u)})).catch((e=>{throw kc[l]=void 0,e}));kc[l]=d,i.push(d)}}}return{fontFamily:e.fontFamily,fonts:e.fonts,unicodeRanges:e.unicodeRanges,waitUntilDone:()=>Promise.all(i).then((()=>{}))}})({fontFamily:"Oswald",importName:"Oswald",version:"v53",url:"https://fonts.googleapis.com/css2?family=Oswald:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700",unicodeRanges:{"cyrillic-ext":"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F",cyrillic:"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116",vietnamese:"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB","latin-ext":"U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF",latin:"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"},fonts:{normal:{200:{"cyrillic-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752FD8Ghe4.woff2",cyrillic:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752HT8Ghe4.woff2",vietnamese:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fj8Ghe4.woff2","latin-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fz8Ghe4.woff2",latin:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752GT8G.woff2"},300:{"cyrillic-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752FD8Ghe4.woff2",cyrillic:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752HT8Ghe4.woff2",vietnamese:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fj8Ghe4.woff2","latin-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fz8Ghe4.woff2",latin:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752GT8G.woff2"},400:{"cyrillic-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752FD8Ghe4.woff2",cyrillic:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752HT8Ghe4.woff2",vietnamese:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fj8Ghe4.woff2","latin-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fz8Ghe4.woff2",latin:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752GT8G.woff2"},500:{"cyrillic-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752FD8Ghe4.woff2",cyrillic:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752HT8Ghe4.woff2",vietnamese:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fj8Ghe4.woff2","latin-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fz8Ghe4.woff2",latin:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752GT8G.woff2"},600:{"cyrillic-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752FD8Ghe4.woff2",cyrillic:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752HT8Ghe4.woff2",vietnamese:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fj8Ghe4.woff2","latin-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fz8Ghe4.woff2",latin:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752GT8G.woff2"},700:{"cyrillic-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752FD8Ghe4.woff2",cyrillic:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752HT8Ghe4.woff2",vietnamese:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fj8Ghe4.woff2","latin-ext":"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752Fz8Ghe4.woff2",latin:"https://fonts.gstatic.com/s/oswald/v53/TK3iWkUHHAIjg752GT8G.woff2"}}}},e,t))(),Ic=_c.fontFamily,Mc=function(t){var n=t.children,i=t.videoUrl,o=t.startVideoFrom,a=t.sentenceText,s=t.sentenceTextTwo,l=t.logoUrl,c=t.logoLeft,u=t.logoTop,f=t.logoRight,d=t.videoWidth,p=(t.videoHeight,t.videoTop,t.videoLeft),h=t.durationInFrames,m=t.muted,g=t.faceMetadata,y=t.noBackgroundVideoEffects,v=t.noBackgroundVideoUrl,b=t.showVirtual,x=t.virtualBgUrl,w=(0,r.UC)(),E=(0,r.Bk)().fps,U=(0,r.Bk)().width,S=ai(),k=S.accentColor,C=S.accentContrast,F=(0,r.oz)({frame:w,fps:E,config:{damping:15,stiffness:100,mass:1}}),P=h-30,T=P-15,_=(0,r.oz)({frame:w-T,fps:E,config:{damping:20,stiffness:150,mass:.8}}),I=(0,r.oz)({frame:w-P,fps:E,config:{damping:15,stiffness:100,mass:1}}),M=w>=P?1-I:F,A=w>=T?1-_:1,R=-650*(1-M)-150,V=d+(1-M)*(U-d),D=p-(1-M)*p,O=(0,r.Bk)().height,j=Mn(a,.9*U,O,104),z=j.lines,B=j.fontSize,L=15+8*z.length+5,N=(0,r.oz)({frame:w-L,fps:E,config:{damping:15,stiffness:150,mass:.8}}),H=null!=f?{right:f}:{left:c};return e.createElement(r.H1,{style:{padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",zIndex:11}},e.createElement("div",{style:{position:"absolute",left:0,top:0,width:"50%",height:"100%",transform:"scale(2) rotate(20deg) translateY(-100px) translateX(".concat(R,"px)"),backgroundColor:"white",zIndex:1}},e.createElement("div",{style:{position:"absolute",inset:"15px",backgroundColor:k,opacity:.2,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"30px",backgroundColor:k,opacity:.4,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"45px",backgroundColor:k,opacity:.6,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"60px",backgroundColor:k,opacity:.8,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"75px",backgroundColor:k,zIndex:1}})),e.createElement("div",{style:{position:"absolute",left:60,top:60,width:120,height:120,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,opacity:A}},e.createElement(Sc,{animationPath:"https://storage.googleapis.com/zync-media/assets/lottie/introvideo/animation.json",autoplay:!0,loop:!1,primaryColor:C})),e.createElement("div",{style:{position:"absolute",left:60,right:Gn,top:.15*O,zIndex:5,opacity:A}},e.createElement("h1",{style:{fontSize:B/16+"rem",fontWeight:"normal",color:C,lineHeight:"1.1",margin:0,marginBottom:"2rem",fontFamily:Ic}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return t.map((function(t,i){var o=(0,r.oz)({frame:w-n-8*i,fps:E,config:{damping:15,stiffness:120,mass:1}}),a=o,s=15*(1-o);return e.createElement("div",{key:i,style:{opacity:a,transform:"translateY(".concat(s,"px)"),lineHeight:1.2*B/16+"rem"}},t)}))}(z,15)),e.createElement("div",{style:{width:"80px",height:"10px",backgroundColor:C,marginBottom:"0.5rem",marginTop:"7.5rem",opacity:N,transform:"translateY(".concat(10*(1-N),"px)")}}),e.createElement("h2",{style:{fontSize:"4rem",fontWeight:"500",color:C,margin:0,fontFamily:Ic,textTransform:"uppercase",letterSpacing:"0.05em"}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return t.split("").map((function(t,i){var o=(0,r.oz)({frame:w-n-3*i,fps:E,config:{damping:12,stiffness:200,mass:.8}}),a=o,s=15*(1-o);return e.createElement("span",{key:i,style:{opacity:a,transform:"translateX(".concat(s,"px)"),display:"inline-block"}}," "===t?" ":t," ")}))}(s,L+10)))),e.createElement("div",{style:{position:"absolute",borderRadius:"0px",width:V,height:"100%",top:0,left:0,transform:"translateX(".concat(D,"px)"),filter:!b&&null!=y&&y.backgroundDim&&v?"brightness(0.7)":void 0}},b&&x?e.createElement(ml,{url:x,top:0,left:0,width:"100%",height:"100%",zIndex:1}):null,g?e.createElement(Na,{src:i,startFrom:o,muted:m,faceMetadata:g,containerWidth:V,containerHeight:O,useAveragePosition:!0,centerHorizontally:!1}):e.createElement(r.pe,{src:i,startFrom:o,muted:m,style:{objectFit:"cover",width:"100%",height:"100%"}})),e.createElement(Ha,{show:!b&&(null==y?void 0:y.backgroundBlur)&&v,width:U,height:O,zIndex:1}),v&&(b||null!=y&&y.facePop||null!=y&&y.backgroundDim||null!=y&&y.backgroundBlur)&&g?e.createElement(r.H1,{style:{isolation:"isolate",width:U,height:"100%",zIndex:9}},e.createElement("div",{style:{position:"absolute",borderRadius:"0px",width:V,height:"100%",top:0,left:0,transform:"translateX(".concat(D,"px)")}},e.createElement(Na,{src:v,startFrom:o,muted:!0,transparent:!0,faceMetadata:g,containerWidth:V,containerHeight:O,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:y}))):null,v&&(b||null!=y&&y.facePop||null!=y&&y.backgroundDim||null!=y&&y.backgroundBlur)&&!g?e.createElement(r.H1,{style:{backgroundColor:"transparent",isolation:"isolate",width:U,height:"100%",zIndex:9}},e.createElement("div",{style:{position:"absolute",borderRadius:"0px",width:V,height:"100%",top:0,left:0,transform:"translateX(".concat(D,"px)")}},e.createElement(r.pe,{src:v,startFrom:o,muted:!0,transparent:!0,style:{objectFit:"cover",width:"100%",height:"100%",filter:null!=y&&y.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}}))):null,e.createElement(r.H1,{style:{zIndex:20}},n),l?e.createElement("div",{style:Pc({position:"fixed",top:u,padding:20,zIndex:10},H)},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null)},Ac=function(t){var n=t.children,i=t.videoUrl,o=t.startVideoFrom,a=(t.sourceVideoOrientation,t.sentenceText),s=t.sentenceTextTwo,l=t.logoUrl,c=t.logoLeft,u=t.logoTop,f=t.logoRight,d=(t.videoWidth,t.videoHeight,t.videoTop,t.videoLeft,t.backgroundHeight,t.durationInFrames),p=t.muted,h=t.faceMetadata,m=t.noBackgroundVideoEffects,g=t.noBackgroundVideoUrl,y=t.showVirtual,v=t.virtualBgUrl,b=(0,r.UC)(),x=(0,r.Bk)().fps,w=(0,r.Bk)(),E=w.width,U=w.height,S=(0,r.oz)({frame:b,fps:x,config:{damping:15,stiffness:100,mass:1}}),k=d-30,C=k-15,F=(0,r.oz)({frame:b-C,fps:x,config:{damping:20,stiffness:150,mass:.8}}),P=(0,r.oz)({frame:b-k,fps:x,config:{damping:15,stiffness:100,mass:1}}),T=b>=k?1-P:S,_=b>=C?1-F:1,I=U-T*U*.5,M=.5*-U+T*U*.5,A=ai(),R=A.accentColor,V=A.accentContrast,D=Mn(a,E,.4*U,88),O=D.lines,j=D.fontSize,z=15+8*O.length+5,B=(0,r.oz)({frame:b-z,fps:x,config:{damping:15,stiffness:150,mass:.8}}),L=null!=f?{right:f}:{left:c};return e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"50%",transform:"translateY(".concat(M,"px)"),backgroundColor:"white",zIndex:2}},e.createElement("div",{style:{position:"absolute",inset:"0 0 50px 0",backgroundColor:R,opacity:.2,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"0 0 100px 0",backgroundColor:R,opacity:.4,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"0 0 150px 0",backgroundColor:R,opacity:.6,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"0 0 200px 0",backgroundColor:R,opacity:.8,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"0 0 250px 0",backgroundColor:R,zIndex:1}})),e.createElement("div",{style:{position:"absolute",left:60,top:60,width:120,height:120,display:"flex",alignItems:"center",justifyContent:"center",zIndex:3,opacity:_}},e.createElement(Sc,{animationPath:"https://storage.googleapis.com/zync-media/assets/lottie/introvideo/animation.json",autoplay:!0,loop:!1,primaryColor:V})),e.createElement("div",{style:{position:"absolute",left:60,right:Gn,top:0,height:"50%",display:"flex",flexDirection:"column",justifyContent:"center",zIndex:3,opacity:_}},e.createElement("h1",{style:{fontSize:j/16+"rem",fontWeight:"normal",color:V,lineHeight:"1.1",margin:0,marginBottom:"2rem",fontFamily:Ic}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return t.map((function(t,i){var o=(0,r.oz)({frame:b-n-8*i,fps:x,config:{damping:15,stiffness:120,mass:1}}),a=o,s=15*(1-o);return e.createElement("div",{key:i,style:{opacity:a,transform:"translateY(".concat(s,"px)"),lineHeight:1.6*j/16+"rem"}},t)}))}(O,15)),e.createElement("div",{style:{width:"80px",height:"10px",backgroundColor:V,marginBottom:"0.5rem",marginTop:"2rem",opacity:B,transform:"translateY(".concat(10*(1-B),"px)")}}),e.createElement("h2",{style:{fontSize:"4rem",fontWeight:"500",color:V,margin:0,fontFamily:Ic,textTransform:"uppercase",letterSpacing:"0.05em"}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return t.split("").map((function(t,i){var o=(0,r.oz)({frame:b-n-3*i,fps:x,config:{damping:12,stiffness:200,mass:.8}}),a=o,s=15*(1-o);return e.createElement("span",{key:i,style:{opacity:a,transform:"translateX(".concat(s,"px)"),display:"inline-block"}}," "===t?" ":t," ")}))}(s,z+10))),e.createElement("div",{style:{position:"absolute",bottom:0,left:0,borderRadius:"0px",width:"100%",height:"".concat(I,"px"),zIndex:1,filter:!y&&null!=m&&m.backgroundDim&&g?"brightness(0.7)":void 0}},y&&v?e.createElement(ml,{url:v,top:0,left:0,width:"100%",height:"100%",zIndex:1}):null,h?e.createElement(Na,{src:i,startFrom:o,muted:p,faceMetadata:h,containerWidth:E,containerHeight:I,useAveragePosition:!0,centerHorizontally:!1}):e.createElement(r.pe,{src:i,startFrom:o,muted:p,style:{objectFit:"cover",height:"100%",aspectRatio:"16/9",transform:"translateX(-50%)",left:"50%",position:"relative"}})),e.createElement(Ha,{show:!y&&(null==m?void 0:m.backgroundBlur)&&g,width:E,height:U,zIndex:1}),g&&(y||null!=m&&m.facePop||null!=m&&m.backgroundDim||null!=m&&m.backgroundBlur)&&h?e.createElement(r.H1,{style:{isolation:"isolate",width:E,height:U,zIndex:9}},e.createElement("div",{style:{position:"absolute",bottom:0,left:0,borderRadius:"0px",width:"100%",height:"".concat(I,"px")}},e.createElement(Na,{src:g,startFrom:o,muted:!0,transparent:!0,faceMetadata:h,containerWidth:E,containerHeight:I,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:m}))):null,g&&(y||null!=m&&m.facePop||null!=m&&m.backgroundDim||null!=m&&m.backgroundBlur)&&!h?e.createElement(r.H1,{style:{backgroundColor:"transparent",isolation:"isolate",width:E,height:U,zIndex:9}},e.createElement("div",{style:{position:"absolute",bottom:0,left:0,borderRadius:"0px",width:"100%",height:"".concat(I,"px")}},e.createElement(r.pe,{src:g,startFrom:o,muted:!0,transparent:!0,style:{objectFit:"cover",height:"100%",aspectRatio:"16/9",transform:"translateX(-50%)",left:"50%",position:"relative",filter:null!=m&&m.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}}))):null,e.createElement(r.H1,{style:{zIndex:20}},n),l?e.createElement("div",{style:Pc({position:"fixed",top:u,padding:20,zIndex:10},L)},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null)},Rc=function(t){var n=t.children,i=t.videoUrl,o=t.startVideoFrom,a=t.sentenceText,s=t.sentenceTextTwo,l=t.durationInFrames,c=t.muted,u=t.faceMetadata,f=t.noBackgroundVideoEffects,d=t.noBackgroundVideoUrl,p=t.logoUrl,h=t.logoLeft,m=t.logoTop,g=t.logoRight,y=t.virtualBgUrl,v=t.showVirtual,b=(0,r.UC)(),x=(0,r.Bk)().fps,w=(0,r.Bk)().width,E=ai(),U=E.accentColor,S=E.accentContrast,k=(0,r.oz)({frame:b,fps:x,config:{damping:15,stiffness:100,mass:1}}),C=l-30,F=C-15,P=(0,r.oz)({frame:b-F,fps:x,config:{damping:20,stiffness:150,mass:.8}}),T=(0,r.oz)({frame:b-C,fps:x,config:{damping:15,stiffness:100,mass:1}}),_=b>=C?1-T:k,I=b>=F?1-P:1,M=-650*(1-_)-150,A=_*(.25*w),R=(0,r.Bk)().height,V=Mn(a,.6*w,R,72),D=V.lines,O=V.fontSize,j=15+8*D.length+5,z=(0,r.oz)({frame:b-j,fps:x,config:{damping:15,stiffness:150,mass:.8}}),B=Mn(s,.25*w,R,48).fontSize,L=null!=g?{right:g}:{left:h};return e.createElement(r.H1,{style:{padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",zIndex:10}},e.createElement("div",{style:{position:"absolute",left:0,top:0,width:"50%",height:"100%",transform:"scale(2) rotate(22.5deg) translateY(-50px) translateX(".concat(M,"px)"),backgroundColor:"white",zIndex:1}},e.createElement("div",{style:{position:"absolute",inset:"10px",backgroundColor:U,opacity:.2,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"20px",backgroundColor:U,opacity:.4,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"30px",backgroundColor:U,opacity:.6,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"40px",backgroundColor:U,opacity:.8,zIndex:1}}),e.createElement("div",{style:{position:"absolute",inset:"50px",backgroundColor:U,zIndex:1}})),e.createElement("div",{style:{position:"absolute",left:60,top:60,width:120,height:120,display:"flex",alignItems:"center",justifyContent:"center",zIndex:2,opacity:I}},e.createElement(Sc,{animationPath:"https://storage.googleapis.com/zync-media/assets/lottie/introvideo/animation.json",autoplay:!0,loop:!1,primaryColor:S})),e.createElement("div",{style:{position:"absolute",left:60,right:Gn,top:.2*R,zIndex:2,opacity:I}},e.createElement("h1",{style:{fontSize:O/16+"rem",fontWeight:"normal",color:S,lineHeight:"1.1",margin:0,marginBottom:"2rem",fontFamily:Ic}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return t.map((function(t,i){var o=(0,r.oz)({frame:b-n-8*i,fps:x,config:{damping:15,stiffness:120,mass:1}}),a=o,s=15*(1-o);return e.createElement("div",{key:i,style:{opacity:a,transform:"translateY(".concat(s,"px)"),lineHeight:1.2*O/16+"rem"}},t)}))}(D,15)),e.createElement("div",{style:{width:"80px",height:"10px",backgroundColor:S,marginBottom:"0.5rem",marginTop:"7.5rem",opacity:z,transform:"translateY(".concat(10*(1-z),"px)")}}),e.createElement("h2",{style:{fontSize:B,fontWeight:"500",color:S,margin:0,fontFamily:Ic,textTransform:"uppercase",letterSpacing:"0.05em"}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return t.split("").map((function(t,i){var o=(0,r.oz)({frame:b-n-3*i,fps:x,config:{damping:12,stiffness:200,mass:.8}}),a=o,s=15*(1-o);return e.createElement("span",{key:i,style:{opacity:a,transform:"translateX(".concat(s,"px)"),display:"inline-block"}}," "===t?" ":t," ")}))}(s,j+10)))),e.createElement("div",{style:{position:"absolute",borderRadius:"0px",width:"100%",height:"100%",top:0,left:0,transform:"translateX(".concat(A,"px)"),isolation:"isolate",filter:!v&&null!=f&&f.backgroundDim&&d?"brightness(0.7)":void 0}},v&&y?e.createElement(ml,{url:y,top:0,left:0,width:"100%",height:"100%",zIndex:1}):null,u?e.createElement(Na,{src:i,startFrom:o,muted:c,faceMetadata:u,containerWidth:w,containerHeight:w,useAveragePosition:!0,centerHorizontally:!1}):e.createElement(r.pe,{src:i,startFrom:o,muted:c,style:{objectFit:"cover",width:"100%",height:"100%"}})),d&&(null!=f&&f.facePop||null!=f&&f.backgroundDim||null!=f&&f.backgroundBlur)&&u?e.createElement(r.H1,{style:{isolation:"isolate",width:w,height:w,zIndex:9}},e.createElement("div",{style:{position:"absolute",borderRadius:"0px",width:"100%",height:"100%",top:0,left:0,transform:"translateX(".concat(A,"px)")}},e.createElement(Na,{src:d,startFrom:o,muted:!0,transparent:!0,faceMetadata:u,containerWidth:w,containerHeight:w,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:f}))):null,d&&(null!=f&&f.facePop||null!=f&&f.backgroundDim||null!=f&&f.backgroundBlur)&&!u?e.createElement(r.H1,{style:{backgroundColor:"transparent",isolation:"isolate",width:w,height:w,zIndex:9}},e.createElement("div",{style:{position:"absolute",borderRadius:"0px",width:"100%",height:"100%",top:0,left:0,transform:"translateX(".concat(A,"px)")}},e.createElement(r.pe,{src:d,startFrom:o,muted:!0,transparent:!0,style:{objectFit:"cover",width:"100%",height:"100%",filter:null!=f&&f.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}}))):null,e.createElement(r.H1,{style:{zIndex:20}},n),p?e.createElement("div",{style:Pc({position:"fixed",top:m,padding:20,zIndex:20},L)},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:p})):null)};const Vc=function(){var t={width:"80%",border:"1px solid #ccc",backgroundColor:"white",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0.8"};return e.createElement(r.H1,{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"0px",padding:"20px",backgroundColor:"#f5f5f5"}},e.createElement("h1",null,"StretchText Component Demo"),e.createElement("p",null,"Notice how each word stretches to fit the container width with different font sizes"),e.createElement("div",{style:t},e.createElement(Aa,{text:"Contribution",color:"#1a73e8",fontFamily:"Arial",maxFontSize:200})),e.createElement("div",{style:t},e.createElement(Aa,{text:"Work",color:"#ea4335",fontFamily:"Arial",maxFontSize:200,style:{fontWeight:800,textTransform:"uppercase",transform:"scale(".concat(1,")"),transition:"transform 0.1s ease-out"}})),e.createElement("div",{style:t},e.createElement(Aa,{text:"Hello",color:"#34a853",fontFamily:"Arial",maxFontSize:200})),e.createElement("div",{style:t},e.createElement(Aa,{text:"Supercalifragilisticexpialidocious",color:"#fbbc05",fontFamily:"Arial",maxFontSize:200})))};var Dc=function(t){var n=t.children,i=t.brollUrl,o=t.brollSpringProgress,a=t.width,s=t.height,l=t.logoUrl,c=t.logoLeft,u=t.logoTop,f=t.frameColor,d=t.startVideoFrom,p=t.noBackgroundVideoUrl,h=t.sourceVideoOrientation,m=t.videoUrl,g=t.faceMetadata,y=t.noBackgroundVideoEffects,v=t.showVirtual,b=t.virtualBgUrl,x=.95*a,w=.8*s,E=16/9,U=Math.min(x,w*E),S=U/E*o,k=.1*s;return e.createElement(r.H1,{style:{backgroundColor:f||"transparent",padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:1}},v&&b?e.createElement(Ga,{url:b,zIndex:1}):null,g?e.createElement(Na,{startFrom:d,src:m,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,muted:!0,style:{filter:!v&&null!=y&&y.backgroundDim&&p?"brightness(0.7)":void 0}}):e.createElement(r.pe,{startFrom:d,src:m,muted:!0,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0,filter:!v&&null!=y&&y.backgroundDim&&p?"brightness(0.7)":void 0}})),e.createElement(Ha,{show:!v&&(null==y?void 0:y.backgroundBlur)&&p,width:a,height:s,zIndex:1}),i&&o>0&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",inset:"".concat(.1*s,"px ").concat(.05*a,"px"),height:S,top:k,left:.025*a+(x-U)/2,width:U,zIndex:2,opacity:.85*o,borderRadius:"12px",border:"16px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.3)",backdropFilter:"blur(1px)",WebkitBackdropFilter:"blur(1px)"}},e.createElement(r.pe,{src:i,style:{height:"100%",objectFit:"cover",width:"100%",opacity:.9},muted:!0}),e.createElement("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%)",mixBlendMode:"overlay"}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:3}},g?e.createElement(Na,{startFrom:d,src:p,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,transparent:!0,muted:!1,noBackgroundVideoEffects:y,style:{zIndex:2}}):e.createElement(r.pe,{startFrom:d,src:p,muted:!1,transparent:!0,style:{filter:null!=y&&y.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,height:"100%",objectFit:"cover",width:"100%",zIndex:2,objectPosition:"portrait"===h?"0% 30%":void 0}})),e.createElement(r.H1,{style:{zIndex:4}},n),l?e.createElement("div",{style:{position:"fixed",left:c,top:u,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null)},Oc=function(t){var n=t.children,i=t.brollUrl,o=t.brollSpringProgress,a=t.width,s=t.height,l=t.logoUrl,c=t.logoLeft,u=t.logoTop,f=t.frameColor,d=t.startVideoFrom,p=t.noBackgroundVideoUrl,h=t.sourceVideoOrientation,m=t.videoUrl,g=t.faceMetadata,y=t.noBackgroundVideoEffects,v=t.showVirtual,b=t.virtualBgUrl,x=.95*a,w=.8*s,E=16/9,U=Math.min(x,w*E),S=U/E*o,k=.1*s;return e.createElement(r.H1,{style:{backgroundColor:f||"transparent",padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:1}},v&&b?e.createElement(Ga,{url:b,zIndex:1}):null,g?e.createElement(Na,{startFrom:d,src:m,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,transparent:!1,muted:!0,noBackgroundVideoEffects:y,style:{filter:!v&&null!=y&&y.backgroundDim&&p?"brightness(0.7)":void 0}}):e.createElement(r.pe,{startFrom:d,src:m,muted:!0,transparent:!1,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0,filter:!v&&null!=y&&y.backgroundDim&&p?"brightness(0.7)":void 0}})),e.createElement(Ha,{show:!v&&(null==y?void 0:y.backgroundBlur)&&p,width:a,height:s,zIndex:1}),i&&o>0&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"16px",height:S,top:k,left:.025*a+(x-U)/2,width:U,zIndex:2,opacity:.8*o,border:"16px solid rgba(255, 255, 255, 0.25)",boxShadow:"0 12px 40px rgba(0, 0, 0, 0.4)",backdropFilter:"blur(2px) brightness(1.1)",WebkitBackdropFilter:"blur(2px) brightness(1.1)"}},e.createElement(r.pe,{src:i,style:{height:"100%",objectFit:"cover",width:"100%",opacity:.85},muted:!0}),e.createElement("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.1) 70%)",mixBlendMode:"soft-light"}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:3}},g?e.createElement(Na,{startFrom:d,src:p,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,transparent:!0,muted:!1,noBackgroundVideoEffects:y}):e.createElement(r.pe,{startFrom:d,src:p,muted:!1,transparent:!0,style:{filter:null!=y&&y.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0}})),e.createElement(r.H1,{style:{zIndex:4}},n),l?e.createElement("div",{style:{position:"fixed",left:c,top:u,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null)},jc=function(t){var n=t.children,i=t.brollUrl,o=t.brollSpringProgress,a=t.width,s=t.height,l=t.logoUrl,c=t.logoLeft,u=t.logoTop,f=t.frameColor,d=t.startVideoFrom,p=t.noBackgroundVideoUrl,h=t.sourceVideoOrientation,m=t.videoUrl,g=t.faceMetadata,y=t.noBackgroundVideoEffects,v=t.showVirtual,b=t.virtualBgUrl,x=.95*a,w=.8*s,E=16/9,U=Math.min(x,w*E),S=U/E*o,k=.1*s+(w-S)/2;return e.createElement(r.H1,{style:{backgroundColor:f||"transparent",padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:1}},v&&b?e.createElement(Ga,{url:b,zIndex:1}):null,g?e.createElement(Na,{startFrom:d,src:m,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,muted:!0}):e.createElement(r.pe,{startFrom:d,src:m,muted:!0,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0,filter:!v&&null!=y&&y.backgroundDim&&p?"brightness(0.7)":void 0}})),e.createElement(Ha,{show:!v&&(null==y?void 0:y.backgroundBlur)&&p,width:a,height:s,zIndex:1}),i&&o>0&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",height:S,top:k,left:.025*a+(x-U)/2,width:U,zIndex:2,opacity:.75*o,border:"48px solid rgba(255, 255, 255, 0.3)",boxShadow:"0 16px 60px rgba(0, 0, 0, 0.5)",backdropFilter:"blur(30px) contrast(1.1)",WebkitBackdropFilter:"blur(3px) contrast(1.1)"}},e.createElement(r.pe,{src:i,style:{overflow:"hidden",borderRadius:"20px",height:"100%",objectFit:"cover",width:"100%",opacity:.9},muted:!0}),e.createElement("div",{style:{borderRadius:"20px",position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.15) 100%)",mixBlendMode:"overlay"}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:3}},g?e.createElement(Na,{startFrom:d,src:p,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,transparent:!0,muted:!1,noBackgroundVideoEffects:y}):e.createElement(r.pe,{startFrom:d,src:p,muted:!1,transparent:!0,style:{filter:null!=y&&y.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0}})),e.createElement(r.H1,{style:{zIndex:14}},n),l?e.createElement("div",{style:{position:"fixed",left:c,top:u,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null)},zc=function(t){var n=t.children,i=t.imageUrl,o=t.brollSpringProgress,a=t.width,s=t.height,l=t.logoUrl,c=t.logoLeft,u=t.logoTop,f=t.frameColor,d=t.startVideoFrom,p=t.noBackgroundVideoUrl,h=t.sourceVideoOrientation,m=t.videoUrl,g=t.faceMetadata,y=t.noBackgroundVideoEffects,v=t.showVirtual,b=t.virtualBgUrl,x=.95*a,w=.8*s,E=16/9,U=Math.min(x,w*E),S=U/E*o,k=.1*s;return e.createElement(r.H1,{style:{backgroundColor:f||"transparent",padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:1}},v&&b?e.createElement(Ga,{url:b,zIndex:1}):null,g?e.createElement(Na,{startFrom:d,src:m,muted:!0,transparent:!1,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1}):e.createElement(r.pe,{startFrom:d,src:m,muted:!0,transparent:!1,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0}})),i&&o>0&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",inset:"".concat(.1*s,"px ").concat(.05*a,"px"),height:S,top:k,left:.025*a+(x-U)/2,width:U,zIndex:2,opacity:.85*o,borderRadius:"12px",border:"16px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.3)",backdropFilter:"blur(1px)",WebkitBackdropFilter:"blur(1px)"}},e.createElement(Dl,{imageUrl:i}),e.createElement("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%)",mixBlendMode:"overlay"}})),e.createElement(Ha,{show:!v&&(null==y?void 0:y.backgroundBlur)&&p,width:a,height:s,zIndex:1}),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:3}},g?e.createElement(Na,{startFrom:d,src:p,muted:!1,transparent:!0,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:y}):e.createElement(r.pe,{startFrom:d,src:p,muted:!1,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",filter:null!=y&&y.facePop&&p?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,objectPosition:"portrait"===h?"0% 30%":void 0}})),e.createElement(r.H1,{style:{zIndex:14}},n),l?e.createElement("div",{style:{position:"fixed",left:c,top:u,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null)},Bc=function(t){var n=t.children,i=t.imageUrl,o=t.brollSpringProgress,a=t.width,s=t.height,l=t.logoUrl,c=t.logoLeft,u=t.logoTop,f=t.frameColor,d=t.startVideoFrom,p=t.noBackgroundVideoUrl,h=t.sourceVideoOrientation,m=t.videoUrl,g=t.faceMetadata,y=t.noBackgroundVideoEffects,v=t.showVirtual,b=t.virtualBgUrl,x=.95*a,w=.8*s,E=16/9,U=Math.min(x,w*E),S=U/E*o,k=.1*s;return e.createElement(r.H1,{style:{backgroundColor:f||"transparent",padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:1}},v&&b?e.createElement(Ga,{url:b,zIndex:1}):null,g?e.createElement(Na,{startFrom:d,src:m,muted:!0,transparent:!1,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1}):e.createElement(r.pe,{startFrom:d,src:m,muted:!0,transparent:!1,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0}})),i&&o>0&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"16px",height:S,top:k,left:.025*a+(x-U)/2,width:U,zIndex:2,opacity:.8*o,border:"16px solid rgba(255, 255, 255, 0.25)",boxShadow:"0 12px 40px rgba(0, 0, 0, 0.4)",backdropFilter:"blur(2px) brightness(1.1)",WebkitBackdropFilter:"blur(2px) brightness(1.1)"}},e.createElement(Dl,{imageUrl:i}),e.createElement("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.1) 70%)",mixBlendMode:"soft-light"}})),e.createElement(Ha,{show:!v&&(null==y?void 0:y.backgroundBlur)&&p,width:a,height:s,zIndex:1}),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:3}},g?e.createElement(Na,{startFrom:d,src:p,muted:!1,transparent:!0,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:y}):e.createElement(r.pe,{startFrom:d,src:p,muted:!1,transparent:!0,style:{filter:null!=y&&y.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0}})),e.createElement(r.H1,{style:{zIndex:4}},n),l?e.createElement("div",{style:{position:"fixed",left:c,top:u,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null)},Lc=function(t){var n=t.children,i=t.imageUrl,o=t.brollSpringProgress,a=t.width,s=t.height,l=t.logoUrl,c=t.logoLeft,u=t.logoTop,f=t.frameColor,d=t.startVideoFrom,p=t.noBackgroundVideoUrl,h=t.sourceVideoOrientation,m=t.videoUrl,g=t.faceMetadata,y=t.noBackgroundVideoEffects,v=t.showVirtual,b=t.virtualBgUrl,x=.95*a,w=.8*s,E=16/9,U=Math.min(x,w*E),S=U/E*o,k=.1*s+(w-S)/2;return e.createElement(r.H1,{style:{backgroundColor:f||"transparent",padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:1}},v&&b?e.createElement(Ga,{url:b,zIndex:1}):null,g?e.createElement(Na,{startFrom:d,src:m,muted:!0,transparent:!1,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1}):e.createElement(r.pe,{startFrom:d,src:m,muted:!0,transparent:!1,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0}})),i&&o>0&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",height:S,top:k,left:.025*a+(x-U)/2,width:U,zIndex:2,opacity:.75*o,border:"48px solid rgba(255, 255, 255, 0.3)",boxShadow:"0 16px 60px rgba(0, 0, 0, 0.5)",backdropFilter:"blur(30px) contrast(1.1)",WebkitBackdropFilter:"blur(3px) contrast(1.1)"}},e.createElement(Dl,{imageUrl:i}),e.createElement("div",{style:{borderRadius:"20px",position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.15) 100%)",mixBlendMode:"overlay"}})),e.createElement(Ha,{show:!v&&(null==y?void 0:y.backgroundBlur)&&p,width:a,height:s,zIndex:1}),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:0,left:0,zIndex:3}},g?e.createElement(Na,{startFrom:d,src:p,muted:!1,transparent:!0,faceMetadata:g,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:y}):e.createElement(r.pe,{startFrom:d,src:p,muted:!1,transparent:!0,style:{filter:null!=y&&y.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===h?"0% 30%":void 0}})),e.createElement(r.H1,{style:{zIndex:14}},n),l?e.createElement("div",{style:{position:"fixed",left:c,top:u,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null)},Nc=Wn().fontFamily;function Hc(e){return function(e){if(Array.isArray(e))return Wc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wc(e,t);var r={}.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)?Wc(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Gc=function(e){for(var t=2166136261,r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return t>>>0},$c=function(e){return function(){var t=e+=1831565813;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296}},Kc=function(e){return $c(Gc(e))()},Jc=Tn().fontFamily,qc=function(t){var n=t.word,i=t.index,o=t.fitParams,a=t.initialOffset,s=void 0===a?{x:0,y:0}:a,l=t.driftScale,c=void 0===l?1:l,u=o||{},f=u.maxWidth,d=u.maxHeight,p=u.maxFontSize,h=Mn(n,null!=f?f:350,null!=d?d:120,null!=p?p:54),m=h.lines,g=h.fontSize,y=(0,r.UC)(),v=(0,r.Bk)().fps,b=6*i,x=Math.max(0,y-b),w=(0,r.GW)(x,[0,12],[0,1],{easing:r.GS.linear,extrapolateLeft:"clamp",extrapolateRight:"clamp"}),E=(y+10*i)/v,U=26*c,S=U*Math.sin(.7*E+i),k=.6*U*Math.cos(.9*E+.5*i);return e.createElement("div",{style:{transform:"translate(".concat(((s.x||0)+S).toFixed(2),"px, ").concat(((s.y||0)+k).toFixed(2),"px)"),display:"flex",alignItems:"center",gap:30,willChange:"transform",opacity:w}},e.createElement("div",{style:{position:"relative",width:3,height:3,borderRadius:"100%",backgroundColor:"white",border:"1px solid white",padding:9,opacity:.85}},e.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",width:45,height:45,transform:"translate(-50%, -50%)",borderRadius:"100%",border:"1px solid white",opacity:.6}})),e.createElement("p",{style:{color:"white",textTransform:"uppercase",fontWeight:300,letterSpacing:"10px",fontSize:g,margin:0,height:80,display:"flex",alignItems:"center",gap:20,opacity:.95}},m.map((function(t,r){return e.createElement("span",{key:r,style:{willChange:"transform"}},t)}))))},Xc=e.memo((function(t){var n=t.words,i=void 0===n?[]:n,o=t.cloudMargins,a=t.cloudMinDistancePct,s=t.cloudSpreadDurationSeconds,l=(0,r.UC)(),c=(0,r.Bk)(),u=c.fps,f=c.durationInFrames,d=An({portrait:{},landscape:{},square:{}}).orientation,p="landscape"===d,h=e.useMemo((function(){return"landscape"===d?{maxWidth:1920,maxHeight:1080,baseMaxFontSize:110}:"portrait"===d?{maxWidth:1080,maxHeight:1920,baseMaxFontSize:90}:{maxWidth:1080,maxHeight:1080,baseMaxFontSize:80}}),[d]),m=p?1:3,g=e.useMemo((function(){if(null==i||!i.length)return[];for(var e=[],t=0;t<m;t++)for(var r=0;r<i.length;r++)e.push(i[r]);return 1===m?e:function(e,t){for(var r=$c(Gc(t)),n=Hc(e),i=n.length-1;i>0;i--){var o=Math.floor(r()*(i+1)),a=[n[o],n[i]];n[i]=a[0],n[o]=a[1]}return n}(e,"kw-cloud-".concat(d,"-").concat(i.join("|")))}),[i,m,d]),y=e.useMemo((function(){var e,t;if(p)return[];var r=(null==g?void 0:g.length)||0;if(!r)return[];for(var n=$c(Gc("kw-positions-".concat(d,"-").concat(g.join("|")))),i=null!==(e=null==o?void 0:o.x)&&void 0!==e?e:28,s=null!==(t=null==o?void 0:o.y)&&void 0!==t?t:"portrait"===d?10:38,l=(null!=a?a:"portrait"===d?14:11)*Math.min(1,Math.sqrt(18/Math.max(r,1))),c=[],u=[],f=0;f<r;f++){for(var h=!1,m=0;m<80;m++){for(var y=i+n()*(100-2*i),v=s+n()*(100-2*s),b=!0,x=0;x<c.length;x++){var w=y-c[x].x,E=v-c[x].y;if(Math.hypot(w,E)<l){b=!1;break}}if(b){c.push({x:y,y:v}),u.push({x:y,y:v}),h=!0;break}}if(!h){var U=n()*Math.PI*2,S=40+8*n(),k=50+S*Math.cos(U)*.9,C=50+S*Math.sin(U)*.9;c.push({x:k,y:C}),u.push({x:k,y:C})}}return u}),[p,g,d,o,a]);return e.createElement("div",{style:{fontFamily:Jc,position:"absolute",inset:0}},e.createElement("div",{style:{display:p?"flex":void 0,flexDirection:p?"column":void 0,position:p?void 0:"relative",height:"100%",width:"100%",justifyContent:p?"space-evenly":void 0,alignItems:p?"center":void 0,padding:p?"4% 6%":"2% 6%"}},(p?i:g).map((function(t,r){var n=(l+8*r)/u,i=12*Math.sin(n),a=10*Math.cos(.9*n),c="".concat(t,"-").concat(r),m=Kc(c+"-a"),g=Kc(c+"-b"),v=Kc(c+"-c"),b=Kc(c+"-d"),x=.94+.12*m,w={maxWidth:h.maxWidth,maxHeight:h.maxHeight,maxFontSize:Math.round(h.baseMaxFontSize*x)},E=p?{x:120*(g-.5),y:60*(v-.5)}:{x:0,y:0},U=p?1:.7+.9*b;return p?e.createElement("div",{key:"".concat(t,"-").concat(r),style:{position:"relative",display:"flex",alignItems:"center",width:"100%",minHeight:80,gap:"30px",justifyContent:"flex-start"}},e.createElement(qc,{word:t,index:r,fitParams:w,initialOffset:E,driftScale:U}),e.createElement("div",{style:{position:"absolute",top:0,left:"75%",transform:"translateY(".concat(i.toFixed(2),"px)"),willChange:"transform",pointerEvents:"none"}},e.createElement(qc,{word:t,index:r,fitParams:w,initialOffset:E,driftScale:U})),e.createElement("div",{style:{position:"absolute",top:0,left:"-75%",transform:"translateY(".concat(a.toFixed(2),"px)"),willChange:"transform",pointerEvents:"none"}},e.createElement(qc,{word:t,index:r,fitParams:w,initialOffset:E,driftScale:U}))):e.createElement("div",{key:"".concat(t,"-").concat(r),style:{position:"absolute",left:function(e,t){var n=y[r]||{x:50,y:50},i=n.x-50,a=n.y-50,c=Math.hypot(i,a)||1,p=i/c,h=a/c;isFinite(p)&&isFinite(h)||(p=.7071,h=.7071);var m=null!==(e=null==o?void 0:o.x)&&void 0!==e?e:10,g=null!==(t=null==o?void 0:o.y)&&void 0!==t?t:"portrait"===d?0:8,v=l/u,b=Math.max(.1,null!=s?s:f/u*2),x=p>=0?100-m:m,w=h>=0?100-g:g,E=Math.abs((x-n.x)/(p||1e-6)),U=Math.abs((w-n.y)/(h||1e-6)),S=Math.min(E,U)/b,k=n.x+p*v*S,C=Math.max(m,Math.min(100-m,k));return"".concat(C.toFixed(2),"%")}(),top:function(e,t){var n=y[r]||{x:50,y:50},i=n.x-50,a=n.y-50,c=Math.hypot(i,a)||1,p=i/c,h=a/c;isFinite(p)&&isFinite(h)||(p=.7071,h=.7071);var m=null!==(e=null==o?void 0:o.x)&&void 0!==e?e:8,g=null!==(t=null==o?void 0:o.y)&&void 0!==t?t:"portrait"===d?10:8,v=l/u,b=Math.max(.1,null!=s?s:f/u-.25),x=p>=0?100-m:m,w=h>=0?100-g:g,E=Math.abs((x-n.x)/(p||1e-6)),U=Math.abs((w-n.y)/(h||1e-6)),S=Math.min(E,U)/b,k=n.y+h*v*S,C=Math.max(g,Math.min(100-g,k));return"".concat(C.toFixed(2),"%")}(),transform:"translate(-50%, -50%)",pointerEvents:"none"}},e.createElement(qc,{word:t,index:r,fitParams:w,initialOffset:E,driftScale:0}))}))))})),Zc=function(t){var n=t.children,i=t.width,o=t.height,a=t.startVideoFrom,s=t.videoUrl,l=t.noBackgroundVideoUrl,c=t.sourceVideoOrientation,u=t.faceMetadata,f=t.noBackgroundVideoEffects,d=t.logoUrl,p=t.logoLeft,h=t.logoTop,m=t.frameColor,g=t.words,y=t.cloudMargins,v=t.cloudMinDistancePct,b=t.cloudSpreadDurationSeconds,x=t.containerInset,w=void 0===x?{top:.1,side:.05}:x,E=t.backdropProgress,U=void 0===E?1:E,S=t.showVirtual,k=t.virtualBgUrl,C=i*(1-2*w.side),F=o*(1-2*w.top),P=16/9,T=Math.min(C,F*P);w.top,w.side;return e.createElement(r.H1,{style:{backgroundColor:m||"transparent",padding:0,isolation:"isolate"}},e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:i,height:o,top:0,left:0,zIndex:1}},S&&k?e.createElement(Ga,{url:k,zIndex:1}):null,u?e.createElement(Na,{startFrom:a,src:s,muted:!0,transparent:!1,faceMetadata:u,containerWidth:i,containerHeight:o,useAveragePosition:!0,centerHorizontally:!1}):e.createElement(r.pe,{startFrom:a,src:s,muted:!0,transparent:!1,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===c?"0% 30%":void 0}})),e.createElement(Ha,{show:!S&&(null==f?void 0:f.backgroundBlur)&&l,width:i,height:o,zIndex:1}),U>0&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",top:0,left:0,width:i,height:o,zIndex:2,opacity:.85*U,borderRadius:"14px",border:"16px solid rgba(255, 255, 255, 0.2)",boxShadow:"0 10px 36px rgba(0, 0, 0, 0.35)",backdropFilter:"blur(1.5px)",WebkitBackdropFilter:"blur(1.5px)"}},e.createElement(r.pe,{style:{objectFit:"cover",width:"100%",height:"100%",mixBlendMode:"screen",opacity:.35},src:"https://storage.googleapis.com/zync-media/assets/static/plexus1.mov",startFrom:120,muted:!0}),e.createElement(Xc,{words:g,cloudMargins:y,cloudMinDistancePct:v,cloudSpreadDurationSeconds:b}),e.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none",background:"radial-gradient(80% 80% at 50% 50%, rgba(255,255,255,0) 60%, rgba(0,0,0,0.25) 100%)",mixBlendMode:"soft-light"}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:i,height:o,top:0,left:0,zIndex:3}},u?e.createElement(Na,{startFrom:a,src:l,muted:!1,transparent:!0,faceMetadata:u,containerWidth:i,containerHeight:o,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:f}):e.createElement(r.pe,{startFrom:a,src:l,muted:!1,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",filter:null!=f&&f.facePop&&l?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,objectPosition:"portrait"===c?"0% 30%":void 0}})),e.createElement(r.H1,{style:{zIndex:14}},n),d?e.createElement("div",{style:{position:"fixed",left:p,top:h,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:d})):null)},Yc=function(t){var n=t.children,i=t.imageUrl,o=(t.brollVideoWidthTransition,t.brollVideoHeightTransition),a=(t.brollVideoTopTransition,t.brollVideoLeftTransition,t.mainVideoWidthTransition),s=t.mainVideoHeightTransition,l=t.mainVideoTopTransition,c=t.mainVideoLeftTransition,u=t.logoUrl,f=t.logoLeft,d=t.logoTop,p=t.frameColor,h=t.startVideoFrom,m=t.noBackgroundVideoUrl,g=t.sourceVideoOrientation,y=t.videoUrl,v=t.faceMetadata,b=t.noBackgroundVideoEffects,x=t.showVirtual,w=t.virtualBgUrl,E=(0,r.Bk)(),U=E.width,S=E.height;return e.createElement(r.H1,{style:{backgroundColor:p||"transparent",padding:0,isolation:"isolate"}},i&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:"100%",height:o,transform:"translateX(-50%) scale(1.25)",transformOrigin:"center center",left:"50%",zIndex:2,mask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)",WebkitMask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)"}},e.createElement(Dl,{imageUrl:i,style:{filter:!x&&null!=b&&b.backgroundDim&&m?"brightness(0.7)":void 0}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:l,left:c,zIndex:2}},x&&w?e.createElement(ml,{url:w,top:0,left:0,width:"100%",height:"100%",zIndex:2}):null,v?e.createElement(Na,{startFrom:h,src:m,faceMetadata:v,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!0,transparent:!0}):e.createElement(r.pe,{startFrom:h,src:m,muted:!1,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===g?"0% 30%":void 0}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:l,left:c,zIndex:0}},v?e.createElement(Na,{startFrom:h,src:y,transparent:!1,faceMetadata:v,containerWidth:a,containerHeight:s,useAveragePosition:!0,centerHorizontally:!0,muted:!0,style:{zIndex:0,filter:!x&&null!=b&&b.backgroundDim&&m?"brightness(0.7)":void 0}}):e.createElement(r.pe,{startFrom:h,src:y,muted:!0,transparent:!1,style:{zIndex:0,height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===g?"0% 30%":void 0,filter:!x&&null!=b&&b.backgroundDim&&m?"brightness(0.7)":void 0}})),e.createElement(Ha,{show:!x&&(null==b?void 0:b.backgroundBlur)&&m,width:U,height:S,zIndex:1}),m&&(x||null!=b&&b.facePop||null!=b&&b.backgroundDim||null!=b&&b.backgroundBlur)&&v?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:l,left:c,zIndex:9}},e.createElement(Na,{src:m,startFrom:h,containerWidth:a,containerHeight:s,faceMetadata:v,useAveragePosition:!0,centerHorizontally:!0,noBackgroundVideoEffects:b,transparent:!0,muted:!0})):null,m&&(x||null!=b&&b.facePop||null!=b&&b.backgroundDim||null!=b&&b.backgroundBlur)&&!v?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",width:a,height:s,top:l,left:c,zIndex:9}},e.createElement(r.pe,{startFrom:h,src:m,muted:!0,transparent:!0,style:{position:"relative",top:"50%",objectFit:"cover",width:a,height:s,borderRadius:"30px",filter:null!=b&&b.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,transform:"translateY(-50%)"}})):null,e.createElement(r.H1,{style:{zIndex:10}},n),u?e.createElement("div",{style:{position:"fixed",left:f,top:d,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:u})):null)},Qc=function(t){var n=t.children,i=t.imageUrl,o=(t.brollVideoWidthTransition,t.brollVideoHeightTransition),a=t.brollVideoTopTransition,s=t.brollVideoLeftTransition,l=t.mainVideoWidthTransition,c=t.mainVideoHeightTransition,u=t.mainVideoTopTransition,f=t.mainVideoLeftTransition,d=t.logoUrl,p=t.logoLeft,h=t.logoTop,m=t.frameColor,g=t.orientation,y=t.startVideoFrom,v=t.noBackgroundVideoUrl,b=t.sourceVideoOrientation,x=t.videoUrl,w=t.faceMetadata,E=t.noBackgroundVideoEffects,U=t.showVirtual,S=t.virtualBgUrl,k=(0,r.Bk)(),C=k.width,F=k.height;return e.createElement(r.H1,{style:{backgroundColor:m||"transparent",padding:0,isolation:"isolate"}},i&&e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"landscape"===g?"0px":"20px",width:"100%",height:o,top:a,left:s,zIndex:2,transformOrigin:"center center",transform:"scale(1.1)",mask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)",WebkitMask:"linear-gradient(to bottom, black 0%, black 60%, transparent 100%)"}},e.createElement(Dl,{imageUrl:i,style:{filter:!U&&null!=E&&E.backgroundDim&&v?"brightness(0.7)":void 0}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",width:l,height:c,top:u,left:f,zIndex:2}},U&&S?e.createElement(ml,{url:S,top:0,left:0,width:"100%",height:"100%",borderRadius:"20px",zIndex:2}):null,w?e.createElement(Na,{startFrom:y,src:v,faceMetadata:w,containerWidth:l,containerHeight:c,useAveragePosition:!0,centerHorizontally:!1,transparent:!0}):e.createElement(r.pe,{startFrom:y,src:v,muted:!1,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===b?"0% 30%":void 0}})),e.createElement("div",{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",width:l,height:c,top:u,left:f,transform:"scale(1)",zIndex:0}},w?e.createElement(Na,{startFrom:y,src:x,faceMetadata:w,containerWidth:l,containerHeight:c,noBackgroundVideoEffects:E,useAveragePosition:!0,muted:!0,transparent:!1,style:{zIndex:0}}):e.createElement(r.pe,{startFrom:y,src:x,muted:!0,transparent:!1,style:{zIndex:0,height:"100%",objectFit:"cover",width:"100%",objectPosition:"portrait"===b?"0% 30%":void 0,filter:!U&&null!=E&&E.backgroundDim&&v?"brightness(0.7)":void 0}})),e.createElement(Ha,{show:!U&&(null==E?void 0:E.backgroundBlur)&&v,width:C,height:F,zIndex:1}),v&&(U||null!=E&&E.facePop||null!=E&&E.backgroundDim||null!=E&&E.backgroundBlur)&&w?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",width:l,height:c,top:u,left:f,transform:"scale(1)",zIndex:9}},e.createElement(Na,{src:v,startFrom:y,containerWidth:l,containerHeight:c,faceMetadata:w,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:E,transparent:!0,muted:!0})):null,v&&(U||null!=E&&E.facePop||null!=E&&E.backgroundDim||null!=E&&E.backgroundBlur)&&!w?e.createElement(r.H1,{style:{position:"absolute",overflow:"hidden",borderRadius:"20px",width:l,height:c,top:u,left:f,transform:"scale(1)",zIndex:9}},e.createElement(r.pe,{startFrom:y,src:v,muted:!0,transparent:!0,style:{position:"relative",width:l,height:c,top:"50%",objectFit:"cover",borderRadius:"30px",filter:null!=E&&E.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,transform:"translateY(-50%)"}})):null,e.createElement(r.H1,{style:{zIndex:13}},n),d?e.createElement("div",{style:{position:"fixed",left:p,top:h,padding:20,zIndex:10}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:d})):null)},eu={SimpleFrame:Ya,SimpleFrameBroll:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.durationInFrames,a=t.muted,s=t.frameColor,l=t.logoUrl,c=t.videoZoom,u=t.brollUrl,f=t.children,d=t.sourceVideoOrientation,p=t.disableTransitionSounds,h=void 0!==p&&p,m=t.faceMetadata,g=t.noBackgroundVideoEffects,y=t.noBackgroundVideoUrl,v=jn([0,.5],[1,c||1],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)}),b=o/2-90,x=(0,r.Bk)(),w=x.width,E=x.height,U=Wa(),S=U.isVirtual,k=U.url,C=S&&!!y;return e.createElement(e.Fragment,null,!h&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(r.H1,{style:{backgroundColor:s||"transparent",padding:s?Gn:0,isolation:"isolate"}},e.createElement("div",{style:{overflow:"hidden",borderRadius:"30px",width:"100%",height:"100%"}},m?e.createElement(Na,{startFrom:i,src:n,faceMetadata:m,containerWidth:w,containerHeight:E,useAveragePosition:!0,centerHorizontally:!1,style:{filter:!C&&null!=g&&g.backgroundDim&&y?"brightness(0.7)":void 0}}):e.createElement(r.pe,{startFrom:i,src:n,muted:a,style:{height:"100%",objectFit:"cover",width:"100%",borderRadius:"30px",objectPosition:"portrait"===d?"0% 30%":void 0,filter:!C&&null!=g&&g.backgroundDim&&y?"brightness(0.7)":void 0,transform:c?"scale(".concat(v,")"):void 0}})),C&&k?e.createElement(ml,{url:k,top:Gn,left:Gn,width:w-60,height:E-60,borderRadius:"30px",zIndex:2}):null,e.createElement(Ha,{show:!C&&(null==g?void 0:g.backgroundBlur)&&y,width:w,height:E,zIndex:1}),y&&(C||null!=g&&g.facePop||null!=g&&g.backgroundDim||null!=g&&g.backgroundBlur)&&m?e.createElement(r.H1,{style:{padding:s?Gn:0,isolation:"isolate",width:w-Gn,height:E,zIndex:9,overflow:"hidden"}},e.createElement(Na,{src:y,startFrom:i,containerWidth:w,containerHeight:E,faceMetadata:m,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:g,transparent:!0,muted:!0})):null,y&&(C||null!=g&&g.facePop||null!=g&&g.backgroundDim||null!=g&&g.backgroundBlur)&&!m?e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:s?Gn:0,isolation:"isolate",width:w,height:E,overflow:"hidden",zIndex:9}},e.createElement(r.H1,{style:{overflow:"hidden",borderRadius:"30px",width:"100%",height:"100%",zIndex:11}},e.createElement(r.pe,{startFrom:i,src:y,muted:!0,transparent:!0,style:{position:"relative",top:"50%",height:"100%",objectFit:"cover",width:"100%",borderRadius:"30px",filter:null!=g&&g.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,transform:c?"translateY(-50%) scale(".concat(v,")"):"translateY(-50%)"}}))):null,o>180&&u?e.createElement(r.gd,{from:b,durationInFrames:180},e.createElement(r.H1,null,e.createElement(r.pe,{src:u,style:{zIndex:10,width:"100%",height:"100%",objectFit:"cover"},muted:!0}))):null,e.createElement(r.H1,{style:{zIndex:10}},f),l?e.createElement("div",{style:{position:"fixed",left:s?Gn:25,top:s?Gn:25,padding:20,zIndex:11}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null))},SimpleFrameSentence:function(t){return"depth"===t.theme?e.createElement(Ja,Qa({sentence:t.sentenceText},t)):e.createElement(Ya,t,e.createElement(Za,{theme:t.theme,sentence:t.sentenceText}),t.children)},SimpleFrameZoomCut:function(t){var r=t.children,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Xl);return e.createElement(Ya,Zl({},n,{videoZoom:1.2}),r)},TextWithVideo:function(t){var n=ai(),i=n.primaryColor,o=n.primaryContrast,a=n.accentColor,s=(t||{}).disableTransitionSounds,l=void 0!==s&&s;return e.createElement(e.Fragment,null,!l&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(Sl,yl({},t,{textBackgroundColor:o,textColor:i,accentColor:a,variant:t.variant})))},Handoff:function(t){var n=t.startFirstVideoFrom,i=t.startSecondVideoFrom,o=t.firstVideoFile,a=t.secondVideoFile,s=t.firstVideoDuration,l=t.firstVideoDurationWithoutLastSegment,c=t.children,u=t.firstNoBackgroundVideoUrl,f=t.firstNoBackgroundFaceMetadata,d=t.secondNoBackgroundVideoUrl,p=t.secondNoBackgroundFaceMetadata,h=t.noBackgroundVideoEffects,m=(0,r.Bk)(),g=m.width,y=m.height,v=m.fps,b=(0,r.UC)(),x=ai().primaryColor,w=s*v,E=Math.max(0,s-1),U=E*v,S=1*v,k=l*v+U,C=On([.5,1,.5],E),F=An({portrait:{firstTargetVideoHeights:[y-Fl-5,y/2-Fl-5,y/2-Fl-5,0],secondTargetVideoHeights:[0,y/2-Fl-5,y/2-Fl-5,y-Fl-5],firstTargetVideoWidths:[g-Pl,g-Pl,g-Pl,g-Pl],secondTargetVideoWidths:[g-Pl,g-Pl,g-Pl,g-Pl],secondTargetVideoFreezeFrameWidths:[g-Pl,g-Pl,g-Pl,g-Pl]},landscape:{firstTargetVideoHeights:[y-Fl,y-Fl,y-Fl,y-Fl],secondTargetVideoHeights:[y-Fl,y-Fl,y-Fl,y-Fl],firstTargetVideoWidths:[g-Pl-5,g/2-Pl-5,g/2-Pl-5,0],secondTargetVideoWidths:[g/2-Pl-5,g/2-Pl-5,g/2-Pl-5,g-Pl-5],secondTargetVideoFreezeFrameWidths:[0,g/2-Pl-5,g/2-Pl-5,g-Pl-5]},square:{firstTargetVideoHeights:[y-Fl,y-Fl,y-Fl,y-Fl],secondTargetVideoHeights:[y-Fl,y-Fl,y-Fl,y-Fl],firstTargetVideoWidths:[g-Pl-5,g/2-Pl-5,g/2-Pl-5,0],secondTargetVideoWidths:[g/2-Pl-5,g/2-Pl-5,g/2-Pl-5,g-Pl-5],secondTargetVideoFreezeFrameWidths:[0,g/2-Pl-5,g/2-Pl-5,g-Pl-5]}}),P=F.firstTargetVideoWidths,T=F.secondTargetVideoWidths,_=F.firstTargetVideoHeights,I=F.secondTargetVideoHeights,M=F.orientation,A="portrait"===M,R=jn(C,P,Dn),V=jn(C,T,Dn),D=jn(C,_,Dn),O=jn(C,I,Dn);return e.createElement(e.Fragment,null,e.createElement(r.H1,{style:{width:g,height:y,backgroundColor:x}},e.createElement(r.H1,{style:{zIndex:10}},c),e.createElement("div",{style:{display:"flex",width:"100%",height:"100%",padding:"10px 10px",gap:b>=U+2*v?"0px":"10px",flexDirection:A?"column":"row"}},e.createElement(r.Kl,{frame:w,active:b>=w},f?e.createElement(Na,{startFrom:n,src:o,faceMetadata:f,aspectRatio:M,containerWidth:R,containerHeight:D,useAveragePosition:!0}):e.createElement(r.pe,{startFrom:n,src:o,style:{height:D,objectFit:"cover",width:R,borderRadius:"40px"}})),e.createElement(r.gd,{from:U,layout:"none",durationInFrames:1.01*v},e.createElement(r.Kl,{frame:k},p?e.createElement(Na,{startFrom:i,src:a,faceMetadata:p,aspectRatio:M,containerWidth:V,containerHeight:O,useAveragePosition:!0}):e.createElement(r.pe,{startFrom:i,src:a,style:{height:O,objectFit:"cover",width:V,borderRadius:"40px"},muted:!0}))),e.createElement(r.gd,{from:U+S,layout:"none"},p?e.createElement(Na,{startFrom:i,src:a,faceMetadata:p,aspectRatio:M,containerWidth:V,containerHeight:O,useAveragePosition:!0}):e.createElement(r.pe,{startFrom:i,src:a,style:{height:O,objectFit:"cover",width:V,borderRadius:"40px"}}))),e.createElement(Ha,{show:(null==h?void 0:h.backgroundBlur)&&(u||d),width:g,height:y,zIndex:1})))},MotionStill:function(t){var n=ai(),i=n.primaryColor,o=n.primaryContrast,a=n.accentColor,s=(t||{}).disableTransitionSounds,l=void 0!==s&&s;return e.createElement(e.Fragment,null,!l&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(Ol,_l({},t,{textBackgroundColor:o,textColor:i,accentColor:a,variant:t.variant,durationInFrames:t.durationInFrames})))},MotionStillFullScreen:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.durationInFrames,a=t.muted,s=t.frameColor,l=t.logoUrl,c=t.videoZoom,u=t.imageUrl,f=t.children,d=t.sourceVideoOrientation,p=t.disableTransitionSounds,h=void 0!==p&&p,m=t.faceMetadata,g=t.noBackgroundVideoEffects,y=t.noBackgroundVideoUrl,v=(0,r.Bk)(),b=v.width,x=v.height,w=Wa(),E=w.isVirtual,U=w.url,S=E&&!!y,k=jn([0,.5],[1,c||1],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:r.GS.in(r.GS.quad)}),C=o/2-90;return e.createElement(e.Fragment,null,!h&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(r.H1,{style:{backgroundColor:s||"transparent",padding:s?Gn:0,isolation:"isolate"}},e.createElement("div",{style:{overflow:"hidden",borderRadius:"30px",width:"100%",height:"100%",filter:!S&&null!=g&&g.backgroundDim&&y?"brightness(0.7)":void 0}},S&&U?e.createElement(ml,{url:U,top:Gn,left:Gn,width:b-60,height:x-60,borderRadius:"30px",zIndex:1}):null,m?e.createElement(Na,{startFrom:i,muted:a,src:n,faceMetadata:m,containerWidth:b,containerHeight:x,useAveragePosition:!0,centerHorizontally:!1}):e.createElement(r.pe,{startFrom:i,src:n,muted:a,style:{height:"100%",objectFit:"cover",width:"100%",borderRadius:"30px",objectPosition:"portrait"===d?"0% 30%":void 0,transform:c?"scale(".concat(k,")"):void 0}})),y&&(S||null!=g&&g.facePop||null!=g&&g.backgroundDim||null!=g&&g.backgroundBlur)&&m?e.createElement(r.H1,{style:{padding:s?Gn:0,isolation:"isolate",width:b,height:x,zIndex:9}},e.createElement("div",{style:{overflow:"hidden",borderRadius:"30px",width:"100%",height:"100%"}},e.createElement(Na,{startFrom:i,muted:!0,transparent:!0,src:y,faceMetadata:m,containerWidth:b,containerHeight:x,useAveragePosition:!0,centerHorizontally:!1,noBackgroundVideoEffects:g}))):null,y&&(S||null!=g&&g.facePop||null!=g&&g.backgroundDim||null!=g&&g.backgroundBlur)&&!m?e.createElement(r.H1,{style:{backgroundColor:"transparent",padding:s?Gn:0,isolation:"isolate",width:b,height:x,zIndex:9}},e.createElement("div",{style:{overflow:"hidden",borderRadius:"30px",width:"100%",height:"100%"}},e.createElement(r.pe,{startFrom:i,src:y,muted:!0,transparent:!0,style:{height:"100%",objectFit:"cover",width:"100%",borderRadius:"30px",filter:null!=g&&g.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0,objectPosition:"portrait"===d?"0% 30%":void 0,transform:c?"scale(".concat(k,")"):void 0}}))):null,e.createElement(Ha,{show:!S&&(null==g?void 0:g.backgroundBlur)&&y,width:b,height:x,zIndex:1}),e.createElement(r.H1,{style:{zIndex:8}},e.createElement(r.gd,{from:C,durationInFrames:180},e.createElement(Dl,{imageUrl:u}))),e.createElement(r.H1,{style:{zIndex:10}},f),l?e.createElement("div",{style:{position:"fixed",left:s?Gn:25,top:s?Gn:25,padding:20,zIndex:9}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:61e3,style:{width:"225px",maxHeight:"auto",objectFit:"contain"},src:l})):null))},MotionStillGreenScreen:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.imageUrl,a=(t.muted,t.frameColor),s=t.logoUrl,l=t.children,c=t.sourceVideoOrientation,u=t.disableTransitionSounds,f=void 0!==u&&u,d=t.noBackgroundVideoUrl,p=t.durationInFrames,h=t.faceMetadata,m=t.noBackgroundVideoEffects,g=(0,r.Bk)(),y=g.width,v=g.height,b=Wa(),x=b.isVirtual,w=b.url,E=x&&!!d,U=p/30,S=An({portrait:{mainVideoWidth:y,mainVideoHeight:.8*v,mainVideoTop:.2*v,mainVideoLeft:0,brollVideoWidth:y,brollVideoHeight:.6*v,brollVideoTop:Gn,brollVideoLeft:Gn,logoTop:60,logoLeft:60,MotionStillGreenScreenComponent:Qc},landscape:{mainVideoWidth:y,mainVideoHeight:.86*v,mainVideoTop:Gn+.14*v,mainVideoLeft:0,brollVideoWidth:y,brollVideoHeight:.65*v,brollVideoTop:0,brollVideoLeft:0,logoTop:60,logoLeft:60,MotionStillGreenScreenComponent:Yc},square:{mainVideoWidth:y,mainVideoHeight:.86*v,mainVideoTop:Gn+.14*v,mainVideoLeft:0,brollVideoWidth:y,brollVideoHeight:.5*v,brollVideoTop:0,brollVideoLeft:0,logoTop:60,logoLeft:60,MotionStillGreenScreenComponent:Yc}}),k=S.MotionStillGreenScreenComponent,C=S.mainVideoWidth,F=S.mainVideoHeight,P=S.mainVideoTop,T=S.mainVideoLeft,_=S.brollVideoWidth,I=S.brollVideoHeight,M=S.brollVideoTop,A=S.brollVideoLeft,R=S.logoTop,V=S.logoLeft,D=S.orientation,O=[0,.5,U-.5,U],j=jn(O,[y,C,C,y],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),z=jn(O,[v,F,F,v],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),B=jn(O,[0,P,P,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),L=jn(O,[0,T,T,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),N=jn(O,[0,_,_,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),H=jn(O,[0,I,I,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),W=jn(O,"portrait"===D?[-I,M,M,-I]:[0,M,M,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),G=jn(O,"portrait"===D?[y/2-_/2,A,A,y/2-_/2]:[0,A,A,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)});return e.createElement(e.Fragment,null,!f&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(k,{imageUrl:o,brollVideoWidthTransition:N,brollVideoHeightTransition:H,brollVideoTopTransition:W,brollVideoLeftTransition:G,mainVideoWidthTransition:j,mainVideoHeightTransition:z,mainVideoTopTransition:B,mainVideoLeftTransition:L,logoUrl:s,frameColor:a,orientation:D,startVideoFrom:i,noBackgroundVideoUrl:d,sourceVideoOrientation:c,logoLeft:V,logoTop:R,videoUrl:n,faceMetadata:h,noBackgroundVideoEffects:m,showVirtual:E,virtualBgUrl:w},l))},MotionStillStudioBackdrop:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.imageUrl,a=t.frameColor,s=t.logoUrl,l=t.children,c=t.sourceVideoOrientation,u=t.disableTransitionSounds,f=void 0!==u&&u,d=t.noBackgroundVideoUrl,p=t.durationInFrames,h=t.faceMetadata,m=t.muted,g=t.noBackgroundVideoEffects,y=(0,r.Bk)(),v=y.width,b=y.height,x=y.fps,w=(0,r.UC)(),E=Wa(),U=E.isVirtual,S=E.url,k=U&&!!d,C=An({portrait:{logoTop:60,logoLeft:60,BrollStudioBackdropComponent:Bc},landscape:{logoTop:60,logoLeft:60,BrollStudioBackdropComponent:Lc},square:{logoTop:60,logoLeft:60,BrollStudioBackdropComponent:zc}}),F=C.BrollStudioBackdropComponent,P=C.logoTop,T=C.logoLeft,_=p-1.5*x,I=0;if(w<=.5*x)I=(0,r.oz)({frame:w,fps:x,config:{damping:100,stiffness:160,mass:1}});else if(w>=_){var M=w-_;I=1-(0,r.oz)({frame:M,fps:x,config:{damping:300,stiffness:80,mass:4}})}else I=1;return e.createElement(e.Fragment,null,!f&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(F,{imageUrl:o,brollSpringProgress:I,width:v,height:b,logoUrl:s,frameColor:a,startVideoFrom:i,noBackgroundVideoUrl:d,sourceVideoOrientation:c,logoLeft:T,logoTop:P,videoUrl:n,faceMetadata:h,muted:m,noBackgroundVideoEffects:g,showVirtual:k,virtualBgUrl:S},l))},KeywordStudioBackdrop:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.words,a=void 0===o?[]:o,s=t.frameColor,l=t.logoUrl,c=t.children,u=t.sourceVideoOrientation,f=t.disableTransitionSounds,d=void 0!==f&&f,p=t.noBackgroundVideoUrl,h=t.durationInFrames,m=t.faceMetadata,g=(t.muted,t.noBackgroundVideoEffects),y=t.cloudMargins,v=t.cloudMinDistancePct,b=t.cloudSpreadDurationSeconds,x=(0,r.Bk)(),w=x.width,E=x.height,U=x.fps,S=(0,r.UC)(),k=Wa(),C=k.isVirtual,F=k.url,P=C&&!!p,T=An({portrait:{logoTop:60,logoLeft:60},landscape:{logoTop:60,logoLeft:60},square:{logoTop:60,logoLeft:60}}),_=T.logoTop,I=T.logoLeft,M=.5*U,A=Math.max(0,(h||2*U)-1.5*U),R=0;if(S<=M)R=(0,r.oz)({frame:S,fps:U,config:{damping:100,stiffness:160,mass:1}});else if(S>=A){var V=S-A;R=1-(0,r.oz)({frame:V,fps:U,config:{damping:300,stiffness:80,mass:4}})}else R=1;return e.createElement(e.Fragment,null,!d&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(Zc,{width:w,height:E,startVideoFrom:i,videoUrl:n,noBackgroundVideoUrl:p,sourceVideoOrientation:u,faceMetadata:m,noBackgroundVideoEffects:g,logoUrl:l,logoLeft:I,logoTop:_,frameColor:s,words:a,cloudMargins:y,cloudMinDistancePct:v,cloudSpreadDurationSeconds:b,backdropProgress:R,showVirtual:P,virtualBgUrl:F},c))},Keyword:function(t){var n=ai(),i=n.primaryColor,o=n.primaryContrast,a=n.accentColor,s=(t||{}).disableTransitionSounds,l=void 0!==s&&s,c=(0,r.Bk)().output,u=(void 0===c?{theme:window.screenplayProps.output.theme}:c).theme,f=void 0===u?"default":u;return"depth"===t.theme||"depth"===f?e.createElement(Ja,t,t.children):e.createElement(e.Fragment,null,!l&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(Gl,zl({},t,{textBackgroundColor:o,textColor:i,accentColor:a,variant:t.variant,durationInFrames:t.durationInFrames})))},BrollSplitScreen:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.brollUrl,a=t.muted,s=t.frameColor,l=t.logoUrl,c=t.children,u=t.sourceVideoOrientation,f=t.disableTransitionSounds,d=void 0!==f&&f,p=t.durationInFrames,h=t.accentColor,m=void 0===h?"#ffffff":h,g=t.faceMetadata,y=t.noBackgroundVideoUrl,v=t.noBackgroundVideoEffects,b=(0,r.Bk)(),x=b.width,w=b.height,E=Wa(),U=E.isVirtual,S=E.url,k=U&&!!y,C=p/30,F=An({portrait:{mainVideoWidth:x-60,mainVideoHeight:.66*(w-60),mainVideoTop:Gn+.34*(w-60),mainVideoLeft:Gn,brollVideoWidth:x-60,brollVideoHeight:.54*(w-60),brollVideoTop:Gn,brollVideoLeft:Gn,logoTop:60,logoLeft:60,BrollSplitScreenComponent:tc},landscape:{mainVideoWidth:3/4*(w-60),mainVideoHeight:w-60,mainVideoTop:Gn,mainVideoLeft:x-Gn-3/4*(w-60),brollVideoWidth:x,brollVideoHeight:w,brollVideoTop:0,brollVideoLeft:0,logoTop:60,logoLeft:60,BrollSplitScreenComponent:rc},square:{mainVideoWidth:x-60,mainVideoHeight:(w-60)*(g?.65:.45),mainVideoTop:Gn+(w-60)*(g?.35:.55),mainVideoLeft:Gn,brollVideoWidth:x-60,brollVideoHeight:(w-60)*(g?.35:.55),brollVideoTop:Gn,brollVideoLeft:Gn,logoTop:60,logoLeft:60,BrollSplitScreenComponent:ec}}),P=F.BrollSplitScreenComponent,T=F.mainVideoWidth,_=F.mainVideoHeight,I=F.mainVideoTop,M=F.mainVideoLeft,A=F.brollVideoWidth,R=F.brollVideoHeight,V=F.brollVideoTop,D=F.brollVideoLeft,O=F.logoTop,j=F.logoLeft,z=F.orientation,B=function(e){for(var t=Yl(e),r=1;r<t.length;r++)t[r]<=t[r-1]&&(t[r]=t[r-1]+.01);return t}([0,.5,C-.5,C]),L=jn(B,[x,T,T,x],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),N=jn(B,[w,_,_,w],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),H=jn(B,[0,I,I,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),W=jn(B,[0,M,M,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),G=jn(B,[A,A,A,A],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),$=jn(B,[R,R,R,R],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),K="landscape"===z?{top:0,left:0}:{top:-R,left:D},J=jn(B,[K.top,V,V,K.top],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),q=jn(B,[K.left,D,D,K.left],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)});return e.createElement(e.Fragment,null,!d&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(P,{brollUrl:o,brollVideoWidthTransition:G,brollVideoHeightTransition:$,brollVideoTopTransition:J,brollVideoLeftTransition:q,mainVideoWidthTransition:L,mainVideoHeightTransition:N,mainVideoTopTransition:H,mainVideoLeftTransition:W,logoUrl:l,frameColor:s,orientation:z,startVideoFrom:i,videoUrl:n,sourceVideoOrientation:u,logoLeft:j,logoTop:O,muted:a,accentColor:m,faceMetadata:g,noBackgroundVideoUrl:y,noBackgroundVideoEffects:v,showVirtual:k,virtualBgUrl:S},c))},BrollGreenScreen:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.brollUrl,a=(t.muted,t.frameColor),s=t.logoUrl,l=t.children,c=t.sourceVideoOrientation,u=t.disableTransitionSounds,f=void 0!==u&&u,d=t.noBackgroundVideoUrl,p=t.durationInFrames,h=t.faceMetadata,m=t.noBackgroundVideoEffects,g=(0,r.Bk)(),y=g.width,v=g.height,b=Wa(),x=b.isVirtual,w=b.url,E=x&&!!d,U=p/30,S=An({portrait:{mainVideoWidth:y,mainVideoHeight:.8*v,mainVideoTop:.2*v,mainVideoLeft:0,brollVideoWidth:y,brollVideoHeight:.6*v,brollVideoTop:Gn,brollVideoLeft:Gn,logoTop:60,logoLeft:60,BrollGreenScreenComponent:bc},landscape:{mainVideoWidth:y,mainVideoHeight:.86*v,mainVideoTop:Gn+.14*v,mainVideoLeft:0,brollVideoWidth:y,brollVideoHeight:.65*v,brollVideoTop:0,brollVideoLeft:0,logoTop:60,logoLeft:60,BrollGreenScreenComponent:vc},square:{mainVideoWidth:y,mainVideoHeight:.86*v,mainVideoTop:Gn+.14*v,mainVideoLeft:0,brollVideoWidth:y,brollVideoHeight:.5*v,brollVideoTop:0,brollVideoLeft:0,logoTop:60,logoLeft:60,BrollGreenScreenComponent:vc}}),k=S.BrollGreenScreenComponent,C=S.mainVideoWidth,F=S.mainVideoHeight,P=S.mainVideoTop,T=S.mainVideoLeft,_=S.brollVideoWidth,I=S.brollVideoHeight,M=S.brollVideoTop,A=S.brollVideoLeft,R=S.logoTop,V=S.logoLeft,D=S.orientation,O=[0,.5,U-.5,U],j=jn(O,[y,C,C,y],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),z=jn(O,[v,F,F,v],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),B=jn(O,[0,P,P,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),L=jn(O,[0,T,T,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),N=jn(O,[0,_,_,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),H=jn(O,[0,I,I,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),W=jn(O,"portrait"===D?[-I,M,M,-I]:[0,M,M,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)}),G=jn(O,"portrait"===D?[y/2-_/2,A,A,y/2-_/2]:[0,A,A,0],{extrapolateRight:"clamp",easing:r.GS.in(r.GS.quad)});return e.createElement(e.Fragment,null,!f&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(k,{brollUrl:o,brollVideoWidthTransition:N,brollVideoHeightTransition:H,brollVideoTopTransition:W,brollVideoLeftTransition:G,mainVideoWidthTransition:j,mainVideoHeightTransition:z,mainVideoTopTransition:B,mainVideoLeftTransition:L,logoUrl:s,frameColor:a,orientation:D,startVideoFrom:i,noBackgroundVideoUrl:d,sourceVideoOrientation:c,logoLeft:V,logoTop:R,videoUrl:n,faceMetadata:h,noBackgroundVideoEffects:m,showVirtual:E,virtualBgUrl:w},l))},BrollStudioBackdrop:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.brollUrl,a=t.frameColor,s=t.logoUrl,l=t.children,c=t.sourceVideoOrientation,u=t.disableTransitionSounds,f=void 0!==u&&u,d=t.noBackgroundVideoUrl,p=t.durationInFrames,h=t.faceMetadata,m=t.noBackgroundVideoEffects,g=(0,r.Bk)(),y=g.width,v=g.height,b=g.fps,x=(0,r.UC)(),w=Wa(),E=w.isVirtual,U=w.url,S=E&&!!d,k=An({portrait:{logoTop:60,logoLeft:60,BrollStudioBackdropComponent:Oc},landscape:{logoTop:60,logoLeft:60,BrollStudioBackdropComponent:jc},square:{logoTop:60,logoLeft:60,BrollStudioBackdropComponent:Dc}}),C=k.BrollStudioBackdropComponent,F=k.logoTop,P=k.logoLeft,T=p-1.5*b,_=0;if(x<=.5*b)_=(0,r.oz)({frame:x,fps:b,config:{damping:100,stiffness:160,mass:1}});else if(x>=T){var I=x-T;_=1-(0,r.oz)({frame:I,fps:b,config:{damping:300,stiffness:80,mass:4}})}else _=1;return e.createElement(e.Fragment,null,!f&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(C,{brollUrl:o,brollSpringProgress:_,width:y,height:v,logoUrl:s,frameColor:a,startVideoFrom:i,noBackgroundVideoUrl:d,sourceVideoOrientation:c,logoLeft:P,logoTop:F,videoUrl:n,faceMetadata:h,noBackgroundVideoEffects:m,showVirtual:S,virtualBgUrl:U},l))},IntroVideo:function(t){var n=t.videoUrl,i=t.startVideoFrom,o=t.sentenceText,a=void 0===o?"":o,s=t.sentenceTextTwo,l=void 0===s?"John Smith":s,c=t.logoUrl,u=t.children,f=t.sourceVideoOrientation,d=t.disableTransitionSounds,p=void 0!==d&&d,h=t.durationInFrames,m=t.muted,g=t.faceMetadata,y=t.noBackgroundVideoEffects,v=t.noBackgroundVideoUrl,b=(0,r.Bk)(),x=b.width,w=b.height,E=Wa(),U=E.isVirtual,S=E.url,k=U&&!!v,C=An({portrait:{videoWidth:x-60,videoHeight:.5*w,videoTop:.5*w+Gn,videoLeft:Gn,backgroundHeight:.5*w,logoTop:Gn,logoRight:Gn,IntroVideoComponent:Ac},landscape:{videoWidth:.5*x,videoHeight:w,videoTop:0,videoLeft:.5*x,backgroundWidth:.5*x,logoTop:Gn,logoRight:Gn,IntroVideoComponent:Mc},square:{videoWidth:.5*x-Gn,videoHeight:w-60,videoTop:Gn,videoLeft:.5*x+15,backgroundWidth:.5*x,logoTop:Gn,logoRight:Gn,IntroVideoComponent:Rc}}),F=C.IntroVideoComponent,P=C.videoWidth,T=C.videoHeight,_=C.videoTop,I=C.videoLeft,M=C.backgroundWidth,A=C.backgroundHeight,R=C.logoTop,V=C.logoLeft,D=C.logoRight,O=C.orientation;return e.createElement(e.Fragment,null,!p&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(F,{videoUrl:n,startVideoFrom:i,sourceVideoOrientation:f,sentenceText:a,sentenceTextTwo:l,logoUrl:c,logoLeft:V,logoTop:R,logoRight:D,videoWidth:P,videoHeight:T,videoTop:_,videoLeft:I,backgroundWidth:M,backgroundHeight:A,orientation:O,durationInFrames:h,muted:m,faceMetadata:g,noBackgroundVideoEffects:y,noBackgroundVideoUrl:v,showVirtual:k,virtualBgUrl:S},u))},StretchTextDemo:Vc,KeyPointOverlayDepth:Ja,DynamicTriangle:function(t){for(var n=t.children,i=t.videoUrl,o=t.startVideoFrom,a=t.durationInFrames,s=t.muted,l=(t.frameColor,t.disableTransitionSounds),c=void 0!==l&&l,u=t.triangleSize,f=void 0===u?600:u,d=(t.triangleColor,t.triangleBorderWidth),p=void 0===d?60:d,h=t.borderRadius,m=void 0===h?80:h,g=t.sentenceText,y=t.noBackgroundVideoUrl,v=t.noBackgroundVideoEffects,b=t.faceMetadata,x=(0,r.Bk)(),w=x.width,E=x.height,U=x.fps,S=(0,r.UC)(),k=Wa(),C=k.isVirtual,F=k.url,P=C&&!!y,T=ai(),_=(T.primaryColor,T.accentColor),I=(T.accentContrast,T.primaryContrast,An({landscape:{triangleSize:f,triangleBorderWidth:p,borderRadius:m,startRotation:165,endRotation:290,maskStartScale:10,maskEndScale:2.5,easings:{enter:{rotation:r.GS.inOut(r.GS.quad),position:r.GS.inOut(r.GS.ease),mask:r.GS.inOut(r.GS.cubic),video:r.GS.inOut(r.GS.cubic)},exit:{rotation:r.GS.out(r.GS.cubic),position:r.GS.out(r.GS.cubic),mask:r.GS.out(r.GS.cubic),video:r.GS.out(r.GS.exp)}},videoExitLeadSeconds:0,videoExitDurationSeconds:1.5,xStartPos:w/8*3+150,xEndPos:w/4*3+250,yStartPos:E/2.25,yEndPos:E/2.25,videoOffsetStart:0,videoOffsetEnd:48,videoOffsetExit:-80,videoOffsetYStart:0,videoOffsetYEnd:0,videoOffsetYExit:0,textContainerWidth:w/2-250,textContainerHeight:E},square:{triangleSize:450,triangleBorderWidth:50,borderRadius:70,startRotation:0,endRotation:195,maskStartScale:8,maskEndScale:2.2,easings:{enter:{rotation:r.GS.inOut(r.GS.quad),position:r.GS.inOut(r.GS.ease),mask:r.GS.inOut(r.GS.cubic),video:r.GS.inOut(r.GS.cubic)},exit:{rotation:r.GS.out(r.GS.cubic),position:r.GS.out(r.GS.cubic),mask:r.GS.out(r.GS.cubic),video:r.GS.out(r.GS.cubic)}},videoExitLeadSeconds:.05,videoExitDurationSeconds:1.2,xStartPos:w/2,xEndPos:w-300,yStartPos:E/2,yEndPos:E-150,videoOffsetStart:0,videoOffsetEnd:30,videoOffsetExit:0,videoOffsetYStart:0,videoOffsetYEnd:40,videoOffsetYExit:0,textContainerWidth:w-200,textContainerHeight:.35*E},portrait:{triangleSize:650,triangleBorderWidth:45,borderRadius:65,startRotation:10,endRotation:195,maskStartScale:10,maskEndScale:2.8,easings:{enter:{rotation:r.GS.inOut(r.GS.quad),position:r.GS.inOut(r.GS.ease),mask:r.GS.inOut(r.GS.cubic),video:r.GS.inOut(r.GS.cubic)},exit:{rotation:r.GS.out(r.GS.cubic),position:r.GS.out(r.GS.cubic),mask:r.GS.out(r.GS.cubic),video:r.GS.out(r.GS.cubic)}},videoExitLeadSeconds:.1,videoExitDurationSeconds:.9,xStartPos:w/2,xEndPos:w/2,yStartPos:400,yEndPos:E-200,videoOffsetStart:0,videoOffsetEnd:0,videoOffsetExit:0,videoOffsetYStart:0,videoOffsetYEnd:40,videoOffsetYExit:0,textContainerWidth:w-200,textContainerHeight:.4*E}})),M=I.triangleSize,A=I.triangleBorderWidth,R=I.borderRadius,V=I.startRotation,D=I.endRotation,O=I.maskStartScale,j=I.maskEndScale,z=I.easings,B=I.videoExitLeadSeconds,L=I.videoExitDurationSeconds,N=I.xStartPos,H=I.xEndPos,W=I.yStartPos,G=I.yEndPos,$=I.videoOffsetStart,K=I.videoOffsetEnd,J=I.videoOffsetExit,q=I.videoOffsetYStart,X=I.videoOffsetYEnd,Z=I.videoOffsetYExit,Y=I.textContainerWidth,Q=I.textContainerHeight,ee=1.5,te=1.25,re=Number.isFinite(a),ne=re&&a>0?a/U:null,ie="number"==typeof ne&&ne-ee>=te,oe=ie?ne-ee:null,ae="number"==typeof oe?oe*U:null,se=Boolean(ie&&null!==ae&&S>=ae),le=oe&&"number"==typeof B?oe-B:oe,ce=ie&&"number"==typeof le?Math.max(0,le):null,ue=ie&&"number"==typeof L&&"number"==typeof ce&&"number"==typeof ne?Math.min(ce+L,ne):ne,fe=ie&&"number"==typeof ce&&"number"==typeof ue&&ue>ce,de=fe?ue:null,pe=fe&&"number"==typeof ce?ce*U:null,he=Boolean(fe&&null!==pe&&S>=pe),me=jn(ie&&"number"==typeof ne?[0,te,oe,ne]:[0,te],ie&&"number"==typeof ne?[V,D,D,V+10]:[V,D],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:se?z.exit.rotation:z.enter.rotation}),ge=jn(ie&&"number"==typeof ne?[0,te,oe,ne]:[0,te],ie&&"number"==typeof ne?[N,H,H,N]:[N,H],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:se?z.exit.position:z.enter.position}),ye=jn(ie&&"number"==typeof ne?[0,te,oe,ne]:[0,te],ie&&"number"==typeof ne?[W,G,G,W]:[W,G],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:se?z.exit.position:z.enter.position}),ve=jn(fe&&"number"==typeof ce&&"number"==typeof de?[.8,te,ce,de]:[.8,te],fe&&"number"==typeof ce&&"number"==typeof de?[$,K,K,J]:[$,K],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:he?z.exit.video:z.enter.video}),be=jn(fe&&"number"==typeof ce&&"number"==typeof de?[.8,te,ce,de]:[.8,te],fe&&"number"==typeof ce&&"number"==typeof de?[q,X,X,Z]:[q,X],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:he?z.exit.video:z.enter.video}),xe=jn(ie&&"number"==typeof ne?[0,ee,oe,ne]:[0,ee],ie&&"number"==typeof ne?[O,j,j,O]:[O,j],{extrapolateRight:"clamp",extrapolateLeft:"clamp",easing:se?z.exit.mask:z.enter.mask}),we=Math.min(xe,10),Ee=M*we,Ue=Ee/2,Se=Ee*Math.sqrt(3)/2,ke=xe>5,Ce=Math.min(R||80,.35*Ee)*we,Fe=w/2,Pe=E/2-Se/2,Te=w/2-Ue,_e=E/2+Se/2,Ie=w/2+Ue,Me=E/2+Se/2,Ae=Ce/(.5*Ee),Re=Fe+(Ie-Fe)*Ae,Ve=Pe+(Me-Pe)*Ae,De=Ie-(Ie-Fe)*Ae,Oe=Me-(Me-Pe)*Ae,je=Ie+(Te-Ie)*Ae,ze=Me+(_e-Me)*Ae,Be=Te-(Te-Ie)*Ae,Le=_e-(_e-Me)*Ae,Ne=Te+(Fe-Te)*Ae,He=_e+(Pe-_e)*Ae,We=Fe-(Fe-Te)*Ae,Ge=Pe-(Pe-_e)*Ae,$e=ke&&xe>10?"M 0,0 L ".concat(w,",0 L ").concat(w,",").concat(E," L 0,").concat(E," Z"):"\n M ".concat(We,", ").concat(Ge,"\n Q ").concat(Fe,", ").concat(Pe," ").concat(Re,", ").concat(Ve,"\n L ").concat(De,", ").concat(Oe,"\n Q ").concat(Ie,", ").concat(Me," ").concat(je,", ").concat(ze,"\n L ").concat(Be,", ").concat(Le,"\n Q ").concat(Te,", ").concat(_e," ").concat(Ne,", ").concat(He,"\n Z\n "),Ke=[],Je=0;Je<3;Je++){var qe=1+A*(Je+1)/M,Xe=M*qe*we,Ze=Xe/2,Ye=Xe*Math.sqrt(3)/2,Qe=w/2,et=E/2-Ye/2,tt=w/2-Ze,rt=E/2+Ye/2,nt=w/2+Ze,it=E/2+Ye/2,ot=Ce*qe/(.5*Xe),at=Qe+(nt-Qe)*ot,st=et+(it-et)*ot,lt=nt-(nt-Qe)*ot,ct=it-(it-et)*ot,ut=nt+(tt-nt)*ot,ft=it+(rt-it)*ot,dt=tt-(tt-nt)*ot,pt=rt-(rt-it)*ot,ht=tt+(Qe-tt)*ot,mt=rt+(et-rt)*ot,gt=et-(et-rt)*ot,yt="\n M ".concat(Qe-(Qe-tt)*ot,", ").concat(gt,"\n Q ").concat(Qe,", ").concat(et," ").concat(at,", ").concat(st,"\n L ").concat(lt,", ").concat(ct,"\n Q ").concat(nt,", ").concat(it," ").concat(ut,", ").concat(ft,"\n L ").concat(dt,", ").concat(pt,"\n Q ").concat(tt,", ").concat(rt," ").concat(ht,", ").concat(mt,"\n Z\n "),vt=.6-.2*Je;Ke.push({path:yt,opacity:vt,index:Je})}var bt,xt,wt,Et,Ut,St=Mn(g,Y,Q,120),kt=St.lines,Ct=St.fontSize;return e.createElement(e.Fragment,null,!c&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/swoosh.mp3",volume:.25}),e.createElement(r.H1,{style:{zIndex:-1}},e.createElement(r.pe,{style:{width:w,height:E,objectFit:"cover",position:"relative"},src:"https://storage.googleapis.com/ai-recorder-media-assets/media/production/dynamic_triangle_background.mp4"})),e.createElement(r.H1,{style:{isolation:"isolate"}},e.createElement(r.H1,null,(xt=re?a-60:null,Et=(wt="number"==typeof(bt=re?a-80:null)&&"number"==typeof xt&&bt>=0&&xt>bt)?(0,r.GW)(S,[0,bt,xt],[1,1,0],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:r.GS.in(r.GS.cubic)}):1,Ut=wt?(0,r.GW)(S,[0,bt,xt],[0,0,-Ct],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:r.GS.in(r.GS.cubic)}):0,e.createElement("div",{style:{paddingLeft:"100px",paddingTop:"100px",opacity:Et,transform:"translateY(".concat(Ut,"px)"),zIndex:1}},kt.map((function(t,n){for(var i=t.split(" "),o=0,s=0;s<n;s++)o+=kt[s].split(" ").length;return e.createElement("p",{key:n,style:{fontFamily:Nc,fontStyle:"italic",fontSize:Ct,fontWeight:600,margin:0,color:"#ffffff",lineHeight:"1",display:"flex",flexWrap:"wrap",gap:"0.3em",zIndex:1,position:"relative"}},i.map((function(t,n){var i=45+3*(o+n),s=i+15,l=!re||a>s,c=l?(0,r.GW)(S,[i,s],[0,1],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:r.GS.out(r.GS.cubic)}):1,u=l?(0,r.GW)(S,[i,s],[50,0],{extrapolateLeft:"clamp",extrapolateRight:"clamp",easing:r.GS.out(r.GS.cubic)}):0;return e.createElement("span",{key:n,style:{opacity:c,transform:"translateY(".concat(u,"%)"),display:"inline-block"}},t)})))}))))),e.createElement("div",{style:{width:"100%",height:"100%",clipPath:"url(#triangleClip)",display:"flex",justifyContent:"end",alignItems:"end"}},b?e.createElement(Na,{startFrom:o,src:i,muted:s,containerWidth:(100-ve)/100*w,containerHeight:(100-be)/100*E,style:{width:"100%",height:"100%",objectFit:"cover",transformOrigin:"center center",filter:!P&&null!=v&&v.backgroundDim&&y?"brightness(0.7)":void 0}}):e.createElement(r.pe,{startFrom:o,src:i,muted:s,style:{width:"".concat(100-ve,"%"),height:"".concat(100-be,"%"),objectFit:"cover",transformOrigin:"center center",filter:!P&&null!=v&&v.backgroundDim&&y?"brightness(0.7)":void 0}})),e.createElement("svg",{width:w,height:E,style:{position:"absolute",top:0,left:0,pointerEvents:"none",zIndex:1}},e.createElement("defs",null,e.createElement("clipPath",{id:"triangleClip"},e.createElement("path",{d:$e,transform:"\n translate(".concat(ge,", ").concat(ye,")\n rotate(-").concat(me," )\n translate(-").concat(w/2,", -").concat(E/2,")\n ")})),Ke.map((function(t,r){var n=0===r?$e:Ke[r-1].path;return e.createElement("mask",{key:"mask-".concat(r),id:"layerMask-".concat(r)},e.createElement("rect",{width:w,height:E,fill:"black"}),e.createElement("path",{d:t.path,fill:"white",transform:"\n translate(".concat(ge,", ").concat(ye,")\n rotate(-").concat(me,")\n translate(-").concat(w/2,", -").concat(E/2,")\n ")}),e.createElement("path",{d:n,fill:"black",transform:"\n translate(".concat(ge,", ").concat(ye,")\n rotate(-").concat(me,")\n translate(-").concat(w/2,", -").concat(E/2,")\n ")}))}))),Ke.map((function(t,r){return e.createElement("rect",{key:"layer-".concat(r),width:w,height:E,fill:_,fillOpacity:t.opacity,mask:"url(#layerMask-".concat(r,")")})}))),y&&(P||(null==v?void 0:v.facePop)||(null==v?void 0:v.backgroundDim)||(null==v?void 0:v.backgroundBlur))&&e.createElement("div",{style:{position:"absolute",inset:0,clipPath:"url(#triangleClip)",overflow:"hidden",pointerEvents:"none",display:"flex",justifyContent:"end",alignItems:"end",objectFit:"cover",transformOrigin:"center center"}},e.createElement(r.H1,null,e.createElement(Ha,{show:!P&&(null==v?void 0:v.backgroundBlur)&&y,width:w,height:E,zIndex:0})),P&&F?e.createElement(ml,{url:F,left:"".concat(ve,"%"),top:"".concat(be,"%"),width:"".concat(100-ve,"%"),height:"".concat(100-be,"%"),zIndex:0,zoom:1.02}):null,b?e.createElement(Na,{startFrom:o,src:y,muted:!0,transparent:!0,containerWidth:(100-ve)/100*w,containerHeight:(100-be)/100*E,style:{zIndex:5,width:"100%",height:"100%",objectFit:"cover",transformOrigin:"center center",filter:null!=v&&v.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}}):e.createElement(r.pe,{startFrom:o,src:y,muted:!0,transparent:!0,style:{zIndex:5,width:"".concat(100-ve,"%"),height:"".concat(100-be,"%"),objectFit:"cover",filter:null!=v&&v.facePop?"brightness(1.1) contrast(1.15) saturate(1.05)":void 0}})),e.createElement(r.H1,{style:{zIndex:14}},n)))},BrollFullscreen:function(t){var n=t.videoUrl,i=t.durationInFrames,o=Wa(),a=o.isVirtual,s=o.url;return e.createElement(r.gd,{durationInFrames:i},e.createElement(r.H1,null,a&&s?e.createElement(Ga,{url:s,zIndex:1}):null,e.createElement(r.pe,{src:n,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0})))},PhraseRainbowEffect:function(t){var n=t.text,i=(0,r.UC)(),o=(0,r.GW)(i,[0,50],[.5,1.25],{easing:r.GS.bounce,extrapolateRight:"clamp"});return e.createElement(r.H1,{style:{display:"grid",placeContent:"center"}},e.createElement("div",{style:{padding:"5px 250px",background:"rgba(255, 255, 255, 0.75)",borderRadius:"30px",width:"fit-content",transform:"scale(".concat(o,")")}},e.createElement("h1",{style:{background:"linear-gradient(to right, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da, #43a047, #eeff41, #f9a825, #ff5722)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontSize:"5rem",fontWeight:300,fontFamily:"'Roboto', 'Helvetica', 'Arial', sans-serif",textAlign:"center"}},n)))},SentenceSimple:Za,NametagFold:Cl,Nametag:Cl,Title:function(t){var n=Xa("Title",t.theme);return e.createElement(e.Fragment,null,e.createElement(r.gd,{from:0},"none"!==t.theme&&e.createElement(r.fP,{src:"https://cdn.zync.ai/assets/static/ding.mp3",volume:.25})),e.createElement(n,t))},Sentence:Za,Watermark:function(){return e.createElement(r.H1,null,e.createElement("div",{style:{position:"absolute",color:"white",height:90,bottom:30,right:30}},e.createElement(yi,{delayRenderTimeoutInMilliseconds:62e3,src:"https://storage.googleapis.com/zync-media/assets/static/watermark.png",style:{height:"100%"}})))},HandoffNametag:function(t){var n=Xa("HandoffNametag",t.theme);return e.createElement(e.Fragment,null,e.createElement(r.H1,null,e.createElement(n,t)))},CaptionSimple:kl,Caption:kl,CaptionPunctuated:function(t){var n=t.transcripts,i=t.color,o=(0,r.Bk)().width,a=An({portrait:{fontSize:75,bottom:Uo},landscape:{fontSize:60,bottom:110},square:{fontSize:75,bottom:110}}),s=a.bottom,l=a.fontSize,c=ai(),u=c.primaryColor,f=(c.primaryContrast,c.accentColor),d=(c.accentContrast,.8*o),p=(0,r.UC)(),h=fo(u,f);return e.createElement(r.H1,null,n.map((function(t,n){var a=Mn(t.text,.7*o,1.6*l,l),c=(a.lines,a.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{display:"flex",alignItems:"center",gap:l/4,justifyContent:"center",height:1.6*l,position:"absolute",bottom:s,left:"50%",width:d,margin:"0 auto",transform:"translateX(-50%)",fontSize:c,textTransform:"uppercase",textAlign:"center",fontFamily:ql,fontWeight:700,textWrap:"nowrap"}},t.text.split(" ").map((function(r,n){var o,a,s=p>=Number((null===(o=t.punctuations.find((function(e){return e.index===n})))||void 0===o?void 0:o.start)||0)&&Number(p<=(null===(a=t.punctuations.find((function(e){return e.index===n})))||void 0===a?void 0:a.end));return e.createElement("span",{key:n,style:{color:s?i||h:"white",textShadow:"3px 3px 3px #000"}},r)}))))})))},CaptionWordBoom:function(t){var n=t.transcripts,i=t.color,o=(0,r.Bk)().width,a=An({portrait:{fontSize:55,bottom:Uo},landscape:{fontSize:55,bottom:110},square:{fontSize:55,bottom:110}}),s=a.bottom,l=a.fontSize,c=ai(),u=c.primaryColor,f=(c.primaryContrast,c.accentColor),d=(c.accentContrast,.8*o),p=(0,r.UC)();fo(u,f);return e.createElement(r.H1,null,n.map((function(t,n){var a=Mn(t.text,.7*o,1.6*l,l),c=(a.lines,a.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{display:"flex",alignItems:"center",gap:l/1.75,justifyContent:"center",height:1.6*l,position:"absolute",bottom:s,left:"50%",width:d,margin:"0 auto",transform:"translateX(-50%)",fontSize:c,textTransform:"uppercase",textAlign:"center",fontFamily:oc,textWrap:"nowrap",lineHeight:1,fontWeight:400,color:"#fff"}},t.text.split(" ").map((function(r,n){var o,a,s=p>=Number((null===(o=t.punctuations.find((function(e){return e.index===n})))||void 0===o?void 0:o.start)||0)&&Number(p<=(null===(a=t.punctuations.find((function(e){return e.index===n})))||void 0===a?void 0:a.end));return e.createElement("span",{key:n,style:{color:s?i||f:"white",transform:"scaleX(".concat(s?1.15:1,") scaleY(").concat(s?1.3:1,")"),transition:"transform 0.2s",textShadow:"0px 0px 4px #000000, 0px 0px 4px #000000, 0px 0px 4px #000000, 0px 0px 10px #000000, 0px 0px 10px #000000"}},r)}))))})))},CaptionWordBubble:function(t){var n=t.transcripts,i=t.color,o=(0,r.Bk)().width,a=An({portrait:{fontSize:60,bottom:Uo},landscape:{fontSize:60,bottom:110},square:{fontSize:60,bottom:110}}),s=a.bottom,l=a.fontSize,c=ai(),u=c.primaryColor,f=(c.primaryContrast,c.accentColor),d=c.accentContrast,p=.8*o,h=(0,r.UC)();fo(u,f);return e.createElement(r.H1,null,n.map((function(t,n){var a=Mn(t.text,.7*o,1.6*l,l),c=(a.lines,a.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{display:"flex",gap:c/2,alignItems:"center",justifyContent:"center",height:1.6*l,position:"absolute",bottom:s,left:"50%",width:p,margin:"0 auto",transform:"translateX(-50%)",fontSize:c,textTransform:"uppercase",textAlign:"center",fontFamily:ac,textWrap:"nowrap",lineHeight:1,fontWeight:900,color:"#fff"}},t.text.split(" ").map((function(r,n){var o,a,s=h>=Number((null===(o=t.punctuations.find((function(e){return e.index===n})))||void 0===o?void 0:o.start)||0)&&Number(h<=(null===(a=t.punctuations.find((function(e){return e.index===n})))||void 0===a?void 0:a.end));return e.createElement("span",{key:n,style:{borderRadius:"10px",padding:"0.5rem 0.75rem 0.5rem 0.75rem",color:s?i||f:"white",background:s?d:"transparent",transform:"scaleX(".concat(s?1.15:1,") scaleY(").concat(s?1.3:1,")"),transition:"transform 0.2s",textShadow:s?"":"-3px 0 black, 0 3px black, 3px 0 black, 0 -3px black"}},r)}))))})))},CaptionWordPopup:function(t){var n=t.transcripts,i=t.color,o=(0,r.Bk)().width,a=An({portrait:{fontSize:60,bottom:Uo},landscape:{fontSize:60,bottom:110},square:{fontSize:60,bottom:110}}),s=a.bottom,l=a.fontSize,c=ai(),u=c.primaryColor,f=(c.primaryContrast,c.accentColor),d=(c.accentContrast,.8*o),p=(0,r.UC)();fo(u,f);return e.createElement(r.H1,null,n.map((function(t,n){var a=Mn(t.text,.7*o,1.6*l,l),c=(a.lines,a.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{display:"flex",gap:c/2,alignItems:"center",justifyContent:"center",height:1.6*l,position:"absolute",bottom:s,left:"50%",width:d,margin:"0 auto",transform:"translateX(-50%)",fontSize:c,textTransform:"uppercase",textAlign:"center",fontFamily:lc,textWrap:"nowrap",lineHeight:1,fontWeight:900,color:"#fff"}},t.text.split(" ").map((function(r,n){var o,a,s=p>=Number((null===(o=t.punctuations.find((function(e){return e.index===n})))||void 0===o?void 0:o.start)||0)&&Number(p<=(null===(a=t.punctuations.find((function(e){return e.index===n})))||void 0===a?void 0:a.end));return e.createElement("span",{key:n,style:{position:"relative",borderRadius:"10px",color:s?i||f:"white"}},e.createElement("span",null,r.split("").map((function(t,r){return e.createElement("span",{style:{position:"relative"}},e.createElement("span",{style:{top:0,left:0,transition:"color 0.2s",color:s?"white":i||f,position:"absolute",zIndex:-1,transform:s?"scale(2.00)":"scale(1.15)",transformOrigin:s?"center center":"top center",fontFamily:s?uc:lc}},t),e.createElement("span",{style:{position:"absolute",zIndex:-1,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),t)}))))}))))})))},CaptionElegant:function(t){var n=t.transcripts,i=t.color,o=(0,r.Bk)(),a=o.width,s=o.fps,l=(0,r.UC)(),c=An({portrait:{fontSize:65,bottom:Uo},landscape:{fontSize:90,bottom:110},square:{fontSize:64,bottom:110}}),u=c.bottom,f=c.fontSize,d=.78*a,p=i||"#ffffff";return e.createElement(r.H1,null,n.map((function(t,n){var i=Mn(t.text,.72*a,1.5*f,f).fontSize,o=t.text.split(/\s+/).filter(Boolean),c=o.length>0?o.reduce((function(e,t,r){var n=t.replace(/[^A-Za-z0-9]/g,"").length||t.length;return n>e.length?{index:r,length:n}:e}),{index:0,length:0}).index:-1;return e.createElement(r.gd,{key:"".concat(n,"-").concat(t.from),from:t.from,durationInFrames:t.durationInFrames},e.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:i/4,justifyContent:"center",alignItems:"flex-end",position:"absolute",bottom:u,left:"50%",transform:"translateX(-50%)",width:d,margin:0,color:p,fontSize:i,textAlign:"center",fontFamily:hc,lineHeight:1.08,textTransform:"none"}},o.map((function(o,a){var u,f=null===(u=t.punctuations)||void 0===u?void 0:u.find((function(e){return e.index===a})),d=yc(t.from,0),h=yc(null==f?void 0:f.start,d),m=(yc(null==f?void 0:f.end,h),a===c),g=(0,r.oz)({frame:Math.max(0,l-h),fps:s,config:{damping:18,stiffness:130,mass:.6}}),y=l>=h?Math.min(1,g):0,v=(0,r.GW)(g,[0,1],[18,0],{extrapolateLeft:"clamp",extrapolateRight:"clamp"}),b="caption-elegant-".concat(t.id||n,"-").concat(a),x=.88+.45*(0,r.yT)(b),w=m?2.5:1;return e.createElement("span",{key:"".concat(b,"-").concat(o),style:{display:"inline-flex",alignItems:"flex-end",alignSelf:"baseline",padding:"0 ".concat(.08*i,"px"),fontSize:i*x*w,fontFamily:m?gc:hc,fontWeight:m?500:800,letterSpacing:m?"0.01em":"-0.01em",lineHeight:1,verticalAlign:"bottom",opacity:y,transform:"translateY(".concat(v,"px)"),color:p,textShadow:m?"0 0 1px rgba(255,255,255,.85), 0 0 4px rgba(255,255,255,.55), 0 0 10px rgba(255,255,255,.25)":"0 3px 0 rgba(0,0,0,.18)",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",transition:"font-family 0.2s ease, font-weight 0.2s ease",whiteSpace:"pre"}},o)}))))})))},CaptionColor:function(t){var n=t.transcripts,i=ai(),o=i.accentColor,a=i.accentContrast,s=(0,r.Bk)().width,l=An({portrait:{fontSize:100,bottom:Uo},landscape:{fontSize:110,bottom:110},square:{fontSize:100,bottom:110}}),c=l.bottom,u=l.fontSize;return e.createElement(r.H1,null,n.map((function(t,n){var i=Mn(t.text,.7*s,1.2*u,u),l=(i.lines,i.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{color:o,display:"flex",alignItems:"center",justifyContent:"center",height:1.2*u,borderRadius:10,position:"absolute",bottom:c,left:"50%",padding:"0 30px",margin:"0 auto",transform:"translateX(-50%)",fontSize:l,textTransform:"uppercase",textAlign:"center",fontFamily:$l,textShadow:"5px 3px 0px ".concat(a),backgroundColor:a,fontWeight:700,textWrap:"nowrap"}},t.text))})))},CaptionColorInverse:function(t){var n=t.transcripts,i=ai(),o=i.accentColor,a=i.accentContrast,s=(0,r.Bk)().width,l=An({portrait:{fontSize:100,bottom:Uo},landscape:{fontSize:110,bottom:110},square:{fontSize:100,bottom:110}}),c=l.bottom,u=l.fontSize;return e.createElement(r.H1,null,n.map((function(t,n){var i=Mn(t.text,.7*s,1.2*u,u),l=(i.lines,i.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{color:a,display:"flex",alignItems:"center",justifyContent:"center",height:1.2*u,borderRadius:10,position:"absolute",bottom:c,left:"50%",padding:"0 30px",margin:"0 auto",transform:"translateX(-50%)",fontSize:l,textTransform:"uppercase",textAlign:"center",fontFamily:Kl,textShadow:"5px 3px 0px ".concat(o),backgroundColor:o,fontWeight:700,textWrap:"nowrap"}},t.text))})))},CaptionColorShadow:function(t){var n=t.transcripts,i=ai(),o=i.accentColor,a=i.accentContrast,s=(0,r.Bk)().width,l=An({portrait:{fontSize:100,bottom:Uo},landscape:{fontSize:110,bottom:110},square:{fontSize:100,bottom:110}}),c=l.bottom,u=l.fontSize;return e.createElement(r.H1,null,n.map((function(t,n){var i=Mn(t.text,.7*s,1.2*u,u),l=(i.lines,i.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{color:o,display:"flex",alignItems:"center",justifyContent:"center",height:1.2*u,borderRadius:10,position:"absolute",bottom:c,left:"50%",padding:"0 30px",margin:"0 auto",transform:"translateX(-50%)",fontSize:l,textTransform:"uppercase",textAlign:"center",fontFamily:Jl,textShadow:"5px 3px 0px ".concat(a),fontWeight:700,textWrap:"nowrap"}},t.text))})))},CaptionEmphasis:function(t){var n=t.transcripts,i=t.color,o=(0,r.Bk)().width,a=An({portrait:{fontSize:90,bottom:Uo},landscape:{fontSize:80,bottom:110},square:{fontSize:60,bottom:110}}),s=a.bottom,l=a.fontSize,c=ai().accentColor,u=.5*o,f=(0,r.UC)();return e.createElement(r.H1,null,n.map((function(t,n){var a=Mn(t.text,.8*o,20*l,l),d=(a.lines,a.fontSize);return e.createElement(r.gd,{key:n,from:t.from,durationInFrames:t.durationInFrames},e.createElement("p",{style:{display:"flex",flexWrap:"wrap",gap:d/3,alignItems:"center",justifyContent:"center",height:1.6*l,position:"absolute",bottom:s,left:"50%",width:u,margin:"0 auto",transform:"translate(-50%, -50%)",fontSize:d,textAlign:"center",fontFamily:fc,textWrap:"nowrap",lineHeight:1,fontWeight:900,color:"#fff",letterSpacing:d/5}},e.createElement(dc,{frame:f,transcript:t,color:i,accentColor:c,fontSize:l})))})))},Soundtrack:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.src,i=t.volume,o=t.loop;return n?e.createElement(r.fP,{src:n,volume:i,loop:o}):null},StretchText:Aa},tu=({children:n,presentationProgress:i,presentationDirection:o,passedProps:{direction:a="from-left",enterStyle:s,exitStyle:l}})=>{const c=(0,e.useMemo)((()=>{const e=1===i?100*i:100*i-.01;if("exiting"===o)switch(a){case"from-left":return{transform:`translateX(${e}%)`};case"from-right":return{transform:`translateX(${100*-i}%)`};case"from-top":return{transform:`translateY(${e}%)`};case"from-bottom":return{transform:`translateY(${100*-i}%)`};default:throw new Error(`Invalid direction: ${a}`)}switch(a){case"from-left":return{transform:`translateX(${100*i-100}%)`};case"from-right":return{transform:`translateX(${100-e}%)`};case"from-top":return{transform:`translateY(${100*i-100}%)`};case"from-bottom":return{transform:`translateY(${100-e}%)`};default:throw new Error(`Invalid direction: ${a}`)}}),[o,i,a]),u=(0,e.useMemo)((()=>({width:"100%",height:"100%",justifyContent:"center",alignItems:"center",...c,..."entering"===o?s:l})),[c,s,l,o]);return(0,t.jsx)(r.H1,{style:u,children:n})},ru=e=>({component:tu,props:e??{}}),nu=e=>({getDurationInFrames:()=>e.durationInFrames,getProgress:({frame:t})=>(0,r.GW)(t,[0,e.durationInFrames],[0,1],{easing:e.easing,extrapolateLeft:"clamp",extrapolateRight:"clamp"})}),iu=e.createContext(null),ou=e.createContext(null),au=({presentationProgress:r,children:n})=>{const i=(0,e.useMemo)((()=>({enteringProgress:r})),[r]);return(0,t.jsx)(iu.Provider,{value:i,children:n})},su=({presentationProgress:r,children:n})=>{const i=(0,e.useMemo)((()=>({exitingProgress:r})),[r]);return(0,t.jsx)(ou.Provider,{value:i,children:n})},lu=t=>e.Children.toArray(t).reduce(((t,r)=>r.type===e.Fragment?t.concat(lu(r.props.children)):(t.push(r),t)),[]),cu=a,uu=function(e){return null},fu=({children:e})=>(0,t.jsx)(t.Fragment,{children:e}),du=({children:n})=>{const{fps:i}=(0,r.Bk)(),o=(0,r.UC)(),a=(0,e.useMemo)((()=>{let a=0,s=0;const l=lu(n);return e.Children.map(l,((e,n)=>{const c=e;if("string"==typeof c){if(""===c.trim())return null;throw new TypeError(`The <TransitionSeries /> component only accepts a list of <TransitionSeries.Sequence /> components as its children, but you passed a string "${c}"`)}const u=l[n-1],f=l[n+1],d="string"==typeof u||void 0===u?null:u.type===uu?u:null,p="string"==typeof f||void 0===f?null:f.type===uu?f:null,h="string"!=typeof u&&void 0!==u&&u.type===uu;if(c.type===uu){if(h)throw new TypeError(`A <TransitionSeries.Transition /> component must not be followed by another <TransitionSeries.Transition /> component (nth children = ${n-1} and ${n})`);return null}if(c.type!==fu)throw new TypeError(`The <TransitionSeries /> component only accepts a list of <TransitionSeries.Sequence /> and <TransitionSeries.Transition /> components as its children, but got ${c} instead`);const m=c,g=`index = ${n}, duration = ${m.props.durationInFrames}`;if(!m?.props.children)throw new TypeError(`A <TransitionSeries.Sequence /> component (${g}) was detected to not have any children. Delete it to fix this error.`);const y=m.props.durationInFrames,{durationInFrames:v,children:b,...x}=m.props;cu(y,{component:"of a <TransitionSeries.Sequence /> component",allowFloats:!0});const w=m.props.offset??0;if(Number.isNaN(w))throw new TypeError(`The "offset" property of a <TransitionSeries.Sequence /> must not be NaN, but got NaN (${g}).`);if(!Number.isFinite(w))throw new TypeError(`The "offset" property of a <TransitionSeries.Sequence /> must be finite, but got ${w} (${g}).`);if(w%1!=0)throw new TypeError(`The "offset" property of a <TransitionSeries.Sequence /> must be finite, but got ${w} (${g}).`);const E=s+w;let U=0;d&&(U=d.props.timing.getDurationInFrames({fps:i}),a-=U);let S=E+a;s+=y+w,S<0&&(s-=S,S=0);const k=p?p.props.timing.getProgress({frame:o-S-v+p.props.timing.getDurationInFrames({fps:i}),fps:i}):null,C=d?d.props.timing.getProgress({frame:o-S,fps:i}):null;if(p&&y<p.props.timing.getDurationInFrames({fps:i}))throw new Error(`The duration of a <TransitionSeries.Sequence /> must not be shorter than the duration of the next <TransitionSeries.Transition />. The transition is ${p.props.timing.getDurationInFrames({fps:i})} frames long, but the sequence is only ${y} frames long (${g})`);if(d&&y<d.props.timing.getDurationInFrames({fps:i}))throw new Error(`The duration of a <TransitionSeries.Sequence /> must not be shorter than the duration of the previous <TransitionSeries.Transition />. The transition is ${d.props.timing.getDurationInFrames({fps:i})} frames long, but the sequence is only ${y} frames long (${g})`);if(p&&d&&null!==k&&null!==C){const o=p.props.presentation??ru(),a=d.props.presentation??ru(),s=o.component,l=a.component;return(0,t.jsx)(r.gd,{from:Math.floor(S),durationInFrames:y,...x,name:x.name||"<TS.Sequence>",children:(0,t.jsx)(s,{passedProps:o.props??{},presentationDirection:"exiting",presentationProgress:k,presentationDurationInFrames:p.props.timing.getDurationInFrames({fps:i}),children:(0,t.jsx)(su,{presentationProgress:k,children:(0,t.jsx)(l,{passedProps:a.props??{},presentationDirection:"entering",presentationProgress:C,presentationDurationInFrames:d.props.timing.getDurationInFrames({fps:i}),children:(0,t.jsx)(au,{presentationProgress:C,children:e})})})})},n)}if(null!==C&&d){const o=d.props.presentation??ru(),a=o.component;return(0,t.jsx)(r.gd,{from:Math.floor(S),durationInFrames:y,...x,name:x.name||"<TS.Sequence>",children:(0,t.jsx)(a,{passedProps:o.props??{},presentationDirection:"entering",presentationProgress:C,presentationDurationInFrames:d.props.timing.getDurationInFrames({fps:i}),children:(0,t.jsx)(au,{presentationProgress:C,children:e})})},n)}if(null!==k&&p){const o=p.props.presentation??ru(),a=o.component;return(0,t.jsx)(r.gd,{from:Math.floor(S),durationInFrames:y,...x,name:x.name||"<TS.Sequence>",children:(0,t.jsx)(a,{passedProps:o.props??{},presentationDirection:"exiting",presentationProgress:k,presentationDurationInFrames:p.props.timing.getDurationInFrames({fps:i}),children:(0,t.jsx)(su,{presentationProgress:k,children:e})})},n)}return(0,t.jsx)(r.gd,{from:Math.floor(S),durationInFrames:y,...x,name:x.name||"<TS.Sequence>",children:e},n)}))}),[n,i,o]);return(0,t.jsx)(t.Fragment,{children:a})},pu=({children:e,name:n,layout:i,...o})=>{const a=n??"<TransitionSeries>",s=i??"absolute-fill";if(l&&"absolute-fill"!==s)throw new TypeError('The "layout" prop of <TransitionSeries /> is not supported anymore in v5. TransitionSeries\' must be absolutely positioned.');return(0,t.jsx)(r.gd,{name:a,layout:s,...o,children:(0,t.jsx)(du,{children:e})})};pu.Sequence=fu,pu.Transition=uu,r.Xp.addSequenceStackTraces(pu),r.Xp.addSequenceStackTraces(fu);var hu=function(t){var n=t.children,i=t.presentationDirection,o=t.presentationProgress,a=(0,r.Bk)().width,s=o>0&&"exiting"===i,l=o>0&&o<1&&"entering"===i,c=function(e){return s?o*e:0},u=function(e){return l?(1-o)*e:0},f=[{top:0,height:15,offsetX:c(a-100)},{top:15,height:25,offsetX:c(100-a)},{top:25,height:50,offsetX:c(a-200)},{top:50,height:75,offsetX:c(200-a)},{top:75,height:80,offsetX:c(a-100)},{top:80,height:100,offsetX:c(100-a)}],d=[{top:0,height:15,offsetX:u(-a)},{top:15,height:25,offsetX:u(a)},{top:25,height:50,offsetX:u(-a)},{top:50,height:75,offsetX:u(a)},{top:75,height:80,offsetX:u(-a)},{top:80,height:100,offsetX:u(a)}],p=ai().primaryColor;return e.createElement(r.H1,{style:{background:p}},s?e.createElement(Pi,{style:{zIndex:s?9999:void 0},parts:f},n):l?e.createElement(Pi,{style:{zIndex:l?9999:void 0},parts:d},n):n)},mu=["component","index"],gu=["component"],yu=["component"];function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vu.apply(null,arguments)}function bu(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var xu={none:{presentation:function(e){return{component:hu,props:e}},durationInFrames:15}},wu=function(t){var n=t.component,i=(t.index,bu(t,mu)),o=eu[n];return o?e.createElement(r.gd,{from:i.from,durationInFrames:i.durationInFrames,name:"NestedEffect-".concat(n)},e.createElement(o,i)):null},Eu=function(t){var n=t.track;return e.createElement(r.sf,null,n.map((function(t,n){var i=t.layout,o=i.component,a=bu(i,gu),s=t.effects,l=void 0===s?[]:s,c=eu[o];return c?e.createElement(r.sf.Sequence,{key:n,name:"Layout - "+o,durationInFrames:a.durationInFrames,premountFor:100},e.createElement(c,a,l.map((function(t,r){return e.createElement(wu,vu({key:r},t,{index:n}))})))):null})))},Uu=function(t){var n=t.track,i=t.transition;return e.createElement(pu,null,n.map((function(t,n,o){var a=t.layout,s=a.component,l=bu(a,yu),c=t.effects,u=void 0===c?[]:c,f=eu[s],d=n<o.length-1;return f?[e.createElement(pu.Sequence,{key:n,name:"Layout - "+s,durationInFrames:l.durationInFrames},e.createElement(f,l,u.map((function(t,r){return e.createElement(wu,vu({key:r},t))})))),d?e.createElement(pu.Transition,{timing:nu({durationInFrames:i.durationInFrames,easing:r.GS.inOut(r.GS.ease)}),presentation:i.presentation(l)}):null]:null})))},Su=function(t){var n=t.track;if(!n)return null;var i=(0,r.Bk)().props.output,o=(void 0===i?{theme:window.screenplayProps.output.theme}:i).theme,a=xu[void 0===o?"default":o];return a?e.createElement(Uu,{track:n,transition:a}):e.createElement(Eu,{track:n})},ku=["component"];var Cu=function(t){var n=t.track;return e.createElement(e.Fragment,null,n.map((function(t,n){var i=t.component,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,ku),a=eu[i];return a?e.createElement(r.gd,{name:"Effect - "+i,key:n,from:o.from,durationInFrames:o.durationInFrames},e.createElement(a,o)):null})))},Fu=["component"];var Pu=function(t){var n=t.track;return e.createElement(e.Fragment,null,n.map((function(t,n){var i=t.component,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Fu),a=eu[i];return a?e.createElement(r.gd,{name:"Captions",key:n,from:o.from,durationInFrames:o.durationInFrames},e.createElement(a,o)):null})))},Tu=["component"];var _u=function(t){var n=t.track;return e.createElement(e.Fragment,null,n.map((function(t,n){var i=t.component,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,Tu),a=eu[i];return a?e.createElement(r.gd,{name:"Audio - "+i,key:n,from:o.from,durationInFrames:o.durationInFrames},e.createElement(a,o)):null})))},Iu=function(t){var n=(null==t?void 0:t.layoutVideoTrack)||[],i=(null==t?void 0:t.effectsVideoTrack)||[],o=(null==t?void 0:t.captionsVideoTrack)||[],a=(null==t?void 0:t.audioTrack)||[];return e.createElement(r.H1,{style:{backgroundColor:t.output.backgroundColor}},e.createElement(Su,{track:n}),e.createElement(Cu,{track:i}),e.createElement(Pu,{track:o}),e.createElement(_u,{track:a}))},Mu=function(t){return t&&(window.screenplayProps=t),e.createElement(Iu,t)},Au=e.forwardRef((function(t,r){var n=t.screenplay,i=t.compositionWidth,o=void 0===i?1920:i,a=t.compositionHeight,s=void 0===a?1080:a,l=t.style,c=new hl(n);c.generateMainVideoTrack(),c.generateLayoutTrack(),c.generateEffectsTrack(),c.generateCaptionsTrack(),c.generateAudioTrack();var u=c.buildRemotionTimeline(),f=(u||{}).output.durationInFrames;return e.createElement(Te,{ref:r,numberOfSharedAudioTags:10,component:Mu,inputProps:u,durationInFrames:f,compositionWidth:o,compositionHeight:s,fps:30,style:l,controls:!0})}));const Ru=Au,Vu=Au})(),__webpack_exports__})()));