@developer_tribe/react-builder 1.2.26 → 1.2.27

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.
@@ -29,5 +29,5 @@
29
29
  //! moment.js
30
30
  i.version="2.30.1",n(Yr),i.fn=lo,i.min=Xr,i.max=Qr,i.now=ei,i.utc=g,i.unix=co,i.months=yo,i.isDate=p,i.locale=gr,i.invalid=C,i.duration=Ri,i.isMoment=w,i.weekdays=bo,i.parseZone=po,i.localeData=yr,i.isDuration=ai,i.monthsShort=Co,i.weekdaysMin=vo,i.defineLocale=mr,i.updateLocale=fr,i.locales=Cr,i.weekdaysShort=xo,i.normalizeUnits=re,i.relativeTimeRounding=na,i.relativeTimeThreshold=oa,i.calendarFormat=Ni,i.prototype=lo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()),moment$2.exports;var e}var momentExports=requireMoment(),moment=getDefaultExportFromCjs(momentExports);function formatCountdownTime(e,t,r=Date.now()){const i=Math.max(0,e-r);return moment(i).format(t)}const PaywallContext=React.createContext(void 0);function usePaywallContext(){return React.useContext(PaywallContext)??{products:[],setSelectedProductId:()=>{},onCounterDown:()=>{},isBackAllowed:!0}}const DEFAULT_FORMAT="m : s";function CountDown({node:e}){useLogRender("CountDown"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"CountDown",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),{onCounterDown:a}=usePaywallContext(),s=React.useRef(a),l=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),c=e.attributes?.count,d="number"==typeof c&&Number.isFinite(c)?Math.max(0,c):0,[p,u]=React.useState("");React.useEffect(()=>{s.current=a},[a]),React.useEffect(()=>{const e=Date.now()+d;if(u(formatCountdownTime(e,DEFAULT_FORMAT)),d<=0)return;const t=setInterval(()=>{const r=Date.now(),i=e-r;u(formatCountdownTime(e,DEFAULT_FORMAT,r)),i<=0&&(clearInterval(t),s.current?.())},950);return()=>{clearInterval(t)}},[d]);const h=5*("number"==typeof l?.fontSize?l.fontSize:"string"==typeof l?.fontSize?parseFloat(l.fontSize):16)*.6+4*("number"==typeof l?.letterSpacing?l.letterSpacing:"string"==typeof l?.letterSpacing?parseFloat(l.letterSpacing):0);return jsxRuntime.jsx("p",{"attribute-name":r,"attribute-key":i,style:{...l,width:h,textAlign:"left",alignItems:"left",alignSelf:"center"},children:p})}function extractImageStyle(e,t={}){const r=e.attributes,i={};if(!r)return i;const n=getStyleBag(r),o=n?.resizeMode;return"cover"===o?i.objectFit="cover":"contain"===o?i.objectFit="contain":"stretch"===o?i.objectFit="fill":"center"===o&&(i.objectFit="none"),{...extractViewStyle(e,t),...i}}function extractImageStyleNative(e,t={}){const r=e.attributes;if(!r)return{};const i=getStyleBag(r),n=i?.resizeMode,o={};return n&&(o.resizeMode=n),{...extractViewStyleNative(e,t),...o}}function useExtractImageStyle$1(e){const{appConfig:t,projectColors:r}=useBuilderParams(),i=t?.theme??defaultAppConfig.theme,n=r;return React.useMemo(()=>extractImageStyle(e,{theme:i,projectColors:n}),[e,i,n])}function Image$1({node:e}){useLogRender("Image"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"image",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useExtractImageStyle$1(e),s=e.attributes?.src,l=useMergedStyle(a,isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsxRuntime.jsx("img",{"attribute-name":r,"attribute-key":i,src:resolveImageSrc(s),style:{...l,width:"auto",maxWidth:"100%"},alt:""},e.key+(s??"-"))}var Image$2=React.memo(Image$1);function addInset(e,t){return t?void 0===e?t:"number"==typeof e?e+t:"string"==typeof e&&e.trim()?`calc(${e.trim()} + ${t}px)`:t:e}function subtractInset(e,t){return t?void 0===e?`calc(100% - ${t}px)`:"number"==typeof e?Math.max(0,e-t):"string"==typeof e&&e.trim()?`calc(${e.trim()} - ${t}px)`:`calc(100% - ${t}px)`:e}function useSafeAreaViewStyle(e,t,r){return React.useMemo(()=>{if(!t)return e;const[r,i,,n]=[0,0,0,0],o=r||0,a=i??0,s=n??0,l=s+a,c=o+0;return{...e,marginTop:addInset(e.marginTop,o),marginRight:addInset(e.marginRight,a),marginBottom:addInset(e.marginBottom,0),marginLeft:addInset(e.marginLeft,s),width:subtractInset(e.width??"100%",l),height:subtractInset(e.height??"100%",c)}},[t,e,r])}function Main({node:e}){useLogRender("Main"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"Main",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useSafeAreaViewStyle(useExtractViewStyle$1(e),e.attributes?.useSafeAreaView??!0),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsxRuntime.jsx(RenderNode$1,{node:e.children})})}var Main$1=React.memo(Main);function NavigationBarColor({node:e}){useLogRender("NavigationBarColor"),e=useNode(e);const{appConfig:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setNavBarOverrideColor),n=getStyleBag(e.attributes)?.backgroundColor,o=parseColor(n,{projectColors:r,theme:t?.theme});return React.useEffect(()=>(o&&i(o),()=>{i(null)}),[o,i]),null}var NavigationBarColor$1=React.memo(NavigationBarColor);function Onboard({node:e}){useLogRender("Onboard");const t=(e=useNode(e)).type??"Onboard";return jsxRuntime.jsx(Carousel$1,{node:{...e,type:"carousel",sourceType:t}})}var Onboard$1=React.memo(Onboard);function OnboardButton({node:e}){useLogRender("OnboardButton");const t=(e=useNode(e)).sourceType??e.type??"OnboardButton",{emblaApi:r}=React.useContext(onboardContext)??{},{appConfig:i,projectColors:n}=useBuilderParams(),o=i?.theme,a=useMockOSContext(),s=useMockPermission(a),l=React.useRef([]),c=React.useId(),d=e.key??c,p=e.attributes,u=toAttributeRecord(p),h=getStyleBag(p),g=p?.labelKey??"",m=useLocalize({appConfig:i})(g),f=u.flex??h?.flex??1,y=u.button_text_color??h?.button_text_color,C=u.button_background_color??h?.button_background_color,b=parseColor(y,{projectColors:n,theme:o})??"#FFFFFF",x=parseColor(C,{projectColors:n,theme:o})??"#0066FF",v=useExtractViewStyle$1(e);return jsxRuntime.jsx("button",{"attribute-name":t,"attribute-key":d,onClick:()=>{const e=p?.events??[];for(const t of e)if(!l.current.includes(t))if("Permission"===t.type){const e=t.permission??"camera";s.requestPermission(e),l.current.push(t)}else if("Navigate"===t.type){const e=t.targetIndex;if("number"==typeof e)r?.scrollTo(e),l.current.push(t);else if(t.navigate_to){const e=t.navigate_to;"string"==typeof e&&(l.current.push(t),a?a.navigation(e):alert("Mock OS context not available for navigation."))}}},style:{...v,flex:f,color:b,backgroundColor:x,border:"none",display:"flex",justifyContent:"center",cursor:"pointer"},children:m})}var OnboardButton$1=React.memo(OnboardButton);function OnboardButtons({node:e}){useLogRender("OnboardButtons");const t=(e=useNode(e)).sourceType??e.type??"OnboardButtons",{previewMode:r,selectedKey:i}=useBuilderParams(),n=React.useContext(onboardContext)??{},[o,a]=React.useState(n.selectedIndex??0);React.useEffect(()=>{"number"==typeof n.selectedIndex&&a(n.selectedIndex)},[n.selectedIndex]);const s=toAttributeRecord(e.attributes),l=getStyleBag(e.attributes),c=React.useMemo(()=>{const t=e.children;return Array.isArray(t)?t:[t]},[e.children]),d=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!r,current:i?{key:i}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),p=React.useId(),u=s.condition??l?.condition,h=s.conditionVariable??l?.conditionVariable;return"carousel-index"===u&&"number"==typeof h&&h!==o?null:jsxRuntime.jsx("div",{"attribute-name":t,"attribute-key":e.key??p,style:{...d,boxSizing:"border-box"},children:c.map((e,t)=>jsxRuntime.jsx(RenderNode$1,{node:e},e?.key??t))})}var OnboardButtons$1=React.memo(OnboardButtons);function OnboardDot({node:e}){useLogRender("OnboardDot"),e=useNode(e);const t=React.useId(),r=e.type??"OnboardDot",i=e.key??t,n=e.attributes,o=toAttributeRecord(n),a=getStyleBag(n),s=a?.dotType??o.dotType??"normal_dot",{previewMode:l,selectedKey:c,appConfig:d,projectColors:p}=useBuilderParams(),u=d??defaultAppConfig,h="dark"===u.theme?"#E4E5E7":"#F7F7F9",g=a?.inactive_dot_opacity??o.inactive_dot_opacity??.3,m=a?.inactive_dot_color??o.inactive_dot_color,f=a?.active_dot_color??o.active_dot_color,y=React.useMemo(()=>parseColor(f,{theme:u.theme,projectColors:p}),[f,u.theme,p]),C=React.useMemo(()=>parseColor(m,{theme:u.theme,projectColors:p})??h,[h,m,u.theme,p]),b=useExtractViewStyle$1(e),x=useMergedStyle(React.useMemo(()=>{const{flexDirection:e,...t}=b;return t},[b]),isNodeSelected({previewMode:!!l,current:c?{key:c}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),v=a?.dot_thickness??o.dot_thickness,S=React.useMemo(()=>{const e=parseSize(v);return void 0===e?"10px":"number"==typeof e?`${e}px`:"string"==typeof e&&e.trim()?e:"10px"},[v]),w=React.useMemo(()=>{const e="string"==typeof S&&S.trim().endsWith("px")?Number.parseFloat(S):Number.NaN,t=Number.isFinite(e)?e:10;return`${Math.max(0,t/3)}px`},[S]),k=useMergedStyle(x,{display:"flex",flexWrap:"wrap",gap:x.gap??w,alignItems:"center"}),_=React.useContext(onboardContext),T=_?.emblaApi,[R,M]=React.useState(0),[E,O]=React.useState([]);return React.useEffect(()=>{if(!T)return;const e=T.scrollSnapList(),t=T.selectedScrollSnap();O(e),M(t);const r=()=>{const e=T.selectedScrollSnap();M(e)};return T.on("select",r),()=>{T&&T.off&&T.off("select",r)}},[T]),jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,className:`embla__dots embla__dots--${s}`,style:k,children:E.map((e,t)=>{const r=R===t,i=(r&&y?y:C)??"#007AFF";return jsxRuntime.jsx("button",{className:"embla__dot",style:{width:S,height:S,backgroundColor:i,opacity:r?1:g,borderRadius:"9999px",border:0,padding:0,margin:0,display:"inline-block",cursor:"pointer",boxSizing:"border-box"},"aria-label":`Go to slide ${t+1}`,"aria-current":r?"true":void 0},t)})})}var OnboardDot$1=React.memo(OnboardDot);function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments(e,t){const r=[];for(const i of t){if(!i.value)continue;const t=new RegExp(escapeRegExp(i.value),"gi");for(const n of e.matchAll(t)){if(null==n.index)continue;const e=n[0];e&&r.push({start:n.index,end:n.index+e.length,value:e,color:i.color,page:i.page})}}if(0===r.length)return{segments:[{type:"text",value:e}],matchCount:0};r.sort((e,t)=>{if(e.start!==t.start)return e.start-t.start;const r=e.end-e.start;return t.end-t.start-r});const i=[];let n=-1;for(const e of r)e.start>=n&&(i.push(e),n=e.end);const o=[];let a=0;for(const{start:t,end:r,value:n,color:s,page:l}of i)t>a&&o.push({type:"text",value:e.slice(a,t)}),o.push({type:"match",value:n,color:s,page:l}),a=r;return a<e.length&&o.push({type:"text",value:e.slice(a)}),{segments:o,matchCount:i.length}}function OnboardFooter({node:e}){useLogRender("OnboardFooter");const t=(e=useNode(e)).sourceType??e.type??"OnboardFooter",{appConfig:r,previewMode:i,selectedKey:n,projectColors:o}=useBuilderParams(),a=r??defaultAppConfig,s=o,{localication:l,defaultLanguage:c,theme:d}=a,p=e=>e?l?.[c??"en"]?.[e]??e:"",u=e?.attributes,h=toAttributeRecord(u),g=getStyleBag(u),m=p(u?.textLocalizationKey),f=useExtractTextStyle$1(e,!0),y=useExtractViewStyle$1(e),C=h.linkedWordFirstColor??g?.linkedWordFirstColor,b=h.linkedWordSecondColor??g?.linkedWordSecondColor,x=React.useMemo(()=>parseColor(C,{projectColors:s,theme:d}),[C,s,d]),v=React.useMemo(()=>parseColor(b,{projectColors:s,theme:d}),[b,s,d]),S=useMergedStyle(f,{cursor:"pointer"}),w=useMergedStyle(y,isNodeSelected({previewMode:!!i,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),k=React.useId(),_=e.key??k;return jsxRuntime.jsx("div",{"attribute-name":t,"attribute-key":_,style:w,children:!!m&&(()=>{const e=p(u?.linkedWordFirstLocalizationKey),t=p(u?.linkedWordSecondLocalizationKey),{segments:r,matchCount:i}=buildSegments(m,[{value:e,color:x,page:u?.linkedWordFirstPage},{value:t,color:v,page:u?.linkedWordSecondPage}]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.map((e,t)=>"text"===e.type?jsxRuntime.jsx("span",{style:S,children:e.value},t):jsxRuntime.jsx("span",{style:{...S,color:e.color},onClick:()=>{e.page},children:e.value},t)),0===i&&jsxRuntime.jsxs("div",{children:[u?.linkedWordFirstLocalizationKey&&jsxRuntime.jsx("span",{style:{...S,color:x},onClick:()=>{},children:e}),u?.linkedWordSecondLocalizationKey&&jsxRuntime.jsx("span",{style:{...S,color:v},onClick:()=>{},children:t})]})]})})()})}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(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,i,n=e.length;for(r=0;r<n;r+=1)for(var o in i=e[r].prototype)Object.prototype.hasOwnProperty.call(i,o)&&(t.prototype[o]=i[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,i=0,n=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<t;i+=1)n.push(r);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),i=e.length;for(t=0;t<i;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var i,n,o,a,s,l,c,d;switch(l=r*(1-t),c=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),d=r*(1-(1-s)*t),a%6){case 0:i=r,n=d,o=l;break;case 1:i=c,n=r,o=l;break;case 2:i=l,n=r,o=d;break;case 3:i=l,n=c,o=r;break;case 4:i=d,n=l,o=r;break;case 5:i=r,n=l,o=c}return[i,n,o]}function RGBtoHSV(e,t,r){var i,n=Math.max(e,t,r),o=Math.min(e,t,r),a=n-o,s=0===n?0:a/n,l=n/255;switch(n){case o:i=0;break;case e:i=t-r+a*(t<r?6:0),i/=6*a;break;case t:i=r-e+2*a,i/=6*a;break;case r:i=e-t+4*a,i/=6*a}return[i,s,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,i){return e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),"#"+r[e]+r[t]+r[i]}}(),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,r=1,i=[],n={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){n.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return e=t,n}(function(e){if(o.dataManager||(o.dataManager=function(){function e(n,o){var a,s,l,c,d,u,h=n.length;for(s=0;s<h;s+=1)if("ks"in(a=n[s])&&!a.completed){if(a.completed=!0,a.hasMask){var g=a.masksProperties;for(c=g.length,l=0;l<c;l+=1)if(g[l].pt.k.i)i(g[l].pt.k);else for(u=g[l].pt.k.length,d=0;d<u;d+=1)g[l].pt.k[d].s&&i(g[l].pt.k[d].s[0]),g[l].pt.k[d].e&&i(g[l].pt.k[d].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&p(a)}}function t(e,t){var r=function(e,t){for(var r=0,i=t.length;r<i;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,n,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)i(e[t].ks.k);else for(o=e[t].ks.k.length,n=0;n<o;n+=1)e[t].ks.k[n].s&&i(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&i(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function i(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function n(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var o,a=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function r(e){var r,i=e.length;for(r=0;r<i;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),s=(o=[4,7,99],function(e){if(e.chars&&!n(o,e.v)){var t,i=e.chars.length;for(t=0;t<i;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t=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 r(e){var r,i=e.length;for(r=0;r<i;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var r,i,n,o=e.length;for(r=0;r<o;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(n=e[r].c.k.length,i=0;i<n;i+=1)e[r].c.k[i].s&&(e[r].c.k[i].s[0]/=255,e[r].c.k[i].s[1]/=255,e[r].c.k[i].s[2]/=255,e[r].c.k[i].s[3]/=255),e[r].c.k[i].e&&(e[r].c.k[i].e[0]/=255,e[r].c.k[i].e[1]/=255,e[r].c.k[i].e[2]/=255,e[r].c.k[i].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,i=e.length;for(r=0;r<i;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),d=function(){var e=[4,4,18];function t(e){var r,i,n;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(n=e[r].ks.k.length,i=0;i<n;i+=1)e[r].ks.k[i].s&&(e[r].ks.k[i].s[0].c=e[r].closed),e[r].ks.k[i].e&&(e[r].ks.k[i].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,i,n,o,a,s,l=e.length;for(i=0;i<l;i+=1){if((r=e[i]).hasMask){var c=r.masksProperties;for(o=c.length,n=0;n<o;n+=1)if(c[n].pt.k.i)c[n].pt.k.c=c[n].cl;else for(s=c[n].pt.k.length,a=0;a<s;a+=1)c[n].pt.k[a].s&&(c[n].pt.k[a].s[0].c=c[n].cl),c[n].pt.k[a].e&&(c[n].pt.k[a].e[0].c=c[n].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(n(e,t.v)&&(r(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}();function p(e){0===e.t.a.length&&e.t.p}var u={completeData:function(r){r.__complete||(c(r),a(r),s(r),l(r),d(r),e(r.layers,r.assets),function(r,i){if(r){var n=0,o=r.length;for(n=0;n<o;n+=1)1===r[n].t&&(r[n].data.layers=t(r[n].data.refId,i),e(r[n].data.layers,i))}}(r.chars,r.assets),r.__complete=!0)}};return u.checkColors=c,u.checkChars=s,u.checkPathProperties=l,u.checkShapes=d,u.completeLayers=e,u}()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,i,n){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),i(o);else try{o=e(a),i(o)}catch(e){n&&n(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,r=t.id,n=i[r];i[r]=null,"success"===t.status?n.onComplete(t.payload):n.onError&&n.onError()})}function s(e,t){var n="processId_"+(r+=1);return i[n]={onComplete:e,onError:t},n}return{loadAnimation:function(e,r,i){a();var n=s(r,i);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(e,r,i){a();var n=s(r,i);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(e,r,i){a();var n=s(r,i);t.postMessage({type:"complete",animation:e,id:n})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(e,t,r){var i="";if(e.e)i=e.p;else if(t){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),i=t+n}else i=r,i+=e.u?e.u:"",i+=e.p;return i}function n(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},r=i(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var i=e.length;for(r=0;r<i;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=i(t,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),n.src=r;var o={img:n,assetData:t};return o},createImageData:function(t){var r=i(t,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var o={img:n,assetData:t};return o},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],i=0;i<r.length;i+=1)r[i](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,i=this._cbs[e].length;r<i;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,i-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),i={},n=0,o=0;o<r.length;o+=1)2===(t=r[o].split(":")).length&&(i[t[0]]=t[1].trim(),n+=1);if(0===n)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var n=t[i],o={time:n.tm,duration:n.dr};try{o.payload=JSON.parse(t[i].cm)}catch(r){try{o.payload=e(t[i].cm)}catch(e){o.payload={name:t[i].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===n?r.loop=!1:"true"===n?r.loop=!0:""!==n&&(r.loop=parseInt(n,10));var o=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,i=this.animationData.layers,n=i.length,o=e.layers,a=o.length;for(r=0;r<a;r+=1)for(t=0;t<n;){if(i[t].id===o[r].id){i[t]=o[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,t=0;t<n;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,i="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var i=Number(e);if(isNaN(i)){var n=this.getMarkerData(e);n&&this.goToAndStop(n.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var i=Number(e);if(isNaN(i)){var n=this.getMarkerData(e);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,i=0,n=0,o=!0,a=!1;function s(e){for(var r=0,n=e.target;r<i;)t[r].animation===n&&(t.splice(r,1),r-=1,i-=1,n.isPaused||d()),r+=1}function l(e,r){if(!e)return null;for(var n=0;n<i;){if(t[n].elem===e&&null!==t[n].elem)return t[n].animation;n+=1}var o=new AnimationItem;return p(o,e),o.setData(e,r),o}function c(){n+=1,g()}function d(){n-=1}function p(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",d),t.push({elem:r,animation:e}),i+=1}function u(e){var s,l=e-r;for(s=0;s<i;s+=1)t[s].animation.advanceTime(l);r=e,n&&!a?window.requestAnimationFrame(u):o=!0}function h(e){r=e,window.requestAnimationFrame(u)}function g(){!a&&n&&o&&(window.requestAnimationFrame(h),o=!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,r){var n;for(n=0;n<i;n+=1)t[n].animation.setSpeed(e,r)},e.setDirection=function(e,r){var n;for(n=0;n<i;n+=1)t[n].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var i,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=n.length;for(i=0;i<o;i+=1)r&&n[i].setAttribute("data-bm-type",r),l(n[i],e);if(t&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<i;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,n){var o;for(o=0;o<i;o+=1)t[o].animation.goToAndStop(e,r,n)},e.destroy=function(e){var r;for(r=i-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,g()},e.setVolume=function(e,r){var n;for(n=0;n<i;n+=1)t[n].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i.push(t[e].animation);return i},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,i,n,o){var a=o||("bez_"+e+"_"+r+"_"+i+"_"+n).replace(/\./g,"p");if(t[a])return t[a];var s=new d([e,r,i,n]);return t[a]=s,s}},t={},r=11,i=1/(r-1),n="function"==typeof Float32Array;function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((o(t,r)*e+a(t,r))*e+s(t))*e}function c(e,t,r){return 3*o(t,r)*e*e+2*a(t,r)*e+s(t)}function d(e){this._p=e,this._mSampleValues=n?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(e){var t=this._p[0],r=this._p[1],i=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),t===r&&i===n?e:0===e?0:1===e?1:l(this._getTForX(e),r,n)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,e===t&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<r;++n)this._mSampleValues[n]=l(n*i,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],o=this._mSampleValues,a=0,s=1,d=r-1;s!==d&&o[s]<=e;++s)a+=i;var p=a+(e-o[--s])/(o[s+1]-o[s])*i,u=c(p,t,n);return u>=.001?function(e,t,r,i){for(var n=0;n<4;++n){var o=c(t,r,i);if(0===o)return t;t-=(l(t,r,i)-e)/o}return t}(e,p,t,n):0===u?p:function(e,t,r,i,n){var o,a,s=0;do{(o=l(a=t+(r-t)/2,i,n)-e)>0?r=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,a,a+i,t,n)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var i=0,n=e,o=createSizedArray(n);return{newElement:function(){return i?o[i-=1]:t()},release:function(e){i===n&&(o=pooling.double(o),n*=2),r&&r(e),o[i]=e,i+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,r,i,n,o){var a=e*i+t*n+r*o-n*i-o*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,i){var n,o,a,s,l,c,d=getDefaultCurveSegments(),p=0,u=[],h=[],g=bezierLengthPool.newElement();for(a=r.length,n=0;n<d;n+=1){for(l=n/(d-1),c=0,o=0;o<a;o+=1)s=bmPow(1-l,3)*e[o]+3*bmPow(1-l,2)*l*r[o]+3*(1-l)*bmPow(l,2)*i[o]+bmPow(l,3)*t[o],u[o]=s,null!==h[o]&&(c+=bmPow(u[o]-h[o],2)),h[o]=u[o];c&&(p+=c=bmSqrt(c)),g.percents[n]=l,g.lengths[n]=p}return g.addedLength=p,g};function i(e){this.segmentLength=0,this.points=new Array(e)}function n(e,t){this.partialLength=e,this.point=t}var o,a=(o={},function(e,r,a,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[l]){var c,d,p,u,h,g,m,f=getDefaultCurveSegments(),y=0,C=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(f=2);var b=new i(f);for(p=a.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]+a[d])+3*(1-h)*bmPow(h,2)*(r[d]+s[d])+bmPow(h,3)*r[d],m[d]=u,null!==C&&(g+=bmPow(m[d]-C[d],2));y+=g=bmSqrt(g),b.points[c]=new n(g,m),C=m}b.segmentLength=y,o[l]=b}return o[l]});function s(e,t){var r=t.percents,i=t.lengths,n=r.length,o=bmFloor((n-1)*e),a=e*t.addedLength,s=0;if(o===n-1||0===o||a===i[o])return r[o];for(var l=i[o]>a?-1:1,c=!0;c;)if(i[o]<=a&&i[o+1]>a?(s=(a-i[o])/(i[o+1]-i[o]),c=!1):o+=l,o<0||o>=n-1){if(o===n-1)return r[o];c=!1}return r[o]+(r[o+1]-r[o])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,i=segmentsLengthPool.newElement(),n=e.c,o=e.v,a=e.o,s=e.i,l=e._length,c=i.lengths,d=0;for(t=0;t<l-1;t+=1)c[t]=r(o[t],o[t+1],a[t],s[t+1]),d+=c[t].addedLength;return n&&l&&(c[t]=r(o[t],o[0],a[t],s[0]),d+=c[t].addedLength),i.totalLength=d,i},getNewSegment:function(t,r,i,n,o,a,c){o<0?o=0:o>1&&(o=1);var d,p=s(o,c),u=s(a=a>1?1:a,c),h=t.length,g=1-p,m=1-u,f=g*g*g,y=p*g*g*3,C=p*p*g*3,b=p*p*p,x=g*g*m,v=p*g*m+g*p*m+g*g*u,S=p*p*m+g*p*u+p*g*u,w=p*p*u,k=g*m*m,_=p*m*m+g*u*m+g*m*u,T=p*u*m+g*u*u+p*m*u,R=p*u*u,M=m*m*m,E=u*m*m+m*u*m+m*m*u,O=u*u*m+m*u*u+u*m*u,P=u*u*u;for(d=0;d<h;d+=1)l[4*d]=e.round(1e3*(f*t[d]+y*i[d]+C*n[d]+b*r[d]))/1e3,l[4*d+1]=e.round(1e3*(x*t[d]+v*i[d]+S*n[d]+w*r[d]))/1e3,l[4*d+2]=e.round(1e3*(k*t[d]+_*i[d]+T*n[d]+R*r[d]))/1e3,l[4*d+3]=e.round(1e3*(M*t[d]+E*i[d]+O*n[d]+P*r[d]))/1e3;return l},getPointInSegment:function(t,r,i,n,o,a){var l=s(o,a),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*i[0]+(l*l*c+c*l*l+l*c*l)*n[0]+l*l*l*r[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*i[1]+(l*l*c+c*l*l+l*c*l)*n[1]+l*l*l*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,i,n,o,a,s,l,c,d){if(0===n&&0===s&&0===d)return t(r,i,o,a,l,c);var p,u=e.sqrt(e.pow(o-r,2)+e.pow(a-i,2)+e.pow(s-n,2)),h=e.sqrt(e.pow(l-r,2)+e.pow(c-i,2)+e.pow(d-n,2)),g=e.sqrt(e.pow(l-o,2)+e.pow(c-a,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 r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,o,a,s,l,c,d,p,u,h=t.lastIndex,g=h,m=this.keyframes.length-1,f=!0;f;){if(n=this.keyframes[g],o=this.keyframes[g+1],g===m-1&&e>=o.t-i){n.h&&(n=o),h=0;break}if(o.t-i>e){h=g;break}g<m-1?g+=1:(h=0,f=!1)}a=this.keyframesMetadata[g]||{};var y,C=o.t-i,b=n.t-i;if(n.to){a.bezierData||(a.bezierData=bez.buildBezierData(n.s,o.s||n.e,n.to,n.ti));var x=a.bezierData;if(e>=C||e<b){var v=e>=C?x.points.length-1:0;for(l=x.points[v].point.length,s=0;s<l;s+=1)r[s]=x.points[v].point[s]}else{a.__fnct?u=a.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,a.__fnct=u),c=u((e-b)/(C-b));var S,w=x.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=x.points.length;f;){if(k+=x.points[p].partialLength,0===w||0===c||p===x.points.length-1){for(l=x.points[p].point.length,s=0;s<l;s+=1)r[s]=x.points[p].point[s];break}if(w>=k&&w<k+x.points[p+1].partialLength){for(S=(w-k)/x.points[p+1].partialLength,l=x.points[p].point.length,s=0;s<l;s+=1)r[s]=x.points[p].point[s]+(x.points[p+1].point[s]-x.points[p].point[s])*S;break}p<d-1?p+=1:f=!1}t._lastPoint=p,t._lastAddedLength=k-x.points[p].partialLength,t._lastKeyframeIndex=g}}else{var _,T,R,M,E;if(m=n.s.length,y=o.s||n.e,this.sh&&1!==n.h)e>=C?(r[0]=y[0],r[1]=y[1],r[2]=y[2]):e<=b?(r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2]):quaternionToEuler(r,slerp(createQuaternion(n.s),createQuaternion(y),(e-b)/(C-b)));else for(g=0;g<m;g+=1)1!==n.h&&(e>=C?c=1:e<b?c=0:(n.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[g]?u=a.__fnct[g]:(_=void 0===n.o.x[g]?n.o.x[0]:n.o.x[g],T=void 0===n.o.y[g]?n.o.y[0]:n.o.y[g],R=void 0===n.i.x[g]?n.i.x[0]:n.i.x[g],M=void 0===n.i.y[g]?n.i.y[0]:n.i.y[g],u=BezierFactory.getBezierEasing(_,T,R,M).get,a.__fnct[g]=u)):a.__fnct?u=a.__fnct:(_=n.o.x,T=n.o.y,R=n.i.x,M=n.i.y,u=BezierFactory.getBezierEasing(_,T,R,M).get,n.keyframeMetadata=u),c=u((e-b)/(C-b)))),y=o.s||n.e,E=1===n.h?n.s[g]:n.s[g]+(y[g]-n.s[g])*c,"multidimensional"===this.propType?r[g]=E:r=E}return t.lastIndex=h,r}function slerp(e,t,r){var i,n,o,a,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(n=c*h+d*g+p*m+u*f)<0&&(n=-n,h=-h,g=-g,m=-m,f=-f),1-n>1e-6?(i=Math.acos(n),o=Math.sin(i),a=Math.sin((1-r)*i)/o,s=Math.sin(r*i)/o):(a=1-r,s=r),l[0]=a*c+s*h,l[1]=a*d+s*g,l[2]=a*p+s*m,l[3]=a*u+s*f,l}function quaternionToEuler(e,t){var r=t[0],i=t[1],n=t[2],o=t[3],a=Math.atan2(2*i*o-2*r*n,1-2*i*i-2*n*n),s=Math.asin(2*r*i+2*n*o),l=Math.atan2(2*r*o-2*i*n,1-2*r*r-2*n*n);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,n=Math.cos(t/2),o=Math.cos(r/2),a=Math.cos(i/2),s=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(i/2);return[s*l*a+n*o*c,s*o*a+n*l*c,n*l*a-s*o*c,n*o*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,i){var n;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),n=0;n<o;n+=1)this.v[n]=t.k[n]*this.mult,this.pv[n]=t.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,i){var n;this.propType="multidimensional";var o,a,s,l,c=t.k.length;for(n=0;n<c-1;n+=1)t.k[n].to&&t.k[n].s&&t.k[n+1]&&t.k[n+1].s&&(o=t.k[n].s,a=t.k[n+1].s,s=t.k[n].to,l=t.k[n].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[n].to=null,t.k[n].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[n].to=null,t.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),n=0;n<d;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(e,t,r,i,n){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,i,n);else switch(r){case 0:o=new KeyframedValueProperty(e,t,i,n);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,i,n)}else o=new ValueProperty(e,t,i,n);return o.effectsSequence.length&&n.addDynamicProperty(o),o}},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 r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,i,n){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[i]||o[i]&&!n)&&(o[i]=pointPool.newElement()),o[i][0]=e,o[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,n,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,i,"o",a,s),this.setXYAt(n,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,n=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var o,a=this._length-1,s=this._length;for(o=n;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],i[a][0],i[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}),factory.clone=function(e){var t,r=factory.newElement(),i=void 0===e._length?e.v.length:e._length;for(r.setLength(i),r.c=e.c,t=0;t<i;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?i[t-=1]:new ShapeCollection},release:function(e){var n,o=e._length;for(n=0;n<o;n+=1)shapePool.release(e.shapes[n]);e._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=e,t+=1}},t=0,r=4,i=createSizedArray(r);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var i,n,o,a,s,l,c,d,p,u=r.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)i=h[0].s[0],o=!0,u=0;else if(e>=h[h.length-1].t-this.offsetTime)i=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],o=!0;else{for(var g,m,f,y=u,C=h.length-1,b=!0;b&&(g=h[y],!((m=h[y+1]).t-this.offsetTime>e));)y<C-1?y+=1:b=!1;if(f=this.keyframesMetadata[y]||{},u=y,!(o=1===g.h)){if(e>=m.t-this.offsetTime)d=1;else if(e<g.t-this.offsetTime)d=0;else{var x;f.__fnct?x=f.__fnct:(x=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,f.__fnct=x),d=x((e-(g.t-this.offsetTime))/(m.t-this.offsetTime-(g.t-this.offsetTime)))}n=m.s?m.s[0]:g.e[0]}i=g.s[0]}for(l=t._length,c=i.i[0].length,r.lastIndex=u,a=0;a<l;a+=1)for(s=0;s<c;s+=1)p=o?i.i[a][s]:i.i[a][s]+(n.i[a][s]-i.i[a][s])*d,t.i[a][s]=p,p=o?i.o[a][s]:i.o[a][s]+(n.o[a][s]-i.o[a][s])*d,t.o[a][s]=p,p=o?i.v[a][s]:i.v[a][s]+(n.v[a][s]-i.v[a][s])*d,t.v[a][s]=p}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==e&&(n<r&&t<r||n>i&&t>i)||(this._caching.lastIndex=n<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function i(){this.paths=this.localShapeCollection}function n(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,i=e._length;for(r=0;r<i;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===r?t.pt.k:t.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=i,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,n,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=n,a.prototype.addEffect=s,l.prototype.getValue=o,l.prototype.interpolateShape=t,l.prototype.setVValue=n,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:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-n,a.v[1][0]=o?t+i:t-i,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+n,a.v[3][0]=o?t-i:t+i,a.v[3][1]=r,a.i[0][0]=o?t-i*e:t+i*e,a.i[0][1]=r-n,a.i[1][0]=o?t+i:t-i,a.i[1][1]=r-n*e,a.i[2][0]=o?t+i*e:t-i*e,a.i[2][1]=r+n,a.i[3][0]=o?t-i:t+i,a.i[3][1]=r+n*e,a.o[0][0]=o?t+i*e:t-i*e,a.o[0][1]=r-n,a.o[1][0]=o?t+i:t-i,a.o[1][1]=r+n*e,a.o[2][0]=o?t-i*e:t+i*e,a.o[2][1]=r+n,a.o[3][0]=o?t-i:t+i,a.o[3][1]=r-n*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:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,i,n=2*Math.floor(this.pt.v),o=2*Math.PI/n,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,d=this.is.v,p=2*Math.PI*s/(2*n),u=2*Math.PI*l/(2*n),h=-Math.PI/2;h+=this.r.v;var g=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<n;e+=1){r=a?c:d,i=a?p:u;var m=(t=a?s:l)*Math.cos(h),f=t*Math.sin(h),y=0===m&&0===f?0:f/Math.sqrt(m*m+f*f),C=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*i*r*g,f-C*i*r*g,m+y*i*r*g,f+C*i*r*g,e,!0),a=!a,h+=o*g}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,i=this.or.v,n=this.os.v,o=2*Math.PI*i/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=i*Math.cos(a),c=i*Math.sin(a),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*o*n*s,c-p*o*n*s,l+d*o*n*s,c+p*o*n*s,e,!0),a+=r*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],r=this.s.v[0]/2,i=this.s.v[1]/2,n=bmMin(r,i,this.r.v),o=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-i+n,e+r,t-i+n,e+r,t-i+o,0,!0),this.v.setTripleAt(e+r,t+i-n,e+r,t+i-o,e+r,t+i-n,1,!0),0!==n?(this.v.setTripleAt(e+r-n,t+i,e+r-n,t+i,e+r-o,t+i,2,!0),this.v.setTripleAt(e-r+n,t+i,e-r+o,t+i,e-r+n,t+i,3,!0),this.v.setTripleAt(e-r,t+i-n,e-r,t+i-n,e-r,t+i-o,4,!0),this.v.setTripleAt(e-r,t-i+n,e-r,t-i+o,e-r,t-i+n,5,!0),this.v.setTripleAt(e-r+n,t-i,e-r+n,t-i,e-r+o,t-i,6,!0),this.v.setTripleAt(e+r-n,t-i,e+r-o,t-i,e+r-n,t-i,7,!0)):(this.v.setTripleAt(e-r,t+i,e-r+o,t+i,e-r,t+i,2),this.v.setTripleAt(e-r,t-i,e-r,t-i+o,e-r,t-i,3))):(this.v.setTripleAt(e+r,t-i+n,e+r,t-i+o,e+r,t-i+n,0,!0),0!==n?(this.v.setTripleAt(e+r-n,t-i,e+r-n,t-i,e+r-o,t-i,1,!0),this.v.setTripleAt(e-r+n,t-i,e-r+o,t-i,e-r+n,t-i,2,!0),this.v.setTripleAt(e-r,t-i+n,e-r,t-i+n,e-r,t-i+o,3,!0),this.v.setTripleAt(e-r,t+i-n,e-r,t+i-o,e-r,t+i-n,4,!0),this.v.setTripleAt(e-r+n,t+i,e-r+n,t+i,e-r+o,t+i,5,!0),this.v.setTripleAt(e+r-n,t+i,e+r-o,t+i,e+r-n,t+i,6,!0),this.v.setTripleAt(e+r,t+i-n,e+r,t+i-n,e+r,t+i-o,7,!0)):(this.v.setTripleAt(e-r,t-i,e-r+o,t-i,e-r,t-i,1,!0),this.v.setTripleAt(e-r,t+i,e-r,t+i-o,e-r,t+i,2,!0),this.v.setTripleAt(e+r,t+i,e+r-o,t+i,e+r,t+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],e),e}(),u={getShapeProp:function(e,t,r){var i;return 3===r||4===r?i=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new a(e,t,r):5===r?i=new p(e,t):6===r?i=new c(e,t):7===r&&(i=new d(e,t)),i.k&&e.addDynamicProperty(i),i},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var i=e(r),n=t(r);return this._t(i,-n,0,0,n,i,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var i=e(r),n=t(r);return this._t(1,0,0,0,0,i,-n,0,0,n,i,0,0,0,0,1)}function s(r){if(0===r)return this;var i=e(r),n=t(r);return this._t(i,0,n,0,0,1,0,0,-n,0,i,0,0,0,0,1)}function l(r){if(0===r)return this;var i=e(r),n=t(r);return this._t(i,-n,0,0,n,i,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(r(e),r(t))}function p(i,n){var o=e(n),a=t(n);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function u(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function h(e,t,r,i,n,o,a,s,l,c,d,p,u,h,g,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=i,this.props[4]=n,this.props[5]=o,this.props[6]=a,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,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,i,n,o,a,s,l,c,d,p,u,h,g,m){var f=this.props;if(1===e&&0===t&&0===r&&0===i&&0===n&&1===o&&0===a&&0===s&&0===l&&0===c&&1===d&&0===p)return f[12]=f[12]*e+f[15]*u,f[13]=f[13]*o+f[15]*h,f[14]=f[14]*d+f[15]*g,f[15]*=m,this._identityCalculated=!1,this;var y=f[0],C=f[1],b=f[2],x=f[3],v=f[4],S=f[5],w=f[6],k=f[7],_=f[8],T=f[9],R=f[10],M=f[11],E=f[12],O=f[13],P=f[14],j=f[15];return f[0]=y*e+C*n+b*l+x*u,f[1]=y*t+C*o+b*c+x*h,f[2]=y*r+C*a+b*d+x*g,f[3]=y*i+C*s+b*p+x*m,f[4]=v*e+S*n+w*l+k*u,f[5]=v*t+S*o+w*c+k*h,f[6]=v*r+S*a+w*d+k*g,f[7]=v*i+S*s+w*p+k*m,f[8]=_*e+T*n+R*l+M*u,f[9]=_*t+T*o+R*c+M*h,f[10]=_*r+T*a+R*d+M*g,f[11]=_*i+T*s+R*p+M*m,f[12]=E*e+O*n+P*l+j*u,f[13]=E*t+O*o+P*c+j*h,f[14]=E*r+O*a+P*d+j*g,f[15]=E*i+O*s+P*p+j*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 C(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function v(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function w(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function k(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function _(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,i=-this.props[4]/e,n=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=i,s.props[5]=n,s.props[12]=o,s.props[13]=a,s}function T(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function R(e){var t,r=e.length,i=[];for(t=0;t<r;t+=1)i[t]=T(e[t]);return i}function M(e,t,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=e[0],i[1]=e[1],i[2]=t[0],i[3]=t[1],i[4]=r[0],i[5]=r[1];else{var n=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];i[0]=e[0]*n+e[1]*a+l,i[1]=e[0]*o+e[1]*s+c,i[2]=t[0]*n+t[1]*a+l,i[3]=t[0]*o+t[1]*s+c,i[4]=r[0]*n+r[1]*a+l,i[5]=r[0]*o+r[1]*s+c}return i}function E(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function O(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function P(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=i(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function j(e){return e<1e-6&&e>0||e>-1e-6&&e<0?i(1e4*e)/1e4:e}function L(){var e=this.props;return"matrix("+j(e[0])+","+j(e[1])+","+j(e[4])+","+j(e[5])+","+j(e[12])+","+j(e[13])+")"}return function(){this.reset=n,this.rotate=o,this.rotateX=a,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=v,this.applyToX=S,this.applyToY=w,this.applyToZ=k,this.applyToPointArray=E,this.applyToTriplePoints=M,this.applyToPointStringified=O,this.toCSS=P,this.to2dCSS=L,this.clone=b,this.cloneFromProps=x,this.equals=C,this.inversePoints=R,this.inversePoint=T,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.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,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,i){return new t[e](r,i)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,i,n){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,l=[],c=o.length;for(a=0;a<c;a+=1){var d,p;(s=o[a]).e*n<i||s.s*n>i+r||(d=s.s*n<=i?0:(s.s*n-i)/r,p=s.e*n>=i+r?1:(s.e*n-i)/r,l.push([d,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,i,n;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,l,c,d,p,u=this.shapes.length,h=0;if(r===t)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===r&&0===t||0===r&&1===t){if(this._mdf)for(n=0;n<u;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var g,m,f=[];for(n=0;n<u;n+=1)if((g=this.shapes[n]).shape._mdf||this._mdf||e||2===this.m){if(l=(i=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(i.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,C=t,b=r,x=0;for(n=u-1;n>=0;n-=1)if((g=this.shapes[n]).shape._mdf){for((m=g.localShapeCollection).releaseShapes(),2===this.m&&u>1?(y=this.calculateShapeEdges(t,r,g.totalShapeLength,x,h),x+=g.totalShapeLength):y=[[C,b]],l=y.length,s=0;s<l;s+=1){C=y[s][0],b=y[s][1],f.length=0,b<=1?f.push({s:g.totalShapeLength*C,e:g.totalShapeLength*b}):C>=1?f.push({s:g.totalShapeLength*(C-1),e:g.totalShapeLength*(b-1)}):(f.push({s:g.totalShapeLength*C,e:g.totalShapeLength}),f.push({s:0,e:g.totalShapeLength*(b-1)}));var v=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=v.pop();this.addPaths(v,m),v=this.addShapes(g,f[1],S)}else this.addPaths(v,m),v=this.addShapes(g,f[1]);this.addPaths(v,m)}}g.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,n,o,a){n.setXYAt(t[0],t[1],"o",o),n.setXYAt(r[0],r[1],"i",o+1),a&&n.setXYAt(e[0],e[1],"v",o),n.setXYAt(i[0],i[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i,n,o,a,s,l,c,d,p=e.pathsData,u=e.shape.paths.shapes,h=e.shape.paths._length,g=0,m=[],f=!0;for(r?(s=r._length,d=r._length):(r=shapePool.newElement(),s=0,d=0),m.push(r),i=0;i<h;i+=1){for(l=p[i].lengths,r.c=u[i].c,o=u[i].c?l.length:l.length+1,n=1;n<o;n+=1)if(g+(a=l[n-1]).addedLength<t.s)g+=a.addedLength,r.c=!1;else{if(g>t.e){r.c=!1;break}t.s<=g&&t.e>=g+a.addedLength?(this.addSegment(u[i].v[n-1],u[i].o[n-1],u[i].i[n],u[i].v[n],r,s,f),f=!1):(c=bez.getNewSegment(u[i].v[n-1],u[i].v[n],u[i].o[n-1],u[i].i[n],(t.s-g)/a.addedLength,(t.e-g)/a.addedLength,l[n-1]),this.addSegmentFromArray(c,r,s,f),f=!1,r.c=!1),g+=a.addedLength,s+=1}if(u[i].c&&l.length){if(a=l[n-1],g<=t.e){var y=l[n-1].addedLength;t.s<=g&&t.e>=g+y?(this.addSegment(u[i].v[n-1],u[i].o[n-1],u[i].i[0],u[i].v[0],r,s,f),f=!1):(c=bez.getNewSegment(u[i].v[n-1],u[i].v[0],u[i].o[n-1],u[i].i[0],(t.s-g)/y,(t.e-g)/y,l[n-1]),this.addSegmentFromArray(c,r,s,f),f=!1,r.c=!1)}else r.c=!1;g+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[d][0],r.v[d][1],"i",d),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),g>t.e)break;i<h-1&&(r=shapePool.newElement(),f=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],n=e._length,o=0;for(o=0;o<n;o+=1)i[0]+=e.v[o][0],i[1]+=e.v[o][1];i[0]/=n,i[1]/=n;var a,s,l,c,d,p,u=shapePool.newElement();for(u.c=e.c,o=0;o<n;o+=1)a=e.v[o][0]+(i[0]-e.v[o][0])*r,s=e.v[o][1]+(i[1]-e.v[o][1])*r,l=e.o[o][0]+(i[0]-e.o[o][0])*-r,c=e.o[o][1]+(i[1]-e.o[o][1])*-r,d=e.i[o][0]+(i[0]-e.i[o][0])*-r,p=e.i[o][1]+(i[1]-e.i[o][1])*-r,u.setTripleAt(a,s,l,c,d,p,o);return u},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i,n,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(t[i],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var i,n=t.or.k.length;for(i=0;i<n;i+=1)t.or.k[i].to=null,t.or.k[i].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,n;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(i[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=o.getValueAtTime(o.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(i[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[o.pv,a.pv],n[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=e;this.v.rotate(-Math.atan2(i[1]-n[1],i[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],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,i){return new t(e,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var i=t*t-4*e*r;if(i<0)return[];var n=-t/(2*e);if(0===i)return[n];var o=Math.sqrt(i)/(2*e);return[n-o,n+o]}function polynomialCoefficients(e,t,r,i){return[3*t-e-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,n){n&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],i[0]),a=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,r,i]}function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var n=i;i=r,r=n}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,i,n,o){if(boxIntersect(e,t))if(r>=o||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i)n.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,i,n,o),intersectsImpl(a[0],s[1],r+1,i,n,o),intersectsImpl(a[1],s[0],r+1,i,n,o),intersectsImpl(a[1],s[1],r+1,i,n,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var n=[e[0],e[1],1],o=[t[0],t[1],1],a=[r[0],r[1],1],s=[i[0],i[1],1],l=crossProduct(crossProduct(n,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,i,n,o,a){var s=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*i*n,d=t[1]-Math.sin(r)*i*n;e.setTripleAt(c,d,c+Math.cos(s)*o,d-Math.sin(s)*o,c+Math.cos(l)*a,d-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,i=(t+1)%e.length(),n=getPerpendicularVector(e.v[r],e.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(e,t,r,i,n,o,a){var s=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[0===r?t._length-1:r-1],d=t.v[(r+1)%t._length],p=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,u=2===o?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;setPoint(e,t.v[r%t._length],s,a,i,u/(2*(n+1)),p/(2*(n+1)))}function zigZagSegment(e,t,r,i,n,o){for(var a=0;a<i;a+=1){var s=(a+1)/(i+1),l=2===n?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,o,r,l/(2*(i+1)),l/(2*(i+1))),o=-o}return o}function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,n,o,a,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],i=l[1],n=(l=linearOffset(e.points[1],e.points[2],t))[0],o=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(r,i,n,o);null===c&&(c=i);var d=lineIntersection(a,s,n,o);return null===d&&(d=a),new PolynomialBezier(r,c,d,s)}function joinLines(e,t,r,i,n){var o=t.points[3],a=r.points[0];if(3===i)return o;if(pointEqual(o,a))return o;if(2===i){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),d=c?pointDistance(c,o):pointDistance(o,a)/2,p=polarOffset(o,s,2*d*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(a,l,2*d*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],e.length()),a}var u=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return u&&pointDistance(u,o)<n?(e.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],e.length()),u):o}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),n=getIntersection(e[e.length-1],t[0]);return n&&(r[e.length-1]=e[e.length-1].split(n[0])[0],i[0]=t[0].split(n[1])[1]),e.length>1&&t.length>1&&(n=getIntersection(e[0],t[t.length-1]))?[[e[0].split(n[0])[0]],[t[t.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,i,n,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(n=e.split(a[0]))[0],i=n[1],[offsetSegment(r,t),offsetSegment(i,t)];r=(n=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(n=n[1].split(s))[0],i=n[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(i,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",n=t.length,o=0;o<n;o+=1)switch(t[o].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,i,n,o){var a=o?-1:1,s=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);e.translate(i.p.v[0]*a*n,i.p.v[1]*a*n,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*a*n),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(o?1/s:s,o?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,n,o,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,i=0;i<=this._groups.length-1;i+=1){if(s=o<l,this._groups[i]._render=s,this.changeGroupRender(this._groups[i].it,s),!s){var d=this.elemsData[i].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}o+=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 C,b,x=0;if(u>0){for(;x<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),x+=h)}else if(u<0){for(;x>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),x-=h)}for(i=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(r=(t=this.elemsData[i].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)*(i/(this._currentCopies-1)),0!==x){for((0!==i&&1===n||i!==this._currentCopies-1&&-1===n)&&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]),C=0;C<b;C+=1)r[C]=this.matrix.props[C];this.matrix.reset()}else for(this.matrix.reset(),C=0;C<b;C+=1)r[C]=this.matrix.props[C];x+=1,o-=1,i+=n}}else for(o=this._currentCopies,i=0,n=1;o;)r=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,i+=n;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,i=shapePool.newElement();i.c=e.c;var n,o,a,s,l,c,d,p,u,h,g,m,f=e._length,y=0;for(r=0;r<f;r+=1)n=e.v[r],a=e.o[r],o=e.i[r],n[0]===a[0]&&n[1]===a[1]&&n[0]===o[0]&&n[1]===o[1]?0!==r&&r!==f-1||e.c?(s=0===r?e.v[f-1]:e.v[r-1],c=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=g=n[0]+(s[0]-n[0])*c,p=m=n[1]-(n[1]-s[1])*c,u=d-(d-n[0])*roundCorner,h=p-(p-n[1])*roundCorner,i.setTripleAt(d,p,u,h,g,m,y),y+=1,s=r===f-1?e.v[0]:e.v[r+1],c=(l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=u=n[0]+(s[0]-n[0])*c,p=h=n[1]+(s[1]-n[1])*c,g=d-(d-n[0])*roundCorner,m=p-(p-n[1])*roundCorner,i.setTripleAt(d,p,u,h,g,m,y),y+=1):(i.setTripleAt(n[0],n[1],a[0],a[1],o[0],o[1],y),y+=1):(i.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i,n,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(t[i],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),n=lerpPoint(t,r,e),o=lerpPoint(r,i,e),a=lerpPoint(n,o,e);return[new PolynomialBezier(this.points[0],t,n,a,!0),new PolynomialBezier(a,o,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,i){var n=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(n-=1),0===n)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,i,a);for(var l=0;l<n;l+=1)a=zigZagSegment(o,s,t,r,i,-a),s=l!==n-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%n):null,zigZagCorner(o,e,l+1,t,r,i,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,r,i,n,o,a,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(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(t[i],l,c,d));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var n=shapePool.newElement();n.c=e.c;var o,a,s,l=e.length();e.c||(l-=1);var c=[];for(o=0;o<l;o+=1)s=PolynomialBezier.shapeSegment(e,o),c.push(offsetSegmentSplit(s,t));if(!e.c)for(o=l-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var d=null,p=null;for(o=0;o<c.length;o+=1){var u=c[o];for(p&&(d=joinLines(n,p,u[0],r,i)),p=u[u.length-1],a=0;a<u.length;a+=1)s=u[a],d&&pointEqual(s.points[0],d)?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()),d=s.points[3]}return c.length&&joinLines(n,p,c[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i,n,o,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,d=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,n=o.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(t[i],l,d,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var i=createTag("span");i.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var n=i.offsetWidth;return i.style.fontFamily=function(e){var t,r=e.split(","),i=r.length,n=[];for(t=0;t<i;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&n.push(r[t]);return n.join(",")}(e)+", "+t,{node:i,w:n,parent:r}}function o(e,t){var r,i=document.body&&t?"svg":"canvas",n=getFontProperties(e);if("svg"===i){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",n.style),o.setAttribute("font-weight",n.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===i?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var i=e.charCodeAt(1);i>=56320&&i<=57343&&(t=1024*(r-55296)+i-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==i.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var i=a(e.substr(t,2));if(i!==r)return!1;var n=0;for(t+=2;n<5;){if((i=a(e.substr(t,2)))<917601||i>917626)return!1;n+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,i,n=e.length,o=this.chars.length;for(t=0;t<n;t+=1){for(r=0,i=!1;r<o;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(i=!0),r+=1;i||(this.chars.push(e[t]),o+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=o(e),e.cache={}}),void(this.fonts=e.list);var r,i=e.list,a=i.length,s=a;for(r=0;r<a;r+=1){var l,c,d=!0;if(i[r].loaded=!1,i[r].monoCase=n(i[r].fFamily,"monospace"),i[r].sansCase=n(i[r].fFamily,"sans-serif"),i[r].fPath){if("p"===i[r].fOrigin||3===i[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[r].fFamily+'"], style[f-origin="3"][f-family="'+i[r].fFamily+'"]')).length>0&&(d=!1),d){var p=createTag("style");p.setAttribute("f-forigin",i[r].fOrigin),p.setAttribute("f-origin",i[r].origin),p.setAttribute("f-family",i[r].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",t.appendChild(p)}}else if("g"===i[r].fOrigin||1===i[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(i[r].fPath)&&(d=!1);if(d){var u=createTag("link");u.setAttribute("f-forigin",i[r].fOrigin),u.setAttribute("f-origin",i[r].origin),u.type="text/css",u.rel="stylesheet",u.href=i[r].fPath,document.body.appendChild(u)}}else if("t"===i[r].fOrigin||2===i[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)i[r].fPath===l[c].src&&(d=!1);if(d){var h=createTag("link");h.setAttribute("f-forigin",i[r].fOrigin),h.setAttribute("f-origin",i[r].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",i[r].fPath),t.appendChild(h)}}}else i[r].loaded=!0,s-=1;i[r].helper=o(i[r],t),i[r].cache={},this.fonts.push(i[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,i){for(var n=0,o=this.chars.length;n<o;){if(this.chars[n].ch===t&&this.chars[n].style===r&&this.chars[n].fFamily===i)return this.chars[n];n+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,i)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var i=this.getFontByName(t),n=e;if(!i.cache[n]){var o=i.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");i.cache[n]=(a-s)/100}else i.cache[n]=o.measureText(e)/100}return i.cache[n]*r},checkLoadedFonts:function(){var e,t,r,i=this.fonts.length,n=i;for(e=0;e<i;e+=1)this.fonts[e].loaded?n-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(n-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(n-=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!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,i=e.ef||[];this.effectElements=[];var n,o=i.length;for(r=0;r<o;r+=1)n=new GroupEffect(i[r],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,n=this.data.ef.length,o=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,o[r].ty){case 0:i=new SliderEffect(o[r],t,this);break;case 1:i=new AngleEffect(o[r],t,this);break;case 2:i=new ColorEffect(o[r],t,this);break;case 3:i=new PointEffect(o[r],t,this);break;case 4:case 7:i=new CheckboxEffect(o[r],t,this);break;case 10:i=new LayerIndexEffect(o[r],t,this);break;case 11:i=new MaskIndexEffect(o[r],t,this);break;case 5:i=new EffectsManager(o[r],t);break;default:i=new NoValueEffect(o[r])}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),i=e("shape"),n=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=i(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 e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,i=this.layers.length;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,i=e.length,n=this.layers.length;for(t=0;t<i;t+=1)for(r=0;r<n;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var i=this.elements,n=this.layers,o=0,a=n.length;o<a;)n[o].ind==t&&(i[o]&&!0!==i[o]?(r.push(i[o]),i[o].setAsParent(),void 0!==n[o].parent?this.buildElementParenting(e,n[o].parent,r):e.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){t=this.elements[i];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,d,p,u,h=this.masksProperties,g=0,m=[],f=createElementID(),y="clipPath",C="clip-path";for(i=0;i<a;i+=1)if(("a"!==h[i].mode&&"n"!==h[i].mode||h[i].inv||100!==h[i].o.k||h[i].o.x)&&(y="mask",C="mask"),"s"!==h[i].mode&&"i"!==h[i].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)),n=createNS("path"),"n"===h[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,h[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[i],3),elem:n,lastPath:""},o.appendChild(n);else{var b;if(g+=1,n.setAttribute("fill","s"===h[i].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==h[i].x.k?(y="mask",C="mask",u=PropertyFactory.getProp(this.element,h[i].x,0,null,this.element),b=createElementID(),(d=createNS("filter")).setAttribute("id",b),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),d.appendChild(p),o.appendChild(d),n.setAttribute("stroke","s"===h[i].mode?"#000000":"#ffffff")):(p=null,u=null),this.storedData[i]={elem:n,x:u,expan:p,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===h[i].mode){l=m.length;var x=createNS("g");for(s=0;s<l;s+=1)x.appendChild(m[s]);var v=createNS("mask");v.setAttribute("mask-type","alpha"),v.setAttribute("id",f+"_"+g),v.appendChild(n),o.appendChild(v),x.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+g+")"),m.length=0,m.push(x)}else m.push(n);h[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,h[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[i],3),invRect:c},this.viewData[i].prop.k||this.drawPath(h[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(y),a=m.length,i=0;i<a;i+=1)this.maskElement.appendChild(m[i]);g>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(C,"url("+getLocationHref()+"#"+f+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<i;r+=1)t.multiply(this.hierarchy[r].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 r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var i=this.localTransforms[e].matrix;r.multiply(i)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)n*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&t.splice(0,0,n.finalTransform),n=n.comp):i=!1;var o,a=t.length;for(r=0;r<a;r+=1)o=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(t=0;t<i;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var n=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+")")),n.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var i,n,o=" M"+t.v[0][0]+","+t.v[0][1];for(n=t._length,i=1;i<n;i+=1)o+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[i][0]+","+t.i[i][1]+" "+t.v[i][0]+","+t.v[i][1];if(t.c&&n>1&&(o+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,i="SourceGraphic",n=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<n;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,i),i=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),i=createNS("path");i.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(r.setAttribute("id",n),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.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(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,i,n,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(i),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),a.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),c.appendChild(d),this.globalData.defs.appendChild(r);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(p),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(i),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(p),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,i=t.length;r<i;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===e)return void(r[i].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,n=e.length;i<n;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,i){var n;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var o,a=t.length||0;for(n=0;n<a;n+=1)o=PropertyFactory.getProp(e,t[n].v,0,0,this),this.k=o.k||this.k,this.dataProps[n]={n:t[n].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var i=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",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,i,n=4*this.data.p;for(t=0;t<n;t+=1)r=t%4==0?100:255,i=Math.round(this.prop.v[t]*r),this.c[t]!==i&&(this.c[t]=i,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=4*this.data.p;t<n;t+=1)r=t%2==0?100:1,i=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==i&&(this.o[t-4*this.data.p]=i,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(1===t.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)n=createNS("stop"),i.appendChild(n),s.push(n);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),l=createElementID();o.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),n=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(i=4*e.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),d.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=o,this.ost=d,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,i){if(0===t)return"";var n,o=e.o,a=e.i,s=e.v,l=" M"+i.applyToPointStringified(s[0][0],s[0][1]);for(n=1;n<t;n+=1)l+=" C"+i.applyToPointStringified(o[n-1][0],o[n-1][1])+" "+i.applyToPointStringified(a[n][0],a[n][1])+" "+i.applyToPointStringified(s[n][0],s[n][1]);return r&&t&&(l+=" C"+i.applyToPointStringified(o[n-1][0],o[n-1][1])+" "+i.applyToPointStringified(a[0][0],a[0][1])+" "+i.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return l;case"gs":return s;case"st":return c;case"sh":case"el":case"rc":case"sr":return o;case"tr":return i;case"no":return n;default:return null}}};function i(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function o(r,i,n){var o,a,s,l,c,d,p,u,h,g,m=i.styles.length,f=i.lvl;for(d=0;d<m;d+=1){if(l=i.sh._mdf||n,i.styles[d].lvl<f){for(u=t.reset(),h=f-i.styles[d].lvl,g=i.transformers.length-1;!l&&h>0;)l=i.transformers[g].mProps._mdf||l,h-=1,g-=1;if(l)for(h=f-i.styles[d].lvl,g=i.transformers.length-1;h>0;)u.multiply(i.transformers[g].mProps.v),h-=1,g-=1}else u=e;if(a=(p=i.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(c=p.shapes[o])&&c._length&&(s+=buildShapeString(c,c._length,c.c,u));i.caches[d]=s}else s=i.caches[d];i.styles[d].d+=!0===r.hd?"":s,i.styles[d]._mdf=l||i.styles[d]._mdf}}function a(e,t,r){var i=t.style;(t.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,r){l(e,t,r),c(0,t,r)}function l(e,t,r){var i,n,o,a,s,l=t.gf,c=t.g._hasOpacity,d=t.s.v,p=t.e.v;if(t.o._mdf||r){var u="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(u,t.o.v)}if(t.s._mdf||r){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||r){i=t.cst;var m=t.g.c;for(o=i.length,n=0;n<o;n+=1)(a=i[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(c&&(t.g._omdf||r)){var f=t.g.o;for(o=(i=t.g._collapsable?t.cst:t.ost).length,n=0;n<o;n+=1)a=i[n],t.g._collapsable||a.setAttribute("offset",f[2*n]+"%"),a.setAttribute("stop-opacity",f[2*n+1])}if(1===e.t)(t.e._mdf||r)&&(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||r)&&(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||r){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]),C=t.h.v;C>=1?C=.99:C<=-1&&(C=-.99);var b=s*C,x=Math.cos(y+t.a.v)*b+d[0],v=Math.sin(y+t.a.v)*b+d[1];l.setAttribute("fx",x),l.setAttribute("fy",v),c&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",v))}}function c(e,t,r){var i=t.style,n=t.d;n&&(n._mdf||r)&&n.dashStr&&(i.pElem.setAttribute("stroke-dasharray",n.dashStr),i.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),t.c&&(t.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",t.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",t.w.v))}return r}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,i,n,o){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=n,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,i,n=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(i=this.stylesList[r],s=!1,a.length=0,e=0;e<n;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(i)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),n=i.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,i):"fl"===e.ty?r=new SVGFillStyleData(this,e,i):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,i)),"st"!==e.ty&&"gs"!==e.ty||(n.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),n.setAttribute("fill-opacity","0"),1===e.lj&&n.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&n.setAttribute("fill-rule","evenodd"),e.ln&&n.setAttribute("id",e.ln),e.cl&&n.setAttribute("class",e.cl),e.bm&&(n.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;"rc"===e.ty?i=5:"el"===e.ty?i=6:"sr"===e.ty&&(i=7);var n=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,i=this.stylesList.length;for(t=0;t<i;t+=1)-1!==r.indexOf(this.stylesList[t])||this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,n,o,a){var s,l,c,d,p,u,h=[].concat(o),g=e.length-1,m=[],f=[];for(s=g;s>=0;s-=1){if((u=this.searchProcessedElement(e[s]))?t[s]=r[u-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)u?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],n),e[s]._render&&t[s].style.pElem.parentNode!==i&&i.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,n+1,h,a),e[s]._render&&t[s].gr.parentNode!==i&&i.appendChild(t[s].gr)}else"tr"===e[s].ty?(u||(t[s]=this.createTransformElement(e[s],i)),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,n)),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),a=!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,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,i,n,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)o=r!==this.keysIndex?this.effectsSequence[i](o,o.t):this.effectsSequence[i](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,i=[],n=0,o=e.length,a=!1,s=!1,l="";n<o;)a=s,s=!1,t=e.charCodeAt(n),l=e.charAt(n),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,n)?l=e.substr(n,14):(r=e.charCodeAt(n+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(n,2),a=!0):l=FontManager.isFlagEmoji(e.substr(n,4))?e.substr(n,4):e.substr(n,2)):t>56319?(r=e.charCodeAt(n+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(i[i.length-1]+=l,a=!1):i.push(l),n+=l.length;return i},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,i,n,o,a,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,C=0,b=l.getFontByName(e.f),x=0,v=getFontProperties(b);e.fWeight=v.weight,e.fStyle=v.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var S,w=e.tr/1e3*e.finalSize;if(e.sz)for(var k,_,T=!0,R=e.sz[0],M=e.sz[1];T;){k=0,y=0,r=(_=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var E=-1;for(t=0;t<r;t+=1)S=_[t].charCodeAt(0),i=!1," "===_[t]?E=t:13!==S&&3!==S||(y=0,i=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(_[t],b.fStyle,b.fFamily),x=i?0:s.w*e.finalSize/100):x=l.measureText(_[t],e.f,e.finalSize),y+x>R&&" "!==_[t]?(-1===E?r+=1:t=E,k+=e.finalLineHeight||1.2*e.finalSize,_.splice(t,E===t?1:0,"\r"),E=-1,y=0):(y+=x,y+=w);k+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&M<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=_,r=e.finalText.length,T=!1)}y=-w,x=0;var O,P=0;for(t=0;t<r;t+=1)if(i=!1,13===(S=(O=e.finalText[t]).charCodeAt(0))||3===S?(P=0,f.push(y),C=y>C?y:C,y=-2*w,n="",i=!0,m+=1):n=O,l.chars?(s=l.getCharData(O,b.fStyle,l.getFontByName(e.f).fFamily),x=i?0:s.w*e.finalSize/100):x=l.measureText(n,e.f,e.finalSize)," "===O?P+=x+w:(y+=x+w+P,P=0),d.push({l:x,an:x,add:h,n:i,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==u){if(h+=x,""===n||" "===n||t===r-1){for(""!==n&&" "!==n||(h-=x);g<=t;)d[g].an=h,d[g].ind=p,d[g].extra=x,g+=1;p+=1,h=0}}else if(3==u){if(h+=x,""===n||t===r-1){for(""===n&&(h-=x);g<=t;)d[g].an=h,d[g].ind=p,d[g].extra=x,g+=1;h=0,p+=1}}else d[p].ind=p,d[p].extra=0,p+=1;if(e.l=d,C=y>C?y:C,f.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=C,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 j,L,A,B,z=c.a;a=z.length;var I=[];for(o=0;o<a;o+=1){for((j=z[o]).a.sc&&(e.strokeColorAnim=!0),j.a.sw&&(e.strokeWidthAnim=!0),(j.a.fc||j.a.fh||j.a.fs||j.a.fb)&&(e.fillColorAnim=!0),B=0,A=j.s.b,t=0;t<r;t+=1)(L=d[t]).anIndexes[o]=B,(1==A&&""!==L.val||2==A&&""!==L.val&&" "!==L.val||3==A&&(L.n||" "==L.val||t==r-1)||4==A&&(L.n||t==r-1))&&(1===j.s.rn&&I.push(B),B+=1);c.a[o].s.totalChars=B;var V,D=-1;if(1===j.s.rn)for(t=0;t<r;t+=1)D!=(L=d[t]).anIndexes[o]&&(D=L.anIndexes[o],V=I.splice(Math.floor(Math.random()*I.length),1)[0]),L.anIndexes[o]=V}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function i(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 i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,o=0,a=1,s=1;this.ne.v>0?n=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,o,a,s).get,c=0,d=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)c=l(c=p===d?i>=p?1:0:e(0,t(.5/(p-d)+(i-d)/(p-d),1)));else if(3===u)c=l(c=p===d?i>=p?0:1:1-e(0,t(.5/(p-d)+(i-d)/(p-d),1)));else if(4===u)p===d?c=0:(c=e(0,t(.5/(p-d)+(i-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+(i=t(e(0,i+.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:(i=t(e(0,i+.5-d),p-d),c=(1+Math.cos(Math.PI+2*Math.PI*i/(p-d)))/2),c=l(c)):(i>=r(d)&&(c=e(0,t(i-d<0?t(p,1)-(d-i):p-i,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,r=this.o.v/t,i=this.s.v/t+r,n=this.e.v/t+r;if(i>n){var o=i;i=n,n=o}this.finalS=i,this.finalE=n}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(e,t,r){return new i(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},n=PropertyFactory.getProp,o=t.a;this.a={r:o.r?n(e,o.r,0,degToRads,r):i,rx:o.rx?n(e,o.rx,0,degToRads,r):i,ry:o.ry?n(e,o.ry,0,degToRads,r):i,sk:o.sk?n(e,o.sk,0,degToRads,r):i,sa:o.sa?n(e,o.sa,0,degToRads,r):i,s:o.s?n(e,o.s,1,.01,r):i,a:o.a?n(e,o.a,1,0,r):i,o:o.o?n(e,o.o,0,.01,r):i,p:o.p?n(e,o.p,1,0,r):i,sw:o.sw?n(e,o.sw,0,0,r):i,sc:o.sc?n(e,o.sc,1,0,r):i,fc:o.fc?n(e,o.fc,1,0,r):i,fh:o.fh?n(e,o.fh,0,0,r):i,fs:o.fs?n(e,o.fs,0,.01,r):i,fb:o.fb?n(e,o.fb,0,.01,r):i,t:o.t?n(e,o.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,i=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,n,o,a,s,l,c,d,p,u,h,g,m,f,y,C,b,x,v=this._moreOptions.alignment.v,S=this._animatorsData,w=this._textData,k=this.mHelper,_=this._renderType,T=this.renderedLetters.length,R=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var M,E=x.v;for(this._pathData.r.v&&(E=E.reverse()),a={tLength:0,segments:[]},o=E._length-1,y=0,n=0;n<o;n+=1)M=bez.buildBezierData(E.v[n],E.v[n+1],[E.o[n][0]-E.v[n][0],E.o[n][1]-E.v[n][1]],[E.i[n+1][0]-E.v[n+1][0],E.i[n+1][1]-E.v[n+1][1]]),a.tLength+=M.segmentLength,a.segments.push(M),y+=M.segmentLength;n=o,x.v.c&&(M=bez.buildBezierData(E.v[n],E.v[0],[E.o[n][0]-E.v[n][0],E.o[n][1]-E.v[n][1]],[E.i[0][0]-E.v[0][0],E.i[0][1]-E.v[0][1]]),a.tLength+=M.segmentLength,a.segments.push(M),y+=M.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,u=0,p=1,c=0,d=!0,m=a.segments,s<0&&x.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.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}o=R.length,r=0,i=0;var O,P,j,L,A,B=1.2*e.finalSize*.714,z=!0;j=S.length;var I,V,D,N,F,H,W,$,G,U,Z,Y,K=-1,q=s,J=u,X=p,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ie=0,ne=2===e.j?-.5:-1,oe=0,ae=!0;for(n=0;n<o;n+=1)if(R[n].n){for(re&&(re+=ie);oe<n;)R[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(P=0;P<j;P+=1)(O=S[P].a).t.propType&&(ae&&2===e.j&&(ie+=O.t.v*ne),(A=S[P].s.getMult(R[n].anIndexes[P],w.a[P].s.totalChars)).length?re+=O.t.v*A[0]*ne:re+=O.t.v*A*ne);ae=!1}for(re&&(re+=ie);oe<n;)R[oe].animatorJustifyOffset=re,oe+=1}for(n=0;n<o;n+=1){if(k.reset(),N=1,R[n].n)r=0,i+=e.yOffset,i+=z?1:0,s=q,z=!1,this._hasMaskedPath&&(p=X,h=(g=m[u=J].points)[p-1],f=(l=g[p]).partialLength,c=0),ee="",Z="",G="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==R[n].line){switch(e.j){case 1:s+=y-e.lineWidths[R[n].line];break;case 2:s+=(y-e.lineWidths[R[n].line])/2}Q=R[n].line}K!==R[n].ind&&(R[K]&&(s+=R[K].extra),s+=R[n].an/2,K=R[n].ind),s+=v[0]*R[n].an*.005;var se=0;for(P=0;P<j;P+=1)(O=S[P].a).p.propType&&((A=S[P].s.getMult(R[n].anIndexes[P],w.a[P].s.totalChars)).length?se+=O.p.v[0]*A[0]:se+=O.p.v[0]*A),O.a.propType&&((A=S[P].s.getMult(R[n].anIndexes[P],w.a[P].s.totalChars)).length?se+=O.a.v[0]*A[0]:se+=O.a.v[0]*A);for(d=!0,this._pathData.a.v&&(s=.5*R[0].an+(y-this._pathData.f.v-.5*R[0].an-.5*R[R.length-1].an)*K/(o-1),s+=this._pathData.f.v);d;)c+f>=s+se||!g?(C=(s+se-c)/l.partialLength,V=h.point[0]+(l.point[0]-h.point[0])*C,D=h.point[1]+(l.point[1]-h.point[1])*C,k.translate(-v[0]*R[n].an*.005,-v[1]*B*.01),d=!1):g&&(c+=l.partialLength,(p+=1)>=g.length&&(p=0,m[u+=1]?g=m[u].points:x.v.c?(p=0,g=m[u=0].points):(c-=l.partialLength,g=null)),g&&(h=l,f=(l=g[p]).partialLength));I=R[n].an/2-R[n].add,k.translate(-I,0,0)}else I=R[n].an/2-R[n].add,k.translate(-I,0,0),k.translate(-v[0]*R[n].an*.005,-v[1]*B*.01,0);for(P=0;P<j;P+=1)(O=S[P].a).t.propType&&(A=S[P].s.getMult(R[n].anIndexes[P],w.a[P].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?A.length?s+=O.t.v*A[0]:s+=O.t.v*A:A.length?r+=O.t.v*A[0]:r+=O.t.v*A));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(F=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(W=[e.fc[0],e.fc[1],e.fc[2]]),P=0;P<j;P+=1)(O=S[P].a).a.propType&&((A=S[P].s.getMult(R[n].anIndexes[P],w.a[P].s.totalChars)).length?k.translate(-O.a.v[0]*A[0],-O.a.v[1]*A[1],O.a.v[2]*A[2]):k.translate(-O.a.v[0]*A,-O.a.v[1]*A,O.a.v[2]*A));for(P=0;P<j;P+=1)(O=S[P].a).s.propType&&((A=S[P].s.getMult(R[n].anIndexes[P],w.a[P].s.totalChars)).length?k.scale(1+(O.s.v[0]-1)*A[0],1+(O.s.v[1]-1)*A[1],1):k.scale(1+(O.s.v[0]-1)*A,1+(O.s.v[1]-1)*A,1));for(P=0;P<j;P+=1){if(O=S[P].a,A=S[P].s.getMult(R[n].anIndexes[P],w.a[P].s.totalChars),O.sk.propType&&(A.length?k.skewFromAxis(-O.sk.v*A[0],O.sa.v*A[1]):k.skewFromAxis(-O.sk.v*A,O.sa.v*A)),O.r.propType&&(A.length?k.rotateZ(-O.r.v*A[2]):k.rotateZ(-O.r.v*A)),O.ry.propType&&(A.length?k.rotateY(O.ry.v*A[1]):k.rotateY(O.ry.v*A)),O.rx.propType&&(A.length?k.rotateX(O.rx.v*A[0]):k.rotateX(O.rx.v*A)),O.o.propType&&(A.length?N+=(O.o.v*A[0]-N)*A[0]:N+=(O.o.v*A-N)*A),e.strokeWidthAnim&&O.sw.propType&&(A.length?H+=O.sw.v*A[0]:H+=O.sw.v*A),e.strokeColorAnim&&O.sc.propType)for($=0;$<3;$+=1)A.length?F[$]+=(O.sc.v[$]-F[$])*A[0]:F[$]+=(O.sc.v[$]-F[$])*A;if(e.fillColorAnim&&e.fc){if(O.fc.propType)for($=0;$<3;$+=1)A.length?W[$]+=(O.fc.v[$]-W[$])*A[0]:W[$]+=(O.fc.v[$]-W[$])*A;O.fh.propType&&(W=A.length?addHueToRGB(W,O.fh.v*A[0]):addHueToRGB(W,O.fh.v*A)),O.fs.propType&&(W=A.length?addSaturationToRGB(W,O.fs.v*A[0]):addSaturationToRGB(W,O.fs.v*A)),O.fb.propType&&(W=A.length?addBrightnessToRGB(W,O.fb.v*A[0]):addBrightnessToRGB(W,O.fb.v*A))}}for(P=0;P<j;P+=1)(O=S[P].a).p.propType&&(A=S[P].s.getMult(R[n].anIndexes[P],w.a[P].s.totalChars),this._hasMaskedPath?A.length?k.translate(0,O.p.v[1]*A[0],-O.p.v[2]*A[1]):k.translate(0,O.p.v[1]*A,-O.p.v[2]*A):A.length?k.translate(O.p.v[0]*A[0],O.p.v[1]*A[1],-O.p.v[2]*A[2]):k.translate(O.p.v[0]*A,O.p.v[1]*A,-O.p.v[2]*A));if(e.strokeWidthAnim&&(G=H<0?0:H),e.strokeColorAnim&&(U="rgb("+Math.round(255*F[0])+","+Math.round(255*F[1])+","+Math.round(255*F[2])+")"),e.fillColorAnim&&e.fc&&(Z="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,v[1]*B*.01+i,0),this._pathData.p.v){b=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<h.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(V,D,0),s-=v[0]*R[n].an*.005,R[n+1]&&K!==R[n+1].ind&&(s+=R[n].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(r,i,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(R[n].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[R[n].line]),0,0);break;case 2:k.translate(R[n].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[R[n].line])/2,0,0)}k.translate(0,-e.ls),k.translate(I,0,0),k.translate(v[0]*R[n].an*.005,v[1]*B*.01,0),r+=R[n].l+.001*e.tr*e.finalSize}"html"===_?ee=k.toCSS():"svg"===_?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]],Y=N}T<=n?(L=new LetterProps(Y,G,U,Z,ee,te),this.renderedLetters.push(L),T+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[n],this.lettersChangedFlag=L.update(Y,G,U,Z,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,i,n=t.length,o="";for(r=0;r<n;r+=1)"sh"===t[r].ty&&(i=t[r].ks.k,o+=buildShapeString(i,i.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,n){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(i,n,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=t.title,this.svgElement.appendChild(i),r+=n}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,i=[],n="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(i.push(n),n=""):n+=e[t],t+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.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*r.tr*r.finalSize;if(!d||l||r.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(a=f>e?this.textSpans[e].span:createNS(l?"g":"text"),f<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),d&&(s[e].n&&(p=-g,u+=r.yOffset,u+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(r,c,s[e].line,p,u),p+=s[e].l||0,p+=g),l){var C;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)C=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),C=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var x=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[e].glyph=C,C._debug=!0,C.prepareFrame(0),C.renderFrame(),this.textSpans[e].childSpan.appendChild(C.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else d&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&a&&a.setAttribute("d","")}else{var v=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}v.setAttribute("text-anchor",S),v.setAttribute("letter-spacing",g);var w=this.buildTextContents(r.finalText);for(t=w.length,u=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=w[e],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",v.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,u+=r.finalLineHeight;this.layerElement.appendChild(v)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,i,n,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=o[e],i=this.textSpans[e].span,(n=this.textSpans[e].glyph)&&n.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var n=t[i].getMatte(this.layers[e].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,n=this.elements[i].getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i,n=0;n<t;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,i="_";for(t=0;t<r;t+=1)i+=e[t].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(e,t){for(var r=0,i=e.transforms.length,n=t;r<i&&!t;){if(e.transforms[r].transform.mProps._mdf){n=!0;break}r+=1}if(n)for(e.finalTransform.reset(),r=i-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=n},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,i=null;function n(){var n,o,a;t||(n=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(a),n.appendChild(o),n.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),i=n,document.body.appendChild(i),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:n,get:function(i){return t||n(),t.width=i.width,t.height=i.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,r,i=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<i;t+=1){r=null;var n=e.data.ef[t].ty;registeredEffects[n]&&(r=new(0,registeredEffects[n].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)"n"!==this.masksProperties[r].mode&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,i,n=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),i=this.viewData[e].v,t=n.applyToPointArray(i.v[0][0],i.v[0][1],0),o.moveTo(t[0],t[1]);var l=i._length;for(s=1;s<l;s+=1)r=n.applyToTriplePoints(i.o[s-1],i.i[s],i.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[s-1],i.i[0],i.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=r.length;for(n=0;n<s;n+=1)r[n].closed||(a={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(a),r[n].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var n,o=e.ks.or.k.length;for(n=0;n<o;n+=1)e.ks.or.k[n].to=null,e.ks.or.k[n].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},i={};if("fl"===e.ty||"st"===e.ty?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var n=new DashProperty(this,e.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,n){var o,a,s,l,c,d,p=e.length-1,u=[],h=[],g=[].concat(n);for(o=p;o>=0;o-=1){if((l=this.searchProcessedElement(e[o]))?t[o]=r[l-1]:e[o]._shouldRender=i,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)l?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],g),u.push(t[o].style);else if("gr"===e[o].ty){if(l)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,i,g)}else"tr"===e[o].ty?(l||(d=this.createTransformElement(e[o]),t[o]=d),g.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?l||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(l?(c=t[o]).closed=!1:((c=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),h.push(c)):"rp"===e[o].ty&&(l?(c=t[o]).closed=!0:(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),i=!1),h.push(c));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),p=h.length,o=0;o<p;o+=1)h[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,i,n,o,a,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(),o=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),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),n=(a=o[t].trNodes).length,i=0;i<n;i+=1)"m"===a[i].t?p.moveTo(a[i].p[0],a[i].p[1]):"c"===a[i].t?p.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].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,r,i){var n,o;for(o=e,n=t.length-1;n>=0;n-=1)"tr"===t[n].ty?(o=r[n].transform,this.renderShapeTransform(e,o)):"sh"===t[n].ty||"el"===t[n].ty||"rc"===t[n].ty||"sr"===t[n].ty?this.renderPath(t[n],r[n]):"fl"===t[n].ty?this.renderFill(t[n],r[n],o):"st"===t[n].ty?this.renderStroke(t[n],r[n],o):"gf"===t[n].ty||"gs"===t[n].ty?this.renderGradientFill(t[n],r[n],o):"gr"===t[n].ty?this.renderShape(o,t[n].it,r[n].it):t[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,i,n,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var l=e.transforms.finalTransform;for(n=0;n<s;n+=1){var c=a.shapes[n];if(c&&c.v){for(i=c._length,r=1;r<i;r+=1)1===r&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===i&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&i&&(o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i,n=t.style;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)i=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),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];i=a.createRadialGradient(h,g,0,s[0],s[1],c)}var m=e.g.p,f=t.g.c,y=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*o+1]),i.addColorStop(f[4*o]/100,"rgba("+f[4*o+1]+","+f[4*o+2]+","+f[4*o+3]+","+y+")");n.grd=i}n.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,n=t.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i,n,o,a,s,l,c,d,p,u,h,g,m=this.globalData.fontManager.getFontByName(e.f),f=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var C=this.data.singleShape,b=.001*e.tr*e.finalSize,x=0,v=0,S=!0,w=0;for(i=0;i<n;i+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[i],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},y.reset(),C&&f[i].n&&(x=-b,v+=e.yOffset,v+=S?1:0,S=!1),p=(c=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),C&&this.applyTextPropertiesToMatrix(e,y,f[i].line,x,v),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}C&&(x+=f[i].l,x+=b),this.textSpans[w]?this.textSpans[w].elem=h:this.textSpans[w]={elem:h},w+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,i,n,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,d,p=null,u=null,h=null,g=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=s[e])&&(g.save(),g.ctxTransform(a.p),g.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(g.ctxFillStyle(a.fc),p=a.fc):p!==this.values.fill&&(p=this.values.fill,g.ctxFillStyle(this.values.fill)),i=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(o=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),n=2;n<o;n+=6)this.globalData.canvasContext.bezierCurveTo(d[n],d[n+1],d[n+2],d[n+3],d[n+4],d[n+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(a&&a.sw?h!==a.sw&&(h=a.sw,g.ctxLineWidth(a.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),a&&a.sc?u!==a.sc&&(u=a.sc,g.ctxStrokeStyle(a.sc)):u!==this.values.stroke&&(u=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),i=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(o=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),n=2;n<o;n+=6)this.globalData.canvasContext.bezierCurveTo(d[n],d[n+1],d[n+2],d[n+3],d[n+4],d[n+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,i=e.getContext("2d"),n=this.img.width,o=this.img.height,a=n/o,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?t=(r=o)*s:r=(t=n)/s,i.drawImage(this.img,(n-t)/2,(o-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,i){this.canvasContext.fillRect(e,t,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,i,n,o;if(this.reset(),e?(r=e,i=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),d=l.substr(4);n=r/i,(o=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===s||o<n&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(o<n&&"meet"===s||o>n&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(o<n&&"meet"===s||o>n&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===d&&(o>n&&"meet"===s||o<n&&"slice"===s)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===d&&(o>n&&"meet"===s||o<n&&"slice"===s)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],i=r.transform,n=this.cTr.props;for(t=0;t<16;t+=1)n[t]=i[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,i=this.stack[this.cArrPos];for(r=0;r<16;r+=1)i.transform[r]=t[r];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=i.opacity,n.fillStyle=i.fillStyle,n.strokeStyle=i.strokeStyle,n.lineWidth=i.lineWidth,n.lineCap=i.lineCap,n.lineJoin=i.lineJoin,n.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,i,n,o,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)i=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[r+1]),a=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(i,n,o,a,t);s.c&&(i=this.getTransformedPoint(l,s.v[r]),n=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(i,n,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,n){this.getBoundsOfCurve(e,t,r,i);var o=this.shapeBoundingBox;n.x=bmMin(o.left,n.x),n.xMax=bmMax(o.right,n.xMax),n.y=bmMin(o.top,n.y),n.yMax=bmMax(o.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(e,t,r,i){for(var n,o,a,s,l,c,d,p=[[e[0],i[0]],[e[1],i[1]]],u=0;u<2;++u)o=6*e[u]-12*t[u]+6*r[u],n=-3*e[u]+9*t[u]-9*r[u]+3*i[u],a=3*t[u]-3*e[u],o|=0,a|=0,0==(n|=0)&&0===o||(0===n?(s=-a/o)>0&&s<1&&p[u].push(this.calculateF(s,e,t,r,i,u)):(l=o*o-4*a*n)>=0&&((c=(-o+bmSqrt(l))/(2*n))>0&&c<1&&p[u].push(this.calculateF(c,e,t,r,i,u)),(d=(-o-bmSqrt(l))/(2*n))>0&&d<1&&p[u].push(this.calculateF(d,e,t,r,i,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,r,i,n,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*n[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var n=e.keyframes[i].s;n>r&&(r=n)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.webkitTransform=n}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i,n,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,d,p=e.l;n=p.length;var u,h=this.mHelper,g="",m=0;for(i=0;i<n;i+=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[i],o.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 C=d.getBBox();d.setAttribute("width",C.width+2),d.setAttribute("height",C.height+2),d.setAttribute("viewBox",C.x-1+" "+(C.y-1)+" "+(C.width+2)+" "+(C.height+2));var b=d.style,x="translate("+(C.x-1)+"px,"+(C.y-1)+"px)";b.transform=x,b.webkitTransform=x,p[i].yOffset=C.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);c.appendChild(d)}}else if(l.textContent=p[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var v=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";v.transform=S,v.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 r,i,n,o,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(i=c.length,r=0;r<i;r+=1)c[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],n=l[s],s+=1,n._mdf.m&&(this.isMasked?o.setAttribute("transform",n.m):(o.style.webkitTransform=n.m,o.style.transform=n.m)),o.style.opacity=n.o,n.sw&&n._mdf.sw&&a.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&a.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(a.setAttribute("fill",n.fc),a.style.color=n.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,r,i,n=this.comp.threeDElements.length;for(e=0;e<n;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,i=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,i.transformOrigin=a,i.mozTransformOrigin=a,i.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/o,n[1]/o,n[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var 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 r=e.getBaseElement();if(r){var i=this.layers[t];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var n,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],n=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||n),a+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,i,n=createTag("div");styleDiv(n);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=o.style).transform=s,i.webkitTransform=s}n.appendChild(o);var l={container:o,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,i="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==i&&(i="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==i&&(i="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var n,o=this.threeDElements[r].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(n=this.elements[o].getBaseElement()),o+=1;n?this.threeDElements[r].container.insertBefore(e,n):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var o=createNS("defs");n.appendChild(o),this.data=e,this.setupGlobalData(e,n),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,i,n=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=n/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=n/this.globalData.compSize.w,t=n/this.globalData.compSize.w,r=0,i=(o-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,i=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+i+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(e=0;e<i;e+=1){var n=this.threeDElements[e].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t],i,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,i=0;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,i=e.layers.length;r<i;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var r=this,i=256,n="random",o=t.pow(i,6),a=t.pow(2,52),s=2*a,l=255;function c(e){var t,r=e.length,n=this,o=0,a=n.i=n.j=0,s=n.S=[];for(r||(e=[r++]);o<i;)s[o]=o++;for(o=0;o<i;o++)s[o]=s[a=l&a+e[o%r]+(t=s[o])],s[a]=t;n.g=function(e){for(var t,r=0,o=n.i,a=n.j,s=n.S;e--;)t=s[o=l&o+1],r=r*i+s[l&(s[o]=s[a=l&a+t])+(s[a]=t)];return n.i=o,n.j=a,r}}function d(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var r,i=[],n=_typeof$2(e);if(t&&"object"==n)for(r in e)try{i.push(p(e[r],t-1))}catch(e){}return i.length?i:"string"==n?e:e+"\0"}function u(e,t){for(var r,i=e+"",n=0;n<i.length;)t[l&n]=l&(r^=19*t[l&n])+i.charCodeAt(n++);return h(t)}function h(e){return String.fromCharCode.apply(0,e)}t["seed"+n]=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(i);return(r.crypto||r.msCrypto).getRandomValues(t),h(t)}catch(t){var n=r.navigator,o=n&&n.plugins;return[+new Date,r,o,r.screen,h(e)]}}():l,3),f),C=new c(f),b=function(){for(var e=C.g(6),t=o,r=0;e<a;)e=(e+r)*i,t*=i,r=C.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|C.g(4)},b.quick=function(){return C.g(4)/4294967296},b.double=b,u(h(C.S),e),(g.pass||m||function(e,r,i,o){return o&&(o.S&&d(o,C),e.state=function(){return d(C,{})}),i?(t[n]=e,r):e})(b,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 r,i=e.length,n=[];for(r=0;r<i;r+=1)n[r]=-e[r];return n}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t)||"string"===r||"string"===i)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,o=e.length,a=t.length,s=[];n<o||n<a;)("number"==typeof e[n]||e[n]instanceof Number)&&("number"==typeof t[n]||t[n]instanceof Number)?s[n]=e[n]+t[n]:s[n]=void 0===t[n]?e[n]:e[n]||t[n],n+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t))return"string"===r&&(e=parseInt(e,10)),"string"===i&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,o=e.length,a=t.length,s=[];n<o||n<a;)("number"==typeof e[n]||e[n]instanceof Number)&&("number"==typeof t[n]||t[n]instanceof Number)?s[n]=e[n]-t[n]:s[n]=void 0===t[n]?e[n]:e[n]||t[n],n+=1;return s}return 0}function mul(e,t){var r,i,n,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=e[i]*t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=e*t[i];return r}return 0}function div(e,t){var r,i,n,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=e[i]/t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=e/t[i];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var i=Math.min(e.length,t.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(t[r]-e[r],2);return Math.sqrt(n)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,i=e[0],n=e[1],o=e[2],a=Math.max(i,n,o),s=Math.min(i,n,o),l=(a+s)/2;if(a===s)t=0,r=0;else{var c=a-s;switch(r=l>.5?c/(2-a-s):c/(a+s),a){case i:t=(n-o)/c+(n<o?6:0);break;case n:t=(o-i)/c+2;break;case o:t=(i-n)/c+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,i,n=e[0],o=e[1],a=e[2];if(0===o)t=a,i=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;t=hue2rgb(l,s,n+1/3),r=hue2rgb(l,s,n),i=hue2rgb(l,s,n-1/3)}return[t,r,i,e[3]]}function linear(e,t,r,i,n){if(void 0!==i&&void 0!==n||(i=t,n=r,t=0,r=1),r<t){var o=r;r=t,t=o}if(e<=t)return i;if(e>=r)return n;var a,s=r===t?0:(e-t)/(r-t);if(!i.length)return i+(n-i)*s;var l=i.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=i[a]+(n[a]-i[a])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var n=createTypedArray("float32",i),o=BMMath.random();for(r=0;r<i;r+=1)n[r]=e[r]+o*(t[r]-e[r]);return n}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,i){var n,o=e.length,a=shapePool.newElement();a.setPathData(!!i,o);var s,l,c=[0,0];for(n=0;n<o;n+=1)s=t&&t[n]?t[n]:c,l=r&&r[n]?r[n]:c,a.setTripleAt(e[n][0],e[n][1],l[0]+e[n][0],l[1]+e[n][1],s[0]+e[n][0],s[1]+e[n][1],n,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._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 r,i,n=this.pv.length?this.pv.length:1,o=createTypedArray("float32",n),a=Math.floor(5*time);for(r=0,i=0;r<a;){for(i=0;i<n;i+=1)o[i]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)c[i]=this.pv[i]+o[i]+(-t+2*t*BMMath.random())*l;return c}return this.pv+o[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(e,t,r,i,n){return applyEase(easeOutBez,e,t,r,i,n)}function easeIn(e,t,r,i,n){return applyEase(easeInBez,e,t,r,i,n)}function ease(e,t,r,i,n){return applyEase(easeInOutBez,e,t,r,i,n)}function applyEase(e,t,r,i,n,o){void 0===n?(n=r,o=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(n)){var s,l=n.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(o[s]-n[s])*a+n[s];return c}return(o-n)*a+n}function nearestKey(e){var t,r,i,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(t=0;t<n-1;t+=1){if(e===data.k[t].t){r=t+1,i=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,i=data.k[t+1].t):(r=t+1,i=data.k[t].t);break}}-1===r&&(r=t+1,i=data.k[t].t)}else r=0,i=0;var o={};return o.index=r,o.time=i/elem.comp.globalData.frameRate,o}function key(e){var t,r,i;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 n=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=n.length,r=0;r<i;r+=1)t[r]=n[r],t.value[r]=n[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,i=createSizedArray(t.viewData.length),n=t.viewData.length;for(r=0;r<n;r+=1)i[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<n;){if(t.masksProperties[r].nm===e)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(i){if(!e.numKeys)return 0;var n="";n="s"in t.keyframes[i-1]?t.keyframes[i-1].s:"e"in t.keyframes[i-2]?t.keyframes[i-2].e:t.keyframes[i-2].s;var o="unidimensional"===r?new Number(n):Object.assign({},n);return o.time=t.keyframes[i-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===r?n[0]:n,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function i(){return e}return function(n){return n?"unidimensional"===n.propType?function(t){t&&"pv"in t||(t=e);var i=1/t.mult,n=t.pv*i,o=new Number(n);return o.value=n,r(o,t,"unidimensional"),function(){return t.k&&t.getValue(),n=t.v*i,o.value!==n&&((o=new Number(n)).value=n,o[0]=n,r(o,t,"unidimensional")),o}}(n):function(e){e&&"pv"in e||(e=t);var i=1/e.mult,n=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",n),a=createTypedArray("float32",n);return o.value=a,r(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<n;t+=1)a[t]=e.v[t]*i,o[t]=a[t];return o}}(n):i}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,i,n,o;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(n=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[r(),i(),n?n():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var 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=a,p.applyPoint=o,p.toWorld=r,p.toWorldVec=t,p.fromWorld=n,p.fromWorldVec=i,p.toComp=r,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(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){var e={createEffectsInterface:function(e,r){if(e.effectsManager){var i,n=[],o=e.data.ef,a=e.effectsManager.effectElements.length;for(i=0;i<a;i+=1)n.push(t(o[i],e.effectsManager.effectElements[i],r,e));var s=e.data.ef||[],l=function(e){for(i=0,a=s.length;i<a;){if(e===s[i].nm||e===s[i].mn||e===s[i].ix)return n[i];i+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function t(e,i,n,o){function a(t){for(var r=e.ef,i=0,n=r.length;i<n;){if(t===r[i].nm||t===r[i].mn||t===r[i].ix)return 5===r[i].ty?c[i]:c[i]();i+=1}throw new Error}var s,l=propertyGroupFactory(a,n),c=[],d=e.ef.length;for(s=0;s<d;s+=1)5===e.ef[s].ty?c.push(t(e.ef[s],i.effectElements[s],i.effectElements[s].propertyGroup,o)):c.push(r(i.effectElements[s],e.ef[s].ty,o,l));return"ADBE Color Control"===e.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:l}}),a.enabled=0!==e.en,a.active=a.enabled,a}function r(e,t,r,i){var n=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===t?r.comp.compInterface(e.p.v):n()}}return e}(),ShapePathInterface=function(e,t,r){var i=t.sh;function n(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?n.path:null}var o=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),n},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(r(e[g],s[g],h)):"st"===e[g].ty?m.push(o(e[g],s[g],h)):"tm"===e[g].ty?m.push(a(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(i(e[g],s[g],h)):m.push(n(e[g],s[g])));return m}function t(t,r,i){var n=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,i);var o=function(t,r,i){var n,o=function(e){for(var t=0,r=n.length;t<r;){if(n[t]._name===e||n[t].mn===e||n[t].propertyIndex===e||n[t].ix===e||n[t].ind===e)return n[t];t+=1}return"number"==typeof e?n[e-1]:null};o.propertyGroup=propertyGroupFactory(o,i),n=e(t.it,r.it,o.propertyGroup),o.numProperties=n.length;var a=s(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=a,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,n.propertyGroup),a=s(t.it[t.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.content=o,n.transform=a,Object.defineProperty(n,"_name",{get:function(){return t.nm}}),n.numProperties=t.np,n.propertyIndex=t.ix,n.nm=t.nm,n.mn=t.mn,n}function r(e,t,r){function i(e){return"Color"===e||"color"===e?i.color:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function i(e,t,r){function i(e){return"Start Point"===e||"start point"===e?i.startPoint:"End Point"===e||"end point"===e?i.endPoint:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function n(){return function(){return null}}function o(e,t,r){var i,n=propertyGroupFactory(c,r),o=propertyGroupFactory(l,n);function a(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(i=0;i<s;i+=1)a(i),t.d.dataProps[i].p.setGroupProperty(o);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),t.w.setGroupProperty(PropertyInterface("Stroke Width",n)),c}function a(e,t,r){function i(t){return t===e.e.ix||"End"===t||"end"===t?i.end:t===e.s.ix?i.start:t===e.o.ix?i.offset:null}var n=propertyGroupFactory(i,r);return i.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",n)),t.e.setGroupProperty(PropertyInterface("End",n)),t.o.setGroupProperty(PropertyInterface("Offset",n)),i.propertyIndex=e.ix,i.propertyGroup=r,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),i.mn=e.mn,i}function s(e,t,r){function i(t){return e.a.ix===t||"Anchor Point"===t?i.anchorPoint:e.o.ix===t||"Opacity"===t?i.opacity:e.p.ix===t||"Position"===t?i.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?i.rotation:e.s.ix===t||"Scale"===t?i.scale:e.sk&&e.sk.ix===t||"Skew"===t?i.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?i.skewAxis:null}var n=propertyGroupFactory(i,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(i,{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}}),i.ty="tr",i.mn=e.mn,i.propertyGroup=r,i}function l(e,t,r){function i(t){return e.p.ix===t?i.position:e.s.ix===t?i.size:null}var n=propertyGroupFactory(i,r);i.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",n)),o.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),i.mn=e.mn,i}function c(e,t,r){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.rotation:e.pt.ix===t?i.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?i.outerRadius:e.os.ix===t?i.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?i.innerRoundness:null:i.innerRadius}var n=propertyGroupFactory(i,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",n)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),o.pt.setGroupProperty(PropertyInterface("Points",n)),o.p.setGroupProperty(PropertyInterface("Position",n)),o.r.setGroupProperty(PropertyInterface("Rotation",n)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),i.mn=e.mn,i}function d(e,t,r){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?i.size:null}var n=propertyGroupFactory(i,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",n)),o.s.setGroupProperty(PropertyInterface("Size",n)),o.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),i.mn=e.mn,i}function p(e,t,r){function i(t){return e.r.ix===t||"Round Corners 1"===t?i.radius:null}var n=propertyGroupFactory(i,r),o=t;return i.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),i.mn=e.mn,i}function u(e,t,r){function i(t){return e.c.ix===t||"Copies"===t?i.copies:e.o.ix===t||"Offset"===t?i.offset:null}var n=propertyGroupFactory(i,r),o=t;return i.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",n)),o.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),i.mn=e.mn,i}return function(t,r,i){var n;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?i:n[e-1];for(var t=0,r=n.length;t<r;){if(n[t]._name===e)return n[t];t+=1}return null}return o.propertyGroup=propertyGroupFactory(o,function(){return i}),n=e(t,r,o.propertyGroup),o.numProperties=n.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function i(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?i:r;var n=e.indexOf(t);if(-1!==n){var o=parseInt(e.substr(n+t.length),10);return"object"===_typeof(r=r[o])?i:r}return""}return function(){return t="",r=e.getFootageData(),i}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),i=0;if(t.length){var n;for(n=0;n<t.length;n+=1)i+=Math.pow(r[n]-t[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,i=-.001,n=this.getValueAtTime(e),o=this.getValueAtTime(e+i);if(n.length)for(t=createTypedArray("float32",n.length),r=0;r<n.length;r+=1)t[r]=(o[r]-n[r])/i;else t=(o-n)/i;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var i,n,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[c.length-1].t;if(l<=d)return this.pv;if(r?n=d-(i=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),i=d-(n=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-n)/i)%2!=0)return this.getValueAtTime((i-(l-n)%i+n)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime(d/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0),g=Math.floor((l-n)/i);if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=(u[o]-p[o])*g+h[o];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(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-f[o])*((l-d)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-d)/.001*(m-f)}}return this.getValueAtTime(((l-n)%i+n)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var i,n,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[0].t;if(l>=d)return this.pv;if(r?n=d+(i=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),i=(n=c[t].t)-d),"pingpong"===e){if(Math.floor((d-l)/i)%2==0)return this.getValueAtTime(((d-l)%i+d)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(d/this.comp.globalData.frameRate,0),u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),h=this.getValueAtTime((i-(d-l)%i+d)/this.comp.globalData.frameRate,0),g=Math.floor((d-l)/i)+1;if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=h[o]-(u[o]-p[o])*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(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-f[o])*(d-l)/.001;return s}return m+(m-f)*(d-l)/.001}}return this.getValueAtTime((i-((d-l)%i+d))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,i,n=this.comp.renderedFrame/this.comp.globalData.frameRate,o=n-e,a=t>1?(n+e-o)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(i=this.getValueAtTime(o+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=i[l];else r+=i;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function i(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(e);t.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-n*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),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 n(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=o(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=i.bind(a):a.getValueAtTime=n.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(i,n,o,s,l){var c=a(i,n,o,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===n.a?n.k.length:0,c.propertyIndex=n.ix;var d=0;return 0!==o&&(d=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(i,n,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var r,i=this.v;void 0!==t&&(i=this.getValueAtTime(t,0));var n=i._length,o=i[e],a=i.v,s=createSizedArray(n);for(r=0;r<n;r+=1)s[r]="i"===e||"o"===e?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,n=this._segmentsLength,o=n.lengths,a=n.totalLength*e,s=0,l=o.length,c=0;s<l;){if(c+o[s].addedLength>a){var d=s,p=r.c&&s===l-1?0:s+1,u=(a-c)/o[s].addedLength;i=bez.getPointInSegment(r.v[d],r.v[p],r.o[d],r.i[p],u,o[s]);break}c+=o[s].addedLength,s+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var i=this.pointOnPath(e,t),n=this.pointOnPath(e+.001,t),o=n[0]-i[0],a=n[1]-i[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,i,n){var o=d(e,t,r,i,n);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var i={};return this.copyData(i,e),i.t=r.toString(),i.__complete=!1,i}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,i,n=createNS("feMerge");for(n.setAttribute("result",e),i=0;i<t.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",t[i]),n.appendChild(r),n.appendChild(r);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(e,t,r,i,n){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",i+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i),e.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(n);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,e.appendChild(o)}function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var n=this.filterManager.effectElements,o=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",o)),(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",o)),(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",o)),(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",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(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)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,r,i,n){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",i+"_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",i+"_drop_shadow_1"),l.setAttribute("result",i+"_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",i+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var d=createNS("feComposite");d.setAttribute("in",i+"_drop_shadow_3"),d.setAttribute("in2",i+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(d);var p=this.createMergeNode(i,[i+"_drop_shadow_4",n]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<i;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");n[0];)s.appendChild(n[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,i,n=this.paths.length;for(t=0;t<n;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],i=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=i.getTotalLength();o="0 0 0 "+l*a+" ";var c,d=l*(s-a),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)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*l+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var 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,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+t[0],o=i[1]+" "+r[1]+" "+t[1],a=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,n){for(var o,a,s=0,l=Math.min(e,t),c=Math.max(e,t),d=Array.call(null,{length:256}),p=0,u=n-i,h=t-e;s<=256;)a=(o=s/256)<=l?h<0?n:i:o>=c?h<0?i:n:i+u*Math.pow((o-e)/h,1/r),d[p]=a,p+=1,s+=256/255;return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),o=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("result",i),e.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i,n=r.children,o=0,a=n.length;o<a&&n[o]!==e.layerElement;)o+=1;o<=a-2&&(i=n[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),i?r.insertBefore(s,i):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var n=e.globalData.defs;n.appendChild(i);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(t,r),o.appendChild(t.layerElement),n.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=3==r?0:t,n=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,i=t[1].p.v,n=1===t[2].p.v,o=t[3].p.v,a=n?o:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(i[0],i[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 r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(l=(i=o.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)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(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,i,n=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t);if("object"!=typeof i)return i;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 r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_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 r=e.animationData,i=e.loop,n=e.autoplay,o=e.initialSegment,a=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(React.useState(!1),2),C=y[0],b=y[1],x=React.useRef(),v=React.useRef(null);return React.useEffect(function(){var t=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(v.current){null===(t=x.current)||void 0===t||t.destroy();var i=_objectSpread2(_objectSpread2(_objectSpread2({},e),r),{},{container:v.current});return x.current=lottie.loadAnimation(i),b(!!x.current),function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0}}}();return function(){return null==t?void 0:t()}},[r,i]),React.useEffect(function(){x.current&&(x.current.autoplay=!!n)},[n]),React.useEffect(function(){x.current&&(o?Array.isArray(o)&&o.length&&((x.current.currentRawFrame<o[0]||x.current.currentRawFrame>o[1])&&(x.current.currentRawFrame=o[0]),x.current.setSegment(o[0],o[1])):x.current.resetSegments(!0))},[o]),React.useEffect(function(){var e=[{name:"complete",handler:a},{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=x.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=x.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[a,s,l,c,d,p,u,h,g,m]),{View:React.createElement("div",_objectSpread2({style:t,ref:v},f)),play:function(){var e;null===(e=x.current)||void 0===e||e.play()},stop:function(){var e;null===(e=x.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=x.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=x.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=x.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=x.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=x.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=x.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0},animationContainerRef:v,animationLoaded:C,animationItem:x.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),r=t.top,i=t.height;return(window.innerHeight-r)/(window.innerHeight+i)}function getContainerCursorPosition(e,t,r){var i=e.getBoundingClientRect(),n=i.top;return{x:(t-i.left)/i.width,y:(r-n)/i.height}}var useInitInteractivity=function(e){var t=e.wrapperRef,r=e.animationItem,i=e.mode,n=e.actions;React.useEffect(function(){var e=t.current;if(e&&r&&n.length){r.stop();var o,a,s,l,c;switch(i){case"scroll":return l=null,c=function(){var t=getContainerVisibility(e),i=n.find(function(e){var r=e.visibility;return r&&t>=r[0]&&t<=r[1]});if(i){if("seek"===i.type&&i.visibility&&2===i.frames.length){var o=i.frames[0]+Math.ceil((t-i.visibility[0])/(i.visibility[1]-i.visibility[0])*i.frames[1]);
31
31
  //! goToAndStop must be relative to the start of the current segment
32
- r.goToAndStop(o-r.firstFrame-1,!0)}"loop"===i.type&&(null===l||l!==i.frames||r.isPaused)&&(r.playSegments(i.frames,!0),l=i.frames),"play"===i.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===i.type&&r.goToAndStop(i.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",c),function(){document.removeEventListener("scroll",c)};case"cursor":return o=function(t,i){var o=t,a=i;if(-1!==o&&-1!==a){var s=getContainerCursorPosition(e,o,a);o=s.x,a=s.y}var l=n.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?o>=t.x[0]&&o<=t.x[1]&&a>=t.y[0]&&a<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&o===t.x&&a===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=(o-l.position.x[0])/(l.position.x[1]-l.position.x[0]),d=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+d)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},a=function(e){o(e.clientX,e.clientY)},s=function(){o(-1,-1)},e.addEventListener("mousemove",a),e.addEventListener("mouseout",s),function(){e.removeEventListener("mousemove",a),e.removeEventListener("mouseout",s)}}}},[i,r])},useLottieInteractivity=function(e){var t=e.actions,r=e.mode,i=e.lottieObj,n=i.animationItem,o=i.View,a=i.animationContainerRef;return useInitInteractivity({actions:t,animationItem:n,mode:r,wrapperRef:a}),o},_excluded=["style","interactivity"],Lottie=function(e){var t,r,i,n=e.style,o=e.interactivity,a=_objectWithoutProperties(e,_excluded),s=useLottie(a,n),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,C=s.getDuration,b=s.destroy,x=s.animationContainerRef,v=s.animationLoaded,S=s.animationItem;return React.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:C,destroy:b,animationContainerRef:x,animationLoaded:v,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:C,destroy:b,animationContainerRef:x,animationLoaded:v,animationItem:S},actions:null!==(r=null==o?void 0:o.actions)&&void 0!==r?r:[],mode:null!==(i=null==o?void 0:o.mode)&&void 0!==i?i:"scroll"})};function OnboardImage({node:e}){useLogRender("OnboardImage"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"OnboardImage",i=e.key??t,[n,o]=React.useState(null),a=useExtractViewStyle$1(e),s=e.attributes;return React.useEffect(()=>{s?.lottie&&fetch(s?.lottie).then(e=>e.json()).then(e=>o(e))},[s?.lottie]),s?.video_url?jsxRuntime.jsx("video",{"attribute-name":r,"attribute-key":i,autoPlay:!0,muted:!0,loop:!0,src:s?.video_url,style:a}):s?.lottie?n?jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsxRuntime.jsx(Lottie,{animationData:n})}):jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:"Loading..."}):jsxRuntime.jsx(Image$2,{node:{...e,type:"image",sourceType:r}})}var OnboardImage$1=React.memo(OnboardImage);function OnboardItem({node:e}){useLogRender("OnboardItem"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"OnboardItem",i=e.key??t,n=useExtractViewStyle$1(e);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,className:"embla__slide",style:n,children:e.children&&jsxRuntime.jsx(RenderNode$1,{node:e.children})})}var OnboardItem$1=React.memo(OnboardItem);function Text({node:e}){useLogRender("Text");const t=(e=useNode(e)).sourceType??e.type??"text",r=e.key,i=React.useRef(null),[n,o]=React.useState(null),{appConfig:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=e.children,d=useExtractTextStyle$1(e),p=isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e}),u=useLocalize({appConfig:a}),h=React.useMemo(()=>u(c),[u,c]),g=e.attributes?.style,m=g?.adjustsFontSizeToFit??!1,f=g?.showEllipsis??!1;React.useLayoutEffect(()=>{if(!m)return void o(null);const e=i.current;if(!e)return;const t=()=>{const t=e.clientWidth,r=e.clientHeight,i=h?.length??0;if(!t||!r||!i)return void o(null);const n=Math.sqrt(t*r/i),a=Number.parseFloat(window.getComputedStyle(e).fontSize),s=Number.isFinite(a)?a:void 0,l=Math.max(8,s?Math.min(n,s):n);o(Number.isFinite(l)?l:null)};t();let r=null;return"undefined"!=typeof ResizeObserver?(r=new ResizeObserver(()=>t()),r.observe(e)):window.addEventListener("resize",t),()=>{r?.disconnect(),window.removeEventListener("resize",t)}},[m,h]);const y=useMergedStyle(useMergedStyle(d,React.useMemo(()=>{let e;return f&&(e={...e??{},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),null!==n&&(e={...e??{},fontSize:`${n}px`}),e},[f,n])),p?SELECTED_OUTLINE_STYLE:void 0);return jsxRuntime.jsx("p",{ref:i,"attribute-name":t,"attribute-key":r,style:y,children:h})}var Text$1=React.memo(Text);function OnboardSubtitle({node:e}){return useLogRender("OnboardSubtitle"),e=useNode(e),jsxRuntime.jsx(Text$1,{node:e})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:e}){return useLogRender("OnboardTitle"),e=useNode(e),jsxRuntime.jsx(Text$1,{node:e})}var OnboardTitle$1=React.memo(OnboardTitle);function PaywallBackground({node:e}){return useLogRender("PaywallBackground"),jsxRuntime.jsx(BackgroundImage$1,{node:e})}var PaywallBackground$1=React.memo(PaywallBackground);function PaywallCloseButton({node:e}){useLogRender("PaywallCloseButton"),e=useNode(e);const{onClose:t,isBackAllowed:r}=usePaywallContext(),i=React.useId(),n=e.sourceType??e.type??"PaywallCloseButton",o=e.key??i,{previewMode:a,selectedKey:s}=useBuilderParams(),l=useExtractViewStyle$1(e),c=useExtractTextStyle$1(e),d=useMergedStyle(l,isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);if(!r)return null;const p=e.attributes,u=p?.style,h=p?.iconType??"close",g=p?.size??c.fontSize??24,m=c.color??u?.color;return jsxRuntime.jsx("a",{"attribute-name":n,"attribute-key":o,href:"#",onClick:e=>{e.preventDefault(),t?.()},"aria-label":"Close",style:{...d,cursor:"pointer",textDecoration:"none"},children:jsxRuntime.jsx(Icon,{iconType:h,size:g,color:m,alt:""})})}var PaywallCloseButton$1=React.memo(PaywallCloseButton);function PaywallOptionButton({product:e,onPress:t,node:r}){const i=React.useId(),n=(e.productId??"").trim(),{previewMode:o,selectedKey:a}=useBuilderParams(),s=useMergedStyle(useExtractViewStyle$1(r),isNodeSelected({previewMode:!!o,current:a?{key:a}:void 0,node:r})?SELECTED_OUTLINE_STYLE:void 0),l=r.sourceType??r.type??"text",c=r.key??i,d=n?`${c}:${n}`:c;return jsxRuntime.jsx("div",{"attribute-name":l,"attribute-key":d,role:"button",tabIndex:0,onClick:()=>t(n),style:{...s,cursor:"pointer"},children:jsxRuntime.jsx(RenderNode$1,{node:r.children})})}function usePaywallOptionParamsFactory(){const{localizationParams:e,otherParams:t}=useParams();return React.useCallback((r,{isSelected:i})=>{const n={price:String(r.price??""),productTitle:String(r.title??""),productDescription:String(r.description??""),productCurreny:String(r.currency??""),localizedPrice:(r.price??"")+" "+(r.currency??""),productId:String(r.productId??""),productSelected:i?"true":"false"};return{localizationParams:{...e,...n},otherParams:{...t,isSelected:i}}},[e,t])}function parseNumberLike$1(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function compareProducts(e,t,r,i){const n=parseNumberLike$1(e.price),o=parseNumberLike$1(t.price);if(void 0!==n&&void 0!==o&&n!==o)return n-o;const a=(e.title??"").trim(),s=(t.title??"").trim();if(a&&s&&a!==s)return a.localeCompare(s);if(a&&!s)return-1;if(!a&&s)return 1;const l=(e.productId??"").trim(),c=(t.productId??"").trim();return l!==c?l.localeCompare(c):r-i}function PaywallOptions({node:e}){useLogRender("PaywallOptions"),e=useNode(e);const{products:t}=useBuilderParams(),{selectedProduct:r,setSelectedProductId:i}=usePaywallContext(),n=usePaywallOptionParamsFactory(),o=React.useMemo(()=>(Array.isArray(t)?t:[]).map((e,t)=>({p:e,idx:t})).sort((e,t)=>compareProducts(e.p,t.p,e.idx,t.idx)).map(({p:e})=>e),[t]);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.map((t,o)=>{const a=t.productId||`${o}`,s=r?.productId===a,{localizationParams:l,otherParams:c}=n(t,{isSelected:s});return jsxRuntime.jsx(ParamsProvider,{localizationParams:l,otherParams:c,children:jsxRuntime.jsx(PaywallOptionButton,{node:e,product:t,selected:s,onPress:i})},a)})})}var PaywallOptions$1=React.memo(PaywallOptions);function LocalizationParamsProvider({params:e,children:t}){return jsxRuntime.jsx(ParamsProvider,{localizationParams:e,otherParams:{},children:t})}function useChangeDelayByPaywall(e,t){const r=React.useMemo(()=>e?.attributes?.delay?parseInt(String(e?.attributes?.delay),10):1e3,[e?.attributes?.delay]);React.useEffect(()=>{if(!r||r<=0)return void t(!0);const e=setTimeout(()=>{t(!0)},r);return()=>clearTimeout(e)},[r,t])}function useMockOSBackHandler(e){React.useEffect(()=>registerMockOSBackHandler(()=>e),[e])}function PaywallProvider({node:e}){useLogRender("PaywallProvider"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"PaywallProvider",i=e.key??t,{benefits:n,products:o,onPaywallSubscribe:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=useMockOSContext(),d=React.useMemo(()=>{const e=n&&"object"==typeof n&&!Array.isArray(n)?n:{},t=Object.entries(e).filter(([e])=>e.trim().length>0),r=Object.fromEntries(t.map(([e,t])=>[e.trim(),String(t)]));for(let e=0;e<t.length;e+=1){const[,i]=t[e],n=String(i);r[`benefit${e+1}`]=n}return r},[n]),p=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),[u,h]=React.useState(""),[g,m]=React.useState(!1);useChangeDelayByPaywall(e,m),useMockOSBackHandler(g),React.useEffect(()=>{const e=Array.isArray(o)?o:[];if(0===e.length)return void(u&&h(""));const t=e.some(e=>e?.productId===u);u&&t||h(e[0]?.productId??"")},[o,u]);const f=React.useMemo(()=>{const e=Array.isArray(o)?o:[];return e.find(e=>e?.productId===u)??(e.length>0?e[0]:void 0)},[o,u]),y=React.useCallback(()=>{if(g&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[c,g]),C=React.useCallback(async e=>{if(a){const t=a(e),r=t instanceof Promise?await t:!0===t;return r&&c?.isEnabled&&c.goBack?.(),r}const t=e?.productId;if(c?.isEnabled&&t&&c.requestSubscriptionPurchase){const e=await c.requestSubscriptionPurchase(t);return e&&c.goBack?.(),e}return!1},[c,a]),b=React.useCallback(()=>{if(g&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[g,c]),x=React.useMemo(()=>({products:Array.isArray(o)?o:[],setSelectedProductId:h,selectedProduct:f,onClose:y,onSubscribe:C,onCounterDown:b,isBackAllowed:g}),[o,f,y,C,b,g]);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:p,children:jsxRuntime.jsx(PaywallContext.Provider,{value:x,children:jsxRuntime.jsx(LocalizationParamsProvider,{params:d,children:jsxRuntime.jsx(RenderNode$1,{node:e.children})})})})}var PaywallProvider$1=React.memo(PaywallProvider);function PaywallSubscribeButton({node:e}){useLogRender("PaywallSubscribeButton"),e=useNode(e);const{onSubscribe:t,selectedProduct:r}=usePaywallContext(),i=React.useId(),n=e.sourceType??e.type??"PaywallSubscribeButton",o=e.key??i,{previewMode:a,selectedKey:s,appConfig:l}=useBuilderParams(),c=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),d=useLocalize({appConfig:l}),p="string"==typeof e.children&&e.children.trim().length>0?e.children:"Subscribe";return jsxRuntime.jsx("a",{type:"button","attribute-name":n,"attribute-key":o,href:"#",onClick:e=>{e.preventDefault(),t?.(r)},style:{...c,cursor:"pointer"},children:d(p)})}var PaywallSubscribeButton$1=React.memo(PaywallSubscribeButton);function parseNumberLike(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function RadioButtonBase({selected:e,color:t="#A6A6A6",size:r=24}){const i=Math.round(.1*r),n=Math.round(.5*r),o=React.useContext(ParamsContext),a=o?.otherParams??{},s=void 0!==a.isSelected?"true"===String(a.isSelected).toLowerCase():e;return jsxRuntime.jsx("div",{style:{marginLeft:8,marginRight:16},children:jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",borderWidth:i,borderStyle:"solid",borderColor:t,width:r,height:r,borderRadius:n,boxSizing:"border-box",flex:"0 0 auto"},children:s?jsxRuntime.jsx("div",{style:{width:n,height:n,borderRadius:2*n,backgroundColor:t}}):jsxRuntime.jsx("div",{style:{width:r,height:r,borderRadius:n}})})})}function RadioButton({node:e}){useLogRender("RadioButton"),e=useNode(e);const t=React.useId(),r=e.type??"RadioButton",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),s=e.attributes,l=Boolean(s?.selected),c=s?.color,d=parseNumberLike(s?.size);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsxRuntime.jsx(RadioButtonBase,{selected:l,color:c,size:d})})}var RadioButton$1=React.memo(RadioButton);function Separator({node:e}){useLogRender("Separator"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"Separator",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a})}var Separator$1=React.memo(Separator);function StatusBarColor({node:e}){useLogRender("StatusBarColor"),e=useNode(e);const{appConfig:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setStatusBarOverrideColor),n=getStyleBag(e.attributes)?.backgroundColor,o=parseColor(n,{projectColors:r,theme:t?.theme});return React.useEffect(()=>(o&&i(o),()=>{i(null)}),[o,i]),null}var StatusBarColor$1=React.memo(StatusBarColor);function View({node:e}){useLogRender("View"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"View",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:e.children&&jsxRuntime.jsx(RenderNode$1,{node:e.children})})}var View$1=React.memo(View);function RenderNode({node:e}){if(isNodeNullOrUndefined(e))return null;if(isNodeString(e))return jsxRuntime.jsx(Text$1,{node:{children:e,type:"Text"}});if(isNodeArray(e))return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.map((e,t)=>jsxRuntime.jsx(RenderNode,{node:e},t))});const t="string"==typeof e?.type?e.type:"unknown",r=normalizeComponentType(t)??t,i={...e,type:r};switch(i.type){case"BIcon":return jsxRuntime.jsx(BIcon$1,{node:i});case"BackgroundImage":return jsxRuntime.jsx(BackgroundImage$1,{node:i});case"Button":return jsxRuntime.jsx(Button$1,{node:i});case"Carousel":return jsxRuntime.jsx(Carousel$1,{node:i});case"CarouselButtons":return jsxRuntime.jsx(CarouselButtons$1,{node:i});case"CarouselDots":return jsxRuntime.jsx(CarouselDots$1,{node:i});case"CarouselItem":return jsxRuntime.jsx(CarouselItem,{node:i});case"CarouselProvider":return jsxRuntime.jsx(CarouselProvider$1,{node:i});case"CountDown":return jsxRuntime.jsx(CountDown,{node:i});case"Image":return jsxRuntime.jsx(Image$2,{node:i});case"Main":return jsxRuntime.jsx(Main$1,{node:i});case"NavigationBarColor":return jsxRuntime.jsx(NavigationBarColor$1,{node:i});case"Onboard":return jsxRuntime.jsx(Onboard$1,{node:i});case"OnboardButton":return jsxRuntime.jsx(OnboardButton$1,{node:i});case"OnboardButtons":return jsxRuntime.jsx(OnboardButtons$1,{node:i});case"OnboardDot":return jsxRuntime.jsx(OnboardDot$1,{node:i});case"OnboardFooter":return jsxRuntime.jsx(OnboardFooter$1,{node:i});case"OnboardImage":return jsxRuntime.jsx(OnboardImage$1,{node:i});case"OnboardItem":return jsxRuntime.jsx(OnboardItem$1,{node:i});case"OnboardProvider":return jsxRuntime.jsx(OnboardProvider$1,{node:i});case"OnboardSubtitle":return jsxRuntime.jsx(OnboardSubtitle$1,{node:i});case"OnboardTitle":return jsxRuntime.jsx(OnboardTitle$1,{node:i});case"PaywallBackground":return jsxRuntime.jsx(PaywallBackground$1,{node:i});case"PaywallCloseButton":return jsxRuntime.jsx(PaywallCloseButton$1,{node:i});case"PaywallOptions":return jsxRuntime.jsx(PaywallOptions$1,{node:i});case"PaywallProvider":return jsxRuntime.jsx(PaywallProvider$1,{node:i});case"PaywallSubscribeButton":return jsxRuntime.jsx(PaywallSubscribeButton$1,{node:i});case"RadioButton":return jsxRuntime.jsx(RadioButton$1,{node:i});case"Separator":return jsxRuntime.jsx(Separator$1,{node:i});case"StatusBarColor":return jsxRuntime.jsx(StatusBarColor$1,{node:i});case"Text":return jsxRuntime.jsx(Text$1,{node:i});case"View":return jsxRuntime.jsx(View$1,{node:i});default:return other(t,e)}}var RenderNode$1=React.memo(RenderNode);const allcomponentNames=["BIcon","BackgroundImage","Button","Carousel","CarouselButtons","CarouselDots","CarouselItem","CarouselProvider","CountDown","Image","Main","NavigationBarColor","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","PaywallBackground","PaywallCloseButton","PaywallOptions","PaywallProvider","PaywallSubscribeButton","RadioButton","Separator","StatusBarColor","Text","View"];function findNodeByKeyNested(e,t){if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKeyNested(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKeyNested(r.children,t):null}class RenderErrorBoundary extends React.Component{constructor(){super(...arguments),this.state={error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null},this.copyDetails=async()=>{const e=this.buildDetails();try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),this.setState({copied:!0,copyError:null}),void window.setTimeout(()=>this.setState({copied:!1}),900)}catch{}try{if("undefined"==typeof document)return void this.setState({copied:!1,copyError:"Copy failed"});const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");if(document.body.removeChild(t),!r)return void this.setState({copied:!1,copyError:"Copy failed"});this.setState({copied:!0,copyError:null}),window.setTimeout(()=>this.setState({copied:!1}),900)}catch(e){this.setState({copied:!1,copyError:e instanceof Error?e.message:"Copy failed"})}},this.reset=()=>{this.setState({error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null})}}static getDerivedStateFromError(e){return{error:e,errorStack:e?.stack,copied:!1,copyError:null}}componentDidCatch(e,t){const r=t.componentStack??void 0;this.setState({error:e,errorStack:e?.stack,componentStack:r}),this.props.onError?.(e,r)}buildDetails(){const{error:e,errorStack:t,componentStack:r}=this.state;return[`Error: ${e?.message??""}`,"",t?`Stack:\n${t}`:"Stack: (missing)","",r?`React component stack:\n${r}`:"React component stack: (missing)"].join("\n")}render(){const{error:e,copied:t,copyError:r}=this.state;if(!e)return this.props.children;const i=this.buildDetails();return jsxRuntime.jsxs("div",{role:"alert",style:{padding:16,borderRadius:12,background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",color:"hsl(var(--card-foreground, var(--rb-card-foreground, 220.9 39.3% 11%)))",border:"1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)) / 0.9)"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("div",{style:{fontWeight:700},children:"Preview crashed"}),this.props.subtitle&&jsxRuntime.jsxs("div",{style:{opacity:.8,fontSize:12},children:["(",this.props.subtitle,")"]}),jsxRuntime.jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:8},children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:this.copyDetails,children:t?"Copied":"Copy details"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:this.reset,children:"Try again"})]})]}),r&&jsxRuntime.jsx("div",{style:{marginTop:8,color:"hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))",fontSize:12},children:r}),jsxRuntime.jsx("pre",{style:{marginTop:12,whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.4,background:"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))",padding:12,borderRadius:10,overflow:"auto",maxHeight:360},children:i})]})}}function isNullish(e){return null==e}function RenderPage({data:e,name:t,onSelectNode:r,params:i}){useLogRender("RenderPage");const{previewMode:n,forceRender:o,setCurrent:a,appFont:s}=useRenderStore(e=>({previewMode:e.previewMode,forceRender:e.forceRender,setCurrent:e.setCurrent,appFont:e.appFont})),l=React.useRef(null),c=isNullish(e);return React.useEffect(()=>{if(!n)return;const t=l.current;if(!t)return;const i=t=>{const i=t.target;if(!i)return;if(i.closest(".embla__dot"))return;let n=i.closest("[attribute-key]");for(;n;){const t=n.getAttribute("attribute-key");if(t){const i=findNodeByKeyNested(e,t);if(i)return a(i),void r?.(i)}n=n.parentElement?.closest("[attribute-key]")??null}};return t.addEventListener("click",i),()=>{t.removeEventListener("click",i)}},[n,e,r,a,o]),jsxRuntime.jsx(RenderErrorBoundary,{subtitle:"caught by RenderPage",children:jsxRuntime.jsx(BuilderProvider,{params:i,children:jsxRuntime.jsx(DeviceMockFrame,{appName:t,children:jsxRuntime.jsxs("div",{className:"screen-preview",ref:l,style:{fontFamily:s?`"${s}"`:void 0},children:[isNullish(e)?null:jsxRuntime.jsx(RenderNode$1,{node:e}),c&&jsxRuntime.jsx("div",{className:"rb-empty-preview","aria-hidden":"true",children:jsxRuntime.jsxs("div",{className:"rb-empty-preview__card",children:[jsxRuntime.jsx("div",{className:"rb-empty-preview__title",children:"Empty screen"}),jsxRuntime.jsx("div",{className:"rb-empty-preview__hint",children:"Add a component to start"})]})})]})})})})}function copyNode(e){const{setCopiedNode:t}=useRenderStore.getState();t(e)}function isNodeDataLike(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;return"type"in e&&"children"in e}function normalizeKey(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function collectNodeKeysInto(e,t){if(null==e)return;if("string"==typeof e)return;if(Array.isArray(e))return void e.forEach(e=>collectNodeKeysInto(e,t));if(!isNodeDataLike(e))return;const r=normalizeKey(e.key);r&&t.add(r),collectNodeKeysInto(e.children,t)}function collectNodeKeys(e){const t=new Set;return collectNodeKeysInto(e,t),t}function generateUniqueKey(e,t){let r="";do{r=generateRandomKeyForNode(e||"Node")}while(t.has(r));return r}function repairNodeKeys(e,t=new Set){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=e.map(e=>{const i=repairNodeKeys(e,t);return i!==e&&(r=!0),i});return r?i:e}if(!isNodeDataLike(e))return e;const r=e,i=normalizeKey(r.key),n=!i||t.has(i)?generateUniqueKey(r.type,t):i;t.add(n);const o=r.children,a=repairNodeKeys(o,t);return n!==i||a!==o?{...r,key:n,children:a}:e}const platformIcons={android:getImage(exports.TribeAssetName.Android),ios:getImage(exports.TribeAssetName.Apple)};function DeviceButton({device:e,selectedDevice:t,onSelect:r}){const i=platformIcons[e.platform],n=e.aspect??(()=>{const t=e.height/e.width;return t>=2.05?"tall":t<=1.75?"wide":"regular"})();return jsxRuntime.jsxs("button",{type:"button",className:"editor-device-button"+(t===e?" editor-device-button--selected":""),onClick:()=>r(e),children:[e.name," ",jsxRuntime.jsx("br",{}),e.width,"×",e.height," (",n,")",i&&jsxRuntime.jsx("span",{children:jsxRuntime.jsx("img",{src:i,alt:"","aria-hidden":"true"})})]})}function Modal({onClose:e,ariaLabelledBy:t,children:r,className:i,contentClassName:n,closeOnOverlayClick:o=!0,closeOnEsc:a=!0}){React.useEffect(()=>{if(!a)return;if("undefined"==typeof window)return;const t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,e]);const s=jsxRuntime.jsxs("div",{className:"modal"+(i?` ${i}`:""),role:"dialog","aria-modal":"true","aria-labelledby":t,children:[jsxRuntime.jsx("div",{className:"modal__overlay",onClick:o?e:void 0}),jsxRuntime.jsx("div",{className:"modal__content"+(n?` ${n}`:""),role:"document",children:r})]});return"undefined"==typeof document?s:reactDom.createPortal(s,document.body)}function DeviceSelectorModal({devices:e,selectedDevice:t,onSelect:r,onClose:i}){const n=e=>{r(e),i()};return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"device-selector-title",contentClassName:"device-selector-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"device-selector-title",className:"modal__title",children:"Select a device"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button","aria-label":"Close device selector",onClick:i,children:"Close"})]}),jsxRuntime.jsx("div",{className:"device-selector-modal__grid",role:"list",children:e.map(e=>jsxRuntime.jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:n},e.name))})]})}var name$j="hello-world",version$j="1.1.2",type$j="other",appConfig$j={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$j={type:"View",attributes:{scrollable:!0,description:"View element 1 in sample.",title:"View 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"}},children:[{type:"Text",children:"Hello, world!",attributes:{description:"Text element 1 in sample.",title:"Text 1",styles:{color:"#111827",fontSize:24,fontWeight:"600"}}},{type:"Text",children:"Welcome to react-native-builder",attributes:{description:"Text element 2 in sample.",title:"Text 2",styles:{color:"#6B7280",fontSize:14,fontWeight:"400"}}}]},simple1={name:name$j,version:version$j,type:type$j,appConfig:appConfig$j,data:data$j},name$i="hello-world-2-advanced",version$i="1.1.2",type$i="other",appConfig$i={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$i={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"}},children:[{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12}},children:[{type:"text",children:"Dashboard",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{color:"#FFFFFF",fontSize:20,fontWeight:"600"}}},{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{flexDirection:"row",gap:8}},children:[{type:"text",children:"Help",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{color:"#D1D5DB",fontSize:14}}},{type:"text",children:"Profile",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{color:"#D1D5DB",fontSize:14}}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",description:"image element 1 in sample.",title:"image 1",styles:{width:358,height:160,borderRadius:12}},children:null},{type:"view",attributes:{description:"view element 4 in sample.",title:"view 4",styles:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12}},children:[{type:"text",children:"Welcome back!",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{color:"#111827",fontSize:18,fontWeight:"600"}}},{type:"text",children:"Here's what's new today.",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{color:"#6B7280",fontSize:14}}}]},{type:"view",attributes:{description:"view element 5 in sample.",title:"view 5",styles:{flexDirection:"column",gap:12}},children:[{type:"view",attributes:{description:"view element 6 in sample.",title:"view 6",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 1",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"Due today",attributes:{description:"text element 7 in sample.",title:"text 7",styles:{color:"#059669",fontSize:12,fontWeight:"600"}}}]},{type:"view",attributes:{description:"view element 7 in sample.",title:"view 7",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 2",attributes:{description:"text element 8 in sample.",title:"text 8",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"2 days left",attributes:{description:"text element 9 in sample.",title:"text 9",styles:{color:"#D97706",fontSize:12,fontWeight:"600"}}}]},{type:"view",attributes:{description:"view element 8 in sample.",title:"view 8",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 3",attributes:{description:"text element 10 in sample.",title:"text 10",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"Completed",attributes:{description:"text element 11 in sample.",title:"text 11",styles:{color:"#6B7280",fontSize:12,fontWeight:"600"}}}]}]},{type:"view",attributes:{description:"view element 9 in sample.",title:"view 9",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12}},children:[{type:"text",children:"Home",attributes:{description:"text element 12 in sample.",title:"text 12",styles:{color:"#FFFFFF",fontSize:14}}},{type:"text",children:"Search",attributes:{description:"text element 13 in sample.",title:"text 13",styles:{color:"#9CA3AF",fontSize:14}}},{type:"text",children:"Settings",attributes:{description:"text element 14 in sample.",title:"text 14",styles:{color:"#9CA3AF",fontSize:14}}}]}]},simple2={name:name$i,version:version$i,type:type$i,appConfig:appConfig$i,data:data$i},name$h="carousel-sample",version$h="1.1.2",type$h="other",appConfig$h={theme:"light"},data$h={type:"Main",isMain:!0,attributes:{styles:{backgroundColor:"#f8fafc",minHeight:"100vh",padding:"24px"}},children:{type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0,description:"carousel element 1 in sample.",title:"carousel 1"},children:[{type:"carouselItem",attributes:{description:"carouselItem element 1 in sample.",title:"carouselItem 1",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 1 in sample.",title:"view 1",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #eef2ff 0%, #ffffff 55%, #ecfeff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-49ojfyhl4d7"},{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Welcome aboard",key:"text-3ougfj4mxnh"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"Swipe through a beautiful, validated carousel sample with images.",key:"text-2dol8grshke"}],key:"view-a8hfkdvfy7"},key:"carouselItem-5bw9x33s7ie"},{type:"carouselItem",attributes:{description:"carouselItem element 2 in sample.",title:"carouselItem 2",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #eff6ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-riwntk91k9"},{type:"text",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Discover features",key:"text-hmuk6f7ml4v"},{type:"text",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"Dots + buttons are included, and slide sizing comes from the carousel CSS.",key:"text-dnhhoqiiri"}],key:"view-9hyw3wys30w"},key:"carouselItem-lyq2hr0qh8h"},{type:"carouselItem",attributes:{description:"carouselItem element 3 in sample.",title:"carouselItem 3",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f5f3ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-j9ru3r8g7km"},{type:"text",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Get started",key:"text-01u3fwwtkd8p"},{type:"text",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"This sample stays within validation rules (no string flex shorthand).",key:"text-w8rwg9y1hj"}],key:"view-tsjfbzn8kdj"},key:"carouselItem-6r53yswjyee"}],key:"carousel-2qa4gn0ms32"},{type:"view",attributes:{title:"Carousel Controls",description:"carousel controls view element in sample.",styles:{flex:1,gap:24,alignItems:"center",paddingTop:32}},children:[{type:"carouselDots",attributes:{dotType:"expanding_dot"},key:"carouselDots-r5ji67uoxxg"},{type:"view",attributes:{title:"Nav Buttons",description:"navigation buttons wrapper",styles:{flexDirection:"row",gap:12,alignItems:"center",justifyContent:"center"}},children:[{type:"carouselButtons",attributes:{buttonType:["previous_button"],styles:{backgroundColor:"#6366f1",borderRadius:12,padding:"12px 24px",minWidth:100}},key:"carouselButtons-prev"},{type:"carouselButtons",attributes:{buttonType:["next_button"],styles:{backgroundColor:"#8b5cf6",borderRadius:12,padding:"12px 24px",minWidth:100}},key:"carouselButtons-next"}],key:"view-nav-buttons"}],key:"view-controls-wrapper"}],attributes:{description:"carouselProvider element 1 in sample.",title:"carouselProvider 1",styles:{backgroundColor:"#ffffff",borderRadius:24,padding:"32px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",maxWidth:"600px",margin:"0 auto"}},key:"carouselProvider-152n4dkqvam"},key:"Main-u1cavjag9sr"},carouselSample={name:name$h,version:version$h,type:type$h,appConfig:appConfig$h,data:data$h},name$g="unvalidated-builder1",version$g="1.1.2",type$g="other",appConfig$g={theme:"light"},data$g={type:"view",attributes:{foo:1,scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"}},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"}},children:"Intentionally unvalidated sample"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8}},children:"This project should fail validation (unknown attribute: foo). In the UI, choose “Continue without validation” to load it anyway."}]},unvalidatedBuilder1={name:name$g,version:version$g,type:type$g,appConfig:appConfig$g,data:data$g},name$f="unvalidated-crash1",version$f="1.1.2",type$f="other",appConfig$f={theme:"light"},data$f={type:"OnboardFooter",attributes:{textLocalizationKey:123,description:"OnboardFooter element 1 in sample.",title:"OnboardFooter 1",styles:{paddingHorizontal:24,paddingVertical:16}},children:null},unvalidatedCrash1={name:name$f,version:version$f,type:type$f,appConfig:appConfig$f,data:data$f},name$e="unvalidated-crashcomponent1",version$e="1.1.2",type$e="other",appConfig$e={theme:"light"},data$e={type:"CrashComponent",attributes:{reason:"Intentional crash for GUI testing",note:"This component is not in the Add Component modal; it only exists via JSON.",description:"CrashComponent element 1 in sample.",title:"CrashComponent 1"},children:null},unvalidatedCrashComponent1={name:name$e,version:version$e,type:type$e,appConfig:appConfig$e,data:data$e},name$d="unmigrated-builder1",version$d="1.0.0",type$d="other",appConfig$d={theme:"light"},data$d={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA",description:"view element 1 in sample.",title:"view 1"},children:[{type:"text",attributes:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center",description:"text element 1 in sample.",title:"text 1"},children:"Intentionally unmigrated sample"},{type:"text",attributes:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8,description:"text element 2 in sample.",title:"text 2"},children:"This project has version 1.0.0 so the Migration page should appear. Click “Migrate now” to normalize legacy flat style keys into attributes.style and move misplaced props out of style (combined 1.1.2)."}]},unmigratedBuilder1={name:name$d,version:version$d,type:type$d,appConfig:appConfig$d,data:data$d},name$c="unmigrated-builder-1.1.1",version$c="1.1.1",type$c="other",appConfig$c={theme:"light"},data$c={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"}},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"}},children:"Intentionally unmigrated sample (for combined 1.1.2)"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8}},children:"This project has version 1.1.1 so the Migration page should appear. Click “Migrate now” to move component props and non-style flags out of attributes.style (combined 1.1.2)."},{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,marginTop:16}},children:[{type:"BIcon",attributes:{description:"BIcon element 1 in sample.",title:"BIcon 1",styles:{iconType:"check",strokeWidth:3,color:"#22c55e",fontSize:"18"}},children:null},{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",width:48,height:48,description:"image element 1 in sample.",title:"image 1",styles:{resizeMode:"contain",borderRadius:12}},children:null}]}]},unmigratedBuilder1_1_1={name:name$c,version:version$c,type:type$c,appConfig:appConfig$c,data:data$c},name$b="Simple Paywall",version$b="1.1.2",type$b="paywall",appConfig$b={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$b={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall ana sağlayıcısı. (#1)",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",title:"Paywall Background",attributes:{src:"https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall arka planı. (#1)",title:"Paywall Background"},children:null},{type:"View",title:"Paywall Inner",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:12,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#2)",title:"Benefits",styles:{flexDirection:"column",gap:0,marginTop:"16%"}},children:[{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#3)",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#1)",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#1)",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#4)",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#2)",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#2)",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#5)",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#3)",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#3)",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Abonelik seçenekleri alanı. (#1)",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Seçim satırı öğesi. (#1)",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#4)",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"Text",attributes:{description:"Metin öğesi. (#5)",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"İkon öğesi. (#4)",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"View",attributes:{description:"Subscription butonu kapsayıcısı. (#1)",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe"}}]}]}]}]},paywall1={name:name$b,version:version$b,type:type$b,appConfig:appConfig$b,data:data$b},name$a="Paywall With Counter",version$a="1.1.2",type$a="paywall",appConfig$a={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$a={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Paywall 2.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1482192596544-9eb780fc7f66?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"Text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"Text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywall2={name:name$a,version:version$a,type:type$a,appConfig:appConfig$a,data:data$a},name$9="Paywall Back Offer",version$9="1.1.2",type$9="paywall",appConfig$9={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$9={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Back Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1470770903676-69b98201ea1c?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"Back Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallBackOffer={name:name$9,version:version$9,type:type$9,appConfig:appConfig$9,data:data$9},name$8="Paywall Notification Offer",version$8="1.1.2",type$8="paywall",appConfig$8={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$8={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Notification Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"Notification Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallNotificationOffer={name:name$8,version:version$8,type:type$8,appConfig:appConfig$8,data:data$8},name$7="Paywall App Open Offer",version$7="1.1.2",type$7="paywall",appConfig$7={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$7={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Open Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"App Open Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallAppOpenOffer={name:name$7,version:version$7,type:type$7,appConfig:appConfig$7,data:data$7},name$6="Paywall App Delete Offer",version$6="1.1.2",type$6="paywall",appConfig$6={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$6={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Delete Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"App Delete Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallAppDeleteOffer={name:name$6,version:version$6,type:type$6,appConfig:appConfig$6,data:data$6},name$5="vpn-onboard-1",version$5="1.1.2",type$5="onboard",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={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard1={name:name$5,version:version$5,type:type$5,appConfig:appConfig$5,data:data$5},name$4="vpn-onboard-2",version$4="1.1.2",type$4="onboard",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={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",animation:"line-animation",animation_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",animation:"simple-animation",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard2={name:name$4,version:version$4,type:type$4,appConfig:appConfig$4,data:data$4},name$3="vpn-onboard-3",version$3="1.1.2",type$3="onboard",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={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard3={name:name$3,version:version$3,type:type$3,appConfig:appConfig$3,data:data$3},name$2="vpn-onboard-4",version$2="1.1.2",type$2="onboard",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={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard4={name:name$2,version:version$2,type:type$2,appConfig:appConfig$2,data:data$2},name$1="vpn-onboard-5",version$1="1.1.2",type$1="onboard",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={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png",resizeMode:"contain",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",resizeMode:"contain",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.five-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.five-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}},{type:"OnboardItem",key:"app_onboard-page6",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#5)",title:"OnboardTitle 5",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.six-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#5)",title:"OnboardSubtitle 5",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.six-page"}],attributes:{description:"Onboarding sayfası. (#5)",title:"OnboardItem 5"}},{type:"OnboardItem",key:"app_onboard-page5",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#6)",title:"OnboardTitle 6",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#6)",title:"OnboardSubtitle 6",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#6)",title:"OnboardItem 6"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.five-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.five-page",button_text_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"GDPR"},{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:4,description:"Sayfa buton grubu. (#5)",title:"OnboardButtons 5",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.five-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.five-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:5,description:"Sayfa buton grubu. (#6)",title:"OnboardButtons 6",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"all",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard5={name:name$1,version:version$1,type:type$1,appConfig:appConfig$1,data:data$1},name="vpn-onboard-6",version="1.1.2",type="onboard",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={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard6={name:name,version:version,type:type,appConfig:appConfig,data:data};function normalizeSample(e){return{...e,appConfig:{...defaultAppConfig,...e.appConfig}}}function getSamples(){const e=[vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6].map(normalizeSample);return[normalizeSample(simple1),normalizeSample(simple2),normalizeSample(carouselSample),normalizeSample(unvalidatedBuilder1),normalizeSample(unvalidatedCrash1),normalizeSample(unvalidatedCrashComponent1),normalizeSample(unmigratedBuilder1),normalizeSample(unmigratedBuilder1_1_1),normalizeSample(paywall1),normalizeSample(paywall2),normalizeSample(paywallBackOffer),normalizeSample(paywallNotificationOffer),normalizeSample(paywallAppOpenOffer),normalizeSample(paywallAppDeleteOffer),...e]}function getBasicSamples(){return[normalizeSample(simple1),normalizeSample(simple2),normalizeSample(carouselSample),normalizeSample(unvalidatedBuilder1)]}function getOnboardSamples(){return[vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6].map(normalizeSample)}const devices=getDevices();function EditorHeader({onSaveProject:e,onRestoreProject:t,current:r,editorData:i,setEditorData:n}){useLogRender("EditorHeader");const[o,a]=React.useState(!1),[s,l]=React.useState(!1),c=React.useRef(null),d=useRenderStore(e=>e.copiedNode),{device:p,setDevice:u,setCurrent:h,setAppConfig:g,setProjectColors:m}=useRenderStore(e=>({device:e.device,setDevice:e.setDevice,setCurrent:e.setCurrent,setAppConfig:e.setAppConfig,setProjectColors:e.setProjectColors})),f=React.useMemo(()=>{const e=e=>"paywall"===e?0:"onboard"===e?1:2;return getSamples().slice().sort((t,r)=>{const i=e(t.type)-e(r.type);return 0!==i?i:t.name.localeCompare(r.name)})},[]),C=React.useMemo(()=>`editor-actions-menu-${Math.random().toString(36).slice(2,9)}`,[]);function b(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=b(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>b(e,t,r)):b(e,t,r);if(n!==e)return{...i,children:n}}return e}React.useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]);const x=e=>JSON.parse(JSON.stringify(e)),v=e=>{if(!r||!i||!n)return;const t=x(e.data),o=collectNodeKeys(i),a=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"type"in e&&"children"in e;if(!a(r))return void y.error("Select a component node to paste into");const s=r.children,l=(e=>{if(a(e)){if("main"===e.type||!0===e.isMain){const t=e.children;return t?Array.isArray(t)?t:[t]:[]}}return[e]})(t);if(0===l.length)return void y.error("Sample has no children to paste");const c=l.map(e=>repairNodeKeys(e,o));let d;d=s?Array.isArray(s)?[...s,...c]:[s,...c]:1===c.length?c[0]:c;const p={...r,children:d},u=b(i,r,p);n(u),h(p),y.success(`Pasted from "${e.name}"`)},S=()=>l(!1),w=!!r,k=!!(r&&i&&n&&d);return jsxRuntime.jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxRuntime.jsxs("div",{className:"editor-header__devices",children:[devices.slice(0,5).map(e=>jsxRuntime.jsx(DeviceButton,{selectedDevice:p,onSelect:u,device:e},e.name)),jsxRuntime.jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>a(!0),children:"More devices"})]}),jsxRuntime.jsx("div",{className:"editor-header__actions",children:jsxRuntime.jsxs("div",{className:"editor-actions-dropdown",ref:c,children:[jsxRuntime.jsxs("button",{className:"editor-button editor-actions-dropdown__trigger","aria-label":"Open actions menu","aria-haspopup":"menu","aria-expanded":s,"aria-controls":C,onClick:()=>l(e=>!e),children:["Actions",jsxRuntime.jsx("span",{className:"editor-actions-dropdown__caret","aria-hidden":"true",children:"▾"})]}),s&&jsxRuntime.jsxs("ul",{id:C,className:"editor-actions-dropdown__menu",role:"menu","aria-label":"Editor actions",children:[jsxRuntime.jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxRuntime.jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Replace from samples",onClick:e=>e.preventDefault(),children:["Replace from samples",jsxRuntime.jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsxRuntime.jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Replace from sample",children:f.map(e=>jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{(e=>{if(!n)return;const t=repairNodeKeys(x(e.data));n(t),h(t),e.appConfig&&g(e.appConfig),m(e.projectColors),y.success(`Replaced with "${e.name}"`)})(e),S()},children:e.name})},`replace-${e.name}`))})]}),jsxRuntime.jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxRuntime.jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Paste from samples",onClick:e=>e.preventDefault(),disabled:!r,title:r?void 0:"Select a node first",children:["Paste from samples",jsxRuntime.jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsxRuntime.jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Paste from sample",children:f.map(e=>jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{v(e),S()},disabled:!r,children:e.name})},`paste-${e.name}`))})]}),jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item editor-save-button",role:"menuitem",onClick:()=>{e?.(),S()},disabled:!e,children:"Save"})}),t&&jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item editor-save-previewconfig-button",role:"menuitem",onClick:()=>{try{t?.(),y.info("Restored")}catch{y.error("Restore failed")}finally{S()}},children:"Restore"})}),jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{w&&(r&&copyNode(r),y.info("Copied"),S())},disabled:!w,children:"Copy"})}),jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{k&&((()=>{if(!r||!i||!n)return;if(!d)return;const e=repairNodeKeys(JSON.parse(JSON.stringify(d)),collectNodeKeys(i)),t=b(i,r,e);useRenderStore.setState({copiedNode:null}),n(t),h(e)})(),y.success("Pasted"),S())},disabled:!k,children:"Paste"})})]})]})}),o&&jsxRuntime.jsx(DeviceSelectorModal,{devices:devices,selectedDevice:p,onSelect:u,onClose:()=>a(!1)})]})}const SAVED_COLORS_KEY="attributes-editor-saved-colors",formatTokenLabel$1=e=>e.split(/[_-]/g).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),mapTokensToOptions=(e,t)=>{if(!e)return[];const r=t?.groupKey??"group";return Object.entries(e).filter(([,e])=>"string"==typeof e&&e.trim().length>0).map(([e,i])=>{const n=i.trim(),o=t?.tokenLabelPrefix?`${t.tokenLabelPrefix}.${e}`:void 0;return{id:`${r}-${e}`,label:formatTokenLabel$1(e),value:n,tokenLabel:o}})},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.filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase()).filter(Boolean):[]}catch{return[]}},persistSavedColors=e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(SAVED_COLORS_KEY,JSON.stringify(e))}catch{}},STATIC_PREFIX="STATIC_COLORS.",THEME_PREFIX="THEME_COLORS.",resolveProjectColorValue=(e,t)=>{if(!e||"string"!=typeof e||!t)return;const r=e.trim();if(r){if(r.startsWith(STATIC_PREFIX)){const e=r.slice(STATIC_PREFIX.length),i=t.STATIC_COLORS?.[e];return"string"==typeof i&&i.trim()?i.trim():void 0}if(r.startsWith(THEME_PREFIX)){const e=r.slice(THEME_PREFIX.length);if(!e)return;const i=e.split(".");if(1===i.length){const e=i[0],r=t.THEME_COLORS;if(!r)return;for(const t of Object.values(r)){const r=t?.[e];if("string"==typeof r&&r.trim())return r.trim()}return}const[n,...o]=i,a=o.join(".");if(!n||!a)return;const s=t.THEME_COLORS?.[n],l=s?.[a];return"string"==typeof l&&l.trim()?l.trim():void 0}}};function ColorModal({value:e,projectColors:t,onSelect:r,onClose:i,onClear:n}){const[o,a]=React.useState(()=>readSavedColors()),[s,l]=React.useState(!0),c=React.useRef(null),d=React.useId(),p=React.useId(),u=React.useMemo(()=>resolveProjectColorValue(e,t)??e,[e,t]),h=React.useMemo(()=>{if(!t)return[];const e=[],r=mapTokensToOptions(t.STATIC_COLORS,{groupKey:"static",tokenLabelPrefix:"STATIC_COLORS"});r.length&&e.push({title:"Static colors",options:r,emptyMessage:"No static colors defined."});const i=t.THEME_COLORS??{};return Object.entries(i).forEach(([t,r])=>{const i=mapTokensToOptions(r,{groupKey:`theme-${t||"default"}`,tokenLabelPrefix:"THEME_COLORS"});if(!i.length)return;const n=t?.trim()?formatTokenLabel$1(t):"Theme";e.push({title:`Theme: ${n}`,options:i,emptyMessage:`No colors defined for ${n}.`})}),e},[t]),g=React.useMemo(()=>o.map((e,t)=>({id:`saved-${t}-${e}`,label:e,value:e})),[o]),m=e=>{const t=e?.trim().toLowerCase();t&&(a(e=>{if(e.includes(t))return e;const r=[...e,t];return persistSavedColors(r),r}),r(t),i())},f=()=>{const e=c.current,t=e?e.showPicker:void 0;if(e&&"function"==typeof t){try{e.focus({preventScroll:!0})}catch{}t.call(e)}else(()=>{if("undefined"==typeof document)return;const e=document.createElement("input");e.type="color",e.value=u?.toString()||"#000000",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.style.width="40px",e.style.height="40px",e.style.opacity="0";const t=()=>{e.removeEventListener("change",r),e.removeEventListener("input",r),e.removeEventListener("blur",t),e.remove()},r=()=>{m(e.value),t()};e.addEventListener("change",r),e.addEventListener("input",r),e.addEventListener("blur",t),document.body.appendChild(e);try{e.focus({preventScroll:!0})}catch{}requestAnimationFrame(()=>e.click())})()},y=e=>{m(e.target.value),e.target.value="#000000"},C=e=>{const t=s&&e.tokenLabel?e.tokenLabel:e.value;r(t),i()};return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"color-picker-title",contentClassName:"color-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"color-picker-title",className:"modal__title",children:"Pick a color"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"color-modal__selected",children:[jsxRuntime.jsxs("div",{className:"color-modal__selected-info",children:[jsxRuntime.jsx("label",{htmlFor:p,role:"button","aria-label":"Open color picker",tabIndex:0,title:"Pick a color",className:"color-modal__selected-preview",style:{background:u??"transparent"},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("p",{className:"color-modal__selected-label",children:"Selected color"}),jsxRuntime.jsx("p",{className:"color-modal__selected-value",children:e??"None"})]})]}),e?jsxRuntime.jsx("button",{type:"button",className:"color-modal__link-button",onClick:n,children:"Clear"}):null]}),jsxRuntime.jsxs("div",{className:"color-modal__toggle",children:[jsxRuntime.jsxs("label",{htmlFor:d,className:"color-modal__toggle-label",children:[jsxRuntime.jsx("input",{id:d,type:"checkbox",className:"color-modal__toggle-input",checked:s,onChange:e=>l(e.target.checked)}),"Use color names"]}),jsxRuntime.jsx("p",{className:"color-modal__toggle-description",children:"Output tokens like STATIC_COLORS.PRIMARY instead of raw values."})]}),h.length?h.map(t=>jsxRuntime.jsx(ColorSection,{title:t.title,options:t.options,emptyMessage:t.emptyMessage,activeValue:e,onSelect:C},t.title)):jsxRuntime.jsx(ColorSection,{title:"Project colors",options:[],emptyMessage:"No project colors detected yet.",activeValue:e,onSelect:C}),jsxRuntime.jsx(ColorSection,{title:"Saved colors",options:g,emptyMessage:"Add colors you use often for quick access.",action:jsxRuntime.jsxs("span",{className:"color-modal__link-button color-modal__add-color",children:["Add color",jsxRuntime.jsx("input",{type:"color",className:"color-modal__add-color-input",onChange:y,defaultValue:"#000000","aria-label":"Add color"})]}),activeValue:e,onSelect:C}),jsxRuntime.jsx("input",{ref:c,id:p,type:"color",className:"color-modal__input",onChange:y,defaultValue:"#000000",tabIndex:-1})]})}function ColorSection({title:e,options:t,emptyMessage:r,action:i,activeValue:n,onSelect:o}){return jsxRuntime.jsxs("section",{className:"color-section",children:[jsxRuntime.jsxs("div",{className:"color-section__header",children:[jsxRuntime.jsx("p",{className:"color-section__title",children:e}),i]}),t.length?jsxRuntime.jsx("div",{className:"color-section__swatches",children:t.map(e=>jsxRuntime.jsx(ColorSwatch,{option:e,isActive:e.tokenLabel&&e.tokenLabel===n||e.value===n,onSelect:()=>o(e)},e.id))}):jsxRuntime.jsx("p",{className:"color-section__empty",children:r??"No colors available."})]})}function ColorSwatch({option:e,isActive:t,onSelect:r}){const i="#ffffff"===e.value?.trim().toLowerCase()||"#fff"===e.value?.trim().toLowerCase();return jsxRuntime.jsxs("button",{type:"button",onClick:r,className:"color-modal__swatch"+(t?" color-modal__swatch--active":""),children:[jsxRuntime.jsx("span",{"aria-hidden":!0,className:"color-modal__swatch-preview"+(i?" color-modal__swatch-preview--light":""),style:{background:e.value??"transparent"}}),jsxRuntime.jsx("span",{className:"color-modal__swatch-label",children:e.label??e.value}),jsxRuntime.jsx("span",{className:"color-modal__swatch-value",children:e.tokenLabel?`${e.tokenLabel} - ${e.value}`:e.value})]})}const Checkbox=React.forwardRef(({label:e,helperText:t,className:r,inputClassName:i,onChange:n,id:o,disabled:a,...s},l)=>{const c=React.useId(),d=o??c,p=t?`${d}-helper`:void 0,u=["builder-checkbox",a?"builder-checkbox--disabled":void 0,r].filter(Boolean).join(" "),h=["builder-checkbox__native",i].filter(Boolean).join(" ");return jsxRuntime.jsxs("div",{className:u,children:[jsxRuntime.jsxs("label",{htmlFor:d,className:"builder-checkbox__label",children:[jsxRuntime.jsx("input",{...s,ref:l,id:d,type:"checkbox",className:h,onChange:e=>{n?.(e.target.checked,e)},disabled:a,"aria-describedby":p}),jsxRuntime.jsx("span",{className:"builder-checkbox__control","aria-hidden":"true"}),e?jsxRuntime.jsx("span",{className:"builder-checkbox__text",children:e}):null]}),t?jsxRuntime.jsx("span",{id:p,className:"builder-checkbox__helper",children:t}):null]})});function LayoutPreviewPicker({mode:e,options:t,value:r,onChange:i,layoutContext:n,viewAttributes:o}){if(!t.length)return null;const a="string"==typeof r?r:n?.[e];return jsxRuntime.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,paddingBottom:2},children:t.map(t=>{const r=a===t;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>i(t),style:{borderRadius:8,padding:5,width:110,flex:"0 0 auto",border:r?"2px solid #222":"1px solid #d5d5d5",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",textAlign:"left",display:"flex",flexDirection:"column",gap:3,cursor:"pointer",boxShadow:r?"0 2px 4px rgba(0,0,0,0.08)":"none"},children:[jsxRuntime.jsx(LayoutPreview,{mode:e,option:t,isActive:r,layoutContext:n,viewAttributes:o}),jsxRuntime.jsx("span",{style:{fontWeight:600,fontSize:11},children:formatLayoutLabel(t)})]},t)})})}function LayoutPreview({mode:e,option:t,isActive:r,layoutContext:i,viewAttributes:n}){const o=resolvePreviewContext(e,t,i),a=o.flexDirection?.startsWith("column"),s=n?.style?.backgroundColor??(r?"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)) / 0.55)":"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))"),l=parseNumeric(n?.style?.gap)??3,c=parseNumeric(n?.style?.borderRadius)??4,d="stretch"===o.alignItems?a?{width:"100%"}:{height:"100%"}:void 0;return jsxRuntime.jsx("div",{style:{borderRadius:c,border:"1px dashed rgba(0,0,0,0.2)",padding:5,background:s},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:o.flexDirection??"row",justifyContent:o.justifyContent??"flex-start",alignItems:o.alignItems??"stretch",gap:l,width:"100%",minHeight:a?52:40,transition:"all 0.2s ease"},children:Array.from({length:3}).map((t,r)=>jsxRuntime.jsx("span",{style:{width:a?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??{}}},r))})})}function resolvePreviewContext(e,t,r){const i={flexDirection:r?.flexDirection??"row",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"flex-start"};switch(e){case"flexDirection":return{flexDirection:t,alignItems:i.alignItems,justifyContent:i.justifyContent};case"alignItems":return{flexDirection:i.flexDirection,alignItems:t,justifyContent:i.justifyContent};case"justifyContent":return{flexDirection:i.flexDirection,alignItems:i.alignItems,justifyContent:t};default:return i}}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())}function toPreferredScale(e){if("vs"===e||"s"===e||"f"===e||"%"===e)return e;if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"vs"===t||"s"===t||"f"===t||"%"===t?t:void 0}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 r=e.trim();if(!r)return t;if(r.endsWith("%"))return{amount:r.slice(0,-1),unit:"%"};const i=r.toLowerCase();return i.endsWith("@vs")?{amount:r.slice(0,-3),unit:"vs"}:i.endsWith("vs")?{amount:r.slice(0,-2),unit:"vs"}:i.endsWith("@fs")?{amount:r.slice(0,-3),unit:"f"}:i.endsWith("@f")||i.endsWith("fs")?{amount:r.slice(0,-2),unit:"f"}:i.endsWith("f")?{amount:r.slice(0,-1),unit:"f"}:i.endsWith("@s")?{amount:r.slice(0,-2),unit:"s"}:i.endsWith("s")?{amount:r.slice(0,-1),unit:"s"}:i.endsWith("px")?{amount:r.slice(0,-2),unit:""}:{amount:r,unit:""}}function composeSizeValue(e,t){const r=e.trim();if("%"===t)return`${r}%`;if(""===t){const e=Number(r);return Number.isFinite(e)?e:r}return"f"===t?`${r}@fs`:`${r}@${t}`}function normalizePreferredScale(e,t){const r=t.trim().toLowerCase(),i=r.includes("height")||r.includes("top")||r.includes("vertical")?"vs":"s";return e??i}function SizeField({value:e,onChange:t,preferredScale:r,fieldName:i}){const n=React.useMemo(()=>parseSizeValue(e),[e]),o=React.useMemo(()=>normalizePreferredScale(r,i),[r,i]),[a,s]=React.useState(n.amount),[l,c]=React.useState(()=>n.unit&&n.unit!==o?n.unit:"auto");React.useEffect(()=>{s(n.amount);const e=n.unit&&n.unit!==o?n.unit:"auto";c(e)},[n.amount,n.unit,o]);const d=React.useCallback(e=>"auto"===e?o:e,[o]),p=React.useCallback((e,r)=>{const i=e.trim();t(i?composeSizeValue(i,d(r)):void 0)},[t,d]),u=[{value:"auto",label:"auto"},...[o,...["vs","s","f","%"].filter(e=>e!==o)].map(e=>({value:e,label:e===o?`${e} (preferred)`:e}))];return jsxRuntime.jsxs("div",{className:"attributes-editor__size-field",children:[jsxRuntime.jsx("input",{type:"number",className:"input attributes-editor__size-field-input",value:a,onChange:e=>{const r=e.target.value;s(r),r.trim()?p(r,l):t(void 0)}}),jsxRuntime.jsx("select",{className:"input attributes-editor__size-field-select",value:l,onChange:e=>{const t=e.target.value;c(t),a.trim()&&p(a,t)},children:u.map(e=>jsxRuntime.jsx("option",{value:e.value,children:e.label},e.value))})]})}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:r,onChange:i,componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:l,preferredScale:c}){if(Array.isArray(t)){if(isLayoutField(e)){const n=t.filter(e=>"string"==typeof e&&e.length>0);return jsxRuntime.jsx(LayoutPreviewPicker,{mode:e,options:n,value:"string"==typeof r?r:void 0,onChange:i,layoutContext:a,viewAttributes:s})}return jsxRuntime.jsxs("select",{value:r??"",onChange:e=>i(e.target.value),className:"input",children:[jsxRuntime.jsx("option",{value:"",children:"(none)"}),t.map(e=>jsxRuntime.jsx("option",{value:e,children:e},e))]})}const d="string"==typeof t?getArrayItemType(t):null;if(d){const t=Array.isArray(r)?r:[];if(isPrimitiveType(d)){const r=(r,n)=>{switch(d){case"number":return jsxRuntime.jsx("input",{type:"number",value:r??"",onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:Number(e.target.value),i(r)},className:"input",style:{flex:1}});case"boolean":case"bool":return jsxRuntime.jsx(Checkbox,{checked:Boolean(r),onChange:e=>{const r=[...t];r[n]=e,i(r)},name:`${e}-${n}`});case"string":case"description":return jsxRuntime.jsx("input",{type:"text",value:r??"",onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"title":return jsxRuntime.jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"color":return jsxRuntime.jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>{const r=[...t];r[n]=e,i(r)},projectColors:o});default:return jsxRuntime.jsx("p",{children:"---not-implemented----"})}};return jsxRuntime.jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,n)=>jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[r(e,n),jsxRuntime.jsx("button",{type:"button",onClick:()=>{const e=t.filter((e,t)=>t!==n);i(e.length?e:void 0)},children:"remove"})]},n)),jsxRuntime.jsx("div",{children:jsxRuntime.jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==d&&("number"===d?0:"")];i(e)},children:"add"})})]})}const l=getTypeSchema(n,d)??{};return jsxRuntime.jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,r)=>{const c=e??{};return jsxRuntime.jsxs("div",{style:{border:"1px solid #ddd",borderRadius:6,padding:8},children:[jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(l).map(([e,l])=>isBooleanFieldType(l)?jsxRuntime.jsx("div",{style:{gridColumn:"1 / -1"},children:jsxRuntime.jsx(Field,{name:e,type:l,value:c?.[e],onChange:n=>{const o=[...t],a={...c??{},[e]:n};o[r]=a,i(o)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:e})},e):jsxRuntime.jsxs(React.Fragment,{children:[jsxRuntime.jsx("div",{style:{alignSelf:"center"},children:e}),jsxRuntime.jsx(Field,{name:e,type:l,value:c?.[e],onChange:n=>{const o=[...t],a={...c??{},[e]:n};o[r]=a,i(o)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s})]},e))}),jsxRuntime.jsxs("div",{style:{marginTop:8,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[jsxRuntime.jsxs("div",{style:{display:"flex",gap:4},children:[jsxRuntime.jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r<=0)return;const n=[...t],o=n[r-1];n[r-1]=n[r],n[r]=o,i(n)},disabled:r<=0,"aria-label":"Move up",children:"↑"}),jsxRuntime.jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r>=t.length-1)return;const n=[...t],o=n[r+1];n[r+1]=n[r],n[r]=o,i(n)},disabled:r>=t.length-1,"aria-label":"Move down",children:"↓"})]}),jsxRuntime.jsx("button",{type:"button",onClick:e=>{e.stopPropagation();const n=t.filter((e,t)=>t!==r);i(n.length?n:void 0)},children:"remove"})]})]},r)}),jsxRuntime.jsx("div",{children:jsxRuntime.jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];i(e)},children:"add"})})]})}if("string"==typeof t&&!isPrimitiveType(t)){const e=getTypeSchema(n,t);if(e){const t=r??{};return jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,r])=>isBooleanFieldType(r)?jsxRuntime.jsx("div",{style:{gridColumn:"1 / -1"},children:jsxRuntime.jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const n={...t??{},[e]:r};i(n)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:e})},e):jsxRuntime.jsxs(React.Fragment,{children:[jsxRuntime.jsx("div",{style:{alignSelf:"center"},children:e}),jsxRuntime.jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const n={...t??{},[e]:r};i(n)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s})]},e))})}}if("string[]"===t){const e=Array.isArray(r)?r:[];return jsxRuntime.jsxs("div",{style:{display:"grid",gap:8},children:[e.map((t,r)=>jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("input",{type:"text",value:t??"",onChange:t=>{const n=[...e];n[r]=t.target.value,i(n)},className:"input",style:{flex:1}}),jsxRuntime.jsx("button",{type:"button",onClick:()=>{const t=e.filter((e,t)=>t!==r);i(t.length?t:void 0)},children:"remove"})]},r)),jsxRuntime.jsx("div",{children:jsxRuntime.jsx("button",{type:"button",onClick:()=>{const t=[...e,""];i(t)},children:"add"})})]})}if("string"!=typeof t)return jsxRuntime.jsx("p",{children:"---not-implemented----"});switch(t){case"size":return jsxRuntime.jsx(SizeField,{value:r,onChange:i,preferredScale:c,fieldName:e});case"fontWeight":{const e=normalizeFontWeight(r);return jsxRuntime.jsxs("select",{value:e??"",onChange:e=>i(e.target.value||void 0),className:"input",children:[jsxRuntime.jsx("option",{value:"",children:"(none)"}),FONT_WEIGHT_OPTIONS.map(e=>jsxRuntime.jsx("option",{value:e,children:e},e))]})}case"number":return jsxRuntime.jsx("input",{type:"number",value:r??"",onChange:e=>i(""===e.target.value?void 0:Number(e.target.value)),className:"input"});case"boolean":case"bool":return jsxRuntime.jsx(Checkbox,{label:l??e,checked:Boolean(r),onChange:e=>i(e),name:e});case"string":case"description":return jsxRuntime.jsx("input",{type:"text",value:r??"",onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"title":return jsxRuntime.jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"color":return jsxRuntime.jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>i(e),projectColors:o});default:return jsxRuntime.jsx("p",{children:"---not-implemented----"})}}function ColorPickerButton({value:e,onChange:t,projectColors:r}){const[i,n]=React.useState(!1),o="string"==typeof e?e:void 0,a=React.useMemo(()=>resolveProjectColorValue(o,r)??o,[o,r]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>n(!0),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,borderRadius:6,border:"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},children:[jsxRuntime.jsx("span",{"aria-hidden":!0,style:{width:32,height:32,borderRadius:6,border:"1px solid rgba(0,0,0,0.1)",background:a??"transparent"}}),jsxRuntime.jsx("span",{style:{flex:1,textAlign:"left",fontWeight:500},children:o??"Select color"}),jsxRuntime.jsx("span",{style:{fontSize:12,color:"#666"},children:"Open"})]}),i?jsxRuntime.jsx(ColorModal,{value:o,projectColors:r,onSelect:e=>{t(e),n(!1)},onClose:()=>n(!1),onClear:()=>{t(void 0),n(!1)}}):null]})}function FieldInfoTooltip({description:e,children:t}){const[r,i]=React.useState(!1);if(!e||!e.trim())return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t});const n=["field-info-tooltip__bubble",r?"field-info-tooltip__bubble--visible":""].filter(Boolean).join(" "),o=()=>i(!0),a=()=>i(!1);return jsxRuntime.jsxs("div",{className:"field-info-tooltip",children:[t,jsxRuntime.jsxs("button",{className:"field-info-tooltip__trigger",onMouseEnter:o,onMouseLeave:a,onFocus:o,onBlur:a,type:"button",children:["Show info",jsxRuntime.jsx("span",{className:n,role:"tooltip","aria-hidden":!r,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:r,getAttributeValue:i,onAttributeChange:n,componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,meta:c}){const[d,p]=React.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)),C=g&&y.length>0;return jsxRuntime.jsxs("section",{className:"special-category-section",children:[jsxRuntime.jsxs("div",{className:"special-category-section__header",children:[jsxRuntime.jsx("p",{className:"special-category-section__title",children:u}),C?jsxRuntime.jsx("button",{type:"button",onClick:()=>p(e=>!e),className:"special-category-section__toggle","data-active":d,children:d?"Show less":"Show more"}):null]}),h?jsxRuntime.jsx("p",{className:"special-category-section__description",children:h}):null,(()=>{if(!t.length)return jsxRuntime.jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});if(!g)return(()=>{if(!t.length)return jsxRuntime.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 jsxRuntime.jsx("div",{className:e,children:t.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),u=i(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 jsxRuntime.jsx(FieldInfoTooltip,{description:d,children:jsxRuntime.jsxs("div",{className:m,"data-field-slot":g,children:[h?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:c}),jsxRuntime.jsx(Field,{name:e,type:t,value:u,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})})})();const e=t.filter(e=>f(e.name)).sort((e,t)=>{const r=["top","left","right","bottom"],i=f(e.name),n=f(t.name);return(i?r.indexOf(i):999)-(n?r.indexOf(n):999)}),c=t.filter(e=>!f(e.name));if(0===e.length)return jsxRuntime.jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const p=jsxRuntime.jsx("div",{className:"special-category-section__fields special-category-section__fields--box",children:e.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),u=i(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 jsxRuntime.jsx(FieldInfoTooltip,{description:d,children:jsxRuntime.jsxs("div",{className:m,"data-field-slot":g,children:[h?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:c}),jsxRuntime.jsx(Field,{name:e,type:t,value:u,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})}),u=d&&c.length>0?jsxRuntime.jsx("div",{className:"special-category-section__fields",children:c.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),u=i(e),h=isBooleanFieldType(t),g=["attributes-editor__field-wrapper","special-category-section__field",h?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsxRuntime.jsx(FieldInfoTooltip,{description:d,children:jsxRuntime.jsxs("div",{className:g,children:[h?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:c}),jsxRuntime.jsx(Field,{name:e,type:t,value:u,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,u]})})()]})}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 r=t.map(e=>e.trim()).filter(e=>e.length>0);return 0===r.length?e:e.filter(({type:e})=>{let t=!1,i=!1;for(const n of r)if(n.startsWith(EXCLUDE_PREFIX)){if(e===n.slice(EXCLUDE_PREFIX.length))return!1}else n!==FALLBACK_PARENT&&(t=!0,matchesDesiredChildToken(n,e)&&(i=!0));return!t||i})}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 r=new Map;return e.forEach(e=>{e.desiredParents.forEach(i=>{if(t&&!t(i,e))return;const n=r.get(i);n?n.some(t=>t.type===e.type)||n.push(e):r.set(i,[e])})}),Array.from(r.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:r,onClose:i}){const[n,o]=React.useState(!1),a=React.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=React.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=React.useMemo(()=>filterOptionsByDesiredChildren(a,s),[a,s]),c=!s?.length;React.useEffect(()=>{c||o(!1)},[c]);const d=React.useMemo(()=>buildGroups(l,e=>tokenMatchesParent(e,t)),[l,t]),p=React.useMemo(()=>buildGroups(l),[l]),u=e=>jsxRuntime.jsxs("button",{type:"button",className:"add-component-modal__card",onClick:()=>(e=>{r(e)})(e.type),role:"listitem",children:[jsxRuntime.jsx("div",{className:"add-component-modal__thumbnail","aria-hidden":"true",children:jsxRuntime.jsx("span",{children:"Preview"})}),jsxRuntime.jsx("span",{className:"add-component-modal__title",children:e.label})]},e.type),h=e=>e.map(e=>jsxRuntime.jsxs("div",{className:"add-component-modal__group",children:[jsxRuntime.jsx("h5",{className:"add-component-modal__group-title",children:e.displayLabel}),jsxRuntime.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 jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"add-component-title",contentClassName:"add-component-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"add-component-title",className:"modal__title",children:"Add component"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button","aria-label":"Close add component modal",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"add-component-modal__body",children:[jsxRuntime.jsxs("section",{className:"add-component-modal__section",children:[jsxRuntime.jsx("h4",{className:"add-component-modal__section-title",children:"Recommended Components"}),g?h(d):jsxRuntime.jsx("p",{className:"add-component-modal__empty",children:m?"No direct recommendations for this parent.":"No components available for this node."})]}),c&&jsxRuntime.jsxs("label",{className:"add-component-modal__toggle",children:[jsxRuntime.jsx("input",{type:"checkbox",checked:n,onChange:e=>o(e.target.checked)}),jsxRuntime.jsx("span",{children:"Show rest (All Components)"})]}),c&&n&&jsxRuntime.jsxs("section",{className:"add-component-modal__section","aria-live":"polite",id:"add-component-modal-all",children:[jsxRuntime.jsx("h4",{className:"add-component-modal__section-title",children:"All Components"}),p.length?h(p):jsxRuntime.jsx("p",{className:"add-component-modal__empty",children:"No components available."})]}),!n&&!g&&jsxRuntime.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."})]})]})}const Icons=["activity","activity-heart","alert-circle","alert-triangle","anchor","archive","arrow-down","arrow-left","arrow-narrow-down-left","arrow-narrow-up-right","arrow-right","arrow-right-smooth","asterisk-01","asterisk-02","at-sign","award","battery-charging","bell-01","bell-02","bell-ringing-02","bookmark","bookmark-add","bookmark-check","bookmark-minus","bookmark-x","bubble","building-01","building-02","building-03","building-04","building-05","building-06","building-07","building-08","building-09","camera","camera-01","camera-steel","check","check-circle","check-circle-bold","check-circle-broken","check-done-01","check-done-02","check-heart","check-square","check-square-broken","check-verified-01","check-verified-02","check-verified-03","checkbox","checkv","chevron-down","chevron-down2","chevron-left","chevron-left-2","chevron-right","chevron-right-empty","chevron-right-smooth","chevron-up","circle","clock","clock-fast-forward","close","close-circle","cloud-01","cloud-blank-01","cloud-blank-02","coin","coins-02","colors","copy-01","copy-02","copy-03","copy-04","copy-05","copy-06","copy-07","corner-down-right","crypto-bold","delete-icon","diamond","dice-3","divide-01","divide-02","divide-03","document-check-bold","dots-circle","dots-grid","dots-horizontal","dots-vertical","download-01","download-02","download-03","edit-03","edit-04","edit-05","element-3","ellipse-127","exclaimation-circle","eye-off-line","face-smile","file-04","file-05","file-check-02","file-plus-01","file-shield-02","filter-funnel-01","flag-03","flash","folder","folder-plus","gallery","globe-01","globe-04","globe-bold","guard","headphones-01","headphones-02","headset-bold","heart","heart-bold","help-circle","home-2","home-line","hourglass-02","image","image-01","image-03","inbox-01","inbox-arrow-down","info-circle","keyboard-line","lamp-charge","layer","light","like-dislike","lock-03","logout","magicpen","mail","mail-01","marker","medal-star","menu","menu-04","message-circle-01","message-plus-circle","message-question-circle","message-text-circle-01","message-text-square-02","message-x-square","microphone-02","microphone-slash","mirror","moon-01","moon-bold","mouse-circle","move","notification","notification-fill","notification-text","pdf-01","pencil-01","phone","phone-01","phone-arrow-down-left","phone-arrow-up-right","phone-hang-up","phone-hangup2","phone-incoming-01","phone-outgoing-01","phone-plus","phone-x","plus","plus-circle","printer","question-mark-circle","refresh-ccw-01","refresh-cw-01","refresh-cw-04","refresh-right-square-bold","remove-circle","repeat-04","repeat-bold","ruler-pen","search","search-lg","search-md","search-refraction","send-01","send-02","send-diagonal","setting-2","settings","settings-02","settings-04","settings-2","settings-cog","share-01","share-03","share-04","share-05","share-06","share-bold","shield-01","shield-bold","solar-check","speaker","speaker-wave","speedometer-03","star","star-rounded","sun","target-03","text-input","translate","trash","trash-02","trash-03","trash-04","trush-square-bold","unlimited","user-circle","user-jogging","user-plus-01","user-square","user-x-01","user-x-02","user2","users-02","users-speaker","verify","voice-cricle","x-circle","x-close","x-sm","zap"];function IconPickerModal({value:e,onSelect:t,onClose:r,onClear:i}){const[n,o]=React.useState(""),a=React.useMemo(()=>{const e=n.trim().toLowerCase();return e?Icons.filter(t=>t.toLowerCase().includes(e)):Icons},[n]);return jsxRuntime.jsx(Modal,{onClose:r,ariaLabelledBy:"icon-picker-title",children:jsxRuntime.jsxs("div",{style:{display:"grid",gap:12},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[jsxRuntime.jsx("p",{id:"icon-picker-title",style:{margin:0,fontWeight:700},children:"Select Icon"}),jsxRuntime.jsx("div",{style:{flex:1}}),i?jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Clear"}):null,jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsxRuntime.jsx("input",{type:"text",className:"input",placeholder:"Search icons...",value:n,onChange:e=>o(e.target.value),autoFocus:!0}),jsxRuntime.jsxs("div",{style:{fontSize:12,color:"#666"},children:[a.length," / ",Icons.length,e?` • Selected: ${e}`:""]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:8,maxHeight:"60vh",overflow:"auto",paddingRight:4},children:a.map(r=>{const i=e===r;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>t(r),style:{display:"flex",alignItems:"center",gap:8,borderRadius:8,border:i?"2px solid #222":"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},"aria-label":`Select icon ${r}`,children:[jsxRuntime.jsx(Icon,{iconType:r,size:18}),jsxRuntime.jsx("span",{style:{fontSize:12,fontWeight:i?700:500,textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r,children:r})]},r)})})]})})}function isRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isNodeData$1(e){return isRecord(e)&&"string"==typeof e.type&&"children"in e}function isMainLike(e){const t=e.type;return"Main"===t||"main"===t}function stripNestedIsMain(e,t){if(null==e||"string"==typeof e)return e;if(Array.isArray(e)){let t=!1;const r=e.map(e=>{const r=stripNestedIsMain(e,!1);return r!==e&&(t=!0),r});return t?r:e}if(!isNodeData$1(e))return e;const r=e.children,i=stripNestedIsMain(r,!1),n=!0===e.isMain&&!t;return n||i!==r?{...e,...n?{isMain:!1}:null,children:i}:e}function wrapNodeInMain(e){if(isNodeData$1(e)&&isMainLike(e)){const t=stripNestedIsMain(e,!0);return!0!==t.isMain?{...t,isMain:!0}:t}const t=stripNestedIsMain(e,!1);return{type:"Main",isMain:!0,attributes:{},children:null==e?[]:t}}function safeStringify$1(e){try{return JSON.stringify(e,null,2)??""}catch{return String(e??"")}}function JsonTextEditor({value:e,onChange:t,rootName:r,readOnly:i=!1,className:n}){const o=React.useMemo(()=>safeStringify$1(e),[e]),[a,s]=React.useState(o),[l,c]=React.useState(null),[d,p]=React.useState(null),[u,h]=React.useState(e);React.useEffect(()=>{s(o),c(null),p(null),h(e)},[o,e]);const g=r?`${r}.json`:"data.json";return jsxRuntime.jsxs("div",{className:n,style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",gap:10},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,flexWrap:"wrap"},children:[jsxRuntime.jsx("div",{style:{fontSize:12,opacity:.75},children:g}),jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(a)}catch{}},children:"Copy"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a);s(JSON.stringify(e,null,2)),c(null),p(null),h(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},children:"Format"}),!i&&jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=t(e)&&"data"in e?{...e,data:wrapNodeInMain(e.data)}:wrapNodeInMain(e);s(JSON.stringify(r,null,2)),c(null),p(null),h(r)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Wrap root in Main and apply":"Read only",children:"Wrap in Main"}),!i&&jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{if(t)try{const e=JSON.parse(a);c(null),p(null),h(e);try{t(e)}catch(e){p(e instanceof Error?e.message:"Failed to apply JSON")}}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Apply JSON changes":"Read only",children:"Apply"})]})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:10,flex:1,minHeight:0},children:jsxRuntime.jsx("textarea",{value:a,onChange:e=>{const t=e.target.value;if(s(t),p(null),!i)try{const e=JSON.parse(t);c(null),h(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},readOnly:i,spellCheck:!1,style:{width:"100%",height:"100%",minHeight:320,resize:"none",border:"1px solid rgba(0,0,0,0.12)",borderRadius:10,padding:12,fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:12,lineHeight:1.5,background:"transparent",outline:"none"}})}),l?jsxRuntime.jsxs("div",{style:{fontSize:12,color:"#d12f2f"},children:["Invalid JSON: ",l]}):d?jsxRuntime.jsxs("div",{style:{fontSize:12,color:"#d12f2f"},children:["Could not apply: ",d]}):jsxRuntime.jsxs("div",{style:{fontSize:12,opacity:.7},children:["Valid JSON (",safeStringify$1(u).length.toLocaleString()," ","chars)"]})]})}function LocalicationModal({data:e,onChange:t,onClose:r}){const i=e??{};return jsxRuntime.jsxs(Modal,{onClose:r,ariaLabelledBy:"localication-modal-title",className:"modal--large modal--scrollable localication-modal",contentClassName:"localication-modal__content",children:[jsxRuntime.jsxs("div",{className:"modal__header localication-modal__header",children:[jsxRuntime.jsxs("div",{className:"localication-modal__header-main",children:[jsxRuntime.jsx("h3",{id:"localication-modal-title",className:"modal__title",children:"Localization data"}),jsxRuntime.jsx("p",{className:"localication-modal__description",children:"Manage your translations directly from the JSON structure."})]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsxRuntime.jsx("div",{className:"localication-modal__body",children:jsxRuntime.jsx("div",{className:"localication-modal__editor",children:jsxRuntime.jsx(JsonTextEditor,{rootName:"localication",value:i,onChange:e=>t(e),className:"localication-modal__json-editor"})})})]})}const colorFields=[{id:"light-bg",label:"Light Background",mode:"light",key:"backgroundColor"},{id:"light-color",label:"Light Text",mode:"light",key:"color"},{id:"dark-bg",label:"Dark Background",mode:"dark",key:"backgroundColor"},{id:"dark-color",label:"Dark Text",mode:"dark",key:"color"}];function ScreenColorsModal({appConfig:e,onChange:t,onClose:r}){const i=defaultAppConfig.screenStyle,n=(t,r)=>e.screenStyle?.[t]?.[r]??i[t][r],o=React.useMemo(()=>"Edit light/dark screen background & text colors used in the preview.",[]);return jsxRuntime.jsxs(Modal,{onClose:r,ariaLabelledBy:"screen-colors-title",contentClassName:"localication-modal__content",children:[jsxRuntime.jsxs("div",{className:"modal__header localication-modal__header",children:[jsxRuntime.jsxs("div",{className:"localication-modal__header-main",children:[jsxRuntime.jsx("h3",{id:"screen-colors-title",className:"modal__title",children:"Screen Colors"}),jsxRuntime.jsx("p",{className:"localication-modal__description",children:o})]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsxRuntime.jsx("div",{className:"localication-modal__body",children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:12},children:colorFields.map(({id:r,label:o,mode:a,key:s})=>jsxRuntime.jsxs(React.Fragment,{children:[jsxRuntime.jsx("div",{style:{alignSelf:"center"},children:o}),jsxRuntime.jsx("input",{id:r,type:"color",className:"input input--color",value:String(n(a,s)),onChange:r=>((r,n,o)=>t({...e,screenStyle:{...i,...e.screenStyle,[r]:{...i[r],...e.screenStyle?.[r],[n]:o}}}))(a,s,r.target.value)})]},r))})})]})}function randomInt(e,t){return Math.floor(Math.random()*(t-e+1))+e}function randomChoice(e){return e[randomInt(0,e.length-1)]}function randomSku(){return`com.app.${randomChoice(["premium","pro","plus","gold","starter"])}.${randomChoice(["weekly","monthly","yearly","lifetime"])}`}function randomPrice(){const e=randomChoice(["USD","EUR","GBP","TRY"]),t=`${randomChoice([1,2,3,4,5,7,9,12,19,29,49,99])}.${randomChoice([0,49,99]).toString().padStart(2,"0")}`;return{price:t,localizedPrice:`${"USD"===e?"$":"EUR"===e?"€":"GBP"===e?"£":"₺"}${t}`,currency:e}}function ProductEditModal({product:e,index:t,onSave:r,onClose:i}){const n=React.useMemo(()=>({productId:e?.productId??"",title:e?.title??"",description:e?.description??"",localizedPrice:e?.localizedPrice??"",price:e?.price??"",currency:e?.currency??""}),[e]),[o,a]=React.useState(n),s=o.productId.trim().length>0;return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"product-edit-modal-title",contentClassName:"product-edit-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsxs("h3",{id:"product-edit-modal-title",className:"modal__title",children:["Edit product #",t+1]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"product-edit-modal__body",children:[jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"productId",children:"productId"}),jsxRuntime.jsx("input",{id:"productId",className:"input",value:o.productId,onChange:e=>a(t=>({...t,productId:e.target.value})),placeholder:"com.app.subscription.monthly"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"title",children:"title"}),jsxRuntime.jsx("input",{id:"title",className:"input",value:o.title,onChange:e=>a(t=>({...t,title:e.target.value})),placeholder:"Monthly Premium"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"description",children:"description"}),jsxRuntime.jsx("textarea",{id:"description",className:"input product-edit-modal__textarea",value:o.description,onChange:e=>a(t=>({...t,description:e.target.value})),placeholder:"Full access to all features..."})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"localizedPrice",children:"localizedPrice"}),jsxRuntime.jsx("input",{id:"localizedPrice",className:"input",value:o.localizedPrice,onChange:e=>a(t=>({...t,localizedPrice:e.target.value})),placeholder:"$4.99"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"price",children:"price"}),jsxRuntime.jsx("input",{id:"price",className:"input",value:o.price,onChange:e=>a(t=>({...t,price:e.target.value})),placeholder:"4.99"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"currency",children:"currency"}),jsxRuntime.jsx("input",{id:"currency",className:"input",value:o.currency,onChange:e=>a(t=>({...t,currency:e.target.value})),placeholder:"USD"})]}),jsxRuntime.jsxs("div",{className:"form-actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e=randomPrice(),t=randomChoice(["Premium","Pro","Plus","Gold","Starter","Unlimited"]),r=randomChoice(["Weekly","Monthly","Yearly","Lifetime"]);a({productId:randomSku(),title:`${t} ${r}`,description:randomChoice(["Unlock all features.","Full access to premium content.","Remove ads and get more features.","Best value for power users."]),localizedPrice:e.localizedPrice,price:e.price,currency:e.currency})},title:"Fill with random values",children:"Random"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>r(o),disabled:!s,title:s?"Save":"productId is required",children:"Save"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Cancel"})]})]})]})}var presetsJson$1={"Embeded Paywall":[{productId:"com.app.premium.monthly",title:"Premium Monthly",description:"Unlock all premium features for a month.",localizedPrice:"$4.99",price:"4.99",currency:"USD"},{productId:"com.app.pro.yearly",title:"Pro Yearly",description:"Best value: full access for a year.",localizedPrice:"€39.99",price:"39.99",currency:"EUR"},{productId:"com.app.plus.weekly",title:"Plus Weekly",description:"Try Plus with a flexible weekly plan.",localizedPrice:"£1.99",price:"1.99",currency:"GBP"}],"type-1":[{productId:"com.app.premium.monthly",title:"Premium Monthly",description:"Unlock all premium features for a month.",localizedPrice:"$4.99",price:"4.99",currency:"USD"},{productId:"com.app.pro.yearly",title:"Pro Yearly",description:"Best value: full access for a year.",localizedPrice:"€39.99",price:"39.99",currency:"EUR"},{productId:"com.app.plus.weekly",title:"Plus Weekly",description:"Try Plus with a flexible weekly plan.",localizedPrice:"£1.99",price:"1.99",currency:"GBP"}],"type-2":[{productId:"com.app.starter.monthly",title:"Starter Monthly",description:"Basic access to get started.",localizedPrice:"$2.99",price:"2.99",currency:"USD"},{productId:"com.app.gold.monthly",title:"Gold Monthly",description:"Gold tier with extra perks.",localizedPrice:"₺149.99",price:"149.99",currency:"TRY"},{productId:"com.app.premium.yearly",title:"Premium Yearly",description:"Unlock premium for a year.",localizedPrice:"$49.99",price:"49.99",currency:"USD"},{productId:"com.app.pro.lifetime",title:"Pro Lifetime",description:"One-time purchase for lifetime access.",localizedPrice:"€99.99",price:"99.99",currency:"EUR"}],"type-3":[{productId:"com.app.plus.yearly",title:"Plus Yearly",description:"Yearly plan with a big discount.",localizedPrice:"$24.99",price:"24.99",currency:"USD"}]};const DEFAULT_PRESET_KEY$1="Embeded Paywall";function normalizeProduct(e){return{productId:e?.productId??"",title:e?.title??"",description:e?.description??"",localizedPrice:e?.localizedPrice??"",price:e?.price??"",currency:e?.currency??""}}function getPresetMap$1(){const e=presetsJson$1,t={};return Object.entries(e??{}).forEach(([e,r])=>{e&&"string"==typeof e&&Array.isArray(r)&&(t[e]=r.filter(Boolean).map(e=>normalizeProduct(e)).filter(e=>"string"==typeof e.productId))}),t}function ProductPresetsModal({current:e,onReplace:t,onAppend:r,onClose:i}){const n=React.useMemo(()=>getPresetMap$1(),[]),o=React.useMemo(()=>Object.entries(n).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY$1&&i!==DEFAULT_PRESET_KEY$1?-1:i===DEFAULT_PRESET_KEY$1&&r!==DEFAULT_PRESET_KEY$1?1:r.localeCompare(i)}),[n]);return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"product-presets-modal-title",contentClassName:"product-presets-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"product-presets-modal-title",className:"modal__title",children:"Product presets"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"product-presets-modal__body",children:[jsxRuntime.jsxs("section",{className:"product-presets-modal__section",children:[jsxRuntime.jsxs("p",{className:"product-presets-modal__section-title",children:["Current (",Array.isArray(e)?e.length:0,")"]}),jsxRuntime.jsx("p",{className:"product-presets-modal__muted",children:"Pick a preset below to replace or append to the current list."})]}),jsxRuntime.jsxs("section",{className:"product-presets-modal__section",children:[jsxRuntime.jsx("p",{className:"product-presets-modal__section-title",children:"Presets"}),o.length?jsxRuntime.jsx("div",{className:"product-presets-modal__grid",children:o.map(([e,n])=>jsxRuntime.jsxs("div",{className:"product-presets-modal__card",children:[jsxRuntime.jsxs("div",{className:"product-presets-modal__card-header",children:[jsxRuntime.jsx("p",{className:"product-presets-modal__card-title",children:e}),jsxRuntime.jsxs("p",{className:"product-presets-modal__card-count",children:[n.length," products"]})]}),jsxRuntime.jsxs("ul",{className:"product-presets-modal__card-list",children:[n.slice(0,3).map(e=>jsxRuntime.jsx("li",{className:"product-presets-modal__card-item",children:e.productId},e.productId)),n.length>3?jsxRuntime.jsxs("li",{className:"product-presets-modal__card-item product-presets-modal__muted",children:["+",n.length-3," more…"]}):null]}),jsxRuntime.jsxs("div",{className:"product-presets-modal__actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(n),i()},children:"Replace"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(n),i()},children:"Append"})]})]},e))}):jsxRuntime.jsx("p",{className:"product-presets-modal__muted",children:"No presets found."})]})]})]})}function detectKind(e){return"number"==typeof e?"number":"boolean"==typeof e?"boolean":"string"}function parseValue(e,t,r){if("boolean"===e)return"true"===t;if("number"===e){const e=t.trim();if(!e)return r;const i=e.replace(",","."),n=Number.parseFloat(i);return Number.isFinite(n)?n:r}return t}function BenefitEditModal({benefitKey:e,benefitValue:t,index:r,onSave:i,onClose:n}){const o=React.useMemo(()=>{const r=(e??"").toString(),i=detectKind(t);return{key:r,kind:i,raw:"boolean"===i?t?"true":"false":"number"===i?`${t??""}`:(t??"").toString()}},[e,t]),[a,s]=React.useState(o),l=a.key.trim().length>0;return jsxRuntime.jsxs(Modal,{onClose:n,ariaLabelledBy:"benefit-edit-modal-title",contentClassName:"benefit-edit-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsxs("h3",{id:"benefit-edit-modal-title",className:"modal__title",children:["Edit benefit #",r+1]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:n,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"benefit-edit-modal__body",children:[jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"benefitKey",children:"key"}),jsxRuntime.jsx("input",{id:"benefitKey",className:"input",value:a.key,onChange:e=>s(t=>({...t,key:e.target.value})),placeholder:"unlimited_access"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"benefitType",children:"type"}),jsxRuntime.jsxs("select",{id:"benefitType",className:"input",value:a.kind,onChange:e=>s(t=>({...t,kind:e.target.value})),children:[jsxRuntime.jsx("option",{value:"string",children:"string"}),jsxRuntime.jsx("option",{value:"number",children:"number"}),jsxRuntime.jsx("option",{value:"boolean",children:"boolean"})]})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"benefitValue",children:"value"}),"boolean"===a.kind?jsxRuntime.jsxs("select",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),children:[jsxRuntime.jsx("option",{value:"true",children:"true"}),jsxRuntime.jsx("option",{value:"false",children:"false"})]}):jsxRuntime.jsx("input",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),placeholder:"number"===a.kind?"7":"Unlock everything"})]}),jsxRuntime.jsxs("div",{className:"form-actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>i({key:a.key,value:parseValue(a.kind,a.raw,t)}),disabled:!l,title:l?"Save":"key is required",children:"Save"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:n,children:"Cancel"})]})]})]})}var basic={unlimited_access:!0,trial_days:7,headline:"Unlock everything"},vpn={secure_connection:!0,no_logs:!0,locations:120,headline:"Private & fast VPN"},pro={remove_ads:!0,priority_support:!0,devices:5,headline:"Go Pro"},presetsJson={"Embeded Paywall":{unlimited_access:!0,trial_days:7,headline:"Unlock everything"},basic:basic,vpn:vpn,pro:pro};const DEFAULT_PRESET_KEY="Embeded Paywall";function normalizeBenefits(e){if(!e||"object"!=typeof e||Array.isArray(e))return{};const t={};return Object.entries(e).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&("string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r||(t[i]=r))}),t}function getPresetMap(){const e=presetsJson,t={};return Object.entries(e??{}).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&(t[i]=normalizeBenefits(r))}),t}function countBenefits(e){return e&&"object"==typeof e?Object.keys(e).length:0}function BenefitPresetsModal({current:e,onReplace:t,onMerge:r,onClose:i}){const n=React.useMemo(()=>getPresetMap(),[]),o=React.useMemo(()=>Object.entries(n).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY&&i!==DEFAULT_PRESET_KEY?-1:i===DEFAULT_PRESET_KEY&&r!==DEFAULT_PRESET_KEY?1:r.localeCompare(i)}),[n]);return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"benefit-presets-modal-title",contentClassName:"benefit-presets-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"benefit-presets-modal-title",className:"modal__title",children:"Benefit presets"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"benefit-presets-modal__body",children:[jsxRuntime.jsxs("section",{className:"benefit-presets-modal__section",children:[jsxRuntime.jsxs("p",{className:"benefit-presets-modal__section-title",children:["Current (",countBenefits(e),")"]}),jsxRuntime.jsx("p",{className:"benefit-presets-modal__muted",children:"Pick a preset below to replace or merge into the current map."})]}),jsxRuntime.jsxs("section",{className:"benefit-presets-modal__section",children:[jsxRuntime.jsx("p",{className:"benefit-presets-modal__section-title",children:"Presets"}),o.length?jsxRuntime.jsx("div",{className:"benefit-presets-modal__grid",children:o.map(([e,n])=>{const o=Object.entries(n);return jsxRuntime.jsxs("div",{className:"benefit-presets-modal__card",children:[jsxRuntime.jsxs("div",{className:"benefit-presets-modal__card-header",children:[jsxRuntime.jsx("p",{className:"benefit-presets-modal__card-title",children:e}),jsxRuntime.jsxs("p",{className:"benefit-presets-modal__card-count",children:[o.length," benefits"]})]}),jsxRuntime.jsxs("ul",{className:"benefit-presets-modal__card-list",children:[o.slice(0,3).map(([e,t])=>jsxRuntime.jsxs("li",{className:"benefit-presets-modal__card-item",children:[e,": ",String(t)]},e)),o.length>3?jsxRuntime.jsxs("li",{className:"benefit-presets-modal__card-item benefit-presets-modal__muted",children:["+",o.length-3," more…"]}):null]}),jsxRuntime.jsxs("div",{className:"benefit-presets-modal__actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(n),i()},children:"Replace"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(n),i()},title:"Merges preset into current (preset values overwrite existing keys)",children:"Merge"})]})]},e)})}):jsxRuntime.jsx("p",{className:"benefit-presets-modal__muted",children:"No presets found."})]})]})]})}function MockableFeatureModal({featureKey:e,onClose:t}){const{products:r,addProduct:i,removeProduct:n,updateProduct:o,setProducts:a,clearProducts:s,benefits:l,setBenefits:c,clearBenefits:d,upsertBenefit:p,removeBenefit:u,renameBenefit:h}=useRenderStore(e=>({products:e.products,addProduct:e.addProduct,removeProduct:e.removeProduct,updateProduct:e.updateProduct,setProducts:e.setProducts,clearProducts:e.clearProducts,benefits:e.benefits,setBenefits:e.setBenefits,clearBenefits:e.clearBenefits,upsertBenefit:e.upsertBenefit,removeBenefit:e.removeBenefit,renameBenefit:e.renameBenefit})),[g,m]=React.useState(null),[f,y]=React.useState(!1),[C,b]=React.useState(null),[x,v]=React.useState(!1),S=Object.entries(l&&"object"==typeof l&&!Array.isArray(l)?l:{});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(Modal,{onClose:t,ariaLabelledBy:"mockable-feature-modal-title",contentClassName:"mockable-feature-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsxs("h3",{id:"mockable-feature-modal-title",className:"modal__title",children:["Mockable: ",e]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:t,children:"Close"})]}),jsxRuntime.jsx("div",{className:"mockable-feature-modal__body",children:"products"===e?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Add product"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>y(!0),children:"Presets"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:s,disabled:0===r.length,children:"Clear"})]}),jsxRuntime.jsx("div",{style:{marginTop:12},children:r.length?jsxRuntime.jsx("ul",{style:{margin:0,paddingLeft:18},children:r.map((e,t)=>jsxRuntime.jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsxRuntime.jsx("span",{style:{flex:1},children:e?.productId?.trim()?e.productId:"(empty productId)"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>m(t),children:"Edit"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>n(t),children:"Remove"})]},`${t}-${e?.productId??""}`))}):jsxRuntime.jsx("p",{style:{margin:0,opacity:.7},children:"No products yet."})})]}):"benefits"===e?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e="benefit",t=new Set(S.map(([e])=>e));let r=`${e}_1`,i=1;for(;t.has(r);)i+=1,r=`${e}_${i}`;p(r,!0),b(r)},children:"Add benefit"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>v(!0),children:"Presets"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:d,disabled:0===S.length,children:"Clear"})]}),jsxRuntime.jsx("div",{style:{marginTop:12},children:S.length?jsxRuntime.jsx("ul",{style:{margin:0,paddingLeft:18},children:S.map(([e,t],r)=>jsxRuntime.jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsxRuntime.jsxs("span",{style:{flex:1,wordBreak:"break-word"},children:[e,": ",String(t)]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>b(e),children:"Edit"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>u(e),children:"Remove"})]},`${r}-${e}`))}):jsxRuntime.jsx("p",{style:{margin:0,opacity:.7},children:"No benefits yet."})})]}):jsxRuntime.jsxs("p",{style:{margin:0,opacity:.7},children:["No mock UI yet for “",e,"”."]})})]}),"products"===e&&null!==g?jsxRuntime.jsx(ProductEditModal,{index:g,product:r[g],onClose:()=>m(null),onSave:e=>{o(g,e),m(null)}}):null,"products"===e&&f?jsxRuntime.jsx(ProductPresetsModal,{current:r,onClose:()=>y(!1),onReplace:e=>a(e),onAppend:e=>a([...r??[],...e??[]])}):null,"benefits"===e&&null!==C?jsxRuntime.jsx(BenefitEditModal,{index:Math.max(0,S.findIndex(([e])=>e===C)),benefitKey:C,benefitValue:l?.[C]??"",onClose:()=>b(null),onSave:({key:e,value:t})=>{const r=e.trim();C!==r&&h(C,r),p(r,t),b(null)}}):null,"benefits"===e&&x?jsxRuntime.jsx(BenefitPresetsModal,{current:l,onClose:()=>v(!1),onReplace:e=>c(e),onMerge:e=>c({...l??{},...e??{}})}):null]})}function IconTypePickerField({value:e,onChange:t}){const[r,i]=React.useState(!1),n="string"==typeof e?e:void 0;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>i(!0),className:"attributes-editor__picker-button",children:[jsxRuntime.jsxs("span",{className:"attributes-editor__picker-button-left",children:[n?jsxRuntime.jsx(Icon,{iconType:n,size:18}):null,jsxRuntime.jsx("span",{className:"attributes-editor__picker-button-label",children:n??"Select icon"})]}),jsxRuntime.jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),r?jsxRuntime.jsx(IconPickerModal,{value:n,onSelect:e=>{t(e),i(!1)},onClose:()=>i(!1),onClear:()=>{t(void 0),i(!1)}}):null]})}function FontFamilyPickerField({name:e,value:t,onChange:r,fonts:i,loadedFonts:n,markFontLoaded:o,addError:a}){const[s,l]=React.useState(!1),[c,d]=React.useState(!1),[p,u]=React.useState(null),h="string"==typeof t&&t.trim().length>0?t.trim():void 0,g=Array.isArray(i)?i:[],m=Array.isArray(n)?n:[],f=React.useMemo(()=>`${g.length} fonts`,[g.length]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{u(null),l(!0)},className:"attributes-editor__picker-button",children:[jsxRuntime.jsx("span",{className:"attributes-editor__picker-button-label attributes-editor__picker-button-label--fill",children:h??"Select font"}),jsxRuntime.jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),s?jsxRuntime.jsx(Modal,{ariaLabelledBy:"font-family-picker-title",onClose:()=>{c||l(!1)},closeOnOverlayClick:!c,closeOnEsc:!c,children:jsxRuntime.jsxs("div",{className:"attributes-editor__font-modal",children:[jsxRuntime.jsxs("div",{className:"attributes-editor__font-modal-header",children:[jsxRuntime.jsx("p",{id:"font-family-picker-title",className:"attributes-editor__font-modal-title",children:"Select Font"}),jsxRuntime.jsx("div",{className:"attributes-editor__font-modal-spacer"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(void 0),u(null),l(!1)},disabled:c,children:"Clear"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>l(!1),disabled:c,children:"Close"})]}),c?jsxRuntime.jsx("div",{className:"attributes-editor__font-modal-note",children:"Loading font…"}):null,p?jsxRuntime.jsx("div",{className:"attributes-editor__font-modal-error",children:p}):null,jsxRuntime.jsx("div",{className:"attributes-editor__font-modal-note",children:f}),jsxRuntime.jsx("div",{className:"attributes-editor__font-grid",children:g.map(e=>{const t=e?.name;if("string"!=typeof t||!t.trim())return null;const i=t.trim(),n=h===i,s=m.includes(i),l=["attributes-editor__font-option",n?"attributes-editor__font-option--active":""].filter(Boolean).join(" ");return jsxRuntime.jsxs("button",{type:"button",disabled:c,onClick:async()=>{if(u(null),r(i),!s){d(!0);try{fontsDebug.info("AttributesEditor: loadFontFamily start",{familyName:i}),await loadFontFamily(g,i,{forceFetch:!0}),o(i),fontsDebug.info("AttributesEditor: loadFontFamily success",{familyName:i})}catch(e){const t=e instanceof Error?e.message:String(e);u(`Failed to load "${i}": ${t}`),a(`Failed to load font "${i}": ${t}`)}finally{d(!1)}}},className:l,"aria-label":`Select font ${i}`,children:[jsxRuntime.jsx("span",{className:"attributes-editor__font-option-name",title:i,children:i}),jsxRuntime.jsx("span",{className:"attributes-editor__font-option-status",children:s?"Loaded":"Not loaded"})]},i)})})]})}):null]})}function getPreferredOrderedSizeEntries(e){const t=["width","height","minWidth","minHeight","maxWidth","maxHeight"];return[...e].sort((e,r)=>{const i=t.indexOf(e.name),n=t.indexOf(r.name),o=-1===i?Number.MAX_SAFE_INTEGER:i,a=-1===n?Number.MAX_SAFE_INTEGER:n;return o!==a?o-a:e.name.localeCompare(r.name)})}function getSpecialSectionTitle(e){const t=e.key,r=e.meta;return{title:r?.label&&r.label.trim().length>0?r.label:t.charAt(0).toUpperCase()+t.slice(1),description:r?.description}}function AttributesEditorView(e){const{isInvalidNode:t,componentTitle:r,componentDescription:i,mockableFeatureKeys:n,activeMockableFeature:o,setActiveMockableFeature:a,tabs:s,tabContentInfo:l,activeTab:c,setActiveTab:d,firstAvailableTab:p,activeEntries:u,activeSpecialSections:h,hasTitleField:g,hasDescriptionField:m,hasStringChildren:f,childrenValue:y,handleChildrenChange:C,attributeMeta:b,data:x,getAttributeValue:v,handleAttributeChange:S,projectColorsForPicker:w,layoutContext:k,viewAttributes:_,attributes:T,projectFonts:R,loadedFonts:M,markFontLoaded:E,addError:O}=e,P=jsxRuntime.jsxs("div",{className:"attributes-editor__component-meta",children:[jsxRuntime.jsx("p",{className:"attributes-editor__component-title",children:r}),i?jsxRuntime.jsx("p",{className:"attributes-editor__component-description",children:i}):null]}),j=v("title"),L=v("description"),A=!t&&(g||m)?jsxRuntime.jsxs("section",{className:"attributes-editor__top-fields",children:[g?jsxRuntime.jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsxRuntime.jsx("label",{className:"attributes-editor__field-label",htmlFor:"title",children:"Title (max 20 characters for display purposes)"}),jsxRuntime.jsx("input",{id:"title",className:"input",type:"text",maxLength:20,value:"string"==typeof j?j:"",onChange:e=>S("title",e.target.value)})]}):null,m?jsxRuntime.jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsxRuntime.jsx("label",{className:"attributes-editor__field-label",htmlFor:"description",children:"Description (for display purposes)"}),jsxRuntime.jsx("input",{id:"description",className:"input",type:"text",value:"string"==typeof L?L:"",onChange:e=>S("description",e.target.value)})]}):null]}):null,B=n.length>0?jsxRuntime.jsxs("section",{className:"attributes-editor__mockable",children:[jsxRuntime.jsx("p",{className:"attributes-editor__mockable-title",children:"Mockable"}),jsxRuntime.jsx("table",{className:"attributes-editor__mockable-table",children:jsxRuntime.jsx("tbody",{children:n.map(e=>jsxRuntime.jsxs("tr",{className:"attributes-editor__mockable-row",children:[jsxRuntime.jsx("td",{className:"attributes-editor__mockable-name",children:e}),jsxRuntime.jsx("td",{className:"attributes-editor__mockable-action",children:jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>a(e),children:e})})]},e))})})]}):null,z=jsxRuntime.jsx("div",{className:"attributes-editor__tabs",children:s.map(e=>{const t=e.id===c,r=l[e.id],i=r.baseCount+r.specialCount,n=0===i,o=["attributes-editor__tab-button",t?"attributes-editor__tab-button--active":""].filter(Boolean).join(" ");return jsxRuntime.jsxs("button",{type:"button",onClick:()=>!n&&d(e.id),disabled:n,className:o,children:[e.label,i>0?` (${i})`:""]},e.id)})}),I=f?jsxRuntime.jsxs("div",{className:"attributes-editor__field-wrapper attributes-editor__field-wrapper--children",children:[jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:"Text"}),jsxRuntime.jsx("input",{type:"text",className:"attributes-editor__text-input",value:y,onChange:e=>C(e.target.value)})]}):null,V=React.useMemo(()=>{const e=l[p];return(e?.baseCount??0)+(e?.specialCount??0)>0||f&&void 0!==y},[y,p,f,l]);return t?null:jsxRuntime.jsxs("div",{className:"attributes-editor",children:[P,A,B,z,I,h.map(function(e){if("size"===e.key){const{title:t,description:r}=getSpecialSectionTitle(e),i=getPreferredOrderedSizeEntries(e.entries);return jsxRuntime.jsxs("section",{className:"special-category-section",children:[jsxRuntime.jsx("div",{className:"special-category-section__header",children:jsxRuntime.jsx("p",{className:"special-category-section__title",children:t})}),r?jsxRuntime.jsx("p",{className:"special-category-section__description",children:r}):null,jsxRuntime.jsx("div",{className:"attributes-editor__size-grid",children:i.map(e=>{const t=b?.[e.name]?.label??e.name,r=b?.[e.name]?.description,i=toPreferredScale(b?.[e.name]?.preferedScale),n=v(e.name),o=isBooleanFieldType(e.type),a=["attributes-editor__field-wrapper",o?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsxRuntime.jsx(FieldInfoTooltip,{description:r,children:jsxRuntime.jsxs("div",{className:`${a} attributes-editor__size-grid-item`,children:[o?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:t}),"iconType"===e.type?jsxRuntime.jsx(IconTypePickerField,{name:e.name,value:n,onChange:t=>S(e.name,t)}):"fontFamily"===e.type?jsxRuntime.jsx(FontFamilyPickerField,{name:e.name,value:n,onChange:t=>S(e.name,t),fonts:R,loadedFonts:M,markFontLoaded:E,addError:O}):jsxRuntime.jsx(Field,{name:e.name,type:e.type,value:n,onChange:t=>S(e.name,t),componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:_,label:o?t:void 0,preferredScale:i})]})},e.name)})})]},e.key)}return jsxRuntime.jsx(SpecialCategorySection,{category:e.key,entries:e.entries,attributeMeta:b,attributes:T,getAttributeValue:v,onAttributeChange:S,componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:_,meta:e.meta},e.key)}),u.map(function(e){const t=e.name,r=e.type,i=b?.[t]?.label??t,n=b?.[t]?.description,o=toPreferredScale(b?.[t]?.preferredScale??b?.[t]?.preferedScale),a=isBooleanFieldType(r),s=["attributes-editor__field-wrapper",a?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" "),l=v(t);return jsxRuntime.jsx(FieldInfoTooltip,{description:n,children:jsxRuntime.jsxs("div",{className:s,children:[a?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:i}),"iconType"===r?jsxRuntime.jsx(IconTypePickerField,{name:t,value:l,onChange:e=>S(t,e)}):"fontFamily"===r?jsxRuntime.jsx(FontFamilyPickerField,{name:t,value:l,onChange:e=>S(t,e),fonts:R,loadedFonts:M,markFontLoaded:E,addError:O}):jsxRuntime.jsx(Field,{name:t,type:r,value:l,onChange:e=>S(t,e),componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:_,label:a?i:void 0,preferredScale:o})]})},t)}),V?null:jsxRuntime.jsx("div",{className:"attributes-editor__empty-state",children:"No editable attributes"}),o?jsxRuntime.jsx(MockableFeatureModal,{featureKey:o,onClose:()=>a(null)}):null]})}function isPlainObject$2(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function getStyleBagSourceAndValue(e){const t=e??{},r=t.styles;if(isPlainObject$2(r))return{source:"styles",styleBag:r};const i=t.style;return isPlainObject$2(i)?{source:"style",styleBag:i}:{source:"none",styleBag:void 0}}function isAttributeTypeSpec(e){return"string"==typeof e||Array.isArray(e)}function getNestedStyleSchema(e){const t=e.styles??e.style;if(!isPlainObject$2(t))return;const r={};for(const[e,i]of Object.entries(t))isAttributeTypeSpec(i)&&(r[e]=i);return Object.keys(r).length?r:void 0}function buildAttributesEditorEntries(e,t){const r=getNestedStyleSchema(e),i=Object.keys(t??{}),n=Object.keys(e).filter(e=>"style"!==e&&"styles"!==e),o=Object.keys(r??{}),a=new Set([...i,...n,...o]),s=Array.from(a).filter(e=>"style"!==e&&"styles"!==e),l=[];return s.forEach(t=>{const i=e[t],n=r?.[t],o=isAttributeTypeSpec(i)?i:n;o&&l.push({name:t,type:o})}),l}function isValidStyleBagValue(e){const t=e,r=t?.styles,i=t?.style;return!(null!=r&&!isPlainObject$2(r)||null!=i&&!isPlainObject$2(i))}function findLegacyFlatStyleKeys(e,t){return isPlainObject$2(e)?Object.keys(e).filter(e=>"style"!==e&&"styles"!==e&&t(e)):[]}function isPlainObject$1(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function buildProjectColorsFallback(e){const t=new Set,r=e?.screenStyle;if([r?.light,r?.dark].filter(Boolean).forEach(e=>{["backgroundColor","color","seperatorColor"].forEach(r=>{const i=e?.[r];((e,t)=>{if("string"!=typeof t)return;const r=t.trim();r&&e.add(r)})(t,i)})}),0===t.size)return;const i={};return Array.from(t).forEach((e,t)=>{i[`FALLBACK_${t+1}`]=e}),{STATIC_COLORS:i}}function useAttributesEditorModel({node:e,onChange:t,projectColors:r}){const i=!e||isNodeString(e),n=React.useMemo(()=>i?{type:"View",children:null,attributes:{}}:e,[i,e]),o=useNode(n),{appConfig:a,fonts:s,loadedFonts:l,markFontLoaded:c,addError:d}=useRenderStore(e=>({appConfig:e.appConfig,fonts:e.fonts,loadedFonts:e.loadedFonts,markFontLoaded:e.markFontLoaded,addError:e.addError})),p=React.useMemo(()=>getAttributeSchema(o?.type)??{},[o?.type]),u=getAttributeMeta(o?.type),h=React.useMemo(()=>o?.attributes??{},[o?.attributes]),g=React.useMemo(()=>getStyleAttributeKeySet(),[]),m=React.useMemo(()=>getStyleBagSourceAndValue(h),[h]),f=m.styleBag,y=React.useCallback(e=>{const t=u?.[e]?.category;return"style"===t||g.has(e)},[u,g]),C=React.useCallback(e=>!!y(e)||!(!f||!Object.prototype.hasOwnProperty.call(f,e)),[y,f]),b=React.useMemo(()=>findLegacyFlatStyleKeys(h,y),[h,y]),x=React.useMemo(()=>!isValidStyleBagValue(h),[h]);React.useEffect(()=>{const e="style"===m.source;(0!==b.length||x||e)&&logger.warn("AttributesEditor","Legacy/unmigrated attributes detected. This editor expects schemaVersion=2 (style nested under attributes.styles). Please run migrations.",{componentType:o?.type,nodeKey:n.key,legacyFlatStyleKeys:b,hasInvalidStyleBag:x,styleBagSource:m.source})},[n,o?.type,x,b,m.source]);const v=React.useCallback(e=>C(e)?f?.[e]:h?.[e],[h,C,f]),S=React.useMemo(()=>r||buildProjectColorsFallback(a),[a,r]),w=React.useMemo(()=>"View"===o?.type?h:void 0,[h,o?.type]),k=React.useMemo(()=>({flexDirection:f?.flexDirection,alignItems:f?.alignItems,justifyContent:f?.justifyContent}),[f?.flexDirection,f?.alignItems,f?.justifyContent]),_=React.useMemo(()=>o?.type?getPatternByType(o.type):void 0,[o?.type]),T=_?.meta,R=T?.label??o?.type??"Component",M=T?.description,E="title"===_?.pattern?.title,O="description"===_?.pattern?.description,P=React.useMemo(()=>buildAttributesEditorEntries(p,u).filter(({type:e})=>"string"!=typeof e||"never"!==e),[u,p]),j=React.useMemo(()=>T?.hideAllAttributes?P.filter(({name:e})=>{const t=u?.[e];return!0===t?.forceVisible||!0===t?.override}):P,[u,T?.hideAllAttributes,P]),L=React.useMemo(()=>{const e=T?.mockableFeatures;return e&&"object"==typeof e?Object.entries(e).filter(([,e])=>!0===e).map(([e])=>e).filter(e=>"string"==typeof e&&e.trim().length>0).sort((e,t)=>e.localeCompare(t)):[]},[T?.mockableFeatures]),[A,B]=React.useState(null),z=React.useMemo(()=>{const e={style:[],container:[],other:[]},t={},r=e=>u?.[e]?.sort??Number.MAX_SAFE_INTEGER,i=(e,t)=>{const i=r(e.name)-r(t.name);return 0!==i?i:e.name.localeCompare(t.name)};return j.forEach(({name:r,type:i})=>{const n=u?.[r],o=n?.specialCategory;if("string"==typeof o){const e=o.trim();if(e)return t[e]||(t[e]=[]),void t[e].push({name:r,type:i})}const a=n?.category;e["style"===a?"style":"container"===a?"container":"other"].push({name:r,type:i})}),Object.values(e).forEach(e=>e.sort(i)),Object.values(t).forEach(e=>e.sort(i)),{grouped:e,specialGroups:t}},[u,j]),{grouped:I,specialGroups:V}=z,D=React.useMemo(()=>{const e={style:[],container:[],other:[]},t=(e,t)=>{const r=(e.meta?.sort??Number.MAX_SAFE_INTEGER)-(t.meta?.sort??Number.MAX_SAFE_INTEGER);return 0!==r?r:e.key.localeCompare(t.key)};return Object.entries(V).forEach(([t,r])=>{if(!r.length)return;const i=T?.specialCategories?.[t];e["style"===i?.category?"style":"container"===i?.category?"container":"other"].push({key:t,entries:r,meta:i})}),Object.keys(e).forEach(r=>{e[r].sort(t)}),e},[T?.specialCategories,V]),N=React.useMemo(()=>[{id:"container",label:"Container",entries:I.container},{id:"style",label:"Styles",entries:I.style},{id:"other",label:"Others",entries:I.other}],[I]),F=React.useMemo(()=>{const e={style:{baseCount:0,specialCount:0},container:{baseCount:0,specialCount:0},other:{baseCount:0,specialCount:0}};return N.forEach(t=>{e[t.id].baseCount=t.entries.length}),Object.keys(D).forEach(t=>{e[t].specialCount=D[t].reduce((e,t)=>e+t.entries.length,0)}),e},[D,N]),H=React.useMemo(()=>N.find(e=>{const t=F[e.id];return t.baseCount+t.specialCount>0})?.id??"other",[F,N]),[W,$]=React.useState(H);React.useEffect(()=>{$(e=>{const t=F[e];return t&&t.baseCount+t.specialCount>0?e:H})},[H,F]);const G=N.find(e=>e.id===W)?.entries??N.find(e=>e.id===H)?.entries??[],U=D[W]??[],Z=React.useCallback((e,r)=>{const i={...n?.attributes??{}??{}};if(y(e)){const t={...isPlainObject$1(i.styles)?i.styles:isPlainObject$1(i.style)?i.style:{},[e]:r};i.styles=t,delete i.style,e in i&&delete i[e]}else i[e]=r;const o={...n,attributes:i};t(o)},[n,y,t]),Y=React.useCallback(e=>{const r={...n,children:e};t(r)},[n,t]),K=!!_?.pattern&&"string"===_.pattern.children,q="string"==typeof n.children?n.children:"";return{isInvalidNode:i,baseData:n,data:o,appConfig:a,projectFonts:s,loadedFonts:l,markFontLoaded:c,addError:d,schema:p,attributeMeta:u,componentTitle:R,componentDescription:M,patternForType:_,componentMeta:T,attributes:h,styleBag:f,projectColorsForPicker:S,viewAttributes:w,layoutContext:k,getAttributeValue:v,handleAttributeChange:Z,handleChildrenChange:Y,tabs:N,tabContentInfo:F,firstAvailableTab:H,activeTab:W,setActiveTab:$,activeEntries:G,specialSectionsByTab:D,activeSpecialSections:U,mockableFeatureKeys:L,activeMockableFeature:A,setActiveMockableFeature:B,hasTitleField:E,hasDescriptionField:O,hasStringChildren:K,childrenValue:q}}function AttributesEditor(e){useLogRender("AttributesEditor");const t=useAttributesEditorModel(e),r=t.attributes?.title,i=t.hasTitleField,n=React.useRef(t.handleAttributeChange);return n.current=t.handleAttributeChange,React.useEffect(()=>{i&&"string"==typeof r&&r.length>20&&n.current("title",r.slice(0,20))},[i,r]),jsxRuntime.jsx(AttributesEditorView,{...t})}function deleteNodeFromTree(e,t){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=[];for(const n of e){if(n===t){r=!0;continue}const e=deleteNodeFromTree(n,t);e!==n&&(r=!0),i.push(e)}return r?i:e}const r=e;if("children"in r){const i=r.children;if(!i)return e;if(Array.isArray(i)){let n=!1;const o=[];for(const e of i){if(e===t){n=!0;continue}const r=deleteNodeFromTree(e,t);r!==e&&(n=!0),o.push(r)}return n?{...r,children:o}:e}if(i===t)return{...r,children:""};const n=deleteNodeFromTree(i,t);if(n!==i)return{...r,children:n}}return e}function isNodeRecord(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function findNodeByKey(e,t){if(!t)return null;if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKey(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKey(r.children,t):null}function replaceNode(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=replaceNode(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>replaceNode(e,t,r)):replaceNode(e,t,r);if(n!==e)return{...i,children:n}}return e}function AttributesEditorPanel({attributes:e,onChange:t,projectColors:r}){useLogRender("AttributesEditorPanel");const{current:i,setCurrent:n}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent})),o=React.useRef(e);o.current=e;const a=React.useRef(i);a.current=i;const s=React.useRef(t);s.current=t;const l=React.useCallback(e=>{const t=o.current,r=a.current;if(!r)return;const i=replaceNode(t,r,e);s.current(i),n(e)},[n]);if(!i)return null;const c="object"==typeof i&&!Array.isArray(i)&&"key"in i?i.key:void 0,d=(c&&e?findNodeByKey(e,c):null)??i;return jsxRuntime.jsx("div",{className:"attributes-editor-panel",children:jsxRuntime.jsx(AttributesEditor,{node:d,onChange:l,projectColors:r},c??void 0)})}function Breadcrumb({items:e,separator:t="/",ariaLabel:r="Breadcrumb",onBack:i,backLabel:n="Back"}){return useLogRender("Breadcrumb"),jsxRuntime.jsxs("nav",{className:"breadcrumb","aria-label":r,children:[i&&jsxRuntime.jsxs("button",{type:"button",className:"breadcrumb__back",onClick:i,"aria-label":"Go back",children:[jsxRuntime.jsx("span",{className:"breadcrumb__back-icon","aria-hidden":!0,children:"←"}),jsxRuntime.jsx("span",{children:n})]}),jsxRuntime.jsx("ol",{className:"breadcrumb__list",children:e.map((r,i)=>{const n=i===e.length-1,o=!n&&(r.to||r.onClick);return jsxRuntime.jsxs("li",{className:"breadcrumb__item "+(o?"breadcrumb__item--clickable":""),onClick:o?r.onClick:void 0,role:o?"button":void 0,tabIndex:o?0:void 0,onKeyDown:o&&r.onClick?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r.onClick?.())}:void 0,children:[i>0&&jsxRuntime.jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:t}),n||!r.to&&!r.onClick?jsxRuntime.jsx("span",{className:"breadcrumb__current","aria-current":"page",children:r.label}):jsxRuntime.jsx("span",{className:"breadcrumb__link",children:r.label})]},`${r.label}-${i}`)})})]})}function BuilderButton({node:e,onClick:t,onDelete:r,onMoveUp:i,onMoveDown:n,childrenCount:o,onMore:a}){const[s,l]=React.useState(!1),c=React.useRef(null),d=React.useMemo(()=>`builder-node-actions-${Math.random().toString(36).slice(2,9)}`,[]);if(React.useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]),isNodeNullOrUndefined(e))return jsxRuntime.jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(e))return jsxRuntime.jsx("div",{className:"builder__text",children:e});const p=e;let u="";p.attributes?.condition&&(u=`${p.attributes.condition} ${p.attributes.conditionVariable??""}`.trim());const h=getPatternByType(p.type)?.meta?.label?.trim(),g=h&&h.length>0?h:p.type,m=u.trim()?u:"",f="string"==typeof p.attributes?.title?p.attributes.title.trim():"",y=f.length>0,C=y?f:g,b=y||m.length>0||"number"==typeof o;return jsxRuntime.jsxs("div",{className:"builder__button",children:[(i||n)&&jsxRuntime.jsxs("div",{className:"builder__sort-controls",children:[jsxRuntime.jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),i?.()},disabled:!i,"aria-label":"Move up",children:"↑"}),jsxRuntime.jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),n?.()},disabled:!n,"aria-label":"Move down",children:"↓"})]}),jsxRuntime.jsx("button",{type:"button",className:"builder__button-link",onClick:t,children:C}),jsxRuntime.jsxs("div",{className:"builder__button-actions",ref:c,children:[jsxRuntime.jsx("button",{type:"button",className:"builder__button-actions-trigger","aria-label":"Open node actions","aria-haspopup":"menu","aria-expanded":s,"aria-controls":d,onClick:e=>{e.stopPropagation(),l(e=>!e)},children:jsxRuntime.jsx(Icon,{iconType:"chevron-right",size:16})}),s&&jsxRuntime.jsxs("ul",{id:d,className:"builder__button-actions-menu",role:"menu","aria-label":"Node actions",children:[a?jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{type:"button",className:"builder__button-actions-item",role:"menuitem",onClick:e=>{e.stopPropagation(),a(),l(!1)},children:"More"})}):null,jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{type:"button",className:"builder__button-actions-item builder__button-actions-item--danger",role:"menuitem",disabled:!r,onClick:t=>{if(t.stopPropagation(),!r)return;window.confirm("Do you want to delete?")&&(r&&(isNodeNullOrUndefined(e)||isNodeString(e)||r(e)),l(!1))},children:"Delete"})})]})]}),b&&jsxRuntime.jsxs("span",{className:"builder__button-condition",children:[y||m.length>0?jsxRuntime.jsx("span",{className:"builder__button-condition-text",children:y?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("small",{children:g}),m?` · ${m}`:""]}):m}):jsxRuntime.jsx("span",{className:"builder__button-condition-text"}),"number"==typeof o?jsxRuntime.jsxs("span",{className:"builder__button-children-count",children:[o," children"]}):null]})]})}function BuilderTreeNode({node:e,depthRemaining:t,onClick:r,onDelete:i,onMoveUp:n,onMoveDown:o}){const a=getNodeChildren(e),s=a.length>0,l=s&&t<=0?a.length:void 0,c=s&&t<=0?()=>r(e):void 0,d=jsxRuntime.jsx(BuilderButton,{onClick:()=>{r(e)},node:e,onDelete:i,onMoveUp:n,onMoveDown:o,childrenCount:l,onMore:c});return s?t<=0?jsxRuntime.jsx("div",{className:"builder__children",children:d}):jsxRuntime.jsxs("div",{className:"builder__children",children:[d,a.map((e,n)=>jsxRuntime.jsx(BuilderTreeNode,{node:e,depthRemaining:t-1,onClick:r,onDelete:i},n))]}):d}function BuilderComponent({node:e,onClick:t,onAdd:r,onDelete:i,onReorder:n,onMoveChildUp:o,onMoveChildDown:a,maxNestedDepth:s}){if(isNodeString(e))return jsxRuntime.jsxs("div",{className:"builder__text",children:[e," (Please define a node)"]});const l=r&&jsxRuntime.jsxs("button",{type:"button",className:"editor-button builder__add-button",onClick:r,children:[jsxRuntime.jsx("span",{className:"builder__add-button-icon","aria-hidden":"true",children:"+"}),jsxRuntime.jsx("span",{children:"Add component"})]});if(isNodeArray(e)){const r=e,o=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4),a=(e,t)=>{if(!n)return;const i=e+t;if(i<0||i>=r.length)return;const o=[...r],[a]=o.splice(e,1);o.splice(i,0,a),n(r,o)};return jsxRuntime.jsxs("div",{className:"builder__list",children:[r.map((e,s)=>jsxRuntime.jsx("div",{className:"builder__list-item",children:jsxRuntime.jsx(BuilderTreeNode,{node:e,depthRemaining:o,onClick:t,onDelete:i,onMoveUp:n&&s>0?()=>a(s,-1):void 0,onMoveDown:n&&s<r.length-1?()=>a(s,1):void 0})},s)),l]})}const c=e,d=c?.children,p=isNodeArray(d),u=d?p?d:[d]:null,h=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4);return jsxRuntime.jsxs("div",{className:"builder__node",children:[jsxRuntime.jsxs("div",{className:"builder__children",children:[jsxRuntime.jsx(BuilderButton,{onClick:()=>{t(e)},node:e,onDelete:i}),u&&u.map((r,n)=>jsxRuntime.jsx(BuilderTreeNode,{node:r,depthRemaining:h,onClick:t,onDelete:i,onMoveUp:o&&p&&n>0?()=>o(e,n):void 0,onMoveDown:a&&p&&n<u.length-1?()=>a(e,n):void 0},n))]}),l]})}function Builder({data:e,setData:t,current:r,setCurrent:i,onDeleteNode:n}){useLogRender("Builder");const[o,a]=React.useState(!1),s=useRenderStore(e=>e.listMaxNested),l=React.useMemo(()=>collectNodeKeys(e),[e]),c=Number.isFinite(s)&&s>0?Math.floor(s):5,d=React.useMemo(()=>{const t=findNodePath(e,r);return t.length?t:isNodeNullOrUndefined(r)?isNodeNullOrUndefined(e)?[]:[e]:[r]},[e,r]),p=React.useCallback(e=>{i(e)},[i]),u=React.useMemo(()=>d.map((e,t)=>({label:getNodeLabel(e),onClick:t===d.length-1?void 0:()=>p(e)})),[d,p]),h=React.useCallback(()=>{d.length<2||p(d[d.length-2])},[d,p]),g=React.useCallback(n=>{const o=_(n,new Set(l));if(isNodeNullOrUndefined(r)){if(isNodeNullOrUndefined(e)||isNodeString(e))return t(o),void i(o);if(Array.isArray(e)){const r=[...e,o];return t(r),void i(r)}const r=e,n={...r,children:appendChild(r.children,o)};return t(n),void i(n)}if(isNodeArray(r)){const n=[...r,o],a=k(e,r,n);return t(a),void i(n)}if(isNodeString(r))return void(r===e&&(t(o),i(o)));const a=r,s={...a,children:appendChild(a.children,o)},c=k(e,r,s);t(c),i(s)},[r,e,t,i,l]),m=React.useMemo(()=>function(t){if(isNodeNullOrUndefined(t))return[...allcomponentNames];if(isNodeArray(t)&&0===t.length)return[...allcomponentNames];if(isNodeString(t))return t===e?[...allcomponentNames]:[];const r=t.type;if("OnboardButtons"===r)return["OnboardButton"];const i=getPatternByType(r)?.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[]}(r),[r]),f=React.useMemo(()=>isNodeNullOrUndefined(r)||isNodeString(r)||isNodeArray(r)?null:r.type??null,[r]),y=m.length>0||null==e||Array.isArray(e)&&0===e.length,C=React.useCallback(()=>{y&&a(!0)},[y]),b=React.useCallback(()=>{a(!1)},[]),x=React.useCallback(e=>{g(e),a(!1)},[g]),v=React.useCallback((n,o)=>{const a=k(e,n,o);t(a),r===n&&i(o)},[r,e,i,t]),S=React.useCallback((n,o)=>{if(isNodeNullOrUndefined(n)||isNodeString(n)||isNodeArray(n))return;const a=n,s=a.children;if(!Array.isArray(s))return;if(o<=0||o>=s.length)return;const l=[...s],[c]=l.splice(o,1);l.splice(o-1,0,c);const d={...a,children:l},p=k(e,n,d);t(p),r===n&&i(d)},[r,e,i,t]),w=React.useCallback((n,o)=>{if(isNodeNullOrUndefined(n)||isNodeString(n)||isNodeArray(n))return;const a=n,s=a.children;if(!Array.isArray(s))return;if(o<0||o>=s.length-1)return;const l=[...s],[c]=l.splice(o,1);l.splice(o+1,0,c);const d={...a,children:l},p=k(e,n,d);t(p),r===n&&i(d)},[r,e,i,t]);function k(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=k(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>k(e,t,r)):k(e,t,r);if(n!==e)return{...i,children:n}}return e}function _(e,t){const r=getPatternByType(e)?.pattern,i=getDefaultsForType(e)??{},n=r?.children;let o="";do{o=generateRandomKeyForNode(e)}while(t.has(o));if(t.add(o),"CarouselProvider"===e)return{type:e,key:o,children:_("Carousel",t),attributes:{...i}};let a=null;return a="never"===n?null:"string"===n?"":"node"===n||Array.isArray(n)&&n.includes("node")?null:"string"==typeof n?[_(n,t)]:null,{type:e,key:o,children:a,attributes:{...i}}}return jsxRuntime.jsxs("div",{className:"builder",children:[jsxRuntime.jsx(Breadcrumb,{items:u,onBack:d.length>1?h:void 0}),jsxRuntime.jsx(BuilderComponent,{onClick:p,onAdd:y?C:void 0,onDelete:n,onReorder:v,onMoveChildUp:S,onMoveChildDown:w,maxNestedDepth:c,node:r}),o&&jsxRuntime.jsx(AddComponentModal,{allowedChildTypes:m,parentType:f,onSelect:x,onClose:b})]})}function appendChild(e,t){return Array.isArray(e)?[...e,t]:null==e||"string"==typeof e?[t]:[e,t]}function getNodeChildren(e){if(isNodeNullOrUndefined(e)||isNodeString(e)||isNodeArray(e))return[];const t=e.children;return t?Array.isArray(t)?t:[t]:[]}function getNodeLabel(e){if(isNodeNullOrUndefined(e))return"Empty";if(isNodeString(e))return e;if(isNodeArray(e))return"Collection";const t=e,r=t.attributes?.title;return"string"==typeof r&&r.trim().length>0?r:t.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 r of e){const e=findNodePath(r,t);if(e.length)return e}return[]}const r=e.children;if(!r)return[];const i=Array.isArray(r)?r:[r];for(const r of i){const i=findNodePath(r,t);if(i.length)return[e,...i]}return[]}function BuilderPanel({data:e,setData:t,onDeleteNode:r}){useLogRender("BuilderPanel");const{current:i,setCurrent:n}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent}));return jsxRuntime.jsx("div",{role:"region",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsxRuntime.jsx(Builder,{data:e,setData:t,current:i,setCurrent:n,onDeleteNode:r})})}function isFn(e){return"function"==typeof e}function safeStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("function"==typeof r){const e=r.name;return`[Function${e?`: ${e}`:""}]`}if("bigint"==typeof r)return r.toString();if(r instanceof Error)return{name:r.name,message:r.message,stack:r.stack};if(r instanceof Map)return{__type:"Map",entries:Array.from(r.entries())};if(r instanceof Set)return{__type:"Set",values:Array.from(r.values())};if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}function safeParseJson(e){if("string"!=typeof e||!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function safeGetPersistedRenderStore(){try{return"undefined"==typeof localStorage?null:localStorage.getItem("render-store")}catch(e){return{error:String(e)}}}function logRenderStore(e={}){const{label:t,includeLocalStorage:r=!0,extra:i}=e,n=useRenderStore.getState(),o=n,a=Object.keys(o).sort(),s={},l=[];for(const e of a){const t=o[e];isFn(t)?l.push(e):s[e]=t}const c="[RB Debug] Render store"+(t?` (${t})`:""),d=console.groupCollapsed,p=console.groupEnd;isFn(d)?d(c):console.log(c);const u=r?safeGetPersistedRenderStore():null,h=r?safeParseJson(u):null,g=safeStringify({snapshot:s,actions:l,extra:i??null,persisted:r?{raw:u,parsed:h}:null});console.log("json",g),console.log("state",s),console.log("actions",l),console.log("rawState (includes functions)",n),r&&(console.log("localStorage.render-store (raw)",u),console.log("localStorage.render-store (parsed)",h)),i&&console.log("extra",i),isFn(p)&&p()}function DebugJsonPage({data:e,setData:t,project:r,onClose:i,title:n="Debug JSON",description:o,previewMode:a,setPreviewMode:s,appConfig:l,setAppConfig:c,logLabel:d}){const p=useRenderStore(e=>e.setCurrent),u=useRenderStore(e=>e.listMaxNested),h=useRenderStore(e=>e.setListMaxNested),[g,m]=React.useState(String(u)),f="function"==typeof s,y="function"==typeof c&&"string"==typeof l?.theme,C="function"==typeof c&&null!=l&&"isRtl"in l,b=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"data"in e?e.data:e;function x(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function v(e){if(isNodeNullOrUndefined(e)||isNodeString(e))return e;if(isNodeArray(e)){return e.map(e=>v(e))}if(!x(e))return e;const t=e,r=v(t.children);if(!x(t.attributes))return{...t,children:r};const i={...t.attributes};return"style"in i&&x(i.style)&&(i.styles=i.style,delete i.style),{...t,children:r,attributes:i}}const S=React.useMemo(()=>function e(t){if(isNodeNullOrUndefined(t)||isNodeString(t))return!1;if(isNodeArray(t)){return t.some(e)}if(!x(t))return!1;const r=t;return!(!x(r.attributes)||!("style"in r.attributes))||e(r.children)}(e),[e]);React.useEffect(()=>{m(String(u))},[u]),React.useEffect(()=>{const e=window.setTimeout(()=>{const e=Number.parseInt(g,10);!Number.isFinite(e)||e<=0||h(e)},300);return()=>window.clearTimeout(e)},[g,h]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"modal__header localication-modal__header",children:[jsxRuntime.jsxs("div",{className:"localication-modal__header-main",children:[jsxRuntime.jsx("h3",{id:"debug-json-editor-title",className:"modal__title",children:n}),o?jsxRuntime.jsx("p",{className:"localication-modal__description",children:o}):null]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",title:"Log render store to console",onClick:()=>logRenderStore({label:d,extra:{project:r??null,projectData:e??null}}),children:"Log store"}),S?jsxRuntime.jsx("button",{type:"button",className:"editor-button",title:"Migrate attributes.style to attributes.styles (schemaVersion=2)",onClick:()=>{if(!e)return;const r=v(e);t(r),p(r)},children:"Fix style → styles"}):null,i?jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>i(),children:"Close"}):null]}),jsxRuntime.jsxs("div",{className:"localication-modal__body",children:[f||y||C?jsxRuntime.jsxs("div",{className:"localication-modal__controls",children:[f?jsxRuntime.jsx(Checkbox,{label:"Preview mode",checked:Boolean(a),onChange:s}):null,y?jsxRuntime.jsx(Checkbox,{label:"Dark Mode",checked:"dark"===(l?.theme??"light"),onChange:e=>c({...l,theme:e?"dark":"light"})}):null,C?jsxRuntime.jsx(Checkbox,{label:"Is RTL",checked:Boolean(l?.isRtl),onChange:e=>c({...l,isRtl:e})}):null]}):null,jsxRuntime.jsxs("div",{className:"localication-modal__controls",children:[jsxRuntime.jsx("label",{children:"List max nested depth"}),jsxRuntime.jsx("input",{type:"number",min:1,className:"input",value:g,onChange:e=>m(e.target.value)})]}),jsxRuntime.jsx("div",{className:"localication-modal__editor",children:jsxRuntime.jsx(JsonTextEditor,{rootName:"node",value:e??{},onChange:e=>{const r=analyseAndProccess(b(e));t(r),p(r)},className:"localication-modal__json-editor"})})]})]})}function BottomBar({className:e,data:t,setData:r,project:i}){const{appConfig:n,setAppConfig:o,previewMode:a,setPreviewMode:s}=useRenderStore(e=>({appConfig:e.appConfig,setAppConfig:e.setAppConfig,previewMode:e.previewMode,setPreviewMode:e.setPreviewMode})),[l,c]=React.useState(!1),[d,p]=React.useState(!1),[u,h]=React.useState(!1),g=React.useMemo(()=>["en","tr","ar"],[]),m=n.defaultLanguage??"en",f="dark"===n.theme,y=n.isRtl??!1,C=a,b=f?"moon-bold":"sun";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:["rb-bottom-bar",e].filter(Boolean).join(" "),children:[jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button"+(f?" is-active":""),"aria-label":"Theme","aria-pressed":f,onClick:()=>o({...n,theme:"dark"===n.theme?"light":"dark"}),children:jsxRuntime.jsx(Icon,{iconType:b,size:20,color:"currentColor",alt:""})}),jsxRuntime.jsxs("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--rtl"+(y?" is-active":""),"aria-label":"RTL","aria-pressed":y,onClick:()=>o({...n,isRtl:!n.isRtl}),children:[jsxRuntime.jsx(Icon,{iconType:"translate",size:18,color:"currentColor",alt:""}),jsxRuntime.jsx("span",{className:"rb-bottom-bar__rtl-text",children:"RTL"})]}),jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--preview"+(C?" is-active":""),"aria-label":"Magic cursor tool","aria-pressed":C,onClick:()=>s(!a),children:jsxRuntime.jsx(Icon,{iconType:"magicpen",size:20,color:"currentColor",alt:""})}),jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button"+(l?" is-active":""),"aria-label":"Debug","aria-pressed":l,onClick:()=>c(!0),children:jsxRuntime.jsx(Icon,{iconType:"speedometer-03",size:20,color:"currentColor",alt:""})}),jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button"+(d?" is-active":""),"aria-label":"Localization","aria-pressed":d,onClick:()=>p(!0),children:jsxRuntime.jsx(Icon,{iconType:"globe-01",size:20,color:"currentColor",alt:""})}),jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button"+(u?" is-active":""),"aria-label":"Color","aria-pressed":u,onClick:()=>h(!0),children:jsxRuntime.jsx(Icon,{iconType:"colors",size:20,color:"currentColor",alt:""})}),jsxRuntime.jsx("div",{className:"rb-bottom-bar__spacer"}),jsxRuntime.jsx("div",{className:"rb-bottom-bar__langs","aria-label":"Language",children:g.map(e=>jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__lang"+(m===e?" is-active":""),onClick:()=>o({...n,defaultLanguage:e}),children:e},e))})]}),d&&jsxRuntime.jsx(LocalicationModal,{data:n.localication??{},onChange:e=>{o({...n,localication:e})},onClose:()=>p(!1)}),u&&jsxRuntime.jsx(ScreenColorsModal,{appConfig:n,onChange:o,onClose:()=>h(!1)}),l&&jsxRuntime.jsx(Modal,{onClose:()=>c(!1),ariaLabelledBy:"debug-json-editor-title",className:"modal--large modal--scrollable",contentClassName:"localication-modal__content",children:jsxRuntime.jsx(DebugJsonPage,{project:i,data:t,setData:r,onClose:()=>c(!1),description:"Inspect and edit raw node JSON.",previewMode:a,setPreviewMode:s,appConfig:n,setAppConfig:o,logLabel:"BottomBar Debug JSON"})})]})}var v="5.6.10",fr=30,ip=30,op=210,w=800,h=600,nm="合成 1",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"形状图层 18",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{t:30,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"形状图层 17",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[0]},{t:40,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:10,bm:0},{ddd:0,ind:3,ty:4,nm:"形状图层 16",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:20,s:[0]},{t:50,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:20,bm:0},{ddd:0,ind:4,ty:4,nm:"形状图层 15",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:30,s:[0]},{t:60,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:30,bm:0},{ddd:0,ind:5,ty:4,nm:"形状图层 14",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[0]},{t:70,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:40,bm:0},{ddd:0,ind:6,ty:4,nm:"形状图层 13",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:50,s:[0]},{t:80,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:50,bm:0},{ddd:0,ind:7,ty:4,nm:"形状图层 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:220,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0]},{t:90,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:60,bm:0},{ddd:0,ind:8,ty:4,nm:"形状图层 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:200,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:70,s:[0]},{t:100,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:70,bm:0},{ddd:0,ind:9,ty:4,nm:"形状图层 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:80,s:[0]},{t:110,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:80,bm:0},{ddd:0,ind:10,ty:4,nm:"形状图层 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:160,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[0]},{t:120,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:90,bm:0},{ddd:0,ind:11,ty:4,nm:"形状图层 8",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:140,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:100,s:[0]},{t:130,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:100,bm:0},{ddd:0,ind:12,ty:4,nm:"形状图层 7",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:120,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:110,s:[0]},{t:140,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:110,bm:0},{ddd:0,ind:13,ty:4,nm:"形状图层 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:100,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[0]},{t:150,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:420,st:120,bm:0},{ddd:0,ind:14,ty:4,nm:"形状图层 5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:80,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:130,s:[0]},{t:160,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:430,st:130,bm:0},{ddd:0,ind:15,ty:4,nm:"形状图层 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:60,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:140,s:[0]},{t:170,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:440,st:140,bm:0},{ddd:0,ind:16,ty:4,nm:"形状图层 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:40,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:150,s:[0]},{t:180,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:450,st:150,bm:0},{ddd:0,ind:17,ty:4,nm:"形状图层 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:20,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:160,s:[0]},{t:190,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:460,st:160,bm:0},{ddd:0,ind:18,ty:4,nm:"形状图层 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:170,s:[0]},{t:200,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:470,st:170,bm:0},{ddd:0,ind:19,ty:4,nm:"形状图层 24",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0]},{t:210,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:180,bm:0},{ddd:0,ind:20,ty:4,nm:"形状图层 23",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:190,s:[0]},{t:220,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:190,bm:0},{ddd:0,ind:21,ty:4,nm:"形状图层 22",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:200,s:[0]},{t:230,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:200,bm:0},{ddd:0,ind:22,ty:4,nm:"形状图层 21",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[0]},{t:240,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:210,bm:0},{ddd:0,ind:23,ty:4,nm:"形状图层 20",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:220,s:[0]},{t:250,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:220,bm:0},{ddd:0,ind:24,ty:4,nm:"形状图层 19",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:230,s:[0]},{t:260,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:230,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"预合成 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"简单阻塞工具",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"视图",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"阻塞遮罩",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度渐变",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"渐变起点",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"起始颜色",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"渐变终点",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"结束颜色",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"渐变形状",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"渐变散射",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"与原始图像混合",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]}],w:800,h:600,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"预合成 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:56,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,320,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"简单阻塞工具",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"视图",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"阻塞遮罩",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度渐变",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"渐变起点",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"起始颜色",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"渐变终点",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"结束颜色",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"渐变形状",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"渐变散射",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"与原始图像混合",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]},{ty:29,nm:"高斯模糊",np:5,mn:"ADBE Gaussian Blur 2",ix:3,en:1,ef:[{ty:0,nm:"模糊度",mn:"ADBE Gaussian Blur 2-0001",ix:1,v:{a:0,k:41.3,ix:1}},{ty:7,nm:"模糊方向",mn:"ADBE Gaussian Blur 2-0002",ix:2,v:{a:0,k:1,ix:2}},{ty:7,nm:"重复边缘像素",mn:"ADBE Gaussian Blur 2-0003",ix:3,v:{a:0,k:0,ix:3}}]}],w:800,h:600,ip:0,op:300,st:0,bm:0}],markers=[],loadingAnimation={v:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};function LoadingComponent(){return jsxRuntime.jsx("div",{className:"rb-loading",children:jsxRuntime.jsx(Lottie,{animationData:loadingAnimation,loop:!0,autoplay:!0})})}function useSyncHtmlThemeClass(){const e=useRenderStore(e=>e.appConfig.theme);React.useEffect(()=>{if("undefined"==typeof document)return;const t=document.documentElement;t.classList.toggle("dark","dark"===e),t.classList.toggle("light","light"===e)},[e])}function safeJsonStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}async function copyTextToClipboard(e){try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{if("undefined"==typeof document)return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}function parseValidationPrefix(e){const t=e.indexOf(": ");if(t<=0)return{reason:e};const r=e.slice(0,t),i=e.slice(t+2);return r.startsWith("root")?{path:r,reason:i}:{reason:e}}function isObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function extractNodeFromRawData(e){if(isObject(e)){if("string"==typeof e.type&&e.type.trim())return e;const t=e.data;if(isObject(t)&&"string"==typeof t.type&&t.type.trim())return t}return e}function getNodeType(e){if(!isObject(e))return null;const t=e.type;return"string"==typeof t&&t?t:null}function getFirstComponentFromReactStack(e){if(!e)return null;const t=e.match(/\bat\s+([A-Za-z0-9_$]+)/);return t?.[1]??null}function resolveNodeTypeAtPath(e,t){if(!t||!t.startsWith("root"))return{};let r=e,i=getNodeType(r),n=i?"root":null;const o="root"===t?"":t.replace(/^root\.?/,""),a=/([A-Za-z0-9_$]+)|\[(\d+)\]/g;let s,l="root";for(;s=a.exec(o);){const e=s[1],t=s[2];e?(l=`${l}.${e}`,r=isObject(r)?r[e]:void 0):null!=t&&(l=`${l}[${t}]`,r=Array.isArray(r)?r[Number(t)]:void 0);const o=getNodeType(r);o&&(i=o,n=l)}return i?{nodeType:i,nodePath:n??void 0}:{}}function ProjectDebug({name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,belowName:s,jsonEditor:l}){useSyncHtmlThemeClass();const[c,d]=React.useState(null),[p,u]=React.useState("idle"),[h,g]=React.useState("idle"),m=React.useMemo(()=>safeJsonStringify(t),[t]),f=l?l.value:m,y=React.useMemo(()=>extractNodeFromRawData(t),[t]),C=y,b=React.useMemo(()=>getNodeType(y),[y]),x=React.useMemo(()=>parseValidationPrefix(r),[r]),v=React.useMemo(()=>resolveNodeTypeAtPath(y,x.path),[y,x.path]),S=React.useMemo(()=>{const e=[];return e.push(x.reason),b&&e.push(`Root component: ${b}`),x.path&&e.push(`Path: ${x.path}`),v.nodeType&&e.push(`Component at path: ${v.nodeType}${v.nodePath?` (${v.nodePath})`:""}`),e.join("\n")},[x.reason,x.path,b,v.nodeType,v.nodePath]),w=React.useMemo(()=>{if(!c)return null;const e=[];return e.push(c.message),b&&e.push(`Root component: ${b}`),c.componentStack&&e.push(`Component (from React stack): ${getFirstComponentFromReactStack(c.componentStack)??"unknown"}`),e.join("\n")},[c,b]),k=React.useMemo(()=>{const e=[];return e.push("=== Validation ==="),e.push(S),i&&(e.push(""),e.push(i)),c&&(e.push(""),e.push("=== Render ==="),w&&e.push(w),c.stack&&(e.push(""),e.push(c.stack)),c.componentStack&&(e.push(""),e.push(c.componentStack))),e.join("\n")},[c,w,i,S]);return jsxRuntime.jsxs("div",{className:"rb-project-debug",children:[jsxRuntime.jsxs("section",{className:"rb-project-debug__json","aria-label":"Debug JSON",children:[jsxRuntime.jsx("div",{className:"rb-project-debug__meta",children:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"rb-project-debug__meta-label",children:"Name:"})," ",e]})}),jsxRuntime.jsxs("div",{className:"rb-project-debug__toolbar",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(f)&&(u("copied"),window.setTimeout(()=>u("idle"),900))},children:"copied"===p?"Copied JSON":"Copy JSON"}),l?.onSave&&jsxRuntime.jsx("button",{type:"button",className:"editor-button",disabled:l.saveDisabled,onClick:()=>l.onSave?.(),children:l.saveLabel??"Save"})]}),s&&jsxRuntime.jsx("div",{className:"rb-project-debug__below-name",children:s}),l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("textarea",{className:"rb-project-debug__code-editor",value:l.value,onChange:e=>l.onChange(e.target.value),spellCheck:!1,"aria-label":"Edit JSON"}),l.error?jsxRuntime.jsx("div",{className:"rb-project-debug__json-error",role:"alert",children:l.error}):null]}):jsxRuntime.jsx("pre",{className:"rb-project-debug__code",tabIndex:0,children:m})]}),jsxRuntime.jsx("section",{className:"rb-project-debug__preview","aria-label":"Preview",style:{"--rb-canvas-bg":a??"none"},children:jsxRuntime.jsx(RenderErrorBoundary,{subtitle:"caught by ProjectDebug preview",onError:(e,t)=>d({message:e?.message??String(e),stack:e?.stack,componentStack:t}),children:jsxRuntime.jsx(RenderPage,{data:C,name:e,params:{products:n,benefits:o}})})}),jsxRuntime.jsxs("section",{className:"rb-project-debug__error","aria-label":"Errors",children:[jsxRuntime.jsxs("div",{className:"rb-project-debug__error-head",children:[jsxRuntime.jsx("h2",{className:"rb-project-debug__title",children:"Errors"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(k)&&(g("copied"),window.setTimeout(()=>g("idle"),900))},children:"copied"===h?"Copied":"Copy"})]}),jsxRuntime.jsxs("div",{className:"rb-project-debug__error-block",children:[jsxRuntime.jsx("div",{className:"rb-project-debug__error-label",children:"Validation"}),jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:S}),i&&jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:i})]}),c&&jsxRuntime.jsxs("div",{className:"rb-project-debug__error-block",children:[jsxRuntime.jsx("div",{className:"rb-project-debug__error-label",children:"Render"}),jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:w}),c.stack&&jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:c.stack}),c.componentStack&&jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:c.componentStack})]})]})]})}function ProjectValidationPage({name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,belowName:s,onContinueWithoutValidation:l,onSaveEditedRawData:c}){const[d,p]=React.useState(()=>safeJsonStringify(t)),[u,h]=React.useState(null);return React.useEffect(()=>{p(safeJsonStringify(t)),h(null)},[t]),jsxRuntime.jsx(ProjectDebug,{name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,jsonEditor:{value:d,onChange:e=>{p(e),h(null)},error:u,onSave:()=>{try{const e=JSON.parse(d);h(null),c?.(e)}catch(e){h(e instanceof Error?e.message:String(e))}},saveDisabled:!c,saveLabel:"Save JSON"},belowName:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"rb-project-validation__actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>l?.(),children:"Continue without validation"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>(()=>{try{const e=JSON.parse(d),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=wrapNodeInMain(t(e)&&"data"in e?e.data:e),i=t(e)&&"data"in e?{...e,data:r}:r;p(JSON.stringify(i,null,2)),h(null)}catch(e){h(e instanceof Error?e.message:String(e))}})(),children:"Wrap in Main"})]}),s]})})}function ProjectMigrationPage({name:e,rawData:t,projectVersion:r,requiredVersion:i,showFixVersionMeta:n,pendingMigrations:o,products:a,benefits:s,canvasBg:l,belowName:c,migrating:d,onContinueWithoutValidation:p,onMigrateNow:u,onFixVersionMeta:h}){const g=`Migration required: project version ${r} is lower than ${i}.`,m=[`Required: ${i}`,`Current: ${r}`,"","Pending migrations:",...o.length?o.map(e=>`- ${e.id} (${e.fromVersion} -> ${e.toVersion}): ${e.title}`):["- (none)"]].join("\n");return jsxRuntime.jsx(ProjectDebug,{name:e,rawData:t,validationError:g,validationErrorStack:m,products:a,benefits:s,canvasBg:l,belowName:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"rb-project-validation__actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>{u?.()},children:d?"Migrating…":"Migrate now"}),n&&jsxRuntime.jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>h?.(),children:"Fix version meta"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>p?.(),children:"Continue without migration"})]}),c]})})}var supportedProjectVersion="1.1.2",reactBuilderVersion="1.2.25",metaJson={supportedProjectVersion:supportedProjectVersion,reactBuilderVersion:reactBuilderVersion};function parseSemver(e){const t="string"==typeof e?e.trim():"",[r,i,n]=t.split(".").slice(0,3),o=e=>{const t=Number(String(e??"").replace(/[^\d].*$/,""));return Number.isFinite(t)?t:0};return{major:o(r),minor:o(i),patch:o(n)}}function compareSemver(e,t){const r=parseSemver(e),i=parseSemver(t);return r.major!==i.major?r.major<i.major?-1:1:r.minor!==i.minor?r.minor<i.minor?-1:1:r.patch!==i.patch?r.patch<i.patch?-1:1:0}function isSemverLess(e,t){return compareSemver(e,t)<0}function isPlainObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function buildStyleKeySet(){return getStyleAttributeKeySet()}function normalizeStyleAttributes(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject(e))return e;if(isNodeArray(e))return e.map(e=>normalizeStyleAttributes(e,t));const r=e,i=normalizeStyleAttributes(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const n={...r.attributes??{}},o={...isPlainObject(n.style)?n.style:{}};for(const[e,r]of Object.entries(n))"style"!==e&&t.has(e)&&(e in o||(o[e]=r),delete n[e]);return Object.keys(o).length>0&&(n.style=o),{...r,children:i,attributes:n}}function getStyleSubSchemaKeys(e){if(!e)return new Set;const t=e.style;return isPlainObject(t)?new Set(Object.keys(t)):new Set}function getTopLevelAttributeKeys(e){if(!e)return new Set;const t=Object.keys(e).filter(e=>"style"!==e);return new Set(t)}function buildKeyInfo(e){const t=getTopLevelAttributeKeys(e);return{moveableKeys:new Set([...Array.from(t),...Array.from(NON_STYLE_ATTRIBUTE_KEYS)]),styleKeys:getStyleSubSchemaKeys(e)}}function extractAttributesFromStyle(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject(e))return e;if(isNodeArray(e))return e.map(e=>extractAttributesFromStyle(e,t));const r=e,i=extractAttributesFromStyle(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const n={...r.attributes??{}},o=n.style;if(!isPlainObject(o))return{...r,children:i,attributes:n};const a="string"==typeof r.type?r.type:"",s=normalizeComponentType(a)??a;if(!s)return{...r,children:i,attributes:n};if(!t.has(s)){const e=getAttributeSchema(s);t.set(s,buildKeyInfo(e))}const l=t.get(s),c=l?.styleKeys??new Set,d=l?.moveableKeys??NON_STYLE_ATTRIBUTE_KEYS,p={...o};let u=!1;for(const e of d)e in p&&(c.has(e)||(e in n||(n[e]=p[e]),delete p[e],u=!0));return u?(0===Object.keys(p).length?delete n.style:n.style=p,{...r,children:i,attributes:n}):{...r,children:i,attributes:n}}const migration_1_1_2_extract_component_attributes_from_style={id:"1.1.2-extract-attrs-from-style",title:"Normalize style keys then extract non-style + component props out of attributes.style",fromVersion:"0.0.0",toVersion:"1.1.2",run:e=>{const t=buildStyleKeySet(),r=extractAttributesFromStyle(normalizeStyleAttributes(e.data,t),new Map);return{...e,version:"1.1.2",data:r}}},CURRENT_PROJECT_VERSION=metaJson.supportedProjectVersion,MIGRATIONS=[migration_1_1_2_extract_component_attributes_from_style];function getMigrationPipe(e){const t="string"==typeof e?.version&&e.version.trim()?e.version:"0.0.0",r=isSemverLess(t,CURRENT_PROJECT_VERSION),i=r?MIGRATIONS.filter(e=>isSemverLess(t,e.toVersion)):[];return{projectVersion:t,requiredVersion:CURRENT_PROJECT_VERSION,required:r,pending:i}}function runProjectMigrations(e){const t=getMigrationPipe(e);let r=e;const i=[];for(const e of t.pending)isSemverLess(r.version,e.toVersion)&&(r=e.run(r),i.push(e));return isSemverLess(r.version,CURRENT_PROJECT_VERSION)&&(r={...r,version:CURRENT_PROJECT_VERSION}),{project:r,applied:i}}function sleep(e){return new Promise(t=>setTimeout(t,e))}async function loadWithDeadline(e,t){return!Number.isFinite(t)||t<=0?await e:await Promise.race([e,sleep(t).then(()=>{throw new Error("timeout")})])}function useProjectFonts({fonts:e,appFont:t}){React.useEffect(()=>{fontsDebug.info("useProjectFonts: effect start",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"});const{setFonts:r,setAppFont:i,setErrors:n,addError:o,loadedFonts:a,markFontLoaded:s}=useRenderStore.getState();fontsDebug.info("useProjectFonts: storing fonts/appFont in store",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"}),r(e),i(t),n([]);let l=!1;return(async()=>{const r="string"==typeof t?t.trim():"";if(!r)return void n(["appFont is undefined"]);if(l)return;Array.isArray(e)&&e.some(e=>e?.name===r&&e?.family&&"object"==typeof e.family&&Object.keys(e.family).length>0)?Array.isArray(a)&&a.includes(r)||(await loadWithDeadline(loadFontFamily(e,r,{forceFetch:!0}),1e4),l||s(r)):n([`appFont "${r}" not found in fonts`])})().catch(e=>{l||o(`Failed to initialize fonts: ${e instanceof Error?e.message:String(e)}`)}),()=>{l=!0}},[e,t])}function getDefaultProject(e={}){const t=metaJson.supportedProjectVersion.trim()?metaJson.supportedProjectVersion.trim():"0.0.0",r="string"==typeof e.version&&e.version.trim()?e.version.trim():t;return{name:"string"==typeof e.name&&e.name.trim()?e.name.trim():"project",version:r,data:e.data??null,appConfig:e.appConfig,projectColors:e.projectColors,type:e.type}}function resolveProjectForSave(e){return getDefaultProject({...e.overrideProject??e.project,data:e.data})}function toProjectMeta(e){return{name:e.name,version:e.version,...e.type?{type:e.type}:{},data:e.data}}const MOBILE_BREAKPOINT=1e3;function ProjectPage({project:e,appConfig:t,onSaveProject:r,logLevel:i,projectColors:n,onSaveProjectColors:o,name:a,typography:s,appFont:l}){useLogRender("ProjectPage"),useSyncHtmlThemeClass();const c=l??s.fonts.find(e=>e?.isMain)?.name??s.fonts[0]?.name;useProjectFonts({fonts:s.fonts,appFont:c});const{current:d,setCurrent:p,setProjectColors:u,setProjectName:h,setAppConfig:g,storeAppConfig:m,products:f,benefits:C,previewMode:b}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent,setProjectColors:e.setProjectColors,setProjectName:e.setProjectName,setAppConfig:e.setAppConfig,storeAppConfig:e.appConfig,products:e.products,benefits:e.benefits,previewMode:e.previewMode})),x=t??m??defaultAppConfig,[v,S]=React.useState(null),w=v??e,k=a??w.name,_=n??w.projectColors,T=isNodeNullOrUndefined(w.data)||isEmptyObject(w.data),[R,M]=React.useState(()=>null),[E,O]=React.useState(null),[P,j]=React.useState(null),[L,A]=React.useState(!1),[B,z]=React.useState(null),[I,V]=React.useState(!1),[D,N]=React.useState(()=>T),[F,H]=React.useState(null),[W,$]=React.useState(()=>"undefined"!=typeof window&&window.innerWidth<=MOBILE_BREAKPOINT),G=React.useCallback(e=>{if(e===R){if(!window.confirm("You are about to delete the root component. This will clear the entire screen. Continue?"))return;return M(null),void p(null)}const t=deleteNodeFromTree(R,e);if(M(t),d!==e)if(isNodeRecord(d)&&d.key){const e=findNodeByKey(t,d.key);p(e??t)}else p(t);else p(t)},[R,d]);React.useEffect(()=>(logger.info("ProjectPage","mount",{projectName:e.name}),S(null),t&&(g(t),logger.verbose("ProjectPage","appConfig applied",t)),()=>{logger.info("ProjectPage","unmount")}),[t,e.name,g]),React.useEffect(()=>{h(k)},[k,h]),React.useEffect(()=>(u(_),()=>u(void 0)),[_,u]),React.useEffect(()=>{i&&logger.setLevel(i)},[i]),React.useEffect(()=>{function e(){$(window.innerWidth<=MOBILE_BREAKPOINT)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),React.useEffect(()=>{H(null)},[W]);const U=e=>{H(t=>t===e?null:e)},Z=()=>{H(null)},Y=!W||"builder"===F,K=!W||"attributes"===F;React.useEffect(()=>{if(T)return void N(!0);N(!1);const e=setTimeout(()=>N(!0),1e3);return()=>clearTimeout(e)},[w.data]);const q=React.useRef(w);q.current=w;const J=React.useRef(R);J.current=R,React.useEffect(()=>{try{const e=q.current,t=e.data;if(null!=t&&t===J.current)return;T||(M(null),p(null)),O(null),j(null);const r=getMigrationPipe(e);if(!L&&r.required)return z(r),M(null),void p(null);if(z(null),L)return M(e.data),void p(e.data);if(T)return M(null),void p(null);const i=analyseAndProccess(e.data);if(!i)return;M(i),p(i)}catch(e){logger.error("ProjectPage","Failed to process node",e),O(e instanceof Error?e.message:"Node is not valid"),j(e instanceof Error?e.stack??null:null),M(null),p(null)}},[w.data,T,L,p]);const X=!(T||null!==R&&D);return jsxRuntime.jsxs("div",{className:"container-full",children:[jsxRuntime.jsx(Lt,{position:"bottom-right",autoClose:2500,hideProgressBar:!1,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}),jsxRuntime.jsx(EditorHeader,{onSaveProject:()=>{try{logger.info("ProjectPage","save project",{name:e.name}),o&&_&&o(_);const t=toProjectMeta(resolveProjectForSave({project:e,overrideProject:v,data:R}));logger.info("ProjectPage","saving project meta",t),r(t),y.success("Saved")}catch(e){logger.error("ProjectPage","save project failed",e),y.error("Save failed")}},onRestoreProject:()=>{logger.info("ProjectPage","restore project",{name:e.name}),S(null),O(null),j(null),A(!1),M(e.data),p(e.data)},current:d,editorData:R,setEditorData:M}),B?jsxRuntime.jsx(ProjectMigrationPage,{name:k,rawData:w,projectVersion:B.projectVersion,requiredVersion:B.requiredVersion,showFixVersionMeta:"0.0.0"===B.projectVersion,pendingMigrations:B.pending.map(e=>({id:e.id,title:e.title,fromVersion:e.fromVersion,toVersion:e.toVersion})),products:f,benefits:C,canvasBg:`url(${getImage(exports.TribeAssetName.Background)})`,migrating:I,onContinueWithoutValidation:()=>{A(!0),z(null),M(w.data),p(w.data),N(!0)},onMigrateNow:()=>{try{V(!0);const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0,i=!t(w)||e(w)&&"string"==typeof w.version?w:getDefaultProject({name:`imported-${Math.random().toString(36).slice(2,8)}`,version:CURRENT_PROJECT_VERSION,data:w}),{project:n}=runProjectMigrations(i);r(toProjectMeta(n)),S(n),A(!0),z(null),M(n.data),p(n.data),N(!0)}finally{V(!1)}},onFixVersionMeta:()=>{const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=e(w)?w:null,i="string"==typeof t?.name&&String(t.name).trim()?String(t.name).trim():`imported-${Math.random().toString(36).slice(2,8)}`,n=t&&"data"in t?t.data:(t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0)(w)?w:null,o=getDefaultProject({name:i,version:CURRENT_PROJECT_VERSION,data:n,appConfig:t?.appConfig,projectColors:t?.projectColors,type:(e=>"paywall"===e||"onboard"===e||"other"===e)(t?.type)?t.type:void 0});r(toProjectMeta(o)),S(o),A(!1),z(null),O(null),j(null),y.success("Fixed version meta")}}):E?jsxRuntime.jsx(ProjectValidationPage,{name:k,rawData:w,validationError:E,validationErrorStack:P??void 0,products:f,benefits:C,canvasBg:`url(${getImage(exports.TribeAssetName.Background)})`,onContinueWithoutValidation:()=>{A(!0),O(null),j(null),M(w.data),p(w.data),N(!0)},onSaveEditedRawData:e=>{try{const t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),i=e;let n,o,a=i;if(t(i)&&"data"in i){a=i.data;const e=i.name,t=i.version;"string"==typeof e&&(n=e),"string"==typeof t&&(o=t)}const s=analyseAndProccess(a);if(!s)throw new Error("Node is not valid");const l={...w,...n?{name:n}:null,...o?{version:o}:null,data:a};r(toProjectMeta(l)),S(l),A(!1),O(null),j(null),M(s),p(s),N(!0),y.success("Saved")}catch(e){logger.error("ProjectPage","save JSON from validation failed",e),O(e instanceof Error?e.message:"Node is not valid"),j(e instanceof Error?e.stack??null:null),y.error("Save failed")}}}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[W&&jsxRuntime.jsxs("div",{className:"mobile-panel-toggle",role:"group","aria-label":"Editor panels",children:[jsxRuntime.jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("builder"===F?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle builder panel","aria-expanded":"builder"===F,"aria-controls":"split-left-panel",onClick:()=>U("builder"),children:[jsxRuntime.jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsxRuntime.jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsxRuntime.jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsxRuntime.jsx("span",{className:"mobile-panel-toggle__label",children:"Builder"})]}),jsxRuntime.jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("attributes"===F?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle attributes panel","aria-expanded":"attributes"===F,"aria-controls":"split-attributes-panel",onClick:()=>U("attributes"),children:[jsxRuntime.jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsxRuntime.jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsxRuntime.jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsxRuntime.jsx("span",{className:"mobile-panel-toggle__label",children:"Attributes"})]})]}),jsxRuntime.jsxs("div",{className:"editor-container",children:[jsxRuntime.jsxs("div",{id:"split-left-panel",className:"split-left"+(Y?" is-open":""),"aria-hidden":W&&!Y,children:[W&&jsxRuntime.jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close builder panel",onClick:Z,children:"Close"}),jsxRuntime.jsx("div",{children:jsxRuntime.jsx(BuilderPanel,{data:R,setData:M,onDeleteNode:G})})]}),jsxRuntime.jsxs("div",{style:{"--rb-canvas-bg":`url(${getImage(exports.TribeAssetName.Background)})`},className:"split-right",children:[X&&jsxRuntime.jsx("div",{className:"rb-loading-overlay","aria-busy":"true",children:jsxRuntime.jsx(LoadingComponent,{})}),!X&&jsxRuntime.jsx(RenderPage,{data:R,name:k,params:{products:f,benefits:C&&"object"==typeof C?C:{},appConfig:x,projectColors:_,fonts:s.fonts,appFont:c,previewMode:b,selectedKey:d&&"object"==typeof d&&"key"in d?d.key:void 0}})]}),jsxRuntime.jsx(BottomBar,{project:e,data:R,setData:M}),jsxRuntime.jsxs("div",{id:"split-attributes-panel",className:"split-third"+(K?" is-open":""),"aria-hidden":W&&!K,children:[W&&jsxRuntime.jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close attributes panel",onClick:Z,children:"Close"}),jsxRuntime.jsx(AttributesEditorPanel,{attributes:R,projectColors:_,onChange:e=>{let t;M(e),e&&"object"==typeof e&&!Array.isArray(e)&&"key"in e&&(t=e.key),logger.verbose("ProjectPage","attributes change",t?{nodeKey:t}:void 0)}})]}),W&&F&&jsxRuntime.jsx("button",{type:"button",className:"editor-container__overlay","aria-label":"Close active panel",onClick:Z})]})]})]})}function useCalculateLocalizedPrice(){return""}function useDiscountRate(){return 0}function useExtractTextStyle(e){const{appConfig:t,projectColors:r,fonts:i}=useBuilderParams(),n=t??defaultAppConfig,o=r,a=i;return React.useMemo(()=>{const t=extractTextStyleNative(e,{appConfig:n,projectColors:o,fonts:a}),r=e.attributes,i=stripStyleKeys(toAttributeRecord(r)),s=getStyleBag(r);return{style:t,other:{...i,adjustsFontSizeToFit:i.adjustsFontSizeToFit??s?.adjustsFontSizeToFit,showEllipsis:i.showEllipsis??s?.showEllipsis}}},[e,n,o,a])}function useExtractViewStyle(e){const{appConfig:t,projectColors:r}=useBuilderParams(),i=t?.theme??defaultAppConfig.theme,n=r;return React.useMemo(()=>{const t=extractViewStyleNative(e,{theme:i,projectColors:n}),r=e.attributes,o=stripStyleKeys(toAttributeRecord(r)),a=getStyleBag(r);return{style:t,other:{...o,scrollable:o.scrollable??a?.scrollable}}},[e,i,n])}function useExtractImageStyle(e){const{appConfig:t,projectColors:r}=useBuilderParams(),i=t?.theme??defaultAppConfig.theme,n=r;return React.useMemo(()=>{const{resizeMode:t,...r}=extractImageStyleNative(e,{theme:i,projectColors:n}),o=e.attributes,a=stripStyleKeys(toAttributeRecord(o)),s=getStyleBag(o);return{style:r,other:{...a,resizeMode:s?.resizeMode??t}}},[e,i,n])}const meta={supportedProjectVersion:metaJson.supportedProjectVersion,reactBuilderVersion:metaJson.reactBuilderVersion};function getMeta(){return{...meta}}function novaToJson(e){const t=e.data.data?.layout;return"onboard-layout"===t?onboardNovaToJson(e):null}function onboardNovaToJson(e){const t=e?.data?.data?.attributes||e?.data?.attributes||{},r=t?.general_components||[],i=t?.data||[],n=mapDotsFromGeneralComponents(r),o=mapFooterFromGeneralComponents(r),{carouselNode:a,providerLevelButtons:s}=buildCarouselFromPages(i),l={type:"OnboardProvider",key:e?.data?.data?.key,children:[a,...n?[n]:[],...s.length?s:[],...o?[o]:[]],attributes:{theme:e?.data?.theme}},c={type:"Main",isMain:!0,key:e?.data?.data?.key,children:[l],attributes:{useSafeAreaView:!0}};return delete l.key,c}function buildCarouselFromPages(e){const t=e.filter(e=>"simple-onboard-layout"===e?.layout),r=new Map;t.forEach((e,t)=>{const i=e?.attributes?.key;"string"==typeof i&&r.set(i,t)});const i=[];return{carouselNode:{type:"Onboard",children:t.map(e=>buildCarouselItem(e,r,i))},providerLevelButtons:i}}function buildCarouselItem(e,t,r){const i=e?.attributes?.components||[],n=[],o=e?.attributes?.key,a="string"==typeof o&&t.has(o)?t.get(o):void 0;for(const e of i)if("title-layout"===e?.layout){const t=e?.attributes?.title_localization_key||"",r=e?.attributes?.title_color||void 0,{fontSize:i,textAlign:o,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);n.push({type:"OnboardTitle",attributes:r||i||o||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...o?{textAlign:o}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("subtitle-layout"===e?.layout){const t=e?.attributes?.subtitle_localization_key||"",r=e?.attributes?.subtitle_color||void 0,{fontSize:i,textAlign:o,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);n.push({type:"OnboardSubtitle",attributes:r||i||o||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...o?{textAlign:o}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("image-layout"===e?.layout){const t=e?.attributes?.image||e?.attributes?.src||"",r=e?.attributes?.height??e?.attributes?.ios_height??e?.attributes?.android_height,i="string"==typeof r?Number.parseInt(r,10):"number"==typeof r?r:void 0,o=Boolean(e?.attributes?.is_bg_image),a=extractViewStyleAttributesFromComponent(e),s=e?.attributes?.lottie,l=e?.attributes?.video_url;t&&n.push({type:"OnboardImage",attributes:{src:t,...i?{height:i}:{},resizeMode:o?"cover":"contain",..."number"==typeof a.borderRadius?{borderRadius:a.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===e?.layout){const i=e?.attributes?.buttons_direction,n=e?.attributes?.buttons||[],o=[];for(const e of n){const r=e?.attributes||{},i=r?.button_text_localization_key||"",n=r?.button_text_color,a=r?.button_background_color,s=r?.animation,l=r?.animation_color,c=r?.flex?Number(r.flex):void 0,d=r?.actions||[],p=[];for(const e of d){const r=e?.attributes?.events||[];for(const e of r)if("Permission"===e?.layout){const t=e?.attributes?.permission;p.push({type:"Permission",permission:t})}else if("Navigate"===e?.layout){const r=e?.attributes?.next_page_key,i="string"==typeof r&&t.has(r),n=i?null:"string"==typeof r?r:null;p.push({type:"Navigate",navigate_to:n,...i?{targetIndex:t.get(r)}:{}})}}o.push({type:"OnboardButton",attributes:{labelKey:i,..."string"==typeof n?{button_text_color:n}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof a?{button_background_color:a}:{},..."number"==typeof c?{flex:c}:{},...p.length?{events:p}:{}},children:void 0})}o.length>0&&r.push({type:"OnboardButtons",attributes:{...i?{buttons_direction:i}:{},..."number"==typeof a?{condition:"carousel-index",conditionVariable:a}:{}},children:o})}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:n}}function extractTextStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;const i=new Set(["left","center","right","justify"]),n=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.type;if("textStyle"!==r)continue;const o=e?.attributes?.style||{},a=o?.fontSize;if("number"==typeof a&&Number.isFinite(a))t.fontSize=a;else if("string"==typeof a){const e=Number.parseInt(a,10);Number.isFinite(e)&&(t.fontSize=e)}const s=o?.textAlign;"string"==typeof s&&i.has(s)&&(t.textAlign=s);const l=o?.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=o?.fontWeight;let d;"number"==typeof c&&Number.isFinite(c)?d=String(c):"string"==typeof c&&(d=c),d&&n.has(d)&&(t.fontWeight=d)}}return t}function extractViewStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.style||{},i=r?.borderRadius;if("number"==typeof i&&Number.isFinite(i))t.borderRadius=i;else if("string"==typeof i){const e=Number.parseInt(i,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 r=t?.attributes?.dot||[],i=r?.[0],n=i?.layout,o=i?.attributes||{},a=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=a(o?.inactive_dot_opacity),l=a(o?.dot_thickness),c="string"==typeof o?.dot_style?o.dot_style:void 0,d="string"==typeof o?.container_style?o.container_style:void 0,p="string"==typeof o?.active_dot_color?o.active_dot_color:void 0,u="string"==typeof o?.inactive_dot_color?o.inactive_dot_color:void 0,h={};return n&&(h.dotType=n),void 0!==s&&(h.inactive_dot_opacity=s),void 0!==l&&(h.dot_thickness=l),c&&(h.dot_style=c),d&&(h.container_style=d),p&&(h.active_dot_color=p),u&&(h.inactive_dot_color=u),{type:"OnboardDot",attributes:Object.keys(h).length?h:void 0,children:void 0}}function mapFooterFromGeneralComponents(e){const t=e.find(e=>"footer-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.texts||[],i=[];let n,o;for(const e of r)if("Text"===e?.layout){const t=e?.attributes?.text_localization_key||"",r=e?.attributes?.text_color||void 0;n||(n=t),o||"string"!=typeof r||(o=r);const a=e?.attributes?.linkedwords||[];for(const e of a)if("LinkedWords"===e?.layout){const t=e?.attributes?.linked_word_localization_key,r=e?.attributes?.linked_word_color,n=e?.attributes?.page;i.push({text_key:t,color:r,page:n})}}const a={gap:8};n&&(a.textLocalizationKey=n),o&&(a.color=o);const s=i[0],l=i[1];return s&&(s.text_key&&(a.linkedWordFirstLocalizationKey=s.text_key),s.color&&(a.linkedWordFirstColor=s.color),s.page&&(a.linkedWordFirstPage=s.page)),l&&(l.text_key&&(a.linkedWordSecondLocalizationKey=l.text_key),l.color&&(a.linkedWordSecondColor=l.color),l.page&&(a.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:a,children:void 0}}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 r=t.startsWith("#"),i=r?t.slice(1):void 0,n=[],o=e=>{var a;if(null!=e)if(Array.isArray(e))for(const t of e)o(t);else"string"!=typeof e&&isNodeData(e)&&(a=e,(r?a.key===i:a.type===t)&&n.push(e),o(e.children))};return o(e),n}exports.BuilderProvider=BuilderProvider,exports.DebugJsonPage=DebugJsonPage,exports.LocalizationParamsProvider=LocalizationParamsProvider,exports.ParamsProvider=ParamsProvider,exports.ProjectPage=ProjectPage,exports.RenderNode=RenderNode$1,exports.TRIBE_ASSETS_BASE_URL=TRIBE_ASSETS_BASE_URL,exports.allcomponentNames=allcomponentNames,exports.analyseAndProccess=analyseAndProccess,exports.analyseNode=analyseNode,exports.defaultAppConfig=defaultAppConfig,exports.getArrayItemType=getArrayItemType,exports.getAttributeMeta=getAttributeMeta,exports.getAttributeSchema=getAttributeSchema,exports.getBasicSamples=getBasicSamples,exports.getDefaultDevice=getDefaultDevice,exports.getDefaultProject=getDefaultProject,exports.getDefaultsForType=getDefaultsForType,exports.getDevices=getDevices,exports.getImage=getImage,exports.getMeta=getMeta,exports.getOnboardSamples=getOnboardSamples,exports.getPatternByType=getPatternByType,exports.getSamples=getSamples,exports.getTypeSchema=getTypeSchema,exports.isEmptyObject=isEmptyObject,exports.isNodeArray=isNodeArray,exports.isNodeNullOrUndefined=isNodeNullOrUndefined,exports.isNodeString=isNodeString,exports.isPrimitiveType=isPrimitiveType,exports.novaToJson=novaToJson,exports.parseColor=parseColor,exports.parseTribeAssetName=parseTribeAssetName,exports.patterns=patterns$1,exports.querySelector=querySelector,exports.resolveImageSrc=resolveImageSrc,exports.useBuilderParams=useBuilderParams,exports.useCalculateLocalizedPrice=useCalculateLocalizedPrice,exports.useChangeDelayByPaywall=useChangeDelayByPaywall,exports.useDiscountRate=useDiscountRate,exports.useExtractImageStyle=useExtractImageStyle,exports.useExtractTextStyle=useExtractTextStyle,exports.useExtractViewStyle=useExtractViewStyle,exports.useLocalizationParams=useLocalizationParams,exports.useLocalize=useLocalize,exports.useNode=useNode,exports.useParams=useParams;
32
+ r.goToAndStop(o-r.firstFrame-1,!0)}"loop"===i.type&&(null===l||l!==i.frames||r.isPaused)&&(r.playSegments(i.frames,!0),l=i.frames),"play"===i.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===i.type&&r.goToAndStop(i.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",c),function(){document.removeEventListener("scroll",c)};case"cursor":return o=function(t,i){var o=t,a=i;if(-1!==o&&-1!==a){var s=getContainerCursorPosition(e,o,a);o=s.x,a=s.y}var l=n.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?o>=t.x[0]&&o<=t.x[1]&&a>=t.y[0]&&a<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&o===t.x&&a===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=(o-l.position.x[0])/(l.position.x[1]-l.position.x[0]),d=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+d)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},a=function(e){o(e.clientX,e.clientY)},s=function(){o(-1,-1)},e.addEventListener("mousemove",a),e.addEventListener("mouseout",s),function(){e.removeEventListener("mousemove",a),e.removeEventListener("mouseout",s)}}}},[i,r])},useLottieInteractivity=function(e){var t=e.actions,r=e.mode,i=e.lottieObj,n=i.animationItem,o=i.View,a=i.animationContainerRef;return useInitInteractivity({actions:t,animationItem:n,mode:r,wrapperRef:a}),o},_excluded=["style","interactivity"],Lottie=function(e){var t,r,i,n=e.style,o=e.interactivity,a=_objectWithoutProperties(e,_excluded),s=useLottie(a,n),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,C=s.getDuration,b=s.destroy,x=s.animationContainerRef,v=s.animationLoaded,S=s.animationItem;return React.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:C,destroy:b,animationContainerRef:x,animationLoaded:v,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:C,destroy:b,animationContainerRef:x,animationLoaded:v,animationItem:S},actions:null!==(r=null==o?void 0:o.actions)&&void 0!==r?r:[],mode:null!==(i=null==o?void 0:o.mode)&&void 0!==i?i:"scroll"})};function OnboardImage({node:e}){useLogRender("OnboardImage"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"OnboardImage",i=e.key??t,[n,o]=React.useState(null),a=useExtractViewStyle$1(e),s=e.attributes;return React.useEffect(()=>{s?.lottie&&fetch(s?.lottie).then(e=>e.json()).then(e=>o(e))},[s?.lottie]),s?.video_url?jsxRuntime.jsx("video",{"attribute-name":r,"attribute-key":i,autoPlay:!0,muted:!0,loop:!0,src:s?.video_url,style:a}):s?.lottie?n?jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsxRuntime.jsx(Lottie,{animationData:n})}):jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:"Loading..."}):jsxRuntime.jsx(Image$2,{node:{...e,type:"image",sourceType:r}})}var OnboardImage$1=React.memo(OnboardImage);function OnboardItem({node:e}){useLogRender("OnboardItem"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"OnboardItem",i=e.key??t,n=useExtractViewStyle$1(e);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,className:"embla__slide",style:n,children:e.children&&jsxRuntime.jsx(RenderNode$1,{node:e.children})})}var OnboardItem$1=React.memo(OnboardItem);function Text({node:e}){useLogRender("Text");const t=(e=useNode(e)).sourceType??e.type??"text",r=e.key,i=React.useRef(null),[n,o]=React.useState(null),{appConfig:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=e.children,d=useExtractTextStyle$1(e),p=isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e}),u=useLocalize({appConfig:a}),h=React.useMemo(()=>u(c),[u,c]),g=e.attributes?.style,m=g?.adjustsFontSizeToFit??!1,f=g?.showEllipsis??!1;React.useLayoutEffect(()=>{if(!m)return void o(null);const e=i.current;if(!e)return;const t=()=>{const t=e.clientWidth,r=e.clientHeight,i=h?.length??0;if(!t||!r||!i)return void o(null);const n=Math.sqrt(t*r/i),a=Number.parseFloat(window.getComputedStyle(e).fontSize),s=Number.isFinite(a)?a:void 0,l=Math.max(8,s?Math.min(n,s):n);o(Number.isFinite(l)?l:null)};t();let r=null;return"undefined"!=typeof ResizeObserver?(r=new ResizeObserver(()=>t()),r.observe(e)):window.addEventListener("resize",t),()=>{r?.disconnect(),window.removeEventListener("resize",t)}},[m,h]);const y=useMergedStyle(useMergedStyle(d,React.useMemo(()=>{let e;return f&&(e={...e??{},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),null!==n&&(e={...e??{},fontSize:`${n}px`}),e},[f,n])),p?SELECTED_OUTLINE_STYLE:void 0);return jsxRuntime.jsx("p",{ref:i,"attribute-name":t,"attribute-key":r,style:y,children:h})}var Text$1=React.memo(Text);function OnboardSubtitle({node:e}){return useLogRender("OnboardSubtitle"),e=useNode(e),jsxRuntime.jsx(Text$1,{node:e})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:e}){return useLogRender("OnboardTitle"),e=useNode(e),jsxRuntime.jsx(Text$1,{node:e})}var OnboardTitle$1=React.memo(OnboardTitle);function PaywallBackground({node:e}){return useLogRender("PaywallBackground"),jsxRuntime.jsx(BackgroundImage$1,{node:e})}var PaywallBackground$1=React.memo(PaywallBackground);function PaywallCloseButton({node:e}){useLogRender("PaywallCloseButton"),e=useNode(e);const{onClose:t,isBackAllowed:r}=usePaywallContext(),i=React.useId(),n=e.sourceType??e.type??"PaywallCloseButton",o=e.key??i,{previewMode:a,selectedKey:s}=useBuilderParams(),l=useExtractViewStyle$1(e),c=useExtractTextStyle$1(e),d=useMergedStyle(l,isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);if(!r)return null;const p=e.attributes,u=p?.style,h=p?.iconType??"close",g=p?.size??c.fontSize??24,m=c.color??u?.color;return jsxRuntime.jsx("a",{"attribute-name":n,"attribute-key":o,href:"#",onClick:e=>{e.preventDefault(),t?.()},"aria-label":"Close",style:{...d,cursor:"pointer",textDecoration:"none"},children:jsxRuntime.jsx(Icon,{iconType:h,size:g,color:m,alt:""})})}var PaywallCloseButton$1=React.memo(PaywallCloseButton);function PaywallOptionButton({product:e,onPress:t,node:r}){const i=React.useId(),n=(e.productId??"").trim(),{previewMode:o,selectedKey:a}=useBuilderParams(),s=useMergedStyle(useExtractViewStyle$1(r),isNodeSelected({previewMode:!!o,current:a?{key:a}:void 0,node:r})?SELECTED_OUTLINE_STYLE:void 0),l=r.sourceType??r.type??"text",c=r.key??i,d=n?`${c}:${n}`:c;return jsxRuntime.jsx("div",{"attribute-name":l,"attribute-key":d,role:"button",tabIndex:0,onClick:()=>t(n),style:{...s,cursor:"pointer"},children:jsxRuntime.jsx(RenderNode$1,{node:r.children})})}function usePaywallOptionParamsFactory(){const{localizationParams:e,otherParams:t}=useParams();return React.useCallback((r,{isSelected:i})=>{const n={price:String(r.price??""),productTitle:String(r.title??""),productDescription:String(r.description??""),productCurreny:String(r.currency??""),localizedPrice:(r.price??"")+" "+(r.currency??""),productId:String(r.productId??""),productSelected:i?"true":"false"};return{localizationParams:{...e,...n},otherParams:{...t,isSelected:i}}},[e,t])}function parseNumberLike$1(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function compareProducts(e,t,r,i){const n=parseNumberLike$1(e.price),o=parseNumberLike$1(t.price);if(void 0!==n&&void 0!==o&&n!==o)return n-o;const a=(e.title??"").trim(),s=(t.title??"").trim();if(a&&s&&a!==s)return a.localeCompare(s);if(a&&!s)return-1;if(!a&&s)return 1;const l=(e.productId??"").trim(),c=(t.productId??"").trim();return l!==c?l.localeCompare(c):r-i}function PaywallOptions({node:e}){useLogRender("PaywallOptions"),e=useNode(e);const{products:t}=useBuilderParams(),{selectedProduct:r,setSelectedProductId:i}=usePaywallContext(),n=usePaywallOptionParamsFactory(),o=React.useMemo(()=>(Array.isArray(t)?t:[]).map((e,t)=>({p:e,idx:t})).sort((e,t)=>compareProducts(e.p,t.p,e.idx,t.idx)).map(({p:e})=>e),[t]);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.map((t,o)=>{const a=t.productId||`${o}`,s=r?.productId===a,{localizationParams:l,otherParams:c}=n(t,{isSelected:s});return jsxRuntime.jsx(ParamsProvider,{localizationParams:l,otherParams:c,children:jsxRuntime.jsx(PaywallOptionButton,{node:e,product:t,selected:s,onPress:i})},a)})})}var PaywallOptions$1=React.memo(PaywallOptions);function LocalizationParamsProvider({params:e,children:t}){return jsxRuntime.jsx(ParamsProvider,{localizationParams:e,otherParams:{},children:t})}function useChangeDelayByPaywall(e,t){const r=React.useMemo(()=>e?.attributes?.delay?parseInt(String(e?.attributes?.delay),10):1e3,[e?.attributes?.delay]);React.useEffect(()=>{if(!r||r<=0)return void t(!0);const e=setTimeout(()=>{t(!0)},r);return()=>clearTimeout(e)},[r,t])}function useMockOSBackHandler(e){React.useEffect(()=>registerMockOSBackHandler(()=>e),[e])}function PaywallProvider({node:e}){useLogRender("PaywallProvider"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"PaywallProvider",i=e.key??t,{benefits:n,products:o,onPaywallSubscribe:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=useMockOSContext(),d=React.useMemo(()=>{const e=n&&"object"==typeof n&&!Array.isArray(n)?n:{},t=Object.entries(e).filter(([e])=>e.trim().length>0),r=Object.fromEntries(t.map(([e,t])=>[e.trim(),String(t)]));for(let e=0;e<t.length;e+=1){const[,i]=t[e],n=String(i);r[`benefit${e+1}`]=n}return r},[n]),p=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),[u,h]=React.useState(""),[g,m]=React.useState(!1);useChangeDelayByPaywall(e,m),useMockOSBackHandler(g),React.useEffect(()=>{const e=Array.isArray(o)?o:[];if(0===e.length)return void(u&&h(""));const t=e.some(e=>e?.productId===u);u&&t||h(e[0]?.productId??"")},[o,u]);const f=React.useMemo(()=>{const e=Array.isArray(o)?o:[];return e.find(e=>e?.productId===u)??(e.length>0?e[0]:void 0)},[o,u]),y=React.useCallback(()=>{if(g&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[c,g]),C=React.useCallback(async e=>{if(a){const t=a(e),r=t instanceof Promise?await t:!0===t;return r&&c?.isEnabled&&c.goBack?.(),r}const t=e?.productId;if(c?.isEnabled&&t&&c.requestSubscriptionPurchase){const e=await c.requestSubscriptionPurchase(t);return e&&c.goBack?.(),e}return!1},[c,a]),b=React.useCallback(()=>{if(g&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[g,c]),x=React.useMemo(()=>({products:Array.isArray(o)?o:[],setSelectedProductId:h,selectedProduct:f,onClose:y,onSubscribe:C,onCounterDown:b,isBackAllowed:g}),[o,f,y,C,b,g]);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:p,children:jsxRuntime.jsx(PaywallContext.Provider,{value:x,children:jsxRuntime.jsx(LocalizationParamsProvider,{params:d,children:jsxRuntime.jsx(RenderNode$1,{node:e.children})})})})}var PaywallProvider$1=React.memo(PaywallProvider);function PaywallSubscribeButton({node:e}){useLogRender("PaywallSubscribeButton"),e=useNode(e);const{onSubscribe:t,selectedProduct:r}=usePaywallContext(),i=React.useId(),n=e.sourceType??e.type??"PaywallSubscribeButton",o=e.key??i,{previewMode:a,selectedKey:s,appConfig:l}=useBuilderParams(),c=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),d=useLocalize({appConfig:l}),p="string"==typeof e.children&&e.children.trim().length>0?e.children:"Subscribe";return jsxRuntime.jsx("a",{type:"button","attribute-name":n,"attribute-key":o,href:"#",onClick:e=>{e.preventDefault(),t?.(r)},style:{...c,cursor:"pointer"},children:d(p)})}var PaywallSubscribeButton$1=React.memo(PaywallSubscribeButton);function parseNumberLike(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function RadioButtonBase({selected:e,color:t="#A6A6A6",size:r=24}){const i=Math.round(.1*r),n=Math.round(.5*r),o=React.useContext(ParamsContext),a=o?.otherParams??{},s=void 0!==a.isSelected?"true"===String(a.isSelected).toLowerCase():e;return jsxRuntime.jsx("div",{style:{marginLeft:8,marginRight:16},children:jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",borderWidth:i,borderStyle:"solid",borderColor:t,width:r,height:r,borderRadius:n,boxSizing:"border-box",flex:"0 0 auto"},children:s?jsxRuntime.jsx("div",{style:{width:n,height:n,borderRadius:2*n,backgroundColor:t}}):jsxRuntime.jsx("div",{style:{width:r,height:r,borderRadius:n}})})})}function RadioButton({node:e}){useLogRender("RadioButton"),e=useNode(e);const t=React.useId(),r=e.type??"RadioButton",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),s=e.attributes,l=Boolean(s?.selected),c=s?.color,d=parseNumberLike(s?.size);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsxRuntime.jsx(RadioButtonBase,{selected:l,color:c,size:d})})}var RadioButton$1=React.memo(RadioButton);function Separator({node:e}){useLogRender("Separator"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"Separator",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a})}var Separator$1=React.memo(Separator);function StatusBarColor({node:e}){useLogRender("StatusBarColor"),e=useNode(e);const{appConfig:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setStatusBarOverrideColor),n=getStyleBag(e.attributes)?.backgroundColor,o=parseColor(n,{projectColors:r,theme:t?.theme});return React.useEffect(()=>(o&&i(o),()=>{i(null)}),[o,i]),null}var StatusBarColor$1=React.memo(StatusBarColor);function View({node:e}){useLogRender("View"),e=useNode(e);const t=React.useId(),r=e.sourceType??e.type??"View",i=e.key??t,{previewMode:n,selectedKey:o}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!n,current:o?{key:o}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsxRuntime.jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:e.children&&jsxRuntime.jsx(RenderNode$1,{node:e.children})})}var View$1=React.memo(View);function RenderNode({node:e}){if(isNodeNullOrUndefined(e))return null;if(isNodeString(e))return jsxRuntime.jsx(Text$1,{node:{children:e,type:"Text"}});if(isNodeArray(e))return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.map((e,t)=>jsxRuntime.jsx(RenderNode,{node:e},t))});const t="string"==typeof e?.type?e.type:"unknown",r=normalizeComponentType(t)??t,i={...e,type:r};switch(i.type){case"BIcon":return jsxRuntime.jsx(BIcon$1,{node:i});case"BackgroundImage":return jsxRuntime.jsx(BackgroundImage$1,{node:i});case"Button":return jsxRuntime.jsx(Button$1,{node:i});case"Carousel":return jsxRuntime.jsx(Carousel$1,{node:i});case"CarouselButtons":return jsxRuntime.jsx(CarouselButtons$1,{node:i});case"CarouselDots":return jsxRuntime.jsx(CarouselDots$1,{node:i});case"CarouselItem":return jsxRuntime.jsx(CarouselItem,{node:i});case"CarouselProvider":return jsxRuntime.jsx(CarouselProvider$1,{node:i});case"CountDown":return jsxRuntime.jsx(CountDown,{node:i});case"Image":return jsxRuntime.jsx(Image$2,{node:i});case"Main":return jsxRuntime.jsx(Main$1,{node:i});case"NavigationBarColor":return jsxRuntime.jsx(NavigationBarColor$1,{node:i});case"Onboard":return jsxRuntime.jsx(Onboard$1,{node:i});case"OnboardButton":return jsxRuntime.jsx(OnboardButton$1,{node:i});case"OnboardButtons":return jsxRuntime.jsx(OnboardButtons$1,{node:i});case"OnboardDot":return jsxRuntime.jsx(OnboardDot$1,{node:i});case"OnboardFooter":return jsxRuntime.jsx(OnboardFooter$1,{node:i});case"OnboardImage":return jsxRuntime.jsx(OnboardImage$1,{node:i});case"OnboardItem":return jsxRuntime.jsx(OnboardItem$1,{node:i});case"OnboardProvider":return jsxRuntime.jsx(OnboardProvider$1,{node:i});case"OnboardSubtitle":return jsxRuntime.jsx(OnboardSubtitle$1,{node:i});case"OnboardTitle":return jsxRuntime.jsx(OnboardTitle$1,{node:i});case"PaywallBackground":return jsxRuntime.jsx(PaywallBackground$1,{node:i});case"PaywallCloseButton":return jsxRuntime.jsx(PaywallCloseButton$1,{node:i});case"PaywallOptions":return jsxRuntime.jsx(PaywallOptions$1,{node:i});case"PaywallProvider":return jsxRuntime.jsx(PaywallProvider$1,{node:i});case"PaywallSubscribeButton":return jsxRuntime.jsx(PaywallSubscribeButton$1,{node:i});case"RadioButton":return jsxRuntime.jsx(RadioButton$1,{node:i});case"Separator":return jsxRuntime.jsx(Separator$1,{node:i});case"StatusBarColor":return jsxRuntime.jsx(StatusBarColor$1,{node:i});case"Text":return jsxRuntime.jsx(Text$1,{node:i});case"View":return jsxRuntime.jsx(View$1,{node:i});default:return other(t,e)}}var RenderNode$1=React.memo(RenderNode);const allcomponentNames=["BIcon","BackgroundImage","Button","Carousel","CarouselButtons","CarouselDots","CarouselItem","CarouselProvider","CountDown","Image","Main","NavigationBarColor","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","PaywallBackground","PaywallCloseButton","PaywallOptions","PaywallProvider","PaywallSubscribeButton","RadioButton","Separator","StatusBarColor","Text","View"];function findNodeByKeyNested(e,t){if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKeyNested(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKeyNested(r.children,t):null}class RenderErrorBoundary extends React.Component{constructor(){super(...arguments),this.state={error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null},this.copyDetails=async()=>{const e=this.buildDetails();try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),this.setState({copied:!0,copyError:null}),void window.setTimeout(()=>this.setState({copied:!1}),900)}catch{}try{if("undefined"==typeof document)return void this.setState({copied:!1,copyError:"Copy failed"});const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");if(document.body.removeChild(t),!r)return void this.setState({copied:!1,copyError:"Copy failed"});this.setState({copied:!0,copyError:null}),window.setTimeout(()=>this.setState({copied:!1}),900)}catch(e){this.setState({copied:!1,copyError:e instanceof Error?e.message:"Copy failed"})}},this.reset=()=>{this.setState({error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null})}}static getDerivedStateFromError(e){return{error:e,errorStack:e?.stack,copied:!1,copyError:null}}componentDidCatch(e,t){const r=t.componentStack??void 0;this.setState({error:e,errorStack:e?.stack,componentStack:r}),this.props.onError?.(e,r)}buildDetails(){const{error:e,errorStack:t,componentStack:r}=this.state;return[`Error: ${e?.message??""}`,"",t?`Stack:\n${t}`:"Stack: (missing)","",r?`React component stack:\n${r}`:"React component stack: (missing)"].join("\n")}render(){const{error:e,copied:t,copyError:r}=this.state;if(!e)return this.props.children;const i=this.buildDetails();return jsxRuntime.jsxs("div",{role:"alert",style:{padding:16,borderRadius:12,background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",color:"hsl(var(--card-foreground, var(--rb-card-foreground, 220.9 39.3% 11%)))",border:"1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)) / 0.9)"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("div",{style:{fontWeight:700},children:"Preview crashed"}),this.props.subtitle&&jsxRuntime.jsxs("div",{style:{opacity:.8,fontSize:12},children:["(",this.props.subtitle,")"]}),jsxRuntime.jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:8},children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:this.copyDetails,children:t?"Copied":"Copy details"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:this.reset,children:"Try again"})]})]}),r&&jsxRuntime.jsx("div",{style:{marginTop:8,color:"hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))",fontSize:12},children:r}),jsxRuntime.jsx("pre",{style:{marginTop:12,whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.4,background:"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))",padding:12,borderRadius:10,overflow:"auto",maxHeight:360},children:i})]})}}function isNullish(e){return null==e}function RenderPage({data:e,name:t,onSelectNode:r,params:i}){useLogRender("RenderPage");const{previewMode:n,forceRender:o,setCurrent:a,appFont:s}=useRenderStore(e=>({previewMode:e.previewMode,forceRender:e.forceRender,setCurrent:e.setCurrent,appFont:e.appFont})),l=React.useRef(null),c=isNullish(e);return React.useEffect(()=>{if(!n)return;const t=l.current;if(!t)return;const i=t=>{const i=t.target;if(!i)return;if(i.closest(".embla__dot"))return;let n=i.closest("[attribute-key]");for(;n;){const t=n.getAttribute("attribute-key");if(t){const i=findNodeByKeyNested(e,t);if(i)return a(i),void r?.(i)}n=n.parentElement?.closest("[attribute-key]")??null}};return t.addEventListener("click",i),()=>{t.removeEventListener("click",i)}},[n,e,r,a,o]),jsxRuntime.jsx(RenderErrorBoundary,{subtitle:"caught by RenderPage",children:jsxRuntime.jsx(BuilderProvider,{params:i,children:jsxRuntime.jsx(DeviceMockFrame,{appName:t,children:jsxRuntime.jsxs("div",{className:"screen-preview",ref:l,style:{fontFamily:s?`"${s}"`:void 0},children:[isNullish(e)?null:jsxRuntime.jsx(RenderNode$1,{node:e}),c&&jsxRuntime.jsx("div",{className:"rb-empty-preview","aria-hidden":"true",children:jsxRuntime.jsxs("div",{className:"rb-empty-preview__card",children:[jsxRuntime.jsx("div",{className:"rb-empty-preview__title",children:"Empty screen"}),jsxRuntime.jsx("div",{className:"rb-empty-preview__hint",children:"Add a component to start"})]})})]})})})})}function copyNode(e){const{setCopiedNode:t}=useRenderStore.getState();t(e)}function isNodeDataLike(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;return"type"in e&&"children"in e}function normalizeKey(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function collectNodeKeysInto(e,t){if(null==e)return;if("string"==typeof e)return;if(Array.isArray(e))return void e.forEach(e=>collectNodeKeysInto(e,t));if(!isNodeDataLike(e))return;const r=normalizeKey(e.key);r&&t.add(r),collectNodeKeysInto(e.children,t)}function collectNodeKeys(e){const t=new Set;return collectNodeKeysInto(e,t),t}function generateUniqueKey(e,t){let r="";do{r=generateRandomKeyForNode(e||"Node")}while(t.has(r));return r}function repairNodeKeys(e,t=new Set){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=e.map(e=>{const i=repairNodeKeys(e,t);return i!==e&&(r=!0),i});return r?i:e}if(!isNodeDataLike(e))return e;const r=e,i=normalizeKey(r.key),n=!i||t.has(i)?generateUniqueKey(r.type,t):i;t.add(n);const o=r.children,a=repairNodeKeys(o,t);return n!==i||a!==o?{...r,key:n,children:a}:e}const platformIcons={android:getImage(exports.TribeAssetName.Android),ios:getImage(exports.TribeAssetName.Apple)};function DeviceButton({device:e,selectedDevice:t,onSelect:r}){const i=platformIcons[e.platform],n=e.aspect??(()=>{const t=e.height/e.width;return t>=2.05?"tall":t<=1.75?"wide":"regular"})();return jsxRuntime.jsxs("button",{type:"button",className:"editor-device-button"+(t===e?" editor-device-button--selected":""),onClick:()=>r(e),children:[e.name," ",jsxRuntime.jsx("br",{}),e.width,"×",e.height," (",n,")",i&&jsxRuntime.jsx("span",{children:jsxRuntime.jsx("img",{src:i,alt:"","aria-hidden":"true"})})]})}function Modal({onClose:e,ariaLabelledBy:t,children:r,className:i,contentClassName:n,closeOnOverlayClick:o=!0,closeOnEsc:a=!0}){React.useEffect(()=>{if(!a)return;if("undefined"==typeof window)return;const t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,e]);const s=jsxRuntime.jsxs("div",{className:"modal"+(i?` ${i}`:""),role:"dialog","aria-modal":"true","aria-labelledby":t,children:[jsxRuntime.jsx("div",{className:"modal__overlay",onClick:o?e:void 0}),jsxRuntime.jsx("div",{className:"modal__content"+(n?` ${n}`:""),role:"document",children:r})]});return"undefined"==typeof document?s:reactDom.createPortal(s,document.body)}function DeviceSelectorModal({devices:e,selectedDevice:t,onSelect:r,onClose:i}){const n=e=>{r(e),i()};return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"device-selector-title",contentClassName:"device-selector-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"device-selector-title",className:"modal__title",children:"Select a device"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button","aria-label":"Close device selector",onClick:i,children:"Close"})]}),jsxRuntime.jsx("div",{className:"device-selector-modal__grid",role:"list",children:e.map(e=>jsxRuntime.jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:n},e.name))})]})}var name$j="hello-world",version$j="1.1.2",type$j="other",appConfig$j={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$j={type:"View",attributes:{scrollable:!0,description:"View element 1 in sample.",title:"View 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"}},children:[{type:"Text",children:"Hello, world!",attributes:{description:"Text element 1 in sample.",title:"Text 1",styles:{color:"#111827",fontSize:24,fontWeight:"600"}}},{type:"Text",children:"Welcome to react-native-builder",attributes:{description:"Text element 2 in sample.",title:"Text 2",styles:{color:"#6B7280",fontSize:14,fontWeight:"400"}}}]},simple1={name:name$j,version:version$j,type:type$j,appConfig:appConfig$j,data:data$j},name$i="hello-world-2-advanced",version$i="1.1.2",type$i="other",appConfig$i={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"#FDFDFD",color:"#161827"},dark:{backgroundColor:"#12131A",color:"#E9EBF9"}},defaultLanguage:"en"},data$i={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"}},children:[{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12}},children:[{type:"text",children:"Dashboard",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{color:"#FFFFFF",fontSize:20,fontWeight:"600"}}},{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{flexDirection:"row",gap:8}},children:[{type:"text",children:"Help",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{color:"#D1D5DB",fontSize:14}}},{type:"text",children:"Profile",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{color:"#D1D5DB",fontSize:14}}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",description:"image element 1 in sample.",title:"image 1",styles:{width:358,height:160,borderRadius:12}},children:null},{type:"view",attributes:{description:"view element 4 in sample.",title:"view 4",styles:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12}},children:[{type:"text",children:"Welcome back!",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{color:"#111827",fontSize:18,fontWeight:"600"}}},{type:"text",children:"Here's what's new today.",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{color:"#6B7280",fontSize:14}}}]},{type:"view",attributes:{description:"view element 5 in sample.",title:"view 5",styles:{flexDirection:"column",gap:12}},children:[{type:"view",attributes:{description:"view element 6 in sample.",title:"view 6",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 1",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"Due today",attributes:{description:"text element 7 in sample.",title:"text 7",styles:{color:"#059669",fontSize:12,fontWeight:"600"}}}]},{type:"view",attributes:{description:"view element 7 in sample.",title:"view 7",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 2",attributes:{description:"text element 8 in sample.",title:"text 8",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"2 days left",attributes:{description:"text element 9 in sample.",title:"text 9",styles:{color:"#D97706",fontSize:12,fontWeight:"600"}}}]},{type:"view",attributes:{description:"view element 8 in sample.",title:"view 8",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 3",attributes:{description:"text element 10 in sample.",title:"text 10",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"Completed",attributes:{description:"text element 11 in sample.",title:"text 11",styles:{color:"#6B7280",fontSize:12,fontWeight:"600"}}}]}]},{type:"view",attributes:{description:"view element 9 in sample.",title:"view 9",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12}},children:[{type:"text",children:"Home",attributes:{description:"text element 12 in sample.",title:"text 12",styles:{color:"#FFFFFF",fontSize:14}}},{type:"text",children:"Search",attributes:{description:"text element 13 in sample.",title:"text 13",styles:{color:"#9CA3AF",fontSize:14}}},{type:"text",children:"Settings",attributes:{description:"text element 14 in sample.",title:"text 14",styles:{color:"#9CA3AF",fontSize:14}}}]}]},simple2={name:name$i,version:version$i,type:type$i,appConfig:appConfig$i,data:data$i},name$h="carousel-sample",version$h="1.1.2",type$h="other",appConfig$h={theme:"light"},data$h={type:"Main",isMain:!0,attributes:{styles:{backgroundColor:"#f8fafc",minHeight:"100vh",padding:"24px"}},children:{type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0,description:"carousel element 1 in sample.",title:"carousel 1"},children:[{type:"carouselItem",attributes:{description:"carouselItem element 1 in sample.",title:"carouselItem 1",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 1 in sample.",title:"view 1",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #eef2ff 0%, #ffffff 55%, #ecfeff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-49ojfyhl4d7"},{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Welcome aboard",key:"text-3ougfj4mxnh"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"Swipe through a beautiful, validated carousel sample with images.",key:"text-2dol8grshke"}],key:"view-a8hfkdvfy7"},key:"carouselItem-5bw9x33s7ie"},{type:"carouselItem",attributes:{description:"carouselItem element 2 in sample.",title:"carouselItem 2",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #eff6ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-riwntk91k9"},{type:"text",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Discover features",key:"text-hmuk6f7ml4v"},{type:"text",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"Dots + buttons are included, and slide sizing comes from the carousel CSS.",key:"text-dnhhoqiiri"}],key:"view-9hyw3wys30w"},key:"carouselItem-lyq2hr0qh8h"},{type:"carouselItem",attributes:{description:"carouselItem element 3 in sample.",title:"carouselItem 3",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f5f3ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-j9ru3r8g7km"},{type:"text",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Get started",key:"text-01u3fwwtkd8p"},{type:"text",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"This sample stays within validation rules (no string flex shorthand).",key:"text-w8rwg9y1hj"}],key:"view-tsjfbzn8kdj"},key:"carouselItem-6r53yswjyee"}],key:"carousel-2qa4gn0ms32"},{type:"view",attributes:{title:"Carousel Controls",description:"carousel controls view element in sample.",styles:{flex:1,gap:24,alignItems:"center",paddingTop:32}},children:[{type:"carouselDots",attributes:{dotType:"expanding_dot"},key:"carouselDots-r5ji67uoxxg"},{type:"view",attributes:{title:"Nav Buttons",description:"navigation buttons wrapper",styles:{flexDirection:"row",gap:12,alignItems:"center",justifyContent:"center"}},children:[{type:"carouselButtons",attributes:{buttonType:["previous_button"],styles:{backgroundColor:"#6366f1",borderRadius:12,padding:"12px 24px",minWidth:100}},key:"carouselButtons-prev"},{type:"carouselButtons",attributes:{buttonType:["next_button"],styles:{backgroundColor:"#8b5cf6",borderRadius:12,padding:"12px 24px",minWidth:100}},key:"carouselButtons-next"}],key:"view-nav-buttons"}],key:"view-controls-wrapper"}],attributes:{description:"carouselProvider element 1 in sample.",title:"carouselProvider 1",styles:{backgroundColor:"#ffffff",borderRadius:24,padding:"32px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",maxWidth:"600px",margin:"0 auto"}},key:"carouselProvider-152n4dkqvam"},key:"Main-u1cavjag9sr"},carouselSample={name:name$h,version:version$h,type:type$h,appConfig:appConfig$h,data:data$h},name$g="unvalidated-builder1",version$g="1.1.2",type$g="other",appConfig$g={theme:"light"},data$g={type:"view",attributes:{foo:1,scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"}},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"}},children:"Intentionally unvalidated sample"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8}},children:"This project should fail validation (unknown attribute: foo). In the UI, choose “Continue without validation” to load it anyway."}]},unvalidatedBuilder1={name:name$g,version:version$g,type:type$g,appConfig:appConfig$g,data:data$g},name$f="unvalidated-crash1",version$f="1.1.2",type$f="other",appConfig$f={theme:"light"},data$f={type:"OnboardFooter",attributes:{textLocalizationKey:123,description:"OnboardFooter element 1 in sample.",title:"OnboardFooter 1",styles:{paddingHorizontal:24,paddingVertical:16}},children:null},unvalidatedCrash1={name:name$f,version:version$f,type:type$f,appConfig:appConfig$f,data:data$f},name$e="unvalidated-crashcomponent1",version$e="1.1.2",type$e="other",appConfig$e={theme:"light"},data$e={type:"CrashComponent",attributes:{reason:"Intentional crash for GUI testing",note:"This component is not in the Add Component modal; it only exists via JSON.",description:"CrashComponent element 1 in sample.",title:"CrashComponent 1"},children:null},unvalidatedCrashComponent1={name:name$e,version:version$e,type:type$e,appConfig:appConfig$e,data:data$e},name$d="unmigrated-builder1",version$d="1.0.0",type$d="other",appConfig$d={theme:"light"},data$d={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA",description:"view element 1 in sample.",title:"view 1"},children:[{type:"text",attributes:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center",description:"text element 1 in sample.",title:"text 1"},children:"Intentionally unmigrated sample"},{type:"text",attributes:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8,description:"text element 2 in sample.",title:"text 2"},children:"This project has version 1.0.0 so the Migration page should appear. Click “Migrate now” to normalize legacy flat style keys into attributes.style and move misplaced props out of style (combined 1.1.2)."}]},unmigratedBuilder1={name:name$d,version:version$d,type:type$d,appConfig:appConfig$d,data:data$d},name$c="unmigrated-builder-1.1.1",version$c="1.1.1",type$c="other",appConfig$c={theme:"light"},data$c={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"}},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"}},children:"Intentionally unmigrated sample (for combined 1.1.2)"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8}},children:"This project has version 1.1.1 so the Migration page should appear. Click “Migrate now” to move component props and non-style flags out of attributes.style (combined 1.1.2)."},{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,marginTop:16}},children:[{type:"BIcon",attributes:{description:"BIcon element 1 in sample.",title:"BIcon 1",styles:{iconType:"check",strokeWidth:3,color:"#22c55e",fontSize:"18"}},children:null},{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",width:48,height:48,description:"image element 1 in sample.",title:"image 1",styles:{resizeMode:"contain",borderRadius:12}},children:null}]}]},unmigratedBuilder1_1_1={name:name$c,version:version$c,type:type$c,appConfig:appConfig$c,data:data$c},name$b="Simple Paywall",version$b="1.1.2",type$b="paywall",appConfig$b={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$b={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall ana sağlayıcısı. (#1)",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",title:"Paywall Background",attributes:{src:"https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall arka planı. (#1)",title:"Paywall Background"},children:null},{type:"View",title:"Paywall Inner",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:12,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#2)",title:"Benefits",styles:{flexDirection:"column",gap:0,marginTop:"16%"}},children:[{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#3)",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#1)",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#1)",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#4)",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#2)",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#2)",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#5)",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#3)",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#3)",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Abonelik seçenekleri alanı. (#1)",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Seçim satırı öğesi. (#1)",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#4)",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"Text",attributes:{description:"Metin öğesi. (#5)",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"İkon öğesi. (#4)",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"View",attributes:{description:"Subscription butonu kapsayıcısı. (#1)",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe"}}]}]}]}]},paywall1={name:name$b,version:version$b,type:type$b,appConfig:appConfig$b,data:data$b},name$a="Paywall With Counter",version$a="1.1.2",type$a="paywall",appConfig$a={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$a={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Paywall 2.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1482192596544-9eb780fc7f66?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"Text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"Text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywall2={name:name$a,version:version$a,type:type$a,appConfig:appConfig$a,data:data$a},name$9="Paywall Back Offer",version$9="1.1.2",type$9="paywall",appConfig$9={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$9={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Back Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1470770903676-69b98201ea1c?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"Back Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallBackOffer={name:name$9,version:version$9,type:type$9,appConfig:appConfig$9,data:data$9},name$8="Paywall Notification Offer",version$8="1.1.2",type$8="paywall",appConfig$8={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$8={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Notification Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"Notification Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallNotificationOffer={name:name$8,version:version$8,type:type$8,appConfig:appConfig$8,data:data$8},name$7="Paywall App Open Offer",version$7="1.1.2",type$7="paywall",appConfig$7={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$7={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Open Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"App Open Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallAppOpenOffer={name:name$7,version:version$7,type:type$7,appConfig:appConfig$7,data:data$7},name$6="Paywall App Delete Offer",version$6="1.1.2",type$6="paywall",appConfig$6={theme:"light",isRtl:!1,screenStyle:{light:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"},dark:{backgroundColor:"THEME_COLORS.BACKGROUND",color:"THEME_COLORS.TEXT"}},defaultLanguage:"en"},data$6={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Delete Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"App Delete Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallAppDeleteOffer={name:name$6,version:version$6,type:type$6,appConfig:appConfig$6,data:data$6},name$5="vpn-onboard-1",version$5="1.1.2",type$5="onboard",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={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard1={name:name$5,version:version$5,type:type$5,appConfig:appConfig$5,data:data$5},name$4="vpn-onboard-2",version$4="1.1.2",type$4="onboard",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={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",animation:"line-animation",animation_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",animation:"simple-animation",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard2={name:name$4,version:version$4,type:type$4,appConfig:appConfig$4,data:data$4},name$3="vpn-onboard-3",version$3="1.1.2",type$3="onboard",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={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard3={name:name$3,version:version$3,type:type$3,appConfig:appConfig$3,data:data$3},name$2="vpn-onboard-4",version$2="1.1.2",type$2="onboard",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={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard4={name:name$2,version:version$2,type:type$2,appConfig:appConfig$2,data:data$2},name$1="vpn-onboard-5",version$1="1.1.2",type$1="onboard",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={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png",resizeMode:"contain",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",resizeMode:"contain",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.five-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.five-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}},{type:"OnboardItem",key:"app_onboard-page6",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#5)",title:"OnboardTitle 5",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.six-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#5)",title:"OnboardSubtitle 5",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.six-page"}],attributes:{description:"Onboarding sayfası. (#5)",title:"OnboardItem 5"}},{type:"OnboardItem",key:"app_onboard-page5",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#6)",title:"OnboardTitle 6",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#6)",title:"OnboardSubtitle 6",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#6)",title:"OnboardItem 6"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.five-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.five-page",button_text_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"GDPR"},{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:4,description:"Sayfa buton grubu. (#5)",title:"OnboardButtons 5",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.five-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.five-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:5,description:"Sayfa buton grubu. (#6)",title:"OnboardButtons 6",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"all",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard5={name:name$1,version:version$1,type:type$1,appConfig:appConfig$1,data:data$1},name="vpn-onboard-6",version="1.1.2",type="onboard",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={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard6={name:name,version:version,type:type,appConfig:appConfig,data:data};function normalizeSample(e){return{...e,appConfig:{...defaultAppConfig,...e.appConfig}}}function getSamples(){const e=[vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6].map(normalizeSample);return[normalizeSample(simple1),normalizeSample(simple2),normalizeSample(carouselSample),normalizeSample(unvalidatedBuilder1),normalizeSample(unvalidatedCrash1),normalizeSample(unvalidatedCrashComponent1),normalizeSample(unmigratedBuilder1),normalizeSample(unmigratedBuilder1_1_1),normalizeSample(paywall1),normalizeSample(paywall2),normalizeSample(paywallBackOffer),normalizeSample(paywallNotificationOffer),normalizeSample(paywallAppOpenOffer),normalizeSample(paywallAppDeleteOffer),...e]}function getBasicSamples(){return[normalizeSample(simple1),normalizeSample(simple2),normalizeSample(carouselSample),normalizeSample(unvalidatedBuilder1)]}function getOnboardSamples(){return[vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6].map(normalizeSample)}const devices=getDevices();function EditorHeader({onSaveProject:e,onRestoreProject:t,current:r,editorData:i,setEditorData:n}){useLogRender("EditorHeader");const[o,a]=React.useState(!1),[s,l]=React.useState(!1),c=React.useRef(null),d=useRenderStore(e=>e.copiedNode),{device:p,setDevice:u,setCurrent:h,setAppConfig:g,setProjectColors:m}=useRenderStore(e=>({device:e.device,setDevice:e.setDevice,setCurrent:e.setCurrent,setAppConfig:e.setAppConfig,setProjectColors:e.setProjectColors})),f=React.useMemo(()=>{const e=e=>"paywall"===e?0:"onboard"===e?1:2;return getSamples().slice().sort((t,r)=>{const i=e(t.type)-e(r.type);return 0!==i?i:t.name.localeCompare(r.name)})},[]),C=React.useMemo(()=>`editor-actions-menu-${Math.random().toString(36).slice(2,9)}`,[]);function b(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=b(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>b(e,t,r)):b(e,t,r);if(n!==e)return{...i,children:n}}return e}React.useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]);const x=e=>JSON.parse(JSON.stringify(e)),v=e=>{if(!r||!i||!n)return;const t=x(e.data),o=collectNodeKeys(i),a=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"type"in e&&"children"in e;if(!a(r))return void y.error("Select a component node to paste into");const s=r.children,l=(e=>{if(a(e)){if("main"===e.type||!0===e.isMain){const t=e.children;return t?Array.isArray(t)?t:[t]:[]}}return[e]})(t);if(0===l.length)return void y.error("Sample has no children to paste");const c=l.map(e=>repairNodeKeys(e,o));let d;d=s?Array.isArray(s)?[...s,...c]:[s,...c]:1===c.length?c[0]:c;const p={...r,children:d},u=b(i,r,p);n(u),h(p),y.success(`Pasted from "${e.name}"`)},S=()=>l(!1),w=!!r,k=!!(r&&i&&n&&d);return jsxRuntime.jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxRuntime.jsxs("div",{className:"editor-header__devices",children:[devices.slice(0,5).map(e=>jsxRuntime.jsx(DeviceButton,{selectedDevice:p,onSelect:u,device:e},e.name)),jsxRuntime.jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>a(!0),children:"More devices"})]}),jsxRuntime.jsx("div",{className:"editor-header__actions",children:jsxRuntime.jsxs("div",{className:"editor-actions-dropdown",ref:c,children:[jsxRuntime.jsxs("button",{className:"editor-button editor-actions-dropdown__trigger","aria-label":"Open actions menu","aria-haspopup":"menu","aria-expanded":s,"aria-controls":C,onClick:()=>l(e=>!e),children:["Actions",jsxRuntime.jsx("span",{className:"editor-actions-dropdown__caret","aria-hidden":"true",children:"▾"})]}),s&&jsxRuntime.jsxs("ul",{id:C,className:"editor-actions-dropdown__menu",role:"menu","aria-label":"Editor actions",children:[jsxRuntime.jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxRuntime.jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Replace from samples",onClick:e=>e.preventDefault(),children:["Replace from samples",jsxRuntime.jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsxRuntime.jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Replace from sample",children:f.map(e=>jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{(e=>{if(!n)return;const t=repairNodeKeys(x(e.data));n(t),h(t),e.appConfig&&g(e.appConfig),m(e.projectColors),y.success(`Replaced with "${e.name}"`)})(e),S()},children:e.name})},`replace-${e.name}`))})]}),jsxRuntime.jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxRuntime.jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Paste from samples",onClick:e=>e.preventDefault(),disabled:!r,title:r?void 0:"Select a node first",children:["Paste from samples",jsxRuntime.jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsxRuntime.jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Paste from sample",children:f.map(e=>jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{v(e),S()},disabled:!r,children:e.name})},`paste-${e.name}`))})]}),jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item editor-save-button",role:"menuitem",onClick:()=>{e?.(),S()},disabled:!e,children:"Save"})}),t&&jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item editor-save-previewconfig-button",role:"menuitem",onClick:()=>{try{t?.(),y.info("Restored")}catch{y.error("Restore failed")}finally{S()}},children:"Restore"})}),jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{w&&(r&&copyNode(r),y.info("Copied"),S())},disabled:!w,children:"Copy"})}),jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{k&&((()=>{if(!r||!i||!n)return;if(!d)return;const e=repairNodeKeys(JSON.parse(JSON.stringify(d)),collectNodeKeys(i)),t=b(i,r,e);useRenderStore.setState({copiedNode:null}),n(t),h(e)})(),y.success("Pasted"),S())},disabled:!k,children:"Paste"})})]})]})}),o&&jsxRuntime.jsx(DeviceSelectorModal,{devices:devices,selectedDevice:p,onSelect:u,onClose:()=>a(!1)})]})}const SAVED_COLORS_KEY="attributes-editor-saved-colors",formatTokenLabel$1=e=>e.split(/[_-]/g).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),mapTokensToOptions=(e,t)=>{if(!e)return[];const r=t?.groupKey??"group";return Object.entries(e).filter(([,e])=>"string"==typeof e&&e.trim().length>0).map(([e,i])=>{const n=i.trim(),o=t?.tokenLabelPrefix?`${t.tokenLabelPrefix}.${e}`:void 0;return{id:`${r}-${e}`,label:formatTokenLabel$1(e),value:n,tokenLabel:o}})},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.filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase()).filter(Boolean):[]}catch{return[]}},persistSavedColors=e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(SAVED_COLORS_KEY,JSON.stringify(e))}catch{}},STATIC_PREFIX="STATIC_COLORS.",THEME_PREFIX="THEME_COLORS.",resolveProjectColorValue=(e,t)=>{if(!e||"string"!=typeof e||!t)return;const r=e.trim();if(r){if(r.startsWith(STATIC_PREFIX)){const e=r.slice(STATIC_PREFIX.length),i=t.STATIC_COLORS?.[e];return"string"==typeof i&&i.trim()?i.trim():void 0}if(r.startsWith(THEME_PREFIX)){const e=r.slice(THEME_PREFIX.length);if(!e)return;const i=e.split(".");if(1===i.length){const e=i[0],r=t.THEME_COLORS;if(!r)return;for(const t of Object.values(r)){const r=t?.[e];if("string"==typeof r&&r.trim())return r.trim()}return}const[n,...o]=i,a=o.join(".");if(!n||!a)return;const s=t.THEME_COLORS?.[n],l=s?.[a];return"string"==typeof l&&l.trim()?l.trim():void 0}}};function ColorModal({value:e,projectColors:t,onSelect:r,onClose:i,onClear:n}){const[o,a]=React.useState(()=>readSavedColors()),[s,l]=React.useState(!0),c=React.useRef(null),d=React.useId(),p=React.useId(),u=React.useMemo(()=>resolveProjectColorValue(e,t)??e,[e,t]),h=React.useMemo(()=>{if(!t)return[];const e=[],r=mapTokensToOptions(t.STATIC_COLORS,{groupKey:"static",tokenLabelPrefix:"STATIC_COLORS"});r.length&&e.push({title:"Static colors",options:r,emptyMessage:"No static colors defined."});const i=t.THEME_COLORS??{};return Object.entries(i).forEach(([t,r])=>{const i=mapTokensToOptions(r,{groupKey:`theme-${t||"default"}`,tokenLabelPrefix:"THEME_COLORS"});if(!i.length)return;const n=t?.trim()?formatTokenLabel$1(t):"Theme";e.push({title:`Theme: ${n}`,options:i,emptyMessage:`No colors defined for ${n}.`})}),e},[t]),g=React.useMemo(()=>o.map((e,t)=>({id:`saved-${t}-${e}`,label:e,value:e})),[o]),m=e=>{const t=e?.trim().toLowerCase();t&&(a(e=>{if(e.includes(t))return e;const r=[...e,t];return persistSavedColors(r),r}),r(t),i())},f=()=>{const e=c.current,t=e?e.showPicker:void 0;if(e&&"function"==typeof t){try{e.focus({preventScroll:!0})}catch{}t.call(e)}else(()=>{if("undefined"==typeof document)return;const e=document.createElement("input");e.type="color",e.value=u?.toString()||"#000000",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.style.width="40px",e.style.height="40px",e.style.opacity="0";const t=()=>{e.removeEventListener("change",r),e.removeEventListener("input",r),e.removeEventListener("blur",t),e.remove()},r=()=>{m(e.value),t()};e.addEventListener("change",r),e.addEventListener("input",r),e.addEventListener("blur",t),document.body.appendChild(e);try{e.focus({preventScroll:!0})}catch{}requestAnimationFrame(()=>e.click())})()},y=e=>{m(e.target.value),e.target.value="#000000"},C=e=>{const t=s&&e.tokenLabel?e.tokenLabel:e.value;r(t),i()};return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"color-picker-title",contentClassName:"color-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"color-picker-title",className:"modal__title",children:"Pick a color"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"color-modal__selected",children:[jsxRuntime.jsxs("div",{className:"color-modal__selected-info",children:[jsxRuntime.jsx("label",{htmlFor:p,role:"button","aria-label":"Open color picker",tabIndex:0,title:"Pick a color",className:"color-modal__selected-preview",style:{background:u??"transparent"},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("p",{className:"color-modal__selected-label",children:"Selected color"}),jsxRuntime.jsx("p",{className:"color-modal__selected-value",children:e??"None"})]})]}),e?jsxRuntime.jsx("button",{type:"button",className:"color-modal__link-button",onClick:n,children:"Clear"}):null]}),jsxRuntime.jsxs("div",{className:"color-modal__toggle",children:[jsxRuntime.jsxs("label",{htmlFor:d,className:"color-modal__toggle-label",children:[jsxRuntime.jsx("input",{id:d,type:"checkbox",className:"color-modal__toggle-input",checked:s,onChange:e=>l(e.target.checked)}),"Use color names"]}),jsxRuntime.jsx("p",{className:"color-modal__toggle-description",children:"Output tokens like STATIC_COLORS.PRIMARY instead of raw values."})]}),h.length?h.map(t=>jsxRuntime.jsx(ColorSection,{title:t.title,options:t.options,emptyMessage:t.emptyMessage,activeValue:e,onSelect:C},t.title)):jsxRuntime.jsx(ColorSection,{title:"Project colors",options:[],emptyMessage:"No project colors detected yet.",activeValue:e,onSelect:C}),jsxRuntime.jsx(ColorSection,{title:"Saved colors",options:g,emptyMessage:"Add colors you use often for quick access.",action:jsxRuntime.jsxs("span",{className:"color-modal__link-button color-modal__add-color",children:["Add color",jsxRuntime.jsx("input",{type:"color",className:"color-modal__add-color-input",onChange:y,defaultValue:"#000000","aria-label":"Add color"})]}),activeValue:e,onSelect:C}),jsxRuntime.jsx("input",{ref:c,id:p,type:"color",className:"color-modal__input",onChange:y,defaultValue:"#000000",tabIndex:-1})]})}function ColorSection({title:e,options:t,emptyMessage:r,action:i,activeValue:n,onSelect:o}){return jsxRuntime.jsxs("section",{className:"color-section",children:[jsxRuntime.jsxs("div",{className:"color-section__header",children:[jsxRuntime.jsx("p",{className:"color-section__title",children:e}),i]}),t.length?jsxRuntime.jsx("div",{className:"color-section__swatches",children:t.map(e=>jsxRuntime.jsx(ColorSwatch,{option:e,isActive:e.tokenLabel&&e.tokenLabel===n||e.value===n,onSelect:()=>o(e)},e.id))}):jsxRuntime.jsx("p",{className:"color-section__empty",children:r??"No colors available."})]})}function ColorSwatch({option:e,isActive:t,onSelect:r}){const i="#ffffff"===e.value?.trim().toLowerCase()||"#fff"===e.value?.trim().toLowerCase();return jsxRuntime.jsxs("button",{type:"button",onClick:r,className:"color-modal__swatch"+(t?" color-modal__swatch--active":""),children:[jsxRuntime.jsx("span",{"aria-hidden":!0,className:"color-modal__swatch-preview"+(i?" color-modal__swatch-preview--light":""),style:{background:e.value??"transparent"}}),jsxRuntime.jsx("span",{className:"color-modal__swatch-label",children:e.label??e.value}),jsxRuntime.jsx("span",{className:"color-modal__swatch-value",children:e.tokenLabel?`${e.tokenLabel} - ${e.value}`:e.value})]})}const Checkbox=React.forwardRef(({label:e,helperText:t,className:r,inputClassName:i,onChange:n,id:o,disabled:a,...s},l)=>{const c=React.useId(),d=o??c,p=t?`${d}-helper`:void 0,u=["builder-checkbox",a?"builder-checkbox--disabled":void 0,r].filter(Boolean).join(" "),h=["builder-checkbox__native",i].filter(Boolean).join(" ");return jsxRuntime.jsxs("div",{className:u,children:[jsxRuntime.jsxs("label",{htmlFor:d,className:"builder-checkbox__label",children:[jsxRuntime.jsx("input",{...s,ref:l,id:d,type:"checkbox",className:h,onChange:e=>{n?.(e.target.checked,e)},disabled:a,"aria-describedby":p}),jsxRuntime.jsx("span",{className:"builder-checkbox__control","aria-hidden":"true"}),e?jsxRuntime.jsx("span",{className:"builder-checkbox__text",children:e}):null]}),t?jsxRuntime.jsx("span",{id:p,className:"builder-checkbox__helper",children:t}):null]})});function LayoutPreviewPicker({mode:e,options:t,value:r,onChange:i,layoutContext:n,viewAttributes:o}){if(!t.length)return null;const a="string"==typeof r?r:n?.[e];return jsxRuntime.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,paddingBottom:2},children:t.map(t=>{const r=a===t;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>i(t),style:{borderRadius:8,padding:5,width:110,flex:"0 0 auto",border:r?"2px solid #222":"1px solid #d5d5d5",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",textAlign:"left",display:"flex",flexDirection:"column",gap:3,cursor:"pointer",boxShadow:r?"0 2px 4px rgba(0,0,0,0.08)":"none"},children:[jsxRuntime.jsx(LayoutPreview,{mode:e,option:t,isActive:r,layoutContext:n,viewAttributes:o}),jsxRuntime.jsx("span",{style:{fontWeight:600,fontSize:11},children:formatLayoutLabel(t)})]},t)})})}function LayoutPreview({mode:e,option:t,isActive:r,layoutContext:i,viewAttributes:n}){const o=resolvePreviewContext(e,t,i),a=o.flexDirection?.startsWith("column"),s=n?.style?.backgroundColor??(r?"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)) / 0.55)":"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))"),l=parseNumeric(n?.style?.gap)??3,c=parseNumeric(n?.style?.borderRadius)??4,d="stretch"===o.alignItems?a?{width:"100%"}:{height:"100%"}:void 0;return jsxRuntime.jsx("div",{style:{borderRadius:c,border:"1px dashed rgba(0,0,0,0.2)",padding:5,background:s},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:o.flexDirection??"row",justifyContent:o.justifyContent??"flex-start",alignItems:o.alignItems??"stretch",gap:l,width:"100%",minHeight:a?52:40,transition:"all 0.2s ease"},children:Array.from({length:3}).map((t,r)=>jsxRuntime.jsx("span",{style:{width:a?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??{}}},r))})})}function resolvePreviewContext(e,t,r){const i={flexDirection:r?.flexDirection??"row",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"flex-start"};switch(e){case"flexDirection":return{flexDirection:t,alignItems:i.alignItems,justifyContent:i.justifyContent};case"alignItems":return{flexDirection:i.flexDirection,alignItems:t,justifyContent:i.justifyContent};case"justifyContent":return{flexDirection:i.flexDirection,alignItems:i.alignItems,justifyContent:t};default:return i}}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())}function toPreferredScale(e){if("vs"===e||"s"===e||"f"===e||"%"===e)return e;if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"vs"===t||"s"===t||"f"===t||"%"===t?t:void 0}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 r=e.trim();if(!r)return t;if(r.endsWith("%"))return{amount:r.slice(0,-1),unit:"%"};const i=r.toLowerCase();return i.endsWith("@vs")?{amount:r.slice(0,-3),unit:"vs"}:i.endsWith("vs")?{amount:r.slice(0,-2),unit:"vs"}:i.endsWith("@fs")?{amount:r.slice(0,-3),unit:"f"}:i.endsWith("@f")||i.endsWith("fs")?{amount:r.slice(0,-2),unit:"f"}:i.endsWith("f")?{amount:r.slice(0,-1),unit:"f"}:i.endsWith("@s")?{amount:r.slice(0,-2),unit:"s"}:i.endsWith("s")?{amount:r.slice(0,-1),unit:"s"}:i.endsWith("px")?{amount:r.slice(0,-2),unit:""}:{amount:r,unit:""}}function composeSizeValue(e,t){const r=e.trim();if("%"===t)return`${r}%`;if(""===t){const e=Number(r);return Number.isFinite(e)?e:r}return"f"===t?`${r}@fs`:`${r}@${t}`}function normalizePreferredScale(e,t){const r=t.trim().toLowerCase(),i=r.includes("height")||r.includes("top")||r.includes("vertical")?"vs":"s";return e??i}function SizeField({value:e,onChange:t,preferredScale:r,fieldName:i}){const n=React.useMemo(()=>parseSizeValue(e),[e]),o=React.useMemo(()=>normalizePreferredScale(r,i),[r,i]),[a,s]=React.useState(n.amount),[l,c]=React.useState(()=>n.unit&&n.unit!==o?n.unit:"auto");React.useEffect(()=>{s(n.amount);const e=n.unit&&n.unit!==o?n.unit:"auto";c(e)},[n.amount,n.unit,o]);const d=React.useCallback(e=>"auto"===e?o:e,[o]),p=React.useCallback((e,r)=>{const i=e.trim();t(i?composeSizeValue(i,d(r)):void 0)},[t,d]),u=[{value:"auto",label:"auto"},...[o,...["vs","s","f","%"].filter(e=>e!==o)].map(e=>({value:e,label:e===o?`${e} (preferred)`:e}))];return jsxRuntime.jsxs("div",{className:"attributes-editor__size-field",children:[jsxRuntime.jsx("input",{type:"number",className:"input attributes-editor__size-field-input",value:a,onChange:e=>{const r=e.target.value;s(r),r.trim()?p(r,l):t(void 0)}}),jsxRuntime.jsx("select",{className:"input attributes-editor__size-field-select",value:l,onChange:e=>{const t=e.target.value;c(t),a.trim()&&p(a,t)},children:u.map(e=>jsxRuntime.jsx("option",{value:e.value,children:e.label},e.value))})]})}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:r,onChange:i,componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:l,preferredScale:c}){if(Array.isArray(t)){if(isLayoutField(e)){const n=t.filter(e=>"string"==typeof e&&e.length>0);return jsxRuntime.jsx(LayoutPreviewPicker,{mode:e,options:n,value:"string"==typeof r?r:void 0,onChange:i,layoutContext:a,viewAttributes:s})}return jsxRuntime.jsxs("select",{value:r??"",onChange:e=>i(e.target.value),className:"input",children:[jsxRuntime.jsx("option",{value:"",children:"(none)"}),t.map(e=>jsxRuntime.jsx("option",{value:e,children:e},e))]})}const d="string"==typeof t?getArrayItemType(t):null;if(d){const t=Array.isArray(r)?r:[];if(isPrimitiveType(d)){const r=(r,n)=>{switch(d){case"number":return jsxRuntime.jsx("input",{type:"number",value:r??"",onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:Number(e.target.value),i(r)},className:"input",style:{flex:1}});case"boolean":case"bool":return jsxRuntime.jsx(Checkbox,{checked:Boolean(r),onChange:e=>{const r=[...t];r[n]=e,i(r)},name:`${e}-${n}`});case"string":case"description":return jsxRuntime.jsx("input",{type:"text",value:r??"",onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"title":return jsxRuntime.jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>{const r=[...t];r[n]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"color":return jsxRuntime.jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>{const r=[...t];r[n]=e,i(r)},projectColors:o});default:return jsxRuntime.jsx("p",{children:"---not-implemented----"})}};return jsxRuntime.jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,n)=>jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[r(e,n),jsxRuntime.jsx("button",{type:"button",onClick:()=>{const e=t.filter((e,t)=>t!==n);i(e.length?e:void 0)},children:"remove"})]},n)),jsxRuntime.jsx("div",{children:jsxRuntime.jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==d&&("number"===d?0:"")];i(e)},children:"add"})})]})}const l=getTypeSchema(n,d)??{};return jsxRuntime.jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,r)=>{const c=e??{};return jsxRuntime.jsxs("div",{style:{border:"1px solid #ddd",borderRadius:6,padding:8},children:[jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(l).map(([e,l])=>isBooleanFieldType(l)?jsxRuntime.jsx("div",{style:{gridColumn:"1 / -1"},children:jsxRuntime.jsx(Field,{name:e,type:l,value:c?.[e],onChange:n=>{const o=[...t],a={...c??{},[e]:n};o[r]=a,i(o)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:e})},e):jsxRuntime.jsxs(React.Fragment,{children:[jsxRuntime.jsx("div",{style:{alignSelf:"center"},children:e}),jsxRuntime.jsx(Field,{name:e,type:l,value:c?.[e],onChange:n=>{const o=[...t],a={...c??{},[e]:n};o[r]=a,i(o)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s})]},e))}),jsxRuntime.jsxs("div",{style:{marginTop:8,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[jsxRuntime.jsxs("div",{style:{display:"flex",gap:4},children:[jsxRuntime.jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r<=0)return;const n=[...t],o=n[r-1];n[r-1]=n[r],n[r]=o,i(n)},disabled:r<=0,"aria-label":"Move up",children:"↑"}),jsxRuntime.jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r>=t.length-1)return;const n=[...t],o=n[r+1];n[r+1]=n[r],n[r]=o,i(n)},disabled:r>=t.length-1,"aria-label":"Move down",children:"↓"})]}),jsxRuntime.jsx("button",{type:"button",onClick:e=>{e.stopPropagation();const n=t.filter((e,t)=>t!==r);i(n.length?n:void 0)},children:"remove"})]})]},r)}),jsxRuntime.jsx("div",{children:jsxRuntime.jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];i(e)},children:"add"})})]})}if("string"==typeof t&&!isPrimitiveType(t)){const e=getTypeSchema(n,t);if(e){const t=r??{};return jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,r])=>isBooleanFieldType(r)?jsxRuntime.jsx("div",{style:{gridColumn:"1 / -1"},children:jsxRuntime.jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const n={...t??{},[e]:r};i(n)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s,label:e})},e):jsxRuntime.jsxs(React.Fragment,{children:[jsxRuntime.jsx("div",{style:{alignSelf:"center"},children:e}),jsxRuntime.jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const n={...t??{},[e]:r};i(n)},componentType:n,projectColors:o,layoutContext:a,viewAttributes:s})]},e))})}}if("string[]"===t){const e=Array.isArray(r)?r:[];return jsxRuntime.jsxs("div",{style:{display:"grid",gap:8},children:[e.map((t,r)=>jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("input",{type:"text",value:t??"",onChange:t=>{const n=[...e];n[r]=t.target.value,i(n)},className:"input",style:{flex:1}}),jsxRuntime.jsx("button",{type:"button",onClick:()=>{const t=e.filter((e,t)=>t!==r);i(t.length?t:void 0)},children:"remove"})]},r)),jsxRuntime.jsx("div",{children:jsxRuntime.jsx("button",{type:"button",onClick:()=>{const t=[...e,""];i(t)},children:"add"})})]})}if("string"!=typeof t)return jsxRuntime.jsx("p",{children:"---not-implemented----"});switch(t){case"size":return jsxRuntime.jsx(SizeField,{value:r,onChange:i,preferredScale:c,fieldName:e});case"fontWeight":{const e=normalizeFontWeight(r);return jsxRuntime.jsxs("select",{value:e??"",onChange:e=>i(e.target.value||void 0),className:"input",children:[jsxRuntime.jsx("option",{value:"",children:"(none)"}),FONT_WEIGHT_OPTIONS.map(e=>jsxRuntime.jsx("option",{value:e,children:e},e))]})}case"number":return jsxRuntime.jsx("input",{type:"number",value:r??"",onChange:e=>i(""===e.target.value?void 0:Number(e.target.value)),className:"input"});case"boolean":case"bool":return jsxRuntime.jsx(Checkbox,{label:l??e,checked:Boolean(r),onChange:e=>i(e),name:e});case"string":case"description":return jsxRuntime.jsx("input",{type:"text",value:r??"",onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"title":return jsxRuntime.jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"color":return jsxRuntime.jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>i(e),projectColors:o});default:return jsxRuntime.jsx("p",{children:"---not-implemented----"})}}function ColorPickerButton({value:e,onChange:t,projectColors:r}){const[i,n]=React.useState(!1),o="string"==typeof e?e:void 0,a=React.useMemo(()=>resolveProjectColorValue(o,r)??o,[o,r]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>n(!0),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,borderRadius:6,border:"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},children:[jsxRuntime.jsx("span",{"aria-hidden":!0,style:{width:32,height:32,borderRadius:6,border:"1px solid rgba(0,0,0,0.1)",background:a??"transparent"}}),jsxRuntime.jsx("span",{style:{flex:1,textAlign:"left",fontWeight:500},children:o??"Select color"}),jsxRuntime.jsx("span",{style:{fontSize:12,color:"#666"},children:"Open"})]}),i?jsxRuntime.jsx(ColorModal,{value:o,projectColors:r,onSelect:e=>{t(e),n(!1)},onClose:()=>n(!1),onClear:()=>{t(void 0),n(!1)}}):null]})}function FieldInfoTooltip({description:e,children:t}){const[r,i]=React.useState(!1);if(!e||!e.trim())return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t});const n=["field-info-tooltip__bubble",r?"field-info-tooltip__bubble--visible":""].filter(Boolean).join(" "),o=()=>i(!0),a=()=>i(!1);return jsxRuntime.jsxs("div",{className:"field-info-tooltip",children:[t,jsxRuntime.jsxs("button",{className:"field-info-tooltip__trigger",onMouseEnter:o,onMouseLeave:a,onFocus:o,onBlur:a,type:"button",children:["Show info",jsxRuntime.jsx("span",{className:n,role:"tooltip","aria-hidden":!r,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:r,getAttributeValue:i,onAttributeChange:n,componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,meta:c}){const[d,p]=React.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)),C=g&&y.length>0;return jsxRuntime.jsxs("section",{className:"special-category-section",children:[jsxRuntime.jsxs("div",{className:"special-category-section__header",children:[jsxRuntime.jsx("p",{className:"special-category-section__title",children:u}),C?jsxRuntime.jsx("button",{type:"button",onClick:()=>p(e=>!e),className:"special-category-section__toggle","data-active":d,children:d?"Show less":"Show more"}):null]}),h?jsxRuntime.jsx("p",{className:"special-category-section__description",children:h}):null,(()=>{if(!t.length)return jsxRuntime.jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});if(!g)return(()=>{if(!t.length)return jsxRuntime.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 jsxRuntime.jsx("div",{className:e,children:t.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),u=i(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 jsxRuntime.jsx(FieldInfoTooltip,{description:d,children:jsxRuntime.jsxs("div",{className:m,"data-field-slot":g,children:[h?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:c}),jsxRuntime.jsx(Field,{name:e,type:t,value:u,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})})})();const e=t.filter(e=>f(e.name)).sort((e,t)=>{const r=["top","left","right","bottom"],i=f(e.name),n=f(t.name);return(i?r.indexOf(i):999)-(n?r.indexOf(n):999)}),c=t.filter(e=>!f(e.name));if(0===e.length)return jsxRuntime.jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const p=jsxRuntime.jsx("div",{className:"special-category-section__fields special-category-section__fields--box",children:e.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),u=i(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 jsxRuntime.jsx(FieldInfoTooltip,{description:d,children:jsxRuntime.jsxs("div",{className:m,"data-field-slot":g,children:[h?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:c}),jsxRuntime.jsx(Field,{name:e,type:t,value:u,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})}),u=d&&c.length>0?jsxRuntime.jsx("div",{className:"special-category-section__fields",children:c.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),u=i(e),h=isBooleanFieldType(t),g=["attributes-editor__field-wrapper","special-category-section__field",h?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsxRuntime.jsx(FieldInfoTooltip,{description:d,children:jsxRuntime.jsxs("div",{className:g,children:[h?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:c}),jsxRuntime.jsx(Field,{name:e,type:t,value:u,onChange:t=>n(e,t),componentType:o,projectColors:a,layoutContext:s,viewAttributes:l,label:h?c:void 0,preferredScale:p})]})},e)})}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,u]})})()]})}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 r=t.map(e=>e.trim()).filter(e=>e.length>0);return 0===r.length?e:e.filter(({type:e})=>{let t=!1,i=!1;for(const n of r)if(n.startsWith(EXCLUDE_PREFIX)){if(e===n.slice(EXCLUDE_PREFIX.length))return!1}else n!==FALLBACK_PARENT&&(t=!0,matchesDesiredChildToken(n,e)&&(i=!0));return!t||i})}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 r=new Map;return e.forEach(e=>{e.desiredParents.forEach(i=>{if(t&&!t(i,e))return;const n=r.get(i);n?n.some(t=>t.type===e.type)||n.push(e):r.set(i,[e])})}),Array.from(r.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:r,onClose:i}){const[n,o]=React.useState(!1),a=React.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=React.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=React.useMemo(()=>filterOptionsByDesiredChildren(a,s),[a,s]),c=!s?.length;React.useEffect(()=>{c||o(!1)},[c]);const d=React.useMemo(()=>buildGroups(l,e=>tokenMatchesParent(e,t)),[l,t]),p=React.useMemo(()=>buildGroups(l),[l]),u=e=>jsxRuntime.jsxs("button",{type:"button",className:"add-component-modal__card",onClick:()=>(e=>{r(e)})(e.type),role:"listitem",children:[jsxRuntime.jsx("div",{className:"add-component-modal__thumbnail","aria-hidden":"true",children:jsxRuntime.jsx("span",{children:"Preview"})}),jsxRuntime.jsx("span",{className:"add-component-modal__title",children:e.label})]},e.type),h=e=>e.map(e=>jsxRuntime.jsxs("div",{className:"add-component-modal__group",children:[jsxRuntime.jsx("h5",{className:"add-component-modal__group-title",children:e.displayLabel}),jsxRuntime.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 jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"add-component-title",contentClassName:"add-component-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"add-component-title",className:"modal__title",children:"Add component"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button","aria-label":"Close add component modal",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"add-component-modal__body",children:[jsxRuntime.jsxs("section",{className:"add-component-modal__section",children:[jsxRuntime.jsx("h4",{className:"add-component-modal__section-title",children:"Recommended Components"}),g?h(d):jsxRuntime.jsx("p",{className:"add-component-modal__empty",children:m?"No direct recommendations for this parent.":"No components available for this node."})]}),c&&jsxRuntime.jsxs("label",{className:"add-component-modal__toggle",children:[jsxRuntime.jsx("input",{type:"checkbox",checked:n,onChange:e=>o(e.target.checked)}),jsxRuntime.jsx("span",{children:"Show rest (All Components)"})]}),c&&n&&jsxRuntime.jsxs("section",{className:"add-component-modal__section","aria-live":"polite",id:"add-component-modal-all",children:[jsxRuntime.jsx("h4",{className:"add-component-modal__section-title",children:"All Components"}),p.length?h(p):jsxRuntime.jsx("p",{className:"add-component-modal__empty",children:"No components available."})]}),!n&&!g&&jsxRuntime.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."})]})]})}const Icons=["activity","activity-heart","alert-circle","alert-triangle","anchor","archive","arrow-down","arrow-left","arrow-narrow-down-left","arrow-narrow-up-right","arrow-right","arrow-right-smooth","asterisk-01","asterisk-02","at-sign","award","battery-charging","bell-01","bell-02","bell-ringing-02","bookmark","bookmark-add","bookmark-check","bookmark-minus","bookmark-x","bubble","building-01","building-02","building-03","building-04","building-05","building-06","building-07","building-08","building-09","camera","camera-01","camera-steel","check","check-circle","check-circle-bold","check-circle-broken","check-done-01","check-done-02","check-heart","check-square","check-square-broken","check-verified-01","check-verified-02","check-verified-03","checkbox","checkv","chevron-down","chevron-down2","chevron-left","chevron-left-2","chevron-right","chevron-right-empty","chevron-right-smooth","chevron-up","circle","clock","clock-fast-forward","close","close-circle","cloud-01","cloud-blank-01","cloud-blank-02","coin","coins-02","colors","copy-01","copy-02","copy-03","copy-04","copy-05","copy-06","copy-07","corner-down-right","crypto-bold","delete-icon","diamond","dice-3","divide-01","divide-02","divide-03","document-check-bold","dots-circle","dots-grid","dots-horizontal","dots-vertical","download-01","download-02","download-03","edit-03","edit-04","edit-05","element-3","ellipse-127","exclaimation-circle","eye-off-line","face-smile","file-04","file-05","file-check-02","file-plus-01","file-shield-02","filter-funnel-01","flag-03","flash","folder","folder-plus","gallery","globe-01","globe-04","globe-bold","guard","headphones-01","headphones-02","headset-bold","heart","heart-bold","help-circle","home-2","home-line","hourglass-02","image","image-01","image-03","inbox-01","inbox-arrow-down","info-circle","keyboard-line","lamp-charge","layer","light","like-dislike","lock-03","logout","magicpen","mail","mail-01","marker","medal-star","menu","menu-04","message-circle-01","message-plus-circle","message-question-circle","message-text-circle-01","message-text-square-02","message-x-square","microphone-02","microphone-slash","mirror","moon-01","moon-bold","mouse-circle","move","notification","notification-fill","notification-text","pdf-01","pencil-01","phone","phone-01","phone-arrow-down-left","phone-arrow-up-right","phone-hang-up","phone-hangup2","phone-incoming-01","phone-outgoing-01","phone-plus","phone-x","plus","plus-circle","printer","question-mark-circle","refresh-ccw-01","refresh-cw-01","refresh-cw-04","refresh-right-square-bold","remove-circle","repeat-04","repeat-bold","ruler-pen","search","search-lg","search-md","search-refraction","send-01","send-02","send-diagonal","setting-2","settings","settings-02","settings-04","settings-2","settings-cog","share-01","share-03","share-04","share-05","share-06","share-bold","shield-01","shield-bold","solar-check","speaker","speaker-wave","speedometer-03","star","star-rounded","sun","target-03","text-input","translate","trash","trash-02","trash-03","trash-04","trush-square-bold","unlimited","user-circle","user-jogging","user-plus-01","user-square","user-x-01","user-x-02","user2","users-02","users-speaker","verify","voice-cricle","x-circle","x-close","x-sm","zap"];function IconPickerModal({value:e,onSelect:t,onClose:r,onClear:i}){const[n,o]=React.useState(""),a=React.useMemo(()=>{const e=n.trim().toLowerCase();return e?Icons.filter(t=>t.toLowerCase().includes(e)):Icons},[n]);return jsxRuntime.jsx(Modal,{onClose:r,ariaLabelledBy:"icon-picker-title",children:jsxRuntime.jsxs("div",{style:{display:"grid",gap:12},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[jsxRuntime.jsx("p",{id:"icon-picker-title",style:{margin:0,fontWeight:700},children:"Select Icon"}),jsxRuntime.jsx("div",{style:{flex:1}}),i?jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Clear"}):null,jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsxRuntime.jsx("input",{type:"text",className:"input",placeholder:"Search icons...",value:n,onChange:e=>o(e.target.value),autoFocus:!0}),jsxRuntime.jsxs("div",{style:{fontSize:12,color:"#666"},children:[a.length," / ",Icons.length,e?` • Selected: ${e}`:""]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:8,maxHeight:"60vh",overflow:"auto",paddingRight:4},children:a.map(r=>{const i=e===r;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>t(r),style:{display:"flex",alignItems:"center",gap:8,borderRadius:8,border:i?"2px solid #222":"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},"aria-label":`Select icon ${r}`,children:[jsxRuntime.jsx(Icon,{iconType:r,size:18}),jsxRuntime.jsx("span",{style:{fontSize:12,fontWeight:i?700:500,textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r,children:r})]},r)})})]})})}function isRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isNodeData$1(e){return isRecord(e)&&"string"==typeof e.type&&"children"in e}function isMainLike(e){const t=e.type;return"Main"===t||"main"===t}function stripNestedIsMain(e,t){if(null==e||"string"==typeof e)return e;if(Array.isArray(e)){let t=!1;const r=e.map(e=>{const r=stripNestedIsMain(e,!1);return r!==e&&(t=!0),r});return t?r:e}if(!isNodeData$1(e))return e;const r=e.children,i=stripNestedIsMain(r,!1),n=!0===e.isMain&&!t;return n||i!==r?{...e,...n?{isMain:!1}:null,children:i}:e}function wrapNodeInMain(e){if(isNodeData$1(e)&&isMainLike(e)){const t=stripNestedIsMain(e,!0);return!0!==t.isMain?{...t,isMain:!0}:t}const t=stripNestedIsMain(e,!1);return{type:"Main",isMain:!0,attributes:{},children:null==e?[]:t}}function safeStringify$1(e){try{return JSON.stringify(e,null,2)??""}catch{return String(e??"")}}function JsonTextEditor({value:e,onChange:t,rootName:r,readOnly:i=!1,className:n}){const o=React.useMemo(()=>safeStringify$1(e),[e]),[a,s]=React.useState(o),[l,c]=React.useState(null),[d,p]=React.useState(null),[u,h]=React.useState(e);React.useEffect(()=>{s(o),c(null),p(null),h(e)},[o,e]);const g=r?`${r}.json`:"data.json";return jsxRuntime.jsxs("div",{className:n,style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",gap:10},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,flexWrap:"wrap"},children:[jsxRuntime.jsx("div",{style:{fontSize:12,opacity:.75},children:g}),jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(a)}catch{}},children:"Copy"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a);s(JSON.stringify(e,null,2)),c(null),p(null),h(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},children:"Format"}),!i&&jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=t(e)&&"data"in e?{...e,data:wrapNodeInMain(e.data)}:wrapNodeInMain(e);s(JSON.stringify(r,null,2)),c(null),p(null),h(r)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Wrap root in Main and apply":"Read only",children:"Wrap in Main"}),!i&&jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{if(t)try{const e=JSON.parse(a);c(null),p(null),h(e);try{t(e)}catch(e){p(e instanceof Error?e.message:"Failed to apply JSON")}}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Apply JSON changes":"Read only",children:"Apply"})]})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:10,flex:1,minHeight:0},children:jsxRuntime.jsx("textarea",{value:a,onChange:e=>{const t=e.target.value;if(s(t),p(null),!i)try{const e=JSON.parse(t);c(null),h(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},readOnly:i,spellCheck:!1,style:{width:"100%",height:"100%",minHeight:320,resize:"none",border:"1px solid rgba(0,0,0,0.12)",borderRadius:10,padding:12,fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:12,lineHeight:1.5,background:"transparent",outline:"none"}})}),l?jsxRuntime.jsxs("div",{style:{fontSize:12,color:"#d12f2f"},children:["Invalid JSON: ",l]}):d?jsxRuntime.jsxs("div",{style:{fontSize:12,color:"#d12f2f"},children:["Could not apply: ",d]}):jsxRuntime.jsxs("div",{style:{fontSize:12,opacity:.7},children:["Valid JSON (",safeStringify$1(u).length.toLocaleString()," ","chars)"]})]})}function LocalicationModal({data:e,onChange:t,onClose:r}){const i=e??{};return jsxRuntime.jsxs(Modal,{onClose:r,ariaLabelledBy:"localication-modal-title",className:"modal--large modal--scrollable localication-modal",contentClassName:"localication-modal__content",children:[jsxRuntime.jsxs("div",{className:"modal__header localication-modal__header",children:[jsxRuntime.jsxs("div",{className:"localication-modal__header-main",children:[jsxRuntime.jsx("h3",{id:"localication-modal-title",className:"modal__title",children:"Localization data"}),jsxRuntime.jsx("p",{className:"localication-modal__description",children:"Manage your translations directly from the JSON structure."})]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsxRuntime.jsx("div",{className:"localication-modal__body",children:jsxRuntime.jsx("div",{className:"localication-modal__editor",children:jsxRuntime.jsx(JsonTextEditor,{rootName:"localication",value:i,onChange:e=>t(e),className:"localication-modal__json-editor"})})})]})}const colorFields=[{id:"light-bg",label:"Light Background",mode:"light",key:"backgroundColor"},{id:"light-color",label:"Light Text",mode:"light",key:"color"},{id:"dark-bg",label:"Dark Background",mode:"dark",key:"backgroundColor"},{id:"dark-color",label:"Dark Text",mode:"dark",key:"color"}];function ScreenColorsModal({appConfig:e,onChange:t,onClose:r}){const i=defaultAppConfig.screenStyle,n=(t,r)=>e.screenStyle?.[t]?.[r]??i[t][r],o=React.useMemo(()=>"Edit light/dark screen background & text colors used in the preview.",[]);return jsxRuntime.jsxs(Modal,{onClose:r,ariaLabelledBy:"screen-colors-title",contentClassName:"localication-modal__content",children:[jsxRuntime.jsxs("div",{className:"modal__header localication-modal__header",children:[jsxRuntime.jsxs("div",{className:"localication-modal__header-main",children:[jsxRuntime.jsx("h3",{id:"screen-colors-title",className:"modal__title",children:"Screen Colors"}),jsxRuntime.jsx("p",{className:"localication-modal__description",children:o})]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsxRuntime.jsx("div",{className:"localication-modal__body",children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:12},children:colorFields.map(({id:r,label:o,mode:a,key:s})=>jsxRuntime.jsxs(React.Fragment,{children:[jsxRuntime.jsx("div",{style:{alignSelf:"center"},children:o}),jsxRuntime.jsx("input",{id:r,type:"color",className:"input input--color",value:String(n(a,s)),onChange:r=>((r,n,o)=>t({...e,screenStyle:{...i,...e.screenStyle,[r]:{...i[r],...e.screenStyle?.[r],[n]:o}}}))(a,s,r.target.value)})]},r))})})]})}function randomInt(e,t){return Math.floor(Math.random()*(t-e+1))+e}function randomChoice(e){return e[randomInt(0,e.length-1)]}function randomSku(){return`com.app.${randomChoice(["premium","pro","plus","gold","starter"])}.${randomChoice(["weekly","monthly","yearly","lifetime"])}`}function randomPrice(){const e=randomChoice(["USD","EUR","GBP","TRY"]),t=`${randomChoice([1,2,3,4,5,7,9,12,19,29,49,99])}.${randomChoice([0,49,99]).toString().padStart(2,"0")}`;return{price:t,localizedPrice:`${"USD"===e?"$":"EUR"===e?"€":"GBP"===e?"£":"₺"}${t}`,currency:e}}function ProductEditModal({product:e,index:t,onSave:r,onClose:i}){const n=React.useMemo(()=>({productId:e?.productId??"",title:e?.title??"",description:e?.description??"",localizedPrice:e?.localizedPrice??"",price:e?.price??"",currency:e?.currency??""}),[e]),[o,a]=React.useState(n),s=o.productId.trim().length>0;return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"product-edit-modal-title",contentClassName:"product-edit-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsxs("h3",{id:"product-edit-modal-title",className:"modal__title",children:["Edit product #",t+1]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"product-edit-modal__body",children:[jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"productId",children:"productId"}),jsxRuntime.jsx("input",{id:"productId",className:"input",value:o.productId,onChange:e=>a(t=>({...t,productId:e.target.value})),placeholder:"com.app.subscription.monthly"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"title",children:"title"}),jsxRuntime.jsx("input",{id:"title",className:"input",value:o.title,onChange:e=>a(t=>({...t,title:e.target.value})),placeholder:"Monthly Premium"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"description",children:"description"}),jsxRuntime.jsx("textarea",{id:"description",className:"input product-edit-modal__textarea",value:o.description,onChange:e=>a(t=>({...t,description:e.target.value})),placeholder:"Full access to all features..."})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"localizedPrice",children:"localizedPrice"}),jsxRuntime.jsx("input",{id:"localizedPrice",className:"input",value:o.localizedPrice,onChange:e=>a(t=>({...t,localizedPrice:e.target.value})),placeholder:"$4.99"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"price",children:"price"}),jsxRuntime.jsx("input",{id:"price",className:"input",value:o.price,onChange:e=>a(t=>({...t,price:e.target.value})),placeholder:"4.99"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"currency",children:"currency"}),jsxRuntime.jsx("input",{id:"currency",className:"input",value:o.currency,onChange:e=>a(t=>({...t,currency:e.target.value})),placeholder:"USD"})]}),jsxRuntime.jsxs("div",{className:"form-actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e=randomPrice(),t=randomChoice(["Premium","Pro","Plus","Gold","Starter","Unlimited"]),r=randomChoice(["Weekly","Monthly","Yearly","Lifetime"]);a({productId:randomSku(),title:`${t} ${r}`,description:randomChoice(["Unlock all features.","Full access to premium content.","Remove ads and get more features.","Best value for power users."]),localizedPrice:e.localizedPrice,price:e.price,currency:e.currency})},title:"Fill with random values",children:"Random"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>r(o),disabled:!s,title:s?"Save":"productId is required",children:"Save"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Cancel"})]})]})]})}var presetsJson$1={"Embeded Paywall":[{productId:"com.app.premium.monthly",title:"Premium Monthly",description:"Unlock all premium features for a month.",localizedPrice:"$4.99",price:"4.99",currency:"USD"},{productId:"com.app.pro.yearly",title:"Pro Yearly",description:"Best value: full access for a year.",localizedPrice:"€39.99",price:"39.99",currency:"EUR"},{productId:"com.app.plus.weekly",title:"Plus Weekly",description:"Try Plus with a flexible weekly plan.",localizedPrice:"£1.99",price:"1.99",currency:"GBP"}],"type-1":[{productId:"com.app.premium.monthly",title:"Premium Monthly",description:"Unlock all premium features for a month.",localizedPrice:"$4.99",price:"4.99",currency:"USD"},{productId:"com.app.pro.yearly",title:"Pro Yearly",description:"Best value: full access for a year.",localizedPrice:"€39.99",price:"39.99",currency:"EUR"},{productId:"com.app.plus.weekly",title:"Plus Weekly",description:"Try Plus with a flexible weekly plan.",localizedPrice:"£1.99",price:"1.99",currency:"GBP"}],"type-2":[{productId:"com.app.starter.monthly",title:"Starter Monthly",description:"Basic access to get started.",localizedPrice:"$2.99",price:"2.99",currency:"USD"},{productId:"com.app.gold.monthly",title:"Gold Monthly",description:"Gold tier with extra perks.",localizedPrice:"₺149.99",price:"149.99",currency:"TRY"},{productId:"com.app.premium.yearly",title:"Premium Yearly",description:"Unlock premium for a year.",localizedPrice:"$49.99",price:"49.99",currency:"USD"},{productId:"com.app.pro.lifetime",title:"Pro Lifetime",description:"One-time purchase for lifetime access.",localizedPrice:"€99.99",price:"99.99",currency:"EUR"}],"type-3":[{productId:"com.app.plus.yearly",title:"Plus Yearly",description:"Yearly plan with a big discount.",localizedPrice:"$24.99",price:"24.99",currency:"USD"}]};const DEFAULT_PRESET_KEY$1="Embeded Paywall";function normalizeProduct(e){return{productId:e?.productId??"",title:e?.title??"",description:e?.description??"",localizedPrice:e?.localizedPrice??"",price:e?.price??"",currency:e?.currency??""}}function getPresetMap$1(){const e=presetsJson$1,t={};return Object.entries(e??{}).forEach(([e,r])=>{e&&"string"==typeof e&&Array.isArray(r)&&(t[e]=r.filter(Boolean).map(e=>normalizeProduct(e)).filter(e=>"string"==typeof e.productId))}),t}function ProductPresetsModal({current:e,onReplace:t,onAppend:r,onClose:i}){const n=React.useMemo(()=>getPresetMap$1(),[]),o=React.useMemo(()=>Object.entries(n).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY$1&&i!==DEFAULT_PRESET_KEY$1?-1:i===DEFAULT_PRESET_KEY$1&&r!==DEFAULT_PRESET_KEY$1?1:r.localeCompare(i)}),[n]);return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"product-presets-modal-title",contentClassName:"product-presets-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"product-presets-modal-title",className:"modal__title",children:"Product presets"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"product-presets-modal__body",children:[jsxRuntime.jsxs("section",{className:"product-presets-modal__section",children:[jsxRuntime.jsxs("p",{className:"product-presets-modal__section-title",children:["Current (",Array.isArray(e)?e.length:0,")"]}),jsxRuntime.jsx("p",{className:"product-presets-modal__muted",children:"Pick a preset below to replace or append to the current list."})]}),jsxRuntime.jsxs("section",{className:"product-presets-modal__section",children:[jsxRuntime.jsx("p",{className:"product-presets-modal__section-title",children:"Presets"}),o.length?jsxRuntime.jsx("div",{className:"product-presets-modal__grid",children:o.map(([e,n])=>jsxRuntime.jsxs("div",{className:"product-presets-modal__card",children:[jsxRuntime.jsxs("div",{className:"product-presets-modal__card-header",children:[jsxRuntime.jsx("p",{className:"product-presets-modal__card-title",children:e}),jsxRuntime.jsxs("p",{className:"product-presets-modal__card-count",children:[n.length," products"]})]}),jsxRuntime.jsxs("ul",{className:"product-presets-modal__card-list",children:[n.slice(0,3).map(e=>jsxRuntime.jsx("li",{className:"product-presets-modal__card-item",children:e.productId},e.productId)),n.length>3?jsxRuntime.jsxs("li",{className:"product-presets-modal__card-item product-presets-modal__muted",children:["+",n.length-3," more…"]}):null]}),jsxRuntime.jsxs("div",{className:"product-presets-modal__actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(n),i()},children:"Replace"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(n),i()},children:"Append"})]})]},e))}):jsxRuntime.jsx("p",{className:"product-presets-modal__muted",children:"No presets found."})]})]})]})}function detectKind(e){return"number"==typeof e?"number":"boolean"==typeof e?"boolean":"string"}function parseValue(e,t,r){if("boolean"===e)return"true"===t;if("number"===e){const e=t.trim();if(!e)return r;const i=e.replace(",","."),n=Number.parseFloat(i);return Number.isFinite(n)?n:r}return t}function BenefitEditModal({benefitKey:e,benefitValue:t,index:r,onSave:i,onClose:n}){const o=React.useMemo(()=>{const r=(e??"").toString(),i=detectKind(t);return{key:r,kind:i,raw:"boolean"===i?t?"true":"false":"number"===i?`${t??""}`:(t??"").toString()}},[e,t]),[a,s]=React.useState(o),l=a.key.trim().length>0;return jsxRuntime.jsxs(Modal,{onClose:n,ariaLabelledBy:"benefit-edit-modal-title",contentClassName:"benefit-edit-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsxs("h3",{id:"benefit-edit-modal-title",className:"modal__title",children:["Edit benefit #",r+1]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:n,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"benefit-edit-modal__body",children:[jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"benefitKey",children:"key"}),jsxRuntime.jsx("input",{id:"benefitKey",className:"input",value:a.key,onChange:e=>s(t=>({...t,key:e.target.value})),placeholder:"unlimited_access"})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"benefitType",children:"type"}),jsxRuntime.jsxs("select",{id:"benefitType",className:"input",value:a.kind,onChange:e=>s(t=>({...t,kind:e.target.value})),children:[jsxRuntime.jsx("option",{value:"string",children:"string"}),jsxRuntime.jsx("option",{value:"number",children:"number"}),jsxRuntime.jsx("option",{value:"boolean",children:"boolean"})]})]}),jsxRuntime.jsxs("div",{className:"form-row",children:[jsxRuntime.jsx("label",{htmlFor:"benefitValue",children:"value"}),"boolean"===a.kind?jsxRuntime.jsxs("select",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),children:[jsxRuntime.jsx("option",{value:"true",children:"true"}),jsxRuntime.jsx("option",{value:"false",children:"false"})]}):jsxRuntime.jsx("input",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),placeholder:"number"===a.kind?"7":"Unlock everything"})]}),jsxRuntime.jsxs("div",{className:"form-actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>i({key:a.key,value:parseValue(a.kind,a.raw,t)}),disabled:!l,title:l?"Save":"key is required",children:"Save"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:n,children:"Cancel"})]})]})]})}var basic={unlimited_access:!0,trial_days:7,headline:"Unlock everything"},vpn={secure_connection:!0,no_logs:!0,locations:120,headline:"Private & fast VPN"},pro={remove_ads:!0,priority_support:!0,devices:5,headline:"Go Pro"},presetsJson={"Embeded Paywall":{unlimited_access:!0,trial_days:7,headline:"Unlock everything"},basic:basic,vpn:vpn,pro:pro};const DEFAULT_PRESET_KEY="Embeded Paywall";function normalizeBenefits(e){if(!e||"object"!=typeof e||Array.isArray(e))return{};const t={};return Object.entries(e).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&("string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r||(t[i]=r))}),t}function getPresetMap(){const e=presetsJson,t={};return Object.entries(e??{}).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&(t[i]=normalizeBenefits(r))}),t}function countBenefits(e){return e&&"object"==typeof e?Object.keys(e).length:0}function BenefitPresetsModal({current:e,onReplace:t,onMerge:r,onClose:i}){const n=React.useMemo(()=>getPresetMap(),[]),o=React.useMemo(()=>Object.entries(n).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY&&i!==DEFAULT_PRESET_KEY?-1:i===DEFAULT_PRESET_KEY&&r!==DEFAULT_PRESET_KEY?1:r.localeCompare(i)}),[n]);return jsxRuntime.jsxs(Modal,{onClose:i,ariaLabelledBy:"benefit-presets-modal-title",contentClassName:"benefit-presets-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsx("h3",{id:"benefit-presets-modal-title",className:"modal__title",children:"Benefit presets"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxRuntime.jsxs("div",{className:"benefit-presets-modal__body",children:[jsxRuntime.jsxs("section",{className:"benefit-presets-modal__section",children:[jsxRuntime.jsxs("p",{className:"benefit-presets-modal__section-title",children:["Current (",countBenefits(e),")"]}),jsxRuntime.jsx("p",{className:"benefit-presets-modal__muted",children:"Pick a preset below to replace or merge into the current map."})]}),jsxRuntime.jsxs("section",{className:"benefit-presets-modal__section",children:[jsxRuntime.jsx("p",{className:"benefit-presets-modal__section-title",children:"Presets"}),o.length?jsxRuntime.jsx("div",{className:"benefit-presets-modal__grid",children:o.map(([e,n])=>{const o=Object.entries(n);return jsxRuntime.jsxs("div",{className:"benefit-presets-modal__card",children:[jsxRuntime.jsxs("div",{className:"benefit-presets-modal__card-header",children:[jsxRuntime.jsx("p",{className:"benefit-presets-modal__card-title",children:e}),jsxRuntime.jsxs("p",{className:"benefit-presets-modal__card-count",children:[o.length," benefits"]})]}),jsxRuntime.jsxs("ul",{className:"benefit-presets-modal__card-list",children:[o.slice(0,3).map(([e,t])=>jsxRuntime.jsxs("li",{className:"benefit-presets-modal__card-item",children:[e,": ",String(t)]},e)),o.length>3?jsxRuntime.jsxs("li",{className:"benefit-presets-modal__card-item benefit-presets-modal__muted",children:["+",o.length-3," more…"]}):null]}),jsxRuntime.jsxs("div",{className:"benefit-presets-modal__actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(n),i()},children:"Replace"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(n),i()},title:"Merges preset into current (preset values overwrite existing keys)",children:"Merge"})]})]},e)})}):jsxRuntime.jsx("p",{className:"benefit-presets-modal__muted",children:"No presets found."})]})]})]})}function MockableFeatureModal({featureKey:e,onClose:t}){const{products:r,addProduct:i,removeProduct:n,updateProduct:o,setProducts:a,clearProducts:s,benefits:l,setBenefits:c,clearBenefits:d,upsertBenefit:p,removeBenefit:u,renameBenefit:h}=useRenderStore(e=>({products:e.products,addProduct:e.addProduct,removeProduct:e.removeProduct,updateProduct:e.updateProduct,setProducts:e.setProducts,clearProducts:e.clearProducts,benefits:e.benefits,setBenefits:e.setBenefits,clearBenefits:e.clearBenefits,upsertBenefit:e.upsertBenefit,removeBenefit:e.removeBenefit,renameBenefit:e.renameBenefit})),[g,m]=React.useState(null),[f,y]=React.useState(!1),[C,b]=React.useState(null),[x,v]=React.useState(!1),S=Object.entries(l&&"object"==typeof l&&!Array.isArray(l)?l:{});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(Modal,{onClose:t,ariaLabelledBy:"mockable-feature-modal-title",contentClassName:"mockable-feature-modal",children:[jsxRuntime.jsxs("div",{className:"modal__header",children:[jsxRuntime.jsxs("h3",{id:"mockable-feature-modal-title",className:"modal__title",children:["Mockable: ",e]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:t,children:"Close"})]}),jsxRuntime.jsx("div",{className:"mockable-feature-modal__body",children:"products"===e?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Add product"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>y(!0),children:"Presets"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:s,disabled:0===r.length,children:"Clear"})]}),jsxRuntime.jsx("div",{style:{marginTop:12},children:r.length?jsxRuntime.jsx("ul",{style:{margin:0,paddingLeft:18},children:r.map((e,t)=>jsxRuntime.jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsxRuntime.jsx("span",{style:{flex:1},children:e?.productId?.trim()?e.productId:"(empty productId)"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>m(t),children:"Edit"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>n(t),children:"Remove"})]},`${t}-${e?.productId??""}`))}):jsxRuntime.jsx("p",{style:{margin:0,opacity:.7},children:"No products yet."})})]}):"benefits"===e?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e="benefit",t=new Set(S.map(([e])=>e));let r=`${e}_1`,i=1;for(;t.has(r);)i+=1,r=`${e}_${i}`;p(r,!0),b(r)},children:"Add benefit"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>v(!0),children:"Presets"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:d,disabled:0===S.length,children:"Clear"})]}),jsxRuntime.jsx("div",{style:{marginTop:12},children:S.length?jsxRuntime.jsx("ul",{style:{margin:0,paddingLeft:18},children:S.map(([e,t],r)=>jsxRuntime.jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsxRuntime.jsxs("span",{style:{flex:1,wordBreak:"break-word"},children:[e,": ",String(t)]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>b(e),children:"Edit"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>u(e),children:"Remove"})]},`${r}-${e}`))}):jsxRuntime.jsx("p",{style:{margin:0,opacity:.7},children:"No benefits yet."})})]}):jsxRuntime.jsxs("p",{style:{margin:0,opacity:.7},children:["No mock UI yet for “",e,"”."]})})]}),"products"===e&&null!==g?jsxRuntime.jsx(ProductEditModal,{index:g,product:r[g],onClose:()=>m(null),onSave:e=>{o(g,e),m(null)}}):null,"products"===e&&f?jsxRuntime.jsx(ProductPresetsModal,{current:r,onClose:()=>y(!1),onReplace:e=>a(e),onAppend:e=>a([...r??[],...e??[]])}):null,"benefits"===e&&null!==C?jsxRuntime.jsx(BenefitEditModal,{index:Math.max(0,S.findIndex(([e])=>e===C)),benefitKey:C,benefitValue:l?.[C]??"",onClose:()=>b(null),onSave:({key:e,value:t})=>{const r=e.trim();C!==r&&h(C,r),p(r,t),b(null)}}):null,"benefits"===e&&x?jsxRuntime.jsx(BenefitPresetsModal,{current:l,onClose:()=>v(!1),onReplace:e=>c(e),onMerge:e=>c({...l??{},...e??{}})}):null]})}function IconTypePickerField({value:e,onChange:t}){const[r,i]=React.useState(!1),n="string"==typeof e?e:void 0;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>i(!0),className:"attributes-editor__picker-button",children:[jsxRuntime.jsxs("span",{className:"attributes-editor__picker-button-left",children:[n?jsxRuntime.jsx(Icon,{iconType:n,size:18}):null,jsxRuntime.jsx("span",{className:"attributes-editor__picker-button-label",children:n??"Select icon"})]}),jsxRuntime.jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),r?jsxRuntime.jsx(IconPickerModal,{value:n,onSelect:e=>{t(e),i(!1)},onClose:()=>i(!1),onClear:()=>{t(void 0),i(!1)}}):null]})}function FontFamilyPickerField({name:e,value:t,onChange:r,fonts:i,loadedFonts:n,markFontLoaded:o,addError:a}){const[s,l]=React.useState(!1),[c,d]=React.useState(!1),[p,u]=React.useState(null),h="string"==typeof t&&t.trim().length>0?t.trim():void 0,g=Array.isArray(i)?i:[],m=Array.isArray(n)?n:[],f=React.useMemo(()=>`${g.length} fonts`,[g.length]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{u(null),l(!0)},className:"attributes-editor__picker-button",children:[jsxRuntime.jsx("span",{className:"attributes-editor__picker-button-label attributes-editor__picker-button-label--fill",children:h??"Select font"}),jsxRuntime.jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),s?jsxRuntime.jsx(Modal,{ariaLabelledBy:"font-family-picker-title",onClose:()=>{c||l(!1)},closeOnOverlayClick:!c,closeOnEsc:!c,children:jsxRuntime.jsxs("div",{className:"attributes-editor__font-modal",children:[jsxRuntime.jsxs("div",{className:"attributes-editor__font-modal-header",children:[jsxRuntime.jsx("p",{id:"font-family-picker-title",className:"attributes-editor__font-modal-title",children:"Select Font"}),jsxRuntime.jsx("div",{className:"attributes-editor__font-modal-spacer"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(void 0),u(null),l(!1)},disabled:c,children:"Clear"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>l(!1),disabled:c,children:"Close"})]}),c?jsxRuntime.jsx("div",{className:"attributes-editor__font-modal-note",children:"Loading font…"}):null,p?jsxRuntime.jsx("div",{className:"attributes-editor__font-modal-error",children:p}):null,jsxRuntime.jsx("div",{className:"attributes-editor__font-modal-note",children:f}),jsxRuntime.jsx("div",{className:"attributes-editor__font-grid",children:g.map(e=>{const t=e?.name;if("string"!=typeof t||!t.trim())return null;const i=t.trim(),n=h===i,s=m.includes(i),l=["attributes-editor__font-option",n?"attributes-editor__font-option--active":""].filter(Boolean).join(" ");return jsxRuntime.jsxs("button",{type:"button",disabled:c,onClick:async()=>{if(u(null),r(i),!s){d(!0);try{fontsDebug.info("AttributesEditor: loadFontFamily start",{familyName:i}),await loadFontFamily(g,i,{forceFetch:!0}),o(i),fontsDebug.info("AttributesEditor: loadFontFamily success",{familyName:i})}catch(e){const t=e instanceof Error?e.message:String(e);u(`Failed to load "${i}": ${t}`),a(`Failed to load font "${i}": ${t}`)}finally{d(!1)}}},className:l,"aria-label":`Select font ${i}`,children:[jsxRuntime.jsx("span",{className:"attributes-editor__font-option-name",title:i,children:i}),jsxRuntime.jsx("span",{className:"attributes-editor__font-option-status",children:s?"Loaded":"Not loaded"})]},i)})})]})}):null]})}function getPreferredOrderedSizeEntries(e){const t=["width","height","minWidth","minHeight","maxWidth","maxHeight"];return[...e].sort((e,r)=>{const i=t.indexOf(e.name),n=t.indexOf(r.name),o=-1===i?Number.MAX_SAFE_INTEGER:i,a=-1===n?Number.MAX_SAFE_INTEGER:n;return o!==a?o-a:e.name.localeCompare(r.name)})}function getSpecialSectionTitle(e){const t=e.key,r=e.meta;return{title:r?.label&&r.label.trim().length>0?r.label:t.charAt(0).toUpperCase()+t.slice(1),description:r?.description}}function AttributesEditorView(e){const{isInvalidNode:t,componentTitle:r,componentDescription:i,mockableFeatureKeys:n,activeMockableFeature:o,setActiveMockableFeature:a,tabs:s,tabContentInfo:l,activeTab:c,setActiveTab:d,firstAvailableTab:p,activeEntries:u,activeSpecialSections:h,hasTitleField:g,hasDescriptionField:m,hasStringChildren:f,childrenValue:y,handleChildrenChange:C,attributeMeta:b,data:x,getAttributeValue:v,handleAttributeChange:S,projectColorsForPicker:w,layoutContext:k,viewAttributes:_,attributes:T,projectFonts:R,loadedFonts:M,markFontLoaded:E,addError:O}=e,P=jsxRuntime.jsxs("div",{className:"attributes-editor__component-meta",children:[jsxRuntime.jsx("p",{className:"attributes-editor__component-title",children:r}),i?jsxRuntime.jsx("p",{className:"attributes-editor__component-description",children:i}):null]}),j=v("title"),L=v("description"),A=!t&&(g||m)?jsxRuntime.jsxs("section",{className:"attributes-editor__top-fields",children:[g?jsxRuntime.jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsxRuntime.jsx("label",{className:"attributes-editor__field-label",htmlFor:"title",children:"Title (max 20 characters for display purposes)"}),jsxRuntime.jsx("input",{id:"title",className:"input",type:"text",maxLength:20,value:"string"==typeof j?j:"",onChange:e=>S("title",e.target.value)})]}):null,m?jsxRuntime.jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsxRuntime.jsx("label",{className:"attributes-editor__field-label",htmlFor:"description",children:"Description (for display purposes)"}),jsxRuntime.jsx("input",{id:"description",className:"input",type:"text",value:"string"==typeof L?L:"",onChange:e=>S("description",e.target.value)})]}):null]}):null,B=n.length>0?jsxRuntime.jsxs("section",{className:"attributes-editor__mockable",children:[jsxRuntime.jsx("p",{className:"attributes-editor__mockable-title",children:"Mockable"}),jsxRuntime.jsx("table",{className:"attributes-editor__mockable-table",children:jsxRuntime.jsx("tbody",{children:n.map(e=>jsxRuntime.jsxs("tr",{className:"attributes-editor__mockable-row",children:[jsxRuntime.jsx("td",{className:"attributes-editor__mockable-name",children:e}),jsxRuntime.jsx("td",{className:"attributes-editor__mockable-action",children:jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>a(e),children:e})})]},e))})})]}):null,z=jsxRuntime.jsx("div",{className:"attributes-editor__tabs",children:s.map(e=>{const t=e.id===c,r=l[e.id],i=r.baseCount+r.specialCount,n=0===i,o=["attributes-editor__tab-button",t?"attributes-editor__tab-button--active":""].filter(Boolean).join(" ");return jsxRuntime.jsxs("button",{type:"button",onClick:()=>!n&&d(e.id),disabled:n,className:o,children:[e.label,i>0?` (${i})`:""]},e.id)})}),I=f?jsxRuntime.jsxs("div",{className:"attributes-editor__field-wrapper attributes-editor__field-wrapper--children",children:[jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:"Text"}),jsxRuntime.jsx("input",{type:"text",className:"attributes-editor__text-input",value:y,onChange:e=>C(e.target.value)})]}):null,V=React.useMemo(()=>{const e=l[p];return(e?.baseCount??0)+(e?.specialCount??0)>0||f&&void 0!==y},[y,p,f,l]);return t?null:jsxRuntime.jsxs("div",{className:"attributes-editor",children:[P,A,B,z,I,h.map(function(e){if("size"===e.key){const{title:t,description:r}=getSpecialSectionTitle(e),i=getPreferredOrderedSizeEntries(e.entries);return jsxRuntime.jsxs("section",{className:"special-category-section",children:[jsxRuntime.jsx("div",{className:"special-category-section__header",children:jsxRuntime.jsx("p",{className:"special-category-section__title",children:t})}),r?jsxRuntime.jsx("p",{className:"special-category-section__description",children:r}):null,jsxRuntime.jsx("div",{className:"attributes-editor__size-grid",children:i.map(e=>{const t=b?.[e.name]?.label??e.name,r=b?.[e.name]?.description,i=toPreferredScale(b?.[e.name]?.preferedScale),n=v(e.name),o=isBooleanFieldType(e.type),a=["attributes-editor__field-wrapper",o?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsxRuntime.jsx(FieldInfoTooltip,{description:r,children:jsxRuntime.jsxs("div",{className:`${a} attributes-editor__size-grid-item`,children:[o?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:t}),"iconType"===e.type?jsxRuntime.jsx(IconTypePickerField,{name:e.name,value:n,onChange:t=>S(e.name,t)}):"fontFamily"===e.type?jsxRuntime.jsx(FontFamilyPickerField,{name:e.name,value:n,onChange:t=>S(e.name,t),fonts:R,loadedFonts:M,markFontLoaded:E,addError:O}):jsxRuntime.jsx(Field,{name:e.name,type:e.type,value:n,onChange:t=>S(e.name,t),componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:_,label:o?t:void 0,preferredScale:i})]})},e.name)})})]},e.key)}return jsxRuntime.jsx(SpecialCategorySection,{category:e.key,entries:e.entries,attributeMeta:b,attributes:T,getAttributeValue:v,onAttributeChange:S,componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:_,meta:e.meta},e.key)}),u.map(function(e){const t=e.name,r=e.type,i=b?.[t]?.label??t,n=b?.[t]?.description,o=toPreferredScale(b?.[t]?.preferredScale??b?.[t]?.preferedScale),a=isBooleanFieldType(r),s=["attributes-editor__field-wrapper",a?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" "),l=v(t);return jsxRuntime.jsx(FieldInfoTooltip,{description:n,children:jsxRuntime.jsxs("div",{className:s,children:[a?null:jsxRuntime.jsx("p",{className:"attributes-editor__field-label",children:i}),"iconType"===r?jsxRuntime.jsx(IconTypePickerField,{name:t,value:l,onChange:e=>S(t,e)}):"fontFamily"===r?jsxRuntime.jsx(FontFamilyPickerField,{name:t,value:l,onChange:e=>S(t,e),fonts:R,loadedFonts:M,markFontLoaded:E,addError:O}):jsxRuntime.jsx(Field,{name:t,type:r,value:l,onChange:e=>S(t,e),componentType:x?.type,projectColors:w,layoutContext:k,viewAttributes:_,label:a?i:void 0,preferredScale:o})]})},t)}),V?null:jsxRuntime.jsx("div",{className:"attributes-editor__empty-state",children:"No editable attributes"}),o?jsxRuntime.jsx(MockableFeatureModal,{featureKey:o,onClose:()=>a(null)}):null]})}function isPlainObject$2(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function getStyleBagSourceAndValue(e){const t=e??{},r=t.styles;if(isPlainObject$2(r))return{source:"styles",styleBag:r};const i=t.style;return isPlainObject$2(i)?{source:"style",styleBag:i}:{source:"none",styleBag:void 0}}function isAttributeTypeSpec(e){return"string"==typeof e||Array.isArray(e)}function getNestedStyleSchema(e){const t=e.styles??e.style;if(!isPlainObject$2(t))return;const r={};for(const[e,i]of Object.entries(t))isAttributeTypeSpec(i)&&(r[e]=i);return Object.keys(r).length?r:void 0}function buildAttributesEditorEntries(e,t){const r=getNestedStyleSchema(e),i=Object.keys(t??{}),n=Object.keys(e).filter(e=>"style"!==e&&"styles"!==e),o=Object.keys(r??{}),a=new Set([...i,...n,...o]),s=Array.from(a).filter(e=>"style"!==e&&"styles"!==e),l=[];return s.forEach(t=>{const i=e[t],n=r?.[t],o=isAttributeTypeSpec(i)?i:n;o&&l.push({name:t,type:o})}),l}function isValidStyleBagValue(e){const t=e,r=t?.styles,i=t?.style;return!(null!=r&&!isPlainObject$2(r)||null!=i&&!isPlainObject$2(i))}function findLegacyFlatStyleKeys(e,t){return isPlainObject$2(e)?Object.keys(e).filter(e=>"style"!==e&&"styles"!==e&&t(e)):[]}function isPlainObject$1(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function buildProjectColorsFallback(e){const t=new Set,r=e?.screenStyle;if([r?.light,r?.dark].filter(Boolean).forEach(e=>{["backgroundColor","color","seperatorColor"].forEach(r=>{const i=e?.[r];((e,t)=>{if("string"!=typeof t)return;const r=t.trim();r&&e.add(r)})(t,i)})}),0===t.size)return;const i={};return Array.from(t).forEach((e,t)=>{i[`FALLBACK_${t+1}`]=e}),{STATIC_COLORS:i}}function useAttributesEditorModel({node:e,onChange:t,projectColors:r}){const i=!e||isNodeString(e),n=React.useMemo(()=>i?{type:"View",children:null,attributes:{}}:e,[i,e]),o=useNode(n),{appConfig:a,fonts:s,loadedFonts:l,markFontLoaded:c,addError:d}=useRenderStore(e=>({appConfig:e.appConfig,fonts:e.fonts,loadedFonts:e.loadedFonts,markFontLoaded:e.markFontLoaded,addError:e.addError})),p=React.useMemo(()=>getAttributeSchema(o?.type)??{},[o?.type]),u=getAttributeMeta(o?.type),h=React.useMemo(()=>o?.attributes??{},[o?.attributes]),g=React.useMemo(()=>getStyleAttributeKeySet(),[]),m=React.useMemo(()=>getStyleBagSourceAndValue(h),[h]),f=m.styleBag,y=React.useCallback(e=>{const t=u?.[e]?.category;return"style"===t||g.has(e)},[u,g]),C=React.useCallback(e=>!!y(e)||!(!f||!Object.prototype.hasOwnProperty.call(f,e)),[y,f]),b=React.useMemo(()=>findLegacyFlatStyleKeys(h,y),[h,y]),x=React.useMemo(()=>!isValidStyleBagValue(h),[h]);React.useEffect(()=>{const e="style"===m.source;(0!==b.length||x||e)&&logger.warn("AttributesEditor","Legacy/unmigrated attributes detected. This editor expects schemaVersion=2 (style nested under attributes.styles). Please run migrations.",{componentType:o?.type,nodeKey:n.key,legacyFlatStyleKeys:b,hasInvalidStyleBag:x,styleBagSource:m.source})},[n,o?.type,x,b,m.source]);const v=React.useCallback(e=>C(e)?f?.[e]:h?.[e],[h,C,f]),S=React.useMemo(()=>r||buildProjectColorsFallback(a),[a,r]),w=React.useMemo(()=>"View"===o?.type?h:void 0,[h,o?.type]),k=React.useMemo(()=>({flexDirection:f?.flexDirection,alignItems:f?.alignItems,justifyContent:f?.justifyContent}),[f?.flexDirection,f?.alignItems,f?.justifyContent]),_=React.useMemo(()=>o?.type?getPatternByType(o.type):void 0,[o?.type]),T=_?.meta,R=T?.label??o?.type??"Component",M=T?.description,E="title"===_?.pattern?.title,O="description"===_?.pattern?.description,P=React.useMemo(()=>buildAttributesEditorEntries(p,u).filter(({type:e})=>"string"!=typeof e||"never"!==e),[u,p]),j=React.useMemo(()=>T?.hideAllAttributes?P.filter(({name:e})=>{const t=u?.[e];return!0===t?.forceVisible||!0===t?.override}):P,[u,T?.hideAllAttributes,P]),L=React.useMemo(()=>{const e=T?.mockableFeatures;return e&&"object"==typeof e?Object.entries(e).filter(([,e])=>!0===e).map(([e])=>e).filter(e=>"string"==typeof e&&e.trim().length>0).sort((e,t)=>e.localeCompare(t)):[]},[T?.mockableFeatures]),[A,B]=React.useState(null),z=React.useMemo(()=>{const e={style:[],container:[],other:[]},t={},r=e=>u?.[e]?.sort??Number.MAX_SAFE_INTEGER,i=(e,t)=>{const i=r(e.name)-r(t.name);return 0!==i?i:e.name.localeCompare(t.name)};return j.forEach(({name:r,type:i})=>{const n=u?.[r],o=n?.specialCategory;if("string"==typeof o){const e=o.trim();if(e)return t[e]||(t[e]=[]),void t[e].push({name:r,type:i})}const a=n?.category;e["style"===a?"style":"container"===a?"container":"other"].push({name:r,type:i})}),Object.values(e).forEach(e=>e.sort(i)),Object.values(t).forEach(e=>e.sort(i)),{grouped:e,specialGroups:t}},[u,j]),{grouped:I,specialGroups:V}=z,D=React.useMemo(()=>{const e={style:[],container:[],other:[]},t=(e,t)=>{const r=(e.meta?.sort??Number.MAX_SAFE_INTEGER)-(t.meta?.sort??Number.MAX_SAFE_INTEGER);return 0!==r?r:e.key.localeCompare(t.key)};return Object.entries(V).forEach(([t,r])=>{if(!r.length)return;const i=T?.specialCategories?.[t];e["style"===i?.category?"style":"container"===i?.category?"container":"other"].push({key:t,entries:r,meta:i})}),Object.keys(e).forEach(r=>{e[r].sort(t)}),e},[T?.specialCategories,V]),N=React.useMemo(()=>[{id:"container",label:"Container",entries:I.container},{id:"style",label:"Styles",entries:I.style},{id:"other",label:"Others",entries:I.other}],[I]),F=React.useMemo(()=>{const e={style:{baseCount:0,specialCount:0},container:{baseCount:0,specialCount:0},other:{baseCount:0,specialCount:0}};return N.forEach(t=>{e[t.id].baseCount=t.entries.length}),Object.keys(D).forEach(t=>{e[t].specialCount=D[t].reduce((e,t)=>e+t.entries.length,0)}),e},[D,N]),H=React.useMemo(()=>N.find(e=>{const t=F[e.id];return t.baseCount+t.specialCount>0})?.id??"other",[F,N]),[W,$]=React.useState(H);React.useEffect(()=>{$(e=>{const t=F[e];return t&&t.baseCount+t.specialCount>0?e:H})},[H,F]);const G=N.find(e=>e.id===W)?.entries??N.find(e=>e.id===H)?.entries??[],U=D[W]??[],Z=React.useCallback((e,r)=>{const i={...n?.attributes??{}??{}};if(y(e)){const t={...isPlainObject$1(i.styles)?i.styles:isPlainObject$1(i.style)?i.style:{},[e]:r};i.styles=t,delete i.style,e in i&&delete i[e]}else i[e]=r;const o={...n,attributes:i};t(o)},[n,y,t]),Y=React.useCallback(e=>{const r={...n,children:e};t(r)},[n,t]),K=!!_?.pattern&&"string"===_.pattern.children,q="string"==typeof n.children?n.children:"";return{isInvalidNode:i,baseData:n,data:o,appConfig:a,projectFonts:s,loadedFonts:l,markFontLoaded:c,addError:d,schema:p,attributeMeta:u,componentTitle:R,componentDescription:M,patternForType:_,componentMeta:T,attributes:h,styleBag:f,projectColorsForPicker:S,viewAttributes:w,layoutContext:k,getAttributeValue:v,handleAttributeChange:Z,handleChildrenChange:Y,tabs:N,tabContentInfo:F,firstAvailableTab:H,activeTab:W,setActiveTab:$,activeEntries:G,specialSectionsByTab:D,activeSpecialSections:U,mockableFeatureKeys:L,activeMockableFeature:A,setActiveMockableFeature:B,hasTitleField:E,hasDescriptionField:O,hasStringChildren:K,childrenValue:q}}function AttributesEditor(e){useLogRender("AttributesEditor");const t=useAttributesEditorModel(e),r=t.attributes?.title,i=t.hasTitleField,n=React.useRef(t.handleAttributeChange);return n.current=t.handleAttributeChange,React.useEffect(()=>{i&&"string"==typeof r&&r.length>20&&n.current("title",r.slice(0,20))},[i,r]),jsxRuntime.jsx(AttributesEditorView,{...t})}function deleteNodeFromTree(e,t){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=[];for(const n of e){if(n===t){r=!0;continue}const e=deleteNodeFromTree(n,t);e!==n&&(r=!0),i.push(e)}return r?i:e}const r=e;if("children"in r){const i=r.children;if(!i)return e;if(Array.isArray(i)){let n=!1;const o=[];for(const e of i){if(e===t){n=!0;continue}const r=deleteNodeFromTree(e,t);r!==e&&(n=!0),o.push(r)}return n?{...r,children:o}:e}if(i===t)return{...r,children:""};const n=deleteNodeFromTree(i,t);if(n!==i)return{...r,children:n}}return e}function isNodeRecord(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function findNodeByKey(e,t){if(!t)return null;if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKey(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKey(r.children,t):null}function replaceNode(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=replaceNode(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>replaceNode(e,t,r)):replaceNode(e,t,r);if(n!==e)return{...i,children:n}}return e}function AttributesEditorPanel({attributes:e,onChange:t,projectColors:r}){useLogRender("AttributesEditorPanel");const{current:i,setCurrent:n}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent})),o=React.useRef(e);o.current=e;const a=React.useRef(i);a.current=i;const s=React.useRef(t);s.current=t;const l=React.useCallback(e=>{const t=o.current,r=a.current;if(!r)return;const i=replaceNode(t,r,e);s.current(i),n(e)},[n]);if(!i)return null;const c="object"==typeof i&&!Array.isArray(i)&&"key"in i?i.key:void 0,d=(c&&e?findNodeByKey(e,c):null)??i;return jsxRuntime.jsx("div",{className:"attributes-editor-panel",children:jsxRuntime.jsx(AttributesEditor,{node:d,onChange:l,projectColors:r},c??void 0)})}function Breadcrumb({items:e,separator:t="/",ariaLabel:r="Breadcrumb",onBack:i,backLabel:n="Back"}){return useLogRender("Breadcrumb"),jsxRuntime.jsxs("nav",{className:"breadcrumb","aria-label":r,children:[i&&jsxRuntime.jsxs("button",{type:"button",className:"breadcrumb__back",onClick:i,"aria-label":"Go back",children:[jsxRuntime.jsx("span",{className:"breadcrumb__back-icon","aria-hidden":!0,children:"←"}),jsxRuntime.jsx("span",{children:n})]}),jsxRuntime.jsx("ol",{className:"breadcrumb__list",children:e.map((r,i)=>{const n=i===e.length-1,o=!n&&(r.to||r.onClick);return jsxRuntime.jsxs("li",{className:"breadcrumb__item "+(o?"breadcrumb__item--clickable":""),onClick:o?r.onClick:void 0,role:o?"button":void 0,tabIndex:o?0:void 0,onKeyDown:o&&r.onClick?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r.onClick?.())}:void 0,children:[i>0&&jsxRuntime.jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:t}),n||!r.to&&!r.onClick?jsxRuntime.jsx("span",{className:"breadcrumb__current","aria-current":"page",children:r.label}):jsxRuntime.jsx("span",{className:"breadcrumb__link",children:r.label})]},`${r.label}-${i}`)})})]})}function BuilderButton({node:e,onClick:t,onDelete:r,onMoveUp:i,onMoveDown:n,childrenCount:o,onMore:a}){const[s,l]=React.useState(!1),c=React.useRef(null),d=React.useMemo(()=>`builder-node-actions-${Math.random().toString(36).slice(2,9)}`,[]);if(React.useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]),isNodeNullOrUndefined(e))return jsxRuntime.jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(e))return jsxRuntime.jsx("div",{className:"builder__text",children:e});const p=e;let u="";p.attributes?.condition&&(u=`${p.attributes.condition} ${p.attributes.conditionVariable??""}`.trim());const h=getPatternByType(p.type)?.meta?.label?.trim(),g=h&&h.length>0?h:p.type,m=u.trim()?u:"",f="string"==typeof p.attributes?.title?p.attributes.title.trim():"",y=f.length>0,C=y?f:g,b=y||m.length>0||"number"==typeof o;return jsxRuntime.jsxs("div",{className:"builder__button",children:[(i||n)&&jsxRuntime.jsxs("div",{className:"builder__sort-controls",children:[jsxRuntime.jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),i?.()},disabled:!i,"aria-label":"Move up",children:"↑"}),jsxRuntime.jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),n?.()},disabled:!n,"aria-label":"Move down",children:"↓"})]}),jsxRuntime.jsx("button",{type:"button",className:"builder__button-link",onClick:t,children:C}),jsxRuntime.jsxs("div",{className:"builder__button-actions",ref:c,children:[jsxRuntime.jsx("button",{type:"button",className:"builder__button-actions-trigger","aria-label":"Open node actions","aria-haspopup":"menu","aria-expanded":s,"aria-controls":d,onClick:e=>{e.stopPropagation(),l(e=>!e)},children:jsxRuntime.jsx(Icon,{iconType:"chevron-right",size:16})}),s&&jsxRuntime.jsxs("ul",{id:d,className:"builder__button-actions-menu",role:"menu","aria-label":"Node actions",children:[a?jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{type:"button",className:"builder__button-actions-item",role:"menuitem",onClick:e=>{e.stopPropagation(),a(),l(!1)},children:"More"})}):null,jsxRuntime.jsx("li",{role:"none",children:jsxRuntime.jsx("button",{type:"button",className:"builder__button-actions-item builder__button-actions-item--danger",role:"menuitem",disabled:!r,onClick:t=>{if(t.stopPropagation(),!r)return;window.confirm("Do you want to delete?")&&(r&&(isNodeNullOrUndefined(e)||isNodeString(e)||r(e)),l(!1))},children:"Delete"})})]})]}),b&&jsxRuntime.jsxs("span",{className:"builder__button-condition",children:[y||m.length>0?jsxRuntime.jsx("span",{className:"builder__button-condition-text",children:y?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("small",{children:g}),m?` · ${m}`:""]}):m}):jsxRuntime.jsx("span",{className:"builder__button-condition-text"}),"number"==typeof o?jsxRuntime.jsxs("span",{className:"builder__button-children-count",children:[o," children"]}):null]})]})}function BuilderTreeNode({node:e,depthRemaining:t,onClick:r,onDelete:i,onMoveUp:n,onMoveDown:o}){const a=getNodeChildren(e),s=a.length>0,l=s&&t<=0?a.length:void 0,c=s&&t<=0?()=>r(e):void 0,d=jsxRuntime.jsx(BuilderButton,{onClick:()=>{r(e)},node:e,onDelete:i,onMoveUp:n,onMoveDown:o,childrenCount:l,onMore:c});return s?t<=0?jsxRuntime.jsx("div",{className:"builder__children",children:d}):jsxRuntime.jsxs("div",{className:"builder__children",children:[d,a.map((e,n)=>jsxRuntime.jsx(BuilderTreeNode,{node:e,depthRemaining:t-1,onClick:r,onDelete:i},n))]}):d}function BuilderComponent({node:e,onClick:t,onAdd:r,onDelete:i,onReorder:n,onMoveChildUp:o,onMoveChildDown:a,maxNestedDepth:s}){if(isNodeString(e))return jsxRuntime.jsxs("div",{className:"builder__text",children:[e," (Please define a node)"]});const l=r&&jsxRuntime.jsxs("button",{type:"button",className:"editor-button builder__add-button",onClick:r,children:[jsxRuntime.jsx("span",{className:"builder__add-button-icon","aria-hidden":"true",children:"+"}),jsxRuntime.jsx("span",{children:"Add component"})]});if(isNodeArray(e)){const r=e,o=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4),a=(e,t)=>{if(!n)return;const i=e+t;if(i<0||i>=r.length)return;const o=[...r],[a]=o.splice(e,1);o.splice(i,0,a),n(r,o)};return jsxRuntime.jsxs("div",{className:"builder__list",children:[r.map((e,s)=>jsxRuntime.jsx("div",{className:"builder__list-item",children:jsxRuntime.jsx(BuilderTreeNode,{node:e,depthRemaining:o,onClick:t,onDelete:i,onMoveUp:n&&s>0?()=>a(s,-1):void 0,onMoveDown:n&&s<r.length-1?()=>a(s,1):void 0})},s)),l]})}const c=e,d=c?.children,p=isNodeArray(d),u=d?p?d:[d]:null,h=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4);return jsxRuntime.jsxs("div",{className:"builder__node",children:[jsxRuntime.jsxs("div",{className:"builder__children",children:[jsxRuntime.jsx(BuilderButton,{onClick:()=>{t(e)},node:e,onDelete:i}),u&&u.map((r,n)=>jsxRuntime.jsx(BuilderTreeNode,{node:r,depthRemaining:h,onClick:t,onDelete:i,onMoveUp:o&&p&&n>0?()=>o(e,n):void 0,onMoveDown:a&&p&&n<u.length-1?()=>a(e,n):void 0},n))]}),l]})}function Builder({data:e,setData:t,current:r,setCurrent:i,onDeleteNode:n}){useLogRender("Builder");const[o,a]=React.useState(!1),s=useRenderStore(e=>e.listMaxNested),l=React.useMemo(()=>collectNodeKeys(e),[e]),c=Number.isFinite(s)&&s>0?Math.floor(s):5,d=React.useMemo(()=>{const t=findNodePath(e,r);return t.length?t:isNodeNullOrUndefined(r)?isNodeNullOrUndefined(e)?[]:[e]:[r]},[e,r]),p=React.useCallback(e=>{i(e)},[i]),u=React.useMemo(()=>d.map((e,t)=>({label:getNodeLabel(e),onClick:t===d.length-1?void 0:()=>p(e)})),[d,p]),h=React.useCallback(()=>{d.length<2||p(d[d.length-2])},[d,p]),g=React.useCallback(n=>{const o=_(n,new Set(l));if(isNodeNullOrUndefined(r)){if(isNodeNullOrUndefined(e)||isNodeString(e))return t(o),void i(o);if(Array.isArray(e)){const r=[...e,o];return t(r),void i(r)}const r=e,n={...r,children:appendChild(r.children,o)};return t(n),void i(n)}if(isNodeArray(r)){const n=[...r,o],a=k(e,r,n);return t(a),void i(n)}if(isNodeString(r))return void(r===e&&(t(o),i(o)));const a=r,s={...a,children:appendChild(a.children,o)},c=k(e,r,s);t(c),i(s)},[r,e,t,i,l]),m=React.useMemo(()=>function(t){if(isNodeNullOrUndefined(t))return[...allcomponentNames];if(isNodeArray(t)&&0===t.length)return[...allcomponentNames];if(isNodeString(t))return t===e?[...allcomponentNames]:[];const r=t.type;if("OnboardButtons"===r)return["OnboardButton"];const i=getPatternByType(r)?.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[]}(r),[r]),f=React.useMemo(()=>isNodeNullOrUndefined(r)||isNodeString(r)||isNodeArray(r)?null:r.type??null,[r]),y=m.length>0||null==e||Array.isArray(e)&&0===e.length,C=React.useCallback(()=>{y&&a(!0)},[y]),b=React.useCallback(()=>{a(!1)},[]),x=React.useCallback(e=>{g(e),a(!1)},[g]),v=React.useCallback((n,o)=>{const a=k(e,n,o);t(a),r===n&&i(o)},[r,e,i,t]),S=React.useCallback((n,o)=>{if(isNodeNullOrUndefined(n)||isNodeString(n)||isNodeArray(n))return;const a=n,s=a.children;if(!Array.isArray(s))return;if(o<=0||o>=s.length)return;const l=[...s],[c]=l.splice(o,1);l.splice(o-1,0,c);const d={...a,children:l},p=k(e,n,d);t(p),r===n&&i(d)},[r,e,i,t]),w=React.useCallback((n,o)=>{if(isNodeNullOrUndefined(n)||isNodeString(n)||isNodeArray(n))return;const a=n,s=a.children;if(!Array.isArray(s))return;if(o<0||o>=s.length-1)return;const l=[...s],[c]=l.splice(o,1);l.splice(o+1,0,c);const d={...a,children:l},p=k(e,n,d);t(p),r===n&&i(d)},[r,e,i,t]);function k(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const n=e.map(e=>{const n=k(e,t,r);return n!==e&&(i=!0),n});return i?n:e}const i=e;if("children"in i){const e=i.children,n=Array.isArray(e)?e.map(e=>k(e,t,r)):k(e,t,r);if(n!==e)return{...i,children:n}}return e}function _(e,t){const r=getPatternByType(e)?.pattern,i=getDefaultsForType(e)??{},n=r?.children;let o="";do{o=generateRandomKeyForNode(e)}while(t.has(o));if(t.add(o),"CarouselProvider"===e)return{type:e,key:o,children:_("Carousel",t),attributes:{...i}};let a=null;return a="never"===n?null:"string"===n?"":"node"===n||Array.isArray(n)&&n.includes("node")?null:"string"==typeof n?[_(n,t)]:null,{type:e,key:o,children:a,attributes:{...i}}}return jsxRuntime.jsxs("div",{className:"builder",children:[jsxRuntime.jsx(Breadcrumb,{items:u,onBack:d.length>1?h:void 0}),jsxRuntime.jsx(BuilderComponent,{onClick:p,onAdd:y?C:void 0,onDelete:n,onReorder:v,onMoveChildUp:S,onMoveChildDown:w,maxNestedDepth:c,node:r}),o&&jsxRuntime.jsx(AddComponentModal,{allowedChildTypes:m,parentType:f,onSelect:x,onClose:b})]})}function appendChild(e,t){return Array.isArray(e)?[...e,t]:null==e||"string"==typeof e?[t]:[e,t]}function getNodeChildren(e){if(isNodeNullOrUndefined(e)||isNodeString(e)||isNodeArray(e))return[];const t=e.children;return t?Array.isArray(t)?t:[t]:[]}function getNodeLabel(e){if(isNodeNullOrUndefined(e))return"Empty";if(isNodeString(e))return e;if(isNodeArray(e))return"Collection";const t=e,r=t.attributes?.title;return"string"==typeof r&&r.trim().length>0?r:t.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 r of e){const e=findNodePath(r,t);if(e.length)return e}return[]}const r=e.children;if(!r)return[];const i=Array.isArray(r)?r:[r];for(const r of i){const i=findNodePath(r,t);if(i.length)return[e,...i]}return[]}function BuilderPanel({data:e,setData:t,onDeleteNode:r}){useLogRender("BuilderPanel");const{current:i,setCurrent:n}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent}));return jsxRuntime.jsx("div",{role:"region",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsxRuntime.jsx(Builder,{data:e,setData:t,current:i,setCurrent:n,onDeleteNode:r})})}function isFn(e){return"function"==typeof e}function safeStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("function"==typeof r){const e=r.name;return`[Function${e?`: ${e}`:""}]`}if("bigint"==typeof r)return r.toString();if(r instanceof Error)return{name:r.name,message:r.message,stack:r.stack};if(r instanceof Map)return{__type:"Map",entries:Array.from(r.entries())};if(r instanceof Set)return{__type:"Set",values:Array.from(r.values())};if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}function safeParseJson(e){if("string"!=typeof e||!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function safeGetPersistedRenderStore(){try{return"undefined"==typeof localStorage?null:localStorage.getItem("render-store")}catch(e){return{error:String(e)}}}function logRenderStore(e={}){const{label:t,includeLocalStorage:r=!0,extra:i}=e,n=useRenderStore.getState(),o=n,a=Object.keys(o).sort(),s={},l=[];for(const e of a){const t=o[e];isFn(t)?l.push(e):s[e]=t}const c="[RB Debug] Render store"+(t?` (${t})`:""),d=console.groupCollapsed,p=console.groupEnd;isFn(d)?d(c):console.log(c);const u=r?safeGetPersistedRenderStore():null,h=r?safeParseJson(u):null,g=safeStringify({snapshot:s,actions:l,extra:i??null,persisted:r?{raw:u,parsed:h}:null});console.log("json",g),console.log("state",s),console.log("actions",l),console.log("rawState (includes functions)",n),r&&(console.log("localStorage.render-store (raw)",u),console.log("localStorage.render-store (parsed)",h)),i&&console.log("extra",i),isFn(p)&&p()}function DebugJsonPage({data:e,setData:t,project:r,onClose:i,title:n="Debug JSON",description:o,previewMode:a,setPreviewMode:s,appConfig:l,setAppConfig:c,logLabel:d}){const p=useRenderStore(e=>e.setCurrent),u=useRenderStore(e=>e.listMaxNested),h=useRenderStore(e=>e.setListMaxNested),[g,m]=React.useState(String(u)),f="function"==typeof s,y="function"==typeof c&&"string"==typeof l?.theme,C="function"==typeof c&&null!=l&&"isRtl"in l,b=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"data"in e?e.data:e;function x(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function v(e){if(isNodeNullOrUndefined(e)||isNodeString(e))return e;if(isNodeArray(e)){return e.map(e=>v(e))}if(!x(e))return e;const t=e,r=v(t.children);if(!x(t.attributes))return{...t,children:r};const i={...t.attributes};return"style"in i&&x(i.style)&&(i.styles=i.style,delete i.style),{...t,children:r,attributes:i}}const S=React.useMemo(()=>function e(t){if(isNodeNullOrUndefined(t)||isNodeString(t))return!1;if(isNodeArray(t)){return t.some(e)}if(!x(t))return!1;const r=t;return!(!x(r.attributes)||!("style"in r.attributes))||e(r.children)}(e),[e]);React.useEffect(()=>{m(String(u))},[u]),React.useEffect(()=>{const e=window.setTimeout(()=>{const e=Number.parseInt(g,10);!Number.isFinite(e)||e<=0||h(e)},300);return()=>window.clearTimeout(e)},[g,h]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"modal__header localication-modal__header",children:[jsxRuntime.jsxs("div",{className:"localication-modal__header-main",children:[jsxRuntime.jsx("h3",{id:"debug-json-editor-title",className:"modal__title",children:n}),o?jsxRuntime.jsx("p",{className:"localication-modal__description",children:o}):null]}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",title:"Log render store to console",onClick:()=>logRenderStore({label:d,extra:{project:r??null,projectData:e??null}}),children:"Log store"}),S?jsxRuntime.jsx("button",{type:"button",className:"editor-button",title:"Migrate attributes.style to attributes.styles (schemaVersion=2)",onClick:()=>{if(!e)return;const r=v(e);t(r),p(r)},children:"Fix style → styles"}):null,i?jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>i(),children:"Close"}):null]}),jsxRuntime.jsxs("div",{className:"localication-modal__body",children:[f||y||C?jsxRuntime.jsxs("div",{className:"localication-modal__controls",children:[f?jsxRuntime.jsx(Checkbox,{label:"Preview mode",checked:Boolean(a),onChange:s}):null,y?jsxRuntime.jsx(Checkbox,{label:"Dark Mode",checked:"dark"===(l?.theme??"light"),onChange:e=>c({...l,theme:e?"dark":"light"})}):null,C?jsxRuntime.jsx(Checkbox,{label:"Is RTL",checked:Boolean(l?.isRtl),onChange:e=>c({...l,isRtl:e})}):null]}):null,jsxRuntime.jsxs("div",{className:"localication-modal__controls",children:[jsxRuntime.jsx("label",{children:"List max nested depth"}),jsxRuntime.jsx("input",{type:"number",min:1,className:"input",value:g,onChange:e=>m(e.target.value)})]}),jsxRuntime.jsx("div",{className:"localication-modal__editor",children:jsxRuntime.jsx(JsonTextEditor,{rootName:"node",value:e??{},onChange:e=>{const r=analyseAndProccess(b(e));t(r),p(r)},className:"localication-modal__json-editor"})})]})]})}function BottomBar({className:e,data:t,setData:r,project:i}){const{appConfig:n,setAppConfig:o,previewMode:a,setPreviewMode:s}=useRenderStore(e=>({appConfig:e.appConfig,setAppConfig:e.setAppConfig,previewMode:e.previewMode,setPreviewMode:e.setPreviewMode})),[l,c]=React.useState(!1),[d,p]=React.useState(!1),[u,h]=React.useState(!1),g=React.useMemo(()=>["en","tr","ar"],[]),m=n.defaultLanguage??"en",f="dark"===n.theme,y=n.isRtl??!1,C=a,b=f?"moon-bold":"sun";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:["rb-bottom-bar",e].filter(Boolean).join(" "),children:[jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button"+(f?" is-active":""),"aria-label":"Theme","aria-pressed":f,onClick:()=>o({...n,theme:"dark"===n.theme?"light":"dark"}),children:jsxRuntime.jsx(Icon,{iconType:b,size:20,color:"currentColor",alt:""})}),jsxRuntime.jsxs("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--rtl"+(y?" is-active":""),"aria-label":"RTL","aria-pressed":y,onClick:()=>o({...n,isRtl:!n.isRtl}),children:[jsxRuntime.jsx(Icon,{iconType:"translate",size:18,color:"currentColor",alt:""}),jsxRuntime.jsx("span",{className:"rb-bottom-bar__rtl-text",children:"RTL"})]}),jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--preview"+(C?" is-active":""),"aria-label":"Magic cursor tool","aria-pressed":C,onClick:()=>s(!a),children:jsxRuntime.jsx(Icon,{iconType:"magicpen",size:20,color:"currentColor",alt:""})}),jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button"+(l?" is-active":""),"aria-label":"Debug","aria-pressed":l,onClick:()=>c(!0),children:jsxRuntime.jsx(Icon,{iconType:"speedometer-03",size:20,color:"currentColor",alt:""})}),jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button"+(d?" is-active":""),"aria-label":"Localization","aria-pressed":d,onClick:()=>p(!0),children:jsxRuntime.jsx(Icon,{iconType:"globe-01",size:20,color:"currentColor",alt:""})}),jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__button"+(u?" is-active":""),"aria-label":"Color","aria-pressed":u,onClick:()=>h(!0),children:jsxRuntime.jsx(Icon,{iconType:"colors",size:20,color:"currentColor",alt:""})}),jsxRuntime.jsx("div",{className:"rb-bottom-bar__spacer"}),jsxRuntime.jsx("div",{className:"rb-bottom-bar__langs","aria-label":"Language",children:g.map(e=>jsxRuntime.jsx("button",{type:"button",className:"rb-bottom-bar__lang"+(m===e?" is-active":""),onClick:()=>o({...n,defaultLanguage:e}),children:e},e))})]}),d&&jsxRuntime.jsx(LocalicationModal,{data:n.localication??{},onChange:e=>{o({...n,localication:e})},onClose:()=>p(!1)}),u&&jsxRuntime.jsx(ScreenColorsModal,{appConfig:n,onChange:o,onClose:()=>h(!1)}),l&&jsxRuntime.jsx(Modal,{onClose:()=>c(!1),ariaLabelledBy:"debug-json-editor-title",className:"modal--large modal--scrollable",contentClassName:"localication-modal__content",children:jsxRuntime.jsx(DebugJsonPage,{project:i,data:t,setData:r,onClose:()=>c(!1),description:"Inspect and edit raw node JSON.",previewMode:a,setPreviewMode:s,appConfig:n,setAppConfig:o,logLabel:"BottomBar Debug JSON"})})]})}var v="5.6.10",fr=30,ip=30,op=210,w=800,h=600,nm="合成 1",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"形状图层 18",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{t:30,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"形状图层 17",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[0]},{t:40,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:10,bm:0},{ddd:0,ind:3,ty:4,nm:"形状图层 16",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:20,s:[0]},{t:50,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:20,bm:0},{ddd:0,ind:4,ty:4,nm:"形状图层 15",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:30,s:[0]},{t:60,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:30,bm:0},{ddd:0,ind:5,ty:4,nm:"形状图层 14",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[0]},{t:70,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:40,bm:0},{ddd:0,ind:6,ty:4,nm:"形状图层 13",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:50,s:[0]},{t:80,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:50,bm:0},{ddd:0,ind:7,ty:4,nm:"形状图层 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:220,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0]},{t:90,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:60,bm:0},{ddd:0,ind:8,ty:4,nm:"形状图层 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:200,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:70,s:[0]},{t:100,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:70,bm:0},{ddd:0,ind:9,ty:4,nm:"形状图层 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:80,s:[0]},{t:110,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:80,bm:0},{ddd:0,ind:10,ty:4,nm:"形状图层 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:160,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[0]},{t:120,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:90,bm:0},{ddd:0,ind:11,ty:4,nm:"形状图层 8",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:140,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:100,s:[0]},{t:130,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:100,bm:0},{ddd:0,ind:12,ty:4,nm:"形状图层 7",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:120,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:110,s:[0]},{t:140,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:110,bm:0},{ddd:0,ind:13,ty:4,nm:"形状图层 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:100,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[0]},{t:150,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:420,st:120,bm:0},{ddd:0,ind:14,ty:4,nm:"形状图层 5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:80,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:130,s:[0]},{t:160,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:430,st:130,bm:0},{ddd:0,ind:15,ty:4,nm:"形状图层 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:60,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:140,s:[0]},{t:170,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:440,st:140,bm:0},{ddd:0,ind:16,ty:4,nm:"形状图层 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:40,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:150,s:[0]},{t:180,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:450,st:150,bm:0},{ddd:0,ind:17,ty:4,nm:"形状图层 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:20,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:160,s:[0]},{t:190,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:460,st:160,bm:0},{ddd:0,ind:18,ty:4,nm:"形状图层 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:170,s:[0]},{t:200,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:470,st:170,bm:0},{ddd:0,ind:19,ty:4,nm:"形状图层 24",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0]},{t:210,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:180,bm:0},{ddd:0,ind:20,ty:4,nm:"形状图层 23",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:190,s:[0]},{t:220,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:190,bm:0},{ddd:0,ind:21,ty:4,nm:"形状图层 22",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:200,s:[0]},{t:230,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:200,bm:0},{ddd:0,ind:22,ty:4,nm:"形状图层 21",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[0]},{t:240,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:210,bm:0},{ddd:0,ind:23,ty:4,nm:"形状图层 20",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:220,s:[0]},{t:250,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:220,bm:0},{ddd:0,ind:24,ty:4,nm:"形状图层 19",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"椭圆路径 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:230,s:[0]},{t:260,s:[120]}],ix:3},m:1,ix:2,nm:"修剪路径 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"描边 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"变换"}],nm:"椭圆 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:230,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"预合成 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"简单阻塞工具",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"视图",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"阻塞遮罩",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度渐变",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"渐变起点",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"起始颜色",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"渐变终点",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"结束颜色",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"渐变形状",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"渐变散射",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"与原始图像混合",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]}],w:800,h:600,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"预合成 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:56,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,320,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"简单阻塞工具",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"视图",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"阻塞遮罩",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度渐变",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"渐变起点",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"起始颜色",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"渐变终点",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"结束颜色",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"渐变形状",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"渐变散射",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"与原始图像混合",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]},{ty:29,nm:"高斯模糊",np:5,mn:"ADBE Gaussian Blur 2",ix:3,en:1,ef:[{ty:0,nm:"模糊度",mn:"ADBE Gaussian Blur 2-0001",ix:1,v:{a:0,k:41.3,ix:1}},{ty:7,nm:"模糊方向",mn:"ADBE Gaussian Blur 2-0002",ix:2,v:{a:0,k:1,ix:2}},{ty:7,nm:"重复边缘像素",mn:"ADBE Gaussian Blur 2-0003",ix:3,v:{a:0,k:0,ix:3}}]}],w:800,h:600,ip:0,op:300,st:0,bm:0}],markers=[],loadingAnimation={v:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};function LoadingComponent(){return jsxRuntime.jsx("div",{className:"rb-loading",children:jsxRuntime.jsx(Lottie,{animationData:loadingAnimation,loop:!0,autoplay:!0})})}function useSyncHtmlThemeClass(){const e=useRenderStore(e=>e.appConfig.theme);React.useEffect(()=>{if("undefined"==typeof document)return;const t=document.documentElement;t.classList.toggle("dark","dark"===e),t.classList.toggle("light","light"===e)},[e])}function safeJsonStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}async function copyTextToClipboard(e){try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{if("undefined"==typeof document)return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}function parseValidationPrefix(e){const t=e.indexOf(": ");if(t<=0)return{reason:e};const r=e.slice(0,t),i=e.slice(t+2);return r.startsWith("root")?{path:r,reason:i}:{reason:e}}function isObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function extractNodeFromRawData(e){if(isObject(e)){if("string"==typeof e.type&&e.type.trim())return e;const t=e.data;if(isObject(t)&&"string"==typeof t.type&&t.type.trim())return t}return e}function getNodeType(e){if(!isObject(e))return null;const t=e.type;return"string"==typeof t&&t?t:null}function getFirstComponentFromReactStack(e){if(!e)return null;const t=e.match(/\bat\s+([A-Za-z0-9_$]+)/);return t?.[1]??null}function resolveNodeTypeAtPath(e,t){if(!t||!t.startsWith("root"))return{};let r=e,i=getNodeType(r),n=i?"root":null;const o="root"===t?"":t.replace(/^root\.?/,""),a=/([A-Za-z0-9_$]+)|\[(\d+)\]/g;let s,l="root";for(;s=a.exec(o);){const e=s[1],t=s[2];e?(l=`${l}.${e}`,r=isObject(r)?r[e]:void 0):null!=t&&(l=`${l}[${t}]`,r=Array.isArray(r)?r[Number(t)]:void 0);const o=getNodeType(r);o&&(i=o,n=l)}return i?{nodeType:i,nodePath:n??void 0}:{}}function ProjectDebug({name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,belowName:s,jsonEditor:l}){useSyncHtmlThemeClass();const[c,d]=React.useState(null),[p,u]=React.useState("idle"),[h,g]=React.useState("idle"),m=React.useMemo(()=>safeJsonStringify(t),[t]),f=l?l.value:m,y=React.useMemo(()=>extractNodeFromRawData(t),[t]),C=y,b=React.useMemo(()=>getNodeType(y),[y]),x=React.useMemo(()=>parseValidationPrefix(r),[r]),v=React.useMemo(()=>resolveNodeTypeAtPath(y,x.path),[y,x.path]),S=React.useMemo(()=>{const e=[];return e.push(x.reason),b&&e.push(`Root component: ${b}`),x.path&&e.push(`Path: ${x.path}`),v.nodeType&&e.push(`Component at path: ${v.nodeType}${v.nodePath?` (${v.nodePath})`:""}`),e.join("\n")},[x.reason,x.path,b,v.nodeType,v.nodePath]),w=React.useMemo(()=>{if(!c)return null;const e=[];return e.push(c.message),b&&e.push(`Root component: ${b}`),c.componentStack&&e.push(`Component (from React stack): ${getFirstComponentFromReactStack(c.componentStack)??"unknown"}`),e.join("\n")},[c,b]),k=React.useMemo(()=>{const e=[];return e.push("=== Validation ==="),e.push(S),i&&(e.push(""),e.push(i)),c&&(e.push(""),e.push("=== Render ==="),w&&e.push(w),c.stack&&(e.push(""),e.push(c.stack)),c.componentStack&&(e.push(""),e.push(c.componentStack))),e.join("\n")},[c,w,i,S]);return jsxRuntime.jsxs("div",{className:"rb-project-debug",children:[jsxRuntime.jsxs("section",{className:"rb-project-debug__json","aria-label":"Debug JSON",children:[jsxRuntime.jsx("div",{className:"rb-project-debug__meta",children:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"rb-project-debug__meta-label",children:"Name:"})," ",e]})}),jsxRuntime.jsxs("div",{className:"rb-project-debug__toolbar",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(f)&&(u("copied"),window.setTimeout(()=>u("idle"),900))},children:"copied"===p?"Copied JSON":"Copy JSON"}),l?.onSave&&jsxRuntime.jsx("button",{type:"button",className:"editor-button",disabled:l.saveDisabled,onClick:()=>l.onSave?.(),children:l.saveLabel??"Save"})]}),s&&jsxRuntime.jsx("div",{className:"rb-project-debug__below-name",children:s}),l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("textarea",{className:"rb-project-debug__code-editor",value:l.value,onChange:e=>l.onChange(e.target.value),spellCheck:!1,"aria-label":"Edit JSON"}),l.error?jsxRuntime.jsx("div",{className:"rb-project-debug__json-error",role:"alert",children:l.error}):null]}):jsxRuntime.jsx("pre",{className:"rb-project-debug__code",tabIndex:0,children:m})]}),jsxRuntime.jsx("section",{className:"rb-project-debug__preview","aria-label":"Preview",style:{"--rb-canvas-bg":a??"none"},children:jsxRuntime.jsx(RenderErrorBoundary,{subtitle:"caught by ProjectDebug preview",onError:(e,t)=>d({message:e?.message??String(e),stack:e?.stack,componentStack:t}),children:jsxRuntime.jsx(RenderPage,{data:C,name:e,params:{products:n,benefits:o}})})}),jsxRuntime.jsxs("section",{className:"rb-project-debug__error","aria-label":"Errors",children:[jsxRuntime.jsxs("div",{className:"rb-project-debug__error-head",children:[jsxRuntime.jsx("h2",{className:"rb-project-debug__title",children:"Errors"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(k)&&(g("copied"),window.setTimeout(()=>g("idle"),900))},children:"copied"===h?"Copied":"Copy"})]}),jsxRuntime.jsxs("div",{className:"rb-project-debug__error-block",children:[jsxRuntime.jsx("div",{className:"rb-project-debug__error-label",children:"Validation"}),jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:S}),i&&jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:i})]}),c&&jsxRuntime.jsxs("div",{className:"rb-project-debug__error-block",children:[jsxRuntime.jsx("div",{className:"rb-project-debug__error-label",children:"Render"}),jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:w}),c.stack&&jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:c.stack}),c.componentStack&&jsxRuntime.jsx("pre",{className:"rb-project-debug__error-pre",children:c.componentStack})]})]})]})}function ProjectValidationPage({name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,belowName:s,onContinueWithoutValidation:l,onSaveEditedRawData:c}){const[d,p]=React.useState(()=>safeJsonStringify(t)),[u,h]=React.useState(null);return React.useEffect(()=>{p(safeJsonStringify(t)),h(null)},[t]),jsxRuntime.jsx(ProjectDebug,{name:e,rawData:t,validationError:r,validationErrorStack:i,products:n,benefits:o,canvasBg:a,jsonEditor:{value:d,onChange:e=>{p(e),h(null)},error:u,onSave:()=>{try{const e=JSON.parse(d);h(null),c?.(e)}catch(e){h(e instanceof Error?e.message:String(e))}},saveDisabled:!c,saveLabel:"Save JSON"},belowName:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"rb-project-validation__actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>l?.(),children:"Continue without validation"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>(()=>{try{const e=JSON.parse(d),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=wrapNodeInMain(t(e)&&"data"in e?e.data:e),i=t(e)&&"data"in e?{...e,data:r}:r;p(JSON.stringify(i,null,2)),h(null)}catch(e){h(e instanceof Error?e.message:String(e))}})(),children:"Wrap in Main"})]}),s]})})}function ProjectMigrationPage({name:e,rawData:t,projectVersion:r,requiredVersion:i,showFixVersionMeta:n,pendingMigrations:o,products:a,benefits:s,canvasBg:l,belowName:c,migrating:d,onContinueWithoutValidation:p,onMigrateNow:u,onFixVersionMeta:h}){const g=`Migration required: project version ${r} is lower than ${i}.`,m=[`Required: ${i}`,`Current: ${r}`,"","Pending migrations:",...o.length?o.map(e=>`- ${e.id} (${e.fromVersion} -> ${e.toVersion}): ${e.title}`):["- (none)"]].join("\n");return jsxRuntime.jsx(ProjectDebug,{name:e,rawData:t,validationError:g,validationErrorStack:m,products:a,benefits:s,canvasBg:l,belowName:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"rb-project-validation__actions",children:[jsxRuntime.jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>{u?.()},children:d?"Migrating…":"Migrate now"}),n&&jsxRuntime.jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>h?.(),children:"Fix version meta"}),jsxRuntime.jsx("button",{type:"button",className:"editor-button",onClick:()=>p?.(),children:"Continue without migration"})]}),c]})})}var supportedProjectVersion="1.1.2",reactBuilderVersion="1.2.26",metaJson={supportedProjectVersion:supportedProjectVersion,reactBuilderVersion:reactBuilderVersion};function parseSemver(e){const t="string"==typeof e?e.trim():"",[r,i,n]=t.split(".").slice(0,3),o=e=>{const t=Number(String(e??"").replace(/[^\d].*$/,""));return Number.isFinite(t)?t:0};return{major:o(r),minor:o(i),patch:o(n)}}function compareSemver(e,t){const r=parseSemver(e),i=parseSemver(t);return r.major!==i.major?r.major<i.major?-1:1:r.minor!==i.minor?r.minor<i.minor?-1:1:r.patch!==i.patch?r.patch<i.patch?-1:1:0}function isSemverLess(e,t){return compareSemver(e,t)<0}function isPlainObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function buildStyleKeySet(){return getStyleAttributeKeySet()}function normalizeStyleAttributes(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject(e))return e;if(isNodeArray(e))return e.map(e=>normalizeStyleAttributes(e,t));const r=e,i=normalizeStyleAttributes(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const n={...r.attributes??{}},o={...isPlainObject(n.style)?n.style:{}};for(const[e,r]of Object.entries(n))"style"!==e&&t.has(e)&&(e in o||(o[e]=r),delete n[e]);return Object.keys(o).length>0&&(n.style=o),{...r,children:i,attributes:n}}function getStyleSubSchemaKeys(e){if(!e)return new Set;const t=e.style;return isPlainObject(t)?new Set(Object.keys(t)):new Set}function getTopLevelAttributeKeys(e){if(!e)return new Set;const t=Object.keys(e).filter(e=>"style"!==e);return new Set(t)}function buildKeyInfo(e){const t=getTopLevelAttributeKeys(e);return{moveableKeys:new Set([...Array.from(t),...Array.from(NON_STYLE_ATTRIBUTE_KEYS)]),styleKeys:getStyleSubSchemaKeys(e)}}function extractAttributesFromStyle(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject(e))return e;if(isNodeArray(e))return e.map(e=>extractAttributesFromStyle(e,t));const r=e,i=extractAttributesFromStyle(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const n={...r.attributes??{}},o=n.style;if(!isPlainObject(o))return{...r,children:i,attributes:n};const a="string"==typeof r.type?r.type:"",s=normalizeComponentType(a)??a;if(!s)return{...r,children:i,attributes:n};if(!t.has(s)){const e=getAttributeSchema(s);t.set(s,buildKeyInfo(e))}const l=t.get(s),c=l?.styleKeys??new Set,d=l?.moveableKeys??NON_STYLE_ATTRIBUTE_KEYS,p={...o};let u=!1;for(const e of d)e in p&&(c.has(e)||(e in n||(n[e]=p[e]),delete p[e],u=!0));return u?(0===Object.keys(p).length?delete n.style:n.style=p,{...r,children:i,attributes:n}):{...r,children:i,attributes:n}}const migration_1_1_2_extract_component_attributes_from_style={id:"1.1.2-extract-attrs-from-style",title:"Normalize style keys then extract non-style + component props out of attributes.style",fromVersion:"0.0.0",toVersion:"1.1.2",run:e=>{const t=buildStyleKeySet(),r=extractAttributesFromStyle(normalizeStyleAttributes(e.data,t),new Map);return{...e,version:"1.1.2",data:r}}},CURRENT_PROJECT_VERSION=metaJson.supportedProjectVersion,MIGRATIONS=[migration_1_1_2_extract_component_attributes_from_style];function getMigrationPipe(e){const t="string"==typeof e?.version&&e.version.trim()?e.version:"0.0.0",r=isSemverLess(t,CURRENT_PROJECT_VERSION),i=r?MIGRATIONS.filter(e=>isSemverLess(t,e.toVersion)):[];return{projectVersion:t,requiredVersion:CURRENT_PROJECT_VERSION,required:r,pending:i}}function runProjectMigrations(e){const t=getMigrationPipe(e);let r=e;const i=[];for(const e of t.pending)isSemverLess(r.version,e.toVersion)&&(r=e.run(r),i.push(e));return isSemverLess(r.version,CURRENT_PROJECT_VERSION)&&(r={...r,version:CURRENT_PROJECT_VERSION}),{project:r,applied:i}}function sleep(e){return new Promise(t=>setTimeout(t,e))}async function loadWithDeadline(e,t){return!Number.isFinite(t)||t<=0?await e:await Promise.race([e,sleep(t).then(()=>{throw new Error("timeout")})])}function useProjectFonts({fonts:e,appFont:t}){React.useEffect(()=>{fontsDebug.info("useProjectFonts: effect start",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"});const{setFonts:r,setAppFont:i,setErrors:n,addError:o,loadedFonts:a,markFontLoaded:s}=useRenderStore.getState();fontsDebug.info("useProjectFonts: storing fonts/appFont in store",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"}),r(e),i(t),n([]);let l=!1;return(async()=>{const r="string"==typeof t?t.trim():"";if(!r)return void n(["appFont is undefined"]);if(l)return;Array.isArray(e)&&e.some(e=>e?.name===r&&e?.family&&"object"==typeof e.family&&Object.keys(e.family).length>0)?Array.isArray(a)&&a.includes(r)||(await loadWithDeadline(loadFontFamily(e,r,{forceFetch:!0}),1e4),l||s(r)):n([`appFont "${r}" not found in fonts`])})().catch(e=>{l||o(`Failed to initialize fonts: ${e instanceof Error?e.message:String(e)}`)}),()=>{l=!0}},[e,t])}function getDefaultProject(e={}){const t=metaJson.supportedProjectVersion.trim()?metaJson.supportedProjectVersion.trim():"0.0.0",r="string"==typeof e.version&&e.version.trim()?e.version.trim():t;return{name:"string"==typeof e.name&&e.name.trim()?e.name.trim():"project",version:r,data:e.data??null,appConfig:e.appConfig,projectColors:e.projectColors,type:e.type}}function resolveProjectForSave(e){return getDefaultProject({...e.overrideProject??e.project,data:e.data})}function toProjectMeta(e){return{name:e.name,version:e.version,...e.type?{type:e.type}:{},data:e.data}}const MOBILE_BREAKPOINT=1e3;function ProjectPage({project:e,appConfig:t,onSaveProject:r,logLevel:i,projectColors:n,onSaveProjectColors:o,name:a,typography:s,appFont:l}){useLogRender("ProjectPage"),useSyncHtmlThemeClass();const c=l??s.fonts.find(e=>e?.isMain)?.name??s.fonts[0]?.name;useProjectFonts({fonts:s.fonts,appFont:c});const{current:d,setCurrent:p,setProjectColors:u,setProjectName:h,setAppConfig:g,storeAppConfig:m,products:f,benefits:C,previewMode:b}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent,setProjectColors:e.setProjectColors,setProjectName:e.setProjectName,setAppConfig:e.setAppConfig,storeAppConfig:e.appConfig,products:e.products,benefits:e.benefits,previewMode:e.previewMode})),x=t??m??defaultAppConfig,[v,S]=React.useState(null),w=v??e,k=a??w.name,_=n??w.projectColors,T=isNodeNullOrUndefined(w.data)||isEmptyObject(w.data),[R,M]=React.useState(()=>null),[E,O]=React.useState(null),[P,j]=React.useState(null),[L,A]=React.useState(!1),[B,z]=React.useState(null),[I,V]=React.useState(!1),[D,N]=React.useState(()=>T),[F,H]=React.useState(null),[W,$]=React.useState(()=>"undefined"!=typeof window&&window.innerWidth<=MOBILE_BREAKPOINT),G=React.useCallback(e=>{if(e===R){if(!window.confirm("You are about to delete the root component. This will clear the entire screen. Continue?"))return;return M(null),void p(null)}const t=deleteNodeFromTree(R,e);if(M(t),d!==e)if(isNodeRecord(d)&&d.key){const e=findNodeByKey(t,d.key);p(e??t)}else p(t);else p(t)},[R,d]);React.useEffect(()=>(logger.info("ProjectPage","mount",{projectName:e.name}),S(null),t&&(g(t),logger.verbose("ProjectPage","appConfig applied",t)),()=>{logger.info("ProjectPage","unmount")}),[t,e.name,g]),React.useEffect(()=>{h(k)},[k,h]),React.useEffect(()=>(u(_),()=>u(void 0)),[_,u]),React.useEffect(()=>{i&&logger.setLevel(i)},[i]),React.useEffect(()=>{function e(){$(window.innerWidth<=MOBILE_BREAKPOINT)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),React.useEffect(()=>{H(null)},[W]);const U=e=>{H(t=>t===e?null:e)},Z=()=>{H(null)},Y=!W||"builder"===F,K=!W||"attributes"===F;React.useEffect(()=>{if(T)return void N(!0);N(!1);const e=setTimeout(()=>N(!0),1e3);return()=>clearTimeout(e)},[w.data]);const q=React.useRef(w);q.current=w;const J=React.useRef(R);J.current=R,React.useEffect(()=>{try{const e=q.current,t=e.data;if(null!=t&&t===J.current)return;T||(M(null),p(null)),O(null),j(null);const r=getMigrationPipe(e);if(!L&&r.required)return z(r),M(null),void p(null);if(z(null),L)return M(e.data),void p(e.data);if(T)return M(null),void p(null);const i=analyseAndProccess(e.data);if(!i)return;M(i),p(i)}catch(e){logger.error("ProjectPage","Failed to process node",e),O(e instanceof Error?e.message:"Node is not valid"),j(e instanceof Error?e.stack??null:null),M(null),p(null)}},[w.data,T,L,p]);const X=!(T||null!==R&&D);return jsxRuntime.jsxs("div",{className:"container-full",children:[jsxRuntime.jsx(Lt,{position:"bottom-right",autoClose:2500,hideProgressBar:!1,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}),jsxRuntime.jsx(EditorHeader,{onSaveProject:()=>{try{logger.info("ProjectPage","save project",{name:e.name}),o&&_&&o(_);const t=toProjectMeta(resolveProjectForSave({project:e,overrideProject:v,data:R}));logger.info("ProjectPage","saving project meta",t),r(t),y.success("Saved")}catch(e){logger.error("ProjectPage","save project failed",e),y.error("Save failed")}},onRestoreProject:()=>{logger.info("ProjectPage","restore project",{name:e.name}),S(null),O(null),j(null),A(!1),M(e.data),p(e.data)},current:d,editorData:R,setEditorData:M}),B?jsxRuntime.jsx(ProjectMigrationPage,{name:k,rawData:w,projectVersion:B.projectVersion,requiredVersion:B.requiredVersion,showFixVersionMeta:"0.0.0"===B.projectVersion,pendingMigrations:B.pending.map(e=>({id:e.id,title:e.title,fromVersion:e.fromVersion,toVersion:e.toVersion})),products:f,benefits:C,canvasBg:`url(${getImage(exports.TribeAssetName.Background)})`,migrating:I,onContinueWithoutValidation:()=>{A(!0),z(null),M(w.data),p(w.data),N(!0)},onMigrateNow:()=>{try{V(!0);const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0,i=!t(w)||e(w)&&"string"==typeof w.version?w:getDefaultProject({name:`imported-${Math.random().toString(36).slice(2,8)}`,version:CURRENT_PROJECT_VERSION,data:w}),{project:n}=runProjectMigrations(i);r(toProjectMeta(n)),S(n),A(!0),z(null),M(n.data),p(n.data),N(!0)}finally{V(!1)}},onFixVersionMeta:()=>{const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=e(w)?w:null,i="string"==typeof t?.name&&String(t.name).trim()?String(t.name).trim():`imported-${Math.random().toString(36).slice(2,8)}`,n=t&&"data"in t?t.data:(t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0)(w)?w:null,o=getDefaultProject({name:i,version:CURRENT_PROJECT_VERSION,data:n,appConfig:t?.appConfig,projectColors:t?.projectColors,type:(e=>"paywall"===e||"onboard"===e||"other"===e)(t?.type)?t.type:void 0});r(toProjectMeta(o)),S(o),A(!1),z(null),O(null),j(null),y.success("Fixed version meta")}}):E?jsxRuntime.jsx(ProjectValidationPage,{name:k,rawData:w,validationError:E,validationErrorStack:P??void 0,products:f,benefits:C,canvasBg:`url(${getImage(exports.TribeAssetName.Background)})`,onContinueWithoutValidation:()=>{A(!0),O(null),j(null),M(w.data),p(w.data),N(!0)},onSaveEditedRawData:e=>{try{const t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),i=e;let n,o,a=i;if(t(i)&&"data"in i){a=i.data;const e=i.name,t=i.version;"string"==typeof e&&(n=e),"string"==typeof t&&(o=t)}const s=analyseAndProccess(a);if(!s)throw new Error("Node is not valid");const l={...w,...n?{name:n}:null,...o?{version:o}:null,data:a};r(toProjectMeta(l)),S(l),A(!1),O(null),j(null),M(s),p(s),N(!0),y.success("Saved")}catch(e){logger.error("ProjectPage","save JSON from validation failed",e),O(e instanceof Error?e.message:"Node is not valid"),j(e instanceof Error?e.stack??null:null),y.error("Save failed")}}}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[W&&jsxRuntime.jsxs("div",{className:"mobile-panel-toggle",role:"group","aria-label":"Editor panels",children:[jsxRuntime.jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("builder"===F?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle builder panel","aria-expanded":"builder"===F,"aria-controls":"split-left-panel",onClick:()=>U("builder"),children:[jsxRuntime.jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsxRuntime.jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsxRuntime.jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsxRuntime.jsx("span",{className:"mobile-panel-toggle__label",children:"Builder"})]}),jsxRuntime.jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("attributes"===F?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle attributes panel","aria-expanded":"attributes"===F,"aria-controls":"split-attributes-panel",onClick:()=>U("attributes"),children:[jsxRuntime.jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsxRuntime.jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsxRuntime.jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsxRuntime.jsx("span",{className:"mobile-panel-toggle__label",children:"Attributes"})]})]}),jsxRuntime.jsxs("div",{className:"editor-container",children:[jsxRuntime.jsxs("div",{id:"split-left-panel",className:"split-left"+(Y?" is-open":""),"aria-hidden":W&&!Y,children:[W&&jsxRuntime.jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close builder panel",onClick:Z,children:"Close"}),jsxRuntime.jsx("div",{children:jsxRuntime.jsx(BuilderPanel,{data:R,setData:M,onDeleteNode:G})})]}),jsxRuntime.jsxs("div",{style:{"--rb-canvas-bg":`url(${getImage(exports.TribeAssetName.Background)})`},className:"split-right",children:[X&&jsxRuntime.jsx("div",{className:"rb-loading-overlay","aria-busy":"true",children:jsxRuntime.jsx(LoadingComponent,{})}),!X&&jsxRuntime.jsx(RenderPage,{data:R,name:k,params:{products:f,benefits:C&&"object"==typeof C?C:{},appConfig:x,projectColors:_,fonts:s.fonts,appFont:c,previewMode:b,selectedKey:d&&"object"==typeof d&&"key"in d?d.key:void 0}})]}),jsxRuntime.jsx(BottomBar,{project:e,data:R,setData:M}),jsxRuntime.jsxs("div",{id:"split-attributes-panel",className:"split-third"+(K?" is-open":""),"aria-hidden":W&&!K,children:[W&&jsxRuntime.jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close attributes panel",onClick:Z,children:"Close"}),jsxRuntime.jsx(AttributesEditorPanel,{attributes:R,projectColors:_,onChange:e=>{let t;M(e),e&&"object"==typeof e&&!Array.isArray(e)&&"key"in e&&(t=e.key),logger.verbose("ProjectPage","attributes change",t?{nodeKey:t}:void 0)}})]}),W&&F&&jsxRuntime.jsx("button",{type:"button",className:"editor-container__overlay","aria-label":"Close active panel",onClick:Z})]})]})]})}function useCalculateLocalizedPrice(){return""}function useDiscountRate(){return 0}function useExtractTextStyle(e){const{appConfig:t,projectColors:r,fonts:i}=useBuilderParams(),n=t??defaultAppConfig,o=r,a=i;return React.useMemo(()=>{const t=extractTextStyleNative(e,{appConfig:n,projectColors:o,fonts:a}),r=e.attributes,i=stripStyleKeys(toAttributeRecord(r)),s=getStyleBag(r);return{style:t,other:{...i,adjustsFontSizeToFit:i.adjustsFontSizeToFit??s?.adjustsFontSizeToFit,showEllipsis:i.showEllipsis??s?.showEllipsis}}},[e,n,o,a])}function useExtractViewStyle(e){const{appConfig:t,projectColors:r}=useBuilderParams(),i=t?.theme??defaultAppConfig.theme,n=r;return React.useMemo(()=>{const t=extractViewStyleNative(e,{theme:i,projectColors:n}),r=e.attributes,o=stripStyleKeys(toAttributeRecord(r)),a=getStyleBag(r);return{style:t,other:{...o,scrollable:o.scrollable??a?.scrollable}}},[e,i,n])}function useExtractImageStyle(e){const{appConfig:t,projectColors:r}=useBuilderParams(),i=t?.theme??defaultAppConfig.theme,n=r;return React.useMemo(()=>{const{resizeMode:t,...r}=extractImageStyleNative(e,{theme:i,projectColors:n}),o=e.attributes,a=stripStyleKeys(toAttributeRecord(o)),s=getStyleBag(o);return{style:r,other:{...a,resizeMode:s?.resizeMode??t}}},[e,i,n])}const meta={supportedProjectVersion:metaJson.supportedProjectVersion,reactBuilderVersion:metaJson.reactBuilderVersion};function getMeta(){return{...meta}}function novaToJson(e){const t=e.data.data?.layout;return"onboard-layout"===t?onboardNovaToJson(e):null}function onboardNovaToJson(e){const t=e?.data?.data?.attributes||e?.data?.attributes||{},r=t?.general_components||[],i=t?.data||[],n=mapDotsFromGeneralComponents(r),o=mapFooterFromGeneralComponents(r),{carouselNode:a,providerLevelButtons:s}=buildCarouselFromPages(i),l={type:"OnboardProvider",key:e?.data?.data?.key,children:[a,...n?[n]:[],...s.length?s:[],...o?[o]:[]],attributes:{theme:e?.data?.theme}},c={type:"Main",isMain:!0,key:e?.data?.data?.key,children:[l],attributes:{useSafeAreaView:!0}};return delete l.key,c}function buildCarouselFromPages(e){const t=e.filter(e=>"simple-onboard-layout"===e?.layout),r=new Map;t.forEach((e,t)=>{const i=e?.attributes?.key;"string"==typeof i&&r.set(i,t)});const i=[];return{carouselNode:{type:"Onboard",children:t.map(e=>buildCarouselItem(e,r,i))},providerLevelButtons:i}}function buildCarouselItem(e,t,r){const i=e?.attributes?.components||[],n=[],o=e?.attributes?.key,a="string"==typeof o&&t.has(o)?t.get(o):void 0;for(const e of i)if("title-layout"===e?.layout){const t=e?.attributes?.title_localization_key||"",r=e?.attributes?.title_color||void 0,{fontSize:i,textAlign:o,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);n.push({type:"OnboardTitle",attributes:r||i||o||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...o?{textAlign:o}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("subtitle-layout"===e?.layout){const t=e?.attributes?.subtitle_localization_key||"",r=e?.attributes?.subtitle_color||void 0,{fontSize:i,textAlign:o,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);n.push({type:"OnboardSubtitle",attributes:r||i||o||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...o?{textAlign:o}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("image-layout"===e?.layout){const t=e?.attributes?.image||e?.attributes?.src||"",r=e?.attributes?.height??e?.attributes?.ios_height??e?.attributes?.android_height,i="string"==typeof r?Number.parseInt(r,10):"number"==typeof r?r:void 0,o=Boolean(e?.attributes?.is_bg_image),a=extractViewStyleAttributesFromComponent(e),s=e?.attributes?.lottie,l=e?.attributes?.video_url;t&&n.push({type:"OnboardImage",attributes:{src:t,...i?{height:i}:{},resizeMode:o?"cover":"contain",..."number"==typeof a.borderRadius?{borderRadius:a.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===e?.layout){const i=e?.attributes?.buttons_direction,n=e?.attributes?.buttons||[],o=[];for(const e of n){const r=e?.attributes||{},i=r?.button_text_localization_key||"",n=r?.button_text_color,a=r?.button_background_color,s=r?.animation,l=r?.animation_color,c=r?.flex?Number(r.flex):void 0,d=r?.actions||[],p=[];for(const e of d){const r=e?.attributes?.events||[];for(const e of r)if("Permission"===e?.layout){const t=e?.attributes?.permission;p.push({type:"Permission",permission:t})}else if("Navigate"===e?.layout){const r=e?.attributes?.next_page_key,i="string"==typeof r&&t.has(r),n=i?null:"string"==typeof r?r:null;p.push({type:"Navigate",navigate_to:n,...i?{targetIndex:t.get(r)}:{}})}}o.push({type:"OnboardButton",attributes:{labelKey:i,..."string"==typeof n?{button_text_color:n}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof a?{button_background_color:a}:{},..."number"==typeof c?{flex:c}:{},...p.length?{events:p}:{}},children:void 0})}o.length>0&&r.push({type:"OnboardButtons",attributes:{...i?{buttons_direction:i}:{},..."number"==typeof a?{condition:"carousel-index",conditionVariable:a}:{}},children:o})}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:n}}function extractTextStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;const i=new Set(["left","center","right","justify"]),n=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.type;if("textStyle"!==r)continue;const o=e?.attributes?.style||{},a=o?.fontSize;if("number"==typeof a&&Number.isFinite(a))t.fontSize=a;else if("string"==typeof a){const e=Number.parseInt(a,10);Number.isFinite(e)&&(t.fontSize=e)}const s=o?.textAlign;"string"==typeof s&&i.has(s)&&(t.textAlign=s);const l=o?.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=o?.fontWeight;let d;"number"==typeof c&&Number.isFinite(c)?d=String(c):"string"==typeof c&&(d=c),d&&n.has(d)&&(t.fontWeight=d)}}return t}function extractViewStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.style||{},i=r?.borderRadius;if("number"==typeof i&&Number.isFinite(i))t.borderRadius=i;else if("string"==typeof i){const e=Number.parseInt(i,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 r=t?.attributes?.dot||[],i=r?.[0],n=i?.layout,o=i?.attributes||{},a=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=a(o?.inactive_dot_opacity),l=a(o?.dot_thickness),c="string"==typeof o?.dot_style?o.dot_style:void 0,d="string"==typeof o?.container_style?o.container_style:void 0,p="string"==typeof o?.active_dot_color?o.active_dot_color:void 0,u="string"==typeof o?.inactive_dot_color?o.inactive_dot_color:void 0,h={};return n&&(h.dotType=n),void 0!==s&&(h.inactive_dot_opacity=s),void 0!==l&&(h.dot_thickness=l),c&&(h.dot_style=c),d&&(h.container_style=d),p&&(h.active_dot_color=p),u&&(h.inactive_dot_color=u),{type:"OnboardDot",attributes:Object.keys(h).length?h:void 0,children:void 0}}function mapFooterFromGeneralComponents(e){const t=e.find(e=>"footer-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.texts||[],i=[];let n,o;for(const e of r)if("Text"===e?.layout){const t=e?.attributes?.text_localization_key||"",r=e?.attributes?.text_color||void 0;n||(n=t),o||"string"!=typeof r||(o=r);const a=e?.attributes?.linkedwords||[];for(const e of a)if("LinkedWords"===e?.layout){const t=e?.attributes?.linked_word_localization_key,r=e?.attributes?.linked_word_color,n=e?.attributes?.page;i.push({text_key:t,color:r,page:n})}}const a={gap:8};n&&(a.textLocalizationKey=n),o&&(a.color=o);const s=i[0],l=i[1];return s&&(s.text_key&&(a.linkedWordFirstLocalizationKey=s.text_key),s.color&&(a.linkedWordFirstColor=s.color),s.page&&(a.linkedWordFirstPage=s.page)),l&&(l.text_key&&(a.linkedWordSecondLocalizationKey=l.text_key),l.color&&(a.linkedWordSecondColor=l.color),l.page&&(a.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:a,children:void 0}}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 r=t.startsWith("#"),i=r?t.slice(1):void 0,n=[],o=e=>{var a;if(null!=e)if(Array.isArray(e))for(const t of e)o(t);else"string"!=typeof e&&isNodeData(e)&&(a=e,(r?a.key===i:a.type===t)&&n.push(e),o(e.children))};return o(e),n}exports.BuilderProvider=BuilderProvider,exports.DebugJsonPage=DebugJsonPage,exports.LocalizationParamsProvider=LocalizationParamsProvider,exports.ParamsProvider=ParamsProvider,exports.ProjectPage=ProjectPage,exports.RenderNode=RenderNode$1,exports.TRIBE_ASSETS_BASE_URL=TRIBE_ASSETS_BASE_URL,exports.allcomponentNames=allcomponentNames,exports.analyseAndProccess=analyseAndProccess,exports.analyseNode=analyseNode,exports.defaultAppConfig=defaultAppConfig,exports.defaultProjectColors=defaultProjectColors,exports.getArrayItemType=getArrayItemType,exports.getAttributeMeta=getAttributeMeta,exports.getAttributeSchema=getAttributeSchema,exports.getBasicSamples=getBasicSamples,exports.getDefaultDevice=getDefaultDevice,exports.getDefaultProject=getDefaultProject,exports.getDefaultsForType=getDefaultsForType,exports.getDevices=getDevices,exports.getImage=getImage,exports.getMeta=getMeta,exports.getOnboardSamples=getOnboardSamples,exports.getPatternByType=getPatternByType,exports.getSamples=getSamples,exports.getTypeSchema=getTypeSchema,exports.isEmptyObject=isEmptyObject,exports.isNodeArray=isNodeArray,exports.isNodeNullOrUndefined=isNodeNullOrUndefined,exports.isNodeString=isNodeString,exports.isPrimitiveType=isPrimitiveType,exports.mergeProjectColors=mergeProjectColors,exports.novaToJson=novaToJson,exports.parseColor=parseColor,exports.parseTribeAssetName=parseTribeAssetName,exports.patterns=patterns$1,exports.querySelector=querySelector,exports.resolveImageSrc=resolveImageSrc,exports.useBuilderParams=useBuilderParams,exports.useCalculateLocalizedPrice=useCalculateLocalizedPrice,exports.useChangeDelayByPaywall=useChangeDelayByPaywall,exports.useDiscountRate=useDiscountRate,exports.useExtractImageStyle=useExtractImageStyle,exports.useExtractTextStyle=useExtractTextStyle,exports.useExtractViewStyle=useExtractViewStyle,exports.useLocalizationParams=useLocalizationParams,exports.useLocalize=useLocalize,exports.useNode=useNode,exports.useParams=useParams;
33
33
  //# sourceMappingURL=index.web.cjs.js.map