@developer_tribe/react-builder 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/DeviceMockFrame.d.ts +2 -1
  2. package/dist/RenderPage.d.ts +4 -3
  3. package/dist/attributes-editor/Field.d.ts +16 -0
  4. package/dist/attributes-editor/FieldInfoTooltip.d.ts +7 -0
  5. package/dist/attributes-editor/LayoutPreviewPicker.d.ts +12 -0
  6. package/dist/attributes-editor/SpecialCategorySection.d.ts +19 -0
  7. package/dist/attributes-editor/types.d.ts +14 -0
  8. package/dist/background.jpg +0 -0
  9. package/dist/build-components/Button/Button.d.ts +1 -1
  10. package/dist/build-components/Button/ButtonProps.generated.d.ts +26 -1
  11. package/dist/build-components/Carousel/CarouselProps.generated.d.ts +27 -1
  12. package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +25 -0
  13. package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +25 -0
  14. package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +27 -1
  15. package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +27 -1
  16. package/dist/build-components/Image/ImageProps.generated.d.ts +25 -3
  17. package/dist/build-components/Onboard/OnboardProps.generated.d.ts +27 -1
  18. package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +25 -0
  19. package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +25 -0
  20. package/dist/build-components/OnboardDot/OnboardDot.d.ts +1 -1
  21. package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +22 -0
  22. package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +4 -5
  23. package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +25 -3
  24. package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +24 -3
  25. package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +25 -4
  26. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +4 -5
  27. package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +4 -5
  28. package/dist/build-components/Text/TextProps.generated.d.ts +4 -5
  29. package/dist/build-components/View/ViewProps.generated.d.ts +3 -4
  30. package/dist/build-components/patterns.generated.d.ts +4855 -132
  31. package/dist/components/Breadcrumb.d.ts +3 -1
  32. package/dist/components/Checkbox.d.ts +17 -0
  33. package/dist/components/DeviceButton.d.ts +8 -0
  34. package/dist/components/DeviceNavigationBar.d.ts +10 -0
  35. package/dist/components/DeviceStatusBar.d.ts +9 -0
  36. package/dist/components/EditorHeader.d.ts +3 -8
  37. package/dist/index.cjs.js +5 -5
  38. package/dist/index.cjs.js.map +1 -1
  39. package/dist/index.esm.js +5 -5
  40. package/dist/index.esm.js.map +1 -1
  41. package/dist/mockOS/components/MockLaunchScreenComponent.d.ts +6 -0
  42. package/dist/mockOS/components/MockOSRouter.d.ts +8 -0
  43. package/dist/mockOS/components/PermissionModal.d.ts +9 -0
  44. package/dist/mockOS/context/MockOSContext.d.ts +36 -0
  45. package/dist/mockOS/hooks/useMockNavigation.d.ts +3 -0
  46. package/dist/mockOS/hooks/useMockPermission.d.ts +3 -0
  47. package/dist/mockOS/index.d.ts +9 -0
  48. package/dist/mockOS/managers/mockPermissionManager.d.ts +10 -0
  49. package/dist/mockOS/managers/navigationManager.d.ts +17 -0
  50. package/dist/modals/AddComponentModal.d.ts +8 -0
  51. package/dist/modals/ColorModal.d.ts +9 -0
  52. package/dist/modals/DeviceSelectorModal.d.ts +9 -0
  53. package/dist/modals/LocalicationModal.d.ts +8 -0
  54. package/dist/modals/Modal.d.ts +12 -0
  55. package/dist/modals/index.d.ts +5 -0
  56. package/dist/pages/ProjectPage.d.ts +1 -1
  57. package/dist/store.d.ts +0 -2
  58. package/dist/styles.css +1 -1
  59. package/dist/utils/patterns.d.ts +24 -0
  60. package/package.json +2 -1
  61. package/scripts/prebuild/utils/createGeneratedProps.js +11 -3
  62. package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +45 -6
  63. package/scripts/prebuild/utils/validatePatternJson.js +13 -5
  64. package/src/AttributesEditor.tsx +433 -312
  65. package/src/DeviceMockFrame.tsx +21 -37
  66. package/src/RenderPage.tsx +5 -4
  67. package/src/assets/images/android.svg +42 -42
  68. package/src/assets/images/apple.svg +15 -15
  69. package/src/attributes-editor/Field.tsx +662 -0
  70. package/src/attributes-editor/FieldInfoTooltip.tsx +49 -0
  71. package/src/attributes-editor/LayoutPreviewPicker.tsx +199 -0
  72. package/src/attributes-editor/SpecialCategorySection.tsx +284 -0
  73. package/src/attributes-editor/types.ts +30 -0
  74. package/src/build-components/Button/Button.tsx +10 -2
  75. package/src/build-components/Button/ButtonProps.generated.ts +37 -1
  76. package/src/build-components/Button/pattern.json +31 -2
  77. package/src/build-components/Carousel/Carousel.tsx +15 -2
  78. package/src/build-components/Carousel/CarouselProps.generated.ts +39 -1
  79. package/src/build-components/Carousel/pattern.json +10 -0
  80. package/src/build-components/CarouselButtons/CarouselButtons.tsx +6 -2
  81. package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +36 -0
  82. package/src/build-components/CarouselButtons/pattern.json +22 -0
  83. package/src/build-components/CarouselDots/CarouselDots.tsx +40 -8
  84. package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +36 -0
  85. package/src/build-components/CarouselDots/pattern.json +15 -0
  86. package/src/build-components/CarouselItem/CarouselItem.tsx +5 -2
  87. package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +39 -1
  88. package/src/build-components/CarouselItem/pattern.json +7 -0
  89. package/src/build-components/CarouselProvider/CarouselProvider.tsx +10 -2
  90. package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +39 -1
  91. package/src/build-components/CarouselProvider/pattern.json +7 -0
  92. package/src/build-components/Image/Image.tsx +8 -2
  93. package/src/build-components/Image/ImageProps.generated.ts +36 -3
  94. package/src/build-components/Image/pattern.json +46 -3
  95. package/src/build-components/Onboard/Onboard.tsx +6 -1
  96. package/src/build-components/Onboard/OnboardProps.generated.ts +39 -1
  97. package/src/build-components/Onboard/pattern.json +11 -0
  98. package/src/build-components/OnboardButton/OnboardButton.tsx +46 -5
  99. package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +36 -0
  100. package/src/build-components/OnboardButton/pattern.json +71 -5
  101. package/src/build-components/OnboardButtons/OnboardButtons.tsx +20 -10
  102. package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +36 -0
  103. package/src/build-components/OnboardButtons/pattern.json +70 -4
  104. package/src/build-components/OnboardDot/OnboardDot.tsx +104 -4
  105. package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +22 -0
  106. package/src/build-components/OnboardDot/pattern.json +54 -1
  107. package/src/build-components/OnboardFooter/OnboardFooter.tsx +9 -3
  108. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +4 -5
  109. package/src/build-components/OnboardFooter/pattern.json +58 -2
  110. package/src/build-components/OnboardImage/OnboardImage.tsx +27 -5
  111. package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +36 -3
  112. package/src/build-components/OnboardImage/pattern.json +21 -0
  113. package/src/build-components/OnboardItem/OnboardItem.tsx +6 -1
  114. package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +35 -3
  115. package/src/build-components/OnboardItem/pattern.json +38 -2
  116. package/src/build-components/OnboardProvider/OnboardProvider.tsx +20 -8
  117. package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +37 -4
  118. package/src/build-components/OnboardProvider/pattern.json +51 -4
  119. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +4 -5
  120. package/src/build-components/OnboardSubtitle/pattern.json +6 -0
  121. package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +4 -5
  122. package/src/build-components/OnboardTitle/pattern.json +6 -0
  123. package/src/build-components/Text/Text.tsx +7 -3
  124. package/src/build-components/Text/TextProps.generated.ts +4 -5
  125. package/src/build-components/Text/pattern.json +38 -2
  126. package/src/build-components/View/View.tsx +9 -6
  127. package/src/build-components/View/ViewProps.generated.ts +3 -4
  128. package/src/build-components/View/pattern.json +227 -19
  129. package/src/build-components/patterns.generated.ts +4905 -139
  130. package/src/components/AttributesEditorPanel.tsx +7 -61
  131. package/src/components/Breadcrumb.tsx +37 -5
  132. package/src/components/Builder.tsx +180 -77
  133. package/src/components/Checkbox.tsx +81 -0
  134. package/src/components/DeviceButton.tsx +39 -0
  135. package/src/components/DeviceNavigationBar.tsx +201 -0
  136. package/src/components/DeviceStatusBar.tsx +85 -0
  137. package/src/components/EditorHeader.tsx +26 -74
  138. package/src/mockOS/components/MockLaunchScreenComponent.tsx +43 -0
  139. package/src/mockOS/components/MockOSRouter.tsx +115 -0
  140. package/src/mockOS/components/PermissionModal.tsx +270 -0
  141. package/src/mockOS/context/MockOSContext.tsx +179 -0
  142. package/src/mockOS/hooks/useMockNavigation.ts +11 -0
  143. package/src/mockOS/hooks/useMockPermission.ts +11 -0
  144. package/src/mockOS/index.ts +26 -0
  145. package/src/mockOS/managers/mockPermissionManager.ts +54 -0
  146. package/src/mockOS/managers/navigationManager.ts +91 -0
  147. package/src/modals/AddComponentModal.tsx +313 -0
  148. package/src/modals/ColorModal.tsx +268 -0
  149. package/src/modals/DeviceSelectorModal.tsx +57 -0
  150. package/src/modals/LocalicationModal.tsx +54 -0
  151. package/src/modals/Modal.tsx +57 -0
  152. package/src/modals/index.ts +5 -0
  153. package/src/pages/ProjectPage.tsx +19 -21
  154. package/src/pages/tabs/DebugTab.tsx +50 -9
  155. package/src/pages/tabs/PreviewTab.tsx +52 -40
  156. package/src/size-matters/index.ts +21 -5
  157. package/src/store.ts +0 -4
  158. package/src/styles/{global.scss → base/_global.scss} +92 -39
  159. package/src/styles/components/_attributes-editor.scss +261 -0
  160. package/src/styles/{editor.scss → components/_editor-shell.scss} +72 -57
  161. package/src/styles/components/_mockos-router.scss +140 -0
  162. package/src/styles/components/_ui-components.scss +183 -0
  163. package/src/styles/foundation/_colors.scss +8 -0
  164. package/src/styles/{_mixins.scss → foundation/_mixins.scss} +5 -4
  165. package/src/styles/{_reset.scss → foundation/_reset.scss} +5 -2
  166. package/src/styles/foundation/_sizes.scss +37 -0
  167. package/src/styles/foundation/_typography.scss +4 -0
  168. package/src/styles/foundation/_variables.scss +3 -0
  169. package/src/styles/index.scss +22 -136
  170. package/src/styles/layout/_builder.scss +68 -0
  171. package/src/styles/layout/_pages.scss +3 -0
  172. package/src/styles/modals/_add-component.scss +122 -0
  173. package/src/styles/modals/_color-modal.scss +130 -0
  174. package/src/styles/modals/_device-selector.scss +18 -0
  175. package/src/styles/modals/_localication-modal.scss +68 -0
  176. package/src/styles/modals/_modal-shell.scss +46 -0
  177. package/src/styles/utilities/_carousel.scss +125 -0
  178. package/src/types/images.d.ts +8 -0
  179. package/src/utils/extractTextStyle.ts +4 -2
  180. package/src/utils/extractViewStyle.ts +51 -7
  181. package/src/utils/patterns.ts +33 -0
  182. package/dist/build-components/OnboardDot/OnboardExpandingDotProps.generated.d.ts +0 -10
  183. package/src/build-components/OnboardDot/OnboardExpandingDotProps.generated.ts +0 -20
  184. package/src/styles/_variables.scss +0 -27
  185. package/src/styles/builder.scss +0 -60
  186. package/src/styles/components.scss +0 -88
  187. package/src/styles/pages.scss +0 -2
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx,jsxs,Fragment}from"react/jsx-runtime";import React,{useEffect,useRef,useState,useCallback,createContext,useContext,useMemo}from"react";function isNodeNullOrUndefined(t){return null==t}function isNodeString(t){return"string"==typeof t}function isNodeArray(t){return t instanceof Array}function isEmptyObject(t){return 0===Object.keys(t).length}function analyseNode(t){if(isNodeNullOrUndefined(t))return{valid:!0,message:"null or undefined is valid"};if(isNodeString(t))return{valid:!0,message:"string is valid"};if(isNodeArray(t)){const e=t;for(const t of e){const{valid:e,message:i}=analyseNode(t);if(!e)return{valid:!1,message:i}}return{valid:!0,message:"Array is valid"}}const e=t;if(isEmptyObject(e))return{valid:!0,message:"empty object is valid"};if(e.children){const{valid:t,message:i}=analyseNode(e.children);if(!t)return{valid:!1,message:i}}return{valid:!0,message:"everthing is valid"}}function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var withSelector={exports:{}},withSelector_production={},shim={exports:{}},useSyncExternalStoreShim_production={},hasRequiredUseSyncExternalStoreShim_production;function requireUseSyncExternalStoreShim_production(){if(hasRequiredUseSyncExternalStoreShim_production)return useSyncExternalStoreShim_production;hasRequiredUseSyncExternalStoreShim_production=1;var t=React;var e="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=t.useState,r=t.useEffect,n=t.useLayoutEffect,a=t.useDebugValue;function o(t){var i=t.getSnapshot;t=t.value;try{var r=i();return!e(t,r)}catch(t){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),l=i({inst:{value:s,getSnapshot:e}}),h=l[0].inst,c=l[1];return n(function(){h.value=s,h.getSnapshot=e,o(h)&&c({inst:h})},[t,s,e]),r(function(){return o(h)&&c({inst:h}),t(function(){o(h)&&c({inst:h})})},[t]),a(s),s};return useSyncExternalStoreShim_production.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:s,useSyncExternalStoreShim_production}var useSyncExternalStoreShim_development={},hasRequiredUseSyncExternalStoreShim_development,hasRequiredShim,hasRequiredWithSelector_production;
1
+ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";import React__default,{useEffect,useMemo,useRef,useState,useCallback,createContext,useContext,useId}from"react";function isNodeNullOrUndefined(e){return null==e}function isNodeString(e){return"string"==typeof e}function isNodeArray(e){return e instanceof Array}function isEmptyObject(e){return 0===Object.keys(e).length}function analyseNode(e){if(isNodeNullOrUndefined(e))return{valid:!0,message:"null or undefined is valid"};if(isNodeString(e))return{valid:!0,message:"string is valid"};if(isNodeArray(e)){const t=e;for(const e of t){const{valid:t,message:i}=analyseNode(e);if(!t)return{valid:!1,message:i}}return{valid:!0,message:"Array is valid"}}const t=e;if(isEmptyObject(t))return{valid:!0,message:"empty object is valid"};if(t.children){const{valid:e,message:i}=analyseNode(t.children);if(!e)return{valid:!1,message:i}}return{valid:!0,message:"everthing is valid"}}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var withSelector={exports:{}},withSelector_production={},shim={exports:{}},useSyncExternalStoreShim_production={},hasRequiredUseSyncExternalStoreShim_production;function requireUseSyncExternalStoreShim_production(){if(hasRequiredUseSyncExternalStoreShim_production)return useSyncExternalStoreShim_production;hasRequiredUseSyncExternalStoreShim_production=1;var e=React__default;var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,a=e.useEffect,r=e.useLayoutEffect,n=e.useDebugValue;function o(e){var i=e.getSnapshot;e=e.value;try{var a=i();return!t(e,a)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),l=i({inst:{value:s,getSnapshot:t}}),c=l[0].inst,d=l[1];return r(function(){c.value=s,c.getSnapshot=t,o(c)&&d({inst:c})},[e,s,t]),a(function(){return o(c)&&d({inst:c}),e(function(){o(c)&&d({inst:c})})},[e]),n(s),s};return useSyncExternalStoreShim_production.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,useSyncExternalStoreShim_production}var useSyncExternalStoreShim_development={},hasRequiredUseSyncExternalStoreShim_development,hasRequiredShim,hasRequiredWithSelector_production;
2
2
  /**
3
3
  * @license React
4
4
  * use-sync-external-store-shim.development.js
@@ -7,7 +7,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import React,{useEffect,useRef,
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */function requireUseSyncExternalStoreShim_development(){return hasRequiredUseSyncExternalStoreShim_development||(hasRequiredUseSyncExternalStoreShim_development=1,"production"!==process.env.NODE_ENV&&function(){function t(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!i(t,r)}catch(t){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=React,i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=e.useState,n=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue,s=!1,l=!1,h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(h,c){s||void 0===e.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=c();if(!l){var u=c();i(p,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var d=(u=r({inst:{value:p,getSnapshot:c}}))[0].inst,f=u[1];return a(function(){d.value=p,d.getSnapshot=c,t(d)&&f({inst:d})},[h,p,c]),n(function(){return t(d)&&f({inst:d}),h(function(){t(d)&&f({inst:d})})},[h]),o(p),p};useSyncExternalStoreShim_development.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:h,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),useSyncExternalStoreShim_development}function requireShim(){return hasRequiredShim||(hasRequiredShim=1,"production"===process.env.NODE_ENV?shim.exports=requireUseSyncExternalStoreShim_production():shim.exports=requireUseSyncExternalStoreShim_development()),shim.exports}
10
+ */function requireUseSyncExternalStoreShim_development(){return hasRequiredUseSyncExternalStoreShim_development||(hasRequiredUseSyncExternalStoreShim_development=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!i(e,a)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=React__default,i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useState,r=t.useEffect,n=t.useLayoutEffect,o=t.useDebugValue,s=!1,l=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(c,d){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=d();if(!l){var u=d();i(p,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var h=(u=a({inst:{value:p,getSnapshot:d}}))[0].inst,g=u[1];return n(function(){h.value=p,h.getSnapshot=d,e(h)&&g({inst:h})},[c,p,d]),r(function(){return e(h)&&g({inst:h}),c(function(){e(h)&&g({inst:h})})},[c]),o(p),p};useSyncExternalStoreShim_development.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:c,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),useSyncExternalStoreShim_development}function requireShim(){return hasRequiredShim||(hasRequiredShim=1,"production"===process.env.NODE_ENV?shim.exports=requireUseSyncExternalStoreShim_production():shim.exports=requireUseSyncExternalStoreShim_development()),shim.exports}
11
11
  /**
12
12
  * @license React
13
13
  * use-sync-external-store-shim/with-selector.production.js
@@ -16,7 +16,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import React,{useEffect,useRef,
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */function requireWithSelector_production(){if(hasRequiredWithSelector_production)return withSelector_production;hasRequiredWithSelector_production=1;var t=React,e=requireShim();var i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=e.useSyncExternalStore,n=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;return withSelector_production.useSyncExternalStoreWithSelector=function(t,e,l,h,c){var p=n(null);if(null===p.current){var u={hasValue:!1,value:null};p.current=u}else u=p.current;p=o(function(){function t(t){if(!a){if(a=!0,r=t,t=h(t),void 0!==c&&u.hasValue){var e=u.value;if(c(e,t))return n=e}return n=t}if(e=n,i(r,t))return e;var o=h(t);return void 0!==c&&c(e,o)?(r=t,e):(r=t,n=o)}var r,n,a=!1,o=void 0===l?null:l;return[function(){return t(e())},null===o?void 0:function(){return t(o())}]},[e,l,h,c]);var d=r(t,p[0],p[1]);return a(function(){u.hasValue=!0,u.value=d},[d]),s(d),d},withSelector_production}var withSelector_development={},hasRequiredWithSelector_development,hasRequiredWithSelector;
19
+ */function requireWithSelector_production(){if(hasRequiredWithSelector_production)return withSelector_production;hasRequiredWithSelector_production=1;var e=React__default,t=requireShim();var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useSyncExternalStore,r=e.useRef,n=e.useEffect,o=e.useMemo,s=e.useDebugValue;return withSelector_production.useSyncExternalStoreWithSelector=function(e,t,l,c,d){var p=r(null);if(null===p.current){var u={hasValue:!1,value:null};p.current=u}else u=p.current;p=o(function(){function e(e){if(!n){if(n=!0,a=e,e=c(e),void 0!==d&&u.hasValue){var t=u.value;if(d(t,e))return r=t}return r=e}if(t=r,i(a,e))return t;var o=c(e);return void 0!==d&&d(t,o)?(a=e,t):(a=e,r=o)}var a,r,n=!1,o=void 0===l?null:l;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,l,c,d]);var h=a(e,p[0],p[1]);return n(function(){u.hasValue=!0,u.value=h},[h]),s(h),h},withSelector_production}var withSelector_development={},hasRequiredWithSelector_development,hasRequiredWithSelector;
20
20
  /**
21
21
  * @license React
22
22
  * use-sync-external-store-shim/with-selector.development.js
@@ -25,7 +25,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import React,{useEffect,useRef,
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */function requireWithSelector_development(){return hasRequiredWithSelector_development||(hasRequiredWithSelector_development=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=React,e=requireShim(),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=e.useSyncExternalStore,n=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;withSelector_development.useSyncExternalStoreWithSelector=function(t,e,l,h,c){var p=n(null);if(null===p.current){var u={hasValue:!1,value:null};p.current=u}else u=p.current;p=o(function(){function t(t){if(!a){if(a=!0,r=t,t=h(t),void 0!==c&&u.hasValue){var e=u.value;if(c(e,t))return n=e}return n=t}if(e=n,i(r,t))return e;var o=h(t);return void 0!==c&&c(e,o)?(r=t,e):(r=t,n=o)}var r,n,a=!1,o=void 0===l?null:l;return[function(){return t(e())},null===o?void 0:function(){return t(o())}]},[e,l,h,c]);var d=r(t,p[0],p[1]);return a(function(){u.hasValue=!0,u.value=d},[d]),s(d),d},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),withSelector_development}function requireWithSelector(){return hasRequiredWithSelector||(hasRequiredWithSelector=1,"production"===process.env.NODE_ENV?withSelector.exports=requireWithSelector_production():withSelector.exports=requireWithSelector_development()),withSelector.exports}var withSelectorExports=requireWithSelector(),useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);const createStoreImpl=t=>{let e;const i=new Set,r=(t,r)=>{const n="function"==typeof t?t(e):t;if(!Object.is(n,e)){const t=e;e=(null!=r?r:"object"!=typeof n||null===n)?n:Object.assign({},e,n),i.forEach(i=>i(e,t))}},n=()=>e,a={setState:r,getState:n,getInitialState:()=>o,subscribe:t=>(i.add(t),()=>i.delete(t))},o=e=t(r,n,a);return a},createStore=t=>t?createStoreImpl(t):createStoreImpl,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector}=useSyncExternalStoreExports,identity=t=>t;function useStoreWithEqualityFn(t,e=identity,i){const r=useSyncExternalStoreWithSelector(t.subscribe,t.getState,t.getInitialState,e,i);return React.useDebugValue(r),r}const createWithEqualityFnImpl=(t,e)=>{const i=createStore(t),r=(t,r=e)=>useStoreWithEqualityFn(i,t,r);return Object.assign(r,i),r},createWithEqualityFn=(t,e)=>createWithEqualityFnImpl,isIterable=t=>Symbol.iterator in t,hasIterableEntries=t=>"entries"in t,compareEntries=(t,e)=>{const i=t instanceof Map?t:new Map(t.entries()),r=e instanceof Map?e:new Map(e.entries());if(i.size!==r.size)return!1;for(const[t,e]of i)if(!r.has(t)||!Object.is(e,r.get(t)))return!1;return!0},compareIterables=(t,e)=>{const i=t[Symbol.iterator](),r=e[Symbol.iterator]();let n=i.next(),a=r.next();for(;!n.done&&!a.done;){if(!Object.is(n.value,a.value))return!1;n=i.next(),a=r.next()}return!!n.done&&!!a.done};function shallow(t,e){return!!Object.is(t,e)||"object"==typeof t&&null!==t&&"object"==typeof e&&null!==e&&(Object.getPrototypeOf(t)===Object.getPrototypeOf(e)&&(isIterable(t)&&isIterable(e)?hasIterableEntries(t)&&hasIterableEntries(e)?compareEntries(t,e):compareIterables(t,e):compareEntries({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})))}const defaultAppConfig={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{},baseSize:{width:375,height:812}};var devices$1=[{name:"iphone 12",platform:"ios",width:390,height:844,type:"phone",importance:13,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 12 pro",platform:"ios",width:390,height:844,type:"phone",importance:19,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13",platform:"ios",width:390,height:844,type:"phone",importance:4,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 pro",platform:"ios",width:390,height:844,type:"phone",importance:8,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14",platform:"ios",width:390,height:844,type:"phone",importance:15,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 pro",platform:"ios",width:393,height:852,type:"phone",importance:15,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15",platform:"ios",width:393,height:852,type:"phone",importance:6,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 pro",platform:"ios",width:393,height:852,type:"phone",importance:18,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"pixel 3 xl",platform:"android",width:412,height:847,type:"phone",importance:8,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 4 xl",platform:"android",width:412,height:869,type:"phone",importance:14,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 6",platform:"android",width:412,height:915,type:"phone",importance:10,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 6 pro",platform:"android",width:412,height:892,type:"phone",importance:4,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 7",platform:"android",width:412,height:915,type:"phone",importance:11,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 7 pro",platform:"android",width:412,height:892,type:"phone",importance:5,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 8",platform:"android",width:412,height:915,type:"phone",importance:12,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 8 pro",platform:"android",width:412,height:919,type:"phone",importance:16,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s8",platform:"android",width:360,height:740,type:"phone",importance:5,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s8+",platform:"android",width:360,height:740,type:"phone",importance:1,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s9",platform:"android",width:360,height:740,type:"phone",importance:4,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s9+",platform:"android",width:360,height:740,type:"phone",importance:4,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s10",platform:"android",width:360,height:760,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s10+",platform:"android",width:412,height:869,type:"phone",importance:15,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20",platform:"android",width:360,height:800,type:"phone",importance:13,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20+",platform:"android",width:412,height:915,type:"phone",importance:16,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20 ultra",platform:"android",width:412,height:915,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21",platform:"android",width:360,height:800,type:"phone",importance:13,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21+",platform:"android",width:412,height:915,type:"phone",importance:12,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21 ultra",platform:"android",width:412,height:915,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22",platform:"android",width:360,height:780,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22+",platform:"android",width:412,height:915,type:"phone",importance:8,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22 ultra",platform:"android",width:412,height:915,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23",platform:"android",width:360,height:780,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23+",platform:"android",width:412,height:915,type:"phone",importance:1,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23 ultra",platform:"android",width:412,height:915,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 8",platform:"android",width:412,height:915,type:"phone",importance:4,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 8 pro",platform:"android",width:412,height:915,type:"phone",importance:20,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 9",platform:"android",width:412,height:915,type:"phone",importance:3,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 9 pro",platform:"android",width:412,height:915,type:"phone",importance:1,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"xiaomi mi 11",platform:"android",width:412,height:915,type:"phone",importance:9,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"huawei p30",platform:"android",width:360,height:750,type:"phone",importance:10,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"huawei p30 pro",platform:"android",width:360,height:780,type:"phone",importance:14,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"oppo find x3 pro",platform:"android",width:412,height:915,type:"phone",importance:7,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"iphone 6 plus",platform:"ios",width:414,height:736,type:"phone",importance:27,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 6s plus",platform:"ios",width:414,height:736,type:"phone",importance:35,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 7 plus",platform:"ios",width:414,height:736,type:"phone",importance:40,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 8 plus",platform:"ios",width:414,height:736,type:"phone",importance:32,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone xs max",platform:"ios",width:414,height:896,type:"phone",importance:21,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone xr",platform:"ios",width:414,height:896,type:"phone",importance:31,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11",platform:"ios",width:414,height:896,type:"phone",importance:36,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11 pro max",platform:"ios",width:414,height:896,type:"phone",importance:22,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 12 pro max",platform:"ios",width:428,height:926,type:"phone",importance:28,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 pro max",platform:"ios",width:428,height:926,type:"phone",importance:30,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 plus",platform:"ios",width:428,height:926,type:"phone",importance:29,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 pro max",platform:"ios",width:430,height:932,type:"phone",importance:39,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 plus",platform:"ios",width:430,height:932,type:"phone",importance:24,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 pro max",platform:"ios",width:430,height:932,type:"phone",importance:22,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"pixel 2",platform:"android",width:411,height:731,type:"phone",importance:29,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"pixel 2 xl",platform:"android",width:411,height:823,type:"phone",importance:36,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"pixel 3",platform:"android",width:393,height:786,type:"phone",importance:39,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 4",platform:"android",width:411,height:869,type:"phone",importance:24,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 5",platform:"android",width:393,height:851,type:"phone",importance:23,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"xiaomi mi 9",platform:"android",width:393,height:851,type:"phone",importance:39,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"iphone 6",platform:"ios",width:375,height:667,type:"phone",importance:42,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 6s",platform:"ios",width:375,height:667,type:"phone",importance:60,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 7",platform:"ios",width:375,height:667,type:"phone",importance:41,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 8",platform:"ios",width:375,height:667,type:"phone",importance:59,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone x",platform:"ios",width:375,height:812,type:"phone",importance:46,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone xs",platform:"ios",width:375,height:812,type:"phone",importance:56,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11 pro",platform:"ios",width:375,height:812,type:"phone",importance:57,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone se (2nd gen)",platform:"ios",width:375,height:667,type:"phone",importance:56,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone se (3rd gen)",platform:"ios",width:375,height:667,type:"phone",importance:59,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 12 mini",platform:"ios",width:360,height:780,type:"phone",importance:70,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 mini",platform:"ios",width:360,height:780,type:"phone",importance:78,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone (1st gen)",platform:"ios",width:320,height:480,type:"phone",importance:82,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 3g",platform:"ios",width:320,height:480,type:"phone",importance:84,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 3gs",platform:"ios",width:320,height:480,type:"phone",importance:88,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 4",platform:"ios",width:320,height:480,type:"phone",importance:86,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 4s",platform:"ios",width:320,height:480,type:"phone",importance:92,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5",platform:"ios",width:320,height:568,type:"phone",importance:100,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5c",platform:"ios",width:320,height:568,type:"phone",importance:92,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5s",platform:"ios",width:320,height:568,type:"phone",importance:96,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone se (1st gen)",platform:"ios",width:320,height:568,type:"phone",importance:86,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"nexus 7 (2013)",platform:"android",width:600,height:960,type:"tablet",importance:83,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"nexus 9",platform:"android",width:768,height:1024,type:"tablet",importance:90,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"pixel c",platform:"android",width:900,height:1280,type:"tablet",importance:100,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"galaxy tab s6",platform:"android",width:800,height:1280,type:"tablet",importance:97,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab s7",platform:"android",width:800,height:1280,type:"tablet",importance:99,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab s8",platform:"android",width:800,height:1280,type:"tablet",importance:81,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab a 10.1",platform:"android",width:800,height:1280,type:"tablet",importance:94,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"lenovo tab p11",platform:"android",width:800,height:1280,type:"tablet",importance:91,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"fire hd 10",platform:"android",width:800,height:1280,type:"tablet",importance:98,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12}];function getDevices(){const t=devices$1.slice();return t.sort((t,e)=>(t.importance??999)-(e.importance??999)),t}function getDefaultDevice(){return getDevices()[0]}function createJSONStorage(t,e){let i;try{i=t()}catch(t){return}const r={getItem:t=>{var e;const r=t=>null===t?null:JSON.parse(t,void 0),n=null!=(e=i.getItem(t))?e:null;return n instanceof Promise?n.then(r):r(n)},setItem:(t,e)=>i.setItem(t,JSON.stringify(e,void 0)),removeItem:t=>i.removeItem(t)};return r}const useRenderStore=createWithEqualityFn()(t=>({copiedNode:null,setCopiedNode:e=>t({copiedNode:e}),renderCount:0,forceRender:()=>t(t=>({renderCount:t.renderCount+1})),device:getDefaultDevice(),setDevice:e=>t({device:e}),appConfig:defaultAppConfig,setAppConfig:e=>t({appConfig:e}),logs:[],logLevel:"INFO",setLogLevel:e=>t({logLevel:e}),addLog:e=>t(t=>{const i=Date.now(),r={id:e.id??`${i}-${Math.random().toString(36).slice(2,8)}`,timestamp:e.timestamp??i,level:e.level,source:e.source,message:e.message,payload:e.payload};return{logs:[...t.logs,r]}}),clearLogs:()=>t({logs:[]}),persist:{name:"render-store",partialize:t=>({copiedNode:t.copiedNode??null,logLevel:t.logLevel}),storage:createJSONStorage(()=>localStorage)}}),shallow),levelPriority={ERROR:0,WARN:1,INFO:2,VERBOSE:3};function shouldLog(t,e){if("NONE"===t||"NONE"===e)return!1;const i=levelPriority[t];return levelPriority[e]<=i}function consoleLog(t,e,i,r){const n=`[${e}] ${i}`;switch(t){case"ERROR":console.error(n,r);break;case"WARN":console.warn(n,r);break;case"INFO":console.info(n,r);break;case"VERBOSE":console.debug(n,r)}}const logger={setLevel(t){useRenderStore.getState().setLogLevel(t),console.info(`[Logger] level set to ${t}`)},log(t,e,i,r){const{logLevel:n,addLog:a}=useRenderStore.getState();shouldLog(n,t)&&(a({level:t,source:e,message:i,payload:r}),consoleLog(t,e,i,r))},verbose(t,e,i){this.log("VERBOSE",t,e,i)},info(t,e,i){this.log("INFO",t,e,i)},warn(t,e,i){this.log("WARN",t,e,i)},error(t,e,i){this.log("ERROR",t,e,i)},clear(){useRenderStore.getState().clearLogs()}};function useLogRender(t,e){useEffect(()=>(logger.verbose(t,"rendered",e),()=>{logger.verbose(t,"unmount")}),[])}function other(t,e){return null}function useNode(t){const e=t?.type,i=getDefaultsForType(e);if(!i)return t;const r={...i,...t.attributes??{}};return{...t,attributes:r}}function Button({node:t}){return useLogRender("Button"),t=useNode(t),String(t?.type??"button")}var Button$1=React.memo(Button);const isCarouselItem=t=>!(!t||"object"!=typeof t||Array.isArray(t))&&("type"in t&&"carouselItem"===t.type);function Carousel({node:t}){useLogRender("Carousel"),t=useNode(t);return jsx("div",{className:"embla__container",children:Array.isArray(t.children)?t.children.map((t,e)=>jsx(RenderNode$1,{node:t},e)):isCarouselItem(t.children)?jsx(RenderNode$1,{node:t.children}):null})}var Carousel$1=React.memo(Carousel);function isObject$1(t){return"[object Object]"===Object.prototype.toString.call(t)}function isRecord(t){return isObject$1(t)||Array.isArray(t)}function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function areOptionsEqual(t,e){const i=Object.keys(t),r=Object.keys(e);if(i.length!==r.length)return!1;return JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&i.every(i=>{const r=t[i],n=e[i];return"function"==typeof r?`${r}`==`${n}`:isRecord(r)&&isRecord(n)?areOptionsEqual(r,n):r===n})}function sortAndMapPluginToOptions(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function arePluginsEqual(t,e){if(t.length!==e.length)return!1;const i=sortAndMapPluginToOptions(t),r=sortAndMapPluginToOptions(e);return i.every((t,e)=>areOptionsEqual(t,r[e]))}function isNumber(t){return"number"==typeof t}function isString(t){return"string"==typeof t}function isBoolean(t){return"boolean"==typeof t}function isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}function mathAbs(t){return Math.abs(t)}function mathSign(t){return Math.sign(t)}function deltaAbs(t,e){return mathAbs(t-e)}function factorAbs(t,e){if(0===t||0===e)return 0;if(mathAbs(t)<=mathAbs(e))return 0;const i=deltaAbs(mathAbs(t),mathAbs(e));return mathAbs(i/t)}function roundToTwoDecimals(t){return Math.round(100*t)/100}function arrayKeys(t){return objectKeys(t).map(Number)}function arrayLast(t){return t[arrayLastIndex(t)]}function arrayLastIndex(t){return Math.max(0,t.length-1)}function arrayIsLastIndex(t,e){return e===arrayLastIndex(t)}function arrayFromNumber(t,e=0){return Array.from(Array(t),(t,i)=>e+i)}function objectKeys(t){return Object.keys(t)}function objectsMergeDeep(t,e){return[t,e].reduce((t,e)=>(objectKeys(e).forEach(i=>{const r=t[i],n=e[i],a=isObject(r)&&isObject(n);t[i]=a?objectsMergeDeep(r,n):n}),t),{})}function isMouseEvent(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function Alignment(t,e){const i={start:function(){return 0},center:function(t){return r(t)/2},end:r};function r(t){return e-t}const n={measure:function(r,n){return isString(t)?i[t](r):t(e,r,n)}};return n}function EventStore(){let t=[];const e={add:function(i,r,n,a={passive:!0}){let o;if("addEventListener"in i)i.addEventListener(r,n,a),o=()=>i.removeEventListener(r,n,a);else{const t=i;t.addListener(n),o=()=>t.removeListener(n)}return t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function Animations(t,e,i,r){const n=EventStore(),a=1e3/60;let o=null,s=0,l=0;function h(t){if(!l)return;o||(o=t,i(),i());const n=t-o;for(o=t,s+=n;s>=a;)i(),s-=a;r(s/a),l&&(l=e.requestAnimationFrame(h))}function c(){e.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){n.add(t,"visibilitychange",()=>{t.hidden&&(o=null,s=0)})},destroy:function(){c(),n.clear()},start:function(){l||(l=e.requestAnimationFrame(h))},stop:c,update:i,render:r}}function Axis(t,e){const i="rtl"===e,r="y"===t,n=!r&&i?-1:1;const a={scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":i?"right":"left",endEdge:r?"bottom":i?"left":"right",measureSize:function(t){const{height:e,width:i}=t;return r?e:i},direction:function(t){return t*n}};return a}function Limit(t=0,e=0){const i=mathAbs(t-e);function r(e){return e<t}function n(t){return t>e}function a(t){return r(t)||n(t)}const o={length:i,max:e,min:t,constrain:function(i){return a(i)?r(i)?t:e:i},reachedAny:a,reachedMax:n,reachedMin:r,removeOffset:function(t){return i?t-i*Math.ceil((t-e)/i):t}};return o}function Counter(t,e,i){const{constrain:r}=Limit(0,t),n=t+1;let a=o(e);function o(t){return i?mathAbs((n+t)%n):r(t)}function s(){return a}function l(){return Counter(t,s(),i)}const h={get:s,set:function(t){return a=o(t),h},add:function(t){return l().set(s()+t)},clone:l};return h}function DragHandler(t,e,i,r,n,a,o,s,l,h,c,p,u,d,f,m,y,g,b){const{cross:v,direction:_}=t,x=["INPUT","SELECT","TEXTAREA"],k={passive:!1},S=EventStore(),w=EventStore(),E=Limit(50,225).constrain(d.measure(20)),C={mouse:300,touch:400},P={mouse:500,touch:600},T=f?43:25;let A=!1,D=0,F=0,M=!1,I=!1,j=!1,R=!1;function O(t){if(!isMouseEvent(t,r)&&t.touches.length>=2)return B(t);const e=a.readPoint(t),i=a.readPoint(t,v),o=deltaAbs(e,D),l=deltaAbs(i,F);if(!I&&!R){if(!t.cancelable)return B(t);if(I=o>l,!I)return B(t)}const c=a.pointerMove(t);o>m&&(j=!0),h.useFriction(.3).useDuration(.75),s.start(),n.add(_(c)),t.preventDefault()}function B(t){const e=c.byDistance(0,!1).index!==p.get(),i=a.pointerUp(t)*(f?P:C)[R?"mouse":"touch"],r=function(t,e){const i=p.add(-1*mathSign(t)),r=c.byDistance(t,!f).distance;return f||mathAbs(t)<E?r:y&&e?.5*r:c.byIndex(i.get(),0).distance}(_(i),e),n=factorAbs(i,r),o=T-10*n,s=g+n/50;I=!1,M=!1,w.clear(),h.useDuration(o).useFriction(s),l.distance(r,!f),R=!1,u.emit("pointerUp")}function L(t){j&&(t.stopPropagation(),t.preventDefault(),j=!1)}return{init:function(t){if(!b)return;function s(s){(isBoolean(b)||b(t,s))&&function(t){const s=isMouseEvent(t,r);if(R=s,j=f&&s&&!t.buttons&&A,A=deltaAbs(n.get(),o.get())>=2,s&&0!==t.button)return;if(function(t){const e=t.nodeName||"";return x.includes(e)}(t.target))return;M=!0,a.pointerDown(t),h.useFriction(0).useDuration(0),n.set(o),function(){const t=R?i:e;w.add(t,"touchmove",O,k).add(t,"touchend",B).add(t,"mousemove",O,k).add(t,"mouseup",B)}(),D=a.readPoint(t),F=a.readPoint(t,v),u.emit("pointerDown")}(s)}const l=e;S.add(l,"dragstart",t=>t.preventDefault(),k).add(l,"touchmove",()=>{},k).add(l,"touchend",()=>{}).add(l,"touchstart",s).add(l,"mousedown",s).add(l,"touchcancel",B).add(l,"contextmenu",B).add(l,"click",L,!0)},destroy:function(){S.clear(),w.clear()},pointerDown:function(){return M}}}function DragTracker(t,e){let i,r;function n(t){return t.timeStamp}function a(i,r){const n="client"+("x"===(r||t.scroll)?"X":"Y");return(isMouseEvent(i,e)?i:i.touches[0])[n]}return{pointerDown:function(t){return i=t,r=t,a(t)},pointerMove:function(t){const e=a(t)-a(r),o=n(t)-n(i)>170;return r=t,o&&(i=t),e},pointerUp:function(t){if(!i||!r)return 0;const e=a(r)-a(i),o=n(t)-n(i),s=n(t)-n(r)>170,l=e/o;return o&&!s&&mathAbs(l)>.1?l:0},readPoint:a}}function NodeRects(){return{measure:function(t){const{offsetTop:e,offsetLeft:i,offsetWidth:r,offsetHeight:n}=t;return{top:e,right:i+r,bottom:e+n,left:i,width:r,height:n}}}}function PercentOfView(t){const e={measure:function(e){return t*(e/100)}};return e}function ResizeHandler(t,e,i,r,n,a,o){const s=[t].concat(r);let l,h,c=[],p=!1;function u(t){return n.measureSize(o.measure(t))}return{init:function(n){a&&(h=u(t),c=r.map(u),l=new ResizeObserver(i=>{(isBoolean(a)||a(n,i))&&function(i){for(const a of i){if(p)return;const i=a.target===t,o=r.indexOf(a.target),s=i?h:c[o];if(mathAbs(u(i?t:r[o])-s)>=.5){n.reInit(),e.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>{s.forEach(t=>l.observe(t))}))},destroy:function(){p=!0,l&&l.disconnect()}}}function ScrollBody(t,e,i,r,n,a){let o=0,s=0,l=n,h=a,c=t.get(),p=0;function u(t){return l=t,f}function d(t){return h=t,f}const f={direction:function(){return s},duration:function(){return l},velocity:function(){return o},seek:function(){const e=r.get()-t.get();let n=0;return!l?(o=0,i.set(r),t.set(r),n=e):(i.set(t),o+=e/l,o*=h,c+=o,t.add(o),n=c-p),s=mathSign(n),p=c,f},settled:function(){return mathAbs(r.get()-e.get())<.001},useBaseFriction:function(){return d(a)},useBaseDuration:function(){return u(n)},useFriction:d,useDuration:u};return f}function ScrollBounds(t,e,i,r,n){const a=n.measure(10),o=n.measure(50),s=Limit(.1,.99);let l=!1;function h(){return!l&&(!!t.reachedAny(i.get())&&!!t.reachedAny(e.get()))}return{shouldConstrain:h,constrain:function(n){if(!h())return;const l=t.reachedMin(e.get())?"min":"max",c=mathAbs(t[l]-e.get()),p=i.get()-e.get(),u=s.constrain(c/o);i.subtract(p*u),!n&&mathAbs(p)<a&&(i.set(t.constrain(i.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}function ScrollContain(t,e,i,r,n){const a=Limit(-e+t,0),o=i.map((t,e)=>{const{min:r,max:n}=a,o=a.constrain(t),s=!e,h=arrayIsLastIndex(i,e);return s?n:h||l(r,o)?r:l(n,o)?n:o}).map(t=>parseFloat(t.toFixed(3))),s=function(){const t=o[0],e=arrayLast(o),i=o.lastIndexOf(t),r=o.indexOf(e)+1;return Limit(i,r)}();function l(t,e){return deltaAbs(t,e)<=1}return{snapsContained:function(){if(e<=t+n)return[a.max];if("keepSnaps"===r)return o;const{min:i,max:l}=s;return o.slice(i,l)}(),scrollContainLimit:s}}function ScrollLimit(t,e,i){const r=e[0];return{limit:Limit(i?r-t:arrayLast(e),r)}}function ScrollLooper(t,e,i,r){const n=e.min+.1,a=e.max+.1,{reachedMin:o,reachedMax:s}=Limit(n,a);const l={loop:function(e){if(!function(t){return 1===t?s(i.get()):-1===t&&o(i.get())}(e))return;const n=t*(-1*e);r.forEach(t=>t.add(n))}};return l}function ScrollProgress(t){const{max:e,length:i}=t;const r={get:function(t){return i?(t-e)/-i:0}};return r}function ScrollSnaps(t,e,i,r,n){const{startEdge:a,endEdge:o}=t,{groupSlides:s}=n,l=s(r).map(t=>arrayLast(t)[o]-t[0][a]).map(mathAbs).map(e.measure),h=r.map(t=>i[a]-t[a]).map(t=>-mathAbs(t)),c=s(h).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:h,snapsAligned:c}}function SlideRegistry(t,e,i,r,n,a){const{groupSlides:o}=n,{min:s,max:l}=r;return{slideRegistry:function(){const r=o(a),n=!t||"keepSnaps"===e;return 1===i.length?[a]:n?r:r.slice(s,l).map((t,e,i)=>{const r=!e,n=arrayIsLastIndex(i,e);if(r){return arrayFromNumber(arrayLast(i[0])+1)}if(n){return arrayFromNumber(arrayLastIndex(a)-arrayLast(i)[0]+1,arrayLast(i)[0])}return t})}()}}function ScrollTarget(t,e,i,r,n){const{reachedAny:a,removeOffset:o,constrain:s}=r;function l(t){return t.concat().sort((t,e)=>mathAbs(t)-mathAbs(e))[0]}function h(e,r){const n=[e,e+i,e-i];if(!t)return e;if(!r)return l(n);const a=n.filter(t=>mathSign(t)===r);return a.length?l(a):arrayLast(n)-i}return{byDistance:function(i,r){const l=n.get()+i,{index:c,distance:p}=function(i){const r=t?o(i):s(i),n=e.map((t,e)=>({diff:h(t-r,0),index:e})).sort((t,e)=>mathAbs(t.diff)-mathAbs(e.diff)),{index:a}=n[0];return{index:a,distance:r}}(l),u=!t&&a(l);return!r||u?{index:c,distance:i}:{index:c,distance:i+h(e[c]-p,0)}},byIndex:function(t,i){return{index:t,distance:h(e[t]-n.get(),i)}},shortcut:h}}function ScrollTo(t,e,i,r,n,a,o){function s(n){const s=n.distance,l=n.index!==e.get();a.add(s),s&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(i.set(e.get()),e.set(n.index),o.emit("select"))}const l={distance:function(t,e){s(n.byDistance(t,e))},index:function(t,i){const r=e.clone().set(t);s(n.byIndex(r.get(),i))}};return l}function SlideFocus(t,e,i,r,n,a,o,s){const l={passive:!0,capture:!0};let h=0;function c(t){"Tab"===t.code&&(h=(new Date).getTime())}return{init:function(p){s&&(a.add(document,"keydown",c,!1),e.forEach((e,c)=>{a.add(e,"focus",e=>{(isBoolean(s)||s(p,e))&&function(e){if((new Date).getTime()-h>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const a=i.findIndex(t=>t.includes(e));isNumber(a)&&(n.useDuration(0),r.index(a,0),o.emit("slideFocus"))}(c)},l)}))}}}function Vector1D(t){let e=t;function i(t){return isNumber(t)?t:t.get()}const r={get:function(){return e},set:function(t){e=i(t)},add:function(t){e+=i(t)},subtract:function(t){e-=i(t)}};return r}function Translate(t,e){const i="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},r=e.style;let n=null,a=!1;return{clear:function(){a||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(a)return;const o=roundToTwoDecimals(t.direction(e));o!==n&&(r.transform=i(o),n=o)},toggleActive:function(t){a=!t}}}function SlideLooper(t,e,i,r,n,a,o,s,l){const h=arrayKeys(n),c=arrayKeys(n).reverse(),p=function(){const t=o[0];return f(d(c,t),i,!1)}().concat(function(){const t=e-o[0]-1;return f(d(h,t),-i,!0)}());function u(t,e){return t.reduce((t,e)=>t-n[e],e)}function d(t,e){return t.reduce((t,i)=>u(t,e)>0?t.concat([i]):t,[])}function f(n,o,h){const c=function(t){return a.map((i,n)=>({start:i-r[n]+.5+t,end:i+e-.5+t}))}(o);return n.map(e=>{const r=h?0:-i,n=h?i:0,a=h?"end":"start",o=c[e][a];return{index:e,loopPoint:o,slideLocation:Vector1D(-1),translate:Translate(t,l[e]),target:()=>s.get()>o?r:n}})}const m={canLoop:function(){return p.every(({index:t})=>{const i=h.filter(e=>e!==t);return u(i,e)<=.1})},clear:function(){p.forEach(t=>t.translate.clear())},loop:function(){p.forEach(t=>{const{target:e,translate:i,slideLocation:r}=t,n=e();n!==r.get()&&(i.to(n),r.set(n))})},loopPoints:p};return m}function SlidesHandler(t,e,i){let r,n=!1;return{init:function(a){i&&(r=new MutationObserver(t=>{n||(isBoolean(i)||i(a,t))&&function(t){for(const i of t)if("childList"===i.type){a.reInit(),e.emit("slidesChanged");break}}(t)}),r.observe(t,{childList:!0}))},destroy:function(){r&&r.disconnect(),n=!0}}}function SlidesInView(t,e,i,r){const n={};let a,o=null,s=null,l=!1;return{init:function(){a=new IntersectionObserver(t=>{l||(t.forEach(t=>{const i=e.indexOf(t.target);n[i]=t}),o=null,s=null,i.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(t=>a.observe(t))},destroy:function(){a&&a.disconnect(),l=!0},get:function(t=!0){if(t&&o)return o;if(!t&&s)return s;const e=function(t){return objectKeys(n).reduce((e,i)=>{const r=parseInt(i),{isIntersecting:a}=n[r];return(t&&a||!t&&!a)&&e.push(r),e},[])}(t);return t&&(o=e),t||(s=e),e}}}function SlideSizes(t,e,i,r,n,a){const{measureSize:o,startEdge:s,endEdge:l}=t,h=i[0]&&n,c=function(){if(!h)return 0;const t=i[0];return mathAbs(e[s]-t[s])}(),p=function(){if(!h)return 0;const t=a.getComputedStyle(arrayLast(r));return parseFloat(t.getPropertyValue(`margin-${l}`))}(),u=i.map(o),d=i.map((t,e,i)=>{const r=!e,n=arrayIsLastIndex(i,e);return r?u[e]+c:n?u[e]+p:i[e+1][s]-t[s]}).map(mathAbs);return{slideSizes:u,slideSizesWithGaps:d,startGap:c,endGap:p}}function SlidesToScroll(t,e,i,r,n,a,o,s,l){const{startEdge:h,endEdge:c,direction:p}=t,u=isNumber(i);const d={groupSlides:function(t){return u?function(t,e){return arrayKeys(t).filter(t=>t%e===0).map(i=>t.slice(i,i+e))}(t,i):function(t){return t.length?arrayKeys(t).reduce((i,u,d)=>{const f=arrayLast(i)||0,m=0===f,y=u===arrayLastIndex(t),g=n[h]-a[f][h],b=n[h]-a[u][c],v=!r&&m?p(o):0,_=mathAbs(b-(!r&&y?p(s):0)-(g+v));return d&&_>e+l&&i.push(u),y&&i.push(t.length),i},[]).map((e,i,r)=>{const n=Math.max(r[i-1]||0);return t.slice(n,e)}):[]}(t)}};return d}function Engine(t,e,i,r,n,a,o){const{align:s,axis:l,direction:h,startIndex:c,loop:p,duration:u,dragFree:d,dragThreshold:f,inViewThreshold:m,slidesToScroll:y,skipSnaps:g,containScroll:b,watchResize:v,watchSlides:_,watchDrag:x,watchFocus:k}=a,S=NodeRects(),w=S.measure(e),E=i.map(S.measure),C=Axis(l,h),P=C.measureSize(w),T=PercentOfView(P),A=Alignment(s,P),D=!p&&!!b,F=p||!!b,{slideSizes:M,slideSizesWithGaps:I,startGap:j,endGap:R}=SlideSizes(C,w,E,i,F,n),O=SlidesToScroll(C,P,y,p,w,E,j,R,2),{snaps:B,snapsAligned:L}=ScrollSnaps(C,A,w,E,O),N=-arrayLast(B)+arrayLast(I),{snapsContained:V,scrollContainLimit:z}=ScrollContain(P,N,L,b,2),G=D?V:L,{limit:H}=ScrollLimit(N,G,p),W=Counter(arrayLastIndex(G),c,p),q=W.clone(),$=arrayKeys(i),K=Animations(r,n,()=>(({dragHandler:t,scrollBody:e,scrollBounds:i,options:{loop:r}})=>{r||i.constrain(t.pointerDown()),e.seek()})(st),t=>(({scrollBody:t,translate:e,location:i,offsetLocation:r,previousLocation:n,scrollLooper:a,slideLooper:o,dragHandler:s,animation:l,eventHandler:h,scrollBounds:c,options:{loop:p}},u)=>{const d=t.settled(),f=!c.shouldConstrain(),m=p?d:d&&f,y=m&&!s.pointerDown();y&&l.stop();const g=i.get()*u+n.get()*(1-u);r.set(g),p&&(a.loop(t.direction()),o.loop()),e.to(r.get()),y&&h.emit("settle"),m||h.emit("scroll")})(st,t)),X=G[W.get()],J=Vector1D(X),Y=Vector1D(X),U=Vector1D(X),Z=Vector1D(X),Q=ScrollBody(J,U,Y,Z,u,.68),tt=ScrollTarget(p,G,N,H,Z),et=ScrollTo(K,W,q,Q,tt,Z,o),it=ScrollProgress(H),rt=EventStore(),nt=SlidesInView(e,i,o,m),{slideRegistry:at}=SlideRegistry(D,b,G,z,O,$),ot=SlideFocus(t,i,at,et,Q,rt,o,k),st={ownerDocument:r,ownerWindow:n,eventHandler:o,containerRect:w,slideRects:E,animation:K,axis:C,dragHandler:DragHandler(C,t,r,n,Z,DragTracker(C,n),J,K,et,Q,tt,W,o,T,d,f,g,.68,x),eventStore:rt,percentOfView:T,index:W,indexPrevious:q,limit:H,location:J,offsetLocation:U,previousLocation:Y,options:a,resizeHandler:ResizeHandler(e,o,n,i,C,v,S),scrollBody:Q,scrollBounds:ScrollBounds(H,U,Z,Q,T),scrollLooper:ScrollLooper(N,H,U,[J,U,Y,Z]),scrollProgress:it,scrollSnapList:G.map(it.get),scrollSnaps:G,scrollTarget:tt,scrollTo:et,slideLooper:SlideLooper(C,P,N,M,I,B,G,U,i),slideFocus:ot,slidesHandler:SlidesHandler(e,o,_),slidesInView:nt,slideIndexes:$,slideRegistry:at,slidesToScroll:O,target:Z,translate:Translate(C,e)};return st}function EventHandler(){let t,e={};function i(t){return e[t]||[]}const r={init:function(e){t=e},emit:function(e){return i(e).forEach(i=>i(t,e)),r},off:function(t,n){return e[t]=i(t).filter(t=>t!==n),r},on:function(t,n){return e[t]=i(t).concat([n]),r},clear:function(){e={}}};return r}const defaultOptions={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function OptionsHandler(t){function e(t,e){return objectsMergeDeep(t,e||{})}const i={mergeOptions:e,optionsAtMedia:function(i){const r=i.breakpoints||{},n=objectKeys(r).filter(e=>t.matchMedia(e).matches).map(t=>r[t]).reduce((t,i)=>e(t,i),{});return e(i,n)},optionsMediaQueries:function(e){return e.map(t=>objectKeys(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}};return i}function PluginsHandler(t){let e=[];return{init:function(i,r){return e=r.filter(({options:e})=>!1!==t.optionsAtMedia(e).active),e.forEach(e=>e.init(i,t)),r.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){e=e.filter(t=>t.destroy())}}}function EmblaCarousel(t,e,i){const r=t.ownerDocument,n=r.defaultView,a=OptionsHandler(n),o=PluginsHandler(a),s=EventStore(),l=EventHandler(),{mergeOptions:h,optionsAtMedia:c,optionsMediaQueries:p}=a,{on:u,off:d,emit:f}=l,m=C;let y,g,b,v,_=!1,x=h(defaultOptions,EmblaCarousel.globalOptions),k=h(x),S=[];function w(e){const i=Engine(t,b,v,r,n,e,l);if(e.loop&&!i.slideLooper.canLoop()){return w(Object.assign({},e,{loop:!1}))}return i}function E(e,i){_||(x=h(x,e),k=c(x),S=i||S,function(){const{container:e,slides:i}=k,r=isString(e)?t.querySelector(e):e;b=r||t.children[0];const n=isString(i)?b.querySelectorAll(i):i;v=[].slice.call(n||b.children)}(),y=w(k),p([x,...S.map(({options:t})=>t)]).forEach(t=>s.add(t,"change",C)),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(D),y.eventHandler.init(D),y.resizeHandler.init(D),y.slidesHandler.init(D),y.options.loop&&y.slideLooper.loop(),b.offsetParent&&v.length&&y.dragHandler.init(D),g=o.init(D,S)))}function C(t,e){const i=A();P(),E(h({startIndex:i},t),e),l.emit("reInit")}function P(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),o.destroy(),s.clear()}function T(t,e,i){k.active&&!_&&(y.scrollBody.useBaseFriction().useDuration(!0===e?0:k.duration),y.scrollTo.index(t,i||0))}function A(){return y.index.get()}const D={canScrollNext:function(){return y.index.add(1).get()!==A()},canScrollPrev:function(){return y.index.add(-1).get()!==A()},containerNode:function(){return b},internalEngine:function(){return y},destroy:function(){_||(_=!0,s.clear(),P(),l.emit("destroy"),l.clear())},off:d,on:u,emit:f,plugins:function(){return g},previousScrollSnap:function(){return y.indexPrevious.get()},reInit:m,rootNode:function(){return t},scrollNext:function(t){T(y.index.add(1).get(),t,-1)},scrollPrev:function(t){T(y.index.add(-1).get(),t,1)},scrollProgress:function(){return y.scrollProgress.get(y.offsetLocation.get())},scrollSnapList:function(){return y.scrollSnapList},scrollTo:T,selectedScrollSnap:A,slideNodes:function(){return v},slidesInView:function(){return y.slidesInView.get()},slidesNotInView:function(){return y.slidesInView.get(!1)}};return E(e,i),setTimeout(()=>l.emit("init"),0),D}function useEmblaCarousel(t={},e=[]){const i=useRef(t),r=useRef(e),[n,a]=useState(),[o,s]=useState(),l=useCallback(()=>{n&&n.reInit(i.current,r.current)},[n]);return useEffect(()=>{areOptionsEqual(i.current,t)||(i.current=t,l())},[t,l]),useEffect(()=>{arePluginsEqual(r.current,e)||(r.current=e,l())},[e,l]),useEffect(()=>{if(canUseDOM()&&o){EmblaCarousel.globalOptions=useEmblaCarousel.globalOptions;const t=EmblaCarousel(o,i.current,r.current);return a(t),()=>t.destroy()}a(void 0)},[o,a]),[s,n]}EmblaCarousel.globalOptions=void 0,useEmblaCarousel.globalOptions=void 0;const carouselContext=createContext(void 0);function CarouselProvider({node:t}){t=useNode(t);const[e,i]=useEmblaCarousel(t.attributes);return jsx(carouselContext.Provider,{value:i,children:jsx("div",{className:"carousel-provider",children:jsx("div",{className:"embla",children:jsx("div",{className:"embla__viewport",ref:e,children:t.children&&jsx(RenderNode$1,{node:t.children})})})})})}var CarouselProvider$1=React.memo(CarouselProvider);function CarouselButtons({node:t}){useLogRender("CarouselButtons"),t=useNode(t);const e=useContext(carouselContext),i=t.attributes?.buttonType||["previous_button","next_button"];return jsxs("div",{className:"embla__buttons",children:[i.includes("previous_button")&&jsx("button",{onClick:()=>e?.scrollPrev(),className:"embla__button embla__button--prev",children:"Previous"}),i.includes("next_button")&&jsx("button",{onClick:()=>e?.scrollNext(),className:"embla__button embla__button--next",children:"Next"}),i.includes("skip_button")&&jsx("button",{onClick:()=>e?.scrollTo(t.attributes?.skipNumber),className:"embla__button embla__button--skip",children:"Skip"})]})}var CarouselButtons$1=React.memo(CarouselButtons);function CarouselDots({node:t}){useLogRender("CarouselDots"),t=useNode(t);const e=t.attributes?.dotType||"normal_dot",i=useContext(carouselContext),[r,n]=useState(0),[a,o]=useState([]);return useEffect(()=>{i&&(o(i.scrollSnapList()),n(i.selectedScrollSnap()),i.on("select",()=>{n(i.selectedScrollSnap())}))},[i]),jsx("div",{className:`embla__dots embla__dots--${e}`,children:a.map((t,e)=>jsx("button",{onClick:()=>i?.scrollTo(t),className:"embla__dot "+(r===e?"embla__dot--selected":""),children:e===r?"●":"○"},e))})}var CarouselDots$1=React.memo(CarouselDots);function CarouselItem({node:t}){return useLogRender("CarouselItem"),t=useNode(t),jsx("div",{className:"embla__slide",...t.attributes,children:t.children&&jsx(RenderNode$1,{node:t.children})})}var CarouselItem$1=React.memo(CarouselItem);function extractImageStyle(t){const e=t.attributes,i={};return e?(void 0!==e.width&&(i.width=e.width),void 0!==e.height&&(i.height=e.height),void 0!==e.borderRadius&&(i.borderRadius=e.borderRadius),"cover"===e.resizeMode?i.objectFit="cover":"contain"===e.resizeMode?i.objectFit="contain":"stretch"===e.resizeMode?i.objectFit="fill":"center"===e.resizeMode&&(i.objectFit="none"),i):i}function Image$1({node:t}){return useLogRender("Image"),t=useNode(t),jsx("img",{src:t.attributes?.src,width:t.attributes?.width,height:t.attributes?.height,style:extractImageStyle(t),alt:""},t.key)}var Image$2=React.memo(Image$1);function Onboard({node:t}){return useLogRender("Onboard"),t=useNode(t),jsx(Carousel$1,{node:{...t,type:"carousel"}})}var Onboard$1=React.memo(Onboard);const onboardContext=createContext(void 0);function OnboardProvider({node:t}){useLogRender("OnboardProvider"),t=useNode(t);const e=useRenderStore(t=>t.device),[i,r]=useEmblaCarousel(t.attributes),[n,a]=useState(0),o=useMemo(()=>{const e=t.children.filter(t=>"Onboard"===t.type)[0];if("Onboard"!==e?.type)throw new Error("OnboardProvider at least has an Onboard child");const i=e.children[n].children.filter(t=>"OnboardButtons"==t?.type);return[...t.children,...i]},[n,t.children]);return useEffect(()=>{r&&(a(r.selectedScrollSnap()),r.on("select",()=>{a(r.selectedScrollSnap())}))},[r]),jsx(onboardContext.Provider,{value:{emblaApi:r,selectedIndex:n},children:jsx("div",{className:"carousel-provider",style:{paddingTop:e?.insets?.[0]+t.attributes?.paddingTop,paddingRight:e?.insets?.[1]+t.attributes?.paddingRight,paddingBottom:e?.insets?.[2]+t.attributes?.paddingBottom,paddingLeft:e?.insets?.[3]+t.attributes?.paddingLeft},children:jsx("div",{className:"embla",children:jsx("div",{className:"embla__viewport",ref:i,children:t.children&&jsx(RenderNode$1,{node:o})})})})})}var OnboardProvider$1=React.memo(OnboardProvider);function OnboardButton({node:t}){useLogRender("OnboardButton"),t=useNode(t);const{emblaApi:e}=useContext(onboardContext)??{},{appConfig:i}=useRenderStore(t=>({appConfig:t.appConfig})),r=t.attributes?.labelKey??"",n=i.localication?.[i.defaultLanguage??"en"]?.[r]??r,a=t.attributes?.flex??1,o=t.attributes?.button_text_color??"#FFFFFF",s=t.attributes?.button_background_color??"#0066FF";return jsx("button",{className:"onboard__button",onClick:()=>{const i=t.attributes?.events||[];for(const t of i)if("Permission"===t.type)alert(`Permission requested: ${t.permission??"unknown"}`);else if("Navigate"===t.type){const i=t?.targetIndex;"number"==typeof i&&e?.scrollTo(i)}},style:{flex:a,color:o,backgroundColor:s,border:"none",borderRadius:20,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:n})}var OnboardButton$1=React.memo(OnboardButton);function OnboardButtons({node:t}){useLogRender("OnboardButtons"),t=useNode(t);const{appConfig:e}=useRenderStore(t=>({appConfig:t.appConfig})),i="light"===e.theme?e.screenStyle.light.seperatorColor:e.screenStyle.dark.seperatorColor,r=useContext(onboardContext)??{},[n,a]=useState(r.selectedIndex??0);useEffect(()=>{"number"==typeof r.selectedIndex&&a(r.selectedIndex)},[r.selectedIndex]);const o=t.attributes?.condition,s=t.attributes?.conditionVariable;if("carousel-index"===o&&"number"==typeof s&&s!==n)return null;const l="column"===t.attributes?.buttons_direction?"column":"row",h=t.attributes?.seperatorColor??i;return jsxs(Fragment,{children:[jsx("div",{className:"onboard__separator",style:{height:1,backgroundColor:h,width:"100%"}}),jsx("div",{className:"onboard__buttons",style:{display:"flex",flexDirection:l,height:40,gap:12,alignItems:"center",justifyContent:"center",margin:"12px 24px"},children:Array.isArray(t.children)?t.children.map((t,e)=>jsx(RenderNode$1,{node:t},e)):jsx(RenderNode$1,{node:t.children})})]})}var OnboardButtons$1=React.memo(OnboardButtons);function OnboardDot({node:t}){return useLogRender("OnboardDot"),t=useNode(t),jsx(CarouselDots$1,{node:{...t,type:"carouselDots"}})}var OnboardDot$1=React.memo(OnboardDot);function getBaseDimensions(){const t=useRenderStore.getState();let e=t.device;const[i,r]=e.width<e.height?[e.width,e.height]:[e.height,e.width];return{baseSize:t.appConfig.baseSize,shortDimension:i,longDimension:r}}function scale(t){const{baseSize:e,shortDimension:i}=getBaseDimensions();return i/e.width*t}function verticalScale(t){const{baseSize:e,longDimension:i}=getBaseDimensions();return i/e.height*t}const s$1=scale,vs=verticalScale,fs=verticalScale;function parseSize(t){if(void 0===t)return;if("number"==typeof t)return t;const e=String(t).trim(),i=e.toLowerCase();if(i.endsWith("@s")){const t=parseFloat(i.slice(0,-2));return Number.isFinite(t)?s$1(t):e}if(i.endsWith("@vs")){const t=parseFloat(i.slice(0,-3));return Number.isFinite(t)?vs(t):e}if(i.endsWith("@f")||i.endsWith("@fs")){const t=i.endsWith("@f")?-2:-3,r=parseFloat(i.slice(0,t));return Number.isFinite(r)?fs(r):e}if(i.endsWith("px")){const t=parseFloat(i.replace("px",""));return Number.isFinite(t)?t:e}const r=parseFloat(i);return Number.isFinite(r)?r:e}function extractTextStyle(t){const e=t.attributes,{appConfig:{screenStyle:i,theme:r}}=useRenderStore.getState(),n="light"===r?i.light.color:i.dark.color,a={};if(!e)return a.fontSize=fs(14),a.color=n,a;if(void 0!==e.fontSize){const t=parseSize(e.fontSize);a.fontSize=t}else a.fontSize=fs(14);if(e.fontWeight&&(a.fontWeight=e.fontWeight),a.color=e.color??n,e.textAlign&&(a.textAlign=e.textAlign),void 0!==e.padding&&(a.padding=e.padding),void 0!==e.margin&&(a.margin=e.margin),void 0!==e.paddingHorizontal){const t=parseSize(e.paddingHorizontal);a.paddingLeft=t,a.paddingRight=t}if(void 0!==e.paddingVertical){const t=parseSize(e.paddingVertical);a.paddingTop=t,a.paddingBottom=t}if(void 0!==e.marginHorizontal){const t=parseSize(e.marginHorizontal);a.marginLeft=t,a.marginRight=t}if(void 0!==e.marginVertical){const t=parseSize(e.marginVertical);a.marginTop=t,a.marginBottom=t}return void 0!==e.paddingTop&&(a.paddingTop=parseSize(e.paddingTop)),void 0!==e.paddingBottom&&(a.paddingBottom=parseSize(e.paddingBottom)),void 0!==e.paddingLeft&&(a.paddingLeft=parseSize(e.paddingLeft)),void 0!==e.paddingRight&&(a.paddingRight=parseSize(e.paddingRight)),void 0!==e.marginTop&&(a.marginTop=parseSize(e.marginTop)),void 0!==e.marginBottom&&(a.marginBottom=parseSize(e.marginBottom)),void 0!==e.marginLeft&&(a.marginLeft=parseSize(e.marginLeft)),void 0!==e.marginRight&&(a.marginRight=parseSize(e.marginRight)),e.backgroundColor&&(a.backgroundColor=e.backgroundColor),void 0!==e.borderRadius&&(a.borderRadius=e.borderRadius),void 0!==e.width&&(a.width=e.width),void 0!==e.height&&(a.height=e.height),a}function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments(t,e){const i=[];for(const r of e){if(!r.value)continue;const e=new RegExp(escapeRegExp(r.value),"gi");for(const n of t.matchAll(e)){if(null==n.index)continue;const t=n[0];t&&i.push({start:n.index,end:n.index+t.length,value:t,color:r.color,page:r.page})}}if(0===i.length)return{segments:[{type:"text",value:t}],matchCount:0};i.sort((t,e)=>{if(t.start!==e.start)return t.start-e.start;const i=t.end-t.start;return e.end-e.start-i});const r=[];let n=-1;for(const t of i)t.start>=n&&(r.push(t),n=t.end);const a=[];let o=0;for(const{start:e,end:i,value:n,color:s,page:l}of r)e>o&&a.push({type:"text",value:t.slice(o,e)}),a.push({type:"match",value:n,color:s,page:l}),o=i;return o<t.length&&a.push({type:"text",value:t.slice(o)}),{segments:a,matchCount:r.length}}function OnboardFooter({node:t}){useLogRender("OnboardFooter"),t=useNode(t);const{appConfig:e}=useRenderStore(t=>({appConfig:t.appConfig})),{localication:i,defaultLanguage:r}=e,n=t=>t?i?.[r??"en"]?.[t]??t:"",a=n(t?.attributes?.textLocalizationKey),o=extractTextStyle(t),s=t=>({color:t,cursor:t?"pointer":void 0}),l=parseSize(t?.attributes?.paddingHorizontal);return jsx("div",{style:{...o,paddingLeft:l,paddingRight:l,textAlign:"center"},children:!!a&&(()=>{const e=n(t?.attributes?.linkedWordFirstLocalizationKey),i=n(t?.attributes?.linkedWordSecondLocalizationKey),{segments:r,matchCount:o}=buildSegments(a,[{value:e,color:t?.attributes?.linkedWordFirstColor,page:t?.attributes?.linkedWordFirstPage},{value:i,color:t?.attributes?.linkedWordSecondColor,page:t?.attributes?.linkedWordSecondPage}]),l=t?.attributes?.color;return jsxs(Fragment,{children:[jsx("p",{style:{color:l,alignItems:"center"},children:r.map((t,e)=>"text"===t.type?jsx("span",{children:t.value},e):jsx("span",{style:s(t.color),onClick:()=>{t.page},children:t.value},e))}),0===o&&jsxs("div",{children:[t?.attributes?.linkedWordFirstLocalizationKey&&jsx("span",{style:s(t?.attributes?.linkedWordFirstColor),onClick:()=>{},children:e}),t?.attributes?.linkedWordSecondLocalizationKey&&jsx("span",{style:s(t?.attributes?.linkedWordSecondColor),onClick:()=>{},children:i})]})]})})()})}var OnboardFooter$1=React.memo(OnboardFooter),lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r,n=t.length;for(i=0;i<n;i+=1)for(var a in r=t[i].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(e.prototype[a]=r[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,r=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)n.push(i);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),r=t.length;for(e=0;e<r;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var r,n,a,o,s,l,h,c;switch(l=i*(1-e),h=i*(1-(s=6*t-(o=Math.floor(6*t)))*e),c=i*(1-(1-s)*e),o%6){case 0:r=i,n=c,a=l;break;case 1:r=h,n=i,a=l;break;case 2:r=l,n=i,a=c;break;case 3:r=l,n=h,a=i;break;case 4:r=c,n=l,a=i;break;case 5:r=i,n=l,a=h}return[r,n,a]}function RGBtoHSV(t,e,i){var r,n=Math.max(t,e,i),a=Math.min(t,e,i),o=n-a,s=0===n?0:o/n,l=n/255;switch(n){case a:r=0;break;case t:r=e-i+o*(e<i?6:0),r/=6*o;break;case e:r=i-t+2*o,r/=6*o;break;case i:r=t-e+4*o,r/=6*o}return[r,s,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,i=1,r=[],n={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){n.onmessage({data:t})}};function o(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(i);return new Worker(r)}return t=e,n}(function(t){if(a.dataManager||(a.dataManager=function(){function t(n,a){var o,s,l,h,c,u,d=n.length;for(s=0;s<d;s+=1)if("ks"in(o=n[s])&&!o.completed){if(o.completed=!0,o.hasMask){var f=o.masksProperties;for(h=f.length,l=0;l<h;l+=1)if(f[l].pt.k.i)r(f[l].pt.k);else for(u=f[l].pt.k.length,c=0;c<u;c+=1)f[l].pt.k[c].s&&r(f[l].pt.k[c].s[0]),f[l].pt.k[c].e&&r(f[l].pt.k[c].e[0])}0===o.ty?(o.layers=e(o.refId,a),t(o.layers,a)):4===o.ty?i(o.shapes):5===o.ty&&p(o)}}function e(t,e){var i=function(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,n,a;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(a=t[e].ks.k.length,n=0;n<a;n+=1)t[e].ks.k[n].s&&r(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&r(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function r(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var a,o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),s=(a=[4,7,99],function(t){if(t.chars&&!n(a,t.v)){var e,r=t.chars.length;for(e=0;e<r;e+=1){var o=t.chars[e];o.data&&o.data.shapes&&(i(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),h=function(){var t=[4,1,9];function e(t){var i,r,n,a=t.length;for(i=0;i<a;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(n=t[i].c.k.length,r=0;r<n;r+=1)t[i].c.k[r].s&&(t[i].c.k[r].s[0]/=255,t[i].c.k[r].s[1]/=255,t[i].c.k[r].s[2]/=255,t[i].c.k[r].s[3]/=255),t[i].c.k[r].e&&(t[i].c.k[r].e[0]/=255,t[i].c.k[r].e[1]/=255,t[i].c.k[r].e[2]/=255,t[i].c.k[r].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,r,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(n=t[i].ks.k.length,r=0;r<n;r+=1)t[i].ks.k[r].s&&(t[i].ks.k[r].s[0].c=t[i].closed),t[i].ks.k[r].e&&(t[i].ks.k[r].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,r,n,a,o,s,l=t.length;for(r=0;r<l;r+=1){if((i=t[r]).hasMask){var h=i.masksProperties;for(a=h.length,n=0;n<a;n+=1)if(h[n].pt.k.i)h[n].pt.k.c=h[n].cl;else for(s=h[n].pt.k.length,o=0;o<s;o+=1)h[n].pt.k[o].s&&(h[n].pt.k[o].s[0].c=h[n].cl),h[n].pt.k[o].e&&(h[n].pt.k[o].e[0].c=h[n].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var r,a=e.assets.length;for(r=0;r<a;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}();function p(t){0===t.t.a.length&&t.t.p}var u={completeData:function(i){i.__complete||(h(i),o(i),s(i),l(i),c(i),t(i.layers,i.assets),function(i,r){if(i){var n=0,a=i.length;for(n=0;n<a;n+=1)1===i[n].t&&(i[n].data.layers=e(i[n].data.refId,r),t(i[n].data.layers,r))}}(i.chars,i.assets),i.__complete=!0)}};return u.checkColors=h,u.checkChars=s,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,r,n){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(t){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=t(o),r(a);else try{a=t(o),r(a)}catch(t){n&&n(t)}};try{o.open(["G","E","T"].join(""),e,!0)}catch(t){o.open(["G","E","T"].join(""),i+"/"+e,!0)}o.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})},function(){a.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})},function(){a.postMessage({id:t.data.id,status:"error"})})}),e.onmessage=function(t){var e=t.data,i=e.id,n=r[i];r[i]=null,"success"===e.status?n.onComplete(e.payload):n.onError&&n.onError()})}function s(t,e){var n="processId_"+(i+=1);return r[n]={onComplete:t,onError:e},n}return{loadAnimation:function(t,i,r){o();var n=s(i,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,r){o();var n=s(i,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,r){o();var n=s(i,r);e.postMessage({type:"complete",animation:t,id:n})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,i){var r="";if(t.e)r=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),r=e+n}else r=i,r+=t.u?t.u:"",r+=t.p;return r}function n(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function a(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var r=t.length;for(i=0;i<r;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=r(e,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),n.src=i;var a={img:n,assetData:e};return a},createImageData:function(e){var i=r(e,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var a={img:n,assetData:e};return a},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r<i.length;r+=1)i[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,r-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),r={},n=0,a=0;a<i.length;a+=1)2===(e=i[a].split(":")).length&&(r[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return r}return function(e){for(var i=[],r=0;r<e.length;r+=1){var n=e[r],a={time:n.tm,duration:n.dr};try{a.payload=JSON.parse(e[r].cm)}catch(i){try{a.payload=t(e[r].cm)}catch(t){a.payload={name:e[r].cm}}}i.push(a)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},r=t.attributes;i.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",i.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));var a=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;i.autoplay="false"!==a,i.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,r=this.animationData.layers,n=r.length,a=t.layers,o=a.length;for(i=0;i<o;i+=1)for(e=0;e<n;){if(r[e].id===a[i].id){r[e]=a[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,r)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var r=Number(t);if(isNaN(r)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var r=Number(t);if(isNaN(r)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(r,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,r=t.length;for(i=0;i<r;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,r=0,n=0,a=!0,o=!1;function s(t){for(var i=0,n=t.target;i<r;)e[i].animation===n&&(e.splice(i,1),i-=1,r-=1,n.isPaused||c()),i+=1}function l(t,i){if(!t)return null;for(var n=0;n<r;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var a=new AnimationItem;return p(a,t),a.setData(t,i),a}function h(){n+=1,f()}function c(){n-=1}function p(t,i){t.addEventListener("destroy",s),t.addEventListener("_active",h),t.addEventListener("_idle",c),e.push({elem:i,animation:t}),r+=1}function u(t){var s,l=t-i;for(s=0;s<r;s+=1)e[s].animation.advanceTime(l);i=t,n&&!o?window.requestAnimationFrame(u):a=!0}function d(t){i=t,window.requestAnimationFrame(u)}function f(){!o&&n&&a&&(window.requestAnimationFrame(d),a=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return p(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setSpeed(t,i)},t.setDirection=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var r,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=n.length;for(r=0;r<a;r+=1)i&&n[r].setAttribute("data-bm-type",i),l(n[r],t);if(e&&0===a){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",i),o.appendChild(s),l(s,t)}},t.resize=function(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,n){var a;for(a=0;a<r;a+=1)e[a].animation.goToAndStop(t,i,n)},t.destroy=function(t){var i;for(i=r-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,f()},t.setVolume=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,r=[];for(t=0;t<i;t+=1)r.push(e[t].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,i,r,n,a){var o=a||("bez_"+t+"_"+i+"_"+r+"_"+n).replace(/\./g,"p");if(e[o])return e[o];var s=new c([t,i,r,n]);return e[o]=s,s}},e={},i=11,r=1/(i-1),n="function"==typeof Float32Array;function a(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,i){return((a(e,i)*t+o(e,i))*t+s(e))*t}function h(t,e,i){return 3*a(e,i)*t*t+2*o(e,i)*t+s(e)}function c(t){this._p=t,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&r===n?t:0===t?0:1===t?1:l(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<i;++n)this._mSampleValues[n]=l(n*r,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],a=this._mSampleValues,o=0,s=1,c=i-1;s!==c&&a[s]<=t;++s)o+=r;var p=o+(t-a[--s])/(a[s+1]-a[s])*r,u=h(p,e,n);return u>=.001?function(t,e,i,r){for(var n=0;n<4;++n){var a=h(e,i,r);if(0===a)return e;e-=(l(e,i,r)-t)/a}return e}(t,p,e,n):0===u?p:function(t,e,i,r,n){var a,o,s=0;do{(a=l(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o}while(Math.abs(a)>1e-7&&++s<10);return o}(t,o,o+r,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,n=t,a=createSizedArray(n);return{newElement:function(){return r?a[r-=1]:e()},release:function(t){r===n&&(a=pooling.double(a),n*=2),i&&i(t),a[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(t,e,i,r,n,a){var o=t*r+e*n+i*a-n*r-a*t-i*e;return o>-.001&&o<.001}var i=function(t,e,i,r){var n,a,o,s,l,h,c=getDefaultCurveSegments(),p=0,u=[],d=[],f=bezierLengthPool.newElement();for(o=i.length,n=0;n<c;n+=1){for(l=n/(c-1),h=0,a=0;a<o;a+=1)s=bmPow(1-l,3)*t[a]+3*bmPow(1-l,2)*l*i[a]+3*(1-l)*bmPow(l,2)*r[a]+bmPow(l,3)*e[a],u[a]=s,null!==d[a]&&(h+=bmPow(u[a]-d[a],2)),d[a]=u[a];h&&(p+=h=bmSqrt(h)),f.percents[n]=l,f.lengths[n]=p}return f.addedLength=p,f};function r(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var a,o=(a={},function(t,i,o,s){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!a[l]){var h,c,p,u,d,f,m,y=getDefaultCurveSegments(),g=0,b=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+o[0],t[1]+o[1])&&e(t[0],t[1],i[0],i[1],i[0]+s[0],i[1]+s[1])&&(y=2);var v=new r(y);for(p=o.length,h=0;h<y;h+=1){for(m=createSizedArray(p),d=h/(y-1),f=0,c=0;c<p;c+=1)u=bmPow(1-d,3)*t[c]+3*bmPow(1-d,2)*d*(t[c]+o[c])+3*(1-d)*bmPow(d,2)*(i[c]+s[c])+bmPow(d,3)*i[c],m[c]=u,null!==b&&(f+=bmPow(m[c]-b[c],2));g+=f=bmSqrt(f),v.points[h]=new n(f,m),b=m}v.segmentLength=g,a[l]=v}return a[l]});function s(t,e){var i=e.percents,r=e.lengths,n=i.length,a=bmFloor((n-1)*t),o=t*e.addedLength,s=0;if(a===n-1||0===a||o===r[a])return i[a];for(var l=r[a]>o?-1:1,h=!0;h;)if(r[a]<=o&&r[a+1]>o?(s=(o-r[a])/(r[a+1]-r[a]),h=!1):a+=l,a<0||a>=n-1){if(a===n-1)return i[a];h=!1}return i[a]+(i[a+1]-i[a])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),n=t.c,a=t.v,o=t.o,s=t.i,l=t._length,h=r.lengths,c=0;for(e=0;e<l-1;e+=1)h[e]=i(a[e],a[e+1],o[e],s[e+1]),c+=h[e].addedLength;return n&&l&&(h[e]=i(a[e],a[0],o[e],s[0]),c+=h[e].addedLength),r.totalLength=c,r},getNewSegment:function(e,i,r,n,a,o,h){a<0?a=0:a>1&&(a=1);var c,p=s(a,h),u=s(o=o>1?1:o,h),d=e.length,f=1-p,m=1-u,y=f*f*f,g=p*f*f*3,b=p*p*f*3,v=p*p*p,_=f*f*m,x=p*f*m+f*p*m+f*f*u,k=p*p*m+f*p*u+p*f*u,S=p*p*u,w=f*m*m,E=p*m*m+f*u*m+f*m*u,C=p*u*m+f*u*u+p*m*u,P=p*u*u,T=m*m*m,A=u*m*m+m*u*m+m*m*u,D=u*u*m+m*u*u+u*m*u,F=u*u*u;for(c=0;c<d;c+=1)l[4*c]=t.round(1e3*(y*e[c]+g*r[c]+b*n[c]+v*i[c]))/1e3,l[4*c+1]=t.round(1e3*(_*e[c]+x*r[c]+k*n[c]+S*i[c]))/1e3,l[4*c+2]=t.round(1e3*(w*e[c]+E*r[c]+C*n[c]+P*i[c]))/1e3,l[4*c+3]=t.round(1e3*(T*e[c]+A*r[c]+D*n[c]+F*i[c]))/1e3;return l},getPointInSegment:function(e,i,r,n,a,o){var l=s(a,o),h=1-l;return[t.round(1e3*(h*h*h*e[0]+(l*h*h+h*l*h+h*h*l)*r[0]+(l*l*h+h*l*l+l*h*l)*n[0]+l*l*l*i[0]))/1e3,t.round(1e3*(h*h*h*e[1]+(l*h*h+h*l*h+h*h*l)*r[1]+(l*l*h+h*l*l+l*h*l)*n[1]+l*l*l*i[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(i,r,n,a,o,s,l,h,c){if(0===n&&0===s&&0===c)return e(i,r,a,o,l,h);var p,u=t.sqrt(t.pow(a-i,2)+t.pow(o-r,2)+t.pow(s-n,2)),d=t.sqrt(t.pow(l-i,2)+t.pow(h-r,2)+t.pow(c-n,2)),f=t.sqrt(t.pow(l-a,2)+t.pow(h-o,2)+t.pow(c-s,2));return(p=u>d?u>f?u-d-f:f-d-u:f>d?f-d-u:d-u-f)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,r=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var n,a,o,s,l,h,c,p,u,d=e.lastIndex,f=d,m=this.keyframes.length-1,y=!0;y;){if(n=this.keyframes[f],a=this.keyframes[f+1],f===m-1&&t>=a.t-r){n.h&&(n=a),d=0;break}if(a.t-r>t){d=f;break}f<m-1?f+=1:(d=0,y=!1)}o=this.keyframesMetadata[f]||{};var g,b=a.t-r,v=n.t-r;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,a.s||n.e,n.to,n.ti));var _=o.bezierData;if(t>=b||t<v){var x=t>=b?_.points.length-1:0;for(l=_.points[x].point.length,s=0;s<l;s+=1)i[s]=_.points[x].point[s]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=u),h=u((t-v)/(b-v));var k,S=_.segmentLength*h,w=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,y=!0,c=_.points.length;y;){if(w+=_.points[p].partialLength,0===S||0===h||p===_.points.length-1){for(l=_.points[p].point.length,s=0;s<l;s+=1)i[s]=_.points[p].point[s];break}if(S>=w&&S<w+_.points[p+1].partialLength){for(k=(S-w)/_.points[p+1].partialLength,l=_.points[p].point.length,s=0;s<l;s+=1)i[s]=_.points[p].point[s]+(_.points[p+1].point[s]-_.points[p].point[s])*k;break}p<c-1?p+=1:y=!1}e._lastPoint=p,e._lastAddedLength=w-_.points[p].partialLength,e._lastKeyframeIndex=f}}else{var E,C,P,T,A;if(m=n.s.length,g=a.s||n.e,this.sh&&1!==n.h)t>=b?(i[0]=g[0],i[1]=g[1],i[2]=g[2]):t<=v?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):quaternionToEuler(i,slerp(createQuaternion(n.s),createQuaternion(g),(t-v)/(b-v)));else for(f=0;f<m;f+=1)1!==n.h&&(t>=b?h=1:t<v?h=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?u=o.__fnct[f]:(E=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],C=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],P=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],T=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],u=BezierFactory.getBezierEasing(E,C,P,T).get,o.__fnct[f]=u)):o.__fnct?u=o.__fnct:(E=n.o.x,C=n.o.y,P=n.i.x,T=n.i.y,u=BezierFactory.getBezierEasing(E,C,P,T).get,n.keyframeMetadata=u),h=u((t-v)/(b-v)))),g=a.s||n.e,A=1===n.h?n.s[f]:n.s[f]+(g[f]-n.s[f])*h,"multidimensional"===this.propType?i[f]=A:i=A}return e.lastIndex=d,i}function slerp(t,e,i){var r,n,a,o,s,l=[],h=t[0],c=t[1],p=t[2],u=t[3],d=e[0],f=e[1],m=e[2],y=e[3];return(n=h*d+c*f+p*m+u*y)<0&&(n=-n,d=-d,f=-f,m=-m,y=-y),1-n>1e-6?(r=Math.acos(n),a=Math.sin(r),o=Math.sin((1-i)*r)/a,s=Math.sin(i*r)/a):(o=1-i,s=i),l[0]=o*h+s*d,l[1]=o*c+s*f,l[2]=o*p+s*m,l[3]=o*u+s*y,l}function quaternionToEuler(t,e){var i=e[0],r=e[1],n=e[2],a=e[3],o=Math.atan2(2*r*a-2*i*n,1-2*r*r-2*n*n),s=Math.asin(2*i*r+2*n*a),l=Math.atan2(2*i*a-2*r*n,1-2*i*i-2*n*n);t[0]=o/degToRads,t[1]=s/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,n=Math.cos(e/2),a=Math.cos(i/2),o=Math.cos(r/2),s=Math.sin(e/2),l=Math.sin(i/2),h=Math.sin(r/2);return[s*l*o+n*a*h,s*a*o+n*l*h,n*l*o-s*a*h,n*a*o-s*l*h]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,r){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,r){var n;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),n=0;n<a;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,r){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,r){var n;this.propType="multidimensional";var a,o,s,l,h=e.k.length;for(n=0;n<h-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(a=e.k[n].s,o=e.k[n+1].s,s=e.k[n].to,l=e.k[n].ti,(2===a.length&&(a[0]!==o[0]||a[1]!==o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+s[0],a[1]+s[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===a.length&&(a[0]!==o[0]||a[1]!==o[1]||a[2]!==o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+s[0],a[1]+s[1],a[2]+s[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(e.k[n].to=null,e.k[n].ti=null),a[0]===o[0]&&a[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===a.length||a[2]===o[2]&&0===s[2]&&0===l[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),n=0;n<c;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(t,e,i,r,n){var a;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])a=new MultiDimensionalProperty(t,e,r,n);else switch(i){case 0:a=new KeyframedValueProperty(t,e,r,n);break;case 1:a=new KeyframedMultidimensionalProperty(t,e,r,n)}else a=new ValueProperty(t,e,r,n);return a.effectsSequence.length&&n.addDynamicProperty(a),a}},ob),ob;function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,r,n){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!n)&&(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,n,a,o,s){this.setXYAt(t,e,"v",o,s),this.setXYAt(i,r,"o",o,s),this.setXYAt(n,a,"i",o,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),n=1);var a,o=this._length-1,s=this._length;for(a=n;a<s;a+=1)t.setTripleAt(e[o][0],e[o][1],r[o][0],r[o][1],i[o][0],i[o][1],a,!1),o-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,i=factory.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:function(){return e?r[e-=1]:new ShapeCollection},release:function(t){var n,a=t._length;for(n=0;n<a;n+=1)shapePool.release(t.shapes[n]);t._length=0,e===i&&(r=pooling.double(r),i*=2),r[e]=t,e+=1}},e=0,i=4,r=createSizedArray(i);return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var r,n,a,o,s,l,h,c,p,u=i.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)r=d[0].s[0],a=!0,u=0;else if(t>=d[d.length-1].t-this.offsetTime)r=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],a=!0;else{for(var f,m,y,g=u,b=d.length-1,v=!0;v&&(f=d[g],!((m=d[g+1]).t-this.offsetTime>t));)g<b-1?g+=1:v=!1;if(y=this.keyframesMetadata[g]||{},u=g,!(a=1===f.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<f.t-this.offsetTime)c=0;else{var _;y.__fnct?_=y.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,y.__fnct=_),c=_((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=e._length,h=r.i[0].length,i.lastIndex=u,o=0;o<l;o+=1)for(s=0;s<h;s+=1)p=a?r.i[o][s]:r.i[o][s]+(n.i[o][s]-r.i[o][s])*c,e.i[o][s]=p,p=a?r.o[o][s]:r.o[o][s]+(n.o[o][s]-r.o[o][s])*c,e.o[o][s]=p,p=a?r.v[o][s]:r.v[o][s]+(n.v[o][s]-r.v[o][s])*c,e.v[o][s]=p}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<i&&e<i||n>r&&e>r)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,r=t._length;for(i=0;i<r;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,n,a){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===a?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=a,o.prototype.setVValue=n,o.prototype.addEffect=s,l.prototype.getValue=a,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=s;var h=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=i-n,o.v[1][0]=a?e+r:e-r,o.v[1][1]=i,o.v[2][0]=e,o.v[2][1]=i+n,o.v[3][0]=a?e-r:e+r,o.v[3][1]=i,o.i[0][0]=a?e-r*t:e+r*t,o.i[0][1]=i-n,o.i[1][0]=a?e+r:e-r,o.i[1][1]=i-n*t,o.i[2][0]=a?e+r*t:e-r*t,o.i[2][1]=i+n,o.i[3][0]=a?e-r:e+r,o.i[3][1]=i+n*t,o.o[0][0]=a?e+r*t:e-r*t,o.o[0][1]=i-n,o.o[1][0]=a?e+r:e-r,o.o[1][1]=i+n*t,o.o[2][0]=a?e-r*t:e+r*t,o.o[2][1]=i+n,o.o[3][0]=a?e-r:e+r,o.o[3][1]=i-n*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,r,n=2*Math.floor(this.pt.v),a=2*Math.PI/n,o=!0,s=this.or.v,l=this.ir.v,h=this.os.v,c=this.is.v,p=2*Math.PI*s/(2*n),u=2*Math.PI*l/(2*n),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){i=o?h:c,r=o?p:u;var m=(e=o?s:l)*Math.cos(d),y=e*Math.sin(d),g=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),b=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);m+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(m,y,m-g*r*i*f,y-b*r*i*f,m+g*r*i*f,y+b*r*i*f,t,!0),o=!o,d+=a*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,n=this.os.v,a=2*Math.PI*r/(4*e),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=r*Math.cos(o),h=r*Math.sin(o),c=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),p=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-c*a*n*s,h-p*a*n*s,l+c*a*n*s,h+p*a*n*s,t,!0),o+=i*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,n=bmMin(i,r,this.r.v),a=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+n,t+i,e-r+n,t+i,e-r+a,0,!0),this.v.setTripleAt(t+i,e+r-n,t+i,e+r-a,t+i,e+r-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+r,t+i-n,e+r,t+i-a,e+r,2,!0),this.v.setTripleAt(t-i+n,e+r,t-i+a,e+r,t-i+n,e+r,3,!0),this.v.setTripleAt(t-i,e+r-n,t-i,e+r-n,t-i,e+r-a,4,!0),this.v.setTripleAt(t-i,e-r+n,t-i,e-r+a,t-i,e-r+n,5,!0),this.v.setTripleAt(t-i+n,e-r,t-i+n,e-r,t-i+a,e-r,6,!0),this.v.setTripleAt(t+i-n,e-r,t+i-a,e-r,t+i-n,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+a,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+a,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+n,t+i,e-r+a,t+i,e-r+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-r,t+i-n,e-r,t+i-a,e-r,1,!0),this.v.setTripleAt(t-i+n,e-r,t-i+a,e-r,t-i+n,e-r,2,!0),this.v.setTripleAt(t-i,e-r+n,t-i,e-r+n,t-i,e-r+a,3,!0),this.v.setTripleAt(t-i,e+r-n,t-i,e+r-a,t-i,e+r-n,4,!0),this.v.setTripleAt(t-i+n,e+r,t-i+n,e+r,t-i+a,e+r,5,!0),this.v.setTripleAt(t+i-n,e+r,t+i-a,e+r,t+i-n,e+r,6,!0),this.v.setTripleAt(t+i,e+r-n,t+i,e+r-n,t+i,e+r-a,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+a,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-a,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-a,e+r,t+i,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}(),u={getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new o(t,e,i):5===i?r=new p(t,e):6===i?r=new h(t,e):7===i&&(r=new c(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,r=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function o(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(1,0,0,0,0,r,-n,0,0,n,r,0,0,0,0,1)}function s(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,0,n,0,0,1,0,0,-n,0,r,0,0,0,0,1)}function l(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function h(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(i(t),i(e))}function p(r,n){var a=t(n),o=e(n);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function d(t,e,i,r,n,a,o,s,l,h,c,p,u,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=n,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=h,this.props[10]=c,this.props[11]=p,this.props[12]=u,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function f(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,r,n,a,o,s,l,h,c,p,u,d,f,m){var y=this.props;if(1===t&&0===e&&0===i&&0===r&&0===n&&1===a&&0===o&&0===s&&0===l&&0===h&&1===c&&0===p)return y[12]=y[12]*t+y[15]*u,y[13]=y[13]*a+y[15]*d,y[14]=y[14]*c+y[15]*f,y[15]*=m,this._identityCalculated=!1,this;var g=y[0],b=y[1],v=y[2],_=y[3],x=y[4],k=y[5],S=y[6],w=y[7],E=y[8],C=y[9],P=y[10],T=y[11],A=y[12],D=y[13],F=y[14],M=y[15];return y[0]=g*t+b*n+v*l+_*u,y[1]=g*e+b*a+v*h+_*d,y[2]=g*i+b*o+v*c+_*f,y[3]=g*r+b*s+v*p+_*m,y[4]=x*t+k*n+S*l+w*u,y[5]=x*e+k*a+S*h+w*d,y[6]=x*i+k*o+S*c+w*f,y[7]=x*r+k*s+S*p+w*m,y[8]=E*t+C*n+P*l+T*u,y[9]=E*e+C*a+P*h+T*d,y[10]=E*i+C*o+P*c+T*f,y[11]=E*r+C*s+P*p+T*m,y[12]=A*t+D*n+F*l+M*u,y[13]=A*e+D*a+F*h+M*d,y[14]=A*i+D*o+F*c+M*f,y[15]=A*r+D*s+F*p+M*m,this._identityCalculated=!1,this}function y(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function g(){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 b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function k(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function S(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function w(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function E(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,r=-this.props[4]/t,n=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new Matrix;return s.props[0]=e,s.props[1]=i,s.props[4]=r,s.props[5]=n,s.props[12]=a,s.props[13]=o,s}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){var e,i=t.length,r=[];for(e=0;e<i;e+=1)r[e]=C(t[e]);return r}function T(t,e,i){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=i[0],r[5]=i[1];else{var n=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],h=this.props[13];r[0]=t[0]*n+t[1]*o+l,r[1]=t[0]*a+t[1]*s+h,r[2]=e[0]*n+e[1]*o+l,r[3]=e[0]*a+e[1]*s+h,r[4]=i[0]*n+i[1]*o+l,r[5]=i[0]*a+i[1]*s+h}return r}function A(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function D(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function F(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=r(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function M(t){return t<1e-6&&t>0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+M(t[0])+","+M(t[1])+","+M(t[4])+","+M(t[5])+","+M(t[12])+","+M(t[13])+")"}return function(){this.reset=n,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=p,this.shear=h,this.scale=u,this.setTransform=d,this.translate=f,this.transform=m,this.multiply=y,this.applyToPoint=x,this.applyToX=k,this.applyToY=S,this.applyToZ=w,this.applyToPointArray=A,this.applyToTriplePoints=T,this.applyToPointStringified=D,this.toCSS=F,this.to2dCSS=I,this.clone=v,this.cloneFromProps=_,this.equals=b,this.inversePoints=P,this.inversePoint=C,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,r){return new e[t](i,r)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,n){var a=[];e<=1?a.push({s:t,e:e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o,s,l=[],h=a.length;for(o=0;o<h;o+=1){var c,p;(s=a[o]).e*n<r||s.s*n>r+i||(c=s.s*n<=r?0:(s.s*n-r)/i,p=s.e*n>=r+i?1:(s.e*n-r)/i,l.push([c,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,r,n;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),(e=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(i=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=e;e=i,i=o}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var s,l,h,c,p,u=this.shapes.length,d=0;if(i===e)for(n=0;n<u;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(n=0;n<u;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,m,y=[];for(n=0;n<u;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=f.shape.paths)._length,p=0,!f.shape._mdf&&f.pathsData.length)p=f.totalShapeLength;else{for(h=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)c=bez.getSegmentsLength(r.shapes[s]),h.push(c),p+=c.totalLength;f.totalShapeLength=p,f.pathsData=h}d+=p,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var g,b=e,v=i,_=0;for(n=u-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&u>1?(g=this.calculateShapeEdges(e,i,f.totalShapeLength,_,d),_+=f.totalShapeLength):g=[[b,v]],l=g.length,s=0;s<l;s+=1){b=g[s][0],v=g[s][1],y.length=0,v<=1?y.push({s:f.totalShapeLength*b,e:f.totalShapeLength*v}):b>=1?y.push({s:f.totalShapeLength*(b-1),e:f.totalShapeLength*(v-1)}):(y.push({s:f.totalShapeLength*b,e:f.totalShapeLength}),y.push({s:0,e:f.totalShapeLength*(v-1)}));var x=this.addShapes(f,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=x.pop();this.addPaths(x,m),x=this.addShapes(f,y[1],k)}else this.addPaths(x,m),x=this.addShapes(f,y[1]);this.addPaths(x,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,r,n,a,o){n.setXYAt(e[0],e[1],"o",a),n.setXYAt(i[0],i[1],"i",a+1),o&&n.setXYAt(t[0],t[1],"v",a),n.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var r,n,a,o,s,l,h,c,p=t.pathsData,u=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],y=!0;for(i?(s=i._length,c=i._length):(i=shapePool.newElement(),s=0,c=0),m.push(i),r=0;r<d;r+=1){for(l=p[r].lengths,i.c=u[r].c,a=u[r].c?l.length:l.length+1,n=1;n<a;n+=1)if(f+(o=l[n-1]).addedLength<e.s)f+=o.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+o.addedLength?(this.addSegment(u[r].v[n-1],u[r].o[n-1],u[r].i[n],u[r].v[n],i,s,y),y=!1):(h=bez.getNewSegment(u[r].v[n-1],u[r].v[n],u[r].o[n-1],u[r].i[n],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[n-1]),this.addSegmentFromArray(h,i,s,y),y=!1,i.c=!1),f+=o.addedLength,s+=1}if(u[r].c&&l.length){if(o=l[n-1],f<=e.e){var g=l[n-1].addedLength;e.s<=f&&e.e>=f+g?(this.addSegment(u[r].v[n-1],u[r].o[n-1],u[r].i[0],u[r].v[0],i,s,y),y=!1):(h=bez.getNewSegment(u[r].v[n-1],u[r].v[0],u[r].o[n-1],u[r].i[0],(e.s-f)/g,(e.e-f)/g,l[n-1]),this.addSegmentFromArray(h,i,s,y),y=!1,i.c=!1)}else i.c=!1;f+=o.addedLength,s+=1}if(i._length&&(i.setXYAt(i.v[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;r<d-1&&(i=shapePool.newElement(),y=!0,m.push(i),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,r=[0,0],n=t._length,a=0;for(a=0;a<n;a+=1)r[0]+=t.v[a][0],r[1]+=t.v[a][1];r[0]/=n,r[1]/=n;var o,s,l,h,c,p,u=shapePool.newElement();for(u.c=t.c,a=0;a<n;a+=1)o=t.v[a][0]+(r[0]-t.v[a][0])*i,s=t.v[a][1]+(r[1]-t.v[a][1])*i,l=t.o[a][0]+(r[0]-t.o[a][0])*-i,h=t.o[a][1]+(r[1]-t.o[a][1])*-i,c=t.i[a][0]+(r[0]-t.i[a][0])*-i,p=t.i[a][1]+(r[1]-t.i[a][1])*-i,u.setTripleAt(o,s,l,h,c,p,a);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,n,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)o.addShape(this.processPath(e[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var r,n=e.or.k.length;for(r=0;r<n;r+=1)e.or.k[r].to=null,e.or.k[r].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,n;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],n=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),n[0]=a.getValueAtTime(a.keyframes[0].t/i,0),n[1]=o.getValueAtTime(o.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),n[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),n[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0)):(r=[a.pv,o.pv],n[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),n[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime))}else r=n=t;this.v.rotate(-Math.atan2(r[1]-n[1],r[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,r){return new e(t,i,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var r=e*e-4*t*i;if(r<0)return[];var n=-e/(2*t);if(0===r)return[n];var a=Math.sqrt(r)/(2*t);return[n-a,n+a]}function polynomialCoefficients(t,e,i,r){return[3*e-t-3*i+r,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,r,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),n&&pointEqual(i,r)&&(i=lerpPoint(t,r,2/3));var a=polynomialCoefficients(t[0],e[0],i[0],r[0]),o=polynomialCoefficients(t[1],e[1],i[1],r[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[t,e,i,r]}function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var n=r;r=i,i=n}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var s=t.point(a[o])[e];s<i?i=s:s>r&&(r=s)}return{min:i,max:r}}function intersectData(t,e,i){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,r,n,a){if(boxIntersect(t,e))if(i>=a||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)n.push([t.t,e.t]);else{var o=splitData(t),s=splitData(e);intersectsImpl(o[0],s[0],i+1,r,n,a),intersectsImpl(o[0],s[1],i+1,r,n,a),intersectsImpl(o[1],s[0],i+1,r,n,a),intersectsImpl(o[1],s[1],i+1,r,n,a)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,r){var n=[t[0],t[1],1],a=[e[0],e[1],1],o=[i[0],i[1],1],s=[r[0],r[1],1],l=crossProduct(crossProduct(n,a),crossProduct(o,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,r,n,a,o){var s=i-Math.PI/2,l=i+Math.PI/2,h=e[0]+Math.cos(i)*r*n,c=e[1]-Math.sin(i)*r*n;t.setTripleAt(h,c,h+Math.cos(s)*a,c-Math.sin(s)*a,h+Math.cos(l)*o,c-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,r=(e+1)%t.length(),n=getPerpendicularVector(t.v[i],t.v[r]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,i,r,n,a,o){var s=getProjectingAngle(e,i),l=e.v[i%e._length],h=e.v[0===i?e._length-1:i-1],c=e.v[(i+1)%e._length],p=2===a?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,u=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[i%e._length],s,o,r,u/(2*(n+1)),p/(2*(n+1)))}function zigZagSegment(t,e,i,r,n,a){for(var o=0;o<r;o+=1){var s=(o+1)/(r+1),l=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(s);setPoint(t,e.point(s),h,a,i,l/(2*(r+1)),l/(2*(r+1))),a=-a}return a}function linearOffset(t,e,i){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,i),polarOffset(e,r,i)]}function offsetSegment(t,e){var i,r,n,a,o,s,l;i=(l=linearOffset(t.points[0],t.points[1],e))[0],r=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],a=l[1],o=(l=linearOffset(t.points[2],t.points[3],e))[0],s=l[1];var h=lineIntersection(i,r,n,a);null===h&&(h=r);var c=lineIntersection(o,s,n,a);return null===c&&(c=o),new PolynomialBezier(i,h,c,s)}function joinLines(t,e,i,r,n){var a=e.points[3],o=i.points[0];if(3===r)return a;if(pointEqual(a,o))return a;if(2===r){var s=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,h=lineIntersection(a,polarOffset(a,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),c=h?pointDistance(h,a):pointDistance(a,o)/2,p=polarOffset(a,s,2*c*roundCorner);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=polarOffset(o,l,2*c*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],p[0],p[1],t.length()),o}var u=lineIntersection(pointEqual(a,e.points[2])?e.points[0]:e.points[2],a,o,pointEqual(o,i.points[1])?i.points[3]:i.points[1]);return u&&pointDistance(u,a)<n?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):a}function getIntersection(t,e){var i=t.intersections(e);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),r=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],r[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,r,n,a,o=t.inflectionPoints();if(0===o.length)return[offsetSegment(t,e)];if(1===o.length||floatEqual(o[1],1))return i=(n=t.split(o[0]))[0],r=n[1],[offsetSegment(i,e),offsetSegment(r,e)];i=(n=t.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return a=(n=n[1].split(s))[0],r=n[1],[offsetSegment(i,e),offsetSegment(a,e),offsetSegment(r,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",n=e.length,a=0;a<n;a+=1)switch(e[a].toLowerCase()){case"italic":r="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:r,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,r,n,a){var o=a?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-n),l=r.s.v[1]+(1-r.s.v[1])*(1-n);t.translate(r.p.v[0]*o*n,r.p.v[1]*o*n,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*o*n),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(a?1/s:s,a?1/l:l),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,r,n,a,o=!1;if(this._mdf||t){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(a=0,r=0;r<=this._groups.length-1;r+=1){if(s=a<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var c=this.elemsData[r].it,p=c[c.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=l;var u=this.o.v,d=u%1,f=u>0?Math.floor(u):Math.ceil(u),m=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,v,_=0;if(u>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),_+=d)}else if(u<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),_-=d)}for(r=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,a=this._currentCopies;a;){if(v=(i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==_){for((0!==r&&1===n||r!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(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]),b=0;b<v;b+=1)i[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<v;b+=1)i[b]=this.matrix.props[b];_+=1,a-=1,r+=n}}else for(a=this._currentCopies,r=0,n=1;a;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,r+=n;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,r=shapePool.newElement();r.c=t.c;var n,a,o,s,l,h,c,p,u,d,f,m,y=t._length,g=0;for(i=0;i<y;i+=1)n=t.v[i],o=t.o[i],a=t.i[i],n[0]===o[0]&&n[1]===o[1]&&n[0]===a[0]&&n[1]===a[1]?0!==i&&i!==y-1||t.c?(s=0===i?t.v[y-1]:t.v[i-1],h=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(s[0]-n[0])*h,p=m=n[1]-(n[1]-s[1])*h,u=c-(c-n[0])*roundCorner,d=p-(p-n[1])*roundCorner,r.setTripleAt(c,p,u,d,f,m,g),g+=1,s=i===y-1?t.v[0]:t.v[i+1],h=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=u=n[0]+(s[0]-n[0])*h,p=d=n[1]+(s[1]-n[1])*h,f=c-(c-n[0])*roundCorner,m=p-(p-n[1])*roundCorner,r.setTripleAt(c,p,u,d,f,m,g),g+=1):(r.setTripleAt(n[0],n[1],o[0],o[1],a[0],a[1],g),g+=1):(r.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],g),g+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,n,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)o.addShape(this.processPath(e[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var r=Math.sqrt(i);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,i,t),a=lerpPoint(i,r,t),o=lerpPoint(n,a,t);return[new PolynomialBezier(this.points[0],e,n,o,!0),new PolynomialBezier(o,a,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,r){var n=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(n-=1),0===n)return a;var o=-1,s=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,i,r,o);for(var l=0;l<n;l+=1)o=zigZagSegment(a,s,e,i,r,-o),s=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(a,t,l+1,e,i,r,o);return a},ZigZagModifier.prototype.processShapes=function(t){var e,i,r,n,a,o,s=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)o.addShape(this.processPath(e[r],l,h,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,r){var n=shapePool.newElement();n.c=t.c;var a,o,s,l=t.length();t.c||(l-=1);var h=[];for(a=0;a<l;a+=1)s=PolynomialBezier.shapeSegment(t,a),h.push(offsetSegmentSplit(s,e));if(!t.c)for(a=l-1;a>=0;a-=1)s=PolynomialBezier.shapeSegmentInverted(t,a),h.push(offsetSegmentSplit(s,e));h=pruneIntersections(h);var c=null,p=null;for(a=0;a<h.length;a+=1){var u=h[a];for(p&&(c=joinLines(n,p,u[0],i,r)),p=u[u.length-1],o=0;o<u.length;o+=1)s=u[o],c&&pointEqual(s.points[0],c)?n.setXYAt(s.points[1][0],s.points[1][1],"o",n.length()-1):n.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],n.length()),n.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],n.length()),c=s.points[3]}return h.length&&joinLines(n,p,h[0][0],i,r),n},OffsetPathModifier.prototype.processShapes=function(t){var e,i,r,n,a,o,s=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(i=0;i<s;i+=1){if(o=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)o.addShape(this.processPath(e[r],l,c,h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var r=createTag("span");r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i);var n=r.offsetWidth;return r.style.fontFamily=function(t){var e,i=t.split(","),r=i.length,n=[];for(e=0;e<r;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&n.push(i[e]);return n.join(",")}(t)+", "+e,{node:r,w:n,parent:i}}function a(t,e){var i,r=document.body&&e?"svg":"canvas",n=getFontProperties(t);if("svg"===r){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",t.fFamily),a.setAttribute("font-style",n.style),a.setAttribute("font-weight",n.weight),a.textContent="1",t.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",t.fClass)):a.style.fontFamily=t.fFamily,e.appendChild(a),i=a}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=n.style+" "+n.weight+" 100px "+t.fFamily,i=o}return{measureText:function(t){return"svg"===r?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function o(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var r=t.charCodeAt(1);r>=56320&&r<=57343&&(e=1024*(i-55296)+r-56320+65536)}return e}function s(t){var e=o(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==r.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return s(t.substr(0,2))&&s(t.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var r=o(t.substr(e,2));if(r!==i)return!1;var n=0;for(e+=2;n<5;){if((r=o(t.substr(e,2)))<917601||r>917626)return!1;n+=1,e+=2}return 917631===o(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i;var h={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,r,n=t.length,a=this.chars.length;for(e=0;e<n;e+=1){for(i=0,r=!1;i<a;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(r=!0),i+=1;r||(this.chars.push(t[e]),a+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=a(t),t.cache={}}),void(this.fonts=t.list);var i,r=t.list,o=r.length,s=o;for(i=0;i<o;i+=1){var l,h,c=!0;if(r[i].loaded=!1,r[i].monoCase=n(r[i].fFamily,"monospace"),r[i].sansCase=n(r[i].fFamily,"sans-serif"),r[i].fPath){if("p"===r[i].fOrigin||3===r[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[i].fFamily+'"], style[f-origin="3"][f-family="'+r[i].fFamily+'"]')).length>0&&(c=!1),c){var p=createTag("style");p.setAttribute("f-forigin",r[i].fOrigin),p.setAttribute("f-origin",r[i].origin),p.setAttribute("f-family",r[i].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(p)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(r[i].fPath)&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",r[i].fOrigin),u.setAttribute("f-origin",r[i].origin),u.type="text/css",u.rel="stylesheet",u.href=r[i].fPath,document.body.appendChild(u)}}else if("t"===r[i].fOrigin||2===r[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)r[i].fPath===l[h].src&&(c=!1);if(c){var d=createTag("link");d.setAttribute("f-forigin",r[i].fOrigin),d.setAttribute("f-origin",r[i].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",r[i].fPath),e.appendChild(d)}}}else r[i].loaded=!0,s-=1;r[i].helper=a(r[i],e),r[i].cache={},this.fonts.push(r[i])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,r){for(var n=0,a=this.chars.length;n<a;){if(this.chars[n].ch===e&&this.chars[n].style===i&&this.chars[n].fFamily===r)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,r)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var r=this.getFontByName(e),n=t;if(!r.cache[n]){var a=r.helper;if(" "===t){var o=a.measureText("|"+t+"|"),s=a.measureText("||");r.cache[n]=(o-s)/100}else r.cache[n]=a.measureText(t)/100}return r.cache[n]*i},checkLoadedFonts:function(){var t,e,i,r=this.fonts.length,n=r;for(t=0;t<r;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(n-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=h,l}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,r=t.ef||[];this.effectElements=[];var n,a=r.length;for(i=0;i<a;i+=1)n=new GroupEffect(r[i],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,n=this.data.ef.length,a=this.data.ef;for(i=0;i<n;i+=1){switch(r=null,a[i].ty){case 0:r=new SliderEffect(a[i],e,this);break;case 1:r=new AngleEffect(a[i],e,this);break;case 2:r=new ColorEffect(a[i],e,this);break;case 3:r=new PointEffect(a[i],e,this);break;case 4:case 7:r=new CheckboxEffect(a[i],e,this);break;case 10:r=new LayerIndexEffect(a[i],e,this);break;case 11:r=new MaskIndexEffect(a[i],e,this);break;case 5:r=new EffectsManager(a[i],e);break;default:r=new NoValueEffect(a[i])}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),r=t("shape"),n=t("text"),a=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,r=this.dynamicProperties.length;for(i=0;i<r;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,r=t.length,n=this.layers.length;for(e=0;e<r;e+=1)for(i=0;i<n;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var r=this.elements,n=this.layers,a=0,o=n.length;a<o;)n[a].ind==e&&(r[a]&&!0!==r[a]?(i.push(r[a]),r[a].setAsParent(),void 0!==n[a].parent?this.buildElementParenting(t,n[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.nm===i){e=this.elements[r];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,n,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,h,c,p,u,d=this.masksProperties,f=0,m=[],y=createElementID(),g="clipPath",b="clip-path";for(r=0;r<o;r+=1)if(("a"!==d[r].mode&&"n"!==d[r].mode||d[r].inv||100!==d[r].o.k||d[r].o.x)&&(g="mask",b="mask"),"s"!==d[r].mode&&"i"!==d[r].mode||0!==f?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),m.push(h)),n=createNS("path"),"n"===d[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),elem:n,lastPath:""},a.appendChild(n);else{var v;if(f+=1,n.setAttribute("fill","s"===d[r].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==d[r].x.k?(g="mask",b="mask",u=PropertyFactory.getProp(this.element,d[r].x,0,null,this.element),v=createElementID(),(c=createNS("filter")).setAttribute("id",v),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),c.appendChild(p),a.appendChild(c),n.setAttribute("stroke","s"===d[r].mode?"#000000":"#ffffff")):(p=null,u=null),this.storedData[r]={elem:n,x:u,expan:p,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===d[r].mode){l=m.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",y+"_"+f),x.appendChild(n),a.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+f+")"),m.length=0,m.push(_)}else m.push(n);d[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),invRect:h},this.viewData[r].prop.k||this.drawPath(d[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(g),o=m.length,r=0;r<o;r+=1)this.maskElement.appendChild(m[r]);f>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+y+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var r=this.localTransforms[t].matrix;i.multiply(r)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,r=!0,n=this.comp;r;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):r=!1;var a,o=e.length;for(i=0;i<o;i+=1)a=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,i){var r,n,a=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,r=1;r<n;r+=1)a+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&n>1&&(a+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==a){var o="";i.elem&&(e.c&&(o=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",o)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i,r="SourceGraphic",n=t.data.ef?t.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;for(this.filters=[],e=0;e<n;e+=1){i=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(i=new(0,registeredEffects$1[l].effect)(o,t.effectsManager.effectElements[e],t,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),i&&this.filters.push(i)}s&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,r=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(i.setAttribute("id",n),i.appendChild(r),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,r,n,a=this.layerId+"_"+t;if(1===t||3===t){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(r),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(r),o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var s=createNS("mask");s.setAttribute("id",a),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),e=createElementID(),i=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),i.appendChild(h);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(i);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(p),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(p),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(s)}this.matteMasks[t]=a}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[r-=1].elem===t)return void(i[r].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var r=0,n=t.length;r<n;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,r){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var a,o=e.length||0;for(n=0;n<o;n+=1)a=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=a.k||this.k,this.dataProps[n]={n:e[n].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,r,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,r=Math.round(this.prop.v[e]*i),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),r=createNS(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var n,a,o,s=[];for(o=4*e.g.p,a=0;a<o;a+=4)n=createNS("stop"),r.appendChild(n),s.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,r,n,a=createNS("mask"),o=createNS("path");a.appendChild(o);var s=createElementID(),l=createElementID();a.setAttribute("id",l);var h=createNS(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",s),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(r=4*t.g.p;r<n;r+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),c.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=a,this.ost=c,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,r){if(0===e)return"";var n,a=t.o,o=t.i,s=t.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(n=1;n<e;n+=1)l+=" C"+r.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+r.applyToPointStringified(o[n][0],o[n][1])+" "+r.applyToPointStringified(s[n][0],s[n][1]);return i&&e&&(l+=" C"+r.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix,i={createRenderFunction:function(t){switch(t.ty){case"fl":return o;case"gf":return l;case"gs":return s;case"st":return h;case"sh":case"el":case"rc":case"sr":return a;case"tr":return r;case"no":return n;default:return null}}};function r(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(){}function a(i,r,n){var a,o,s,l,h,c,p,u,d,f,m=r.styles.length,y=r.lvl;for(c=0;c<m;c+=1){if(l=r.sh._mdf||n,r.styles[c].lvl<y){for(u=e.reset(),d=y-r.styles[c].lvl,f=r.transformers.length-1;!l&&d>0;)l=r.transformers[f].mProps._mdf||l,d-=1,f-=1;if(l)for(d=y-r.styles[c].lvl,f=r.transformers.length-1;d>0;)u.multiply(r.transformers[f].mProps.v),d-=1,f-=1}else u=t;if(o=(p=r.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(h=p.shapes[a])&&h._length&&(s+=buildShapeString(h,h._length,h.c,u));r.caches[c]=s}else s=r.caches[c];r.styles[c].d+=!0===i.hd?"":s,r.styles[c]._mdf=l||r.styles[c]._mdf}}function o(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function s(t,e,i){l(t,e,i),h(0,e,i)}function l(t,e,i){var r,n,a,o,s,l=e.gf,h=e.g._hasOpacity,c=e.s.v,p=e.e.v;if(e.o._mdf||i){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||i){var d=1===t.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,c[0]),l.setAttribute(f,c[1]),h&&!e.g._collapsable&&(e.of.setAttribute(d,c[0]),e.of.setAttribute(f,c[1]))}if(e.g._cmdf||i){r=e.cst;var m=e.g.c;for(a=r.length,n=0;n<a;n+=1)(o=r[n]).setAttribute("offset",m[4*n]+"%"),o.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(h&&(e.g._omdf||i)){var y=e.g.o;for(a=(r=e.g._collapsable?e.cst:e.ost).length,n=0;n<a;n+=1)o=r[n],e.g._collapsable||o.setAttribute("offset",y[2*n]+"%"),o.setAttribute("stop-opacity",y[2*n+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])));else if((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)),l.setAttribute("r",s),h&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||i){s||(s=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)));var g=Math.atan2(p[1]-c[1],p[0]-c[0]),b=e.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var v=s*b,_=Math.cos(g+e.a.v)*v+c[0],x=Math.sin(g+e.a.v)*v+c[1];l.setAttribute("fx",_),l.setAttribute("fy",x),h&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",x))}}function h(t,e,i){var r=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(r.pElem.setAttribute("stroke-dasharray",n.dashStr),r.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return i}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,r,n,a){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=n,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,r,n=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(i=0;i<a;i+=1){for(r=this.stylesList[i],s=!1,o.length=0,t=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(o.push(e),s=e._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,r=new SVGStyleData(t,e),n=r.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,r):"fl"===t.ty?i=new SVGFillStyleData(this,t,r):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,r),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,r)),"st"!==t.ty&&"gs"!==t.ty||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),r=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var n=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)-1!==i.indexOf(this.stylesList[e])||this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,r,n,a,o){var s,l,h,c,p,u,d=[].concat(a),f=t.length-1,m=[],y=[];for(s=f;s>=0;s-=1){if((u=this.searchProcessedElement(t[s]))?e[s]=i[u-1]:t[s]._render=o,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)u?e[s].style.closed=t[s].hd:e[s]=this.createStyleElement(t[s],n),t[s]._render&&e[s].style.pElem.parentNode!==r&&r.appendChild(e[s].style.pElem),m.push(e[s].style);else if("gr"===t[s].ty){if(u)for(h=e[s].it.length,l=0;l<h;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,n+1,d,o),t[s]._render&&e[s].gr.parentNode!==r&&r.appendChild(e[s].gr)}else"tr"===t[s].ty?(u||(e[s]=this.createTransformElement(t[s],r)),c=e[s].transform,d.push(c)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(u||(e[s]=this.createShapeElement(t[s],d,n)),this.setElementStyles(e[s])):"tm"===t[s].ty||"rd"===t[s].ty||"ms"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(u?(p=e[s]).closed=!1:((p=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=p,this.shapeModifiers.push(p)),y.push(p)):"rp"===t[s].ty&&(u?(p=e[s]).closed=!0:(p=ShapeModifiers.getModifier(t[s].ty),e[s]=p,p.init(this,t,s,e),this.shapeModifiers.push(p),o=!1),y.push(p));this.addProcessedElement(t[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=y.length,s=0;s<f;s+=1)y[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,r,n,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,o=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(r=0;r<n;r+=1)a=i!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);e!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&!(i===r-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],n=0,a=t.length,o=!1,s=!1,l="";n<a;)o=s,s=!1,e=t.charCodeAt(n),l=t.charAt(n),FontManager.isCombinedCharacter(e)?o=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,n)?l=t.substr(n,14):(i=t.charCodeAt(n+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(l=t.substr(n,2),o=!0):l=FontManager.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(i=t.charCodeAt(n+1),FontManager.isVariationSelector(e)&&(o=!0)):FontManager.isZeroWidthJoiner(e)&&(o=!0,s=!0),o?(r[r.length-1]+=l,o=!1):r.push(l),n+=l.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,n,a,o,s,l=this.elem.globalData.fontManager,h=this.data,c=[],p=0,u=h.m.g,d=0,f=0,m=0,y=[],g=0,b=0,v=l.getFontByName(t.f),_=0,x=getFontProperties(v);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var k,S=t.tr/1e3*t.finalSize;if(t.sz)for(var w,E,C=!0,P=t.sz[0],T=t.sz[1];C;){w=0,g=0,i=(E=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<i;e+=1)k=E[e].charCodeAt(0),r=!1," "===E[e]?A=e:13!==k&&3!==k||(g=0,r=!0,w+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(E[e],v.fStyle,v.fFamily),_=r?0:s.w*t.finalSize/100):_=l.measureText(E[e],t.f,t.finalSize),g+_>P&&" "!==E[e]?(-1===A?i+=1:e=A,w+=t.finalLineHeight||1.2*t.finalSize,E.splice(e,A===e?1:0,"\r"),A=-1,g=0):(g+=_,g+=S);w+=v.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&T<w?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=E,i=t.finalText.length,C=!1)}g=-S,_=0;var D,F=0;for(e=0;e<i;e+=1)if(r=!1,13===(k=(D=t.finalText[e]).charCodeAt(0))||3===k?(F=0,y.push(g),b=g>b?g:b,g=-2*S,n="",r=!0,m+=1):n=D,l.chars?(s=l.getCharData(D,v.fStyle,l.getFontByName(t.f).fFamily),_=r?0:s.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize)," "===D?F+=_+S:(g+=_+S+F,F=0),c.push({l:_,an:_,add:d,n:r,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==u){if(d+=_,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(d-=_);f<=e;)c[f].an=d,c[f].ind=p,c[f].extra=_,f+=1;p+=1,d=0}}else if(3==u){if(d+=_,""===n||e===i-1){for(""===n&&(d-=_);f<=e;)c[f].an=d,c[f].ind=p,c[f].extra=_,f+=1;d=0,p+=1}}else c[p].ind=p,c[p].extra=0,p+=1;if(t.l=c,b=g>b?g:b,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=b,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var M,I,j,R,O=h.a;o=O.length;var B=[];for(a=0;a<o;a+=1){for((M=O[a]).a.sc&&(t.strokeColorAnim=!0),M.a.sw&&(t.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(t.fillColorAnim=!0),R=0,j=M.s.b,e=0;e<i;e+=1)(I=c[e]).anIndexes[a]=R,(1==j&&""!==I.val||2==j&&""!==I.val&&" "!==I.val||3==j&&(I.n||" "==I.val||e==i-1)||4==j&&(I.n||e==i-1))&&(1===M.s.rn&&B.push(R),R+=1);h.a[a].s.totalChars=R;var L,N=-1;if(1===M.s.rn)for(e=0;e<i;e+=1)N!=(I=c[e]).anIndexes[a]&&(N=I.anIndexes[a],L=B.splice(Math.floor(Math.random()*B.length),1)[0]),I.anIndexes[a]=L}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=v.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,a=0,o=1,s=1;this.ne.v>0?n=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,a,o,s).get,h=0,c=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)h=l(h=p===c?r>=p?1:0:t(0,e(.5/(p-c)+(r-c)/(p-c),1)));else if(3===u)h=l(h=p===c?r>=p?0:1:1-t(0,e(.5/(p-c)+(r-c)/(p-c),1)));else if(4===u)p===c?h=0:(h=t(0,e(.5/(p-c)+(r-c)/(p-c),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===u){if(p===c)h=0;else{var d=p-c,f=-d/2+(r=e(t(0,r+.5-c),p-c)),m=d/2;h=Math.sqrt(1-f*f/(m*m))}h=l(h)}else 6===u?(p===c?h=0:(r=e(t(0,r+.5-c),p-c),h=(1+Math.cos(Math.PI+2*Math.PI*r/(p-c)))/2),h=l(h)):(r>=i(c)&&(h=t(0,e(r-c<0?e(p,1)-(c-r):p-r,1))),h=l(h));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;h<g?h=0:(h=(h-g)/y)>1&&(h=1)}return h*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,r=this.s.v/e+i,n=this.e.v/e+i;if(r>n){var a=r;r=n,n=a}this.finalS=r,this.finalE=n}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},n=PropertyFactory.getProp,a=e.a;this.a={r:a.r?n(t,a.r,0,degToRads,i):r,rx:a.rx?n(t,a.rx,0,degToRads,i):r,ry:a.ry?n(t,a.ry,0,degToRads,i):r,sk:a.sk?n(t,a.sk,0,degToRads,i):r,sa:a.sa?n(t,a.sa,0,degToRads,i):r,s:a.s?n(t,a.s,1,.01,i):r,a:a.a?n(t,a.a,1,0,i):r,o:a.o?n(t,a.o,0,.01,i):r,p:a.p?n(t,a.p,1,0,i):r,sw:a.sw?n(t,a.sw,0,0,i):r,sc:a.sc?n(t,a.sc,1,0,i):r,fc:a.fc?n(t,a.fc,1,0,i):r,fh:a.fh?n(t,a.fh,0,0,i):r,fs:a.fs?n(t,a.fs,0,.01,i):r,fb:a.fb?n(t,a.fb,0,.01,i):r,t:a.t?n(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,r=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,r,n,a,o,s,l,h,c,p,u,d,f,m,y,g,b,v,_,x=this._moreOptions.alignment.v,k=this._animatorsData,S=this._textData,w=this.mHelper,E=this._renderType,C=this.renderedLetters.length,P=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var T,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),o={tLength:0,segments:[]},a=A._length-1,g=0,n=0;n<a;n+=1)T=bez.buildBezierData(A.v[n],A.v[n+1],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[n+1][0]-A.v[n+1][0],A.i[n+1][1]-A.v[n+1][1]]),o.tLength+=T.segmentLength,o.segments.push(T),g+=T.segmentLength;n=a,_.v.c&&(T=bez.buildBezierData(A.v[n],A.v[0],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),o.tLength+=T.segmentLength,o.segments.push(T),g+=T.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,u=0,p=1,h=0,c=!0,m=o.segments,s<0&&_.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),p=(f=m[u=m.length-1].points).length-1;s<0;)s+=f[p].partialLength,(p-=1)<0&&(p=(f=m[u-=1].points).length-1);d=(f=m[u].points)[p-1],y=(l=f[p]).partialLength}a=P.length,i=0,r=0;var D,F,M,I,j,R=1.2*t.finalSize*.714,O=!0;M=k.length;var B,L,N,V,z,G,H,W,q,$,K,X,J=-1,Y=s,U=u,Z=p,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,rt=0,nt=2===t.j?-.5:-1,at=0,ot=!0;for(n=0;n<a;n+=1)if(P[n].n){for(it&&(it+=rt);at<n;)P[at].animatorJustifyOffset=it,at+=1;it=0,ot=!0}else{for(F=0;F<M;F+=1)(D=k[F].a).t.propType&&(ot&&2===t.j&&(rt+=D.t.v*nt),(j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?it+=D.t.v*j[0]*nt:it+=D.t.v*j*nt);ot=!1}for(it&&(it+=rt);at<n;)P[at].animatorJustifyOffset=it,at+=1}for(n=0;n<a;n+=1){if(w.reset(),V=1,P[n].n)i=0,r+=t.yOffset,r+=O?1:0,s=Y,O=!1,this._hasMaskedPath&&(p=Z,d=(f=m[u=U].points)[p-1],y=(l=f[p]).partialLength,h=0),tt="",K="",q="",X="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==P[n].line){switch(t.j){case 1:s+=g-t.lineWidths[P[n].line];break;case 2:s+=(g-t.lineWidths[P[n].line])/2}Q=P[n].line}J!==P[n].ind&&(P[J]&&(s+=P[J].extra),s+=P[n].an/2,J=P[n].ind),s+=x[0]*P[n].an*.005;var st=0;for(F=0;F<M;F+=1)(D=k[F].a).p.propType&&((j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?st+=D.p.v[0]*j[0]:st+=D.p.v[0]*j),D.a.propType&&((j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?st+=D.a.v[0]*j[0]:st+=D.a.v[0]*j);for(c=!0,this._pathData.a.v&&(s=.5*P[0].an+(g-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*J/(a-1),s+=this._pathData.f.v);c;)h+y>=s+st||!f?(b=(s+st-h)/l.partialLength,L=d.point[0]+(l.point[0]-d.point[0])*b,N=d.point[1]+(l.point[1]-d.point[1])*b,w.translate(-x[0]*P[n].an*.005,-x[1]*R*.01),c=!1):f&&(h+=l.partialLength,(p+=1)>=f.length&&(p=0,m[u+=1]?f=m[u].points:_.v.c?(p=0,f=m[u=0].points):(h-=l.partialLength,f=null)),f&&(d=l,y=(l=f[p]).partialLength));B=P[n].an/2-P[n].add,w.translate(-B,0,0)}else B=P[n].an/2-P[n].add,w.translate(-B,0,0),w.translate(-x[0]*P[n].an*.005,-x[1]*R*.01,0);for(F=0;F<M;F+=1)(D=k[F].a).t.propType&&(j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?j.length?s+=D.t.v*j[0]:s+=D.t.v*j:j.length?i+=D.t.v*j[0]:i+=D.t.v*j));for(t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(z=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),F=0;F<M;F+=1)(D=k[F].a).a.propType&&((j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?w.translate(-D.a.v[0]*j[0],-D.a.v[1]*j[1],D.a.v[2]*j[2]):w.translate(-D.a.v[0]*j,-D.a.v[1]*j,D.a.v[2]*j));for(F=0;F<M;F+=1)(D=k[F].a).s.propType&&((j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars)).length?w.scale(1+(D.s.v[0]-1)*j[0],1+(D.s.v[1]-1)*j[1],1):w.scale(1+(D.s.v[0]-1)*j,1+(D.s.v[1]-1)*j,1));for(F=0;F<M;F+=1){if(D=k[F].a,j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars),D.sk.propType&&(j.length?w.skewFromAxis(-D.sk.v*j[0],D.sa.v*j[1]):w.skewFromAxis(-D.sk.v*j,D.sa.v*j)),D.r.propType&&(j.length?w.rotateZ(-D.r.v*j[2]):w.rotateZ(-D.r.v*j)),D.ry.propType&&(j.length?w.rotateY(D.ry.v*j[1]):w.rotateY(D.ry.v*j)),D.rx.propType&&(j.length?w.rotateX(D.rx.v*j[0]):w.rotateX(D.rx.v*j)),D.o.propType&&(j.length?V+=(D.o.v*j[0]-V)*j[0]:V+=(D.o.v*j-V)*j),t.strokeWidthAnim&&D.sw.propType&&(j.length?G+=D.sw.v*j[0]:G+=D.sw.v*j),t.strokeColorAnim&&D.sc.propType)for(W=0;W<3;W+=1)j.length?z[W]+=(D.sc.v[W]-z[W])*j[0]:z[W]+=(D.sc.v[W]-z[W])*j;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(W=0;W<3;W+=1)j.length?H[W]+=(D.fc.v[W]-H[W])*j[0]:H[W]+=(D.fc.v[W]-H[W])*j;D.fh.propType&&(H=j.length?addHueToRGB(H,D.fh.v*j[0]):addHueToRGB(H,D.fh.v*j)),D.fs.propType&&(H=j.length?addSaturationToRGB(H,D.fs.v*j[0]):addSaturationToRGB(H,D.fs.v*j)),D.fb.propType&&(H=j.length?addBrightnessToRGB(H,D.fb.v*j[0]):addBrightnessToRGB(H,D.fb.v*j))}}for(F=0;F<M;F+=1)(D=k[F].a).p.propType&&(j=k[F].s.getMult(P[n].anIndexes[F],S.a[F].s.totalChars),this._hasMaskedPath?j.length?w.translate(0,D.p.v[1]*j[0],-D.p.v[2]*j[1]):w.translate(0,D.p.v[1]*j,-D.p.v[2]*j):j.length?w.translate(D.p.v[0]*j[0],D.p.v[1]*j[1],-D.p.v[2]*j[2]):w.translate(D.p.v[0]*j,D.p.v[1]*j,-D.p.v[2]*j));if(t.strokeWidthAnim&&(q=G<0?0:G),t.strokeColorAnim&&($="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),t.fillColorAnim&&t.fc&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(w.translate(0,-t.ls),w.translate(0,x[1]*R*.01+r,0),this._pathData.p.v){v=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var lt=180*Math.atan(v)/Math.PI;l.point[0]<d.point[0]&&(lt+=180),w.rotate(-lt*Math.PI/180)}w.translate(L,N,0),s-=x[0]*P[n].an*.005,P[n+1]&&J!==P[n+1].ind&&(s+=P[n].an/2,s+=.001*t.tr*t.finalSize)}else{switch(w.translate(i,r,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(P[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[n].line]),0,0);break;case 2:w.translate(P[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[n].line])/2,0,0)}w.translate(0,-t.ls),w.translate(B,0,0),w.translate(x[0]*P[n].an*.005,x[1]*R*.01,0),i+=P[n].l+.001*t.tr*t.finalSize}"html"===E?tt=w.toCSS():"svg"===E?tt=w.to2dCSS():et=[w.props[0],w.props[1],w.props[2],w.props[3],w.props[4],w.props[5],w.props[6],w.props[7],w.props[8],w.props[9],w.props[10],w.props[11],w.props[12],w.props[13],w.props[14],w.props[15]],X=V}C<=n?(I=new LetterProps(X,q,$,K,tt,et),this.renderedLetters.push(I),C+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[n],this.lettersChangedFlag=I.update(X,q,$,K,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,r,n=e.length,a="";for(i=0;i<n;i+=1)"sh"===e[i].ty&&(r=e[i].ks.k,a+=buildShapeString(r,r.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,r,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(r,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var r=createNS("title"),n=createElementID();r.setAttribute("id",n),r.textContent=e.title,this.svgElement.appendChild(r),i+=n}if(e&&e.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=e.description,this.svgElement.appendChild(a),i+=" "+o}i&&this.svgElement.setAttribute("aria-labelledby",i);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs: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(t){for(var e=0,i=t.length,r=[],n="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(n),n=""):n+=t[e],e+=1;return r.push(n),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var r=i.it[i.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var r=this.globalData.fontManager.getFontByName(i.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var n=i.fWeight,a=i.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var o,s=i.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var h=this.mHelper,c=this.data.singleShape,p=0,u=0,d=!0,f=.001*i.tr*i.finalSize;if(!c||l||i.sz){var m,y=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(o=y>t?this.textSpans[t].span:createNS(l?"g":"text"),y<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,l){var g=createNS("g");o.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(h.reset(),c&&(s[t].n&&(p=-f,u+=i.yOffset,u+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(i,h,s[t].line,p,u),p+=s[t].l||0,p+=f),l){var b;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)b=new SVGCompElement(m.data,this.globalData,this);else{var v=emptyShapeData;m.data&&m.data.shapes&&(v=this.buildShapeData(m.data,i.finalSize)),b=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else c&&o.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),o.textContent=s[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&o&&o.setAttribute("d","")}else{var x=this.textContainer,k="start";switch(i.j){case 1:k="end";break;case 2:k="middle";break;default:k="start"}x.setAttribute("text-anchor",k),x.setAttribute("letter-spacing",f);var S=this.buildTextContents(i.finalText);for(e=S.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||createNS("tspan")).textContent=S[t],o.setAttribute("x",0),o.setAttribute("y",u),o.style.display="inherit",x.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,u+=i.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,r,n,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(i=a[t],r=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),i._mdf.m&&r.setAttribute("transform",i.m),i._mdf.o&&r.setAttribute("opacity",i.o),i._mdf.sw&&r.setAttribute("stroke-width",i.sw),i._mdf.sc&&r.setAttribute("stroke",i.sc),i._mdf.fc&&r.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,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 e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var n=createElementID();i.setAttribute("id",n),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var n=e[r].getMatte(this.layers[t].tt);i.setMatte(n)}else this.buildItem(r),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var r,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(i,r):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,r="_";for(e=0;e<i;e+=1)r+=t[e].transform.key+"_";var n=this.sequences[r];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var i=0,r=t.transforms.length,n=e;i<r&&!e;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=r-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,i=null,r=null;function n(){var n,a,o;e||(n=createNS("svg"),a=createNS("filter"),o=createNS("feColorMatrix"),a.setAttribute("id",t),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.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"),a.appendChild(o),n.appendChild(a),n.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),r=n,document.body.appendChild(r),e=createTag("canvas"),(i=e.getContext("2d")).filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:n,get:function(r){return e||n(),e.width=r.width,e.height=r.height,i.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag("canvas");return i.width=t,i.height=e,i}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(t){var e,i,r=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<r;e+=1){i=null;var n=t.data.ef[e].ty;registeredEffects[n]&&(i=new(0,registeredEffects[n].effect)(t.effectsManager.effectElements[e],t)),i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var i;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,n=!1;for(i=0;i<r;i+=1)"n"!==this.masksProperties[i].mode&&(n=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,r=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,r,n=this.element.finalTransform.mat,a=this.element.canvasContext,o=this.masksProperties.length;for(a.beginPath(),t=0;t<o;t+=1)if("n"!==this.masksProperties[t].mode){var s;this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[t].v,e=n.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(e[0],e[1]);var l=r._length;for(s=1;s<l;s+=1)i=n.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=n.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var o,s=i.length;for(n=0;n<s;n+=1)i[n].closed||(o={transforms:r.addTransformSequence(i[n].transforms),trNodes:[]},this.styledShapes.push(o),i[n].elements.push(o))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,a=t.ks.or.k.length;for(n=0;n<a;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};if("fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(i.wi=r.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);r.d=n,r.d.k||(i.da=r.d.dashArray,i.do=r.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),r.style=i,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,r,n){var a,o,s,l,h,c,p=t.length-1,u=[],d=[],f=[].concat(n);for(a=p;a>=0;a-=1){if((l=this.searchProcessedElement(t[a]))?e[a]=i[l-1]:t[a]._shouldRender=r,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty)l?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],f),u.push(e[a].style);else if("gr"===t[a].ty){if(l)for(s=e[a].it.length,o=0;o<s;o+=1)e[a].prevViewData[o]=e[a].it[o];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,r,f)}else"tr"===t[a].ty?(l||(c=this.createTransformElement(t[a]),e[a]=c),f.push(e[a]),this.addTransformToStyleList(e[a])):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?l||(e[a]=this.createShapeElement(t[a])):"tm"===t[a].ty||"rd"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(l?(h=e[a]).closed=!1:((h=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=h,this.shapeModifiers.push(h)),d.push(h)):"rp"===t[a].ty&&(l?(h=e[a]).closed=!0:(h=ShapeModifiers.getModifier(t[a].ty),e[a]=h,h.init(this,t,a,e),this.shapeModifiers.push(h),r=!1),d.push(h));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),p=d.length,a=0;a<p;a+=1)d[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,r,n,a,o,s,l,h=this.stylesList.length,c=this.globalData.renderer,p=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(("st"!==(s=(l=this.stylesList[t]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),a=l.elements,"st"===s||"gs"===s?(c.ctxStrokeStyle("st"===s?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===s?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),i=a.length,e=0;e<i;e+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),n=(o=a[e].trNodes).length,r=0;r<n;r+=1)"m"===o[r].t?p.moveTo(o[r].p[0],o[r].p[1]):"c"===o[r].t?p.bezierCurveTo(o[r].pts[0],o[r].pts[1],o[r].pts[2],o[r].pts[3],o[r].pts[4],o[r].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(c.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){var n,a;for(a=t,n=e.length-1;n>=0;n-=1)"tr"===e[n].ty?(a=i[n].transform,this.renderShapeTransform(t,a)):"sh"===e[n].ty||"el"===e[n].ty||"rc"===e[n].ty||"sr"===e[n].ty?this.renderPath(e[n],i[n]):"fl"===e[n].ty?this.renderFill(e[n],i[n],a):"st"===e[n].ty?this.renderStroke(e[n],i[n],a):"gf"===e[n].ty||"gs"===e[n].ty?this.renderGradientFill(e[n],i[n],a):"gr"===e[n].ty?this.renderShape(a,e[n].it,i[n].it):e[n].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,r,n,a=t.trNodes,o=e.paths,s=o._length;a.length=0;var l=t.transforms.finalTransform;for(n=0;n<s;n+=1){var h=o.shapes[n];if(h&&h.v){for(r=h._length,i=1;i<r;i+=1)1===i&&a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===r&&a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&r&&(a.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),a.push({t:"z"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,r=e.styledShapes.length;for(i=0;i<r;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var a,o=this.globalData.canvasContext,s=e.s.v,l=e.e.v;if(1===t.t)r=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),c=Math.atan2(l[1]-s[1],l[0]-s[0]),p=e.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var u=h*p,d=Math.cos(c+e.a.v)*u+s[0],f=Math.sin(c+e.a.v)*u+s[1];r=o.createRadialGradient(d,f,0,s[0],s[1],h)}var m=t.g.p,y=e.g.c,g=1;for(a=0;a<m;a+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*a+1]),r.addColorStop(y[4*a]/100,"rgba("+y[4*a+1]+","+y[4*a+2]+","+y[4*a+3]+","+g+")");n.grd=r}n.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(r.da=n.dashArray,r.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var r,n,a,o,s,l,h,c,p,u,d,f,m=this.globalData.fontManager.getFontByName(t.f),y=t.l,g=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var b=this.data.singleShape,v=.001*t.tr*t.finalSize,_=0,x=0,k=!0,S=0;for(r=0;r<n;r+=1){o=(a=this.globalData.fontManager.getCharData(t.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&a.data||{},g.reset(),b&&y[r].n&&(_=-v,x+=t.yOffset,x+=k?1:0,k=!1),p=(h=o.shapes?o.shapes[0].it:[]).length,g.scale(t.finalSize/100,t.finalSize/100),b&&this.applyTextPropertiesToMatrix(t,g,y[r].line,_,x),d=createSizedArray(p-1);var w=0;for(c=0;c<p;c+=1)if("sh"===h[c].ty){for(l=h[c].ks.k.i.length,u=h[c].ks.k,f=[],s=1;s<l;s+=1)1===s&&f.push(g.applyToX(u.v[0][0],u.v[0][1],0),g.applyToY(u.v[0][0],u.v[0][1],0)),f.push(g.applyToX(u.o[s-1][0],u.o[s-1][1],0),g.applyToY(u.o[s-1][0],u.o[s-1][1],0),g.applyToX(u.i[s][0],u.i[s][1],0),g.applyToY(u.i[s][0],u.i[s][1],0),g.applyToX(u.v[s][0],u.v[s][1],0),g.applyToY(u.v[s][0],u.v[s][1],0));f.push(g.applyToX(u.o[s-1][0],u.o[s-1][1],0),g.applyToY(u.o[s-1][0],u.o[s-1][1],0),g.applyToX(u.i[0][0],u.i[0][1],0),g.applyToY(u.i[0][0],u.i[0][1],0),g.applyToX(u.v[0][0],u.v[0][1],0),g.applyToY(u.v[0][0],u.v[0][1],0)),d[w]=f,w+=1}b&&(_+=y[r].l,_+=v),this.textSpans[S]?this.textSpans[S].elem=d:this.textSpans[S]={elem:d},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,r,n,a;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 o,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var h,c,p=null,u=null,d=null,f=this.globalData.renderer;for(t=0;t<e;t+=1)if(!l[t].n){if((o=s[t])&&(f.save(),f.ctxTransform(o.p),f.ctxOpacity(o.o)),this.fill){for(o&&o.fc?p!==o.fc&&(f.ctxFillStyle(o.fc),p=o.fc):p!==this.values.fill&&(p=this.values.fill,f.ctxFillStyle(this.values.fill)),r=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(a=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(o&&o.sw?d!==o.sw&&(d=o.sw,f.ctxLineWidth(o.sw)):d!==this.values.sWidth&&(d=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),o&&o.sc?u!==o.sc&&(u=o.sc,f.ctxStrokeStyle(o.sc)):u!==this.values.stroke&&(u=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),r=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(a=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,i,r=t.getContext("2d"),n=this.img.width,a=this.img.height,o=n/a,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?e=(i=a)*s:i=(e=n)/s,r.drawImage(this.img,(n-e)/2,(a-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,r){this.canvasContext.fillRect(t,e,i,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var i,r,n,a;if(this.reset(),t?(i=t,r=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",l=o[0]||"xMidYMid",h=l.substr(0,4),c=l.substr(4);n=i/r,(a=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===s||a<n&&"slice"===s?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===h&&(a<n&&"meet"===s||a>n&&"slice"===s)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(a<n&&"meet"===s||a>n&&"slice"===s)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(a>n&&"meet"===s||a<n&&"slice"===s)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(a>n&&"meet"===s||a<n&&"slice"===s)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,i=this.stack[this.cArrPos],r=i.transform,n=this.cTr.props;for(e=0;e<16;e+=1)n[e]=r[e];if(t){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i,r=this.stack[this.cArrPos];for(i=0;i<16;i+=1)r.transform[i]=e[i];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,n,a,o,s=t.sh.v,l=t.transformers,h=s._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)r=this.getTransformedPoint(l,s.v[i]),n=this.getTransformedPoint(l,s.o[i]),a=this.getTransformedPoint(l,s.i[i+1]),o=this.getTransformedPoint(l,s.v[i+1]),this.checkBounds(r,n,a,o,e);s.c&&(r=this.getTransformedPoint(l,s.v[i]),n=this.getTransformedPoint(l,s.o[i]),a=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,n,a,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,r,n){this.getBoundsOfCurve(t,e,i,r);var a=this.shapeBoundingBox;n.x=bmMin(a.left,n.x),n.xMax=bmMax(a.right,n.xMax),n.y=bmMin(a.top,n.y),n.yMax=bmMax(a.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,r){for(var n,a,o,s,l,h,c,p=[[t[0],r[0]],[t[1],r[1]]],u=0;u<2;++u)a=6*t[u]-12*e[u]+6*i[u],n=-3*t[u]+9*e[u]-9*i[u]+3*r[u],o=3*e[u]-3*t[u],a|=0,o|=0,0==(n|=0)&&0===a||(0===n?(s=-o/a)>0&&s<1&&p[u].push(this.calculateF(s,t,e,i,r,u)):(l=a*a-4*o*n)>=0&&((h=(-a+bmSqrt(l))/(2*n))>0&&h<1&&p[u].push(this.calculateF(h,t,e,i,r,u)),(c=(-a-bmSqrt(l))/(2*n))>0&&c<1&&p[u].push(this.calculateF(c,t,e,i,r,u))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,n,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*n[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var n=t.keyframes[r].s;n>i&&(i=n)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=n,r.webkitTransform=n}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,n,a=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{e.fontFamily=a.fFamily;var o=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=o}var l,h,c,p=t.l;n=p.length;var u,d=this.mHelper,f="",m=0;for(r=0;r<n;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?c=(h=this.textSpans[m]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(h=this.textSpans[m],l=this.textPaths[m]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var y,g=this.globalData.fontManager.getCharData(t.finalText[r],a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(y=g?g.data:null,d.reset(),y&&y.shapes&&y.shapes.length&&(u=y.shapes[0].it,d.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(d,u),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),y&&y.shapes){document.body.appendChild(c);var b=c.getBBox();c.setAttribute("width",b.width+2),c.setAttribute("height",b.height+2),c.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=c.style,_="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=_,v.webkitTransform=_,p[r].yOffset=b.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=p[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var x=l.style,k="translate3d(0,"+-t.finalSize/1.2+"px,0)";x.transform=k,x.webkitTransform=k}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=h,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,r,n,a,o,s=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(r=h.length,i=0;i<r;i+=1)h[i].n?s+=1:(a=this.textSpans[i],o=this.textPaths[i],n=l[s],s+=1,n._mdf.m&&(this.isMasked?a.setAttribute("transform",n.m):(a.style.webkitTransform=n.m,a.style.transform=n.m)),a.style.opacity=n.o,n.sw&&n._mdf.sw&&o.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&o.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(o.setAttribute("fill",n.fc),o.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=p,t.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,r,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,r=e.container.style;var a=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=a,i.webkitPerspective=a,r.transformOrigin=o,r.mozTransformOrigin=o,r.webkitTransformOrigin=o,i.transform=s,i.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,i=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)i=this.hierarchy[t].finalTransform.mProp._mdf||i;if(i||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),o=[n[0]/a,n[1]/a,n[2]/a],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),h=Math.atan2(o[0],-o[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var p,u,d;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(p=this.comp.threeDElements[t]).type){if(c){var f=this.mat.toCSS();(d=p.container.style).transform=f,d.webkitTransform=f}this.pe._mdf&&((u=p.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var n,a,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o],n=(this.layers[o].ddd?this.getThreeDContainerByPos(o):a.getBaseElement())||n),o+=1;n?r.ddd&&this.supports3d||this.layerElement.insertBefore(i,n):r.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,r,n=createTag("div");styleDiv(n);var a=createTag("div");if(styleDiv(a),"3d"===e){(i=n.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var o="50% 50%";i.webkitTransformOrigin=o,i.mozTransformOrigin=o,i.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=a.style).transform=s,r.webkitTransform=s}n.appendChild(a);var l={container:a,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,r="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==r&&(r="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==r&&(r="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var n,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(n=this.elements[a].getBaseElement()),a+=1;n?this.threeDElements[i].container.insertBefore(t,n):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,r=e.style;r.width=t.w+"px",r.height=t.h+"px",this.resizerElem=e,styleDiv(e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),r.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var a=createNS("defs");n.appendChild(a),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,r,n=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,o=n/a;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,i=0,r=(a-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,i=(n-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",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 t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,r=this.threeDElements.length;for(t=0;t<r;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,r=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e],r,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var i=0,r=t.layers.length;i<r;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}function seedRandom(t,e){var i=this,r=256,n="random",a=e.pow(r,6),o=e.pow(2,52),s=2*o,l=255;function h(t){var e,i=t.length,n=this,a=0,o=n.i=n.j=0,s=n.S=[];for(i||(t=[i++]);a<r;)s[a]=a++;for(a=0;a<r;a++)s[a]=s[o=l&o+t[a%i]+(e=s[a])],s[o]=e;n.g=function(t){for(var e,i=0,a=n.i,o=n.j,s=n.S;t--;)e=s[a=l&a+1],i=i*r+s[l&(s[a]=s[o=l&o+e])+(s[o]=e)];return n.i=a,n.j=o,i}}function c(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function p(t,e){var i,r=[],n=_typeof$2(t);if(e&&"object"==n)for(i in t)try{r.push(p(t[i],e-1))}catch(t){}return r.length?r:"string"==n?t:t+"\0"}function u(t,e){for(var i,r=t+"",n=0;n<r.length;)e[l&n]=l&(i^=19*e[l&n])+r.charCodeAt(n++);return d(e)}function d(t){return String.fromCharCode.apply(0,t)}e["seed"+n]=function(l,f,m){var y=[],g=u(p((f=!0===f?{entropy:!0}:f||{}).entropy?[l,d(t)]:null===l?function(){try{var e=new Uint8Array(r);return(i.crypto||i.msCrypto).getRandomValues(e),d(e)}catch(e){var n=i.navigator,a=n&&n.plugins;return[+new Date,i,a,i.screen,d(t)]}}():l,3),y),b=new h(y),v=function(){for(var t=b.g(6),e=a,i=0;t<o;)t=(t+i)*r,e*=r,i=b.g(1);for(;t>=s;)t/=2,e/=2,i>>>=1;return(t+i)/e};return v.int32=function(){return 0|b.g(4)},v.quick=function(){return b.g(4)/4294967296},v.double=v,u(d(b.S),t),(f.pass||m||function(t,i,r,a){return a&&(a.S&&c(a,b),t.state=function(){return c(b,{})}),r?(e[n]=t,i):t})(v,g,"global"in f?f.global:this==e,f.state)},u(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var i,r=t.length,n=[];for(i=0;i<r;i+=1)n[i]=-t[i];return n}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e)||"string"===i||"string"===r)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,a=t.length,o=e.length,s=[];n<a||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?s[n]=t[n]+e[n]:s[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return s}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e))return"string"===i&&(t=parseInt(t,10)),"string"===r&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,a=t.length,o=e.length,s=[];n<a||n<o;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?s[n]=t[n]-e[n]:s[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return s}return 0}function mul(t,e){var i,r,n,a=_typeof$1(t),o=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t[r]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,n,a=_typeof$1(t),o=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t[r]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t/e[r];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var r=i;i=e,e=r}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var r=Math.min(t.length,e.length),n=0;for(i=0;i<r;i+=1)n+=Math.pow(e[i]-t[i],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,r=t[0],n=t[1],a=t[2],o=Math.max(r,n,a),s=Math.min(r,n,a),l=(o+s)/2;if(o===s)e=0,i=0;else{var h=o-s;switch(i=l>.5?h/(2-o-s):h/(o+s),o){case r:e=(n-a)/h+(n<a?6:0);break;case n:e=(a-r)/h+2;break;case a:e=(r-n)/h+4}e/=6}return[e,i,l,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,r,n=t[0],a=t[1],o=t[2];if(0===a)e=o,r=o,i=o;else{var s=o<.5?o*(1+a):o+a-o*a,l=2*o-s;e=hue2rgb(l,s,n+1/3),i=hue2rgb(l,s,n),r=hue2rgb(l,s,n-1/3)}return[e,i,r,t[3]]}function linear(t,e,i,r,n){if(void 0!==r&&void 0!==n||(r=e,n=i,e=0,i=1),i<e){var a=i;i=e,e=a}if(t<=e)return r;if(t>=i)return n;var o,s=i===e?0:(t-e)/(i-e);if(!r.length)return r+(n-r)*s;var l=r.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=r[o]+(n[o]-r[o])*s;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,r=e.length;t||(t=createTypedArray("float32",r));var n=createTypedArray("float32",r),a=BMMath.random();for(i=0;i<r;i+=1)n[i]=t[i]+a*(e[i]-t[i]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,r){var n,a=t.length,o=shapePool.newElement();o.setPathData(!!r,a);var s,l,h=[0,0];for(n=0;n<a;n+=1)s=e&&e[n]?e[n]:h,l=i&&i[n]?i[n]:h,o.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],s[0]+t[n][0],s[1]+t[n][1],n,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var i,r,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n),o=Math.floor(5*time);for(i=0,r=0;i<o;){for(r=0;r<n;r+=1)a[r]+=-e+2*e*BMMath.random();i+=1}var s=5*time,l=s-Math.floor(s),h=createTypedArray("float32",n);if(n>1){for(r=0;r<n;r+=1)h[r]=this.pv[r]+a[r]+(-e+2*e*BMMath.random())*l;return h}return this.pv+a[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,r,0]}function easeOut(t,e,i,r,n){return applyEase(easeOutBez,t,e,i,r,n)}function easeIn(t,e,i,r,n){return applyEase(easeInBez,t,e,i,r,n)}function ease(t,e,i,r,n){return applyEase(easeInOutBez,t,e,i,r,n)}function applyEase(t,e,i,r,n,a){void 0===n?(n=i,a=r):e=(e-i)/(r-i),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(n)){var s,l=n.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=(a[s]-n[s])*o+n[s];return h}return(a-n)*o+n}function nearestKey(t){var e,i,r,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){i=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,r=data.k[e+1].t):(i=e+1,r=data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else i=0,r=0;var a={};return a.index=i,a.time=r/elem.comp.globalData.frameRate,a}function key(t){var e,i,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=n.length,i=0;i<r;i+=1)e[i]=n[i],e.value[i]=n[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,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 t={initExpressions:function(t){var e=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===i.indexOf(t)&&i.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,r=createSizedArray(e.viewData.length),n=e.viewData.length;for(i=0;i<n;i+=1)r[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<n;){if(e.masksProperties[i].nm===t)return r[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(r){if(!t.numKeys)return 0;var n="";n="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var a="unidimensional"===i?new Number(n):Object.assign({},n);return a.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,a.value="unidimensional"===i?n[0]:n,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(){return t}return function(n){return n?"unidimensional"===n.propType?function(e){e&&"pv"in e||(e=t);var r=1/e.mult,n=e.pv*r,a=new Number(n);return a.value=n,i(a,e,"unidimensional"),function(){return e.k&&e.getValue(),n=e.v*r,a.value!==n&&((a=new Number(n)).value=n,a[0]=n,i(a,e,"unidimensional")),a}}(n):function(t){t&&"pv"in t||(t=e);var r=1/t.mult,n=t.data&&t.data.l||t.pv.length,a=createTypedArray("float32",n),o=createTypedArray("float32",n);return a.value=o,i(a,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<n;e+=1)o[e]=t.v[e]*r,a[e]=o[e];return a}}(n):r}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,r,n,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[i(),r(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function n(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function s(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(h){var c;function p(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=t,p.invertPoint=o,p.applyPoint=a,p.toWorld=i,p.toWorldVec=e,p.fromWorld=n,p.fromWorldVec=r,p.toComp=i,p.fromComp=s,p.sampleImage=l,p.sourceRectAtTime=h.sourceRectAtTime.bind(h),p._elem=h;var u=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),p.startTime=h.data.st,p.index=h.data.ind,p.source=h.data.refId,p.height=0===h.data.ty?h.data.h:100,p.width=0===h.data.ty?h.data.w:100,p.inPoint=h.data.ip/h.comp.globalData.frameRate,p.outPoint=h.data.op/h.comp.globalData.frameRate,p._name=h.data.nm,p.registerMaskInterface=function(t){p.mask=new MaskManagerInterface(t,h)},p.registerEffectsInterface=function(t){p.effect=t},p}}(),propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){var t={createEffectsInterface:function(t,i){if(t.effectsManager){var r,n=[],a=t.data.ef,o=t.effectsManager.effectElements.length;for(r=0;r<o;r+=1)n.push(e(a[r],t.effectsManager.effectElements[r],i,t));var s=t.data.ef||[],l=function(t){for(r=0,o=s.length;r<o;){if(t===s[r].nm||t===s[r].mn||t===s[r].ix)return n[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function e(t,r,n,a){function o(e){for(var i=t.ef,r=0,n=i.length;r<n;){if(e===i[r].nm||e===i[r].mn||e===i[r].ix)return 5===i[r].ty?h[r]:h[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(o,n),h=[],c=t.ef.length;for(s=0;s<c;s+=1)5===t.ef[s].ty?h.push(e(t.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,a)):h.push(i(r.effectElements[s],t.ef[s].ty,a,l));return"ADBE Color Control"===t.mn&&Object.defineProperty(o,"color",{get:function(){return h[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return t.np}},_name:{value:t.nm},propertyGroup:{value:l}}),o.enabled=0!==t.en,o.active=o.enabled,o}function i(t,e,i,r){var n=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):n()}}return t}(),ShapePathInterface=function(t,e,i){var r=e.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}var a=propertyGroupFactory(n,i);return r.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),n},ShapeExpressionInterface=function(){function t(t,s,d){var f,m=[],y=t?t.length:0;for(f=0;f<y;f+=1)"gr"===t[f].ty?m.push(e(t[f],s[f],d)):"fl"===t[f].ty?m.push(i(t[f],s[f],d)):"st"===t[f].ty?m.push(a(t[f],s[f],d)):"tm"===t[f].ty?m.push(o(t[f],s[f],d)):"tr"===t[f].ty||("el"===t[f].ty?m.push(l(t[f],s[f],d)):"sr"===t[f].ty?m.push(h(t[f],s[f],d)):"sh"===t[f].ty?m.push(ShapePathInterface(t[f],s[f],d)):"rc"===t[f].ty?m.push(c(t[f],s[f],d)):"rd"===t[f].ty?m.push(p(t[f],s[f],d)):"rp"===t[f].ty?m.push(u(t[f],s[f],d)):"gf"===t[f].ty?m.push(r(t[f],s[f],d)):m.push(n(t[f],s[f])));return m}function e(e,i,r){var n=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,r);var a=function(e,i,r){var n,a=function(t){for(var e=0,i=n.length;e<i;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}return"number"==typeof t?n[t-1]:null};a.propertyGroup=propertyGroupFactory(a,r),n=t(e.it,i.it,a.propertyGroup),a.numProperties=n.length;var o=s(e.it[e.it.length-1],i.it[i.it.length-1],a.propertyGroup);return a.transform=o,a.propertyIndex=e.cix,a._name=e.nm,a}(e,i,n.propertyGroup),o=s(e.it[e.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.content=a,n.transform=o,Object.defineProperty(n,"_name",{get:function(){return e.nm}}),n.numProperties=e.np,n.propertyIndex=e.ix,n.nm=e.nm,n.mn=e.mn,n}function i(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function r(t,e,i){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function n(){return function(){return null}}function a(t,e,i){var r,n=propertyGroupFactory(h,i),a=propertyGroupFactory(l,n);function o(i){Object.defineProperty(l,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var s=t.d?t.d.length:0,l={};for(r=0;r<s;r+=1)o(r),e.d.dataProps[r].p.setGroupProperty(a);function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:"Stroke Width"===t||"stroke width"===t?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),e.w.setGroupProperty(PropertyInterface("Stroke Width",n)),h}function o(t,e,i){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}var n=propertyGroupFactory(r,i);return r.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",n)),e.e.setGroupProperty(PropertyInterface("End",n)),e.o.setGroupProperty(PropertyInterface("Offset",n)),r.propertyIndex=t.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function s(t,e,i){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var n=propertyGroupFactory(r,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=i,r}function l(t,e,i){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var n=propertyGroupFactory(r,i);r.propertyIndex=t.ix;var a="tm"===e.sh.ty?e.sh.prop:e.sh;return a.s.setGroupProperty(PropertyInterface("Size",n)),a.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function h(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}var n=propertyGroupFactory(r,i),a="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",n)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),a.pt.setGroupProperty(PropertyInterface("Points",n)),a.p.setGroupProperty(PropertyInterface("Position",n)),a.r.setGroupProperty(PropertyInterface("Rotation",n)),t.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var n=propertyGroupFactory(r,i),a="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,a.p.setGroupProperty(PropertyInterface("Position",n)),a.s.setGroupProperty(PropertyInterface("Size",n)),a.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function p(t,e,i){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var n=propertyGroupFactory(r,i),a=e;return r.propertyIndex=t.ix,a.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function u(t,e,i){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var n=propertyGroupFactory(r,i),a=e;return r.propertyIndex=t.ix,a.c.setGroupProperty(PropertyInterface("Copies",n)),a.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,i,r){var n;function a(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:n[t-1];for(var e=0,i=n.length;e<i;){if(n[e]._name===t)return n[e];e+=1}return null}return a.propertyGroup=propertyGroupFactory(a,function(){return r}),n=t(e,i,a.propertyGroup),a.numProperties=n.length,a._name="Contents",a}}(),TextExpressionInterface=function(t){var e;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",i=t.getFootageData();function r(t){if(i[t])return e=t,"object"===_typeof(i=i[t])?r:i;var n=t.indexOf(e);if(-1!==n){var a=parseInt(t.substr(n+e.length),10);return"object"===_typeof(i=i[a])?r:i}return""}return function(){return e="",i=t.getFootageData(),r}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),r=0;if(e.length){var n;for(n=0;n<e.length;n+=1)r+=Math.pow(i[n]-e[n],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,r=-.001,n=this.getValueAtTime(t),a=this.getValueAtTime(t+r);if(n.length)for(e=createTypedArray("float32",n.length),i=0;i<n.length;i+=1)e[i]=(a[i]-n[i])/r;else e=(a-n)/r;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,n,a,o,s,l=this.comp.renderedFrame,h=this.keyframes,c=h[h.length-1].t;if(l<=c)return this.pv;if(i?n=c-(r=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),r=c-(n=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/r)%2!=0)return this.getValueAtTime((r-(l-n)%r+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0),f=Math.floor((l-n)/r);if(this.pv.length){for(o=(s=new Array(p.length)).length,a=0;a<o;a+=1)s[a]=(u[a]-p[a])*f+d[a];return s}return(u-p)*f+d}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-y[a])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-c)/.001*(m-y)}}return this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,n,a,o,s,l=this.comp.renderedFrame,h=this.keyframes,c=h[0].t;if(l>=c)return this.pv;if(i?n=c+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>h.length-1)&&(e=h.length-1),r=(n=h[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),d=this.getValueAtTime((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/r)+1;if(this.pv.length){for(o=(s=new Array(p.length)).length,a=0;a<o;a+=1)s[a]=d[a]-(u[a]-p[a])*f;return s}return d-(u-p)*f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-y[a])*(c-l)/.001;return s}return m+(m-y)*(c-l)/.001}}return this.getValueAtTime((r-((c-l)%r+c))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var i,r,n=this.comp.renderedFrame/this.comp.globalData.frameRate,a=n-t,o=e>1?(n+t-a)/(e-1):1,s=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;s<e;){if(r=this.getValueAtTime(a+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=r[l];else i+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function r(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(t);e.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(t),a=this.sa.getValueAtTime(t);e.skewFromAxis(-n*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(t);e.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),h=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(t),u=this.py.getValueAtTime(t);if(this.data.p.z){var d=this.pz.getValueAtTime(t);e.translate(p*this.px.mult,u*this.py.mult,-d*this.pz.mult)}else e.translate(p*this.px.mult,u*this.py.mult,0)}else{var f=this.p.getValueAtTime(t);e.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return e}function n(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var o=a(t,e,i);return o.dynamicProperties.length?o.getValueAtTime=r.bind(o):o.getValueAtTime=n.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(r,n,a,s,l){var h=o(r,n,a,s,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=t,h.loopIn=e,h.smooth=i,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===n.a?n.k.length:0,h.propertyIndex=n.ix;var c=0;return 0!==a&&(c=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,n,h),h.k&&l.addDynamicProperty(h),h};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(t,e){this.k&&this.getValue();var i,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var n=r._length,a=r[t],o=r.v,s=createSizedArray(n);for(i=0;i<n;i+=1)s[i]="i"===t||"o"===t?[a[i][0]-o[i][0],a[i][1]-o[i][1]]:[a[i][0],a[i][1]];return s},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var r,n=this._segmentsLength,a=n.lengths,o=n.totalLength*t,s=0,l=a.length,h=0;s<l;){if(h+a[s].addedLength>o){var c=s,p=i.c&&s===l-1?0:s+1,u=(o-h)/a[s].addedLength;r=bez.getPointInSegment(i.v[c],i.v[p],i.o[c],i.i[p],u,a[s]);break}h+=a[s].addedLength,s+=1}return r||(r=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),r},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),a=n[0]-r[0],o=n[1]-r[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===i?[a/s,o/s]:[-o/s,a/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],s),extendPrototype([h],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,n){var a=c(t,e,i,r,n);return a.propertyIndex=e.ix,a.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,a):4===i&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var r={};return this.copyData(r,t),r.t=i.toString(),r.__complete=!1,r}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,r,n=createNS("feMerge");for(n.setAttribute("result",t),r=0;r<e.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",e[r]),n.appendChild(i),n.appendChild(i);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,i,r,n){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",r+"_tint_1"),t.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",r+"_tint_2"),t.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(r,[n,r+"_tint_1",r+"_tint_2"]);t.appendChild(o)}function SVGFillFilter(t,e,i,r){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",r),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,r){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),a.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,t.appendChild(a)}function SVGProLevelsFilter(t,e,i,r){this.filterManager=e;var n=this.filterManager.effectElements,a=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(t,e,i,r,n){var a=e.container.globalData.renderConfig.filterSize,o=e.data.fs||a;t.setAttribute("x",o.x||a.x),t.setAttribute("y",o.y||a.y),t.setAttribute("width",o.width||a.width),t.setAttribute("height",o.height||a.height),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(c);var p=this.createMergeNode(r,[r+"_drop_shadow_4",n]);t.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,r,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");n[0];)s.appendChild(n[0]);this.elem.layerElement.appendChild(s),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var i,r,n=this.paths.length;for(e=0;e<n;e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],r=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&r.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.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=r.getTotalLength();a="0 0 0 "+l*o+" ";var h,c=l*(s-o),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(c/p);for(h=0;h<u;h+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,n=r[0]+" "+i[0]+" "+e[0],a=r[1]+" "+i[1]+" "+e[1],o=r[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,r,n){for(var a,o,s=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),p=0,u=n-r,d=e-t;s<=256;)o=(a=s/256)<=l?d<0?n:r:a>=h?d<0?r:n:r+u*Math.pow((a-t)/d,1/i),c[p]=o,p+=1,s+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",r),t.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var r,n=i.children,a=0,o=n.length;a<o&&n[a]!==t.layerElement;)a+=1;a<=o-2&&(r=n[a+1]);var s=createNS("use");s.setAttribute("href","#"+e),r?i.insertBefore(s,r):i.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),r=createNS("mask");r.setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(r);var a=createNS("symbol");a.setAttribute("id",i),this.replaceInParent(e,i),a.appendChild(e.layerElement),n.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+i),r.appendChild(o),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=3==i?0:e,n=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+n);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,r=e[1].p.v,n=1===e[2].p.v,a=e[3].p.v,o=n?a:e[4].p.v,s=e[5].p.v,l=e[6].p.v,h=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*o,.01*a,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie(),lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _defineProperty(t,e,i){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _iterableToArrayLimit(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var r,n,a,o,s=[],l=!0,h=!1;try{if(a=(i=i.call(t)).next,0===e);else for(;!(l=(r=a.call(i)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){h=!0,n=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(h)throw n}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)}return i}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach(function(e){_defineProperty(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function _objectWithoutProperties(t,e){if(null==t)return{};var i,r,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)i=a[r],e.includes(i)||{}.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var i={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;i[r]=t[r]}return i}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function(t,e){var i=t.animationData,r=t.loop,n=t.autoplay,a=t.initialSegment,o=t.onComplete,s=t.onLoopComplete,l=t.onEnterFrame,h=t.onSegmentStart,c=t.onConfigReady,p=t.onDataReady,u=t.onDataFailed,d=t.onLoadedImages,f=t.onDOMLoaded,m=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var y=_objectWithoutProperties(t,_excluded$1),g=_slicedToArray(useState(!1),2),b=g[0],v=g[1],_=useRef(),x=useRef(null);return useEffect(function(){var e=function(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(x.current){null===(e=_.current)||void 0===e||e.destroy();var r=_objectSpread2(_objectSpread2(_objectSpread2({},t),i),{},{container:x.current});return _.current=lottie.loadAnimation(r),v(!!_.current),function(){var t;null===(t=_.current)||void 0===t||t.destroy(),_.current=void 0}}}();return function(){return null==e?void 0:e()}},[i,r]),useEffect(function(){_.current&&(_.current.autoplay=!!n)},[n]),useEffect(function(){_.current&&(a?Array.isArray(a)&&a.length&&((_.current.currentRawFrame<a[0]||_.current.currentRawFrame>a[1])&&(_.current.currentRawFrame=a[0]),_.current.setSegment(a[0],a[1])):_.current.resetSegments(!0))},[a]),useEffect(function(){var t=[{name:"complete",handler:o},{name:"loopComplete",handler:s},{name:"enterFrame",handler:l},{name:"segmentStart",handler:h},{name:"config_ready",handler:c},{name:"data_ready",handler:p},{name:"data_failed",handler:u},{name:"loaded_images",handler:d},{name:"DOMLoaded",handler:f},{name:"destroy",handler:m}].filter(function(t){return null!=t.handler});if(t.length){var e=t.map(function(t){var e;return null===(e=_.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=_.current)||void 0===e||e.removeEventListener(t.name,t.handler)}});return function(){e.forEach(function(t){return t()})}}},[o,s,l,h,c,p,u,d,f,m]),{View:React.createElement("div",_objectSpread2({style:e,ref:x},y)),play:function(){var t;null===(t=_.current)||void 0===t||t.play()},stop:function(){var t;null===(t=_.current)||void 0===t||t.stop()},pause:function(){var t;null===(t=_.current)||void 0===t||t.pause()},setSpeed:function(t){var e;null===(e=_.current)||void 0===e||e.setSpeed(t)},goToAndStop:function(t,e){var i;null===(i=_.current)||void 0===i||i.goToAndStop(t,e)},goToAndPlay:function(t,e){var i;null===(i=_.current)||void 0===i||i.goToAndPlay(t,e)},setDirection:function(t){var e;null===(e=_.current)||void 0===e||e.setDirection(t)},playSegments:function(t,e){var i;null===(i=_.current)||void 0===i||i.playSegments(t,e)},setSubframe:function(t){var e;null===(e=_.current)||void 0===e||e.setSubframe(t)},getDuration:function(t){var e;return null===(e=_.current)||void 0===e?void 0:e.getDuration(t)},destroy:function(){var t;null===(t=_.current)||void 0===t||t.destroy(),_.current=void 0},animationContainerRef:x,animationLoaded:b,animationItem:_.current}};function getContainerVisibility(t){var e=t.getBoundingClientRect(),i=e.top,r=e.height;return(window.innerHeight-i)/(window.innerHeight+r)}function getContainerCursorPosition(t,e,i){var r=t.getBoundingClientRect(),n=r.top;return{x:(e-r.left)/r.width,y:(i-n)/r.height}}var useInitInteractivity=function(t){var e=t.wrapperRef,i=t.animationItem,r=t.mode,n=t.actions;useEffect(function(){var t=e.current;if(t&&i&&n.length){i.stop();var a,o,s,l,h;switch(r){case"scroll":return l=null,h=function(){var e=getContainerVisibility(t),r=n.find(function(t){var i=t.visibility;return i&&e>=i[0]&&e<=i[1]});if(r){if("seek"===r.type&&r.visibility&&2===r.frames.length){var a=r.frames[0]+Math.ceil((e-r.visibility[0])/(r.visibility[1]-r.visibility[0])*r.frames[1]);
28
+ */function requireWithSelector_development(){return hasRequiredWithSelector_development||(hasRequiredWithSelector_development=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=React__default,t=requireShim(),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useSyncExternalStore,r=e.useRef,n=e.useEffect,o=e.useMemo,s=e.useDebugValue;withSelector_development.useSyncExternalStoreWithSelector=function(e,t,l,c,d){var p=r(null);if(null===p.current){var u={hasValue:!1,value:null};p.current=u}else u=p.current;p=o(function(){function e(e){if(!n){if(n=!0,a=e,e=c(e),void 0!==d&&u.hasValue){var t=u.value;if(d(t,e))return r=t}return r=e}if(t=r,i(a,e))return t;var o=c(e);return void 0!==d&&d(t,o)?(a=e,t):(a=e,r=o)}var a,r,n=!1,o=void 0===l?null:l;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,l,c,d]);var h=a(e,p[0],p[1]);return n(function(){u.hasValue=!0,u.value=h},[h]),s(h),h},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),withSelector_development}function requireWithSelector(){return hasRequiredWithSelector||(hasRequiredWithSelector=1,"production"===process.env.NODE_ENV?withSelector.exports=requireWithSelector_production():withSelector.exports=requireWithSelector_development()),withSelector.exports}var withSelectorExports=requireWithSelector(),useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports);const createStoreImpl=e=>{let t;const i=new Set,a=(e,a)=>{const r="function"==typeof e?e(t):e;if(!Object.is(r,t)){const e=t;t=(null!=a?a:"object"!=typeof r||null===r)?r:Object.assign({},t,r),i.forEach(i=>i(t,e))}},r=()=>t,n={setState:a,getState:r,getInitialState:()=>o,subscribe:e=>(i.add(e),()=>i.delete(e))},o=t=e(a,r,n);return n},createStore=e=>e?createStoreImpl(e):createStoreImpl,{useSyncExternalStoreWithSelector:useSyncExternalStoreWithSelector}=useSyncExternalStoreExports,identity=e=>e;function useStoreWithEqualityFn(e,t=identity,i){const a=useSyncExternalStoreWithSelector(e.subscribe,e.getState,e.getInitialState,t,i);return React__default.useDebugValue(a),a}const createWithEqualityFnImpl=(e,t)=>{const i=createStore(e),a=(e,a=t)=>useStoreWithEqualityFn(i,e,a);return Object.assign(a,i),a},createWithEqualityFn=(e,t)=>createWithEqualityFnImpl,isIterable=e=>Symbol.iterator in e,hasIterableEntries=e=>"entries"in e,compareEntries=(e,t)=>{const i=e instanceof Map?e:new Map(e.entries()),a=t instanceof Map?t:new Map(t.entries());if(i.size!==a.size)return!1;for(const[e,t]of i)if(!a.has(e)||!Object.is(t,a.get(e)))return!1;return!0},compareIterables=(e,t)=>{const i=e[Symbol.iterator](),a=t[Symbol.iterator]();let r=i.next(),n=a.next();for(;!r.done&&!n.done;){if(!Object.is(r.value,n.value))return!1;r=i.next(),n=a.next()}return!!r.done&&!!n.done};function shallow(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&(isIterable(e)&&isIterable(t)?hasIterableEntries(e)&&hasIterableEntries(t)?compareEntries(e,t):compareIterables(e,t):compareEntries({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})))}const defaultAppConfig={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{},baseSize:{width:375,height:812}};var devices$1=[{name:"iphone 12",platform:"ios",width:390,height:844,type:"phone",importance:13,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 12 pro",platform:"ios",width:390,height:844,type:"phone",importance:19,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13",platform:"ios",width:390,height:844,type:"phone",importance:4,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 pro",platform:"ios",width:390,height:844,type:"phone",importance:8,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14",platform:"ios",width:390,height:844,type:"phone",importance:15,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 pro",platform:"ios",width:393,height:852,type:"phone",importance:15,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15",platform:"ios",width:393,height:852,type:"phone",importance:6,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 pro",platform:"ios",width:393,height:852,type:"phone",importance:18,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"pixel 3 xl",platform:"android",width:412,height:847,type:"phone",importance:8,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 4 xl",platform:"android",width:412,height:869,type:"phone",importance:14,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 6",platform:"android",width:412,height:915,type:"phone",importance:10,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 6 pro",platform:"android",width:412,height:892,type:"phone",importance:4,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 7",platform:"android",width:412,height:915,type:"phone",importance:11,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 7 pro",platform:"android",width:412,height:892,type:"phone",importance:5,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 8",platform:"android",width:412,height:915,type:"phone",importance:12,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 8 pro",platform:"android",width:412,height:919,type:"phone",importance:16,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s8",platform:"android",width:360,height:740,type:"phone",importance:5,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s8+",platform:"android",width:360,height:740,type:"phone",importance:1,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s9",platform:"android",width:360,height:740,type:"phone",importance:4,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s9+",platform:"android",width:360,height:740,type:"phone",importance:4,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"galaxy s10",platform:"android",width:360,height:760,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s10+",platform:"android",width:412,height:869,type:"phone",importance:15,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20",platform:"android",width:360,height:800,type:"phone",importance:13,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20+",platform:"android",width:412,height:915,type:"phone",importance:16,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s20 ultra",platform:"android",width:412,height:915,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21",platform:"android",width:360,height:800,type:"phone",importance:13,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21+",platform:"android",width:412,height:915,type:"phone",importance:12,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s21 ultra",platform:"android",width:412,height:915,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22",platform:"android",width:360,height:780,type:"phone",importance:2,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22+",platform:"android",width:412,height:915,type:"phone",importance:8,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s22 ultra",platform:"android",width:412,height:915,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23",platform:"android",width:360,height:780,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23+",platform:"android",width:412,height:915,type:"phone",importance:1,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"galaxy s23 ultra",platform:"android",width:412,height:915,type:"phone",importance:19,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 8",platform:"android",width:412,height:915,type:"phone",importance:4,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 8 pro",platform:"android",width:412,height:915,type:"phone",importance:20,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 9",platform:"android",width:412,height:915,type:"phone",importance:3,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"oneplus 9 pro",platform:"android",width:412,height:915,type:"phone",importance:1,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"xiaomi mi 11",platform:"android",width:412,height:915,type:"phone",importance:9,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"huawei p30",platform:"android",width:360,height:750,type:"phone",importance:10,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"huawei p30 pro",platform:"android",width:360,height:780,type:"phone",importance:14,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"oppo find x3 pro",platform:"android",width:412,height:915,type:"phone",importance:7,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"iphone 6 plus",platform:"ios",width:414,height:736,type:"phone",importance:27,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 6s plus",platform:"ios",width:414,height:736,type:"phone",importance:35,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 7 plus",platform:"ios",width:414,height:736,type:"phone",importance:40,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 8 plus",platform:"ios",width:414,height:736,type:"phone",importance:32,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone xs max",platform:"ios",width:414,height:896,type:"phone",importance:21,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone xr",platform:"ios",width:414,height:896,type:"phone",importance:31,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11",platform:"ios",width:414,height:896,type:"phone",importance:36,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11 pro max",platform:"ios",width:414,height:896,type:"phone",importance:22,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 12 pro max",platform:"ios",width:428,height:926,type:"phone",importance:28,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 pro max",platform:"ios",width:428,height:926,type:"phone",importance:30,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 plus",platform:"ios",width:428,height:926,type:"phone",importance:29,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 14 pro max",platform:"ios",width:430,height:932,type:"phone",importance:39,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 plus",platform:"ios",width:430,height:932,type:"phone",importance:24,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 15 pro max",platform:"ios",width:430,height:932,type:"phone",importance:22,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"pixel 2",platform:"android",width:411,height:731,type:"phone",importance:29,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"pixel 2 xl",platform:"android",width:411,height:823,type:"phone",importance:36,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:16},{name:"pixel 3",platform:"android",width:393,height:786,type:"phone",importance:39,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 4",platform:"android",width:411,height:869,type:"phone",importance:24,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"pixel 5",platform:"android",width:393,height:851,type:"phone",importance:23,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"xiaomi mi 9",platform:"android",width:393,height:851,type:"phone",importance:39,insets:[24,0,24,0],navigationBarType:"gesture",radius:20},{name:"iphone 6",platform:"ios",width:375,height:667,type:"phone",importance:42,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 6s",platform:"ios",width:375,height:667,type:"phone",importance:60,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 7",platform:"ios",width:375,height:667,type:"phone",importance:41,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 8",platform:"ios",width:375,height:667,type:"phone",importance:59,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone x",platform:"ios",width:375,height:812,type:"phone",importance:46,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone xs",platform:"ios",width:375,height:812,type:"phone",importance:56,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 11 pro",platform:"ios",width:375,height:812,type:"phone",importance:57,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone se (2nd gen)",platform:"ios",width:375,height:667,type:"phone",importance:56,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone se (3rd gen)",platform:"ios",width:375,height:667,type:"phone",importance:59,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 12 mini",platform:"ios",width:360,height:780,type:"phone",importance:70,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone 13 mini",platform:"ios",width:360,height:780,type:"phone",importance:78,insets:[47,0,34,0],navigationBarType:"homeIndicator",radius:40},{name:"iphone (1st gen)",platform:"ios",width:320,height:480,type:"phone",importance:82,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 3g",platform:"ios",width:320,height:480,type:"phone",importance:84,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 3gs",platform:"ios",width:320,height:480,type:"phone",importance:88,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 4",platform:"ios",width:320,height:480,type:"phone",importance:86,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 4s",platform:"ios",width:320,height:480,type:"phone",importance:92,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5",platform:"ios",width:320,height:568,type:"phone",importance:100,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5c",platform:"ios",width:320,height:568,type:"phone",importance:92,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone 5s",platform:"ios",width:320,height:568,type:"phone",importance:96,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"iphone se (1st gen)",platform:"ios",width:320,height:568,type:"phone",importance:86,insets:[20,0,0,0],navigationBarType:"none",radius:0},{name:"nexus 7 (2013)",platform:"android",width:600,height:960,type:"tablet",importance:83,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"nexus 9",platform:"android",width:768,height:1024,type:"tablet",importance:90,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"pixel c",platform:"android",width:900,height:1280,type:"tablet",importance:100,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"galaxy tab s6",platform:"android",width:800,height:1280,type:"tablet",importance:97,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab s7",platform:"android",width:800,height:1280,type:"tablet",importance:99,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab s8",platform:"android",width:800,height:1280,type:"tablet",importance:81,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"galaxy tab a 10.1",platform:"android",width:800,height:1280,type:"tablet",importance:94,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12},{name:"lenovo tab p11",platform:"android",width:800,height:1280,type:"tablet",importance:91,insets:[24,0,24,0],navigationBarType:"gesture",radius:12},{name:"fire hd 10",platform:"android",width:800,height:1280,type:"tablet",importance:98,insets:[24,0,48,0],navigationBarType:"threeButtons",radius:12}];function getDevices(){const e=devices$1.slice();return e.sort((e,t)=>(e.importance??999)-(t.importance??999)),e}function getDefaultDevice(){return getDevices()[0]}function createJSONStorage(e,t){let i;try{i=e()}catch(e){return}const a={getItem:e=>{var t;const a=e=>null===e?null:JSON.parse(e,void 0),r=null!=(t=i.getItem(e))?t:null;return r instanceof Promise?r.then(a):a(r)},setItem:(e,t)=>i.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>i.removeItem(e)};return a}const useRenderStore=createWithEqualityFn()(e=>({copiedNode:null,setCopiedNode:t=>e({copiedNode:t}),device:getDefaultDevice(),setDevice:t=>e({device:t}),appConfig:defaultAppConfig,setAppConfig:t=>e({appConfig:t}),logs:[],logLevel:"INFO",setLogLevel:t=>e({logLevel:t}),addLog:t=>e(e=>{const i=Date.now(),a={id:t.id??`${i}-${Math.random().toString(36).slice(2,8)}`,timestamp:t.timestamp??i,level:t.level,source:t.source,message:t.message,payload:t.payload};return{logs:[...e.logs,a]}}),clearLogs:()=>e({logs:[]}),persist:{name:"render-store",partialize:e=>({copiedNode:e.copiedNode??null,logLevel:e.logLevel}),storage:createJSONStorage(()=>localStorage)}}),shallow),levelPriority={ERROR:0,WARN:1,INFO:2,VERBOSE:3};function shouldLog(e,t){if("NONE"===e||"NONE"===t)return!1;const i=levelPriority[e];return levelPriority[t]<=i}function consoleLog(e,t,i,a){const r=`[${t}] ${i}`;switch(e){case"ERROR":console.error(r,a);break;case"WARN":console.warn(r,a);break;case"INFO":console.info(r,a);break;case"VERBOSE":console.debug(r,a)}}const logger={setLevel(e){useRenderStore.getState().setLogLevel(e),console.info(`[Logger] level set to ${e}`)},log(e,t,i,a){const{logLevel:r,addLog:n}=useRenderStore.getState();shouldLog(r,e)&&(n({level:e,source:t,message:i,payload:a}),consoleLog(e,t,i,a))},verbose(e,t,i){this.log("VERBOSE",e,t,i)},info(e,t,i){this.log("INFO",e,t,i)},warn(e,t,i){this.log("WARN",e,t,i)},error(e,t,i){this.log("ERROR",e,t,i)},clear(){useRenderStore.getState().clearLogs()}};function useLogRender(e,t){useEffect(()=>(logger.verbose(e,"rendered",t),()=>{logger.verbose(e,"unmount")}),[])}function other(e,t){return null}function useNode(e){const t=e?.type,i=getDefaultsForType(t);if(!i)return e;const a={...i,...e.attributes??{}};return{...e,attributes:a}}const fallbackDevice=getDefaultDevice(),fallbackBaseSize=defaultAppConfig.baseSize;function ensureNumber(e,t){return"number"==typeof e&&Number.isFinite(e)?e:t}function getBaseDimensions(){const e=useRenderStore.getState(),t=e.device??fallbackDevice,i=e.appConfig?.baseSize??fallbackBaseSize,a=ensureNumber(t?.width,fallbackDevice.width),r=ensureNumber(t?.height,fallbackDevice.height),n=ensureNumber(i?.width,fallbackBaseSize.width),o=ensureNumber(i?.height,fallbackBaseSize.height),[s,l]=a<r?[a,r]:[r,a];return{baseSize:{width:n,height:o},shortDimension:s,longDimension:l}}function scale(e){const{baseSize:t,shortDimension:i}=getBaseDimensions();return i/t.width*e}function verticalScale(e){const{baseSize:t,longDimension:i}=getBaseDimensions();return i/t.height*e}const s$1=scale,vs=verticalScale,fs=verticalScale;function parseSize(e){if(void 0===e)return;if("number"==typeof e)return e;const t=String(e).trim(),i=t.toLowerCase();if(i.endsWith("@s")){const e=parseFloat(i.slice(0,-2));return Number.isFinite(e)?s$1(e):t}if(i.endsWith("@vs")){const e=parseFloat(i.slice(0,-3));return Number.isFinite(e)?vs(e):t}if(i.endsWith("@f")||i.endsWith("@fs")){const e=i.endsWith("@f")?-2:-3,a=parseFloat(i.slice(0,e));return Number.isFinite(a)?fs(a):t}if(i.endsWith("px")){const e=parseFloat(i.replace("px",""));return Number.isFinite(e)?e:t}const a=parseFloat(i);return Number.isFinite(a)?a:t}function extractViewStyle(e){const t=e.attributes,i={display:"flex",flexDirection:"column"};if(!t)return i;(t?.scrollable??!1)&&("row"===t.flexDirection?(i.overflowX="auto",i.overflowY="hidden",i.maxWidth="100%",i.maxHeight="100%"):(i.overflowY="auto",i.overflowX="hidden",i.maxHeight="100%",i.maxWidth="100%")),t.flexDirection&&(i.flexDirection=t.flexDirection),t.alignItems&&(i.alignItems=t.alignItems),t.justifyContent&&(i.justifyContent=t.justifyContent);const a=(e,t)=>{if(void 0===t)return;const a=parseSize(t);i[e]=a};if(a("gap",t.gap),a("padding",t.padding),a("margin",t.margin),void 0!==t.paddingHorizontal){const e=parseSize(t.paddingHorizontal);i.paddingLeft=e,i.paddingRight=e}if(void 0!==t.paddingVertical){const e=parseSize(t.paddingVertical);i.paddingTop=e,i.paddingBottom=e}const r=t.marginHorizontal;if(void 0!==r){const e=parseSize(r);i.marginLeft=e,i.marginRight=e}if(void 0!==t.marginVertical){const e=parseSize(t.marginVertical);i.marginTop=e,i.marginBottom=e}return a("paddingTop",t.paddingTop),a("paddingBottom",t.paddingBottom),a("paddingLeft",t.paddingLeft),a("paddingRight",t.paddingRight),a("marginTop",t.marginTop),a("marginBottom",t.marginBottom),a("marginLeft",t.marginLeft),a("marginRight",t.marginRight),t.backgroundColor&&(i.backgroundColor=t.backgroundColor),a("borderRadius",t.borderRadius),a("width",t.width),a("height",t.height),i}function Button({node:e}){useLogRender("Button"),e=useNode(e);const t=e?.sourceType??e.type??"button",i=useMemo(()=>extractViewStyle(e),[e]);return jsx("div",{"attribute-key":t,style:i,children:String(e?.type??"button")})}var Button$1=React__default.memo(Button);const isCarouselItem=e=>!(!e||"object"!=typeof e||Array.isArray(e))&&("type"in e&&"carouselItem"===e.type);function Carousel({node:e}){useLogRender("Carousel"),e=useNode(e);const t=e?.sourceType??e.type??"carousel",i=useMemo(()=>extractViewStyle(e),[e]);return jsx("div",{"attribute-key":t,className:"embla__container",style:i,children:Array.isArray(e.children)?e.children.map((e,t)=>jsx(RenderNode$1,{node:e},t)):isCarouselItem(e.children)?jsx(RenderNode$1,{node:e.children}):null})}var Carousel$1=React__default.memo(Carousel);function isObject$1(e){return"[object Object]"===Object.prototype.toString.call(e)}function isRecord(e){return isObject$1(e)||Array.isArray(e)}function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function areOptionsEqual(e,t){const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&i.every(i=>{const a=e[i],r=t[i];return"function"==typeof a?`${a}`==`${r}`:isRecord(a)&&isRecord(r)?areOptionsEqual(a,r):a===r})}function sortAndMapPluginToOptions(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function arePluginsEqual(e,t){if(e.length!==t.length)return!1;const i=sortAndMapPluginToOptions(e),a=sortAndMapPluginToOptions(t);return i.every((e,t)=>areOptionsEqual(e,a[t]))}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isBoolean(e){return"boolean"==typeof e}function isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function mathAbs(e){return Math.abs(e)}function mathSign(e){return Math.sign(e)}function deltaAbs(e,t){return mathAbs(e-t)}function factorAbs(e,t){if(0===e||0===t)return 0;if(mathAbs(e)<=mathAbs(t))return 0;const i=deltaAbs(mathAbs(e),mathAbs(t));return mathAbs(i/e)}function roundToTwoDecimals(e){return Math.round(100*e)/100}function arrayKeys(e){return objectKeys(e).map(Number)}function arrayLast(e){return e[arrayLastIndex(e)]}function arrayLastIndex(e){return Math.max(0,e.length-1)}function arrayIsLastIndex(e,t){return t===arrayLastIndex(e)}function arrayFromNumber(e,t=0){return Array.from(Array(e),(e,i)=>t+i)}function objectKeys(e){return Object.keys(e)}function objectsMergeDeep(e,t){return[e,t].reduce((e,t)=>(objectKeys(t).forEach(i=>{const a=e[i],r=t[i],n=isObject(a)&&isObject(r);e[i]=n?objectsMergeDeep(a,r):r}),e),{})}function isMouseEvent(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function Alignment(e,t){const i={start:function(){return 0},center:function(e){return a(e)/2},end:a};function a(e){return t-e}const r={measure:function(a,r){return isString(e)?i[e](a):e(t,a,r)}};return r}function EventStore(){let e=[];const t={add:function(i,a,r,n={passive:!0}){let o;if("addEventListener"in i)i.addEventListener(a,r,n),o=()=>i.removeEventListener(a,r,n);else{const e=i;e.addListener(r),o=()=>e.removeListener(r)}return e.push(o),t},clear:function(){e=e.filter(e=>e())}};return t}function Animations(e,t,i,a){const r=EventStore(),n=1e3/60;let o=null,s=0,l=0;function c(e){if(!l)return;o||(o=e,i(),i());const r=e-o;for(o=e,s+=r;s>=n;)i(),s-=n;a(s/n),l&&(l=t.requestAnimationFrame(c))}function d(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){r.add(e,"visibilitychange",()=>{e.hidden&&(o=null,s=0)})},destroy:function(){d(),r.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:d,update:i,render:a}}function Axis(e,t){const i="rtl"===t,a="y"===e,r=!a&&i?-1:1;const n={scroll:a?"y":"x",cross:a?"x":"y",startEdge:a?"top":i?"right":"left",endEdge:a?"bottom":i?"left":"right",measureSize:function(e){const{height:t,width:i}=e;return a?t:i},direction:function(e){return e*r}};return n}function Limit(e=0,t=0){const i=mathAbs(e-t);function a(t){return t<e}function r(e){return e>t}function n(e){return a(e)||r(e)}const o={length:i,max:t,min:e,constrain:function(i){return n(i)?a(i)?e:t:i},reachedAny:n,reachedMax:r,reachedMin:a,removeOffset:function(e){return i?e-i*Math.ceil((e-t)/i):e}};return o}function Counter(e,t,i){const{constrain:a}=Limit(0,e),r=e+1;let n=o(t);function o(e){return i?mathAbs((r+e)%r):a(e)}function s(){return n}function l(){return Counter(e,s(),i)}const c={get:s,set:function(e){return n=o(e),c},add:function(e){return l().set(s()+e)},clone:l};return c}function DragHandler(e,t,i,a,r,n,o,s,l,c,d,p,u,h,g,m,f,y,b){const{cross:v,direction:_}=e,x=["INPUT","SELECT","TEXTAREA"],S={passive:!1},C=EventStore(),k=EventStore(),w=Limit(50,225).constrain(h.measure(20)),E={mouse:300,touch:400},P={mouse:500,touch:600},T=g?43:25;let A=!1,D=0,F=0,M=!1,z=!1,j=!1,B=!1;function I(e){if(!isMouseEvent(e,a)&&e.touches.length>=2)return R(e);const t=n.readPoint(e),i=n.readPoint(e,v),o=deltaAbs(t,D),l=deltaAbs(i,F);if(!z&&!B){if(!e.cancelable)return R(e);if(z=o>l,!z)return R(e)}const d=n.pointerMove(e);o>m&&(j=!0),c.useFriction(.3).useDuration(.75),s.start(),r.add(_(d)),e.preventDefault()}function R(e){const t=d.byDistance(0,!1).index!==p.get(),i=n.pointerUp(e)*(g?P:E)[B?"mouse":"touch"],a=function(e,t){const i=p.add(-1*mathSign(e)),a=d.byDistance(e,!g).distance;return g||mathAbs(e)<w?a:f&&t?.5*a:d.byIndex(i.get(),0).distance}(_(i),t),r=factorAbs(i,a),o=T-10*r,s=y+r/50;z=!1,M=!1,k.clear(),c.useDuration(o).useFriction(s),l.distance(a,!g),B=!1,u.emit("pointerUp")}function L(e){j&&(e.stopPropagation(),e.preventDefault(),j=!1)}return{init:function(e){if(!b)return;function s(s){(isBoolean(b)||b(e,s))&&function(e){const s=isMouseEvent(e,a);if(B=s,j=g&&s&&!e.buttons&&A,A=deltaAbs(r.get(),o.get())>=2,s&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return x.includes(t)}(e.target))return;M=!0,n.pointerDown(e),c.useFriction(0).useDuration(0),r.set(o),function(){const e=B?i:t;k.add(e,"touchmove",I,S).add(e,"touchend",R).add(e,"mousemove",I,S).add(e,"mouseup",R)}(),D=n.readPoint(e),F=n.readPoint(e,v),u.emit("pointerDown")}(s)}const l=t;C.add(l,"dragstart",e=>e.preventDefault(),S).add(l,"touchmove",()=>{},S).add(l,"touchend",()=>{}).add(l,"touchstart",s).add(l,"mousedown",s).add(l,"touchcancel",R).add(l,"contextmenu",R).add(l,"click",L,!0)},destroy:function(){C.clear(),k.clear()},pointerDown:function(){return M}}}function DragTracker(e,t){let i,a;function r(e){return e.timeStamp}function n(i,a){const r="client"+("x"===(a||e.scroll)?"X":"Y");return(isMouseEvent(i,t)?i:i.touches[0])[r]}return{pointerDown:function(e){return i=e,a=e,n(e)},pointerMove:function(e){const t=n(e)-n(a),o=r(e)-r(i)>170;return a=e,o&&(i=e),t},pointerUp:function(e){if(!i||!a)return 0;const t=n(a)-n(i),o=r(e)-r(i),s=r(e)-r(a)>170,l=t/o;return o&&!s&&mathAbs(l)>.1?l:0},readPoint:n}}function NodeRects(){return{measure:function(e){const{offsetTop:t,offsetLeft:i,offsetWidth:a,offsetHeight:r}=e;return{top:t,right:i+a,bottom:t+r,left:i,width:a,height:r}}}}function PercentOfView(e){const t={measure:function(t){return e*(t/100)}};return t}function ResizeHandler(e,t,i,a,r,n,o){const s=[e].concat(a);let l,c,d=[],p=!1;function u(e){return r.measureSize(o.measure(e))}return{init:function(r){n&&(c=u(e),d=a.map(u),l=new ResizeObserver(i=>{(isBoolean(n)||n(r,i))&&function(i){for(const n of i){if(p)return;const i=n.target===e,o=a.indexOf(n.target),s=i?c:d[o];if(mathAbs(u(i?e:a[o])-s)>=.5){r.reInit(),t.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>{s.forEach(e=>l.observe(e))}))},destroy:function(){p=!0,l&&l.disconnect()}}}function ScrollBody(e,t,i,a,r,n){let o=0,s=0,l=r,c=n,d=e.get(),p=0;function u(e){return l=e,g}function h(e){return c=e,g}const g={direction:function(){return s},duration:function(){return l},velocity:function(){return o},seek:function(){const t=a.get()-e.get();let r=0;return!l?(o=0,i.set(a),e.set(a),r=t):(i.set(e),o+=t/l,o*=c,d+=o,e.add(o),r=d-p),s=mathSign(r),p=d,g},settled:function(){return mathAbs(a.get()-t.get())<.001},useBaseFriction:function(){return h(n)},useBaseDuration:function(){return u(r)},useFriction:h,useDuration:u};return g}function ScrollBounds(e,t,i,a,r){const n=r.measure(10),o=r.measure(50),s=Limit(.1,.99);let l=!1;function c(){return!l&&(!!e.reachedAny(i.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(r){if(!c())return;const l=e.reachedMin(t.get())?"min":"max",d=mathAbs(e[l]-t.get()),p=i.get()-t.get(),u=s.constrain(d/o);i.subtract(p*u),!r&&mathAbs(p)<n&&(i.set(e.constrain(i.get())),a.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function ScrollContain(e,t,i,a,r){const n=Limit(-t+e,0),o=i.map((e,t)=>{const{min:a,max:r}=n,o=n.constrain(e),s=!t,c=arrayIsLastIndex(i,t);return s?r:c||l(a,o)?a:l(r,o)?r:o}).map(e=>parseFloat(e.toFixed(3))),s=function(){const e=o[0],t=arrayLast(o),i=o.lastIndexOf(e),a=o.indexOf(t)+1;return Limit(i,a)}();function l(e,t){return deltaAbs(e,t)<=1}return{snapsContained:function(){if(t<=e+r)return[n.max];if("keepSnaps"===a)return o;const{min:i,max:l}=s;return o.slice(i,l)}(),scrollContainLimit:s}}function ScrollLimit(e,t,i){const a=t[0];return{limit:Limit(i?a-e:arrayLast(t),a)}}function ScrollLooper(e,t,i,a){const r=t.min+.1,n=t.max+.1,{reachedMin:o,reachedMax:s}=Limit(r,n);const l={loop:function(t){if(!function(e){return 1===e?s(i.get()):-1===e&&o(i.get())}(t))return;const r=e*(-1*t);a.forEach(e=>e.add(r))}};return l}function ScrollProgress(e){const{max:t,length:i}=e;const a={get:function(e){return i?(e-t)/-i:0}};return a}function ScrollSnaps(e,t,i,a,r){const{startEdge:n,endEdge:o}=e,{groupSlides:s}=r,l=s(a).map(e=>arrayLast(e)[o]-e[0][n]).map(mathAbs).map(t.measure),c=a.map(e=>i[n]-e[n]).map(e=>-mathAbs(e)),d=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:d}}function SlideRegistry(e,t,i,a,r,n){const{groupSlides:o}=r,{min:s,max:l}=a;return{slideRegistry:function(){const a=o(n),r=!e||"keepSnaps"===t;return 1===i.length?[n]:r?a:a.slice(s,l).map((e,t,i)=>{const a=!t,r=arrayIsLastIndex(i,t);if(a){return arrayFromNumber(arrayLast(i[0])+1)}if(r){return arrayFromNumber(arrayLastIndex(n)-arrayLast(i)[0]+1,arrayLast(i)[0])}return e})}()}}function ScrollTarget(e,t,i,a,r){const{reachedAny:n,removeOffset:o,constrain:s}=a;function l(e){return e.concat().sort((e,t)=>mathAbs(e)-mathAbs(t))[0]}function c(t,a){const r=[t,t+i,t-i];if(!e)return t;if(!a)return l(r);const n=r.filter(e=>mathSign(e)===a);return n.length?l(n):arrayLast(r)-i}return{byDistance:function(i,a){const l=r.get()+i,{index:d,distance:p}=function(i){const a=e?o(i):s(i),r=t.map((e,t)=>({diff:c(e-a,0),index:t})).sort((e,t)=>mathAbs(e.diff)-mathAbs(t.diff)),{index:n}=r[0];return{index:n,distance:a}}(l),u=!e&&n(l);return!a||u?{index:d,distance:i}:{index:d,distance:i+c(t[d]-p,0)}},byIndex:function(e,i){return{index:e,distance:c(t[e]-r.get(),i)}},shortcut:c}}function ScrollTo(e,t,i,a,r,n,o){function s(r){const s=r.distance,l=r.index!==t.get();n.add(s),s&&(a.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(i.set(t.get()),t.set(r.index),o.emit("select"))}const l={distance:function(e,t){s(r.byDistance(e,t))},index:function(e,i){const a=t.clone().set(e);s(r.byIndex(a.get(),i))}};return l}function SlideFocus(e,t,i,a,r,n,o,s){const l={passive:!0,capture:!0};let c=0;function d(e){"Tab"===e.code&&(c=(new Date).getTime())}return{init:function(p){s&&(n.add(document,"keydown",d,!1),t.forEach((t,d)=>{n.add(t,"focus",t=>{(isBoolean(s)||s(p,t))&&function(t){if((new Date).getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const n=i.findIndex(e=>e.includes(t));isNumber(n)&&(r.useDuration(0),a.index(n,0),o.emit("slideFocus"))}(d)},l)}))}}}function Vector1D(e){let t=e;function i(e){return isNumber(e)?e:e.get()}const a={get:function(){return t},set:function(e){t=i(e)},add:function(e){t+=i(e)},subtract:function(e){t-=i(e)}};return a}function Translate(e,t){const i="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},a=t.style;let r=null,n=!1;return{clear:function(){n||(a.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(n)return;const o=roundToTwoDecimals(e.direction(t));o!==r&&(a.transform=i(o),r=o)},toggleActive:function(e){n=!e}}}function SlideLooper(e,t,i,a,r,n,o,s,l){const c=arrayKeys(r),d=arrayKeys(r).reverse(),p=function(){const e=o[0];return g(h(d,e),i,!1)}().concat(function(){const e=t-o[0]-1;return g(h(c,e),-i,!0)}());function u(e,t){return e.reduce((e,t)=>e-r[t],t)}function h(e,t){return e.reduce((e,i)=>u(e,t)>0?e.concat([i]):e,[])}function g(r,o,c){const d=function(e){return n.map((i,r)=>({start:i-a[r]+.5+e,end:i+t-.5+e}))}(o);return r.map(t=>{const a=c?0:-i,r=c?i:0,n=c?"end":"start",o=d[t][n];return{index:t,loopPoint:o,slideLocation:Vector1D(-1),translate:Translate(e,l[t]),target:()=>s.get()>o?a:r}})}const m={canLoop:function(){return p.every(({index:e})=>{const i=c.filter(t=>t!==e);return u(i,t)<=.1})},clear:function(){p.forEach(e=>e.translate.clear())},loop:function(){p.forEach(e=>{const{target:t,translate:i,slideLocation:a}=e,r=t();r!==a.get()&&(i.to(r),a.set(r))})},loopPoints:p};return m}function SlidesHandler(e,t,i){let a,r=!1;return{init:function(n){i&&(a=new MutationObserver(e=>{r||(isBoolean(i)||i(n,e))&&function(e){for(const i of e)if("childList"===i.type){n.reInit(),t.emit("slidesChanged");break}}(e)}),a.observe(e,{childList:!0}))},destroy:function(){a&&a.disconnect(),r=!0}}}function SlidesInView(e,t,i,a){const r={};let n,o=null,s=null,l=!1;return{init:function(){n=new IntersectionObserver(e=>{l||(e.forEach(e=>{const i=t.indexOf(e.target);r[i]=e}),o=null,s=null,i.emit("slidesInView"))},{root:e.parentElement,threshold:a}),t.forEach(e=>n.observe(e))},destroy:function(){n&&n.disconnect(),l=!0},get:function(e=!0){if(e&&o)return o;if(!e&&s)return s;const t=function(e){return objectKeys(r).reduce((t,i)=>{const a=parseInt(i),{isIntersecting:n}=r[a];return(e&&n||!e&&!n)&&t.push(a),t},[])}(e);return e&&(o=t),e||(s=t),t}}}function SlideSizes(e,t,i,a,r,n){const{measureSize:o,startEdge:s,endEdge:l}=e,c=i[0]&&r,d=function(){if(!c)return 0;const e=i[0];return mathAbs(t[s]-e[s])}(),p=function(){if(!c)return 0;const e=n.getComputedStyle(arrayLast(a));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),u=i.map(o),h=i.map((e,t,i)=>{const a=!t,r=arrayIsLastIndex(i,t);return a?u[t]+d:r?u[t]+p:i[t+1][s]-e[s]}).map(mathAbs);return{slideSizes:u,slideSizesWithGaps:h,startGap:d,endGap:p}}function SlidesToScroll(e,t,i,a,r,n,o,s,l){const{startEdge:c,endEdge:d,direction:p}=e,u=isNumber(i);const h={groupSlides:function(e){return u?function(e,t){return arrayKeys(e).filter(e=>e%t===0).map(i=>e.slice(i,i+t))}(e,i):function(e){return e.length?arrayKeys(e).reduce((i,u,h)=>{const g=arrayLast(i)||0,m=0===g,f=u===arrayLastIndex(e),y=r[c]-n[g][c],b=r[c]-n[u][d],v=!a&&m?p(o):0,_=mathAbs(b-(!a&&f?p(s):0)-(y+v));return h&&_>t+l&&i.push(u),f&&i.push(e.length),i},[]).map((t,i,a)=>{const r=Math.max(a[i-1]||0);return e.slice(r,t)}):[]}(e)}};return h}function Engine(e,t,i,a,r,n,o){const{align:s,axis:l,direction:c,startIndex:d,loop:p,duration:u,dragFree:h,dragThreshold:g,inViewThreshold:m,slidesToScroll:f,skipSnaps:y,containScroll:b,watchResize:v,watchSlides:_,watchDrag:x,watchFocus:S}=n,C=NodeRects(),k=C.measure(t),w=i.map(C.measure),E=Axis(l,c),P=E.measureSize(k),T=PercentOfView(P),A=Alignment(s,P),D=!p&&!!b,F=p||!!b,{slideSizes:M,slideSizesWithGaps:z,startGap:j,endGap:B}=SlideSizes(E,k,w,i,F,r),I=SlidesToScroll(E,P,f,p,k,w,j,B,2),{snaps:R,snapsAligned:L}=ScrollSnaps(E,A,k,w,I),O=-arrayLast(R)+arrayLast(z),{snapsContained:N,scrollContainLimit:V}=ScrollContain(P,O,L,b,2),H=D?N:L,{limit:G}=ScrollLimit(O,H,p),W=Counter(arrayLastIndex(H),d,p),$=W.clone(),q=arrayKeys(i),K=Animations(a,r,()=>(({dragHandler:e,scrollBody:t,scrollBounds:i,options:{loop:a}})=>{a||i.constrain(e.pointerDown()),t.seek()})(se),e=>(({scrollBody:e,translate:t,location:i,offsetLocation:a,previousLocation:r,scrollLooper:n,slideLooper:o,dragHandler:s,animation:l,eventHandler:c,scrollBounds:d,options:{loop:p}},u)=>{const h=e.settled(),g=!d.shouldConstrain(),m=p?h:h&&g,f=m&&!s.pointerDown();f&&l.stop();const y=i.get()*u+r.get()*(1-u);a.set(y),p&&(n.loop(e.direction()),o.loop()),t.to(a.get()),f&&c.emit("settle"),m||c.emit("scroll")})(se,e)),U=H[W.get()],J=Vector1D(U),X=Vector1D(U),Y=Vector1D(U),Z=Vector1D(U),Q=ScrollBody(J,Y,X,Z,u,.68),ee=ScrollTarget(p,H,O,G,Z),te=ScrollTo(K,W,$,Q,ee,Z,o),ie=ScrollProgress(G),ae=EventStore(),re=SlidesInView(t,i,o,m),{slideRegistry:ne}=SlideRegistry(D,b,H,V,I,q),oe=SlideFocus(e,i,ne,te,Q,ae,o,S),se={ownerDocument:a,ownerWindow:r,eventHandler:o,containerRect:k,slideRects:w,animation:K,axis:E,dragHandler:DragHandler(E,e,a,r,Z,DragTracker(E,r),J,K,te,Q,ee,W,o,T,h,g,y,.68,x),eventStore:ae,percentOfView:T,index:W,indexPrevious:$,limit:G,location:J,offsetLocation:Y,previousLocation:X,options:n,resizeHandler:ResizeHandler(t,o,r,i,E,v,C),scrollBody:Q,scrollBounds:ScrollBounds(G,Y,Z,Q,T),scrollLooper:ScrollLooper(O,G,Y,[J,Y,X,Z]),scrollProgress:ie,scrollSnapList:H.map(ie.get),scrollSnaps:H,scrollTarget:ee,scrollTo:te,slideLooper:SlideLooper(E,P,O,M,z,R,H,Y,i),slideFocus:oe,slidesHandler:SlidesHandler(t,o,_),slidesInView:re,slideIndexes:q,slideRegistry:ne,slidesToScroll:I,target:Z,translate:Translate(E,t)};return se}function EventHandler(){let e,t={};function i(e){return t[e]||[]}const a={init:function(t){e=t},emit:function(t){return i(t).forEach(i=>i(e,t)),a},off:function(e,r){return t[e]=i(e).filter(e=>e!==r),a},on:function(e,r){return t[e]=i(e).concat([r]),a},clear:function(){t={}}};return a}const defaultOptions={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function OptionsHandler(e){function t(e,t){return objectsMergeDeep(e,t||{})}const i={mergeOptions:t,optionsAtMedia:function(i){const a=i.breakpoints||{},r=objectKeys(a).filter(t=>e.matchMedia(t).matches).map(e=>a[e]).reduce((e,i)=>t(e,i),{});return t(i,r)},optionsMediaQueries:function(t){return t.map(e=>objectKeys(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return i}function PluginsHandler(e){let t=[];return{init:function(i,a){return t=a.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(i,e)),a.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}}}function EmblaCarousel(e,t,i){const a=e.ownerDocument,r=a.defaultView,n=OptionsHandler(r),o=PluginsHandler(n),s=EventStore(),l=EventHandler(),{mergeOptions:c,optionsAtMedia:d,optionsMediaQueries:p}=n,{on:u,off:h,emit:g}=l,m=E;let f,y,b,v,_=!1,x=c(defaultOptions,EmblaCarousel.globalOptions),S=c(x),C=[];function k(t){const i=Engine(e,b,v,a,r,t,l);if(t.loop&&!i.slideLooper.canLoop()){return k(Object.assign({},t,{loop:!1}))}return i}function w(t,i){_||(x=c(x,t),S=d(x),C=i||C,function(){const{container:t,slides:i}=S,a=isString(t)?e.querySelector(t):t;b=a||e.children[0];const r=isString(i)?b.querySelectorAll(i):i;v=[].slice.call(r||b.children)}(),f=k(S),p([x,...C.map(({options:e})=>e)]).forEach(e=>s.add(e,"change",E)),S.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(D),f.eventHandler.init(D),f.resizeHandler.init(D),f.slidesHandler.init(D),f.options.loop&&f.slideLooper.loop(),b.offsetParent&&v.length&&f.dragHandler.init(D),y=o.init(D,C)))}function E(e,t){const i=A();P(),w(c({startIndex:i},e),t),l.emit("reInit")}function P(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),o.destroy(),s.clear()}function T(e,t,i){S.active&&!_&&(f.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),f.scrollTo.index(e,i||0))}function A(){return f.index.get()}const D={canScrollNext:function(){return f.index.add(1).get()!==A()},canScrollPrev:function(){return f.index.add(-1).get()!==A()},containerNode:function(){return b},internalEngine:function(){return f},destroy:function(){_||(_=!0,s.clear(),P(),l.emit("destroy"),l.clear())},off:h,on:u,emit:g,plugins:function(){return y},previousScrollSnap:function(){return f.indexPrevious.get()},reInit:m,rootNode:function(){return e},scrollNext:function(e){T(f.index.add(1).get(),e,-1)},scrollPrev:function(e){T(f.index.add(-1).get(),e,1)},scrollProgress:function(){return f.scrollProgress.get(f.offsetLocation.get())},scrollSnapList:function(){return f.scrollSnapList},scrollTo:T,selectedScrollSnap:A,slideNodes:function(){return v},slidesInView:function(){return f.slidesInView.get()},slidesNotInView:function(){return f.slidesInView.get(!1)}};return w(t,i),setTimeout(()=>l.emit("init"),0),D}function useEmblaCarousel(e={},t=[]){const i=useRef(e),a=useRef(t),[r,n]=useState(),[o,s]=useState(),l=useCallback(()=>{r&&r.reInit(i.current,a.current)},[r]);return useEffect(()=>{areOptionsEqual(i.current,e)||(i.current=e,l())},[e,l]),useEffect(()=>{arePluginsEqual(a.current,t)||(a.current=t,l())},[t,l]),useEffect(()=>{if(canUseDOM()&&o){EmblaCarousel.globalOptions=useEmblaCarousel.globalOptions;const e=EmblaCarousel(o,i.current,a.current);return n(e),()=>e.destroy()}n(void 0)},[o,n]),[s,r]}EmblaCarousel.globalOptions=void 0,useEmblaCarousel.globalOptions=void 0;const carouselContext=createContext(void 0);function CarouselProvider({node:e}){e=useNode(e);const[t,i]=useEmblaCarousel(e.attributes),a=e?.sourceType??e.type??"carouselProvider",r=useMemo(()=>extractViewStyle(e),[e]);return jsx(carouselContext.Provider,{value:i,children:jsx("div",{"attribute-key":a,className:"carousel-provider",style:r,children:jsx("div",{className:"embla",children:jsx("div",{className:"embla__viewport",ref:t,children:e.children&&jsx(RenderNode$1,{node:e.children})})})})})}var CarouselProvider$1=React__default.memo(CarouselProvider);function CarouselButtons({node:e}){useLogRender("CarouselButtons"),e=useNode(e);const t=e?.sourceType??e.type??"carouselButtons",i=useMemo(()=>extractViewStyle(e),[e]),a=useContext(carouselContext),r=e.attributes?.buttonType||["previous_button","next_button"];return jsxs("div",{"attribute-key":t,className:"embla__buttons",style:i,children:[r.includes("previous_button")&&jsx("button",{onClick:()=>a?.scrollPrev(),className:"embla__button embla__button--prev",children:"Previous"}),r.includes("next_button")&&jsx("button",{onClick:()=>a?.scrollNext(),className:"embla__button embla__button--next",children:"Next"}),r.includes("skip_button")&&jsx("button",{onClick:()=>a?.scrollTo(e.attributes?.skipNumber),className:"embla__button embla__button--skip",children:"Skip"})]})}var CarouselButtons$1=React__default.memo(CarouselButtons);const onboardContext=createContext(void 0);function OnboardProvider({node:e}){useLogRender("OnboardProvider"),e=useNode(e);const t=e?.sourceType??e.type??"OnboardProvider";useRenderStore(e=>e.device);const[i,a]=useEmblaCarousel(e.attributes),[r,n]=useState(0),o=useMemo(()=>{const t=e.children.filter(e=>"Onboard"===e.type)[0];if("Onboard"!==t?.type)throw new Error("OnboardProvider at least has an Onboard child");const i=t.children[r].children.filter(e=>"OnboardButtons"==e?.type);return[...e.children,...i]},[r,e.children]);useEffect(()=>{a&&(n(a.selectedScrollSnap()),a.on("select",()=>{n(a.selectedScrollSnap())}))},[a]);const s=useMemo(()=>{const t=extractViewStyle(e);return t.display="block",t},[e]);return jsx(onboardContext.Provider,{value:{emblaApi:a,selectedIndex:r},children:jsx("div",{"attribute-key":t,className:"carousel-provider",style:{...s,paddingTop:e.attributes?.paddingTop,paddingRight:e.attributes?.paddingRight,paddingBottom:e.attributes?.paddingBottom,paddingLeft:e.attributes?.paddingLeft},children:jsx("div",{className:"embla",children:jsx("div",{className:"embla__viewport",ref:i,children:e.children&&jsx(RenderNode$1,{node:o})})})})})}var OnboardProvider$1=React__default.memo(OnboardProvider);function CarouselDots({node:e}){useLogRender("CarouselDots"),e=useNode(e);const t=e?.sourceType??e.type??"carouselDots",i=e.attributes?.dotType||"normal_dot",a=useMemo(()=>extractViewStyle(e),[e]),r="OnboardDot"===e?.sourceType,n=useContext(carouselContext),o=useContext(onboardContext),s=r?o?.emblaApi:n,[l,c]=useState(0),[d,p]=useState([]);return useEffect(()=>{if(!s)return;const e=s.scrollSnapList(),t=s.selectedScrollSnap();p(e),c(t);const i=()=>{const e=s.selectedScrollSnap();c(e)};return s.on("select",i),()=>{s&&s.off&&s.off("select",i)}},[s]),jsx("div",{"attribute-key":t,className:`embla__dots embla__dots--${i}`,style:a,children:d.map((e,t)=>jsx("button",{onClick:()=>s?.scrollTo(e),className:"embla__dot "+(l===t?"embla__dot--selected":""),children:t===l?"●":"○"},t))})}var CarouselDots$1=React__default.memo(CarouselDots);function CarouselItem({node:e}){useLogRender("CarouselItem"),e=useNode(e);const t=e?.sourceType??e.type??"carouselItem",i=useMemo(()=>extractViewStyle(e),[e]);return jsx("div",{className:"embla__slide","attribute-key":t,style:i,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var CarouselItem$1=React__default.memo(CarouselItem);function extractImageStyle(e){const t=e.attributes,i={};return t?(void 0!==t.width&&(i.width=t.width),void 0!==t.height&&(i.height=t.height),void 0!==t.borderRadius&&(i.borderRadius=t.borderRadius),"cover"===t.resizeMode?i.objectFit="cover":"contain"===t.resizeMode?i.objectFit="contain":"stretch"===t.resizeMode?i.objectFit="fill":"center"===t.resizeMode&&(i.objectFit="none"),i):i}function Image$1({node:e}){useLogRender("Image"),e=useNode(e);const t=e?.sourceType??e.type??"image",i={...useMemo(()=>extractViewStyle(e),[e]),...extractImageStyle(e)};return jsx("img",{"attribute-key":t,src:e.attributes?.src,width:e.attributes?.width,height:e.attributes?.height,style:i,alt:""},e.key)}var Image$2=React__default.memo(Image$1);function Onboard({node:e}){useLogRender("Onboard");const t=(e=useNode(e)).type??"Onboard";return jsx(Carousel$1,{node:{...e,type:"carousel",sourceType:t}})}var Onboard$1=React__default.memo(Onboard);const getPermissionText=e=>({camera:{title:"Camera Access",message:"This app would like to access your camera to take photos and videos."},microphone:{title:"Microphone Access",message:"This app would like to access your microphone to record audio."},location:{title:"Location Access",message:"This app would like to access your location to provide location-based services."},notifications:{title:"Allow Notifications",message:"This app would like to send you notifications."},photos:{title:"Photo Library Access",message:"This app would like to access your photos."},contacts:{title:"Contacts Access",message:"This app would like to access your contacts."},att:{title:"Allow Tracking",message:"This app would like to track your activity across other companies' apps and websites."}}[e]||{title:"Permission Required",message:`This app would like to access ${e}.`}),PermissionModal=({permission:e,onAllow:t,onDeny:i})=>{const a=useRenderStore(e=>e.device),r="ios"===a.platform,{title:n,message:o}=getPermissionText(e);return jsx("div",r?{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.4)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,padding:20},onClick:e=>{e.target===e.currentTarget&&i()},children:jsxs("div",{style:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderRadius:14,width:"100%",maxWidth:270,overflow:"hidden",backdropFilter:"blur(20px)"},children:[jsxs("div",{style:{padding:"20px 16px",textAlign:"center"},children:[jsx("div",{style:{fontSize:17,fontWeight:600,color:"#000",marginBottom:8,lineHeight:1.3},children:n}),jsx("div",{style:{fontSize:13,color:"#000",lineHeight:1.4,opacity:.6},children:o})]}),jsxs("div",{style:{borderTop:"0.5px solid rgba(0, 0, 0, 0.2)",display:"flex"},children:[jsx("button",{onClick:i,style:{flex:1,padding:"11px 0",fontSize:17,fontWeight:400,color:"#007AFF",background:"transparent",border:"none",borderRight:"0.5px solid rgba(0, 0, 0, 0.2)",cursor:"pointer"},children:"Don't Allow"}),jsx("button",{onClick:t,style:{flex:1,padding:"11px 0",fontSize:17,fontWeight:600,color:"#007AFF",background:"transparent",border:"none",cursor:"pointer"},children:"Allow"})]})]})}:{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,padding:24},onClick:e=>{e.target===e.currentTarget&&i()},children:jsxs("div",{style:{backgroundColor:"#FFFFFF",borderRadius:4,width:"100%",maxWidth:280,boxShadow:"0 11px 15px -7px rgba(0,0,0,0.2), 0 24px 38px 3px rgba(0,0,0,0.14)"},children:[jsxs("div",{style:{padding:"24px 24px 20px"},children:[jsx("div",{style:{fontSize:20,fontWeight:500,color:"rgba(0, 0, 0, 0.87)",marginBottom:16,lineHeight:1.2},children:n}),jsx("div",{style:{fontSize:16,color:"rgba(0, 0, 0, 0.6)",lineHeight:1.5},children:o})]}),jsxs("div",{style:{padding:"8px 8px 8px 0",display:"flex",justifyContent:"flex-end",gap:8},children:[jsx("button",{onClick:i,style:{padding:"8px 16px",fontSize:14,fontWeight:500,color:"#5F6368",background:"transparent",border:"none",borderRadius:4,cursor:"pointer",textTransform:"uppercase",letterSpacing:.5},children:"Deny"}),jsx("button",{onClick:t,style:{padding:"8px 16px",fontSize:14,fontWeight:500,color:"#1A73E8",background:"transparent",border:"none",borderRadius:4,cursor:"pointer",textTransform:"uppercase",letterSpacing:.5},children:"Allow"})]})]})})};function MockLaunchScreenComponent({appName:e,onAppClick:t}){return jsx("div",{className:"mockos-screen mockos-screen--launchscreen",children:jsx("div",{className:"mockos-launcher",children:jsx("div",{className:"mockos-launcher__grid",children:jsxs("button",{className:"mockos-launcher__app",onClick:t,type:"button",children:[jsx("div",{className:"mockos-launcher__app-icon",children:jsxs("svg",{viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{width:"60",height:"60",rx:"13",fill:"#007AFF"}),jsx("path",{d:"M30 15C21.716 15 15 21.716 15 30s6.716 15 15 15 15-6.716 15-15-6.716-15-15-15zm0 27c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12z",fill:"white"}),jsx("circle",{cx:"30",cy:"30",r:"5",fill:"white"})]})}),jsx("div",{className:"mockos-launcher__app-name",children:e})]})})})})}function HomeComponent(){return jsxs("div",{className:"mockos-screen mockos-screen--home",children:[jsx("div",{className:"mockos-screen__heading",children:"Home"}),jsx("div",{className:"mockos-screen__text",children:"Welcome to the home screen"})]})}function OnboardComponent(){return jsxs("div",{className:"mockos-screen mockos-screen--onboard",children:[jsx("div",{className:"mockos-screen__heading",children:"Onboarding"}),jsx("div",{className:"mockos-screen__text",children:"Welcome! Let's get you started."})]})}function SubscriptionComponent(){return jsxs("div",{className:"mockos-screen mockos-screen--subscription",children:[jsx("div",{className:"mockos-screen__heading",children:"Subscription"}),jsx("div",{className:"mockos-screen__text",children:"Choose your plan"}),jsx("div",{className:"mockos-screen__plan mockos-screen__plan--premium",children:"Premium - $9.99/month"}),jsx("div",{className:"mockos-screen__plan mockos-screen__plan--basic",children:"Basic - Free"})]})}function ScreenRenderer({currentRoute:e,children:t,childrenBelongTo:i,appName:a,onLaunchApp:r}){if(t&&i&&e===i)return jsx(Fragment,{children:t});switch(e){case"launchscreen":default:return jsx(MockLaunchScreenComponent,{appName:a,onAppClick:r});case"home":return jsx(HomeComponent,{});case"onboard":return jsx(OnboardComponent,{});case"subscription":return jsx(SubscriptionComponent,{})}}function MockOSRouter({children:e,childrenBelongTo:t,appName:i="My App"}){const a=useMockOSContext();if(!a)throw new Error("MockOSRouter must be used within MockOSProvider");const{currentRoute:r,navigation:n}=a;return jsx("div",{className:"mockos-router",children:jsx(ScreenRenderer,{currentRoute:r,childrenBelongTo:t,appName:i,onLaunchApp:function(){n(t||"onboard")},children:e})})}const formatTime=()=>(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),iosIndicators=["5G","Wi-Fi","92%"],androidIndicators=["Alarm","Wi-Fi","84%"];function DeviceStatusBar({height:e,backgroundColor:t,platform:i="android",isDark:a}){const[r,n]=useState(()=>formatTime());useEffect(()=>{const e=setInterval(()=>n(formatTime()),6e4);return()=>clearInterval(e)},[]);const o={fontSize:10,letterSpacing:.5,textTransform:"uppercase"},s={position:"absolute",top:0,left:0,right:0,height:e,backgroundColor:t,color:a?"rgb(255, 255, 255)":"rgb(0, 0, 0)",display:"flex",alignItems:"center",fontSize:12,fontWeight:500,padding:"0 12px"};return jsxs("div","ios"===i?{className:"device-status-bar",style:s,children:[jsx("span",{style:{fontWeight:600},children:r}),jsx("div",{style:{flex:1}}),jsx("div",{style:{display:"flex",alignItems:"center",gap:8},children:iosIndicators.map(e=>jsx("span",{style:o,children:e},e))})]}:{className:"device-status-bar",style:s,children:[jsx("span",{style:{flex:1},children:r}),jsx("div",{style:{display:"flex",alignItems:"center",gap:8},children:androidIndicators.map(e=>jsx("span",{style:o,children:e},e))})]})}const basePillStyle={height:5,borderRadius:999,width:120},tabItems=["Today","Search","Profile"];function DeviceNavigationBar({height:e,backgroundColor:t,platform:i="android",navigationBarType:a="gesture",isDark:r}){const n=useMockOSContext();if(!e)return null;const o=r?"rgba(255, 255, 255, 0.85)":"rgba(0, 0, 0, 0.7)",s=r?"rgba(255, 255, 255, 0.55)":"rgba(0, 0, 0, 0.4)";function l(){n?n.navigation("launchscreen"):alert("Navigation: Home\n(Mock OS context not available)")}const c={height:e,backgroundColor:t,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 16px"};if("ios"===i)switch(a){case"homeIndicator":return jsx("div",{className:"device-navigation-bar",style:c,children:jsx("div",{style:{...basePillStyle,backgroundColor:o}})});case"tabBar":return jsx("div",{className:"device-navigation-bar",style:c,children:jsx("div",{style:{display:"flex",width:"100%",maxWidth:280,justifyContent:"space-between",fontSize:11,textTransform:"uppercase",letterSpacing:.4,gap:20},children:tabItems.map(e=>jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4,color:"Today"===e?o:s},children:[jsx("div",{style:{width:20,height:20,borderRadius:6,backgroundColor:"Today"===e?o:s,opacity:.9}}),jsx("span",{children:e})]},e))})});default:return null}if("threeButtons"===a){const e={position:"relative",width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center",fontSize:18,color:o,cursor:"pointer",userSelect:"none"};return jsx("div",{className:"device-navigation-bar",style:c,children:jsxs("div",{style:{display:"flex",gap:64},children:[jsx("div",{style:{...e,fontSize:24},onClick:function(){console.log("handleBackButton",n),n?n.goBack()||n.navigation("launchscreen"):alert("Navigation: Back\n(Mock OS context not available)")},role:"button","aria-label":"Back",children:"◁"}),jsx("div",{style:{...e,fontSize:32,top:-3},onClick:l,role:"button","aria-label":"Home",children:"⌂"}),jsx("div",{style:{...e,fontSize:20,fontWeight:1e3},onClick:l,role:"button","aria-label":"Recent Apps",children:"▢"})]})})}return"gesture"===a?jsx("div",{className:"device-navigation-bar",style:c,children:jsx("div",{style:{...basePillStyle,width:90,backgroundColor:o}})}):null}const MockOSContext=createContext(null),useMockOSContext=()=>useContext(MockOSContext);function MockOSProvider({children:e,defaultRoute:t="launchscreen",appName:i,statusBarHeight:a,statusBarBackgroundColor:r,statusBarPlatform:n,statusBarIsDark:o,navBarHeight:s,navBarBackgroundColor:l,navBarPlatform:c,navBarNavigationBarType:d,navBarIsDark:p,insetLeft:u,insetRight:h}){const[g,m]=useState(null),[f,y]=useState(t),[b,v]=useState([{route:t,timestamp:Date.now()}]),_=useCallback(e=>{console.log(`[Mock OS] Navigating to: ${e}`),y(e),v(t=>{const i=t[t.length-1];if(i&&"launchscreen"===i.route&&"launchscreen"!==e){const i=[...t];return i[i.length-1]={route:e,timestamp:Date.now()},i}return[...t,{route:e,timestamp:Date.now()}]})},[]),x=useCallback(()=>{if(b.length>1){const e=[...b];e.pop();const t=e[e.length-1];return console.log(`[Mock OS] Going back to: ${t.route}`),y(t.route),v(e),!0}return console.log("[Mock OS] Cannot go back - at root"),!1},[b]),S={isEnabled:!0,permission:g,setPermission:m,currentRoute:f,navigation:_,goBack:x,navigationStack:b};return jsxs(MockOSContext.Provider,{value:S,children:[null!==g&&jsx(PermissionModal,{permission:g,onAllow:()=>{console.log(`[Mock OS] Permission granted: ${g}`),m(null)},onDeny:()=>{console.log(`[Mock OS] Permission denied: ${g}`),m(null)}}),jsx(DeviceStatusBar,{height:a,backgroundColor:r,platform:n,isDark:o}),jsx("div",{className:"device-content",style:{flex:1,overflow:"hidden",position:"relative",paddingLeft:u,paddingRight:h},children:jsx(MockOSRouter,{childrenBelongTo:"onboard",appName:i,children:e})}),jsx(DeviceNavigationBar,{height:s,backgroundColor:l,platform:c,navigationBarType:d,isDark:p})]})}class MockPermissionManager{constructor(e){this.context=e}requestPermission(e){return null===this.context?(alert(`Permission requested: ${e}\n(Mock OS context not available)`),"not-determined"):(console.log(`[Mock OS] Permission requested: ${e}`),this.context.setPermission(e),"granted")}checkPermission(e){return null===this.context?(alert(`Permission check: ${e}\n(Mock OS context not available)`),"not-determined"):(console.log(`[Mock OS] Permission checked: ${e}`),"granted")}openSettings(){null!==this.context?console.log("[Mock OS] Opening Settings"):alert("Opening Settings\n(Mock OS context not available)")}}function useMockPermission(e){return useMemo(()=>new MockPermissionManager(e),[e])}function OnboardButton({node:e}){useLogRender("OnboardButton"),e=useNode(e);const t=e?.sourceType??e.type??"OnboardButton",{emblaApi:i}=useContext(onboardContext)??{},{appConfig:a}=useRenderStore(e=>({appConfig:e.appConfig})),r=useMockOSContext(),n=useMockPermission(r),o=useRef([]),s=e.attributes?.labelKey??"",l=a.localication?.[a.defaultLanguage??"en"]?.[s]??s,c=e.attributes?.flex??1,d=e.attributes?.button_text_color??"#FFFFFF",p=e.attributes?.button_background_color??"#0066FF",u=useMemo(()=>extractViewStyle(e),[e]);return jsx("button",{"attribute-key":t,className:"onboard__button",onClick:()=>{const t=e.attributes?.events??[];for(const e of t)if(!o.current.includes(e)){if("Permission"===e.type){const t=e.permission??"camera";return n.requestPermission(t),void o.current.push(e)}if("Navigate"===e.type){const t=e.targetIndex;if("number"==typeof t)return i?.scrollTo(t),void o.current.push(e);if(e.navigate_to){const t=e.navigate_to;return void("string"==typeof t&&(o.current.push(e),r?r.navigation(t):alert("Mock OS context not available for navigation.")))}}}},style:{...u,flex:c,color:d,backgroundColor:p,border:"none",borderRadius:20,height:"100%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:l})}var OnboardButton$1=React__default.memo(OnboardButton);function OnboardButtons({node:e}){useLogRender("OnboardButtons"),e=useNode(e);const t=e?.sourceType??e.type??"OnboardButtons",{appConfig:i}=useRenderStore(e=>({appConfig:e.appConfig})),a="light"===i.theme?i.screenStyle.light.seperatorColor:i.screenStyle.dark.seperatorColor,r=useContext(onboardContext)??{},[n,o]=useState(r.selectedIndex??0);useEffect(()=>{"number"==typeof r.selectedIndex&&o(r.selectedIndex)},[r.selectedIndex]);const s="column"===e.attributes?.buttons_direction?"column":"row",l=e.attributes?.seperatorColor??a,c=useMemo(()=>extractViewStyle(e),[e]),d=e.attributes?.condition,p=e.attributes?.conditionVariable;return"carousel-index"===d&&"number"==typeof p&&p!==n?null:jsxs("div",{"attribute-key":t,style:c,children:[jsx("div",{className:"onboard__separator",style:{height:1,backgroundColor:l,width:"100%"}}),jsx("div",{className:"onboard__buttons",style:{display:"flex",flexDirection:s,height:40,gap:12,alignItems:"center",justifyContent:"center",margin:"12px 24px"},children:Array.isArray(e.children)?e.children.map((e,t)=>jsx(RenderNode$1,{node:e},t)):jsx(RenderNode$1,{node:e.children})})]})}var OnboardButtons$1=React__default.memo(OnboardButtons);function OnboardDot({node:e}){useLogRender("OnboardDot");const t=(e=useNode(e)).type??"OnboardDot",i=e.attributes?.dotType||"normal_dot",a=useRenderStore(e=>"dark"===e.appConfig.theme),r=a?"#E4E5E7":"#F7F7F9",n=e.attributes?.inactive_dot_opacity??.3,o=e.attributes?.dot_style,s=e.attributes?.container_style,l=e.attributes?.active_dot_color,c=useMemo(()=>{const t=extractViewStyle(e);if(s)try{const e=JSON.parse(s);Object.assign(t,e)}catch(e){}return t},[e,s]),d=useContext(onboardContext),p=d?.emblaApi,[u,h]=useState(0),[g,m]=useState([]);useEffect(()=>{if(!p)return;const e=p.scrollSnapList(),t=p.selectedScrollSnap();m(e),h(t);const i=()=>{const e=p.selectedScrollSnap();h(e)};return p.on("select",i),()=>{p&&p.off&&p.off("select",i)}},[p]);const f=useMemo(()=>{if(!o)return{};try{return JSON.parse(o)}catch(e){return{}}},[o]);return jsx("div",{"attribute-key":t,className:`embla__dots embla__dots--${i}`,style:c,children:g.map((e,t)=>{const i=u===t,a={...f,opacity:i?1:n};return l&&i?a.color=l:i||(a.color=r),jsx("button",{onClick:()=>p?.scrollTo(e),className:"embla__dot "+(i?"embla__dot--selected":""),style:a,children:i?"●":"○"},t)})})}var OnboardDot$1=React__default.memo(OnboardDot);function extractTextStyle(e){const t=e.attributes,{appConfig:{screenStyle:i,theme:a}}=useRenderStore.getState(),r="light"===a?i.light.color:i.dark.color,n={};if(!t)return n.fontSize=fs(14),n.color=r,n;if(void 0!==t.fontSize){const e=parseSize(t.fontSize);n.fontSize=e}else n.fontSize=fs(14);if(t.fontWeight&&(n.fontWeight=t.fontWeight),n.color=t.color??r,t.textAlign&&(n.textAlign=t.textAlign),void 0!==t.padding&&(n.padding=t.padding),void 0!==t.margin&&(n.margin=t.margin),void 0!==t.paddingHorizontal){const e=parseSize(t.paddingHorizontal);n.paddingLeft=e,n.paddingRight=e}if(void 0!==t.paddingVertical){const e=parseSize(t.paddingVertical);n.paddingTop=e,n.paddingBottom=e}const o=t.marginHorizontal;if(void 0!==o){const e=parseSize(o);n.marginLeft=e,n.marginRight=e}if(void 0!==t.marginVertical){const e=parseSize(t.marginVertical);n.marginTop=e,n.marginBottom=e}return void 0!==t.paddingTop&&(n.paddingTop=parseSize(t.paddingTop)),void 0!==t.paddingBottom&&(n.paddingBottom=parseSize(t.paddingBottom)),void 0!==t.paddingLeft&&(n.paddingLeft=parseSize(t.paddingLeft)),void 0!==t.paddingRight&&(n.paddingRight=parseSize(t.paddingRight)),void 0!==t.marginTop&&(n.marginTop=parseSize(t.marginTop)),void 0!==t.marginBottom&&(n.marginBottom=parseSize(t.marginBottom)),void 0!==t.marginLeft&&(n.marginLeft=parseSize(t.marginLeft)),void 0!==t.marginRight&&(n.marginRight=parseSize(t.marginRight)),t.backgroundColor&&(n.backgroundColor=t.backgroundColor),void 0!==t.borderRadius&&(n.borderRadius=t.borderRadius),void 0!==t.width&&(n.width=t.width),void 0!==t.height&&(n.height=t.height),n}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments(e,t){const i=[];for(const a of t){if(!a.value)continue;const t=new RegExp(escapeRegExp(a.value),"gi");for(const r of e.matchAll(t)){if(null==r.index)continue;const e=r[0];e&&i.push({start:r.index,end:r.index+e.length,value:e,color:a.color,page:a.page})}}if(0===i.length)return{segments:[{type:"text",value:e}],matchCount:0};i.sort((e,t)=>{if(e.start!==t.start)return e.start-t.start;const i=e.end-e.start;return t.end-t.start-i});const a=[];let r=-1;for(const e of i)e.start>=r&&(a.push(e),r=e.end);const n=[];let o=0;for(const{start:t,end:i,value:r,color:s,page:l}of a)t>o&&n.push({type:"text",value:e.slice(o,t)}),n.push({type:"match",value:r,color:s,page:l}),o=i;return o<e.length&&n.push({type:"text",value:e.slice(o)}),{segments:n,matchCount:a.length}}function OnboardFooter({node:e}){useLogRender("OnboardFooter"),e=useNode(e);const t=e?.sourceType??e.type??"OnboardFooter",{appConfig:i}=useRenderStore(e=>({appConfig:e.appConfig})),{localication:a,defaultLanguage:r}=i,n=e=>e?a?.[r??"en"]?.[e]??e:"",o=n(e?.attributes?.textLocalizationKey),s=extractTextStyle(e),l=useMemo(()=>extractViewStyle(e),[e]),c=e=>({color:e,cursor:e?"pointer":void 0}),d=parseSize(e?.attributes?.paddingHorizontal);return jsx("div",{"attribute-key":t,style:{...l,...s,paddingLeft:d,paddingRight:d,textAlign:"center"},children:!!o&&(()=>{const t=n(e?.attributes?.linkedWordFirstLocalizationKey),i=n(e?.attributes?.linkedWordSecondLocalizationKey),{segments:a,matchCount:r}=buildSegments(o,[{value:t,color:e?.attributes?.linkedWordFirstColor,page:e?.attributes?.linkedWordFirstPage},{value:i,color:e?.attributes?.linkedWordSecondColor,page:e?.attributes?.linkedWordSecondPage}]),s=e?.attributes?.color;return jsxs(Fragment,{children:[jsx("p",{style:{color:s,alignItems:"center"},children:a.map((e,t)=>"text"===e.type?jsx("span",{children:e.value},t):jsx("span",{style:c(e.color),onClick:()=>{e.page},children:e.value},t))}),0===r&&jsxs("div",{children:[e?.attributes?.linkedWordFirstLocalizationKey&&jsx("span",{style:c(e?.attributes?.linkedWordFirstColor),onClick:()=>{},children:t}),e?.attributes?.linkedWordSecondLocalizationKey&&jsx("span",{style:c(e?.attributes?.linkedWordSecondColor),onClick:()=>{},children:i})]})]})})()})}var OnboardFooter$1=React__default.memo(OnboardFooter),lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var i,a,r=e.length;for(i=0;i<r;i+=1)for(var n in a=e[i].prototype)Object.prototype.hasOwnProperty.call(a,n)&&(t.prototype[n]=a[n])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,i=this.audios.length;for(t=0;t<i;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 i,a=0,r=[];switch(e){case"int16":case"uint8c":i=1;break;default:i=1.1}for(a=0;a<t;a+=1)r.push(i);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,i){return"float32"===t?new Float32Array(i):"int16"===t?new Int16Array(i):"uint8c"===t?new Uint8ClampedArray(i):e(t,i)}: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),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=t.length;for(e=0;e<i;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,i=createSizedArray(e.length),a=e.length;for(t=0;t<a;t+=1)i[t]=Math.abs(e[t]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,i,a){this.type=e,this.currentTime=t,this.totalTime=i,this.direction=a<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,i,a){this.type=e,this.currentLoop=i,this.totalLoops=t,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,t,i){this.type=e,this.firstFrame=t,this.totalFrames=i}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,i){var a,r,n,o,s,l,c,d;switch(l=i*(1-t),c=i*(1-(s=6*e-(o=Math.floor(6*e)))*t),d=i*(1-(1-s)*t),o%6){case 0:a=i,r=d,n=l;break;case 1:a=c,r=i,n=l;break;case 2:a=l,r=i,n=d;break;case 3:a=l,r=c,n=i;break;case 4:a=d,r=l,n=i;break;case 5:a=i,r=l,n=c}return[a,r,n]}function RGBtoHSV(e,t,i){var a,r=Math.max(e,t,i),n=Math.min(e,t,i),o=r-n,s=0===r?0:o/r,l=r/255;switch(r){case n:a=0;break;case e:a=t-i+o*(t<i?6:0),a/=6*o;break;case t:a=i-e+2*o,a/=6*o;break;case i:a=e-t+4*o,a/=6*o}return[a,s,l]}function addSaturationToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[1]+=t,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[2]+=t,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[0]+=t/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e,t,i=[];for(e=0;e<256;e+=1)t=e.toString(16),i[e]=1===t.length?"0"+t:t;return function(e,t,a){return e<0&&(e=0),t<0&&(t=0),a<0&&(a=0),"#"+i[e]+i[t]+i[a]}}(),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};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,i=1,a=[],r={onmessage:function(){},postMessage:function(t){e({data:t})}},n={postMessage:function(e){r.onmessage({data:e})}};function o(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),a=URL.createObjectURL(i);return new Worker(a)}return e=t,r}(function(e){if(n.dataManager||(n.dataManager=function(){function e(r,n){var o,s,l,c,d,u,h=r.length;for(s=0;s<h;s+=1)if("ks"in(o=r[s])&&!o.completed){if(o.completed=!0,o.hasMask){var g=o.masksProperties;for(c=g.length,l=0;l<c;l+=1)if(g[l].pt.k.i)a(g[l].pt.k);else for(u=g[l].pt.k.length,d=0;d<u;d+=1)g[l].pt.k[d].s&&a(g[l].pt.k[d].s[0]),g[l].pt.k[d].e&&a(g[l].pt.k[d].e[0])}0===o.ty?(o.layers=t(o.refId,n),e(o.layers,n)):4===o.ty?i(o.shapes):5===o.ty&&p(o)}}function t(e,t){var i=function(e,t){for(var i=0,a=t.length;i<a;){if(t[i].id===e)return t[i];i+=1}return null}(e,t);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(e){var t,r,n;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(n=e[t].ks.k.length,r=0;r<n;r+=1)e[t].ks.k[r].s&&a(e[t].ks.k[r].s[0]),e[t].ks.k[r].e&&a(e[t].ks.k[r].e[0]);else"gr"===e[t].ty&&i(e[t].it)}function a(e){var t,i=e.i.length;for(t=0;t<i;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 r(e,t){var i=t?t.split("."):[100,100,100];return e[0]>i[0]||!(i[0]>e[0])&&(e[1]>i[1]||!(i[1]>e[1])&&(e[2]>i[2]||!(i[2]>e[2])&&null))}var n,o=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function i(e){var i,a=e.length;for(i=0;i<a;i+=1)5===e[i].ty&&t(e[i])}return function(t){if(r(e,t.v)&&(i(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&i(t.assets[a].layers)}}}(),s=(n=[4,7,99],function(e){if(e.chars&&!r(n,e.v)){var t,a=e.chars.length;for(t=0;t<a;t+=1){var o=e.chars[t];o.data&&o.data.shapes&&(i(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.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||(o.data.shapes.push({ty:"no"}),o.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=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function i(e){var i,a=e.length;for(i=0;i<a;i+=1)5===e[i].ty&&t(e[i])}return function(t){if(r(e,t.v)&&(i(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&i(t.assets[a].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var i,a,r,n=e.length;for(i=0;i<n;i+=1)if("gr"===e[i].ty)t(e[i].it);else if("fl"===e[i].ty||"st"===e[i].ty)if(e[i].c.k&&e[i].c.k[0].i)for(r=e[i].c.k.length,a=0;a<r;a+=1)e[i].c.k[a].s&&(e[i].c.k[a].s[0]/=255,e[i].c.k[a].s[1]/=255,e[i].c.k[a].s[2]/=255,e[i].c.k[a].s[3]/=255),e[i].c.k[a].e&&(e[i].c.k[a].e[0]/=255,e[i].c.k[a].e[1]/=255,e[i].c.k[a].e[2]/=255,e[i].c.k[a].e[3]/=255);else e[i].c.k[0]/=255,e[i].c.k[1]/=255,e[i].c.k[2]/=255,e[i].c.k[3]/=255}function i(e){var i,a=e.length;for(i=0;i<a;i+=1)4===e[i].ty&&t(e[i].shapes)}return function(t){if(r(e,t.v)&&(i(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&i(t.assets[a].layers)}}}(),d=function(){var e=[4,4,18];function t(e){var i,a,r;for(i=e.length-1;i>=0;i-=1)if("sh"===e[i].ty)if(e[i].ks.k.i)e[i].ks.k.c=e[i].closed;else for(r=e[i].ks.k.length,a=0;a<r;a+=1)e[i].ks.k[a].s&&(e[i].ks.k[a].s[0].c=e[i].closed),e[i].ks.k[a].e&&(e[i].ks.k[a].e[0].c=e[i].closed);else"gr"===e[i].ty&&t(e[i].it)}function i(e){var i,a,r,n,o,s,l=e.length;for(a=0;a<l;a+=1){if((i=e[a]).hasMask){var c=i.masksProperties;for(n=c.length,r=0;r<n;r+=1)if(c[r].pt.k.i)c[r].pt.k.c=c[r].cl;else for(s=c[r].pt.k.length,o=0;o<s;o+=1)c[r].pt.k[o].s&&(c[r].pt.k[o].s[0].c=c[r].cl),c[r].pt.k[o].e&&(c[r].pt.k[o].e[0].c=c[r].cl)}4===i.ty&&t(i.shapes)}}return function(t){if(r(e,t.v)&&(i(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&i(t.assets[a].layers)}}}();function p(e){0===e.t.a.length&&e.t.p}var u={completeData:function(i){i.__complete||(c(i),o(i),s(i),l(i),d(i),e(i.layers,i.assets),function(i,a){if(i){var r=0,n=i.length;for(r=0;r<n;r+=1)1===i[r].t&&(i[r].data.layers=t(i[r].data.refId,a),e(i[r].data.layers,a))}}(i.chars,i.assets),i.__complete=!0)}};return u.checkColors=c,u.checkChars=s,u.checkPathProperties=l,u.checkShapes=d,u.completeLayers=e,u}()),n.assetLoader||(n.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,i,a,r){var n,o=new XMLHttpRequest;try{o.responseType="json"}catch(e){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)n=e(o),a(n);else try{n=e(o),a(n)}catch(e){r&&r(e)}};try{o.open(["G","E","T"].join(""),t,!0)}catch(e){o.open(["G","E","T"].join(""),i+"/"+t,!0)}o.send()}}}()),"loadAnimation"===e.data.type)n.assetLoader.load(e.data.path,e.data.fullPath,function(t){n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})},function(){n.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&n.assetLoader.load(e.data.path,e.data.fullPath,function(t){n.postMessage({id:e.data.id,payload:t,status:"success"})},function(){n.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,i=t.id,r=a[i];a[i]=null,"success"===t.status?r.onComplete(t.payload):r.onError&&r.onError()})}function s(e,t){var r="processId_"+(i+=1);return a[r]={onComplete:e,onError:t},r}return{loadAnimation:function(e,i,a){o();var r=s(i,a);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(e,i,a){o();var r=s(i,a);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(e,i,a){o();var r=s(i,a);t.postMessage({type:"complete",animation:e,id:r})}}}(),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 i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(e,t,i){var a="";if(e.e)a=e.p;else if(t){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),a=t+r}else a=i,a+=e.u?e.u:"",a+=e.p;return a}function r(e){var t=0,i=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(i)),t+=1}.bind(this),50)}function n(e){var t={assetData:e},i=a(e,this.assetsPath,this.path);return dataManager.loadData(i,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var i;this.imagesLoadedCb=t;var a=e.length;for(i=0;i<a;i+=1)e[i].layers||(e[i].t&&"seq"!==e[i].t?3===e[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[i]))):(this.totalImages+=1,this.images.push(this._createImageData(e[i]))))},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,i=this.images.length;t<i;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var i=a(t,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),r.src=i;var n={img:r,assetData:t};return n},createImageData:function(t){var i=a(t,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var n={img:r,assetData:t};return n},imageLoaded:t,footageLoaded:i,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var i=this._cbs[e],a=0;a<i.length;a+=1)i[a](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var i=0,a=this._cbs[e].length;i<a;)this._cbs[e][i]===t&&(this._cbs[e].splice(i,1),i-=1,a-=1),i+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,i=e.split("\r\n"),a={},r=0,n=0;n<i.length;n+=1)2===(t=i[n].split(":")).length&&(a[t[0]]=t[1].trim(),r+=1);if(0===r)throw new Error;return a}return function(t){for(var i=[],a=0;a<t.length;a+=1){var r=t[a],n={time:r.tm,duration:r.dr};try{n.payload=JSON.parse(t[a].cm)}catch(i){try{n.payload=e(t[a].cm)}catch(e){n.payload={name:t[a].cm}}}i.push(n)}return i}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,i=this.compositions.length;t<i;){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 i=getRenderer(t);this.renderer=new i(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 i={wrapper:e,animationData:t},a=e.attributes;i.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",i.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";"false"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,10));var n=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:!a.getNamedItem("bm-autoplay")||a.getNamedItem("bm-autoplay").value;i.autoplay="false"!==n,i.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"","false"===(a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):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,i,a=this.animationData.layers,r=a.length,n=e.layers,o=n.length;for(i=0;i<o;i+=1)for(t=0;t<r;){if(a[t].id===n[i].id){a[t]=n[i];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(r=e.assets.length,t=0;t<r;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 i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(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 i="number"==typeof e?e:void 0,a="number"==typeof t?t:void 0;this.renderer.updateContainerSize(i,a)},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,i=0;i<this.markers.length;i+=1)if((t=this.markers[i]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,i){if(!i||this.name===i){var a=Number(e);if(isNaN(a)){var r=this.getMarkerData(e);r&&this.goToAndStop(r.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,i){if(!i||this.name===i){var a=Number(e);if(isNaN(a)){var r=this.getMarkerData(e);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(a,t,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,i=!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)||(i=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),i&&(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 i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>t&&(i=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var i,a=e.length;for(i=0;i<a;i+=1)this.segments.push(e[i])}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 i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),t=this.assetsPath+i}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,i=this.assets.length;t<i;){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,i){try{this.renderer.getElementByPath(e).updateDocumentData(t,i)}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=[],i=0,a=0,r=0,n=!0,o=!1;function s(e){for(var i=0,r=e.target;i<a;)t[i].animation===r&&(t.splice(i,1),i-=1,a-=1,r.isPaused||d()),i+=1}function l(e,i){if(!e)return null;for(var r=0;r<a;){if(t[r].elem===e&&null!==t[r].elem)return t[r].animation;r+=1}var n=new AnimationItem;return p(n,e),n.setData(e,i),n}function c(){r+=1,g()}function d(){r-=1}function p(e,i){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",d),t.push({elem:i,animation:e}),a+=1}function u(e){var s,l=e-i;for(s=0;s<a;s+=1)t[s].animation.advanceTime(l);i=e,r&&!o?window.requestAnimationFrame(u):n=!0}function h(e){i=e,window.requestAnimationFrame(u)}function g(){!o&&r&&n&&(window.requestAnimationFrame(h),n=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,i){var r;for(r=0;r<a;r+=1)t[r].animation.setSpeed(e,i)},e.setDirection=function(e,i){var r;for(r=0;r<a;r+=1)t[r].animation.setDirection(e,i)},e.play=function(e){var i;for(i=0;i<a;i+=1)t[i].animation.play(e)},e.pause=function(e){var i;for(i=0;i<a;i+=1)t[i].animation.pause(e)},e.stop=function(e){var i;for(i=0;i<a;i+=1)t[i].animation.stop(e)},e.togglePause=function(e){var i;for(i=0;i<a;i+=1)t[i].animation.togglePause(e)},e.searchAnimations=function(e,t,i){var a,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=r.length;for(a=0;a<n;a+=1)i&&r[a].setAttribute("data-bm-type",i),l(r[a],e);if(t&&0===n){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",i),o.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<a;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,i,r){var n;for(n=0;n<a;n+=1)t[n].animation.goToAndStop(e,i,r)},e.destroy=function(e){var i;for(i=a-1;i>=0;i-=1)t[i].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,g()},e.setVolume=function(e,i){var r;for(r=0;r<a;r+=1)t[r].animation.setVolume(e,i)},e.mute=function(e){var i;for(i=0;i<a;i+=1)t[i].animation.mute(e)},e.unmute=function(e){var i;for(i=0;i<a;i+=1)t[i].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,i=t.length,a=[];for(e=0;e<i;e+=1)a.push(t[e].animation);return a},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,i,a,r,n){var o=n||("bez_"+e+"_"+i+"_"+a+"_"+r).replace(/\./g,"p");if(t[o])return t[o];var s=new d([e,i,a,r]);return t[o]=s,s}},t={},i=11,a=1/(i-1),r="function"==typeof Float32Array;function n(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,i){return((n(t,i)*e+o(t,i))*e+s(t))*e}function c(e,t,i){return 3*n(t,i)*e*e+2*o(t,i)*e+s(t)}function d(e){this._p=e,this._mSampleValues=r?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(e){var t=this._p[0],i=this._p[1],a=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),t===i&&a===r?e:0===e?0:1===e?1:l(this._getTForX(e),i,r)},_precompute:function(){var e=this._p[0],t=this._p[1],i=this._p[2],a=this._p[3];this._precomputed=!0,e===t&&i===a||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],r=0;r<i;++r)this._mSampleValues[r]=l(r*a,e,t)},_getTForX:function(e){for(var t=this._p[0],r=this._p[2],n=this._mSampleValues,o=0,s=1,d=i-1;s!==d&&n[s]<=e;++s)o+=a;var p=o+(e-n[--s])/(n[s+1]-n[s])*a,u=c(p,t,r);return u>=.001?function(e,t,i,a){for(var r=0;r<4;++r){var n=c(t,i,a);if(0===n)return t;t-=(l(t,i,a)-e)/n}return t}(e,p,t,r):0===u?p:function(e,t,i,a,r){var n,o,s=0;do{(n=l(o=t+(i-t)/2,a,r)-e)>0?i=o:t=o}while(Math.abs(n)>1e-7&&++s<10);return o}(e,o,o+a,t,r)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,i){var a=0,r=e,n=createSizedArray(r);return{newElement:function(){return a?n[a-=1]:t()},release:function(e){a===r&&(n=pooling.double(n),r*=2),i&&i(e),n[a]=e,a+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,i=e.lengths.length;for(t=0;t<i;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,i,a,r,n){var o=e*a+t*r+i*n-r*a-n*e-i*t;return o>-.001&&o<.001}var i=function(e,t,i,a){var r,n,o,s,l,c,d=getDefaultCurveSegments(),p=0,u=[],h=[],g=bezierLengthPool.newElement();for(o=i.length,r=0;r<d;r+=1){for(l=r/(d-1),c=0,n=0;n<o;n+=1)s=bmPow(1-l,3)*e[n]+3*bmPow(1-l,2)*l*i[n]+3*(1-l)*bmPow(l,2)*a[n]+bmPow(l,3)*t[n],u[n]=s,null!==h[n]&&(c+=bmPow(u[n]-h[n],2)),h[n]=u[n];c&&(p+=c=bmSqrt(c)),g.percents[r]=l,g.lengths[r]=p}return g.addedLength=p,g};function a(e){this.segmentLength=0,this.points=new Array(e)}function r(e,t){this.partialLength=e,this.point=t}var n,o=(n={},function(e,i,o,s){var l=(e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!n[l]){var c,d,p,u,h,g,m,f=getDefaultCurveSegments(),y=0,b=null;2===e.length&&(e[0]!==i[0]||e[1]!==i[1])&&t(e[0],e[1],i[0],i[1],e[0]+o[0],e[1]+o[1])&&t(e[0],e[1],i[0],i[1],i[0]+s[0],i[1]+s[1])&&(f=2);var v=new a(f);for(p=o.length,c=0;c<f;c+=1){for(m=createSizedArray(p),h=c/(f-1),g=0,d=0;d<p;d+=1)u=bmPow(1-h,3)*e[d]+3*bmPow(1-h,2)*h*(e[d]+o[d])+3*(1-h)*bmPow(h,2)*(i[d]+s[d])+bmPow(h,3)*i[d],m[d]=u,null!==b&&(g+=bmPow(m[d]-b[d],2));y+=g=bmSqrt(g),v.points[c]=new r(g,m),b=m}v.segmentLength=y,n[l]=v}return n[l]});function s(e,t){var i=t.percents,a=t.lengths,r=i.length,n=bmFloor((r-1)*e),o=e*t.addedLength,s=0;if(n===r-1||0===n||o===a[n])return i[n];for(var l=a[n]>o?-1:1,c=!0;c;)if(a[n]<=o&&a[n+1]>o?(s=(o-a[n])/(a[n+1]-a[n]),c=!1):n+=l,n<0||n>=r-1){if(n===r-1)return i[n];c=!1}return i[n]+(i[n+1]-i[n])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,a=segmentsLengthPool.newElement(),r=e.c,n=e.v,o=e.o,s=e.i,l=e._length,c=a.lengths,d=0;for(t=0;t<l-1;t+=1)c[t]=i(n[t],n[t+1],o[t],s[t+1]),d+=c[t].addedLength;return r&&l&&(c[t]=i(n[t],n[0],o[t],s[0]),d+=c[t].addedLength),a.totalLength=d,a},getNewSegment:function(t,i,a,r,n,o,c){n<0?n=0:n>1&&(n=1);var d,p=s(n,c),u=s(o=o>1?1:o,c),h=t.length,g=1-p,m=1-u,f=g*g*g,y=p*g*g*3,b=p*p*g*3,v=p*p*p,_=g*g*m,x=p*g*m+g*p*m+g*g*u,S=p*p*m+g*p*u+p*g*u,C=p*p*u,k=g*m*m,w=p*m*m+g*u*m+g*m*u,E=p*u*m+g*u*u+p*m*u,P=p*u*u,T=m*m*m,A=u*m*m+m*u*m+m*m*u,D=u*u*m+m*u*u+u*m*u,F=u*u*u;for(d=0;d<h;d+=1)l[4*d]=e.round(1e3*(f*t[d]+y*a[d]+b*r[d]+v*i[d]))/1e3,l[4*d+1]=e.round(1e3*(_*t[d]+x*a[d]+S*r[d]+C*i[d]))/1e3,l[4*d+2]=e.round(1e3*(k*t[d]+w*a[d]+E*r[d]+P*i[d]))/1e3,l[4*d+3]=e.round(1e3*(T*t[d]+A*a[d]+D*r[d]+F*i[d]))/1e3;return l},getPointInSegment:function(t,i,a,r,n,o){var l=s(n,o),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*a[0]+(l*l*c+c*l*l+l*c*l)*r[0]+l*l*l*i[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*a[1]+(l*l*c+c*l*l+l*c*l)*r[1]+l*l*l*i[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(i,a,r,n,o,s,l,c,d){if(0===r&&0===s&&0===d)return t(i,a,n,o,l,c);var p,u=e.sqrt(e.pow(n-i,2)+e.pow(o-a,2)+e.pow(s-r,2)),h=e.sqrt(e.pow(l-i,2)+e.pow(c-a,2)+e.pow(d-r,2)),g=e.sqrt(e.pow(l-n,2)+e.pow(c-o,2)+e.pow(d-s,2));return(p=u>h?u>g?u-h-g:g-h-u:g>h?g-h-u:h-u-g)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var i,a=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var r,n,o,s,l,c,d,p,u,h=t.lastIndex,g=h,m=this.keyframes.length-1,f=!0;f;){if(r=this.keyframes[g],n=this.keyframes[g+1],g===m-1&&e>=n.t-a){r.h&&(r=n),h=0;break}if(n.t-a>e){h=g;break}g<m-1?g+=1:(h=0,f=!1)}o=this.keyframesMetadata[g]||{};var y,b=n.t-a,v=r.t-a;if(r.to){o.bezierData||(o.bezierData=bez.buildBezierData(r.s,n.s||r.e,r.to,r.ti));var _=o.bezierData;if(e>=b||e<v){var x=e>=b?_.points.length-1:0;for(l=_.points[x].point.length,s=0;s<l;s+=1)i[s]=_.points[x].point[s]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,o.__fnct=u),c=u((e-v)/(b-v));var S,C=_.segmentLength*c,k=t.lastFrame<e&&t._lastKeyframeIndex===g?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===g?t._lastPoint:0,f=!0,d=_.points.length;f;){if(k+=_.points[p].partialLength,0===C||0===c||p===_.points.length-1){for(l=_.points[p].point.length,s=0;s<l;s+=1)i[s]=_.points[p].point[s];break}if(C>=k&&C<k+_.points[p+1].partialLength){for(S=(C-k)/_.points[p+1].partialLength,l=_.points[p].point.length,s=0;s<l;s+=1)i[s]=_.points[p].point[s]+(_.points[p+1].point[s]-_.points[p].point[s])*S;break}p<d-1?p+=1:f=!1}t._lastPoint=p,t._lastAddedLength=k-_.points[p].partialLength,t._lastKeyframeIndex=g}}else{var w,E,P,T,A;if(m=r.s.length,y=n.s||r.e,this.sh&&1!==r.h)e>=b?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):e<=v?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):quaternionToEuler(i,slerp(createQuaternion(r.s),createQuaternion(y),(e-v)/(b-v)));else for(g=0;g<m;g+=1)1!==r.h&&(e>=b?c=1:e<v?c=0:(r.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[g]?u=o.__fnct[g]:(w=void 0===r.o.x[g]?r.o.x[0]:r.o.x[g],E=void 0===r.o.y[g]?r.o.y[0]:r.o.y[g],P=void 0===r.i.x[g]?r.i.x[0]:r.i.x[g],T=void 0===r.i.y[g]?r.i.y[0]:r.i.y[g],u=BezierFactory.getBezierEasing(w,E,P,T).get,o.__fnct[g]=u)):o.__fnct?u=o.__fnct:(w=r.o.x,E=r.o.y,P=r.i.x,T=r.i.y,u=BezierFactory.getBezierEasing(w,E,P,T).get,r.keyframeMetadata=u),c=u((e-v)/(b-v)))),y=n.s||r.e,A=1===r.h?r.s[g]:r.s[g]+(y[g]-r.s[g])*c,"multidimensional"===this.propType?i[g]=A:i=A}return t.lastIndex=h,i}function slerp(e,t,i){var a,r,n,o,s,l=[],c=e[0],d=e[1],p=e[2],u=e[3],h=t[0],g=t[1],m=t[2],f=t[3];return(r=c*h+d*g+p*m+u*f)<0&&(r=-r,h=-h,g=-g,m=-m,f=-f),1-r>1e-6?(a=Math.acos(r),n=Math.sin(a),o=Math.sin((1-i)*a)/n,s=Math.sin(i*a)/n):(o=1-i,s=i),l[0]=o*c+s*h,l[1]=o*d+s*g,l[2]=o*p+s*m,l[3]=o*u+s*f,l}function quaternionToEuler(e,t){var i=t[0],a=t[1],r=t[2],n=t[3],o=Math.atan2(2*a*n-2*i*r,1-2*a*a-2*r*r),s=Math.asin(2*i*a+2*r*n),l=Math.atan2(2*i*n-2*a*r,1-2*i*i-2*r*r);e[0]=o/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,i=e[1]*degToRads,a=e[2]*degToRads,r=Math.cos(t/2),n=Math.cos(i/2),o=Math.cos(a/2),s=Math.sin(t/2),l=Math.sin(i/2),c=Math.sin(a/2);return[s*l*o+r*n*c,s*n*o+r*l*c,r*l*o-s*n*c,r*n*o-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(e,this._caching);this.pv=a}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 i=0,a=this.v.length;i<a;)t=e[i]*this.mult,mathAbs(this.v[i]-t)>1e-5&&(this.v[i]=t,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),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,i,a){this.propType="unidimensional",this.mult=i||1,this.data=t,this.v=i?t.k*i:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,i,a){var r;this.propType="multidimensional",this.mult=i||1,this.data=t,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),r=0;r<n;r+=1)this.v[r]=t.k[r]*this.mult,this.pv[r]=t.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,i,a){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=i||1,this.elem=e,this.container=a,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,i,a){var r;this.propType="multidimensional";var n,o,s,l,c=t.k.length;for(r=0;r<c-1;r+=1)t.k[r].to&&t.k[r].s&&t.k[r+1]&&t.k[r+1].s&&(n=t.k[r].s,o=t.k[r+1].s,s=t.k[r].to,l=t.k[r].ti,(2===n.length&&(n[0]!==o[0]||n[1]!==o[1])&&bez.pointOnLine2D(n[0],n[1],o[0],o[1],n[0]+s[0],n[1]+s[1])&&bez.pointOnLine2D(n[0],n[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===n.length&&(n[0]!==o[0]||n[1]!==o[1]||n[2]!==o[2])&&bez.pointOnLine3D(n[0],n[1],n[2],o[0],o[1],o[2],n[0]+s[0],n[1]+s[1],n[2]+s[2])&&bez.pointOnLine3D(n[0],n[1],n[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(t.k[r].to=null,t.k[r].ti=null),n[0]===o[0]&&n[1]===o[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===n.length||n[2]===o[2]&&0===s[2]&&0===l[2])&&(t.k[r].to=null,t.k[r].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=i||1,this.elem=e,this.container=a,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),r=0;r<d;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(e,t,i,a,r){var n;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])n=new MultiDimensionalProperty(e,t,a,r);else switch(i){case 0:n=new KeyframedValueProperty(e,t,a,r);break;case 1:n=new KeyframedMultidimensionalProperty(e,t,a,r)}else n=new ValueProperty(e,t,a,r);return n.effectsSequence.length&&r.addDynamicProperty(n),n}},ob),ob;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 i=0;i<t;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=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,i,a,r){var n;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[a]||n[a]&&!r)&&(n[a]=pointPool.newElement()),n[a][0]=e,n[a][1]=t},ShapePath.prototype.setTripleAt=function(e,t,i,a,r,n,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(i,a,"o",o,s),this.setXYAt(r,n,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,i=this.o,a=this.i,r=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),r=1);var n,o=this._length-1,s=this._length;for(n=r;n<s;n+=1)e.setTripleAt(t[o][0],t[o][1],a[o][0],a[o][1],i[o][0],i[o][1],n,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,i=e._length;for(t=0;t<i;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,i=factory.newElement(),a=void 0===e._length?e.v.length:e._length;for(i.setLength(a),i.c=e.c,t=0;t<a;t+=1)i.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 i},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=function(){var e={newShapeCollection:function(){return t?a[t-=1]:new ShapeCollection},release:function(e){var r,n=e._length;for(r=0;r<n;r+=1)shapePool.release(e.shapes[r]);e._length=0,t===i&&(a=pooling.double(a),i*=2),a[t]=e,t+=1}},t=0,i=4,a=createSizedArray(i);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,i){var a,r,n,o,s,l,c,d,p,u=i.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)a=h[0].s[0],n=!0,u=0;else if(e>=h[h.length-1].t-this.offsetTime)a=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],n=!0;else{for(var g,m,f,y=u,b=h.length-1,v=!0;v&&(g=h[y],!((m=h[y+1]).t-this.offsetTime>e));)y<b-1?y+=1:v=!1;if(f=this.keyframesMetadata[y]||{},u=y,!(n=1===g.h)){if(e>=m.t-this.offsetTime)d=1;else if(e<g.t-this.offsetTime)d=0;else{var _;f.__fnct?_=f.__fnct:(_=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,f.__fnct=_),d=_((e-(g.t-this.offsetTime))/(m.t-this.offsetTime-(g.t-this.offsetTime)))}r=m.s?m.s[0]:g.e[0]}a=g.s[0]}for(l=t._length,c=a.i[0].length,i.lastIndex=u,o=0;o<l;o+=1)for(s=0;s<c;s+=1)p=n?a.i[o][s]:a.i[o][s]+(r.i[o][s]-a.i[o][s])*d,t.i[o][s]=p,p=n?a.o[o][s]:a.o[o][s]+(r.o[o][s]-a.o[o][s])*d,t.o[o][s]=p,p=n?a.v[o][s]:a.v[o][s]+(r.v[o][s]-a.v[o][s])*d,t.v[o][s]=p}function i(){var t=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==e&&(r<i&&t<i||r>a&&t>a)||(this._caching.lastIndex=r<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function a(){this.paths=this.localShapeCollection}function r(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var i,a=e._length;for(i=0;i<a;i+=1)if(e.v[i][0]!==t.v[i][0]||e.v[i][1]!==t.v[i][1]||e.o[i][0]!==t.o[i][0]||e.o[i][1]!==t.o[i][1]||e.i[i][0]!==t.i[i][0]||e.i[i][1]!==t.i[i][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(t=0;t<i;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(e,t,i){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 r=3===i?t.pt.k:t.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,r,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=t,o.prototype.getValue=n,o.prototype.setVValue=r,o.prototype.addEffect=s,l.prototype.getValue=n,l.prototype.interpolateShape=t,l.prototype.setVValue=r,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:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],i=this.p.v[1],a=this.s.v[0]/2,r=this.s.v[1]/2,n=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=i-r,o.v[1][0]=n?t+a:t-a,o.v[1][1]=i,o.v[2][0]=t,o.v[2][1]=i+r,o.v[3][0]=n?t-a:t+a,o.v[3][1]=i,o.i[0][0]=n?t-a*e:t+a*e,o.i[0][1]=i-r,o.i[1][0]=n?t+a:t-a,o.i[1][1]=i-r*e,o.i[2][0]=n?t+a*e:t-a*e,o.i[2][1]=i+r,o.i[3][0]=n?t-a:t+a,o.i[3][1]=i+r*e,o.o[0][0]=n?t+a*e:t-a*e,o.o[0][1]=i-r,o.o[1][0]=n?t+a:t-a,o.o[1][1]=i+r*e,o.o[2][0]=n?t-a*e:t+a*e,o.o[2][1]=i+r,o.o[3][0]=n?t-a:t+a,o.o[3][1]=i-r*e}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,i,a,r=2*Math.floor(this.pt.v),n=2*Math.PI/r,o=!0,s=this.or.v,l=this.ir.v,c=this.os.v,d=this.is.v,p=2*Math.PI*s/(2*r),u=2*Math.PI*l/(2*r),h=-Math.PI/2;h+=this.r.v;var g=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<r;e+=1){i=o?c:d,a=o?p:u;var m=(t=o?s:l)*Math.cos(h),f=t*Math.sin(h),y=0===m&&0===f?0:f/Math.sqrt(m*m+f*f),b=0===m&&0===f?0:-m/Math.sqrt(m*m+f*f);m+=+this.p.v[0],f+=+this.p.v[1],this.v.setTripleAt(m,f,m-y*a*i*g,f-b*a*i*g,m+y*a*i*g,f+b*a*i*g,e,!0),o=!o,h+=n*g}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),i=2*Math.PI/t,a=this.or.v,r=this.os.v,n=2*Math.PI*a/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=a*Math.cos(o),c=a*Math.sin(o),d=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=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-d*n*r*s,c-p*n*r*s,l+d*n*r*s,c+p*n*r*s,e,!0),o+=i*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=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],i=this.s.v[0]/2,a=this.s.v[1]/2,r=bmMin(i,a,this.r.v),n=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+i,t-a+r,e+i,t-a+r,e+i,t-a+n,0,!0),this.v.setTripleAt(e+i,t+a-r,e+i,t+a-n,e+i,t+a-r,1,!0),0!==r?(this.v.setTripleAt(e+i-r,t+a,e+i-r,t+a,e+i-n,t+a,2,!0),this.v.setTripleAt(e-i+r,t+a,e-i+n,t+a,e-i+r,t+a,3,!0),this.v.setTripleAt(e-i,t+a-r,e-i,t+a-r,e-i,t+a-n,4,!0),this.v.setTripleAt(e-i,t-a+r,e-i,t-a+n,e-i,t-a+r,5,!0),this.v.setTripleAt(e-i+r,t-a,e-i+r,t-a,e-i+n,t-a,6,!0),this.v.setTripleAt(e+i-r,t-a,e+i-n,t-a,e+i-r,t-a,7,!0)):(this.v.setTripleAt(e-i,t+a,e-i+n,t+a,e-i,t+a,2),this.v.setTripleAt(e-i,t-a,e-i,t-a+n,e-i,t-a,3))):(this.v.setTripleAt(e+i,t-a+r,e+i,t-a+n,e+i,t-a+r,0,!0),0!==r?(this.v.setTripleAt(e+i-r,t-a,e+i-r,t-a,e+i-n,t-a,1,!0),this.v.setTripleAt(e-i+r,t-a,e-i+n,t-a,e-i+r,t-a,2,!0),this.v.setTripleAt(e-i,t-a+r,e-i,t-a+r,e-i,t-a+n,3,!0),this.v.setTripleAt(e-i,t+a-r,e-i,t+a-n,e-i,t+a-r,4,!0),this.v.setTripleAt(e-i+r,t+a,e-i+r,t+a,e-i+n,t+a,5,!0),this.v.setTripleAt(e+i-r,t+a,e+i-n,t+a,e+i-r,t+a,6,!0),this.v.setTripleAt(e+i,t+a-r,e+i,t+a-r,e+i,t+a-n,7,!0)):(this.v.setTripleAt(e-i,t-a,e-i+n,t-a,e-i,t-a,1,!0),this.v.setTripleAt(e-i,t+a,e-i,t+a-n,e-i,t+a,2,!0),this.v.setTripleAt(e+i,t+a,e+i-n,t+a,e+i,t+a,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],e),e}(),u={getShapeProp:function(e,t,i){var a;return 3===i||4===i?a=(3===i?t.pt:t.ks).k.length?new l(e,t,i):new o(e,t,i):5===i?a=new p(e,t):6===i?a=new c(e,t):7===i&&(a=new d(e,t)),a.k&&e.addDynamicProperty(a),a},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var e=Math.cos,t=Math.sin,i=Math.tan,a=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(i){if(0===i)return this;var a=e(i),r=t(i);return this._t(a,-r,0,0,r,a,0,0,0,0,1,0,0,0,0,1)}function o(i){if(0===i)return this;var a=e(i),r=t(i);return this._t(1,0,0,0,0,a,-r,0,0,r,a,0,0,0,0,1)}function s(i){if(0===i)return this;var a=e(i),r=t(i);return this._t(a,0,r,0,0,1,0,0,-r,0,a,0,0,0,0,1)}function l(i){if(0===i)return this;var a=e(i),r=t(i);return this._t(a,-r,0,0,r,a,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(i(e),i(t))}function p(a,r){var n=e(r),o=t(r);return this._t(n,o,0,0,-o,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(a),1,0,0,0,0,1,0,0,0,0,1)._t(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1)}function u(e,t,i){return i||0===i||(i=1),1===e&&1===t&&1===i?this:this._t(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1)}function h(e,t,i,a,r,n,o,s,l,c,d,p,u,h,g,m){return this.props[0]=e,this.props[1]=t,this.props[2]=i,this.props[3]=a,this.props[4]=r,this.props[5]=n,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=d,this.props[11]=p,this.props[12]=u,this.props[13]=h,this.props[14]=g,this.props[15]=m,this}function g(e,t,i){return i=i||0,0!==e||0!==t||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,i,1):this}function m(e,t,i,a,r,n,o,s,l,c,d,p,u,h,g,m){var f=this.props;if(1===e&&0===t&&0===i&&0===a&&0===r&&1===n&&0===o&&0===s&&0===l&&0===c&&1===d&&0===p)return f[12]=f[12]*e+f[15]*u,f[13]=f[13]*n+f[15]*h,f[14]=f[14]*d+f[15]*g,f[15]*=m,this._identityCalculated=!1,this;var y=f[0],b=f[1],v=f[2],_=f[3],x=f[4],S=f[5],C=f[6],k=f[7],w=f[8],E=f[9],P=f[10],T=f[11],A=f[12],D=f[13],F=f[14],M=f[15];return f[0]=y*e+b*r+v*l+_*u,f[1]=y*t+b*n+v*c+_*h,f[2]=y*i+b*o+v*d+_*g,f[3]=y*a+b*s+v*p+_*m,f[4]=x*e+S*r+C*l+k*u,f[5]=x*t+S*n+C*c+k*h,f[6]=x*i+S*o+C*d+k*g,f[7]=x*a+S*s+C*p+k*m,f[8]=w*e+E*r+P*l+T*u,f[9]=w*t+E*n+P*c+T*h,f[10]=w*i+E*o+P*d+T*g,f[11]=w*a+E*s+P*p+T*m,f[12]=A*e+D*r+F*l+M*u,f[13]=A*t+D*n+F*c+M*h,f[14]=A*i+D*o+F*d+M*g,f[15]=A*a+D*s+F*p+M*m,this._identityCalculated=!1,this}function f(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 b(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function v(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function x(e,t,i){return{x:e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]}}function S(e,t,i){return e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12]}function C(e,t,i){return e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13]}function k(e,t,i){return e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]}function w(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,i=-this.props[1]/e,a=-this.props[4]/e,r=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=i,s.props[4]=a,s.props[5]=r,s.props[12]=n,s.props[13]=o,s}function E(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function P(e){var t,i=e.length,a=[];for(t=0;t<i;t+=1)a[t]=E(e[t]);return a}function T(e,t,i){var a=createTypedArray("float32",6);if(this.isIdentity())a[0]=e[0],a[1]=e[1],a[2]=t[0],a[3]=t[1],a[4]=i[0],a[5]=i[1];else{var r=this.props[0],n=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];a[0]=e[0]*r+e[1]*o+l,a[1]=e[0]*n+e[1]*s+c,a[2]=t[0]*r+t[1]*o+l,a[3]=t[0]*n+t[1]*s+c,a[4]=i[0]*r+i[1]*o+l,a[5]=i[0]*n+i[1]*s+c}return a}function A(e,t,i){return this.isIdentity()?[e,t,i]:[e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]]}function D(e,t){if(this.isIdentity())return e+","+t;var i=this.props;return Math.round(100*(e*i[0]+t*i[4]+i[12]))/100+","+Math.round(100*(e*i[1]+t*i[5]+i[13]))/100}function F(){for(var e=0,t=this.props,i="matrix3d(";e<16;)i+=a(1e4*t[e])/1e4,i+=15===e?")":",",e+=1;return i}function M(e){return e<1e-6&&e>0||e>-1e-6&&e<0?a(1e4*e)/1e4:e}function z(){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=r,this.rotate=n,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=d,this.skewFromAxis=p,this.shear=c,this.scale=u,this.setTransform=h,this.translate=g,this.transform=m,this.multiply=f,this.applyToPoint=x,this.applyToX=S,this.applyToY=C,this.applyToZ=k,this.applyToPointArray=A,this.applyToTriplePoints=T,this.applyToPointStringified=D,this.toCSS=F,this.to2dCSS=z,this.clone=v,this.cloneFromProps=_,this.equals=b,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),i=0;i<t.length;i+=1){var a=t[i].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,i){t[e]||(t[e]=i)},e.getModifier=function(e,i,a){return new t[e](i,a)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,i,a,r){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var o,s,l=[],c=n.length;for(o=0;o<c;o+=1){var d,p;(s=n[o]).e*r<a||s.s*r>a+i||(d=s.s*r<=a?0:(s.s*r-a)/i,p=s.e*r>=a+i?1:(s.e*r-a)/i,l.push([d,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,i=e.length;for(t=0;t<i;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,i,a,r;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),(t=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(i=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var o=t;t=i,i=o}t=1e-4*Math.round(1e4*t),i=1e-4*Math.round(1e4*i),this.sValue=t,this.eValue=i}else t=this.sValue,i=this.eValue;var s,l,c,d,p,u=this.shapes.length,h=0;if(i===t)for(r=0;r<u;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===t||0===i&&1===t){if(this._mdf)for(r=0;r<u;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var g,m,f=[];for(r=0;r<u;r+=1)if((g=this.shapes[r]).shape._mdf||this._mdf||e||2===this.m){if(l=(a=g.shape.paths)._length,p=0,!g.shape._mdf&&g.pathsData.length)p=g.totalShapeLength;else{for(c=this.releasePathsData(g.pathsData),s=0;s<l;s+=1)d=bez.getSegmentsLength(a.shapes[s]),c.push(d),p+=d.totalLength;g.totalShapeLength=p,g.pathsData=c}h+=p,g.shape._mdf=!0}else g.shape.paths=g.localShapeCollection;var y,b=t,v=i,_=0;for(r=u-1;r>=0;r-=1)if((g=this.shapes[r]).shape._mdf){for((m=g.localShapeCollection).releaseShapes(),2===this.m&&u>1?(y=this.calculateShapeEdges(t,i,g.totalShapeLength,_,h),_+=g.totalShapeLength):y=[[b,v]],l=y.length,s=0;s<l;s+=1){b=y[s][0],v=y[s][1],f.length=0,v<=1?f.push({s:g.totalShapeLength*b,e:g.totalShapeLength*v}):b>=1?f.push({s:g.totalShapeLength*(b-1),e:g.totalShapeLength*(v-1)}):(f.push({s:g.totalShapeLength*b,e:g.totalShapeLength}),f.push({s:0,e:g.totalShapeLength*(v-1)}));var x=this.addShapes(g,f[0]);if(f[0].s!==f[0].e){if(f.length>1)if(g.shape.paths.shapes[g.shape.paths._length-1].c){var S=x.pop();this.addPaths(x,m),x=this.addShapes(g,f[1],S)}else this.addPaths(x,m),x=this.addShapes(g,f[1]);this.addPaths(x,m)}}g.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var i,a=e.length;for(i=0;i<a;i+=1)t.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,t,i,a,r,n,o){r.setXYAt(t[0],t[1],"o",n),r.setXYAt(i[0],i[1],"i",n+1),o&&r.setXYAt(e[0],e[1],"v",n),r.setXYAt(a[0],a[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,i,a){t.setXYAt(e[1],e[5],"o",i),t.setXYAt(e[2],e[6],"i",i+1),a&&t.setXYAt(e[0],e[4],"v",i),t.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,t,i){var a,r,n,o,s,l,c,d,p=e.pathsData,u=e.shape.paths.shapes,h=e.shape.paths._length,g=0,m=[],f=!0;for(i?(s=i._length,d=i._length):(i=shapePool.newElement(),s=0,d=0),m.push(i),a=0;a<h;a+=1){for(l=p[a].lengths,i.c=u[a].c,n=u[a].c?l.length:l.length+1,r=1;r<n;r+=1)if(g+(o=l[r-1]).addedLength<t.s)g+=o.addedLength,i.c=!1;else{if(g>t.e){i.c=!1;break}t.s<=g&&t.e>=g+o.addedLength?(this.addSegment(u[a].v[r-1],u[a].o[r-1],u[a].i[r],u[a].v[r],i,s,f),f=!1):(c=bez.getNewSegment(u[a].v[r-1],u[a].v[r],u[a].o[r-1],u[a].i[r],(t.s-g)/o.addedLength,(t.e-g)/o.addedLength,l[r-1]),this.addSegmentFromArray(c,i,s,f),f=!1,i.c=!1),g+=o.addedLength,s+=1}if(u[a].c&&l.length){if(o=l[r-1],g<=t.e){var y=l[r-1].addedLength;t.s<=g&&t.e>=g+y?(this.addSegment(u[a].v[r-1],u[a].o[r-1],u[a].i[0],u[a].v[0],i,s,f),f=!1):(c=bez.getNewSegment(u[a].v[r-1],u[a].v[0],u[a].o[r-1],u[a].i[0],(t.s-g)/y,(t.e-g)/y,l[r-1]),this.addSegmentFromArray(c,i,s,f),f=!1,i.c=!1)}else i.c=!1;g+=o.addedLength,s+=1}if(i._length&&(i.setXYAt(i.v[d][0],i.v[d][1],"i",d),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),g>t.e)break;a<h-1&&(i=shapePool.newElement(),f=!0,m.push(i),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 i=t/100,a=[0,0],r=e._length,n=0;for(n=0;n<r;n+=1)a[0]+=e.v[n][0],a[1]+=e.v[n][1];a[0]/=r,a[1]/=r;var o,s,l,c,d,p,u=shapePool.newElement();for(u.c=e.c,n=0;n<r;n+=1)o=e.v[n][0]+(a[0]-e.v[n][0])*i,s=e.v[n][1]+(a[1]-e.v[n][1])*i,l=e.o[n][0]+(a[0]-e.o[n][0])*-i,c=e.o[n][1]+(a[1]-e.o[n][1])*-i,d=e.i[n][0]+(a[0]-e.i[n][0])*-i,p=e.i[n][1]+(a[1]-e.i[n][1])*-i,u.setTripleAt(o,s,l,c,d,p,n);return u},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,i,a,r,n,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||e)for(o.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,r=n.shape.paths._length,a=0;a<r;a+=1)o.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,i){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(i||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var a,r=t.or.k.length;for(a=0;a<r;a+=1)t.or.k[a].to=null,t.or.k[a].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var a,r;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(a=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(a=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(a=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){a=[],r=[];var n=this.px,o=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(a[0]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),a[1]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),r[0]=n.getValueAtTime(n.keyframes[0].t/i,0),r[1]=o.getValueAtTime(o.keyframes[0].t/i,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(a[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),a[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),r[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0),r[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0)):(a=[n.pv,o.pv],r[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime),r[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime))}else a=r=e;this.v.rotate(-Math.atan2(a[1]-r[1],a[0]-r[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,i,a){return new t(e,i,a)}}}();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,i){return e*(1-i)+t*i}function lerpPoint(e,t,i){return[lerp(e[0],t[0],i),lerp(e[1],t[1],i)]}function quadRoots(e,t,i){if(0===e)return[];var a=t*t-4*e*i;if(a<0)return[];var r=-t/(2*e);if(0===a)return[r];var n=Math.sqrt(a)/(2*e);return[r-n,r+n]}function polynomialCoefficients(e,t,i,a){return[3*t-e-3*i+a,3*e-6*t+3*i,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,i,a,r){r&&pointEqual(e,t)&&(t=lerpPoint(e,a,1/3)),r&&pointEqual(i,a)&&(i=lerpPoint(e,a,2/3));var n=polynomialCoefficients(e[0],t[0],i[0],a[0]),o=polynomialCoefficients(e[1],t[1],i[1],a[1]);this.a=[n[0],o[0]],this.b=[n[1],o[1]],this.c=[n[2],o[2]],this.d=[n[3],o[3]],this.points=[e,t,i,a]}function extrema(e,t){var i=e.points[0][t],a=e.points[e.points.length-1][t];if(i>a){var r=a;a=i,i=r}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<n.length;o+=1)if(n[o]>0&&n[o]<1){var s=e.point(n[o])[t];s<i?i=s:s>a&&(a=s)}return{min:i,max:a}}function intersectData(e,t,i){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(t+i)/2,t1:t,t2:i}}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,i,a,r,n){if(boxIntersect(e,t))if(i>=n||e.width<=a&&e.height<=a&&t.width<=a&&t.height<=a)r.push([e.t,t.t]);else{var o=splitData(e),s=splitData(t);intersectsImpl(o[0],s[0],i+1,a,r,n),intersectsImpl(o[0],s[1],i+1,a,r,n),intersectsImpl(o[1],s[0],i+1,a,r,n),intersectsImpl(o[1],s[1],i+1,a,r,n)}}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,i,a){var r=[e[0],e[1],1],n=[t[0],t[1],1],o=[i[0],i[1],1],s=[a[0],a[1],1],l=crossProduct(crossProduct(r,n),crossProduct(o,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,i){return[e[0]+Math.cos(t)*i,e[1]-Math.sin(t)*i]}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,i,a,r,n,o){var s=i-Math.PI/2,l=i+Math.PI/2,c=t[0]+Math.cos(i)*a*r,d=t[1]-Math.sin(i)*a*r;e.setTripleAt(c,d,c+Math.cos(s)*n,d-Math.sin(s)*n,c+Math.cos(l)*o,d-Math.sin(l)*o,e.length())}function getPerpendicularVector(e,t){var i=[t[0]-e[0],t[1]-e[1]],a=.5*-Math.PI;return[Math.cos(a)*i[0]-Math.sin(a)*i[1],Math.sin(a)*i[0]+Math.cos(a)*i[1]]}function getProjectingAngle(e,t){var i=0===t?e.length()-1:t-1,a=(t+1)%e.length(),r=getPerpendicularVector(e.v[i],e.v[a]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(e,t,i,a,r,n,o){var s=getProjectingAngle(t,i),l=t.v[i%t._length],c=t.v[0===i?t._length-1:i-1],d=t.v[(i+1)%t._length],p=2===n?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,u=2===n?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;setPoint(e,t.v[i%t._length],s,o,a,u/(2*(r+1)),p/(2*(r+1)))}function zigZagSegment(e,t,i,a,r,n){for(var o=0;o<a;o+=1){var s=(o+1)/(a+1),l=2===r?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,n,i,l/(2*(a+1)),l/(2*(a+1))),n=-n}return n}function linearOffset(e,t,i){var a=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,a,i),polarOffset(t,a,i)]}function offsetSegment(e,t){var i,a,r,n,o,s,l;i=(l=linearOffset(e.points[0],e.points[1],t))[0],a=l[1],r=(l=linearOffset(e.points[1],e.points[2],t))[0],n=l[1],o=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(i,a,r,n);null===c&&(c=a);var d=lineIntersection(o,s,r,n);return null===d&&(d=o),new PolynomialBezier(i,c,d,s)}function joinLines(e,t,i,a,r){var n=t.points[3],o=i.points[0];if(3===a)return n;if(pointEqual(n,o))return n;if(2===a){var s=-t.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,c=lineIntersection(n,polarOffset(n,s+Math.PI/2,100),o,polarOffset(o,s+Math.PI/2,100)),d=c?pointDistance(c,n):pointDistance(n,o)/2,p=polarOffset(n,s,2*d*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(o,l,2*d*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],p[0],p[1],e.length()),o}var u=lineIntersection(pointEqual(n,t.points[2])?t.points[0]:t.points[2],n,o,pointEqual(o,i.points[1])?i.points[3]:i.points[1]);return u&&pointDistance(u,n)<r?(e.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],e.length()),u):n}function getIntersection(e,t){var i=e.intersections(t);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,t){var i=e.slice(),a=t.slice(),r=getIntersection(e[e.length-1],t[0]);return r&&(i[e.length-1]=e[e.length-1].split(r[0])[0],a[0]=t[0].split(r[1])[1]),e.length>1&&t.length>1&&(r=getIntersection(e[0],t[t.length-1]))?[[e[0].split(r[0])[0]],[t[t.length-1].split(r[1])[1]]]:[i,a]}function pruneIntersections(e){for(var t,i=1;i<e.length;i+=1)t=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=t[0],e[i]=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 i,a,r,n,o=e.inflectionPoints();if(0===o.length)return[offsetSegment(e,t)];if(1===o.length||floatEqual(o[1],1))return i=(r=e.split(o[0]))[0],a=r[1],[offsetSegment(i,t),offsetSegment(a,t)];i=(r=e.split(o[0]))[0];var s=(o[1]-o[0])/(1-o[0]);return n=(r=r[1].split(s))[0],a=r[1],[offsetSegment(i,t),offsetSegment(n,t),offsetSegment(a,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],i="normal",a="normal",r=t.length,n=0;n<r;n+=1)switch(t[n].toLowerCase()){case"italic":a="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:a,weight:e.fWeight||i}}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,i,a,r,n){var o=n?-1:1,s=a.s.v[0]+(1-a.s.v[0])*(1-r),l=a.s.v[1]+(1-a.s.v[1])*(1-r);e.translate(a.p.v[0]*o*r,a.p.v[1]*o*r,a.p.v[2]),t.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),t.rotate(-a.r.v*o*r),t.translate(a.a.v[0],a.a.v[1],a.a.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.scale(n?1/s:s,n?1/l:l),i.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,t,i,a){for(this.elem=e,this.arr=t,this.pos=i,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[i]);i>0;)i-=1,this._elements.unshift(t[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,i=e.length;for(t=0;t<i;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 i,a=e.length;for(i=0;i<a;i+=1)e[i]._render=t,"gr"===e[i].ty&&this.changeGroupRender(e[i].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,i,a,r,n,o=!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(),o=!0}for(n=0,a=0;a<=this._groups.length-1;a+=1){if(s=n<l,this._groups[a]._render=s,this.changeGroupRender(this._groups[a].it,s),!s){var d=this.elemsData[a].it,p=d[d.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}n+=1}this._currentCopies=l;var u=this.o.v,h=u%1,g=u>0?Math.floor(u):Math.ceil(u),m=this.pMatrix.props,f=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,v,_=0;if(u>0){for(;_<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),_+=h)}else if(u<0){for(;_>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),_-=h)}for(a=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,n=this._currentCopies;n;){if(v=(i=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==_){for((0!==a&&1===r||a!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),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]),b=0;b<v;b+=1)i[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<v;b+=1)i[b]=this.matrix.props[b];_+=1,n-=1,a+=r}}else for(n=this._currentCopies,a=0,r=1;n;)i=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,a+=r;return o},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 i,a=shapePool.newElement();a.c=e.c;var r,n,o,s,l,c,d,p,u,h,g,m,f=e._length,y=0;for(i=0;i<f;i+=1)r=e.v[i],o=e.o[i],n=e.i[i],r[0]===o[0]&&r[1]===o[1]&&r[0]===n[0]&&r[1]===n[1]?0!==i&&i!==f-1||e.c?(s=0===i?e.v[f-1]:e.v[i-1],c=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=g=r[0]+(s[0]-r[0])*c,p=m=r[1]-(r[1]-s[1])*c,u=d-(d-r[0])*roundCorner,h=p-(p-r[1])*roundCorner,a.setTripleAt(d,p,u,h,g,m,y),y+=1,s=i===f-1?e.v[0]:e.v[i+1],c=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=u=r[0]+(s[0]-r[0])*c,p=h=r[1]+(s[1]-r[1])*c,g=d-(d-r[0])*roundCorner,m=p-(p-r[1])*roundCorner,a.setTripleAt(d,p,u,h,g,m,y),y+=1):(a.setTripleAt(r[0],r[1],o[0],o[1],n[0],n[1],y),y+=1):(a.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],y),y+=1);return a},RoundCornersModifier.prototype.processShapes=function(e){var t,i,a,r,n,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||e)for(o.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,r=n.shape.paths._length,a=0;a<r;a+=1)o.addShape(this.processPath(t[a],l));n.shape.paths=n.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,i=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var a=Math.sqrt(i);return floatZero(a)?a>0&&a<1?[t]:[]:[t-a,t+a].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),i=lerpPoint(this.points[1],this.points[2],e),a=lerpPoint(this.points[2],this.points[3],e),r=lerpPoint(t,i,e),n=lerpPoint(i,a,e),o=lerpPoint(r,n,e);return[new PolynomialBezier(this.points[0],t,r,o,!0),new PolynomialBezier(o,n,a,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,i){void 0===t&&(t=2),void 0===i&&(i=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,a,i),a},PolynomialBezier.shapeSegment=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],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,i,a){var r=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(r-=1),0===r)return n;var o=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,i,a,o);for(var l=0;l<r;l+=1)o=zigZagSegment(n,s,t,i,a,-o),s=l!==r-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%r):null,zigZagCorner(n,e,l+1,t,i,a,o);return n},ZigZagModifier.prototype.processShapes=function(e){var t,i,a,r,n,o,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),d=this.pointsType.v;if(0!==l)for(i=0;i<s;i+=1){if(o=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||e)for(o.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,r=n.shape.paths._length,a=0;a<r;a+=1)o.addShape(this.processPath(t[a],l,c,d));n.shape.paths=n.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,i,a){var r=shapePool.newElement();r.c=e.c;var n,o,s,l=e.length();e.c||(l-=1);var c=[];for(n=0;n<l;n+=1)s=PolynomialBezier.shapeSegment(e,n),c.push(offsetSegmentSplit(s,t));if(!e.c)for(n=l-1;n>=0;n-=1)s=PolynomialBezier.shapeSegmentInverted(e,n),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var d=null,p=null;for(n=0;n<c.length;n+=1){var u=c[n];for(p&&(d=joinLines(r,p,u[0],i,a)),p=u[u.length-1],o=0;o<u.length;o+=1)s=u[o],d&&pointEqual(s.points[0],d)?r.setXYAt(s.points[1][0],s.points[1][1],"o",r.length()-1):r.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],r.length()),r.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],r.length()),d=s.points[3]}return c.length&&joinLines(r,p,c[0][0],i,a),r},OffsetPathModifier.prototype.processShapes=function(e){var t,i,a,r,n,o,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,d=this.lineJoin;if(0!==l)for(i=0;i<s;i+=1){if(o=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||e)for(o.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,r=n.shape.paths._length,a=0;a<r;a+=1)o.addShape(this.processPath(t[a],l,d,c));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,a=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function r(e,t){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=t;var a=createTag("span");a.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(a),document.body.appendChild(i);var r=a.offsetWidth;return a.style.fontFamily=function(e){var t,i=e.split(","),a=i.length,r=[];for(t=0;t<a;t+=1)"sans-serif"!==i[t]&&"monospace"!==i[t]&&r.push(i[t]);return r.join(",")}(e)+", "+t,{node:a,w:r,parent:i}}function n(e,t){var i,a=document.body&&t?"svg":"canvas",r=getFontProperties(e);if("svg"===a){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",r.style),n.setAttribute("font-weight",r.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),i=n}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=r.style+" "+r.weight+" 100px "+e.fFamily,i=o}return{measureText:function(e){return"svg"===a?(i.textContent=e,i.getComputedTextLength()):i.measureText(e).width}}}function o(e){var t=0,i=e.charCodeAt(0);if(i>=55296&&i<=56319){var a=e.charCodeAt(1);a>=56320&&a<=57343&&(t=1024*(i-55296)+a-56320+65536)}return t}function s(e){var t=o(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 i=e.toString(16)+t.toString(16);return-1!==a.indexOf(i)},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 a=o(e.substr(t,2));if(a!==i)return!1;var r=0;for(t+=2;r<5;){if((a=o(e.substr(t,2)))<917601||a>917626)return!1;r+=1,t+=2}return 917631===o(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=i;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var i,a,r=e.length,n=this.chars.length;for(t=0;t<r;t+=1){for(i=0,a=!1;i<n;)this.chars[i].style===e[t].style&&this.chars[i].fFamily===e[t].fFamily&&this.chars[i].ch===e[t].ch&&(a=!0),i+=1;a||(this.chars.push(e[t]),n+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=n(e),e.cache={}}),void(this.fonts=e.list);var i,a=e.list,o=a.length,s=o;for(i=0;i<o;i+=1){var l,c,d=!0;if(a[i].loaded=!1,a[i].monoCase=r(a[i].fFamily,"monospace"),a[i].sansCase=r(a[i].fFamily,"sans-serif"),a[i].fPath){if("p"===a[i].fOrigin||3===a[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[i].fFamily+'"], style[f-origin="3"][f-family="'+a[i].fFamily+'"]')).length>0&&(d=!1),d){var p=createTag("style");p.setAttribute("f-forigin",a[i].fOrigin),p.setAttribute("f-origin",a[i].origin),p.setAttribute("f-family",a[i].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+a[i].fFamily+"; font-style: normal; src: url('"+a[i].fPath+"');}",t.appendChild(p)}}else if("g"===a[i].fOrigin||1===a[i].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(a[i].fPath)&&(d=!1);if(d){var u=createTag("link");u.setAttribute("f-forigin",a[i].fOrigin),u.setAttribute("f-origin",a[i].origin),u.type="text/css",u.rel="stylesheet",u.href=a[i].fPath,document.body.appendChild(u)}}else if("t"===a[i].fOrigin||2===a[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)a[i].fPath===l[c].src&&(d=!1);if(d){var h=createTag("link");h.setAttribute("f-forigin",a[i].fOrigin),h.setAttribute("f-origin",a[i].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",a[i].fPath),t.appendChild(h)}}}else a[i].loaded=!0,s-=1;a[i].helper=n(a[i],t),a[i].cache={},this.fonts.push(a[i])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,i,a){for(var r=0,n=this.chars.length;r<n;){if(this.chars[r].ch===t&&this.chars[r].style===i&&this.chars[r].fFamily===a)return this.chars[r];r+=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,i,a)),e},getFontByName:function(e){for(var t=0,i=this.fonts.length;t<i;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,i){var a=this.getFontByName(t),r=e;if(!a.cache[r]){var n=a.helper;if(" "===e){var o=n.measureText("|"+e+"|"),s=n.measureText("||");a.cache[r]=(o-s)/100}else a.cache[r]=n.measureText(e)/100}return a.cache[r]*i},checkLoadedFonts:function(){var e,t,i,a=this.fonts.length,r=a;for(e=0;e<a;e+=1)this.fonts[e].loaded?r-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,i=this.fonts[e].monoCase.w,t.offsetWidth!==i?(r-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,i=this.fonts[e].sansCase.w,t.offsetWidth!==i&&(r-=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!==r&&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,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function AngleEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function ColorEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function PointEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function LayerIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function MaskIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function CheckboxEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var i,a=e.ef||[];this.effectElements=[];var r,n=a.length;for(i=0;i<n;i+=1)r=new GroupEffect(a[i],t),this.effectElements.push(r)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,i)}function AudioElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,i),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var i;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var a,r=this.data.ef.length,n=this.data.ef;for(i=0;i<r;i+=1){switch(a=null,n[i].ty){case 0:a=new SliderEffect(n[i],t,this);break;case 1:a=new AngleEffect(n[i],t,this);break;case 2:a=new ColorEffect(n[i],t,this);break;case 3:a=new PointEffect(n[i],t,this);break;case 4:case 7:a=new CheckboxEffect(n[i],t,this);break;case 10:a=new LayerIndexEffect(n[i],t,this);break;case 11:a=new MaskIndexEffect(n[i],t,this);break;case 5:a=new EffectsManager(n[i],t);break;default:a=new NoValueEffect(n[i])}a&&this.effectElements.push(a)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),i=e("effects"),a=e("shape"),r=e("text"),n=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=n(this):4===this.data.ty?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(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,i){this.globalData=t,this.comp=i,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 i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(t||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._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 i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(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,i,a=this.layers.length;for(this.completeLayers=!0,t=a-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t]).ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;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 i,a=e.length,r=this.layers.length;for(t=0;t<a;t+=1)for(i=0;i<r;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,i){for(var a=this.elements,r=this.layers,n=0,o=r.length;n<o;)r[n].ind==t&&(a[n]&&!0!==a[n]?(i.push(a[n]),a[n].setAsParent(),void 0!==r[n].parent?this.buildElementParenting(e,r[n].parent,i):e.setHierarchy(i)):(this.buildItem(n),this.addPendingElement(e))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,i=e.length;for(t=0;t<i;t+=1)if(e[t].xt){var a=this.createComp(e[t]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(e){var t,i=this.elements.length;for(t=0;t<i;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,i=e.shift();if("number"==typeof i)t=this.elements[i];else{var a,r=this.elements.length;for(a=0;a<r;a+=1)if(this.elements[a].data.nm===i){t=this.elements[a];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.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,i){this.data=e,this.element=t,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a,r,n=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,c,d,p,u,h=this.masksProperties,g=0,m=[],f=createElementID(),y="clipPath",b="clip-path";for(a=0;a<o;a+=1)if(("a"!==h[a].mode&&"n"!==h[a].mode||h[a].inv||100!==h[a].o.k||h[a].o.x)&&(y="mask",b="mask"),"s"!==h[a].mode&&"i"!==h[a].mode||0!==g?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)),r=createNS("path"),"n"===h[a].mode)this.viewData[a]={op:PropertyFactory.getProp(this.element,h[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[a],3),elem:r,lastPath:""},n.appendChild(r);else{var v;if(g+=1,r.setAttribute("fill","s"===h[a].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==h[a].x.k?(y="mask",b="mask",u=PropertyFactory.getProp(this.element,h[a].x,0,null,this.element),v=createElementID(),(d=createNS("filter")).setAttribute("id",v),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),d.appendChild(p),n.appendChild(d),r.setAttribute("stroke","s"===h[a].mode?"#000000":"#ffffff")):(p=null,u=null),this.storedData[a]={elem:r,x:u,expan:p,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===h[a].mode){l=m.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",f+"_"+g),x.appendChild(r),n.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+g+")"),m.length=0,m.push(_)}else m.push(r);h[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,h[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[a],3),invRect:c},this.viewData[a].prop.k||this.drawPath(h[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(y),o=m.length,a=0;a<o;a+=1)this.maskElement.appendChild(m[a]);g>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+f+")"),n.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,i=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<a;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),i=0;i<a;i+=1)t.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var 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 i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),e=1;e<t;e+=1){var a=this.localTransforms[e].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)r*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=r}}},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,i=e.length;for(t=0;t<i;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var i,a=!0,r=this.comp;a;)r.finalTransform?(r.data.hasMask&&t.splice(0,0,r.finalTransform),r=r.comp):a=!1;var n,o=t.length;for(i=0;i<o;i+=1)n=t[i].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,i=this.element.finalTransform.mat,a=this.masksProperties.length;for(t=0;t<a;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var r=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+")")),r.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,i){var a,r,n=" M"+t.v[0][0]+","+t.v[0][1];for(r=t._length,a=1;a<r;a+=1)n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[a][0]+","+t.i[a][1]+" "+t.v[a][0]+","+t.v[a][1];if(t.c&&r>1&&(n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),i.lastPath!==n){var o="";i.elem&&(t.c&&(o=e.inv?this.solidPath+n:n),i.elem.setAttribute("d",o)),i.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var i=createNS("filter");return i.setAttribute("id",e),!0!==t&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},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,i,a="SourceGraphic",r=e.data.ef?e.data.ef.length:0,n=createElementID(),o=filtersFactory.createFilter(n,!0),s=0;for(this.filters=[],t=0;t<r;t+=1){i=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(i=new(0,registeredEffects$1[l].effect)(o,e.effectsManager.effectElements[t],e,idPrefix+s,a),a=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),i&&this.filters.push(i)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,i){registeredEffects$1[e]={effect:t,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,i),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,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,i=this.filters.length,a=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&a.push(this.filters[t]);return a},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 i=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=createElementID();if(i.setAttribute("id",r),i.appendChild(a),this.globalData.defs.appendChild(i),this.checkMasks()){var n=createNS("g");n.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),n.appendChild(this.layerElement),this.transformedElement=n,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")")}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,i,a,r,n=this.layerId+"_"+e;if(1===e||3===e){var o=createNS("mask");o.setAttribute("id",n),o.setAttribute("mask-type",3===e?"luminance":"alpha"),(a=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(a),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==e||(o.setAttribute("mask-type","luminance"),t=createElementID(),i=filtersFactory.createFilter(t),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(a),o.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",n),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),i=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),i.appendChild(c);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),c.appendChild(d),this.globalData.defs.appendChild(i);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(p),(a=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(a),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),l.appendChild(p),r.appendChild(this.layerElement),l.appendChild(r)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=n}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,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(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,i=this.shapeModifiers.length;for(t=0;t<i;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,i=0,a=t.length;i<a;){if(t[i].elem===e)return t[i].pos;i+=1}return 0},addProcessedElement:function(e,t){for(var i=this.processedElements,a=i.length;a;)if(i[a-=1].elem===e)return void(i[a].pos=t);i.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,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=t,this._isAnimated=!!i.k;for(var a=0,r=e.length;a<r;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,i,a){var r;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var n,o=t.length||0;for(r=0;r<o;r+=1)n=PropertyFactory.getProp(e,t[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:t[r].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,i){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=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,i){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=i}function SVGNoStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(e,t,i){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var a=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,i)}function SVGGradientStrokeStyleData(e,t,i){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,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,i){this.transform={mProps:e,op:t,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(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,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<i;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 i=0,a=this.o.length/2;i<a;){if(Math.abs(e[4*i]-e[4*t+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var 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,i,a,r=4*this.data.p;for(t=0;t<r;t+=1)i=t%4==0?100:255,a=Math.round(this.prop.v[t]*i),this.c[t]!==a&&(this.c[t]=a,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=4*this.data.p;t<r;t+=1)i=t%2==0?100:1,a=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==a&&(this.o[t-4*this.data.p]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,i){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=i,this.stops=[],this.setGradientData(i.pElem,t),this.setGradientOpacity(t,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var i=createElementID(),a=createNS(1===t.t?"linearGradient":"radialGradient");a.setAttribute("id",i),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var r,n,o,s=[];for(o=4*t.g.p,n=0;n<o;n+=4)r=createNS("stop"),a.appendChild(r),s.push(r);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=a,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var i,a,r,n=createNS("mask"),o=createNS("path");n.appendChild(o);var s=createElementID(),l=createElementID();n.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),r=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(a=4*e.g.p;a<r;a+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(i),d.push(i);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=n,this.ost=d,this.maskId=l,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,i,a){if(0===t)return"";var r,n=e.o,o=e.i,s=e.v,l=" M"+a.applyToPointStringified(s[0][0],s[0][1]);for(r=1;r<t;r+=1)l+=" C"+a.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+a.applyToPointStringified(o[r][0],o[r][1])+" "+a.applyToPointStringified(s[r][0],s[r][1]);return i&&t&&(l+=" C"+a.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+a.applyToPointStringified(o[0][0],o[0][1])+" "+a.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,i={createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return l;case"gs":return s;case"st":return c;case"sh":case"el":case"rc":case"sr":return n;case"tr":return a;case"no":return r;default:return null}}};function a(e,t,i){(i||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(i||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function n(i,a,r){var n,o,s,l,c,d,p,u,h,g,m=a.styles.length,f=a.lvl;for(d=0;d<m;d+=1){if(l=a.sh._mdf||r,a.styles[d].lvl<f){for(u=t.reset(),h=f-a.styles[d].lvl,g=a.transformers.length-1;!l&&h>0;)l=a.transformers[g].mProps._mdf||l,h-=1,g-=1;if(l)for(h=f-a.styles[d].lvl,g=a.transformers.length-1;h>0;)u.multiply(a.transformers[g].mProps.v),h-=1,g-=1}else u=e;if(o=(p=a.sh.paths)._length,l){for(s="",n=0;n<o;n+=1)(c=p.shapes[n])&&c._length&&(s+=buildShapeString(c,c._length,c.c,u));a.caches[d]=s}else s=a.caches[d];a.styles[d].d+=!0===i.hd?"":s,a.styles[d]._mdf=l||a.styles[d]._mdf}}function o(e,t,i){var a=t.style;(t.c._mdf||i)&&a.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i)&&a.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,i){l(e,t,i),c(0,t,i)}function l(e,t,i){var a,r,n,o,s,l=t.gf,c=t.g._hasOpacity,d=t.s.v,p=t.e.v;if(t.o._mdf||i){var u="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(u,t.o.v)}if(t.s._mdf||i){var h=1===e.t?"x1":"cx",g="x1"===h?"y1":"cy";l.setAttribute(h,d[0]),l.setAttribute(g,d[1]),c&&!t.g._collapsable&&(t.of.setAttribute(h,d[0]),t.of.setAttribute(g,d[1]))}if(t.g._cmdf||i){a=t.cst;var m=t.g.c;for(n=a.length,r=0;r<n;r+=1)(o=a[r]).setAttribute("offset",m[4*r]+"%"),o.setAttribute("stop-color","rgb("+m[4*r+1]+","+m[4*r+2]+","+m[4*r+3]+")")}if(c&&(t.g._omdf||i)){var f=t.g.o;for(n=(a=t.g._collapsable?t.cst:t.ost).length,r=0;r<n;r+=1)o=a[r],t.g._collapsable||o.setAttribute("offset",f[2*r]+"%"),o.setAttribute("stop-opacity",f[2*r+1])}if(1===e.t)(t.e._mdf||i)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||i)&&(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||i){s||(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)));var y=Math.atan2(p[1]-d[1],p[0]-d[0]),b=t.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var v=s*b,_=Math.cos(y+t.a.v)*v+d[0],x=Math.sin(y+t.a.v)*v+d[1];l.setAttribute("fx",_),l.setAttribute("fy",x),c&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",x))}}function c(e,t,i){var a=t.style,r=t.d;r&&(r._mdf||i)&&r.dashStr&&(a.pElem.setAttribute("stroke-dasharray",r.dashStr),a.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),t.c&&(t.c._mdf||i)&&a.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i)&&a.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||i)&&(a.pElem.setAttribute("stroke-width",t.w.v),a.msElem&&a.msElem.setAttribute("stroke-width",t.w.v))}return i}();function SVGShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,i),this.prevViewData=[]}function LetterProps(e,t,i,a,r,n){this.o=e,this.sw=t,this.sc=i,this.fc=a,this.m=r,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!i,fc:!!a,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,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,i,a,r=this.shapes.length,n=this.stylesList.length,o=[],s=!1;for(i=0;i<n;i+=1){for(a=this.stylesList[i],s=!1,o.length=0,e=0;e<r;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(a)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var i,a=new SVGStyleData(e,t),r=a.pElem;return"st"===e.ty?i=new SVGStrokeStyleData(this,e,a):"fl"===e.ty?i=new SVGFillStyleData(this,e,a):"gf"===e.ty||"gs"===e.ty?(i=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,a),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===e.ty&&(i=new SVGNoStyleData(this,e,a)),"st"!==e.ty&&"gs"!==e.ty||(r.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),r.setAttribute("fill-opacity","0"),1===e.lj&&r.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&r.setAttribute("fill-rule","evenodd"),e.ln&&r.setAttribute("id",e.ln),e.cl&&r.setAttribute("class",e.cl),e.bm&&(r.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,i),i},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 i=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(i,i.o,t);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,t,i){var a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7);var r=new SVGShapeData(t,i,ShapePropertyFactory.getShapeProp(this,e,a,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var i=0,a=this.animatedContents.length;i<a;){if(this.animatedContents[i].element===t)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,i=e.styles,a=this.stylesList.length;for(t=0;t<a;t+=1)-1!==i.indexOf(this.stylesList[t])||this.stylesList[t].closed||i.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,i,a,r,n,o){var s,l,c,d,p,u,h=[].concat(n),g=e.length-1,m=[],f=[];for(s=g;s>=0;s-=1){if((u=this.searchProcessedElement(e[s]))?t[s]=i[u-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)u?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],r),e[s]._render&&t[s].style.pElem.parentNode!==a&&a.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(u)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,r+1,h,o),e[s]._render&&t[s].gr.parentNode!==a&&a.appendChild(t[s].gr)}else"tr"===e[s].ty?(u||(t[s]=this.createTransformElement(e[s],a)),d=t[s].transform,h.push(d)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(u||(t[s]=this.createShapeElement(e[s],h,r)),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?(u?(p=t[s]).closed=!1:((p=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),f.push(p)):"rp"===e[s].ty&&(u?(p=t[s]).closed=!0:(p=ShapeModifiers.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),o=!1),f.push(p));this.addProcessedElement(e[s],s+1)}for(g=m.length,s=0;s<g;s+=1)m[s].closed=!0;for(g=f.length,s=0;s<g;s+=1)f[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,i=this.animatedContents.length;for(e=0;e<i;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,i,a,r,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,o=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,o=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,o=!0),!n.length||this.p[0]===n[0]&&this.p[1]===n[1]&&this.p[4]===n[4]&&this.p[5]===n[5]&&this.p[12]===n[12]&&this.p[13]===n[13]||(this.p=n,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var a;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(a=0;a<r;a+=1)n=i!==this.keysIndex?this.effectsSequence[a](n,n.t):this.effectsSequence[a](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,i=0,a=e.length;i<=a-1&&!(i===a-1||e[i+1].t>t);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,i,a=[],r=0,n=e.length,o=!1,s=!1,l="";r<n;)o=s,s=!1,t=e.charCodeAt(r),l=e.charAt(r),FontManager.isCombinedCharacter(t)?o=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,r)?l=e.substr(r,14):(i=e.charCodeAt(r+1))>=56320&&i<=57343&&(FontManager.isModifier(t,i)?(l=e.substr(r,2),o=!0):l=FontManager.isFlagEmoji(e.substr(r,4))?e.substr(r,4):e.substr(r,2)):t>56319?(i=e.charCodeAt(r+1),FontManager.isVariationSelector(t)&&(o=!0)):FontManager.isZeroWidthJoiner(t)&&(o=!0,s=!0),o?(a[a.length-1]+=l,o=!1):a.push(l),r+=l.length;return a},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,i,a,r,n,o,s,l=this.elem.globalData.fontManager,c=this.data,d=[],p=0,u=c.m.g,h=0,g=0,m=0,f=[],y=0,b=0,v=l.getFontByName(e.f),_=0,x=getFontProperties(v);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),i=e.finalText.length,e.finalLineHeight=e.lh;var S,C=e.tr/1e3*e.finalSize;if(e.sz)for(var k,w,E=!0,P=e.sz[0],T=e.sz[1];E;){k=0,y=0,i=(w=this.buildFinalText(e.t)).length,C=e.tr/1e3*e.finalSize;var A=-1;for(t=0;t<i;t+=1)S=w[t].charCodeAt(0),a=!1," "===w[t]?A=t:13!==S&&3!==S||(y=0,a=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(w[t],v.fStyle,v.fFamily),_=a?0:s.w*e.finalSize/100):_=l.measureText(w[t],e.f,e.finalSize),y+_>P&&" "!==w[t]?(-1===A?i+=1:t=A,k+=e.finalLineHeight||1.2*e.finalSize,w.splice(t,A===t?1:0,"\r"),A=-1,y=0):(y+=_,y+=C);k+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&T<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=w,i=e.finalText.length,E=!1)}y=-C,_=0;var D,F=0;for(t=0;t<i;t+=1)if(a=!1,13===(S=(D=e.finalText[t]).charCodeAt(0))||3===S?(F=0,f.push(y),b=y>b?y:b,y=-2*C,r="",a=!0,m+=1):r=D,l.chars?(s=l.getCharData(D,v.fStyle,l.getFontByName(e.f).fFamily),_=a?0:s.w*e.finalSize/100):_=l.measureText(r,e.f,e.finalSize)," "===D?F+=_+C:(y+=_+C+F,F=0),d.push({l:_,an:_,add:h,n:a,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==u){if(h+=_,""===r||" "===r||t===i-1){for(""!==r&&" "!==r||(h-=_);g<=t;)d[g].an=h,d[g].ind=p,d[g].extra=_,g+=1;p+=1,h=0}}else if(3==u){if(h+=_,""===r||t===i-1){for(""===r&&(h-=_);g<=t;)d[g].an=h,d[g].ind=p,d[g].extra=_,g+=1;h=0,p+=1}}else d[p].ind=p,d[p].extra=0,p+=1;if(e.l=d,b=y>b?y:b,f.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=b,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=f;var M,z,j,B,I=c.a;o=I.length;var R=[];for(n=0;n<o;n+=1){for((M=I[n]).a.sc&&(e.strokeColorAnim=!0),M.a.sw&&(e.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(e.fillColorAnim=!0),B=0,j=M.s.b,t=0;t<i;t+=1)(z=d[t]).anIndexes[n]=B,(1==j&&""!==z.val||2==j&&""!==z.val&&" "!==z.val||3==j&&(z.n||" "==z.val||t==i-1)||4==j&&(z.n||t==i-1))&&(1===M.s.rn&&R.push(B),B+=1);c.a[n].s.totalChars=B;var L,O=-1;if(1===M.s.rn)for(t=0;t<i;t+=1)O!=(z=d[t]).anIndexes[n]&&(O=z.anIndexes[n],L=R.splice(Math.floor(Math.random()*R.length),1)[0]),z.anIndexes[n]=L}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var i=this.copyData({},this.data.d.k[t].s);i=this.copyData(i,e),this.data.d.k[t].s=i,this.recalculate(t),this.setCurrentData(i),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,i=Math.floor;function a(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,n=0,o=1,s=1;this.ne.v>0?r=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,n,o,s).get,c=0,d=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)c=l(c=p===d?a>=p?1:0:e(0,t(.5/(p-d)+(a-d)/(p-d),1)));else if(3===u)c=l(c=p===d?a>=p?0:1:1-e(0,t(.5/(p-d)+(a-d)/(p-d),1)));else if(4===u)p===d?c=0:(c=e(0,t(.5/(p-d)+(a-d)/(p-d),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===u){if(p===d)c=0;else{var h=p-d,g=-h/2+(a=t(e(0,a+.5-d),p-d)),m=h/2;c=Math.sqrt(1-g*g/(m*m))}c=l(c)}else 6===u?(p===d?c=0:(a=t(e(0,a+.5-d),p-d),c=(1+Math.cos(Math.PI+2*Math.PI*a/(p-d)))/2),c=l(c)):(a>=i(d)&&(c=e(0,t(a-d<0?t(p,1)-(d-a):p-a,1))),c=l(c));if(100!==this.sm.v){var f=.01*this.sm.v;0===f&&(f=1e-8);var y=.5-.5*f;c<y?c=0:(c=(c-y)/f)>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,i=this.o.v/t,a=this.s.v/t+i,r=this.e.v/t+i;if(a>r){var n=a;a=r,r=n}this.finalS=a,this.finalE=r}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(e,t,i){return new a(e,t)}}}();function TextAnimatorDataProperty(e,t,i){var a={propType:!1},r=PropertyFactory.getProp,n=t.a;this.a={r:n.r?r(e,n.r,0,degToRads,i):a,rx:n.rx?r(e,n.rx,0,degToRads,i):a,ry:n.ry?r(e,n.ry,0,degToRads,i):a,sk:n.sk?r(e,n.sk,0,degToRads,i):a,sa:n.sa?r(e,n.sa,0,degToRads,i):a,s:n.s?r(e,n.s,1,.01,i):a,a:n.a?r(e,n.a,1,0,i):a,o:n.o?r(e,n.o,0,.01,i):a,p:n.p?r(e,n.p,1,0,i):a,sw:n.sw?r(e,n.sw,0,0,i):a,sc:n.sc?r(e,n.sc,1,0,i):a,fc:n.fc?r(e,n.fc,1,0,i):a,fh:n.fh?r(e,n.fh,0,0,i):a,fs:n.fs?r(e,n.fs,0,.01,i):a,fb:n.fb?r(e,n.fb,0,.01,i):a,t:n.t?r(e,n.t,0,0,i):a},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,i),this.s.t=t.s.t}function TextAnimatorProperty(e,t,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,i=this._textData.a.length,a=PropertyFactory.getProp;for(e=0;e<i;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,a,r,n,o,s,l,c,d,p,u,h,g,m,f,y,b,v,_,x=this._moreOptions.alignment.v,S=this._animatorsData,C=this._textData,k=this.mHelper,w=this._renderType,E=this.renderedLetters.length,P=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var T,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),o={tLength:0,segments:[]},n=A._length-1,y=0,r=0;r<n;r+=1)T=bez.buildBezierData(A.v[r],A.v[r+1],[A.o[r][0]-A.v[r][0],A.o[r][1]-A.v[r][1]],[A.i[r+1][0]-A.v[r+1][0],A.i[r+1][1]-A.v[r+1][1]]),o.tLength+=T.segmentLength,o.segments.push(T),y+=T.segmentLength;r=n,_.v.c&&(T=bez.buildBezierData(A.v[r],A.v[0],[A.o[r][0]-A.v[r][0],A.o[r][1]-A.v[r][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),o.tLength+=T.segmentLength,o.segments.push(T),y+=T.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,u=0,p=1,c=0,d=!0,m=o.segments,s<0&&_.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),p=(g=m[u=m.length-1].points).length-1;s<0;)s+=g[p].partialLength,(p-=1)<0&&(p=(g=m[u-=1].points).length-1);h=(g=m[u].points)[p-1],f=(l=g[p]).partialLength}n=P.length,i=0,a=0;var D,F,M,z,j,B=1.2*e.finalSize*.714,I=!0;M=S.length;var R,L,O,N,V,H,G,W,$,q,K,U,J=-1,X=s,Y=u,Z=p,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ie=0,ae=0,re=2===e.j?-.5:-1,ne=0,oe=!0;for(r=0;r<n;r+=1)if(P[r].n){for(ie&&(ie+=ae);ne<r;)P[ne].animatorJustifyOffset=ie,ne+=1;ie=0,oe=!0}else{for(F=0;F<M;F+=1)(D=S[F].a).t.propType&&(oe&&2===e.j&&(ae+=D.t.v*re),(j=S[F].s.getMult(P[r].anIndexes[F],C.a[F].s.totalChars)).length?ie+=D.t.v*j[0]*re:ie+=D.t.v*j*re);oe=!1}for(ie&&(ie+=ae);ne<r;)P[ne].animatorJustifyOffset=ie,ne+=1}for(r=0;r<n;r+=1){if(k.reset(),N=1,P[r].n)i=0,a+=e.yOffset,a+=I?1:0,s=X,I=!1,this._hasMaskedPath&&(p=Z,h=(g=m[u=Y].points)[p-1],f=(l=g[p]).partialLength,c=0),ee="",K="",$="",U="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==P[r].line){switch(e.j){case 1:s+=y-e.lineWidths[P[r].line];break;case 2:s+=(y-e.lineWidths[P[r].line])/2}Q=P[r].line}J!==P[r].ind&&(P[J]&&(s+=P[J].extra),s+=P[r].an/2,J=P[r].ind),s+=x[0]*P[r].an*.005;var se=0;for(F=0;F<M;F+=1)(D=S[F].a).p.propType&&((j=S[F].s.getMult(P[r].anIndexes[F],C.a[F].s.totalChars)).length?se+=D.p.v[0]*j[0]:se+=D.p.v[0]*j),D.a.propType&&((j=S[F].s.getMult(P[r].anIndexes[F],C.a[F].s.totalChars)).length?se+=D.a.v[0]*j[0]:se+=D.a.v[0]*j);for(d=!0,this._pathData.a.v&&(s=.5*P[0].an+(y-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*J/(n-1),s+=this._pathData.f.v);d;)c+f>=s+se||!g?(b=(s+se-c)/l.partialLength,L=h.point[0]+(l.point[0]-h.point[0])*b,O=h.point[1]+(l.point[1]-h.point[1])*b,k.translate(-x[0]*P[r].an*.005,-x[1]*B*.01),d=!1):g&&(c+=l.partialLength,(p+=1)>=g.length&&(p=0,m[u+=1]?g=m[u].points:_.v.c?(p=0,g=m[u=0].points):(c-=l.partialLength,g=null)),g&&(h=l,f=(l=g[p]).partialLength));R=P[r].an/2-P[r].add,k.translate(-R,0,0)}else R=P[r].an/2-P[r].add,k.translate(-R,0,0),k.translate(-x[0]*P[r].an*.005,-x[1]*B*.01,0);for(F=0;F<M;F+=1)(D=S[F].a).t.propType&&(j=S[F].s.getMult(P[r].anIndexes[F],C.a[F].s.totalChars),0===i&&0===e.j||(this._hasMaskedPath?j.length?s+=D.t.v*j[0]:s+=D.t.v*j:j.length?i+=D.t.v*j[0]:i+=D.t.v*j));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(V=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(G=[e.fc[0],e.fc[1],e.fc[2]]),F=0;F<M;F+=1)(D=S[F].a).a.propType&&((j=S[F].s.getMult(P[r].anIndexes[F],C.a[F].s.totalChars)).length?k.translate(-D.a.v[0]*j[0],-D.a.v[1]*j[1],D.a.v[2]*j[2]):k.translate(-D.a.v[0]*j,-D.a.v[1]*j,D.a.v[2]*j));for(F=0;F<M;F+=1)(D=S[F].a).s.propType&&((j=S[F].s.getMult(P[r].anIndexes[F],C.a[F].s.totalChars)).length?k.scale(1+(D.s.v[0]-1)*j[0],1+(D.s.v[1]-1)*j[1],1):k.scale(1+(D.s.v[0]-1)*j,1+(D.s.v[1]-1)*j,1));for(F=0;F<M;F+=1){if(D=S[F].a,j=S[F].s.getMult(P[r].anIndexes[F],C.a[F].s.totalChars),D.sk.propType&&(j.length?k.skewFromAxis(-D.sk.v*j[0],D.sa.v*j[1]):k.skewFromAxis(-D.sk.v*j,D.sa.v*j)),D.r.propType&&(j.length?k.rotateZ(-D.r.v*j[2]):k.rotateZ(-D.r.v*j)),D.ry.propType&&(j.length?k.rotateY(D.ry.v*j[1]):k.rotateY(D.ry.v*j)),D.rx.propType&&(j.length?k.rotateX(D.rx.v*j[0]):k.rotateX(D.rx.v*j)),D.o.propType&&(j.length?N+=(D.o.v*j[0]-N)*j[0]:N+=(D.o.v*j-N)*j),e.strokeWidthAnim&&D.sw.propType&&(j.length?H+=D.sw.v*j[0]:H+=D.sw.v*j),e.strokeColorAnim&&D.sc.propType)for(W=0;W<3;W+=1)j.length?V[W]+=(D.sc.v[W]-V[W])*j[0]:V[W]+=(D.sc.v[W]-V[W])*j;if(e.fillColorAnim&&e.fc){if(D.fc.propType)for(W=0;W<3;W+=1)j.length?G[W]+=(D.fc.v[W]-G[W])*j[0]:G[W]+=(D.fc.v[W]-G[W])*j;D.fh.propType&&(G=j.length?addHueToRGB(G,D.fh.v*j[0]):addHueToRGB(G,D.fh.v*j)),D.fs.propType&&(G=j.length?addSaturationToRGB(G,D.fs.v*j[0]):addSaturationToRGB(G,D.fs.v*j)),D.fb.propType&&(G=j.length?addBrightnessToRGB(G,D.fb.v*j[0]):addBrightnessToRGB(G,D.fb.v*j))}}for(F=0;F<M;F+=1)(D=S[F].a).p.propType&&(j=S[F].s.getMult(P[r].anIndexes[F],C.a[F].s.totalChars),this._hasMaskedPath?j.length?k.translate(0,D.p.v[1]*j[0],-D.p.v[2]*j[1]):k.translate(0,D.p.v[1]*j,-D.p.v[2]*j):j.length?k.translate(D.p.v[0]*j[0],D.p.v[1]*j[1],-D.p.v[2]*j[2]):k.translate(D.p.v[0]*j,D.p.v[1]*j,-D.p.v[2]*j));if(e.strokeWidthAnim&&($=H<0?0:H),e.strokeColorAnim&&(q="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),e.fillColorAnim&&e.fc&&(K="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,x[1]*B*.01+a,0),this._pathData.p.v){v=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var le=180*Math.atan(v)/Math.PI;l.point[0]<h.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(L,O,0),s-=x[0]*P[r].an*.005,P[r+1]&&J!==P[r+1].ind&&(s+=P[r].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(i,a,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(P[r].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[r].line]),0,0);break;case 2:k.translate(P[r].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[P[r].line])/2,0,0)}k.translate(0,-e.ls),k.translate(R,0,0),k.translate(x[0]*P[r].an*.005,x[1]*B*.01,0),i+=P[r].l+.001*e.tr*e.finalSize}"html"===w?ee=k.toCSS():"svg"===w?ee=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],U=N}E<=r?(z=new LetterProps(U,$,q,K,ee,te),this.renderedLetters.push(z),E+=1,this.lettersChangedFlag=!0):(z=this.renderedLetters[r],this.lettersChangedFlag=z.update(U,$,q,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,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,i),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 i,a,r=t.length,n="";for(i=0;i<r;i+=1)"sh"===t[i].ty&&(a=t[i].ks.k,n+=buildShapeString(a,a.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,i,a,r){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[i]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0)}t.translate(a,r,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,i){this.textSpans=[],this.renderType="svg",this.initElement(e,t,i)}function ISolidElement(e,t,i){this.initElement(e,t,i)}function NullElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initFrame(),this.initTransform(e,t,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),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 i="";if(t&&t.title){var a=createNS("title"),r=createElementID();a.setAttribute("id",r),a.textContent=t.title,this.svgElement.appendChild(a),i+=r}if(t&&t.description){var n=createNS("desc"),o=createElementID();n.setAttribute("id",o),n.textContent=t.description,this.svgElement.appendChild(n),i+=" "+o}i&&this.svgElement.setAttribute("aria-labelledby",i);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,i=e.length,a=[],r="";t<i;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(a.push(r),r=""):r+=e[t],t+=1;return a.push(r),a},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var a=i.it[i.it.length-1];a.s&&(a.s.k[0]=t,a.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var a=this.globalData.fontManager.getFontByName(i.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var r=i.fWeight,n=i.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var o,s=i.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,d=this.data.singleShape,p=0,u=0,h=!0,g=.001*i.tr*i.finalSize;if(!d||l||i.sz){var m,f=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||0===e){if(o=f>e?this.textSpans[e].span:createNS(l?"g":"text"),f<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var y=createNS("g");o.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(c.reset(),d&&(s[e].n&&(p=-g,u+=i.yOffset,u+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(i,c,s[e].line,p,u),p+=s[e].l||0,p+=g),l){var b;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)b=new SVGCompElement(m.data,this.globalData,this);else{var v=emptyShapeData;m.data&&m.data.shapes&&(v=this.buildShapeData(m.data,i.finalSize)),b=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[e].childSpan.appendChild(b.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else d&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&o&&o.setAttribute("d","")}else{var x=this.textContainer,S="start";switch(i.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",g);var C=this.buildTextContents(i.finalText);for(t=C.length,u=i.ps?i.ps[1]+i.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||createNS("tspan")).textContent=C[e],o.setAttribute("x",0),o.setAttribute("y",u),o.style.display="inherit",x.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,u+=i.finalLineHeight;this.layerElement.appendChild(x)}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,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;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 i,a,r,n=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(i=n[e],a=this.textSpans[e].span,(r=this.textSpans[e].glyph)&&r.renderFrame(),i._mdf.m&&a.setAttribute("transform",i.m),i._mdf.o&&a.setAttribute("opacity",i.o),i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i._mdf.sc&&a.setAttribute("stroke",i.sc),i._mdf.fc&&a.setAttribute("fill",i.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 i=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var r=createElementID();i.setAttribute("id",r),i.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),t.appendChild(i),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,i=this.layers.length;for(t=0;t<i;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 i=this.createItem(this.layers[e]);if(t[e]=i,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===a)return;if(this.elements[a]&&!0!==this.elements[a]){var r=t[a].getMatte(this.layers[e].tt);i.setMatte(r)}else this.buildItem(a),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,i=this.elements.length;t<i;){if(this.elements[t]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,r=this.elements[a].getMatte(this.layers[t].tt);e.setMatte(r);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 i=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=i-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<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){for(var a,r=0;r<t;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(a=this.elements[r].getBaseElement()),r+=1;a?this.layerElement.insertBefore(i,a):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),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 i,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var 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,i=e.length,a="_";for(t=0;t<i;t+=1)a+=e[t].transform.key+"_";var r=this.sequences[a];return r||(r={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=r,this.sequenceList.push(r)),r},processSequence:function(e,t){for(var i=0,a=e.transforms.length,r=t;i<a&&!t;){if(e.transforms[i].transform.mProps._mdf){r=!0;break}i+=1}if(r)for(e.finalTransform.reset(),i=a-1;i>=0;i-=1)e.finalTransform.multiply(e.transforms[i].transform.mProps.v);e._mdf=r},processSequences:function(e){var t,i=this.sequenceList.length;for(t=0;t<i;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,i=null,a=null;function r(){var r,n,o;t||(r=createNS("svg"),n=createNS("filter"),o=createNS("feColorMatrix"),n.setAttribute("id",e),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.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"),n.appendChild(o),r.appendChild(n),r.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(r.style.display="none"),a=r,document.body.appendChild(a),t=createTag("canvas"),(i=t.getContext("2d")).filter="url(#"+e+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:r,get:function(a){return t||r(),t.width=a.width,t.height=a.height,i.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var i=createTag("canvas");return i.width=e,i.height=t,i}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,i,a=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<a;t+=1){i=null;var r=e.data.ef[t].ty;registeredEffects[r]&&(i=new(0,registeredEffects[r].effect)(e.effectsManager.effectElements[t],e)),i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var i;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a=this.masksProperties.length,r=!1;for(i=0;i<a;i+=1)"n"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,i=this.filters.length,a=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&a.push(this.filters[t]);return a},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,i,a,r=this.element.finalTransform.mat,n=this.element.canvasContext,o=this.masksProperties.length;for(n.beginPath(),e=0;e<o;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),a=this.viewData[e].v,t=r.applyToPointArray(a.v[0][0],a.v[0][1],0),n.moveTo(t[0],t[1]);var l=a._length;for(s=1;s<l;s+=1)i=r.applyToTriplePoints(a.o[s-1],a.i[s],a.v[s]),n.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=r.applyToTriplePoints(a.o[s-1],a.i[0],a.v[0]),n.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),n.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,i,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var o,s=i.length;for(r=0;r<s;r+=1)i[r].closed||(o={transforms:a.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(o),i[r].elements.push(o))}function CVShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,i)}function CVTextElement(e,t,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,i)}function CVImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,i)}function CVSolidElement(e,t,i){this.initElement(e,t,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var 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,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,i),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,i){this.initElement(e,t,i)}function HShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,i)}function HCameraElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var r,n=e.ks.or.k.length;for(r=0;r<n;r+=1)e.ks.or.k[r].to=null,e.ks.or.k[r].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,i)}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,i){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,i),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 i=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var 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 i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(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 i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},a={};if("fl"===e.ty||"st"===e.ty?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(i.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],1==e.lj&&(i.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(i.wi=a.w.v),e.d){var r=new DashProperty(this,e.d,"canvas",this);a.d=r,a.d.k||(i.da=a.d.dashArray,i.do=a.d.dashoffset[0])}}else i.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(i),a.style=i,a},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,i=this.stylesList.length;for(t=0;t<i;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,i=e.length;for(t=0;t<i;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,i,a,r){var n,o,s,l,c,d,p=e.length-1,u=[],h=[],g=[].concat(r);for(n=p;n>=0;n-=1){if((l=this.searchProcessedElement(e[n]))?t[n]=i[l-1]:e[n]._shouldRender=a,"fl"===e[n].ty||"st"===e[n].ty||"gf"===e[n].ty||"gs"===e[n].ty)l?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],g),u.push(t[n].style);else if("gr"===e[n].ty){if(l)for(s=t[n].it.length,o=0;o<s;o+=1)t[n].prevViewData[o]=t[n].it[o];else t[n]=this.createGroupElement(e[n]);this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,a,g)}else"tr"===e[n].ty?(l||(d=this.createTransformElement(e[n]),t[n]=d),g.push(t[n]),this.addTransformToStyleList(t[n])):"sh"===e[n].ty||"rc"===e[n].ty||"el"===e[n].ty||"sr"===e[n].ty?l||(t[n]=this.createShapeElement(e[n])):"tm"===e[n].ty||"rd"===e[n].ty||"pb"===e[n].ty||"zz"===e[n].ty||"op"===e[n].ty?(l?(c=t[n]).closed=!1:((c=ShapeModifiers.getModifier(e[n].ty)).init(this,e[n]),t[n]=c,this.shapeModifiers.push(c)),h.push(c)):"rp"===e[n].ty&&(l?(c=t[n]).closed=!0:(c=ShapeModifiers.getModifier(e[n].ty),t[n]=c,c.init(this,e,n,t),this.shapeModifiers.push(c),a=!1),h.push(c));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),p=h.length,n=0;n<p;n+=1)h[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,i,a,r,n,o,s,l,c=this.stylesList.length,d=this.globalData.renderer,p=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(d.save(),n=l.elements,"st"===s||"gs"===s?(d.ctxStrokeStyle("st"===s?l.co:l.grd),d.ctxLineWidth(l.wi),d.ctxLineCap(l.lc),d.ctxLineJoin(l.lj),d.ctxMiterLimit(l.ml||0)):d.ctxFillStyle("fl"===s?l.co:l.grd),d.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),d.ctxTransform(l.preTransforms.finalTransform.props),i=n.length,t=0;t<i;t+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),r=(o=n[t].trNodes).length,a=0;a<r;a+=1)"m"===o[a].t?p.moveTo(o[a].p[0],o[a].p[1]):"c"===o[a].t?p.bezierCurveTo(o[a].pts[0],o[a].pts[1],o[a].pts[2],o[a].pts[3],o[a].pts[4],o[a].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(d.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),d.restore()}},CVShapeElement.prototype.renderShape=function(e,t,i,a){var r,n;for(n=e,r=t.length-1;r>=0;r-=1)"tr"===t[r].ty?(n=i[r].transform,this.renderShapeTransform(e,n)):"sh"===t[r].ty||"el"===t[r].ty||"rc"===t[r].ty||"sr"===t[r].ty?this.renderPath(t[r],i[r]):"fl"===t[r].ty?this.renderFill(t[r],i[r],n):"st"===t[r].ty?this.renderStroke(t[r],i[r],n):"gf"===t[r].ty||"gs"===t[r].ty?this.renderGradientFill(t[r],i[r],n):"gr"===t[r].ty?this.renderShape(n,t[r].it,i[r].it):t[r].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var i,a,r,n=e.trNodes,o=t.paths,s=o._length;n.length=0;var l=e.transforms.finalTransform;for(r=0;r<s;r+=1){var c=o.shapes[r];if(c&&c.v){for(a=c._length,i=1;i<a;i+=1)1===i&&n.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(c.o[i-1],c.i[i],c.v[i])});1===a&&n.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&a&&(n.push({t:"c",pts:l.applyToTriplePoints(c.o[i-1],c.i[0],c.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var i,a=t.styledShapes.length;for(i=0;i<a;i+=1)this.renderStyledShape(t.styledShapes[i],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,i){var a=t.style;(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,i){var a,r=t.style;if(!r.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var n,o=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)a=o.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)),d=Math.atan2(l[1]-s[1],l[0]-s[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var u=c*p,h=Math.cos(d+t.a.v)*u+s[0],g=Math.sin(d+t.a.v)*u+s[1];a=o.createRadialGradient(h,g,0,s[0],s[1],c)}var m=e.g.p,f=t.g.c,y=1;for(n=0;n<m;n+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*n+1]),a.addColorStop(f[4*n]/100,"rgba("+f[4*n+1]+","+f[4*n+2]+","+f[4*n+3]+","+y+")");r.grd=a}r.coOp=t.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,t,i){var a=t.style,r=t.d;r&&(r._mdf||this._isFirstFrame)&&(a.da=r.dashArray,a.do=r.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*i.opacity),(t.w._mdf||this._isFirstFrame)&&(a.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a,r,n,o,s,l,c,d,p,u,h,g,m=this.globalData.fontManager.getFontByName(e.f),f=e.l,y=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,r=e.finalText.length;var b=this.data.singleShape,v=.001*e.tr*e.finalSize,_=0,x=0,S=!0,C=0;for(a=0;a<r;a+=1){o=(n=this.globalData.fontManager.getCharData(e.finalText[a],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&n.data||{},y.reset(),b&&f[a].n&&(_=-v,x+=e.yOffset,x+=S?1:0,S=!1),p=(c=o.shapes?o.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,y,f[a].line,_,x),h=createSizedArray(p-1);var k=0;for(d=0;d<p;d+=1)if("sh"===c[d].ty){for(l=c[d].ks.k.i.length,u=c[d].ks.k,g=[],s=1;s<l;s+=1)1===s&&g.push(y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),g.push(y.applyToX(u.o[s-1][0],u.o[s-1][1],0),y.applyToY(u.o[s-1][0],u.o[s-1][1],0),y.applyToX(u.i[s][0],u.i[s][1],0),y.applyToY(u.i[s][0],u.i[s][1],0),y.applyToX(u.v[s][0],u.v[s][1],0),y.applyToY(u.v[s][0],u.v[s][1],0));g.push(y.applyToX(u.o[s-1][0],u.o[s-1][1],0),y.applyToY(u.o[s-1][0],u.o[s-1][1],0),y.applyToX(u.i[0][0],u.i[0][1],0),y.applyToY(u.i[0][0],u.i[0][1],0),y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),h[k]=g,k+=1}b&&(_+=f[a].l,_+=v),this.textSpans[C]?this.textSpans[C].elem=h:this.textSpans[C]={elem:h},C+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,i,a,r,n;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 o,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,d,p=null,u=null,h=null,g=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((o=s[e])&&(g.save(),g.ctxTransform(o.p),g.ctxOpacity(o.o)),this.fill){for(o&&o.fc?p!==o.fc&&(g.ctxFillStyle(o.fc),p=o.fc):p!==this.values.fill&&(p=this.values.fill,g.ctxFillStyle(this.values.fill)),a=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(n=(d=c[i]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),r=2;r<n;r+=6)this.globalData.canvasContext.bezierCurveTo(d[r],d[r+1],d[r+2],d[r+3],d[r+4],d[r+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(o&&o.sw?h!==o.sw&&(h=o.sw,g.ctxLineWidth(o.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),o&&o.sc?u!==o.sc&&(u=o.sc,g.ctxStrokeStyle(o.sc)):u!==this.values.stroke&&(u=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),a=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(n=(d=c[i]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),r=2;r<n;r+=6)this.globalData.canvasContext.bezierCurveTo(d[r],d[r+1],d[r+2],d[r+3],d[r+4],d[r+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,i,a=e.getContext("2d"),r=this.img.width,n=this.img.height,o=r/n,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?t=(i=n)*s:i=(t=r)/s,a.drawImage(this.img,(r-t)/2,(n-i)/2,t,i,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,i,a){this.canvasContext.fillRect(e,t,i,a)},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 i="0px 0px 0px";t.transformOrigin=i,t.mozTransformOrigin=i,t.webkitTransformOrigin=i,t["-webkit-transform"]=i,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 i,a,r,n;if(this.reset(),e?(i=e,a=t,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),s=o[1]||"meet",l=o[0]||"xMidYMid",c=l.substr(0,4),d=l.substr(4);r=i/a,(n=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===s||n<r&&"slice"===s?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(n<r&&"meet"===s||n>r&&"slice"===s)?(i-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(n<r&&"meet"===s||n>r&&"slice"===s)?(i-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===d&&(n>r&&"meet"===s||n<r&&"slice"===s)?(a-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===d&&(n>r&&"meet"===s||n<r&&"slice"===s)?(a-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(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 i;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].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 i=this.createItem(this.layers[e],this,this.globalData);t[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var 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,i=this.stack[this.cArrPos],a=i.transform,r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=a[t];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),(e||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i,a=this.stack[this.cArrPos];for(i=0;i<16;i+=1)a.transform[i]=t[i];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=a.opacity,r.fillStyle=a.fillStyle,r.strokeStyle=a.strokeStyle,r.lineWidth=a.lineWidth,r.lineCap=a.lineCap,r.lineJoin=a.lineJoin,r.miterLimit=a.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 i=t.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[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,i,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,i,a)},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 i,a=e.length;for(i=0;i<a;i+=1)t=e[i].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var i,a,r,n,o,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(i=0;i<c-1;i+=1)a=this.getTransformedPoint(l,s.v[i]),r=this.getTransformedPoint(l,s.o[i]),n=this.getTransformedPoint(l,s.i[i+1]),o=this.getTransformedPoint(l,s.v[i+1]),this.checkBounds(a,r,n,o,t);s.c&&(a=this.getTransformedPoint(l,s.v[i]),r=this.getTransformedPoint(l,s.o[i]),n=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(a,r,n,o,t))}},HShapeElement.prototype.checkBounds=function(e,t,i,a,r){this.getBoundsOfCurve(e,t,i,a);var n=this.shapeBoundingBox;r.x=bmMin(n.left,r.x),r.xMax=bmMax(n.right,r.xMax),r.y=bmMin(n.top,r.y),r.yMax=bmMax(n.bottom,r.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,i,a){for(var r,n,o,s,l,c,d,p=[[e[0],a[0]],[e[1],a[1]]],u=0;u<2;++u)n=6*e[u]-12*t[u]+6*i[u],r=-3*e[u]+9*t[u]-9*i[u]+3*a[u],o=3*t[u]-3*e[u],n|=0,o|=0,0==(r|=0)&&0===n||(0===r?(s=-o/n)>0&&s<1&&p[u].push(this.calculateF(s,e,t,i,a,u)):(l=n*n-4*o*r)>=0&&((c=(-n+bmSqrt(l))/(2*r))>0&&c<1&&p[u].push(this.calculateF(c,e,t,i,a,u)),(d=(-n-bmSqrt(l))/(2*r))>0&&d<1&&p[u].push(this.calculateF(d,e,t,i,a,u))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,i,a,r,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*i[n]+3*(1-e)*bmPow(e,2)*a[n]+bmPow(e,3)*r[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var i,a=e.length;for(i=0;i<a;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],t):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,t):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var i=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var r=e.keyframes[a].s;r>i&&(i=r)}i*=e.mult}else i=e.v*e.mult;t.x-=i,t.xMax+=i,t.y-=i,t.yMax+=i},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 i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=r,a.webkitTransform=r}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=i,t.color=i,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var a,r,n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var o=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=o}var l,c,d,p=e.l;r=p.length;var u,h=this.mHelper,g="",m=0;for(a=0;a<r;a+=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]?d=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(d=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 f,y=this.globalData.fontManager.getCharData(e.finalText[a],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(f=y?y.data:null,h.reset(),f&&f.shapes&&f.shapes.length&&(u=f.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),g=this.createPathShape(h,u),l.setAttribute("d",g)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),f&&f.shapes){document.body.appendChild(d);var b=d.getBBox();d.setAttribute("width",b.width+2),d.setAttribute("height",b.height+2),d.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=d.style,_="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=_,v.webkitTransform=_,p[a].yOffset=b.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);c.appendChild(d)}}else if(l.textContent=p[a].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 x=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=S,x.webkitTransform=S}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 i,a,r,n,o,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(a=c.length,i=0;i<a;i+=1)c[i].n?s+=1:(n=this.textSpans[i],o=this.textPaths[i],r=l[s],s+=1,r._mdf.m&&(this.isMasked?n.setAttribute("transform",r.m):(n.style.webkitTransform=r.m,n.style.transform=r.m)),n.style.opacity=r.o,r.sw&&r._mdf.sw&&o.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&o.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(o.setAttribute("fill",r.fc),o.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();if(this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height)),this.currentBBox.w!==d.width+2||this.currentBBox.h!==d.height+2||this.currentBBox.x!==d.x-1||this.currentBBox.y!==d.y-1){this.currentBBox.w=d.width+2,this.currentBBox.h=d.height+2,this.currentBBox.x=d.x-1,this.currentBBox.y=d.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,i,a,r=this.comp.threeDElements.length;for(e=0;e<r;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){i=t.perspectiveElem.style,a=t.container.style;var n=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=n,i.webkitPerspective=n,a.transformOrigin=o,a.mozTransformOrigin=o,a.webkitTransformOrigin=o,i.transform=s,i.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,i=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)i=this.hierarchy[e].finalTransform.mProp._mdf||i;if(i||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var a=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),o=[r[0]/n,r[1]/n,r[2]/n],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),c=Math.atan2(o[0],-o[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 d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){var p,u,h;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(d){var g=this.mat.toCSS();(h=p.container.style).transform=g,h.webkitTransform=g}this.pe._mdf&&((u=p.perspectiveElem.style).perspective=this.pe.v+"px",u.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 i=e.getBaseElement();if(i){var a=this.layers[t];if(a.ddd&&this.supports3d)this.addTo3dContainer(i,t);else if(this.threeDElements)this.addTo3dContainer(i,t);else{for(var r,n,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(n=this.elements[o],r=(this.layers[o].ddd?this.getThreeDContainerByPos(o):n.getBaseElement())||r),o+=1;r?a.ddd&&this.supports3d||this.layerElement.insertBefore(i,r):a.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},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,i=this.threeDElements.length;t<i;){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 i,a,r=createTag("div");styleDiv(r);var n=createTag("div");if(styleDiv(n),"3d"===t){(i=r.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var o="50% 50%";i.webkitTransformOrigin=o,i.mozTransformOrigin=o,i.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(a=n.style).transform=s,a.webkitTransform=s}r.appendChild(n);var l={container:n,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,i=this.layers.length,a="";for(e=0;e<i;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==a&&(a="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==a&&(a="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(i=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var i=0,a=this.threeDElements.length;i<a;){if(t<=this.threeDElements[i].endPos){for(var r,n=this.threeDElements[i].startPos;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.threeDElements[i].container.insertBefore(e,r):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),i=this.animationItem.wrapper,a=t.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=t,styleDiv(t),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),i.appendChild(t),a.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var n=createNS("defs");r.appendChild(n),this.data=e,this.setupGlobalData(e,r),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&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,i,a,r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,o=r/n;this.globalData.compSize.w/this.globalData.compSize.h>o?(e=r/this.globalData.compSize.w,t=r/this.globalData.compSize.w,i=0,a=(n-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(e=n/this.globalData.compSize.h,t=n/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,a=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+i+","+a+",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,i=this.globalData.compSize.h,a=this.threeDElements.length;for(e=0;e<a;e+=1){var r=this.threeDElements[e].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,i=e.length,a=createTag("div");for(t=0;t<i;t+=1)if(e[t].xt){var r=this.createComp(e[t],a,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},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 i,a=0;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a].getBaseElement()),a+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},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 i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===t||e.layers[i].ind===t)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){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 i=this,a=256,r="random",n=t.pow(a,6),o=t.pow(2,52),s=2*o,l=255;function c(e){var t,i=e.length,r=this,n=0,o=r.i=r.j=0,s=r.S=[];for(i||(e=[i++]);n<a;)s[n]=n++;for(n=0;n<a;n++)s[n]=s[o=l&o+e[n%i]+(t=s[n])],s[o]=t;r.g=function(e){for(var t,i=0,n=r.i,o=r.j,s=r.S;e--;)t=s[n=l&n+1],i=i*a+s[l&(s[n]=s[o=l&o+t])+(s[o]=t)];return r.i=n,r.j=o,i}}function d(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var i,a=[],r=_typeof$2(e);if(t&&"object"==r)for(i in e)try{a.push(p(e[i],t-1))}catch(e){}return a.length?a:"string"==r?e:e+"\0"}function u(e,t){for(var i,a=e+"",r=0;r<a.length;)t[l&r]=l&(i^=19*t[l&r])+a.charCodeAt(r++);return h(t)}function h(e){return String.fromCharCode.apply(0,e)}t["seed"+r]=function(l,g,m){var f=[],y=u(p((g=!0===g?{entropy:!0}:g||{}).entropy?[l,h(e)]:null===l?function(){try{var t=new Uint8Array(a);return(i.crypto||i.msCrypto).getRandomValues(t),h(t)}catch(t){var r=i.navigator,n=r&&r.plugins;return[+new Date,i,n,i.screen,h(e)]}}():l,3),f),b=new c(f),v=function(){for(var e=b.g(6),t=n,i=0;e<o;)e=(e+i)*a,t*=a,i=b.g(1);for(;e>=s;)e/=2,t/=2,i>>>=1;return(e+i)/t};return v.int32=function(){return 0|b.g(4)},v.quick=function(){return b.g(4)/4294967296},v.double=v,u(h(b.S),e),(g.pass||m||function(e,i,a,n){return n&&(n.S&&d(n,b),e.state=function(){return d(b,{})}),a?(t[r]=e,i):e})(v,y,"global"in g?g.global:this==t,g.state)},u(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 i,a=e.length,r=[];for(i=0;i<a;i+=1)r[i]=-e[i];return r}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 i=_typeof$1(e),a=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(a,t)||"string"===i||"string"===a)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var r=0,n=e.length,o=t.length,s=[];r<n||r<o;)("number"==typeof e[r]||e[r]instanceof Number)&&("number"==typeof t[r]||t[r]instanceof Number)?s[r]=e[r]+t[r]:s[r]=void 0===t[r]?e[r]:e[r]||t[r],r+=1;return s}return 0}var add=sum;function sub(e,t){var i=_typeof$1(e),a=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(a,t))return"string"===i&&(e=parseInt(e,10)),"string"===a&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var r=0,n=e.length,o=t.length,s=[];r<n||r<o;)("number"==typeof e[r]||e[r]instanceof Number)&&("number"==typeof t[r]||t[r]instanceof Number)?s[r]=e[r]-t[r]:s[r]=void 0===t[r]?e[r]:e[r]||t[r],r+=1;return s}return 0}function mul(e,t){var i,a,r,n=_typeof$1(e),o=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(o,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(r=e.length,i=createTypedArray("float32",r),a=0;a<r;a+=1)i[a]=e[a]*t;return i}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(r=t.length,i=createTypedArray("float32",r),a=0;a<r;a+=1)i[a]=e*t[a];return i}return 0}function div(e,t){var i,a,r,n=_typeof$1(e),o=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(o,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(r=e.length,i=createTypedArray("float32",r),a=0;a<r;a+=1)i[a]=e[a]/t;return i}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(r=t.length,i=createTypedArray("float32",r),a=0;a<r;a+=1)i[a]=e/t[a];return i}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,i){if(t>i){var a=i;i=t,t=a}return Math.min(Math.max(e,t),i)}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 i;t||(t=helperLengthArray);var a=Math.min(e.length,t.length),r=0;for(i=0;i<a;i+=1)r+=Math.pow(t[i]-e[i],2);return Math.sqrt(r)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,i,a=e[0],r=e[1],n=e[2],o=Math.max(a,r,n),s=Math.min(a,r,n),l=(o+s)/2;if(o===s)t=0,i=0;else{var c=o-s;switch(i=l>.5?c/(2-o-s):c/(o+s),o){case a:t=(r-n)/c+(r<n?6:0);break;case r:t=(n-a)/c+2;break;case n:t=(a-r)/c+4}t/=6}return[t,i,l,e[3]]}function hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hslToRgb(e){var t,i,a,r=e[0],n=e[1],o=e[2];if(0===n)t=o,a=o,i=o;else{var s=o<.5?o*(1+n):o+n-o*n,l=2*o-s;t=hue2rgb(l,s,r+1/3),i=hue2rgb(l,s,r),a=hue2rgb(l,s,r-1/3)}return[t,i,a,e[3]]}function linear(e,t,i,a,r){if(void 0!==a&&void 0!==r||(a=t,r=i,t=0,i=1),i<t){var n=i;i=t,t=n}if(e<=t)return a;if(e>=i)return r;var o,s=i===t?0:(e-t)/(i-t);if(!a.length)return a+(r-a)*s;var l=a.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=a[o]+(r[o]-a[o])*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 i,a=t.length;e||(e=createTypedArray("float32",a));var r=createTypedArray("float32",a),n=BMMath.random();for(i=0;i<a;i+=1)r[i]=e[i]+n*(t[i]-e[i]);return r}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,i,a){var r,n=e.length,o=shapePool.newElement();o.setPathData(!!a,n);var s,l,c=[0,0];for(r=0;r<n;r+=1)s=t&&t[r]?t[r]:c,l=i&&i[r]?i[r]:c,o.setTripleAt(e[r][0],e[r][1],l[0]+e[r][0],l[1]+e[r][1],s[0]+e[r][0],s[1]+e[r][1],r,!0);return o}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._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var i,a,r=this.pv.length?this.pv.length:1,n=createTypedArray("float32",r),o=Math.floor(5*time);for(i=0,a=0;i<o;){for(a=0;a<r;a+=1)n[a]+=-t+2*t*BMMath.random();i+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",r);if(r>1){for(a=0;a<r;a+=1)c[a]=this.pv[a]+n[a]+(-t+2*t*BMMath.random())*l;return c}return this.pv+n[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var i=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],a=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,a,0]}function easeOut(e,t,i,a,r){return applyEase(easeOutBez,e,t,i,a,r)}function easeIn(e,t,i,a,r){return applyEase(easeInBez,e,t,i,a,r)}function ease(e,t,i,a,r){return applyEase(easeInOutBez,e,t,i,a,r)}function applyEase(e,t,i,a,r,n){void 0===r?(r=i,n=a):t=(t-i)/(a-i),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(r)){var s,l=r.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(n[s]-r[s])*o+r[s];return c}return(n-r)*o+r}function nearestKey(e){var t,i,a,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,a=data.k[0].t;else{for(t=0;t<r-1;t+=1){if(e===data.k[t].t){i=t+1,a=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,a=data.k[t+1].t):(i=t+1,a=data.k[t].t);break}}-1===i&&(i=t+1,a=data.k[t].t)}else i=0,a=0;var n={};return n.index=i,n.time=a/elem.comp.globalData.frameRate,n}function key(e){var t,i,a;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=r.length,i=0;i<a;i+=1)t[i]=r[i],t.value[i]=r[i];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,i=[];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=i.length;for(e=0;e<t;e+=1)i[e].release();i.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===i.indexOf(e)&&i.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 i,a=createSizedArray(t.viewData.length),r=t.viewData.length;for(i=0;i<r;i+=1)a[i]=new e(t.viewData[i],t.masksProperties[i]);return function(e){for(i=0;i<r;){if(t.masksProperties[i].nm===e)return a[i];i+=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 i(e,t,i){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(a){if(!e.numKeys)return 0;var r="";r="s"in t.keyframes[a-1]?t.keyframes[a-1].s:"e"in t.keyframes[a-2]?t.keyframes[a-2].e:t.keyframes[a-2].s;var n="unidimensional"===i?new Number(r):Object.assign({},r);return n.time=t.keyframes[a-1].t/t.elem.comp.globalData.frameRate,n.value="unidimensional"===i?r[0]:r,n},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function a(){return e}return function(r){return r?"unidimensional"===r.propType?function(t){t&&"pv"in t||(t=e);var a=1/t.mult,r=t.pv*a,n=new Number(r);return n.value=r,i(n,t,"unidimensional"),function(){return t.k&&t.getValue(),r=t.v*a,n.value!==r&&((n=new Number(r)).value=r,n[0]=r,i(n,t,"unidimensional")),n}}(r):function(e){e&&"pv"in e||(e=t);var a=1/e.mult,r=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",r),o=createTypedArray("float32",r);return n.value=o,i(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<r;t+=1)o[t]=e.v[t]*a,n[t]=o[t];return n}}(r):a}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var i,a,r,n;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?n=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(r=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[i(),a(),r?r():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 i=this.getMatrix(t);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,e)}function i(e,t){var i=this.getMatrix(t);return this.applyPoint(i,e)}function a(e,t){var i=this.getMatrix(t);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,e)}function r(e,t){var i=this.getMatrix(t);return this.invertPoint(i,e)}function n(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,a=this._elem.hierarchy.length;for(i=0;i<a;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,a=this._elem.hierarchy.length;for(i=0;i<a;i+=1)this._elem.hierarchy[i].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 i,a=this._elem.hierarchy.length;for(i=0;i<a;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var d;function p(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return d;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=o,p.applyPoint=n,p.toWorld=i,p.toWorldVec=t,p.fromWorld=r,p.fromWorldVec=a,p.toComp=i,p.fromComp=s,p.sampleImage=l,p.sourceRectAtTime=c.sourceRectAtTime.bind(c),p._elem=c;var u=getDescriptor(d=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return d}},active:{get:function(){return c.isInRange}}}),p.startTime=c.data.st,p.index=c.data.ind,p.source=c.data.refId,p.height=0===c.data.ty?c.data.h:100,p.width=0===c.data.ty?c.data.w:100,p.inPoint=c.data.ip/c.comp.globalData.frameRate,p.outPoint=c.data.op/c.comp.globalData.frameRate,p._name=c.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,c)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(i){return(i=void 0===i?1:i)<=0?e:t(i-1)}},PropertyInterface=function(e,t){var i={_name:e};return function(e){return(e=void 0===e?1:e)<=0?i:t(e-1)}},EffectsExpressionInterface=function(){var e={createEffectsInterface:function(e,i){if(e.effectsManager){var a,r=[],n=e.data.ef,o=e.effectsManager.effectElements.length;for(a=0;a<o;a+=1)r.push(t(n[a],e.effectsManager.effectElements[a],i,e));var s=e.data.ef||[],l=function(e){for(a=0,o=s.length;a<o;){if(e===s[a].nm||e===s[a].mn||e===s[a].ix)return r[a];a+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function t(e,a,r,n){function o(t){for(var i=e.ef,a=0,r=i.length;a<r;){if(t===i[a].nm||t===i[a].mn||t===i[a].ix)return 5===i[a].ty?c[a]:c[a]();a+=1}throw new Error}var s,l=propertyGroupFactory(o,r),c=[],d=e.ef.length;for(s=0;s<d;s+=1)5===e.ef[s].ty?c.push(t(e.ef[s],a.effectElements[s],a.effectElements[s].propertyGroup,n)):c.push(i(a.effectElements[s],e.ef[s].ty,n,l));return"ADBE Color Control"===e.mn&&Object.defineProperty(o,"color",{get:function(){return c[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:l}}),o.enabled=0!==e.en,o.active=o.enabled,o}function i(e,t,i,a){var r=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",a)),function(){return 10===t?i.comp.compInterface(e.p.v):r()}}return e}(),ShapePathInterface=function(e,t,i){var a=t.sh;function r(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?r.path:null}var n=propertyGroupFactory(r,i);return a.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(r,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:i}}),r},ShapeExpressionInterface=function(){function e(e,s,h){var g,m=[],f=e?e.length:0;for(g=0;g<f;g+=1)"gr"===e[g].ty?m.push(t(e[g],s[g],h)):"fl"===e[g].ty?m.push(i(e[g],s[g],h)):"st"===e[g].ty?m.push(n(e[g],s[g],h)):"tm"===e[g].ty?m.push(o(e[g],s[g],h)):"tr"===e[g].ty||("el"===e[g].ty?m.push(l(e[g],s[g],h)):"sr"===e[g].ty?m.push(c(e[g],s[g],h)):"sh"===e[g].ty?m.push(ShapePathInterface(e[g],s[g],h)):"rc"===e[g].ty?m.push(d(e[g],s[g],h)):"rd"===e[g].ty?m.push(p(e[g],s[g],h)):"rp"===e[g].ty?m.push(u(e[g],s[g],h)):"gf"===e[g].ty?m.push(a(e[g],s[g],h)):m.push(r(e[g],s[g])));return m}function t(t,i,a){var r=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,a);var n=function(t,i,a){var r,n=function(e){for(var t=0,i=r.length;t<i;){if(r[t]._name===e||r[t].mn===e||r[t].propertyIndex===e||r[t].ix===e||r[t].ind===e)return r[t];t+=1}return"number"==typeof e?r[e-1]:null};n.propertyGroup=propertyGroupFactory(n,a),r=e(t.it,i.it,n.propertyGroup),n.numProperties=r.length;var o=s(t.it[t.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=t.cix,n._name=t.nm,n}(t,i,r.propertyGroup),o=s(t.it[t.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=n,r.transform=o,Object.defineProperty(r,"_name",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}function i(e,t,i){function a(e){return"Color"===e||"color"===e?a.color:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),a}function a(e,t,i){function a(e){return"Start Point"===e||"start point"===e?a.startPoint:"End Point"===e||"end point"===e?a.endPoint:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",i)),t.e.setGroupProperty(PropertyInterface("End Point",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),a}function r(){return function(){return null}}function n(e,t,i){var a,r=propertyGroupFactory(c,i),n=propertyGroupFactory(l,r);function o(i){Object.defineProperty(l,e.d[i].nm,{get:ExpressionPropertyInterface(t.d.dataProps[i].p)})}var s=e.d?e.d.length:0,l={};for(a=0;a<s;a+=1)o(a),t.d.dataProps[a].p.setGroupProperty(n);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",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),t.w.setGroupProperty(PropertyInterface("Stroke Width",r)),c}function o(e,t,i){function a(t){return t===e.e.ix||"End"===t||"end"===t?a.end:t===e.s.ix?a.start:t===e.o.ix?a.offset:null}var r=propertyGroupFactory(a,i);return a.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",r)),t.e.setGroupProperty(PropertyInterface("End",r)),t.o.setGroupProperty(PropertyInterface("Offset",r)),a.propertyIndex=e.ix,a.propertyGroup=i,Object.defineProperties(a,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),a.mn=e.mn,a}function s(e,t,i){function a(t){return e.a.ix===t||"Anchor Point"===t?a.anchorPoint:e.o.ix===t||"Opacity"===t?a.opacity:e.p.ix===t||"Position"===t?a.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?a.rotation:e.s.ix===t||"Scale"===t?a.scale:e.sk&&e.sk.ix===t||"Skew"===t?a.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?a.skewAxis:null}var r=propertyGroupFactory(a,i);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(a,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),a.ty="tr",a.mn=e.mn,a.propertyGroup=i,a}function l(e,t,i){function a(t){return e.p.ix===t?a.position:e.s.ix===t?a.size:null}var r=propertyGroupFactory(a,i);a.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;return n.s.setGroupProperty(PropertyInterface("Size",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),a.mn=e.mn,a}function c(e,t,i){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.rotation:e.pt.ix===t?a.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?a.outerRadius:e.os.ix===t?a.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?a.innerRoundness:null:a.innerRadius}var r=propertyGroupFactory(a,i),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",r)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),n.pt.setGroupProperty(PropertyInterface("Points",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),e.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),a.mn=e.mn,a}function d(e,t,i){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?a.size:null}var r=propertyGroupFactory(a,i),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.p.setGroupProperty(PropertyInterface("Position",r)),n.s.setGroupProperty(PropertyInterface("Size",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),a.mn=e.mn,a}function p(e,t,i){function a(t){return e.r.ix===t||"Round Corners 1"===t?a.radius:null}var r=propertyGroupFactory(a,i),n=t;return a.propertyIndex=e.ix,n.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(a,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:e.nm}}),a.mn=e.mn,a}function u(e,t,i){function a(t){return e.c.ix===t||"Copies"===t?a.copies:e.o.ix===t||"Offset"===t?a.offset:null}var r=propertyGroupFactory(a,i),n=t;return a.propertyIndex=e.ix,n.c.setGroupProperty(PropertyInterface("Copies",r)),n.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),a.mn=e.mn,a}return function(t,i,a){var r;function n(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?a:r[e-1];for(var t=0,i=r.length;t<i;){if(r[t]._name===e)return r[t];t+=1}return null}return n.propertyGroup=propertyGroupFactory(n,function(){return a}),r=e(t,i,n.propertyGroup),n.numProperties=r.length,n._name="Contents",n}}(),TextExpressionInterface=function(e){var t;function i(e){return"ADBE Text Document"===e?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var i=e.textProperty.currentData.t;return t&&i===t.value||((t=new String(i)).value=i||new String(i),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),i};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="",i=e.getFootageData();function a(e){if(i[e])return t=e,"object"===_typeof(i=i[e])?a:i;var r=e.indexOf(t);if(-1!==r){var n=parseInt(e.substr(r+t.length),10);return"object"===_typeof(i=i[n])?a:i}return""}return function(){return t="",i=e.getFootageData(),a}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,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,i){t.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(e,t,i).bind(i)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),i=this.getValueAtTime(e+-.01),a=0;if(t.length){var r;for(r=0;r<t.length;r+=1)a+=Math.pow(i[r]-t[r],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,i,a=-.001,r=this.getValueAtTime(e),n=this.getValueAtTime(e+a);if(r.length)for(t=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)t[i]=(n[i]-r[i])/a;else t=(n-r)/a;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,i){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var a,r,n,o,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[c.length-1].t;if(l<=d)return this.pv;if(i?r=d-(a=t?Math.abs(d-this.elem.comp.globalData.frameRate*t):Math.max(0,d-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),a=d-(r=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-r)/a)%2!=0)return this.getValueAtTime((a-(l-r)%a+r)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(r/this.comp.globalData.frameRate,0),u=this.getValueAtTime(d/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((l-r)%a+r)/this.comp.globalData.frameRate,0),g=Math.floor((l-r)/a);if(this.pv.length){for(o=(s=new Array(p.length)).length,n=0;n<o;n+=1)s[n]=(u[n]-p[n])*g+h[n];return s}return(u-p)*g+h}if("continue"===e){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),f=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,n=0;n<o;n+=1)s[n]=m[n]+(m[n]-f[n])*((l-d)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-d)/.001*(m-f)}}return this.getValueAtTime(((l-r)%a+r)/this.comp.globalData.frameRate,0)}function t(e,t,i){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var a,r,n,o,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[0].t;if(l>=d)return this.pv;if(i?r=d+(a=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-d)):((!t||t>c.length-1)&&(t=c.length-1),a=(r=c[t].t)-d),"pingpong"===e){if(Math.floor((d-l)/a)%2==0)return this.getValueAtTime(((d-l)%a+d)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(d/this.comp.globalData.frameRate,0),u=this.getValueAtTime(r/this.comp.globalData.frameRate,0),h=this.getValueAtTime((a-(d-l)%a+d)/this.comp.globalData.frameRate,0),g=Math.floor((d-l)/a)+1;if(this.pv.length){for(o=(s=new Array(p.length)).length,n=0;n<o;n+=1)s[n]=h[n]-(u[n]-p[n])*g;return s}return h-(u-p)*g}if("continue"===e){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),f=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,n=0;n<o;n+=1)s[n]=m[n]+(m[n]-f[n])*(d-l)/.001;return s}return m+(m-f)*(d-l)/.001}}return this.getValueAtTime((a-((d-l)%a+d))/this.comp.globalData.frameRate,0)}function i(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var i,a,r=this.comp.renderedFrame/this.comp.globalData.frameRate,n=r-e,o=t>1?(r+e-n)/(t-1):1,s=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(a=this.getValueAtTime(n+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=a[l];else i+=a;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=t;else i/=t;return i}function a(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(e);t.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var a=this.s.getValueAtTime(e);t.scale(a[0]*this.s.mult,a[1]*this.s.mult,a[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(e),n=this.sa.getValueAtTime(e);t.skewFromAxis(-r*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(e);t.rotate(-o*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),d=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-d[2]*this.or.mult).rotateY(d[1]*this.or.mult).rotateX(d[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),u=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,u*this.py.mult,-h*this.pz.mult)}else t.translate(p*this.px.mult,u*this.py.mult,0)}else{var g=this.p.getValueAtTime(e);t.translate(g[0]*this.p.mult,g[1]*this.p.mult,-g[2]*this.p.mult)}return t}function r(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,i){var o=n(e,t,i);return o.dynamicProperties.length?o.getValueAtTime=a.bind(o):o.getValueAtTime=r.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(a,r,n,s,l){var c=o(a,r,n,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=i,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===r.a?r.k.length:0,c.propertyIndex=r.ix;var d=0;return 0!==n&&(d=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(a,r,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 i,a=this.v;void 0!==t&&(a=this.getValueAtTime(t,0));var r=a._length,n=a[e],o=a.v,s=createSizedArray(r);for(i=0;i<r;i+=1)s[i]="i"===e||"o"===e?[n[i][0]-o[i][0],n[i][1]-o[i][1]]:[n[i][0],n[i][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 i=this.v;void 0!==t&&(i=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var a,r=this._segmentsLength,n=r.lengths,o=r.totalLength*e,s=0,l=n.length,c=0;s<l;){if(c+n[s].addedLength>o){var d=s,p=i.c&&s===l-1?0:s+1,u=(o-c)/n[s].addedLength;a=bez.getPointInSegment(i.v[d],i.v[p],i.o[d],i.i[p],u,n[s]);break}c+=n[s].addedLength,s+=1}return a||(a=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),a},vectorOnPath:function(e,t,i){1==e?e=this.v.c:0==e&&(e=.999);var a=this.pointOnPath(e,t),r=this.pointOnPath(e+.001,t),n=r[0]-a[0],o=r[1]-a[1],s=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===i?[n/s,o/s]:[-o/s,n/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 d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,i,a,r){var n=d(e,t,i,a,r);return n.propertyIndex=t.ix,n.lock=!1,3===i?expressionHelpers.searchExpressions(e,t.pt,n):4===i&&expressionHelpers.searchExpressions(e,t.ks,n),n.k&&e.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var i=this.calculateExpression(t);if(e.t!==i){var a={};return this.copyData(a,e),a.t=i.toString(),a.__complete=!1,a}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var i,a,r=createNS("feMerge");for(r.setAttribute("result",e),a=0;a<t.length;a+=1)(i=createNS("feMergeNode")).setAttribute("in",t[a]),r.appendChild(i),r.appendChild(i);return r}};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,i,a,r){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",a+"_tint_1"),e.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",a+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var o=this.createMergeNode(a,[r,a+"_tint_1",a+"_tint_2"]);e.appendChild(o)}function SVGFillFilter(e,t,i,a){this.filterManager=t;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",a),e.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(e,t,i){this.initialized=!1,this.filterManager=t,this.elem=i,this.paths=[]}function SVGTritoneFilter(e,t,i,a){this.filterManager=t;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.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(r);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),this.matrixFilter=n;var o=createNS("feFuncR");o.setAttribute("type","table"),n.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),n.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,e.appendChild(n)}function SVGProLevelsFilter(e,t,i,a){this.filterManager=t;var r=this.filterManager.effectElements,n=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(e,t,i,a,r){var n=t.container.globalData.renderConfig.filterSize,o=t.data.fs||n;e.setAttribute("x",o.x||n.x),e.setAttribute("y",o.y||n.y),e.setAttribute("width",o.width||n.width),e.setAttribute("height",o.height||n.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",a+"_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",a+"_drop_shadow_1"),l.setAttribute("result",a+"_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",a+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var d=createNS("feComposite");d.setAttribute("in",a+"_drop_shadow_3"),d.setAttribute("in2",a+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(d);var p=this.createMergeNode(a,[a+"_drop_shadow_4",r]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",i[0]-t[0]+" 0 0 0 "+t[0]+" "+(i[1]-t[1])+" 0 0 0 "+t[1]+" "+(i[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,i=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 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,i,a,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(a=this.elem.maskManager.masksProperties.length,i=0):a=1+(i=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);i<a;i+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:i});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),o=createElementID();n.setAttribute("id",o),n.setAttribute("mask-type","alpha"),n.appendChild(t),this.elem.globalData.defs.appendChild(n);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");r[0];)s.appendChild(r[0]);this.elem.layerElement.appendChild(s),this.masker=n,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[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 i,a,r=this.paths.length;for(t=0;t<r;t+=1)if(-1!==this.paths[t].m&&(i=this.elem.maskManager.viewData[this.paths[t].m],a=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&a.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.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=a.getTotalLength();n="0 0 0 "+l*o+" ";var c,d=l*(s-o),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(d/p);for(c=0;c<u;c+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*l+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,r=a[0]+" "+i[0]+" "+t[0],n=a[1]+" "+i[1]+" "+t[1],o=a[2]+" "+i[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var i=createNS(e);return i.setAttribute("type","table"),t.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,t,i,a,r){for(var n,o,s=0,l=Math.min(e,t),c=Math.max(e,t),d=Array.call(null,{length:256}),p=0,u=r-a,h=t-e;s<=256;)o=(n=s/256)<=l?h<0?r:a:n>=c?h<0?a:r:a+u*Math.pow((n-e)/h,1/i),d[p]=o,p+=1,s+=256/255;return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(t=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(t=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(t=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(t=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(t=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",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 i=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(a),n=i*Math.sin(a);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,i){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(e,t,i,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var r=createNS("feGaussianBlur");r.setAttribute("result",a),e.appendChild(r),this.feGaussianBlur=r}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,i=_svgMatteSymbols.length;t<i;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var i=e.layerElement.parentNode;if(i){for(var a,r=i.children,n=0,o=r.length;n<o&&r[n]!==e.layerElement;)n+=1;n<=o-2&&(a=r[n+1]);var s=createNS("use");s.setAttribute("href","#"+t),a?i.insertBefore(s,a):i.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var i=createElementID(),a=createNS("mask");a.setAttribute("id",t.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var r=e.globalData.defs;r.appendChild(a);var n=createNS("symbol");n.setAttribute("id",i),this.replaceInParent(t,i),n.appendChild(t.layerElement),r.appendChild(n);var o=createNS("use");o.setAttribute("href","#"+i),a.appendChild(o),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,i=0,a=t.length;i<a;)t[i]&&t[i].data.ind===e&&this.setElementAsMask(this.elem,t[i]),i+=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,i=this.filterManager.effectElements[1].p.v,a=3==i?0:t,r=2==i?0:t;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+r);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},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,i=t[0].p.v,a=t[1].p.v,r=1===t[2].p.v,n=t[3].p.v,o=r?n: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(-i[0],-i[1],i[2]),this.matrix.scale(.01*o,.01*n,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(a[0],a[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())}(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie(),lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=Array(t);i<t;i++)a[i]=e[i];return a}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _iterableToArrayLimit(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a,r,n,o,s=[],l=!0,c=!1;try{if(n=(i=i.call(e)).next,0===t);else for(;!(l=(a=n.call(i)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(t){_defineProperty(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var i,a,r=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)i=n[a],t.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var i={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;i[a]=e[a]}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function(e,t){var i=e.animationData,a=e.loop,r=e.autoplay,n=e.initialSegment,o=e.onComplete,s=e.onLoopComplete,l=e.onEnterFrame,c=e.onSegmentStart,d=e.onConfigReady,p=e.onDataReady,u=e.onDataFailed,h=e.onLoadedImages,g=e.onDOMLoaded,m=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var f=_objectWithoutProperties(e,_excluded$1),y=_slicedToArray(useState(!1),2),b=y[0],v=y[1],_=useRef(),x=useRef(null);return useEffect(function(){var t=function(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(x.current){null===(t=_.current)||void 0===t||t.destroy();var a=_objectSpread2(_objectSpread2(_objectSpread2({},e),i),{},{container:x.current});return _.current=lottie.loadAnimation(a),v(!!_.current),function(){var e;null===(e=_.current)||void 0===e||e.destroy(),_.current=void 0}}}();return function(){return null==t?void 0:t()}},[i,a]),useEffect(function(){_.current&&(_.current.autoplay=!!r)},[r]),useEffect(function(){_.current&&(n?Array.isArray(n)&&n.length&&((_.current.currentRawFrame<n[0]||_.current.currentRawFrame>n[1])&&(_.current.currentRawFrame=n[0]),_.current.setSegment(n[0],n[1])):_.current.resetSegments(!0))},[n]),useEffect(function(){var e=[{name:"complete",handler:o},{name:"loopComplete",handler:s},{name:"enterFrame",handler:l},{name:"segmentStart",handler:c},{name:"config_ready",handler:d},{name:"data_ready",handler:p},{name:"data_failed",handler:u},{name:"loaded_images",handler:h},{name:"DOMLoaded",handler:g},{name:"destroy",handler:m}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;return null===(t=_.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=_.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[o,s,l,c,d,p,u,h,g,m]),{View:React__default.createElement("div",_objectSpread2({style:t,ref:x},f)),play:function(){var e;null===(e=_.current)||void 0===e||e.play()},stop:function(){var e;null===(e=_.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=_.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=_.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var i;null===(i=_.current)||void 0===i||i.goToAndStop(e,t)},goToAndPlay:function(e,t){var i;null===(i=_.current)||void 0===i||i.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=_.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var i;null===(i=_.current)||void 0===i||i.playSegments(e,t)},setSubframe:function(e){var t;null===(t=_.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=_.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=_.current)||void 0===e||e.destroy(),_.current=void 0},animationContainerRef:x,animationLoaded:b,animationItem:_.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),i=t.top,a=t.height;return(window.innerHeight-i)/(window.innerHeight+a)}function getContainerCursorPosition(e,t,i){var a=e.getBoundingClientRect(),r=a.top;return{x:(t-a.left)/a.width,y:(i-r)/a.height}}var useInitInteractivity=function(e){var t=e.wrapperRef,i=e.animationItem,a=e.mode,r=e.actions;useEffect(function(){var e=t.current;if(e&&i&&r.length){i.stop();var n,o,s,l,c;switch(a){case"scroll":return l=null,c=function(){var t=getContainerVisibility(e),a=r.find(function(e){var i=e.visibility;return i&&t>=i[0]&&t<=i[1]});if(a){if("seek"===a.type&&a.visibility&&2===a.frames.length){var n=a.frames[0]+Math.ceil((t-a.visibility[0])/(a.visibility[1]-a.visibility[0])*a.frames[1]);
29
29
  //! goToAndStop must be relative to the start of the current segment
30
- i.goToAndStop(a-i.firstFrame-1,!0)}"loop"===r.type&&(null===l||l!==r.frames||i.isPaused)&&(i.playSegments(r.frames,!0),l=r.frames),"play"===r.type&&i.isPaused&&(i.resetSegments(!0),i.play()),"stop"===r.type&&i.goToAndStop(r.frames[0]-i.firstFrame-1,!0)}},document.addEventListener("scroll",h),function(){document.removeEventListener("scroll",h)};case"cursor":return a=function(e,r){var a=e,o=r;if(-1!==a&&-1!==o){var s=getContainerCursorPosition(t,a,o);a=s.x,o=s.y}var l=n.find(function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?a>=e.x[0]&&a<=e.x[1]&&o>=e.y[0]&&o<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&a===e.x&&o===e.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var h=(a-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(o-l.position.y[0])/(l.position.y[1]-l.position.y[0]);i.playSegments(l.frames,!0),i.goToAndStop(Math.ceil((h+c)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&i.playSegments(l.frames,!0),"play"===l.type&&(i.isPaused&&i.resetSegments(!1),i.playSegments(l.frames)),"stop"===l.type&&i.goToAndStop(l.frames[0],!0)}},o=function(t){a(t.clientX,t.clientY)},s=function(){a(-1,-1)},t.addEventListener("mousemove",o),t.addEventListener("mouseout",s),function(){t.removeEventListener("mousemove",o),t.removeEventListener("mouseout",s)}}}},[r,i])},useLottieInteractivity=function(t){var e=t.actions,i=t.mode,r=t.lottieObj,n=r.animationItem,a=r.View,o=r.animationContainerRef;return useInitInteractivity({actions:e,animationItem:n,mode:i,wrapperRef:o}),a},_excluded=["style","interactivity"],Lottie=function(t){var e,i,r,n=t.style,a=t.interactivity,o=_objectWithoutProperties(t,_excluded),s=useLottie(o,n),l=s.View,h=s.play,c=s.stop,p=s.pause,u=s.setSpeed,d=s.goToAndStop,f=s.goToAndPlay,m=s.setDirection,y=s.playSegments,g=s.setSubframe,b=s.getDuration,v=s.destroy,_=s.animationContainerRef,x=s.animationLoaded,k=s.animationItem;return useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:h,stop:c,pause:p,setSpeed:u,goToAndPlay:f,goToAndStop:d,setDirection:m,playSegments:y,setSubframe:g,getDuration:b,destroy:v,animationContainerRef:_,animationLoaded:x,animationItem:k})},[null===(e=t.lottieRef)||void 0===e?void 0:e.current]),useLottieInteractivity({lottieObj:{View:l,play:h,stop:c,pause:p,setSpeed:u,goToAndStop:d,goToAndPlay:f,setDirection:m,playSegments:y,setSubframe:g,getDuration:b,destroy:v,animationContainerRef:_,animationLoaded:x,animationItem:k},actions:null!==(i=null==a?void 0:a.actions)&&void 0!==i?i:[],mode:null!==(r=null==a?void 0:a.mode)&&void 0!==r?r:"scroll"})};function OnboardImage({node:t}){useLogRender("OnboardImage"),t=useNode(t);const[e,i]=useState(null);return useEffect(()=>{t.attributes?.lottie&&fetch(t.attributes?.lottie).then(t=>t.json()).then(t=>i(t))},[t.attributes?.lottie]),t.attributes?.video_url?jsx("video",{autoPlay:!0,muted:!0,loop:!0,src:t.attributes?.video_url}):t.attributes?.lottie?e?jsx(Lottie,{animationData:e}):jsx("div",{children:"Loading..."}):jsx(Image$2,{node:{...t,type:"image"}})}var OnboardImage$1=React.memo(OnboardImage);function OnboardItem({node:t}){useLogRender("OnboardItem"),t=useNode(t);const e=t.attributes?.flexDirection,i=t.attributes?.display,r=parseSize(t.attributes?.paddingHorizontal);return jsx("div",{className:"embla__slide",style:{gap:parseSize(t.attributes?.gap),flexDirection:e,display:i,paddingRight:r,paddingLeft:r},children:t.children&&jsx(RenderNode$1,{node:t.children})})}var OnboardItem$1=React.memo(OnboardItem);function Text({node:t}){useLogRender("Text"),t=useNode(t);const{appConfig:e}=useRenderStore(t=>({appConfig:t.appConfig})),{defaultLanguage:i,localication:r}=e,n=t.children,a=extractTextStyle(t);return jsx("p",{style:a,children:r?.[i??"en"]?.[n]??n})}var Text$1=React.memo(Text);function OnboardSubtitle({node:t}){return useLogRender("OnboardSubtitle"),t=useNode(t),jsx(Text$1,{node:t})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:t}){return useLogRender("OnboardTitle"),t=useNode(t),jsx(Text$1,{node:t})}var OnboardTitle$1=React.memo(OnboardTitle);function extractViewStyle(t){const e=t.attributes,i={display:"flex",flexDirection:"column"};return e?((e?.scrollable??!1)&&("row"===e.flexDirection?(i.overflowX="auto",i.overflowY="hidden",i.maxWidth="100%",i.maxHeight="100%"):(i.overflowY="auto",i.overflowX="hidden",i.maxHeight="100%",i.maxWidth="100%")),e.flexDirection&&(i.flexDirection=e.flexDirection),e.alignItems&&(i.alignItems=e.alignItems),e.justifyContent&&(i.justifyContent=e.justifyContent),void 0!==e.gap&&(i.gap=e.gap),void 0!==e.padding&&(i.padding=e.padding),void 0!==e.margin&&(i.margin=e.margin),e.backgroundColor&&(i.backgroundColor=e.backgroundColor),void 0!==e.borderRadius&&(i.borderRadius=e.borderRadius),void 0!==e.width&&(i.width=e.width),void 0!==e.height&&(i.height=e.height),i):i}function View({node:t}){return useLogRender("View"),t=useNode(t),jsx("div",{style:extractViewStyle(t),className:"scroll-container",children:jsx(RenderNode$1,{node:t.children})})}var View$1=React.memo(View);function RenderNode({node:t}){if(isNodeNullOrUndefined(t))return null;if(isNodeString(t))return jsx(Text$1,{node:{children:t,type:"text"}});if(isNodeArray(t))return jsx(Fragment,{children:t.map((t,e)=>jsx(RenderNode,{node:t},e))});const e=t;switch(e?.type){case"button":return jsx(Button$1,{node:e});case"carousel":return jsx(Carousel$1,{node:e});case"carouselButtons":return jsx(CarouselButtons$1,{node:e});case"carouselDots":return jsx(CarouselDots$1,{node:e});case"carouselItem":return jsx(CarouselItem$1,{node:e});case"carouselProvider":return jsx(CarouselProvider$1,{node:e});case"image":return jsx(Image$2,{node:e});case"Onboard":return jsx(Onboard$1,{node:e});case"OnboardButton":return jsx(OnboardButton$1,{node:e});case"OnboardButtons":return jsx(OnboardButtons$1,{node:e});case"OnboardDot":return jsx(OnboardDot$1,{node:e});case"OnboardFooter":return jsx(OnboardFooter$1,{node:e});case"OnboardImage":return jsx(OnboardImage$1,{node:e});case"OnboardItem":return jsx(OnboardItem$1,{node:e});case"OnboardProvider":return jsx(OnboardProvider$1,{node:e});case"OnboardSubtitle":return jsx(OnboardSubtitle$1,{node:e});case"OnboardTitle":return jsx(OnboardTitle$1,{node:e});case"text":return jsx(Text$1,{node:e});case"view":return jsx(View$1,{node:e});default:return other(e?.type)}}var RenderNode$1=React.memo(RenderNode);const patterns$1=[{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"button",children:"string",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"]}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carousel",children:"carouselItem",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselButtons",children:"never",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselDots",children:"never",attributes:{dotType:["expanding_dot","normal_dot","scaling_dot","sliding_border","sliding_dot","liquid_like"]}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselItem",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselProvider",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"image",children:"never",attributes:{src:"string",width:"number",height:"number",resizeMode:["cover","contain","stretch","center"],borderRadius:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"Onboard",children:"node",attributes:{}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardButton",children:"never",attributes:{labelKey:"string",button_text_color:"string",animation:["simple-animation","line-animation","blur","blur-animation","blur-line-animation"],animation_color:"string",button_background_color:"string",flex:"number",events:"EventObject[]"}},types:{EventObject:{type:["Permission","Navigate"],permission:["att","notification","rating","GDPR","null"],navigate_to:"string",targetIndex:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardButtons",children:"node",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:"number",buttons_direction:["row","column"],forIndex:"number",seperatorColor:"string",condition:["carousel-index"],conditionVariable:"number"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardDot",children:"node",attributes:{dotType:["expanding_dot","normal_dot","scaling_dot","sliding_border","sliding_dot","liquid_like"],inactive_dot_opacity:"number",expanding_dot_width:"number",dot_style:"string",container_style:"string",active_dot_color:"string"}}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardFooter",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number",textLocalizationKey:"string",linkedWordFirstLocalizationKey:"string",linkedWordFirstColor:"string",linkedWordFirstPage:"string",linkedWordSecondLocalizationKey:"string",linkedWordSecondColor:"string",linkedWordSecondPage:"string"}},defaults:{paddingHorizontal:"24@s"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardImage",children:"node",attributes:{src:"string",width:"number",height:"number",resizeMode:["cover","contain","stretch","center"],borderRadius:"number",video_url:"string",lottie:"string"}},types:{},defaults:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardItem",children:"node",attributes:{display:["flex","block"],gap:"string",flexDirection:["row","column"],paddingHorizontal:"string"}},defaults:{gap:"16@vs",display:"flex",flexDirection:"column",paddingHorizontal:"24@s"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardProvider",children:"node",attributes:{theme:"string",use_safe_area_inset:"boolean",paddingTop:"number",paddingRight:"number",paddingBottom:"number",paddingLeft:"number"}},defaults:{paddingTop:0,paddingRight:0,paddingBottom:8,paddingLeft:0}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardSubtitle",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}},defaults:{fontSize:"14@fs",fontWeight:"600"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardTitle",children:"node",attributes:{color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}},defaults:{fontSize:"24@fs",fontWeight:"700",textAlign:"center"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"text",children:"string",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number",color:"string",fontSize:"number",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"]}},types:{},defaults:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"view",children:["node","array"],attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"string",padding:"number",paddingHorizontal:"string",paddingVertical:"string",paddingTop:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",margin:"string",marginHorizontal:"string",marginVertical:"string",marginTop:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",backgroundColor:"string",borderRadius:"string",width:"number",height:"number"}}}],allcomponentNames=["button","carousel","carouselButtons","carouselDots","carouselItem","carouselProvider","image","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","text","view"],patterns=patterns$1,patternIndex=new Map(patterns.map(t=>[t.pattern.type,t]));function getPatternByType(t){if("string"==typeof t)return patternIndex.get(t)}function getAttributeSchema(t){const e=getPatternByType(t);return e?.pattern.attributes}function getDefaultsForType(t){const e=getPatternByType(t);return e?.defaults}function getTypeSchema(t,e){if(!t||!e)return;const i=getPatternByType(t),r=i?.types;return r?.[e]}function isPrimitiveType(t){return"string"===t||"number"===t||"boolean"===t}function getArrayItemType(t){return"string"!=typeof t?null:t.endsWith("[]")?t.slice(0,-2):null}function Field({name:t,type:e,value:i,onChange:r,componentType:n}){if(Array.isArray(e))return jsxs("select",{value:i??"",onChange:t=>r(t.target.value),className:"input",children:[jsx("option",{value:"",children:"(none)"}),e.map(t=>jsx("option",{value:t,children:t},t))]});const a="string"==typeof e?getArrayItemType(e):null;if(a){const t=Array.isArray(i)?i:[];if(isPrimitiveType(a))return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,i)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input","number"===a?{type:"number",value:e??"",onChange:e=>{const n=[...t];n[i]=""===e.target.value?void 0:Number(e.target.value),r(n)},className:"input",style:{flex:1}}:"boolean"===a?{type:"checkbox",checked:Boolean(e),onChange:e=>{const n=[...t];n[i]=e.target.checked,r(n)}}:{type:"text",value:e??"",onChange:e=>{const n=[...t];n[i]=""===e.target.value?void 0:e.target.value,r(n)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==i);r(e.length?e:void 0)},children:"remove"})]},i)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==a&&("number"===a?0:"")];r(e)},children:"add"})})]});const e=getTypeSchema(n,a)??{};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((i,a)=>{const o=i??{};return jsxs("div",{style:{border:"1px solid #ddd",borderRadius:6,padding:8},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,i])=>jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:i,value:o?.[e],onChange:i=>{const n=[...t],s={...o??{},[e]:i};n[a]=s,r(n)},componentType:n})]},e))}),jsx("div",{style:{marginTop:8},children:jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==a);r(e.length?e:void 0)},children:"remove"})})]},a)}),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];r(e)},children:"add"})})]})}if("string"==typeof e&&!isPrimitiveType(e)){const t=getTypeSchema(n,e);if(t){const e=i??{};return jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(t).map(([t,i])=>jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:t}),jsx(Field,{name:t,type:i,value:e?.[t],onChange:i=>{const n={...e??{},[t]:i};r(n)},componentType:n})]},t))})}}if("number"===e)return jsx("input",{type:"number",value:i??"",onChange:t=>r(""===t.target.value?void 0:Number(t.target.value)),className:"input"});if("boolean"===e)return jsx("input",{type:"checkbox",checked:Boolean(i),onChange:t=>r(t.target.checked)});if("string[]"===e){const t=Array.isArray(i)?i:[];return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,i)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input",{type:"text",value:e??"",onChange:e=>{const n=[...t];n[i]=e.target.value,r(n)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const e=t.filter((t,e)=>e!==i);r(e.length?e:void 0)},children:"remove"})]},i)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,""];r(e)},children:"add"})})]})}return jsx("input",{type:"text",value:i??"",onChange:t=>r(""===t.target.value?void 0:t.target.value),className:"input"})}function AttributesEditor({node:t,onChange:e}){if(useLogRender("AttributesEditor"),!t||isNodeString(t))return null;const i=t,r=getAttributeSchema(i?.type)??{},n=i?.attributes??{},a=Object.entries(r);return 0===a.length?jsx("div",{style:{padding:8,opacity:.7},children:"No editable attributes"}):jsx("div",{style:{},children:a.map(([t,r])=>jsxs(React.Fragment,{children:[jsx("p",{style:{alignSelf:"center",marginBottom:4,fontWeight:700},children:t}),jsx("div",{style:{marginBottom:16},children:jsx(Field,{name:t,type:r,value:n?.[t],onChange:r=>{const a={...i,attributes:{...n??{},[t]:r}};e(a)},componentType:i?.type})})]},t))})}var AttributesEditor$1=React.memo(AttributesEditor),name$8="hello-world",version$8="1.0.0",appConfig$8={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$8={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"},children:[{type:"text",children:"Hello, world!",attributes:{color:"#111827",fontSize:24,fontWeight:"600"}},{type:"text",children:"Welcome to react-native-builder",attributes:{color:"#6B7280",fontSize:14,fontWeight:"400"}}]},simple1={name:name$8,version:version$8,appConfig:appConfig$8,data:data$8},name$7="hello-world-2-advanced",version$7="1.0.0",appConfig$7={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$7={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"},children:[{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12},children:[{type:"text",children:"Dashboard",attributes:{color:"#FFFFFF",fontSize:20,fontWeight:"600"}},{type:"view",attributes:{flexDirection:"row",gap:8},children:[{type:"text",children:"Help",attributes:{color:"#D1D5DB",fontSize:14}},{type:"text",children:"Profile",attributes:{color:"#D1D5DB",fontSize:14}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",width:358,height:160,borderRadius:12,resizeMode:"cover"},children:null},{type:"view",attributes:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12},children:[{type:"text",children:"Welcome back!",attributes:{color:"#111827",fontSize:18,fontWeight:"600"}},{type:"text",children:"Here's what's new today.",attributes:{color:"#6B7280",fontSize:14}}]},{type:"view",attributes:{flexDirection:"column",gap:12},children:[{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 1",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"Due today",attributes:{color:"#059669",fontSize:12,fontWeight:"600"}}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 2",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"2 days left",attributes:{color:"#D97706",fontSize:12,fontWeight:"600"}}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 3",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"Completed",attributes:{color:"#6B7280",fontSize:12,fontWeight:"600"}}]}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12},children:[{type:"text",children:"Home",attributes:{color:"#FFFFFF",fontSize:14}},{type:"text",children:"Search",attributes:{color:"#9CA3AF",fontSize:14}},{type:"text",children:"Settings",attributes:{color:"#9CA3AF",fontSize:14}}]}]},simple2={name:name$7,version:version$7,appConfig:appConfig$7,data:data$7},name$6="carousel-sample",version$6="1.0.0",appConfig$6={theme:"light"},data$6={type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0},children:[{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#f5f5f5",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Welcome to our app!"}}},{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#e8f5e9",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Discover amazing features"}}},{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#e3f2fd",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Get started now!"}}}]},{type:"carouselDots",attributes:{dotType:"expanding_dot"}},{type:"carouselButtons",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:3}}]},carouselSample={name:name$6,version:version$6,appConfig:appConfig$6,data:data$6},name$5="vpn-onboard-1 (legacy)",version$5="0.0.0",appConfig$5={theme:"dark",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"Secure your connection","onboard.title.two-page":"Access content worldwide","onboard.title.three-page":"Fast and reliable","onboard.title.four-page":"Stay notified and safe","onboard.subtitle.one-page":"Encrypt your traffic and protect your privacy on public Wi‑Fi.","onboard.subtitle.two-page":"Connect to high‑speed servers in many countries with one tap.","onboard.subtitle.three-page":"Auto‑connect to the best server for speed and stability.","onboard.subtitle.four-page":"Enable notifications for connection status and security tips.","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy Policy","view.onboarding.btnTerms":"Terms of Service"},ar:{"onboard.title.one-page":"أمّن اتصالك","onboard.title.two-page":"وصول إلى المحتوى حول العالم","onboard.title.three-page":"سرعة واعتمادية","onboard.title.four-page":"إشعارات وحماية دائمة","onboard.subtitle.one-page":"قم بتشفير حركة المرور وحماية خصوصيتك على شبكات Wi‑Fi العامة.","onboard.subtitle.two-page":"اتصل بخوادم عالية السرعة في بلدان متعددة بضغطة واحدة.","onboard.subtitle.three-page":"يتصل التطبيق تلقائياً بأفضل خادم لسرعة وثبات أعلى.","onboard.subtitle.four-page":"فعّل الإشعارات لمعرفة حالة الاتصال والحصول على نصائح الأمان.","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة، فإنك توافق على","view.onboarding.btnPrivacy":"سياسة الخصوصية","view.onboarding.btnTerms":"شروط الخدمة"}},defaultLanguage:"en"},data$5={name:"Dark TextCall Onboard",key:"app_onboard",theme:"dark",order:1,data:{layout:"onboard-layout",key:"c92tR8J5wbTb3fav",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cfVlTs4XoBH6eHhy",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"c9BoiuHQQ8yWnnrH",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:"#007AFF"}}],styles:[]}},{layout:"footer-layout",key:"c1yg0ajCz15VwbXO",attributes:{texts:[{layout:"Text",key:"cUEOEGlJHu98Bm4M",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"clmIqcwqLbpf5lIC",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#1778F2",page:"privacy"}},{layout:"LinkedWords",key:"cR2iFjXZv6aKSipt",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#1778F2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"ctJKE0JpoyY2U2py",attributes:{key:"app_onboard-page1",components:[{layout:"title-layout",key:"czW0y11EJ3Gh2zzu",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cFtkJ7cGjlbh0Onm",attributes:{styles:[{layout:"Styles",key:"cRfjSLASNf4EfmRk",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"ccaPDeW3TvadGknh",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png"}},{layout:"subtitle-layout",key:"cS8AJFtYl83g6N7l",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cfxys3dqXXQIoWib",attributes:{styles:[{layout:"Styles",key:"cdqzVzWecbtQHHOZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cADNBYmKZhuqHDe3",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cvgeWjSVK9714zE4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cYbS4tQuDbqRjJP6",attributes:{events:[{layout:"Navigate",key:"cnwVlRVwR2Oa37Wa",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cO7EfoP6WnwCbZFN",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cLDTXbDjepmRilZP",attributes:{events:[{layout:"Navigate",key:"cVe34D6lvpt6jfkc",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cJ5P9VObBmpapdIz",attributes:{key:"app_onboard-page2",components:[{layout:"title-layout",key:"cWaHDeqd8N5LpAdr",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"c5n7fUy2koZD1iY5",attributes:{styles:[{layout:"Styles",key:"c7uK89glQz4MHrZc",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"czvCm7FXp4sQrlBi",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png"}},{layout:"subtitle-layout",key:"cJO33EgsbvxZVV57",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cKZLIPtywsfi5Mbz",attributes:{styles:[{layout:"Styles",key:"cce8Yv695FQgSOIH",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cR43NhA7k4XN4bFU",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cZbvXpcCDBzCy4xq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cOweHSx9FF1rKmXE",attributes:{events:[{layout:"Permission",key:"cfnK7ww1nyzVLquV",attributes:{permission:"att"}},{layout:"Navigate",key:"cdQXhjSGC97aDV5Q",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cP3ZMgA0DgYBMTjH",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5ud1yXzSHQOl99m",attributes:{events:[{layout:"Permission",key:"caWvIjHlpzkWsSkU",attributes:{permission:"att"}},{layout:"Navigate",key:"cqCP16bRc8OrVYnj",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cxNW3BfLJV7m1Rwb",attributes:{key:"app_onboard-page3",components:[{layout:"title-layout",key:"c4jWJqatyNrpRDv5",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cyxWxkO4H6GcLGpV",attributes:{styles:[{layout:"Styles",key:"c2EQHxoKIHqE6usb",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"cQPrCUhAFzzvZvFL",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png"}},{layout:"subtitle-layout",key:"c845kgEFTytoeb5n",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c8I866TChSrcTxLA",attributes:{styles:[{layout:"Styles",key:"cPi4CsGpMpnyl1Qo",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cHRet3F1pMbLLv4e",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cPjaITcYuN3jYXaz",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cwHy3RdNIAhrdyk9",attributes:{events:[{layout:"Navigate",key:"c9tQ5JwLNEl4m6iE",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"calWhCnS7bVqDLSm",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5WDaaMMyzF6wbMw",attributes:{events:[{layout:"Permission",key:"czWoimoKrntcpPMu",attributes:{permission:"rating"}},{layout:"Navigate",key:"csga6VsmtRL4dJoH",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"c6OPQRoj7nIYq8qP",attributes:{key:"app_onboard-page4",components:[{layout:"title-layout",key:"cY7hE2QfCFUpAvIr",attributes:{title_localization_key:"onboard.title.four-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"ch0psI5S3gY93lkS",attributes:{styles:[{layout:"Styles",key:"ci8SBK0k6Ox0cAY4",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"cyzRYhHdmYpSZKWz",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png"}},{layout:"subtitle-layout",key:"cEtGSW5s89pVPO3p",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c7q1e8klEqvuTib2",attributes:{styles:[{layout:"Styles",key:"cRoSg4908XkN9tLr",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cFOXUx3qf7wvRQPK",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cILIurDiN8C6Nk9t",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cPkTX9lI025TuA2d",attributes:{events:[{layout:"Permission",key:"cenFPRHcA87TmbkC",attributes:{permission:"notification"}},{layout:"Navigate",key:"c0ZQIOWZ81XjaWmA",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}}]}}},vpnOnboard1={name:name$5,version:version$5,appConfig:appConfig$5,data:data$5},name$4="vpn-onboard-2 (legacy)",version$4="0.0.0",appConfig$4={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.two-page":"Two Page","onboard.title.three-page":"Three Page","onboard.title.four-page":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.two-page":" العربية","onboard.title.three-page":" العربية","onboard.title.four-page":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.four-page":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$4={name:"Light TextCall Onboard",key:"app_onboard",theme:"light",order:3,data:{layout:"onboard-layout",key:"ckcw0WXRY8sNR2SF",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cGCRrFJjSzYghZ4Q",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"cDpkxR1j6ooHGrU9",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:"#007AFF"}}],styles:[]}},{layout:"footer-layout",key:"cqkMhW1f0q0tDK1r",attributes:{texts:[{layout:"Text",key:"cAxC6cU3U9i1jxTq",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"cLISLCL0ybiWxpze",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#1778F2",page:"privacy"}},{layout:"LinkedWords",key:"ccsI2OTvUzQJLo6g",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#1778F2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cFxlMJ99IXCFJfba",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"cEgDUYy0F2959VoY",attributes:{title_localization_key:"onboard.title.one-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cIflKK6zz4926DQA",attributes:{styles:[{layout:"Styles",key:"cXGRCly7sTM1wPXp",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cd3LFLBcjBfEz90D",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png"}},{layout:"subtitle-layout",key:"cumoZTMcp3Ewdgtq",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"c8iENqCAEKDzSNEq",attributes:{styles:[{layout:"Styles",key:"cRjElXN8FhsCbwbt",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cQgWwz7oN0lXiGnV",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cmbJYRjfh25VI7pA",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8fR08Jp0GWJtW4U",attributes:{events:[{layout:"Navigate",key:"cGFaKCTZ6RkGAKw7",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:"line-animation",animation_color:"#FFFFFF"}},{layout:"button-layout",key:"cBx6we1fBvBHNCdM",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cqC2H6ygkjzKj1TW",attributes:{events:[{layout:"Navigate",key:"cMmDIAW9MAUNcPQA",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:"simple-animation",animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cgh6jEnSF0m2MrAE",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cuIDsIKqy8wnkxWO",attributes:{title_localization_key:"onboard.title.two-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c1wm3B4Avb8ewdwB",attributes:{styles:[{layout:"Styles",key:"cS5KY2wak36qZ7Po",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"c0uaSOOOFSldTX3O",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png"}},{layout:"subtitle-layout",key:"cJUPKqGxDQLJhF3r",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cjgSBQCcdIHlgqAL",attributes:{styles:[{layout:"Styles",key:"cRmpdFLYvNtRBrjZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"chGpEveV4xybUQje",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cdjnq57fneiIxBd2",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8XixwmhiXnhSWJN",attributes:{events:[{layout:"Permission",key:"cBsbZMsU90ojXQqO",attributes:{permission:"att"}},{layout:"Navigate",key:"c3ByPHQlA5V0EDfL",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cQEeZInlfh7u3vXB",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cmu069qysyrgassB",attributes:{events:[{layout:"Permission",key:"c4hcnecQIMrouWCy",attributes:{permission:"att"}},{layout:"Navigate",key:"cxHcZeIJBXHmR779",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cSvSxn9VJuC5Ld7i",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"cKrfdMzfUxGdYhst",attributes:{title_localization_key:"onboard.title.three-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cO0uTIgytvIPus6O",attributes:{styles:[{layout:"Styles",key:"ccUpxb1n3yNqZig0",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cW7eKTK8kwrmHPZF",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png"}},{layout:"subtitle-layout",key:"cKeCJntAd8La4kt6",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cl8QMTgTLyRZEo5d",attributes:{styles:[{layout:"Styles",key:"c7IfOTlsraVDcxsv",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cVnKizCpTO9oedvX",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cQh6Yr0AySTv7JTJ",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cXBXIWhYO8sMiAea",attributes:{events:[{layout:"Navigate",key:"ckR5hy3gdEX9Tbcp",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"caD93TUBvqM9stiK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cUWsk6ZaobgtjygM",attributes:{events:[{layout:"Permission",key:"cD9EfBXK9ojHo5K3",attributes:{permission:"rating"}},{layout:"Navigate",key:"cvdgLEu69Or72lJh",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cmx3sT3YRgACNoBv",attributes:{key:"app_onboard-page4",min_android_version:"12",components:[{layout:"title-layout",key:"cLijTCmxd6N2beqg",attributes:{title_localization_key:"onboard.title.four-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c9E18gzzew8i3c0i",attributes:{styles:[{layout:"Styles",key:"cEgw4X1DFG20kX7Y",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cZoslaVC3xb7mcWc",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png"}},{layout:"subtitle-layout",key:"cdCwD5nJ2DlDO5KY",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cNc4qj0KNwAXFENj",attributes:{styles:[{layout:"Styles",key:"c2GDBOndoaWxghsj",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cAOcd1hyFKZNzosk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cxFfSJNZcJqPavkh",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cgtBZJvdDVlzDAIE",attributes:{events:[{layout:"Permission",key:"cO5VtdbSc4xVTEUo",attributes:{permission:"notification"}},{layout:"Navigate",key:"cTEG49LslKtvx85s",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard2={name:name$4,version:version$4,appConfig:appConfig$4,data:data$4},name$3="vpn-onboard-3 (legacy)",version$3="0.0.0",appConfig$3={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$3={name:"Light TextCall Onboard - 2",key:"app_onboard_ab_classic",theme:"light",order:7,data:{layout:"onboard-layout",key:"ckcw0WXRY8sNR2SF",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cGCRrFJjSzYghZ4Q",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"cgk7eew2LNqwIfdl",attributes:{inactive_dot_opacity:null,active_dot_color:null,expanding_dot_width:null,dot_style:null,container_style:null}}],styles:[]}},{layout:"footer-layout",key:"cqkMhW1f0q0tDK1r",attributes:{texts:[{layout:"Text",key:"cAxC6cU3U9i1jxTq",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"cLISLCL0ybiWxpze",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#81838F",page:"privacy"}},{layout:"LinkedWords",key:"ccsI2OTvUzQJLo6g",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#81838F",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cFxlMJ99IXCFJfba",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"cEgDUYy0F2959VoY",attributes:{title_localization_key:"onboard.title.one-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cIflKK6zz4926DQA",attributes:{styles:[{layout:"Styles",key:"cXGRCly7sTM1wPXp",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cd3LFLBcjBfEz90D",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg"}},{layout:"subtitle-layout",key:"cumoZTMcp3Ewdgtq",attributes:{subtitle_localization_key:"onboard.subtitle.one-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"c8iENqCAEKDzSNEq",attributes:{styles:[{layout:"Styles",key:"cRjElXN8FhsCbwbt",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cQgWwz7oN0lXiGnV",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cmbJYRjfh25VI7pA",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8fR08Jp0GWJtW4U",attributes:{events:[{layout:"Navigate",key:"cGFaKCTZ6RkGAKw7",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cBx6we1fBvBHNCdM",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cqC2H6ygkjzKj1TW",attributes:{events:[{layout:"Navigate",key:"cMmDIAW9MAUNcPQA",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cgh6jEnSF0m2MrAE",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cuIDsIKqy8wnkxWO",attributes:{title_localization_key:"onboard.title.two-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c1wm3B4Avb8ewdwB",attributes:{styles:[{layout:"Styles",key:"cS5KY2wak36qZ7Po",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"c0uaSOOOFSldTX3O",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cJUPKqGxDQLJhF3r",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cjgSBQCcdIHlgqAL",attributes:{styles:[{layout:"Styles",key:"cRmpdFLYvNtRBrjZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"chGpEveV4xybUQje",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cdjnq57fneiIxBd2",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8XixwmhiXnhSWJN",attributes:{events:[{layout:"Permission",key:"cBsbZMsU90ojXQqO",attributes:{permission:"att"}},{layout:"Navigate",key:"c3ByPHQlA5V0EDfL",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cQEeZInlfh7u3vXB",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cmu069qysyrgassB",attributes:{events:[{layout:"Permission",key:"c4hcnecQIMrouWCy",attributes:{permission:"att"}},{layout:"Navigate",key:"cxHcZeIJBXHmR779",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cSvSxn9VJuC5Ld7i",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"cKrfdMzfUxGdYhst",attributes:{title_localization_key:"onboard.title.three-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cO0uTIgytvIPus6O",attributes:{styles:[{layout:"Styles",key:"ccUpxb1n3yNqZig0",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cW7eKTK8kwrmHPZF",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cKeCJntAd8La4kt6",attributes:{subtitle_localization_key:"onboard.subtitle.three-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cl8QMTgTLyRZEo5d",attributes:{styles:[{layout:"Styles",key:"c7IfOTlsraVDcxsv",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cVnKizCpTO9oedvX",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cQh6Yr0AySTv7JTJ",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cXBXIWhYO8sMiAea",attributes:{events:[{layout:"Navigate",key:"ckR5hy3gdEX9Tbcp",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"caD93TUBvqM9stiK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cUWsk6ZaobgtjygM",attributes:{events:[{layout:"Permission",key:"cAD0IWOPG8glmDtL",attributes:{permission:"rating"}},{layout:"Navigate",key:"cvdgLEu69Or72lJh",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cmx3sT3YRgACNoBv",attributes:{key:"app_onboard-page4",min_android_version:"12",components:[{layout:"title-layout",key:"cLijTCmxd6N2beqg",attributes:{title_localization_key:"onboard.title.four-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c9E18gzzew8i3c0i",attributes:{styles:[{layout:"Styles",key:"cEgw4X1DFG20kX7Y",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cZoslaVC3xb7mcWc",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cdCwD5nJ2DlDO5KY",attributes:{subtitle_localization_key:"onboard.subtitle.four-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cNc4qj0KNwAXFENj",attributes:{styles:[{layout:"Styles",key:"c2GDBOndoaWxghsj",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cAOcd1hyFKZNzosk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cxFfSJNZcJqPavkh",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cgtBZJvdDVlzDAIE",attributes:{events:[{layout:"Permission",key:"cO5VtdbSc4xVTEUo",attributes:{permission:"notification"}},{layout:"Navigate",key:"cTEG49LslKtvx85s",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard3={name:name$3,version:version$3,appConfig:appConfig$3,data:data$3},name$2="vpn-onboard-4 (legacy)",version$2="0.0.0",type$2="nova",appConfig$2={theme:"dark",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$2={name:"Dark TextCall Onboard - 2",key:"app_onboard_ab_classic",theme:"dark",order:8,data:{layout:"onboard-layout",key:"c92tR8J5wbTb3fav",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cfVlTs4XoBH6eHhy",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"ca08ia4pBmSgWK9o",attributes:{inactive_dot_opacity:null,active_dot_color:null,expanding_dot_width:null,dot_style:null,container_style:null}}],styles:[]}},{layout:"footer-layout",key:"c1yg0ajCz15VwbXO",attributes:{texts:[{layout:"Text",key:"cUEOEGlJHu98Bm4M",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"clmIqcwqLbpf5lIC",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#81838F",page:"privacy"}},{layout:"LinkedWords",key:"cR2iFjXZv6aKSipt",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#81838F",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"ctJKE0JpoyY2U2py",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"czW0y11EJ3Gh2zzu",attributes:{title_localization_key:"onboard.title.one-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cFtkJ7cGjlbh0Onm",attributes:{styles:[{layout:"Styles",key:"cRfjSLASNf4EfmRk",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"ccaPDeW3TvadGknh",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg"}},{layout:"subtitle-layout",key:"cS8AJFtYl83g6N7l",attributes:{subtitle_localization_key:"onboard.subtitle.one-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cfxys3dqXXQIoWib",attributes:{styles:[{layout:"Styles",key:"cdqzVzWecbtQHHOZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cADNBYmKZhuqHDe3",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cvgeWjSVK9714zE4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cYbS4tQuDbqRjJP6",attributes:{events:[{layout:"Navigate",key:"cnwVlRVwR2Oa37Wa",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cO7EfoP6WnwCbZFN",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cLDTXbDjepmRilZP",attributes:{events:[{layout:"Navigate",key:"cVe34D6lvpt6jfkc",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cJ5P9VObBmpapdIz",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cWaHDeqd8N5LpAdr",attributes:{title_localization_key:"onboard.title.two-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"c5n7fUy2koZD1iY5",attributes:{styles:[{layout:"Styles",key:"c7uK89glQz4MHrZc",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"czvCm7FXp4sQrlBi",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cJO33EgsbvxZVV57",attributes:{subtitle_localization_key:"onboard.subtitle.two-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cKZLIPtywsfi5Mbz",attributes:{styles:[{layout:"Styles",key:"cce8Yv695FQgSOIH",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cR43NhA7k4XN4bFU",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cZbvXpcCDBzCy4xq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cOweHSx9FF1rKmXE",attributes:{events:[{layout:"Permission",key:"cfnK7ww1nyzVLquV",attributes:{permission:"att"}},{layout:"Navigate",key:"cdQXhjSGC97aDV5Q",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cP3ZMgA0DgYBMTjH",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5ud1yXzSHQOl99m",attributes:{events:[{layout:"Permission",key:"caWvIjHlpzkWsSkU",attributes:{permission:"att"}},{layout:"Navigate",key:"cqCP16bRc8OrVYnj",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cxNW3BfLJV7m1Rwb",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"c4jWJqatyNrpRDv5",attributes:{title_localization_key:"onboard.title.three-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cyxWxkO4H6GcLGpV",attributes:{styles:[{layout:"Styles",key:"c2EQHxoKIHqE6usb",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cQPrCUhAFzzvZvFL",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"c845kgEFTytoeb5n",attributes:{subtitle_localization_key:"onboard.subtitle.three-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c8I866TChSrcTxLA",attributes:{styles:[{layout:"Styles",key:"cPi4CsGpMpnyl1Qo",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cHRet3F1pMbLLv4e",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cPjaITcYuN3jYXaz",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cwHy3RdNIAhrdyk9",attributes:{events:[{layout:"Navigate",key:"c9tQ5JwLNEl4m6iE",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"calWhCnS7bVqDLSm",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5WDaaMMyzF6wbMw",attributes:{events:[{layout:"Permission",key:"cVbu3bzJMfCd2WQY",attributes:{permission:"rating"}},{layout:"Navigate",key:"csga6VsmtRL4dJoH",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"c6OPQRoj7nIYq8qP",attributes:{key:"app_onboard-page4",min_android_version:null,components:[{layout:"title-layout",key:"cY7hE2QfCFUpAvIr",attributes:{title_localization_key:"onboard.title.four-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"ch0psI5S3gY93lkS",attributes:{styles:[{layout:"Styles",key:"ci8SBK0k6Ox0cAY4",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cyzRYhHdmYpSZKWz",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cEtGSW5s89pVPO3p",attributes:{subtitle_localization_key:"onboard.subtitle.four-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c7q1e8klEqvuTib2",attributes:{styles:[{layout:"Styles",key:"cRoSg4908XkN9tLr",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cFOXUx3qf7wvRQPK",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cILIurDiN8C6Nk9t",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cPkTX9lI025TuA2d",attributes:{events:[{layout:"Permission",key:"cenFPRHcA87TmbkC",attributes:{permission:"notification"}},{layout:"Navigate",key:"c0ZQIOWZ81XjaWmA",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard4={name:name$2,version:version$2,type:type$2,appConfig:appConfig$2,data:data$2},name$1="vpn-onboard-5 (legacy)",version$1="0.0.0",type$1="nova",appConfig$1={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$1={name:"app_onboard",key:"app_onboard",theme:"all",order:2,data:{layout:"onboard-layout",key:"cJVVSS7q9Qe1trnb",attributes:{general_components:[{layout:"dots-layout",key:"cdNahru8m9BDyVr9",attributes:{position:"before_buttons",dots_type:null,dot:[{layout:"expanding_dot",key:"ctWoX6jkgKy1nNGQ",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:null}}],styles:[]}},{layout:"footer-layout",key:"cgOl0PVI66a51Xr3",attributes:{texts:[{layout:"Text",key:"cAqUfPg1uA4PjtmV",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"c0wJnbvQu8vLB0BJ",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#0450E2",page:"privacy"}},{layout:"LinkedWords",key:"cyoIya4E71u4OHWq",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#0450E2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cQcJZFJji41pTo1Q",attributes:{key:"app_onboard-page1",components:[{layout:"image-layout",key:"cXoQJuJ7cxH4s64I",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"c8qXZHfKYcivItNT",attributes:{styles:[{layout:"Styles",key:"ckUXExyauqNBUAwB",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png"}},{layout:"title-layout",key:"cDhqeMQJnHwrKDWx",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNXYD8CPZaJoOKjR",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cWgBUJIek4XF9XfH",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cG54WG2pH8LVehkt",attributes:{button_text_localization_key:"onboard.skip.one-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cxo62SYr15CFXzWj",attributes:{events:[{layout:"Navigate",key:"cLhVLu0pR5E3OuHk",attributes:{next_page_key:"app_onboard-page4","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],width:"50",flex:"1",animation:null,animation_color:null}},{layout:"button-layout",key:"c8r6biKAKhGKBZXn",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c7fcavpy1HpWKAHU",attributes:{events:[{layout:"Navigate",key:"cEgzPBOiNNrbshp5",attributes:{next_page_key:"app_onboard-page2","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"crIFXHKvOoOdLFbc",attributes:{key:"app_onboard-page2",components:[{layout:"image-layout",key:"crGN7ZD9Al0KDbyO",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cw0P5mczWuONhEbg",attributes:{styles:[{layout:"Styles",key:"cHzPzMduoxMt2IY1",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4"}},{layout:"title-layout",key:"cSlHcp6WVRGdj233",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ciJuUH1g7kHrcZDq",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cSDr8RbSvsWaHgVS",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cl9p09wdxNez5TmI",attributes:{button_text_localization_key:"onboard.skip.two-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cOARcdUyemgWucuS",attributes:{events:[{layout:"Navigate",key:"cdF9gJjTW63M4S3c",attributes:{next_page_key:"app_onboard-page4","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],width:"50",flex:"1",animation:null,animation_color:null}},{layout:"button-layout",key:"cC9C4xf7Kwnryduw",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cO0ZNlY08Wa33OUp",attributes:{events:[{layout:"Navigate",key:"cOwrXBiSMDOXAARa",attributes:{next_page_key:"app_onboard-page3","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cRcBQOfcmficdPUY",attributes:{key:"app_onboard-page3",components:[{layout:"image-layout",key:"chWqWfotZ42DTHkU",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cOyhSl2d6xD4YBT8",attributes:{styles:[{layout:"Styles",key:"cStijuDpCE47LXF4",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png"}},{layout:"title-layout",key:"cc69aqukeCYi6zuO",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNtG6fvLNACSZliB",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cRNaL0iEMtwOMqVT",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"ceQNn3ve4OdblaEm",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cM9lBEdgv8VzYR0t",attributes:{events:[{layout:"Navigate",key:"cEt0vTfkypQWrkrx",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cFjtaB6BOUV3Ip29",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cuPFPKGosJNEU49L",attributes:{events:[{layout:"Navigate",key:"c47aYuDXDJXnpdCF",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cvF8znA2sZJvJKV5",attributes:{key:"app_onboard-page4",components:[{layout:"image-layout",key:"cmw7qmHSA52Mttez",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cDnXLpY6QmMXPGhT",attributes:{styles:[{layout:"Styles",key:"cVzDRXhfx5P3NQKQ",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png"}},{layout:"title-layout",key:"cMW4PNcuTdZKSngn",attributes:{title_localization_key:"onboard.title.five-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ccpicN327gsRyFJp",attributes:{subtitle_localization_key:"onboard.subtitle.five-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cdm2DIT7kD4SvwxW",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cDDu4EvIPgtDFSOe",attributes:{flex:"1",button_text_localization_key:"onboard.skip.five-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"ciNwcrOQRS8rUQWX",attributes:{events:[{layout:"Navigate",key:"ceoJdn5Vi8VlKwGB",attributes:{next_page_key:"app_onboard-page6",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cvNQ3BzQKrtWrLaK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.five-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cixURShcsDonDzuS",attributes:{events:[{layout:"Permission",key:"cYiDsu5eOu4VHjTb",attributes:{permission:"GDPR"}},{layout:"Navigate",key:"c424DHuSbxJtA4m8",attributes:{next_page_key:"app_onboard-page6",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cULySX5qq2hxSO5N",attributes:{key:"app_onboard-page6",min_android_version:"12",components:[{layout:"image-layout",key:"cZCzg1jcXG2rXy1b",attributes:{is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",styles:[{layout:"style-layout",key:"ckoRsXLKpMCILG9F",attributes:{styles:[{layout:"Styles",key:"cHURGqbxNgt96chA",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png"}},{layout:"title-layout",key:"cO6wWotYOuJPLDbc",attributes:{title_localization_key:"onboard.title.six-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#080A17",coloredwords:[],styles:[]}},{layout:"subtitle-layout",key:"cDIVj9rl0VIBxbI2",attributes:{subtitle_localization_key:"onboard.subtitle.six-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cxRVdgxRS50IFXeQ",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"ckLBCEjo9LbNbgtq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.five-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cXZQSRK1d7cHi73U",attributes:{events:[{layout:"Navigate",key:"cINgrHJRYvVyheTR",attributes:{next_page_key:"app_onboard-page5",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"chWb7guVX17iKROt",attributes:{show_text:!0,button_text_localization_key:"onboard.next.five-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cYIevROTAbCVnyyQ",attributes:{events:[{layout:"Permission",key:"cm5mY6ECMFw1WyMB",attributes:{permission:"rating"}},{layout:"Navigate",key:"cQ3RIXG05B7MHlKH",attributes:{next_page_key:"app_onboard-page5",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cvwqV44zsCpvLwy7",attributes:{key:"app_onboard-page5",min_android_version:"12",components:[{layout:"image-layout",key:"chRCiye8FT1Cy6SA",attributes:{is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",styles:[{layout:"style-layout",key:"c3b9w6meMhe7XkUE",attributes:{styles:[{layout:"Styles",key:"cPy0O9UunlzDGjHK",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png"}},{layout:"title-layout",key:"chcc2uafpnDHXSD8",attributes:{title_localization_key:"onboard.title.four-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#080A17",coloredwords:[],styles:[]}},{layout:"subtitle-layout",key:"c0VwHBlerb8RtnWH",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"ccaVCvljoCGjS7Rk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cizDbKCkioVCtGHQ",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"ck2MWHW68aJnpBxI",attributes:{events:[{layout:"Permission",key:"cSpEVuZ4QYflHoCs",attributes:{permission:"notification"}},{layout:"Navigate",key:"cqEcD9va4vTra00o",attributes:{next_page_key:"subscriptions",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:"home",close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}],use_safe_area_inset:!0}}},vpnOnboard5={name:name$1,version:version$1,type:type$1,appConfig:appConfig$1,data:data$1},name="vpn-onboard-6 (legacy)",version="0.0.0",type="nova",appConfig={theme:"dark",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data={name:"app_onboard1",key:"app_onboard",theme:"dark",order:3,data:{layout:"onboard-layout",key:"cJVVSS7q9Qe1trnb",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cdNahru8m9BDyVr9",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"ctWoX6jkgKy1nNGQ",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:null}}],styles:[]}},{layout:"footer-layout",key:"cgOl0PVI66a51Xr3",attributes:{texts:[{layout:"Text",key:"cAqUfPg1uA4PjtmV",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"c0wJnbvQu8vLB0BJ",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#0450E2",page:"privacy"}},{layout:"LinkedWords",key:"cyoIya4E71u4OHWq",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#0450E2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cQcJZFJji41pTo1Q",attributes:{key:"app_onboard-page1",components:[{layout:"image-layout",key:"cXoQJuJ7cxH4s64I",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"c5j5kKdUlw2FPgpj",attributes:{styles:[{layout:"Styles",key:"c2wx1diAfvoO73UE",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png"}},{layout:"title-layout",key:"cDhqeMQJnHwrKDWx",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNXYD8CPZaJoOKjR",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cWgBUJIek4XF9XfH",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cG54WG2pH8LVehkt",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cxo62SYr15CFXzWj",attributes:{events:[{layout:"Navigate",key:"cLhVLu0pR5E3OuHk",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"c8r6biKAKhGKBZXn",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c7fcavpy1HpWKAHU",attributes:{events:[{layout:"Navigate",key:"cEgzPBOiNNrbshp5",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"crIFXHKvOoOdLFbc",attributes:{key:"app_onboard-page2",components:[{layout:"image-layout",key:"crGN7ZD9Al0KDbyO",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"ctLDm5bItpLEGj67",attributes:{styles:[{layout:"Styles",key:"cjvTMl0iVyMoSLJX",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png"}},{layout:"title-layout",key:"cSlHcp6WVRGdj233",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ciJuUH1g7kHrcZDq",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cSDr8RbSvsWaHgVS",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cl9p09wdxNez5TmI",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cOARcdUyemgWucuS",attributes:{events:[{layout:"Navigate",key:"cdF9gJjTW63M4S3c",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cC9C4xf7Kwnryduw",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cO0ZNlY08Wa33OUp",attributes:{events:[{layout:"Navigate",key:"cOwrXBiSMDOXAARa",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cRcBQOfcmficdPUY",attributes:{key:"app_onboard-page3",components:[{layout:"image-layout",key:"chWqWfotZ42DTHkU",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"cjqEEYogrLEzZRtY",attributes:{styles:[{layout:"Styles",key:"c5PHmIfw5M0ncTMb",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png"}},{layout:"title-layout",key:"cc69aqukeCYi6zuO",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNtG6fvLNACSZliB",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cRNaL0iEMtwOMqVT",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"c70LtlMO3Nv6Cgb4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cmLkX9THQz0n5cmC",attributes:{events:[{layout:"Navigate",key:"cUsGGKCMR6jtd041",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cFjtaB6BOUV3Ip29",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cWnCp8SEvoozyzHt",attributes:{events:[{layout:"Permission",key:"cuBXgAPhZi9KjP9e",attributes:{permission:"rating"}},{layout:"Navigate",key:"cuDh9kCby5zuxxM2",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cvF8znA2sZJvJKV5",attributes:{key:"app_onboard-page4",components:[{layout:"image-layout",key:"cmw7qmHSA52Mttez",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"clFXKiPX8Zc5DZa9",attributes:{styles:[{layout:"Styles",key:"cPLa5Mzc2mMNHcVS",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png"}},{layout:"title-layout",key:"cMW4PNcuTdZKSngn",attributes:{title_localization_key:"onboard.title.four-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ccpicN327gsRyFJp",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cdm2DIT7kD4SvwxW",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cc4zDTvmHh5AhjTr",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cab9Uvd4nqeUA4Hb",attributes:{events:[{layout:"Permission",key:"cW6WWySokxpYwV9w",attributes:{permission:"notification"}},{layout:"Navigate",key:"cBdaRtFk5Iqo1FGu",attributes:{next_page_key:"subscriptions",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:"home",close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:"12"}}]}}},vpnOnboard6={name:name,version:version,type:type,appConfig:appConfig,data:data};function novaToJson(t){const e=t.data.data?.layout;return console.info("layout",e),"onboard-layout"===e?onboardNovaToJson(t):null}function onboardNovaToJson(t){const e=t?.data?.data?.attributes||t?.data?.attributes||{},i=e?.general_components||[],r=e?.data||[],n=mapDotsFromGeneralComponents(i),a=mapFooterFromGeneralComponents(i),{carouselNode:o,providerLevelButtons:s}=buildCarouselFromPages(r);return{type:"OnboardProvider",isMain:!0,key:t?.data?.data?.key,children:[o,...n?[n]:[],...s.length?s:[],...a?[a]:[]],attributes:{theme:t?.data?.theme,use_safe_area_inset:void 0===e?.use_safe_area_inset||e?.use_safe_area_inset}}}function buildCarouselFromPages(t){const e=t.filter(t=>"simple-onboard-layout"===t?.layout),i=new Map;e.forEach((t,e)=>{const r=t?.attributes?.key;"string"==typeof r&&i.set(r,e)});const r=[];return{carouselNode:{type:"Onboard",children:e.map(t=>buildCarouselItem(t,i,r))},providerLevelButtons:r}}function buildCarouselItem(t,e,i){const r=t?.attributes?.components||[],n=[],a=t?.attributes?.key,o="string"==typeof a&&e.has(a)?e.get(a):void 0;for(const t of r)if("title-layout"===t?.layout){const e=t?.attributes?.title_localization_key||"",i=t?.attributes?.title_color||void 0,{fontSize:r,textAlign:a,marginTop:o,fontWeight:s}=extractTextStyleAttributesFromComponent(t);n.push({type:"OnboardTitle",attributes:i||r||a||o||s?{...i?{color:i}:{},..."number"==typeof r?{fontSize:r}:{},...a?{textAlign:a}:{},..."number"==typeof o?{marginTop:o}:{},...s?{fontWeight:s}:{}}:void 0,children:e})}else if("subtitle-layout"===t?.layout){const e=t?.attributes?.subtitle_localization_key||"",i=t?.attributes?.subtitle_color||void 0,{fontSize:r,textAlign:a,marginTop:o,fontWeight:s}=extractTextStyleAttributesFromComponent(t);n.push({type:"OnboardSubtitle",attributes:i||r||a||o||s?{...i?{color:i}:{},..."number"==typeof r?{fontSize:r}:{},...a?{textAlign:a}:{},..."number"==typeof o?{marginTop:o}:{},...s?{fontWeight:s}:{}}:void 0,children:e})}else if("image-layout"===t?.layout){const e=t?.attributes?.image||t?.attributes?.src||"",i=t?.attributes?.height??t?.attributes?.ios_height??t?.attributes?.android_height,r="string"==typeof i?Number.parseInt(i,10):"number"==typeof i?i:void 0,a=Boolean(t?.attributes?.is_bg_image),o=extractViewStyleAttributesFromComponent(t),s=t?.attributes?.lottie,l=t?.attributes?.video_url;e&&n.push({type:"OnboardImage",attributes:{src:e,...r?{height:r}:{},resizeMode:a?"cover":"contain",..."number"==typeof o.borderRadius?{borderRadius:o.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===t?.layout){const r=t?.attributes?.buttons_direction,n=t?.attributes?.buttons||[],a=[];for(const t of n){const i=t?.attributes||{},r=i?.button_text_localization_key||"",n=i?.button_text_color,o=i?.button_background_color,s=i?.animation,l=i?.animation_color,h=i?.flex?Number(i.flex):void 0,c=i?.actions||[],p=[];for(const t of c){const i=t?.attributes?.events||[];for(const t of i)if("Permission"===t?.layout){const e=t?.attributes?.permission;p.push({type:"Permission",permission:e})}else if("Navigate"===t?.layout){const i=t?.attributes?.next_page_key,r="string"==typeof i&&e.has(i),n=r?null:"string"==typeof i?i:null;p.push({type:"Navigate",navigate_to:n,...r?{targetIndex:e.get(i)}:{}}),r&&e.get(i)}}a.push({type:"OnboardButton",attributes:{labelKey:r,..."string"==typeof n?{button_text_color:n}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof o?{button_background_color:o}:{},..."number"==typeof h?{flex:h}:{},...p.length?{events:p}:{}},children:void 0})}a.length>0&&i.push({type:"OnboardButtons",attributes:{...r?{buttons_direction:r}:{},..."number"==typeof o?{condition:"carousel-index",conditionVariable:o}:{}},children:a})}const s=t?.attributes?.key,l="string"==typeof s&&s||("string"==typeof t?.key?t.key:void 0);return{type:"OnboardItem",...l?{key:l}:{},children:n}}function extractTextStyleAttributesFromComponent(t){const e={},i=t?.attributes?.styles||[];if(!Array.isArray(i)||0===i.length)return e;const r=new Set(["left","center","right","justify"]),n=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const t of i){if("style-layout"!==t?.layout)continue;const i=t?.attributes?.styles||[];if(Array.isArray(i))for(const t of i){if("Styles"!==t?.layout)continue;const i=t?.attributes?.type;if("textStyle"!==i)continue;const a=t?.attributes?.style||{},o=a?.fontSize;if("number"==typeof o&&Number.isFinite(o))e.fontSize=o;else if("string"==typeof o){const t=Number.parseInt(o,10);Number.isFinite(t)&&(e.fontSize=t)}const s=a?.textAlign;"string"==typeof s&&r.has(s)&&(e.textAlign=s);const l=a?.marginTop;if("number"==typeof l&&Number.isFinite(l))e.marginTop=l;else if("string"==typeof l){const t=Number.parseInt(l,10);Number.isFinite(t)&&(e.marginTop=t)}const h=a?.fontWeight;let c;"number"==typeof h&&Number.isFinite(h)?c=String(h):"string"==typeof h&&(c=h),c&&n.has(c)&&(e.fontWeight=c)}}return e}function extractViewStyleAttributesFromComponent(t){const e={},i=t?.attributes?.styles||[];if(!Array.isArray(i)||0===i.length)return e;for(const t of i){if("style-layout"!==t?.layout)continue;const i=t?.attributes?.styles||[];if(Array.isArray(i))for(const t of i){if("Styles"!==t?.layout)continue;const i=t?.attributes?.style||{},r=i?.borderRadius;if("number"==typeof r&&Number.isFinite(r))e.borderRadius=r;else if("string"==typeof r){const t=Number.parseInt(r,10);Number.isFinite(t)&&(e.borderRadius=t)}}}return e}function mapDotsFromGeneralComponents(t){const e=t.find(t=>"dots-layout"===t?.layout);if(!e)return null;const i=e?.attributes?.dot||[],r=i?.[0],n=r?.layout,a=r?.attributes||{},o=t=>{if("number"==typeof t)return t;if("string"==typeof t&&t.trim().length>0){const e=Number(t);return Number.isFinite(e)?e:void 0}},s=o(a?.inactive_dot_opacity),l=o(a?.expanding_dot_width),h="string"==typeof a?.dot_style?a.dot_style:void 0,c="string"==typeof a?.container_style?a.container_style:void 0,p="string"==typeof a?.active_dot_color?a.active_dot_color:void 0,u={};return n&&(u.dotType=n),void 0!==s&&(u.inactive_dot_opacity=s),void 0!==l&&(u.expanding_dot_width=l),h&&(u.dot_style=h),c&&(u.container_style=c),p&&(u.active_dot_color=p),{type:"OnboardDot",attributes:Object.keys(u).length?u:void 0,children:void 0}}function mapFooterFromGeneralComponents(t){const e=t.find(t=>"footer-layout"===t?.layout);if(!e)return null;const i=e?.attributes?.texts||[],r=[];let n,a;for(const t of i)if("Text"===t?.layout){const e=t?.attributes?.text_localization_key||"",i=t?.attributes?.text_color||void 0;n||(n=e),a||"string"!=typeof i||(a=i);const o=t?.attributes?.linkedwords||[];for(const t of o)if("LinkedWords"===t?.layout){const e=t?.attributes?.linked_word_localization_key,i=t?.attributes?.linked_word_color,n=t?.attributes?.page;r.push({text_key:e,color:i,page:n})}}const o={gap:8};n&&(o.textLocalizationKey=n),a&&(o.textColor=a);const s=r[0],l=r[1];return s&&(s.text_key&&(o.linkedWordFirstLocalizationKey=s.text_key),s.color&&(o.linkedWordFirstColor=s.color),s.page&&(o.linkedWordFirstPage=s.page)),l&&(l.text_key&&(o.linkedWordSecondLocalizationKey=l.text_key),l.color&&(o.linkedWordSecondColor=l.color),l.page&&(o.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:o,children:void 0}}function getSamples(){const t=[{...vpnOnboard1,appConfig:{...defaultAppConfig,...vpnOnboard1.appConfig}},{...vpnOnboard2,appConfig:{...defaultAppConfig,...vpnOnboard2.appConfig}},{...vpnOnboard3,appConfig:{...defaultAppConfig,...vpnOnboard3.appConfig}},{...vpnOnboard4,appConfig:{...defaultAppConfig,...vpnOnboard4.appConfig}},{...vpnOnboard5,appConfig:{...defaultAppConfig,...vpnOnboard5.appConfig}},{...vpnOnboard6,appConfig:{...defaultAppConfig,...vpnOnboard6.appConfig}}];return t.forEach(t=>{t.data=novaToJson(t)}),[simple1,simple2,carouselSample,...t]}function getBasicSamples(){return[simple1,simple2,carouselSample]}function getOnboardSamples(){const t=[{...vpnOnboard1,appConfig:{...defaultAppConfig,...vpnOnboard1.appConfig}},{...vpnOnboard2,appConfig:{...defaultAppConfig,...vpnOnboard2.appConfig}},{...vpnOnboard3,appConfig:{...defaultAppConfig,...vpnOnboard3.appConfig}},{...vpnOnboard4,appConfig:{...defaultAppConfig,...vpnOnboard4.appConfig}},{...vpnOnboard5,appConfig:{...defaultAppConfig,...vpnOnboard5.appConfig}},{...vpnOnboard6,appConfig:{...defaultAppConfig,...vpnOnboard6.appConfig}}];return t.forEach(t=>{t.data=novaToJson(t)}),t}function DeviceMockFrame({children:t}){useLogRender("DeviceMockFrame");const{appConfig:e,device:i}=useRenderStore(t=>({appConfig:t.appConfig,device:t.device})),r="dark"===e.theme,[n,a,o,s]=i.insets??[0,0,0,0],l=n||("ios"===i.platform?20:24),h=(()=>{switch(i.navigationBarType){case"none":return 0;case"homeIndicator":return o||6;case"gesture":return o||24;case"threeButtons":return o||48;case"tabBar":return o||49;default:return o||0}})(),c=r?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.06)",p=r?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.04)";return jsx("div",{className:"stage-wrapper",style:{overflow:"auto"},children:jsxs("div",{className:"stage",style:{width:i.width,height:i.height,minWidth:i.width,maxWidth:i.width,minHeight:i.height,maxHeight:i.height,overflow:"hidden",position:"relative",padding:4,direction:e.isRtl?"rtl":"ltr",backgroundColor:"dark"===e.theme?e.screenStyle.dark.backgroundColor:e.screenStyle.light.backgroundColor,color:"dark"===e.theme?e.screenStyle.dark.color:e.screenStyle.light.color,display:"flex",flexDirection:"column",borderRadius:i.radius??0},children:[jsx("div",{className:"device-status-bar",style:{position:"absolute",top:0,left:0,right:0,height:l,backgroundColor:c,flex:"0 0 auto"}}),jsx("div",{className:"device-content",style:{flex:1,overflow:"hidden",position:"relative",paddingLeft:s,paddingRight:a},children:t}),jsx("div",{className:"device-navigation-bar",style:{height:h,backgroundColor:p,flex:"0 0 auto"}})]})})}function RenderPage({data:t}){useLogRender("RenderPage");const{device:e}=useRenderStore(t=>({device:t.device}));return e.width,e.height,jsx(DeviceMockFrame,{children:jsx(RenderNode$1,{node:t})})}function isNodeData(t){return null!=t&&(!Array.isArray(t)&&("string"!=typeof t&&("object"==typeof t&&("type"in t&&"children"in t))))}function querySelector(t,e){if(null==t)return[];if(!e)return[];const i=e.startsWith("#"),r=i?e.slice(1):void 0,n=[],a=t=>{if(null!=t)if(Array.isArray(t))for(const e of t)a(e);else"string"!=typeof t&&isNodeData(t)&&((t=>i?t.key===r:t.type===e)(t)&&n.push(t),a(t.children))};return a(t),n}const devices=getDevices();function DeviceButton({device:t,selectedDevice:e,setSelectedDevice:i}){return jsxs("button",{className:"editor-device-button "+(e===t?"editor-device-button--selected":""),onClick:()=>i(t),children:[t.name," ",jsx("br",{}),t.width,"x",t.height]})}function EditorHeader({onSaveProject:t,current:e,editorData:i,setEditorData:r}){useLogRender("EditorHeader");const[n,a]=useState(!1),o=useRenderStore(t=>t.copiedNode),{device:s,setDevice:l}=useRenderStore(t=>({device:t.device,setDevice:t.setDevice}));function h(t,e,i){if(t===e)return i;if(null==t)return t;if("string"==typeof t)return t;if(Array.isArray(t)){let r=!1;const n=t.map(t=>{const n=h(t,e,i);return n!==t&&(r=!0),n});return r?n:t}const r=t;if("children"in r){const t=r.children,n=Array.isArray(t)?t.map(t=>h(t,e,i)):h(t,e,i);if(n!==t)return r.children=n,{...r,children:n}}return t}return jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxs("div",{className:"editor-header__devices",children:[devices.slice(0,5).map(t=>jsx(DeviceButton,{selectedDevice:t,setSelectedDevice:l,device:t},t.name)),jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>a(!0),children:"More devices"})]}),jsxs("div",{className:"editor-header__actions",children:[jsx("button",{className:"editor-button editor-save-button","aria-label":"Save project data",onClick:()=>t&&t(),children:"Save"}),jsx("button",{className:"editor-button editor-save-previewconfig-button","aria-label":"Save previewConfig",onClick:()=>useRenderStore.getState().forceRender(),children:"Force Render"}),jsx("button",{className:"editor-button","aria-label":"Copy node",onClick:()=>{e&&copyNode(e)},children:"Copy"}),o&&jsx("button",{className:"editor-button","aria-label":"Paste node",onClick:()=>{if(!e||!i||!r)return;if(!o)return;const t=JSON.parse(JSON.stringify(o)),n=h(i,e,t);useRenderStore.setState({copiedNode:null}),useRenderStore.getState().forceRender(),r(n)},children:"Paste"})]}),n&&jsxs("div",{className:"editor-modal",role:"dialog","aria-modal":"true","aria-labelledby":"device-selector-title",children:[jsx("div",{className:"editor-modal__overlay",onClick:()=>a(!1)}),jsxs("div",{className:"editor-modal__content",children:[jsxs("div",{className:"editor-modal__header",children:[jsx("h3",{id:"device-selector-title",children:"Select a device"}),jsx("button",{className:"editor-button","aria-label":"Close device selector",onClick:()=>a(!1),children:"Close"})]}),jsx("div",{className:"editor-device-grid",role:"list",children:devices.map(t=>jsx(DeviceButton,{selectedDevice:t,setSelectedDevice:t=>{l(t),a(!1)},device:t},t.name))})]})]})]})}function AttributesEditorPanel({current:t,attributes:e,onChange:i,setCurrent:r}){if(useLogRender("AttributesEditorPanel"),!t)return null;function n(t,e,i){if(t===e)return i;if(null==t)return t;if("string"==typeof t)return t;if(Array.isArray(t)){let r=!1;const a=t.map(t=>{const a=n(t,e,i);return a!==t&&(r=!0),a});return r?a:t}const r=t;if("children"in r){const t=r.children,a=Array.isArray(t)?t.map(t=>n(t,e,i)):n(t,e,i);if(a!==t)return r.children=a,{...r,children:a}}return t}const[a,o]=useState(t),[s,l]=useState(!1),h=useMemo(()=>{try{return JSON.stringify(t)===JSON.stringify(a)}catch{return t===a}},[t,a]);return useEffect(()=>{o(t),l(!1)},[t,e]),useEffect(()=>{l(!h)},[h]),jsxs("div",{style:{padding:12},children:[jsx("h2",{children:t.type??t?.toString()??"?"})," ",jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"16px 0"},children:[jsx("h3",{style:{marginTop:0,marginBottom:0,flex:"1 1 auto"},children:"Attributes"}),jsx("button",{disabled:!s,onClick:()=>{o(t),l(!1)},children:"Revert"}),jsx("button",{disabled:!s,onClick:()=>{const o=n(e,t,a);i(o),l(!1),r(a)},children:"Accept"})]}),jsx(AttributesEditor$1,{node:a,onChange:t=>{o(t),l(!0)}})]})}function Breadcrumb({items:t,separator:e="/",ariaLabel:i="Breadcrumb"}){return useLogRender("Breadcrumb"),jsx("nav",{className:"breadcrumb","aria-label":i,children:jsx("ol",{className:"breadcrumb__list",children:t.map((i,r)=>{const n=r===t.length-1;return jsxs("li",{className:"breadcrumb__item",children:[r>0&&jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:e}),n||!i.to?jsx("span",{className:"breadcrumb__current","aria-current":"page",children:i.label}):jsx("p",{onClick:i.onClick,className:"breadcrumb__link",children:i.label})]},`${i.label}-${r}`)})})})}function BuilderButton({node:t,onClick:e}){if(isNodeNullOrUndefined(t))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(t))return jsx("div",{className:"builder__text",children:t});const i=t;let r="";return i.attributes?.condition&&(r=` (${i.attributes.condition} ${i.attributes.conditionVariable})`),jsxs("a",{onClick:e,className:"builder__button",children:[i.type," ",r]})}function BuilderComponent({node:t,onClick:e}){if(isNodeNullOrUndefined(t))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(t))return jsxs("div",{className:"builder__text",children:[t," (Please define a node)"]});if(isNodeArray(t))return jsx("div",{className:"builder__list",children:t.map((t,i)=>jsx(BuilderButton,{onClick:()=>{e(t)},node:t},i))});const i=t,r=i.children?isNodeArray(i.children)?i.children:[i.children]:null;return jsxs("div",{className:"builder__node",children:[jsx("p",{className:"builder__node-type",children:i.type}),jsx("div",{className:"builder__children",children:r&&r.map((t,i)=>jsx(BuilderButton,{onClick:()=>{e(t)},node:t},i))})]})}function Builder({data:t,setData:e,current:i,setCurrent:r}){useLogRender("Builder");const[n,a]=useState(["root"]),o=useMemo(()=>n.map((t,e)=>({label:t})),[n]);function s(t,e,i){if(t===e)return i;if(null==t)return t;if("string"==typeof t)return t;if(Array.isArray(t)){let r=!1;const n=t.map(t=>{const n=s(t,e,i);return n!==t&&(r=!0),n});return r?n:t}const r=t;if("children"in r){const t=r.children,n=Array.isArray(t)?t.map(t=>s(t,e,i)):s(t,e,i);if(n!==t)return r.children=n,{...r,children:n}}return t}return jsxs("div",{className:"builder",children:[jsx(Breadcrumb,{items:o}),jsx("div",{className:"builder__current",children:n[n.length-1]+" ( "+n.length+". level )"}),jsx(BuilderComponent,{onClick:t=>{r(t),a(e=>[...e,"string"==typeof t?t:t.type])},node:i}),!isNodeNullOrUndefined(i)&&!isNodeString(i)&&!isNodeArray(i)&&(()=>{const n=function(t){if(isNodeNullOrUndefined(t)||isNodeString(t)||isNodeArray(t))return[];const e=t.type;if("OnboardButtons"===e)return["OnboardButton"];const i=getPatternByType(e)?.pattern?.children;return i?"never"===i||"string"===i?[]:"node"===i||Array.isArray(i)&&i.includes("node")?[...allcomponentNames]:"string"==typeof i?[i]:[]:[]}(i);return 0===n.length?null:jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,paddingTop:12},children:n.map(n=>jsxs("button",{className:"editor-button",onClick:()=>{const a=i,o=function(t){const e=getPatternByType(t)?.pattern,i=getDefaultsForType(t)??{};let r="";const n=e?.children;return r="never"===n||"string"===n?"":"node"===n||Array.isArray(n)&&n.includes("node")||"string"==typeof n?[]:"",{type:t,children:r,attributes:{...i}}}(n);let l;l=Array.isArray(a.children)?[...a.children,o]:null===a.children||void 0===a.children||"string"==typeof a.children?[o]:[a.children,o];const h={...a,children:l},c=s(t,i,h);e(c),r(h)},children:["Add ",n]},n))})})()]})}function BuilderTab({data:t,setData:e,current:i,setCurrent:r}){return useLogRender("BuilderTab"),jsx("div",{role:"tabpanel",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsx(Builder,{data:t,setData:e,current:i,setCurrent:r})})}const r$1=(t,e,i,r,n)=>{if(!r)throw new Error(null!=n?n:`Invalid property path: ${e}\nCouldn't access "${i}" in ${JSON.stringify(t)}`)},e$1=t=>"object"==typeof t&&null!==t&&!Array.isArray(t),t$1=t=>Array.isArray(t),n=(t,e)=>t.filter((t,i)=>i!==e),o=(t,e,r,a={})=>{const{remove:o=!1,createNew:s=!0,noError:l=!1}=a,h=t,c="string"==typeof(p=e)?p:"number"==typeof p?String(p):p.reduce((t,e)=>"number"==typeof e?`${t}[${e}]`:""===t?e:`${t}.${e}`,"");var p;const u=Object.assign(Object.assign({},a),{remove:o,createNew:s,noError:l,fullData:h,fullPath:c}),d=Array.isArray(e)?e:(t=>Array.isArray(t)?t:t.split(/(\.|\[\d+\])/).filter(t=>"."!==t&&""!==t).map(t=>{const e=/\[(\d+)\]/.exec(t);return e?Number(e[1]):t}).flat())(e).filter(t=>""!==t);return t$1(t)&&o&&1===d.length?n(t,d[0]):i(t,d,r,u)},i=(t,e,r,o)=>{const l=e$1(t)?Object.assign({},t):null,h=t$1(t)?[...t]:null;if(0===e.length)return t;if(!l&&!h)throw new Error("Can't assign property -- invalid input object");const{createNew:c,remove:p,noError:u,fullData:d,fullPath:f}=o,m=e[0];if(h&&"string"==typeof m)return h.map(t=>i(t,e,r,o));if(1===e.length){if(l&&"string"==typeof m){const t=a(l,m,r,o);return null!=t?t:l}return h&&"number"==typeof m?(s(h,m,r,o),h):(r$1(d,f,m,u),t)}const y=l||h||[];if(p&&2===e.length&&"number"==typeof e[1]){const t=y[m],i=e[1];return t$1(t)?y[m]=n(t,i):r$1(d,f,m,u,"Trying to remove an indexed item from an object that is not an array"),y}const g=e.slice(1);if(m in t){if(b=y[m],!t$1(b)&&!e$1(b)){if(!c)return r$1(d,f,m,u),y;y[m]={}}return y[m]=i(y[m],g,r,o),y}var b;if(c){const t="number"==typeof g[0]?[]:{};if(l)return y[m]=t,y[m]=i(y[m],g,r,o),y;if(h&&Array.isArray(y)){y.push(t);const e=y.length-1;return y[e]=i(y[e],g,r,o),y}}return r$1(d,f,m,u),y},a=(t,e,i,r)=>{const{remove:n,createNew:a,noError:o,insertAfter:s,insertBefore:l,fullData:h,fullPath:c}=r;if(void 0!==l||void 0!==s){const r=Object.entries(t);let n=1/0;return n="number"==typeof l?l:"number"==typeof s?s:r.findIndex(([t,e])=>t===(null!=l?l:s)),s&&n++,r.splice(n,0,[e,i]),Object.fromEntries(r)}const p=e in t;n?p?delete t[e]:r$1(h,c,e,o):a||p?t[e]=i:r$1(h,c,e,o)},s=(t,e,i,r)=>{const{noError:n,fullData:a,fullPath:o,createNew:s,insert:l}=r;l&&t.splice(e,0,i),e in t?t[e]=i:s?t.push(i):r$1(a,o,e,n)},r=(i,n,a)=>{const o=Array.isArray(n)?n:t(n);if(0===o.length)return i;const s=o[0];if(Array.isArray(i)&&"number"!=typeof s)return i.map(t=>r(t,o));if("object"!=typeof i||null===i||!(s in i))return e(i,s);const l=i[s];return 1===o.length?l:r(l,o.slice(1))},t=t=>t.split(/(\.|\[\d+\])/).filter(t=>"."!==t&&""!==t).map(t=>{const e=/\[(\d+)\]/.exec(t);return e?Number(e[1]):t}).flat(),e=(t,e,i)=>{throw new Error(`Unable to extract object property\nLooking for property: ${e}\nIn object: ${JSON.stringify(t)}`)};function p(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(i[r[n]]=t[r[n]])}return i}function g(t,e,i,r){return new(i||(i=Promise))(function(e,n){function a(t){try{s(r.next(t))}catch(t){n(t)}}function o(t){try{s(r.throw(t))}catch(t){n(t)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i(function(t){t(r)})).then(a,o)}s((r=r.apply(t,[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const m=({className:t,name:e,value:i,setValue:r,handleKeyPress:n,styles:a,textAreaRef:o})=>{if("string"!=typeof i)return null;const s="\n"===i.slice(-1)?i+".":i;return jsxs("div",{style:{display:"grid"},children:[jsx("textarea",{id:`${e}_textarea`,ref:o,style:Object.assign({height:"auto",gridArea:"1 / 1 / 2 / 2",overflowY:"auto",whiteSpace:"pre-wrap"},a),rows:1,className:t,name:`${e}_textarea`,value:i,onChange:t=>r(t.target.value),autoFocus:!0,onFocus:t=>{i.length<40&&t.target.select()},onKeyDown:n}),jsx("span",{className:t,style:Object.assign({visibility:"hidden",height:"auto",gridArea:"1 / 1 / 2 / 2",color:"red",opacity:.9,whiteSpace:"pre-wrap",overflowY:"auto",border:"1px solid transparent"},a),children:s})]})},h=t=>null!==t&&"object"==typeof t,y=(t,e,i,r="")=>{if(!i&&!r)return!0;switch(t){case"collection":if(i){if(i(e,r))return!0;if(!f(r,e,i))return!1}if(!i&&r&&!f(r,e))return!1;break;case"value":if(i&&!i(e,r))return!1;if(!i&&r&&!b(e,r))return!1}return!0},f=(t="",e,i=b)=>{const r=e.value;return Object.entries(r).some(([n,a])=>{const o=[...e.path,n],s=Object.assign(Object.assign({},e),{key:n,path:o,level:e.level+1,value:a,size:o.length,parentData:r});return h(a)?f(t,s,i):i(s,t)})},b=(t,e="")=>{const{value:i}=t;if(null===i&&"null".includes(e.toLowerCase()))return!0;switch(typeof i){case"string":return i.toLowerCase().includes(e.toLowerCase());case"number":return!!String(i).includes(e);case"boolean":return i?"true".includes(e.toLowerCase())||"1"===e:"false".includes(e.toLowerCase())||"0"===e;default:return!1}},v=({key:t,path:e},i="")=>!!b({value:t},i)||!!e.some(t=>b({value:t},i)),j=(t,e)=>(null!=e?e:"")+t.map(t=>""===t?String.fromCharCode(0):t).join("."),E=t=>t.shiftKey?"Shift":t.metaKey?"Meta":t.ctrlKey?"Control":t.altKey?"Alt":void 0,w=(t,e,i)=>{const r=t.key,n=E(t);if(Array.isArray(e))return!!n&&e.includes(n);const{key:a,modifier:o}=e;return("stringLineBreak"!==i||"Enter"!==r||"Shift"!==n||"Enter"!==a||!(null==o?void 0:o.includes("Shift")))&&r===a&&(o===n||Array.isArray(o)&&o.includes(n))},D={key:"Enter"},C={confirm:D,cancel:{key:"Escape"},objectConfirm:Object.assign(Object.assign({},D),{modifier:["Meta","Shift","Control"]}),objectLineBreak:D,stringConfirm:D,stringLineBreak:Object.assign(Object.assign({},D),{modifier:["Shift"]}),numberConfirm:D,numberUp:{key:"ArrowUp"},numberDown:{key:"ArrowDown"},tabForward:{key:"Tab"},tabBack:{key:"Tab",modifier:"Shift"},booleanConfirm:D,booleanToggle:{key:" "},clipboardModifier:["Meta","Control"],collapseModifier:["Alt"]},O=(t,e,i="next",n)=>{const a=e.slice(0,e.length-1),o=e.slice(-1)[0];if(void 0===o)return null;const s=r(t,a),l=S(s);Array.isArray(s)||n(l,({key:t,value:e})=>[t,e]);const c=l.findIndex(t=>t.key===o),p=l[c+("next"===i?1:-1)];return p?h(p.value)?0===Object.keys(p.value).length?O(t,[...a,p.key],i,n):k(t,[...a,p.key],i,n):[...a,p.key]:0===a.length?null:O(t,a,i,n)},k=(t,e,i="next",n)=>{const a=r(t,e);if(!h(a))return e;const o=Array.isArray(a)?a.map((t,e)=>e):Object.keys(a);n(o,t=>[t,a]);const s="next"===i?o[0]:o[o.length-1];return k(t,[...e,s],i,n)},S=t=>Array.isArray(t)?t.map((t,e)=>({index:e,value:t,key:e})):Object.entries(t).map(([t,e],i)=>({key:t,value:e,index:i})),N=(t,e)=>{var i,r,n,a;const o=t.current,s=null!==(i=null==o?void 0:o.selectionStart)&&void 0!==i?i:1/0,l=null!==(r=null==o?void 0:o.selectionEnd)&&void 0!==r?r:1/0,h=(null===(n=null==o?void 0:o.textContent)||void 0===n?void 0:n.slice(0,s))+e+(null===(a=null==o?void 0:o.textContent)||void 0===a?void 0:a.slice(l));return o.value=h,null==o||o.setSelectionRange(s+1,s+1),h},T=t=>{if(t!==x){if(Array.isArray(t))return t.map(t=>T(t));if(t&&"object"==typeof t)for(const e in t)t[e]=T(t[e]);return t}},x="__​undefined__",A={displayName:"Default",fragments:{edit:"rgb(42, 161, 152)"},styles:{container:{backgroundColor:"#f6f6f6",fontFamily:"monospace"},collection:{},collectionInner:{},collectionElement:{},dropZone:{},property:"#292929",bracket:{color:"rgb(0, 43, 54)",fontWeight:"bold"},itemCount:{color:"rgba(0, 0, 0, 0.3)",fontStyle:"italic"},string:"rgb(203, 75, 22)",number:"rgb(38, 139, 210)",boolean:"green",null:{color:"rgb(220, 50, 47)",fontVariant:"small-caps",fontWeight:"bold"},input:["#292929"],inputHighlight:"#b3d8ff",error:{fontSize:"0.8em",color:"red",fontWeight:"bold"},iconCollection:"rgb(0, 43, 54)",iconEdit:"edit",iconDelete:"rgb(203, 75, 22)",iconAdd:"edit",iconCopy:"rgb(38, 139, 210)",iconOk:"green",iconCancel:"rgb(203, 75, 22)"}},P=createContext({getStyles:()=>({}),icons:{}}),R=({theme:t=A,icons:e={},docRoot:i,children:r})=>{const n=I(t,i);return jsx(P.Provider,{value:{getStyles:(t,e)=>"function"==typeof n[t]?n[t](e):n[t],icons:e},children:r})},K=()=>useContext(P),I=(t,e)=>{var i,r,n,a;const o={},s=(Array.isArray(t)?t:[t]).map(t=>_(t)?V({fragments:{},styles:t},o):V(t,o)),l=V(A,{});Object.keys(l).forEach(t=>{const e=t;s.forEach(t=>{t[e]&&(l[e]=Object.assign(Object.assign({},l[e]),t[e]))})});const h=Object.assign({},l);return Object.entries(o).forEach(([t,e])=>{const i=t;h[i]=t=>{const r=e(t)||{};return Object.assign(Object.assign({},l[i]),r)}}),"function"!=typeof(null==h?void 0:h.inputHighlight)&&(null===(i=null==h?void 0:h.inputHighlight)||void 0===i?void 0:i.backgroundColor)&&e.style.setProperty("--jer-highlight-color",null===(r=null==h?void 0:h.inputHighlight)||void 0===r?void 0:r.backgroundColor),"function"!=typeof(null==h?void 0:h.iconCopy)&&(null===(n=null==h?void 0:h.iconCopy)||void 0===n?void 0:n.color)&&e.style.setProperty("--jer-icon-copy-color",null===(a=null==h?void 0:h.iconCopy)||void 0===a?void 0:a.color),h},V=(t,e)=>{const{fragments:i,styles:r}=t,n={};return Object.entries(r).forEach(([t,r])=>{const a=(Array.isArray(r)?r:[r]).reduce((r,n)=>{var a,o;if("function"==typeof n)return e[t]=n,Object.assign({},r);if("string"==typeof n){const e=null!==(a=null==i?void 0:i[n])&&void 0!==a?a:n;return"string"==typeof e?Object.assign(Object.assign({},r),{[null!==(o=F[t])&&void 0!==o?o:"color"]:e}):Object.assign(Object.assign({},r),e)}return Object.assign(Object.assign({},r),n)},{});n[t]=a}),n},_=t=>!("styles"in t),F={container:"backgroundColor",collection:"backgroundColor",collectionInner:"backgroundColor",collectionElement:"backgroundColor",dropZone:"borderColor",inputHighlight:"backgroundColor"},L=createContext(null),z=({children:t,onEditEvent:e,onCollapse:i})=>{const[r,n]=useState(null),[a,o]=useState(null),[s,l]=useState(null),[h,c]=useState({path:null,pathString:null}),p=useRef(null),u=useRef("next"),d=useRef(null);return jsx(L.Provider,{value:{collapseState:r,setCollapseState:t=>{n(t),i&&null!==t&&(Array.isArray(t)?t.forEach(t=>i(t)):i(t)),null!==t&&setTimeout(()=>n(null),2e3)},getMatchingCollapseState:t=>{if(Array.isArray(r)){for(const e of r)if(B(t,e))return e;return null}return B(t,r)?r:null},currentlyEditingElement:a,setCurrentlyEditingElement:(t,i)=>{const r="string"==typeof t||null===t?t:j(t,"key"===i?"key_":void 0);null!==a&&null!==r&&null!==p.current&&p.current(),o(r),e&&(Array.isArray(t)||null===t)&&e(t,"key"===i),p.current="function"==typeof i?i:null},areChildrenBeingEdited:t=>null!==a&&a.includes(t),previouslyEditedElement:d.current,setPreviouslyEditedElement:t=>{d.current=t},tabDirection:u.current,setTabDirection:t=>{u.current=t},previousValue:s,setPreviousValue:l,dragSource:h,setDragSource:c},children:t})},M=()=>{const t=useContext(L);if(!t)throw new Error("Missing Context Provider");return t},B=(t,e)=>{if(null===e)return!1;if(!e.includeChildren)return e.path.every((e,i)=>t[i]===e)&&e.path.length===t.length;for(const[i,r]of e.path.entries())if(r!==t[i])return!1;return!0},W="**INVALID_FUNCTION**",G=({nodeData:t,showStringQuotes:e=!0,stringTruncate:i=200,pathString:r,canEdit:n,setIsEditing:a,styles:o,translate:s,value:l,TextWrapper:h=({children:t})=>t})=>{const c=null!=l?l:t.value,[p,u]=useState(!1),d=e?'"':"",f=c.length>i,m=()=>{n?a(!0):u(!p)};return jsxs("div",{id:`${r}_display`,onDoubleClick:m,onClick:t=>{(t.getModifierState("Control")||t.getModifierState("Meta"))&&m()},className:"jer-value-string",style:o,children:[d,f?jsxs(Fragment,p?{children:[jsx(h,{children:jsxs("span",{children:[c,d]})}),jsxs("span",{className:"jer-string-expansion jer-show-less",onClick:()=>u(!1),children:[" ",s("SHOW_LESS",t)]})]}:{children:[jsxs(h,{children:[jsx("span",{children:c.slice(0,i-2).trimEnd()})," "]}),jsx("span",{className:"jer-string-expansion jer-ellipsis",onClick:()=>u(!0),children:"..."}),d]}):jsx(h,{children:`${c}${d}`})]})},Y=({styles:t,pathString:e,value:i,setValue:r,handleEdit:n,handleKeyboard:a,keyboardCommon:o})=>{const s=useRef(null);return jsx(m,{className:"jer-input-text",textAreaRef:s,name:e,value:i,setValue:r,handleKeyPress:t=>{a(t,Object.assign({stringConfirm:n,stringLineBreak:()=>{const t=N(s,"\n");r(t)}},o))},styles:t})},H=t=>{var{isEditing:e,path:i,enumType:r}=t,n=p(t,["isEditing","path","enumType"]);const{getStyles:a}=K(),o=j(i),{value:s,setValue:l,nodeData:h,handleEdit:c,handleKeyboard:u,keyboardCommon:d}=n;return e&&r?jsxs("div",{className:"jer-select jer-select-enums",children:[jsx("select",{name:`${o}-value-select`,className:"jer-select-inner",onChange:t=>l(t.target.value),value:s,autoFocus:!0,onKeyDown:t=>{u(t,Object.assign({stringConfirm:c},d))},children:r.values.map(t=>jsx("option",{value:t,children:t},t))}),jsx("span",{className:"focus"})]}):e?jsx(Y,Object.assign({styles:a("input",h),pathString:o},n,{setValue:n.setValue})):jsx(G,Object.assign({pathString:o,styles:a("string",h)},n))},U=({value:t,setValue:e,isEditing:i,path:r,setIsEditing:n,handleEdit:a,nodeData:o,handleKeyboard:s,keyboardCommon:l})=>{const{getStyles:h}=K();return i?jsx("input",{className:"jer-input-number",type:"text",name:j(r),value:t,onChange:t=>e(t.target.value.replace(/[^0-9.-]/g,"")),autoFocus:!0,onFocus:t=>setTimeout(()=>t.target.select(),10),onKeyDown:i=>s(i,Object.assign({numberConfirm:a,numberUp:()=>e(Number(t)+1),numberDown:()=>e(Number(t)-1)},l)),style:Object.assign({width:String(t).length/1.5+2+"em"},h("input",o))}):jsx("span",{onDoubleClick:()=>n(!0),className:"jer-value-number",style:h("number",o),children:t})},$=({value:t,setValue:e,isEditing:i,path:r,setIsEditing:n,handleEdit:a,nodeData:o,handleKeyboard:s,keyboardCommon:l})=>{const{getStyles:h}=K();return"boolean"!=typeof t?null:i?jsx("input",{className:"jer-input-boolean",type:"checkbox",name:j(r),checked:t,onChange:()=>e(!t),onKeyDown:i=>{" "===i.key&&i.preventDefault(),s(i,Object.assign({booleanConfirm:a,booleanToggle:()=>e(!t)},l))},autoFocus:!0}):jsx("span",{onDoubleClick:()=>n(!0),className:"jer-value-boolean",style:h("boolean",o),children:String(t)})},Z=(t,e)=>{const i=useRef(void 0),r=useRef(e);useEffect(()=>{r.current=e},[e]);const n=t=>{r.current(t)};useEffect(()=>{if(window.clearTimeout(i.current),t)return i.current=window.setTimeout(()=>{window.addEventListener("keydown",n)},100),()=>{window.clearTimeout(i.current),window.removeEventListener("keydown",n)}},[t])},X=({value:t,isEditing:e,setIsEditing:i,handleEdit:r,nodeData:n,handleKeyboard:a,keyboardCommon:o})=>{const{getStyles:s}=K();return Z(e,t=>a(t,Object.assign({confirm:r},o))),jsx("div",{onDoubleClick:()=>i(!0),className:"jer-value-null",style:s("null",n),children:String(t)})},J=({value:t})=>{let e="Error!";switch(typeof t){case"string":t===W&&(e="Function");break;case"undefined":e="Undefined";break;case"symbol":e="Symbol"}return jsx("span",{className:"jer-value-invalid",children:e})},Q=({size:t,style:e,className:i})=>jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:i,style:e,children:[jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4z"}),jsx("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"})]}),q=({size:t,style:e,className:i})=>jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:i,style:e,transform:"translate(0, 0.5)",children:[jsx("path",{d:"M7 17.013l4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"}),jsx("path",{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"})]}),ee=({size:t,style:e,className:i})=>jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:i,style:e,children:jsx("path",{d:"M6 19a2 2 0 002 2h8a2 2 0 002-2V7H6v12m2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12M15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"})}),te=({size:t,style:e,className:i})=>jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:t,height:t,className:i,style:e,children:[jsx("path",{d:"M9 2 H15 A1 1 0 0 1 16 3 V5 A1 1 0 0 1 15 6 H9 A1 1 0 0 1 8 5 V3 A1 1 0 0 1 9 2 z"}),jsx("path",{d:"M8 4H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2v-2M16 4h2a2 2 0 012 2v4M21 14H11"}),jsx("path",{d:"M15 10l-4 4 4 4"})]}),ne=({size:t,style:e,className:i})=>jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:t,height:t,className:i,style:e,children:[jsx("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),jsx("path",{d:"M22 4L12 14.01l-3-3"})]}),re=({size:t,style:e,className:i})=>jsx("svg",{baseProfile:"tiny",viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:i,style:e,children:jsx("path",{d:"M12 4c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm-5 8c0-.832.224-1.604.584-2.295l6.711 6.711A4.943 4.943 0 0112 17c-2.757 0-5-2.243-5-5zm9.416 2.295L9.705 7.584A4.943 4.943 0 0112 7c2.757 0 5 2.243 5 5 0 .832-.224 1.604-.584 2.295z"})}),oe=({size:t,style:e,className:i})=>jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",width:t,height:t,className:i,style:e,children:jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),ie=({name:t,nodeData:e})=>{var i,r,n,a,o,s,l;const{getStyles:h,icons:c}=K(),p={size:"1.4em",className:"jer-icon"};switch(t){case"add":return null!==(i=null==c?void 0:c.add)&&void 0!==i?i:jsx(Q,Object.assign({},p,{style:h("iconAdd",e)}));case"edit":return null!==(r=null==c?void 0:c.edit)&&void 0!==r?r:jsx(q,Object.assign({},p,{style:h("iconEdit",e)}));case"delete":return null!==(n=null==c?void 0:c.delete)&&void 0!==n?n:jsx(ee,Object.assign({},p,{style:h("iconDelete",e),size:"1.45em"}));case"copy":return null!==(a=null==c?void 0:c.copy)&&void 0!==a?a:jsx(te,Object.assign({},p,{style:h("iconCopy",e),size:"1.2em"}));case"ok":return null!==(o=null==c?void 0:c.ok)&&void 0!==o?o:jsx(ne,Object.assign({},p,{style:Object.assign({fontSize:"90%"},h("iconOk",e))}));case"cancel":return null!==(s=null==c?void 0:c.cancel)&&void 0!==s?s:jsx(re,Object.assign({},p,{style:Object.assign({fontSize:"130%"},h("iconCancel",e))}));case"chevron":return null!==(l=null==c?void 0:c.chevron)&&void 0!==l?l:jsx(oe,{size:"1em",style:h("iconCollection",e)});default:return jsx(Fragment,{})}},ae=({startEdit:t,handleDelete:e,handleAdd:i,enableClipboard:n,type:a,customButtons:o,nodeData:s,translate:l,keyboardControls:h,handleKeyboard:c,editConfirmRef:p,getNewKeyOptions:u,jsonStringify:d,onEditEvent:f,showIconTooltips:m})=>{const{getStyles:y}=K(),g=l("KEY_NEW",s),[b,v]=useState(g),[_,x]=useState(!1),{key:k,path:S,value:w}=s,C=Array.isArray(_),P=t=>{var e;if(f&&f(t?[...S,null]:null,t),!t)return void x(!1);const i=Object.keys(r(s.fullData,S)),n=u?null===(e=u(s))||void 0===e?void 0:e.filter(t=>!i.includes(t)):null;n&&v(""),x(null==n||n)};return jsxs("div",{className:"jer-edit-buttons",style:{opacity:_?1:void 0},onClick:t=>t.stopPropagation(),children:[n&&jsx("div",{onClick:t=>{var e;t.stopPropagation();let i,r,a="value",o="",s=null;if(n){const l=E(t);if(l&&h.clipboardModifier.includes(l)?(i=se(S),o=i,a="path"):(i=w,o="object"==typeof i?d(w):String(i)),!navigator.clipboard)return void("function"==typeof n&&n({success:!1,value:i,stringValue:o,path:S,key:k,type:a,errorMessage:"Can't access clipboard API"}));null===(e=navigator.clipboard)||void 0===e||e.writeText(o).then(()=>r=!0).catch(t=>{r=!1,s=t.message}).finally(()=>{"function"==typeof n&&n({success:r,errorMessage:s,value:i,stringValue:o,path:S,key:k,type:a})})}},className:"jer-copy-pulse",title:m?l("TOOLTIP_COPY",s):"",children:jsx(ie,{name:"copy",nodeData:s})}),t&&jsx("div",{onClick:t,title:m?l("TOOLTIP_EDIT",s):"",children:jsx(ie,{name:"edit",nodeData:s})}),e&&jsx("div",{onClick:e,title:m?l("TOOLTIP_DELETE",s):"",children:jsx(ie,{name:"delete",nodeData:s})}),i&&jsx("div",{onClick:()=>{"object"===a?P(!0):i("")},title:m?l("TOOLTIP_ADD",s):"",children:jsx(ie,{name:"add",nodeData:s})}),null==o?void 0:o.map(({Element:t,onClick:e},i)=>jsx("div",{onClick:t=>e&&e(s,t),children:jsx(t,{nodeData:s})},i)),_&&i&&"object"===a&&jsxs(Fragment,{children:[C?jsxs("div",{className:"jer-select jer-select-keys",children:[jsxs("select",{name:"new-key-select",className:"jer-select-inner",onChange:t=>{i(t.target.value),P(!1)},defaultValue:"",autoFocus:!0,onKeyDown:t=>{c(t,{cancel:()=>P(!1)})},children:[jsx("option",{value:"",disabled:!0,children:_.length>0?l("KEY_SELECT",s):l("NO_KEY_OPTIONS",s)}),_.map(t=>jsx("option",{value:t,children:t},t))]}),jsx("span",{className:"focus"})]}):jsx("input",{className:"jer-input-new-key",type:"text",name:"new-object-key",value:b,onChange:t=>v(t.target.value),autoFocus:!0,onFocus:t=>t.target.select(),onKeyDown:t=>{c(t,{stringConfirm:()=>{i&&(P(!1),i(b),v(g))},cancel:()=>{P(!1),v(g)}})},style:y("input",s)}),jsx(le,{onOk:()=>{C&&!b||(P(!1),i(b))},onCancel:()=>{P(!1)},nodeData:s,editConfirmRef:p,hideOk:C})]})]})},le=({onOk:t,onCancel:e,nodeData:i,editConfirmRef:r,hideOk:n=!1})=>jsxs("div",{className:"jer-confirm-buttons",children:[!n&&jsx("div",{onClick:t,ref:r,children:jsx(ie,{name:"ok",nodeData:i})}),jsx("div",{onClick:e,children:jsx(ie,{name:"cancel",nodeData:i})})]}),se=t=>t.reduce((t,e)=>"number"==typeof e?`${t}[${e}]`:""===t?e:`${t}.${e}`,""),ce=["string","number","boolean","null","object","array"],de=({props:t,collapsed:e})=>{const{data:i,nodeData:r,parentData:n,onEdit:a,onError:o,showErrorMessages:s,restrictEditFilter:l,restrictDeleteFilter:h,restrictAddFilter:c,restrictDragFilter:p,translate:u,errorMessageTimeout:d}=t,{currentlyEditingElement:f,setCurrentlyEditingElement:m}=M(),[y,g]=useState(null),b=Object.assign(Object.assign({},r),{collapsed:e}),{path:v,key:_,size:x}=b,k=j(v),S=!l(b),w=!h(b),E=!c(b),C=!p(b)&&w&&null===f,P=t=>{s&&(g(t),setTimeout(()=>g(null),d)),console.warn("Error",t)},T=useCallback((t,e)=>{P(t.message),o&&o({currentData:b.fullData,errorValue:e,currentValue:i,name:_,path:v,error:t})},[o,s]),A=f===k,D=f===`key_${k}`,F="number"==typeof v.slice(-1)[0],I={isEditing:A,isEditingKey:D,isArray:F,canEditKey:null!==n&&S&&E&&w&&!F},R=""===_&&v.length>0?u("EMPTY_STRING",b):null;return{pathString:k,nodeData:b,path:v,name:_,size:x,canEdit:S,canDelete:w,canAdd:E,canDrag:C,error:y,showError:P,onError:T,setError:g,handleEditKey:t=>{if(m(null),_===t)return;if(!n)return;const e=v.slice(0,-1);if(Object.keys(n).includes(t))return void T({code:"KEY_EXISTS",message:u("ERROR_KEY_EXISTS",b)},t);const i=Object.fromEntries(Object.entries(n).map(([e,i])=>e===_?[t,i]:[e,i]));a(i,e).then(e=>{e&&T({code:"UPDATE_ERROR",message:e},t)})},derivedValues:I,emptyStringKey:R}},ue=({canDrag:t,canDragOnto:e,path:i,nodeData:r,onMove:n,onError:a,translate:o})=>{const{getStyles:s}=K(),{dragSource:l,setDragSource:h}=M(),[c,p]=useState(!1),u=j(i),d=useMemo(()=>t?{onDragStart:t=>{t.stopPropagation(),h({path:i,pathString:u})},onDragEnd:t=>{t.stopPropagation(),h({path:null,pathString:null})}}:{},[t,u]),f=useMemo(()=>t=>e?{onDragOver:t=>{t.stopPropagation(),t.preventDefault()},onDrop:e=>{e.stopPropagation(),y(t),h({path:null,pathString:null}),p(!1)},onDragEnter:e=>{var i;e.stopPropagation(),u.startsWith(null!==(i=l.pathString)&&void 0!==i?i:"")||p(t)},onDragExit:t=>{t.stopPropagation(),p(!1)}}:{},[l,e,u]),m=useMemo(()=>e&&null!==l.pathString?jsx("div",Object.assign({className:"jer-drop-target-bottom",style:{height:"50%",position:"absolute",width:"100%",top:"50%",zIndex:i.length}},f("below"))):null,[l,e,i.length]),y=t=>{var e,s;const h=null===(e=l.path)||void 0===e?void 0:e.slice(-1)[0],c=null===(s=l.path)||void 0===s?void 0:s.slice(0,-1).join("."),p=i.slice(0,-1).join(""),{parentData:u}=r;"string"==typeof h&&u&&!Array.isArray(u)&&Object.keys(u).includes(h)&&h in u&&c!==p?a({code:"KEY_EXISTS",message:o("ERROR_KEY_EXISTS",r)},h):n(l.path,i,t).then(t=>{t&&a({code:"UPDATE_ERROR",message:t},r.value)})};return{dragSourceProps:d,getDropTargetProps:f,BottomDropTarget:m,DropTargetPadding:({position:t,nodeData:e})=>c===t?jsx("div",{className:"jer-drag-n-drop-padding",style:s("dropZone",e)}):null,handleDrop:y}},pe=(t,e,i,r)=>{var n,a,o;if(!e.current)return 0;const s=parseInt(null!==(n=getComputedStyle(i.current).getPropertyValue("line-height"))&&void 0!==n?n:"16px"),l=(null!==(o=null===(a=e.current)||void 0===a?void 0:a.offsetWidth)&&void 0!==o?o:0)/(.5*s),h=r(t).replace(/\\n/g,"\n").split("\n").map(t=>Math.ceil(t.length/l)).reduce((t,e)=>t+e,0)*s;return Math.min(h+30,window.innerHeight-50)},ge=({isEditingKey:t,canEditKey:e,pathString:i,path:r,name:n,arrayIndexFromOne:a,handleKeyboard:o,handleEditKey:s,handleCancel:l,handleClick:h,keyValueArray:c,styles:p,getNextOrPrevious:u,emptyStringKey:d})=>{const{setCurrentlyEditingElement:f}=M(),m="number"==typeof n?String(n+(a?1:0)):n;return t?jsx("input",{className:"jer-input-text jer-key-edit",type:"text",name:i,defaultValue:m,autoFocus:!0,onFocus:t=>t.target.select(),onKeyDown:t=>o(t,{stringConfirm:()=>s(t.target.value),cancel:l,tabForward:()=>{if(s(t.target.value),c){const t=null==c?void 0:c[0][0];f(t?[...r,t]:u("next"))}else f(r)},tabBack:()=>{s(t.target.value),f(u("prev"))}}),style:{width:m.length/1.5+.5+"em"}}):jsxs("span",{className:"jer-key-text",style:Object.assign(Object.assign({},p),{minWidth:`${Math.min(m.length+1,5)}ch`,flexShrink:m.length>10?1:0}),onDoubleClick:()=>e&&f(r,"key"),onClick:h,children:[d?jsx("span",{className:"jer-empty-string",children:d}):m,""!==m||d?jsx("span",{className:"jer-key-colon",children:":"}):null]})},me=t=>{const{data:e,parentData:i,onEdit:r,onDelete:n,onChange:a,onMove:o,enableClipboard:s,canDragOnto:l,restrictTypeSelection:h,searchFilter:c,searchText:p,showLabel:u,stringTruncate:d,showStringQuotes:f,arrayIndexFromOne:m,indent:g,translate:b,customNodeDefinitions:v,customNodeData:_,handleKeyboard:x,keyboardControls:k,sort:S,editConfirmRef:w,jsonStringify:E,showIconTooltips:C}=t,{getStyles:P}=K(),{setCurrentlyEditingElement:T,setCollapseState:A,previouslyEditedElement:D,setPreviouslyEditedElement:F,tabDirection:I,setTabDirection:j,previousValue:R,setPreviousValue:B}=M(),[L,N]=useState("function"==typeof e?W:e),{pathString:V,nodeData:z,path:G,name:H,canEdit:q,canDelete:$,canDrag:X,error:J,onError:Y,handleEditKey:U,emptyStringKey:Z,derivedValues:Q}=de({props:t}),{dragSourceProps:tt,getDropTargetProps:et,BottomDropTarget:it,DropTargetPadding:rt}=ue({canDrag:X,canDragOnto:l,path:G,nodeData:z,onMove:o,onError:Y,translate:b}),[nt,at]=useState(he(e,_)),ot=useCallback(t=>{if(!a)return void N(t);const e=a({currentData:z.fullData,newValue:t,currentValue:L,name:H,path:G});N(e)},[a]);useEffect(()=>{N("function"==typeof e?W:e),at(he(e,_))},[e,J]);const{CustomNode:st,customNodeProps:lt,hideKey:ht,showEditTools:ct=!0,showOnEdit:pt,showOnView:ut,passOriginalNode:dt}=_,ft=[...ce,...v.filter(({showInTypesSelector:t=!1,name:e})=>t&&!!e).map(({name:t})=>t)],mt=useMemo(()=>{if("boolean"==typeof h)return h?[]:ft;if(Array.isArray(h))return h;const t=h(z);return"boolean"==typeof t?t?[]:ft:t},[z,h]),[yt,gt]=useState(((t,e)=>{var i;if("string"!=typeof t)return null;const r=e.filter(e=>e instanceof Object&&e.enum&&e.values.includes(t)&&e.matchPriority);return r.sort((t,e)=>{var i,r;return(null!==(i=e.matchPriority)&&void 0!==i?i:0)-(null!==(r=t.matchPriority)&&void 0!==r?r:0)}),null!==(i=r[0])&&void 0!==i?i:null})(L,mt)),{isEditing:bt}=Q,vt=y("value",z,c,p);if(bt&&(!vt||!q)){const t=O(z.fullData,G,I,S);T(t||D)}if(!vt)return null;const _t=t=>{let e;if(T(null),B(null),void 0===t||(t=>t&&"object"==typeof t&&"type"in t&&"target"in t&&"preventDefault"in t&&"function"==typeof t.preventDefault)(t))switch(nt){case"object":e={[b("DEFAULT_NEW_KEY",z)]:L};break;case"array":e=null!=L?L:[];break;case"number":{const t=Number(L);e=isNaN(t)?0:t;break}default:e=L}else e=t;r(e,G).then(t=>{t&&Y({code:"UPDATE_ERROR",message:t},e)})},xt=()=>{T(null),null===R?(N(e),B(null)):r(R,G)},{isEditingKey:kt,canEditKey:St}=Q,wt=!bt&&J,Et=bt&&mt.length>1,Ct=("invalid"!==nt||st)&&!J&&ct,Pt=u&&!ht,Tt=st&&(bt&&pt||!bt&&ut),At={value:L,parentData:i,setValue:ot,isEditing:bt,canEdit:q,setIsEditing:q?()=>T(G):()=>{},handleEdit:_t,handleCancel:xt,path:G,stringTruncate:d,showStringQuotes:f,nodeData:z,enumType:yt,translate:b,handleKeyboard:x,keyboardCommon:{cancel:xt,tabForward:()=>{j("next"),F(V);const t=O(z.fullData,G,"next",S);t&&(_t(),T(t))},tabBack:()=>{j("prev"),F(V);const t=O(z.fullData,G,"prev",S);t&&(_t(),T(t))}}},Dt={canEditKey:St,isEditingKey:kt,pathString:V,path:G,name:H,arrayIndexFromOne:m,handleKeyboard:x,handleEditKey:U,handleCancel:xt,styles:P("property",z),getNextOrPrevious:t=>O(z.fullData,G,t,S),emptyStringKey:Z},Ft=Tt?jsx(st,Object.assign({},t,{value:L,customNodeProps:lt,setValue:ot,handleEdit:_t,handleCancel:xt,handleKeyPress:t=>x(t,{stringConfirm:_t,cancel:xt}),isEditing:bt,setIsEditing:()=>T(G),getStyles:P,originalNode:dt?ye(e,At):void 0,originalNodeKey:dt?jsx(ge,Object.assign({},Dt)):void 0,canEdit:q,keyboardCommon:At.keyboardCommon,onError:Y})):ye(e,At);return jsxs("div",Object.assign({className:"jer-component jer-value-component",style:{marginLeft:null!==i?g/2+"em":0,position:"relative"},draggable:X},tt,et("above"),{children:[it,jsx(rt,{position:"above",nodeData:z}),jsxs("div",{className:"jer-value-main-row",style:{flexWrap:H.length>10?"wrap":"nowrap"},children:[Pt&&jsx(ge,Object.assign({},Dt)),jsxs("div",{className:"jer-value-and-buttons",children:[jsx("div",{className:"jer-input-component",children:Ft}),bt?jsx(le,{onOk:_t,onCancel:xt,nodeData:z,editConfirmRef:w}):Ct&&jsx(ae,{startEdit:q?()=>{B(R),T(G,xt)}:void 0,handleDelete:$?()=>{n(L,G).then(t=>{t&&Y({code:"DELETE_ERROR",message:t},L)})}:void 0,enableClipboard:s,translate:b,customButtons:t.customButtons,nodeData:z,handleKeyboard:x,keyboardControls:k,editConfirmRef:w,jsonStringify:E,showIconTooltips:C}),Et&&jsxs("div",{className:"jer-select jer-select-types",children:[jsx("select",{name:`${H}-type-select`,className:"jer-select-inner",onChange:t=>(t=>{const e=v.find(e=>e.name===t);if(e)return r(e.defaultValue,G),at(t),gt(null),T(null),void A({path:G,collapsed:!1,includeChildren:!1});const i=mt.find(e=>e instanceof Object&&e.enum===t);if(i)return"string"==typeof L&&i.values.includes(L)||r(i.values[0],G).then(t=>{t&&(Y({code:"UPDATE_ERROR",message:t},n),T(null))}),void gt(i);const n=fe(L,t,b("DEFAULT_NEW_KEY",z),(null==_?void 0:_.CustomNode)?b("DEFAULT_STRING",z):void 0);["string","number","boolean"].includes(t)||T(null),r(n,G).then(t=>{t?(Y({code:"UPDATE_ERROR",message:t},n),T(null)):gt(null)})})(t.target.value),value:yt?yt.enum:nt,children:mt.map(t=>t instanceof Object&&"enum"in t?jsx("option",{value:t.enum,children:t.enum},t.enum):jsx("option",{value:t,children:t},t))}),jsx("span",{className:"focus"})]}),wt&&jsx("span",{className:"jer-error-slug",style:P("error",z),children:J})]})]}),jsx(rt,{position:"below",nodeData:z})]}))},he=(t,e)=>(null==e?void 0:e.CustomNode)&&(null==e?void 0:e.name)&&e.showInTypesSelector?e.name:"string"==typeof t?"string":"number"==typeof t?"number":"boolean"==typeof t?"boolean":null===t?"null":"invalid",ye=(t,e)=>{const i=he(t),{value:r}=e;switch(i){case"string":return jsx(H,Object.assign({},e,{value:r}));case"number":return jsx(U,Object.assign({},e,{value:r}));case"boolean":return jsx($,Object.assign({},e,{value:r}));case"null":return jsx(X,Object.assign({},e));default:return jsx(J,Object.assign({},e))}},fe=(t,e,i,r)=>{switch(e){case"string":return null!=r?r:String(t);case"number":{const e=Number(t);return isNaN(e)?0:e}case"boolean":return!!t;case"null":return null;case"object":return{[i]:t};case"array":return[t];default:return String(t)}},be=(t=[],e)=>{const i=t.filter(({condition:t})=>t(e));if(0===i.length)return{};const r=i[0],{element:n,wrapperElement:a,customNodeProps:o,wrapperProps:s,hideKey:l=!1,showEditTools:h=!0,showOnEdit:c=!1,showOnView:u=!0,showCollectionWrapper:d=!0}=r,f=p(r,["element","wrapperElement","customNodeProps","wrapperProps","hideKey","showEditTools","showOnEdit","showOnView","showCollectionWrapper"]);return Object.assign({CustomNode:n,CustomWrapper:a,customNodeProps:o,wrapperProps:s,hideKey:l,showEditTools:h,showOnEdit:c,showOnView:u,showCollectionWrapper:d},f)},ve=t=>{const{getStyles:e}=K(),{collapseState:i,setCollapseState:r,getMatchingCollapseState:n,currentlyEditingElement:a,setCurrentlyEditingElement:o,areChildrenBeingEdited:s,previousValue:l,setPreviousValue:c}=M(),{mainContainerRef:p,data:u,nodeData:d,parentData:f,showCollectionCount:b,onEdit:v,onAdd:_,onDelete:x,canDragOnto:k,collapseFilter:S,collapseAnimationTime:w,onMove:C,enableClipboard:P,onEditEvent:T,showIconTooltips:A,searchFilter:D,searchText:F,indent:I,sort:j,showArrayIndices:R,arrayIndexFromOne:B,defaultValue:L,newKeyOptions:V,translate:z,customNodeDefinitions:G,customNodeData:H,jsonParse:W,jsonStringify:q,TextEditor:$,keyboardControls:X,handleKeyboard:J,insertAtTop:Y,onCollapse:U,editConfirmRef:Z,collapseClickZones:Q}=t,[tt,et]=useState(q(u)),it=S(d),{contentRef:rt,isAnimating:nt,maxHeight:at,collapsed:ot,animateCollapse:st,cssTransitionValue:lt}=((t,e,i,r,n)=>{const[a,o]=useState(i?0:void 0),[s,l]=useState(i),h=useRef(!1),c=useRef(null),p=useRef(0),u=useRef(0),d=e/1e3+"s",f=useCallback(i=>{var a,d;if(s!==i){switch(window.clearTimeout(u.current),h.current=!0,i){case!0:{const t=null!==(d=null===(a=c.current)||void 0===a?void 0:a.offsetHeight)&&void 0!==d?d:0;p.current=t,o(t),setTimeout(()=>{o(0)},5);break}case!1:o(p.current||pe(t,c,r,n))}l(!s),u.current=window.setTimeout(()=>{h.current=!1,i||o(void 0)},e)}},[e,s,t,r,n]);return{contentRef:c,isAnimating:h.current,animateCollapse:f,maxHeight:a,collapsed:s,cssTransitionValue:d}})(u,w,it,p,q),{pathString:ht,nodeData:ct,path:pt,name:ut,size:dt,canEdit:ft,canDelete:mt,canAdd:yt,canDrag:gt,error:bt,setError:vt,onError:_t,handleEditKey:xt,emptyStringKey:kt,derivedValues:St}=de({props:t,collapsed:ot}),{dragSourceProps:wt,getDropTargetProps:Et,BottomDropTarget:Ct,DropTargetPadding:Pt}=ue({canDrag:gt,canDragOnto:k,path:pt,nodeData:ct,onMove:C,onError:_t,translate:z}),Tt=useRef(!it),{isEditing:At,isEditingKey:Dt,isArray:Ft,canEditKey:Mt}=St;useEffect(()=>{et(q(u))},[u,q]),useEffect(()=>{const t=S(ct)&&!At;Tt.current=!t,st(t)},[S]),useEffect(()=>{if(null!==i){const t=n(pt);t&&(Tt.current=!0,st(t.collapsed))}},[i]);const It=useRef(null),jt=useCallback((t,e)=>{if("function"!=typeof L)return L;const i=L(t,e);return void 0!==i?i:null},[L]),Rt=useCallback(t=>V?"function"!=typeof V?V:V(t):null,[V]),{CustomNode:Ot,customNodeProps:Bt,CustomWrapper:Lt,wrapperProps:Nt={},hideKey:Vt,showEditTools:zt=!0,showOnEdit:Gt,showOnView:Ht,showCollectionWrapper:Wt=!0}=H,qt=s(ht);if(qt&&ot&&st(!1),!y("collection",ct,D,F)&&0!==ct.level&&!qt)return null;const $t=Array.isArray(u)?"array":"object",Kt="array"===$t?{open:"[",close:"]"}:{open:"{",close:"}"},Xt=t=>{if("Tab"!==t.key||t.getModifierState("Shift"))J(t,{objectConfirm:Yt,cancel:Zt});else{t.preventDefault();const e=N(It,"\t");et(e)}},Jt=t=>{t.stopPropagation();const e=E(t);if(e&&X.collapseModifier.includes(e))return Tt.current=!0,void r({collapsed:!ot,path:pt,includeChildren:!0});a&&a.includes(ht)||(Tt.current=!0,r(null),U&&U({path:pt,collapsed:!ot,includeChildren:!1}),st(!ot))},Yt=()=>{try{const t=W(tt);if(o(null),c(null),vt(null),q(t)===q(u))return;v(t,pt).then(e=>{e&&_t({code:"UPDATE_ERROR",message:e},t)})}catch(t){_t({code:"INVALID_JSON",message:z("ERROR_INVALID_JSON",ct)},tt)}},Ut=pt.length>0?()=>{x(u,pt).then(t=>{t&&_t({code:"DELETE_ERROR",message:t},u)})}:void 0,Zt=()=>{o(null),null===l?(vt(null),et(q(u)),c(null)):v(l,pt)},Qt="when-closed"===b?ot:b,te=!At&&zt,ee=(R||!Ft)&&!Vt&&void 0!==ut,re=Ot&&(At&&Gt||!At&&Ht),ne=Object.entries(u).map(([t,e])=>["array"===$t?Number(t):t,e]);"object"===$t&&j(ne,t=>t);const oe=Tt.current?At?jsxs("div",{className:"jer-collection-text-edit",children:[$?jsx($,{value:tt,onChange:et,onKeyDown:t=>J(t,{objectConfirm:Yt,cancel:Zt})}):jsx(m,{textAreaRef:It,className:"jer-collection-text-area",name:ht,value:tt,setValue:et,handleKeyPress:Xt,styles:e("input",ct)}),jsx("div",{className:"jer-collection-input-button-row",children:jsx(le,{onOk:Yt,onCancel:Zt,nodeData:ct,editConfirmRef:Z})})]}):ne.map(([i,r],n)=>{const a={key:i,value:r,path:[...pt,i],level:pt.length+1,index:n,size:h(r)?Object.keys(r).length:null,parentData:u,fullData:ct.fullData},o=be(G,a);return jsx("div",{className:"jer-collection-element",style:e("collectionElement",a),children:h(r)&&!(null==o?void 0:o.renderCollectionAsValue)?jsx(ve,Object.assign({},t,{data:r,parentData:u,nodeData:a,showCollectionCount:b,canDragOnto:ft,customNodeData:o}),i):jsx(me,Object.assign({},t,{data:r,parentData:u,nodeData:a,canDragOnto:ft,showLabel:"object"===$t||R,customNodeData:o}),i)},i)}):null,se=!!Wt&&ot&&!qt;se||(Tt.current=!0);const he=Object.assign(Object.assign({},t),{data:u,value:u,parentData:f,nodeData:ct,setValue:t=>g(void 0,void 0,void 0,function*(){return yield v(t,pt)}),handleEdit:Yt,handleCancel:Zt,handleKeyPress:Xt,isEditing:At,setIsEditing:()=>o(pt),getStyles:e,canDragOnto:ft,canEdit:ft,keyboardCommon:{},onError:_t}),ce=re?jsx(Ot,Object.assign({customNodeProps:Bt},he,{children:oe})):oe,fe=te&&jsx(ae,{startEdit:ft?()=>{Tt.current=!0,c(null),o(pt)}:void 0,handleAdd:yt?t=>{st(!1);const e=jt(ct,t);if("array"===$t){const t=Y.array?0:u.length,i=Y.array?{insert:!0}:{};_(e,[...pt,t],i).then(t=>{t&&_t({code:"ADD_ERROR",message:t},e)})}else if(t in u)_t({code:"KEY_EXISTS",message:z("ERROR_KEY_EXISTS",ct)},t);else{const i=Y.object?{insertBefore:0}:{};_(e,[...pt,t],i).then(t=>{t&&_t({code:"ADD_ERROR",message:t},e)})}}:void 0,handleDelete:mt?Ut:void 0,enableClipboard:P,type:$t,nodeData:ct,translate:z,customButtons:t.customButtons,keyboardControls:X,handleKeyboard:J,getNewKeyOptions:Rt,editConfirmRef:Z,jsonStringify:q,onEditEvent:T,showIconTooltips:A}),ye={canEditKey:Mt,isEditingKey:Dt,pathString:ht,path:pt,name:ut,arrayIndexFromOne:B,handleKeyboard:J,handleEditKey:xt,handleCancel:Zt,keyValueArray:ne,styles:e("property",ct),getNextOrPrevious:t=>O(ct.fullData,pt,t,j),handleClick:Q.includes("property")?Jt:t=>t.stopPropagation(),emptyStringKey:kt},_e=jsxs("div",Object.assign({className:"jer-component jer-collection-component",style:Object.assign(Object.assign({marginLeft:(0===pt.length?0:I/2)+"em"},e("collection",ct)),{position:"relative"}),draggable:gt},wt,Et("above"),{children:[jsx("div",{className:"jer-clickzone",style:{width:I/2+1+"em",zIndex:10+2*ct.level},onClick:Q.includes("left")?Jt:void 0}),!At&&Ct,jsx(Pt,{position:"above",nodeData:ct}),Wt?jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},onClick:Q.includes("header")?Jt:void 0,children:[jsxs("div",{className:"jer-collection-name",children:[jsx("div",{className:"jer-collapse-icon jer-accordion-icon"+(ot?" jer-rotate-90":""),style:{zIndex:11+2*ct.level,transition:lt},onClick:Jt,children:jsx(ie,{name:"chevron",rotate:ot,nodeData:ct})}),ee&&jsx(ge,Object.assign({},ye)),!At&&jsx("span",{className:"jer-brackets jer-bracket-open",style:e("bracket",ct),children:Kt.open})]}),!At&&Qt&&jsx("div",{className:"jer-collection-item-count"+(Qt?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},e("itemCount",ct)),{transition:lt}),children:1===dt?z("ITEM_SINGLE",Object.assign(Object.assign({},ct),{size:1}),1):z("ITEMS_MULTIPLE",ct,dt)}),jsx("div",{className:"jer-brackets"+(se?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},e("bracket",ct)),{transition:lt}),children:Kt.close}),fe]}):Vt?jsx(Fragment,{}):jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},children:[jsx(ge,Object.assign({},ye)),fe]}),jsxs("div",{className:"jer-collection-inner",style:Object.assign(Object.assign({overflowY:se||nt?"clip":"visible",maxHeight:qt?void 0:at},e("collectionInner",ct)),{transition:lt}),ref:rt,children:[ce,jsx("div",{className:At?"jer-collection-error-row":"jer-collection-error-row-edit",children:bt&&jsx("span",{className:"jer-error-slug",style:e("error",ct),children:bt})}),!At&&Wt&&jsx("div",{className:"jer-brackets jer-bracket-outside",style:Object.assign(Object.assign({},e("bracket",ct)),{marginLeft:(I<3?-1:I<6?-.5:0)+"em"}),children:Kt.close})]}),jsx(Pt,{position:"below",nodeData:ct})]}));return Lt?jsx(Lt,Object.assign({customNodeProps:Nt},he,{children:_e})):_e},je={ITEM_SINGLE:"{{count}} item",ITEMS_MULTIPLE:"{{count}} items",KEY_NEW:"Enter new key",KEY_SELECT:"Select key",NO_KEY_OPTIONS:"No key options",ERROR_KEY_EXISTS:"Key already exists",ERROR_INVALID_JSON:"Invalid JSON",ERROR_UPDATE:"Update unsuccessful",ERROR_DELETE:"Delete unsuccessful",ERROR_ADD:"Adding node unsuccessful",DEFAULT_STRING:"New data!",DEFAULT_NEW_KEY:"key",SHOW_LESS:"(Show less)",EMPTY_STRING:"<empty string>",TOOLTIP_COPY:"Copy to clipboard",TOOLTIP_EDIT:"Edit",TOOLTIP_DELETE:"Delete",TOOLTIP_ADD:"Add"},Ee=(t,e)=>(i,r,n)=>((t,e,i,r,n)=>{if(e[r]){const t=e[r](i);if(null!==t)return t}const a=r in t?t[r]:je[r];return void 0===n?a:null==a?void 0:a.replace("{{count}}",String(n))})(t,e,r,i,n);var we=[],De=[];!function(t,e){if(t&&"undefined"!=typeof document){var i,r=!0===e.prepend?"prepend":"append",n=!0===e.singleTag,a="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(n){var o=we.indexOf(a);-1===o&&(o=we.push(a)-1,De[o]={}),i=De[o]&&De[o][r]?De[o][r]:De[o][r]=s()}else i=s();65279===t.charCodeAt(0)&&(t=t.substring(1)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(document.createTextNode(t))}function s(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var i=Object.keys(e.attributes),n=0;n<i.length;n++)t.setAttribute(i[n],e.attributes[i[n]]);var o="prepend"===r?"afterbegin":"beforeend";return a.insertAdjacentElement(o,t),t}}(':root{--jer-select-border:#b6b6b6;--jer-select-focus:#777;--jer-select-arrow:#777;--jer-form-border:1px solid #ededf0;--jer-form-border-focus:1px solid #e2e2e2;--jer-highlight-color:#b3d8ff}.jer-visible{opacity:1}.jer-hidden{opacity:0}.jer-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#000;cursor:inherit;font-family:inherit;font-size:.8em;line-height:inherit;margin:0;outline:none;padding:0 1em 0 0;z-index:1}select::-ms-expand{display:none}.jer-select{align-items:center;background-color:#fff;background-image:linear-gradient(0deg,#f9f9f9,#fff 33%);border:1px solid var(--jer-select-border);border-radius:.25em;cursor:pointer;display:grid;grid-template-areas:"select";line-height:1.1;max-width:15ch;min-width:12ch;padding:.25em .5em;position:relative}.jer-select select,.jer-select:after{grid-area:select}.jer-select:not(.jer-select--multiple):after{background-color:var(--jer-select-arrow);clip-path:polygon(100% 0,0 0,50% 100%);content:"";height:.5em;justify-self:end;width:.8em}select:focus+.focus{border:1px solid var(--jer-select-focus);border-radius:inherit;bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px}.jer-select-inner{text-overflow:ellipsis;width:100%}.jer-editor-container{border-radius:.5em;font-size:16px;line-height:1;padding:1em 1em 1em 2em;position:relative;text-align:left}.jer-editor-container textarea{border:var(--jer-form-border);border-radius:.3em;color:var(--jer-input-color);outline:none}.jer-editor-container textarea:focus{border:var(--jer-form-border-focus)}.jer-editor-container input{border:var(--jer-form-border);border-radius:.3em;font-family:inherit;outline:none}.jer-editor-container input:focus{border:var(--jer-form-border-focus)}.jer-editor-container ::selection{background-color:var(--jer-highlight-color)}.jer-collection-header-row,.jer-value-main-row{align-items:center;display:flex;gap:.3em;min-height:1.7em}.jer-collection-header-row{display:flex;flex-wrap:wrap}.jer-collapse-icon{left:-1.2em;position:absolute;top:.35em}.jer-collection-inner{position:relative}.jer-collection-text-edit{align-items:flex-start;display:flex;flex-direction:column;gap:.3em;line-height:1.1em}.jer-collection-text-area{font-family:inherit;font-size:.85em;max-height:40em;overflow:hidden;padding:.2em .5em 0;resize:both}.jer-collection-input-button-row{display:flex;font-size:150%;justify-content:flex-end;margin-top:.4em;width:100%}.jer-collection-error-row{bottom:.5em;position:absolute}.jer-error-slug{margin-left:1em}.jer-value-component{position:relative}.jer-value-main-row{display:flex;gap:0}.jer-value-and-buttons{align-items:center;display:flex;justify-content:flex-start;padding-left:.5em}.jer-value-error-row{position:absolute}.jer-value-string{line-height:1.3em;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.jer-string-expansion{cursor:pointer;filter:saturate(50%);opacity:.6}.jer-show-less{font-size:80%}.jer-hyperlink{text-decoration:underline}.jer-input-text{font-family:inherit;font-size:.9em;height:1.4em;line-height:1.2em;margin:0;min-width:6em;overflow:hidden;padding:.25em .5em .2em;resize:none}.jer-input-boolean{margin-left:.3em;margin-right:.3em;transform:scale(1.5)}.jer-key-text{line-height:1.1em;white-space:pre-wrap;word-break:break-word}.jer-key-edit{font-size:inherit;font-size:.9em;padding:0 .3em}.jer-value-invalid{font-style:italic;opacity:.5}.jer-input-number{font-size:90%;min-width:3em}.jer-confirm-buttons,.jer-edit-buttons{align-items:center;cursor:pointer;display:flex;height:1em}.jer-input-buttons{gap:.4em}.jer-edit-buttons{gap:.4em;margin-left:.5em;opacity:0}.jer-confirm-buttons{gap:.2em;margin-left:.4em}.jer-edit-buttons:hover{opacity:1;position:relative}.jer-collection-header-row:hover>.jer-edit-buttons,.jer-value-and-buttons:hover>.jer-edit-buttons,.jer-value-main-row:hover>.jer-edit-buttons{opacity:1}.jer-copy-pulse{position:relative;transition:.3s}.jer-copy-pulse:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-copy-pulse:after{border-radius:50%;box-shadow:0 0 15px 5px var(--jer-icon-copy-color);content:"";display:block;height:100%;left:0;opacity:0;position:absolute;top:0;transition:all .5s;width:100%}.jer-copy-pulse:active:after{border-radius:4em;box-shadow:0 0 0 0 var(--jer-icon-copy-color);left:0;opacity:1;position:absolute;top:0;transition:0s}.jer-copy-pulse:active{top:.07em}.jer-rotate-90{transform:rotate(-90deg)}.jer-icon:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-empty-string{font-size:90%;font-style:italic}.jer-drag-n-drop-padding{border:1px dashed #e0e0e0;border-radius:.3em;height:.5em}.jer-clickzone{height:calc(100% - .8em);left:-1em;position:absolute;top:1.2em}',{});const Ce=({data:t,setData:e,rootName:i="root",onUpdate:r=()=>{},onEdit:n=r,onDelete:a=r,onAdd:o=r,onChange:s,onError:l,onEditEvent:c,showErrorMessages:p=!0,enableClipboard:u=!0,indent:d=2,collapse:f=!1,collapseAnimationTime:m=300,showCollectionCount:y=!0,restrictEdit:b=!1,restrictDelete:v=!1,restrictAdd:_=!1,restrictTypeSelection:x=!1,restrictDrag:k=!0,viewOnly:S,searchFilter:E,searchText:P,searchDebounceTime:A=350,keySort:D=!1,showArrayIndices:F=!0,arrayIndexFromOne:I=!1,showStringQuotes:R=!0,showIconTooltips:O=!1,defaultValue:B=null,newKeyOptions:L,minWidth:N=250,maxWidth:V="min(600px, 90vw)",rootFontSize:z,stringTruncate:G=250,translations:H={},className:W,id:q,customText:$={},customNodeDefinitions:X=[],customButtons:J=[],jsonParse:Y=JSON.parse,jsonStringify:U=(t,e)=>JSON.stringify(t,e,2),TextEditor:Z,errorMessageTimeout:Q=2500,keyboardControls:tt={},externalTriggers:et,insertAtTop:it=!1,onCollapse:rt,collapseClickZones:nt=["header","left"]})=>{const{getStyles:at}=K(),{setCurrentlyEditingElement:ot}=M(),st=useMemo(()=>Se(f),[f]),lt=useMemo(()=>Ee(H,$),[H,$]),[ht,ct]=useState(P),[pt,ut]=(({setData:t,data:e})=>{const[i,r]=useState(t?void 0:e),n=useCallback(e=>{t?t(e):r(e)},[t]);return useEffect(()=>{t||r(e)},[e]),[t?e:i,n]})({setData:e,data:t}),dt=useRef(null);useEffect(()=>{ot(null);const t=setTimeout(()=>ct(P),A);return()=>clearTimeout(t)},[P,A]);const ft={key:i,path:[],level:0,index:0,value:pt,size:"object"==typeof pt&&null!==pt?Object.keys(pt).length:1,parentData:null,fullData:pt},mt=(t,e)=>g(void 0,void 0,void 0,function*(){const i=yield t(e);if(!0===i||void 0===i)return void ut(e.newData);const r=Te(i)?i:["error",i],[n,a]=r;if("error"===n)return ut(e.currentData),!1===a?lt("ERROR_UPDATE",ft):String(a);ut(a)}),yt=useMemo(()=>Se(b,S),[b,S]),gt=useMemo(()=>Se(v,S),[v,S]),bt=useMemo(()=>Se(_,S),[_,S]),vt=useMemo(()=>Se(k,S),[k,S]),_t=useMemo(()=>Ne(E),[E]),xt=useMemo(()=>(t=>{const e=Object.assign({},C);for(const i of Object.keys(C)){const r=i;if(t[r]){const n=t[r],a=["clipboardModifier","collapseModifier"].includes(i)?Array.isArray(n)?n:[n]:"string"==typeof n?{key:n}:n;e[r]=a,["stringConfirm","numberConfirm","booleanConfirm"].forEach(i=>{!t[i]&&t.confirm&&(e[i]=e.confirm)})}}return e})(tt),[tt]),kt=useCallback((t,e)=>((t,e,i)=>{const r=Object.entries(e);for(const[e,n]of r)if(w(i,t[e],e)){i.preventDefault(),n();break}})(xt,e,t),[xt]),St=useMemo(()=>{const t=xe(X,"stringifyReplacer");return e=>U(e,t)},[X,U]),wt=useMemo(()=>{const t=xe(X,"parseReviver");return e=>{const i=Y(e,t);return T(i)}},[X,Y]),Et=useRef(null);((t,e)=>{const{setCurrentlyEditingElement:i,currentlyEditingElement:r,setCollapseState:n}=M();useEffect(()=>{if(!t)return;const{collapse:a,edit:o}=t;a&&n(a);const s=!(null==o?void 0:o.path)||j(o.path)===r;switch(null==o?void 0:o.action){case"accept":s&&(e.current&&e.current.click(),i(null));break;case"cancel":s&&i(null);break;default:(null==o?void 0:o.path)&&i(o.path)}},[t])})(et,Et);const Ct=useCallback((t,e)=>{!1!==D&&("function"!=typeof D?t.sort((t,i)=>{const r=e(t)[0],n=e(i)[0];return r<n?-1:r>n?1:0}):t.sort((t,i)=>D(e(t),e(i))))},[D]),Pt=be(X,ft),Tt={mainContainerRef:dt,name:i,nodeData:ft,onEdit:(t,e)=>g(void 0,void 0,void 0,function*(){const{currentData:i,newData:r,currentValue:a,newValue:o}=ke(pt,e,t,"update");if(a!==o)return yield mt(n,{currentData:i,newData:r,currentValue:a,newValue:o,name:e.slice(-1)[0],path:e})}),onDelete:(t,e)=>g(void 0,void 0,void 0,function*(){const{currentData:i,newData:r,currentValue:n,newValue:o}=ke(pt,e,t,"delete");return yield mt(a,{currentData:i,newData:r,currentValue:n,newValue:o,name:e.slice(-1)[0],path:e})}),onAdd:(t,e,i)=>g(void 0,void 0,void 0,function*(){const{currentData:r,newData:n,currentValue:a,newValue:s}=ke(pt,e,t,"add",i);return yield mt(o,{currentData:r,newData:n,currentValue:a,newValue:s,name:e.slice(-1)[0],path:e})}),onChange:s,onError:l,onEditEvent:c,showErrorMessages:p,onMove:(t,e,i)=>g(void 0,void 0,void 0,function*(){if(null===t)return;const{currentData:r,newData:a,currentValue:o}=ke(pt,t,"","delete"),s=t.slice(-1)[0],l=e.slice(0,-1),h=e.slice(-1)[0];let c="number"==typeof h?"above"===i?h:h+1:"number"==typeof s?`arr_${s}`:s;t.slice(0,-1).join(".")===e.slice(0,-1).join(".")&&"number"==typeof s&&"number"==typeof c&&s<c&&(c-=1);const p="number"==typeof c?{insert:!0}:"above"===i?{insertBefore:h}:{insertAfter:h},{newData:u,newValue:d}=ke(a,[...l,c],o,"add",p);return yield mt(n,{currentData:r,newData:u,currentValue:o,newValue:d,name:e.slice(-1)[0],path:e})}),showCollectionCount:y,collapseFilter:st,collapseAnimationTime:m,restrictEditFilter:yt,restrictDeleteFilter:gt,restrictAddFilter:bt,restrictTypeSelection:x,restrictDragFilter:vt,canDragOnto:!1,searchFilter:_t,searchText:ht,enableClipboard:u,keySort:D,sort:Ct,showArrayIndices:F,arrayIndexFromOne:I,showStringQuotes:R,showIconTooltips:O,indent:d,defaultValue:B,newKeyOptions:L,stringTruncate:G,translate:lt,customNodeDefinitions:X,customNodeData:Pt,customButtons:J,parentData:null,jsonParse:wt,jsonStringify:St,TextEditor:Z,errorMessageTimeout:Q,handleKeyboard:kt,keyboardControls:xt,insertAtTop:{object:!0===it||"object"===it,array:!0===it||"array"===it},onCollapse:rt,editConfirmRef:Et,collapseClickZones:nt},At=Object.assign(Object.assign({},at("container",ft)),{minWidth:N,maxWidth:V});return At.fontSize=null!=z?z:At.fontSize,jsx("div",{id:q,ref:dt,className:`jer-editor-container ${null!=W?W:""}`,style:At,children:h(pt)&&!Pt.renderCollectionAsValue?jsx(ve,Object.assign({data:pt},Tt)):jsx(me,Object.assign({data:pt,showLabel:!0},Tt))})},Oe=t=>{var e;const[i,r]=useState();return useEffect(()=>{const t=document.documentElement;r(t)},[]),i?jsx(R,{theme:null!==(e=t.theme)&&void 0!==e?e:A,icons:t.icons,docRoot:i,children:jsx(z,{onEditEvent:t.onEditEvent,onCollapse:t.onCollapse,children:jsx(Ce,Object.assign({},t))})}):null},ke=(t,e,i,n,a={})=>{if(0===e.length)return{currentData:t,newData:i,currentValue:t,newValue:i};const s=Object.assign({remove:"delete"===n},a),l="add"!==n?r(t,e):void 0;return{currentData:t,newData:o(t,e,i,s),currentValue:l,newValue:"delete"!==n?i:void 0}},Se=(t,e)=>e?()=>!0:"boolean"==typeof t?()=>t:"number"==typeof t?({level:e})=>e>=t:t,Ne=t=>{if(void 0!==t)return"value"===t?b:"key"===t?v:"all"===t?(t,e)=>b(t,e)||v(t,e):t},Te=t=>Array.isArray(t)&&2===t.length&&["error","value"].includes(t[0]),xe=(t,e)=>{const i="stringifyReplacer"===e?[t=>void 0===t?x:t]:[];if(i.push(...t.map(t=>t[e]).filter(t=>!!t)),0!==i.length)return(t,e)=>{let r=e;for(const t of i)r=t(r);return r}};function PreviewTab({}){useLogRender("PreviewTab");const{appConfig:t,setAppConfig:e}=useRenderStore(t=>({appConfig:t.appConfig,setAppConfig:t.setAppConfig}));return jsx("div",{role:"tabpanel",className:"editor-panel editor-panel--active","aria-hidden":!1,children:jsxs("div",{style:{padding:12},children:[jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[jsx("div",{children:"Default Language"}),jsx("select",{value:t.defaultLanguage??"en",onChange:i=>{e({...t,defaultLanguage:i.target.value})},children:Object.keys(t.localication??{}).map(t=>jsx("option",{value:t,children:t},t))})]}),jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:12,marginTop:8},children:[jsx("div",{children:"Light Background Color"}),jsx("input",{type:"color",value:t.screenStyle?.light.backgroundColor??"#FDFDFD",onChange:i=>{const r={...t.screenStyle,light:{...t.screenStyle?.light??{color:"#161827"},backgroundColor:i.target.value}};e({...t,screenStyle:r})},className:"input input--color"}),jsx("div",{children:"Light Color"}),jsx("input",{type:"color",value:t.screenStyle?.light.color??"#161827",onChange:i=>{const r={...t.screenStyle,light:{...t.screenStyle?.light??{backgroundColor:"#FDFDFD"},color:i.target.value}};e({...t,screenStyle:r})},className:"input input--color"}),jsx("div",{children:"Dark Background Color"}),jsx("input",{type:"color",value:t.screenStyle?.dark.backgroundColor??"#12131A",onChange:i=>{const r={...t.screenStyle,dark:{...t.screenStyle?.dark??{color:"#E9EBF9"},backgroundColor:i.target.value}};e({...t,screenStyle:r})},className:"input input--color"}),jsx("div",{children:"Dark Color"}),jsx("input",{type:"color",value:t.screenStyle?.dark.color??"#E9EBF9",onChange:i=>{const r={...t.screenStyle,dark:{...t.screenStyle?.dark??{backgroundColor:"#12131A"},color:i.target.value}};e({...t,screenStyle:r})},className:"input input--color"})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:8},children:[jsx("div",{children:"Dark Mode"}),jsx("input",{type:"checkbox",checked:"dark"===t.theme,onChange:i=>{const r=i.target.checked?"dark":"light";e({...t,theme:r})}})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:8},children:[jsx("div",{children:"Is RTL"}),jsx("input",{type:"checkbox",checked:t.isRtl??!1,onChange:i=>{e({...t,isRtl:i.target.checked})}})]}),jsx("div",{style:{marginTop:8},children:jsx(Oe,{rootName:"localication",data:t.localication??{},setData:i=>{e({...t,localication:i})}})})]})})}function DebugTab({data:t,setData:e}){return useLogRender("DebugTab"),jsx("div",{role:"tabpanel",className:"editor-panel editor-panel--active editor-panels-debug","aria-hidden":!1,children:jsx("div",{style:{flex:"1 1 auto",minHeight:0,overflow:"auto"},children:jsx(Oe,{data:t,setData:e})})})}function ProjectPage({project:t,appConfig:e=defaultAppConfig,onSaveProject:i,logLevel:r}){useLogRender("ProjectPage");const[n,a]=useState(t.data),[o,s]=useState(t.data),[l,h]=useState("builder");return useEffect(()=>(logger.info("ProjectPage","mount",{projectName:t.name}),useRenderStore.getState().setAppConfig(e),logger.verbose("ProjectPage","appConfig applied",e),()=>{logger.info("ProjectPage","unmount")}),[e,t.name]),useEffect(()=>{r&&logger.setLevel(r)},[r]),jsxs("div",{className:"container-full",children:[jsx(EditorHeader,{onSaveProject:()=>{logger.info("ProjectPage","save project",{name:t.name}),i({...t,data:o})},current:n,editorData:o,setEditorData:s}),jsxs("div",{className:"editor-container",children:[jsx("div",{className:"split-left",children:jsxs("div",{children:[jsxs("div",{className:"editor-tabs",role:"tablist","aria-label":"Editor tabs",children:[jsx("button",{className:"editor-tab "+("builder"===l?"editor-tab--active":""),role:"tab","aria-selected":"builder"===l,onClick:()=>{h("builder"),logger.info("ProjectPage","tab change",{to:"builder"})},children:"Builder"}),jsx("button",{className:"editor-tab "+("preview"===l?"editor-tab--active":""),role:"tab","aria-selected":"preview"===l,onClick:()=>{h("preview"),logger.info("ProjectPage","tab change",{to:"preview"})},children:"Preview Config"}),jsx("button",{className:"editor-tab "+("debug"===l?"editor-tab--active":""),role:"tab","aria-selected":"debug"===l,onClick:()=>{h("debug"),logger.info("ProjectPage","tab change",{to:"debug"})},children:"Debug"})]}),"builder"===l&&jsx(BuilderTab,{data:o,setData:s,current:n,setCurrent:a}),"preview"===l&&jsx(PreviewTab,{}),"debug"===l&&jsx(DebugTab,{data:o,setData:s})]})}),jsxs("div",{className:"split-right",children:[jsx("div",{className:"split-right-background"}),jsx(RenderPage,{data:o})]}),jsx("div",{className:"split-third",children:jsx(AttributesEditorPanel,{current:n,attributes:o,onChange:t=>{let e;s(t),t&&"object"==typeof t&&!Array.isArray(t)&&"key"in t&&(e=t.key),logger.verbose("ProjectPage","attributes change",e?{nodeKey:e}:void 0)},setCurrent:a})})]})]})}function copyNode(t){const{setCopiedNode:e}=useRenderStore.getState();e(t)}export{AttributesEditor$1 as AttributesEditor,DeviceMockFrame,ProjectPage,RenderNode$1 as RenderNode,RenderPage,allcomponentNames,analyseNode,copyNode,extractImageStyle,extractTextStyle,extractViewStyle,getBasicSamples,getDefaultDevice,getDevices,getOnboardSamples,getSamples,isEmptyObject,isNodeArray,isNodeNullOrUndefined,isNodeString,logger,novaToJson,patterns$1 as patterns,querySelector,useNode};
30
+ i.goToAndStop(n-i.firstFrame-1,!0)}"loop"===a.type&&(null===l||l!==a.frames||i.isPaused)&&(i.playSegments(a.frames,!0),l=a.frames),"play"===a.type&&i.isPaused&&(i.resetSegments(!0),i.play()),"stop"===a.type&&i.goToAndStop(a.frames[0]-i.firstFrame-1,!0)}},document.addEventListener("scroll",c),function(){document.removeEventListener("scroll",c)};case"cursor":return n=function(t,a){var n=t,o=a;if(-1!==n&&-1!==o){var s=getContainerCursorPosition(e,n,o);n=s.x,o=s.y}var l=r.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?n>=t.x[0]&&n<=t.x[1]&&o>=t.y[0]&&o<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&n===t.x&&o===t.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),d=(o-l.position.y[0])/(l.position.y[1]-l.position.y[0]);i.playSegments(l.frames,!0),i.goToAndStop(Math.ceil((c+d)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&i.playSegments(l.frames,!0),"play"===l.type&&(i.isPaused&&i.resetSegments(!1),i.playSegments(l.frames)),"stop"===l.type&&i.goToAndStop(l.frames[0],!0)}},o=function(e){n(e.clientX,e.clientY)},s=function(){n(-1,-1)},e.addEventListener("mousemove",o),e.addEventListener("mouseout",s),function(){e.removeEventListener("mousemove",o),e.removeEventListener("mouseout",s)}}}},[a,i])},useLottieInteractivity=function(e){var t=e.actions,i=e.mode,a=e.lottieObj,r=a.animationItem,n=a.View,o=a.animationContainerRef;return useInitInteractivity({actions:t,animationItem:r,mode:i,wrapperRef:o}),n},_excluded=["style","interactivity"],Lottie=function(e){var t,i,a,r=e.style,n=e.interactivity,o=_objectWithoutProperties(e,_excluded),s=useLottie(o,r),l=s.View,c=s.play,d=s.stop,p=s.pause,u=s.setSpeed,h=s.goToAndStop,g=s.goToAndPlay,m=s.setDirection,f=s.playSegments,y=s.setSubframe,b=s.getDuration,v=s.destroy,_=s.animationContainerRef,x=s.animationLoaded,S=s.animationItem;return useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:d,pause:p,setSpeed:u,goToAndPlay:g,goToAndStop:h,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:v,animationContainerRef:_,animationLoaded:x,animationItem:S})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),useLottieInteractivity({lottieObj:{View:l,play:c,stop:d,pause:p,setSpeed:u,goToAndStop:h,goToAndPlay:g,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:v,animationContainerRef:_,animationLoaded:x,animationItem:S},actions:null!==(i=null==n?void 0:n.actions)&&void 0!==i?i:[],mode:null!==(a=null==n?void 0:n.mode)&&void 0!==a?a:"scroll"})};function OnboardImage({node:e}){useLogRender("OnboardImage"),e=useNode(e);const t=e?.sourceType??e.type??"OnboardImage",[i,a]=useState(null),r=useMemo(()=>extractViewStyle(e),[e]);return useEffect(()=>{e.attributes?.lottie&&fetch(e.attributes?.lottie).then(e=>e.json()).then(e=>a(e))},[e.attributes?.lottie]),e.attributes?.video_url?jsx("video",{"attribute-key":t,autoPlay:!0,muted:!0,loop:!0,src:e.attributes?.video_url,style:r}):e.attributes?.lottie?jsx("div",i?{"attribute-key":t,style:r,children:jsx(Lottie,{animationData:i})}:{"attribute-key":t,style:r,children:"Loading..."}):jsx(Image$2,{node:{...e,type:"image",sourceType:t}})}var OnboardImage$1=React__default.memo(OnboardImage);function OnboardItem({node:e}){useLogRender("OnboardItem"),e=useNode(e);const t=e?.sourceType??e.type??"OnboardItem",i=e.attributes?.flexDirection,a=e.attributes?.display,r=parseSize(e.attributes?.paddingHorizontal),n=useMemo(()=>extractViewStyle(e),[e]);return jsx("div",{"attribute-key":t,className:"embla__slide",style:{...n,gap:parseSize(e.attributes?.gap),flexDirection:i,display:a,paddingRight:r,paddingLeft:r},children:e.children&&jsx(RenderNode$1,{node:e.children})})}var OnboardItem$1=React__default.memo(OnboardItem);function Text({node:e}){useLogRender("Text"),e=useNode(e);const t=e?.sourceType??e.type??"text",{appConfig:i}=useRenderStore(e=>({appConfig:e.appConfig})),{defaultLanguage:a,localication:r}=i,n=e.children,o=extractTextStyle(e),s={...useMemo(()=>extractViewStyle(e),[e]),...o};return jsx("p",{"attribute-key":t,style:s,children:r?.[a??"en"]?.[n]??n})}var Text$1=React__default.memo(Text);function OnboardSubtitle({node:e}){return useLogRender("OnboardSubtitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardSubtitle$1=React__default.memo(OnboardSubtitle);function OnboardTitle({node:e}){return useLogRender("OnboardTitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardTitle$1=React__default.memo(OnboardTitle);function View({node:e}){useLogRender("View"),e=useNode(e);const t=e?.sourceType??e.type??"view",i=useMemo(()=>extractViewStyle(e),[e]);return jsx("div",{"attribute-key":t,style:i,className:"scroll-container",children:jsx(RenderNode$1,{node:e.children})})}var View$1=React__default.memo(View);function RenderNode({node:e}){if(isNodeNullOrUndefined(e))return null;if(isNodeString(e))return jsx(Text$1,{node:{children:e,type:"text"}});if(isNodeArray(e))return jsx(Fragment,{children:e.map((e,t)=>jsx(RenderNode,{node:e},t))});const t=e;switch(t?.type){case"button":return jsx(Button$1,{node:t});case"carousel":return jsx(Carousel$1,{node:t});case"carouselButtons":return jsx(CarouselButtons$1,{node:t});case"carouselDots":return jsx(CarouselDots$1,{node:t});case"carouselItem":return jsx(CarouselItem$1,{node:t});case"carouselProvider":return jsx(CarouselProvider$1,{node:t});case"image":return jsx(Image$2,{node:t});case"Onboard":return jsx(Onboard$1,{node:t});case"OnboardButton":return jsx(OnboardButton$1,{node:t});case"OnboardButtons":return jsx(OnboardButtons$1,{node:t});case"OnboardDot":return jsx(OnboardDot$1,{node:t});case"OnboardFooter":return jsx(OnboardFooter$1,{node:t});case"OnboardImage":return jsx(OnboardImage$1,{node:t});case"OnboardItem":return jsx(OnboardItem$1,{node:t});case"OnboardProvider":return jsx(OnboardProvider$1,{node:t});case"OnboardSubtitle":return jsx(OnboardSubtitle$1,{node:t});case"OnboardTitle":return jsx(OnboardTitle$1,{node:t});case"text":return jsx(Text$1,{node:t});case"view":return jsx(View$1,{node:t});default:return other(t?.type)}}var RenderNode$1=React__default.memo(RenderNode);const patterns$1=[{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"button",children:"string",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",color:"color",fontSize:"size",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"]},defaults:{flexDirection:"column"}},meta:{desiredParent:["all"],label:"Button",description:"Simple action button.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},color:{label:"Color",description:"Text color of the button.",category:"style",specialCategory:null,sort:1},fontSize:{label:"Font Size",description:"Text size of the button.",category:"style",specialCategory:null,sort:2},fontWeight:{label:"Font Weight",description:"Text weight of the button.",category:"style",specialCategory:null,sort:3}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carousel",children:"carouselItem",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size"},defaults:{flexDirection:"row"}},meta:{desiredParent:["=CarouselProvider"],label:"Carousel",description:"Container for carousel items.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"}}},types:{},defaults:{flexDirection:"row"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselButtons",children:"never",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",buttonType:["previous_button","next_button","skip_button"],skipNumber:"number"},defaults:{flexDirection:"column"}},meta:{desiredParent:[">OnboardProvider",">CarouselProvider"],label:"Carousel Buttons",description:"Renders built-in carousel buttons.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},buttonType:{label:"Button Type",description:"Which carousel button to show.",category:"other",specialCategory:null,sort:1},skipNumber:{label:"Skip Number",description:"Index to skip to when tapped.",category:"other",specialCategory:null,sort:2}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselDots",children:"never",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",dotType:["expanding_dot","normal_dot","scaling_dot","sliding_border","sliding_dot","liquid_like"]},defaults:{flexDirection:"column"}},meta:{desiredParent:[">CarouselProvider"],label:"Carousel Dots",description:"Renders page indicator dots.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},dotType:{label:"Dot Type",description:"Style used for the dots.",category:"style",specialCategory:null,sort:1}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselItem",children:"node",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size"},defaults:{flexDirection:"column"}},meta:{desiredParent:["=Carousel"],label:"Carousel Item",description:"Single slide inside a carousel.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"carouselProvider",children:"node",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size"},defaults:{flexDirection:"column"}},meta:{desiredParent:["root",">View"],label:"Carousel Provider",description:"Provides carousel context to its children.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"image",children:"never",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",src:"string",resizeMode:["cover","contain","stretch","center"]},defaults:{flexDirection:"column"}},meta:{desiredParent:["all"],label:"Image",description:"Shows an image or graphic.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding.",category:"style",specialCategory:null,sort:5},width:{label:"Width",description:"Image width.",category:"container",specialCategory:null,sort:2},height:{label:"Height",description:"Image height.",category:"container",specialCategory:null,sort:3},src:{label:"Src",description:"Image source URL.",category:"other",specialCategory:null,sort:1},resizeMode:{label:"Resize Mode",description:"How the image fits the frame.",category:"style",specialCategory:null,sort:4}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"Onboard",children:"node",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size"},defaults:{flexDirection:"row"}},meta:{desiredParent:["=OnboardProvider"],label:"Onboard",description:"Wraps the onboarding flow.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"}},desiredChildren:["=OnboardItem"]},types:{},defaults:{flexDirection:"row"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardButton",children:"never",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",labelKey:"string",button_text_color:"color",animation:["simple-animation","line-animation","blur","blur-animation","blur-line-animation"],animation_color:"color",button_background_color:"color",flex:"number",events:"EventObject[]"},defaults:{flexDirection:"column"}},meta:{desiredParent:["=OnboardButtons"],label:"Onboard Button",description:"Single action button for onboarding.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},labelKey:{label:"Label Key",description:"Localization key for the button text.",category:"other",specialCategory:null,sort:1},button_text_color:{label:"Button Text Color",description:"Text color of the button.",category:"style",specialCategory:null,sort:2},animation:{label:"Animation",description:"Animation style for the button.",category:"style",specialCategory:null,sort:3},animation_color:{label:"Animation Color",description:"Color used by the animation.",category:"style",specialCategory:null,sort:4},button_background_color:{label:"Button Background Color",description:"Background color of the button.",category:"style",specialCategory:null,sort:5},flex:{label:"Flex",description:"Flex grow value in layout.",category:"container",specialCategory:null,sort:6},events:{label:"Events",description:"List of events fired by the button.",category:"other",specialCategory:null,sort:7}}},types:{EventObject:{type:["Permission","Navigate"],permission:["att","notification","rating","GDPR","null"],navigate_to:"string",targetIndex:"number"}},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardButtons",children:"node",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",buttonType:["previous_button","next_button","skip_button"],skipNumber:"number",buttons_direction:["row","column"],forIndex:"number",seperatorColor:"color",condition:["carousel-index"],conditionVariable:"number"},defaults:{flexDirection:"column"}},meta:{desiredParent:["=OnboardItem"],label:"Onboard Buttons",description:"Wrapper for onboarding button set.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},buttonType:{label:"Button Type",description:"Which onboard button to show.",category:"other",specialCategory:null,sort:1},skipNumber:{label:"Skip Number",description:"Slide index to skip to.",category:"other",specialCategory:null,sort:2},buttons_direction:{label:"Buttons Direction",description:"Direction to lay out buttons.",category:"container",specialCategory:null,sort:3},forIndex:{label:"For Index",description:"Show only for this slide index.",category:"other",specialCategory:null,sort:4},seperatorColor:{label:"Seperator Color",description:"Color of the divider line.",category:"style",specialCategory:null,sort:5},condition:{label:"Condition",description:"Built-in condition to check.",category:"other",specialCategory:null,sort:6},conditionVariable:{label:"Condition Variable",description:"Value used when checking the condition.",category:"other",specialCategory:null,sort:7}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardDot",children:"node",attributes:{scrollable:"boolean",flexDirection:"never",alignItems:"never",justifyContent:"never",gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",dotType:["expanding_dot","normal_dot","scaling_dot","sliding_border","sliding_dot","liquid_like"],inactive_dot_opacity:"number",expanding_dot_width:"number",dot_style:"string",container_style:"string",active_dot_color:"color"},defaults:{flexDirection:"column"}},meta:{desiredParent:[">OnboardProvider"],label:"Onboard Dot",description:"Renders onboarding progress dots.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},dotType:{label:"Dot Type",description:"Dot animation style.",category:"style",specialCategory:null,sort:1},inactive_dot_opacity:{label:"Inactive Dot Opacity",description:"Opacity for inactive dots.",category:"style",specialCategory:null,sort:2},expanding_dot_width:{label:"Expanding Dot Width",description:"Width used while expanding.",category:"style",specialCategory:null,sort:3},dot_style:{label:"Dot Style",description:"Custom style for each dot.",category:"style",specialCategory:null,sort:4},container_style:{label:"Container Style",description:"Style for the dot wrapper.",category:"style",specialCategory:null,sort:5},active_dot_color:{label:"Active Dot Color",description:"Color of the active dot.",category:"style",specialCategory:null,sort:6}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardFooter",children:"node",attributes:{color:"color",fontSize:"size",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",textLocalizationKey:"string",linkedWordFirstLocalizationKey:"string",linkedWordFirstColor:"color",linkedWordFirstPage:"string",linkedWordSecondLocalizationKey:"string",linkedWordSecondColor:"color",linkedWordSecondPage:"string"},defaults:{flexDirection:"column"}},meta:{desiredParent:[">OnboardItem"],label:"Onboard Footer",description:"Footer text with optional links.",attributes:{color:{label:"Color",description:"Text color.",category:"style",specialCategory:null,sort:1},fontSize:{label:"Font Size",description:"Text size.",category:"style",specialCategory:null,sort:2,preferedScale:"s"},fontWeight:{label:"Font Weight",description:"Text weight.",category:"style",specialCategory:null,sort:3},textAlign:{label:"Text Align",description:"Text alignment.",category:"style",specialCategory:null,sort:4},scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},textLocalizationKey:{label:"Text Localization Key",description:"Localization key for the footer text.",category:"other",specialCategory:null,sort:1},linkedWordFirstLocalizationKey:{label:"Linked Word First Localization Key",description:"Key for the first linked word.",category:"other",specialCategory:null,sort:2},linkedWordFirstColor:{label:"Linked Word First Color",description:"Color of the first linked word.",category:"style",specialCategory:null,sort:3},linkedWordFirstPage:{label:"Linked Word First Page",description:"Page opened by the first link.",category:"other",specialCategory:null,sort:4},linkedWordSecondLocalizationKey:{label:"Linked Word Second Localization Key",description:"Key for the second linked word.",category:"other",specialCategory:null,sort:5},linkedWordSecondColor:{label:"Linked Word Second Color",description:"Color of the second linked word.",category:"style",specialCategory:null,sort:6},linkedWordSecondPage:{label:"Linked Word Second Page",description:"Page opened by the second link.",category:"other",specialCategory:null,sort:7}},specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}}},defaults:{flexDirection:"column",paddingHorizontal:"24@s"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardImage",children:"node",attributes:{src:"string",width:"size",height:"size",resizeMode:["cover","contain","stretch","center"],borderRadius:"size",scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",video_url:"string",lottie:"string"},defaults:{flexDirection:"column"}},meta:{desiredParent:[">OnboardProvider",">OnboardItem","!=Onboard"],label:"Onboard Image",description:"Onboarding hero image with media.",attributes:{src:{label:"Src",description:"Image source URL.",category:"other",specialCategory:null,sort:1},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},resizeMode:{label:"Resize Mode",description:"How the image fits the frame.",category:"style",specialCategory:null,sort:4},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},video_url:{label:"Video Url",description:"URL for the onboarding video.",category:"other",specialCategory:null,sort:1},lottie:{label:"Lottie",description:"Path to the lottie animation.",category:"other",specialCategory:null,sort:2}},specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardItem",children:"node",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",display:["flex","block"]},defaults:{flexDirection:"column"}},meta:{desiredParent:["=Onboard"],label:"Onboard Item",description:"Single onboarding screen section.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Order of child stacking.",category:"container",specialCategory:null,sort:3},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between child blocks.",category:"container",specialCategory:null,sort:2},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:4},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},display:{label:"Display",description:"Controls layout display mode.",category:"container",specialCategory:null,sort:1}}},defaults:{flexDirection:"column",gap:"16@vs",display:"flex",paddingHorizontal:"24@s"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardProvider",children:"node",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"never",width:"size",height:"size",theme:"string",use_safe_area_inset:"boolean"},defaults:{flexDirection:"column"}},meta:{desiredParent:["root"],label:"Onboard Provider",description:"Provides shared settings for onboarding.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding for the provider.",category:"container",specialCategory:"padding",sort:3},paddingBottom:{label:"Padding Bottom",description:"Bottom padding for the provider.",category:"container",specialCategory:"padding",sort:5},paddingLeft:{label:"Padding Left",description:"Left padding for the provider.",category:"container",specialCategory:"padding",sort:6},paddingRight:{label:"Padding Right",description:"Right padding for the provider.",category:"container",specialCategory:"padding",sort:4},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},theme:{label:"Theme",description:"Theme key for onboarding screens.",category:"other",specialCategory:null,sort:1},use_safe_area_inset:{label:"Use Safe Area Inset",description:"Adds safe area padding.",category:"container",specialCategory:null,sort:2}}},defaults:{flexDirection:"column",paddingTop:0,paddingRight:0,paddingBottom:8,paddingLeft:0},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardSubtitle",children:"node",attributes:{color:"color",fontSize:"size",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size"},defaults:{flexDirection:"column"}},meta:{desiredParent:[">OnboardProvider",">OnboardItem"],label:"Onboard Subtitle",description:"Subtitle text for an onboarding step.",attributes:{color:{label:"Color",description:"Text color.",category:"style",specialCategory:null,sort:1},fontSize:{label:"Font Size",description:"Text size.",category:"style",specialCategory:null,sort:2,preferedScale:"s"},fontWeight:{label:"Font Weight",description:"Text weight.",category:"style",specialCategory:null,sort:3},textAlign:{label:"Text Align",description:"Text alignment.",category:"style",specialCategory:null,sort:4},scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"}},specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}}},defaults:{flexDirection:"column",fontSize:"14@fs",fontWeight:"600"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"OnboardTitle",children:"node",attributes:{color:"color",fontSize:"size",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"],scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size"},defaults:{flexDirection:"column"}},meta:{desiredParent:[">OnboardItem",">OnboardProvider"],label:"Onboard Title",description:"Title text for an onboarding step.",attributes:{color:{label:"Color",description:"Text color.",category:"style",specialCategory:null,sort:1},fontSize:{label:"Font Size",description:"Text size.",category:"style",specialCategory:null,sort:2,preferedScale:"s"},fontWeight:{label:"Font Weight",description:"Text weight.",category:"style",specialCategory:null,sort:3},textAlign:{label:"Text Align",description:"Text alignment.",category:"style",specialCategory:null,sort:4},scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"}},specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}}},defaults:{flexDirection:"column",fontSize:"24@fs",fontWeight:"700",textAlign:"center"},types:{}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"text",children:"string",attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size",color:"color",fontSize:"size",fontWeight:["normal","bold","100","200","300","400","500","600","700","800","900"],textAlign:["left","center","right","justify"]},defaults:{flexDirection:"column"}},meta:{desiredParent:["all"],label:"Text",description:"Displays simple text.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"},color:{label:"Color",description:"Text color.",category:"style",specialCategory:null,sort:1},fontSize:{label:"Font Size",description:"Text size.",category:"style",specialCategory:null,sort:2,preferedScale:"s"},fontWeight:{label:"Font Weight",description:"Text weight.",category:"style",specialCategory:null,sort:3},textAlign:{label:"Text Align",description:"Text alignment.",category:"style",specialCategory:null,sort:4}}},types:{},defaults:{flexDirection:"column"}},{schemaVersion:1,allowUnknownAttributes:!1,pattern:{type:"view",children:["node","array"],attributes:{scrollable:"boolean",flexDirection:["row","column"],alignItems:["flex-start","center","flex-end","stretch","baseline"],justifyContent:["flex-start","center","flex-end","space-between","space-around","space-evenly"],gap:"size",padding:"size",paddingHorizontal:"size",paddingVertical:"size",paddingTop:"size",paddingBottom:"size",paddingLeft:"size",paddingRight:"size",margin:"size",marginVertical:"size",marginTop:"size",marginBottom:"size",marginLeft:"size",marginRight:"size",backgroundColor:"color",borderRadius:"size",width:"size",height:"size"},defaults:{flexDirection:"column"}},meta:{desiredParent:["all"],label:"View",description:"Base layout container.",specialCategories:{padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",sort:1},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",sort:2},size:{label:"Size",description:"Fixed dimensions.",category:"container",sort:3}},attributes:{scrollable:{label:"Scrollable",description:"Turns scroll interaction on.",category:"container",specialCategory:null,sort:-1},flexDirection:{label:"Flex Direction",description:"Sets row or column layout.",category:"container",specialCategory:null,sort:4},alignItems:{label:"Align Items",description:"Controls cross-axis alignment.",category:"container",specialCategory:null,sort:3},justifyContent:{label:"Justify Content",description:"Controls main-axis alignment.",category:"container",specialCategory:null,sort:5},gap:{label:"Gap",description:"Space between children.",category:"container",specialCategory:null,sort:10,preferedScale:"s"},padding:{label:"Padding",description:"Uniform padding on all sides.",category:"container",specialCategory:"padding",sort:6,preferedScale:"s"},paddingHorizontal:{label:"Padding Horizontal",description:"Left and right padding.",category:"container",specialCategory:"padding",sort:7,preferedScale:"s"},paddingVertical:{label:"Padding Vertical",description:"Top and bottom padding.",category:"container",specialCategory:"padding",sort:8,preferedScale:"vs"},paddingTop:{label:"Padding Top",description:"Top padding only.",category:"container",specialCategory:"padding",sort:9,preferedScale:"vs"},paddingBottom:{label:"Padding Bottom",description:"Bottom padding only.",category:"container",specialCategory:"padding",sort:10,preferedScale:"vs"},paddingLeft:{label:"Padding Left",description:"Left padding only.",category:"container",specialCategory:"padding",sort:11,preferedScale:"s"},paddingRight:{label:"Padding Right",description:"Right padding only.",category:"container",specialCategory:"padding",sort:12,preferedScale:"s"},margin:{label:"Margin",description:"Uniform margin on all sides.",category:"container",specialCategory:"margin",sort:13,preferedScale:"s"},marginHorizontal:{label:"Margin Horizontal",description:"Left and right margin.",category:"container",specialCategory:"margin",sort:14,preferedScale:"s"},marginVertical:{label:"Margin Vertical",description:"Top and bottom margin.",category:"container",specialCategory:"margin",sort:15,preferedScale:"vs"},marginTop:{label:"Margin Top",description:"Top margin only.",category:"container",specialCategory:"margin",sort:16,preferedScale:"vs"},marginBottom:{label:"Margin Bottom",description:"Bottom margin only.",category:"container",specialCategory:"margin",sort:17,preferedScale:"vs"},marginLeft:{label:"Margin Left",description:"Left margin only.",category:"container",specialCategory:"margin",sort:18,preferedScale:"s"},marginRight:{label:"Margin Right",description:"Right margin only.",category:"container",specialCategory:"margin",sort:19,preferedScale:"s"},backgroundColor:{label:"Background Color",description:"Background fill color.",category:"style",specialCategory:null,sort:20},borderRadius:{label:"Border Radius",description:"Corner rounding amount.",category:"style",specialCategory:null,sort:21,preferedScale:"s"},width:{label:"Width",description:"Fixed width value.",category:"container",specialCategory:"size",sort:0,preferedScale:"s"},height:{label:"Height",description:"Fixed height value.",category:"container",specialCategory:"size",sort:1,preferedScale:"vs"}}},defaults:{flexDirection:"column"}}],allcomponentNames=["button","carousel","carouselButtons","carouselDots","carouselItem","carouselProvider","image","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","text","view"],patterns=patterns$1,patternIndex=new Map(patterns.map(e=>[e.pattern.type,e]));function getPatternByType(e){if("string"==typeof e)return patternIndex.get(e)}function getAttributeSchema(e){const t=getPatternByType(e);return t?.pattern.attributes}function getAttributeMeta(e){const t=getPatternByType(e);return t?.meta?.attributes}function getDefaultsForType(e){const t=getPatternByType(e);return t?.defaults}function getTypeSchema(e,t){if(!e||!t)return;const i=getPatternByType(e),a=i?.types;return a?.[t]}function isPrimitiveType(e){return"string"===e||"number"===e||"boolean"===e}function getArrayItemType(e){return"string"!=typeof e?null:e.endsWith("[]")?e.slice(0,-2):null}function Modal({onClose:e,ariaLabelledBy:t,children:i,className:a,contentClassName:r,closeOnOverlayClick:n=!0,closeOnEsc:o=!0}){return useEffect(()=>{if(!o)return;if("undefined"==typeof window)return;const t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[o,e]),jsxs("div",{className:"modal"+(a?` ${a}`:""),role:"dialog","aria-modal":"true","aria-labelledby":t,children:[jsx("div",{className:"modal__overlay",onClick:n?e:void 0}),jsx("div",{className:"modal__content"+(r?` ${r}`:""),role:"document",children:i})]})}const SAVED_COLORS_KEY="attributes-editor-saved-colors",POPULAR_COLORS=[{label:"White",value:"#FFFFFF"},{label:"Black",value:"#000000"},{label:"Text Gray",value:"#1F1F1F"},{label:"Muted Text",value:"#4A4A4A"},{label:"Background",value:"#F5F5F5"},{label:"Primary Blue",value:"#0A84FF"},{label:"Success Green",value:"#34C759"},{label:"Accent Purple",value:"#AF52DE"}],readSavedColors=()=>{if("undefined"==typeof window)return[];try{const e=window.localStorage.getItem(SAVED_COLORS_KEY);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}},persistSavedColors=e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(SAVED_COLORS_KEY,JSON.stringify(e))}catch{}};function ColorModal({value:e,projectColors:t=[],onSelect:i,onClose:a,onClear:r}){const[n,o]=useState(()=>readSavedColors()),s=useRef(null),l=useMemo(()=>{const e=new Set;return t.map(e=>e?.trim()).filter(t=>Boolean(t)&&!e.has(t.toLowerCase())).map(t=>(e.add(t.toLowerCase()),t))},[t]),c=useMemo(()=>l.map(e=>({value:e})),[l]),d=useMemo(()=>n.map(e=>({value:e})),[n]),p=e=>{i(e),a()};return jsxs(Modal,{onClose:a,ariaLabelledBy:"color-picker-title",contentClassName:"color-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"color-picker-title",className:"modal__title",children:"Pick a color"}),jsx("button",{type:"button",className:"editor-button",onClick:a,children:"Close"})]}),jsxs("div",{className:"color-modal__selected",children:[jsxs("div",{className:"color-modal__selected-info",children:[jsx("span",{"aria-hidden":!0,className:"color-modal__selected-preview",style:{background:e??"transparent"}}),jsxs("div",{children:[jsx("p",{className:"color-modal__selected-label",children:"Selected color"}),jsx("p",{className:"color-modal__selected-value",children:e??"None"})]})]}),e?jsx("button",{type:"button",className:"color-modal__link-button",onClick:r,children:"Clear"}):null]}),jsx(ColorSection,{title:"Project colors",options:c,emptyMessage:"No project colors detected yet.",activeValue:e,onSelect:p}),jsx(ColorSection,{title:"Saved colors",options:d,emptyMessage:"Add colors you use often for quick access.",action:jsx("button",{type:"button",className:"color-modal__link-button",onClick:()=>{s.current?.click()},children:"Add color"}),activeValue:e,onSelect:p}),jsx(ColorSection,{title:"Popular colors",options:POPULAR_COLORS,emptyMessage:"Popular palettes unavailable.",activeValue:e,onSelect:p}),jsx("input",{ref:s,type:"color",className:"color-modal__input",onChange:e=>{const t=e.target.value;t&&(o(e=>{if(e.includes(t))return e;const i=[...e,t];return persistSavedColors(i),i}),i(t),a(),e.target.value="")}})]})}function ColorSection({title:e,options:t,emptyMessage:i,action:a,activeValue:r,onSelect:n}){return jsxs("section",{className:"color-section",children:[jsxs("div",{className:"color-section__header",children:[jsx("p",{className:"color-section__title",children:e}),a]}),t.length?jsx("div",{className:"color-section__swatches",children:t.map(t=>jsx(ColorSwatch,{option:t,isActive:t.value===r,onSelect:()=>n(t.value)},`${e}-${t.value}`))}):jsx("p",{className:"color-section__empty",children:i??"No colors available."})]})}function ColorSwatch({option:e,isActive:t,onSelect:i}){const a="#ffffff"===e.value?.trim().toLowerCase()||"#fff"===e.value?.trim().toLowerCase();return jsxs("button",{type:"button",onClick:i,className:"color-modal__swatch"+(t?" color-modal__swatch--active":""),children:[jsx("span",{"aria-hidden":!0,className:"color-modal__swatch-preview"+(a?" color-modal__swatch-preview--light":""),style:{background:e.value??"transparent"}}),jsx("span",{className:"color-modal__swatch-label",children:e.label??e.value}),jsx("span",{className:"color-modal__swatch-value",children:e.value})]})}const Checkbox=React__default.forwardRef(({label:e,helperText:t,className:i,inputClassName:a,onChange:r,id:n,disabled:o,...s},l)=>{const c=useId(),d=n??c,p=t?`${d}-helper`:void 0,u=["builder-checkbox",o?"builder-checkbox--disabled":void 0,i].filter(Boolean).join(" "),h=["builder-checkbox__native",a].filter(Boolean).join(" ");return jsxs("div",{className:u,children:[jsxs("label",{htmlFor:d,className:"builder-checkbox__label",children:[jsx("input",{...s,ref:l,id:d,type:"checkbox",className:h,onChange:e=>{r?.(e.target.checked,e)},disabled:o,"aria-describedby":p}),jsx("span",{className:"builder-checkbox__control","aria-hidden":"true"}),e?jsx("span",{className:"builder-checkbox__text",children:e}):null]}),t?jsx("span",{id:p,className:"builder-checkbox__helper",children:t}):null]})});function LayoutPreviewPicker({mode:e,options:t,value:i,onChange:a,layoutContext:r,viewAttributes:n}){if(!t.length)return null;const o="string"==typeof i?i:r?.[e];return jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,paddingBottom:2},children:t.map(t=>{const i=o===t;return jsxs("button",{type:"button",onClick:()=>a(t),style:{borderRadius:8,padding:5,width:110,flex:"0 0 auto",border:i?"2px solid #222":"1px solid #d5d5d5",background:"#fff",textAlign:"left",display:"flex",flexDirection:"column",gap:3,cursor:"pointer",boxShadow:i?"0 2px 4px rgba(0,0,0,0.08)":"none"},children:[jsx(LayoutPreview,{mode:e,option:t,isActive:i,layoutContext:r,viewAttributes:n}),jsx("span",{style:{fontWeight:600,fontSize:11},children:formatLayoutLabel(t)})]},t)})})}function LayoutPreview({mode:e,option:t,isActive:i,layoutContext:a,viewAttributes:r}){const n=resolvePreviewContext(e,t,a),o=n.flexDirection?.startsWith("column"),s=r?.backgroundColor??(i?"#fffdf5":"#fafafa"),l=parseNumeric(r?.gap)??3,c=parseNumeric(r?.borderRadius)??4,d="stretch"===n.alignItems?o?{width:"100%"}:{height:"100%"}:void 0;return jsx("div",{style:{borderRadius:c,border:"1px dashed rgba(0,0,0,0.2)",padding:5,background:s},children:jsx("div",{style:{display:"flex",flexDirection:n.flexDirection??"row",justifyContent:n.justifyContent??"flex-start",alignItems:n.alignItems??"stretch",gap:l,width:"100%",minHeight:o?52:40,transition:"all 0.2s ease"},children:Array.from({length:3}).map((t,i)=>jsx("span",{style:{width:o?22:10,height:10,borderRadius:2.5,background:"#f7a500",border:"1px solid rgba(0,0,0,0.1)",flex:"justifyContent"===e?"0 0 auto":void 0,...d??{}}},i))})})}function resolvePreviewContext(e,t,i){const a={flexDirection:i?.flexDirection??"row",alignItems:i?.alignItems??"center",justifyContent:i?.justifyContent??"flex-start"};switch(e){case"flexDirection":return{flexDirection:t,alignItems:a.alignItems,justifyContent:a.justifyContent};case"alignItems":return{flexDirection:a.flexDirection,alignItems:t,justifyContent:a.justifyContent};case"justifyContent":return{flexDirection:a.flexDirection,alignItems:a.alignItems,justifyContent:t};default:return a}}function parseNumeric(e){if(null==e)return;if("number"==typeof e)return e;const t=Number.parseFloat(e);return Number.isNaN(t)?void 0:t}function formatLayoutLabel(e){return e.replace(/[-_]/g," ").replace(/\s+/g," ").replace(/^\w|\s\w/g,e=>e.toUpperCase())}Checkbox.displayName="Checkbox";const BOOLEAN_ALIASES=new Set(["bool","boolean"]);function isBooleanFieldType(e){if(Array.isArray(e))return!1;if("string"!=typeof e)return!1;const t=e.trim().toLowerCase();return BOOLEAN_ALIASES.has(t)}const layoutFieldNames=["flexDirection","alignItems","justifyContent"];function isLayoutField(e){return layoutFieldNames.includes(e)}function Field({name:e,type:t,value:i,onChange:a,componentType:r,projectColors:n,layoutContext:o,viewAttributes:s,label:l,preferredScale:c}){if(Array.isArray(t)){if(isLayoutField(e)){const r=t.filter(e=>"string"==typeof e&&e.length>0);return jsx(LayoutPreviewPicker,{mode:e,options:r,value:"string"==typeof i?i:void 0,onChange:a,layoutContext:o,viewAttributes:s})}return jsxs("select",{value:i??"",onChange:e=>a(e.target.value),className:"input",children:[jsx("option",{value:"",children:"(none)"}),t.map(e=>jsx("option",{value:e,children:e},e))]})}const d="string"==typeof t?getArrayItemType(t):null;if(d){const t=Array.isArray(i)?i:[];if(isPrimitiveType(d)){const i=(i,r)=>{switch(d){case"number":return jsx("input",{type:"number",value:i??"",onChange:e=>{const i=[...t];i[r]=""===e.target.value?void 0:Number(e.target.value),a(i)},className:"input",style:{flex:1}});case"boolean":case"bool":return jsx(Checkbox,{checked:Boolean(i),onChange:e=>{const i=[...t];i[r]=e,a(i)},name:`${e}-${r}`});case"string":return jsx("input",{type:"text",value:i??"",onChange:e=>{const i=[...t];i[r]=""===e.target.value?void 0:e.target.value,a(i)},className:"input",style:{flex:1}});case"color":return jsx(ColorPickerButton,{value:"string"==typeof i?i:void 0,onChange:e=>{const i=[...t];i[r]=e,a(i)},projectColors:n});default:return jsx("p",{children:"---not-implemented----"})}};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,r)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[i(e,r),jsx("button",{type:"button",onClick:()=>{const e=t.filter((e,t)=>t!==r);a(e.length?e:void 0)},children:"remove"})]},r)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==d&&("number"===d?0:"")];a(e)},children:"add"})})]})}const l=getTypeSchema(r,d)??{};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,i)=>{const c=e??{};return jsxs("div",{style:{border:"1px solid #ddd",borderRadius:6,padding:8},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(l).map(([e,l])=>isBooleanFieldType(l)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:l,value:c?.[e],onChange:r=>{const n=[...t],o={...c??{},[e]:r};n[i]=o,a(n)},componentType:r,projectColors:n,layoutContext:o,viewAttributes:s,label:e})},e):jsxs(React__default.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:l,value:c?.[e],onChange:r=>{const n=[...t],o={...c??{},[e]:r};n[i]=o,a(n)},componentType:r,projectColors:n,layoutContext:o,viewAttributes:s})]},e))}),jsx("div",{style:{marginTop:8},children:jsx("button",{type:"button",onClick:()=>{const e=t.filter((e,t)=>t!==i);a(e.length?e:void 0)},children:"remove"})})]},i)}),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];a(e)},children:"add"})})]})}if("string"==typeof t&&!isPrimitiveType(t)){const e=getTypeSchema(r,t);if(e){const t=i??{};return jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,i])=>isBooleanFieldType(i)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:i,value:t?.[e],onChange:i=>{const r={...t??{},[e]:i};a(r)},componentType:r,projectColors:n,layoutContext:o,viewAttributes:s,label:e})},e):jsxs(React__default.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:i,value:t?.[e],onChange:i=>{const r={...t??{},[e]:i};a(r)},componentType:r,projectColors:n,layoutContext:o,viewAttributes:s})]},e))})}}if("string[]"===t){const e=Array.isArray(i)?i:[];return jsxs("div",{style:{display:"grid",gap:8},children:[e.map((t,i)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input",{type:"text",value:t??"",onChange:t=>{const r=[...e];r[i]=t.target.value,a(r)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const t=e.filter((e,t)=>t!==i);a(t.length?t:void 0)},children:"remove"})]},i)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const t=[...e,""];a(t)},children:"add"})})]})}if("string"!=typeof t)return jsx("p",{children:"---not-implemented----"});switch(t){case"size":return jsx(SizeField,{value:i,onChange:a,preferredScale:c,fieldName:e});case"number":return jsx("input",{type:"number",value:i??"",onChange:e=>a(""===e.target.value?void 0:Number(e.target.value)),className:"input"});case"boolean":case"bool":return jsx(Checkbox,{label:l??e,checked:Boolean(i),onChange:e=>a(e),name:e});case"string":return jsx("input",{type:"text",value:i??"",onChange:e=>a(""===e.target.value?void 0:e.target.value),className:"input"});case"color":return jsx(ColorPickerButton,{value:"string"==typeof i?i:void 0,onChange:e=>a(e),projectColors:n});default:return jsx("p",{children:"---not-implemented----"})}}function ColorPickerButton({value:e,onChange:t,projectColors:i=[]}){const[a,r]=useState(!1),n="string"==typeof e?e:void 0;return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>r(!0),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,borderRadius:6,border:"1px solid #ddd",padding:"8px 10px",background:"#fff",cursor:"pointer"},children:[jsx("span",{"aria-hidden":!0,style:{width:32,height:32,borderRadius:6,border:"1px solid rgba(0,0,0,0.1)",background:n??"transparent"}}),jsx("span",{style:{flex:1,textAlign:"left",fontWeight:500},children:n??"Select color"}),jsx("span",{style:{fontSize:12,color:"#666"},children:"Open"})]}),a?jsx(ColorModal,{value:n,projectColors:i,onSelect:e=>{t(e),r(!1)},onClose:()=>r(!1),onClear:()=>{t(void 0),r(!1)}}):null]})}function parseSizeValue(e){const t={amount:"",unit:""};if("number"==typeof e&&Number.isFinite(e))return{amount:String(e),unit:""};if("string"!=typeof e)return t;const i=e.trim();if(!i)return t;if(i.endsWith("%"))return{amount:i.slice(0,-1),unit:"%"};const a=i.toLowerCase();return a.endsWith("@vs")?{amount:i.slice(0,-3),unit:"vs"}:a.endsWith("vs")?{amount:i.slice(0,-2),unit:"vs"}:a.endsWith("@fs")?{amount:i.slice(0,-3),unit:"f"}:a.endsWith("@f")||a.endsWith("fs")?{amount:i.slice(0,-2),unit:"f"}:a.endsWith("f")?{amount:i.slice(0,-1),unit:"f"}:a.endsWith("@s")?{amount:i.slice(0,-2),unit:"s"}:a.endsWith("s")?{amount:i.slice(0,-1),unit:"s"}:a.endsWith("px")?{amount:i.slice(0,-2),unit:""}:{amount:i,unit:""}}function composeSizeValue(e,t){const i=e.trim();if("%"===t)return`${i}%`;if(""===t){const e=Number(i);return Number.isFinite(e)?e:i}return"f"===t?`${i}@fs`:`${i}@${t}`}function normalizePreferredScale(e,t){const i=t.trim().toLowerCase(),a=i.includes("height")||i.includes("top")||i.includes("vertical")?"vs":"s";if("string"!=typeof e)return a;const r=e.trim().toLowerCase();return"vs"===r||"s"===r||"f"===r||"%"===r?r:a}function SizeField({value:e,onChange:t,preferredScale:i,fieldName:a}){const r=useMemo(()=>parseSizeValue(e),[e]),n=useMemo(()=>normalizePreferredScale(i,a),[i,a]),[o,s]=useState(r.amount),[l,c]=useState(r.unit||n);useEffect(()=>{s(r.amount),c(r.unit||n)},[r.amount,r.unit,n]);const d=useCallback((e,i)=>{const a=e.trim();t(a?composeSizeValue(a,i):void 0)},[t]),p=[n,...["vs","s","f","%"].filter(e=>e!==n)],u=p.map(e=>({value:e,label:e===n?`${e}`:e}));return jsxs("div",{className:"attributes-editor__size-field",children:[jsx("input",{type:"number",className:"input attributes-editor__size-field-input",value:o,onChange:e=>{const i=e.target.value;s(i),i.trim()?d(i,l):t(void 0)}}),jsx("select",{className:"input attributes-editor__size-field-select",value:l,onChange:e=>{const t=e.target.value;c(t),o.trim()&&d(o,t)},children:u.map(e=>jsx("option",{value:e.value,children:e.label},e.value))})]})}function FieldInfoTooltip({description:e,children:t}){const[i,a]=useState(!1);if(!e||!e.trim())return jsx(Fragment,{children:t});const r=["field-info-tooltip__bubble",i?"field-info-tooltip__bubble--visible":""].filter(Boolean).join(" "),n=()=>a(!0),o=()=>a(!1);return jsxs("div",{className:"field-info-tooltip",children:[t,jsxs("button",{className:"field-info-tooltip__trigger",onMouseEnter:n,onMouseLeave:o,onFocus:n,onBlur:o,type:"button",children:["Show info",jsx("span",{className:r,role:"tooltip","aria-hidden":!i,children:e})]})]})}const FIELD_SLOT_MATCHERS={top:/(^|[-_])(top)$/i,bottom:/(^|[-_])(bottom)$/i,left:/(^|[-_])(left)$/i,right:/(^|[-_])(right)$/i};function SpecialCategorySection({category:e,entries:t,attributeMeta:i,attributes:a,onAttributeChange:r,componentType:n,projectColors:o,layoutContext:s,viewAttributes:l,meta:c}){const[d,p]=useState(!1),u=c?.label&&c.label.trim().length>0?c.label:e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1):"Special",h=c?.description,g="padding"===e||"margin"===e||"offset"===e,m=g,f=e=>{if(!m)return;const t=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();return Object.keys(FIELD_SLOT_MATCHERS).find(e=>FIELD_SLOT_MATCHERS[e].test(t))},y=t.filter(e=>!f(e.name)),b=g&&y.length>0;return jsxs("section",{className:"special-category-section",children:[jsxs("div",{className:"special-category-section__header",children:[jsx("p",{className:"special-category-section__title",children:u}),b?jsx("button",{type:"button",onClick:()=>p(e=>!e),className:"special-category-section__toggle","data-active":d,children:d?"Hide advanced":"Show advanced"}):null]}),h?jsx("p",{className:"special-category-section__description",children:h}):null,(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});if(!g)return(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const e=["special-category-section__fields",m?"special-category-section__fields--box":""].filter(Boolean).join(" ");return jsx("div",{className:e,children:t.map(({name:e,type:t})=>{const c=i?.[e]?.label??e,d=i?.[e]?.description,p=i?.[e]?.preferedScale,u=a[e],h=isBooleanFieldType(t),g=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",h?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":g,children:[h?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:u,onChange:t=>r(e,t),componentType:n,projectColors:o,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})})})();const e=t.filter(e=>f(e.name)).sort((e,t)=>{const i=["top","left","right","bottom"],a=f(e.name),r=f(t.name);return(a?i.indexOf(a):999)-(r?i.indexOf(r):999)}),c=t.filter(e=>!f(e.name));if(0===e.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const p=jsx("div",{className:"special-category-section__fields special-category-section__fields--box",children:e.map(({name:e,type:t})=>{const c=i?.[e]?.label??e,d=i?.[e]?.description,p=i?.[e]?.preferedScale,u=a[e],h=isBooleanFieldType(t),g=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",h?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":g,children:[h?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:u,onChange:t=>r(e,t),componentType:n,projectColors:o,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})}),u=d&&c.length>0?jsx("div",{className:"special-category-section__fields",children:c.map(({name:e,type:t})=>{const c=i?.[e]?.label??e,d=i?.[e]?.description,p=i?.[e]?.preferedScale,u=a[e],h=isBooleanFieldType(t),g=["attributes-editor__field-wrapper","special-category-section__field",h?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:g,children:[h?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:u,onChange:t=>r(e,t),componentType:n,projectColors:o,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})}):null;return jsxs(Fragment,{children:[p,u]})})()]})}function AttributesEditor({node:e,onChange:t}){if(useLogRender("AttributesEditor"),!e||isNodeString(e))return null;const i=e,a=useNode(i),r=useRenderStore(e=>e.appConfig),n=useMemo(()=>{const e=new Set;return[r?.screenStyle?.light,r?.screenStyle?.dark].filter(Boolean).forEach(t=>{["backgroundColor","color","seperatorColor"].forEach(i=>{const a=t?.[i];"string"==typeof a&&a.trim()&&e.add(a.trim())})}),Array.from(e)},[r]),o=getAttributeSchema(a?.type)??{},s=getAttributeMeta(a?.type),l=a?.attributes??{},c=useMemo(()=>"View"===a?.type?l:void 0,[l,a?.type]),d=useMemo(()=>({flexDirection:l?.flexDirection,alignItems:l?.alignItems,justifyContent:l?.justifyContent}),[l?.flexDirection,l?.alignItems,l?.justifyContent]),p=useMemo(()=>Object.entries(o).filter(([,e])=>"string"!=typeof e||"never"!==e),[o]),u=useMemo(()=>a?.type?getPatternByType(a.type)?.meta:void 0,[a?.type]),h=u?.label??a?.type??"Component",g=u?.description,m=jsxs("div",{className:"attributes-editor__component-meta",children:[jsx("p",{className:"attributes-editor__component-title",children:h}),g?jsx("p",{className:"attributes-editor__component-description",children:g}):null]}),{grouped:f,specialGroups:y}=useMemo(()=>{const e={style:[],container:[],other:[]},t={},i=e=>s?.[e]?.sort??Number.MAX_SAFE_INTEGER,a=(e,t)=>{const a=i(e.name)-i(t.name);return 0!==a?a:e.name.localeCompare(t.name)};return p.forEach(([i,a])=>{const r=s?.[i],n=r?.specialCategory;if("string"==typeof n){const e=n.trim();if(e)return t[e]||(t[e]=[]),void t[e].push({name:i,type:a})}const o=r?.category;e["style"===o?"style":"container"===o?"container":"other"].push({name:i,type:a})}),Object.values(e).forEach(e=>{e.sort(a)}),Object.values(t).forEach(e=>{e.sort(a)}),{grouped:e,specialGroups:t}},[s,p]),b=useMemo(()=>{const e={style:[],container:[],other:[]},t=(e,t)=>{const i=(e.meta?.sort??Number.MAX_SAFE_INTEGER)-(t.meta?.sort??Number.MAX_SAFE_INTEGER);return 0!==i?i:e.key.localeCompare(t.key)};return Object.entries(y).forEach(([t,i])=>{if(!i.length)return;const a=u?.specialCategories?.[t];e["style"===a?.category?"style":"container"===a?.category?"container":"other"].push({key:t,entries:i,meta:a})}),Object.keys(e).forEach(i=>{e[i].sort(t)}),e},[u?.specialCategories,y]),v=useCallback((e,a)=>{const r={...i,attributes:{...i?.attributes??{},[e]:a}};t(r)},[i,t]),_=useCallback(({key:e,entries:t,meta:i})=>{if("size"===e){const r=i?.label&&i.label.trim().length>0?i.label:e.charAt(0).toUpperCase()+e.slice(1),o=i?.description;return jsxs("section",{className:"special-category-section",children:[jsx("div",{className:"special-category-section__header",children:jsx("p",{className:"special-category-section__title",children:r})}),o?jsx("p",{className:"special-category-section__description",children:o}):null,jsx("div",{className:"attributes-editor__size-grid",children:t.map(({name:e,type:t})=>{const i=s?.[e]?.label??e,r=s?.[e]?.description,o=s?.[e]?.preferedScale,p=l[e],u=isBooleanFieldType(t),h=["attributes-editor__field-wrapper",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:r,children:jsxs("div",{className:`${h} attributes-editor__size-grid-item`,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:i}),jsx(Field,{name:e,type:t,value:p,onChange:t=>v(e,t),componentType:a?.type,projectColors:n,layoutContext:d,viewAttributes:c,label:u?i:void 0,preferredScale:o})]})},e)})})]},e)}return jsx(SpecialCategorySection,{category:e,entries:t,attributeMeta:s,attributes:l,onAttributeChange:v,componentType:a?.type,projectColors:n,layoutContext:d,viewAttributes:c,meta:i},e)},[s,l,a?.type,v,d,n,c]),x=useMemo(()=>[{id:"container",label:"Container",entries:f.container},{id:"style",label:"Styles",entries:f.style},{id:"other",label:"Others",entries:f.other}],[f]),S=useMemo(()=>{const e={style:{baseCount:0,specialCount:0},container:{baseCount:0,specialCount:0},other:{baseCount:0,specialCount:0}};return x.forEach(t=>{e[t.id].baseCount=t.entries.length}),Object.keys(b).forEach(t=>{e[t].specialCount=b[t].reduce((e,t)=>e+t.entries.length,0)}),e},[b,x]),C=useMemo(()=>x.find(e=>{const t=S[e.id];return t.baseCount+t.specialCount>0})?.id??"other",[S,x]),[k,w]=useState(C);useEffect(()=>{w(e=>{const t=S[e];return t&&t.baseCount+t.specialCount>0?e:C})},[C,S]);const E=x.find(e=>e.id===k)?.entries??x.find(e=>e.id===C)?.entries??[],P=b[k]??[],T=jsx("div",{className:"attributes-editor__tabs",children:x.map(e=>{const t=e.id===k,i=S[e.id],a=i.baseCount+i.specialCount,r=0===a,n=["attributes-editor__tab-button",t?"attributes-editor__tab-button--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",onClick:()=>!r&&w(e.id),disabled:r,className:n,children:[e.label,a>0?` (${a})`:""]},e.id)})});return 0===p.length?jsxs("div",{className:"attributes-editor",children:[m,T,P.map(_),jsx("div",{className:"attributes-editor__empty-state",children:"No editable attributes"})]}):jsxs("div",{className:"attributes-editor",children:[m,T,P.map(_),E.map(({name:e,type:t})=>{const i=s?.[e]?.label??e,r=s?.[e]?.description,o=s?.[e]?.preferedScale,p=isBooleanFieldType(t),u=["attributes-editor__field-wrapper",p?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:r,children:jsxs("div",{className:u,children:[p?null:jsx("p",{className:"attributes-editor__field-label",children:i}),jsx(Field,{name:e,type:t,value:l?.[e],onChange:t=>v(e,t),componentType:a?.type,projectColors:n,layoutContext:d,viewAttributes:c,label:p?i:void 0,preferredScale:o})]})},e)})]})}var AttributesEditor$1=React__default.memo(AttributesEditor),name$8="hello-world",version$8="1.0.0",appConfig$8={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$8={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"},children:[{type:"text",children:"Hello, world!",attributes:{color:"#111827",fontSize:24,fontWeight:"600"}},{type:"text",children:"Welcome to react-native-builder",attributes:{color:"#6B7280",fontSize:14,fontWeight:"400"}}]},simple1={name:name$8,version:version$8,appConfig:appConfig$8,data:data$8},name$7="hello-world-2-advanced",version$7="1.0.0",appConfig$7={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$7={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"},children:[{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12},children:[{type:"text",children:"Dashboard",attributes:{color:"#FFFFFF",fontSize:20,fontWeight:"600"}},{type:"view",attributes:{flexDirection:"row",gap:8},children:[{type:"text",children:"Help",attributes:{color:"#D1D5DB",fontSize:14}},{type:"text",children:"Profile",attributes:{color:"#D1D5DB",fontSize:14}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",width:358,height:160,borderRadius:12,resizeMode:"cover"},children:null},{type:"view",attributes:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12},children:[{type:"text",children:"Welcome back!",attributes:{color:"#111827",fontSize:18,fontWeight:"600"}},{type:"text",children:"Here's what's new today.",attributes:{color:"#6B7280",fontSize:14}}]},{type:"view",attributes:{flexDirection:"column",gap:12},children:[{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 1",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"Due today",attributes:{color:"#059669",fontSize:12,fontWeight:"600"}}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 2",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"2 days left",attributes:{color:"#D97706",fontSize:12,fontWeight:"600"}}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8},children:[{type:"text",children:"Task 3",attributes:{color:"#111827",fontSize:16,fontWeight:"500"}},{type:"text",children:"Completed",attributes:{color:"#6B7280",fontSize:12,fontWeight:"600"}}]}]},{type:"view",attributes:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12},children:[{type:"text",children:"Home",attributes:{color:"#FFFFFF",fontSize:14}},{type:"text",children:"Search",attributes:{color:"#9CA3AF",fontSize:14}},{type:"text",children:"Settings",attributes:{color:"#9CA3AF",fontSize:14}}]}]},simple2={name:name$7,version:version$7,appConfig:appConfig$7,data:data$7},name$6="carousel-sample",version$6="1.0.0",appConfig$6={theme:"light"},data$6={type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0},children:[{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#f5f5f5",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Welcome to our app!"}}},{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#e8f5e9",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Discover amazing features"}}},{type:"carouselItem",attributes:{style:{flex:"0 0 100%",minWidth:0}},children:{type:"view",attributes:{style:{padding:"20px",backgroundColor:"#e3f2fd",borderRadius:"8px",textAlign:"center"}},children:{type:"text",children:"Get started now!"}}}]},{type:"carouselDots",attributes:{dotType:"expanding_dot"}},{type:"carouselButtons",attributes:{buttonType:["previous_button","next_button","skip_button"],skipNumber:3}}]},carouselSample={name:name$6,version:version$6,appConfig:appConfig$6,data:data$6},name$5="vpn-onboard-1 (legacy)",version$5="0.0.0",appConfig$5={theme:"dark",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"Secure your connection","onboard.title.two-page":"Access content worldwide","onboard.title.three-page":"Fast and reliable","onboard.title.four-page":"Stay notified and safe","onboard.subtitle.one-page":"Encrypt your traffic and protect your privacy on public Wi‑Fi.","onboard.subtitle.two-page":"Connect to high‑speed servers in many countries with one tap.","onboard.subtitle.three-page":"Auto‑connect to the best server for speed and stability.","onboard.subtitle.four-page":"Enable notifications for connection status and security tips.","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy Policy","view.onboarding.btnTerms":"Terms of Service"},ar:{"onboard.title.one-page":"أمّن اتصالك","onboard.title.two-page":"وصول إلى المحتوى حول العالم","onboard.title.three-page":"سرعة واعتمادية","onboard.title.four-page":"إشعارات وحماية دائمة","onboard.subtitle.one-page":"قم بتشفير حركة المرور وحماية خصوصيتك على شبكات Wi‑Fi العامة.","onboard.subtitle.two-page":"اتصل بخوادم عالية السرعة في بلدان متعددة بضغطة واحدة.","onboard.subtitle.three-page":"يتصل التطبيق تلقائياً بأفضل خادم لسرعة وثبات أعلى.","onboard.subtitle.four-page":"فعّل الإشعارات لمعرفة حالة الاتصال والحصول على نصائح الأمان.","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة، فإنك توافق على","view.onboarding.btnPrivacy":"سياسة الخصوصية","view.onboarding.btnTerms":"شروط الخدمة"}},defaultLanguage:"en"},data$5={name:"Dark TextCall Onboard",key:"app_onboard",theme:"dark",order:1,data:{layout:"onboard-layout",key:"c92tR8J5wbTb3fav",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cfVlTs4XoBH6eHhy",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"c9BoiuHQQ8yWnnrH",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:"#007AFF"}}],styles:[]}},{layout:"footer-layout",key:"c1yg0ajCz15VwbXO",attributes:{texts:[{layout:"Text",key:"cUEOEGlJHu98Bm4M",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"clmIqcwqLbpf5lIC",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#1778F2",page:"privacy"}},{layout:"LinkedWords",key:"cR2iFjXZv6aKSipt",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#1778F2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"ctJKE0JpoyY2U2py",attributes:{key:"app_onboard-page1",components:[{layout:"title-layout",key:"czW0y11EJ3Gh2zzu",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cFtkJ7cGjlbh0Onm",attributes:{styles:[{layout:"Styles",key:"cRfjSLASNf4EfmRk",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"ccaPDeW3TvadGknh",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png"}},{layout:"subtitle-layout",key:"cS8AJFtYl83g6N7l",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cfxys3dqXXQIoWib",attributes:{styles:[{layout:"Styles",key:"cdqzVzWecbtQHHOZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cADNBYmKZhuqHDe3",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cvgeWjSVK9714zE4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cYbS4tQuDbqRjJP6",attributes:{events:[{layout:"Navigate",key:"cnwVlRVwR2Oa37Wa",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cO7EfoP6WnwCbZFN",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cLDTXbDjepmRilZP",attributes:{events:[{layout:"Navigate",key:"cVe34D6lvpt6jfkc",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cJ5P9VObBmpapdIz",attributes:{key:"app_onboard-page2",components:[{layout:"title-layout",key:"cWaHDeqd8N5LpAdr",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"c5n7fUy2koZD1iY5",attributes:{styles:[{layout:"Styles",key:"c7uK89glQz4MHrZc",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"czvCm7FXp4sQrlBi",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png"}},{layout:"subtitle-layout",key:"cJO33EgsbvxZVV57",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cKZLIPtywsfi5Mbz",attributes:{styles:[{layout:"Styles",key:"cce8Yv695FQgSOIH",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cR43NhA7k4XN4bFU",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cZbvXpcCDBzCy4xq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cOweHSx9FF1rKmXE",attributes:{events:[{layout:"Permission",key:"cfnK7ww1nyzVLquV",attributes:{permission:"att"}},{layout:"Navigate",key:"cdQXhjSGC97aDV5Q",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cP3ZMgA0DgYBMTjH",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5ud1yXzSHQOl99m",attributes:{events:[{layout:"Permission",key:"caWvIjHlpzkWsSkU",attributes:{permission:"att"}},{layout:"Navigate",key:"cqCP16bRc8OrVYnj",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cxNW3BfLJV7m1Rwb",attributes:{key:"app_onboard-page3",components:[{layout:"title-layout",key:"c4jWJqatyNrpRDv5",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cyxWxkO4H6GcLGpV",attributes:{styles:[{layout:"Styles",key:"c2EQHxoKIHqE6usb",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"cQPrCUhAFzzvZvFL",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png"}},{layout:"subtitle-layout",key:"c845kgEFTytoeb5n",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c8I866TChSrcTxLA",attributes:{styles:[{layout:"Styles",key:"cPi4CsGpMpnyl1Qo",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cHRet3F1pMbLLv4e",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cPjaITcYuN3jYXaz",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cwHy3RdNIAhrdyk9",attributes:{events:[{layout:"Navigate",key:"c9tQ5JwLNEl4m6iE",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"calWhCnS7bVqDLSm",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5WDaaMMyzF6wbMw",attributes:{events:[{layout:"Permission",key:"czWoimoKrntcpPMu",attributes:{permission:"rating"}},{layout:"Navigate",key:"csga6VsmtRL4dJoH",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"c6OPQRoj7nIYq8qP",attributes:{key:"app_onboard-page4",components:[{layout:"title-layout",key:"cY7hE2QfCFUpAvIr",attributes:{title_localization_key:"onboard.title.four-page",title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"ch0psI5S3gY93lkS",attributes:{styles:[{layout:"Styles",key:"ci8SBK0k6Ox0cAY4",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}],number_of_lines:"2",adapty_font_size:"1",adaptive_font_size:!1}},{layout:"image-layout",key:"cyzRYhHdmYpSZKWz",attributes:{is_bg_image:!1,height:"350",styles:[],android_height:"350",ios_height:"350",image:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png"}},{layout:"subtitle-layout",key:"cEtGSW5s89pVPO3p",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c7q1e8klEqvuTib2",attributes:{styles:[{layout:"Styles",key:"cRoSg4908XkN9tLr",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cFOXUx3qf7wvRQPK",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cILIurDiN8C6Nk9t",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cPkTX9lI025TuA2d",attributes:{events:[{layout:"Permission",key:"cenFPRHcA87TmbkC",attributes:{permission:"notification"}},{layout:"Navigate",key:"c0ZQIOWZ81XjaWmA",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}}]}}},vpnOnboard1={name:name$5,version:version$5,appConfig:appConfig$5,data:data$5},name$4="vpn-onboard-2 (legacy)",version$4="0.0.0",appConfig$4={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.two-page":"Two Page","onboard.title.three-page":"Three Page","onboard.title.four-page":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.two-page":" العربية","onboard.title.three-page":" العربية","onboard.title.four-page":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.four-page":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$4={name:"Light TextCall Onboard",key:"app_onboard",theme:"light",order:3,data:{layout:"onboard-layout",key:"ckcw0WXRY8sNR2SF",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cGCRrFJjSzYghZ4Q",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"cDpkxR1j6ooHGrU9",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:"#007AFF"}}],styles:[]}},{layout:"footer-layout",key:"cqkMhW1f0q0tDK1r",attributes:{texts:[{layout:"Text",key:"cAxC6cU3U9i1jxTq",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"cLISLCL0ybiWxpze",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#1778F2",page:"privacy"}},{layout:"LinkedWords",key:"ccsI2OTvUzQJLo6g",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#1778F2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cFxlMJ99IXCFJfba",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"cEgDUYy0F2959VoY",attributes:{title_localization_key:"onboard.title.one-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cIflKK6zz4926DQA",attributes:{styles:[{layout:"Styles",key:"cXGRCly7sTM1wPXp",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cd3LFLBcjBfEz90D",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png"}},{layout:"subtitle-layout",key:"cumoZTMcp3Ewdgtq",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"c8iENqCAEKDzSNEq",attributes:{styles:[{layout:"Styles",key:"cRjElXN8FhsCbwbt",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cQgWwz7oN0lXiGnV",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cmbJYRjfh25VI7pA",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8fR08Jp0GWJtW4U",attributes:{events:[{layout:"Navigate",key:"cGFaKCTZ6RkGAKw7",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:"line-animation",animation_color:"#FFFFFF"}},{layout:"button-layout",key:"cBx6we1fBvBHNCdM",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cqC2H6ygkjzKj1TW",attributes:{events:[{layout:"Navigate",key:"cMmDIAW9MAUNcPQA",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:"simple-animation",animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cgh6jEnSF0m2MrAE",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cuIDsIKqy8wnkxWO",attributes:{title_localization_key:"onboard.title.two-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c1wm3B4Avb8ewdwB",attributes:{styles:[{layout:"Styles",key:"cS5KY2wak36qZ7Po",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"c0uaSOOOFSldTX3O",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png"}},{layout:"subtitle-layout",key:"cJUPKqGxDQLJhF3r",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cjgSBQCcdIHlgqAL",attributes:{styles:[{layout:"Styles",key:"cRmpdFLYvNtRBrjZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"chGpEveV4xybUQje",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cdjnq57fneiIxBd2",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8XixwmhiXnhSWJN",attributes:{events:[{layout:"Permission",key:"cBsbZMsU90ojXQqO",attributes:{permission:"att"}},{layout:"Navigate",key:"c3ByPHQlA5V0EDfL",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cQEeZInlfh7u3vXB",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cmu069qysyrgassB",attributes:{events:[{layout:"Permission",key:"c4hcnecQIMrouWCy",attributes:{permission:"att"}},{layout:"Navigate",key:"cxHcZeIJBXHmR779",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cSvSxn9VJuC5Ld7i",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"cKrfdMzfUxGdYhst",attributes:{title_localization_key:"onboard.title.three-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cO0uTIgytvIPus6O",attributes:{styles:[{layout:"Styles",key:"ccUpxb1n3yNqZig0",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cW7eKTK8kwrmHPZF",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png"}},{layout:"subtitle-layout",key:"cKeCJntAd8La4kt6",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cl8QMTgTLyRZEo5d",attributes:{styles:[{layout:"Styles",key:"c7IfOTlsraVDcxsv",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cVnKizCpTO9oedvX",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cQh6Yr0AySTv7JTJ",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cXBXIWhYO8sMiAea",attributes:{events:[{layout:"Navigate",key:"ckR5hy3gdEX9Tbcp",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"caD93TUBvqM9stiK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cUWsk6ZaobgtjygM",attributes:{events:[{layout:"Permission",key:"cD9EfBXK9ojHo5K3",attributes:{permission:"rating"}},{layout:"Navigate",key:"cvdgLEu69Or72lJh",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cmx3sT3YRgACNoBv",attributes:{key:"app_onboard-page4",min_android_version:"12",components:[{layout:"title-layout",key:"cLijTCmxd6N2beqg",attributes:{title_localization_key:"onboard.title.four-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c9E18gzzew8i3c0i",attributes:{styles:[{layout:"Styles",key:"cEgw4X1DFG20kX7Y",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cZoslaVC3xb7mcWc",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png"}},{layout:"subtitle-layout",key:"cdCwD5nJ2DlDO5KY",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cNc4qj0KNwAXFENj",attributes:{styles:[{layout:"Styles",key:"c2GDBOndoaWxghsj",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cAOcd1hyFKZNzosk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cxFfSJNZcJqPavkh",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cgtBZJvdDVlzDAIE",attributes:{events:[{layout:"Permission",key:"cO5VtdbSc4xVTEUo",attributes:{permission:"notification"}},{layout:"Navigate",key:"cTEG49LslKtvx85s",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard2={name:name$4,version:version$4,appConfig:appConfig$4,data:data$4},name$3="vpn-onboard-3 (legacy)",version$3="0.0.0",appConfig$3={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$3={name:"Light TextCall Onboard - 2",key:"app_onboard_ab_classic",theme:"light",order:7,data:{layout:"onboard-layout",key:"ckcw0WXRY8sNR2SF",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cGCRrFJjSzYghZ4Q",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"cgk7eew2LNqwIfdl",attributes:{inactive_dot_opacity:null,active_dot_color:null,expanding_dot_width:null,dot_style:null,container_style:null}}],styles:[]}},{layout:"footer-layout",key:"cqkMhW1f0q0tDK1r",attributes:{texts:[{layout:"Text",key:"cAxC6cU3U9i1jxTq",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"cLISLCL0ybiWxpze",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#81838F",page:"privacy"}},{layout:"LinkedWords",key:"ccsI2OTvUzQJLo6g",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#81838F",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cFxlMJ99IXCFJfba",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"cEgDUYy0F2959VoY",attributes:{title_localization_key:"onboard.title.one-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cIflKK6zz4926DQA",attributes:{styles:[{layout:"Styles",key:"cXGRCly7sTM1wPXp",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cd3LFLBcjBfEz90D",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg"}},{layout:"subtitle-layout",key:"cumoZTMcp3Ewdgtq",attributes:{subtitle_localization_key:"onboard.subtitle.one-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"c8iENqCAEKDzSNEq",attributes:{styles:[{layout:"Styles",key:"cRjElXN8FhsCbwbt",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cQgWwz7oN0lXiGnV",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cmbJYRjfh25VI7pA",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8fR08Jp0GWJtW4U",attributes:{events:[{layout:"Navigate",key:"cGFaKCTZ6RkGAKw7",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cBx6we1fBvBHNCdM",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cqC2H6ygkjzKj1TW",attributes:{events:[{layout:"Navigate",key:"cMmDIAW9MAUNcPQA",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cgh6jEnSF0m2MrAE",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cuIDsIKqy8wnkxWO",attributes:{title_localization_key:"onboard.title.two-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c1wm3B4Avb8ewdwB",attributes:{styles:[{layout:"Styles",key:"cS5KY2wak36qZ7Po",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"c0uaSOOOFSldTX3O",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cJUPKqGxDQLJhF3r",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cjgSBQCcdIHlgqAL",attributes:{styles:[{layout:"Styles",key:"cRmpdFLYvNtRBrjZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"chGpEveV4xybUQje",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cdjnq57fneiIxBd2",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"c8XixwmhiXnhSWJN",attributes:{events:[{layout:"Permission",key:"cBsbZMsU90ojXQqO",attributes:{permission:"att"}},{layout:"Navigate",key:"c3ByPHQlA5V0EDfL",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cQEeZInlfh7u3vXB",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cmu069qysyrgassB",attributes:{events:[{layout:"Permission",key:"c4hcnecQIMrouWCy",attributes:{permission:"att"}},{layout:"Navigate",key:"cxHcZeIJBXHmR779",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cSvSxn9VJuC5Ld7i",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"cKrfdMzfUxGdYhst",attributes:{title_localization_key:"onboard.title.three-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"cO0uTIgytvIPus6O",attributes:{styles:[{layout:"Styles",key:"ccUpxb1n3yNqZig0",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cW7eKTK8kwrmHPZF",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cKeCJntAd8La4kt6",attributes:{subtitle_localization_key:"onboard.subtitle.three-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cl8QMTgTLyRZEo5d",attributes:{styles:[{layout:"Styles",key:"c7IfOTlsraVDcxsv",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cVnKizCpTO9oedvX",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cQh6Yr0AySTv7JTJ",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#81838F",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cXBXIWhYO8sMiAea",attributes:{events:[{layout:"Navigate",key:"ckR5hy3gdEX9Tbcp",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"caD93TUBvqM9stiK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cUWsk6ZaobgtjygM",attributes:{events:[{layout:"Permission",key:"cAD0IWOPG8glmDtL",attributes:{permission:"rating"}},{layout:"Navigate",key:"cvdgLEu69Or72lJh",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cmx3sT3YRgACNoBv",attributes:{key:"app_onboard-page4",min_android_version:"12",components:[{layout:"title-layout",key:"cLijTCmxd6N2beqg",attributes:{title_localization_key:"onboard.title.four-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#12131A",coloredwords:[],styles:[{layout:"style-layout",key:"c9E18gzzew8i3c0i",attributes:{styles:[{layout:"Styles",key:"cEgw4X1DFG20kX7Y",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cZoslaVC3xb7mcWc",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cdCwD5nJ2DlDO5KY",attributes:{subtitle_localization_key:"onboard.subtitle.four-page2",subtitle_color:"#44454D",subtitle_font:null,styles:[{layout:"style-layout",key:"cNc4qj0KNwAXFENj",attributes:{styles:[{layout:"Styles",key:"c2GDBOndoaWxghsj",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cAOcd1hyFKZNzosk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cxFfSJNZcJqPavkh",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cgtBZJvdDVlzDAIE",attributes:{events:[{layout:"Permission",key:"cO5VtdbSc4xVTEUo",attributes:{permission:"notification"}},{layout:"Navigate",key:"cTEG49LslKtvx85s",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard3={name:name$3,version:version$3,appConfig:appConfig$3,data:data$3},name$2="vpn-onboard-4 (legacy)",version$2="0.0.0",type$2="nova",appConfig$2={theme:"dark",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$2={name:"Dark TextCall Onboard - 2",key:"app_onboard_ab_classic",theme:"dark",order:8,data:{layout:"onboard-layout",key:"c92tR8J5wbTb3fav",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cfVlTs4XoBH6eHhy",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"ca08ia4pBmSgWK9o",attributes:{inactive_dot_opacity:null,active_dot_color:null,expanding_dot_width:null,dot_style:null,container_style:null}}],styles:[]}},{layout:"footer-layout",key:"c1yg0ajCz15VwbXO",attributes:{texts:[{layout:"Text",key:"cUEOEGlJHu98Bm4M",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"clmIqcwqLbpf5lIC",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#81838F",page:"privacy"}},{layout:"LinkedWords",key:"cR2iFjXZv6aKSipt",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#81838F",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"ctJKE0JpoyY2U2py",attributes:{key:"app_onboard-page1",min_android_version:null,components:[{layout:"title-layout",key:"czW0y11EJ3Gh2zzu",attributes:{title_localization_key:"onboard.title.one-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cFtkJ7cGjlbh0Onm",attributes:{styles:[{layout:"Styles",key:"cRfjSLASNf4EfmRk",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"ccaPDeW3TvadGknh",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[],image:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg"}},{layout:"subtitle-layout",key:"cS8AJFtYl83g6N7l",attributes:{subtitle_localization_key:"onboard.subtitle.one-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cfxys3dqXXQIoWib",attributes:{styles:[{layout:"Styles",key:"cdqzVzWecbtQHHOZ",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cADNBYmKZhuqHDe3",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cvgeWjSVK9714zE4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cYbS4tQuDbqRjJP6",attributes:{events:[{layout:"Navigate",key:"cnwVlRVwR2Oa37Wa",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cO7EfoP6WnwCbZFN",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cLDTXbDjepmRilZP",attributes:{events:[{layout:"Navigate",key:"cVe34D6lvpt6jfkc",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cJ5P9VObBmpapdIz",attributes:{key:"app_onboard-page2",min_android_version:null,components:[{layout:"title-layout",key:"cWaHDeqd8N5LpAdr",attributes:{title_localization_key:"onboard.title.two-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"c5n7fUy2koZD1iY5",attributes:{styles:[{layout:"Styles",key:"c7uK89glQz4MHrZc",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"czvCm7FXp4sQrlBi",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cJO33EgsbvxZVV57",attributes:{subtitle_localization_key:"onboard.subtitle.two-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"cKZLIPtywsfi5Mbz",attributes:{styles:[{layout:"Styles",key:"cce8Yv695FQgSOIH",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cR43NhA7k4XN4bFU",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cZbvXpcCDBzCy4xq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cOweHSx9FF1rKmXE",attributes:{events:[{layout:"Permission",key:"cfnK7ww1nyzVLquV",attributes:{permission:"att"}},{layout:"Navigate",key:"cdQXhjSGC97aDV5Q",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cP3ZMgA0DgYBMTjH",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5ud1yXzSHQOl99m",attributes:{events:[{layout:"Permission",key:"caWvIjHlpzkWsSkU",attributes:{permission:"att"}},{layout:"Navigate",key:"cqCP16bRc8OrVYnj",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cxNW3BfLJV7m1Rwb",attributes:{key:"app_onboard-page3",min_android_version:null,components:[{layout:"title-layout",key:"c4jWJqatyNrpRDv5",attributes:{title_localization_key:"onboard.title.three-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"cyxWxkO4H6GcLGpV",attributes:{styles:[{layout:"Styles",key:"c2EQHxoKIHqE6usb",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cQPrCUhAFzzvZvFL",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"c845kgEFTytoeb5n",attributes:{subtitle_localization_key:"onboard.subtitle.three-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c8I866TChSrcTxLA",attributes:{styles:[{layout:"Styles",key:"cPi4CsGpMpnyl1Qo",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cHRet3F1pMbLLv4e",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cPjaITcYuN3jYXaz",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#A9AAAC",is_transparant_bg:!1,button_background_color:"#ffffff00",actions:[{layout:"action-layout",key:"cwHy3RdNIAhrdyk9",attributes:{events:[{layout:"Navigate",key:"c9tQ5JwLNEl4m6iE",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"calWhCnS7bVqDLSm",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c5WDaaMMyzF6wbMw",attributes:{events:[{layout:"Permission",key:"cVbu3bzJMfCd2WQY",attributes:{permission:"rating"}},{layout:"Navigate",key:"csga6VsmtRL4dJoH",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"c6OPQRoj7nIYq8qP",attributes:{key:"app_onboard-page4",min_android_version:null,components:[{layout:"title-layout",key:"cY7hE2QfCFUpAvIr",attributes:{title_localization_key:"onboard.title.four-page2",number_of_lines:"2",adaptive_font_size:!1,title_color:"#FDFDFD",coloredwords:[],styles:[{layout:"style-layout",key:"ch0psI5S3gY93lkS",attributes:{styles:[{layout:"Styles",key:"ci8SBK0k6Ox0cAY4",attributes:{type:"textStyle",style:{textAlign:"center",marginTop:40}}}]}}]}},{layout:"image-layout",key:"cyzRYhHdmYpSZKWz",attributes:{is_bg_image:!1,height:"350",android_height:"350",ios_height:"350",styles:[]}},{layout:"subtitle-layout",key:"cEtGSW5s89pVPO3p",attributes:{subtitle_localization_key:"onboard.subtitle.four-page2",subtitle_color:"#C7C7C7",subtitle_font:null,styles:[{layout:"style-layout",key:"c7q1e8klEqvuTib2",attributes:{styles:[{layout:"Styles",key:"cRoSg4908XkN9tLr",attributes:{type:"textStyle",style:{textAlign:"center",fontSize:16}}}]}}]}},{layout:"Buttons",key:"cFOXUx3qf7wvRQPK",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cILIurDiN8C6Nk9t",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#FFFFFF",button_background_color:"#0066FF",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cPkTX9lI025TuA2d",attributes:{events:[{layout:"Permission",key:"cenFPRHcA87TmbkC",attributes:{permission:"notification"}},{layout:"Navigate",key:"c0ZQIOWZ81XjaWmA",attributes:{next_page_key:"home",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}]}}},vpnOnboard4={name:name$2,version:version$2,type:type$2,appConfig:appConfig$2,data:data$2},name$1="vpn-onboard-5 (legacy)",version$1="0.0.0",type$1="nova",appConfig$1={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data$1={name:"app_onboard",key:"app_onboard",theme:"all",order:2,data:{layout:"onboard-layout",key:"cJVVSS7q9Qe1trnb",attributes:{general_components:[{layout:"dots-layout",key:"cdNahru8m9BDyVr9",attributes:{position:"before_buttons",dots_type:null,dot:[{layout:"expanding_dot",key:"ctWoX6jkgKy1nNGQ",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:null}}],styles:[]}},{layout:"footer-layout",key:"cgOl0PVI66a51Xr3",attributes:{texts:[{layout:"Text",key:"cAqUfPg1uA4PjtmV",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#A2A4B1",width:null,linkedwords:[{layout:"LinkedWords",key:"c0wJnbvQu8vLB0BJ",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#0450E2",page:"privacy"}},{layout:"LinkedWords",key:"cyoIya4E71u4OHWq",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#0450E2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cQcJZFJji41pTo1Q",attributes:{key:"app_onboard-page1",components:[{layout:"image-layout",key:"cXoQJuJ7cxH4s64I",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"c8qXZHfKYcivItNT",attributes:{styles:[{layout:"Styles",key:"ckUXExyauqNBUAwB",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png"}},{layout:"title-layout",key:"cDhqeMQJnHwrKDWx",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNXYD8CPZaJoOKjR",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cWgBUJIek4XF9XfH",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cG54WG2pH8LVehkt",attributes:{button_text_localization_key:"onboard.skip.one-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cxo62SYr15CFXzWj",attributes:{events:[{layout:"Navigate",key:"cLhVLu0pR5E3OuHk",attributes:{next_page_key:"app_onboard-page4","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],width:"50",flex:"1",animation:null,animation_color:null}},{layout:"button-layout",key:"c8r6biKAKhGKBZXn",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c7fcavpy1HpWKAHU",attributes:{events:[{layout:"Navigate",key:"cEgzPBOiNNrbshp5",attributes:{next_page_key:"app_onboard-page2","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"crIFXHKvOoOdLFbc",attributes:{key:"app_onboard-page2",components:[{layout:"image-layout",key:"crGN7ZD9Al0KDbyO",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cw0P5mczWuONhEbg",attributes:{styles:[{layout:"Styles",key:"cHzPzMduoxMt2IY1",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4"}},{layout:"title-layout",key:"cSlHcp6WVRGdj233",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ciJuUH1g7kHrcZDq",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cSDr8RbSvsWaHgVS",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cl9p09wdxNez5TmI",attributes:{button_text_localization_key:"onboard.skip.two-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cOARcdUyemgWucuS",attributes:{events:[{layout:"Navigate",key:"cdF9gJjTW63M4S3c",attributes:{next_page_key:"app_onboard-page4","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],width:"50",flex:"1",animation:null,animation_color:null}},{layout:"button-layout",key:"cC9C4xf7Kwnryduw",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cO0ZNlY08Wa33OUp",attributes:{events:[{layout:"Navigate",key:"cOwrXBiSMDOXAARa",attributes:{next_page_key:"app_onboard-page3","i̇f_allowed_this_permissions":null,"i̇f_not_allowed_this_permissions":null,if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cRcBQOfcmficdPUY",attributes:{key:"app_onboard-page3",components:[{layout:"image-layout",key:"chWqWfotZ42DTHkU",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cOyhSl2d6xD4YBT8",attributes:{styles:[{layout:"Styles",key:"cStijuDpCE47LXF4",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png"}},{layout:"title-layout",key:"cc69aqukeCYi6zuO",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNtG6fvLNACSZliB",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cRNaL0iEMtwOMqVT",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"ceQNn3ve4OdblaEm",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cM9lBEdgv8VzYR0t",attributes:{events:[{layout:"Navigate",key:"cEt0vTfkypQWrkrx",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cFjtaB6BOUV3Ip29",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,width:"50",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cuPFPKGosJNEU49L",attributes:{events:[{layout:"Navigate",key:"c47aYuDXDJXnpdCF",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cvF8znA2sZJvJKV5",attributes:{key:"app_onboard-page4",components:[{layout:"image-layout",key:"cmw7qmHSA52Mttez",attributes:{"is_bg_image?":!1,styles:[{layout:"style-layout",key:"cDnXLpY6QmMXPGhT",attributes:{styles:[{layout:"Styles",key:"cVzDRXhfx5P3NQKQ",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png"}},{layout:"title-layout",key:"cMW4PNcuTdZKSngn",attributes:{title_localization_key:"onboard.title.five-page",title_color:"#080A17",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ccpicN327gsRyFJp",attributes:{subtitle_localization_key:"onboard.subtitle.five-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cdm2DIT7kD4SvwxW",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cDDu4EvIPgtDFSOe",attributes:{flex:"1",button_text_localization_key:"onboard.skip.five-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"ciNwcrOQRS8rUQWX",attributes:{events:[{layout:"Navigate",key:"ceoJdn5Vi8VlKwGB",attributes:{next_page_key:"app_onboard-page6",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cvNQ3BzQKrtWrLaK",attributes:{show_text:!0,button_text_localization_key:"onboard.next.five-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cixURShcsDonDzuS",attributes:{events:[{layout:"Permission",key:"cYiDsu5eOu4VHjTb",attributes:{permission:"GDPR"}},{layout:"Navigate",key:"c424DHuSbxJtA4m8",attributes:{next_page_key:"app_onboard-page6",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cULySX5qq2hxSO5N",attributes:{key:"app_onboard-page6",min_android_version:"12",components:[{layout:"image-layout",key:"cZCzg1jcXG2rXy1b",attributes:{is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",styles:[{layout:"style-layout",key:"ckoRsXLKpMCILG9F",attributes:{styles:[{layout:"Styles",key:"cHURGqbxNgt96chA",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png"}},{layout:"title-layout",key:"cO6wWotYOuJPLDbc",attributes:{title_localization_key:"onboard.title.six-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#080A17",coloredwords:[],styles:[]}},{layout:"subtitle-layout",key:"cDIVj9rl0VIBxbI2",attributes:{subtitle_localization_key:"onboard.subtitle.six-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cxRVdgxRS50IFXeQ",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"ckLBCEjo9LbNbgtq",attributes:{flex:"1",button_text_localization_key:"onboard.skip.five-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#E9EBF9",actions:[{layout:"action-layout",key:"cXZQSRK1d7cHi73U",attributes:{events:[{layout:"Navigate",key:"cINgrHJRYvVyheTR",attributes:{next_page_key:"app_onboard-page5",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"chWb7guVX17iKROt",attributes:{show_text:!0,button_text_localization_key:"onboard.next.five-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cYIevROTAbCVnyyQ",attributes:{events:[{layout:"Permission",key:"cm5mY6ECMFw1WyMB",attributes:{permission:"rating"}},{layout:"Navigate",key:"cQ3RIXG05B7MHlKH",attributes:{next_page_key:"app_onboard-page5",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}},{layout:"simple-onboard-layout",key:"cvwqV44zsCpvLwy7",attributes:{key:"app_onboard-page5",min_android_version:"12",components:[{layout:"image-layout",key:"chRCiye8FT1Cy6SA",attributes:{is_bg_image:!1,height:"400",android_height:"400",ios_height:"400",styles:[{layout:"style-layout",key:"c3b9w6meMhe7XkUE",attributes:{styles:[{layout:"Styles",key:"cPy0O9UunlzDGjHK",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png"}},{layout:"title-layout",key:"chcc2uafpnDHXSD8",attributes:{title_localization_key:"onboard.title.four-page",number_of_lines:"2",adaptive_font_size:!1,title_color:"#080A17",coloredwords:[],styles:[]}},{layout:"subtitle-layout",key:"c0VwHBlerb8RtnWH",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#272737",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"ccaVCvljoCGjS7Rk",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cizDbKCkioVCtGHQ",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",button_text_color:"#ffffff",button_background_color:"#0450E2",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"ck2MWHW68aJnpBxI",attributes:{events:[{layout:"Permission",key:"cSpEVuZ4QYflHoCs",attributes:{permission:"notification"}},{layout:"Navigate",key:"cqEcD9va4vTra00o",attributes:{next_page_key:"subscriptions",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:"home",close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}}]}}]}}],use_safe_area_inset:!0}}},vpnOnboard5={name:name$1,version:version$1,type:type$1,appConfig:appConfig$1,data:data$1},name="vpn-onboard-6 (legacy)",version="0.0.0",type="nova",appConfig={theme:"dark",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},localication:{en:{"onboard.title.one-page":"One Page","onboard.title.one-page2":"One Page","onboard.title.two-page":"Two Page","onboard.title.two-page2":"Two Page","onboard.title.three-page":"Three Page","onboard.title.three-page2":"Three Page","onboard.title.four-page":"Four Page","onboard.title.four-page2":"Four Page","onboard.subtitle.one-page":"One Page","onboard.subtitle.one-page2":"One Page","onboard.subtitle.two-page":"Two Page","onboard.subtitle.two-page2":"Two Page","onboard.subtitle.three-page":"Three Page","onboard.subtitle.three-page2":"Three Page","onboard.subtitle.four-page":"Four Page","onboard.subtitle.four-page2":"Four Page","onboard.next.one-page":"Next","onboard.next.two-page":"Next","onboard.next.three-page":"Next","onboard.skip.one-page":"Skip","onboard.skip.two-page":"Skip","onboard.skip.three-page":"Skip","onboard.allow.four-page":"Allow","view.onboarding.footer.description":"By clicking continue, you will be accepting the Terms of service and privacy policy","view.onboarding.btnPrivacy":"Privacy","view.onboarding.btnTerms":"Terms"},ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}},defaultLanguage:"en"},data={name:"app_onboard1",key:"app_onboard",theme:"dark",order:3,data:{layout:"onboard-layout",key:"cJVVSS7q9Qe1trnb",attributes:{use_safe_area_inset:!0,general_components:[{layout:"dots-layout",key:"cdNahru8m9BDyVr9",attributes:{position:"before_buttons",dots_type:"Dots Type Info",dot:[{layout:"expanding_dot",key:"ctWoX6jkgKy1nNGQ",attributes:{inactive_dot_opacity:null,expanding_dot_width:"20",dot_style:null,container_style:null,active_dot_color:null}}],styles:[]}},{layout:"footer-layout",key:"cgOl0PVI66a51Xr3",attributes:{texts:[{layout:"Text",key:"cAqUfPg1uA4PjtmV",attributes:{text_localization_key:"view.onboarding.footer.description",text_color:"#81838F",width:null,linkedwords:[{layout:"LinkedWords",key:"c0wJnbvQu8vLB0BJ",attributes:{linked_word_localization_key:"view.onboarding.btnPrivacy",linked_word_color:"#0450E2",page:"privacy"}},{layout:"LinkedWords",key:"cyoIya4E71u4OHWq",attributes:{linked_word_localization_key:"view.onboarding.btnTerms",linked_word_color:"#0450E2",page:"terms"}}],styles:[]}}]}}],data:[{layout:"simple-onboard-layout",key:"cQcJZFJji41pTo1Q",attributes:{key:"app_onboard-page1",components:[{layout:"image-layout",key:"cXoQJuJ7cxH4s64I",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"c5j5kKdUlw2FPgpj",attributes:{styles:[{layout:"Styles",key:"c2wx1diAfvoO73UE",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png"}},{layout:"title-layout",key:"cDhqeMQJnHwrKDWx",attributes:{title_localization_key:"onboard.title.one-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNXYD8CPZaJoOKjR",attributes:{subtitle_localization_key:"onboard.subtitle.one-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cWgBUJIek4XF9XfH",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cG54WG2pH8LVehkt",attributes:{flex:"1",button_text_localization_key:"onboard.skip.one-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cxo62SYr15CFXzWj",attributes:{events:[{layout:"Navigate",key:"cLhVLu0pR5E3OuHk",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"c8r6biKAKhGKBZXn",attributes:{show_text:!0,button_text_localization_key:"onboard.next.one-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"c7fcavpy1HpWKAHU",attributes:{events:[{layout:"Navigate",key:"cEgzPBOiNNrbshp5",attributes:{next_page_key:"app_onboard-page2",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"crIFXHKvOoOdLFbc",attributes:{key:"app_onboard-page2",components:[{layout:"image-layout",key:"crGN7ZD9Al0KDbyO",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"ctLDm5bItpLEGj67",attributes:{styles:[{layout:"Styles",key:"cjvTMl0iVyMoSLJX",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png"}},{layout:"title-layout",key:"cSlHcp6WVRGdj233",attributes:{title_localization_key:"onboard.title.two-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ciJuUH1g7kHrcZDq",attributes:{subtitle_localization_key:"onboard.subtitle.two-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cSDr8RbSvsWaHgVS",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"cl9p09wdxNez5TmI",attributes:{flex:"1",button_text_localization_key:"onboard.skip.two-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cOARcdUyemgWucuS",attributes:{events:[{layout:"Navigate",key:"cdF9gJjTW63M4S3c",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cC9C4xf7Kwnryduw",attributes:{show_text:!0,button_text_localization_key:"onboard.next.two-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cO0ZNlY08Wa33OUp",attributes:{events:[{layout:"Navigate",key:"cOwrXBiSMDOXAARa",attributes:{next_page_key:"app_onboard-page3",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cRcBQOfcmficdPUY",attributes:{key:"app_onboard-page3",components:[{layout:"image-layout",key:"chWqWfotZ42DTHkU",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"cjqEEYogrLEzZRtY",attributes:{styles:[{layout:"Styles",key:"c5PHmIfw5M0ncTMb",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png"}},{layout:"title-layout",key:"cc69aqukeCYi6zuO",attributes:{title_localization_key:"onboard.title.three-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"cNtG6fvLNACSZliB",attributes:{subtitle_localization_key:"onboard.subtitle.three-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cRNaL0iEMtwOMqVT",attributes:{buttons_direction:"row",buttons:[{layout:"skip-button-layout",key:"c70LtlMO3Nv6Cgb4",attributes:{flex:"1",button_text_localization_key:"onboard.skip.three-page",button_text_color:"#0450E2",is_transparant_bg:!1,button_background_color:"#161827",actions:[{layout:"action-layout",key:"cmLkX9THQz0n5cmC",attributes:{events:[{layout:"Navigate",key:"cUsGGKCMR6jtd041",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],animation:null,animation_color:null}},{layout:"button-layout",key:"cFjtaB6BOUV3Ip29",attributes:{show_text:!0,button_text_localization_key:"onboard.next.three-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cWnCp8SEvoozyzHt",attributes:{events:[{layout:"Permission",key:"cuBXgAPhZi9KjP9e",attributes:{permission:"rating"}},{layout:"Navigate",key:"cuDh9kCby5zuxxM2",attributes:{next_page_key:"app_onboard-page4",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:null,close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:null}},{layout:"simple-onboard-layout",key:"cvF8znA2sZJvJKV5",attributes:{key:"app_onboard-page4",components:[{layout:"image-layout",key:"cmw7qmHSA52Mttez",attributes:{is_bg_image:!1,height:"400",styles:[{layout:"style-layout",key:"clFXKiPX8Zc5DZa9",attributes:{styles:[{layout:"Styles",key:"cPLa5Mzc2mMNHcVS",attributes:{type:"containerStyle",style:{marginTop:40}}}]}}],android_height:"400",ios_height:"400",image:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png"}},{layout:"title-layout",key:"cMW4PNcuTdZKSngn",attributes:{title_localization_key:"onboard.title.four-page",title_color:"#F4F5FF",coloredwords:[],styles:[],number_of_lines:"2",adaptive_font_size:!1}},{layout:"subtitle-layout",key:"ccpicN327gsRyFJp",attributes:{subtitle_localization_key:"onboard.subtitle.four-page",subtitle_color:"#DBDDEB",subtitle_font:null,styles:[]}},{layout:"Buttons",key:"cdm2DIT7kD4SvwxW",attributes:{buttons_direction:"row",buttons:[{layout:"button-layout",key:"cc4zDTvmHh5AhjTr",attributes:{show_text:!0,button_text_localization_key:"onboard.allow.four-page",is_passive_button:!1,flex:"1",show_icon:!1,icons:[],actions:[{layout:"action-layout",key:"cab9Uvd4nqeUA4Hb",attributes:{events:[{layout:"Permission",key:"cW6WWySokxpYwV9w",attributes:{permission:"notification"}},{layout:"Navigate",key:"cBdaRtFk5Iqo1FGu",attributes:{next_page_key:"subscriptions",if_allowed_this_permissions:null,if_not_allowed_this_permissions:null,navigate_backward:"home",close_button_delay:null}}]}}],styles:[],button_text_color:"#FFFFFF",button_background_color:"#0450E2",animation:null,animation_color:null}}]}}],min_android_version:"12"}}]}}},vpnOnboard6={name:name,version:version,type:type,appConfig:appConfig,data:data};function novaToJson(e){const t=e.data.data?.layout;return console.info("layout",t),"onboard-layout"===t?onboardNovaToJson(e):null}function onboardNovaToJson(e){const t=e?.data?.data?.attributes||e?.data?.attributes||{},i=t?.general_components||[],a=t?.data||[],r=mapDotsFromGeneralComponents(i),n=mapFooterFromGeneralComponents(i),{carouselNode:o,providerLevelButtons:s}=buildCarouselFromPages(a);return{type:"OnboardProvider",isMain:!0,key:e?.data?.data?.key,children:[o,...r?[r]:[],...s.length?s:[],...n?[n]:[]],attributes:{theme:e?.data?.theme,use_safe_area_inset:void 0===t?.use_safe_area_inset||t?.use_safe_area_inset}}}function buildCarouselFromPages(e){const t=e.filter(e=>"simple-onboard-layout"===e?.layout),i=new Map;t.forEach((e,t)=>{const a=e?.attributes?.key;"string"==typeof a&&i.set(a,t)});const a=[];return{carouselNode:{type:"Onboard",children:t.map(e=>buildCarouselItem(e,i,a))},providerLevelButtons:a}}function buildCarouselItem(e,t,i){const a=e?.attributes?.components||[],r=[],n=e?.attributes?.key,o="string"==typeof n&&t.has(n)?t.get(n):void 0;for(const e of a)if("title-layout"===e?.layout){const t=e?.attributes?.title_localization_key||"",i=e?.attributes?.title_color||void 0,{fontSize:a,textAlign:n,marginTop:o,fontWeight:s}=extractTextStyleAttributesFromComponent(e);r.push({type:"OnboardTitle",attributes:i||a||n||o||s?{...i?{color:i}:{},..."number"==typeof a?{fontSize:a}:{},...n?{textAlign:n}:{},..."number"==typeof o?{marginTop:o}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("subtitle-layout"===e?.layout){const t=e?.attributes?.subtitle_localization_key||"",i=e?.attributes?.subtitle_color||void 0,{fontSize:a,textAlign:n,marginTop:o,fontWeight:s}=extractTextStyleAttributesFromComponent(e);r.push({type:"OnboardSubtitle",attributes:i||a||n||o||s?{...i?{color:i}:{},..."number"==typeof a?{fontSize:a}:{},...n?{textAlign:n}:{},..."number"==typeof o?{marginTop:o}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("image-layout"===e?.layout){const t=e?.attributes?.image||e?.attributes?.src||"",i=e?.attributes?.height??e?.attributes?.ios_height??e?.attributes?.android_height,a="string"==typeof i?Number.parseInt(i,10):"number"==typeof i?i:void 0,n=Boolean(e?.attributes?.is_bg_image),o=extractViewStyleAttributesFromComponent(e),s=e?.attributes?.lottie,l=e?.attributes?.video_url;t&&r.push({type:"OnboardImage",attributes:{src:t,...a?{height:a}:{},resizeMode:n?"cover":"contain",..."number"==typeof o.borderRadius?{borderRadius:o.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===e?.layout){const a=e?.attributes?.buttons_direction,r=e?.attributes?.buttons||[],n=[];for(const e of r){const i=e?.attributes||{},a=i?.button_text_localization_key||"",r=i?.button_text_color,o=i?.button_background_color,s=i?.animation,l=i?.animation_color,c=i?.flex?Number(i.flex):void 0,d=i?.actions||[],p=[];for(const e of d){const i=e?.attributes?.events||[];for(const e of i)if("Permission"===e?.layout){const t=e?.attributes?.permission;p.push({type:"Permission",permission:t})}else if("Navigate"===e?.layout){const i=e?.attributes?.next_page_key,a="string"==typeof i&&t.has(i),r=a?null:"string"==typeof i?i:null;p.push({type:"Navigate",navigate_to:r,...a?{targetIndex:t.get(i)}:{}}),a&&t.get(i)}}n.push({type:"OnboardButton",attributes:{labelKey:a,..."string"==typeof r?{button_text_color:r}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof o?{button_background_color:o}:{},..."number"==typeof c?{flex:c}:{},...p.length?{events:p}:{}},children:void 0})}n.length>0&&i.push({type:"OnboardButtons",attributes:{...a?{buttons_direction:a}:{},..."number"==typeof o?{condition:"carousel-index",conditionVariable:o}:{}},children:n})}const s=e?.attributes?.key,l="string"==typeof s&&s||("string"==typeof e?.key?e.key:void 0);return{type:"OnboardItem",...l?{key:l}:{},children:r}}function extractTextStyleAttributesFromComponent(e){const t={},i=e?.attributes?.styles||[];if(!Array.isArray(i)||0===i.length)return t;const a=new Set(["left","center","right","justify"]),r=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const e of i){if("style-layout"!==e?.layout)continue;const i=e?.attributes?.styles||[];if(Array.isArray(i))for(const e of i){if("Styles"!==e?.layout)continue;const i=e?.attributes?.type;if("textStyle"!==i)continue;const n=e?.attributes?.style||{},o=n?.fontSize;if("number"==typeof o&&Number.isFinite(o))t.fontSize=o;else if("string"==typeof o){const e=Number.parseInt(o,10);Number.isFinite(e)&&(t.fontSize=e)}const s=n?.textAlign;"string"==typeof s&&a.has(s)&&(t.textAlign=s);const l=n?.marginTop;if("number"==typeof l&&Number.isFinite(l))t.marginTop=l;else if("string"==typeof l){const e=Number.parseInt(l,10);Number.isFinite(e)&&(t.marginTop=e)}const c=n?.fontWeight;let d;"number"==typeof c&&Number.isFinite(c)?d=String(c):"string"==typeof c&&(d=c),d&&r.has(d)&&(t.fontWeight=d)}}return t}function extractViewStyleAttributesFromComponent(e){const t={},i=e?.attributes?.styles||[];if(!Array.isArray(i)||0===i.length)return t;for(const e of i){if("style-layout"!==e?.layout)continue;const i=e?.attributes?.styles||[];if(Array.isArray(i))for(const e of i){if("Styles"!==e?.layout)continue;const i=e?.attributes?.style||{},a=i?.borderRadius;if("number"==typeof a&&Number.isFinite(a))t.borderRadius=a;else if("string"==typeof a){const e=Number.parseInt(a,10);Number.isFinite(e)&&(t.borderRadius=e)}}}return t}function mapDotsFromGeneralComponents(e){const t=e.find(e=>"dots-layout"===e?.layout);if(!t)return null;const i=t?.attributes?.dot||[],a=i?.[0],r=a?.layout,n=a?.attributes||{},o=e=>{if("number"==typeof e)return e;if("string"==typeof e&&e.trim().length>0){const t=Number(e);return Number.isFinite(t)?t:void 0}},s=o(n?.inactive_dot_opacity),l=o(n?.expanding_dot_width),c="string"==typeof n?.dot_style?n.dot_style:void 0,d="string"==typeof n?.container_style?n.container_style:void 0,p="string"==typeof n?.active_dot_color?n.active_dot_color:void 0,u={};return r&&(u.dotType=r),void 0!==s&&(u.inactive_dot_opacity=s),void 0!==l&&(u.expanding_dot_width=l),c&&(u.dot_style=c),d&&(u.container_style=d),p&&(u.active_dot_color=p),{type:"OnboardDot",attributes:Object.keys(u).length?u:void 0,children:void 0}}function mapFooterFromGeneralComponents(e){const t=e.find(e=>"footer-layout"===e?.layout);if(!t)return null;const i=t?.attributes?.texts||[],a=[];let r,n;for(const e of i)if("Text"===e?.layout){const t=e?.attributes?.text_localization_key||"",i=e?.attributes?.text_color||void 0;r||(r=t),n||"string"!=typeof i||(n=i);const o=e?.attributes?.linkedwords||[];for(const e of o)if("LinkedWords"===e?.layout){const t=e?.attributes?.linked_word_localization_key,i=e?.attributes?.linked_word_color,r=e?.attributes?.page;a.push({text_key:t,color:i,page:r})}}const o={gap:8};r&&(o.textLocalizationKey=r),n&&(o.textColor=n);const s=a[0],l=a[1];return s&&(s.text_key&&(o.linkedWordFirstLocalizationKey=s.text_key),s.color&&(o.linkedWordFirstColor=s.color),s.page&&(o.linkedWordFirstPage=s.page)),l&&(l.text_key&&(o.linkedWordSecondLocalizationKey=l.text_key),l.color&&(o.linkedWordSecondColor=l.color),l.page&&(o.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:o,children:void 0}}function getSamples(){const e=[{...vpnOnboard1,appConfig:{...defaultAppConfig,...vpnOnboard1.appConfig}},{...vpnOnboard2,appConfig:{...defaultAppConfig,...vpnOnboard2.appConfig}},{...vpnOnboard3,appConfig:{...defaultAppConfig,...vpnOnboard3.appConfig}},{...vpnOnboard4,appConfig:{...defaultAppConfig,...vpnOnboard4.appConfig}},{...vpnOnboard5,appConfig:{...defaultAppConfig,...vpnOnboard5.appConfig}},{...vpnOnboard6,appConfig:{...defaultAppConfig,...vpnOnboard6.appConfig}}];return e.forEach(e=>{e.data=novaToJson(e)}),[simple1,simple2,carouselSample,...e]}function getBasicSamples(){return[simple1,simple2,carouselSample]}function getOnboardSamples(){const e=[{...vpnOnboard1,appConfig:{...defaultAppConfig,...vpnOnboard1.appConfig}},{...vpnOnboard2,appConfig:{...defaultAppConfig,...vpnOnboard2.appConfig}},{...vpnOnboard3,appConfig:{...defaultAppConfig,...vpnOnboard3.appConfig}},{...vpnOnboard4,appConfig:{...defaultAppConfig,...vpnOnboard4.appConfig}},{...vpnOnboard5,appConfig:{...defaultAppConfig,...vpnOnboard5.appConfig}},{...vpnOnboard6,appConfig:{...defaultAppConfig,...vpnOnboard6.appConfig}}];return e.forEach(e=>{e.data=novaToJson(e)}),e}function DeviceMockFrame({children:e,appName:t}){useLogRender("DeviceMockFrame");const{appConfig:i,device:a}=useRenderStore(e=>({appConfig:e.appConfig,device:e.device})),r="dark"===i.theme,[n,o,s,l]=a.insets??[0,0,0,0],c=n||("ios"===a.platform?20:24),d=(()=>{switch(a.navigationBarType){case"none":return 0;case"homeIndicator":return s||6;case"gesture":return s||24;case"threeButtons":return s||48;case"tabBar":return s||49;default:return s||0}})(),p=r?"rgb(0, 0, 0)":"rgb(255, 255, 255)",u=r?"rgb(0, 0, 0)":"rgb(255, 255, 255)";return jsx("div",{className:"stage-wrapper",style:{overflow:"auto"},children:jsx("div",{className:"stage",style:{width:a.width,height:a.height,minWidth:a.width,maxWidth:a.width,minHeight:a.height,maxHeight:a.height,overflow:"hidden",position:"relative",padding:4,direction:i.isRtl?"rtl":"ltr",backgroundColor:"dark"===i.theme?i.screenStyle.dark.backgroundColor:i.screenStyle.light.backgroundColor,color:"dark"===i.theme?i.screenStyle.dark.color:i.screenStyle.light.color,display:"flex",flexDirection:"column",borderRadius:a.radius??0},children:jsx(MockOSProvider,{appName:t,statusBarHeight:c,statusBarBackgroundColor:p,statusBarPlatform:a.platform,statusBarIsDark:r,navBarHeight:d,navBarBackgroundColor:u,navBarPlatform:a.platform,navBarNavigationBarType:a.navigationBarType,navBarIsDark:r,insetLeft:l,insetRight:o,children:e})})})}function RenderPage({data:e,name:t}){useLogRender("RenderPage");const{device:i}=useRenderStore(e=>({device:e.device}));return i.width,i.height,jsx(DeviceMockFrame,{appName:t,children:jsx(RenderNode$1,{node:e})})}function isNodeData(e){return null!=e&&(!Array.isArray(e)&&("string"!=typeof e&&("object"==typeof e&&("type"in e&&"children"in e))))}function querySelector(e,t){if(null==e)return[];if(!t)return[];const i=t.startsWith("#"),a=i?t.slice(1):void 0,r=[],n=e=>{if(null!=e)if(Array.isArray(e))for(const t of e)n(t);else"string"!=typeof e&&isNodeData(e)&&((e=>i?e.key===a:e.type===t)(e)&&r.push(e),n(e.children))};return n(e),r}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},_extends$1.apply(null,arguments)}var SvgAndroid=function(e){return React.createElement("svg",_extends$1({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:800,height:800,viewBox:"0 0 502.857 502.857"},e),React.createElement("path",{d:"M115.428 155.433v217.664c0 17 10.208 30.336 27.704 30.336h22.84c-.784 0-2.544 5.768-2.544 8.6v61.648c0 16.112 15.448 29.176 32 29.176 16.56 0 32-13.064 32-29.176v-61.648c0-2.832-3.088-8.6-3.848-8.6h55.712c-.76 0-3.864 5.768-3.864 8.6v61.648c0 16.112 15.416 29.176 31.968 29.176 16.592 0 32.032-13.064 32.032-29.176v-61.648c0-2.832-1.752-8.6-2.536-8.6h22.872c17.496 0 27.664-13.336 27.664-30.336V155.433H113.596zM59.428 158.977c-16.568 0-32 13.072-32 29.176v124.92c0 16.112 15.432 29.176 32 29.176 16.56 0 32-13.064 32-29.176V188.161c0-16.112-15.44-29.184-32-29.184M320.3 42.057l5.584-8.192 5.592-8.096 12.456-18.2c1.56-2.256.912-5.264-1.384-6.744-2.272-1.512-5.416-.88-6.904 1.36l-19.016 27.704-5.72 8.344c-18.072-6.832-38.208-10.64-59.48-10.64-21.224 0-41.4 3.816-59.472 10.64l-5.688-8.336-5.624-8.184-13.36-19.512c-1.544-2.248-4.648-2.84-6.952-1.36-2.28 1.488-2.912 4.496-1.392 6.744l12.448 18.208 5.592 8.104 5.616 8.168c-42.432 19.24-71.144 57.368-71.144 97.368h279.96c0-40-28.704-78.128-71.112-97.376m-128.864 58.536c-8.312 0-15.008-6.536-15.008-14.608s6.696-14.576 15.008-14.576c8.288 0 15 6.504 15 14.576s-6.704 14.608-15 14.608m120 0c-8.304 0-15.016-6.536-15.016-14.608s6.712-14.576 15.016-14.576c8.288 0 15 6.504 15 14.576s-6.712 14.608-15 14.608",style:{fill:"#57c927"}}),React.createElement("path",{d:"M60.852 224.193c-12.472 0-25.424-11.768-33.424-30.432v119.32c0 16.112 15.432 29.176 32 29.176 16.56 0 32-13.064 32-29.176V199.985c-8 14.992-19.568 24.208-30.576 24.208",style:{fill:"#1cb71c"}}),React.createElement("path",{d:"M443.428 158.977c-16.568 0-32 13.072-32 29.176v124.92c0 16.112 15.432 29.176 32 29.176 16.56 0 32-13.064 32-29.176V188.161c0-16.112-15.44-29.184-32-29.184",style:{fill:"#57c927"}}),React.createElement("path",{d:"M444.852 224.193c-12.472 0-25.424-11.768-33.424-30.432v119.32c0 16.112 15.432 29.176 32 29.176 16.56 0 32-13.064 32-29.176V199.985c-8 14.992-19.568 24.208-30.576 24.208M251.428 179.337c-63.28 0-120-7.32-136-17.712v211.472c0 17 10.208 30.336 27.704 30.336h22.84c-.784 0-2.544 5.768-2.544 8.6v61.648c0 16.112 15.448 29.176 32 29.176 16.56 0 32-13.064 32-29.176v-61.648c0-2.832-3.088-8.6-3.848-8.6h55.712c-.76 0-3.864 5.768-3.864 8.6v61.648c0 16.112 15.416 29.176 31.968 29.176 16.592 0 32.032-13.064 32.032-29.176v-61.648c0-2.832-1.752-8.6-2.536-8.6h22.872c17.496 0 27.664-13.336 27.664-30.336v-211.48c-16 10.392-72.712 17.72-136 17.72M326.436 85.977c0 8.072-6.712 14.608-15 14.608-8.304 0-15.016-6.536-15.016-14.608 0-4.376 2.008-8.24 5.136-10.912-15.816-2.64-32.64-4.088-50.128-4.088s-34.304 1.448-50.128 4.088c3.136 2.664 5.144 6.536 5.144 10.912 0 8.072-6.712 14.608-15 14.608-8.312 0-15.008-6.536-15.008-14.608 0-2.064.456-4.024 1.248-5.808-23.984 6.304-44.592 15.504-60.144 26.808-3.92 10.296-6.088 24.456-6.088 32.456h279.96c0-8-2.168-22.152-6.08-32.44-15.544-11.32-36.16-20.536-60.128-26.84a14.5 14.5 0 0 1 1.232 5.824",style:{fill:"#1cb71c"}}),React.createElement("path",{d:"M251.428 262.817c-53.896 0-104-10.632-136-28.056v138.336c0 17 10.208 30.336 27.704 30.336h22.84c-.784 0-2.544 5.768-2.544 8.6v61.648c0 16.112 15.448 29.176 32 29.176 16.56 0 32-13.064 32-29.176v-61.648c0-2.832-3.088-8.6-3.848-8.6h55.712c-.76 0-3.864 5.768-3.864 8.6v61.648c0 16.112 15.416 29.176 31.968 29.176 16.592 0 32.032-13.064 32.032-29.176v-61.648c0-2.832-1.752-8.6-2.536-8.6h22.872c17.496 0 27.664-13.336 27.664-30.336V234.761c-32 17.432-82.104 28.056-136 28.056",style:{fill:"#049e42"}}))},_path,_path2;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},_extends.apply(null,arguments)}var SvgApple=function(e){return React.createElement("svg",_extends({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:800,height:800,viewBox:"0 0 496.412 496.412"},e),_path||(_path=React.createElement("path",{d:"M317.222 80.584C333.414 59.696 345.686 30.152 341.246 0c-26.472 1.84-57.384 18.768-75.432 40.832-16.456 20-29.976 49.728-24.688 78.608 28.928.904 58.784-16.432 76.096-38.856"})),React.createElement("path",{d:"M445.838 166.544c-25.4-31.872-61.12-50.344-94.848-50.344-44.512 0-63.352 21.312-94.264 21.312-31.896 0-56.12-21.248-94.624-21.248-37.832 0-78.112 23.12-103.64 62.64C22.574 234.576 28.694 339.2 86.894 428.336c20.808 31.904 48.592 67.744 84.952 68.072 32.36.32 41.488-20.752 85.336-20.992 43.832-.256 52.16 21.264 84.456 20.896 36.384-.288 65.712-40.016 86.512-71.92 14.912-22.848 20.48-34.376 32.056-60.184-84.192-32.024-97.688-151.72-14.368-197.664",style:{fill:"#1b546b"}}),_path2||(_path2=React.createElement("path",{d:"M394.774 228.08c-63.632 51.52-153.592 83.712-253.44 83.712-35.776 0-70.288-4.144-102.768-11.808 5.496 41.808 21.16 86.736 48.336 128.344 20.808 31.904 48.592 67.744 84.952 68.072 32.36.32 41.488-20.752 85.336-20.992 43.832-.256 52.16 21.264 84.456 20.896 36.384-.288 65.712-40.016 86.512-71.92 14.912-22.848 20.48-34.376 32.056-60.184-57.248-21.76-81.76-84.024-65.44-136.12"})))};const platformIcons={android:SvgAndroid,ios:SvgApple};function DeviceButton({device:e,selectedDevice:t,onSelect:i}){const a=platformIcons[e.platform];return jsxs("button",{type:"button",className:"editor-device-button"+(t===e?" editor-device-button--selected":""),onClick:()=>i(e),children:[e.name," ",jsx("br",{}),e.width,"x",e.height,a&&jsx("img",{src:a,alt:"","aria-hidden":"true"})]})}function DeviceSelectorModal({devices:e,selectedDevice:t,onSelect:i,onClose:a}){const r=e=>{i(e),a()};return jsxs(Modal,{onClose:a,ariaLabelledBy:"device-selector-title",contentClassName:"device-selector-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"device-selector-title",className:"modal__title",children:"Select a device"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close device selector",onClick:a,children:"Close"})]}),jsx("div",{className:"device-selector-modal__grid",role:"list",children:e.map(e=>jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:r},e.name))})]})}const devices=getDevices();function EditorHeader({onSaveProject:e,onRestoreProject:t,current:i,editorData:a,setEditorData:r}){useLogRender("EditorHeader");const[n,o]=useState(!1),s=useRenderStore(e=>e.copiedNode),{device:l,setDevice:c}=useRenderStore(e=>({device:e.device,setDevice:e.setDevice}));function d(e,t,i){if(e===t)return i;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let a=!1;const r=e.map(e=>{const r=d(e,t,i);return r!==e&&(a=!0),r});return a?r:e}const a=e;if("children"in a){const e=a.children,r=Array.isArray(e)?e.map(e=>d(e,t,i)):d(e,t,i);if(r!==e)return a.children=r,{...a,children:r}}return e}return jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxs("div",{className:"editor-header__devices",children:[devices.slice(0,5).map(e=>jsx(DeviceButton,{selectedDevice:l,onSelect:c,device:e},e.name)),jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>o(!0),children:"More devices"})]}),jsxs("div",{className:"editor-header__actions",children:[jsx("button",{className:"editor-button editor-save-button","aria-label":"Save project data",onClick:()=>e&&e(),children:"Save"}),t&&jsx("button",{className:"editor-button editor-save-previewconfig-button","aria-label":"Restore project data",onClick:()=>t(),children:"Restore"}),jsx("button",{className:"editor-button","aria-label":"Copy node",onClick:()=>{i&&copyNode(i)},children:"Copy"}),s&&jsx("button",{className:"editor-button","aria-label":"Paste node",onClick:()=>{if(!i||!a||!r)return;if(!s)return;const e=JSON.parse(JSON.stringify(s)),t=d(a,i,e);useRenderStore.setState({copiedNode:null}),r(t)},children:"Paste"})]}),n&&jsx(DeviceSelectorModal,{devices:devices,selectedDevice:l,onSelect:c,onClose:()=>o(!1)})]})}function AttributesEditorPanel({current:e,attributes:t,onChange:i,setCurrent:a}){if(useLogRender("AttributesEditorPanel"),!e)return null;function r(e,t,i){if(e===t)return i;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let a=!1;const n=e.map(e=>{const n=r(e,t,i);return n!==e&&(a=!0),n});return a?n:e}const a=e;if("children"in a){const e=a.children,n=Array.isArray(e)?e.map(e=>r(e,t,i)):r(e,t,i);if(n!==e)return a.children=n,{...a,children:n}}return e}return jsx("div",{style:{padding:12},children:jsx(AttributesEditor$1,{node:e,onChange:n=>{const o=r(t,e,n);i(o),a(n)}})})}function Breadcrumb({items:e,separator:t="/",ariaLabel:i="Breadcrumb",onBack:a,backLabel:r="Back"}){return useLogRender("Breadcrumb"),jsxs("nav",{className:"breadcrumb","aria-label":i,children:[a&&jsxs("button",{type:"button",className:"breadcrumb__back",onClick:a,"aria-label":"Go back",children:[jsx("span",{className:"breadcrumb__back-icon","aria-hidden":!0,children:"←"}),jsx("span",{children:r})]}),jsx("ol",{className:"breadcrumb__list",children:e.map((i,a)=>{const r=a===e.length-1,n=!r&&(i.to||i.onClick);return jsxs("li",{className:"breadcrumb__item "+(n?"breadcrumb__item--clickable":""),onClick:n?i.onClick:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,onKeyDown:n&&i.onClick?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i.onClick?.())}:void 0,children:[a>0&&jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:t}),r||!i.to&&!i.onClick?jsx("span",{className:"breadcrumb__current","aria-current":"page",children:i.label}):jsx("span",{className:"breadcrumb__link",children:i.label})]},`${i.label}-${a}`)})})]})}const FALLBACK_PARENT="all",EXCLUDE_PREFIX="!=";function normalizeDesiredParents(e){return Array.isArray(e)&&0!==e.length?e:[FALLBACK_PARENT]}function matchesDesiredChildToken(e,t){return e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t}function filterOptionsByDesiredChildren(e,t){if(!Array.isArray(t)||0===t.length)return e;const i=t.map(e=>e.trim()).filter(e=>e.length>0);return 0===i.length?e:e.filter(({type:e})=>{let t=!1,a=!1;for(const r of i)if(r.startsWith(EXCLUDE_PREFIX)){if(e===r.slice(EXCLUDE_PREFIX.length))return!1}else r!==FALLBACK_PARENT&&(t=!0,matchesDesiredChildToken(r,e)&&(a=!0));return!t||a})}function formatTokenLabel(e){return"all"===e?"Anywhere":"root"===e?"Root only":e.startsWith("!=")?`Not under ${e.slice(2)}`:e.startsWith("=")?`Direct child of ${e.slice(1)}`:e.startsWith(">")?`Inside ${e.slice(1)}`:e}function tokenMatchesParent(e,t){return"all"===e||(t&&0!==t.length?!e.startsWith("!=")&&(e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t):"root"===e)}function buildGroups(e,t){const i=new Map;return e.forEach(e=>{e.desiredParents.forEach(a=>{if(t&&!t(a,e))return;const r=i.get(a);r?r.some(t=>t.type===e.type)||r.push(e):i.set(a,[e])})}),Array.from(i.entries()).map(([e,t])=>({token:e,displayLabel:formatTokenLabel(e),options:t.sort((e,t)=>e.label.localeCompare(t.label))})).sort((e,t)=>e.displayLabel.localeCompare(t.displayLabel))}function AddComponentModal({allowedChildTypes:e,parentType:t,onSelect:i,onClose:a}){const[r,n]=useState(!1),o=useMemo(()=>Array.from(new Set(e)).map(e=>{const t=getPatternByType(e);return{type:e,label:t?.meta?.label?.trim()||e,desiredParents:normalizeDesiredParents(t?.meta?.desiredParent)}}).sort((e,t)=>e.label.localeCompare(t.label)),[e]),s=useMemo(()=>{if(!t)return;const e=getPatternByType(t)?.meta?.desiredChildren;return Array.isArray(e)&&0!==e.length?e.map(e=>e.trim()).filter(e=>e.length>0):void 0},[t]),l=useMemo(()=>filterOptionsByDesiredChildren(o,s),[o,s]),c=!s?.length;useEffect(()=>{c||n(!1)},[c]);const d=useMemo(()=>buildGroups(l,e=>tokenMatchesParent(e,t)),[l,t]),p=useMemo(()=>buildGroups(l),[l]),u=e=>jsxs("button",{type:"button",className:"add-component-modal__card",onClick:()=>(e=>{i(e)})(e.type),role:"listitem",children:[jsx("div",{className:"add-component-modal__thumbnail","aria-hidden":"true",children:jsx("span",{children:"Preview"})}),jsx("span",{className:"add-component-modal__title",children:e.label})]},e.type),h=e=>e.map(e=>jsxs("div",{className:"add-component-modal__group",children:[jsx("h5",{className:"add-component-modal__group-title",children:e.displayLabel}),jsx("div",{className:"add-component-modal__grid",role:"list",children:e.options.map(u)})]},e.token)),g=d.length>0,m=l.length>0;return jsxs(Modal,{onClose:a,ariaLabelledBy:"add-component-title",contentClassName:"add-component-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"add-component-title",className:"modal__title",children:"Add component"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close add component modal",onClick:a,children:"Close"})]}),jsxs("div",{className:"add-component-modal__body",children:[jsxs("section",{className:"add-component-modal__section",children:[jsx("h4",{className:"add-component-modal__section-title",children:"Recommended Components"}),g?h(d):jsx("p",{className:"add-component-modal__empty",children:m?"No direct recommendations for this parent.":"No components available for this node."})]}),c&&jsxs("label",{className:"add-component-modal__toggle",children:[jsx("input",{type:"checkbox",checked:r,onChange:e=>n(e.target.checked)}),jsx("span",{children:"Show rest (All Components)"})]}),c&&r&&jsxs("section",{className:"add-component-modal__section","aria-live":"polite",id:"add-component-modal-all",children:[jsx("h4",{className:"add-component-modal__section-title",children:"All Components"}),p.length?h(p):jsx("p",{className:"add-component-modal__empty",children:"No components available."})]}),!r&&!g&&jsx("p",{className:"add-component-modal__empty",children:c?"Nothing to suggest yet—toggle “Show rest” to browse all components.":"Nothing to suggest yet for this parent."})]})]})}function BuilderButton({node:e,onClick:t}){if(isNodeNullOrUndefined(e))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(e))return jsx("div",{className:"builder__text",children:e});const i=e;let a="";i.attributes?.condition&&(a=` (${i.attributes.condition} ${i.attributes.conditionVariable})`);const r=getPatternByType(i.type)?.meta?.label?.trim(),n=r&&r.length>0?r:i.type,o=a.trim()?a:"";return jsxs("a",{onClick:t,className:"builder__button",children:[jsx("span",{className:"builder__button-label",children:n})," ",jsx("br",{}),o&&jsx("span",{className:"builder__button-condition",children:o})]})}function BuilderComponent({node:e,onClick:t,onAdd:i}){if(isNodeNullOrUndefined(e))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(e))return jsxs("div",{className:"builder__text",children:[e," (Please define a node)"]});const a=i&&jsxs("button",{type:"button",className:"editor-button builder__add-button",onClick:i,children:[jsx("span",{className:"builder__add-button-icon","aria-hidden":"true",children:"+"}),jsx("span",{children:"Add component"})]});if(isNodeArray(e))return jsxs("div",{className:"builder__list",children:[e.map((e,i)=>jsx(BuilderButton,{onClick:()=>{t(e)},node:e},i)),a]});const r=e,n=r.children?isNodeArray(r.children)?r.children:[r.children]:null;return jsxs("div",{className:"builder__node",children:[jsx("div",{className:"builder__children",children:n&&n.map((e,i)=>jsx(BuilderButton,{onClick:()=>{t(e)},node:e},i))}),a]})}function Builder({data:e,setData:t,current:i,setCurrent:a}){useLogRender("Builder");const[r,n]=useState(!1),o=useMemo(()=>{const t=findNodePath(e,i);return t.length?t:isNodeNullOrUndefined(i)?isNodeNullOrUndefined(e)?[]:[e]:[i]},[e,i]),s=useCallback(e=>{a(e)},[a]),l=useMemo(()=>o.map((e,t)=>({label:getNodeLabel(e),onClick:t===o.length-1?void 0:()=>s(e)})),[o,s]),c=useCallback(()=>{o.length<2||s(o[o.length-2])},[o,s]),d=useCallback(r=>{if(isNodeNullOrUndefined(i)||isNodeString(i)||isNodeArray(i))return;const n=i,o=function(e){const t=getPatternByType(e)?.pattern,i=getDefaultsForType(e)??{};let a="";const r=t?.children;a="never"===r||"string"===r?"":"node"===r||Array.isArray(r)&&r.includes("node")||"string"==typeof r?[]:"";return{type:e,children:a,attributes:{...i}}}(r),s={...n,children:appendChild(n.children,o)},l=y(e,i,s);t(l),a(s)},[i,e,t,a]),p=useMemo(()=>function(e){if(isNodeNullOrUndefined(e)||isNodeString(e)||isNodeArray(e))return[];const t=e.type;if("OnboardButtons"===t)return["OnboardButton"];const i=getPatternByType(t)?.pattern?.children;if(!i)return[];if("never"===i||"string"===i)return[];if("node"===i||Array.isArray(i)&&i.includes("node"))return[...allcomponentNames];if("string"==typeof i)return[i];return[]}(i),[i]),u=useMemo(()=>isNodeNullOrUndefined(i)||isNodeString(i)||isNodeArray(i)?null:i.type??null,[i]),h=p.length>0,g=useCallback(()=>{h&&n(!0)},[h]),m=useCallback(()=>{n(!1)},[]),f=useCallback(e=>{d(e),n(!1)},[d]);function y(e,t,i){if(e===t)return i;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let a=!1;const r=e.map(e=>{const r=y(e,t,i);return r!==e&&(a=!0),r});return a?r:e}const a=e;if("children"in a){const e=a.children,r=Array.isArray(e)?e.map(e=>y(e,t,i)):y(e,t,i);if(r!==e)return a.children=r,{...a,children:r}}return e}return jsxs("div",{className:"builder",children:[jsx(Breadcrumb,{items:l,onBack:o.length>1?c:void 0}),jsx(BuilderComponent,{onClick:s,onAdd:h?g:void 0,node:i}),r&&jsx(AddComponentModal,{allowedChildTypes:p,parentType:u,onSelect:f,onClose:m})]})}function appendChild(e,t){return Array.isArray(e)?[...e,t]:null==e||"string"==typeof e?[t]:[e,t]}function getNodeLabel(e){return isNodeNullOrUndefined(e)?"Empty":isNodeString(e)?e:isNodeArray(e)?"Collection":e.type??"Node"}function findNodePath(e,t){if(null==e)return[];if(e===t)return[e];if("string"==typeof e)return[];if(Array.isArray(e)){for(const i of e){const e=findNodePath(i,t);if(e.length)return e}return[]}const i=e.children;if(!i)return[];const a=Array.isArray(i)?i:[i];for(const i of a){const a=findNodePath(i,t);if(a.length)return[e,...a]}return[]}function BuilderTab({data:e,setData:t,current:i,setCurrent:a}){return useLogRender("BuilderTab"),jsx("div",{role:"tabpanel",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsx(Builder,{data:e,setData:t,current:i,setCurrent:a})})}const r$1=(e,t,i,a,r)=>{if(!a)throw new Error(null!=r?r:`Invalid property path: ${t}\nCouldn't access "${i}" in ${JSON.stringify(e)}`)},e$1=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t$1=e=>Array.isArray(e),n=(e,t)=>e.filter((e,i)=>i!==t),o=(e,t,a,r={})=>{const{remove:o=!1,createNew:s=!0,noError:l=!1}=r,c=e,d="string"==typeof(p=t)?p:"number"==typeof p?String(p):p.reduce((e,t)=>"number"==typeof t?`${e}[${t}]`:""===e?t:`${e}.${t}`,"");var p;const u=Object.assign(Object.assign({},r),{remove:o,createNew:s,noError:l,fullData:c,fullPath:d}),h=Array.isArray(t)?t:(e=>Array.isArray(e)?e:e.split(/(\.|\[\d+\])/).filter(e=>"."!==e&&""!==e).map(e=>{const t=/\[(\d+)\]/.exec(e);return t?Number(t[1]):e}).flat())(t).filter(e=>""!==e);return t$1(e)&&o&&1===h.length?n(e,h[0]):i(e,h,a,u)},i=(e,t,r,o)=>{const l=e$1(e)?Object.assign({},e):null,c=t$1(e)?[...e]:null;if(0===t.length)return e;if(!l&&!c)throw new Error("Can't assign property -- invalid input object");const{createNew:d,remove:p,noError:u,fullData:h,fullPath:g}=o,m=t[0];if(c&&"string"==typeof m)return c.map(e=>i(e,t,r,o));if(1===t.length){if(l&&"string"==typeof m){const e=a(l,m,r,o);return null!=e?e:l}return c&&"number"==typeof m?(s(c,m,r,o),c):(r$1(h,g,m,u),e)}const f=l||c||[];if(p&&2===t.length&&"number"==typeof t[1]){const e=f[m],i=t[1];return t$1(e)?f[m]=n(e,i):r$1(h,g,m,u,"Trying to remove an indexed item from an object that is not an array"),f}const y=t.slice(1);if(m in e){if(b=f[m],!t$1(b)&&!e$1(b)){if(!d)return r$1(h,g,m,u),f;f[m]={}}return f[m]=i(f[m],y,r,o),f}var b;if(d){const e="number"==typeof y[0]?[]:{};if(l)return f[m]=e,f[m]=i(f[m],y,r,o),f;if(c&&Array.isArray(f)){f.push(e);const t=f.length-1;return f[t]=i(f[t],y,r,o),f}}return r$1(h,g,m,u),f},a=(e,t,i,a)=>{const{remove:r,createNew:n,noError:o,insertAfter:s,insertBefore:l,fullData:c,fullPath:d}=a;if(void 0!==l||void 0!==s){const a=Object.entries(e);let r=1/0;return r="number"==typeof l?l:"number"==typeof s?s:a.findIndex(([e,t])=>e===(null!=l?l:s)),s&&r++,a.splice(r,0,[t,i]),Object.fromEntries(a)}const p=t in e;r?p?delete e[t]:r$1(c,d,t,o):n||p?e[t]=i:r$1(c,d,t,o)},s=(e,t,i,a)=>{const{noError:r,fullData:n,fullPath:o,createNew:s,insert:l}=a;l&&e.splice(t,0,i),t in e?e[t]=i:s?e.push(i):r$1(n,o,t,r)},r=(i,a,n)=>{const o=Array.isArray(a)?a:t(a);if(0===o.length)return i;const s=o[0];if(Array.isArray(i)&&"number"!=typeof s)return i.map(e=>r(e,o));if("object"!=typeof i||null===i||!(s in i))return e(i,s);const l=i[s];return 1===o.length?l:r(l,o.slice(1))},t=e=>e.split(/(\.|\[\d+\])/).filter(e=>"."!==e&&""!==e).map(e=>{const t=/\[(\d+)\]/.exec(e);return t?Number(t[1]):e}).flat(),e=(e,t,i)=>{throw new Error(`Unable to extract object property\nLooking for property: ${t}\nIn object: ${JSON.stringify(e)}`)};function p(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(i[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(i[a[r]]=e[a[r]])}return i}function g(e,t,i,a){return new(i||(i=Promise))(function(t,r){function n(e){try{s(a.next(e))}catch(e){r(e)}}function o(e){try{s(a.throw(e))}catch(e){r(e)}}function s(e){var a;e.done?t(e.value):(a=e.value,a instanceof i?a:new i(function(e){e(a)})).then(n,o)}s((a=a.apply(e,[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const m=({className:e,name:t,value:i,setValue:a,handleKeyPress:r,styles:n,textAreaRef:o})=>{if("string"!=typeof i)return null;const s="\n"===i.slice(-1)?i+".":i;return jsxs("div",{style:{display:"grid"},children:[jsx("textarea",{id:`${t}_textarea`,ref:o,style:Object.assign({height:"auto",gridArea:"1 / 1 / 2 / 2",overflowY:"auto",whiteSpace:"pre-wrap"},n),rows:1,className:e,name:`${t}_textarea`,value:i,onChange:e=>a(e.target.value),autoFocus:!0,onFocus:e=>{i.length<40&&e.target.select()},onKeyDown:r}),jsx("span",{className:e,style:Object.assign({visibility:"hidden",height:"auto",gridArea:"1 / 1 / 2 / 2",color:"red",opacity:.9,whiteSpace:"pre-wrap",overflowY:"auto",border:"1px solid transparent"},n),children:s})]})},h=e=>null!==e&&"object"==typeof e,y=(e,t,i,a="")=>{if(!i&&!a)return!0;switch(e){case"collection":if(i){if(i(t,a))return!0;if(!f(a,t,i))return!1}if(!i&&a&&!f(a,t))return!1;break;case"value":if(i&&!i(t,a))return!1;if(!i&&a&&!b(t,a))return!1}return!0},f=(e="",t,i=b)=>{const a=t.value;return Object.entries(a).some(([r,n])=>{const o=[...t.path,r],s=Object.assign(Object.assign({},t),{key:r,path:o,level:t.level+1,value:n,size:o.length,parentData:a});return h(n)?f(e,s,i):i(s,e)})},b=(e,t="")=>{const{value:i}=e;if(null===i&&"null".includes(t.toLowerCase()))return!0;switch(typeof i){case"string":return i.toLowerCase().includes(t.toLowerCase());case"number":return!!String(i).includes(t);case"boolean":return i?"true".includes(t.toLowerCase())||"1"===t:"false".includes(t.toLowerCase())||"0"===t;default:return!1}},v=({key:e,path:t},i="")=>!!b({value:e},i)||!!t.some(e=>b({value:e},i)),j=(e,t)=>(null!=t?t:"")+e.map(e=>""===e?String.fromCharCode(0):e).join("."),E=e=>e.shiftKey?"Shift":e.metaKey?"Meta":e.ctrlKey?"Control":e.altKey?"Alt":void 0,w=(e,t,i)=>{const a=e.key,r=E(e);if(Array.isArray(t))return!!r&&t.includes(r);const{key:n,modifier:o}=t;return("stringLineBreak"!==i||"Enter"!==a||"Shift"!==r||"Enter"!==n||!(null==o?void 0:o.includes("Shift")))&&a===n&&(o===r||Array.isArray(o)&&o.includes(r))},D={key:"Enter"},C={confirm:D,cancel:{key:"Escape"},objectConfirm:Object.assign(Object.assign({},D),{modifier:["Meta","Shift","Control"]}),objectLineBreak:D,stringConfirm:D,stringLineBreak:Object.assign(Object.assign({},D),{modifier:["Shift"]}),numberConfirm:D,numberUp:{key:"ArrowUp"},numberDown:{key:"ArrowDown"},tabForward:{key:"Tab"},tabBack:{key:"Tab",modifier:"Shift"},booleanConfirm:D,booleanToggle:{key:" "},clipboardModifier:["Meta","Control"],collapseModifier:["Alt"]},O=(e,t,i="next",a)=>{const n=t.slice(0,t.length-1),o=t.slice(-1)[0];if(void 0===o)return null;const s=r(e,n),l=S(s);Array.isArray(s)||a(l,({key:e,value:t})=>[e,t]);const c=l.findIndex(e=>e.key===o),d=l[c+("next"===i?1:-1)];return d?h(d.value)?0===Object.keys(d.value).length?O(e,[...n,d.key],i,a):k(e,[...n,d.key],i,a):[...n,d.key]:0===n.length?null:O(e,n,i,a)},k=(e,t,i="next",a)=>{const n=r(e,t);if(!h(n))return t;const o=Array.isArray(n)?n.map((e,t)=>t):Object.keys(n);a(o,e=>[e,n]);const s="next"===i?o[0]:o[o.length-1];return k(e,[...t,s],i,a)},S=e=>Array.isArray(e)?e.map((e,t)=>({index:t,value:e,key:t})):Object.entries(e).map(([e,t],i)=>({key:e,value:t,index:i})),N=(e,t)=>{var i,a,r,n;const o=e.current,s=null!==(i=null==o?void 0:o.selectionStart)&&void 0!==i?i:1/0,l=null!==(a=null==o?void 0:o.selectionEnd)&&void 0!==a?a:1/0,c=(null===(r=null==o?void 0:o.textContent)||void 0===r?void 0:r.slice(0,s))+t+(null===(n=null==o?void 0:o.textContent)||void 0===n?void 0:n.slice(l));return o.value=c,null==o||o.setSelectionRange(s+1,s+1),c},T=e=>{if(e!==x){if(Array.isArray(e))return e.map(e=>T(e));if(e&&"object"==typeof e)for(const t in e)e[t]=T(e[t]);return e}},x="__​undefined__",A={displayName:"Default",fragments:{edit:"rgb(42, 161, 152)"},styles:{container:{backgroundColor:"#f6f6f6",fontFamily:"monospace"},collection:{},collectionInner:{},collectionElement:{},dropZone:{},property:"#292929",bracket:{color:"rgb(0, 43, 54)",fontWeight:"bold"},itemCount:{color:"rgba(0, 0, 0, 0.3)",fontStyle:"italic"},string:"rgb(203, 75, 22)",number:"rgb(38, 139, 210)",boolean:"green",null:{color:"rgb(220, 50, 47)",fontVariant:"small-caps",fontWeight:"bold"},input:["#292929"],inputHighlight:"#b3d8ff",error:{fontSize:"0.8em",color:"red",fontWeight:"bold"},iconCollection:"rgb(0, 43, 54)",iconEdit:"edit",iconDelete:"rgb(203, 75, 22)",iconAdd:"edit",iconCopy:"rgb(38, 139, 210)",iconOk:"green",iconCancel:"rgb(203, 75, 22)"}},P=createContext({getStyles:()=>({}),icons:{}}),R=({theme:e=A,icons:t={},docRoot:i,children:a})=>{const r=I(e,i);return jsx(P.Provider,{value:{getStyles:(e,t)=>"function"==typeof r[e]?r[e](t):r[e],icons:t},children:a})},K=()=>useContext(P),I=(e,t)=>{var i,a,r,n;const o={},s=(Array.isArray(e)?e:[e]).map(e=>_(e)?V({fragments:{},styles:e},o):V(e,o)),l=V(A,{});Object.keys(l).forEach(e=>{const t=e;s.forEach(e=>{e[t]&&(l[t]=Object.assign(Object.assign({},l[t]),e[t]))})});const c=Object.assign({},l);return Object.entries(o).forEach(([e,t])=>{const i=e;c[i]=e=>{const a=t(e)||{};return Object.assign(Object.assign({},l[i]),a)}}),"function"!=typeof(null==c?void 0:c.inputHighlight)&&(null===(i=null==c?void 0:c.inputHighlight)||void 0===i?void 0:i.backgroundColor)&&t.style.setProperty("--jer-highlight-color",null===(a=null==c?void 0:c.inputHighlight)||void 0===a?void 0:a.backgroundColor),"function"!=typeof(null==c?void 0:c.iconCopy)&&(null===(r=null==c?void 0:c.iconCopy)||void 0===r?void 0:r.color)&&t.style.setProperty("--jer-icon-copy-color",null===(n=null==c?void 0:c.iconCopy)||void 0===n?void 0:n.color),c},V=(e,t)=>{const{fragments:i,styles:a}=e,r={};return Object.entries(a).forEach(([e,a])=>{const n=(Array.isArray(a)?a:[a]).reduce((a,r)=>{var n,o;if("function"==typeof r)return t[e]=r,Object.assign({},a);if("string"==typeof r){const t=null!==(n=null==i?void 0:i[r])&&void 0!==n?n:r;return"string"==typeof t?Object.assign(Object.assign({},a),{[null!==(o=F[e])&&void 0!==o?o:"color"]:t}):Object.assign(Object.assign({},a),t)}return Object.assign(Object.assign({},a),r)},{});r[e]=n}),r},_=e=>!("styles"in e),F={container:"backgroundColor",collection:"backgroundColor",collectionInner:"backgroundColor",collectionElement:"backgroundColor",dropZone:"borderColor",inputHighlight:"backgroundColor"},L=createContext(null),z=({children:e,onEditEvent:t,onCollapse:i})=>{const[a,r]=useState(null),[n,o]=useState(null),[s,l]=useState(null),[c,d]=useState({path:null,pathString:null}),p=useRef(null),u=useRef("next"),h=useRef(null);return jsx(L.Provider,{value:{collapseState:a,setCollapseState:e=>{r(e),i&&null!==e&&(Array.isArray(e)?e.forEach(e=>i(e)):i(e)),null!==e&&setTimeout(()=>r(null),2e3)},getMatchingCollapseState:e=>{if(Array.isArray(a)){for(const t of a)if(B(e,t))return t;return null}return B(e,a)?a:null},currentlyEditingElement:n,setCurrentlyEditingElement:(e,i)=>{const a="string"==typeof e||null===e?e:j(e,"key"===i?"key_":void 0);null!==n&&null!==a&&null!==p.current&&p.current(),o(a),t&&(Array.isArray(e)||null===e)&&t(e,"key"===i),p.current="function"==typeof i?i:null},areChildrenBeingEdited:e=>null!==n&&n.includes(e),previouslyEditedElement:h.current,setPreviouslyEditedElement:e=>{h.current=e},tabDirection:u.current,setTabDirection:e=>{u.current=e},previousValue:s,setPreviousValue:l,dragSource:c,setDragSource:d},children:e})},M=()=>{const e=useContext(L);if(!e)throw new Error("Missing Context Provider");return e},B=(e,t)=>{if(null===t)return!1;if(!t.includeChildren)return t.path.every((t,i)=>e[i]===t)&&t.path.length===e.length;for(const[i,a]of t.path.entries())if(a!==e[i])return!1;return!0},W="**INVALID_FUNCTION**",G=({nodeData:e,showStringQuotes:t=!0,stringTruncate:i=200,pathString:a,canEdit:r,setIsEditing:n,styles:o,translate:s,value:l,TextWrapper:c=({children:e})=>e})=>{const d=null!=l?l:e.value,[p,u]=useState(!1),h=t?'"':"",g=d.length>i,m=()=>{r?n(!0):u(!p)};return jsxs("div",{id:`${a}_display`,onDoubleClick:m,onClick:e=>{(e.getModifierState("Control")||e.getModifierState("Meta"))&&m()},className:"jer-value-string",style:o,children:[h,g?jsxs(Fragment,p?{children:[jsx(c,{children:jsxs("span",{children:[d,h]})}),jsxs("span",{className:"jer-string-expansion jer-show-less",onClick:()=>u(!1),children:[" ",s("SHOW_LESS",e)]})]}:{children:[jsxs(c,{children:[jsx("span",{children:d.slice(0,i-2).trimEnd()})," "]}),jsx("span",{className:"jer-string-expansion jer-ellipsis",onClick:()=>u(!0),children:"..."}),h]}):jsx(c,{children:`${d}${h}`})]})},Y=({styles:e,pathString:t,value:i,setValue:a,handleEdit:r,handleKeyboard:n,keyboardCommon:o})=>{const s=useRef(null);return jsx(m,{className:"jer-input-text",textAreaRef:s,name:t,value:i,setValue:a,handleKeyPress:e=>{n(e,Object.assign({stringConfirm:r,stringLineBreak:()=>{const e=N(s,"\n");a(e)}},o))},styles:e})},H=e=>{var{isEditing:t,path:i,enumType:a}=e,r=p(e,["isEditing","path","enumType"]);const{getStyles:n}=K(),o=j(i),{value:s,setValue:l,nodeData:c,handleEdit:d,handleKeyboard:u,keyboardCommon:h}=r;return t&&a?jsxs("div",{className:"jer-select jer-select-enums",children:[jsx("select",{name:`${o}-value-select`,className:"jer-select-inner",onChange:e=>l(e.target.value),value:s,autoFocus:!0,onKeyDown:e=>{u(e,Object.assign({stringConfirm:d},h))},children:a.values.map(e=>jsx("option",{value:e,children:e},e))}),jsx("span",{className:"focus"})]}):t?jsx(Y,Object.assign({styles:n("input",c),pathString:o},r,{setValue:r.setValue})):jsx(G,Object.assign({pathString:o,styles:n("string",c)},r))},U=({value:e,setValue:t,isEditing:i,path:a,setIsEditing:r,handleEdit:n,nodeData:o,handleKeyboard:s,keyboardCommon:l})=>{const{getStyles:c}=K();return i?jsx("input",{className:"jer-input-number",type:"text",name:j(a),value:e,onChange:e=>t(e.target.value.replace(/[^0-9.-]/g,"")),autoFocus:!0,onFocus:e=>setTimeout(()=>e.target.select(),10),onKeyDown:i=>s(i,Object.assign({numberConfirm:n,numberUp:()=>t(Number(e)+1),numberDown:()=>t(Number(e)-1)},l)),style:Object.assign({width:String(e).length/1.5+2+"em"},c("input",o))}):jsx("span",{onDoubleClick:()=>r(!0),className:"jer-value-number",style:c("number",o),children:e})},$=({value:e,setValue:t,isEditing:i,path:a,setIsEditing:r,handleEdit:n,nodeData:o,handleKeyboard:s,keyboardCommon:l})=>{const{getStyles:c}=K();return"boolean"!=typeof e?null:i?jsx("input",{className:"jer-input-boolean",type:"checkbox",name:j(a),checked:e,onChange:()=>t(!e),onKeyDown:i=>{" "===i.key&&i.preventDefault(),s(i,Object.assign({booleanConfirm:n,booleanToggle:()=>t(!e)},l))},autoFocus:!0}):jsx("span",{onDoubleClick:()=>r(!0),className:"jer-value-boolean",style:c("boolean",o),children:String(e)})},Z=(e,t)=>{const i=useRef(void 0),a=useRef(t);useEffect(()=>{a.current=t},[t]);const r=e=>{a.current(e)};useEffect(()=>{if(window.clearTimeout(i.current),e)return i.current=window.setTimeout(()=>{window.addEventListener("keydown",r)},100),()=>{window.clearTimeout(i.current),window.removeEventListener("keydown",r)}},[e])},X=({value:e,isEditing:t,setIsEditing:i,handleEdit:a,nodeData:r,handleKeyboard:n,keyboardCommon:o})=>{const{getStyles:s}=K();return Z(t,e=>n(e,Object.assign({confirm:a},o))),jsx("div",{onDoubleClick:()=>i(!0),className:"jer-value-null",style:s("null",r),children:String(e)})},J=({value:e})=>{let t="Error!";switch(typeof e){case"string":e===W&&(t="Function");break;case"undefined":t="Undefined";break;case"symbol":t="Symbol"}return jsx("span",{className:"jer-value-invalid",children:t})},Q=({size:e,style:t,className:i})=>jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:i,style:t,children:[jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4z"}),jsx("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"})]}),q=({size:e,style:t,className:i})=>jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:i,style:t,transform:"translate(0, 0.5)",children:[jsx("path",{d:"M7 17.013l4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"}),jsx("path",{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"})]}),ee=({size:e,style:t,className:i})=>jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:i,style:t,children:jsx("path",{d:"M6 19a2 2 0 002 2h8a2 2 0 002-2V7H6v12m2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12M15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"})}),te=({size:e,style:t,className:i})=>jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e,height:e,className:i,style:t,children:[jsx("path",{d:"M9 2 H15 A1 1 0 0 1 16 3 V5 A1 1 0 0 1 15 6 H9 A1 1 0 0 1 8 5 V3 A1 1 0 0 1 9 2 z"}),jsx("path",{d:"M8 4H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2v-2M16 4h2a2 2 0 012 2v4M21 14H11"}),jsx("path",{d:"M15 10l-4 4 4 4"})]}),ne=({size:e,style:t,className:i})=>jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e,height:e,className:i,style:t,children:[jsx("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),jsx("path",{d:"M22 4L12 14.01l-3-3"})]}),re=({size:e,style:t,className:i})=>jsx("svg",{baseProfile:"tiny",viewBox:"0 0 24 24",fill:"currentColor",width:e,height:e,className:i,style:t,children:jsx("path",{d:"M12 4c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm-5 8c0-.832.224-1.604.584-2.295l6.711 6.711A4.943 4.943 0 0112 17c-2.757 0-5-2.243-5-5zm9.416 2.295L9.705 7.584A4.943 4.943 0 0112 7c2.757 0 5 2.243 5 5 0 .832-.224 1.604-.584 2.295z"})}),oe=({size:e,style:t,className:i})=>jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",width:e,height:e,className:i,style:t,children:jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),ie=({name:e,nodeData:t})=>{var i,a,r,n,o,s,l;const{getStyles:c,icons:d}=K(),p={size:"1.4em",className:"jer-icon"};switch(e){case"add":return null!==(i=null==d?void 0:d.add)&&void 0!==i?i:jsx(Q,Object.assign({},p,{style:c("iconAdd",t)}));case"edit":return null!==(a=null==d?void 0:d.edit)&&void 0!==a?a:jsx(q,Object.assign({},p,{style:c("iconEdit",t)}));case"delete":return null!==(r=null==d?void 0:d.delete)&&void 0!==r?r:jsx(ee,Object.assign({},p,{style:c("iconDelete",t),size:"1.45em"}));case"copy":return null!==(n=null==d?void 0:d.copy)&&void 0!==n?n:jsx(te,Object.assign({},p,{style:c("iconCopy",t),size:"1.2em"}));case"ok":return null!==(o=null==d?void 0:d.ok)&&void 0!==o?o:jsx(ne,Object.assign({},p,{style:Object.assign({fontSize:"90%"},c("iconOk",t))}));case"cancel":return null!==(s=null==d?void 0:d.cancel)&&void 0!==s?s:jsx(re,Object.assign({},p,{style:Object.assign({fontSize:"130%"},c("iconCancel",t))}));case"chevron":return null!==(l=null==d?void 0:d.chevron)&&void 0!==l?l:jsx(oe,{size:"1em",style:c("iconCollection",t)});default:return jsx(Fragment,{})}},ae=({startEdit:e,handleDelete:t,handleAdd:i,enableClipboard:a,type:n,customButtons:o,nodeData:s,translate:l,keyboardControls:c,handleKeyboard:d,editConfirmRef:p,getNewKeyOptions:u,jsonStringify:h,onEditEvent:g,showIconTooltips:m})=>{const{getStyles:f}=K(),y=l("KEY_NEW",s),[b,v]=useState(y),[_,x]=useState(!1),{key:S,path:C,value:k}=s,w=Array.isArray(_),P=e=>{var t;if(g&&g(e?[...C,null]:null,e),!e)return void x(!1);const i=Object.keys(r(s.fullData,C)),a=u?null===(t=u(s))||void 0===t?void 0:t.filter(e=>!i.includes(e)):null;a&&v(""),x(null==a||a)};return jsxs("div",{className:"jer-edit-buttons",style:{opacity:_?1:void 0},onClick:e=>e.stopPropagation(),children:[a&&jsx("div",{onClick:e=>{var t;e.stopPropagation();let i,r,n="value",o="",s=null;if(a){const l=E(e);if(l&&c.clipboardModifier.includes(l)?(i=se(C),o=i,n="path"):(i=k,o="object"==typeof i?h(k):String(i)),!navigator.clipboard)return void("function"==typeof a&&a({success:!1,value:i,stringValue:o,path:C,key:S,type:n,errorMessage:"Can't access clipboard API"}));null===(t=navigator.clipboard)||void 0===t||t.writeText(o).then(()=>r=!0).catch(e=>{r=!1,s=e.message}).finally(()=>{"function"==typeof a&&a({success:r,errorMessage:s,value:i,stringValue:o,path:C,key:S,type:n})})}},className:"jer-copy-pulse",title:m?l("TOOLTIP_COPY",s):"",children:jsx(ie,{name:"copy",nodeData:s})}),e&&jsx("div",{onClick:e,title:m?l("TOOLTIP_EDIT",s):"",children:jsx(ie,{name:"edit",nodeData:s})}),t&&jsx("div",{onClick:t,title:m?l("TOOLTIP_DELETE",s):"",children:jsx(ie,{name:"delete",nodeData:s})}),i&&jsx("div",{onClick:()=>{"object"===n?P(!0):i("")},title:m?l("TOOLTIP_ADD",s):"",children:jsx(ie,{name:"add",nodeData:s})}),null==o?void 0:o.map(({Element:e,onClick:t},i)=>jsx("div",{onClick:e=>t&&t(s,e),children:jsx(e,{nodeData:s})},i)),_&&i&&"object"===n&&jsxs(Fragment,{children:[w?jsxs("div",{className:"jer-select jer-select-keys",children:[jsxs("select",{name:"new-key-select",className:"jer-select-inner",onChange:e=>{i(e.target.value),P(!1)},defaultValue:"",autoFocus:!0,onKeyDown:e=>{d(e,{cancel:()=>P(!1)})},children:[jsx("option",{value:"",disabled:!0,children:_.length>0?l("KEY_SELECT",s):l("NO_KEY_OPTIONS",s)}),_.map(e=>jsx("option",{value:e,children:e},e))]}),jsx("span",{className:"focus"})]}):jsx("input",{className:"jer-input-new-key",type:"text",name:"new-object-key",value:b,onChange:e=>v(e.target.value),autoFocus:!0,onFocus:e=>e.target.select(),onKeyDown:e=>{d(e,{stringConfirm:()=>{i&&(P(!1),i(b),v(y))},cancel:()=>{P(!1),v(y)}})},style:f("input",s)}),jsx(le,{onOk:()=>{w&&!b||(P(!1),i(b))},onCancel:()=>{P(!1)},nodeData:s,editConfirmRef:p,hideOk:w})]})]})},le=({onOk:e,onCancel:t,nodeData:i,editConfirmRef:a,hideOk:r=!1})=>jsxs("div",{className:"jer-confirm-buttons",children:[!r&&jsx("div",{onClick:e,ref:a,children:jsx(ie,{name:"ok",nodeData:i})}),jsx("div",{onClick:t,children:jsx(ie,{name:"cancel",nodeData:i})})]}),se=e=>e.reduce((e,t)=>"number"==typeof t?`${e}[${t}]`:""===e?t:`${e}.${t}`,""),ce=["string","number","boolean","null","object","array"],de=({props:e,collapsed:t})=>{const{data:i,nodeData:a,parentData:r,onEdit:n,onError:o,showErrorMessages:s,restrictEditFilter:l,restrictDeleteFilter:c,restrictAddFilter:d,restrictDragFilter:p,translate:u,errorMessageTimeout:h}=e,{currentlyEditingElement:g,setCurrentlyEditingElement:m}=M(),[f,y]=useState(null),b=Object.assign(Object.assign({},a),{collapsed:t}),{path:v,key:_,size:x}=b,S=j(v),C=!l(b),k=!c(b),w=!d(b),E=!p(b)&&k&&null===g,P=e=>{s&&(y(e),setTimeout(()=>y(null),h)),console.warn("Error",e)},T=useCallback((e,t)=>{P(e.message),o&&o({currentData:b.fullData,errorValue:t,currentValue:i,name:_,path:v,error:e})},[o,s]),A=g===S,D=g===`key_${S}`,F="number"==typeof v.slice(-1)[0],z={isEditing:A,isEditingKey:D,isArray:F,canEditKey:null!==r&&C&&w&&k&&!F},B=""===_&&v.length>0?u("EMPTY_STRING",b):null;return{pathString:S,nodeData:b,path:v,name:_,size:x,canEdit:C,canDelete:k,canAdd:w,canDrag:E,error:f,showError:P,onError:T,setError:y,handleEditKey:e=>{if(m(null),_===e)return;if(!r)return;const t=v.slice(0,-1);if(Object.keys(r).includes(e))return void T({code:"KEY_EXISTS",message:u("ERROR_KEY_EXISTS",b)},e);const i=Object.fromEntries(Object.entries(r).map(([t,i])=>t===_?[e,i]:[t,i]));n(i,t).then(t=>{t&&T({code:"UPDATE_ERROR",message:t},e)})},derivedValues:z,emptyStringKey:B}},ue=({canDrag:e,canDragOnto:t,path:i,nodeData:a,onMove:r,onError:n,translate:o})=>{const{getStyles:s}=K(),{dragSource:l,setDragSource:c}=M(),[d,p]=useState(!1),u=j(i),h=useMemo(()=>e?{onDragStart:e=>{e.stopPropagation(),c({path:i,pathString:u})},onDragEnd:e=>{e.stopPropagation(),c({path:null,pathString:null})}}:{},[e,u]),g=useMemo(()=>e=>t?{onDragOver:e=>{e.stopPropagation(),e.preventDefault()},onDrop:t=>{t.stopPropagation(),f(e),c({path:null,pathString:null}),p(!1)},onDragEnter:t=>{var i;t.stopPropagation(),u.startsWith(null!==(i=l.pathString)&&void 0!==i?i:"")||p(e)},onDragExit:e=>{e.stopPropagation(),p(!1)}}:{},[l,t,u]),m=useMemo(()=>t&&null!==l.pathString?jsx("div",Object.assign({className:"jer-drop-target-bottom",style:{height:"50%",position:"absolute",width:"100%",top:"50%",zIndex:i.length}},g("below"))):null,[l,t,i.length]),f=e=>{var t,s;const c=null===(t=l.path)||void 0===t?void 0:t.slice(-1)[0],d=null===(s=l.path)||void 0===s?void 0:s.slice(0,-1).join("."),p=i.slice(0,-1).join(""),{parentData:u}=a;"string"==typeof c&&u&&!Array.isArray(u)&&Object.keys(u).includes(c)&&c in u&&d!==p?n({code:"KEY_EXISTS",message:o("ERROR_KEY_EXISTS",a)},c):r(l.path,i,e).then(e=>{e&&n({code:"UPDATE_ERROR",message:e},a.value)})};return{dragSourceProps:h,getDropTargetProps:g,BottomDropTarget:m,DropTargetPadding:({position:e,nodeData:t})=>d===e?jsx("div",{className:"jer-drag-n-drop-padding",style:s("dropZone",t)}):null,handleDrop:f}},pe=(e,t,i,a)=>{var r,n,o;if(!t.current)return 0;const s=parseInt(null!==(r=getComputedStyle(i.current).getPropertyValue("line-height"))&&void 0!==r?r:"16px"),l=(null!==(o=null===(n=t.current)||void 0===n?void 0:n.offsetWidth)&&void 0!==o?o:0)/(.5*s),c=a(e).replace(/\\n/g,"\n").split("\n").map(e=>Math.ceil(e.length/l)).reduce((e,t)=>e+t,0)*s;return Math.min(c+30,window.innerHeight-50)},ge=({isEditingKey:e,canEditKey:t,pathString:i,path:a,name:r,arrayIndexFromOne:n,handleKeyboard:o,handleEditKey:s,handleCancel:l,handleClick:c,keyValueArray:d,styles:p,getNextOrPrevious:u,emptyStringKey:h})=>{const{setCurrentlyEditingElement:g}=M(),m="number"==typeof r?String(r+(n?1:0)):r;return e?jsx("input",{className:"jer-input-text jer-key-edit",type:"text",name:i,defaultValue:m,autoFocus:!0,onFocus:e=>e.target.select(),onKeyDown:e=>o(e,{stringConfirm:()=>s(e.target.value),cancel:l,tabForward:()=>{if(s(e.target.value),d){const e=null==d?void 0:d[0][0];g(e?[...a,e]:u("next"))}else g(a)},tabBack:()=>{s(e.target.value),g(u("prev"))}}),style:{width:m.length/1.5+.5+"em"}}):jsxs("span",{className:"jer-key-text",style:Object.assign(Object.assign({},p),{minWidth:`${Math.min(m.length+1,5)}ch`,flexShrink:m.length>10?1:0}),onDoubleClick:()=>t&&g(a,"key"),onClick:c,children:[h?jsx("span",{className:"jer-empty-string",children:h}):m,""!==m||h?jsx("span",{className:"jer-key-colon",children:":"}):null]})},me=e=>{const{data:t,parentData:i,onEdit:a,onDelete:r,onChange:n,onMove:o,enableClipboard:s,canDragOnto:l,restrictTypeSelection:c,searchFilter:d,searchText:p,showLabel:u,stringTruncate:h,showStringQuotes:g,arrayIndexFromOne:m,indent:f,translate:b,customNodeDefinitions:v,customNodeData:_,handleKeyboard:x,keyboardControls:S,sort:C,editConfirmRef:k,jsonStringify:w,showIconTooltips:E}=e,{getStyles:P}=K(),{setCurrentlyEditingElement:T,setCollapseState:A,previouslyEditedElement:D,setPreviouslyEditedElement:F,tabDirection:z,setTabDirection:j,previousValue:B,setPreviousValue:I}=M(),[R,L]=useState("function"==typeof t?W:t),{pathString:N,nodeData:V,path:H,name:G,canEdit:$,canDelete:q,canDrag:U,error:J,onError:X,handleEditKey:Y,emptyStringKey:Z,derivedValues:Q}=de({props:e}),{dragSourceProps:ee,getDropTargetProps:te,BottomDropTarget:ie,DropTargetPadding:re}=ue({canDrag:U,canDragOnto:l,path:H,nodeData:V,onMove:o,onError:X,translate:b}),[ne,oe]=useState(he(t,_)),se=useCallback(e=>{if(!n)return void L(e);const t=n({currentData:V.fullData,newValue:e,currentValue:R,name:G,path:H});L(t)},[n]);useEffect(()=>{L("function"==typeof t?W:t),oe(he(t,_))},[t,J]);const{CustomNode:pe,customNodeProps:me,hideKey:be,showEditTools:ve=!0,showOnEdit:_e,showOnView:xe,passOriginalNode:Se}=_,Ce=[...ce,...v.filter(({showInTypesSelector:e=!1,name:t})=>e&&!!t).map(({name:e})=>e)],ke=useMemo(()=>{if("boolean"==typeof c)return c?[]:Ce;if(Array.isArray(c))return c;const e=c(V);return"boolean"==typeof e?e?[]:Ce:e},[V,c]),[we,Ee]=useState(((e,t)=>{var i;if("string"!=typeof e)return null;const a=t.filter(t=>t instanceof Object&&t.enum&&t.values.includes(e)&&t.matchPriority);return a.sort((e,t)=>{var i,a;return(null!==(i=t.matchPriority)&&void 0!==i?i:0)-(null!==(a=e.matchPriority)&&void 0!==a?a:0)}),null!==(i=a[0])&&void 0!==i?i:null})(R,ke)),{isEditing:Pe}=Q,Te=y("value",V,d,p);if(Pe&&(!Te||!$)){const e=O(V.fullData,H,z,C);T(e||D)}if(!Te)return null;const Ae=e=>{let t;if(T(null),I(null),void 0===e||(e=>e&&"object"==typeof e&&"type"in e&&"target"in e&&"preventDefault"in e&&"function"==typeof e.preventDefault)(e))switch(ne){case"object":t={[b("DEFAULT_NEW_KEY",V)]:R};break;case"array":t=null!=R?R:[];break;case"number":{const e=Number(R);t=isNaN(e)?0:e;break}default:t=R}else t=e;a(t,H).then(e=>{e&&X({code:"UPDATE_ERROR",message:e},t)})},De=()=>{T(null),null===B?(L(t),I(null)):a(B,H)},{isEditingKey:Fe,canEditKey:Me}=Q,ze=!Pe&&J,je=Pe&&ke.length>1,Be=("invalid"!==ne||pe)&&!J&&ve,Ie=u&&!be,Re=pe&&(Pe&&_e||!Pe&&xe),Le={value:R,parentData:i,setValue:se,isEditing:Pe,canEdit:$,setIsEditing:$?()=>T(H):()=>{},handleEdit:Ae,handleCancel:De,path:H,stringTruncate:h,showStringQuotes:g,nodeData:V,enumType:we,translate:b,handleKeyboard:x,keyboardCommon:{cancel:De,tabForward:()=>{j("next"),F(N);const e=O(V.fullData,H,"next",C);e&&(Ae(),T(e))},tabBack:()=>{j("prev"),F(N);const e=O(V.fullData,H,"prev",C);e&&(Ae(),T(e))}}},Oe={canEditKey:Me,isEditingKey:Fe,pathString:N,path:H,name:G,arrayIndexFromOne:m,handleKeyboard:x,handleEditKey:Y,handleCancel:De,styles:P("property",V),getNextOrPrevious:e=>O(V.fullData,H,e,C),emptyStringKey:Z},Ne=Re?jsx(pe,Object.assign({},e,{value:R,customNodeProps:me,setValue:se,handleEdit:Ae,handleCancel:De,handleKeyPress:e=>x(e,{stringConfirm:Ae,cancel:De}),isEditing:Pe,setIsEditing:()=>T(H),getStyles:P,originalNode:Se?ye(t,Le):void 0,originalNodeKey:Se?jsx(ge,Object.assign({},Oe)):void 0,canEdit:$,keyboardCommon:Le.keyboardCommon,onError:X})):ye(t,Le);return jsxs("div",Object.assign({className:"jer-component jer-value-component",style:{marginLeft:null!==i?f/2+"em":0,position:"relative"},draggable:U},ee,te("above"),{children:[ie,jsx(re,{position:"above",nodeData:V}),jsxs("div",{className:"jer-value-main-row",style:{flexWrap:G.length>10?"wrap":"nowrap"},children:[Ie&&jsx(ge,Object.assign({},Oe)),jsxs("div",{className:"jer-value-and-buttons",children:[jsx("div",{className:"jer-input-component",children:Ne}),Pe?jsx(le,{onOk:Ae,onCancel:De,nodeData:V,editConfirmRef:k}):Be&&jsx(ae,{startEdit:$?()=>{I(B),T(H,De)}:void 0,handleDelete:q?()=>{r(R,H).then(e=>{e&&X({code:"DELETE_ERROR",message:e},R)})}:void 0,enableClipboard:s,translate:b,customButtons:e.customButtons,nodeData:V,handleKeyboard:x,keyboardControls:S,editConfirmRef:k,jsonStringify:w,showIconTooltips:E}),je&&jsxs("div",{className:"jer-select jer-select-types",children:[jsx("select",{name:`${G}-type-select`,className:"jer-select-inner",onChange:e=>(e=>{const t=v.find(t=>t.name===e);if(t)return a(t.defaultValue,H),oe(e),Ee(null),T(null),void A({path:H,collapsed:!1,includeChildren:!1});const i=ke.find(t=>t instanceof Object&&t.enum===e);if(i)return"string"==typeof R&&i.values.includes(R)||a(i.values[0],H).then(e=>{e&&(X({code:"UPDATE_ERROR",message:e},r),T(null))}),void Ee(i);const r=fe(R,e,b("DEFAULT_NEW_KEY",V),(null==_?void 0:_.CustomNode)?b("DEFAULT_STRING",V):void 0);["string","number","boolean"].includes(e)||T(null),a(r,H).then(e=>{e?(X({code:"UPDATE_ERROR",message:e},r),T(null)):Ee(null)})})(e.target.value),value:we?we.enum:ne,children:ke.map(e=>e instanceof Object&&"enum"in e?jsx("option",{value:e.enum,children:e.enum},e.enum):jsx("option",{value:e,children:e},e))}),jsx("span",{className:"focus"})]}),ze&&jsx("span",{className:"jer-error-slug",style:P("error",V),children:J})]})]}),jsx(re,{position:"below",nodeData:V})]}))},he=(e,t)=>(null==t?void 0:t.CustomNode)&&(null==t?void 0:t.name)&&t.showInTypesSelector?t.name:"string"==typeof e?"string":"number"==typeof e?"number":"boolean"==typeof e?"boolean":null===e?"null":"invalid",ye=(e,t)=>{const i=he(e),{value:a}=t;switch(i){case"string":return jsx(H,Object.assign({},t,{value:a}));case"number":return jsx(U,Object.assign({},t,{value:a}));case"boolean":return jsx($,Object.assign({},t,{value:a}));case"null":return jsx(X,Object.assign({},t));default:return jsx(J,Object.assign({},t))}},fe=(e,t,i,a)=>{switch(t){case"string":return null!=a?a:String(e);case"number":{const t=Number(e);return isNaN(t)?0:t}case"boolean":return!!e;case"null":return null;case"object":return{[i]:e};case"array":return[e];default:return String(e)}},be=(e=[],t)=>{const i=e.filter(({condition:e})=>e(t));if(0===i.length)return{};const a=i[0],{element:r,wrapperElement:n,customNodeProps:o,wrapperProps:s,hideKey:l=!1,showEditTools:c=!0,showOnEdit:d=!1,showOnView:u=!0,showCollectionWrapper:h=!0}=a,g=p(a,["element","wrapperElement","customNodeProps","wrapperProps","hideKey","showEditTools","showOnEdit","showOnView","showCollectionWrapper"]);return Object.assign({CustomNode:r,CustomWrapper:n,customNodeProps:o,wrapperProps:s,hideKey:l,showEditTools:c,showOnEdit:d,showOnView:u,showCollectionWrapper:h},g)},ve=e=>{const{getStyles:t}=K(),{collapseState:i,setCollapseState:a,getMatchingCollapseState:r,currentlyEditingElement:n,setCurrentlyEditingElement:o,areChildrenBeingEdited:s,previousValue:l,setPreviousValue:c}=M(),{mainContainerRef:d,data:p,nodeData:u,parentData:f,showCollectionCount:b,onEdit:v,onAdd:_,onDelete:x,canDragOnto:S,collapseFilter:C,collapseAnimationTime:k,onMove:w,enableClipboard:P,onEditEvent:T,showIconTooltips:A,searchFilter:D,searchText:F,indent:z,sort:j,showArrayIndices:B,arrayIndexFromOne:I,defaultValue:R,newKeyOptions:L,translate:V,customNodeDefinitions:H,customNodeData:G,jsonParse:W,jsonStringify:$,TextEditor:q,keyboardControls:U,handleKeyboard:J,insertAtTop:X,onCollapse:Y,editConfirmRef:Z,collapseClickZones:Q}=e,[ee,te]=useState($(p)),re=C(u),{contentRef:ne,isAnimating:oe,maxHeight:se,collapsed:ce,animateCollapse:he,cssTransitionValue:fe}=((e,t,i,a,r)=>{const[n,o]=useState(i?0:void 0),[s,l]=useState(i),c=useRef(!1),d=useRef(null),p=useRef(0),u=useRef(0),h=t/1e3+"s",g=useCallback(i=>{var n,h;if(s!==i){switch(window.clearTimeout(u.current),c.current=!0,i){case!0:{const e=null!==(h=null===(n=d.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==h?h:0;p.current=e,o(e),setTimeout(()=>{o(0)},5);break}case!1:o(p.current||pe(e,d,a,r))}l(!s),u.current=window.setTimeout(()=>{c.current=!1,i||o(void 0)},t)}},[t,s,e,a,r]);return{contentRef:d,isAnimating:c.current,animateCollapse:g,maxHeight:n,collapsed:s,cssTransitionValue:h}})(p,k,re,d,$),{pathString:ye,nodeData:_e,path:xe,name:Se,size:Ce,canEdit:ke,canDelete:we,canAdd:Ee,canDrag:Pe,error:Te,setError:Ae,onError:De,handleEditKey:Fe,emptyStringKey:Me,derivedValues:ze}=de({props:e,collapsed:ce}),{dragSourceProps:je,getDropTargetProps:Be,BottomDropTarget:Ie,DropTargetPadding:Re}=ue({canDrag:Pe,canDragOnto:S,path:xe,nodeData:_e,onMove:w,onError:De,translate:V}),Le=useRef(!re),{isEditing:Oe,isEditingKey:Ne,isArray:Ve,canEditKey:He}=ze;useEffect(()=>{te($(p))},[p,$]),useEffect(()=>{const e=C(_e)&&!Oe;Le.current=!e,he(e)},[C]),useEffect(()=>{if(null!==i){const e=r(xe);e&&(Le.current=!0,he(e.collapsed))}},[i]);const Ge=useRef(null),We=useCallback((e,t)=>{if("function"!=typeof R)return R;const i=R(e,t);return void 0!==i?i:null},[R]),$e=useCallback(e=>L?"function"!=typeof L?L:L(e):null,[L]),{CustomNode:qe,customNodeProps:Ke,CustomWrapper:Ue,wrapperProps:Je={},hideKey:Xe,showEditTools:Ye=!0,showOnEdit:Ze,showOnView:Qe,showCollectionWrapper:et=!0}=G,tt=s(ye);if(tt&&ce&&he(!1),!y("collection",_e,D,F)&&0!==_e.level&&!tt)return null;const it=Array.isArray(p)?"array":"object",at="array"===it?{open:"[",close:"]"}:{open:"{",close:"}"},rt=e=>{if("Tab"!==e.key||e.getModifierState("Shift"))J(e,{objectConfirm:ot,cancel:lt});else{e.preventDefault();const t=N(Ge,"\t");te(t)}},nt=e=>{e.stopPropagation();const t=E(e);if(t&&U.collapseModifier.includes(t))return Le.current=!0,void a({collapsed:!ce,path:xe,includeChildren:!0});n&&n.includes(ye)||(Le.current=!0,a(null),Y&&Y({path:xe,collapsed:!ce,includeChildren:!1}),he(!ce))},ot=()=>{try{const e=W(ee);if(o(null),c(null),Ae(null),$(e)===$(p))return;v(e,xe).then(t=>{t&&De({code:"UPDATE_ERROR",message:t},e)})}catch(e){De({code:"INVALID_JSON",message:V("ERROR_INVALID_JSON",_e)},ee)}},st=xe.length>0?()=>{x(p,xe).then(e=>{e&&De({code:"DELETE_ERROR",message:e},p)})}:void 0,lt=()=>{o(null),null===l?(Ae(null),te($(p)),c(null)):v(l,xe)},ct="when-closed"===b?ce:b,dt=!Oe&&Ye,pt=(B||!Ve)&&!Xe&&void 0!==Se,ut=qe&&(Oe&&Ze||!Oe&&Qe),ht=Object.entries(p).map(([e,t])=>["array"===it?Number(e):e,t]);"object"===it&&j(ht,e=>e);const gt=Le.current?Oe?jsxs("div",{className:"jer-collection-text-edit",children:[q?jsx(q,{value:ee,onChange:te,onKeyDown:e=>J(e,{objectConfirm:ot,cancel:lt})}):jsx(m,{textAreaRef:Ge,className:"jer-collection-text-area",name:ye,value:ee,setValue:te,handleKeyPress:rt,styles:t("input",_e)}),jsx("div",{className:"jer-collection-input-button-row",children:jsx(le,{onOk:ot,onCancel:lt,nodeData:_e,editConfirmRef:Z})})]}):ht.map(([i,a],r)=>{const n={key:i,value:a,path:[...xe,i],level:xe.length+1,index:r,size:h(a)?Object.keys(a).length:null,parentData:p,fullData:_e.fullData},o=be(H,n);return jsx("div",{className:"jer-collection-element",style:t("collectionElement",n),children:h(a)&&!(null==o?void 0:o.renderCollectionAsValue)?jsx(ve,Object.assign({},e,{data:a,parentData:p,nodeData:n,showCollectionCount:b,canDragOnto:ke,customNodeData:o}),i):jsx(me,Object.assign({},e,{data:a,parentData:p,nodeData:n,canDragOnto:ke,showLabel:"object"===it||B,customNodeData:o}),i)},i)}):null,mt=!!et&&ce&&!tt;mt||(Le.current=!0);const ft=Object.assign(Object.assign({},e),{data:p,value:p,parentData:f,nodeData:_e,setValue:e=>g(void 0,void 0,void 0,function*(){return yield v(e,xe)}),handleEdit:ot,handleCancel:lt,handleKeyPress:rt,isEditing:Oe,setIsEditing:()=>o(xe),getStyles:t,canDragOnto:ke,canEdit:ke,keyboardCommon:{},onError:De}),yt=ut?jsx(qe,Object.assign({customNodeProps:Ke},ft,{children:gt})):gt,bt=dt&&jsx(ae,{startEdit:ke?()=>{Le.current=!0,c(null),o(xe)}:void 0,handleAdd:Ee?e=>{he(!1);const t=We(_e,e);if("array"===it){const e=X.array?0:p.length,i=X.array?{insert:!0}:{};_(t,[...xe,e],i).then(e=>{e&&De({code:"ADD_ERROR",message:e},t)})}else if(e in p)De({code:"KEY_EXISTS",message:V("ERROR_KEY_EXISTS",_e)},e);else{const i=X.object?{insertBefore:0}:{};_(t,[...xe,e],i).then(e=>{e&&De({code:"ADD_ERROR",message:e},t)})}}:void 0,handleDelete:we?st:void 0,enableClipboard:P,type:it,nodeData:_e,translate:V,customButtons:e.customButtons,keyboardControls:U,handleKeyboard:J,getNewKeyOptions:$e,editConfirmRef:Z,jsonStringify:$,onEditEvent:T,showIconTooltips:A}),vt={canEditKey:He,isEditingKey:Ne,pathString:ye,path:xe,name:Se,arrayIndexFromOne:I,handleKeyboard:J,handleEditKey:Fe,handleCancel:lt,keyValueArray:ht,styles:t("property",_e),getNextOrPrevious:e=>O(_e.fullData,xe,e,j),handleClick:Q.includes("property")?nt:e=>e.stopPropagation(),emptyStringKey:Me},_t=jsxs("div",Object.assign({className:"jer-component jer-collection-component",style:Object.assign(Object.assign({marginLeft:(0===xe.length?0:z/2)+"em"},t("collection",_e)),{position:"relative"}),draggable:Pe},je,Be("above"),{children:[jsx("div",{className:"jer-clickzone",style:{width:z/2+1+"em",zIndex:10+2*_e.level},onClick:Q.includes("left")?nt:void 0}),!Oe&&Ie,jsx(Re,{position:"above",nodeData:_e}),et?jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},onClick:Q.includes("header")?nt:void 0,children:[jsxs("div",{className:"jer-collection-name",children:[jsx("div",{className:"jer-collapse-icon jer-accordion-icon"+(ce?" jer-rotate-90":""),style:{zIndex:11+2*_e.level,transition:fe},onClick:nt,children:jsx(ie,{name:"chevron",rotate:ce,nodeData:_e})}),pt&&jsx(ge,Object.assign({},vt)),!Oe&&jsx("span",{className:"jer-brackets jer-bracket-open",style:t("bracket",_e),children:at.open})]}),!Oe&&ct&&jsx("div",{className:"jer-collection-item-count"+(ct?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},t("itemCount",_e)),{transition:fe}),children:1===Ce?V("ITEM_SINGLE",Object.assign(Object.assign({},_e),{size:1}),1):V("ITEMS_MULTIPLE",_e,Ce)}),jsx("div",{className:"jer-brackets"+(mt?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},t("bracket",_e)),{transition:fe}),children:at.close}),bt]}):Xe?jsx(Fragment,{}):jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},children:[jsx(ge,Object.assign({},vt)),bt]}),jsxs("div",{className:"jer-collection-inner",style:Object.assign(Object.assign({overflowY:mt||oe?"clip":"visible",maxHeight:tt?void 0:se},t("collectionInner",_e)),{transition:fe}),ref:ne,children:[yt,jsx("div",{className:Oe?"jer-collection-error-row":"jer-collection-error-row-edit",children:Te&&jsx("span",{className:"jer-error-slug",style:t("error",_e),children:Te})}),!Oe&&et&&jsx("div",{className:"jer-brackets jer-bracket-outside",style:Object.assign(Object.assign({},t("bracket",_e)),{marginLeft:(z<3?-1:z<6?-.5:0)+"em"}),children:at.close})]}),jsx(Re,{position:"below",nodeData:_e})]}));return Ue?jsx(Ue,Object.assign({customNodeProps:Je},ft,{children:_t})):_t},je={ITEM_SINGLE:"{{count}} item",ITEMS_MULTIPLE:"{{count}} items",KEY_NEW:"Enter new key",KEY_SELECT:"Select key",NO_KEY_OPTIONS:"No key options",ERROR_KEY_EXISTS:"Key already exists",ERROR_INVALID_JSON:"Invalid JSON",ERROR_UPDATE:"Update unsuccessful",ERROR_DELETE:"Delete unsuccessful",ERROR_ADD:"Adding node unsuccessful",DEFAULT_STRING:"New data!",DEFAULT_NEW_KEY:"key",SHOW_LESS:"(Show less)",EMPTY_STRING:"<empty string>",TOOLTIP_COPY:"Copy to clipboard",TOOLTIP_EDIT:"Edit",TOOLTIP_DELETE:"Delete",TOOLTIP_ADD:"Add"},Ee=(e,t)=>(i,a,r)=>((e,t,i,a,r)=>{if(t[a]){const e=t[a](i);if(null!==e)return e}const n=a in e?e[a]:je[a];return void 0===r?n:null==n?void 0:n.replace("{{count}}",String(r))})(e,t,a,i,r);var we=[],De=[];!function(e,t){if(e&&"undefined"!=typeof document){var i,a=!0===t.prepend?"prepend":"append",r=!0===t.singleTag,n="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(r){var o=we.indexOf(n);-1===o&&(o=we.push(n)-1,De[o]={}),i=De[o]&&De[o][a]?De[o][a]:De[o][a]=s()}else i=s();65279===e.charCodeAt(0)&&(e=e.substring(1)),i.styleSheet?i.styleSheet.cssText+=e:i.appendChild(document.createTextNode(e))}function s(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var i=Object.keys(t.attributes),r=0;r<i.length;r++)e.setAttribute(i[r],t.attributes[i[r]]);var o="prepend"===a?"afterbegin":"beforeend";return n.insertAdjacentElement(o,e),e}}(':root{--jer-select-border:#b6b6b6;--jer-select-focus:#777;--jer-select-arrow:#777;--jer-form-border:1px solid #ededf0;--jer-form-border-focus:1px solid #e2e2e2;--jer-highlight-color:#b3d8ff}.jer-visible{opacity:1}.jer-hidden{opacity:0}.jer-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#000;cursor:inherit;font-family:inherit;font-size:.8em;line-height:inherit;margin:0;outline:none;padding:0 1em 0 0;z-index:1}select::-ms-expand{display:none}.jer-select{align-items:center;background-color:#fff;background-image:linear-gradient(0deg,#f9f9f9,#fff 33%);border:1px solid var(--jer-select-border);border-radius:.25em;cursor:pointer;display:grid;grid-template-areas:"select";line-height:1.1;max-width:15ch;min-width:12ch;padding:.25em .5em;position:relative}.jer-select select,.jer-select:after{grid-area:select}.jer-select:not(.jer-select--multiple):after{background-color:var(--jer-select-arrow);clip-path:polygon(100% 0,0 0,50% 100%);content:"";height:.5em;justify-self:end;width:.8em}select:focus+.focus{border:1px solid var(--jer-select-focus);border-radius:inherit;bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px}.jer-select-inner{text-overflow:ellipsis;width:100%}.jer-editor-container{border-radius:.5em;font-size:16px;line-height:1;padding:1em 1em 1em 2em;position:relative;text-align:left}.jer-editor-container textarea{border:var(--jer-form-border);border-radius:.3em;color:var(--jer-input-color);outline:none}.jer-editor-container textarea:focus{border:var(--jer-form-border-focus)}.jer-editor-container input{border:var(--jer-form-border);border-radius:.3em;font-family:inherit;outline:none}.jer-editor-container input:focus{border:var(--jer-form-border-focus)}.jer-editor-container ::selection{background-color:var(--jer-highlight-color)}.jer-collection-header-row,.jer-value-main-row{align-items:center;display:flex;gap:.3em;min-height:1.7em}.jer-collection-header-row{display:flex;flex-wrap:wrap}.jer-collapse-icon{left:-1.2em;position:absolute;top:.35em}.jer-collection-inner{position:relative}.jer-collection-text-edit{align-items:flex-start;display:flex;flex-direction:column;gap:.3em;line-height:1.1em}.jer-collection-text-area{font-family:inherit;font-size:.85em;max-height:40em;overflow:hidden;padding:.2em .5em 0;resize:both}.jer-collection-input-button-row{display:flex;font-size:150%;justify-content:flex-end;margin-top:.4em;width:100%}.jer-collection-error-row{bottom:.5em;position:absolute}.jer-error-slug{margin-left:1em}.jer-value-component{position:relative}.jer-value-main-row{display:flex;gap:0}.jer-value-and-buttons{align-items:center;display:flex;justify-content:flex-start;padding-left:.5em}.jer-value-error-row{position:absolute}.jer-value-string{line-height:1.3em;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.jer-string-expansion{cursor:pointer;filter:saturate(50%);opacity:.6}.jer-show-less{font-size:80%}.jer-hyperlink{text-decoration:underline}.jer-input-text{font-family:inherit;font-size:.9em;height:1.4em;line-height:1.2em;margin:0;min-width:6em;overflow:hidden;padding:.25em .5em .2em;resize:none}.jer-input-boolean{margin-left:.3em;margin-right:.3em;transform:scale(1.5)}.jer-key-text{line-height:1.1em;white-space:pre-wrap;word-break:break-word}.jer-key-edit{font-size:inherit;font-size:.9em;padding:0 .3em}.jer-value-invalid{font-style:italic;opacity:.5}.jer-input-number{font-size:90%;min-width:3em}.jer-confirm-buttons,.jer-edit-buttons{align-items:center;cursor:pointer;display:flex;height:1em}.jer-input-buttons{gap:.4em}.jer-edit-buttons{gap:.4em;margin-left:.5em;opacity:0}.jer-confirm-buttons{gap:.2em;margin-left:.4em}.jer-edit-buttons:hover{opacity:1;position:relative}.jer-collection-header-row:hover>.jer-edit-buttons,.jer-value-and-buttons:hover>.jer-edit-buttons,.jer-value-main-row:hover>.jer-edit-buttons{opacity:1}.jer-copy-pulse{position:relative;transition:.3s}.jer-copy-pulse:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-copy-pulse:after{border-radius:50%;box-shadow:0 0 15px 5px var(--jer-icon-copy-color);content:"";display:block;height:100%;left:0;opacity:0;position:absolute;top:0;transition:all .5s;width:100%}.jer-copy-pulse:active:after{border-radius:4em;box-shadow:0 0 0 0 var(--jer-icon-copy-color);left:0;opacity:1;position:absolute;top:0;transition:0s}.jer-copy-pulse:active{top:.07em}.jer-rotate-90{transform:rotate(-90deg)}.jer-icon:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-empty-string{font-size:90%;font-style:italic}.jer-drag-n-drop-padding{border:1px dashed #e0e0e0;border-radius:.3em;height:.5em}.jer-clickzone{height:calc(100% - .8em);left:-1em;position:absolute;top:1.2em}',{});const Ce=({data:e,setData:t,rootName:i="root",onUpdate:a=()=>{},onEdit:r=a,onDelete:n=a,onAdd:o=a,onChange:s,onError:l,onEditEvent:c,showErrorMessages:d=!0,enableClipboard:p=!0,indent:u=2,collapse:m=!1,collapseAnimationTime:f=300,showCollectionCount:y=!0,restrictEdit:b=!1,restrictDelete:v=!1,restrictAdd:_=!1,restrictTypeSelection:x=!1,restrictDrag:S=!0,viewOnly:k,searchFilter:E,searchText:P,searchDebounceTime:A=350,keySort:D=!1,showArrayIndices:F=!0,arrayIndexFromOne:z=!1,showStringQuotes:B=!0,showIconTooltips:I=!1,defaultValue:R=null,newKeyOptions:L,minWidth:O=250,maxWidth:N="min(600px, 90vw)",rootFontSize:V,stringTruncate:H=250,translations:G={},className:W,id:$,customText:q={},customNodeDefinitions:U=[],customButtons:J=[],jsonParse:X=JSON.parse,jsonStringify:Y=(e,t)=>JSON.stringify(e,t,2),TextEditor:Z,errorMessageTimeout:Q=2500,keyboardControls:ee={},externalTriggers:te,insertAtTop:ie=!1,onCollapse:ae,collapseClickZones:re=["header","left"]})=>{const{getStyles:ne}=K(),{setCurrentlyEditingElement:oe}=M(),se=useMemo(()=>Se(m),[m]),le=useMemo(()=>Ee(G,q),[G,q]),[ce,de]=useState(P),[pe,ue]=(({setData:e,data:t})=>{const[i,a]=useState(e?void 0:t),r=useCallback(t=>{e?e(t):a(t)},[e]);return useEffect(()=>{e||a(t)},[t]),[e?t:i,r]})({setData:t,data:e}),he=useRef(null);useEffect(()=>{oe(null);const e=setTimeout(()=>de(P),A);return()=>clearTimeout(e)},[P,A]);const ge={key:i,path:[],level:0,index:0,value:pe,size:"object"==typeof pe&&null!==pe?Object.keys(pe).length:1,parentData:null,fullData:pe},fe=(e,t)=>g(void 0,void 0,void 0,function*(){const i=yield e(t);if(!0===i||void 0===i)return void ue(t.newData);const a=Te(i)?i:["error",i],[r,n]=a;if("error"===r)return ue(t.currentData),!1===n?le("ERROR_UPDATE",ge):String(n);ue(n)}),ye=useMemo(()=>Se(b,k),[b,k]),_e=useMemo(()=>Se(v,k),[v,k]),Ce=useMemo(()=>Se(_,k),[_,k]),we=useMemo(()=>Se(S,k),[S,k]),Pe=useMemo(()=>Ne(E),[E]),Ae=useMemo(()=>(e=>{const t=Object.assign({},C);for(const i of Object.keys(C)){const a=i;if(e[a]){const r=e[a],n=["clipboardModifier","collapseModifier"].includes(i)?Array.isArray(r)?r:[r]:"string"==typeof r?{key:r}:r;t[a]=n,["stringConfirm","numberConfirm","booleanConfirm"].forEach(i=>{!e[i]&&e.confirm&&(t[i]=t.confirm)})}}return t})(ee),[ee]),De=useCallback((e,t)=>((e,t,i)=>{const a=Object.entries(t);for(const[t,r]of a)if(w(i,e[t],t)){i.preventDefault(),r();break}})(Ae,t,e),[Ae]),Fe=useMemo(()=>{const e=xe(U,"stringifyReplacer");return t=>Y(t,e)},[U,Y]),Me=useMemo(()=>{const e=xe(U,"parseReviver");return t=>{const i=X(t,e);return T(i)}},[U,X]),ze=useRef(null);((e,t)=>{const{setCurrentlyEditingElement:i,currentlyEditingElement:a,setCollapseState:r}=M();useEffect(()=>{if(!e)return;const{collapse:n,edit:o}=e;n&&r(n);const s=!(null==o?void 0:o.path)||j(o.path)===a;switch(null==o?void 0:o.action){case"accept":s&&(t.current&&t.current.click(),i(null));break;case"cancel":s&&i(null);break;default:(null==o?void 0:o.path)&&i(o.path)}},[e])})(te,ze);const je=useCallback((e,t)=>{!1!==D&&("function"!=typeof D?e.sort((e,i)=>{const a=t(e)[0],r=t(i)[0];return a<r?-1:a>r?1:0}):e.sort((e,i)=>D(t(e),t(i))))},[D]),Be=be(U,ge),Ie={mainContainerRef:he,name:i,nodeData:ge,onEdit:(e,t)=>g(void 0,void 0,void 0,function*(){const{currentData:i,newData:a,currentValue:n,newValue:o}=ke(pe,t,e,"update");if(n!==o)return yield fe(r,{currentData:i,newData:a,currentValue:n,newValue:o,name:t.slice(-1)[0],path:t})}),onDelete:(e,t)=>g(void 0,void 0,void 0,function*(){const{currentData:i,newData:a,currentValue:r,newValue:o}=ke(pe,t,e,"delete");return yield fe(n,{currentData:i,newData:a,currentValue:r,newValue:o,name:t.slice(-1)[0],path:t})}),onAdd:(e,t,i)=>g(void 0,void 0,void 0,function*(){const{currentData:a,newData:r,currentValue:n,newValue:s}=ke(pe,t,e,"add",i);return yield fe(o,{currentData:a,newData:r,currentValue:n,newValue:s,name:t.slice(-1)[0],path:t})}),onChange:s,onError:l,onEditEvent:c,showErrorMessages:d,onMove:(e,t,i)=>g(void 0,void 0,void 0,function*(){if(null===e)return;const{currentData:a,newData:n,currentValue:o}=ke(pe,e,"","delete"),s=e.slice(-1)[0],l=t.slice(0,-1),c=t.slice(-1)[0];let d="number"==typeof c?"above"===i?c:c+1:"number"==typeof s?`arr_${s}`:s;e.slice(0,-1).join(".")===t.slice(0,-1).join(".")&&"number"==typeof s&&"number"==typeof d&&s<d&&(d-=1);const p="number"==typeof d?{insert:!0}:"above"===i?{insertBefore:c}:{insertAfter:c},{newData:u,newValue:h}=ke(n,[...l,d],o,"add",p);return yield fe(r,{currentData:a,newData:u,currentValue:o,newValue:h,name:t.slice(-1)[0],path:t})}),showCollectionCount:y,collapseFilter:se,collapseAnimationTime:f,restrictEditFilter:ye,restrictDeleteFilter:_e,restrictAddFilter:Ce,restrictTypeSelection:x,restrictDragFilter:we,canDragOnto:!1,searchFilter:Pe,searchText:ce,enableClipboard:p,keySort:D,sort:je,showArrayIndices:F,arrayIndexFromOne:z,showStringQuotes:B,showIconTooltips:I,indent:u,defaultValue:R,newKeyOptions:L,stringTruncate:H,translate:le,customNodeDefinitions:U,customNodeData:Be,customButtons:J,parentData:null,jsonParse:Me,jsonStringify:Fe,TextEditor:Z,errorMessageTimeout:Q,handleKeyboard:De,keyboardControls:Ae,insertAtTop:{object:!0===ie||"object"===ie,array:!0===ie||"array"===ie},onCollapse:ae,editConfirmRef:ze,collapseClickZones:re},Re=Object.assign(Object.assign({},ne("container",ge)),{minWidth:O,maxWidth:N});return Re.fontSize=null!=V?V:Re.fontSize,jsx("div",{id:$,ref:he,className:`jer-editor-container ${null!=W?W:""}`,style:Re,children:h(pe)&&!Be.renderCollectionAsValue?jsx(ve,Object.assign({data:pe},Ie)):jsx(me,Object.assign({data:pe,showLabel:!0},Ie))})},Oe=e=>{var t;const[i,a]=useState();return useEffect(()=>{const e=document.documentElement;a(e)},[]),i?jsx(R,{theme:null!==(t=e.theme)&&void 0!==t?t:A,icons:e.icons,docRoot:i,children:jsx(z,{onEditEvent:e.onEditEvent,onCollapse:e.onCollapse,children:jsx(Ce,Object.assign({},e))})}):null},ke=(e,t,i,a,n={})=>{if(0===t.length)return{currentData:e,newData:i,currentValue:e,newValue:i};const s=Object.assign({remove:"delete"===a},n),l="add"!==a?r(e,t):void 0;return{currentData:e,newData:o(e,t,i,s),currentValue:l,newValue:"delete"!==a?i:void 0}},Se=(e,t)=>t?()=>!0:"boolean"==typeof e?()=>e:"number"==typeof e?({level:t})=>t>=e:e,Ne=e=>{if(void 0!==e)return"value"===e?b:"key"===e?v:"all"===e?(e,t)=>b(e,t)||v(e,t):e},Te=e=>Array.isArray(e)&&2===e.length&&["error","value"].includes(e[0]),xe=(e,t)=>{const i="stringifyReplacer"===t?[e=>void 0===e?x:e]:[];if(i.push(...e.map(e=>e[t]).filter(e=>!!e)),0!==i.length)return(e,t)=>{let a=t;for(const e of i)a=e(a);return a}};function LocalicationModal({data:e,onChange:t,onClose:i}){const a=e??{};return jsxs(Modal,{onClose:i,ariaLabelledBy:"localication-modal-title",className:"modal--large modal--scrollable localication-modal",contentClassName:"localication-modal__content",children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"localication-modal-title",className:"modal__title",children:"Localization data"}),jsx("p",{className:"localication-modal__description",children:"Manage your translations directly from the JSON structure."})]}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsx("div",{className:"localication-modal__body",children:jsx("div",{className:"localication-modal__editor",children:jsx(Oe,{rootName:"localication",data:a,setData:e=>t(e),className:"localication-modal__json-editor",maxWidth:"100%"})})})]})}function PreviewTab({}){useLogRender("PreviewTab");const{appConfig:e,setAppConfig:t}=useRenderStore(e=>({appConfig:e.appConfig,setAppConfig:e.setAppConfig})),[i,a]=useState(!1),r=useCallback(i=>{t({...e,localication:i})},[e,t]);return jsxs("div",{role:"tabpanel",className:"editor-panel editor-panel--active","aria-hidden":!1,children:[jsxs("div",{style:{padding:12},children:[jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12},children:[jsx("div",{children:"Default Language"}),jsx("select",{value:e.defaultLanguage??"en",onChange:i=>{t({...e,defaultLanguage:i.target.value})},children:Object.keys(e.localication??{}).map(e=>jsx("option",{value:e,children:e},e))})]}),jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:12,marginTop:8},children:[jsx("div",{children:"Light Background Color"}),jsx("input",{type:"color",value:e.screenStyle?.light.backgroundColor??"#FDFDFD",onChange:i=>{const a={...e.screenStyle,light:{...e.screenStyle?.light??{color:"#161827"},backgroundColor:i.target.value}};t({...e,screenStyle:a})},className:"input input--color"}),jsx("div",{children:"Light Color"}),jsx("input",{type:"color",value:e.screenStyle?.light.color??"#161827",onChange:i=>{const a={...e.screenStyle,light:{...e.screenStyle?.light??{backgroundColor:"#FDFDFD"},color:i.target.value}};t({...e,screenStyle:a})},className:"input input--color"}),jsx("div",{children:"Dark Background Color"}),jsx("input",{type:"color",value:e.screenStyle?.dark.backgroundColor??"#12131A",onChange:i=>{const a={...e.screenStyle,dark:{...e.screenStyle?.dark??{color:"#E9EBF9"},backgroundColor:i.target.value}};t({...e,screenStyle:a})},className:"input input--color"}),jsx("div",{children:"Dark Color"}),jsx("input",{type:"color",value:e.screenStyle?.dark.color??"#E9EBF9",onChange:i=>{const a={...e.screenStyle,dark:{...e.screenStyle?.dark??{backgroundColor:"#12131A"},color:i.target.value}};t({...e,screenStyle:a})},className:"input input--color"})]}),jsx("div",{style:{marginTop:8},children:jsx(Checkbox,{label:"Dark Mode",checked:"dark"===e.theme,onChange:i=>{const a=i?"dark":"light";t({...e,theme:a})}})}),jsx("div",{style:{marginTop:8},children:jsx(Checkbox,{label:"Is RTL",checked:e.isRtl??!1,onChange:i=>{t({...e,isRtl:i})}})}),jsxs("div",{style:{marginTop:16,display:"flex",flexDirection:"column",gap:8},children:[jsx("div",{style:{fontWeight:600},children:"Localization"}),jsx("p",{style:{margin:0,fontSize:13,color:"#4b5563"},children:"Manage translations for each language configured in your preview."}),jsx("button",{type:"button",className:"editor-button",onClick:()=>a(!0),children:"Open localization editor"})]})]}),i?jsx(LocalicationModal,{data:e.localication??{},onChange:r,onClose:()=>a(!1)}):null]})}function DebugTab({data:e,setData:t}){useLogRender("DebugTab");const[i,a]=useState(!1);return jsxs(Fragment,{children:[jsx("button",{type:"button",className:"editor-button debug-button",title:"Inspect raw JSON data",onClick:()=>a(!0),children:"Debug JSON"}),i?jsxs(Modal,{onClose:()=>a(!1),ariaLabelledBy:"debug-json-editor-title",className:"modal--large modal--scrollable",contentClassName:"localication-modal__content",children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"debug-json-editor-title",className:"modal__title",children:"Debug data"}),jsx("p",{className:"localication-modal__description",children:"Inspect and edit the current node tree using the JSON editor."})]}),jsx("button",{type:"button",className:"editor-button",onClick:()=>a(!1),children:"Close"})]}),jsx("div",{className:"localication-modal__body",children:jsx("div",{className:"localication-modal__editor",children:jsx(Oe,{rootName:"debug",data:e,setData:t,className:"localication-modal__json-editor",maxWidth:"100%"})})})]}):null]})}var backgroundImage="background.jpg";function ProjectPage({project:e,appConfig:t=defaultAppConfig,onSaveProject:i,logLevel:a}){useLogRender("ProjectPage");const[r,n]=useState(e.data),[o,s]=useState(e.data),[l,c]=useState("builder");return useEffect(()=>(logger.info("ProjectPage","mount",{projectName:e.name}),useRenderStore.getState().setAppConfig(t),logger.verbose("ProjectPage","appConfig applied",t),()=>{logger.info("ProjectPage","unmount")}),[t,e.name]),useEffect(()=>{a&&logger.setLevel(a)},[a]),jsxs("div",{className:"container-full",children:[jsx(EditorHeader,{onSaveProject:()=>{logger.info("ProjectPage","save project",{name:e.name}),i({...e,data:o})},onRestoreProject:()=>{logger.info("ProjectPage","restore project",{name:e.name}),s(e.data),n(e.data)},current:r,editorData:o,setEditorData:s}),jsxs("div",{className:"editor-container",children:[jsx("div",{className:"split-left",children:jsxs("div",{children:[jsxs("div",{className:"editor-tabs",role:"tablist","aria-label":"Editor tabs",children:[jsx("button",{className:"editor-tab "+("builder"===l?"editor-tab--active":""),role:"tab","aria-selected":"builder"===l,onClick:()=>{c("builder"),logger.info("ProjectPage","tab change",{to:"builder"})},children:jsx("span",{className:"editor-tab__label",children:"Builder"})}),jsx("button",{className:"editor-tab "+("preview"===l?"editor-tab--active":""),role:"tab","aria-selected":"preview"===l,onClick:()=>{c("preview"),logger.info("ProjectPage","tab change",{to:"preview"})},children:jsx("span",{className:"editor-tab__label",children:"Preview Config"})})]}),"builder"===l&&jsx(BuilderTab,{data:o,setData:s,current:r,setCurrent:n}),"preview"===l&&jsx(PreviewTab,{})]})}),jsxs("div",{className:"split-right",children:[jsx("div",{className:"split-right__controls",children:jsx(DebugTab,{data:o,setData:s})}),jsx("div",{className:"split-right-background",style:{backgroundImage:`url(${backgroundImage})`}}),jsx(RenderPage,{data:o,name:e.name})]}),jsx("div",{className:"split-third",children:jsx(AttributesEditorPanel,{current:r,attributes:o,onChange:e=>{let t;s(e),e&&"object"==typeof e&&!Array.isArray(e)&&"key"in e&&(t=e.key),logger.verbose("ProjectPage","attributes change",t?{nodeKey:t}:void 0)},setCurrent:n})})]})]})}function copyNode(e){const{setCopiedNode:t}=useRenderStore.getState();t(e)}export{AttributesEditor$1 as AttributesEditor,DeviceMockFrame,ProjectPage,RenderNode$1 as RenderNode,RenderPage,allcomponentNames,analyseNode,copyNode,extractImageStyle,extractTextStyle,extractViewStyle,getBasicSamples,getDefaultDevice,getDevices,getOnboardSamples,getSamples,isEmptyObject,isNodeArray,isNodeNullOrUndefined,isNodeString,logger,novaToJson,patterns$1 as patterns,querySelector,useNode};
31
31
  //# sourceMappingURL=index.esm.js.map