PageSourceSearch

https://www.wanaka.studio/wp-content/themes/wnk3/www/dist/main.ts-CB3ImU2k.js

js wanaka.studio collected 2026-10-09 17:30:46 UTC 621,071 bytes, 278 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["EmblemSpotLight-61in4e5b.js","threeComponent-Dp686s0D.js","Fit3D-B5-m__5T.js","Dom3D-BN9FbU2h.js","helpers-DJ2KN2tm.js","Particles-BnwpTxLe.js","DomImage-Czm_3ut3.js","RGBShiftMaterial-CRL1aHih.js","SkillIcon-TvPMGTRr.js"])))=>i.map(i=>d[i]);
2var ye=Object.defineProperty;var ve=(tt,et,it)=>et in tt?ye(tt,et,{enumerable:!0,configurable:!0,writable:!0,value:it}):tt[et]=it;var Tt=(tt,et,it)=>ve(tt,typeof et!="symbol"?et+"":et,it);var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(tt){queueJob(tt)}function queueJob(tt){queue.includes(tt)||queue.push(tt),queueFlush()}function dequeueJob(tt){let et=queue.indexOf(tt);et!==-1&&et>lastFlushedIndex&&queue.splice(et,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let tt=0;tt<queue.length;tt++)queue[tt](),lastFlushedIndex=tt;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect,release,raw,shouldSchedule=!0;function disableEffectScheduling(tt){shouldSchedule=!1,tt(),shouldSchedule=!0}function setReactivityEngine(tt){reactive=tt.reactive,release=tt.release,effect=et=>tt.effect(et,{scheduler:it=>{shouldSchedule?scheduler(it):it()}}),raw=tt.raw}function overrideEffect(tt){effect=tt}function elementBoundEffect(tt){let et=()=>{};return[rt=>{let nt=effect(rt);return tt._x_effects||(tt._x_effects=new Set,tt._x_runEffects=()=>{tt._x_effects.forEach(st=>st())}),tt._x_effects.add(nt),et=()=>{nt!==void 0&&(tt._x_effects.delete(nt),release(nt))},nt},()=>{et()}]}function watch(tt,et){let it=!0,rt,nt=effect(()=>{let st=tt();JSON.stringify(st),it?rt=st:queueMicrotask(()=>{et(st,rt),rt=st}),it=!1});return()=>release(nt)}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(tt){onElAddeds.push(tt)}function onElRemoved(tt,et){typeof et=="function"?(tt._x_cleanups||(tt._x_cleanups=[]),tt._x_cleanups.push(et)):(et=tt,onElRemoveds.push(et))}function onAttributesAdded(tt){onAttributeAddeds.push(tt)}function onAttributeRemoved(tt,et,it){tt._x_attributeCleanups||(tt._x_attributeCleanups={}),tt._x_attributeCleanups[et]||(tt._x_attributeCleanups[et]=[]),tt._x_attributeCleanups[et].push(it)}function cleanupAttributes(tt,et){tt._x_attributeCleanups&&Object.entries(tt._x_attributeCleanups).forEach(([it,rt])=>{(et===void 0||et.includes(it))&&(rt.forEach(nt=>nt()),delete tt._x_attributeCleanups[it])})}function cleanupElement(tt){var et,it;for((et=tt._x_effects)==null||et.forEach(dequeueJob);(it=tt._x_cleanups)!=null&&it.length;)tt._x_cleanups.pop()()}var observer$1=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer$1.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer$1.disconnect(),currentlyObserving=!1}var queuedMutations=[];function flushObserver(){let tt=observer$1.takeRecords();queuedMutations.push(()=>tt.length>0&&onMutate(tt));let et=queuedMutations.length;queueMicrotask(()=>{if(queuedMutations.length===et)for(;queuedMutations.length>0;)queuedMutations.shift()()})}function mutateDom(tt){if(!currentlyObserving)return tt();stopObservingMutations();let et=tt();return startObservingMutations(),et}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(tt){if(isCollecting){deferredMutations=deferredMutations.concat(tt);return}let et=[],it=new Set,rt=new Map,nt=new Map;for(let st=0;st<tt.length;st++)if(!tt[st].target._x_ignoreMutationObserver&&(tt[st].type==="childList"&&(tt[st].removedNodes.forEach(at=>{at.nodeType===1&&at._x_marker&&it.add(at)}),tt[st].addedNodes.forEach(at=>{if(at.nodeType===1){if(it.has(at)){it.delete(at);return}at._x_marker||et.push(at)}})),tt[st].type==="attributes")){let at=tt[st].target,ot=tt[st].attributeName,lt=tt[st].oldValue,ct=()=>{rt.has(at)||rt.set(at,[]),rt.get(at).push({name:ot,value:at.getAttribute(ot)})},ht=()=>{nt.has(at)||nt.set(at,[]),nt.get(at).push(ot)};at.hasAttribute(ot)&&lt===null?ct():at.hasAttribute(ot)?(ht(),ct()):ht()}nt.forEach((st,at)=>{cleanupAttributes(at,st)}),rt.forEach((st,at)=>{onAttributeAddeds.forEach(ot=>ot(at,st))});for(let st of it)et.some(at=>at.contains(st))||onElRemoveds.forEach(at=>at(st));for(let st of et)st.isConnected&&onElAddeds.forEach(at=>at(st));et=null,it=null,rt=null,nt=null}
vendor: 24,736 bytes, lines 2-6
2function scope(tt){return mergeProxies(closestDataStack(tt))}function addScopeToNode(tt,et,it){return tt._x_dataStack=[et,...closestDataStack(it||tt)],()=>{tt._x_dataStack=tt._x_dataStack.filter(rt=>rt!==et)}}function closestDataStack(tt){return tt._x_dataStack?tt._x_dataStack:typeof ShadowRoot=="function"&&tt instanceof ShadowRoot?closestDataStack(tt.host):tt.parentNode?closestDataStack(tt.parentNode):[]}function mergeProxies(tt){return new Proxy({objects:tt},mergeProxyTrap)}var mergeProxyTrap={ownKeys({objects:tt}){return Array.from(new Set(tt.flatMap(et=>Object.keys(et))))},has({objects:tt},et){return et==Symbol.unscopables?!1:tt.some(it=>Object.prototype.hasOwnProperty.call(it,et)||Reflect.has(it,et))},get({objects:tt},et,it){return et=="toJSON"?collapseProxies:Reflect.get(tt.find(rt=>Reflect.has(rt,et))||{},et,it)},set({objects:tt},et,it,rt){const nt=tt.find(at=>Object.prototype.hasOwnProperty.call(at,et))||tt[tt.length-1],st=Object.getOwnPropertyDescriptor(nt,et);return st!=null&&st.set&&(st!=null&&st.get)?st.set.call(rt,it)||!0:Reflect.set(nt,et,it)}};function collapseProxies(){return Reflect.ownKeys(this).reduce((et,it)=>(et[it]=Reflect.get(this,it),et),{})}function initInterceptors(tt){let et=rt=>typeof rt=="object"&&!Array.isArray(rt)&&rt!==null,it=(rt,nt="")=>{Object.entries(Object.getOwnPropertyDescriptors(rt)).forEach(([st,{value:at,enumerable:ot}])=>{if(ot===!1||at===void 0||typeof at=="object"&&at!==null&&at.__v_skip)return;let lt=nt===""?st:`${nt}.${st}`;typeof at=="object"&&at!==null&&at._x_interceptor?rt[st]=at.initialize(tt,lt,st):et(at)&&at!==rt&&!(at instanceof Element)&&it(at,lt)})};return it(tt)}function interceptor(tt,et=()=>{}){let it={initialValue:void 0,_x_interceptor:!0,initialize(rt,nt,st){return tt(this.initialValue,()=>get(rt,nt),at=>set(rt,nt,at),nt,st)}};return et(it),rt=>{if(typeof rt=="object"&&rt!==null&&rt._x_interceptor){let nt=it.initialize.bind(it);it.initialize=(st,at,ot)=>{let lt=rt.initialize(st,at,ot);return it.initialValue=lt,nt(st,at,ot)}}else it.initialValue=rt;return it}}function get(tt,et){return et.split(".").reduce((it,rt)=>it[rt],tt)}function set(tt,et,it){if(typeof et=="string"&&(et=et.split(".")),et.length===1)tt[et[0]]=it;else{if(et.length===0)throw error;return tt[et[0]]||(tt[et[0]]={}),set(tt[et[0]],et.slice(1),it)}}var magics={};function magic(tt,et){magics[tt]=et}function injectMagics(tt,et){let it=getUtilities(et);return Object.entries(magics).forEach(([rt,nt])=>{Object.defineProperty(tt,`$${rt}`,{get(){return nt(et,it)},enumerable:!1})}),tt}function getUtilities(tt){let[et,it]=getElementBoundUtilities(tt),rt={interceptor,...et};return onElRemoved(tt,it),rt}function tryCatch(tt,et,it,...rt){try{return it(...rt)}catch(nt){handleError(nt,tt,et)}}function handleError(...tt){return errorHandler(...tt)}var errorHandler=normalErrorHandler;function setErrorHandler(tt){errorHandler=tt}function normalErrorHandler(tt,et,it=void 0){tt=Object.assign(tt??{message:"No error message given."},{el:et,expression:it}),console.warn(`Alpine Expression Error: ${tt.message}
3
4${it?'Expression: "'+it+`"
5
6`:""}`,et),setTimeout(()=>{throw tt},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(tt){let et=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let it=tt();return shouldAutoEvaluateFunctions=et,it}function evaluate(tt,et,it={}){let rt;return evaluateLater(tt,et)(nt=>rt=nt,it),rt}function evaluateLater(...tt){return theEvaluatorFunction(...tt)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(tt){theEvaluatorFunction=tt}var theRawEvaluatorFunction;function setRawEvaluator(tt){theRawEvaluatorFunction=tt}function normalEvaluator(tt,et){let it={};injectMagics(it,tt);let rt=[it,...closestDataStack(tt)],nt=typeof et=="function"?generateEvaluatorFromFunction(rt,et):generateEvaluatorFromString(rt,et,tt);return tryCatch.bind(null,tt,et,nt)}function generateEvaluatorFromFunction(tt,et){return(it=()=>{},{scope:rt={},params:nt=[],context:st}={})=>{if(!shouldAutoEvaluateFunctions){runIfTypeOfFunction(it,et,mergeProxies([rt,...tt]),nt);return}let at=et.apply(mergeProxies([rt,...tt]),nt);runIfTypeOfFunction(it,at)}}var evaluatorMemo={};function generateFunctionFromString(tt,et){if(evaluatorMemo[tt])return evaluatorMemo[tt];let it=Object.getPrototypeOf(async function(){}).constructor,rt=/^[\n\s]*if.*\(.*\)/.test(tt.trim())||/^(let|const)\s/.test(tt.trim())?`(async()=>{ ${tt} })()`:tt,st=(()=>{try{let at=new it(["__self","scope"],`with (scope) { __self.result = ${rt} }; __self.finished = true; return __self.result;`);return Object.defineProperty(at,"name",{value:`[Alpine] ${tt}`}),at}catch(at){return handleError(at,et,tt),Promise.resolve()}})();return evaluatorMemo[tt]=st,st}function generateEvaluatorFromString(tt,et,it){let rt=generateFunctionFromString(et,it);return(nt=()=>{},{scope:st={},params:at=[],context:ot}={})=>{rt.result=void 0,rt.finished=!1;let lt=mergeProxies([st,...tt]);if(typeof rt=="function"){let ct=rt.call(ot,rt,lt).catch(ht=>handleError(ht,it,et));rt.finished?(runIfTypeOfFunction(nt,rt.result,lt,at,it),rt.result=void 0):ct.then(ht=>{runIfTypeOfFunction(nt,ht,lt,at,it)}).catch(ht=>handleError(ht,it,et)).finally(()=>rt.result=void 0)}}}function runIfTypeOfFunction(tt,et,it,rt,nt){if(shouldAutoEvaluateFunctions&&typeof et=="function"){let st=et.apply(it,rt);st instanceof Promise?st.then(at=>runIfTypeOfFunction(tt,at,it,rt)).catch(at=>handleError(at,nt,et)):tt(st)}else typeof et=="object"&&et instanceof Promise?et.then(st=>tt(st)):tt(et)}function evaluateRaw(...tt){return theRawEvaluatorFunction(...tt)}function normalRawEvaluator(tt,et,it={}){let rt={};injectMagics(rt,tt);let nt=[rt,...closestDataStack(tt)],st=mergeProxies([it.scope??{},...nt]),at=it.params??[];if(et.includes("await")){let ot=Object.getPrototypeOf(async function(){}).constructor,lt=/^[\n\s]*if.*\(.*\)/.test(et.trim())||/^(let|const)\s/.test(et.trim())?`(async()=>{ ${et} })()`:et;return new ot(["scope"],`with (scope) { let __result = ${lt}; return __result }`).call(it.context,st)}else{let ot=/^[\n\s]*if.*\(.*\)/.test(et.trim())||/^(let|const)\s/.test(et.trim())?`(()=>{ ${et} })()`:et,ct=new Function(["scope"],`with (scope) { let __result = ${ot}; return __result }`).call(it.context,st);return typeof ct=="function"&&shouldAutoEvaluateFunctions?ct.apply(st,at):ct}}var prefixAsString="x-";function prefix(tt=""){return prefixAsString+tt}function setPrefix(tt){prefixAsString=tt}var directiveHandlers={};function directive(tt,et){return directiveHandlers[tt]=et,{before(it){if(!directiveHandlers[it]){console.warn(String.raw`Cannot find directive \`${it}\`. \`${tt}\` will use the default order of execution`);return}const rt=directiveOrder.indexOf(it);directiveOrder.splice(rt>=0?rt:directiveOrder.indexOf("DEFAULT"),0,tt)}}}function directiveExists(tt){return Object.keys(directiveHandlers).includes(tt)}function directives$1(tt,et,it){if(et=Array.from(et),tt._x_virtualDirectives){let st=Object.entries(tt._x_virtualDirectives).map(([ot,lt])=>({name:ot,value:lt})),at=attributesOnly(st);st=st.map(ot=>at.find(lt=>lt.name===ot.name)?{name:`x-bind:${ot.name}`,value:`"${ot.value}"`}:ot),et=et.concat(st)}let rt={};return et.map(toTransformedAttributes((st,at)=>rt[st]=at)).filter(outNonAlpineAttributes).map(toParsedDirectives(rt,it)).sort(byPriority).map(st=>getDirectiveHandler(tt,st))}function attributesOnly(tt){return Array.from(tt).map(toTransformedAttributes()).filter(et=>!outNonAlpineAttributes(et))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(tt){isDeferringHandlers=!0;let et=Symbol();currentHandlerStackKey=et,directiveHandlerStacks.set(et,[]);let it=()=>{for(;directiveHandlerStacks.get(et).length;)directiveHandlerStacks.get(et).shift()();directiveHandlerStacks.delete(et)},rt=()=>{isDeferringHandlers=!1,it()};tt(it),rt()}function getElementBoundUtilities(tt){let et=[],it=ot=>et.push(ot),[rt,nt]=elementBoundEffect(tt);return et.push(nt),[{Alpine:alpine_default,effect:rt,cleanup:it,evaluateLater:evaluateLater.bind(evaluateLater,tt),evaluate:evaluate.bind(evaluate,tt)},()=>et.forEach(ot=>ot())]}function getDirectiveHandler(tt,et){let it=()=>{},rt=directiveHandlers[et.type]||it,[nt,st]=getElementBoundUtilities(tt);onAttributeRemoved(tt,et.original,st);let at=()=>{tt._x_ignore||tt._x_ignoreSelf||(rt.inline&&rt.inline(tt,et,nt),rt=rt.bind(rt,tt,et,nt),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(rt):rt())};return at.runCleanups=st,at}var startingWith=(tt,et)=>({name:it,value:rt})=>(it.startsWith(tt)&&(it=it.replace(tt,et)),{name:it,value:rt}),into=tt=>tt;function toTransformedAttributes(tt=()=>{}){return({name:et,value:it})=>{let{name:rt,value:nt}=attributeTransformers.reduce((st,at)=>at(st),{name:et,value:it});return rt!==et&&tt(rt,et),{name:rt,value:nt}}}var attributeTransformers=[];function mapAttributes(tt){attributeTransformers.push(tt)}function outNonAlpineAttributes({name:tt}){return alpineAttributeRegex().test(tt)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(tt,et){return({name:it,value:rt})=>{let nt=it.match(alpineAttributeRegex()),st=it.match(/:([a-zA-Z0-9\-_:]+)/),at=it.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],ot=et||tt[it]||it;return{type:nt?nt[1]:null,value:st?st[1]:null,modifiers:at.map(lt=>lt.replace(".","")),expression:rt,original:ot}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(tt,et){let it=directiveOrder.indexOf(tt.type)===-1?DEFAULT:tt.type,rt=directiveOrder.indexOf(et.type)===-1?DEFAULT:et.type;return directiveOrder.indexOf(it)-directiveOrder.indexOf(rt)}function dispatch(tt,et,it={}){tt.dispatchEvent(new CustomEvent(et,{detail:it,bubbles:!0,composed:!0,cancelable:!0}))}function walk(tt,et){if(typeof ShadowRoot=="function"&&tt instanceof ShadowRoot){Array.from(tt.children).forEach(nt=>walk(nt,et));return}let it=!1;if(et(tt,()=>it=!0),it)return;let rt=tt.firstElementChild;for(;rt;)walk(rt,et),rt=rt.nextElementSibling}function warn(tt,...et){console.warn(`Alpine Warning: ${tt}`,...et)}var started=!1;function start(){started&&warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),started=!0,document.body||warn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),dispatch(document,"alpine:init"),dispatch(document,"alpine:initializing"),startObservingMutations(),onElAdded(et=>initTree(et,walk)),onElRemoved(et=>destroyTree(et)),onAttributesAdded((et,it)=>{directives$1(et,it).forEach(rt=>rt())});let tt=et=>!closestRoot(et.parentElement,!0);Array.from(document.querySelectorAll(allSelectors().join(","))).filter(tt).forEach(et=>{initTree(et)}),dispatch(document,"alpine:initialized"),setTimeout(()=>{warnAboutMissingPlugins()})}var rootSelectorCallbacks=[],initSelectorCallbacks=[];function rootSelectors(){return rootSelectorCallbacks.map(tt=>tt())}function allSelectors(){return rootSelectorCallbacks.concat(initSelectorCallbacks).map(tt=>tt())}function addRootSelector(tt){rootSelectorCallbacks.push(tt)}function addInitSelector(tt){initSelectorCallbacks.push(tt)}function closestRoot(tt,et=!1){return findClosest(tt,it=>{if((et?allSelectors():rootSelectors()).some(nt=>it.matches(nt)))return!0})}function findClosest(tt,et){if(tt){if(et(tt))return tt;if(tt._x_teleportBack&&(tt=tt._x_teleportBack),tt.parentNode instanceof ShadowRoot)return findClosest(tt.parentNode.host,et);if(tt.parentElement)return findClosest(tt.parentElement,et)}}function isRoot(tt){return rootSelectors().some(et=>tt.matches(et))}var initInterceptors2=[];function interceptInit(tt){initInterceptors2.push(tt)}var markerDispenser=1;function initTree(tt,et=walk,it=()=>{}){findClosest(tt,rt=>rt._x_ignore)||deferHandlingDirectives(()=>{et(tt,(rt,nt)=>{rt._x_marker||(it(rt,nt),initInterceptors2.forEach(st=>st(rt,nt)),directives$1(rt,rt.attributes).forEach(st=>st()),rt._x_ignore||(rt._x_marker=markerDispenser++),rt._x_ignore&&nt())})})}function destroyTree(tt,et=walk){et(tt,it=>{cleanupElement(it),cleanupAttributes(it),delete it._x_marker})}function warnAboutMissingPlugins(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([et,it,rt])=>{directiveExists(it)||rt.some(nt=>{if(document.querySelector(nt))return warn(`found "${nt}", but missing ${et} plugin`),!0})})}var tickStack=[],isHolding=!1;function nextTick$1(tt=()=>{}){return queueMicrotask(()=>{isHolding||setTimeout(()=>{releaseNextTicks()})}),new Promise(et=>{tickStack.push(()=>{tt(),et()})})}function releaseNextTicks(){for(isHolding=!1;tickStack.length;)tickStack.shift()()}function holdNextTicks(){isHolding=!0}function setClasses(tt,et){return Array.isArray(et)?setClassesFromString(tt,et.join(" ")):typeof et=="object"&&et!==null?setClassesFromObject(tt,et):typeof et=="function"?setClasses(tt,et()):setClassesFromString(tt,et)}function setClassesFromString(tt,et){let it=nt=>nt.split(" ").filter(st=>!tt.classList.contains(st)).filter(Boolean),rt=nt=>(tt.classList.add(...nt),()=>{tt.classList.remove(...nt)});return et=et===!0?et="":et||"",rt(it(et))}function setClassesFromObject(tt,et){let it=ot=>ot.split(" ").filter(Boolean),rt=Object.entries(et).flatMap(([ot,lt])=>lt?it(ot):!1).filter(Boolean),nt=Object.entries(et).flatMap(([ot,lt])=>lt?!1:it(ot)).filter(Boolean),st=[],at=[];return nt.forEach(ot=>{tt.classList.contains(ot)&&(tt.classList.remove(ot),at.push(ot))}),rt.forEach(ot=>{tt.classList.contains(ot)||(tt.classList.add(ot),st.push(ot))}),()=>{at.forEach(ot=>tt.classList.add(ot)),st.forEach(ot=>tt.classList.remove(ot))}}function setStyles(tt,et){return typeof et=="object"&&et!==null?setStylesFromObject(tt,et):setStylesFromString(tt,et)}function setStylesFromObject(tt,et){let it={};return Object.entries(et).forEach(([rt,nt])=>{it[rt]=tt.style[rt],rt.startsWith("--")||(rt=kebabCase(rt)),tt.style.setProperty(rt,nt)}),setTimeout(()=>{tt.style.length===0&&tt.removeAttribute("style")}),()=>{setStyles(tt,it)}}function setStylesFromString(tt,et){let it=tt.getAttribute("style",et);return tt.setAttribute("style",et),()=>{tt.setAttribute("style",it||"")}}function kebabCase(tt){return tt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function once(tt,et=()=>{}){let it=!1;return function(){it?et.apply(this,arguments):(it=!0,tt.apply(this,arguments))}}directive("transition",(tt,{value:et,modifiers:it,expression:rt},{evaluate:nt})=>{typeof rt=="function"&&(rt=nt(rt)),rt!==!1&&(!rt||typeof rt=="boolean"?registerTransitionsFromHelper(tt,it,et):registerTransitionsFromClassString(tt,rt,et))});function registerTransitionsFromClassString(tt,et,it){registerTransitionObject(tt,setClasses,""),{enter:nt=>{tt._x_transition.enter.during=nt},"enter-start":nt=>{tt._x_transition.enter.start=nt},"enter-end":nt=>{tt._x_transition.enter.end=nt},leave:nt=>{tt._x_transition.leave.during=nt},"leave-start":nt=>{tt._x_transition.leave.start=nt},"leave-end":nt=>{tt._x_transition.leave.end=nt}}[it](et)}function registerTransitionsFromHelper(tt,et,it){registerTransitionObject(tt,setStyles);let rt=!et.includes("in")&&!et.includes("out")&&!it,nt=rt||et.includes("in")||["enter"].includes(it),st=rt||et.includes("out")||["leave"].includes(it);et.includes("in")&&!rt&&(et=et.filter((yt,vt)=>vt<et.indexOf("out"))),et.includes("out")&&!rt&&(et=et.filter((yt,vt)=>vt>et.indexOf("out")));let at=!et.includes("opacity")&&!et.includes("scale"),ot=at||et.includes("opacity"),lt=at||et.includes("scale"),ct=ot?0:1,ht=lt?modifierValue(et,"scale",95)/100:1,dt=modifierValue(et,"delay",0)/1e3,ut=modifierValue(et,"origin","center"),gt="opacity, transform",mt=modifierValue(et,"duration",150)/1e3,ft=modifierValue(et,"duration",75)/1e3,pt="cubic-bezier(0.4, 0.0, 0.2, 1)";nt&&(tt._x_transition.enter.during={transformOrigin:ut,transitionDelay:`${dt}s`,transitionProperty:gt,transitionDuration:`${mt}s`,transitionTimingFunction:pt},tt._x_transition.enter.start={opacity:ct,transform:`scale(${ht})`},tt._x_transition.enter.end={opacity:1,transform:"scale(1)"}),st&&(tt._x_transition.leave.during={transformOrigin:ut,transitionDelay:`${dt}s`,transitionProperty:gt,transitionDuration:`${ft}s`,transitionTimingFunction:pt},tt._x_transition.leave.start={opacity:1,transform:"scale(1)"},tt._x_transition.leave.end={opacity:ct,transform:`scale(${ht})`})}function registerTransitionObject(tt,et,it={}){tt._x_transition||(tt._x_transition={enter:{during:it,start:it,end:it},leave:{during:it,start:it,end:it},in(rt=()=>{},nt=()=>{}){transition(tt,et,{during:this.enter.during,start:this.enter.start,end:this.enter.end},rt,nt)},out(rt=()=>{},nt=()=>{}){transition(tt,et,{during:this.leave.during,start:this.leave.start,end:this.leave.end},rt,nt)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(tt,et,it,rt){const nt=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let st=()=>nt(it);if(et){tt._x_transition&&(tt._x_transition.enter||tt._x_transition.leave)?tt._x_transition.enter&&(Object.entries(tt._x_transition.enter.during).length||Object.entries(tt._x_transition.enter.start).length||Object.entries(tt._x_transition.enter.end).length)?tt._x_transition.in(it):st():tt._x_transition?tt._x_transition.in(it):st();return}tt._x_hidePromise=tt._x_transition?new Promise((at,ot)=>{tt._x_transition.out(()=>{},()=>at(rt)),tt._x_transitioning&&tt._x_transitioning.beforeCancel(()=>ot({isFromCancelledTransition:!0}))}):Promise.resolve(rt),queueMicrotask(()=>{let at=closestHide(tt);at?(at._x_hideChildren||(at._x_hideChildren=[]),at._x_hideChildren.push(tt)):nt(()=>{let ot=lt=>{let ct=Promise.all([lt._x_hidePromise,...(lt._x_hideChildren||[]).map(ot)]).then(([ht])=>ht==null?void 0:ht());return delete lt._x_hidePromise,delete lt._x_hideChildren,ct};ot(tt).catch(lt=>{if(!lt.isFromCancelledTransition)throw lt})})})};function closestHide(tt){let et=tt.parentNode;if(et)return et._x_hidePromise?et:closestHide(et)}function transition(tt,et,{during:it,start:rt,end:nt}={},st=()=>{},at=()=>{}){if(tt._x_transitioning&&tt._x_transitioning.cancel(),Object.keys(it).length===0&&Object.keys(rt).length===0&&Object.keys(nt).length===0){st(),at();return}let ot,lt,ct;performTransition(tt,{start(){ot=et(tt,rt)},during(){lt=et(tt,it)},before:st,end(){ot(),ct=et(tt,nt)},after:at,cleanup(){lt(),ct()}})}function performTransition(tt,et){let it,rt,nt,st=once(()=>{mutateDom(()=>{it=!0,rt||et.before(),nt||(et.end(),releaseNextTicks()),et.after(),tt.isConnected&&et.cleanup(),delete tt._x_transitioning})});tt._x_transitioning={beforeCancels:[],beforeCancel(at){this.beforeCancels.push(at)},cancel:once(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();st()}),finish:st},mutateDom(()=>{et.start(),et.during()}),holdNextTicks(),requestAnimationFrame(()=>{if(it)return;let at=Number(getComputedStyle(tt).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,ot=Number(getComputedStyle(tt).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;at===0&&(at=Number(getComputedStyle(tt).animationDuration.replace("s",""))*1e3),mutateDom(()=>{et.before()}),rt=!0,requestAnimationFrame(()=>{it||(mutateDom(()=>{et.end()}),releaseNextTicks(),setTimeout(tt._x_transitioning.finish,at+ot),nt=!0)})})}function modifierValue(tt,et,it){if(tt.indexOf(et)===-1)return it;const rt=tt[tt.indexOf(et)+1];if(!rt||et==="scale"&&isNaN(rt))return it;if(et==="duration"||et==="delay"){let nt=rt.match(/([0-9]+)ms/);if(nt)return nt[1]}return et==="origin"&&["top","right","left","center","bottom"].includes(tt[tt.indexOf(et)+2])?[rt,tt[tt.indexOf(et)+2]].join(" "):rt}var isCloning=!1;function skipDuringClone(tt,et=()=>{}){return(...it)=>isCloning?et(...it):tt(...it)}function onlyDuringClone(tt){return(...et)=>isCloning&&tt(...et)}var interceptors=[];function interceptClone(tt){interceptors.push(tt)}function cloneNode(tt,et){interceptors.forEach(it=>it(tt,et)),isCloning=!0,dontRegisterReactiveSideEffects(()=>{initTree(et,(it,rt)=>{rt(it,()=>{})})}),isCloning=!1}var isCloningLegacy=!1;function clone(tt,et){et._x_dataStack||(et._x_dataStack=tt._x_dataStack),isCloning=!0,isCloningLegacy=!0,dontRegisterReactiveSideEffects(()=>{cloneTree(et)}),isCloning=!1,isCloningLegacy=!1}function cloneTree(tt){let et=!1;initTree(tt,(rt,nt)=>{walk(rt,(st,at)=>{if(et&&isRoot(st))return at();et=!0,nt(st,at)})})}function dontRegisterReactiveSideEffects(tt){let et=effect;overrideEffect((it,rt)=>{let nt=et(it);return release(nt),()=>{}}),tt(),overrideEffect(et)}function bind(tt,et,it,rt=[]){switch(tt._x_bindings||(tt._x_bindings=reactive({})),tt._x_bindings[et]=it,et=rt.includes("camel")?camelCase(et):et,et){case"value":bindInputValue(tt,it);break;case"style":bindStyles(tt,it);break;case"class":bindClasses(tt,it);break;case"selected":case"checked":bindAttributeAndProperty(tt,et,it);break;default:bindAttribute(tt,et,it);break}}function bindInputValue(tt,et){if(isRadio(tt))tt.attributes.value===void 0&&(tt.value=et),window.fromModel&&(typeof et=="boolean"?tt.checked=safeParseBoolean(tt.value)===et:tt.checked=checkedAttrLooseCompare(tt.value,et));else if(isCheckbox(tt))Number.isInteger(et)?tt.value=et:!Array.isArray(et)&&typeof et!="boolean"&&![null,void 0].includes(et)?tt.value=String(et):Array.isArray(et)?tt.checked=et.some(it=>checkedAttrLooseCompare(it,tt.value)):tt.checked=!!et;else if(tt.tagName==="SELECT")updateSelect(tt,et);else{if(tt.value===et)return;tt.value=et===void 0?"":et}}function bindClasses(tt,et){tt._x_undoAddedClasses&&tt._x_undoAddedClasses(),tt._x_undoAddedClasses=setClasses(tt,et)}function bindStyles(tt,et){tt._x_undoAddedStyles&&tt._x_undoAddedStyles(),tt._x_undoAddedStyles=setStyles(tt,et)}function bindAttributeAndProperty(tt,et,it){bindAttribute(tt,et,it),setPropertyIfChanged(tt,et,it)}function bindAttribute(tt,et,it){[null,void 0,!1].includes(it)&&attributeShouldntBePreservedIfFalsy(et)?tt.removeAttribute(et):(isBooleanAttr(et)&&(it=et),setIfChanged(tt,et,it))}function setIfChanged(tt,et,it){tt.getAttribute(et)!=it&&tt.setAttribute(et,it)}function setPropertyIfChanged(tt,et,it){tt[et]!==it&&(tt[et]=it)}function updateSelect(tt,et){const it=[].concat(et).map(rt=>rt+"");Array.from(tt.options).forEach(rt=>{rt.selected=it.includes(rt.value)})}function camelCase(tt){return tt.toLowerCase().replace(/-(\w)/g,(et,it)=>it.toUpperCase())}function checkedAttrLooseCompare(tt,et){return tt==et}function safeParseBoolean(tt){return[1,"1","true","on","yes",!0].includes(tt)?!0:[0,"0","false","off","no",!1].includes(tt)?!1:tt?!!tt:null}var booleanAttributes=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function isBooleanAttr(tt){return booleanAttributes.has(tt)}function attributeShouldntBePreservedIfFalsy(tt){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(tt)}function getBinding(tt,et,it){return tt._x_bindings&&tt._x_bindings[et]!==void 0?tt._x_bindings[et]:getAttributeBinding(tt,et,it)}function extractProp(tt,et,it,rt=!0){if(tt._x_bindings&&tt._x_bindings[et]!==void 0)return tt._x_bindings[et];if(tt._x_inlineBindings&&tt._x_inlineBindings[et]!==void 0){let nt=tt._x_inlineBindings[et];return nt.extract=rt,dontAutoEvaluateFunctions(()=>evaluate(tt,nt.expression))}return getAttributeBinding(tt,et,it)}function getAttributeBinding(tt,et,it){let rt=tt.getAttribute(et);return rt===null?typeof it=="function"?it():it:rt===""?!0:isBooleanAttr(et)?!![et,"true"].includes(rt):rt}function isCheckbox(tt){return tt.type==="checkbox"||tt.localName==="ui-checkbox"||tt.localName==="ui-switch"}function isRadio(tt){return tt.type==="radio"||tt.localName==="ui-radio"}function debounce$3(tt,et){let it;return function(){const rt=this,nt=arguments,st=function(){it=null,tt.apply(rt,nt)};clearTimeout(it),it=setTimeout(st,et)}}function throttle$2(tt,et){let it;return function(){let rt=this,nt=arguments;it||(tt.apply(rt,nt),it=!0,setTimeout(()=>it=!1,et))}}function entangle({get:tt,set:et},{get:it,set:rt}){let nt=!0,st,at=effect(()=>{let ot=tt(),lt=it();if(nt)rt(cloneIfObject(ot)),nt=!1;else{let ct=JSON.stringify(ot),ht=JSON.stringify(lt);ct!==st?rt(cloneIfObject(ot)):ct!==ht&&et(cloneIfObject(lt))}st=JSON.stringify(tt()),JSON.stringify(it())});return()=>{release(at)}}function cloneIfObject(tt){return typeof tt=="object"?JSON.parse(JSON.stringify(tt)):tt}
6function plugin(tt){(Array.isArray(tt)?tt:[tt]).forEach(it=>it(alpine_default))}var stores={},isReactive=!1;function store(tt,et){if(isReactive||(stores=reactive(stores),isReactive=!0),et===void 0)return stores[tt];stores[tt]=et,initInterceptors(stores[tt]),typeof et=="object"&&et!==null&&et.hasOwnProperty("init")&&typeof et.init=="function"&&stores[tt].init()}function getStores(){return stores}var binds={};function bind2(tt,et){let it=typeof et!="function"?()=>et:et;return tt instanceof Element?applyBindingsObject(tt,it()):(binds[tt]=it,()=>{})}function injectBindingProviders(tt){return Object.entries(binds).forEach(([et,it])=>{Object.defineProperty(tt,et,{get(){return(...rt)=>it(...rt)}})}),tt}function applyBindingsObject(tt,et,it){let rt=[];for(;rt.length;)rt.pop()();let nt=Object.entries(et).map(([at,ot])=>({name:at,value:ot})),st=attributesOnly(nt);return nt=nt.map(at=>st.find(ot=>ot.name===at.name)?{name:`x-bind:${at.name}`,value:`"${at.value}"`}:at),directives$1(tt,nt,it).map(at=>{rt.push(at.runCleanups),at()}),()=>{for(;rt.length;)rt.pop()()}}var datas={};function data$1(tt,et){datas[tt]=et}function injectDataProviders(tt,et){return Object.entries(datas).forEach(([it,rt])=>{Object.defineProperty(tt,it,{get(){return(...nt)=>rt.bind(et)(...nt)},enumerable:!1})}),tt}var Alpine$1={get reactive(){return reactive},get release(){return release},get effect(){return effect},get raw(){return raw},version:"3.15.3",flushAndStopDeferringMutations,dontAutoEvaluateFunctions,disableEffectScheduling,startObservingMutations,stopObservingMutations,setReactivityEngine,onAttributeRemoved,onAttributesAdded,closestDataStack,skipDuringClone,onlyDuringClone,addRootSelector,addInitSelector,setErrorHandler,interceptClone,addScopeToNode,deferMutations,mapAttributes,evaluateLater,interceptInit,initInterceptors,injectMagics,setEvaluator,setRawEvaluator,mergeProxies,extractProp,findClosest,onElRemoved,closestRoot,destroyTree,interceptor,transition,setStyles,mutateDom,directive,entangle,throttle:throttle$2,debounce:debounce$3,evaluate,evaluateRaw,initTree,nextTick:nextTick$1,prefixed:prefix,prefix:setPrefix,plugin,magic,store,start,clone,cloneNode,bound:getBinding,$data:scope,watch,walk,data:data$1,bind:bind2},alpine_default=Alpine$1;function makeMap(tt,et){const it=Object.create(null),rt=tt.split(",");for(let nt=0;nt<rt.length;nt++)it[rt[nt]]=!0;return nt=>!!it[nt]}var EMPTY_OBJ=Object.freeze({}),hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn=(tt,et)=>hasOwnProperty$1.call(tt,et),isArray=Array.isArray,isMap=tt=>toTypeString(tt)==="[object Map]",isString$1=tt=>typeof tt=="string",isSymbol$2=tt=>typeof tt=="symbol",isObject$4=tt=>tt!==null&&typeof tt=="object",objectToString$2=Object.prototype.toString,toTypeString=tt=>objectToString$2.call(tt),toRawType=tt=>toTypeString(tt).slice(8,-1),isIntegerKey=tt=>isString$1(tt)&&tt!=="NaN"&&tt[0]!=="-"&&""+parseInt(tt,10)===tt,cacheStringFunction=tt=>{const et=Object.create(null);return it=>et[it]||(et[it]=tt(it))},capitalize=cacheStringFunction(tt=>tt.charAt(0).toUpperCase()+tt.slice(1)),hasChanged=(tt,et)=>tt!==et&&(tt===tt||et===et),targetMap=new WeakMap,effectStack=[],activeEffect,ITERATE_KEY=Symbol("iterate"),MAP_KEY_ITERATE_KEY=Symbol("Map key iterate");function isEffect(tt){return tt&&tt._isEffect===!0}function effect2(tt,et=EMPTY_OBJ){isEffect(tt)&&(tt=tt.raw);const it=createReactiveEffect(tt,et);return et.lazy||it(),it}function stop(tt){tt.active&&(cleanup(tt),tt.options.onStop&&tt.options.onStop(),tt.active=!1)}var uid=0;function createReactiveEffect(tt,et){const it=function(){if(!it.active)return tt();if(!effectStack.includes(it)){cleanup(it);try{return enableTracking(),effectStack.push(it),activeEffect=it,tt()}finally{effectStack.pop(),resetTracking(),activeEffect=effectStack[effectStack.length-1]}}};return it.id=uid++,it.allowRecurse=!!et.allowRecurse,it._isEffect=!0,it.active=!0,it.raw=tt,it.deps=[],it.options=et,it}function cleanup(tt){const{deps:et}=tt;if(et.length){for(let it=0;it<et.length;it++)et[it].delete(tt);et.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const tt=trackStack.pop();shouldTrack=tt===void 0?!0:tt}function track(tt,et,it){if(!shouldTrack||activeEffect===void 0)return;let rt=targetMap.get(tt);rt||targetMap.set(tt,rt=new Map);let nt=rt.get(it);nt||rt.set(it,nt=new Set),nt.has(activeEffect)||(nt.add(activeEffect),activeEffect.deps.push(nt),activeEffect.options.onTrack&&activeEffect.options.onTrack({effect:activeEffect,target:tt,type:et,key:it}))}function trigger(tt,et,it,rt,nt,st){const at=targetMap.get(tt);if(!at)return;const ot=new Set,lt=ht=>{ht&&ht.forEach(dt=>{(dt!==activeEffect||dt.allowRecurse)&&ot.add(dt)})};if(et==="clear")at.forEach(lt);else if(it==="length"&&isArray(tt))at.forEach((ht,dt)=>{(dt==="length"||dt>=rt)&&lt(ht)});else switch(it!==void 0&&lt(at.get(it)),et){case"add":isArray(tt)?isIntegerKey(it)&&lt(at.get("length")):(lt(at.get(ITERATE_KEY)),isMap(tt)&&lt(at.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray(tt)||(lt(at.get(ITERATE_KEY)),isMap(tt)&&lt(at.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(tt)&&lt(at.get(ITERATE_KEY));break}const ct=ht=>{ht.options.onTrigger&&ht.options.onTrigger({effect:ht,target:tt,key:it,type:et,newValue:rt,oldValue:nt,oldTarget:st}),ht.options.scheduler?ht.options.scheduler(ht):ht()};ot.forEach(ct)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbol
6s=new Set(Object.getOwnPropertyNames(Symbol).map(tt=>Symbol[tt]).filter(isSymbol$2)),get2=createGetter(),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const tt={};return["includes","indexOf","lastIndexOf"].forEach(et=>{tt[et]=function(...it){const rt=toRaw(this);for(let st=0,at=this.length;st<at;st++)track(rt,"get",st+"");const nt=rt[et](...it);return nt===-1||nt===!1?rt[et](...it.map(toRaw)):nt}}),["push","pop","shift","unshift","splice"].forEach(et=>{tt[et]=function(...it){pauseTracking();const rt=toRaw(this)[et].apply(this,it);return resetTracking(),rt}}),tt}function createGetter(tt=!1,et=!1){return function(rt,nt,st){if(nt==="__v_isReactive")return!tt;if(nt==="__v_isReadonly")return tt;if(nt==="__v_raw"&&st===(tt?et?shallowReadonlyMap:readonlyMap:et?shallowReactiveMap:reactiveMap).get(rt))return rt;const at=isArray(rt);if(!tt&&at&&hasOwn(arrayInstrumentations,nt))return Reflect.get(arrayInstrumentations,nt,st);const ot=Reflect.get(rt,nt,st);return(isSymbol$2(nt)?builtInSymbols.has(nt):isNonTrackableKeys(nt))||(tt||track(rt,"get",nt),et)?ot:isRef(ot)?!at||!isIntegerKey(nt)?ot.value:ot:isObject$4(ot)?tt?readonly(ot):reactive2(ot):ot}}var set2=createSetter();function createSetter(tt=!1){return function(it,rt,nt,st){let at=it[rt];if(!tt&&(nt=toRaw(nt),at=toRaw(at),!isArray(it)&&isRef(at)&&!isRef(nt)))return at.value=nt,!0;const ot=isArray(it)&&isIntegerKey(rt)?Number(rt)<it.length:hasOwn(it,rt),lt=Reflect.set(it,rt,nt,st);return it===toRaw(st)&&(ot?hasChanged(nt,at)&&trigger(it,"set",rt,nt,at):trigger(it,"add",rt,nt)),lt}}function deleteProperty(tt,et){const it=hasOwn(tt,et),rt=tt[et],nt=Reflect.deleteProperty(tt,et);return nt&&it&&trigger(tt,"delete",et,void 0,rt),nt}function has(tt,et){const it=Reflect.has(tt,et);return(!isSymbol$2(et)||!builtInSymbols.has(et))&&track(tt,"has",et),it}function ownKeys$1(tt){return track(tt,"iterate",isArray(tt)?"length":ITERATE_KEY),Reflect.ownKeys(tt)}var mutableHandlers={get:get2,set:set2,deleteProperty,has,ownKeys:ownKeys$1},readonlyHandlers={get:readonlyGet,set(tt,et){return console.warn(`Set operation on key "${String(et)}" failed: target is readonly.`,tt),!0},deleteProperty(tt,et){return console.warn(`Delete operation on key "${String(et)}" failed: target is readonly.`,tt),!0}},toReactive=tt=>isObject$4(tt)?reactive2(tt):tt,toReadonly=tt=>isObject$4(tt)?readonly(tt):tt,toShallow=tt=>tt,getProto=tt=>Reflect.getPrototypeOf(tt);function get$1(tt,et,it=!1,rt=!1){tt=tt.__v_raw;const nt=toRaw(tt),st=toRaw(et);et!==st&&!it&&track(nt,"get",et),!it&&track(nt,"get",st);const{has:at}=getProto(nt),ot=rt?toShallow:it?toReadonly:toReactive;if(at.call(nt,et))return ot(tt.get(et));if(at.call(nt,st))return ot(tt.get(st));tt!==nt&&tt.get(et)}function has$1(tt,et=!1){const it=this.__v_raw,rt=toRaw(it),nt=toRaw(tt);return tt!==nt&&!et&&track(rt,"has",tt),!et&&track(rt,"has",nt),tt===nt?it.has(tt):it.has(tt)||it.has(nt)}function size(tt,et=!1){return tt=tt.__v_raw,!et&&track(toRaw(tt),"iterate",ITERATE_KEY),Reflect.get(tt,"size",tt)}function add(tt){tt=toRaw(tt);const et=toRaw(this);return getProto(et).has.call(et,tt)||(et.add(tt),trigger(et,"add",tt,tt)),this}function set$1(tt,et){et=toRaw(et);const it=toRaw(this),{has:rt,get:nt}=getProto(it);let st=rt.call(it,tt);st?checkIdentityKeys(it,rt,tt):(tt=toRaw(tt),st=rt.call(it,tt));const at=nt.call(it,tt);return it.set(tt,et),st?hasChanged(et,at)&&trigger(it,"set",tt,et,at):trigger(it,"add",tt,et),this}function deleteEntry(tt){const et=toRaw(this),{has:it,get:rt}=getProto(et);let nt=it.call(et,tt);nt?checkIdentityKeys(et,it,tt):(tt=toRaw(tt),nt=it.call(et,tt));const st=rt?rt.call(et,tt):void 0,at=et.delete(tt);return nt&&trigger(et,"delete",tt,void 0,st),at}function clear(){const tt=toRaw(this),et=tt.size!==0,it=isMap(tt)?new Map(tt):new Set(tt),rt=tt.clear();return et&&trigger(tt,"clear",void 0,void 0,it),rt}function createForEach(tt,et){return function(rt,nt){const st=this,at=st.__v_raw,ot=toRaw(at),lt=et?toShallow:tt?toReadonly:toReactive;return!tt&&track(ot,"iterate",ITERATE_KEY),at.forEach((ct,ht)=>rt.call(nt,lt(ct),lt(ht),st))}}function createIterableMethod(tt,et,it){return function(...rt){const nt=this.__v_raw,st=toRaw(nt),at=isMap(st),ot=tt==="entries"||tt===Symbol.iterator&&at,lt=tt==="keys"&&at,ct=nt[tt](...rt),ht=it?toShallow:et?toReadonly:toReactive;return!et&&track(st,"iterate",lt?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:dt,done:ut}=ct.next();return ut?{value:dt,done:ut}:{value:ot?[ht(dt[0]),ht(dt[1])]:ht(dt),done:ut}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(tt){return function(...et){{const it=et[0]?`on key "${et[0]}" `:"";console.warn(`${capitalize(tt)} operation ${it}failed: target is readonly.`,toRaw(this))}return tt==="delete"?!1:this}}function createInstrumentations(){const tt={get(st){return get$1(this,st)},get size(){return size(this)}
6,has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},et={get(st){return get$1(this,st,!1,!0)},get size(){return size(this)},has:has$1,add,set:set$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},it={get(st){return get$1(this,st,!0)},get size(){return size(this,!0)},has(st){return has$1.call(this,st,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},rt={get(st){return get$1(this,st,!0,!0)},get size(){return size(this,!0)},has(st){return has$1.call(this,st,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(st=>{tt[st]=createIterableMethod(st,!1,!1),it[st]=createIterableMethod(st,!0,!1),et[st]=createIterableMethod(st,!1,!0),rt[st]=createIterableMethod(st,!0,!0)}),[tt,it,et,rt]}var[mutableInstrumentations,readonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(tt,et){const it=tt?readonlyInstrumentations:mutableInstrumentations;return(rt,nt,st)=>nt==="__v_isReactive"?!tt:nt==="__v_isReadonly"?tt:nt==="__v_raw"?rt:Reflect.get(hasOwn(it,nt)&&nt in rt?it:rt,nt,st)}var mutableCollectionHandlers={get:createInstrumentationGetter(!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0)};function checkIdentityKeys(tt,et,it){const rt=toRaw(it);if(rt!==it&&et.call(tt,rt)){const nt=toRawType(tt);console.warn(`Reactive ${nt} contains both the raw and reactive versions of the same object${nt==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(tt){switch(tt){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(tt){return tt.__v_skip||!Object.isExtensible(tt)?0:targetTypeMap(toRawType(tt))}function reactive2(tt){return tt&&tt.__v_isReadonly?tt:createReactiveObject(tt,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(tt){return createReactiveObject(tt,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(tt,et,it,rt,nt){if(!isObject$4(tt))return console.warn(`value cannot be made reactive: ${String(tt)}`),tt;if(tt.__v_raw&&!(et&&tt.__v_isReactive))return tt;const st=nt.get(tt);if(st)return st;const at=getTargetType(tt);if(at===0)return tt;const ot=new Proxy(tt,at===2?rt:it);return nt.set(tt,ot),ot}function toRaw(tt){return tt&&toRaw(tt.__v_raw)||tt}function isRef(tt){return!!(tt&&tt.__v_isRef===!0)}magic("nextTick",()=>nextTick$1);magic("dispatch",tt=>dispatch.bind(dispatch,tt));magic("watch",(tt,{evaluateLater:et,cleanup:it})=>(rt,nt)=>{let st=et(rt),ot=watch(()=>{let lt;return st(ct=>lt=ct),lt},nt);it(ot)});magic("store",getStores);magic("data",tt=>scope(tt));magic("root",tt=>closestRoot(tt));magic("refs",tt=>(tt._x_refs_proxy||(tt._x_refs_proxy=mergeProxies(getArrayOfRefObject(tt))),tt._x_refs_proxy));function getArrayOfRefObject(tt){let et=[];return findClosest(tt,it=>{it._x_refs&&et.push(it._x_refs)}),et}var globalIdMemo={};function findAndIncrementId(tt){return globalIdMemo[tt]||(globalIdMemo[tt]=0),++globalIdMemo[tt]}function closestIdRoot(tt,et){return findClosest(tt,it=>{if(it._x_ids&&it._x_ids[et])return!0})}function setIdRoot(tt,et){tt._x_ids||(tt._x_ids={}),tt._x_ids[et]||(tt._x_ids[et]=findAndIncrementId(et))}magic("id",(tt,{cleanup:et})=>(it,rt=null)=>{let nt=`${it}${rt?`-${rt}`:""}`;return cacheIdByNameOnElement(tt,nt,et,()=>{let st=closestIdRoot(tt,it),at=st?st._x_ids[it]:findAndIncrementId(it);return rt?`${it}-${at}-${rt}`:`${it}-${at}`})});interceptClone((tt,et)=>{tt._x_id&&(et._x_id=tt._x_id)});function cacheIdByNameOnElement(tt,et,it,rt){if(tt._x_id||(tt._x_id={}
vendor: 11,051 bytes, line 6
6),tt._x_id[et])return tt._x_id[et];let nt=rt();return tt._x_id[et]=nt,it(()=>{delete tt._x_id[et]}),nt}magic("el",tt=>tt);warnMissingPluginMagic("Focus","focus","focus");warnMissingPluginMagic("Persist","persist","persist");function warnMissingPluginMagic(tt,et,it){magic(et,rt=>warn(`You can't use [$${et}] without first installing the "${tt}" plugin here: https://alpinejs.dev/plugins/${it}`,rt))}directive("modelable",(tt,{expression:et},{effect:it,evaluateLater:rt,cleanup:nt})=>{let st=rt(et),at=()=>{let ht;return st(dt=>ht=dt),ht},ot=rt(`${et} = __placeholder`),lt=ht=>ot(()=>{},{scope:{__placeholder:ht}}),ct=at();lt(ct),queueMicrotask(()=>{if(!tt._x_model)return;tt._x_removeModelListeners.default();let ht=tt._x_model.get,dt=tt._x_model.set,ut=entangle({get(){return ht()},set(gt){dt(gt)}},{get(){return at()},set(gt){lt(gt)}});nt(ut)})});directive("teleport",(tt,{modifiers:et,expression:it},{cleanup:rt})=>{tt.tagName.toLowerCase()!=="template"&&warn("x-teleport can only be used on a <template> tag",tt);let nt=getTarget(it),st=tt.content.cloneNode(!0).firstElementChild;tt._x_teleport=st,st._x_teleportBack=tt,tt.setAttribute("data-teleport-template",!0),st.setAttribute("data-teleport-target",!0),tt._x_forwardEvents&&tt._x_forwardEvents.forEach(ot=>{st.addEventListener(ot,lt=>{lt.stopPropagation(),tt.dispatchEvent(new lt.constructor(lt.type,lt))})}),addScopeToNode(st,{},tt);let at=(ot,lt,ct)=>{ct.includes("prepend")?lt.parentNode.insertBefore(ot,lt):ct.includes("append")?lt.parentNode.insertBefore(ot,lt.nextSibling):lt.appendChild(ot)};mutateDom(()=>{at(st,nt,et),skipDuringClone(()=>{initTree(st)})()}),tt._x_teleportPutBack=()=>{let ot=getTarget(it);mutateDom(()=>{at(tt._x_teleport,ot,et)})},rt(()=>mutateDom(()=>{st.remove(),destroyTree(st)}))});var teleportContainerDuringClone=document.createElement("div");function getTarget(tt){let et=skipDuringClone(()=>document.querySelector(tt),()=>teleportContainerDuringClone)();return et||warn(`Cannot find x-teleport element for selector: "${tt}"`),et}var handler=()=>{};handler.inline=(tt,{modifiers:et},{cleanup:it})=>{et.includes("self")?tt._x_ignoreSelf=!0:tt._x_ignore=!0,it(()=>{et.includes("self")?delete tt._x_ignoreSelf:delete tt._x_ignore})};directive("ignore",handler);directive("effect",skipDuringClone((tt,{expression:et},{effect:it})=>{it(evaluateLater(tt,et))}));function on(tt,et,it,rt){let nt=tt,st=lt=>rt(lt),at={},ot=(lt,ct)=>ht=>ct(lt,ht);if(it.includes("dot")&&(et=dotSyntax(et)),it.includes("camel")&&(et=camelCase2(et)),it.includes("passive")&&(at.passive=!0),it.includes("capture")&&(at.capture=!0),it.includes("window")&&(nt=window),it.includes("document")&&(nt=document),it.includes("debounce")){let lt=it[it.indexOf("debounce")+1]||"invalid-wait",ct=isNumeric(lt.split("ms")[0])?Number(lt.split("ms")[0]):250;st=debounce$3(st,ct)}if(it.includes("throttle")){let lt=it[it.indexOf("throttle")+1]||"invalid-wait",ct=isNumeric(lt.split("ms")[0])?Number(lt.split("ms")[0]):250;st=throttle$2(st,ct)}return it.includes("prevent")&&(st=ot(st,(lt,ct)=>{ct.preventDefault(),lt(ct)})),it.includes("stop")&&(st=ot(st,(lt,ct)=>{ct.stopPropagation(),lt(ct)})),it.includes("once")&&(st=ot(st,(lt,ct)=>{lt(ct),nt.removeEventListener(et,st,at)})),(it.includes("away")||it.includes("outside"))&&(nt=document,st=ot(st,(lt,ct)=>{tt.contains(ct.target)||ct.target.isConnected!==!1&&(tt.offsetWidth<1&&tt.offsetHeight<1||tt._x_isShown!==!1&&lt(ct))})),it.includes("self")&&(st=ot(st,(lt,ct)=>{ct.target===tt&&lt(ct)})),(isKeyEvent(et)||isClickEvent(et))&&(st=ot(st,(lt,ct)=>{isListeningForASpecificKeyThatHasntBeenPressed(ct,it)||lt(ct)})),nt.addEventListener(et,st,at),()=>{nt.removeEventListener(et,st,at)}}function dotSyntax(tt){return tt.replace(/-/g,".")}function camelCase2(tt){return tt.toLowerCase().replace(/-(\w)/g,(et,it)=>it.toUpperCase())}function isNumeric(tt){return!Array.isArray(tt)&&!isNaN(tt)}function kebabCase2(tt){return[" ","_"].includes(tt)?tt:tt.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function isKeyEvent(tt){return["keydown","keyup"].includes(tt)}function isClickEvent(tt){return["contextmenu","click","mouse"].some(et=>tt.includes(et))}function isListeningForASpecificKeyThatHasntBeenPressed(tt,et){let it=et.filter(st=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(st));if(it.includes("debounce")){let st=it.indexOf("debounce");it.splice(st,isNumeric((it[st+1]||"invalid-wait").split("ms")[0])?2:1)}if(it.includes("throttle")){let st=it.indexOf("throttle");it.splice(st,isNumeric((it[st+1]||"invalid-wait").split("ms")[0])?2:1)}if(it.length===0||it.length===1&&keyToModifiers(tt.key).includes(it[0]))return!1;const nt=["ctrl","shift","alt","meta","cmd","super"].filter(st=>it.includes(st));return it=it.filter(st=>!nt.includes(st)),!(nt.length>0&&nt.filter(at=>((at==="cmd"||at==="super")&&(at="meta"),tt[`${at}Key`])).length===nt.length&&(isClickEvent(tt.type)||keyToModifiers(tt.key).includes(it[0])))}function keyToModifiers(tt){if(!tt)return[];tt=kebabCase2(tt);let et={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return et[tt]=tt,Object.keys(et).map(it=>{if(et[it]===tt)return it}).filter(it=>it)}directive("model",(tt,{modifiers:et,expression:it},{effect:rt,cleanup:nt})=>{let st=tt;et.includes("parent")&&(st=tt.parentNode);let at=evaluateLater(st,it),ot;typeof it=="string"?ot=evaluateLater(st,`${it} = __placeholder`):typeof it=="function"&&typeof it()=="string"?ot=evaluateLater(st,`${it()} = __placeholder`):ot=()=>{};let lt=()=>{let ut;return at(gt=>ut=gt),isGetterSetter(ut)?ut.get():ut},ct=ut=>{let gt;at(mt=>gt=mt),isGetterSetter(gt)?gt.set(ut):ot(()=>{},{scope:{__placeholder:ut}})};typeof it=="string"&&tt.type==="radio"&&mutateDom(()=>{tt.hasAttribute("name")||tt.setAttribute("name",it)});let ht=tt.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(tt.type)||et.includes("lazy")?"change":"input",dt=isCloning?()=>{}:on(tt,ht,et,ut=>{ct(getInputValue(tt,et,ut,lt()))});if(et.includes("fill")&&([void 0,null,""].includes(lt())||isCheckbox(tt)&&Array.isArray(lt())||tt.tagName.toLowerCase()==="select"&&tt.multiple)&&ct(getInputValue(tt,et,{target:tt},lt())),tt._x_removeModelListeners||(tt._x_removeModelListeners={}),tt._x_removeModelListeners.default=dt,nt(()=>tt._x_removeModelListeners.default()),tt.form){let ut=on(tt.form,"reset",[],gt=>{nextTick$1(()=>tt._x_model&&tt._x_model.set(getInputValue(tt,et,{target:tt},lt())))});nt(()=>ut())}tt._x_model={get(){return lt()},set(ut){ct(ut)}},tt._x_forceModelUpdate=ut=>{ut===void 0&&typeof it=="string"&&it.match(/\./)&&(ut=""),window.fromModel=!0,mutateDom(()=>bind(tt,"value",ut)),delete window.fromModel},rt(()=>{let ut=lt();et.includes("unintrusive")&&document.activeElement.isSameNode(tt)||tt._x_forceModelUpdate(ut)})});function getInputValue(tt,et,it,rt){return mutateDom(()=>{if(it instanceof CustomEvent&&it.detail!==void 0)return it.detail!==null&&it.detail!==void 0?it.detail:it.target.value;if(isCheckbox(tt))if(Array.isArray(rt)){let nt=null;return et.includes("number")?nt=safeParseNumber(it.target.value):et.includes("boolean")?nt=safeParseBoolean(it.target.value):nt=it.target.value,it.target.checked?rt.includes(nt)?rt:rt.concat([nt]):rt.filter(st=>!checkedAttrLooseCompare2(st,nt))}else return it.target.checked;else{if(tt.tagName.toLowerCase()==="select"&&tt.multiple)return et.includes("number")?Array.from(it.target.selectedOptions).map(nt=>{let st=nt.value||nt.text;return safeParseNumber(st)}):et.includes("boolean")?Array.from(it.target.selectedOptions).map(nt=>{let st=nt.value||nt.text;return safeParseBoolean(st)}):Array.from(it.target.selectedOptions).map(nt=>nt.value||nt.text);{let nt;return isRadio(tt)?it.target.checked?nt=it.target.value:nt=rt:nt=it.target.value,et.includes("number")?safeParseNumber(nt):et.includes("boolean")?safeParseBoolean(nt):et.includes("trim")?nt.trim():nt}}})}function safeParseNumber(tt){let et=tt?parseFloat(tt):null;return isNumeric2(et)?et:tt}function checkedAttrLooseCompare2(tt,et){return tt==et}function isNumeric2(tt){return!Array.isArray(tt)&&!isNaN(tt)}function isGetterSetter(tt){return tt!==null&&typeof tt=="object"&&typeof tt.get=="function"&&typeof tt.set=="function"}directive("cloak",tt=>queueMicrotask(()=>mutateDom(()=>tt.removeAttribute(prefix("cloak")))));addInitSelector(()=>`[${prefix("init")}]`);directive("init",skipDuringClone((tt,{expression:et},{evaluate:it})=>typeof et=="string"?!!et.trim()&&it(et,{},!1):it(et,{},!1)));directive("text",(tt,{expression:et},{effect:it,evaluateLater:rt})=>{let nt=rt(et);it(()=>{nt(st=>{mutateDom(()=>{tt.textContent=st})})})});directive("html",(tt,{expression:et},{effect:it,evaluateLater:rt})=>{let nt=rt(et);it(()=>{nt(st=>{mutateDom(()=>{tt.innerHTML=st,tt._x_ignoreSelf=!0,initTree(tt),delete tt._x_ignoreSelf})})})});mapAttributes(startingWith(":",into(prefix("bind:"))));var handler2=(tt,{value:et,modifiers:it,expression:rt,original:nt},{effect:st,cleanup:at})=>{if(!et){let lt={};injectBindingProviders(lt),evaluateLater(tt,rt)(ht=>{applyBindingsObject(tt,ht,nt)},{scope:lt});return}if(et==="key")return storeKeyForXFor(tt,rt);if(tt._x_inlineBindings&&tt._x_inlineBindings[et]&&tt._x_inlineBindings[et].extract)return;let ot=evaluateLater(tt,rt);st(()=>ot(lt=>{lt===void 0&&typeof rt=="string"&&rt.match(/\./)&&(lt=""),mutateDom(()=>bind(tt,et,lt,it))})),at(()=>{tt._x_undoAddedClasses&&tt._x_undoAddedClasses(),tt._x_undoAddedStyles&&tt._x_undoAddedStyles()})};handler2.inline=(tt,{value:et,modifiers:it,expression:rt})=>{et&&(tt._x_inlineBindings||(tt._x_inlineBindings={}),tt._x_inlineBindings[et]={expression:rt,extract:!1})};directive("bind",handler2);function storeKeyForXFor(tt,et){tt._x_keyExpression=et}addRootSelector(()=>`[${prefix("data")}]`);directive("data",(tt,{expression:et},{cleanup:it})=>{if(shouldSkipRegisteringDataDuringClone(tt))return;et=et===""?"{}":et;let rt={};injectMagics(rt,tt);let nt={};injectDataProviders(nt,rt);let st=evaluate(tt,et,{scope:nt});(st===void 0||st===!0)&&(st={}),injectMagics(st,tt);let at=reactive(st);initInterceptors(at);let ot=addScopeToNode(tt,at);at.init&&evaluate(tt,at.init),it(()=>{at.destroy&&evaluate(tt,at.destroy),ot()})});interceptClone((tt,et)=>{tt._x_dataStack&&(et._x_dataStack=tt._x_dataStack,et.setAttribute("data-has-alpine-state",!0))});function shouldSkipRegisteringDataDuringClone(tt){return isCloning?isCloningLegacy?!0:tt.hasAttribute("data-has-alpine-state"):!1}directive("show",(tt,{modifiers:et,expression:it},{effect:rt})=>{let nt=evaluateLater(tt,it);tt._x_doHide||(tt._x_doHide=()=>{mutateDom(()=>{tt.style.setProperty("display","none",et.includes("important")?"important":void 0)})}),tt._x_doShow||(tt._x_doShow=()=>{mutateDom(()=>{tt.style.length===1&&tt.style.display==="none"?tt.removeAttribute("style"):tt.style.removeProperty("display")})});let st=()=>{tt._x_doHide(),tt._x_isShown=!1},at=()=>
vendor: 4,349 bytes, line 6
6{tt._x_doShow(),tt._x_isShown=!0},ot=()=>setTimeout(at),lt=once(dt=>dt?at():st(),dt=>{typeof tt._x_toggleAndCascadeWithTransitions=="function"?tt._x_toggleAndCascadeWithTransitions(tt,dt,at,st):dt?ot():st()}),ct,ht=!0;rt(()=>nt(dt=>{!ht&&dt===ct||(et.includes("immediate")&&(dt?ot():st()),lt(dt),ct=dt,ht=!1)}))});directive("for",(tt,{expression:et},{effect:it,cleanup:rt})=>{let nt=parseForExpression(et),st=evaluateLater(tt,nt.items),at=evaluateLater(tt,tt._x_keyExpression||"index");tt._x_prevKeys=[],tt._x_lookup={},it(()=>loop(tt,nt,st,at)),rt(()=>{Object.values(tt._x_lookup).forEach(ot=>mutateDom(()=>{destroyTree(ot),ot.remove()})),delete tt._x_prevKeys,delete tt._x_lookup})});function loop(tt,et,it,rt){let nt=at=>typeof at=="object"&&!Array.isArray(at),st=tt;it(at=>{isNumeric3(at)&&at>=0&&(at=Array.from(Array(at).keys(),pt=>pt+1)),at===void 0&&(at=[]);let ot=tt._x_lookup,lt=tt._x_prevKeys,ct=[],ht=[];if(nt(at))at=Object.entries(at).map(([pt,yt])=>{let vt=getIterationScopeVariables(et,yt,pt,at);rt(_t=>{ht.includes(_t)&&warn("Duplicate key on x-for",tt),ht.push(_t)},{scope:{index:pt,...vt}}),ct.push(vt)});else for(let pt=0;pt<at.length;pt++){let yt=getIterationScopeVariables(et,at[pt],pt,at);rt(vt=>{ht.includes(vt)&&warn("Duplicate key on x-for",tt),ht.push(vt)},{scope:{index:pt,...yt}}),ct.push(yt)}let dt=[],ut=[],gt=[],mt=[];for(let pt=0;pt<lt.length;pt++){let yt=lt[pt];ht.indexOf(yt)===-1&&gt.push(yt)}lt=lt.filter(pt=>!gt.includes(pt));let ft="template";for(let pt=0;pt<ht.length;pt++){let yt=ht[pt],vt=lt.indexOf(yt);if(vt===-1)lt.splice(pt,0,yt),dt.push([ft,pt]);else if(vt!==pt){let _t=lt.splice(pt,1)[0],bt=lt.splice(vt-1,1)[0];lt.splice(pt,0,bt),lt.splice(vt,0,_t),ut.push([_t,bt])}else mt.push(yt);ft=yt}for(let pt=0;pt<gt.length;pt++){let yt=gt[pt];yt in ot&&(mutateDom(()=>{destroyTree(ot[yt]),ot[yt].remove()}),delete ot[yt])}for(let pt=0;pt<ut.length;pt++){let[yt,vt]=ut[pt],_t=ot[yt],bt=ot[vt],St=document.createElement("div");mutateDom(()=>{bt||warn('x-for ":key" is undefined or invalid',st,vt,ot),bt.after(St),_t.after(bt),bt._x_currentIfEl&&bt.after(bt._x_currentIfEl),St.before(_t),_t._x_currentIfEl&&_t.after(_t._x_currentIfEl),St.remove()}),bt._x_refreshXForScope(ct[ht.indexOf(vt)])}for(let pt=0;pt<dt.length;pt++){let[yt,vt]=dt[pt],_t=yt==="template"?st:ot[yt];_t._x_currentIfEl&&(_t=_t._x_currentIfEl);let bt=ct[vt],St=ht[vt],wt=document.importNode(st.content,!0).firstElementChild,xt=reactive(bt);addScopeToNode(wt,xt,st),wt._x_refreshXForScope=Pt=>{Object.entries(Pt).forEach(([kt,At])=>{xt[kt]=At})},mutateDom(()=>{_t.after(wt),skipDuringClone(()=>initTree(wt))()}),typeof St=="object"&&warn("x-for key cannot be an object, it must be a string or an integer",st),ot[St]=wt}for(let pt=0;pt<mt.length;pt++)ot[mt[pt]]._x_refreshXForScope(ct[ht.indexOf(mt[pt])]);st._x_prevKeys=ht})}function parseForExpression(tt){let et=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,it=/^\s*\(|\)\s*$/g,rt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,nt=tt.match(rt);if(!nt)return;let st={};st.items=nt[2].trim();let at=nt[1].replace(it,"").trim(),ot=at.match(et);return ot?(st.item=at.replace(et,"").trim(),st.index=ot[1].trim(),ot[2]&&(st.collection=ot[2].trim())):st.item=at,st}function getIterationScopeVariables(tt,et,it,rt){let nt={};return/^\[.*\]$/.test(tt.item)&&Array.isArray(et)?tt.item.replace("[","").replace("]","").split(",").map(at=>at.trim()).forEach((at,ot)=>{nt[at]=et[ot]}):/^\{.*\}$/.test(tt.item)&&!Array.isArray(et)&&typeof et=="object"?tt.item.replace("{","").replace("}","").split(",").map(at=>at.trim()).forEach(at=>{nt[at]=et[at]}):nt[tt.item]=et,tt.index&&(nt[tt.index]=it),tt.collection&&(nt[tt.collection]=rt),nt}function isNumeric3(tt){return!Array.isArray(tt)&&!isNaN(tt)}function handler3(){}handler3.inline=(tt,{expression:et},{cleanup:it})=>{let rt=closestRoot(tt);rt._x_refs||(rt._x_refs={}),rt._x_refs[et]=tt,it(()=>delete rt._x_refs[et])};directive("ref",handler3);directive("if",(tt,{expression:et},{effect:it,cleanup:rt})=>{tt.tagName.toLowerCase()!=="template"&&warn("x-if can only be used on a <template> tag",tt);let nt=evaluateLater(tt,et),st=()=>{if(tt._x_currentIfEl)return tt._x_currentIfEl;let ot=tt.content.cloneNode(!0).firstElementChild;return addScopeToNode(ot,{},tt),mutateDom(()=>{tt.after(ot),skipDuringClone(()=>initTree(ot))()}),tt._x_currentIfEl=ot,tt._x_undoIf=()=>{mutateDom(()=>
6{destroyTree(ot),ot.remove()}),delete tt._x_currentIfEl},ot},at=()=>{tt._x_undoIf&&(tt._x_undoIf(),delete tt._x_undoIf)};it(()=>nt(ot=>{ot?st():at()})),rt(()=>tt._x_undoIf&&tt._x_undoIf())});directive("id",(tt,{expression:et},{evaluate:it})=>{it(et).forEach(nt=>setIdRoot(tt,nt))});interceptClone((tt,et)=>{tt._x_ids&&(et._x_ids=tt._x_ids)});mapAttributes(startingWith("@",into(prefix("on:"))));directive("on",skipDuringClone((tt,{value:et,modifiers:it,expression:rt},{cleanup:nt})=>{let st=rt?evaluateLater(tt,rt):()=>{};tt.tagName.toLowerCase()==="template"&&(tt._x_forwardEvents||(tt._x_forwardEvents=[]),tt._x_forwardEvents.includes(et)||tt._x_forwardEvents.push(et));let at=on(tt,et,it,ot=>{st(()=>{},{scope:{$event:ot},params:[ot]})});nt(()=>at())}));warnMissingPluginDirective("Collapse","collapse","collapse");warnMissingPluginDirective("Intersect","intersect","intersect");warnMissingPluginDirective("Focus","trap","focus");warnMissingPluginDirective("Mask","mask","mask");function warnMissingPluginDirective(tt,et,it){directive(et,rt=>warn(`You can't use [x-${et}] without first installing the "${tt}" plugin here: https://alpinejs.dev/plugins/${it}`,rt))}alpine_default.setEvaluator(normalEvaluator);alpine_default.setRawEvaluator(normalRawEvaluator);alpine_default.setReactivityEngine({reactive:reactive2,effect:effect2,release:stop,raw:toRaw});var src_default$1=alpine_default,module_default$1=src_default$1;function addUniqueItem(tt,et){tt.indexOf(et)===-1&&tt.push(et)}function removeItem(tt,et){const it=tt.indexOf(et);it>-1&&tt.splice(it,1)}const clamp$3=(tt,et,it)=>Math.min(Math.max(it,tt),et),defaults$1={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},isNumber=tt=>typeof tt=="number",isEasingList=tt=>Array.isArray(tt)&&!isNumber(tt[0]),wrap=(tt,et,it)=>{const rt=et-tt;return((it-tt)%rt+rt)%rt+tt};function getEasingForSegment(tt,et){return isEasingList(tt)?tt[wrap(0,tt.length,et)]:tt}const mix$1=(tt,et,it)=>-it*tt+it*et+tt,noop=()=>{},noopReturn=tt=>tt,progress=(tt,et,it)=>et-tt===0?1:(it-tt)/(et-tt);function fillOffset(tt,et){const it=tt[tt.length-1];for(let rt=1;rt<=et;rt++){const nt=progress(0,et,rt);tt.push(mix$1(it,1,nt))}}function defaultOffset$1(tt){const et=[0];return fillOffset(et,tt-1),et}function interpolate(tt,et=defaultOffset$1(tt.length),it=noopReturn){const rt=tt.length,nt=rt-et.length;return nt>0&&fillOffset(et,nt),st=>{let at=0;for(;at<rt-2&&!(st<et[at+1]);at++);let ot=clamp$3(0,1,progress(et[at],et[at+1],st));return ot=getEasingForSegment(it,at)(ot),mix$1(tt[at],tt[at+1],ot)}}const isCubicBezier=tt=>Array.isArray(tt)&&isNumber(tt[0]),isEasingGenerator=tt=>typeof tt=="object"&&!!tt.createAnimation,isFunction=tt=>typeof tt=="function",isString=tt=>typeof tt=="string",time={ms:tt=>tt*1e3,s:tt=>tt/1e3};function velocityPerSecond(tt,et){return et?tt*(1e3/et):0}const calcBezier=(tt,et,it)=>(((1-3*it+3*et)*tt+(3*it-6*et))*tt+3*et)*tt,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(tt,et,it,rt,nt){let st,at,ot=0;do at=et+(it-et)/2,st=calcBezier(at,rt,nt)-tt,st>0?it=at:et=at;while(Math.abs(st)>subdivisionPrecision&&++ot<subdivisionMaxIterations);return at}function cubicBezier(tt,et,it,rt){if(tt===et&&it===rt)return noopReturn;const nt=st=>binarySubdivide(st,0,1,tt,it);return st=>st===0||st===1?st:calcBezier(nt(st),et,rt)}const steps=(tt,et="end")=>it=>{it=et==="end"?Math.min(it,.999):Math.max(it,.001);const rt=it*tt,nt=et==="end"?Math.floor(rt):Math.ceil(rt);return clamp$3(0,1,nt/tt)},namedEasings={ease:cubicBezier(.25,.1,.25,1),"ease-in":cubicBezier(.42,0,1,1),"ease-in-out":cubicBezier(.42,0,.58,1),"ease-out":cubicBezier(0,0,.58,1)},functionArgsRegex=/\((.*?)\)/;function getEasingFunction(tt){if(isFunction(tt))return tt;if(isCubicBezier(tt))return cubicBezier(...tt);const et=namedEasings[tt];if(et)return et;if(tt.startsWith("steps")){const it=functionArgsRegex.exec(tt);if(it){const rt=it[1].split(",");return steps(parseFloat(rt[0]),rt[1].trim())}}return noopReturn}class Animation{constructor(et,it=[0,1],{easing:rt,duration:nt=defaults$1.duration,delay:st=defaults$1.delay,endDelay:at=defaults$1.endDelay,repeat:ot=defaults$1.repeat,offset:lt,direction:ct="normal",autoplay:ht=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=noopReturn,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((ut,gt)=>{this.resolve=ut,this.reject=gt}),rt=rt||defaults$1.easing,isEasingGenerator(rt)){const ut=rt.createAnimation(it);rt=ut.easing,it=ut.keyframes||it,nt=ut.duration||nt}this.repeat=ot,this.easing=isEasingList(rt)?noopReturn:getEasingFunction(rt),this.updateDuration(nt);const dt=interpolate(it,lt,isEasingList(rt)?rt.map(getEasingFunction):noopReturn);this.tick=ut=>{var gt;st=st;let mt=0;this.pauseTime!==void 0?mt=this.pauseTime:mt=(ut-this.startTime)*this.rate,this.t=mt,mt/=1e3,mt=Math.max(mt-st,0),this.playState==="finished"&&this.pauseTime===void 0&&(mt=this.totalDuration);
vendor: 8,479 bytes, line 6
6const ft=mt/this.duration;let pt=Math.floor(ft),yt=ft%1;!yt&&ft>=1&&(yt=1),yt===1&&pt--;const vt=pt%2;(ct==="reverse"||ct==="alternate"&&vt||ct==="alternate-reverse"&&!vt)&&(yt=1-yt);const _t=mt>=this.totalDuration?1:Math.min(yt,1),bt=dt(this.easing(_t));et(bt),this.pauseTime===void 0&&(this.playState==="finished"||mt>=this.totalDuration+at)?(this.playState="finished",(gt=this.resolve)===null||gt===void 0||gt.call(this,bt)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},ht&&this.play()}play(){const et=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=et-this.pauseTime:this.startTime||(this.startTime=et),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var et;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(et=this.reject)===null||et===void 0||et.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(et){this.duration=et,this.totalDuration=et*(this.repeat+1)}get currentTime(){return this.t}set currentTime(et){this.pauseTime!==void 0||this.rate===0?this.pauseTime=et:this.startTime=performance.now()-et/this.rate}get playbackRate(){return this.rate}set playbackRate(et){this.rate=et}}var invariant=function(){};class MotionValue{setAnimation(et){this.animation=et,et==null||et.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const data=new WeakMap;function getAnimationData(tt){return data.has(tt)||data.set(tt,{transforms:[],values:new Map}),data.get(tt)}function getMotionValue(tt,et){return tt.has(et)||tt.set(et,new MotionValue),tt.get(et)}const axes=["","X","Y","Z"],order=["translate","scale","rotate","skew"],transformAlias={x:"translateX",y:"translateY",z:"translateZ"},rotation={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:tt=>tt+"deg"},baseTransformProperties={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:tt=>tt+"px"},rotate:rotation,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:noopReturn},skew:rotation},transformDefinitions=new Map,asTransformCssVar=tt=>`--motion-${tt}`,transforms=["x","y","z"];order.forEach(tt=>{axes.forEach(et=>{transforms.push(tt+et),transformDefinitions.set(asTransformCssVar(tt+et),baseTransformProperties[tt])})});const compareTransformOrder=(tt,et)=>transforms.indexOf(tt)-transforms.indexOf(et),transformLookup=new Set(transforms),isTransform=tt=>transformLookup.has(tt),addTransformToElement=(tt,et)=>{transformAlias[et]&&(et=transformAlias[et]);const{transforms:it}=getAnimationData(tt);addUniqueItem(it,et),tt.style.transform=buildTransformTemplate(it)},buildTransformTemplate=tt=>tt.sort(compareTransformOrder).reduce(transformListToString,"").trim(),transformListToString=(tt,et)=>`${tt} ${et}(var(${asTransformCssVar(et)}))`,isCssVar=tt=>tt.startsWith("--"),registeredProperties=new Set;function registerCssVariable(tt){if(!registeredProperties.has(tt)){registeredProperties.add(tt);try{const{syntax:et,initialValue:it}=transformDefinitions.has(tt)?transformDefinitions.get(tt):{};CSS.registerProperty({name:tt,inherits:!1,syntax:et,initialValue:it})}catch{}}}const testAnimation=(tt,et)=>document.createElement("div").animate(tt,et),featureTests={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{testAnimation({opacity:[1]})}catch{return!1}return!0},finished:()=>!!testAnimation({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{testAnimation({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},results={},supports={};for(const tt in featureTests)supports[tt]=()=>(results[tt]===void 0&&(results[tt]=featureTests[tt]()),results[tt]);const resolution=.015,generateLinearEasingPoints=(tt,et)=>{let it="";const rt=Math.round(et/resolution);for(let nt=0;nt<rt;nt++)it+=tt(progress(0,rt-1,nt))+", ";return it.substring(0,it.length-2)},convertEasing=(tt,et)=>isFunction(tt)?supports.linearEasing()?`linear(${generateLinearEasingPoints(tt,et)})`:defaults$1.easing:isCubicBezier(tt)?cubicBezierAsString(tt):tt,cubicBezierAsString=([tt,et,it,rt])=>`cubic-bezier(${tt}, ${et}, ${it}, ${rt})`;function hydrateKeyframes(tt,et){for(let it=0;it<tt.length;it++)tt[it]===null&&(tt[it]=it?tt[it-1]:et());return tt}const keyframesList=tt=>Array.isArray(tt)?tt:[tt];function getStyleName(tt){return transformAlias[tt]&&(tt=transformAlias[tt]),isTransform(tt)?asTransformCssVar(tt):tt}const style={get:(tt,et)=>{et=getStyleName(et);let it=isCssVar(et)?tt.style.getPropertyValue(et):getComputedStyle(tt)[et];if(!it&&it!==0){const rt=transformDefinitions.get(et);rt&&(it=rt.initialValue)}return it},set:(tt,et,it)=>{et=getStyleName(et),isCssVar(et)?tt.style.setProperty(et,it):tt.style[et]=it}};function stopAnimation(tt,et=!0){if(!(!tt||tt.playState==="finished"))try{tt.stop?tt.stop():(et&&tt.commitStyles(),tt.cancel())}catch{}}function getUnitConverter(tt,et){var it;let rt=(et==null?void 0:et.toDefaultUnit)||noopReturn;const nt=tt[tt.length-1];if(isString(nt)){const st=((it=nt.match(/(-?[\d.]+)([a-z%]*)/))===null||it===void 0?void 0:it[2])||"";st&&(rt=at=>at+st)}return rt}function getDevToolsRecord(){return window.__MOTION_DEV_TOOLS_RECORD}function animateStyle(tt,et,it,rt={},nt){const st=getDevToolsRecord(),at=rt.record!==!1&&st;let ot,{duration:lt=defaults$1.duration,delay:ct=defaults$1.delay,endDelay:ht=defaults$1.endDelay,repeat:dt=defaults$1.repeat,easing:ut=defaults$1.easing,persist:gt=!1,direction:mt,offset:ft,allowWebkitAcceleration:pt=!1,autoplay:yt=!0}=rt;const vt=getAnimationData(tt),_t=isTransform(et);let bt=supports.waapi();_t&&addTransformToElement(tt,et);const St=getStyleName(et),wt=getMotionValue(vt.values,St),xt=transformDefinitions.get(St);return stopAnimation(wt.animation,!(isEasingGenerator(ut)&&wt.generator)&&rt.record!==!1),()=>{const Pt=()=>{var Et,Ft;return(Ft=(Et=style.get(tt,St))!==null&&Et!==void 0?Et:xt==null?void 0:xt.initialValue)!==null&&Ft!==void 0?Ft:0};let kt=hydrateKeyframes(keyframesList(it),Pt);const At=getUnitConverter(kt,xt);if(isEasingGenerator(ut)){const Et=ut.createAnimation(kt,et!=="opacity",Pt,St,wt);ut=Et.easing,kt=Et.keyframes||kt,lt=Et.duration||lt}if(isCssVar(St)&&(supports.cssRegisterProperty()?registerCssVariable(St):bt=!1),_t&&!supports.linearEasing()&&(isFunction(ut)||isEasingList(ut)&&ut.some(isFunction))&&(bt=!1),bt){xt&&(kt=kt.map(It=>isNumber(It)?xt.toDefaultUnit(It):It)),kt.length===1&&(!supports.partialKeyframes()||at)&&kt.unshift(Pt());const Et={delay:time.ms(ct),duration:time.ms(lt),endDelay:time.ms(ht),easing:isEasingList(ut)?void 0:convertEasing(ut,lt),direction:mt,iterations:dt+1,fill:"both"};ot=tt.animate({[St]:kt,offset:ft,easing:isEasingList(ut)?ut.map(It=>convertEasing(It,lt)):void 0},Et),ot.finished||(ot.finished=new Promise((It,Mt)=>{ot.onfinish=It,ot.oncancel=Mt}));const Ft=kt[kt.length-1];ot.finished.then(()=>{gt||(style.set(tt,St,Ft),ot.cancel())}).catch(noop),pt||(ot.playbackRate=1.000001)}else if(nt&&_t)kt=kt.map(Et=>typeof Et=="string"?parseFloat(Et):Et),kt.length===1&&kt.unshift(parseFloat(Pt())),ot=new nt(Et=>{style.set(tt,St,At?At(Et):Et)},kt,Object.assign(Object.assign({},rt),{duration:lt,easing:ut}));else{const Et=kt[kt.length-1];style.set(tt,St,xt&&isNumber(Et)?xt.toDefaultUnit(Et):Et)}return at&&st(tt,et,kt,{duration:lt,delay:ct,easing:ut,repeat:dt,offset:ft},"motion-one"),wt.setAnimation(ot),ot&&!yt&&ot.pause(),ot}}const getOptions=(tt,et)=>tt[et]?Object.assign(Object.assign({},tt),tt[et]):Object.assign({},tt);function resolveElements$1(tt,et){var it;return typeof tt=="string"?et?((it=et[tt])!==null&&it!==void 0||(et[tt]=document.querySelectorAll(tt)),tt=et[tt]):tt=document.querySelectorAll(tt):tt instanceof Element&&(tt=[tt]),Array.from(tt||[])}const createAnimation=tt=>tt(),withControls=(tt,et,it=defaults$1.duration)=>new Proxy({animations:tt.map(createAnimation).filter(Boolean),duration:it,options:et},controls),getActiveAnimation=tt=>tt.animations[0],controls={get:(tt,et)=>{const it=getActiveAnimation(tt);switch(et){case"duration":return tt.duration;case"currentTime":return time.s((it==null?void 0:it[et])||0);case"playbackRate":case"playState":return it==null?void 0:it[et];
6case"finished":return tt.finished||(tt.finished=Promise.all(tt.animations.map(selectFinished)).catch(noop)),tt.finished;case"stop":return()=>{tt.animations.forEach(rt=>stopAnimation(rt))};case"forEachNative":return rt=>{tt.animations.forEach(nt=>rt(nt,tt))};default:return typeof(it==null?void 0:it[et])>"u"?void 0:()=>tt.animations.forEach(rt=>rt[et]())}},set:(tt,et,it)=>{switch(et){case"currentTime":it=time.ms(it);case"playbackRate":for(let rt=0;rt<tt.animations.length;rt++)tt.animations[rt][et]=it;return!0}return!1}},selectFinished=tt=>tt.finished;function stagger(tt=.1,{start:et=0,from:it=0,easing:rt}={}){return(nt,st)=>{const at=isNumber(it)?it:getFromIndex(it,st),ot=Math.abs(at-nt);let lt=tt*ot;if(rt){const ct=st*tt;lt=getEasingFunction(rt)(lt/ct)*ct}return et+lt}}function getFromIndex(tt,et){if(tt==="first")return 0;{const it=et-1;return tt==="last"?it:it/2}}function resolveOption(tt,et,it){return isFunction(tt)?tt(et,it):tt}function createAnimate(tt){return function(it,rt,nt={}){it=resolveElements$1(it);const st=it.length,at=[];for(let ot=0;ot<st;ot++){const lt=it[ot];for(const ct in rt){const ht=getOptions(nt,ct);ht.delay=resolveOption(ht.delay,ot,st);const dt=animateStyle(lt,ct,rt[ct],ht,tt);at.push(dt)}}return withControls(at,nt,nt.duration)}}const animate$1=createAnimate(Animation);function __rest(tt,et){var it={};for(var rt in tt)Object.prototype.hasOwnProperty.call(tt,rt)&&et.indexOf(rt)<0&&(it[rt]=tt[rt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(tt);nt<rt.length;nt++)et.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(tt,rt[nt])&&(it[rt[nt]]=tt[rt[nt]]);return it}typeof SuppressedError=="function"&&SuppressedError;function calcNextTime(tt,et,it,rt){var nt;return isNumber(et)?et:et.startsWith("-")||et.startsWith("+")?Math.max(0,tt+parseFloat(et)):et==="<"?it:(nt=rt.get(et))!==null&&nt!==void 0?nt:tt}function eraseKeyframes(tt,et,it){for(let rt=0;rt<tt.length;rt++){const nt=tt[rt];nt.at>et&&nt.at<it&&(removeItem(tt,nt),rt--)}}function addKeyframes(tt,et,it,rt,nt,st){eraseKeyframes(tt,nt,st);for(let at=0;at<et.length;at++)tt.push({value:et[at],at:mix$1(nt,st,rt[at]),easing:getEasingForSegment(it,at)})}function compareByTime(tt,et){return tt.at===et.at?tt.value===null?1:-1:tt.at-et.at}function timeline(tt,et={}){var it;const rt=createAnimationsFromTimeline(tt,et),nt=rt.map(st=>animateStyle(...st,Animation)).filter(Boolean);return withControls(nt,et,(it=rt[0])===null||it===void 0?void 0:it[3].duration)}function createAnimationsFromTimeline(tt,et={}){var{defaultOptions:it={}}=et,rt=__rest(et,["defaultOptions"]);const nt=[],st=new Map,at={},ot=new Map;let lt=0,ct=0,ht=0;for(let dt=0;dt<tt.length;dt++){const ut=tt[dt];if(isString(ut)){ot.set(ut,ct);continue}else if(!Array.isArray(ut)){ot.set(ut.name,calcNextTime(ct,ut.at,lt,ot));continue}const[gt,mt,ft={}]=ut;ft.at!==void 0&&(ct=calcNextTime(ct,ft.at,lt,ot));let pt=0;const yt=resolveElements$1(gt,at),vt=yt.length;for(let _t=0;_t<vt;_t++){const bt=yt[_t],St=getElementSequence(bt,st);for(const wt in mt){const xt=getValueSequence(wt,St);let Pt=keyframesList(mt[wt]);const kt=getOptions(ft,wt);let{duration:At=it.duration||defaults$1.duration,easing:Et=it.easing||defaults$1.easing}=kt;if(isEasingGenerator(Et)){invariant(wt==="opacity"||Pt.length>1);const Vt=Et.createAnimation(Pt,wt!=="opacity",()=>0,wt);Et=Vt.easing,Pt=Vt.keyframes||Pt,At=Vt.duration||At}const Ft=resolveOption(ft.delay,_t,vt)||0,It=ct+Ft,Mt=It+At;let{offset:Lt=defaultOffset$1(Pt.length)}=kt;Lt.length===1&&Lt[0]===0&&(Lt[1]=1);const $t=Lt.length-Pt.length;$t>0&&fillOffset(Lt,$t),Pt.length===1&&Pt.unshift(null),addKeyframes(xt,Pt,Et,Lt,It,Mt),pt=Math.max(Ft+At,pt),ht=Math.max(Mt,ht)}}lt=ct,ct+=pt}return st.forEach((dt,ut)=>{for(const gt in dt){const mt=dt[gt];mt.sort(compareByTime);const ft=[],pt=[],yt=[];for(let vt=0;vt<mt.length;vt++){const{at:_t,value:bt,easing:St}=mt[vt];ft.push(bt),pt.push(progress(0,ht,_t)),yt.push(St||defaults$1.easing)}pt[0]!==0&&(pt.unshift(0),ft.unshift(ft[0]),yt.unshift("linear")),pt[pt.length-1]!==1&&(pt.push(1),ft.push(null)),nt.push([ut,gt,ft,Object.assign(Object.assign(Object.assign({},it),{duration:ht,easing:yt,offset:pt}),rt)])}}),nt}function getElementSequence(tt,et){return!et.has(tt)&&et.set(tt,{}),et.get(tt)}function getValueSequence(tt,et){return et[tt]||(et[tt]=[]),et[tt]}const sampleT=5;function calcGeneratorVelocity(tt,et,it){const rt=Math.max(et-sampleT,0);return velocityPerSecond(it-tt(rt),et-rt)}const defaults={stiffness:100,damping:10,mass:1},calcDampingRatio=(tt=defaults.stiffness,et=defaults.damping,it=defaults.mass)=>et/(2*Math.sqrt(tt*it));function hasReachedTarget(tt,et,it){return tt<et&&it>=et||tt>et&&it<=et}
6const spring$1=({stiffness:tt=defaults.stiffness,damping:et=defaults.damping,mass:it=defaults.mass,from:rt=0,to:nt=1,velocity:st=0,restSpeed:at,restDistance:ot}={})=>{st=st?time.s(st):0;const lt={done:!1,hasReachedTarget:!1,current:rt,target:nt},ct=nt-rt,ht=Math.sqrt(tt/it)/1e3,dt=calcDampingRatio(tt,et,it),ut=Math.abs(ct)<5;at||(at=ut?.01:2),ot||(ot=ut?.005:.5);let gt;if(dt<1){const mt=ht*Math.sqrt(1-dt*dt);gt=ft=>nt-Math.exp(-dt*ht*ft)*((-st+dt*ht*ct)/mt*Math.sin(mt*ft)+ct*Math.cos(mt*ft))}else gt=mt=>nt-Math.exp(-ht*mt)*(ct+(-st+ht*ct)*mt);return mt=>{lt.current=gt(mt);const ft=mt===0?st:calcGeneratorVelocity(gt,mt,lt.current),pt=Math.abs(ft)<=at,yt=Math.abs(nt-lt.current)<=ot;return lt.done=pt&&yt,lt.hasReachedTarget=hasReachedTarget(rt,nt,lt.current),lt}},timeStep=10,maxDuration=1e4;function pregenerateKeyframes(tt,et=noopReturn){let it,rt=timeStep,nt=tt(0);const st=[et(nt.current)];for(;!nt.done&&rt<maxDuration;)nt=tt(rt),st.push(et(nt.done?nt.target:nt.current)),it===void 0&&nt.hasReachedTarget&&(it=rt),rt+=timeStep;const at=rt-timeStep;return st.length===1&&st.push(nt.current),{keyframes:st,duration:at/1e3,overshootDuration:(it??at)/1e3}}function canGenerate(tt){return isNumber(tt)&&!isNaN(tt)}function getAsNumber(tt){return isString(tt)?parseFloat(tt):tt}function createGeneratorEasing(tt){const et=new WeakMap;return(it={})=>{const rt=new Map,nt=(at=0,ot=100,lt=0,ct=!1)=>{const ht=`${at}-${ot}-${lt}-${ct}`;return rt.has(ht)||rt.set(ht,tt(Object.assign({from:at,to:ot,velocity:lt},it))),rt.get(ht)},st=(at,ot)=>(et.has(at)||et.set(at,pregenerateKeyframes(at,ot)),et.get(at));return{createAnimation:(at,ot=!0,lt,ct,ht)=>{let dt,ut,gt,mt=0,ft=noopReturn;const pt=at.length;if(ot){ft=getUnitConverter(at,ct?transformDefinitions.get(getStyleName(ct)):void 0);const yt=at[pt-1];if(gt=getAsNumber(yt),pt>1&&at[0]!==null)ut=getAsNumber(at[0]);else{const vt=ht==null?void 0:ht.generator;if(vt){const{animation:_t,generatorStartTime:bt}=ht,St=(_t==null?void 0:_t.startTime)||bt||0,wt=(_t==null?void 0:_t.currentTime)||performance.now()-St,xt=vt(wt).current;ut=xt,mt=calcGeneratorVelocity(Pt=>vt(Pt).current,wt,xt)}else lt&&(ut=getAsNumber(lt()))}}if(canGenerate(ut)&&canGenerate(gt)){const yt=nt(ut,gt,mt,ct==null?void 0:ct.includes("scale"));dt=Object.assign(Object.assign({},st(yt,ft)),{easing:"linear"}),ht&&(ht.generator=yt,ht.generatorStartTime=performance.now())}return dt||(dt={easing:"ease",duration:st(nt(0,100)).overshootDuration}),dt}}}}const spring=createGeneratorEasing(spring$1),resizeHandlers=new WeakMap;let observer;function getElementSize(tt,et){if(et){const{inlineSize:it,blockSize:rt}=et[0];return{width:it,height:rt}}else return tt instanceof SVGElement&&"getBBox"in tt?tt.getBBox():{width:tt.offsetWidth,height:tt.offsetHeight}}function notifyTarget({target:tt,contentRect:et,borderBoxSize:it}){var rt;(rt=resizeHandlers.get(tt))===null||rt===void 0||rt.forEach(nt=>{nt({target:tt,contentSize:et,get size(){return getElementSize(tt,it)}})})}function notifyAll(tt){tt.forEach(notifyTarget)}function createResizeObserver(){typeof ResizeObserver>"u"||(observer=new ResizeObserver(notifyAll))}function resizeElement(tt,et){observer||createResizeObserver();const it=resolveElements$1(tt);return it.forEach(rt=>{let nt=resizeHandlers.get(rt);nt||(nt=new Set,resizeHandlers.set(rt,nt)),nt.add(et),observer==null||observer.observe(rt)}),()=>{it.forEach(rt=>{const nt=resizeHandlers.get(rt);nt==null||nt.delete(et),nt!=null&&nt.size||observer==null||observer.unobserve(rt)})}}const windowCallbacks=new Set;let windowResizeHandler;function createWindowResizeHandler(){windowResizeHandler=()=>{const tt={width:window.innerWidth,height:window.innerHeight},et={target:window,size:tt,contentSize:tt};windowCallbacks.forEach(it=>it(et))},window.addEventListener("resize",windowResizeHandler)}function resizeWindow(tt){return windowCallbacks.add(tt),windowResizeHandler||createWindowResizeHandler(),()=>{windowCallbacks.delete(tt),!windowCallbacks.size&&windowResizeHandler&&(windowResizeHandler=void 0)}}function resize(tt,et){return isFunction(tt)?resizeWindow(tt):resizeElement(tt,et)}const maxElapsed=50,createAxisInfo=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),createScrollInfo=()=>({time:0,x:createAxisInfo(),y:createAxisInfo()}),keys={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function updateAxisInfo(tt,et,it,rt){const nt=it[et],{length:st,position:at}=keys[et],ot=nt.current,lt=it.time;nt.current=tt[`scroll${at}`],nt.scrollLength=tt[`scroll${st}`]-tt[`client${st}`],nt.offset.length=0,nt.offset[0]=0,nt.offset[1]=nt.scrollLength,nt.progress=progress(0,nt.scrollLength,nt.current);const ct=rt-lt;nt.velocity=ct>maxElapsed?0:velocityPerSecond(nt.current-ot,ct)}function updateScrollInfo(tt,et,it){updateAxisInfo(tt,"x",et,it),updateAxisInfo(tt,"y",et,it),et.time=it}function calcInset(tt,et){let it={x:0,y:0},rt=tt;for(;rt&&rt!==et;)if(rt instanceof HTMLElement)it.x+=rt.offsetLeft,it.y+=rt.offsetTop,rt=rt.offsetParent;else if(rt instanceof SVGGraphicsElement&&"getBBox"in rt){const{top:nt,left:st}=rt.getBBox();for(it.x+=st,it.y+=nt;rt&&rt.tagName!=="svg";)rt=rt.parentNode}return it}const ScrollOffset={All:[[0,0],[1,1]]},namedEdges={start:0,center:.5,end:1};function resolveEdge(tt,et,it=0){let rt=0;if(namedEdges[tt]!==void 0&&(tt=namedEdges[tt]),isString(tt)){const nt=parseFloat(tt);tt.endsWith("px")?rt=nt:tt.endsWith("%")?tt=nt/100:tt.endsWith("vw")?rt=nt/100*document.documentElement.clientWidth:tt.endsWith("vh")?rt=nt/100*document.documentElement.clientHeight:tt=nt}return isNumber(tt)&&(rt=et*tt),it+rt}const defaultOffset=[0,0];function resolveOffset(tt,et,it,rt){let nt=Array.isArray(tt)?tt:defaultOffset,st=0,at=0;return isNumber(tt)?nt=[tt,tt]:isString(tt)&&(tt=tt.trim(),tt.includes(" ")?nt=tt.split(" "):nt=[tt,namedEdges[tt]?tt:"0"]),st=resolveEdge(nt[0],it,rt),at=resolveEdge(nt[1],et),st-at}const point={x:0,y:0};function resolveOffsets(tt,et,it){let{offset:rt=ScrollOffset.All}=it;const{target:nt=tt,axis:st="y"}=it,at=st==="y"?"height":"width",ot=nt!==tt?calcInset(nt,tt):point,lt=nt===tt?{width:tt.scrollWidth,height:tt.scrollHeight}:{width:nt.clientWidth,height:nt.clientHeight},ct={width:tt.clientWidth,height:tt.clientHeight};et[st].offset.length=0;let ht=!et[st].interpolate;const dt=rt.length;for(let ut=0;ut<dt;ut++){const gt=resolveOffset(rt[ut],ct[at],lt[at],ot[st]);
6!ht&&gt!==et[st].interpolatorOffsets[ut]&&(ht=!0),et[st].offset[ut]=gt}ht&&(et[st].interpolate=interpolate(defaultOffset$1(dt),et[st].offset),et[st].interpolatorOffsets=[...et[st].offset]),et[st].progress=et[st].interpolate(et[st].current)}function measure(tt,et=tt,it){if(it.x.targetOffset=0,it.y.targetOffset=0,et!==tt){let rt=et;for(;rt&&rt!=tt;)it.x.targetOffset+=rt.offsetLeft,it.y.targetOffset+=rt.offsetTop,rt=rt.offsetParent}it.x.targetLength=et===tt?et.scrollWidth:et.clientWidth,it.y.targetLength=et===tt?et.scrollHeight:et.clientHeight,it.x.containerLength=tt.clientWidth,it.y.containerLength=tt.clientHeight}function createOnScrollHandler(tt,et,it,rt={}){const nt=rt.axis||"y";return{measure:()=>measure(tt,rt.target,it),update:st=>{updateScrollInfo(tt,it,st),(rt.offset||rt.target)&&resolveOffsets(tt,it,rt)},notify:isFunction(et)?()=>et(it):scrubAnimation(et,it[nt])}}function scrubAnimation(tt,et){return tt.pause(),tt.forEachNative((it,{easing:rt})=>{var nt,st;if(it.updateDuration)rt||(it.easing=noopReturn),it.updateDuration(1);else{const at={duration:1e3};rt||(at.easing="linear"),(st=(nt=it.effect)===null||nt===void 0?void 0:nt.updateTiming)===null||st===void 0||st.call(nt,at)}}),()=>{tt.currentTime=et.progress}}const scrollListeners=new WeakMap,resizeListeners=new WeakMap,onScrollHandlers=new WeakMap,getEventTarget=tt=>tt===document.documentElement?window:tt;function scroll(tt,et={}){var{container:it=document.documentElement}=et,rt=__rest(et,["container"]);let nt=onScrollHandlers.get(it);nt||(nt=new Set,onScrollHandlers.set(it,nt));const st=createScrollInfo(),at=createOnScrollHandler(it,tt,st,rt);if(nt.add(at),!scrollListeners.has(it)){const ct=()=>{const dt=performance.now();for(const ut of nt)ut.measure();for(const ut of nt)ut.update(dt);for(const ut of nt)ut.notify()};scrollListeners.set(it,ct);const ht=getEventTarget(it);window.addEventListener("resize",ct,{passive:!0}),it!==document.documentElement&&resizeListeners.set(it,resize(it,ct)),ht.addEventListener("scroll",ct,{passive:!0})}const ot=scrollListeners.get(it),lt=requestAnimationFrame(ot);return()=>{var ct;typeof tt!="function"&&tt.stop(),cancelAnimationFrame(lt);const ht=onScrollHandlers.get(it);if(!ht||(ht.delete(at),ht.size))return;const dt=scrollListeners.get(it);scrollListeners.delete(it),dt&&(getEventTarget(it).removeEventListener("scroll",dt),(ct=resizeListeners.get(it))===null||ct===void 0||ct(),window.removeEventListener("resize",dt))}}function animateProgress(tt,et={}){return withControls([()=>{const it=new Animation(tt,[0,1],et);return it.finished.catch(()=>{}),it}],et,et.duration)}function animate(tt,et,it){return(isFunction(tt)?animateProgress:animate$1)(tt,et,it)}function clamp$2(tt,et,it){return Math.max(et,Math.min(it,tt))}function euclideanModulo(tt,et){return(tt%et+et)%et}function lerp$2(tt,et,it){return(1-it)*tt+it*et}const FrontSide=0,NoColorSpace="",SRGBColorSpace="srgb",LinearSRGBColorSpace="srgb-linear",DisplayP3ColorSpace="display-p3",LinearDisplayP3ColorSpace="display-p3-linear",LinearTransfer="linear",SRGBTransfer="srgb",Rec709Primaries="rec709",P3Primaries="p3";class Matrix3{constructor(et,it,rt,nt,st,at,ot,lt,ct){Matrix3.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],et!==void 0&&this.set(et,it,rt,nt,st,at,ot,lt,ct)}set(et,it,rt,nt,st,at,ot,lt,ct){const ht=this.elements;return ht[0]=et,ht[1]=nt,ht[2]=ot,ht[3]=it,ht[4]=st,ht[5]=lt,ht[6]=rt,ht[7]=at,ht[8]=ct,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(et){const it=this.elements,rt=et.elements;return it[0]=rt[0],it[1]=rt[1],it[2]=rt[2],it[3]=rt[3],it[4]=rt[4],it[5]=rt[5],it[6]=rt[6],it[7]=rt[7],it[8]=rt[8],this}extractBasis(et,it,rt){return et.setFromMatrix3Column(this,0),it.setFromMatrix3Column(this,1),rt.setFromMatrix3Column(this,2),this}setFromMatrix4(et){const it=et.elements;return this.set(it[0],it[4],it[8],it[1],it[5],it[9],it[2],it[6],it[10]),this}multiply(et){return this.multiplyMatrices(this,et)}premultiply(et){return this.multiplyMatrices(et,this)}multiplyMatrices(et,it){const rt=et.elements,nt=it.elements,st=this.elements,at=rt[0],ot=rt[3],lt=rt[6],ct=rt[1],ht=rt[4],dt=rt[7],ut=rt[2],gt=rt[5],mt=rt[8],ft=nt[0],pt=nt[3],yt=nt[6],vt=nt[1],_t=nt[4],bt=nt[7],St=nt[2],wt=nt[5],xt=nt[8];
vendor: 13,968 bytes, line 6
6return st[0]=at*ft+ot*vt+lt*St,st[3]=at*pt+ot*_t+lt*wt,st[6]=at*yt+ot*bt+lt*xt,st[1]=ct*ft+ht*vt+dt*St,st[4]=ct*pt+ht*_t+dt*wt,st[7]=ct*yt+ht*bt+dt*xt,st[2]=ut*ft+gt*vt+mt*St,st[5]=ut*pt+gt*_t+mt*wt,st[8]=ut*yt+gt*bt+mt*xt,this}multiplyScalar(et){const it=this.elements;return it[0]*=et,it[3]*=et,it[6]*=et,it[1]*=et,it[4]*=et,it[7]*=et,it[2]*=et,it[5]*=et,it[8]*=et,this}determinant(){const et=this.elements,it=et[0],rt=et[1],nt=et[2],st=et[3],at=et[4],ot=et[5],lt=et[6],ct=et[7],ht=et[8];return it*at*ht-it*ot*ct-rt*st*ht+rt*ot*lt+nt*st*ct-nt*at*lt}invert(){const et=this.elements,it=et[0],rt=et[1],nt=et[2],st=et[3],at=et[4],ot=et[5],lt=et[6],ct=et[7],ht=et[8],dt=ht*at-ot*ct,ut=ot*lt-ht*st,gt=ct*st-at*lt,mt=it*dt+rt*ut+nt*gt;if(mt===0)return this.set(0,0,0,0,0,0,0,0,0);const ft=1/mt;return et[0]=dt*ft,et[1]=(nt*ct-ht*rt)*ft,et[2]=(ot*rt-nt*at)*ft,et[3]=ut*ft,et[4]=(ht*it-nt*lt)*ft,et[5]=(nt*st-ot*it)*ft,et[6]=gt*ft,et[7]=(rt*lt-ct*it)*ft,et[8]=(at*it-rt*st)*ft,this}transpose(){let et;const it=this.elements;return et=it[1],it[1]=it[3],it[3]=et,et=it[2],it[2]=it[6],it[6]=et,et=it[5],it[5]=it[7],it[7]=et,this}getNormalMatrix(et){return this.setFromMatrix4(et).invert().transpose()}transposeIntoArray(et){const it=this.elements;return et[0]=it[0],et[1]=it[3],et[2]=it[6],et[3]=it[1],et[4]=it[4],et[5]=it[7],et[6]=it[2],et[7]=it[5],et[8]=it[8],this}setUvTransform(et,it,rt,nt,st,at,ot){const lt=Math.cos(st),ct=Math.sin(st);return this.set(rt*lt,rt*ct,-rt*(lt*at+ct*ot)+at+et,-nt*ct,nt*lt,-nt*(-ct*at+lt*ot)+ot+it,0,0,1),this}scale(et,it){return this.premultiply(_m3.makeScale(et,it)),this}rotate(et){return this.premultiply(_m3.makeRotation(-et)),this}translate(et,it){return this.premultiply(_m3.makeTranslation(et,it)),this}makeTranslation(et,it){return et.isVector2?this.set(1,0,et.x,0,1,et.y,0,0,1):this.set(1,0,et,0,1,it,0,0,1),this}makeRotation(et){const it=Math.cos(et),rt=Math.sin(et);return this.set(it,-rt,0,rt,it,0,0,0,1),this}makeScale(et,it){return this.set(et,0,0,0,it,0,0,0,1),this}equals(et){const it=this.elements,rt=et.elements;for(let nt=0;nt<9;nt++)if(it[nt]!==rt[nt])return!1;return!0}fromArray(et,it=0){for(let rt=0;rt<9;rt++)this.elements[rt]=et[rt+it];return this}toArray(et=[],it=0){const rt=this.elements;return et[it]=rt[0],et[it+1]=rt[1],et[it+2]=rt[2],et[it+3]=rt[3],et[it+4]=rt[4],et[it+5]=rt[5],et[it+6]=rt[6],et[it+7]=rt[7],et[it+8]=rt[8],et}clone(){return new this.constructor().fromArray(this.elements)}}const _m3=new Matrix3,LINEAR_SRGB_TO_LINEAR_DISPLAY_P3=new Matrix3().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),LINEAR_DISPLAY_P3_TO_LINEAR_SRGB=new Matrix3().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),COLOR_SPACES={[LinearSRGBColorSpace]:{transfer:LinearTransfer,primaries:Rec709Primaries,toReference:tt=>tt,fromReference:tt=>tt},[SRGBColorSpace]:{transfer:SRGBTransfer,primaries:Rec709Primaries,toReference:tt=>tt.convertSRGBToLinear(),fromReference:tt=>tt.convertLinearToSRGB()},[LinearDisplayP3ColorSpace]:{transfer:LinearTransfer,primaries:P3Primaries,toReference:tt=>tt.applyMatrix3(LINEAR_DISPLAY_P3_TO_LINEAR_SRGB),fromReference:tt=>tt.applyMatrix3(LINEAR_SRGB_TO_LINEAR_DISPLAY_P3)},[DisplayP3ColorSpace]:{transfer:SRGBTransfer,primaries:P3Primaries,toReference:tt=>tt.convertSRGBToLinear().applyMatrix3(LINEAR_DISPLAY_P3_TO_LINEAR_SRGB),fromReference:tt=>tt.applyMatrix3(LINEAR_SRGB_TO_LINEAR_DISPLAY_P3).convertLinearToSRGB()}},SUPPORTED_WORKING_COLOR_SPACES=new Set([LinearSRGBColorSpace,LinearDisplayP3ColorSpace]),ColorManagement={enabled:!0,_workingColorSpace:LinearSRGBColorSpace,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(tt){if(!SUPPORTED_WORKING_COLOR_SPACES.has(tt))throw new Error(`Unsupported working color space, "${tt}".`);this._workingColorSpace=tt},convert:function(tt,et,it){if(this.enabled===!1||et===it||!et||!it)return tt;const rt=COLOR_SPACES[et].toReference,nt=COLOR_SPACES[it].fromReference;return nt(rt(tt))},fromWorkingColorSpace:function(tt,et){return this.convert(tt,this._workingColorSpace,et)},toWorkingColorSpace:function(tt,et){return this.convert(tt,et,this._workingColorSpace)},getPrimaries:function(tt){return COLOR_SPACES[tt].primaries},getTransfer:function(tt){return tt===NoColorSpace?LinearTransfer:COLOR_SPACES[tt].transfer}};function SRGBToLinear(tt){return tt<.04045?tt*.0773993808:Math.pow(tt*.9478672986+.0521327014,2.4)}function LinearToSRGB(tt){return tt<.0031308?tt*12.92:1.055*Math.pow(tt,.41666)-.055}const _colorKeywords={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},_hslA={h:0,s:0,l:0},_hslB={h:0,s:0,l:0};function hue2rgb(tt,et,it){return it<0&&(it+=1),it>1&&(it-=1),it<1/6?tt+(et-tt)*6*it:it<1/2?et:it<2/3?tt+(et-tt)*6*(2/3-it):tt}class Color{constructor(et,it,rt){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(et,it,rt)}set(et,it,rt){if(it===void 0&&rt===void 0){const nt=et;nt&&nt.isColor?this.copy(nt):typeof nt=="number"?this.setHex(nt):typeof nt=="string"&&this.setStyle(nt)}else this.setRGB(et,it,rt);return this}setScalar(et){return this.r=et,this.g=et,this.b=et,this}setHex(et,it=SRGBColorSpace){return et=Math.floor(et),this.r=(et>>16&255)/255,this.g=(et>>8&255)/255,this.b=(et&255)/255,ColorManagement.toWorkingColorSpace(this,it),this}setRGB(et,it,rt,nt=ColorManagement.workingColorSpace){return this.r=et,this.g=it,this.b=rt,ColorManagement.toWorkingColorSpace(this,nt),this}setHSL(et,it,rt,nt=ColorManagement.workingColorSpace){if(et=euclideanModulo(et,1),it=clamp$2(it,0,1),rt=clamp$2(rt,0,1),it===0)this.r=this.g=this.b=rt;else{const st=rt<=.5?rt*(1+it):rt+it-rt*it,at=2*rt-st;this.r=hue2rgb(at,st,et+1/3),this.g=hue2rgb(at,st,et),this.b=hue2rgb(at,st,et-1/3)}return ColorManagement.toWorkingColorSpace(this,nt),this}setStyle(et,it=SRGBColorSpace){function rt(st){st!==void 0&&parseFloat(st)<1&&console.warn("THREE.Color: Alpha component of "+et+" will be ignored.")}let nt;if(nt=/^(\w+)\(([^\)]*)\)/.exec(et)){let st;const at=nt[1],ot=nt[2];switch(at){case"rgb":case"rgba":if(st=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(ot))return rt(st[4]),this.setRGB(Math.min(255,parseInt(st[1],10))/255,Math.min(255,parseInt(st[2],10))/255,Math.min(255,parseInt(st[3],10))/255,it);if(st=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(ot))return rt(st[4]),this.setRGB(Math.min(100,parseInt(st[1],10))/100,Math.min(100,parseInt(st[2],10))/100,Math.min(100,parseInt(st[3],10))/100,it);break;case"hsl":case"hsla":if(st=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(ot))return rt(st[4]),this.setHSL(parseFloat(st[1])/360,parseFloat(st[2])/100,parseFloat(st[3])/100,it);break;default:console.warn("THREE.Color: Unknown color model "+et)}}else if(nt=/^\#([A-Fa-f\d]+)$/.exec(et)){const st=nt[1],at=st.length;if(at===3)return this.setRGB(parseInt(st.charAt(0),16)/15,parseInt(st.charAt(1),16)/15,parseInt(st.charAt(2),16)/15,it);if(at===6)return this.setHex(parseInt(st,16),it);console.warn("THREE.Color: Invalid hex color "+et)}else if(et&&et.length>0)return this.setColorName(et,it);return this}setColorName(et,it=SRGBColorSpace){const rt=_colorKeywords[et.toLowerCase()];return rt!==void 0?this.setHex(rt,it):console.warn("THREE.Color: Unknown color "+et),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(et){return this.r=et.r,this.g=et.g,this.b=et.b,this}copySRGBToLinear(et){return this.r=SRGBToLinear(et.r),this.g=SRGBToLinear(et.g),this.b=SRGBToLinear(et.b),this}copyLinearToSRGB(et){return this.r=LinearToSRGB(et.r),this.g=LinearToSRGB(et.g),this.b=LinearToSRGB(et.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(et=SRGBColorSpace){return ColorManagement.fromWorkingColorSpace(_color.copy(this),et),Math.round(clamp$2(_color.r*255,0,255))*65536+Math.round(clamp$2(_color.g*255,0,255))*256+Math.round(clamp$2(_color.b*255,0,255))}getHexString(et=SRGBColorSpace){return("000000"+this.getHex(et).toString(16)).slice(-6)}getHSL(et,it=ColorManagement.workingColorSpace){ColorManagement.fromWorkingColorSpace(_color.copy(this),it);const rt=_color.r,nt=_color.g,st=_color.b,at=Math.max(rt,nt,st),ot=Math.min(rt,nt,st);let lt,ct;const ht=(ot+at)/2;if(ot===at)lt=0,ct=0;else{const dt=at-ot;switch(ct=ht<=.5?dt/(at+ot):dt/(2-at-ot),at){case rt:lt=(nt-st)/dt+(nt<st?6:0);break;case nt:lt=(st-rt)/dt+2;break;case st:lt=(rt-nt)/dt+4;break}lt/=6}return et.h=lt,et.s=ct,et.l=ht,et}getRGB(et,it=ColorManagement.workingColorSpace){return ColorManagement.fromWorkingColorSpace(_color.copy(this),it),et.r=_color.r,et.g=_color.g,et.b=_color.b,et}getStyle(et=SRGBColorSpace){ColorManagement.fromWorkingColorSpace(_color.copy(this),et);const it=_color.r,rt=_color.g,nt=_color.b;return et!==SRGBColorSpace?`color(${et} ${it.toFixed(3)} ${rt.toFixed(3)} ${nt.toFixed(3)})`:`rgb(${Math.round(it*255)},${Math.round(rt*255)},${Math.round(nt*255)})`}offsetHSL(et,it,rt){return this.getHSL(_hslA),this.setHSL(_hslA.h+et,_hslA.s+it,_hslA.l+rt)}add(et){return this.r+=et.r,this.g+=et.g,this.b+=et.b,this}addColors(et,it){return this.r=et.r+it.r,this.g=et.g+it.g,this.b=et.b+it.b,this}addScalar(et){return this.r+=et,this.g+=et,this.b+=et,this}sub(et){return this.r=Math.max(0,this.r-et.r),this.g=Math.max(0,this.g-et.g),this.b=Math.max(0,this.b-et.b),this}multiply(et){return this.r*=et.r,this.g*=et.g,this.b*=et.b,this}multiplyScalar(et){return this.r*=et,this.g*=et,this.b*=et,this}lerp(et,it){return this.r+=(et.r-this.r)*it,this.g+=(et.g-this.g)*it,this.b+=(et.b-this.b)*it,this}lerpColors(et,it,rt){return this.r=et.r+(it.r-et.r)*rt,this.g=et.g+(it.g-et.g)*rt,this.b=et.b+(it.b-et.b)*rt,this}lerpHSL(et,it){this.getHSL(_hslA),et.getHSL(_hslB);const rt=lerp$2(_hslA.h,_hslB.h,it),nt=lerp$2(_hslA.s,_hslB.s,it),st=lerp$2(_hslA.l,_hslB.l,it);return this.setHSL(rt,nt,st),this}setFromVector3(et){return this.r=et.x,this.g=et.y,this.b=et.z,this}applyMatrix3(et){const it=this.r,rt=this.g,nt=this.b,st=et.elements;return this.r=st[0]*it+st[3]*rt+st[6]*nt,this.g=st[1]*it+st[4]*rt+st[7]*nt,this.b=st[2]*it+st[5]*rt+st[8]*nt,this}equals(et){return et.r===this.r&&et.g===this.g&&et.b===this.b}fromArray(et,it=0){return this.r=et[it],this.g=et[it+1],this.b=et[it+2],this}toArray(et=[],it=0){return et[it]=this.r,et[it+1]=this.g,et[it+2]=this.b,et}fromBufferAttribute(et,it){return this.r=et.getX(it),this.g=et.getY(it),this.b=et.getZ(it),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const _color=new Color;Color.NAMES=_colorKeywords;class Flag{constructor(et,it){this.enabled=et,this.depends=it}}function detectWebGLContext(){const tt=document.createElement("canvas"),et=tt.getContext("webgl")||tt.getContext("experimental-webgl"),it=navigator.userAgent.toLowerCase(),rt=["gtmetrix","headlesschrome","headless","chrome-lighthouse","lighthouse"];let nt=!1;return nt=new RegExp(rt.join("|")).test(it),et instanceof WebGLRenderingContext&&!nt}const isWebGl=detectWebGLContext(),isTouch=window.matchMedia("(hover: none)").matches,isMobile=window.innerWidth<768,defaultFlags={three:new Flag(isWebGl),emblem:new Flag(!isTouch,["three"]),particles:new Flag(!0,["three"]),skillIcons:new Flag(!isMobile,["three"]),particlesShape:new Flag(!isTouch,["three","particles"]),textEffe
6cts:new Flag(!0),scrollLerp:new Flag(!0),backgroundTransition:new Flag(!0),blob:new Flag(!0),cursorIcon:new Flag(!isTouch),scrollReveal:new Flag(!0),leaveEffect:new Flag(!0),parallax:new Flag(!0),scrollingText:new Flag(!0),images3d:new Flag(!isTouch,["three"])},flags=defaultFlags,fixDependencies=()=>{for(const[tt,et]of Object.entries(flags)){const it=et;if(it.depends)for(const rt of it.depends)flags[rt].enabled||(flags[tt].enabled=!1)}};fixDependencies();const canIUse=tt=>flags[tt].enabled;function needsFeature(tt){return function(et){if(!canIUse(tt))return()=>{}}}function ifFeature(tt,et,it){return canIUse(tt)?et:it}function setFeatureConfig(){fixDependencies()}class EventBus{constructor(){Tt(this,"eventSubscriptions");this.eventSubscriptions={}}subscribe(et,it){return this.eventSubscriptions[et]||(this.eventSubscriptions[et]=[]),this.eventSubscriptions[et].push(it),()=>this.unsubscribe(et,it)}unsubscribe(et,it){const rt=this.eventSubscriptions[et];return rt?(this.eventSubscriptions[et]=rt.filter(nt=>nt!==it),!0):!1}publish(et,it){const rt=this.eventSubscriptions[et];rt&&rt.forEach(nt=>nt(it))}once(et,it){if(it){const rt=this.subscribe(et,nt=>{it(nt),rt()})}else return new Promise(rt=>{const nt=this.subscribe(et,()=>{nt(),rt()})})}}const globalEvents=new EventBus;var version$1="1.3.17";function clamp$1(tt,et,it){return Math.max(tt,Math.min(et,it))}function lerp$1(tt,et,it){return(1-it)*tt+it*et}function damp(tt,et,it,rt){return lerp$1(tt,et,1-Math.exp(-it*rt))}function modulo(tt,et){return(tt%et+et)%et}var Animate=class{constructor(){Tt(this,"isRunning",!1);Tt(this,"value",0);Tt(this,"from",0);Tt(this,"to",0);Tt(this,"currentTime",0);Tt(this,"lerp");Tt(this,"duration");Tt(this,"easing");Tt(this,"onUpdate")}advance(tt){var it;if(!this.isRunning)return;let et=!1;if(this.duration&&this.easing){this.currentTime+=tt;const rt=clamp$1(0,this.currentTime/this.duration,1);et=rt>=1;const nt=et?1:this.easing(rt);this.value=this.from+(this.to-this.from)*nt}else this.lerp?(this.value=damp(this.value,this.to,this.lerp*60,tt),Math.round(this.value)===this.to&&(this.value=this.to,et=!0)):(this.value=this.to,et=!0);et&&this.stop(),(it=this.onUpdate)==null||it.call(this,this.value,et)}stop(){this.isRunning=!1}fromTo(tt,et,{lerp:it,duration:rt,easing:nt,onStart:st,onUpdate:at}){this.from=this.value=tt,this.to=et,this.lerp=it,this.duration=rt,this.easing=nt,this.currentTime=0,this.isRunning=!0,st==null||st(),this.onUpdate=at}};function debounce$2(tt,et){let it;return function(...rt){let nt=this;clearTimeout(it),it=setTimeout(()=>{it=void 0,tt.apply(nt,rt)},et)}}var Dimensions=class{constructor(tt,et,{autoResize:it=!0,debounce:rt=250}={}){Tt(this,"width",0);Tt(this,"height",0);Tt(this,"scrollHeight",0);Tt(this,"scrollWidth",0);Tt(this,"debouncedResize");Tt(this,"wrapperResizeObserver");Tt(this,"contentResizeObserver");Tt(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});Tt(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});Tt(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=tt,this.content=et,it&&(this.debouncedResize=debounce$2(this.resize,rt),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var tt,et;(tt=this.wrapperResizeObserver)==null||tt.disconnect(),(et=this.contentResizeObserver)==null||et.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Emitter=class{constructor(){Tt(this,"events",{})}emit(tt,...et){var rt;let it=this.events[tt]||[];for(let nt=0,st=it.length;nt<st;nt++)(rt=it[nt])==null||rt.call(it,...et)}on(tt,et){var it;return(it=this.events[tt])!=null&&it.push(et)||(this.events[tt]=[et]),()=>{var rt;this.events[tt]=(rt=this.events[tt])==null?void 0:rt.filter(nt=>et!==nt)}}off(tt,et){var it;this.events[tt]=(it=this.events[tt])==null?void 0:it.filter(rt=>et!==rt)}destroy(){this.events={}}},LINE_HEIGHT=100/6,listenerOptions={passive:!1},VirtualScroll=class{constructor(tt,et={wheelMultiplier:1,touchMultiplier:1}){Tt(this,"touchStart",{x:0,y:0});Tt(this,"lastDelta",{x:0,y:0});Tt(this,"window",{width:0,height:0});Tt(this,"emitter",new Emitter);Tt(this,"onTouchStart",tt=>{const{clientX:et,clientY:it}=tt.targetTouches?tt.targetTouches[0]:tt;this.touchStart.x=et,this.touchStart.y=it,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:tt})});Tt(this,"onTouchMove",tt=>{const{clientX:et,clientY:it}=tt.targetTouches?tt.targetTouches[0]:tt,rt=-(et-this.touchStart.x)*this.options.touchMultiplier,nt=-(it-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=et,this.touchStart.y=it,this.lastDelta={x:rt,y:nt},this.emitter.emit("scroll",{deltaX:rt,deltaY:nt,event:tt})});Tt(this,"onTouchEnd",tt=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:tt})});Tt(this,"onWheel",tt=>{let{deltaX:et,deltaY:it,deltaMode:rt}=tt;const nt=rt===1?LINE_HEIGHT:rt===2?this.window.width:1,st=rt===1?LINE_HEIGHT:rt===2?this.window.height:1;et*=nt,it*=st,et*=this.options.wheelMultiplier,it*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:et,deltaY:it,event:tt})});Tt(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=tt,this.options=et,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,listenerOptions),this.element.addEventListener("touchstart",this.onTouchStart,listenerOptions),this.element.addEventListener("touchmove",this.onTouchMove,listenerOptions),this.element.addEventListener("touchend",this.onTouchEnd,listenerOptions)}on(tt,et){return this.emitter.on(tt,et)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,listenerOptions),this.element.removeEventListener("touchstart",this.onTouchStart,listenerOptions),this.element.removeEventListener("touchmove",this.onTouchMove,listenerOptions),this.element.removeEventListener("touchend",this.onTouchEnd,listenerOptions)}},defaultEasing=tt=>Math.min(1,1.001-Math.pow(2,-10*tt)),Lenis=class{constructor({wrapper:tt=window,content:et=document.documentElement,eventsTarget:it=tt,smoothWheel:rt=!0,syncTouch:nt=!1,syncTouchLerp:st=.075,touchInertiaExponent:at=1.7,duration:ot,easing:lt,lerp:ct=.1,infinite:ht=!1,orientation:dt="vertical",gestureOrientation:ut=dt==="horizontal"?"both":"vertical",touchMultiplier:gt=1,wheelMultiplier:mt=1,autoResize:ft=!0,prevent:pt,virtualScroll:yt,overscroll:vt=!0,autoRaf:_t=!1,anchors:bt=!1,autoToggle:St=!1,allowNestedScroll:wt=!1,__experimental__naiveDimensions:xt=!1,naiveDimensions:Pt=xt,stopInertiaOnNavigate:kt=!1}={}){Tt(this,"_isScrolling",!1);Tt(this,"_isStopped",!1);Tt(this,"_isLocked",!1);Tt(this,"_preventNextNativeScrollEvent",!1);Tt(this,"_resetVelocityTimeout",null);Tt(this,"_rafId",null);Tt(this,"isTouching");Tt(this,"time",0);Tt(this,"userData",{});Tt(this,"lastVelocity",0);Tt(this,"velocity",0);Tt(this,"direction",0);Tt(this,"options");Tt(this,"targetScroll");Tt(this,"animatedScroll");Tt(this,"animate",new Animate);Tt(this,"emitter",new Emitter);Tt(this,"dimensions");Tt(this,"virtualScroll");Tt(this,"onScrollEnd",tt=>{tt instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&tt.stopPropagation()});Tt(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});Tt(this,"onTransitionEnd",tt=>{tt.propertyName.includes("overflow")&&this.checkOverflow()});Tt(this,"onClick",tt=>{const it=tt.composedPath().filter(rt=>rt instanceof HTMLAnchorElement&&rt.getAttribute("href"));if(this.options.anchors){const rt=it.find(nt=>{var st;return(st=nt.getAttribute("href"))==null?void 0:st.includes("#")});if(rt){const nt=rt.getAttribute("href");if(nt){const st=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,at=`#${nt.split("#")[1]}`;this.scrollTo(at,st)}}}this.options.stopInertiaOnNavigate&&it.find(nt=>nt.host===window.location.host)&&this.reset()});Tt(this,"onPointerDown",tt=>{tt.button===1&&this.reset()});Tt(this,"onVirtualScroll",tt=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(tt)===!1)return;const{deltaX:et,deltaY:it,event:rt}=tt;if(this.emitter.emit("virtual-scroll",{deltaX:et,deltaY:it,event:rt}),rt.ctrlKey||rt.lenisStopPropagation)return;const nt=rt.type.includes("touch"),st=rt.type.includes("wheel");this.isTouching=rt.type==="touchstart"||rt.type==="touchmove";
6const at=et===0&&it===0;if(this.options.syncTouch&&nt&&rt.type==="touchstart"&&at&&!this.isStopped&&!this.isLocked){this.reset();return}const lt=this.options.gestureOrientation==="vertical"&&it===0||this.options.gestureOrientation==="horizontal"&&et===0;if(at||lt)return;let ct=rt.composedPath();ct=ct.slice(0,ct.indexOf(this.rootElement));const ht=this.options.prevent;if(ct.find(pt=>{var yt,vt,_t;return pt instanceof HTMLElement&&(typeof ht=="function"&&(ht==null?void 0:ht(pt))||((yt=pt.hasAttribute)==null?void 0:yt.call(pt,"data-lenis-prevent"))||nt&&((vt=pt.hasAttribute)==null?void 0:vt.call(pt,"data-lenis-prevent-touch"))||st&&((_t=pt.hasAttribute)==null?void 0:_t.call(pt,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(pt,{deltaX:et,deltaY:it}))}))return;if(this.isStopped||this.isLocked){rt.cancelable&&rt.preventDefault();return}if(!(this.options.syncTouch&&nt||this.options.smoothWheel&&st)){this.isScrolling="native",this.animate.stop(),rt.lenisStopPropagation=!0;return}let ut=it;this.options.gestureOrientation==="both"?ut=Math.abs(it)>Math.abs(et)?it:et:this.options.gestureOrientation==="horizontal"&&(ut=et),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&it>0||this.animatedScroll===this.limit&&it<0))&&(rt.lenisStopPropagation=!0),rt.cancelable&&rt.preventDefault();const gt=nt&&this.options.syncTouch,ft=nt&&rt.type==="touchend";ft&&(ut=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+ut,{programmatic:!1,...gt?{lerp:ft?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});Tt(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const tt=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-tt,this.direction=Math.sign(this.animatedScroll-tt),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});Tt(this,"raf",tt=>{const et=tt-(this.time||tt);this.time=tt,this.animate.advance(et*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=version$1,(!tt||tt===document.documentElement)&&(tt=window),typeof ot=="number"&&typeof lt!="function"?lt=defaultEasing:typeof lt=="function"&&typeof ot!="number"&&(ot=1),this.options={wrapper:tt,content:et,eventsTarget:it,smoothWheel:rt,syncTouch:nt,syncTouchLerp:st,touchInertiaExponent:at,duration:ot,easing:lt,lerp:ct,infinite:ht,gestureOrientation:ut,orientation:dt,touchMultiplier:gt,wheelMultiplier:mt,autoResize:ft,prevent:pt,virtualScroll:yt,overscroll:vt,autoRaf:_t,anchors:bt,autoToggle:St,allowNestedScroll:wt,naiveDimensions:Pt,stopInertiaOnNavigate:kt},this.dimensions=new Dimensions(tt,et,{autoResize:ft}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new VirtualScroll(it,{touchMultiplier:gt,wheelMultiplier:mt}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(tt,et){return this.emitter.on(tt,et)}off(tt,et){return this.emitter.off(tt,et)}get overflow(){const tt=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[tt]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(tt){this.isHorizontal?this.options.wrapper.scrollTo({left:tt,behavior:"instant"}):this.options.wrapper.scrollTo({top:tt,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
6()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(tt,{offset:et=0,immediate:it=!1,lock:rt=!1,programmatic:nt=!0,lerp:st=nt?this.options.lerp:void 0,duration:at=nt?this.options.duration:void 0,easing:ot=nt?this.options.easing:void 0,onStart:lt,onComplete:ct,force:ht=!1,userData:dt}={}){if(!((this.isStopped||this.isLocked)&&!ht)){if(typeof tt=="string"&&["top","left","start","#"].includes(tt))tt=0;else if(typeof tt=="string"&&["bottom","right","end"].includes(tt))tt=this.limit;else{let ut;if(typeof tt=="string"?(ut=document.querySelector(tt),ut||(tt==="#top"?tt=0:console.warn("Lenis: Target not found",tt))):tt instanceof HTMLElement&&(tt!=null&&tt.nodeType)&&(ut=tt),ut){if(this.options.wrapper!==window){const mt=this.rootElement.getBoundingClientRect();et-=this.isHorizontal?mt.left:mt.top}const gt=ut.getBoundingClientRect();tt=(this.isHorizontal?gt.left:gt.top)+this.animatedScroll}}if(typeof tt=="number"){if(tt+=et,tt=Math.round(tt),this.options.infinite){if(nt){this.targetScroll=this.animatedScroll=this.scroll;const ut=tt-this.animatedScroll;ut>this.limit/2?tt=tt-this.limit:ut<-this.limit/2&&(tt=tt+this.limit)}}else tt=clamp$1(0,tt,this.limit);if(tt===this.targetScroll){lt==null||lt(this),ct==null||ct(this);return}if(this.userData=dt??{},it){this.animatedScroll=this.targetScroll=tt,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),ct==null||ct(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}nt||(this.targetScroll=tt),typeof at=="number"&&typeof ot!="function"?ot=defaultEasing:typeof ot=="function"&&typeof at!="number"&&(at=1),this.animate.fromTo(this.animatedScroll,tt,{duration:at,easing:ot,lerp:st,onStart:()=>{rt&&(this.isLocked=!0),this.isScrolling="smooth",lt==null||lt(this)},onUpdate:(ut,gt)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=ut-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=ut,this.setScroll(this.scroll),nt&&(this.targetScroll=ut),gt||this.emit(),gt&&(this.reset(),this.emit(),ct==null||ct(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(tt,{deltaX:et,deltaY:it}){const rt=Date.now(),nt=tt._lenis??(tt._lenis={});let st,at,ot,lt,ct,ht,dt,ut;const gt=this.options.gestureOrientation;if(rt-(nt.time??0)>2e3){nt.time=Date.now();const St=window.getComputedStyle(tt);nt.computedStyle=St;const wt=St.overflowX,xt=St.overflowY;if(st=["auto","overlay","scroll"].includes(wt),at=["auto","overlay","scroll"].includes(xt),nt.hasOverflowX=st,nt.hasOverflowY=at,!st&&!at||gt==="vertical"&&!at||gt==="horizontal"&&!st)return!1;ct=tt.scrollWidth,ht=tt.scrollHeight,dt=tt.clientWidth,ut=tt.clientHeight,ot=ct>dt,lt=ht>ut,nt.isScrollableX=ot,nt.isScrollableY=lt,nt.scrollWidth=ct,nt.scrollHeight=ht,nt.clientWidth=dt,nt.clientHeight=ut}else ot=nt.isScrollableX,lt=nt.isScrollableY,st=nt.hasOverflowX,at=nt.hasOverflowY,ct=nt.scrollWidth,ht=nt.scrollHeight,dt=nt.clientWidth,ut=nt.clientHeight;if(!st&&!at||!ot&&!lt||gt==="vertical"&&(!at||!lt)||gt==="horizontal"&&(!st||!ot))return!1;let mt;if(gt==="horizontal")mt="x";else if(gt==="vertical")mt="y";else{const St=et!==0,wt=it!==0;St&&st&&ot&&(mt="x"),wt&&at&&lt&&(mt="y")}if(!mt)return!1;let ft,pt,yt,vt,_t;if(mt==="x")ft=tt.scrollLeft,pt=ct-dt,yt=et,vt=st,_t=ot;else if(mt==="y")ft=tt.scrollTop,pt=ht-ut,yt=it,vt=at,_t=lt;else return!1;return(yt>0?ft<pt:ft>0)&&vt&&_t}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const tt=this.options.wrapper;return this.isHorizontal?tt.scrollX??tt.scrollLeft:tt.scrollY??tt.scrollTop}get scroll(){return this.options.infinite?modulo(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(tt){this._isScrolling!==tt&&(this._isScrolling=tt,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(tt){this._isStopped!==tt&&(this._isStopped=tt,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(tt){this._isLocked!==tt&&(this._isLocked=tt,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let tt="lenis";return this.options.autoToggle&&(tt+=" lenis-autoToggle"),this.isStopped&&(tt+=" lenis-stopped"),this.isLocked&&(tt+=" lenis-locked"),this.isScrolling&&(tt+=" lenis-scrolling"),this.isScrolling==="smooth"&&(tt+=" lenis-smooth"),tt}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};let lenisInstance;function getLenis(){return lenisInstance}function lenis(){lenisInstance=new Lenis({});function tt(et){lenisInstance.raf(et),requestAnimationFrame(tt)}return requestAnimationFrame(tt),window.scrollTo(0,0),lenisInstance}const isDev=()=>!1,cols=tt=>tt*(window.innerWidth/14),imageLoaded=(tt,et=null)=>new Promise(it=>{tt.complete?(et==null||et(),it()):tt.addEventListener("load",()=>{et==null||et(),it()},{once:!0})}),attrStartsWith=(tt,et)=>[...document.querySelectorAll(tt)].filter(it=>[...it.attributes].filter(({name:rt})=>rt.startsWith(et)).length>0);function getStackTrace(){var tt={};return Error.captureStackTrace(tt,getStackTrace),tt.stack.split(`
7`).slice(1).map(et=>et.trim())}function wnkWarn(tt){console.log(`%cWnkWarn: ${tt}`,"color: #857421; background: #fcee91; padding: 4px; display: block")}function resolveElements(tt){return typeof tt=="string"?tt=document.querySelectorAll(tt):tt instanceof Element&&(tt=[tt]),Array.from(tt||[])}class AlpineDirective{constructor(et,it,rt){Tt(this,"unMounted",!1);Tt(this,"revealParent");Tt(this,"eventListenersCleaners",[]);this.element=et,this.params=it,this.utilities=rt,this.detectRevealParent(),globalEvents.once("mountDirectives",this.onMountSignal.bind(this)),rt.cleanup(()=>{this.destroy()})}get isInsideReveal(){return!!this.revealParent}async onMountSignal(){var et;globalEvents.publish("registerMountDirective",this),await((et=this.onMount)==null?void 0:et.call(this)),this.bindBuiltInEvents(),globalEvents.publish("directiveMounted",this)}async destroy(){var et;(et=this.onUnmount)==null||et.call(this),this.removeEventListeners(),this.element=null,this.params=null,this.utilities=null,this.unMounted=!0}bindBuiltInEvents(){this.onScroll&&this.addScrollListener(this.onScroll.bind(this),!0),this.onResize&&this.addEventListenerTo(window,"resize",this.onResize.bind(this),void 0,!0),this.onRaf&&this.addRafFn(this.onRaf.bind(this),!0),this.onPageReady&&globalEvents.once("pageReady",this.onPageReady.bind(this)),this.onTransitionLeave&&this.addEventListenerTo(window,"barba-start",et=>{this.onTransitionLeave(et.detail.name,et.detail.nextPageColor)},void 0,!0),this.revealParent&&(this.onRevealStart&&this.addEventListenerTo(this.revealParent,"reveal-start",this.onRevealStart.bind(this),void 0,!0),this.onRevealEnd&&this.addEventListenerTo(this.revealParent,"reveal-end",this.onRevealEnd.bind(this),void 0,!0))}detectRevealParent(){this.revealParent=this.element.closest("[data-reveal]")}
7removeEventListeners(){this.eventListenersCleaners.forEach(et=>et()),this.eventListenersCleaners=null}addEventListenerTo(et,it,rt,nt,st=!1){!st&&et===window&&(it==="resize"||it==="barba-start")&&((rt.name.includes("bound onResize")||rt.toString().includes("this.onResize"))&&wnkWarn(`It seems that you are manually binding the 𝗼𝗻𝗥𝗲𝘀𝗶𝘇𝗲 method to the window resize event. This is not necessary as it is automatically bound.
8`+getStackTrace()[1]),(rt.name.includes("bound onTransitionLeave")||rt.toString().includes("this.onTransitionLeave"))&&wnkWarn(`It seems that you are manually binding the onTransitionLeave method to the window resize event. This is not necessary as it is automatically bound.
9`+getStackTrace()[1])),et.addEventListener(it,rt,nt),this.eventListenersCleaners.push(()=>et.removeEventListener(it,rt,nt))}addEventListener(et,it,rt){this.addEventListenerTo(this.element,et,it,rt)}onGlobal(et,it){const rt=globalEvents.subscribe(et,it);return this.eventListenersCleaners.push(rt),rt}addScrollListener(et,it=!1){it||(et.name.includes("bound onScroll")||et.toString().includes("this.onScroll"))&&wnkWarn(`It seems that you are manually binding the 𝗼𝗻𝗦𝗰𝗿𝗼𝗹𝗹 method. This is not necessary as it is automatically bound.
10`+getStackTrace()[1]),this.eventListenersCleaners.push(getLenis().on("scroll",et))}addRafFn(et,it=!1){it||(et.name.includes("bound onRaf")||et.toString().includes("this.onRaf"))&&wnkWarn(`It seems that you are manually binding the 𝗼𝗻𝗥𝗮𝗳 method. This is not necessary as it is automatically bound.
11`+getStackTrace()[1]);let rt,nt=performance.now();const st=at=>{const ot=at-nt;et({elapsed:at,delta:ot}),nt=at,rt=requestAnimationFrame(st)};rt=requestAnimationFrame(st),this.eventListenersCleaners.push(()=>cancelAnimationFrame(rt))}getModifierValue(et,it=null){const{modifiers:rt}=this.params,nt=rt.indexOf(et);if(nt===-1)return it;let st=rt[nt+1];return typeof it=="number"&&(st=parseFloat(st)),st}hasModifier(et){return this.params.modifiers.includes(et)}}const sine={out:[.39,.575,.565,1],inOut:[.445,.05,.55,.95]},power2={in:[.55,.085,.68,.53],out:[.25,.46,.45,.94],inOut:[.455,.03,.515,.955]},power3={in:[.55,.055,.675,.19],out:[.215,.61,.355,1],inOut:[.645,.045,.355,1]},power4={out:[.165,.84,.44,1]},power5={out:[.23,1,.32,1]};var __getOwnPropDesc$h=Object.getOwnPropertyDescriptor,__decorateClass$h=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$h(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};const backgroundTransitionDuration=.5;let BackgroundTransition=class extends AlpineDirective{constructor(){super(...arguments);Tt(this,"prevColor");Tt(this,"nextColor");Tt(this,"currentColor");Tt(this,"prevData");Tt(this,"nextData");Tt(this,"prevEls",[]);Tt(this,"nextEls",[]);Tt(this,"ready",!1)}onMount(){this.getAdjacentBackgrounds()}onPageReady(){this.connectToAdjacentBackgrounds()}onScroll(et){if(!this.ready)return;let it=window.innerHeight;const rt=this.element.getBoundingClientRect().top/it>.5?this.prevColor:this.nextColor;this.currentColor!==rt&&(et.direction>0&&this.animateBackground(this.currentColor,rt),this.currentColor=rt,this.dispatchColor())}getAdjacentBackgrounds(){let et=this.element.previousElementSibling;this.prevColor=et.getAttribute("x-background");do this.prevEls.push(et),et=et.previousElementSibling;while(et&&!et.hasAttribute("x-background-transition")&&et.getAttribute("x-background")===this.prevColor);let it=this.element.nextElementSibling;this.nextColor=it.getAttribute("x-background");do this.nextEls.push(it),it=it.nextElementSibling;while(it&&!it.hasAttribute("x-background-transition")&&it.getAttribute("x-background")===this.nextColor);if(this.prevEls.length===0||this.nextEls.length===0){console.error("x-background-transition must be used between 2 x-background directives");return}}async connectToAdjacentBackgrounds(){this.prevData=this.prevEls.map(et=>module_default$1.closestDataStack(et)[0]),this.nextData=this.nextEls.map(et=>module_default$1.closestDataStack(et)[0]),this.currentColor=this.prevColor,this.dispatchColor(),this.ready=!0}
11dispatchColor(){this.prevData.forEach((et,it)=>{et.color=this.currentColor}),this.nextData.forEach((et,it)=>{et.color=this.currentColor}),this.currentColor===this.prevColor?(this.prevEls.forEach(et=>{et.classList.remove("inverted-bg")}),this.nextEls.forEach(et=>{et.classList.add("inverted-bg")})):(this.prevEls.forEach(et=>{et.classList.add("inverted-bg")}),this.nextEls.forEach(et=>{et.classList.remove("inverted-bg")}))}async animateBackground(et,it){const st=new Color(it).getHSL({}).l>.5?power2.in:power2.out;await animate(document.body,{backgroundColor:[et,it]},{duration:backgroundTransitionDuration,easing:st}).finished,document.body.style.backgroundColor=""}onUnmount(){this.prevEls=null,this.nextEls=null,this.prevData=null,this.nextData=null,this.prevColor=null,this.nextColor=null,this.currentColor=null}};BackgroundTransition=__decorateClass$h([needsFeature("backgroundTransition")],BackgroundTransition);const __vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,backgroundTransitionDuration,get default(){return BackgroundTransition}},Symbol.toStringTag,{value:"Module"})),delay=tt=>new Promise(et=>setTimeout(et,tt)),nextTick=()=>new Promise(tt=>requestAnimationFrame(tt)),rand=(tt,et)=>Math.random()*(et-tt)+tt;function getColorLuminance(tt){return new Color(tt).getHSL({}).l}const darkTransitionDuration=.5,lightTransitionDuration=1,me=class me extends AlpineDirective{constructor(){super(...arguments);Tt(this,"data");Tt(this,"square");Tt(this,"observer")}static get wrapper(){return this._wrapper||(this._wrapper=document.querySelector("#backgrounds")),this._wrapper}async onMount(){this.square=document.createElement("div"),this.square.classList.add("background-square"),me.wrapper.appendChild(this.square),this.element.getAttribute("x-data")||this.element.setAttribute("x-data","{}"),this.addEventListenerTo(window,"load-more",async()=>{await nextTick(),await nextTick(),this.onResize()}),this.element.querySelectorAll("img").forEach(at=>{this.addEventListenerTo(at,"load",()=>{this.onResize()})}),await nextTick(),this.data=module_default$1.closestDataStack(this.element)[0];const{effect:it,evaluateLater:rt}=this.utilities;let nt,st=this.params.expression;nt=at=>at(st),st.includes("#")?nt=at=>at(st):nt=rt(this.params.expression="(() => {try {return "+this.params.expression+';} catch (e) {return "'+this.params.expression.replace(/"/g,'\\"')+'"}})()'),it(()=>{nt(at=>{this.data.color=at})}),it(async()=>{await this.updateColor()}),this.onResize(),this.observer=new IntersectionObserver(()=>{this.onResize()}),this.observer.observe(this.square)}async onPageReady(){setTimeout(()=>{this.onResize()},200)}onResize(){if(!this.element)return;const it=this.element.getBoundingClientRect();this.square.style.width=`${it.width}px`,this.square.style.height=`${it.height}px`,this.square.style.top=`${it.top+window.scrollY}px`,this.square.style.left=`${it.left}px`}async updateColor(){this.element.style.setProperty("--background-color",this.data.color),this.element.classList.remove("text-transparent");const it=getColorLuminance(this.data.color)>.5;this.element.style.setProperty("--foreground-color",it?"#131313":"white"),this.element.style.setProperty("--filter-fg",it?"invert(1)":"none"),this.element.dataset.navColor=it?"dark":"light";const rt=it?lightTransitionDuration:darkTransitionDuration,nt=.2,st=50,at=20,ot=Math.abs(getLenis().velocity),lt=st-at,ht=(Math.max(at,Math.min(ot,st))-at)/lt,dt=nt+(rt-nt)*(1-ht);this.square.style.transition="background-color "+dt+"s ease",this.square.style.backgroundColor=this.data.color}onUnmount(){this.square.remove(),this.square=null,this.data=null,this.observer.disconnect(),this.observer=null}};Tt(me,"_wrapper");let Background=me;const __vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:Background},Symbol.toStringTag,{value:"Module"}));function morph(tt,et,it){monkeyPatchDomSetAttributeToAllowAtSymbols();let rt=createMorphContext(it),nt=typeof et=="string"?createElement(et):et;return window.Alpine&&window.Alpine.closestDataStack&&!tt._x_dataStack&&(nt._x_dataStack=window.Alpine.closestDataStack(tt),nt._x_dataStack&&window.Alpine.cloneNode(tt,nt)),rt.patch(tt,nt),tt}function morphBetween(tt,et,it,rt={}
vendor: 4,150 bytes, line 11
11){monkeyPatchDomSetAttributeToAllowAtSymbols();let nt=createMorphContext(rt),st=tt.parentNode,at=new Block(tt,et),ot=typeof it=="string"?(()=>{let dt=document.createElement("div");return dt.insertAdjacentHTML("beforeend",it),dt})():it,lt=document.createComment("[morph-start]"),ct=document.createComment("[morph-end]");ot.insertBefore(lt,ot.firstChild),ot.appendChild(ct);let ht=new Block(lt,ct);window.Alpine&&window.Alpine.closestDataStack&&(ot._x_dataStack=window.Alpine.closestDataStack(st),ot._x_dataStack&&window.Alpine.cloneNode(st,ot)),nt.patchChildren(at,ht)}function createMorphContext(tt={}){let et=nt=>nt.getAttribute("key"),it=()=>{},rt={key:tt.key||et,lookahead:tt.lookahead||!1,updating:tt.updating||it,updated:tt.updated||it,removing:tt.removing||it,removed:tt.removed||it,adding:tt.adding||it,added:tt.added||it};return rt.patch=function(nt,st){if(rt.differentElementNamesTypesOrKeys(nt,st))return rt.swapElements(nt,st);let at=!1,ot=!1,lt=ct=>rt.skipUntilCondition=ct;if(!shouldSkipChildren(rt.updating,()=>ot=!0,lt,nt,st,()=>at=!0)){if(nt.nodeType===1&&window.Alpine&&(window.Alpine.cloneNode(nt,st),nt._x_teleport&&st._x_teleport&&rt.patch(nt._x_teleport,st._x_teleport)),textOrComment(st)){rt.patchNodeValue(nt,st),rt.updated(nt,st);return}at||rt.patchAttributes(nt,st),rt.updated(nt,st),ot||rt.patchChildren(nt,st)}},rt.differentElementNamesTypesOrKeys=function(nt,st){return nt.nodeType!=st.nodeType||nt.nodeName!=st.nodeName||rt.getKey(nt)!=rt.getKey(st)},rt.swapElements=function(nt,st){if(shouldSkip(rt.removing,nt))return;let at=st.cloneNode(!0);shouldSkip(rt.adding,at)||(nt.replaceWith(at),rt.removed(nt),rt.added(at))},rt.patchNodeValue=function(nt,st){let at=st.nodeValue;nt.nodeValue!==at&&(nt.nodeValue=at)},rt.patchAttributes=function(nt,st){if(nt._x_transitioning||nt._x_isShown&&!st._x_isShown||!nt._x_isShown&&st._x_isShown)return;let at=Array.from(nt.attributes),ot=Array.from(st.attributes);for(let lt=at.length-1;lt>=0;lt--){let ct=at[lt].name;st.hasAttribute(ct)||nt.removeAttribute(ct)}for(let lt=ot.length-1;lt>=0;lt--){let ct=ot[lt].name,ht=ot[lt].value;nt.getAttribute(ct)!==ht&&nt.setAttribute(ct,ht)}},rt.patchChildren=function(nt,st){let at=rt.keyToMap(nt.children),ot={},lt=getFirstNode(st),ct=getFirstNode(nt);for(;lt;){seedingMatchingId(lt,ct);let dt=rt.getKey(lt),ut=rt.getKey(ct);if(rt.skipUntilCondition){let pt=!ct||rt.skipUntilCondition(ct),yt=!lt||rt.skipUntilCondition(lt);if(pt&&yt)rt.skipUntilCondition=null;else{pt||(ct=ct&&getNextSibling(nt,ct)),yt||(lt=lt&&getNextSibling(st,lt));continue}}if(!ct)if(dt&&ot[dt]){let pt=ot[dt];nt.appendChild(pt),ct=pt,ut=rt.getKey(ct)}else{if(!shouldSkip(rt.adding,lt)){let pt=lt.cloneNode(!0);nt.appendChild(pt),rt.added(pt)}lt=getNextSibling(st,lt);continue}let gt=pt=>pt&&pt.nodeType===8&&pt.textContent==="[if BLOCK]><![endif]",mt=pt=>pt&&pt.nodeType===8&&pt.textContent==="[if ENDBLOCK]><![endif]";if(gt(lt)&&gt(ct)){let pt=0,yt=ct;for(;ct;){let xt=getNextSibling(nt,ct);if(gt(xt))pt++;else if(mt(xt)&&pt>0)pt--;else if(mt(xt)&&pt===0){ct=xt;break}ct=xt}let vt=ct;pt=0;let _t=lt;for(;lt;){let xt=getNextSibling(st,lt);if(gt(xt))pt++;else if(mt(xt)&&pt>0)pt--;else if(mt(xt)&&pt===0){lt=xt;break}lt=xt}let bt=lt,St=new Block(yt,vt),wt=new Block(_t,bt);rt.patchChildren(St,wt);continue}if(ct.nodeType===1&&rt.lookahead&&!ct.isEqualNode(lt)){let pt=getNextSibling(st,lt),yt=!1;for(;!yt&&pt;)pt.nodeType===1&&ct.isEqualNode(pt)&&(yt=!0,ct=rt.addNodeBefore(nt,lt,ct),ut=rt.getKey(ct)),pt=getNextSibling(st,pt)}if(dt!==ut){if(!dt&&ut){ot[ut]=ct,ct=rt.addNodeBefore(nt,lt,ct),ot[ut].remove(),ct=getNextSibling(nt,ct),lt=getNextSibling(st,lt);continue}if(dt&&!ut&&at[dt]&&(ct.replaceWith(at[dt]),ct=at[dt],ut=rt.getKey(ct)),dt&&ut){let pt=at[dt];if(pt)ot[ut]=ct,ct.replaceWith(pt),ct=pt,ut=rt.getKey(ct);else{ot[ut]=ct,ct=rt.addNodeBefore(nt,lt,ct),ot[ut].remove(),ct=getNextSibling(nt,ct),lt=getNextSibling(st,lt);continue}}}let ft=ct&&getNextSibling(nt,ct);rt.patch(ct,lt),lt=lt&&getNextSibling(st,lt),ct=ft}let ht=[];for(;ct;)shouldSkip(rt.removing,ct)||ht.push(ct),ct=getNextSibling(nt,ct);for(;ht.length;){let dt=ht.shift();dt.remove(),rt.removed(dt)}}
vendor: 1,997 bytes, line 11
11,rt.getKey=function(nt){return nt&&nt.nodeType===1&&rt.key(nt)},rt.keyToMap=function(nt){let st={};for(let at of nt){let ot=rt.getKey(at);ot&&(st[ot]=at)}return st},rt.addNodeBefore=function(nt,st,at){if(!shouldSkip(rt.adding,st)){let ot=st.cloneNode(!0);return nt.insertBefore(ot,at),rt.added(ot),ot}return st},rt}morph.step=()=>{};morph.log=()=>{};function shouldSkip(tt,...et){let it=!1;return tt(...et,()=>it=!0),it}function shouldSkipChildren(tt,et,it,...rt){let nt=!1;return tt(...rt,()=>nt=!0,et,it),nt}var patched=!1;function createElement(tt){const et=document.createElement("template");return et.innerHTML=tt,et.content.firstElementChild}function textOrComment(tt){return tt.nodeType===3||tt.nodeType===8}var Block=class{constructor(tt,et){this.startComment=tt,this.endComment=et}get children(){let tt=[],et=this.startComment.nextSibling;for(;et&&et!==this.endComment;)tt.push(et),et=et.nextSibling;return tt}appendChild(tt){this.endComment.before(tt)}get firstChild(){let tt=this.startComment.nextSibling;if(tt!==this.endComment)return tt}nextNode(tt){let et=tt.nextSibling;if(et!==this.endComment)return et}insertBefore(tt,et){return et.before(tt),tt}};function getFirstNode(tt){return tt.firstChild}function getNextSibling(tt,et){let it;return tt instanceof Block?it=tt.nextNode(et):it=et.nextSibling,it}function monkeyPatchDomSetAttributeToAllowAtSymbols(){if(patched)return;patched=!0;let tt=Element.prototype.setAttribute,et=document.createElement("div");Element.prototype.setAttribute=function(rt,nt){if(!rt.includes("@"))return tt.call(this,rt,nt);et.innerHTML=`<span ${rt}="${nt}"></span>`;let st=et.firstElementChild.getAttributeNode(rt);et.firstElementChild.removeAttributeNode(st),this.setAttributeNode(st)}}function seedingMatchingId(tt,et){let it=et&&et._x_bindings&&et._x_bindings.id;it&&tt.setAttribute&&(tt.setAttribute("id",it),tt.id=it)}function src_default(tt){tt.morph=morph,tt.morphBetween=morphBetween}var module_default=src_default;function t(tt,et){for(var it=0;
vendor: 7,801 bytes, line 11
11it<et.length;it++){var rt=et[it];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(tt,typeof(nt=function(st,at){if(typeof st!="object"||st===null)return st;var ot=st[Symbol.toPrimitive];if(ot!==void 0){var lt=ot.call(st,"string");if(typeof lt!="object")return lt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(st)}(rt.key))=="symbol"?nt:String(nt),rt)}var nt}function n$6(tt,et,it){return et&&t(tt.prototype,et),Object.defineProperty(tt,"prototype",{writable:!1}),tt}function r(){return r=Object.assign?Object.assign.bind():function(tt){for(var et=1;et<arguments.length;et++){var it=arguments[et];for(var rt in it)Object.prototype.hasOwnProperty.call(it,rt)&&(tt[rt]=it[rt])}return tt},r.apply(this,arguments)}function i$4(tt,et){tt.prototype=Object.create(et.prototype),tt.prototype.constructor=tt,o(tt,et)}function e(tt){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},e(tt)}function o(tt,et){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(it,rt){return it.__proto__=rt,it},o(tt,et)}function u$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function s$4(tt,et,it){return s$4=u$1()?Reflect.construct.bind():function(rt,nt,st){var at=[null];at.push.apply(at,nt);var ot=new(Function.bind.apply(rt,at));return st&&o(ot,st.prototype),ot},s$4.apply(null,arguments)}function f$1(tt){var et=typeof Map=="function"?new Map:void 0;return f$1=function(it){if(it===null||Function.toString.call(it).indexOf("[native code]")===-1)return it;if(typeof it!="function")throw new TypeError("Super expression must either be null or a function");if(et!==void 0){if(et.has(it))return et.get(it);et.set(it,rt)}function rt(){return s$4(it,arguments,e(this).constructor)}return rt.prototype=Object.create(it.prototype,{constructor:{value:rt,enumerable:!1,writable:!0,configurable:!0}}),o(rt,it)},f$1(tt)}function c$1(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}var a$2,h=function(){this.before=void 0,this.beforeLeave=void 0,this.leave=void 0,this.afterLeave=void 0,this.beforeEnter=void 0,this.enter=void 0,this.afterEnter=void 0,this.after=void 0};(function(tt){tt[tt.off=0]="off",tt[tt.error=1]="error",tt[tt.warning=2]="warning",tt[tt.info=3]="info",tt[tt.debug=4]="debug"})(a$2||(a$2={}));var v$1=a$2.off,d$1=function(){function tt(it){this.t=void 0,this.t=it}tt.getLevel=function(){return v$1},tt.setLevel=function(it){return v$1=a$2[it]};var et=tt.prototype;return et.error=function(){this.i(console.error,a$2.error,[].slice.call(arguments))},et.warn=function(){this.i(console.warn,a$2.warning,[].slice.call(arguments))},et.info=function(){this.i(console.info,a$2.info,[].slice.call(arguments))},et.debug=function(){this.i(console.log,a$2.debug,[].slice.call(arguments))},et.i=function(it,rt,nt){rt<=tt.getLevel()&&it.apply(console,["["+this.t+"] "].concat(nt))},tt}();function l(tt){return tt.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function p$1(tt){return tt&&tt.sensitive?"":"i"}var m$1={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},w$1=new(function(){function tt(){this.o=m$1,this.u=void 0,this.h={after:null,before:null,parent:null}}var et=tt.prototype;return et.toString=function(it){return it.outerHTML},et.toDocument=function(it){return this.u||(this.u=new DOMParser),this.u.parseFromString(it,"text/html")},et.toElement=function(it){var rt=document.createElement("div");return rt.innerHTML=it,rt},et.getHtml=function(it){return it===void 0&&(it=document),this.toString(it.documentElement)},et.getWrapper=function(it){return it===void 0&&(it=document),it.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},et.getContainer=function(it){return it===void 0&&(it=document),it.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},et.removeContainer=function(it){document.body.contains(it)&&(this.v(it),it.parentNode.removeChild(it))},et.addContainer=function(it,rt){var nt=this.getContainer()||this.h.before;nt?this.l(it,nt):this.h.after?this.h.after.parentNode.insertBefore(it,this.h.after):this.h.parent?this.h.parent.appendChild(it):rt.appendChild(it)},et.getSibling=function(){return this.h},et.getNamespace=function(it){it===void 0&&(it=document);var rt=it.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return rt?rt.getAttribute(this.o.prefix+"-"+this.o.namespace):null},et.getHref=function(it){if(it.tagName&&it.tagName.toLowerCase()==="a"){if(typeof it.href=="string")return it.href;var rt=it.getAttribute("href")||it.getAttribute("xlink:href");if(rt)return this.resolveUrl(rt.baseVal||rt)}return null},et.resolveUrl=function(){var it=[].slice.call(arguments).length;if(it===0)throw new Error("resolveUrl requires at least one argument; got none.");var rt=document.createElement("base");if(rt.href=arguments[0],it===1)return rt.href;var nt=document.getElementsByTagName("head")[0];nt.insertBefore(rt,nt.firstChild);for(var st,at=document.createElement("a"),ot=1;ot<it;ot++)at.href=arguments[ot],rt.href=st=at.href;return nt.removeChild(rt),st},et.l=function(it,rt){rt.parentNode.insertBefore(it,rt.nextSibling)},et.v=function(it){return this.h={after:it.nextElementSibling,before:it.previousElementSibling,parent:it.parentElement},this.h},tt}()),b$1=function(){function tt(){this.p=void 0,this.m=[],this.P=-1}var et=tt.prototype;return et.init=function(it,rt){this.p="barba";var nt={data:{},ns:rt,scroll:{x:window.scrollX,y:window.scrollY},url:it};this.P=0,this.m.push(nt);var st={from:this.p,index:this.P,states:[].concat(this.m)};window.history&&window.history.replaceState(st,"",it)},et.change=function(it,rt,nt){if(nt&&nt.state){var st=nt.state,at=st.index;rt=this.g(this.P-at),this.replace(st.states),this.P=at}else this.add(it,rt);return rt},et.add=function(it,rt,nt,st){var at=nt??this.R(rt),ot={data:st??{},ns:"tmp",scroll:{x:window.scrollX,y:window.scrollY},url:it};switch(at){case"push":this.P=this.size,this.m.push(ot);break;case"replace":this.set(this.P,ot)}var lt={from:this.p,index:this.P,states:[].concat(this.m)};switch(at){case"push":window.history&&window.history.pushState(lt,"",it);break;case"replace":window.history&&window.history.replaceState(lt,"",it)}},et.store=function(it,rt){var nt=rt||this.P,st=this.get(nt);st.data=r({},st.data,it),this.set(nt,st);var at={from:this.p,index:this.P,states:[].concat(this.m)};window.history.replaceState(at,"")},et.update=function(it,rt){var nt=rt||this.P,st=r({},this.get(nt),it);this.set(nt,st)},et.remove=function(it){it?this.m.splice(it,1):this.m.pop(),this.P--},et.clear=function(){this.m=[],this.P=-1},et.replace=function(it){this.m=it},et.get=function(it){return this.m[it]},et.set=function(it,rt){return this.m[it]=rt},et.R=function(it){var rt="push",nt=it,st=m$1.prefix+"-"+m$1.history;return nt.hasAttribute&&nt.hasAttribute(st)&&(rt=nt.getAttribute(st)),rt},et.g=function(it){return Math.abs(it)>1?it>0?"forward":"back":it===0?"popstate":it>0?"back":"forward"},n$6(tt,[{key:"current",get:function(){return this.m[this.P]}},{key:"previous",get:function(){return this.P<1?null:this.m[this.P-1]}},{key:"size",get:function(){return this.m.length}}]),tt}(),y=new b$1,P$1=function(tt,et){try{var it=function(){if(!et.next.html)return Promise.resolve(tt).then(function(rt){var nt=et.next;if(rt){var st=w$1.toElement(rt.html);nt.namespace=w$1.getNamespace(st),nt.container=w$1.getContainer(st),nt.url=rt.url,nt.html=rt.html,y.update({ns:nt.namespace});var at=w$1.toDocument(rt.html);document.title=at.title}}
11)}();return Promise.resolve(it&&it.then?it.then(function(){}):void 0)}catch(rt){return Promise.reject(rt)}},E$1=function tt(et,it,rt){return et instanceof RegExp?function(nt,st){if(!st)return nt;for(var at=/\((?:\?<(.*?)>)?(?!\?)/g,ot=0,lt=at.exec(nt.source);lt;)st.push({name:lt[1]||ot++,prefix:"",suffix:"",modifier:"",pattern:""}),lt=at.exec(nt.source);return nt}(et,it):Array.isArray(et)?function(nt,st,at){var ot=nt.map(function(lt){return tt(lt,st,at).source});return new RegExp("(?:".concat(ot.join("|"),")"),p$1(at))}(et,it,rt):function(nt,st,at){return function(ot,lt,ct){ct===void 0&&(ct={});for(var ht=ct.strict,dt=ht!==void 0&&ht,ut=ct.start,gt=ut===void 0||ut,mt=ct.end,ft=mt===void 0||mt,pt=ct.encode,yt=pt===void 0?function($t){return $t}:pt,vt=ct.delimiter,_t=vt===void 0?"/#?":vt,bt=ct.endsWith,St="[".concat(l(bt===void 0?"":bt),"]|$"),wt="[".concat(l(_t),"]"),xt=gt?"^":"",Pt=0,kt=ot;Pt<kt.length;Pt++){var At=kt[Pt];if(typeof At=="string")xt+=l(yt(At));else{var Et=l(yt(At.prefix)),Ft=l(yt(At.suffix));if(At.pattern)if(lt&&lt.push(At),Et||Ft)if(At.modifier==="+"||At.modifier==="*"){var It=At.modifier==="*"?"?":"";xt+="(?:".concat(Et,"((?:").concat(At.pattern,")(?:").concat(Ft).concat(Et,"(?:").concat(At.pattern,"))*)").concat(Ft,")").concat(It)}else xt+="(?:".concat(Et,"(").concat(At.pattern,")").concat(Ft,")").concat(At.modifier);else xt+=At.modifier==="+"||At.modifier==="*"?"((?:".concat(At.pattern,")").concat(At.modifier,")"):"(".concat(At.pattern,")").concat(At.modifier);else xt+="(?:".concat(Et).concat(Ft,")").concat(At.modifier)}}if(ft)dt||(xt+="".concat(wt,"?")),xt+=ct.endsWith?"(?=".concat(St,")"):"$";else{var Mt=ot[ot.length-1],Lt=typeof Mt=="string"?wt.indexOf(Mt[Mt.length-1])>-1:Mt===void 0;dt||(xt+="(?:".concat(wt,"(?=").concat(St,"))?")),Lt||(xt+="(?=".concat(wt,"|").concat(St,")"))}return new RegExp(xt,p$1(ct))}(function(ot,lt){lt===void 0&&(lt={});for(var ct=function(Ft){for(var It=[],Mt=0;Mt<Ft.length;){var Lt=Ft[Mt];if(Lt!=="*"&&Lt!=="+"&&Lt!=="?")if(Lt!=="\\")if(Lt!=="{")if(Lt!=="}")if(Lt!==":")if(Lt!=="(")It.push({type:"CHAR",index:Mt,value:Ft[Mt++]});else{var $t=1,Vt="";if(Ft[Dt=Mt+1]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(Dt));for(;Dt<Ft.length;)if(Ft[Dt]!=="\\"){if(Ft[Dt]===")"){if(--$t==0){Dt++;break}}else if(Ft[Dt]==="("&&($t++,Ft[Dt+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(Dt));Vt+=Ft[Dt++]}else Vt+=Ft[Dt++]+Ft[Dt++];if($t)throw new TypeError("Unbalanced pattern at ".concat(Mt));if(!Vt)throw new TypeError("Missing pattern at ".concat(Mt));It.push({type:"PATTERN",index:Mt,value:Vt}),Mt=Dt}else{for(var Ct="",Dt=Mt+1;Dt<Ft.length;){var Rt=Ft.charCodeAt(Dt);if(!(Rt>=48&&Rt<=57||Rt>=65&&Rt<=90||Rt>=97&&Rt<=122||Rt===95))break;Ct+=Ft[Dt++]}if(!Ct)throw new TypeError("Missing parameter name at ".concat(Mt));It.push({type:"NAME",index:Mt,value:Ct}),Mt=Dt}else It.push({type:"CLOSE",index:Mt,value:Ft[Mt++]});else It.push({type:"OPEN",index:Mt,value:Ft[Mt++]});else It.push({type:"ESCAPED_CHAR",index:Mt++,value:Ft[Mt++]});else It.push({type:"MODIFIER",index:Mt,value:Ft[Mt++]})}return It.push({type:"END",index:Mt,value:""}),It}(ot),ht=lt.prefixes,dt=ht===void 0?"./":ht,ut="[^".concat(l(lt.delimiter||"/#?"),"]+?"),gt=[],mt=0,ft=0,pt="",yt=function(Ft){if(ft<ct.length&&ct[ft].type===Ft)return ct[ft++].value},vt=function(Ft){var It=yt(Ft);if(It!==void 0)return It;var Mt=ct[ft],Lt=Mt.index;throw new TypeError("Unexpected ".concat(Mt.type," at ").concat(Lt,", expected ").concat(Ft))},_t=function(){for(var Ft,It="";Ft=yt("CHAR")||yt("ESCAPED_CHAR");)It+=Ft;return It};ft<ct.length;){var bt=yt("CHAR"),St=yt("NAME"),wt=yt("PATTERN");if(St||wt)dt.indexOf(Pt=bt||"")===-1&&(pt+=Pt,Pt=""),pt&&(gt.push(pt),pt=""),gt.push({name:St||mt++,prefix:Pt,suffix:"",pattern:wt||ut,modifier:yt("MODIFIER")||""});else{var xt=bt||yt("ESCAPED_CHAR");if(xt)pt+=xt;else if(pt&&(gt.push(pt),pt=""),yt("OPEN")){var Pt=_t(),kt=yt("NAME")||"",At=yt("PATTERN")||"",Et=_t();vt("CLOSE"),gt.push({name:kt||(At?mt++:""),pattern:kt&&!At?ut:At,prefix:Pt,suffix:Et,modifier:yt("MODIFIER")||""})}else vt("END")}
vendor: 5,916 bytes, line 11
11}return gt}(nt,at),st,at)}(et,it,rt)},g$1={__proto__:null,update:P$1,nextTick:function(){return new Promise(function(tt){window.requestAnimationFrame(tt)})},pathToRegexp:E$1},x$1=function(){return window.location.origin},R=function(tt){return tt===void 0&&(tt=window.location.href),k$1(tt).port},k$1=function(tt){var et,it=tt.match(/:\d+/);if(it===null)/^http/.test(tt)&&(et=80),/^https/.test(tt)&&(et=443);else{var rt=it[0].substring(1);et=parseInt(rt,10)}var nt,st=tt.replace(x$1(),""),at={},ot=st.indexOf("#");ot>=0&&(nt=st.slice(ot+1),st=st.slice(0,ot));var lt=st.indexOf("?");return lt>=0&&(at=O(st.slice(lt+1)),st=st.slice(0,lt)),{hash:nt,path:st,port:et,query:at}},O=function(tt){return tt.split("&").reduce(function(et,it){var rt=it.split("=");return et[rt[0]]=rt[1],et},{})},T$1=function(tt){return tt===void 0&&(tt=window.location.href),tt.replace(/(\/#.*|\/|#.*)$/,"")},A$1={__proto__:null,getHref:function(){return window.location.href},getAbsoluteHref:function(tt,et){return et===void 0&&(et=document.baseURI),new URL(tt,et).href},getOrigin:x$1,getPort:R,getPath:function(tt){return tt===void 0&&(tt=window.location.href),k$1(tt).path},getQuery:function(tt,et){return et===void 0&&(et=!1),et?JSON.stringify(k$1(tt).query):k$1(tt).query},getHash:function(tt){return k$1(tt).hash},parse:k$1,parseQuery:O,clean:T$1};function j(tt,et,it,rt,nt){return et===void 0&&(et=2e3),new Promise(function(st,at){var ot=new XMLHttpRequest;ot.onreadystatechange=function(){if(ot.readyState===XMLHttpRequest.DONE){if(ot.status===200){var lt=ot.responseURL!==""&&ot.responseURL!==tt?ot.responseURL:tt;st({html:ot.responseText,url:r({href:lt},k$1(lt))}),rt.update(tt,{status:"fulfilled",target:lt})}else if(ot.status){var ct={status:ot.status,statusText:ot.statusText};it(tt,ct),at(ct),rt.update(tt,{status:"rejected"})}}},ot.ontimeout=function(){var lt=new Error("Timeout error ["+et+"]");it(tt,lt),at(lt),rt.update(tt,{status:"rejected"})},ot.onerror=function(){var lt=new Error("Fetch error");it(tt,lt),at(lt),rt.update(tt,{status:"rejected"})},ot.open("GET",tt),ot.timeout=et,ot.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),ot.setRequestHeader("x-barba","yes"),nt.all().forEach(function(lt,ct){ot.setRequestHeader(ct,lt)}),ot.send()})}function M$1(tt){return!!tt&&(typeof tt=="object"||typeof tt=="function")&&typeof tt.then=="function"}function N$1(tt,et){return et===void 0&&(et={}),function(){var it=arguments,rt=!1,nt=new Promise(function(st,at){et.async=function(){return rt=!0,function(lt,ct){lt?at(lt):st(ct)}};var ot=tt.apply(et,[].slice.call(it));rt||(M$1(ot)?ot.then(st,at):st(ot))});return nt}}var S$2=new(function(tt){function et(){var rt;return(rt=tt.call(this)||this).logger=new d$1("@barba/core"),rt.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],rt.registered=new Map,rt.init(),rt}i$4(et,tt);var it=et.prototype;return it.init=function(){var rt=this;this.registered.clear(),this.all.forEach(function(nt){rt[nt]||(rt[nt]=function(st,at){rt.registered.has(nt)||rt.registered.set(nt,new Set),rt.registered.get(nt).add({ctx:at||{},fn:st})})})},it.do=function(rt){var nt=arguments,st=this;if(this.registered.has(rt)){var at=Promise.resolve();return this.registered.get(rt).forEach(function(ot){at=at.then(function(){return N$1(ot.fn,ot.ctx).apply(void 0,[].slice.call(nt,1))})}),at.catch(function(ot){st.logger.debug("Hook error ["+rt+"]"),st.logger.error(ot)})}return Promise.resolve()},it.clear=function(){var rt=this;this.all.forEach(function(nt){delete rt[nt]}),this.init()},it.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var rt=[];this.registered.forEach(function(nt,st){return rt.push(st)}),this.logger.info("Registered hooks: "+rt.join(","))},et}(h)),C$1=function(){function tt(et){if(this.k=void 0,this.O=[],typeof et=="boolean")this.k=et;else{var it=Array.isArray(et)?et:[et];this.O=it.map(function(rt){return E$1(rt)})}}return tt.prototype.checkHref=function(et){if(typeof this.k=="boolean")return this.k;var it=k$1(et).path;return this.O.some(function(rt){return rt.exec(it)!==null})},tt}(),L$1=function(tt){function et(rt){var nt;return(nt=tt.call(this,rt)||this).T=new Map,nt}i$4(et,tt);var it=et.prototype;return it.set=function(rt,nt,st,at,ot){return this.T.set(rt,{action:st,request:nt,status:at,target:ot??rt}),{action:st,request:nt,status:at,target:ot}},it.get=function(rt){return this.T.get(rt)},it.getRequest=function(rt){return this.T.get(rt).request},it.getAction=function(rt){return this.T.get(rt).action},it.getStatus=function(rt){return this.T.get(rt).status},it.getTarget=function(rt){return this.T.get(rt).target},it.has=function(rt){return!this.checkHref(rt)&&this.T.has(rt)},it.delete=function(rt){return this.T.delete(rt)},it.update=function(rt,nt){var st=r({},this.T.get(rt),nt);return this.T.set(rt,st),st},et}(C$1),H$1=function(){function tt(){this.A=new Map}var et=tt.prototype;return et.set=function(it,rt){return this.A.set(it,rt),{name:rt}},et.get=function(it){return this.A.get(it)},et.all=function(){return this.A},et.has=function(it){return this.A.has(it)},et.delete=function(it){return this.A.delete(it)},et.clear=function(){return this.A.clear()},tt}(),_$1=function(){return!window.history.pushState},D=function(tt){return!tt.el||!tt.href},B=function(tt){var et=tt.event;return et.which>1||et.metaKey||et.ctrlKey||et.shiftKey||et.altKey},q=function(tt){var et=tt.el;return et.hasAttribute("target")&&et.target==="_blank"},F=function(tt){var et=tt.el;return et.protocol!==void 0&&window.location.protocol!==et.protocol||et.hostname!==void 0&&window.location.hostname!==et.hostname},I$1=function(tt){var et=tt.el;return et.port!==void 0&&R()!==R(et.href)},U=function(tt){var et=tt.el;return et.getAttribute&&typeof et.getAttribute("download")=="str
11ing"},$$1=function(tt){return tt.el.hasAttribute(m$1.prefix+"-"+m$1.prevent)},Q=function(tt){return!!tt.el.closest("["+m$1.prefix+"-"+m$1.prevent+'="all"]')},X=function(tt){var et=tt.href;return T$1(et)===T$1()&&R(et)===R()},z$1=function(tt){function et(rt){var nt;return(nt=tt.call(this,rt)||this).suite=[],nt.tests=new Map,nt.init(),nt}i$4(et,tt);var it=et.prototype;return it.init=function(){this.add("pushState",_$1),this.add("exists",D),this.add("newTab",B),this.add("blank",q),this.add("corsDomain",F),this.add("corsPort",I$1),this.add("download",U),this.add("preventSelf",$$1),this.add("preventAll",Q),this.add("sameUrl",X,!1)},it.add=function(rt,nt,st){st===void 0&&(st=!0),this.tests.set(rt,nt),st&&this.suite.push(rt)},it.run=function(rt,nt,st,at){return this.tests.get(rt)({el:nt,event:st,href:at})},it.checkLink=function(rt,nt,st){var at=this;return this.suite.some(function(ot){return at.run(ot,rt,nt,st)})},et}(C$1),G=function(tt){function et(it,rt){var nt;return rt===void 0&&(rt="Barba error"),(nt=tt.call.apply(tt,[this].concat([].slice.call(arguments,2)))||this).error=void 0,nt.label=void 0,nt.error=it,nt.label=rt,Error.captureStackTrace&&Error.captureStackTrace(c$1(nt),et),nt.name="BarbaError",nt}return i$4(et,tt),et}(f$1(Error)),J=function(){function tt(it){it===void 0&&(it=[]),this.logger=new d$1("@barba/core"),this.all=[],this.page=[],this.once=[],this.j=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],it&&(this.all=this.all.concat(it)),this.update()}var et=tt.prototype;return et.add=function(it,rt){it==="rule"?this.j.splice(rt.position||0,0,rt.value):this.all.push(rt),this.update()},et.resolve=function(it,rt){var nt=this;rt===void 0&&(rt={});var st=rt.once?this.once:this.page;st=st.filter(rt.self?function(ut){return ut.name&&ut.name==="self"}:function(ut){return!ut.name||ut.name!=="self"});var at=new Map,ot=st.find(function(ut){var gt=!0,mt={};return rt.self&&ut.name==="self"?(at.set(ut,mt),!0):(nt.j.reverse().forEach(function(ft){gt&&(gt=nt.M(ut,ft,it,mt),ut.from&&ut.to&&(gt=nt.M(ut,ft,it,mt,"from")&&nt.M(ut,ft,it,mt,"to")),ut.from&&!ut.to&&(gt=nt.M(ut,ft,it,mt,"from")),!ut.from&&ut.to&&(gt=nt.M(ut,ft,it,mt,"to")))}),at.set(ut,mt),gt)}),lt=at.get(ot),ct=[];if(ct.push(rt.once?"once":"page"),rt.self&&ct.push("self"),lt){var ht,dt=[ot];Object.keys(lt).length>0&&dt.push(lt),(ht=this.logger).info.apply(ht,["Transition found ["+ct.join(",")+"]"].concat(dt))}else this.logger.info("No transition found ["+ct.join(",")+"]");return ot},et.update=function(){var it=this;this.all=this.all.map(function(rt){return it.N(rt)}).sort(function(rt,nt){return rt.priority-nt.priority}).reverse().map(function(rt){return delete rt.priority,rt}),this.page=this.all.filter(function(rt){return rt.leave!==void 0||rt.enter!==void 0}),this.once=this.all.filter(function(rt){return rt.once!==void 0})},et.M=function(it,rt,nt,st,at){var ot=!0,lt=!1,ct=it,ht=rt.name,dt=ht,ut=ht,gt=ht,mt=at?ct[at]:ct,ft=at==="to"?nt.next:nt.current;if(at?mt&&mt[ht]:mt[ht]){switch(rt.type){case"strings":default:var pt=Array.isArray(mt[dt])?mt[dt]:[mt[dt]];ft[dt]&&pt.indexOf(ft[dt])!==-1&&(lt=!0),pt.indexOf(ft[dt])===-1&&(ot=!1);break;case"object":var yt=Array.isArray(mt[ut])?mt[ut]:[mt[ut]];ft[ut]?(ft[ut].name&&yt.indexOf(ft[ut].name)!==-1&&(lt=!0),yt.indexOf(ft[ut].name)===-1&&(ot=!1)):ot=!1;break;case"function":mt[gt](nt)?lt=!0:ot=!1}lt&&(at?(st[at]=st[at]||{},st[at][ht]=ct[at][ht]):st[ht]=ct[ht])}return ot},et.S=function(it,rt,nt){var st=0;return(it[rt]||it.from&&it.from[rt]||it.to&&it.to[rt])&&(st+=Math.pow(10,nt),it.from&&it.from[rt]&&(st+=1),it.to&&it.to[rt]&&(st+=2)),st},et.N=function(it){var rt=this;it.priority=0;var nt=0;return this.j.forEach(function(st,at){nt+=rt.S(it,st.name,at+1)}),it.priority=nt,it},tt}();function W(tt,et){try{var it=tt()}catch(rt){return et(rt)}return it&&it.then?it.then(void 0,et):it}var K=function(){function tt(it){it===void 0&&(it=[]),this.logger=new d$1("@barba/core"),this.store=void 0,this.C=!1,this.store=new J(it)}var et=tt.prototype;return et.get=function(it,rt){return this.store.resolve(it,rt)},et.doOnce=function(it){var rt=it.data,nt=it.transition;try{var st=function(){at.C=!1},at=this,ot=nt||{};at.C=!0;var lt=W(function(){return Promise.resolve(at.L("beforeOnce",rt,ot)).then(function(){return Promise.resolve(at.once(rt,ot)).then(function(){return Promise.resolve(at.L("afterOnce",rt,ot)).then(function(){})})})},function(ct){at.C=!1,at.logger.debug("Transition error [before/after/once]"),at.logger.error(ct)});return Promise.resolve(lt&&lt.then?lt.then(st):st())}catch(ct){return Promise.reject(ct)}},et.doPage=function(it){var rt=it.data,nt=it.transition,st=it.page,at=it.wrapper;try{var ot=function(ut){lt.C=!1},lt=this,ct=nt||{},ht=ct.sync===!0||!1;lt.C=!0;var dt=W(function(){function ut(){return Promise.resolve(lt.L("before",rt,ct)).then(function(){function mt(pt){return Promise.resolve(lt.remove(rt)).then(function(){return Promise.resolve(lt.L("after",rt,ct)).then(function(){})})}var ft=function(){if(ht)return W(function(){return Promise.resolve(lt.add(rt,at)).then(function(){return Promise.resolve(lt.L("beforeLeave",rt,ct)).then(function(){return Promise.resolve(lt.L("beforeEnter",rt,ct)).then(function(){return Promise.resolve(Promise.all([lt.leave(rt,ct),lt.enter(rt,ct)])).then(function(){return Promise.resolve(lt.L("afterLeave",rt,ct)).then(function(){return Promise.resolve(lt.L("afterEnter",rt,ct)).then(function(){})})})})})})},function(_t){if(lt.H(_t))throw new G(_t,"Transition error [sync]")});var pt=function(_t){return W(function(){var bt=function(){if(yt!==!1)return Promise.resolve(lt.add(rt,at)).then(function(){return Promise.resolve(lt.L("beforeEnter",rt,ct)).then(function(){return Promise.resolve(lt.enter(rt,ct,yt)).then(function(){return Promise.resolve(lt.L("afterEnter",rt,ct)).then(function(){})})})})}();if(bt&&bt.then)return bt.then(function(){})},function(bt){if(lt.H(bt))throw new G(bt,"Transition error [before/after/enter]")})},yt=!1,vt=W(function(){return Promise.resolve(lt.L("beforeLeave",rt,ct)).then(function(){return Promise.resolve(Promise.all([lt.leave(rt,ct),P$1(st,rt)]).then(function(_t){return _t[0]})).then(function(_t){return yt=_t,Promise.resolve(lt.L("afterLeave",rt,ct)).then(function(){})})})},function(_t){if(lt.H(_t))throw new G(_t,"Transition error [before/after/leave]")});return vt&&vt.then?vt.then(pt):pt()}();return ft&&ft.then?ft.then(mt):mt()})}var gt=function(){if(ht)return Promise.resolve(P$1(st,rt)).then(function(){})}();return gt&&gt.then?gt.then(ut):ut()},function(ut){throw lt.C=!1,ut.name&&ut.name==="BarbaError"?(lt.logger.debug(ut.label),lt.logger.error(ut.error),ut):(lt.logger.debug("Transition error [page]"),lt.logger.error(ut),ut)});return Promise.resolve(dt&&dt.then?dt.then(ot):ot())}catch(ut){return Promise.reject(ut)}},et.once=function(it,rt){try{return Promise.resolve(S$2.do("once",it,rt)).then(function(){return rt.once?N$1(rt.once,rt)(it):Promise.resolve()})}catch(nt){return Promise.reject(nt)}},et.leave=function(it,rt){try{return Promise.resolve(S$2.do("leave",it,rt)).then(function(){return rt.leave?N$1(rt.leave,rt)(it):Promise.resolve()})}catch(nt){return Promise.reject(nt)}},et.enter=function(it,rt,nt){try{return Promise.resolve(S$2.do("enter",it,rt)).then(function(){return rt.enter?N$1(rt.enter,rt)(it,nt):Prom
vendor: 6,537 bytes, line 11
11ise.resolve()})}catch(st){return Promise.reject(st)}},et.add=function(it,rt){try{return w$1.addContainer(it.next.container,rt),S$2.do("nextAdded",it),Promise.resolve()}catch(nt){return Promise.reject(nt)}},et.remove=function(it){try{return w$1.removeContainer(it.current.container),S$2.do("currentRemoved",it),Promise.resolve()}catch(rt){return Promise.reject(rt)}},et.H=function(it){return it.message?!/Timeout error|Fetch error/.test(it.message):!it.status},et.L=function(it,rt,nt){try{return Promise.resolve(S$2.do(it,rt,nt)).then(function(){return nt[it]?N$1(nt[it],nt)(rt):Promise.resolve()})}catch(st){return Promise.reject(st)}},n$6(tt,[{key:"isRunning",get:function(){return this.C},set:function(it){this.C=it}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some(function(it){return it.name==="self"})}},{key:"shouldWait",get:function(){return this.store.all.some(function(it){return it.to&&!it.to.route||it.sync})}}]),tt}(),V$1=function(){function tt(et){var it=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,et.length!==0&&(et.forEach(function(rt){it.byNamespace.set(rt.namespace,rt)}),this.names.forEach(function(rt){S$2[rt](it._(rt))}))}return tt.prototype._=function(et){var it=this;return function(rt){var nt=et.match(/enter/i)?rt.next:rt.current,st=it.byNamespace.get(nt.namespace);return st&&st[et]?N$1(st[et],st)(rt):Promise.resolve()}},tt}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(tt){var et=this;do{if(et.matches(tt))return et;et=et.parentElement||et.parentNode}while(et!==null&&et.nodeType===1);return null});var Y={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}},Z=new(function(){function tt(){this.version="2.10.3",this.schemaPage=Y,this.Logger=d$1,this.logger=new d$1("@barba/core"),this.plugins=[],this.timeout=void 0,this.cacheIgnore=void 0,this.cacheFirstPage=void 0,this.prefetchIgnore=void 0,this.preventRunning=void 0,this.hooks=S$2,this.cache=void 0,this.headers=void 0,this.prevent=void 0,this.transitions=void 0,this.views=void 0,this.dom=w$1,this.helpers=g$1,this.history=y,this.request=j,this.url=A$1,this.D=void 0,this.B=void 0,this.q=void 0,this.F=void 0}var et=tt.prototype;return et.use=function(it,rt){var nt=this.plugins;nt.indexOf(it)>-1?this.logger.warn("Plugin ["+it.name+"] already installed."):typeof it.install=="function"?(it.install(this,rt),nt.push(it)):this.logger.warn("Plugin ["+it.name+'] has no "install" method.')},et.init=function(it){var rt=it===void 0?{}:it,nt=rt.transitions,st=nt===void 0?[]:nt,at=rt.views,ot=at===void 0?[]:at,lt=rt.schema,ct=lt===void 0?m$1:lt,ht=rt.requestError,dt=rt.timeout,ut=dt===void 0?2e3:dt,gt=rt.cacheIgnore,mt=gt!==void 0&&gt,ft=rt.cacheFirstPage,pt=ft!==void 0&&ft,yt=rt.prefetchIgnore,vt=yt!==void 0&&yt,_t=rt.preventRunning,bt=_t!==void 0&&_t,St=rt.prevent,wt=St===void 0?null:St,xt=rt.debug,Pt=rt.logLevel;if(d$1.setLevel((xt!==void 0&&xt)===!0?"debug":Pt===void 0?"off":Pt),this.logger.info(this.version),Object.keys(ct).forEach(function(Et){m$1[Et]&&(m$1[Et]=ct[Et])}),this.B=ht,this.timeout=ut,this.cacheIgnore=mt,this.cacheFirstPage=pt,this.prefetchIgnore=vt,this.preventRunning=bt,this.q=this.dom.getWrapper(),!this.q)throw new Error("[@barba/core] No Barba wrapper found");this.I();var kt=this.data.current;if(!kt.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new L$1(mt),this.headers=new H$1,this.prevent=new z$1(vt),this.transitions=new K(st),this.views=new V$1(ot),wt!==null){if(typeof wt!="function")throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",wt)}this.history.init(kt.url.href,kt.namespace),pt&&this.cache.set(kt.url.href,Promise.resolve({html:kt.html,url:kt.url}),"init","fulfilled"),this.U=this.U.bind(this),this.$=this.$.bind(this),this.X=this.X.bind(this),this.G(),this.plugins.forEach(function(Et){return Et.init()});var At=this.data;At.trigger="barba",At.next=At.current,At.current=r({},this.schemaPage),this.hooks.do("ready",At),this.once(At),this.I()},et.destroy=function(){this.I(),this.J(),this.history.clear(),this.hooks.clear(),this.plugins=[]},et.force=function(it){window.location.assign(it)},et.go=function(it,rt,nt){var st;if(rt===void 0&&(rt="barba"),this.F=null,this.transitions.isRunning)this.force(it);else if(!(st=rt==="popstate"?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(it)&&this.url.getQuery(this.history.current.url,!0)===this.url.getQuery(it,!0):this.prevent.run("sameUrl",null,null,it))||this.transitions.hasSelf)return rt=this.history.change(this.cache.has(it)?this.cache.get(it).target:it,rt,nt),nt&&(nt.stopPropagation(),nt.preventDefault()),this.page(it,rt,nt??void 0,st)},et.once=function(it){try{var rt=this;return Promise.resolve(rt.hooks.do("beforeEnter",it)).then(function(){function nt(){return Promise.resolve(rt.hooks.do("afterEnter",it)).then(function(){})}var st=function(){if(rt.transitions.hasOnce){var at=rt.transitions.get(it,{once:!0});return Promise.resolve(rt.transitions.doOnce({transition:at,data:it})).then(function(){})}}();return st&&st.then?st.then(nt):nt()})}catch(nt){return Promise.reject(nt)}},et.page=function(it,rt,nt,st){try{var at,ot=function(){var dt=lt.data;return Promise.resolve(lt.hooks.do("page",dt)).then(function(){var ut=function(gt,mt){try{var ft=(pt=lt.transitions.get(dt,{once:!1,self:st}),Promise.resolve(lt.transitions.doPage({data:dt,page:at,transition:pt,wrapper:lt.q})).then(function(){lt.I()}))}catch{return mt()}var pt;return ft&&ft.then?ft.then(void 0,mt):ft}(0,function(){d$1.getLevel()===0&&lt.force(dt.next.url.href)});if(ut&&ut.then)return ut.then(function(){})})},lt=this;if(lt.data.next.url=r({href:it},lt.url.parse(it)),lt.data.trigger=rt,lt.data.event=nt,lt.cache.has(it))at=lt.cache.update(it,{action:"click"}).request;else{var ct=lt.request(it,lt.timeout,lt.onRequestError.bind(lt,rt),lt.cache,lt.headers);ct.then(function(dt){dt.url.href!==it&&lt.history.add(dt.url.href,rt,"replace")}),at=lt.cache.set(it,ct,"click","pending").request}var ht=function(){if(lt.transitions.shouldWait)return Promise.resolve(P$1(at,lt.data)).then(function(){})}();return Promise.resolve(ht&&ht.then?ht.then(ot):ot())}catch(dt){return Promise.reject(dt)}},et.onRequestError=function(it){this.transitions.isRunning=!1;
11var rt=[].slice.call(arguments,1),nt=rt[0],st=rt[1],at=this.cache.getAction(nt);return this.cache.delete(nt),this.B&&this.B(it,at,nt,st)===!1||at==="click"&&this.force(nt),!1},et.prefetch=function(it){var rt=this;it=this.url.getAbsoluteHref(it),this.cache.has(it)||this.cache.set(it,this.request(it,this.timeout,this.onRequestError.bind(this,"barba"),this.cache,this.headers).catch(function(nt){rt.logger.error(nt)}),"prefetch","pending")},et.G=function(){this.prefetchIgnore!==!0&&(document.addEventListener("mouseover",this.U),document.addEventListener("touchstart",this.U)),document.addEventListener("click",this.$),window.addEventListener("popstate",this.X)},et.J=function(){this.prefetchIgnore!==!0&&(document.removeEventListener("mouseover",this.U),document.removeEventListener("touchstart",this.U)),document.removeEventListener("click",this.$),window.removeEventListener("popstate",this.X)},et.U=function(it){var rt=this,nt=this.W(it);if(nt){var st=this.url.getAbsoluteHref(this.dom.getHref(nt));this.prevent.checkHref(st)||this.cache.has(st)||this.cache.set(st,this.request(st,this.timeout,this.onRequestError.bind(this,nt),this.cache,this.headers).catch(function(at){rt.logger.error(at)}),"enter","pending")}},et.$=function(it){var rt=this.W(it);if(rt){if(this.transitions.isRunning&&this.preventRunning)return it.preventDefault(),void it.stopPropagation();this.F=it,this.go(this.dom.getHref(rt),rt,it)}},et.X=function(it){this.go(this.url.getHref(),"popstate",it)},et.W=function(it){for(var rt=it.target;rt&&!this.dom.getHref(rt);)rt=rt.parentNode;if(rt&&!this.prevent.checkLink(rt,it,this.dom.getHref(rt)))return rt},et.I=function(){var it=this.url.getHref(),rt={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:r({href:it},this.url.parse(it))};this.D={current:rt,event:void 0,next:r({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},n$6(tt,[{key:"data",get:function(){return this.D}},{key:"wrapper",get:function(){return this.q}}]),tt}());const defaultNavColor="dark",updateNavColor=()=>{const tt=module_default$1.store("scroll"),it=document.elementsFromPoint(0,100).find(rt=>rt.dataset.navColor);tt.navColor=it?it.dataset.navColor:defaultNavColor},touchMatch=window.matchMedia("(hover: none)"),device=module_default$1.reactive({touchScreenOnly:touchMatch.matches});module_default$1.store("device",device);touchMatch.addEventListener("change",()=>{device.touchScreenOnly=touchMatch.matches});function alpine(){module_default$1.plugin(module_default),module_default$1.store("scroll",{value:window.scrollY,direction:-1,velocity:0,navColor:defaultNavColor}),module_default$1.store("route",{namespace:null}),module_default$1.magic("lenis",()=>getLenis()),module_default$1.magic("barba",()=>Z),module_default$1.magic("getData",()=>rt=>module_default$1.closestDataStack(rt)[0]);const tt=module_default$1.store("scroll"),et=getLenis();et.on("scroll",()=>{tt.direction=Math.sign(et.animatedScroll-tt.value),tt.value=et.animatedScroll,tt.velocity=et.velocity,updateNavColor()});const it=module_default$1.store("route");it.namespace=Z.data.current.namespace,Z.hooks.beforeEnter(rt=>{it.namespace=rt.next.namespace}),Z.hooks.after(()=>{setTimeout(updateNavColor,100)}),module_default$1.start(),window.Alpine=module_default$1,updateNavColor(),globalEvents.subscribe("pageReady",updateNavColor)}const rawLerp=(tt,et,it)=>tt+(et-tt)*it,clamp=(tt,et,it)=>Math.min(Math.max(tt,et),it),lerp=(tt,et,it,rt=.001)=>{const nt=rawLerp(tt,et,it);return Math.abs(nt-et)<rt?et:nt},mix=(tt,et,it)=>-it*tt+it*et+tt;function createBlob(tt,et=!1){let it=[],rt=document.createElementNS("http://www.w3.org/2000/svg","path"),nt=Math.PI*2/tt.numPoints,st=rand(0,360);const at=[],ot={x:tt.centerX,y:tt.centerY};let lt={...ot};const ct=(ut,gt)=>{lt={x:ut,y:gt}};for(let ut=0;ut<tt.numPoints;ut++){let gt=st+ut*nt,mt=rand(tt.minDuration,tt.maxDuration);const ft={duration:mt,easing:sine.inOut,direction:"alternate",repeat:1/0},pt=tt.centerX+Math.cos(gt)*tt.minRadius,yt=tt.centerY+Math.sin(gt)*tt.minRadius,vt=tt.centerX+Math.cos(gt)*tt.maxRadius,_t=tt.centerY+Math.sin(gt)*tt.maxRadius;let bt={x:pt,y:yt};const St=animate(wt=>{const xt=angleBetween(lt,bt,ot),Pt=clamp((Math.PI-Math.abs(xt))/Math.PI*.75-.5,0,1);wt+=Pt,wt=clamp(wt,0,1),bt.x=mix(pt,vt,wt),bt.y=mix(yt,_t,wt),ut===0&&dt()},ft);St.currentTime=rand(0,mt),at.push(St),it.push(bt)}const ht=()=>{at.forEach(ut=>ut==null?void 0:ut.cancel())};function dt(){const ut=cardinal(it,!0,1);ut.includes("NaN")||rt.setAttribute("d",ut)}return{path:rt,destroy:ht,setMagnet:ct}}function cardinal(tt,et,it){if(tt.length<1)return"M0 0";let rt=tt.length-0,nt="M"+tt[0].x+" "+tt[0].y+" C";for(let st=0;st<rt;st++){let at,ot,lt,ct;at=tt[(st-1+rt)%rt],ot=tt[st],lt=tt[(st+1)%rt],ct=tt[(st+2)%rt];let ht=ot.x+(lt.x-at.x)/6*it,dt=ot.y+(lt.y-at.y)/6*it,ut=lt.x-(ct.x-ot.x)/6*it,gt=lt.y-(ct.y-ot.y)/6*it;nt+=" "+ht+" "+dt+" "+ut+" "+gt+" "+lt.x+" "+lt.y}return nt+"z"}function angleBetween(tt,et,it){return(Math.atan2(et.y-it.y,et.x-it.x)-Math.atan2(tt.y-it.y,tt.x-it.x)+Math.PI)%(2*Math.PI)-Math.PI}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(tt){return tt&&tt.__esModule&&Object.prototype.hasOwnProperty.call(tt,"default")?tt.default:tt}function isObject$3(tt){var et=typeof tt;return tt!=null&&(et=="object"||et=="function")}var isObject_1=isObject$3,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&c
11ommonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function("return this")(),_root=root$2,root$1=_root,now$1=function(){return root$1.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(tt){for(var et=tt.length;et--&&reWhitespace.test(tt.charAt(et)););return et}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(tt){return tt&&tt.slice(0,trimmedEndIndex(tt)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root=_root,Symbol$3=root.Symbol,_Symbol=Symbol$3,Symbol$2=_Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag$1(tt){var et=hasOwnProperty.call(tt,symToStringTag$1),it=tt[symToStringTag$1];try{tt[symToStringTag$1]=void 0;var rt=!0}catch{}var nt=nativeObjectToString$1.call(tt);return rt&&(et?tt[symToStringTag$1]=it:delete tt[symToStringTag$1]),nt}var _getRawTag=getRawTag$1,objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString$1(tt){return nativeObjectToString.call(tt)}var _objectToString=objectToString$1,Symbol$1=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag$1(tt){return tt==null?tt===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(tt)?getRawTag(tt):objectToString(tt)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(tt){return tt!=null&&typeof tt=="object"}var isObjectLike_1=isObjectLike$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$1(tt){return typeof tt=="symbol"||isObjectLike(tt)&&baseGetTag(tt)==symbolTag}var isSymbol_1=isSymbol$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(tt){if(typeof tt=="number")return tt;if(isSymbol(tt))return NAN;if(isObject$2(tt)){var et=typeof tt.valueOf=="function"?tt.valueOf():tt;tt=isObject$2(et)?et+"":et}if(typeof tt!="string")return tt===0?tt:+tt;tt=baseTrim(tt);var it=reIsBinary.test(tt);return it||reIsOctal.test(tt)?freeParseInt(tt.slice(2),it?2:8):reIsBadHex.test(tt)?NAN:+tt}var toNumber_1=toNumber$1,isObject$1=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce$1(tt,et,it){var rt,nt,st,at,ot,lt,ct=0,ht=!1,dt=!1,ut=!0;if(typeof tt!="function")throw new TypeError(FUNC_ERROR_TEXT$1);et=toNumber(et)||0,isObject$1(it)&&(ht=!!it.leading,dt="maxWait"in it,st=dt?nativeMax(toNumber(it.maxWait)||0,et):st,ut="trailing"in it?!!it.trailing:ut);function gt(wt){var xt=rt,Pt=nt;return rt=nt=void 0,ct=wt,at=tt.apply(Pt,xt),at}function mt(wt){return ct=wt,ot=setTimeout(yt,et),ht?gt(wt):at}function ft(wt){var xt=wt-lt,Pt=wt-ct,kt=et-xt;return dt?nativeMin(kt,st-Pt):kt}function pt(wt){var xt=wt-lt,Pt=wt-ct;return lt===void 0||xt>=et||xt<0||dt&&Pt>=st}function yt(){var wt=now();if(pt(wt))return vt(wt);ot=setTimeout(yt,ft(wt))}function vt(wt){return ot=void 0,ut&&rt?gt(wt):(rt=nt=void 0,at)}function _t(){ot!==void 0&&clearTimeout(ot),ct=0,rt=lt=nt=ot=void 0}function bt(){return ot===void 0?at:vt(now())}function St(){var wt=now(),xt=pt(wt);if(rt=arguments,nt=this,lt=wt,xt){if(ot===void 0)return mt(lt);if(dt)return clearTimeout(ot),ot=setTimeout(yt,et),gt(lt)}return ot===void 0&&(ot=setTimeout(yt,et)),at}return St.cancel=_t,St.flush=bt,St}var debounce_1=debounce$1,debounce=debounce_1,isObject=isObject_1,FUNC_ERROR_TEXT="Expected a function";function throttle(tt,et,it){var rt=!0,nt=!0;if(typeof tt!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject(it)&&(rt="leading"in it?!!it.leading:rt,nt="trailing"in it?!!it.trailing:nt),debounce(tt,et,{leading:rt,maxWait:et,trailing:nt})}var throttle_1=throttle;const throttle$1=getDefaultExportFromCjs(throttle_1);function animateObjectTo(tt,et,it={}){const rt={};for(let nt in et)rt[nt]=tt[nt];return animate(nt=>{var st;for(const[at,ot]of Object.entries(et))tt[at]=mix(rt[at],ot,nt);(st=it.onUpdate)==null||st.call(it,nt,tt)},it)}function animateObjectFrom(tt,et,it={}){const rt={};for(const[nt,st]of Object.entries(et))rt[nt]=tt[nt],tt[nt]=st;return animate(nt=>{var st;for(const[at,ot]of Object.entries(et))tt[at]=mix(ot,rt[at],nt);(st=it.onUpdate)==null||st.call(it,nt,tt)},it)}function animationsGroup(tt){tt??(tt=[]);const et=ct=>{tt.push(ct)},it=()=>{tt.forEach(ct=>ct.pause())},rt=()=>{tt.forEach(ct=>ct.play())},nt=()=>{tt.forEach(ct=>ct.finish())},st=()=>{tt.forEach(ct=>ct.cancel())},at=()=>{tt.forEach(ct=>ct.stop())},ot=()=>{at(),tt=[]},lt=Promise.all(tt.map(ct=>ct.finished));return{add:et,pause:it,play:rt,finish:nt,cancel:st,stop:at,kill:ot,finished:lt}}const defaultColor="#131313";class MousePosition{constructor(et,it){Tt(this,"x");Tt(this,"y");this.x=et,this.y=it}get normalized(){return{x:this.x/window.innerWidth*2-1,y:-(this.y/window.innerHeight)*2+1}}}class FollowCursor{constructor(){Tt(this,"follower");Tt(this,"blobPath");Tt(this,"blobSVG");Tt(this,"initial",!0);Tt(this,"bound",!1);Tt(this,"running",!1);Tt(this,"scale",1);Tt(this,"mousePosition",module_default$1.reactive(new MousePosition(window.innerWidth/2,window.innerHeight/2)));Tt(this,"lockedPosition");Tt(this,"blobPosition");Tt(this,"iconPosition");Tt(this,"componentData");Tt(this,"lerpedPositions",new Map);Tt(this,"isFill");Tt(this,"scaleAnimation");this.follower=document.querySelector("#cursor-follower"),this.blobPosition=this.getMousePosition(.1),this.iconPosition=this.getMousePosition(.2),this.componentData=module_default$1.reactive({icon:"",iconSize:16,text:"",textScale:1,color:defaultColor,blobPosition:this.blobPosition,iconPosition:this.iconPosition}),this.initFollowerContent(),module_default$1.data("followCursor",()=>this.componentData)}getMousePosition(et){return et?(this.lerpedPositions.has(et)||this.lerpedPositions.set(et,module_default$1.reactive(new MousePosition(this.mousePosition.x,this.mousePosition.y))),this.lerpedPositions.get(et)):this.mousePosition}get color(){return this.componentData.color}set color(et){this.componentData.color=et}init(){module_default$1.effect(()=>{device.touchScreenOnly?this.stop():this.start()})}initFollowerContent(){this.blobSVG=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.blobSVG.setAttribute("viewBox","0 0 1000 1000"),this.blobSVG.id="cursor-blob",this.blobSVG.style.flexShrink="0",this.blobSVG.style.width="1.5rem",this.blobSVG.style.height="1.5rem";const{path:et}=createBlob({numPoints:8,centerX:500,centerY:500,minRadius:430,maxRadius:490,minDuration:1,maxDuration:2});this.blobPath=et,this.blobSVG.appendChild(et),this.blobPath.style.fill="transparent",this.follower.appendChild(this.blobSVG),this.setColor(defaultColor),this.setScale(1,!0)}bind(){window.addEventListener("mousemove",throttle$1(this.onMouseMove.bind(this),16)),getLenis().on("scroll",throttle$1(this.onScroll.bind(this),500))}
11onScroll(){this.running&&this.matchColorToBackground()}onMouseMove(et){if(this.running&&(this.mousePosition.x=et.clientX,this.mousePosition.y=et.clientY,this.matchColorToBackground(),this.initial)){for(const it of this.lerpedPositions.keys()){const rt=this.lerpedPositions.get(it);rt.x=this.mousePosition.x,rt.y=this.mousePosition.y}this.follower.classList.remove("initial"),this.initial=!1}}matchColorToBackground(){const{x:et,y:it}=this.mousePosition;document.elementsFromPoint(et,it).filter(st=>st.dataset.navColor==="light").length?this.setColor("#ffffff"):this.setColor(defaultColor)}async enableFill(et=!1){const it={fill:this.color};return et||(this.isFill=!0,it.stroke=this.color==="#131313"?"white":"#131313"),animate(this.blobPath,it,{duration:.2}).finished}async disableFill(){return this.isFill=!1,animate(this.blobPath,{fill:"transparent",stroke:this.color},{duration:.2})}setColor(et){this.color=et,this.blobPath.style.stroke=et,this.isFill&&this.enableFill()}resetColor(){this.setColor(defaultColor)}setIcon(et){this.componentData.icon=et}setText(et){this.componentData.text=et}setTextScale(et){this.componentData.textScale=et}getTextScale(){return this.componentData.textScale}setIconSize(et){this.componentData.iconSize=et}hide(){this.blobSVG.style.display="none"}show(){this.blobSVG.style.display="block"}lockTo(et,it){this.lockedPosition=new MousePosition(et,it)}unlock(){this.lockedPosition=null}setScale(et,it=!1){if(this.scaleAnimation&&(this.scaleAnimation.stop(),this.scaleAnimation=null),it){this.blobSVG.style.transform=`scale(${et})`,this.blobPath.setAttribute("stroke-width",`${30/et}`),this.scale=et;return}this.scaleAnimation=animateObjectTo(this,{scale:et},{onUpdate:()=>{this.blobSVG.style.transform=`scale(${this.scale})`,this.blobPath.setAttribute("stroke-width",`${30/this.scale}`)},duration:.6,easing:power3.out})}start(){this.running||(this.running=!0,this.bound||(this.bind(),this.bound=!0),this.loop())}stop(){this.running&&(this.running=!1,this.initial=!0,this.follower.classList.add("initial"),this.resetColor(),this.setScale(1))}updateLerpedPositions(){const{x:et,y:it}=this.lockedPosition??this.mousePosition;for(const rt of this.lerpedPositions.keys()){const nt=this.lerpedPositions.get(rt);nt.x=lerp(nt.x,et,rt),nt.y=lerp(nt.y,it,rt)}}update(){this.updateLerpedPositions(),this.follower.style.transform=`translate(${this.blobPosition.x}px, ${this.blobPosition.y}px)`}loop(){this.running&&(this.update(),requestAnimationFrame(this.loop.bind(this)))}}const followCursor=new FollowCursor;var __defProp=Object.defineProperty,__getOwnPropDesc$g=Object.getOwnPropertyDescriptor,__defNormalProp=(tt,et,it)=>et in tt?__defProp(tt,et,{enumerable:!0,configurable:!0,writable:!0,value:it}):tt[et]=it,__decorateClass$g=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$g(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt},__publicField=(tt,et,it)=>__defNormalProp(tt,et+"",it);let Blob$1=class extends AlpineDirective{constructor(){super(...arguments);Tt(this,"blob");Tt(this,"blobSVG");Tt(this,"iconWrapper");Tt(this,"minScale");Tt(this,"maxDesktopScale");Tt(this,"maxMobileScale");Tt(this,"maxDistance");Tt(this,"mousePosition");Tt(this,"currentScale");Tt(this,"currentTranslateX");Tt(this,"currentTranslateY");Tt(this,"currentArrowTranslateX");Tt(this,"currentArrowTranslateY");Tt(this,"rect");Tt(this,"targetTranslateX");Tt(this,"targetTranslateY");Tt(this,"isHover",!1)}onMount(){this.element.classList.add("relative"),this.mousePosition=followCursor.getMousePosition(),this.createBlob(),this.connectIcon(),this.setupAnimation(),setTimeout(()=>this.onResize(),0)}connectIcon(){const it=this.element.querySelector('[class*="icon-"]');it&&(this.iconWrapper=document.createElement("span"),this.iconWrapper.className="block absolute top-0 left-0 w-full h-full flex items-center justify-center pointer-events-none z-1",it.className+=" bg-transition",this.iconWrapper.appendChild(it),this.element.appendChild(this.iconWrapper))}createBlob(){this.blobSVG=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.blobSVG.setAttribute("viewBox","0 0 1000 1000"),this.blobSVG.style.flexShrink="0",this.blobSVG.style.width="3rem",this.blobSVG.style.height="3rem",this.blob=createBlob({numPoints:8,centerX:Blob$1.DIMENSION/2,centerY:Blob$1.DIMENSION/2,minRadius:430,maxRadius:490,minDuration:1,maxDuration:2}),this.blob.path.setAttribute("stroke-width","20"),this.blob.path.classList.add("bg-transition","blob-outline"),this.blobSVG.appendChild(this.blob.path),this.element.append(this.blobSVG)}setupAnimation(){this.minScale=1,this.maxDesktopScale=this.getModifierValue("max-desktop",8),this.maxMobileScale=this.getModifierValue("max-mobile",6),this.maxDistance=window.innerWidth-cols(2),this.currentScale=1,this.currentTranslateX=0,this.currentTranslateY=0,this.currentArrowTranslateX=0,this.currentArrowTranslateY=0,this.rect=this.element.getBoundingClientRect()}onScroll(it){this.rect=this.element.getBoundingClientRect()}onResize(){this.rect=this.element.getBoundingClientRect()}onRaf({delta:it}){if(document.hidden)return;const{left:rt,top:nt,width:st,height:at}=this.rect,ot=rt+st/2,lt=nt+at/2;let ct;device.touchScreenOnly?ct=Math.abs(lt-window.innerHeight/2):ct=Math.sqrt(Math.pow(this.mousePosition.x-ot,2)+Math.pow(this.mousePosition.y-lt,2));const ht=device.touchScreenOnly?this.maxMobileScale:this.maxDesktopScale,dt=Math.pow(clamp(1-ct/this.maxDistance,0,1),2),ut=clamp((ht-this.minScale)*dt+this.minScale,this.minScale,ht);this.currentScale+=(ut-this.currentScale)*.05*(it/16),this.currentScale=Math.min(this.currentScale,ht),this.targetTranslateX=0,this.targetTranslateY=0;let gt=0,mt=0;!device.touchScreenOnly&&ct<this.maxDesktopScale*30?(this.targetTranslateX=(this.mousePosition.x-ot)*.06,this.targetTranslateY=(this.mousePosition.y-lt)*.06,gt=(this.mousePosition.x-ot)*.1,mt=(this.mousePosition.y-lt)*.1,this.onMouseOver()):this.onMouseOut(),this.currentTranslateX=lerp(this.currentTranslateX,this.targetTranslateX,.2*(it/16)),this.currentTranslateY=lerp(this.currentTranslateY,this.targetTranslateY,.2*(it/16)),this.currentArrowTranslateX=(gt
11-this.currentArrowTranslateX)*.2*(it/16)+this.currentArrowTranslateX,this.currentArrowTranslateY=(mt-this.currentArrowTranslateY)*.2*(it/16)+this.currentArrowTranslateY,this.blobSVG.style.transform=`scale(${this.currentScale}) translate(${this.currentTranslateX}px, ${this.currentTranslateY}px)`;const ft=20/this.currentScale;this.blob.path.setAttribute("stroke-width",`${ft}`),this.iconWrapper&&(this.iconWrapper.style.transform=`translate(${this.currentArrowTranslateX}px, ${this.currentArrowTranslateY}px)`)}onMouseOver(){var lt;const{x:it,y:rt,width:nt,height:st}=this.blobSVG.getBoundingClientRect(),at=clamp((this.mousePosition.x-it)/nt,0,1)*Blob$1.DIMENSION,ot=clamp((this.mousePosition.y-rt)/st,0,1)*Blob$1.DIMENSION;this.blob.setMagnet(at,ot),followCursor.lockTo(this.rect.left+this.rect.width/2+this.targetTranslateX*12,this.rect.top+this.rect.height/2+this.targetTranslateY*12),!this.isHover&&(this.isHover=!0,this.blob.path.classList.add("fill"),(lt=this.iconWrapper)==null||lt.classList.add("filter-invert"),followCursor.enableFill(!0),setTimeout(()=>{this.isHover&&followCursor.hide()},150))}onMouseOut(){var it;this.isHover&&(this.isHover=!1,this.blob.path.classList.remove("fill"),(it=this.iconWrapper)==null||it.classList.remove("filter-invert"),followCursor.show(),followCursor.disableFill(),followCursor.unlock())}onUnmount(){var it;(it=this.blob)==null||it.destroy()}};__publicField(Blob$1,"DIMENSION",1e3);Blob$1=__decorateClass$g([needsFeature("blob")],Blob$1);const __vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Blob$1}},Symbol.toStringTag,{value:"Module"}));var __getOwnPropDesc$f=Object.getOwnPropertyDescriptor,__decorateClass$f=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$f(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let CursorIcon$1=class extends AlpineDirective{constructor(){super(...arguments);Tt(this,"size")}onMount(){this.size=this.getModifierValue("size",16),this.element.setAttribute("data-cursor-custom",""),this.addEventListener("mouseenter",this.onMouseEnter.bind(this)),this.addEventListener("mouseleave",this.onMouseLeave.bind(this))}onMouseEnter(){followCursor.setIcon(this.params.expression),followCursor.setIconSize(this.size),followCursor.setScale(8)}onMouseLeave(){followCursor.setIcon(""),followCursor.setScale(1)}onUnmount(){this.onMouseLeave()}};CursorIcon$1=__decorateClass$f([needsFeature("cursorIcon")],CursorIcon$1);const __vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,get default(){return CursorIcon$1}},Symbol.toStringTag,{value:"Module"}));var __getOwnPropDesc$e=Object.getOwnPropertyDescriptor,__decorateClass$e=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$e(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let CursorIcon=class extends AlpineDirective{onMount(){this.addEventListener("mouseenter",this.onMouseEnter.bind(this)),this.addEventListener("mouseleave",this.onMouseLeave.bind(this))}onMouseEnter(){followCursor.setText(this.params.expression),followCursor.setScale(8)}onMouseLeave(){followCursor.setText(""),followCursor.setScale(1)}onUnmount(){this.onMouseLeave()}};CursorIcon=__decorateClass$e([needsFeature("cursorIcon")],CursorIcon);const __vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,get default(){return CursorIcon}},Symbol.toStringTag,{value:"Module"})),scriptRel="modulepreload",assetsURL=function(tt){return"/wp-content/themes/wnk3/www/dist/"+tt},seen={},__vitePreload=function(et,it,rt){let nt=Promise.resolve();if(it&&it.length>0){document.getElementsByTagName("link");const at=document.querySelector("meta[property=csp-nonce]"),ot=(at==null?void 0:at.nonce)||(at==null?void 0:at.getAttribute("nonce"));nt=Promise.allSettled(it.map(lt=>{if(lt=assetsURL(lt),lt in seen)return;seen[lt]=!0;const ct=lt.endsWith(".css"),ht=ct?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${lt}"]${ht}`))return;const dt=document.createElement("link");if(dt.rel=ct?"stylesheet":scriptRel,ct||(dt.as="script"),dt.crossOrigin="",dt.href=lt,ot&&dt.setAttribute("nonce",ot),document.head.appendChild(dt),ct)return new Promise((ut,gt)=>{dt.addEventListener("load",ut),dt.addEventListener("error",()=>gt(new Error(`Unable to preload CSS for ${lt}`)))})}))}function st(at){const ot=new Event("vite:preloadError",{cancelable:!0});if(ot.payload=at,window.dispatchEvent(ot),!ot.defaultPrevented)throw at}return nt.then(at=>{for(const ot of at||[])ot.status==="rejected"&&st(ot.reason);return et().catch(st)})};class EmblemCommon extends AlpineDirective{constructor(){super(...arguments);Tt(this,"cleanScroll");Tt(this,"isVisible",!1)}onResize(it=void 0,rt=0){var lt;if(!this.isVisible)return;(lt=this.cleanScroll)==null||lt.call(this);const nt=document.querySelector("[data-emblem-mask]");if(!nt)return;const st=nt.getBoundingClientRect(),at=this.element.getBoundingClientRect(),ot=window.scrollY+st.top+st.height-at.top-at.height-32+rt;this.cleanScroll=scroll(({y:ct})=>{const ht=clamp(ct.current/ot,0,1);this.onScrollProgress(ht)},{axis:"y"})}onScrollProgress(it){}onRevealStart(){this.isVisible=!0}onRevealEnd(){this.isVisible=!1}onTransitionLeave(it,rt){var nt;(nt=this.cleanScroll)==null||nt.call(this),this.cleanScroll=null}onUnmount(){var it;(it=this.cleanScroll)==null||it.call(this),this.cleanScroll=null}}
11class EmblemFallback extends EmblemCommon{constructor(){super(...arguments);Tt(this,"image");Tt(this,"animation")}onMount(){this.image=document.createElement("img"),this.image.src=window.wnkExposed.themePath+"/www/img/3Demblem.png",this.image.className="w-full h-full object-contain block opacity-0 ease-power3-out",this.element.appendChild(this.image),this.element.style.pointerEvents="none",this.element.style.zIndex="0",this.element.classList.add("absolute")}async onRevealStart(){this.image.classList.remove("opacity-0"),this.animation=animate(this.image,{opacity:[0,1],y:[32,0]},{duration:1,easing:power3.out}),await this.animation.finished,super.onRevealStart(),this.onResize()}}class Emblem extends EmblemCommon{constructor(){super(...arguments);Tt(this,"emblem");Tt(this,"cursorTextAnim",null)}create(){this.element.classList.add("fixed")}async onMount(){this.element.style.zIndex="10";const{default:it}=await __vitePreload(async()=>{const{default:rt}=await import("./EmblemSpotLight-61in4e5b.js");return{default:rt}},__vite__mapDeps([0,1,2,3,4]));this.emblem=new it(this.element),await this.emblem.onLoad(),this.bind()}onScrollProgress(it){this.emblem.opacity=1-it,this.emblem.twistYOrigin=0,this.emblem.twistMesh(it*-2),this.element.classList.toggle("pointer-events-none",it>0),this.emblem.offsetY=this.emblem.canvas.screenToWorld(0,.8*it).y}bind(){this.addEventListener("mousedown",this.onClickStart.bind(this)),this.addEventListener("mouseup",this.onClickEnd.bind(this)),this.addEventListener("mouseleave",this.onMouseLeave.bind(this)),this.addEventListener("contextmenu",it=>(it.preventDefault(),!1))}onClickStart(it){var rt;(rt=this.cursorTextAnim)==null||rt.stop(),this.cursorTextAnim=null,this.emblem.startTwisting(it.offsetX/this.element.clientWidth*2-1,it.offsetY/this.element.clientHeight*-2+1),this.cursorTextAnim=animateObjectTo({scale:followCursor.scale},{scale:2},{duration:4,easing:power5.out,onUpdate(nt,st){followCursor.setScale(st.scale,!0)}})}onClickEnd(it){var rt;(rt=this.cursorTextAnim)==null||rt.stop(),this.cursorTextAnim=null,this.emblem.stopTwisting(),this.cursorTextAnim=animateObjectTo({scale:followCursor.scale},{scale:8},{onUpdate(nt,st){followCursor.setScale(st.scale,!0)},easing:spring({stiffness:1e3,mass:.8,damping:16,velocity:40})})}onMouseLeave(){var it;(it=this.cursorTextAnim)==null||it.stop(),this.cursorTextAnim=null,this.emblem.stopTwisting(),followCursor.setScale(1)}onRevealStart(){super.onRevealStart(),this.onResize(),this.emblem.enter()}onResize(it=void 0){const rt=window.innerHeight*.2;super.onResize(it,rt)}onTransitionLeave(it,rt){this.emblem.leave(rt),super.onTransitionLeave()}onUnmount(){this.emblem.destroy(),this.emblem=null,super.onUnmount()}}const xEmblem=ifFeature("emblem",Emblem,EmblemFallback),__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:xEmblem},Symbol.toStringTag,{value:"Module"}));class FastSpinner extends AlpineDirective{constructor(){super(...arguments);Tt(this,"animation")}onMount(){const it=this.element.querySelector(".spinner");this.animation=animate(it,{rotate:"-360deg"},{duration:14,repeat:1/0,easing:"linear"}),this.addEventListener("mouseenter",this.onMouseEnter.bind(this))}onMouseEnter(it){it.target===this.element&&(animateObjectTo(this.animation,{playbackRate:40},{duration:.2}),setTimeout(()=>{animateObjectTo(this.animation,{playbackRate:1},{duration:.6,easing:sine.out})},200))}onUnmount(){var it;(it=this.animation)==null||it.cancel(),this.animation=null}}const __vite_glob_0_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:FastSpinner},Symbol.toStringTag,{value:"Module"})),sizer=document.createElement("div");sizer.className="fixed top-0 left-0 w-100lvw h-100lvh pointer-events-none visibilty-hidden";document.body.appendChild(sizer);const sizes={width:sizer.clientWidth,height:sizer.clientHeight};let resizeCallbacks=[];const triggerResize=()=>{sizes.width===sizer.clientWidth&&sizes.height===sizer.clientHeight||(sizes.width=sizer.clientWidth,sizes.height=sizer.clientHeight,resizeCallbacks.forEach(tt=>tt()))};window.addEventListener("resize",triggerResize);document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&triggerResize()});const useSizes=()=>sizes,onResize=tt=>(resizeCallbacks.push(tt),{unsubscribe:()=>resizeCallbacks=resizeCallbacks.filter(et=>et!==tt),trigger:()=>tt()});let particlesInstance=null;const getParticles=()=>particlesInstance;async function initThree(){if(!canIUse("three"))return;const[{GLCanvas:tt,useCanvas:et},{threeComponents:it,clock:rt}]=await Promise.all([__vitePreload(()=>import("./threeComponent-Dp686s0D.js").then(at=>at.at),[]),__vitePreload(()=>import("./threeComponent-Dp686s0D.js").then(at=>at.au),[])]),nt=document.querySelector("#gl-canvas");if(tt.instantiate(nt),canIUse("particles")){const{default:at}=await __vitePreload(async()=>{const{default:ot}=await import("./Particles-BnwpTxLe.js");return{default:ot}},__vite__mapDeps([5,1,4]));particlesInstance=new at(window.wnkExposed.defaultParticlesColors)}rt.start();const st=()=>{const at=rt.getDelta(),ot=rt.getElapsedTime();it.forEach(lt=>lt.onRaf(at,ot)),requestAnimationFrame(st)};st(),onResize(()=>{et().onResize(),it.forEach(at=>at.onResize())})}const le=class le extends AlpineDirective{constructor(){super(...arguments);Tt(this,"particles")}async onMount(){le.instances.push(this),this.particles=getParticles()}onUnmount(){var it;le.instances.splice(le.instances.indexOf(this),1),le.instances.length===0&&((it=this.particles)==null||it.hideShape()),this.particles=null}};Tt(le,"instances",[]);let SharedParticlesShapeDirective=le;var __getOwnPropDesc$d=Object.getOwnPropertyDescriptor,__decorateClass$d=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$d(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let FixedParticlesShape=class extends SharedParticlesShapeDirective{constructor(){super(...arguments);Tt(this,"shape");Tt(this,"threshold");Tt(this,"yPosition",0);Tt(this,"yVelocity",0);Tt(this,"targetYVelocity",0);Tt(this,"visible",!1);Tt(this,"scrollCleaner");Tt(this,"transitionStarted",!1);Tt(this,"initial",!0);Tt(this,"currentScrollInfo",null);Tt(this,"_rect");Tt(this,"mouseEffect")}get rect(){return this._rect||(this._rect=this.element.getBoundingClientRect()),this._rect}invalidateRect(){this._rect=null}async onMount(){var rt;if(super.onMount(),!this.params.expression){console.error("Missing filename for particles shape directive");return}this.shape=this.params.expression,this.threshold=this.getModifierValue("threshold",50)/100,this.scrollCleaner=scroll(this.onScrollUpdate.bind(this),{target:this.element,axis:"y",offset:["start end","end start"]}),await((rt=this.particles)==null?void 0:rt.registerShape(this.shape));const et=followCursor.getMousePosition(.06);let it=et.y;this.mouseEffect=module_default$1.effect(()=>{this.yPosition=clamp(et.y,0,window.innerHeight),this.targetYVelocity=this.yPosition-it,it=this.yPosition,this.updatePosition()})}onPageReady(){var et;(et=this.particles)==null||et.setShape(this.shape,!1,1.5),this.updatePosition(),this.updateSize(!1),this.updateShapeDisplay(),this.invalidateRect()}onScrollUpdate(et){this.currentScrollInfo=et.y,this.updateShapeDisplay(),this.updatePosition(),this.invalidateRect()}updateShapeDisplay(){var at,ot,lt,ct;if(!this.currentScrollInfo||!((at=this.particles)!=null&&at.hasShape))return;if(window.innerWidth<1024){this.visible=!1,(ot=this.particles)==null||ot.hideShape();return}const{current:et,targetOffset:it,targetLength:rt}=this.currentScrollInfo,nt=clamp((et+window.innerHeight-it)/window.innerHeight,0,1),st=1-clamp((et+window.innerHeight-(it+rt))/window.innerHeight,0,1);nt>this.threshold&&st>this.threshold?(this.visible=!0,(lt=this.particles)==null||lt.showShape()):(this.visible=!1,(ct=this.particles)==null||ct.hideShape())}onTransitionLeave(){this.transitionStarted=!0,this.mouseEffect&&module_default$1.release(this.mouseEffect)}onResize(et){this.updateSize(),this.updatePosition(),this.invalidateRect()}onRaf(et){this.visible&&(this.yVelocity=lerp(this.yVelocity,this.targetYVelocity,et.delta*.01),this.updatePosition())}updateSize(et=!0){var rt;const{width:it}=this.rect;(rt=this.particles)==null||rt.setShapeBounds(it,window.innerHeight,"contain",et)}updatePosition(){var rt,nt;if(!this.visible)return;const{left:et,width:it}=this.rect;(rt=this.particles)==null||rt.setShapeCenter(et+it/2,this.yPosition,!this.initial),(nt=this.particles)==null||nt.setShapeBlur(this.yVelocity*5e-4,this.yVelocity*.008),this.initial&&(this.initial=!1)}onUnmount(){super.onUnmount(),this.scrollCleaner(),this.mouseEffect&&module_default$1.release(this.mouseEffect)}};FixedParticlesShape=__decorateClass$d([needsFeature("particlesShape")],FixedParticlesShape);const __vite_glob_0_7$1=Object.freeze(Object.defineProperty({__proto__:null,get default(){return FixedParticlesShape}},Symbol.toStringTag,{value:"Module"}));class ImagesCommmon extends AlpineDirective{constructor(){super(...arguments);Tt(this,"cleanupParallax")}setupParallax(it){this.cleanupParallax=scroll(it,{target:this.element,offset:["start end","end start"]})}onUnmount(){var it;(it=this.cleanupParallax)==null||it.call(this)}onScrollProgress(it){throw new Error("Not implemented !")}}let Image$1=class extends ImagesCommmon{constructor(){super(...arguments);Tt(this,"image")}async onMount(){this.element.style.opacity="0";const[{DomImage:it}]=await Promise.all([__vitePreload(()=>import("./DomImage-Czm_3ut3.js"),__vite__mapDeps([6,1,7,3]))]);if(this.image=new it(this.element,this.isInsideReveal,this.hasModifier("static")),this.onGlobal("barbaTransitionToImage",this.onLeaveToProject.bind(this)),this.image.setScaleOrigin(this.params.expression),this.hasModifier("parallax")){const rt=this.getModifierValue("parallax",0)/100;this.image.setParallaxAmount(rt),super.setupParallax(({y:nt})=>{this.image.setParallaxProgress(nt.progress)})}}onRevealStart(){this.image.onResize(),this.image.animateIn()}onTransitionLeave(it){it!=="to-project"&&setTimeout(()=>{this.image.leave()},500)}async onLeaveToProject(it){it.contains(this.element)&&(await this.image.diveTo(),globalEvents.publish("barbaContinueTransition"))}onUnmount(){super.onUnmount(),this.image.destroy()}};class ImageFallback extends ImagesCommmon{constructor(){super(...arguments);Tt(this,"wrapper");Tt(this,"test")}create(){}async onMount(){this.element.style.opacity="0",this.wrapper=document.createElement("span"),this.element.replaceWith(this.wrapper),this.wrapper.appendChild(this.element),imageLoaded(this.element,()=>{this.setWrapperStyles()})}setWrapperStyles(){if(!this.element||!this.element.nodeType)return;const it=getComputedStyle(this.element);if(this.wrapper.style.aspectRatio=it.getPropertyValue("aspect-ratio"),this.wrapper.style.width=it.getPropertyValue("width"),this.wrapper.style.height=it.getPropertyValue("height"),this.wrapper.className="block relative overflow-clip",this.wrapper.style.transformOrigin=this.params.expression,this.element.classList.add("h-full","w-full","absolute","
11inset-0"),this.element.style.transformOrigin=this.params.expression,this.hasModifier("parallax")){this.element.style.aspectRatio="auto";const rt=this.getModifierValue("parallax",0);this.element.style.height=100+rt*2+"%",super.setupParallax(animate(this.element,{y:[`${-rt}%`,"0"]}))}}onRevealStart(){timeline([[this.element,{opacity:[0,1]},{duration:.4,at:0}],[this.element,{scale:[1.6,1]},{at:0,duration:1.8,easing:power4.out}],[this.wrapper,{scale:[.8,1]},{at:0,duration:1.8,easing:power4.out}]])}}const xImage=ifFeature("images3d",Image$1,ImageFallback),__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:xImage},Symbol.toStringTag,{value:"Module"}));class TriggeredAnimation{constructor(){Tt(this,"targets");Tt(this,"keyframes",{});Tt(this,"animationOptions",{autoplay:!1});Tt(this,"animation",null);Tt(this,"needsSplitLines",!1);Tt(this,"stagger",0);Tt(this,"bus",new EventBus)}addKeyframes(et){this.keyframes={...this.keyframes,...et}}addAnimationOptions(et){this.animationOptions={...this.animationOptions,...et}}setup(et,it=0){it?(this.targets=et.querySelectorAll("[stagger-item]"),this.animationOptions.delay=stagger(it),this.stagger=it):this.targets=resolveElements(et)}setDuration(et){this.animationOptions.duration=et/1e3}createAnimation(){!this.targets||this.targets.length===0||(this.animation=animate(this.targets,this.keyframes,this.animationOptions))}async play(){var et,it,rt,nt;this.targets.forEach((st,at)=>{setTimeout(()=>{var ot;(ot=this.bus)==null||ot.publish("startTarget",st)},at*this.stagger*1e3),setTimeout(()=>{var ot;(ot=this.bus)==null||ot.publish("endTarget",st)},((this.animationOptions.duration??0)+at*this.stagger)*1e3)}),(it=(et=this.animation)==null?void 0:et.play)==null||it.call(et),await((rt=this.animation)==null?void 0:rt.finished),(nt=this.onComplete)==null||nt.call(this)}onTargetStart(et){this.bus.subscribe("startTarget",et)}onTargetEnd(et){this.bus.subscribe("endTarget",et)}destroy(){var et;(et=this.animation)==null||et.stop(),this.animation=null,this.targets=null,this.keyframes=null,this.animationOptions=null,this.bus=null}}var __getOwnPropDesc$c=Object.getOwnPropertyDescriptor,__decorateClass$c=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$c(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};class BaseClip extends TriggeredAnimation{constructor(){super(),this.addAnimationOptions({duration:1.5,easing:power4.out}),this.addKeyframes({opacity:[0,1]})}onComplete(){var et;(et=this.targets)==null||et.forEach(it=>{it.style.clipPath=null})}}Tt(BaseClip,"SURROUNDING_CLIP","polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)");let ClipLeft=class extends BaseClip{constructor(){super(),this.addKeyframes({clipPath:["polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)",BaseClip.SURROUNDING_CLIP]})}};ClipLeft=__decorateClass$c([animation("clipLeft","enter")],ClipLeft);let ClipLeftTranslate=class extends ClipLeft{constructor(){super(),this.addKeyframes({x:[-32,0]})}};ClipLeftTranslate=__decorateClass$c([animation("clipLeftTranslate","enter")],ClipLeftTranslate);let ClipRight=class extends BaseClip{constructor(){super(),this.addKeyframes({clipPath:["polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%)",BaseClip.SURROUNDING_CLIP]})}};ClipRight=__decorateClass$c([animation("clipRight","enter")],ClipRight);
11let ClipRightTranslate=class extends ClipRight{constructor(){super(),this.addKeyframes({x:[32,0]})}};ClipRightTranslate=__decorateClass$c([animation("clipRightTranslate","enter")],ClipRightTranslate);let ClipTop=class extends BaseClip{constructor(){super(),this.addKeyframes({clipPath:["polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%)",BaseClip.SURROUNDING_CLIP]})}};ClipTop=__decorateClass$c([animation("clipTop","enter")],ClipTop);let ClipTopTranslate=class extends ClipTop{constructor(){super(),this.addKeyframes({y:[-32,0]})}};ClipTopTranslate=__decorateClass$c([animation("clipTopTranslate","enter")],ClipTopTranslate);let ClipBottom=class extends BaseClip{constructor(){super(),this.addKeyframes({clipPath:["polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%)",BaseClip.SURROUNDING_CLIP]})}};ClipBottom=__decorateClass$c([animation("clipBottom","enter")],ClipBottom);let ClipBottomTranslate=class extends ClipBottom{constructor(){super(),this.addKeyframes({y:[32,0]})}};ClipBottomTranslate=__decorateClass$c([animation("clipBottomTranslate","enter")],ClipBottomTranslate);var __getOwnPropDesc$b=Object.getOwnPropertyDescriptor,__decorateClass$b=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$b(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};class LineByLineAnimation extends TriggeredAnimation{constructor(it=0){super();Tt(this,"lineStagger");this.lineStagger=it}setup(it){it.hasAttribute("x-split-lines")||console.error("x-split-lines attribute is required for line by line animations, on",it),it.querySelectorAll(".line").forEach(nt=>nt.setAttribute("stagger-item","")),super.setup(it,this.lineStagger)}createAnimation(){super.createAnimation()}}let TitleEnter$1=class extends LineByLineAnimation{constructor(){super(.1),this.addKeyframes({opacity:[0,1],y:["100%",0],clipPath:["polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%)",BaseClip.SURROUNDING_CLIP]}),this.addAnimationOptions({duration:.7,easing:power3.out}),this.onTargetEnd(async et=>{for(let it=0;it<3;it++)await nextTick(),et.style.clipPath=null})}};TitleEnter$1=__decorateClass$b([animation("title","enter")],TitleEnter$1);let ClipReveal=class extends TriggeredAnimation{constructor(){super(),this.addKeyframes({opacity:[0,1],y:["100%",0],clipPath:["polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%)",BaseClip.SURROUNDING_CLIP]}),this.addAnimationOptions({duration:1.2,easing:power5.out})}onComplete(){var tt;(tt=this.targets)==null||tt.forEach(et=>{et.style.clipPath=null})}};ClipReveal=__decorateClass$b([animation("clipReveal","enter")],ClipReveal);let TitleLeave=class extends LineByLineAnimation{constructor(){super(.07),this.addKeyframes({opacity:[1,0],y:[0,"-80%"],clipPath:[BaseClip.SURROUNDING_CLIP,"polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%)"]}),this.addAnimationOptions({duration:.3,easing:power2.in})}onComplete(){var tt;(tt=this.targets)==null||tt.forEach(et=>{et.style.clipPath=null})}};TitleLeave=__decorateClass$b([animation("title","leave")],TitleLeave);let ClipCollage=class extends ClipLeftTranslate{constructor(){super(),this.addKeyframes({opacity:[0,0,0,1]})}};ClipCollage=__decorateClass$b([animation("clipCollage","enter")],ClipCollage);let TeamPortraits=class extends BaseClip{constructor(){super();Tt(this,"portraitImages")}setup(et,it){super.setup(et,it),this.portraitImages=[];for(const rt of this.targets){const nt=rt.querySelector(".portrait-image");nt&&this.portraitImages.push(nt)}}createAnimation(){if(!this.targets||this.targets.length===0)return;const et=1.2,it="20%";this.animation=timeline([[this.portraitImages,{opacity:[0,1]},{...this.animationOptions,duration:.4}],[this.portraitImages,{transform:[`scale(${et})`,"scale(1)"],clipPath:[`polygon(${it} ${it}, 100% ${it}, 100% 100%, ${it} 100%)`,BaseClip.SURROUNDING_CLIP]},{...this.animationOptions,duration:1.8,easing:power4.out,at:0}]])}};TeamPortraits=__decorateClass$b([animation("teamPortraits","enter")],TeamPortraits);var __getOwnPropDesc$a=Object.getOwnPropertyDescriptor,__decorateClass$a=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$a(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let NullAnimation=class extends TriggeredAnimation{constructor(){super(),this.addKeyframes({"--progress":[0,1]})}};NullAnimation=__decorateClass$a([animation("null","enter")],NullAnimation);let DefaultAnimation=class extends TriggeredAnimation{constructor(){super(),this.addKeyframes({y:[32,0],opacity:[0,1]}),this.addAnimationOptions({duration:1,easing:power3.out})}};DefaultAnimation=__decorateClass$a([animation("default","enter")],DefaultAnimation);var __getOwnPropDesc$9=Object.getOwnPropertyDescriptor,__decorateClass$9=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$9(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let TitleEnter=class extends TriggeredAnimation{constructor(){super(),this.addKeyframes({x:["100%",0],opacity:[0,1]}),this.addAnimationOptions({duration:1.2,easing:power4.out})}};TitleEnter=__decorateClass$9([animation("fullTranslateRight","enter")],TitleEnter);function getAnimation(tt,et){const it=window.animationsStore[et][tt];if(!it)throw new Error(`Animation ${tt} of type ${et} not found. Did you use @animationName on the subsequent class ?`);return new it}function animation(tt,et){return function(it){window.animationsStore||(window.animationsStore={enter:{},leave:{}}),window.animationsStore[et][tt]=it}}class AnimationTriggerDirective extends AlpineDirective{constructor(){super(...arguments);Tt(this,"animation");Tt(this,"animationName");Tt(this,"delay")}onMount(it="enter"){this.animationName=this.params.expression||"default",this.animation=getAnimation(this.animationName,it),this.delay=this.getModifierValue("delay",0);const rt=this.getModifierValue("duration",0);rt&&this.animation.setDuration(rt)}onUnmount(){var it;(it=this.animation)==null||it.destroy(),this.animation=null}}var __getOwnPropDesc$8=Object.getOwnPropertyDescriptor,__decorateClass$8=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$8(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let ScrollReveal$1=class extends AnimationTriggerDirective{onMount(){super.onMount("leave"),this.animation.setup(this.element,this.getModifierValue("stagger",0)/1e3)}async onTransitionLeave(){var et,it,rt,nt;this.animation.createAnimation(),this.element.dispatchEvent(new CustomEvent("leave-start")),await((et=this.animation)==null?void 0:et.play()),(it=this.element)==null||it.dispatchEvent(new CustomEvent("leave-end")),(nt=(rt=this.animation)==null?void 0:rt.onComplete)==null||nt.call(rt)}};ScrollReveal$1=__decorateClass$8([needsFeature("leaveEffect")],ScrollReveal$1);const __vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ScrollReveal$1}},Symbol.toStringTag,{value:"Module"}));class LinkBack extends AlpineDirective{onMount(){const et=this.getDomain(window.location.href),it=this.getDomain(document.referrer);(Z.history.previous||et===it)&&this.addEventListener("click",rt=>{rt.preventDefault(),rt.stopPropagation(),history.back()})}getDomain(et){if(!et)return;const it=et.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return it&&it[1]}}const __vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:LinkBack},Symbol.toStringTag,{value:"Module"})),ge=class ge extends AlpineDirective{constructor(){super(...arguments);Tt(this,"carouselInstance")}onMount(){this.onResize()}onResize(){let it=window.getComputedStyle(this.element).display!=="none";const rt=parseFloat(this.params.value);if(rt&&(it=it&&window.innerWidth<=rt),this.carouselInstance){if(it)return;this.carouselInstance.destroy(),this.carouselInstance=null}else it&&this.setupCarousel()}static async importCarousel(){if(!this.Carousel){const{Carousel:it}=await __vitePreload(async()=>{const{Carousel:rt}=await import("./carousel.esm-BoG6rxId.js");return{Carousel:rt}},[]);this.Carousel=it}return this.Carousel}async setupCarousel(){const it=await ge.importCarousel();this.carouselInstance=new it(this.element,{infinite:!1,Navigation:!1,transition:"fade"})}onUnmount(){var it;(it=this.carouselInstance)==null||it.destroy(),this.carouselInstance=null}};Tt(ge,"Carousel");let MobileCarousel=ge;const __vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:MobileCarousel},Symbol.toStringTag,{value:"Module"}));class MouseParallax extends AlpineDirective{onMount(){const et=this.element.querySelectorAll("[data-parallax]"),it=followCursor.getMousePosition(.1);this.utilities.effect(()=>{const rt=(it.x-window.innerWidth/2)/(window.innerWidth/2),nt=(it.y-window.innerHeight/2)/(window.innerHeight/2);et.forEach(st=>{const at=parseFloat(st.dataset.parallax);st.style.transform=`translate(${rt*at}px, ${nt*at}px)`})})}}const __vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:MouseParallax},Symbol.toStringTag,{value:"Module"}));var __getOwnPropDesc$7=Object.getOwnPropertyDescriptor,__decorateClass$7=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$7(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let ParentReveal=class extends AnimationTriggerDirective{onMount(){super.onMount("enter"),this.animation.setup(this.element,this.getModifierValue("stagger",0)/1e3),this.animation.createAnimation()}async onRevealStart(){var tt,et,it;await((tt=this.animation)==null?void 0:tt.play()),(it=(et=this.animation)==null?void 0:et.onComplete)==null||it.call(et)}onTransitionLeave(tt,et){var it;(it=this.animation)==null||it.destroy(),this.animation=null}};ParentReveal=__decorateClass$7([needsFeature("scrollReveal")],ParentReveal);const __vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ParentReveal}},Symbol.toStringTag,{value:"Module"}));var __getOwnPropDesc$6=Object.getOwnPropertyDescriptor,__decorateClass$6=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$6(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let ParticlesColor=class extends AlpineDirective{onMount(){const{effect:tt,evaluateLater:et}=this.utilities,it=et(this.params.expression),rt=getParticles();tt(()=>{it(nt=>{rt==null||rt.setColors(nt)})})}onUnmount(){var tt;document.querySelector("[x-particles-color]")||(tt=getParticles())==null||tt.resetColors()}};ParticlesColor=__decorateClass$6([needsFeature("particles")],ParticlesColor);const __vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ParticlesColor}},Symbol.toStringTag,{value:"Module"}));var __getOwnPropDesc$5=Object.getOwnPropertyDescriptor,__decorateClass$5=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$5(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let ParticlesShape=class extends SharedParticlesShapeDirective{constructor(){super(...arguments);Tt(this,"objectFit");Tt(this,"until");Tt(this,"shape");Tt(this,"transitionStarted",!1);Tt(this,"initial",!0)}async onMount(){var et;if(super.onMount(),!this.params.expression){console.error("Missing filename for particles shape directive");return}this.shape=this.params.expression,this.objectFit=this.params.value||"contain",this.until=this.getModifierValue("until"),await((et=this.particles)==null?void 0:et.registerShape(this.shape))}onPageReady(){var et;(et=this.particles)==null||et.setShape(this.shape,!0,1.5),this.onScroll(),this.updateSize(!1)}onScroll(et=getLenis()){var it,rt;this.until&&!this.transitionStarted&&(et.animatedScroll<this.until?(it=this.particles)==null||it.showShape():(rt=this.particles)==null||rt.hideShape()),this.updatePosition()}onTransitionLeave(){this.transitionStarted=!0}onResize(et){this.updateSize(),this.updatePosition()}updateSize(et=!0){var nt;const{width:it,height:rt}=this.element.getBoundingClientRect();(nt=this.particles)==null||nt.setShapeBounds(it,rt,this.objectFit,et)}updatePosition(){var st;
11const{left:et,top:it,width:rt,height:nt}=this.element.getBoundingClientRect();(st=this.particles)==null||st.setShapeCenter(et+rt/2,it+nt/2,!this.initial),this.initial&&(this.initial=!1)}onUnmount(){super.onUnmount(),this.particles=null}};ParticlesShape=__decorateClass$5([needsFeature("particlesShape")],ParticlesShape);const __vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ParticlesShape}},Symbol.toStringTag,{value:"Module"}));var __getOwnPropDesc$4=Object.getOwnPropertyDescriptor,__decorateClass$4=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$4(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let ScrollLerp=class extends AlpineDirective{async onMount(){this.params.value?this.params.value:this.setupScrollLerp(this.element,this.params.expression??-1)}setupScrollLerp(tt,et){Array.isArray(tt)||(tt=[tt]);let it=0,rt=0;const{evaluate:nt,evaluateLater:st,effect:at}=this.utilities;let ot=nt(et.toString())*-1,lt=st(et.toString());at(()=>{lt(ut=>{ot=ut*-1})});const ct=getLenis();let ht=ct.animatedScroll,dt=Date.now();this.addEventListenerTo(window,"scroll",()=>{dt=Date.now();const ut=ct.animatedScroll-ht;ht=ct.animatedScroll,it=ut*ot}),this.addRafFn(()=>{it!==0&&Date.now()-dt>10&&(it=0),rt=lerp(rt,it,.1),tt.forEach(ut=>{ut.style.transform=`translateY(${rt}px)`})})}};ScrollLerp=__decorateClass$4([needsFeature("scrollLerp")],ScrollLerp);const __vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ScrollLerp}},Symbol.toStringTag,{value:"Module"})),breakpoints={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px",xxl:"1536px","3xl":"1800px","4xl":"2000px"},getBreakpoint=tt=>tt.find(et=>breakpoints[et]),getBreakpointValue=tt=>breakpoints[getBreakpoint(tt)]??null;function declareElementMovesOnScroll(tt){tt.setAttribute("data-moves-on-scroll","")}function elementMovesOnScroll(tt){return!!tt.closest("[data-moves-on-scroll]")}var __getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$3=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$3(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let ScrollParallax=class extends AlpineDirective{constructor(){super(...arguments);Tt(this,"anim");Tt(this,"stopScrollListener");Tt(this,"direction");Tt(this,"media")}create(){declareElementMovesOnScroll(this.element)}async onMount(){this.direction=this.params.value||"center";const et=getBreakpointValue(this.params.modifiers);et&&(this.media=window.matchMedia(`(min-width: ${et})`)),this.setupParallax()}onResize(){this.destroyParallax(),this.setupParallax()}get enabled(){return this.media?this.media.matches:!0}computeAmplitude(){const et=parseFloat(this.params.expression);let it,rt;return this.params.expression.endsWith("%")?(rt="%",it=et):(rt="px",it=Math.round(et*window.innerHeight/1040)),this.element.style.setProperty("--parallax-amplitude",it.toString()+rt),{get val(){return it+rt},get doubleVal(){return 2*it+rt},get negativeVal(){return-1*it+rt},get doubleNegativeVal(){return-2*it+rt}}}setupParallax(){if(!this.enabled)return;const et=this.computeAmplitude();let it;switch(this.direction){case"forward":it=[0,et.doubleVal];break;case"backward":it=[et.doubleNegativeVal,0];break;case"center":default:it=[et.negativeVal,et.val]}this.anim=animate(this.element,{transform:[`translateY(${it[0]})`,`translateY(${it[1]})`]});const rt=this.hasModifier("parent");this.stopScrollListener=scroll(this.anim,{offset:["start end","end start"],target:rt?this.element.parentElement:this.element})}destroyParallax(){var et,it;(et=this.anim)==null||et.cancel(),this.anim=null,(it=this.stopScrollListener)==null||it.call(this)}onUnmount(){var et,it;(et=this.anim)==null||et.stop(),this.anim=null,(it=this.stopScrollListener)==null||it.call(this),this.stopScrollListener=null}};ScrollParallax=__decorateClass$3([needsFeature("parallax")],ScrollParallax);const __vite_glob_0_17=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ScrollParallax}},Symbol.toStringTag,{value:"Module"}));var __getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__decorateClass$2=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$2(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let ScrollReveal=class extends AnimationTriggerDirective{constructor(){super(...arguments);Tt(this,"margin");Tt(this,"visible",!1);Tt(this,"position",null);Tt(this,"stagger",!1)}create(){this.element.setAttribute("data-reveal",""),this.element.querySelectorAll(".line").forEach(et=>{et.setAttribute("data-reveal","")}),this.hasModifier("stagger")&&this.element.querySelectorAll("[stagger-item]").forEach(et=>{et.setAttribute("data-reveal","")})}onMount(){super.onMount("enter"),this.margin=this.getModifierValue("margin","-10%"),this.stagger=this.hasModifier("stagger"),this.animation.setup(this.element,this.getModifierValue("stagger",0)/1e3),this.animation.createAnimation(),this.animation.onTargetStart(et=>{et.dispatchEvent(new CustomEvent("reveal-start"))}),this.animation.onTargetEnd(et=>{et.dispatchEvent(new CustomEvent("reveal-end"))}),this.element.querySelectorAll("image").forEach(et=>{this.addEventListenerTo(et,"load",()=>{this.updateSize()})})}parseMargin(et){return this.margin.endsWith("%")?parseFloat(this.margin)/100*et:parseFloat(this.margin)}updateSize(){const{top:et,height:it}=this.element.getBoundingClientRect(),rt=et+window.scrollY,nt=this.parseMargin(it);this.position=rt-nt}onResize(et){this.updateSize()}onScroll(et){this.visible||this.position===null||this.checkVisible(et.animatedScroll)}checkVisible(et){et+window.innerHeight>this.position&&(this.visible=!0,this.doReveal())}async doReveal(){var et,it,rt;await delay(this.delay),this.stagger&&((et=this.element)==null||et.dispatchEvent(new CustomEvent("reveal-start"))),await((it=this.animation)==null?void 0:it.play()),this.stagger&&((rt=this.element)==null||rt.dispatchEvent(new CustomEvent("reveal-end")))}onTransitionLeave(){var et;(et=this.animation)==null||et.destroy(),this.animation=null}async onPageReady(){this.updateSize(),this.checkVisible(window.scrollY)}};ScrollReveal=__decorateClass$2([needsFeature("scrollReveal")],ScrollReveal);const __vite_glob_0_18=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ScrollReveal}},Symbol.toStringTag,{value:"Module"}));var __getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$1=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc$1(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let ScrollingText=class extends AlpineDirective{constructor(){super(...arguments);Tt(this,"contentDiv");Tt(this,"text");Tt(this,"spacingClass","pr-0.25em");Tt(this,"textWidth");Tt(this,"animationDuration");Tt(this,"transform",0);Tt(this,"playbackRate",1)}onMount(){this.text=this.element.textContent??"",this.element.classList.add("relative"),this.contentDiv=document.createElement("div"),this.contentDiv.className="absolute top-0 left-0 whitespace-nowrap flex",this.element.innerHTML="",this.element.appendChild(this.contentDiv),this.contentDiv.innerText=this.text,this.contentDiv.classList.add(this.spacingClass),this.textWidth=this.contentDiv.offsetWidth,this.contentDiv.classList.remove(this.spacingClass),this.onResize(),this.animationDuration=this.text.length/parseFloat(this.params.expression??"1"),this.element.style.height=this.contentDiv.offsetHeight+4+"px"}onScroll(et){this.playbackRate=Math.abs(et.velocity)/5+1}onRaf(et){const it=et.delta/1e3/this.animationDuration*this.textWidth*this.playbackRate;this.transform=(this.transform+it)%this.textWidth,this.contentDiv.style.transform=`translateX(-${this.transform}px)`}onResize(){const et=this.element.offsetWidth/this.textWidth,it=Math.ceil(et)+1;this.contentDiv.innerHTML="";for(let rt=0;rt<it;rt++){const nt=document.createElement("span");nt.className="block whitespace-nowrap shrink-0 "+this.spacingClass,nt.innerHTML=this.text.trim(),this.contentDiv.appendChild(nt)}}onUnmount(){this.contentDiv=null}};ScrollingText=__decorateClass$1([needsFeature("scrollingText")],ScrollingText);const __vite_glob_0_19=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ScrollingText}},Symbol.toStringTag,{value:"Module"}));class SkillIconDirective extends AlpineDirective{constructor(){super(...arguments);Tt(this,"icon");Tt(this,"linkParent");Tt(this,"color");Tt(this,"thickness")}async onMount(){const it=this.params.expression.replace(/(savoirfaire-|.svg)/g,"");let rt="contain";this.hasModifier("cover")&&(rt="cover"),this.color=this.params.value??"#131313",this.thickness=this.getModifierValue("thickness",100);const{default:nt}=await __vitePreload(async()=>{const{default:st}=await import("./SkillIcon-TvPMGTRr.js");return{default:st}},__vite__mapDeps([8,2,1,3,4]));this.icon=new nt(this.element,it,this.color,this.thickness/100,rt),await this.icon.onLoad(),this.element.style.opacity="0",this.hasModifier("look-mouse")&&this.icon.startLookingAtMouse(),this.linkParent=this.element.closest("a"),this.linkParent&&(this.addEventListenerTo(this.linkParent,"mouseover",()=>{this.icon.startRotate()}),this.addEventListenerTo(this.linkParent,"mouseleave",()=>{this.icon.stopRotate()}))}onRevealStart(){this.icon.onResize(),this.icon.animateIn()}onTransitionLeave(it){this.icon.animateOut()}onUnmount(){this.icon.destroy(),this.icon=null}}class SkillIconFallback extends AlpineDirective{create(){this.hasModifier("mobile-reveal")&&this.element.setAttribute("x-parent-reveal","default")}}
11const xSkillIcon=ifFeature("skillIcons",SkillIconDirective,SkillIconFallback),__vite_glob_0_20=Object.freeze(Object.defineProperty({__proto__:null,default:xSkillIcon},Symbol.toStringTag,{value:"Module"})),regexBefore=/\s[\\?:!»]/gm,replaceBefore=tt=>` ${tt.trim()}`,regexAfter=/[«]\s/gm,replaceAfter=tt=>`${tt.trim()} `,typoFixInString=tt=>tt.replace(regexBefore,replaceBefore).replace(regexAfter,replaceAfter);function searchReplaceInDom(tt,et){for(let it of tt.childNodes)switch(it.nodeType){case Node.ELEMENT_NODE:searchReplaceInDom(it,et);break;case Node.TEXT_NODE:it.textContent=et(it.textContent);break;case Node.DOCUMENT_NODE:searchReplaceInDom(it,et)}}const typoFix=(tt=document.body)=>{searchReplaceInDom(tt,typoFixInString)};Z.hooks.beforeEnter(tt=>{typoFix(tt.next.container)});class SplitLines extends AlpineDirective{constructor(){super(...arguments);Tt(this,"lineHeight")}create(){typoFix(this.element),this.prepareMultilineChildren(),this.setupSplit(),this.addEventListenerTo(document.fonts,"loadingdone",this.onResize.bind(this))}onResize(){this.unSplitLines(),this.setupSplit()}setupSplit(){this.lineHeight=parseFloat(getComputedStyle(this.element).getPropertyValue("line-height")),this.splitWords(),this.splitLines()}prepareMultilineChildren(){var rt;const it=this.element.querySelectorAll(":scope > em");for(const nt of it){const st=document.createDocumentFragment(),at=Array.from(nt.childNodes);
11for(const ot of at)if(ot.nodeType===Node.TEXT_NODE){const lt=(rt=ot.textContent)==null?void 0:rt.split(" ");for(const ct of lt){const ht=document.createElement("em");ht.textContent=ct,st.appendChild(ht),st.append(" ")}}else ot.classList.add("em"),st.appendChild(ot);nt.replaceWith(st)}}splitWords(){var nt;const it=Array.from(this.element.childNodes),rt=()=>{const st=document.createElement("span");st.textContent=" ",st.classList.add("whitespace"),this.element.appendChild(st)};for(let st=0;st<it.length;st++){const at=it[st];if(at.nodeType===Node.TEXT_NODE){if(at.textContent.length===0)continue;const ot=(nt=at.textContent)==null?void 0:nt.split(" ");for(let lt=0;lt<ot.length;lt++){const ct=ot[lt];if(ct.trim().length===0)continue;const ht=document.createElement("span");ht.classList.add("word"),ht.textContent=ct,this.element.appendChild(ht),lt<ot.length-1&&rt()}at.remove()}else this.element.appendChild(at),st<it.length-1&&rt()}}splitLines(){const it=this.element.children;let rt,nt=[],st=[];for(const at of it){if(at.classList.contains("whitespace")){st.push(at);continue}const ot=at.getBoundingClientRect();rt&&Math.abs(ot.top-rt.top)>this.lineHeight*.2&&(nt.push(st),st=[]),st.push(at),rt=ot}nt.push(st),nt.forEach(at=>this.createLine(at))}createLine(it){const rt=document.createElement("span");this.element.appendChild(rt),rt.classList.add("line"),it.forEach(nt=>rt.appendChild(nt)),this.mergeLineWords(rt)}mergeLineWords(it){this.unWrapNodes(it,["word","whitespace"])}unSplitLines(){this.unWrapNodes(this.element,["line"])}unWrapNodes(it,rt){const nt=Array.from(it.childNodes);for(let st=0;st<nt.length;st++){const at=nt[st];rt.some(ot=>{var lt;return(lt=at.classList)==null?void 0:lt.contains(ot)})?(it.append(...at.childNodes),at.remove()):it.appendChild(at)}it.normalize()}}const __vite_glob_0_21=Object.freeze(Object.defineProperty({__proto__:null,default:SplitLines},Symbol.toStringTag,{value:"Module"}));class TestError extends AlpineDirective{onMount(){throw console.log("hello"),new Error("This is just a test error")}}const __vite_glob_0_22=Object.freeze(Object.defineProperty({__proto__:null,default:TestError},Symbol.toStringTag,{value:"Module"})),localStorageSupported=()=>{try{const tt="__storage_test__";return localStorage.setItem(tt,tt),localStorage.removeItem(tt),!0}catch{return console.warn("localStorage is unsupported or unavailable"),!1}},effects={underline:{file:"SouligneLong.svg",classes:"absolute left-0 top-100% w-full h-auto -translate-y-1/2",animationDuration:400},linethrough:{file:"SouligneLong.svg",classes:"absolute -left-10% top-1/2 w-120% h-auto",animationDuration:400},sideline:{file:"SideLine.svg",classes:"absolute -left-2 top-0 h-full w-auto",animationDuration:400},sideline2:{file:"SideLine2.svg",classes:"absolute -left-2 top-0 h-full w-auto",animationDuration:400},underlineSmall:{file:"SoulignePetit.svg",classes:"absolute left-0 top-100% w-full h-auto -translate-y-1/2",animationDuration:400},underlineZigzag:{file:"SouligneZigzag.svg",classes:"absolute left-0 top-93% w-full h-auto",animationDuration:400},underlineSkew:{file:"SouligneTravers.svg",classes:"absolute left-0 top-100% w-full h-auto -translate-y-1/2",animationDuration:400},rounded:{file:"Entoure01.svg",classes:"absolute -inset-10% h-120% w-120%",animationDuration:500},roundedFat:{file:"EntoureFat.svg",classes:"absolute -top-10% -left-20% h-120% w-140%",animationDuration:500},roundedSmall:{file:"EntourePetit.svg",classes:"absolute -inset-10% h-120% w-120%",animationDuration:500},quote:{file:"quote.svg",classes:"absolute inset-0 w-full",animationDuration:500}};class TextEffect{constructor(et,it){Tt(this,"framesPaths",[]);Tt(this,"currentFrame",0);Tt(this,"path");Tt(this,"pathLength");Tt(this,"running",!1);Tt(this,"svg");Tt(this,"raf");Tt(this,"onAnimateOutTimeout");Tt(this,"effectName");Tt(this,"eventCleaners",[]);Tt(this,"fpsInterval",1e3/10);Tt(this,"lastFrame",0);Tt(this,"lastAnimation",0);if(this.element=et,!it){const st=["linethrough","sideline","sideline2","underlineSmall","roundedSmall","quote"],at=Object.keys(effects).filter(ot=>!st.includes(ot));it=at[Math.floor(Math.random()*at.length)]}if(this.effectName=it,!this.effect)throw new Error(`Text effect ${this.effectName} not found`);const rt=st=>{this.onRaf(st),this.raf=requestAnimationFrame(rt)};rt(performance.now());const nt=this.onResize.bind(this);window.addEventListener("resize",nt),this.eventCleaners.push(()=>window.removeEventListener("resize",nt)),setTimeout(()=>{this.setSizes()},2e3)}async setupEffect(){if(!this.effect)return;let et;const it="text-effect-"+this.effect.file+window.wnkExposed.themeVersion;localStorageSupported()&&(et=localStorage.getItem(it)),et==null&&(et=await fetch(window.wnkExposed.themePath+"/www/img/text-effects/"+this.effect.file).then(rt=>rt.text()),localStorageSupported()&&localStorage.setItem(it,et)),this.svg=new DOMParser().parseFromString(et,"image/svg+xml").documentElement,this.element&&(this.element.prepe
11nd(this.svg),this.svg.classList.add("pointer-events-none",...this.effect.classes.split(" ")),this.svg.querySelectorAll("path").forEach((rt,nt)=>{this.framesPaths.push(rt.getAttribute("d")),nt===0?this.path=rt:rt.remove()}),this.path&&(this.path.setAttribute("d",this.framesPaths[this.currentFrame]),this.path.setAttribute("stroke","currentColor"),this.path.setAttribute("vector-effect","non-scaling-stroke"),this.svg.setAttribute("preserveAspectRatio","none"),this.path.style.opacity="0"),this.setSizes())}setSizes(){const et=clamp(parseFloat(getComputedStyle(this.element).getPropertyValue("font-size"))/16,1,2);this.path&&(this.path.setAttribute("stroke-width",et.toString()),this.updatePathLength(),this.path.style.strokeDasharray=this.pathLength.toString(),this.path.style.strokeDashoffset=this.running?"0":this.pathLength.toString())}get effect(){return effects[this.effectName]}updatePathLength(){if(!this.path)return;const et=this.path.getBoundingClientRect().width/this.path.getBBox().width,it=this.path.getBoundingClientRect().height/this.path.getBBox().height,rt=(et+it)/2;this.pathLength=this.path.getTotalLength()*rt*1.2}async animatePath(et,it=null){var st;if(!this.path)return;this.lastAnimation++;const rt=this.lastAnimation,nt=this.effect.animationDuration;this.path.style.transition=`stroke-dashoffset ${nt}ms steps(${Math.round(20*nt/1e3)}), stroke-dasharray ${nt}ms steps(${Math.round(20*nt/1e3)})`,await et(),await delay(nt+10),rt===this.lastAnimation&&it&&(st=this.path)!=null&&st.style&&(this.path.style.transition="none",it())}async animateIn(){this.running||(this.running=!0,await this.animatePath(()=>{this.path.style.strokeDashoffset="0",this.path.style.opacity="1"}))}async animateOut(){this.currentFrame=0,await nextTick(),this.running=!1,this.path&&await this.animatePath(()=>{this.path.style.strokeDashoffset=(-this.pathLength).toString()},()=>{this.path.style.opacity="0",this.path.style.strokeDashoffset=this.pathLength.toString()})}async onResize(et){await nextTick(),this.setSizes()}randomFrame(){let et=Math.floor(Math.random()*this.framesPaths.length);et===this.currentFrame&&(et=(et+1)%this.framesPaths.length),this.currentFrame=et}onRaf(et){if(!this.path||!this.running)return;const it=et-this.lastFrame;it<this.fpsInterval||(this.lastFrame=et-it%this.fpsInterval,this.path.setAttribute("d",this.framesPaths[this.currentFrame]),this.randomFrame())}destroy(){var et;this.running=!1,(et=this.path)==null||et.remove(),this.path=null,this.eventCleaners.forEach(it=>it()),cancelAnimationFrame(this.raf)}}var __getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=(tt,et,it,rt)=>{for(var nt=rt>1?void 0:rt?__getOwnPropDesc(et,it):et,st=tt.length-1,at;st>=0;st--)(at=tt[st])&&(nt=at(nt)||nt);return nt};let TextEffectDirective=class extends AlpineDirective{constructor(){super(...arguments);Tt(this,"effect");Tt(this,"linkParent");Tt(this,"manualReveal");Tt(this,"noReveal")}async onMount(){this.effect=new TextEffect(this.element,this.params.expression),await this.effect.setupEffect(),this.linkParent=this.element.closest("a"),this.linkParent&&(this.addEventListenerTo(this.linkParent,"mouseover",et=>{this.effect.animateIn()}),this.addEventListenerTo(this.linkParent,"mouseleave",et=>{et.currentTarget===et.target&&this.effect.animateOut()})),this.manualReveal=this.hasModifier("manual-reveal"),this.noReveal=this.hasModifier("no-reveal"),(this.noReveal||!this.manualReveal&&!this.isInsideReveal&&!this.linkParent)&&this.effect.animateIn()}onRevealEnd(){this.manualReveal||this.effect.animateIn()}onTransitionLeave(){this.effect.animateOut()}onUnmount(){this.effect.destroy(),this.effect=null}};TextEffectDirective=__decorateClass([needsFeature("textEffects")],TextEffectDirective);const __vite_glob_0_23=Object.freeze(Object.defineProperty({__proto__:null,get default(){return TextEffectDirective}},Symbol.toStringTag,{value:"Module"})),directivesImports=Object.assign({"./x-background-transition.ts":__vite_glob_0_0$1,"./x-background.ts":__vite_glob_0_1$1,"./x-blob.ts":__vite_glob_0_2$1,"./x-cursor-icon.ts":__vite_glob_0_3$1,"./x-cursor-text.ts":__vite_glob_0_4$1,"./x-emblem.ts":__vite_glob_0_5$1,"./x-fast-spinner.ts":__vite_glob_0_6$1,"./x-fixed-particles-shape.ts":__vite_glob_0_7$1,"./x-image.ts":__vite_glob_0_8,"./x-leave-effect.ts":__vite_glob_0_9,"./x-link-back.ts":__vite_glob_0_10,"./x-mobile-carou
11sel.ts":__vite_glob_0_11,"./x-mouse-parallax.ts":__vite_glob_0_12,"./x-parent-reveal.ts":__vite_glob_0_13,"./x-particles-color.ts":__vite_glob_0_14,"./x-particles-shape.ts":__vite_glob_0_15,"./x-scroll-lerp.ts":__vite_glob_0_16,"./x-scroll-parallax.ts":__vite_glob_0_17,"./x-scroll-reveal.ts":__vite_glob_0_18,"./x-scrolling-text.ts":__vite_glob_0_19,"./x-skill-icon.ts":__vite_glob_0_20,"./x-split-lines.ts":__vite_glob_0_21,"./x-test-error.ts":__vite_glob_0_22,"./x-text-effect.ts":__vite_glob_0_23});function directives(){attrStartsWith("*","x-").forEach(et=>{!et.getAttribute("x-data")&&!et.closest("[x-data]")&&et.setAttribute("x-data","")});for(const[et,it]of Object.entries(directivesImports)){const rt=et.replace("./x-","").replace(".ts",""),nt=it.default;nt.prototype instanceof AlpineDirective&&module_default$1.directive(rt,(st,at,ot)=>{var lt;try{let ct=new nt(st,at,ot);((lt=ct.create)==null?void 0:lt.call(ct))instanceof Promise&&console.warn(`Warn: Directive create method can't be async. In directive ${ct.params.type}.`),ot.cleanup(()=>{ct=null})}catch(ct){console.error(`Error while initializing directive ${rt}`,ct)}})}}class Loader{constructor(){Tt(this,"element");Tt(this,"letters");Tt(this,"loading",!0);Tt(this,"animation");Tt(this,"duration",.7);Tt(this,"appearPromise")}setup(){this.element=document.querySelector("#loader"),this.letters=this.element.querySelectorAll(".loader-letter"),this.appearPromise=this.appear()}async appear(){for(const et of this.letters)et.classList.remove("opacity-0"),await delay(this.duration*500/this.letters.length);this.animation=animate(et=>{this.onFrame(et)},{duration:this.duration,repeat:1/0,easing:"linear"}),await delay(this.duration*500)}async disappear(){for(const et of this.letters)et.classList.add("opacity-0"),await delay(this.duration*500/this.letters.length);this.letters.forEach(et=>et.classList.remove("light"))}onFrame(et){const it=Math.floor(clamp(et*2,0,.99)*this.letters.length),rt=Math.floor(clamp((et-.5)*2,0,.99)*this.letters.length);this.letters.forEach((nt,st)=>{nt.classList.toggle("light",st<=it&&st>=rt)})}async finish(){await this.appearPromise,this.animation.stop(),this.element.classList.add("loaded"),await this.disappear(),this.loading=!1,await delay(100)}async start(){this.appearPromise=this.appear(),this.loading=!0}}const loader=new Loader;class Lifecycle{constructor(){Tt(this,"mountingDirectives",[]);globalEvents.subscribe("registerMountDirective",this.registerDirective.bind(this)),globalEvents.subscribe("directiveMounted",this.unregisterDirective.bind(this))}registerDirective(et){this.mountingDirectives.push(et)}unregisterDirective(et){const it=this.mountingDirectives.indexOf(et);it!==-1&&(this.mountingDirectives.splice(it,1),this.mountingDirectives.length===0&&this.afterInit())}initPage(){globalEvents.publish("mountDirectives")}async afterInit(){loader.loading&&await loader.finish(),globalEvents.publish("pageReady")}}const lifecycle=new Lifecycle,backgroundsWrapper=document.querySelector("#backgrounds");function getNextPageBackgroundColor(tt){var rt,nt,st,at;if(tt.nextPageColor)return tt.nextPageColor;let et="";const it=document.querySelector("#loader");if((nt=(rt=tt.trigger).hasAttribute)!=null&&nt.call(rt,"next-background"))et=tt.trigger.getAttribute("next-background"),it.classList.add(getColorLuminance(et)>.5?"force-black":"force-white");else{it.classList.remove("force-black","force-white");const ot=tt.next.url.path==="/"?"/":tt.next.url.path.slice(1);et=((at=(st=window.wnkExposed)==null?void 0:st.xback)==null?void 0:at[ot])??"#131313"}return tt.nextPageColor=et,et}function setAllBackgroundsToColor(tt,et){const it=document.querySelectorAll(".background-square");for(const rt of it)et&&(rt.style.transitionDuration=et.toString()+"s"),rt.style.backgroundColor=tt}function initBarba(){const tt=()=>document.querySelectorAll("#wpadminbar a").forEach(et=>et.setAttribute("data-barba-prevent","self"));Z.init({debug:isDev(),prefetchIgnore:!0,timeout:1e4,transitions:[{name:"to-project",from:{custom:et=>{var it,rt;return canIUse("images3d")&&((rt=(it=et.trigger)==null?void 0:it.getAttribute)==null?void 0:rt.call(it,"data-barba-to-project"))===""}}
11,async leave(et){const it=getNextPageBackgroundColor(et);setAllBackgroundsToColor(it,.6),animate(et.current.container,{opacity:0},{duration:.4}),globalEvents.publish("barbaTransitionToImage",et.trigger),setTimeout(()=>{animate(document.body,{backgroundColor:it},{duration:.6})},600),await globalEvents.once("barbaContinueTransition"),getLenis().scrollTo(0,{immediate:!0})},async enter(et){lifecycle.initPage(),backgroundsWrapper.style.opacity="1",et.next.container.style.visibility="hidden",et.current.container.style.display="none",await globalEvents.once("pageReady"),et.next.container.style.visibility=null,setTimeout(()=>{document.body.style.backgroundColor=""},2e3)}},{name:"default-transition",async leave(et,it=!0){const rt=getNextPageBackgroundColor(et);setAllBackgroundsToColor(rt),await animate(document.body,{backgroundColor:rt},{duration:.4}).finished,await animate(et.current.container,{opacity:0},{duration:.4}).finished,loader.start(),getLenis().scrollTo(0,{immediate:!0})},async enter(et){lifecycle.initPage(),et.next.container.style.visibility="hidden",et.current.container.style.display="none",await globalEvents.once("pageReady"),et.next.container.style.visibility=null,setTimeout(()=>{document.body.style.backgroundColor=""},2e3)}}]}),Z.hooks.before((et,it)=>{window.dispatchEvent(new CustomEvent("close-menu"));const rt=getNextPageBackgroundColor(et);window.dispatchEvent(new CustomEvent("barba-start",{detail:{name:it.name,nextPageColor:rt}}))}),Z.hooks.after(()=>{window.dispatchEvent(new CustomEvent("barba-end")),getLenis().resize()}),tt(),"scrollRestoration"in history&&(history.scrollRestoration="manual")}function ownKeys(tt,et){var it=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);et&&(rt=rt.filter(function(nt){return Object.getOwnPropertyDescriptor(tt,nt).enumerable})),it.push.apply(it,rt)}return it}function _objectSpread2(tt){for(var et=1;et<arguments.length;et++){var it=arguments[et]!=null?arguments[et]:{};et%2?ownKeys(Object(it),!0).forEach(function(rt){_defineProperty(tt,rt,it[rt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(tt,Object.getOwnPropertyDescriptors(it)):ownKeys(Object(it)).forEach(function(rt){Object.defineProperty(tt,rt,Object.getOwnPropertyDescriptor(it,rt))})}return tt}function asyncGeneratorStep(tt,et,it,rt,nt,st,at){try{var ot=tt[st](at),lt=ot.value}catch(ct){return void it(ct)}ot.done?et(lt):Promise.resolve(lt).then(rt,nt)}function _asyncToGenerator(tt){return function(){var et=this,it=arguments;return new Promise(function(rt,nt){var st=tt.apply(et,it);function at(lt){asyncGeneratorStep(st,rt,nt,at,ot,"next",lt)}function ot(lt){asyncGeneratorStep(st,rt,nt,at,ot,"throw",lt)}at(void 0)})}}function _defineProperty(tt,et,it){return et in tt?Object.defineProperty(tt,et,{value:it,enumerable:!0,configurable:!0,writable:!0}):tt[et]=it,tt}function _taggedTemplateLiteral(tt,et){return et||(et=tt.slice(0)),Object.freeze(Object.defineProperties(tt,{raw:{value:Object.freeze(et)}}))}function __decorate(tt,et,it,rt){var nt,st=arguments.length,at=st<3?et:rt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")at=Reflect.decorate(tt,et,it,rt);else for(var ot=tt.length-1;ot>=0;ot--)(nt=tt[ot])&&(at=(st<3?nt(at):st>3?nt(et,it,at):nt(et,it))||at);return st>3&&at&&Object.defineProperty(et,it,at),at}var t$3=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e$8=Symbol(),n$5=new Map;class s$3{constructor(et,it){if(this._$cssResult$=!0,it!==e$8)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=et}get styleSheet(){var et=n$5.get(this.cssText);return t$3&&et===void 0&&(n$5.set(this.cssText,et=new CSSStyleSheet),et.replaceSync(this.cssText)),et}toString(){return this.cssText}}var o$5=tt=>new s$3(typeof tt=="string"?tt:tt+"",e$8),r$3=function(tt){for(var et=arguments.length,it=new Array(et>1?et-1:0),rt=1;rt<et;rt++)it[rt-1]=arguments[rt];var nt=tt.length===1?tt[0]:it.reduce((st,at,ot)=>st+(lt=>{if(lt._$cssResult$===!0)return lt.cssText;if(typeof lt=="number")return lt;throw Error("Value passed to 'css' function must be a 'css' function result: "+lt+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(at)+tt[ot+1],tt[0]);return new s$3(nt,e$8)},i$3=(tt,et)=>{t$3?tt.adoptedStyleSheets=et.map(it=>it instanceof CSSStyleSheet?it:it.styleSheet):et.forEach(it=>{var rt=document.createElement("style"),nt=window.litNonce;
11nt!==void 0&&rt.setAttribute("nonce",nt),rt.textContent=it.cssText,tt.appendChild(rt)})},S$1=t$3?tt=>tt:tt=>tt instanceof CSSStyleSheet?(et=>{var it="";for(var rt of et.cssRules)it+=rt.cssText;return o$5(it)})(tt):tt,s$2,e$7=window.trustedTypes,r$2=e$7?e$7.emptyScript:"",h$2=window.reactiveElementPolyfillSupport,o$4={toAttribute(tt,et){switch(et){case Boolean:tt=tt?r$2:null;break;case Object:case Array:tt=tt==null?tt:JSON.stringify(tt)}return tt},fromAttribute(tt,et){var it=tt;switch(et){case Boolean:it=tt!==null;break;case Number:it=tt===null?null:Number(tt);break;case Object:case Array:try{it=JSON.parse(tt)}catch{it=null}}return it}},n$4=(tt,et)=>et!==tt&&(et==et||tt==tt),l$3={attribute:!0,type:String,converter:o$4,reflect:!1,hasChanged:n$4},t$2;class a$1 extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(et){var it;(it=this.l)!==null&&it!==void 0||(this.l=[]),this.l.push(et)}static get observedAttributes(){this.finalize();var et=[];return this.elementProperties.forEach((it,rt)=>{var nt=this._$Eh(rt,it);nt!==void 0&&(this._$Eu.set(nt,rt),et.push(nt))}),et}static createProperty(et){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l$3;if(it.state&&(it.attribute=!1),this.finalize(),this.elementProperties.set(et,it),!it.noAccessor&&!this.prototype.hasOwnProperty(et)){var rt=typeof et=="symbol"?Symbol():"__"+et,nt=this.getPropertyDescriptor(et,rt,it);nt!==void 0&&Object.defineProperty(this.prototype,et,nt)}}static getPropertyDescriptor(et,it,rt){return{get(){return this[it]},set(nt){var st=this[et];this[it]=nt,this.requestUpdate(et,st,rt)},configurable:!0,enumerable:!0}}static getPropertyOptions(et){return this.elementProperties.get(et)||l$3}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var et=Object.getPrototypeOf(this);if(et.finalize(),this.elementProperties=new Map(et.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var it=this.properties,rt=[...Object.getOwnPropertyNames(it),...Object.getOwnPropertySymbols(it)];for(var nt of rt)this.createProperty(nt,it[nt])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(et){var it=[];if(Array.isArray(et)){var rt=new Set(et.flat(1/0).reverse());for(var nt of rt)it.unshift(S$1(nt))}else et!==void 0&&it.push(S$1(et));return it}static _$Eh(et,it){var rt=it.attribute;return rt===!1?void 0:typeof rt=="string"?rt:typeof et=="string"?et.toLowerCase():void 0}o(){var et;this._$Ep=new Promise(it=>this.enableUpdating=it),this._$AL=new Map,this._$Em(),this.requestUpdate(),(et=this.constructor.l)===null||et===void 0||et.forEach(it=>it(this))}addController(et){var it,rt;((it=this._$Eg)!==null&&it!==void 0?it:this._$Eg=[]).push(et),this.renderRoot!==void 0&&this.isConnected&&((rt=et.hostConnected)===null||rt===void 0||rt.call(et))}removeController(et){var it;(it=this._$Eg)===null||it===void 0||it.splice(this._$Eg.indexOf(et)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((et,it)=>{this.hasOwnProperty(it)&&(this._$Et.set(it,this[it]),delete this[it])})}createRenderRoot(){var et,it=(et=this.shadowRoot)!==null&&et!==void 0?et:this.attachShadow(this.constructor.shadowRootOptions);return i$3(it,this.constructor.elementStyles),it}connectedCallback(){var et;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(et=this._$Eg)===null||et===void 0||et.forEach(it=>{var rt;return(rt=it.hostConnected)===null||rt===void 0?void 0:rt.call(it)})}enableUpdating(et){}disconnectedCallback(){var et;(et=this._$Eg)===null||et===void 0||et.forEach(it=>{var rt;return(rt=it.hostDisconnected)===null||rt===void 0?void 0:rt.call(it)})}attributeChangedCallback(et,it,rt){this._$AK(et,rt)}_$ES(et,it){var rt,nt,st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l$3,at=this.constructor._$Eh(et,st);if(at!==void 0&&st.reflect===!0){var ot=((nt=(rt=st.converter)===null||rt===void 0?void 0:rt.toAttribute)!==null&&nt!==void 0?nt:o$4.toAttribute)(it,st.type);this._$Ei=et,ot==null?this.removeAttribute(at):this.setAttribute(at,ot),this._$Ei=null}}_$AK(et,it){var rt,nt,st,at=this.constructor,ot=at._$Eu.get(et);if(ot!==void 0&&this._$Ei!==ot){var lt=at.getPropertyOptions(ot),ct=lt.converter,ht=(st=(nt=(rt=ct)===null||rt===void 0?void 0:rt.fromAttribute)!==null&&nt!==void 0?nt:typeof ct=="function"?ct:null)!==null&&st!==void 0?st:o$4.fromAttribute;this._$Ei=ot,this[ot]=ht(it,lt.type),this._$Ei=null}}requestUpdate(et,it,rt){var nt=!0;et!==void 0&&(((rt=rt||this.constructor.getPropertyOptions(et)).hasChanged||n$4)(this[et],it)?(this._$AL.has(et)||this._$AL.set(et,it),rt.reflect===!0&&this._$Ei!==et&&(this._$E_===void 0&&(this._$E_=new Map),this._$E_.set(et,rt))):nt=!1),!this.isUpdatePending&&nt&&(this._$Ep=this._$EC())}_$EC(){var et=this;return _asyncToGenerator(function*(){et.isUpdatePending=!0;try{yield et._$Ep}catch(rt){Promise.reject(rt)}var it=et.scheduleUpdate();return it!=null&&(yield it),!et.isUpdatePending})()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var et;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach((nt,st)=>this[st]=nt),this._$Et=void 0);var it=!1,rt=this._$AL;try{(it=this.shouldUpdate(rt))?(this.willUpdate(rt),(et=this._$Eg)===null||et===void 0||et.forEach(nt=>{var st;return(st=nt.hostUpdate)===null||st===void 0?void 0:st.call(nt)}),this.update(rt)):this._$EU()}catch(nt){throw it=!1,this._$EU(),nt}it&&this._$AE(rt)}}willUpdate(et){}_$AE(et){var it;(it=this._$Eg)===null||it===void 0||it.forEach(rt=>{var nt;return(nt=rt.hostUpdated)===null||nt===void 0?void 0:nt.call(rt)}
11),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(et)),this.updated(et)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(et){return!0}update(et){this._$E_!==void 0&&(this._$E_.forEach((it,rt)=>this._$ES(rt,this[rt],it)),this._$E_=void 0),this._$EU()}updated(et){}firstUpdated(et){}}a$1.finalized=!0,a$1.elementProperties=new Map,a$1.elementStyles=[],a$1.shadowRootOptions={mode:"open"},h$2==null||h$2({ReactiveElement:a$1}),((s$2=globalThis.reactiveElementVersions)!==null&&s$2!==void 0?s$2:globalThis.reactiveElementVersions=[]).push("1.2.1");var i$2=globalThis.trustedTypes,s$1=i$2?i$2.createPolicy("lit-html",{createHTML:tt=>tt}):void 0,e$6="lit$".concat((Math.random()+"").slice(9),"$"),o$3="?"+e$6,n$3="<".concat(o$3,">"),l$2=document,h$1=function(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return l$2.createComment(tt)},r$1=tt=>tt===null||typeof tt!="object"&&typeof tt!="function",d=Array.isArray,u=tt=>{var et;return d(tt)||typeof((et=tt)===null||et===void 0?void 0:et[Symbol.iterator])=="function"},c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,a=/>/g,f=/>|[ 	\n�\r](?:([^\s"'>=/]+)([ 	\n�\r]*=[ 	\n�\r]*(?:[^ 	\n�\r"'`<>=]|("|')|))|$)/g,_=/'/g,m=/"/g,g=/^(?:script|style|textarea)$/i,p=tt=>function(et){for(var it=arguments.length,rt=new Array(it>1?it-1:0),nt=1;nt<it;nt++)rt[nt-1]=arguments[nt];return{_$litType$:tt,strings:et,values:rt}},$=p(1),b=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),T=new WeakMap,x=(tt,et,it)=>{var rt,nt,st=(rt=it==null?void 0:it.renderBefore)!==null&&rt!==void 0?rt:et,at=st._$litPart$;if(at===void 0){var ot=(nt=it==null?void 0:it.renderBefore)!==null&&nt!==void 0?nt:null;st._$litPart$=at=new N(et.insertBefore(h$1(),ot),ot,void 0,it??{})}return at._$AI(tt),at},A=l$2.createTreeWalker(l$2,129,null,!1),C=(tt,et)=>{for(var it,rt=tt.length-1,nt=[],st=et===2?"<svg>":"",at=c,ot=0;ot<rt;ot++){for(var lt=tt[ot],ct=void 0,ht=void 0,dt=-1,ut=0;ut<lt.length&&(at.lastIndex=ut,(ht=at.exec(lt))!==null);)ut=at.lastIndex,at===c?ht[1]==="!--"?at=v:ht[1]!==void 0?at=a:ht[2]!==void 0?(g.test(ht[2])&&(it=RegExp("</"+ht[2],"g")),at=f):ht[3]!==void 0&&(at=f):at===f?ht[0]===">"?(at=it??c,dt=-1):ht[1]===void 0?dt=-2:(dt=at.lastIndex-ht[2].length,ct=ht[1],at=ht[3]===void 0?f:ht[3]==='"'?m:_):at===m||at===_?at=f:at===v||at===a?at=c:(at=f,it=void 0);var gt=at===f&&tt[ot+1].startsWith("/>")?" ":"";st+=at===c?lt+n$3:dt>=0?(nt.push(ct),lt.slice(0,dt)+"$lit$"+lt.slice(dt)+e$6+gt):lt+e$6+(dt===-2?(nt.push(void 0),ot):gt)}var mt=st+(tt[rt]||"<?>")+(et===2?"</svg>":"");if(!Array.isArray(tt)||!tt.hasOwnProperty("raw"))throw Error("invalid template strings array");return[s$1!==void 0?s$1.createHTML(mt):mt,nt]};class E{constructor(et,it){var rt,{strings:nt,_$litType$:st}=et;this.parts=[];var at=0,ot=0,lt=nt.length-1,ct=this.parts,[ht,dt]=C(nt,st);if(this.el=E.createElement(ht,it),A.currentNode=this.el.content,st===2){var ut=this.el.content,gt=ut.firstChild;gt.remove(),ut.append(...gt.childNodes)}for(;(rt=A.nextNode())!==null&&ct.length<lt;){if(rt.nodeType===1){if(rt.hasAttributes()){var mt=[];for(var ft of rt.getAttributeNames())if(ft.endsWith("$lit$")||ft.startsWith(e$6)){var pt=dt[ot++];if(mt.push(ft),pt!==void 0){var yt=rt.getAttribute(pt.toLowerCase()+"$lit$").split(e$6),vt=/([.?@])?(.*)/.exec(pt);ct.push({type:1,index:at,name:vt[2],strings:yt,ctor:vt[1]==="."?M:vt[1]==="?"?H:vt[1]==="@"?I:S})}else ct.push({type:6,index:at})}for(var _t of mt)rt.removeAttribute(_t)}if(g.test(rt.tagName)){var bt=rt.textContent.split(e$6),St=bt.length-1;if(St>0){rt.textContent=i$2?i$2.emptyScript:"";for(var wt=0;wt<St;wt++)rt.append(bt[wt],h$1()),A.nextNode(),ct.push({type:2,index:++at});rt.append(bt[St],h$1())}}}else if(rt.nodeType===8)if(rt.data===o$3)ct.push({type:2,index:at});else for(var xt=-1;(xt=rt.data.indexOf(e$6,xt+1))!==-1;)ct.push({type:7,index:at}),xt+=e$6.length-1;at++}}static createElement(et,it){var rt=l$2.createElement("template");return rt.innerHTML=et,rt}}function P(tt,et){var it,rt,nt,st,at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tt,ot=arguments.length>3?arguments[3]:void 0;if(et===b)return et;var lt=ot!==void 0?(it=at._$Cl)===null||it===void 0?void 0:it[ot]:at._$Cu,ct=r$1(et)?void 0:et._$litDirective$;return(lt==null?void 0:lt.constructor)!==ct&&((rt=lt==null?void 0:lt._$AO)===null||rt===void 0||rt.call(lt,!1),ct===void 0?lt=void 0:(lt=new ct(tt))._$AT(tt,at,ot),ot!==void 0?((nt=(st=at)._$Cl)!==null&&nt!==void 0?nt:st._$Cl=[])[ot]=lt:at._$Cu=lt),lt!==void 0&&(et=P(tt,lt._$AS(tt,et.values),lt,ot)),et}class V{constructor(et,it){this.v=[],this._$AN=void 0,this._$AD=et,this._$AM=it}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(et){var it,{el:{content:rt},parts:nt}=this._$AD,st=((it=et==null?void 0:et.creationScope)!==null&&it!==void 0?it:l$2).importNode(rt,!0);A.currentNode=st;
11for(var at=A.nextNode(),ot=0,lt=0,ct=nt[0];ct!==void 0;){if(ot===ct.index){var ht=void 0;ct.type===2?ht=new N(at,at.nextSibling,this,et):ct.type===1?ht=new ct.ctor(at,ct.name,ct.strings,this,et):ct.type===6&&(ht=new L(at,this,et)),this.v.push(ht),ct=nt[++lt]}ot!==(ct==null?void 0:ct.index)&&(at=A.nextNode(),ot++)}return st}m(et){var it=0;for(var rt of this.v)rt!==void 0&&(rt.strings!==void 0?(rt._$AI(et,rt,it),it+=rt.strings.length-2):rt._$AI(et[it])),it++}}class N{constructor(et,it,rt,nt){var st;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=et,this._$AB=it,this._$AM=rt,this.options=nt,this._$Cg=(st=nt==null?void 0:nt.isConnected)===null||st===void 0||st}get _$AU(){var et,it;return(it=(et=this._$AM)===null||et===void 0?void 0:et._$AU)!==null&&it!==void 0?it:this._$Cg}get parentNode(){var et=this._$AA.parentNode,it=this._$AM;return it!==void 0&&et.nodeType===11&&(et=it.parentNode),et}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(et){et=P(this,et,arguments.length>1&&arguments[1]!==void 0?arguments[1]:this),r$1(et)?et===w||et==null||et===""?(this._$AH!==w&&this._$AR(),this._$AH=w):et!==this._$AH&&et!==b&&this.$(et):et._$litType$!==void 0?this.T(et):et.nodeType!==void 0?this.S(et):u(et)?this.A(et):this.$(et)}M(et){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(et,it)}S(et){this._$AH!==et&&(this._$AR(),this._$AH=this.M(et))}$(et){this._$AH!==w&&r$1(this._$AH)?this._$AA.nextSibling.data=et:this.S(l$2.createTextNode(et)),this._$AH=et}T(et){var it,{values:rt,_$litType$:nt}=et,st=typeof nt=="number"?this._$AC(et):(nt.el===void 0&&(nt.el=E.createElement(nt.h,this.options)),nt);if(((it=this._$AH)===null||it===void 0?void 0:it._$AD)===st)this._$AH.m(rt);else{var at=new V(st,this),ot=at.p(this.options);at.m(rt),this.S(ot),this._$AH=at}}_$AC(et){var it=T.get(et.strings);return it===void 0&&T.set(et.strings,it=new E(et)),it}A(et){d(this._$AH)||(this._$AH=[],this._$AR());var it,rt=this._$AH,nt=0;for(var st of et)nt===rt.length?rt.push(it=new N(this.M(h$1()),this.M(h$1()),this,this.options)):it=rt[nt],it._$AI(st),nt++;nt<rt.length&&(this._$AR(it&&it._$AB.nextSibling,nt),rt.length=nt)}_$AR(){var et,it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._$AA.nextSibling,rt=arguments.length>1?arguments[1]:void 0;for((et=this._$AP)===null||et===void 0||et.call(this,!1,!0,rt);it&&it!==this._$AB;){var nt=it.nextSibling;it.remove(),it=nt}}setConnected(et){var it;this._$AM===void 0&&(this._$Cg=et,(it=this._$AP)===null||it===void 0||it.call(this,et))}}class S{constructor(et,it,rt,nt,st){this.type=1,this._$AH=w,this._$AN=void 0,this.element=et,this.name=it,this._$AM=nt,this.options=st,rt.length>2||rt[0]!==""||rt[1]!==""?(this._$AH=Array(rt.length-1).fill(new String),this.strings=rt):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(et){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this,rt=arguments.length>2?arguments[2]:void 0,nt=arguments.length>3?arguments[3]:void 0,st=this.strings,at=!1;if(st===void 0)et=P(this,et,it,0),(at=!r$1(et)||et!==this._$AH&&et!==b)&&(this._$AH=et);else{var ot,lt,ct=et;for(et=st[0],ot=0;ot<st.length-1;ot++)(lt=P(this,ct[rt+ot],it,ot))===b&&(lt=this._$AH[ot]),at||(at=!r$1(lt)||lt!==this._$AH[ot]),lt===w?et=w:et!==w&&(et+=(lt??"")+st[ot+1]),this._$AH[ot]=lt}at&&!nt&&this.k(et)}k(et){et===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,et??"")}}class M extends S{constructor(){super(...arguments),this.type=3}k(et){this.element[this.name]=et===w?void 0:et}}var k=i$2?i$2.emptyScript:"";class H extends S{constructor(){super(...arguments),this.type=4}k(et){et&&et!==w?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class I extends S{constructor(et,it,rt,nt,st){super(et,it,rt,nt,st),this.type=5}_$AI(et){var it;if((et=(it=P(this,et,arguments.length>1&&arguments[1]!==void 0?arguments[1]:this,0))!==null&&it!==void 0?it:w)!==b){var rt=this._$AH,nt=et===w&&rt!==w||et.capture!==rt.capture||et.once!==rt.once||et.passive!==rt.passive,st=et!==w&&(rt===w||nt);nt&&this.element.removeEventListener(this.name,this,rt),st&&this.element.addEventListener(this.name,this,et),this._$AH=et}}handleEvent(et){var it,rt;typeof this._$AH=="function"?this._$AH.call((rt=(it=this.options)===null||it===void 0?void 0:it.host)!==null&&rt!==void 0?rt:this.element,et):this._$AH.handleEvent(et)}}class L{constructor(et,it,rt){this.element=et,this.type=6,this._$AN=void 0,this._$AM=it,this.options=rt}get _$AU(){return this._$AM._$AU}_$AI(et){P(this,et)}}var z=window.litHtmlPolyfillSupport,l$1,o$2;z==null||z(E,N),((t$2=globalThis.litHtmlVersions)!==null&&t$2!==void 0?t$2:globalThis.litHtmlVersions=[]).push("2.1.2");class s extends a$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var et,it,rt=super.createRenderRoot();return(et=(it=this.renderOptions).renderBefore)!==null&&et!==void 0||(it.renderBefore=rt.firstChild),rt}update(et){var it=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(et),this._$Dt=x(it,this.renderRoot,this.renderOptions)}connectedCallback(){var et;super.connectedCallback(),(et=this._$Dt)===null||et===void 0||et.setConnected(!0)}disconnectedCallback(){var et;super.disconnectedCallback(),(et=this._$Dt)===null||et===void 0||et.setConnected(!1)}render(){return b}}s.finalized=!0,s._$litElement$=!0,(l$1=globalThis.litElementHydrateSupport)===null||l$1===void 0||l$1.call(globalThis,{LitElement:s});var n$2=globalThis.litElementPolyfillSupport;n$2==null||n$2({LitElement:s});((o$2=globalThis.litElementVersions)!==null&&o$2!==void 0?o$2:globalThis.litElementVersions=[]).push("3.1.2");/**
12 * @license
13 * Copyright 2017 Google LLC
14 * SPDX-License-Identifier: BSD-3-Clause
15 */var n$1=tt=>et=>typeof et=="function"?((it,rt)=>(window.customElements.define(it,rt),rt))(tt,et):((it,rt)=>{var{kind:nt,elements:st}=rt;return{kind:nt,elements:st,finisher(at){window.customElements.define(it,at)}}})(tt,et),i$1=(tt,et)=>et.kind==="method"&&et.descriptor&&!("value"in et.descriptor)?_objectSpread2
vendor: 11,999 bytes, lines 15-27
15(_objectSpread2({},et),{},{finisher(it){it.createProperty(et.key,tt)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:et.key,initializer(){typeof et.initializer=="function"&&(this[et.key]=et.initializer.call(this))},finisher(it){it.createProperty(et.key,tt)}};function e$5(tt){return(et,it)=>it!==void 0?((rt,nt,st)=>{nt.constructor.createProperty(st,rt)})(tt,et,it):i$1(tt,et)}/**
16 * @license
17 * Copyright 2017 Google LLC
18 * SPDX-License-Identifier: BSD-3-Clause
19 */var o$1=tt=>{var{finisher:et,descriptor:it}=tt;return(rt,nt)=>{var st;if(nt===void 0){var at=(st=rt.originalKey)!==null&&st!==void 0?st:rt.key,ot=it!=null?{kind:"method",placement:"prototype",key:at,descriptor:it(rt.key)}:_objectSpread2(_objectSpread2({},rt),{},{key:at});return et!=null&&(ot.finisher=function(ct){et(ct,at)}),ot}var lt=rt.constructor;it!==void 0&&Object.defineProperty(rt,nt,it(nt)),et==null||et(lt,nt)}},n;/**
20 * @license
21 * Copyright 2017 Google LLC
22 * SPDX-License-Identifier: BSD-3-Clause
23 */function i(tt,et){return o$1({descriptor:it=>{var rt={get(){var nt,st;return(st=(nt=this.renderRoot)===null||nt===void 0?void 0:nt.querySelector(tt))!==null&&st!==void 0?st:null},enumerable:!0,configurable:!0};return rt}})}/**
24 * @license
25 * Copyright 2021 Google LLC
26 * SPDX-License-Identifier: BSD-3-Clause
27 */((n=window.HTMLSlotElement)===null||n===void 0?void 0:n.prototype.assignedElements)!=null;var lottie$1={exports:{}};(function(module,exports$1){var factory;typeof navigator<"u"&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(tt){_useWebWorker=!!tt},getWebWorker=function(){return _useWebWorker},setLocationHref=function(tt){locationHref=tt},getLocationHref=function(){return locationHref};function createTag(tt){return document.createElement(tt)}function extendPrototype(tt,et){var it,rt,nt=tt.length;for(it=0;it<nt;it+=1)for(var st in rt=tt[it].prototype)Object.prototype.hasOwnProperty.call(rt,st)&&(et.prototype[st]=rt[st])}function getDescriptor(tt,et){return Object.getOwnPropertyDescriptor(tt,et)}function createProxyFunction(tt){function et(){}return et.prototype=tt,et}var audioControllerFactory=function(){function tt(et){this.audios=[],this.audioFactory=et,this._volume=1,this._isMuted=!1}return tt.prototype={addAudio:function(et){this.audios.push(et)},pause:function(){var et,it=this.audios.length;for(et=0;et<it;et+=1)this.audios[et].pause()},resume:function(){var et,it=this.audios.length;for(et=0;et<it;et+=1)this.audios[et].resume()},setRate:function(et){var it,rt=this.audios.length;for(it=0;it<rt;it+=1)this.audios[it].setRate(et)},createAudio:function(et){return this.audioFactory?this.audioFactory(et):window.Howl?new window.Howl({src:[et]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(et){this.audioFactory=et},setVolume:function(et){this._volume=et,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var et,it=this.audios.length;for(et=0;et<it;et+=1)this.audios[et].volume(this._volume*(this._isMuted?0:1))}},function(){return new tt}}(),createTypedArray=function(){function tt(et,it){var rt,nt=0,st=[];switch(et){case"int16":case"uint8c":rt=1;break;default:rt=1.1}for(nt=0;nt<it;nt+=1)st.push(rt);return st}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(et,it){return et==="float32"?new Float32Array(it):et==="int16"?new Int16Array(it):et==="uint8c"?new Uint8ClampedArray(it):tt(et,it)}:tt}();function createSizedArray(tt){return Array.apply(null,{length:tt})}function _typeof$6(tt){return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$6(tt)}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 tt,et=["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"],it=et.length;for(tt=0;tt<it;tt+=1)BMMath[et[tt]]=Math[et[tt]]})(),BMMath.random=Math.random,BMMath.abs=function(tt){if(_typeof$6(tt)==="object"&&tt.length){var et,it=createSizedArray(tt.length),rt=tt.length;for(et=0;et<rt;et+=1)it[et]=Math.abs(tt[et]);return it}return Math.abs(tt)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(tt){tt.style.position="absolute",tt.style.top=0,tt.style.left=0,tt.style.display="block",tt.style.transformOrigin="0 0",tt.style.webkitTransformOrigin="0 0",tt.style.backfaceVisibility="visible",tt.style.webkitBackfaceVisibility="visible",tt.style.transformStyle="preserve-3d",tt.style.webkitTransformStyle="preserve-3d",tt.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(tt,et,it,rt){this.type=tt,this.currentTime=et,this.totalTime=it,this.direction=rt<0?-1:1}function BMCompleteEvent(tt,et){this.type=tt,this.direction=et<0?-1:1}function BMCompleteLoopEvent(tt,et,it,rt){this.type=tt,this.currentLoop=it,this.totalLoops=et,this.direction=rt<0?-1:1}function BMSegmentStartEvent(tt,et,it){this.type=tt,this.firstFrame=et,this.totalFrames=it}function BMDestroyEvent(tt,et){this.type=tt,this.target=et}function BMRenderFrameErrorEvent(tt,et){this.type="renderFrameError",this.nativeError=tt,this.currentTime=et}function BMConfigErrorEvent(tt){this.type="configError",this.nativeError=tt}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(tt,et,it){var rt,nt,st,at,ot,lt,ct,ht;switch(lt=it*(1-et),ct=it*(1-(ot=6*tt-(at=Math.floor(6*tt)))*et),ht=it*(1-(1-ot)*et),at%6){case 0:rt=it,nt=ht,st=lt;break;case 1:rt=ct,nt=it,st=lt;break;case 2:rt=lt,nt=it,st=ht;break;case 3:rt=lt,nt=ct,st=it;break;case 4:rt=ht,nt=lt,st=it;break;case 5:rt=it,nt=lt,st=ct}return[rt,nt,st]}function RGBtoHSV(tt,et,it){var rt,nt=Math.max(tt,et,it),st=Math.min(tt,et,it),at=nt-st,ot=nt===0?0:at/nt,lt=nt/255;switch(nt){case st:rt=0;break;case tt:rt=et-it+at*(et<it?6:0),rt/=6*at;break;case et:rt=it-tt+2*at,rt/=6*at;break;case it:rt=tt-et+4*at,rt/=6*at}return[rt,ot,lt]}function addSaturationToRGB(tt,et){var it=RGBtoHSV(255*tt[0],255*tt[1],255*tt[2]);return it[1]+=et,it[1]>1?it[1]=1:it[1]<=0&&(it[1]=0),HSVtoRGB(it[0],it[1],it[2])}function addBrightnessToRGB(tt,et){var it=RGBtoHSV(255*tt[0],255*tt[1],255*tt[2]);return it[2]+=et,it[2]>1?it[2]=1:it[2]<0&&(it[2]=0),HSVtoRGB(it[0],it[1],it[2])}function addHueToRGB(tt,et){var it=RGBtoHSV(255*tt[0],255*tt[1],255*tt[2]);return it[0]+=et/360,it[0]>1?it[0]-=1:it[0]<0&&(it[0]+=1),HSVtoRGB(it[0],it[1],it[2])}var rgbToHex=function(){var tt,et,it=[];for(tt=0;tt<256;tt+=1)et=tt.toString(16),it[tt]=et.length===1?"0"+et:et;return function(rt,nt,st){return rt<0&&(rt=0),nt<0&&(nt=0),st<0&&(st=0),"#"+it[rt]+it[nt]+it[st]}}(),setSubframeEnabled=function(tt){subframeEnabled=!!tt},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(tt){expressionsPlugin=tt},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(tt){expressionsInterfaces=tt},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(tt){defaultCurveSegments=tt},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(tt){idPrefix$1=tt};function createNS(tt){return document.createElementNS(svgNS,tt)}function _typeof$5(tt){return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$5(tt)}var dataManager=function(){var tt,et,it=1,rt=[],nt={onmessage:function(){},postMessage:function(lt){tt({data:lt})}},st={postMessage:function(lt){nt.onmessage({data:lt})}};function at(){et||(et=function(lt){if(window.Worker&&window.Blob&&getWebWorker()){var ct=new Blob(["var _workerSelf = self; self.onmessage = ",lt.toString()],{type:"text/javascript"}),ht=URL.createObjectURL(ct);return new Worker(ht)}return tt=lt,nt}(function(lt){if(st.dataManager||(st.dataManager=function(){function ht(xt,Pt){var kt,At,Et,Ft,It,Mt,Lt=xt.length;for(At=0;At<Lt;At+=1)if("ks"in(kt=xt[At])&&!kt.completed){if(kt.completed=!0,kt.hasMask){var $t=kt.masksProperties;for(Ft=$t.length,Et=0;Et<Ft;Et+=1)if($t[Et].pt.k.i)gt($t[Et].pt.k);else for(Mt=$t[Et].pt.k.length,It=0;It<Mt;It+=1)$t[Et].pt.k[It].s&&gt($t[Et].pt.k[It].s[0]),$t[Et].pt.k[It].e&&gt($t[Et].pt.k[It].e[0])}kt.ty===0?(kt.layers=dt(kt.refId,Pt),ht(kt.layers,Pt)):kt.ty===4?ut(kt.shapes):kt.ty===5&&St(kt)}}function dt(xt,Pt){var kt=function(At,Et){for(var Ft=0,It=Et.length;Ft<It;){if(Et[Ft].id===At)return Et[Ft];Ft+=1}return null}(xt,Pt);return kt?kt.layers.__used?JSON.parse(JSON.stringify(kt.layers)):(kt.layers.__used=!0,kt.layers):null}function ut(xt){var Pt,kt,At;for(Pt=xt.length-1;Pt>=0;Pt-=1)if(xt[Pt].ty==="sh")if(xt[Pt].ks.k.i)gt(xt[Pt].ks.k);else for(At=xt[Pt].ks.k.length,kt=0;kt<At;kt+=1)xt[Pt].ks.k[kt].s&&gt(xt[Pt].ks.k[kt].s[0]),xt[Pt].ks.k[kt].e&&gt(xt[Pt].ks.k[kt].e[0]);else xt[Pt].ty==="gr"&&ut(xt[Pt].it)}function gt(xt){var Pt,kt=xt.i.length;for(Pt=0;Pt<kt;Pt+=1)xt.i[Pt][0]+=xt.v[Pt][0],xt.i[Pt][1]+=xt.v[Pt][1],xt.o[Pt][0]+=xt.v[Pt][0],xt.o[Pt][1]+=xt.v[Pt][1]}function mt(xt,Pt){var kt=Pt?Pt.split("."):[100,100,100];return xt[0]>kt[0]||!(kt[0]>xt[0])&&(xt[1]>kt[1]||!(kt[1]>xt[1])&&(xt[2]>kt[2]||!(kt[2]>xt[2])&&null))}var ft,pt=function(){var xt=[4,4,14];function Pt(kt){var At,Et,Ft,It=kt.length;for(At=0;At<It;At+=1)kt[At].ty===5&&(Ft=void 0,Ft=(Et=kt[At]).t.d,Et.t.d={k:[{s:Ft,t:0}]})}return function(kt){if(mt(xt,kt.v)&&(Pt(kt.layers),kt.assets)){var At,Et=kt.assets.length;for(At=0;At<Et;At+=1)kt.assets[At].layers&&Pt(kt.assets[At].layers)}}}(),yt=(ft=[4,7,99],function(xt){if(xt.chars&&!mt(ft,xt.v)){var Pt,kt=xt.chars.length;for(Pt=0;Pt<kt;Pt+=1){var At=xt.chars[Pt];At.data&&At.data.shapes&&(ut(At.data.shapes),At.data.ip=0,At.data.op=99999,At.data.st=0,At.data.sr=1,At.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}},xt.chars[Pt].t||(At.data.shapes.push({ty:"no"}),At.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"})))}}}),vt=function(){var xt=[5,7,15];function Pt(kt){var At,Et,Ft=kt.length;for(At=0;At<Ft;At+=1)kt[At].ty===5&&(Et=void 0,typeof(Et=kt[At].t.p).a=="number"&&(Et.a={a:0,k:Et.a}),typeof Et.p=="number"&&(Et.p={a:0,k:Et.p}),typeof Et.r=="number"&&(Et.r={a:0,k:Et.r}))}return function(kt){if(mt(xt,kt.v)&&(Pt(kt.layers),kt.assets)){var At,Et=kt.assets.length;for(At=0;At<Et;At+=1)kt.assets[At].layers&&Pt(kt.assets[At].layers)}}}(),_t=function(){var xt=[4,1,9];function Pt(At){var Et,Ft,It,Mt=At.length;for(Et=0;Et<Mt;Et+=1)if(At[Et].ty==="gr")Pt(At[Et].it);else if(At[Et].ty==="fl"||At[Et].ty==="st")if(At[Et].c.k&&At[Et].c.k[0].i)for(It=At[Et].c.k.length,Ft=0;Ft<It;Ft+=1)At[Et].c.k[Ft].s&&(At[Et].c.k[Ft].s[0]/=255,At[Et].c.k[Ft].s[1]/=255,At[Et].c.k[Ft].s[2]/=255,At[Et].c.k[Ft].s[3]/=255),At[Et].c.k[Ft].e&&(At[Et].c.k[Ft].e[0]/=255,At[Et].c.k[Ft].e[1]/=255,At[Et].c.k[Ft].e[2]/=255,At[Et].c.k[Ft].e[3]/=255);else At[Et].c.k[0]/=255,At[Et].c.k[1]/=255,At[Et].c.k[2]/=255,At[Et].c.k[3]/=255}function kt(At){var Et,Ft=At.length;for(Et=0;Et<Ft;Et+=1)At[Et].ty===4&&Pt(At[Et].shapes)}
27return function(At){if(mt(xt,At.v)&&(kt(At.layers),At.assets)){var Et,Ft=At.assets.length;for(Et=0;Et<Ft;Et+=1)At.assets[Et].layers&&kt(At.assets[Et].layers)}}}(),bt=function(){var xt=[4,4,18];function Pt(At){var Et,Ft,It;for(Et=At.length-1;Et>=0;Et-=1)if(At[Et].ty==="sh")if(At[Et].ks.k.i)At[Et].ks.k.c=At[Et].closed;else for(It=At[Et].ks.k.length,Ft=0;Ft<It;Ft+=1)At[Et].ks.k[Ft].s&&(At[Et].ks.k[Ft].s[0].c=At[Et].closed),At[Et].ks.k[Ft].e&&(At[Et].ks.k[Ft].e[0].c=At[Et].closed);else At[Et].ty==="gr"&&Pt(At[Et].it)}function kt(At){var Et,Ft,It,Mt,Lt,$t,Vt=At.length;for(Ft=0;Ft<Vt;Ft+=1){if((Et=At[Ft]).hasMask){var Ct=Et.masksProperties;for(Mt=Ct.length,It=0;It<Mt;It+=1)if(Ct[It].pt.k.i)Ct[It].pt.k.c=Ct[It].cl;else for($t=Ct[It].pt.k.length,Lt=0;Lt<$t;Lt+=1)Ct[It].pt.k[Lt].s&&(Ct[It].pt.k[Lt].s[0].c=Ct[It].cl),Ct[It].pt.k[Lt].e&&(Ct[It].pt.k[Lt].e[0].c=Ct[It].cl)}Et.ty===4&&Pt(Et.shapes)}}return function(At){if(mt(xt,At.v)&&(kt(At.layers),At.assets)){var Et,Ft=At.assets.length;for(Et=0;Et<Ft;Et+=1)At.assets[Et].layers&&kt(At.assets[Et].layers)}}}();function St(xt){xt.t.a.length===0&&xt.t.p}var wt={completeData:function(xt){xt.__complete||(_t(xt),pt(xt),yt(xt),vt(xt),bt(xt),ht(xt.layers,xt.assets),function(Pt,kt){if(Pt){var At=0,Et=Pt.length;for(At=0;At<Et;At+=1)Pt[At].t===1&&(Pt[At].data.layers=dt(Pt[At].data.refId,kt),ht(Pt[At].data.layers,kt))}}(xt.chars,xt.assets),xt.__complete=!0)}};return wt.checkColors=_t,wt.checkChars=yt,wt.checkPathProperties=vt,wt.checkShapes=bt,wt.completeLayers=ht,wt}()),st.assetLoader||(st.assetLoader=function(){function ht(dt){var ut=dt.getResponseHeader("content-type");return ut&&dt.responseType==="json"&&ut.indexOf("json")!==-1||dt.response&&_typeof$5(dt.response)==="object"?dt.response:dt.response&&typeof dt.response=="string"?JSON.parse(dt.response):dt.responseText?JSON.parse(dt.responseText):null}return{load:function(dt,ut,gt,mt){var ft,pt=new XMLHttpRequest;try{pt.responseType="json"}catch{}pt.onreadystatechange=function(){if(pt.readyState===4)if(pt.status===200)ft=ht(pt),gt(ft);else try{ft=ht(pt),gt(ft)}catch(yt){mt&&mt(yt)}};try{pt.open(["G","E","T"].join(""),dt,!0)}catch{pt.open(["G","E","T"].join(""),ut+"/"+dt,!0)}pt.send()}}}()),lt.data.type==="loadAnimation")st.assetLoader.load(lt.data.path,lt.data.fullPath,function(ht){st.dataManager.completeData(ht),st.postMessage({id:lt.data.id,payload:ht,status:"success"})},function(){st.postMessage({id:lt.data.id,status:"error"})});else if(lt.data.type==="complete"){var ct=lt.data.animation;st.dataManager.completeData(ct),st.postMessage({id:lt.data.id,payload:ct,status:"success"})}else lt.data.type==="loadData"&&st.assetLoader.load(lt.data.path,lt.data.fullPath,function(ht){st.postMessage({id:lt.data.id,payload:ht,status:"success"})},function(){st.postMessage({id:lt.data.id,status:"error"})})}),et.onmessage=function(lt){var ct=lt.data,ht=ct.id,dt=rt[ht];rt[ht]=null,ct.status==="success"?dt.onComplete(ct.payload):dt.onError&&dt.onError()})}function ot(lt,ct){var ht="processId_"+(it+=1);return rt[ht]={onComplete:lt,onError:ct},ht}return{loadAnimation:function(lt,ct,ht){at();var dt=ot(ct,ht);et.postMessage({type:"loadAnimation",path:lt,fullPath:window.location.origin+window.location.pathname,id:dt})},loadData:function(lt,ct,ht){at();var dt=ot(ct,ht);et.postMessage({type:"loadData",path:lt,fullPath:window.location.origin+window.location.pathname,id:dt})},completeAnimation:function(lt,ct,ht){at();var dt=ot(ct,ht);et.postMessage({type:"complete",animation:lt,id:dt})}}}(),ImagePreloader=function(){var tt=function(){var ot=createTag("canvas");ot.width=1,ot.height=1;var lt=ot.getContext("2d");return lt.fillStyle="rgba(0,0,0,0)",lt.fillRect(0,0,1,1),ot}();function et(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function it(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function rt(ot,lt,ct){var ht="";if(ot.e)ht=ot.p;else if(lt){var dt=ot.p;dt.indexOf("images/")!==-1&&(dt=dt.split("/")[1]),ht=lt+dt}else ht=ct,ht+=ot.u?ot.u:"",ht+=ot.p;return ht}function nt(ot){var lt=0,ct=setInterval((function(){(ot.getBBox().width||lt>500)&&(this._imageLoaded(),clearInterval(ct)),lt+=1}).bind(this),50)}function st(ot){var lt={assetData:ot},ct=rt(ot,this.assetsPath,this.path);return dataManager.loadData(ct,(function(ht){lt.img=ht,this._footageLoaded()}).bind(this),(function(){lt.img={},this._footageLoaded()}).bind(this)),lt}function at(){this._imageLoaded=et.bind(this),this._footageLoaded=it.bind(this),this.testImageLoaded=nt.bind(this),this.createFootageData=st.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return at.prototype={loadAssets:function(ot,lt){var ct;this.imagesLoadedCb=lt;var ht=ot.length;for(ct=0;ct<ht;ct+=1)ot[ct].layers||(ot[ct].t&&ot[ct].t!=="seq"?ot[ct].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(ot[ct]))):(this.totalImages+=1,this.images.push(this._createImageData(ot[ct]))))},setAssetsPath:function(ot){this.assetsPath=ot||""},setPath:function(ot){this.path=ot||""},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(ot){for(var lt=0,ct=this.images.length;lt<ct;){if(this.images[lt].assetData===ot)return this.images[lt].img;lt+=1}
vendor: 6,469 bytes, lines 27-28
27return null},createImgData:function(ot){var lt=rt(ot,this.assetsPath,this.path),ct=createTag("img");ct.crossOrigin="anonymous",ct.addEventListener("load",this._imageLoaded,!1),ct.addEventListener("error",(function(){ht.img=tt,this._imageLoaded()}).bind(this),!1),ct.src=lt;var ht={img:ct,assetData:ot};return ht},createImageData:function(ot){var lt=rt(ot,this.assetsPath,this.path),ct=createNS("image");isSafari?this.testImageLoaded(ct):ct.addEventListener("load",this._imageLoaded,!1),ct.addEventListener("error",(function(){ht.img=tt,this._imageLoaded()}).bind(this),!1),ct.setAttributeNS("http://www.w3.org/1999/xlink","href",lt),this._elementHelper.append?this._elementHelper.append(ct):this._elementHelper.appendChild(ct);var ht={img:ct,assetData:ot};return ht},imageLoaded:et,footageLoaded:it,setCacheType:function(ot,lt){ot==="svg"?(this._elementHelper=lt,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},at}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(tt,et){if(this._cbs[tt])for(var it=this._cbs[tt],rt=0;rt<it.length;rt+=1)it[rt](et)},addEventListener:function(tt,et){return this._cbs[tt]||(this._cbs[tt]=[]),this._cbs[tt].push(et),(function(){this.removeEventListener(tt,et)}).bind(this)},removeEventListener:function(tt,et){if(et){if(this._cbs[tt]){for(var it=0,rt=this._cbs[tt].length;it<rt;)this._cbs[tt][it]===et&&(this._cbs[tt].splice(it,1),it-=1,rt-=1),it+=1;this._cbs[tt].length||(this._cbs[tt]=null)}}else this._cbs[tt]=null}};var markerParser=function(){function tt(et){for(var it,rt=et.split(`\r
28`),nt={},st=0,at=0;at<rt.length;at+=1)(it=rt[at].split(":")).length===2&&(nt[it[0]]=it[1].trim(),st+=1);if(st===0)throw new Error;return nt}return function(et){for(var it=[],rt=0;rt<et.length;rt+=1){var nt=et[rt],st={time:nt.tm,duration:nt.dr};try{st.payload=JSON.parse(et[rt].cm)}catch{try{st.payload=tt(et[rt].cm)}catch{st.payload={name:et[rt].cm}}}it.push(st)}return it}}(),ProjectInterface=function(){function tt(et){this.compositions.push(et)}return function(){function et(it){for(var rt=0,nt=this.compositions.length;rt<nt;){if(this.compositions[rt].data&&this.compositions[rt].data.nm===it)return this.compositions[rt].prepareFrame&&this.compositions[rt].data.xt&&this.compositions[rt].prepareFrame(this.currentFrame),this.compositions[rt].compInterface;rt+=1}return null}return et.compositions=[],et.currentFrame=0,et.registerComposition=tt,et}}(),renderers={},registerRenderer=function(tt,et){renderers[tt]=et};function getRenderer(tt){return renderers[tt]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var tt in renderers)if(renderers[tt])return tt;return""}function _typeof$4(tt){return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$4(tt)}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(tt){(tt.wrapper||tt.container)&&(this.wrapper=tt.wrapper||tt.container);var et="svg";tt.animType?et=tt.animType:tt.renderer&&(et=tt.renderer);var it=getRenderer(et);this.renderer=new it(this,tt.rendererSettings),this.imagePreloader.setCacheType(et,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=et,tt.loop===""||tt.loop===null||tt.loop===void 0||tt.loop===!0?this.loop=!0:tt.loop===!1?this.loop=!1:this.loop=parseInt(tt.loop,10),this.autoplay=!("autoplay"in tt)||tt.autoplay,this.name=tt.name?tt.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(tt,"autoloadSegments")||tt.autoloadSegments,this.assetsPath=tt.assetsPath,this.initialSegment=tt.initialSegment,tt.audioFactory&&this.audioController.setAudioFactory(tt.audioFactory),tt.animationData?this.setupAnimation(tt.animationData):tt.path&&(tt.path.lastIndexOf("\\")!==-1?this.path=tt.path.substr(0,tt.path.lastIndexOf("\\")+1):this.path=tt.path.substr(0,tt.path.lastIndexOf("/")+1),this.fileName=tt.path.substr(tt.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(tt.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(tt){dataManager.completeAnimation(tt,this.configAnimation)},AnimationItem.prototype.setData=function(tt,et){et&&_typeof$4(et)!=="object"&&(et=JSON.parse(et));var it={wrapper:tt,animationData:et},rt=tt.attributes;it.path=rt.getNamedItem("data-animation-path")?rt.getNamedItem("data-animation-path").value:rt.getNamedItem("data-bm-path")?rt.getNamedItem("data-bm-path").value:rt.getNamedItem("bm-path")?rt.getNamedItem("bm-path").value:"",it.animType=rt.getNamedItem("data-anim-type")?rt.getNamedItem("data-anim-type").value:rt.getNamedItem("data-bm-type")?rt.getNamedItem("data-bm-type").value:rt.getNamedItem("bm-type")?rt.getNamedItem("bm-type").value:rt.getNamedItem("data-bm-renderer")?rt.getNamedItem("data-bm-renderer").value:rt.getNamedItem("bm-renderer")?rt.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var nt=rt.getNamedItem("data-anim-loop")?rt.getNamedItem("data-anim-loop").value:rt.getNamedItem("data-bm-loop")?rt.getNamedItem("data-bm-loop").value:rt.getNamedItem("bm-loop")?rt.getNamedItem("bm-loop").value:"";nt==="false"?it.loop=!1:nt==="true"?it.loop=!0:nt!==""&&(it.loop=parseInt(nt,10));
vendor: 4,745 bytes, line 28
28var st=rt.getNamedItem("data-anim-autoplay")?rt.getNamedItem("data-anim-autoplay").value:rt.getNamedItem("data-bm-autoplay")?rt.getNamedItem("data-bm-autoplay").value:!rt.getNamedItem("bm-autoplay")||rt.getNamedItem("bm-autoplay").value;it.autoplay=st!=="false",it.name=rt.getNamedItem("data-name")?rt.getNamedItem("data-name").value:rt.getNamedItem("data-bm-name")?rt.getNamedItem("data-bm-name").value:rt.getNamedItem("bm-name")?rt.getNamedItem("bm-name").value:"",(rt.getNamedItem("data-anim-prerender")?rt.getNamedItem("data-anim-prerender").value:rt.getNamedItem("data-bm-prerender")?rt.getNamedItem("data-bm-prerender").value:rt.getNamedItem("bm-prerender")?rt.getNamedItem("bm-prerender").value:"")==="false"&&(it.prerender=!1),it.path?this.setParams(it):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(tt){tt.op>this.animationData.op&&(this.animationData.op=tt.op,this.totalFrames=Math.floor(tt.op-this.animationData.ip));var et,it,rt=this.animationData.layers,nt=rt.length,st=tt.layers,at=st.length;for(it=0;it<at;it+=1)for(et=0;et<nt;){if(rt[et].id===st[it].id){rt[et]=st[it];break}et+=1}if((tt.chars||tt.fonts)&&(this.renderer.globalData.fontManager.addChars(tt.chars),this.renderer.globalData.fontManager.addFonts(tt.fonts,this.renderer.globalData.defs)),tt.assets)for(nt=tt.assets.length,et=0;et<nt;et+=1)this.animationData.assets.push(tt.assets[et]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(tt){this.animationData=tt;var et=getExpressionsPlugin();et&&et.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var tt=this.animationData.segments;if(!tt||tt.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var et=tt.shift();this.timeCompleted=et.time*this.frameRate;var it=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(it,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(tt){if(this.renderer)try{this.animationData=tt,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(tt),tt.assets||(tt.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(tt.assets),this.markers=markerParser(tt.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(et){this.triggerConfigError(et)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var tt=getExpressionsPlugin();tt&&tt.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(tt,et){var it=typeof tt=="number"?tt:void 0,rt=typeof et=="number"?et:void 0;this.renderer.updateContainerSize(it,rt)},AnimationItem.prototype.setSubframe=function(tt){this.isSubframeEnabled=!!tt},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame
vendor: 4,287 bytes, line 28
28(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(tt){this.triggerRenderFrameError(tt)}},AnimationItem.prototype.play=function(tt){tt&&this.name!==tt||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(tt){tt&&this.name!==tt||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(tt){tt&&this.name!==tt||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(tt){tt&&this.name!==tt||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(tt){for(var et,it=0;it<this.markers.length;it+=1)if((et=this.markers[it]).payload&&et.payload.name===tt)return et;return null},AnimationItem.prototype.goToAndStop=function(tt,et,it){if(!it||this.name===it){var rt=Number(tt);if(isNaN(rt)){var nt=this.getMarkerData(tt);nt&&this.goToAndStop(nt.time,!0)}else et?this.setCurrentRawFrameValue(tt):this.setCurrentRawFrameValue(tt*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(tt,et,it){if(!it||this.name===it){var rt=Number(tt);if(isNaN(rt)){var nt=this.getMarkerData(tt);nt&&(nt.duration?this.playSegments([nt.time,nt.time+nt.duration],!0):this.goToAndStop(nt.time,!0))}else this.goToAndStop(rt,et,it);this.play()}},AnimationItem.prototype.advanceTime=function(tt){if(this.isPaused!==!0&&this.isLoaded!==!1){var et=this.currentRawFrame+tt*this.frameModifier,it=!1;et>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?et>=this.totalFrames?(this.playCount+=1,this.checkSegments(et%this.totalFrames)||(this.setCurrentRawFrameValue(et%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(et):this.checkSegments(et>this.totalFrames?et%this.totalFrames:0)||(it=!0,et=this.totalFrames-1):et<0?this.checkSegments(et%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(it=!0,et=0):(this.setCurrentRawFrameValue(this.totalFrames+et%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(et),it&&(this.setCurrentRawFrameValue(et),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(tt,et){this.playCount=0,tt[1]<tt[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=tt[0]-tt[1],this.timeCompleted=this.totalFrames,this.firstFrame=tt[1],this.setCurrentRawFrameValue(this.totalFrames-.001-et)):tt[1]>tt[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=tt[1]-tt[0],this.timeCompleted=this.totalFrames,this.firstFrame=tt[0],this.setCurrentRawFrameValue(.001+et)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(tt,et){var it=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<tt?it=tt:this.currentRawFrame+this.firstFrame>et&&(it=et-tt)),this.firstFrame=tt,this.totalFrames=et-tt,this.timeCompleted=this.totalFrames,it!==-1&&this.goToAndStop(it,!0)},AnimationItem.prototype.playSegments=function(tt,et){if(et&&(this.segments.length=0),_typeof$4(tt[0])==="object"){var it,rt=tt.length;for(it=0;it<rt;it+=1)this.segments.push(tt[it])}else this.segments.push(tt);this.segments.length&&et&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(tt){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),tt&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(tt){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),tt),!0)},AnimationItem.prototype.destroy=function(tt){tt&&this.name!==tt||!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)}
vendor: 4,186 bytes, line 28
28,AnimationItem.prototype.setCurrentRawFrameValue=function(tt){this.currentRawFrame=tt,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(tt){this.playSpeed=tt,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(tt){this.playDirection=tt<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(tt){this.loop=tt},AnimationItem.prototype.setVolume=function(tt,et){et&&this.name!==et||this.audioController.setVolume(tt)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(tt){tt&&this.name!==tt||this.audioController.mute()},AnimationItem.prototype.unmute=function(tt){tt&&this.name!==tt||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(tt){var et="";if(tt.e)et=tt.p;else if(this.assetsPath){var it=tt.p;it.indexOf("images/")!==-1&&(it=it.split("/")[1]),et=this.assetsPath+it}else et=this.path,et+=tt.u?tt.u:"",et+=tt.p;return et},AnimationItem.prototype.getAssetData=function(tt){for(var et=0,it=this.assets.length;et<it;){if(tt===this.assets[et].id)return this.assets[et];et+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(tt){return tt?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(tt,et,it){try{this.renderer.getElementByPath(tt).updateDocumentData(et,it)}catch{}},AnimationItem.prototype.trigger=function(tt){if(this._cbs&&this._cbs[tt])switch(tt){case"enterFrame":this.triggerEvent(tt,new BMEnterFrameEvent(tt,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(tt,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(tt,new BMCompleteLoopEvent(tt,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(tt,new BMCompleteEvent(tt,this.frameMult));break;case"segmentStart":this.triggerEvent(tt,new BMSegmentStartEvent(tt,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(tt,new BMDestroyEvent(tt,this));break;default:this.triggerEvent(tt)}tt==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(tt,this.currentFrame,this.totalFrames,this.frameMult)),tt==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(tt,this.loop,this.playCount,this.frameMult)),tt==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(tt,this.frameMult)),tt==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(tt,this.firstFrame,this.totalFrames)),tt==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(tt,this))},AnimationItem.prototype.triggerRenderFrameError=function(tt){var et=new BMRenderFrameErrorEvent(tt,this.currentFrame);this.triggerEvent("error",et),this.onError&&this.onError.call(this,et)},AnimationItem.prototype.triggerConfigError=function(tt){var et=new BMConfigErrorEvent(tt,this.currentFrame);this.triggerEvent("error",et),this.onError&&this.onError.call(this,et)};var animationManager=function(){var tt={},et=[],it=0,rt=0,nt=0,st=!0,at=!1;function ot(ft){for(var pt=0,yt=ft.target;pt<rt;)et[pt].animation===yt&&(et.splice(pt,1),pt-=1,rt-=1,yt.isPaused||ht()),pt+=1}function lt(ft,pt){if(!ft)return null;for(var yt=0;yt<rt;){if(et[yt].elem===ft&&et[yt].elem!==null)return et[yt].animation;yt+=1}var vt=new AnimationItem;return dt(vt,ft),vt.setData(ft,pt),vt}function ct(){nt+=1,mt()}function ht(){nt-=1}function dt(ft,pt){ft.addEventListener("destroy",ot),ft.addEventListener("_active",ct),ft.addEventListener("_idle",ht),et.push({elem:pt,animation:ft}),rt+=1}function ut(ft){var pt,yt=ft-it;
vendor: 9,055 bytes, line 28
28for(pt=0;pt<rt;pt+=1)et[pt].animation.advanceTime(yt);it=ft,nt&&!at?window.requestAnimationFrame(ut):st=!0}function gt(ft){it=ft,window.requestAnimationFrame(ut)}function mt(){!at&&nt&&st&&(window.requestAnimationFrame(gt),st=!1)}return tt.registerAnimation=lt,tt.loadAnimation=function(ft){var pt=new AnimationItem;return dt(pt,null),pt.setParams(ft),pt},tt.setSpeed=function(ft,pt){var yt;for(yt=0;yt<rt;yt+=1)et[yt].animation.setSpeed(ft,pt)},tt.setDirection=function(ft,pt){var yt;for(yt=0;yt<rt;yt+=1)et[yt].animation.setDirection(ft,pt)},tt.play=function(ft){var pt;for(pt=0;pt<rt;pt+=1)et[pt].animation.play(ft)},tt.pause=function(ft){var pt;for(pt=0;pt<rt;pt+=1)et[pt].animation.pause(ft)},tt.stop=function(ft){var pt;for(pt=0;pt<rt;pt+=1)et[pt].animation.stop(ft)},tt.togglePause=function(ft){var pt;for(pt=0;pt<rt;pt+=1)et[pt].animation.togglePause(ft)},tt.searchAnimations=function(ft,pt,yt){var vt,_t=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),bt=_t.length;for(vt=0;vt<bt;vt+=1)yt&&_t[vt].setAttribute("data-bm-type",yt),lt(_t[vt],ft);if(pt&&bt===0){yt||(yt="svg");var St=document.getElementsByTagName("body")[0];St.innerText="";var wt=createTag("div");wt.style.width="100%",wt.style.height="100%",wt.setAttribute("data-bm-type",yt),St.appendChild(wt),lt(wt,ft)}},tt.resize=function(){var ft;for(ft=0;ft<rt;ft+=1)et[ft].animation.resize()},tt.goToAndStop=function(ft,pt,yt){var vt;for(vt=0;vt<rt;vt+=1)et[vt].animation.goToAndStop(ft,pt,yt)},tt.destroy=function(ft){var pt;for(pt=rt-1;pt>=0;pt-=1)et[pt].animation.destroy(ft)},tt.freeze=function(){at=!0},tt.unfreeze=function(){at=!1,mt()},tt.setVolume=function(ft,pt){var yt;for(yt=0;yt<rt;yt+=1)et[yt].animation.setVolume(ft,pt)},tt.mute=function(ft){var pt;for(pt=0;pt<rt;pt+=1)et[pt].animation.mute(ft)},tt.unmute=function(ft){var pt;for(pt=0;pt<rt;pt+=1)et[pt].animation.unmute(ft)},tt.getRegisteredAnimations=function(){var ft,pt=et.length,yt=[];for(ft=0;ft<pt;ft+=1)yt.push(et[ft].animation);return yt},tt}(),BezierFactory=function(){var tt={getBezierEasing:function(ht,dt,ut,gt,mt){var ft=mt||("bez_"+ht+"_"+dt+"_"+ut+"_"+gt).replace(/\./g,"p");if(et[ft])return et[ft];var pt=new ct([ht,dt,ut,gt]);return et[ft]=pt,pt}},et={},it=.1,rt=typeof Float32Array=="function";function nt(ht,dt){return 1-3*dt+3*ht}function st(ht,dt){return 3*dt-6*ht}function at(ht){return 3*ht}function ot(ht,dt,ut){return((nt(dt,ut)*ht+st(dt,ut))*ht+at(dt))*ht}function lt(ht,dt,ut){return 3*nt(dt,ut)*ht*ht+2*st(dt,ut)*ht+at(dt)}function ct(ht){this._p=ht,this._mSampleValues=rt?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return ct.prototype={get:function(ht){var dt=this._p[0],ut=this._p[1],gt=this._p[2],mt=this._p[3];return this._precomputed||this._precompute(),dt===ut&&gt===mt?ht:ht===0?0:ht===1?1:ot(this._getTForX(ht),ut,mt)},_precompute:function(){var ht=this._p[0],dt=this._p[1],ut=this._p[2],gt=this._p[3];this._precomputed=!0,ht===dt&&ut===gt||this._calcSampleValues()},_calcSampleValues:function(){for(var ht=this._p[0],dt=this._p[2],ut=0;ut<11;++ut)this._mSampleValues[ut]=ot(ut*it,ht,dt)},_getTForX:function(ht){for(var dt=this._p[0],ut=this._p[2],gt=this._mSampleValues,mt=0,ft=1;ft!==10&&gt[ft]<=ht;++ft)mt+=it;var pt=mt+(ht-gt[--ft])/(gt[ft+1]-gt[ft])*it,yt=lt(pt,dt,ut);return yt>=.001?function(vt,_t,bt,St){for(var wt=0;wt<4;++wt){var xt=lt(_t,bt,St);if(xt===0)return _t;_t-=(ot(_t,bt,St)-vt)/xt}return _t}(ht,pt,dt,ut):yt===0?pt:function(vt,_t,bt,St,wt){var xt,Pt,kt=0;do(xt=ot(Pt=_t+(bt-_t)/2,St,wt)-vt)>0?bt=Pt:_t=Pt;while(Math.abs(xt)>1e-7&&++kt<10);return Pt}(ht,mt,mt+it,dt,ut)}},tt}(),pooling={double:function(tt){return tt.concat(createSizedArray(tt.length))}},poolFactory=function(tt,et,it){var rt=0,nt=tt,st=createSizedArray(nt);return{newElement:function(){return rt?st[rt-=1]:et()},release:function(at){rt===nt&&(st=pooling.double(st),nt*=2),it&&it(at),st[rt]=at,rt+=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(tt){var et,it=tt.lengths.length;for(et=0;et<it;et+=1)bezierLengthPool.release(tt.lengths[et]);tt.lengths.length=0});function bezFunction(){var tt=Math;function et(ct,ht,dt,ut,gt,mt){var ft=ct*ut+ht*gt+dt*mt-gt*ut-mt*ct-dt*ht;return ft>-.001&&ft<.001}var it=function(ct,ht,dt,ut){var gt,mt,ft,pt,yt,vt,_t=getDefaultCurveSegments(),bt=0,St=[],wt=[],xt=bezierLengthPool.newElement();for(ft=dt.length,gt=0;gt<_t;gt+=1){for(yt=gt/(_t-1),vt=0,mt=0;mt<ft;mt+=1)pt=bmPow(1-yt,3)*ct[mt]+3*bmPow(1-yt,2)*yt*dt[mt]+3*(1-yt)*bmPow(yt,2)*ut[mt]+bmPow(yt,3)*ht[mt],St[mt]=pt,wt[mt]!==null&&(vt+=bmPow(St[mt]-wt[mt],2)),wt[mt]=St[mt];vt&&(bt+=vt=bmSqrt(vt)),xt.percents[gt]=yt,xt.lengths[gt]=bt}return xt.addedLength=bt,xt};function rt(ct){this.segmentLength=0,this.points=new Array(ct)}function nt(ct,ht){this.partialLength=ct,this.point=ht}var st,at=(st={},function(ct,ht,dt,ut){var gt=(ct[0]+"_"+ct[1]+"_"+ht[0]+"_"+ht[1]+"_"+dt[0]+"_"+dt[1]+"_"+ut[0]+"_"+ut[1]).replace(/\./g,"p");if(!st[gt]){var mt,ft,pt,yt,vt,_t,bt,St=getDefaultCurveSegments(),wt=0,xt=null;ct.length===2&&(ct[0]!==ht[0]||ct[1]!==ht[1])&&et(ct[0],ct[1],ht[0],ht[1],ct[0]+dt[0],ct[1]+dt[1])&&et(ct[0],ct[1],ht[0],ht[1],ht[0]+ut[0],ht[1]+ut[1])&&(St=2);var Pt=new rt(St);for(pt=dt.length,mt=0;mt<St;mt+=1){for(bt=createSizedArray(pt),vt=mt/(St-1),_t=0,ft=0;ft<pt;ft+=1)yt=bmPow(1-vt,3)*ct[ft]+3*bmPow(1-vt,2)*vt*(ct[ft]+dt[ft])+3*(1-vt)*bmPow(vt,2)*(ht[ft]+ut[ft])+bmPow(vt,3)*ht[ft],bt[ft]=yt,xt!==null&&(_t+=bmPow(bt[ft]-xt[ft],2));wt+=_t=bmSqrt(_t),Pt.points[mt]=new nt(_t,bt),xt=bt}Pt.segmentLength=wt,st[gt]=Pt}return st[gt]});function ot(ct,ht){var dt=ht.percents,ut=ht.lengths,gt=dt.length,mt=bmFloor((gt-1)*ct),ft=ct*ht.addedLength,pt=0;if(mt===gt-1||mt===0||ft===ut[mt])return dt[mt];for(var yt=ut[mt]>ft?-1:1,vt=!0;vt;)if(ut[mt]<=ft&&ut[mt+1]>ft?(pt=(ft-ut[mt])/(ut[mt+1]-ut[mt]),vt=!1):mt+=yt,mt<0||mt>=gt-1){if(mt===gt-1)return dt[mt];vt=!1}return dt[mt]+(dt[mt+1]-dt[mt])*pt}var lt=createTypedArray("float32",8);return{getSegmentsLength:function(ct){var ht,dt=segmentsLengthPool.newElement(),ut=ct.c,gt=ct.v,mt=ct.o,ft=ct.i,pt=ct._length,yt=dt.lengths,vt=0;for(ht=0;ht<pt-1;ht+=1)yt[ht]=it(gt[ht],gt[ht+1],mt[ht],ft[ht+1]),vt+=yt[ht].addedLength;return ut&&pt&&(yt[ht]=it(gt[ht],gt[0],mt[ht],ft[0]),vt+=yt[ht].addedLength),dt.totalLength=vt,dt},getNewSegment:function(ct,ht,dt,ut,gt,mt,ft){gt<0?gt=0:gt>1&&(gt=1);var pt,yt=ot(gt,ft),vt=ot(mt=mt>1?1:mt,ft),_t=ct.length,bt=1-yt,St=1-vt,wt=bt*bt*bt,xt=yt*bt*bt*3,Pt=yt*yt*bt*3,kt=yt*yt*yt,At=bt*bt*St,Et=yt*bt*St+bt*yt*St+bt*bt*vt,Ft=yt*yt*St+bt*yt*vt+yt*bt*vt,It=yt*yt*vt,Mt=bt*St*St,Lt=yt*St*St+bt*vt*St+bt*St*vt,$t=yt*vt*St+bt*vt*vt+yt*St*vt,Vt=yt*vt*vt,Ct=St*St*St,Dt=vt*St*St+St*vt*St+St*St*vt,Rt=vt*vt*St+St*vt*vt+vt*St*vt,Bt=vt*vt*vt;for(pt=0;pt<_t;pt+=1)lt[4*pt]=tt.round(1e3*(wt*ct[pt]+xt*dt[pt]+Pt*ut[pt]+kt*ht[pt]))/1e3,lt[4*pt+1]=tt.round(1e3*(At*ct[pt]+Et*dt[pt]+Ft*ut[pt]+It*ht[pt]))/1e3,lt[4*pt+2]=tt.round(1e3*(Mt*ct[pt]+Lt*dt[pt]+$t*ut[pt]+Vt*ht[pt]))/1e3,lt[4*pt+3]=tt.round(1e3*(Ct*ct[pt]+Dt*dt[pt]+Rt*ut[pt]+Bt*ht[pt]))/1e3;return lt},getPointInSegment:function(ct,ht,dt,ut,gt,mt){var ft=ot(gt,mt),pt=1-ft;return[tt.round(1e3*(pt*pt*pt*ct[0]+(ft*pt*pt+pt*ft*pt+pt*pt*ft)*dt[0]+(ft*ft*pt+pt*ft*ft+ft*pt*ft)*ut[0]+ft*ft*ft*ht[0]))/1e3,tt.round(1e3*(pt*pt*pt*ct[1]+(ft*pt*pt+pt*ft*pt+pt*pt*ft)*dt[1]+(ft*ft*pt+pt*ft*ft+ft*pt*ft)*ut[1]+ft*ft*ft*ht[1]))/1e3]},buildBezierData:at,pointOnLine2D:et,pointOnLine3D:function(ct,ht,dt,ut,gt,mt,ft,pt,yt){if(dt===0&&mt===0&&yt===0)return et(ct,ht,ut,gt,ft,pt);var vt,_t=tt.sqrt(tt.pow(ut-ct,2)+tt.pow(gt-ht,2)+tt.pow(mt-dt,2)),bt=tt.sqrt(tt.pow(ft-ct,2)+tt.pow(pt-ht,2)+tt.pow(yt-dt,2)),St=tt.sqrt(tt.pow(ft-ut,2)+tt.pow(pt-gt,2)+tt.pow(yt-mt,2));return(vt=_t>bt?_t>St?_t-bt-St:St-bt-_t:St>bt?St-bt-_t:bt-_t-St)>-1e-4&&vt<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(tt,et){var it,rt=this.offsetTime;this.propType==="multidimensional"&&(it=createTypedArray("float32",this.pv.length));for(var nt,st,at,ot,lt,ct,ht,dt,ut,gt=et.lastIndex,mt=gt,ft=this.keyframes.length-1,pt=!0;pt;){if(nt=this.keyframes[mt],st=this.keyframes[mt+1],mt===ft-1&&tt>=st.t-rt){nt.h&&(nt=st),gt=0;break}if(st.t-rt>tt){gt=mt;break}mt<ft-1?mt+=1:(gt=0,pt=!1)}at=this.keyframesMetadata[mt]||{};var yt,vt=st.t-rt,_t=nt.t-rt;if(nt.to){at.bezierData||(at.bezierData=bez.buildBezierData(nt.s,st.s||nt.e,nt.to,nt.ti));var bt=at.bezierData;if(tt>=vt||tt<_t){var St=tt>=vt?bt.points.length-1:0;for(lt=bt.points[St].point.length,ot=0;ot<lt;ot+=1)it[ot]=bt.points[St].point[ot]}else{at.__fnct?ut=at.__fnct:(ut=BezierFactory.getBezierEasing(nt.o.x,nt.o.y,nt.i.x,nt.i.y,nt.n).get,at.__fnct=ut),ct=ut((tt-_t)/(vt-_t));var wt,xt=bt.segmentLength*ct,Pt=et.lastFrame<tt&&et._lastKeyframeIndex===mt?et._lastAddedLe
vendor: 7,147 bytes, line 28
28ngth:0;for(dt=et.lastFrame<tt&&et._lastKeyframeIndex===mt?et._lastPoint:0,pt=!0,ht=bt.points.length;pt;){if(Pt+=bt.points[dt].partialLength,xt===0||ct===0||dt===bt.points.length-1){for(lt=bt.points[dt].point.length,ot=0;ot<lt;ot+=1)it[ot]=bt.points[dt].point[ot];break}if(xt>=Pt&&xt<Pt+bt.points[dt+1].partialLength){for(wt=(xt-Pt)/bt.points[dt+1].partialLength,lt=bt.points[dt].point.length,ot=0;ot<lt;ot+=1)it[ot]=bt.points[dt].point[ot]+(bt.points[dt+1].point[ot]-bt.points[dt].point[ot])*wt;break}dt<ht-1?dt+=1:pt=!1}et._lastPoint=dt,et._lastAddedLength=Pt-bt.points[dt].partialLength,et._lastKeyframeIndex=mt}}else{var kt,At,Et,Ft,It;if(ft=nt.s.length,yt=st.s||nt.e,this.sh&&nt.h!==1)tt>=vt?(it[0]=yt[0],it[1]=yt[1],it[2]=yt[2]):tt<=_t?(it[0]=nt.s[0],it[1]=nt.s[1],it[2]=nt.s[2]):quaternionToEuler(it,slerp(createQuaternion(nt.s),createQuaternion(yt),(tt-_t)/(vt-_t)));else for(mt=0;mt<ft;mt+=1)nt.h!==1&&(tt>=vt?ct=1:tt<_t?ct=0:(nt.o.x.constructor===Array?(at.__fnct||(at.__fnct=[]),at.__fnct[mt]?ut=at.__fnct[mt]:(kt=nt.o.x[mt]===void 0?nt.o.x[0]:nt.o.x[mt],At=nt.o.y[mt]===void 0?nt.o.y[0]:nt.o.y[mt],Et=nt.i.x[mt]===void 0?nt.i.x[0]:nt.i.x[mt],Ft=nt.i.y[mt]===void 0?nt.i.y[0]:nt.i.y[mt],ut=BezierFactory.getBezierEasing(kt,At,Et,Ft).get,at.__fnct[mt]=ut)):at.__fnct?ut=at.__fnct:(kt=nt.o.x,At=nt.o.y,Et=nt.i.x,Ft=nt.i.y,ut=BezierFactory.getBezierEasing(kt,At,Et,Ft).get,nt.keyframeMetadata=ut),ct=ut((tt-_t)/(vt-_t)))),yt=st.s||nt.e,It=nt.h===1?nt.s[mt]:nt.s[mt]+(yt[mt]-nt.s[mt])*ct,this.propType==="multidimensional"?it[mt]=It:it=It}return et.lastIndex=gt,it}function slerp(tt,et,it){var rt,nt,st,at,ot,lt=[],ct=tt[0],ht=tt[1],dt=tt[2],ut=tt[3],gt=et[0],mt=et[1],ft=et[2],pt=et[3];return(nt=ct*gt+ht*mt+dt*ft+ut*pt)<0&&(nt=-nt,gt=-gt,mt=-mt,ft=-ft,pt=-pt),1-nt>1e-6?(rt=Math.acos(nt),st=Math.sin(rt),at=Math.sin((1-it)*rt)/st,ot=Math.sin(it*rt)/st):(at=1-it,ot=it),lt[0]=at*ct+ot*gt,lt[1]=at*ht+ot*mt,lt[2]=at*dt+ot*ft,lt[3]=at*ut+ot*pt,lt}function quaternionToEuler(tt,et){var it=et[0],rt=et[1],nt=et[2],st=et[3],at=Math.atan2(2*rt*st-2*it*nt,1-2*rt*rt-2*nt*nt),ot=Math.asin(2*it*rt+2*nt*st),lt=Math.atan2(2*it*st-2*rt*nt,1-2*it*it-2*nt*nt);tt[0]=at/degToRads,tt[1]=ot/degToRads,tt[2]=lt/degToRads}function createQuaternion(tt){var et=tt[0]*degToRads,it=tt[1]*degToRads,rt=tt[2]*degToRads,nt=Math.cos(et/2),st=Math.cos(it/2),at=Math.cos(rt/2),ot=Math.sin(et/2),lt=Math.sin(it/2),ct=Math.sin(rt/2);return[ot*lt*at+nt*st*ct,ot*st*at+nt*lt*ct,nt*lt*at-ot*st*ct,nt*st*at-ot*lt*ct]}function getValueAtCurrentTime(){var tt=this.comp.renderedFrame-this.offsetTime,et=this.keyframes[0].t-this.offsetTime,it=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(tt===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=it&&tt>=it||this._caching.lastFrame<et&&tt<et))){this._caching.lastFrame>=tt&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var rt=this.interpolateValue(tt,this._caching);this.pv=rt}return this._caching.lastFrame=tt,this.pv}function setVValue(tt){var et;if(this.propType==="unidimensional")et=tt*this.mult,mathAbs(this.v-et)>1e-5&&(this.v=et,this._mdf=!0);else for(var it=0,rt=this.v.length;it<rt;)et=tt[it]*this.mult,mathAbs(this.v[it]-et)>1e-5&&(this.v[it]=et,this._mdf=!0),it+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var tt;this.lock=!0,this._mdf=this._isFirstFrame;var et=this.effectsSequence.length,it=this.kf?this.pv:this.data.k;for(tt=0;tt<et;tt+=1)it=this.effectsSequence[tt](it);this.setVValue(it),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(tt){this.effectsSequence.push(tt),this.container.addDynamicProperty(this)}function ValueProperty(tt,et,it,rt){this.propType="unidimensional",this.mult=it||1,this.data=et,this.v=it?et.k*it:et.k,this.pv=et.k,this._mdf=!1,this.elem=tt,this.container=rt,this.comp=tt.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(tt,et,it,rt){var nt;this.propType="multidimensional",this.mult=it||1,this.data=et,this._mdf=!1,this.elem=tt,this.container=rt,this.comp=tt.comp,this.k=!1,this.kf=!1,this.frameId=-1;var st=et.k.length;for(this.v=createTypedArray("float32",st),this.pv=createTypedArray("float32",st),this.vel=createTypedArray("float32",st),nt=0;nt<st;nt+=1)this.v[nt]=et.k[nt]*this.mult,this.pv[nt]=et.k[nt];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(tt,et,it,rt){this.propType="unidimensional",this.keyframes=et.k,this.keyframesMetadata=[],this.offsetTime=tt.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=et,this.mult=it||1,this.elem=tt,this.container=rt,this.comp=tt.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(tt,et,it,rt){var nt;this.propType="multidimensional";var st,at,ot,lt,ct=et.k.length;for(nt=0;nt<ct-1;nt+=1)et.k[nt].to&&et.k[nt].s&&et.k[nt+1]&&et.k[nt+1].s&&(st=et.k[nt].s,at=et.k[nt+1].s,ot=et.k[nt].to,lt=et.k[nt].ti,(st.length===2&&(st[0]!==at[0]||st[1]!==at[1])&&bez.pointOnLine2D(st[0],st[1],at[0],at[1],st[0]+ot[0],st[1]+ot[1])&&bez.pointOnLine2D(st[0],st[1],at[0],at[1],at[0]+lt[0],at[1]+lt[1])||st.length===3&&(st[0]!==at[0]||st[1]!==at[1]||st[2]!==at[2])&&bez.pointOnLine3D(st[0],st[1],st[2],at[0],at[1],at[2],st[0]+ot[0],st[1]+ot[1],st[2]+ot[2])&&bez.pointOnLine3D(st[0],st[1],st[2],at[0],at[1],at[2],at[0]+lt[0],at[1]+lt[1],at[2]+lt[2]))&&(et.k[nt].to=null,et.k[nt].ti=null),st[0]===at[0]&&st[1]===at[1]&&ot[0]===0&&ot[1]===0&&lt[0]===0&&lt[1]===0&&(st.length===2||st[2]===at[2]&&ot[2]===0&&lt[2]===0)&&(et.k[nt].to=null,et.k[nt].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=et,this.keyframes=et.k,this.keyframesMetadata=[],this.offsetTime=tt.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=it||1,this.elem=tt,this.container=rt,this.comp=tt.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var ht=et.k[0].s.length;for(this.v=createTypedArray("float32",ht),this.pv=createTypedArray("float32",ht),nt=0;nt<ht;nt+=1)this.v[nt]=initFrame,this.pv[nt]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",ht)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(tt,et,it,rt,nt){var st;if(et.sid&&(et=tt.globalData.slotManager.getProp(et)),et.k.length)if(typeof et.k[0]=="number")st=new MultiDimensionalProperty(tt,et,rt,nt);else switch(it){case 0:st=new KeyframedValueProperty(tt,et,rt,nt);break;case 1:st=new KeyframedMultidimensionalProperty(tt,et,rt,nt)}
28else st=new ValueProperty(tt,et,rt,nt);return st.effectsSequence.length&&nt.addDynamicProperty(st),st}},ob),ob;function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(tt){this.dynamicProperties.indexOf(tt)===-1&&(this.dynamicProperties.push(tt),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var tt;this._mdf=!1;var et=this.dynamicProperties.length;for(tt=0;tt<et;tt+=1)this.dynamicProperties[tt].getValue(),this.dynamicProperties[tt]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(tt){this.container=tt,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(tt,et){this.c=tt,this.setLength(et);for(var it=0;it<et;)this.v[it]=pointPool.newElement(),this.o[it]=pointPool.newElement(),this.i[it]=pointPool.newElement(),it+=1},ShapePath.prototype.setLength=function(tt){for(;this._maxLength<tt;
vendor: 7,368 bytes, line 28
28)this.doubleArrayLength();this._length=tt},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(tt,et,it,rt,nt){var st;switch(this._length=Math.max(this._length,rt+1),this._length>=this._maxLength&&this.doubleArrayLength(),it){case"v":st=this.v;break;case"i":st=this.i;break;case"o":st=this.o;break;default:st=[]}(!st[rt]||st[rt]&&!nt)&&(st[rt]=pointPool.newElement()),st[rt][0]=tt,st[rt][1]=et},ShapePath.prototype.setTripleAt=function(tt,et,it,rt,nt,st,at,ot){this.setXYAt(tt,et,"v",at,ot),this.setXYAt(it,rt,"o",at,ot),this.setXYAt(nt,st,"i",at,ot)},ShapePath.prototype.reverse=function(){var tt=new ShapePath;tt.setPathData(this.c,this._length);var et=this.v,it=this.o,rt=this.i,nt=0;this.c&&(tt.setTripleAt(et[0][0],et[0][1],rt[0][0],rt[0][1],it[0][0],it[0][1],0,!1),nt=1);var st,at=this._length-1,ot=this._length;for(st=nt;st<ot;st+=1)tt.setTripleAt(et[at][0],et[at][1],rt[at][0],rt[at][1],it[at][0],it[at][1],st,!1),at-=1;return tt},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(tt){var et,it=tt._length;for(et=0;et<it;et+=1)pointPool.release(tt.v[et]),pointPool.release(tt.i[et]),pointPool.release(tt.o[et]),tt.v[et]=null,tt.i[et]=null,tt.o[et]=null;tt._length=0,tt.c=!1}),factory.clone=function(tt){var et,it=factory.newElement(),rt=tt._length===void 0?tt.v.length:tt._length;for(it.setLength(rt),it.c=tt.c,et=0;et<rt;et+=1)it.setTripleAt(tt.v[et][0],tt.v[et][1],tt.o[et][0],tt.o[et][1],tt.i[et][0],tt.i[et][1],et);return it},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(tt){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=tt,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var tt;for(tt=0;tt<this._length;tt+=1)shapePool.release(this.shapes[tt]);this._length=0};var shapeCollectionPool=function(){var tt={newShapeCollection:function(){return et?rt[et-=1]:new ShapeCollection},release:function(nt){var st,at=nt._length;for(st=0;st<at;st+=1)shapePool.release(nt.shapes[st]);nt._length=0,et===it&&(rt=pooling.double(rt),it*=2),rt[et]=nt,et+=1}},et=0,it=4,rt=createSizedArray(it);return tt}(),ShapePropertyFactory=function(){var tt=-999999;function et(gt,mt,ft){var pt,yt,vt,_t,bt,St,wt,xt,Pt,kt=ft.lastIndex,At=this.keyframes;if(gt<At[0].t-this.offsetTime)pt=At[0].s[0],vt=!0,kt=0;else if(gt>=At[At.length-1].t-this.offsetTime)pt=At[At.length-1].s?At[At.length-1].s[0]:At[At.length-2].e[0],vt=!0;else{for(var Et,Ft,It,Mt=kt,Lt=At.length-1,$t=!0;$t&&(Et=At[Mt],!((Ft=At[Mt+1]).t-this.offsetTime>gt));)Mt<Lt-1?Mt+=1:$t=!1;if(It=this.keyframesMetadata[Mt]||{},kt=Mt,!(vt=Et.h===1)){if(gt>=Ft.t-this.offsetTime)xt=1;else if(gt<Et.t-this.offsetTime)xt=0;else{var Vt;It.__fnct?Vt=It.__fnct:(Vt=BezierFactory.getBezierEasing(Et.o.x,Et.o.y,Et.i.x,Et.i.y).get,It.__fnct=Vt),xt=Vt((gt-(Et.t-this.offsetTime))/(Ft.t-this.offsetTime-(Et.t-this.offsetTime)))}yt=Ft.s?Ft.s[0]:Et.e[0]}pt=Et.s[0]}for(St=mt._length,wt=pt.i[0].length,ft.lastIndex=kt,_t=0;_t<St;_t+=1)for(bt=0;bt<wt;bt+=1)Pt=vt?pt.i[_t][bt]:pt.i[_t][bt]+(yt.i[_t][bt]-pt.i[_t][bt])*xt,mt.i[_t][bt]=Pt,Pt=vt?pt.o[_t][bt]:pt.o[_t][bt]+(yt.o[_t][bt]-pt.o[_t][bt])*xt,mt.o[_t][bt]=Pt,Pt=vt?pt.v[_t][bt]:pt.v[_t][bt]+(yt.v[_t][bt]-pt.v[_t][bt])*xt,mt.v[_t][bt]=Pt}function it(){var gt=this.comp.renderedFrame-this.offsetTime,mt=this.keyframes[0].t-this.offsetTime,ft=this.keyframes[this.keyframes.length-1].t-this.offsetTime,pt=this._caching.lastFrame;return pt!==tt&&(pt<mt&&gt<mt||pt>ft&&gt>ft)||(this._caching.lastIndex=pt<gt?this._caching.lastIndex:0,this.interpolateShape(gt,this.pv,this._caching)),this._caching.lastFrame=gt,this.pv}function rt(){this.paths=this.localShapeCollection}function nt(gt){(function(mt,ft){if(mt._length!==ft._length||mt.c!==ft.c)return!1;var pt,yt=mt._length;for(pt=0;pt<yt;pt+=1)if(mt.v[pt][0]!==ft.v[pt][0]||mt.v[pt][1]!==ft.v[pt][1]||mt.o[pt][0]!==ft.o[pt][0]||mt.o[pt][1]!==ft.o[pt][1]||mt.i[pt][0]!==ft.i[pt][0]||mt.i[pt][1]!==ft.i[pt][1])return!1;return!0})(this.v,gt)||(this.v=shapePool.clone(gt),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function st(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var gt,mt;this.lock=!0,this._mdf=!1,gt=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var ft=this.effectsSequence.length;for(mt=0;mt<ft;mt+=1)gt=this.effectsSequence[mt](gt);this.setVValue(gt),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function at(gt,mt,ft){this.propType="shape",this.comp=gt.comp,this.container=gt,this.elem=gt,this.data=mt,this.k=!1,this.kf=!1,this._mdf=!1;var pt=ft===3?mt.pt.k:mt.ks.k;this.v=shapePool.clone(pt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=rt,this.effectsSequence=[]}function ot(gt){this.effectsSequence.push(gt),this.container.addDynamicProperty(this)}function lt(gt,mt,ft){this.propType="shape",this.comp=gt.comp,this.elem=gt,this.container=gt,this.offsetTime=gt.data.st,this.keyframes=ft===3?mt.pt.k:mt.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var pt=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,pt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=tt,this.reset=rt,this._caching={lastFrame:tt,lastIndex:0},this.effectsSequence=[it.bind(this)]}at.prototype.interpolateShape=et,at.prototype.getValue=st,at.prototype.setVValue=nt,at.prototype.addEffect=ot,lt.prototype.getValue=st,lt.prototype.interpolateShape=et,lt.prototype.setVValue=nt,lt.prototype.addEffect=ot;var ct=function(){var gt=roundCorner;function mt(ft,pt){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=pt.d,this.elem=ft,this.comp=ft.comp,this.frameId=-1,this.initDynamicPropertyContainer(ft),this.p=PropertyFactory.getProp(ft,pt.p,1,0,this),this.s=PropertyFactory.getProp(ft,pt.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return mt.prototype={reset:rt,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var ft=this.p.v[0],pt=this.p.v[1],yt=this.s.v[0]/2,vt=this.s.v[1]/2,_t=this.d!==3,bt=this.v;bt.v[0][0]=ft,bt.v[0][1]=pt-vt,bt.v[1][0]=_t?ft+yt:ft-yt,bt.v[1][1]=pt,bt.v[2][0]=ft,bt.v[2][1]=pt+vt,bt.v[3][0]=_t?ft-yt:ft+yt,bt.v[3][1]=pt,bt.i[0][0]=_t?ft-yt*gt:ft+yt*gt,bt.i[0][1]=pt-vt,bt.i[1][0]=_t?ft+yt:ft-yt,bt.i[
vendor: 6,534 bytes, line 28
281][1]=pt-vt*gt,bt.i[2][0]=_t?ft+yt*gt:ft-yt*gt,bt.i[2][1]=pt+vt,bt.i[3][0]=_t?ft-yt:ft+yt,bt.i[3][1]=pt+vt*gt,bt.o[0][0]=_t?ft+yt*gt:ft-yt*gt,bt.o[0][1]=pt-vt,bt.o[1][0]=_t?ft+yt:ft-yt,bt.o[1][1]=pt+vt*gt,bt.o[2][0]=_t?ft-yt*gt:ft+yt*gt,bt.o[2][1]=pt+vt,bt.o[3][0]=_t?ft-yt:ft+yt,bt.o[3][1]=pt-vt*gt}},extendPrototype([DynamicPropertyContainer],mt),mt}(),ht=function(){function gt(mt,ft){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=mt,this.comp=mt.comp,this.data=ft,this.frameId=-1,this.d=ft.d,this.initDynamicPropertyContainer(mt),ft.sy===1?(this.ir=PropertyFactory.getProp(mt,ft.ir,0,0,this),this.is=PropertyFactory.getProp(mt,ft.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(mt,ft.pt,0,0,this),this.p=PropertyFactory.getProp(mt,ft.p,1,0,this),this.r=PropertyFactory.getProp(mt,ft.r,0,degToRads,this),this.or=PropertyFactory.getProp(mt,ft.or,0,0,this),this.os=PropertyFactory.getProp(mt,ft.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 gt.prototype={reset:rt,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var mt,ft,pt,yt,vt=2*Math.floor(this.pt.v),_t=2*Math.PI/vt,bt=!0,St=this.or.v,wt=this.ir.v,xt=this.os.v,Pt=this.is.v,kt=2*Math.PI*St/(2*vt),At=2*Math.PI*wt/(2*vt),Et=-Math.PI/2;Et+=this.r.v;var Ft=this.data.d===3?-1:1;for(this.v._length=0,mt=0;mt<vt;mt+=1){pt=bt?xt:Pt,yt=bt?kt:At;var It=(ft=bt?St:wt)*Math.cos(Et),Mt=ft*Math.sin(Et),Lt=It===0&&Mt===0?0:Mt/Math.sqrt(It*It+Mt*Mt),$t=It===0&&Mt===0?0:-It/Math.sqrt(It*It+Mt*Mt);It+=+this.p.v[0],Mt+=+this.p.v[1],this.v.setTripleAt(It,Mt,It-Lt*yt*pt*Ft,Mt-$t*yt*pt*Ft,It+Lt*yt*pt*Ft,Mt+$t*yt*pt*Ft,mt,!0),bt=!bt,Et+=_t*Ft}},convertPolygonToPath:function(){var mt,ft=Math.floor(this.pt.v),pt=2*Math.PI/ft,yt=this.or.v,vt=this.os.v,_t=2*Math.PI*yt/(4*ft),bt=.5*-Math.PI,St=this.data.d===3?-1:1;for(bt+=this.r.v,this.v._length=0,mt=0;mt<ft;mt+=1){var wt=yt*Math.cos(bt),xt=yt*Math.sin(bt),Pt=wt===0&&xt===0?0:xt/Math.sqrt(wt*wt+xt*xt),kt=wt===0&&xt===0?0:-wt/Math.sqrt(wt*wt+xt*xt);wt+=+this.p.v[0],xt+=+this.p.v[1],this.v.setTripleAt(wt,xt,wt-Pt*_t*vt*St,xt-kt*_t*vt*St,wt+Pt*_t*vt*St,xt+kt*_t*vt*St,mt,!0),bt+=pt*St}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],gt),gt}(),dt=function(){function gt(mt,ft){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=mt,this.comp=mt.comp,this.frameId=-1,this.d=ft.d,this.initDynamicPropertyContainer(mt),this.p=PropertyFactory.getProp(mt,ft.p,1,0,this),this.s=PropertyFactory.getProp(mt,ft.s,1,0,this),this.r=PropertyFactory.getProp(mt,ft.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return gt.prototype={convertRectToPath:function(){var mt=this.p.v[0],ft=this.p.v[1],pt=this.s.v[0]/2,yt=this.s.v[1]/2,vt=bmMin(pt,yt,this.r.v),_t=vt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(mt+pt,ft-yt+vt,mt+pt,ft-yt+vt,mt+pt,ft-yt+_t,0,!0),this.v.setTripleAt(mt+pt,ft+yt-vt,mt+pt,ft+yt-_t,mt+pt,ft+yt-vt,1,!0),vt!==0?(this.v.setTripleAt(mt+pt-vt,ft+yt,mt+pt-vt,ft+yt,mt+pt-_t,ft+yt,2,!0),this.v.setTripleAt(mt-pt+vt,ft+yt,mt-pt+_t,ft+yt,mt-pt+vt,ft+yt,3,!0),this.v.setTripleAt(mt-pt,ft+yt-vt,mt-pt,ft+yt-vt,mt-pt,ft+yt-_t,4,!0),this.v.setTripleAt(mt-pt,ft-yt+vt,mt-pt,ft-yt+_t,mt-pt,ft-yt+vt,5,!0),this.v.setTripleAt(mt-pt+vt,ft-yt,mt-pt+vt,ft-yt,mt-pt+_t,ft-yt,6,!0),this.v.setTripleAt(mt+pt-vt,ft-yt,mt+pt-_t,ft-yt,mt+pt-vt,ft-yt,7,!0)):(this.v.setTripleAt(mt-pt,ft+yt,mt-pt+_t,ft+yt,mt-pt,ft+yt,2),this.v.setTripleAt(mt-pt,ft-yt,mt-pt,ft-yt+_t,mt-pt,ft-yt,3))):(this.v.setTripleAt(mt+pt,ft-yt+vt,mt+pt,ft-yt+_t,mt+pt,ft-yt+vt,0,!0),vt!==0?(this.v.setTripleAt(mt+pt-vt,ft-yt,mt+pt-vt,ft-yt,mt+pt-_t,ft-yt,1,!0),this.v.setTripleAt(mt-pt+vt,ft-yt,mt-pt+_t,ft-yt,mt-pt+vt,ft-yt,2,!0),this.v.setTripleAt(mt-pt,ft-yt+vt,mt-pt,ft-yt+vt,mt-pt,ft-yt+_t,3,!0),this.v.setTripleAt(mt-pt,ft+yt-vt,mt-pt,ft+yt-_t,mt-pt,ft+yt-vt,4,!0),this.v.setTripleAt(mt-pt+vt,ft+yt,mt-pt+vt,ft+yt,mt-pt+_t,ft+yt,5,!0),this.v.setTripleAt(mt+pt-vt,ft+yt,mt+pt-_t,ft+yt,mt+pt-vt,ft+yt,6,!0),this.v.setTripleAt(mt+pt,ft+yt-vt,mt+pt,ft+yt-vt,mt+pt,ft+yt-_t,7,!0)):(this.v.setTripleAt(mt-pt,ft-yt,mt-pt+_t,ft-yt,mt-pt,ft-yt,1,!0),this.v.setTripleAt(mt-pt,ft+yt,mt-pt,ft+yt-_t,mt-pt,ft+yt,2,!0),this.v.setTripleAt(mt+pt,ft+yt,mt+pt-_t,ft+yt,mt+pt,ft+yt,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:rt},extendPrototype([DynamicPropertyContainer],gt),gt}(),ut={getShapeProp:function(gt,mt,ft){var pt;return ft===3||ft===4?pt=(ft===3?mt.pt:mt.ks).k.length?new lt(gt,mt,ft):new at(gt,mt,ft):ft===5?pt=new dt(gt,mt):ft===6?pt=new ct(gt,mt):ft===7&&(pt=new ht(gt,mt)),pt.k&&gt.addDynamicProperty(pt),pt},getConstructorFunction:function(){return at},getKeyframedConstructorFunction:function(){return lt}};return ut}(),Matrix=function(){var tt=Math.cos,et=Math.sin,it=Math.tan,rt=Math.round;function nt(){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 st(Ct){if(Ct===0)return this;var Dt=tt(Ct),Rt=et(Ct);return this._t(Dt,-Rt,0,0,Rt,Dt,0,0,0,0,1,0,0,0,0,1)}function at(Ct){if(Ct===0)return this;var Dt=tt(Ct),Rt=et(Ct);return this._t(1,0,0,0,0,Dt,-Rt,0,0,Rt,Dt,0,0,0,0,1)}function ot(Ct){if(Ct===0)return this;var Dt=tt(Ct),Rt=et(Ct);return this._t(Dt,0,Rt,0,0,1,0,0,-Rt,0,Dt,0,0,0,0,1)}function lt(Ct){if(Ct===0)return this;var Dt=tt(Ct),Rt=et(Ct);return this._t(Dt,-Rt,0,0,Rt,Dt,0,0,0,0,1,0,0,0,0,1)}function ct(Ct,Dt){return this._t(1,Dt,Ct,1,0,0)}function ht(Ct,Dt){return this.shear(it(Ct),it(Dt))}function dt(Ct,Dt){var Rt=tt(Dt),Bt=et(Dt);return this._t(Rt,Bt,0,0,-Bt,Rt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,it(Ct),1,0,0,0,0,1,0,0,0,0,1)._t(Rt,-Bt,0,0,Bt,Rt,0,0,0,0,1,0,0,0,0,1)}
vendor: 6,674 bytes, line 28
28function ut(Ct,Dt,Rt){return Rt||Rt===0||(Rt=1),Ct===1&&Dt===1&&Rt===1?this:this._t(Ct,0,0,0,0,Dt,0,0,0,0,Rt,0,0,0,0,1)}function gt(Ct,Dt,Rt,Bt,Wt,Gt,Ht,zt,qt,Nt,jt,Yt,Zt,Xt,Jt,Ut){return this.props[0]=Ct,this.props[1]=Dt,this.props[2]=Rt,this.props[3]=Bt,this.props[4]=Wt,this.props[5]=Gt,this.props[6]=Ht,this.props[7]=zt,this.props[8]=qt,this.props[9]=Nt,this.props[10]=jt,this.props[11]=Yt,this.props[12]=Zt,this.props[13]=Xt,this.props[14]=Jt,this.props[15]=Ut,this}function mt(Ct,Dt,Rt){return Rt=Rt||0,Ct!==0||Dt!==0||Rt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Ct,Dt,Rt,1):this}function ft(Ct,Dt,Rt,Bt,Wt,Gt,Ht,zt,qt,Nt,jt,Yt,Zt,Xt,Jt,Ut){var Ot=this.props;if(Ct===1&&Dt===0&&Rt===0&&Bt===0&&Wt===0&&Gt===1&&Ht===0&&zt===0&&qt===0&&Nt===0&&jt===1&&Yt===0)return Ot[12]=Ot[12]*Ct+Ot[15]*Zt,Ot[13]=Ot[13]*Gt+Ot[15]*Xt,Ot[14]=Ot[14]*jt+Ot[15]*Jt,Ot[15]*=Ut,this._identityCalculated=!1,this;var he=Ot[0],ce=Ot[1],ae=Ot[2],ee=Ot[3],ie=Ot[4],Kt=Ot[5],re=Ot[6],ne=Ot[7],Qt=Ot[8],se=Ot[9],te=Ot[10],oe=Ot[11],ue=Ot[12],pe=Ot[13],fe=Ot[14],de=Ot[15];return Ot[0]=he*Ct+ce*Wt+ae*qt+ee*Zt,Ot[1]=he*Dt+ce*Gt+ae*Nt+ee*Xt,Ot[2]=he*Rt+ce*Ht+ae*jt+ee*Jt,Ot[3]=he*Bt+ce*zt+ae*Yt+ee*Ut,Ot[4]=ie*Ct+Kt*Wt+re*qt+ne*Zt,Ot[5]=ie*Dt+Kt*Gt+re*Nt+ne*Xt,Ot[6]=ie*Rt+Kt*Ht+re*jt+ne*Jt,Ot[7]=ie*Bt+Kt*zt+re*Yt+ne*Ut,Ot[8]=Qt*Ct+se*Wt+te*qt+oe*Zt,Ot[9]=Qt*Dt+se*Gt+te*Nt+oe*Xt,Ot[10]=Qt*Rt+se*Ht+te*jt+oe*Jt,Ot[11]=Qt*Bt+se*zt+te*Yt+oe*Ut,Ot[12]=ue*Ct+pe*Wt+fe*qt+de*Zt,Ot[13]=ue*Dt+pe*Gt+fe*Nt+de*Xt,Ot[14]=ue*Rt+pe*Ht+fe*jt+de*Jt,Ot[15]=ue*Bt+pe*zt+fe*Yt+de*Ut,this._identityCalculated=!1,this}function pt(Ct){var Dt=Ct.props;return this.transform(Dt[0],Dt[1],Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7],Dt[8],Dt[9],Dt[10],Dt[11],Dt[12],Dt[13],Dt[14],Dt[15])}function yt(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function vt(Ct){for(var Dt=0;Dt<16;){if(Ct.props[Dt]!==this.props[Dt])return!1;Dt+=1}return!0}function _t(Ct){var Dt;for(Dt=0;Dt<16;Dt+=1)Ct.props[Dt]=this.props[Dt];return Ct}function bt(Ct){var Dt;for(Dt=0;Dt<16;Dt+=1)this.props[Dt]=Ct[Dt]}function St(Ct,Dt,Rt){return{x:Ct*this.props[0]+Dt*this.props[4]+Rt*this.props[8]+this.props[12],y:Ct*this.props[1]+Dt*this.props[5]+Rt*this.props[9]+this.props[13],z:Ct*this.props[2]+Dt*this.props[6]+Rt*this.props[10]+this.props[14]}}function wt(Ct,Dt,Rt){return Ct*this.props[0]+Dt*this.props[4]+Rt*this.props[8]+this.props[12]}function xt(Ct,Dt,Rt){return Ct*this.props[1]+Dt*this.props[5]+Rt*this.props[9]+this.props[13]}function Pt(Ct,Dt,Rt){return Ct*this.props[2]+Dt*this.props[6]+Rt*this.props[10]+this.props[14]}function kt(){var Ct=this.props[0]*this.props[5]-this.props[1]*this.props[4],Dt=this.props[5]/Ct,Rt=-this.props[1]/Ct,Bt=-this.props[4]/Ct,Wt=this.props[0]/Ct,Gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Ct,Ht=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Ct,zt=new Matrix;return zt.props[0]=Dt,zt.props[1]=Rt,zt.props[4]=Bt,zt.props[5]=Wt,zt.props[12]=Gt,zt.props[13]=Ht,zt}function At(Ct){return this.getInverseMatrix().applyToPointArray(Ct[0],Ct[1],Ct[2]||0)}function Et(Ct){var Dt,Rt=Ct.length,Bt=[];for(Dt=0;Dt<Rt;Dt+=1)Bt[Dt]=At(Ct[Dt]);return Bt}function Ft(Ct,Dt,Rt){var Bt=createTypedArray("float32",6);if(this.isIdentity())Bt[0]=Ct[0],Bt[1]=Ct[1],Bt[2]=Dt[0],Bt[3]=Dt[1],Bt[4]=Rt[0],Bt[5]=Rt[1];else{var Wt=this.props[0],Gt=this.props[1],Ht=this.props[4],zt=this.props[5],qt=this.props[12],Nt=this.props[13];Bt[0]=Ct[0]*Wt+Ct[1]*Ht+qt,Bt[1]=Ct[0]*Gt+Ct[1]*zt+Nt,Bt[2]=Dt[0]*Wt+Dt[1]*Ht+qt,Bt[3]=Dt[0]*Gt+Dt[1]*zt+Nt,Bt[4]=Rt[0]*Wt+Rt[1]*Ht+qt,Bt[5]=Rt[0]*Gt+Rt[1]*zt+Nt}return Bt}function It(Ct,Dt,Rt){return this.isIdentity()?[Ct,Dt,Rt]:[Ct*this.props[0]+Dt*this.props[4]+Rt*this.props[8]+this.props[12],Ct*this.props[1]+Dt*this.props[5]+Rt*this.props[9]+this.props[13],Ct*this.props[2]+Dt*this.props[6]+Rt*this.props[10]+this.props[14]]}function Mt(Ct,Dt){if(this.isIdentity())return Ct+","+Dt;var Rt=this.props;return Math.round(100*(Ct*Rt[0]+Dt*Rt[4]+Rt[12]))/100+","+Math.round(100*(Ct*Rt[1]+Dt*Rt[5]+Rt[13]))/100}function Lt(){for(var Ct=0,Dt=this.props,Rt="matrix3d(";Ct<16;)Rt+=rt(1e4*Dt[Ct])/1e4,Rt+=Ct===15?")":",",Ct+=1;return Rt}function $t(Ct){return Ct<1e-6&&Ct>0||Ct>-1e-6&&Ct<0?rt(1e4*Ct)/1e4:Ct}function Vt(){var Ct=this.props;return"matrix("+$t(Ct[0])+","+$t(Ct[1])+","+$t(Ct[4])+","+$t(Ct[5])+","+$t(Ct[12])+","+$t(Ct[13])+")"}return function(){this.reset=nt,this.rotate=st,this.rotateX=at,this.rotateY=ot,this.rotateZ=lt,this.skew=ht,this.skewFromAxis=dt,this.shear=ct,this.scale=ut,this.setTransform=gt,this.translate=mt,this.transform=ft,this.multiply=pt,this.applyToPoint=St,this.applyToX=wt,this.applyToY=xt,this.applyToZ=Pt,this.applyToPointArray=It,this.applyToTriplePoints=Ft,this.applyToPointStringified=Mt,this.toCSS=Lt,this.to2dCSS=Vt,this.clone=_t,this.cloneFromProps=bt,this.equals=vt,this.inversePoints=Et,this.inversePoint=At,this.getInverseMatrix=kt,this._t=this.transform,this.isIdentity=yt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(tt){return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$3(tt)}var lottie={};function setLocation(tt){setLocationHref(tt)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(tt){setSubframeEnabled(tt)}function setPrefix(tt){setIdPrefix(tt)}function loadAnimation(tt){return animationManager.loadAnimation(tt)}function setQuality(tt){if(typeof tt=="string")switch(tt){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(tt)&&tt>1&&setDefaultCurveSegments(tt)}function inBrowser(){return typeof navigator<"u"}function installPlugin(tt,et){tt==="expressions"&&setExpressionsPlugin(et)}function getFactory(tt){switch(tt){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(tt){for(var et=queryString.split("&"),it=0;
28it<et.length;it+=1){var rt=et[it].split("=");if(decodeURIComponent(rt[0])==tt)return decodeURIComponent(rt[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(tt){}var ShapeModifiers=function(){var tt={},et={};return tt.registerModifier=function(it,rt){et[it]||(et[it]=rt)},tt.getModifier=function(it,rt,nt){return new et[it](rt,nt)}
vendor: 9,314 bytes, line 28
28,tt}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(tt){if(!this.closed){tt.sh.container.addDynamicProperty(tt.sh);var et={shape:tt.sh,data:tt,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(et),this.addShapeToModifier(et),this._isAnimated&&tt.setAsAnimated()}},ShapeModifier.prototype.init=function(tt,et){this.shapes=[],this.elem=tt,this.initDynamicPropertyContainer(tt),this.initModifierProperties(tt,et),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(tt,et){this.s=PropertyFactory.getProp(tt,et.s,0,.01,this),this.e=PropertyFactory.getProp(tt,et.e,0,.01,this),this.o=PropertyFactory.getProp(tt,et.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=et.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(tt){tt.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(tt,et,it,rt,nt){var st=[];et<=1?st.push({s:tt,e:et}):tt>=1?st.push({s:tt-1,e:et-1}):(st.push({s:tt,e:1}),st.push({s:0,e:et-1}));var at,ot,lt=[],ct=st.length;for(at=0;at<ct;at+=1){var ht,dt;(ot=st[at]).e*nt<rt||ot.s*nt>rt+it||(ht=ot.s*nt<=rt?0:(ot.s*nt-rt)/it,dt=ot.e*nt>=rt+it?1:(ot.e*nt-rt)/it,lt.push([ht,dt]))}return lt.length||lt.push([0,0]),lt},TrimModifier.prototype.releasePathsData=function(tt){var et,it=tt.length;for(et=0;et<it;et+=1)segmentsLengthPool.release(tt[et]);return tt.length=0,tt},TrimModifier.prototype.processShapes=function(tt){var et,it,rt,nt;if(this._mdf||tt){var st=this.o.v%360/360;if(st<0&&(st+=1),(et=this.s.v>1?1+st:this.s.v<0?0+st:this.s.v+st)>(it=this.e.v>1?1+st:this.e.v<0?0+st:this.e.v+st)){var at=et;et=it,it=at}et=1e-4*Math.round(1e4*et),it=1e-4*Math.round(1e4*it),this.sValue=et,this.eValue=it}else et=this.sValue,it=this.eValue;var ot,lt,ct,ht,dt,ut=this.shapes.length,gt=0;if(it===et)for(nt=0;nt<ut;nt+=1)this.shapes[nt].localShapeCollection.releaseShapes(),this.shapes[nt].shape._mdf=!0,this.shapes[nt].shape.paths=this.shapes[nt].localShapeCollection,this._mdf&&(this.shapes[nt].pathsData.length=0);else if(it===1&&et===0||it===0&&et===1){if(this._mdf)for(nt=0;nt<ut;nt+=1)this.shapes[nt].pathsData.length=0,this.shapes[nt].shape._mdf=!0}else{var mt,ft,pt=[];for(nt=0;nt<ut;nt+=1)if((mt=this.shapes[nt]).shape._mdf||this._mdf||tt||this.m===2){if(lt=(rt=mt.shape.paths)._length,dt=0,!mt.shape._mdf&&mt.pathsData.length)dt=mt.totalShapeLength;else{for(ct=this.releasePathsData(mt.pathsData),ot=0;ot<lt;ot+=1)ht=bez.getSegmentsLength(rt.shapes[ot]),ct.push(ht),dt+=ht.totalLength;mt.totalShapeLength=dt,mt.pathsData=ct}gt+=dt,mt.shape._mdf=!0}else mt.shape.paths=mt.localShapeCollection;var yt,vt=et,_t=it,bt=0;for(nt=ut-1;nt>=0;nt-=1)if((mt=this.shapes[nt]).shape._mdf){for((ft=mt.localShapeCollection).releaseShapes(),this.m===2&&ut>1?(yt=this.calculateShapeEdges(et,it,mt.totalShapeLength,bt,gt),bt+=mt.totalShapeLength):yt=[[vt,_t]],lt=yt.length,ot=0;ot<lt;ot+=1){vt=yt[ot][0],_t=yt[ot][1],pt.length=0,_t<=1?pt.push({s:mt.totalShapeLength*vt,e:mt.totalShapeLength*_t}):vt>=1?pt.push({s:mt.totalShapeLength*(vt-1),e:mt.totalShapeLength*(_t-1)}):(pt.push({s:mt.totalShapeLength*vt,e:mt.totalShapeLength}),pt.push({s:0,e:mt.totalShapeLength*(_t-1)}));var St=this.addShapes(mt,pt[0]);if(pt[0].s!==pt[0].e){if(pt.length>1)if(mt.shape.paths.shapes[mt.shape.paths._length-1].c){var wt=St.pop();this.addPaths(St,ft),St=this.addShapes(mt,pt[1],wt)}else this.addPaths(St,ft),St=this.addShapes(mt,pt[1]);this.addPaths(St,ft)}}mt.shape.paths=ft}}},TrimModifier.prototype.addPaths=function(tt,et){var it,rt=tt.length;for(it=0;it<rt;it+=1)et.addShape(tt[it])},TrimModifier.prototype.addSegment=function(tt,et,it,rt,nt,st,at){nt.setXYAt(et[0],et[1],"o",st),nt.setXYAt(it[0],it[1],"i",st+1),at&&nt.setXYAt(tt[0],tt[1],"v",st),nt.setXYAt(rt[0],rt[1],"v",st+1)},TrimModifier.prototype.addSegmentFromArray=function(tt,et,it,rt){et.setXYAt(tt[1],tt[5],"o",it),et.setXYAt(tt[2],tt[6],"i",it+1),rt&&et.setXYAt(tt[0],tt[4],"v",it),et.setXYAt(tt[3],tt[7],"v",it+1)},TrimModifier.prototype.addShapes=function(tt,et,it){var rt,nt,st,at,ot,lt,ct,ht,dt=tt.pathsData,ut=tt.shape.paths.shapes,gt=tt.shape.paths._length,mt=0,ft=[],pt=!0;for(it?(ot=it._length,ht=it._length):(it=shapePool.newElement(),ot=0,ht=0),ft.push(it),rt=0;rt<gt;rt+=1){for(lt=dt[rt].lengths,it.c=ut[rt].c,st=ut[rt].c?lt.length:lt.length+1,nt=1;nt<st;nt+=1)if(mt+(at=lt[nt-1]).addedLength<et.s)mt+=at.addedLength,it.c=!1;else{if(mt>et.e){it.c=!1;break}et.s<=mt&&et.e>=mt+at.addedLength?(this.addSegment(ut[rt].v[nt-1],ut[rt].o[nt-1],ut[rt].i[nt],ut[rt].v[nt],it,ot,pt),pt=!1):(ct=bez.getNewSegment(ut[rt].v[nt-1],ut[rt].v[nt],ut[rt].o[nt-1],ut[rt].i[nt],(et.s-mt)/at.addedLength,(et.e-mt)/at.addedLength,lt[nt-1]),this.addSegmentFromArray(ct,it,ot,pt),pt=!1,it.c=!1),mt+=at.addedLength,ot+=1}if(ut[rt].c&&lt.length){if(at=lt[nt-1],mt<=et.e){var yt=lt[nt-1].addedLength;et.s<=mt&&et.e>=mt+yt?(this.addSegment(ut[rt].v[nt-1],ut[rt].o[nt-1],ut[rt].i[0],ut[rt].v[0],it,ot,pt),pt=!1):(ct=bez.getNewSegment(ut[rt].v[nt-1],ut[rt].v[0],ut[rt].o[nt-1],ut[rt].i[0],(et.s-mt)/yt,(et.e-mt)/yt,lt[nt-1]),this.addSegmentFromArray(ct,it,ot,pt),pt=!1,it.c=!1)}else it.c=!1;mt+=at.addedLength,ot+=1}if(it._length&&(it.setXYAt(it.v[ht][0],it.v[ht][1],"i",ht),it.setXYAt(it.v[it._length-1][0],it.v[it._length-1][1],"o",it._length-1)),mt>et.e)break;rt<gt-1&&(it=shapePool.newElement(),pt=!0,ft.push(it),ot=0)}return ft},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(tt,et){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(tt,et.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(tt,et){var it=et/100,rt=[0,0],nt=tt._length,st=0;for(st=0;st<nt;st+=1)rt[0]+=tt.v[st][0],rt[1]+=tt.v[st][1];rt[0]/=nt,rt[1]/=nt;var at,ot,lt,ct,ht,dt,ut=shapePool.newElement();for(ut.c=tt.c,st=0;st<nt;st+=1)at=tt.v[st][0]+(rt[0]-tt.v[st][0])*it,ot=tt.v[st][1]+(rt[1]-tt.v[st][1])*it,lt=tt.o[st][0]+(rt[0]-tt.o[st][0])*-it,ct=tt.o[st][1]+(rt[1]-tt.o[st][1])*-it,ht=tt.i[st][0]+(rt[0]-tt.i[st][0])*-it,dt=tt.i[st][1]+(rt[1]-tt.i[st][1])*-it,ut.setTripleAt(at,ot,lt,ct,ht,dt,st);return ut},PuckerAndBloatModifier.prototype.processShapes=function(tt){var et,it,rt,nt,st,at,ot=this.shapes.length,lt=this.amount.v;if(lt!==0)for(it=0;it<ot;it+=1){if(at=(st=this.shapes[it]).localShapeCollection,st.shape._mdf||this._mdf||tt)for(at.releaseShapes(),st.shape._mdf=!0,et=st.shape.paths.shapes,nt=st.shape.paths._length,rt=0;rt<nt;rt+=1)at.addShape(this.processPath(et[rt],lt));st.shape.paths=st.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var tt=[0,0];function et(it,rt,nt){if(this.elem=it,this.frameId=-1,this.propType="transform",this.data=rt,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(nt||it),rt.p&&rt.p.s?(this.px=PropertyFactory.getProp(it,rt.p.x,0,0,this),this.py=PropertyFactory.getProp(it,rt.p.y,0,0,this),rt.p.z&&(this.pz=PropertyFactory.getProp(it,rt.p.z,0,0,this))):this.p=PropertyFactory.getProp(it,rt.p||{k:[0,0,0]},1,0,this),rt.rx){if(this.rx=PropertyFactory.getProp(it,rt.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(it,rt.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(it,rt.rz,0,degToRads,this),rt.or.k[0].ti){var st,at=rt.or.k.length;for(st=0;st<at;st+=1)rt.or.k[st].to=null,rt.or.k[st].ti=null}this.or=PropertyFactory.getProp(it,rt.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(it,rt.r||{k:0},0,degToRads,this);rt.sk&&(this.sk=PropertyFactory.getProp(it,rt.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(it,rt.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(it,rt.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(it,rt.s||{k:[100,100,100]},1,.01,this),rt.o?this.o=PropertyFactory.getProp(it,rt.o,0,.01,it):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return et.prototype={applyToMatrix:function(it){var rt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||rt,this.a&&it.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&it.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&it.skewFromAxis(-this.sk.v,this.sa.v),this.r?it.rotate(-this.r.v):it.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?it.translate(this.px.v,this.py.v,-this.pz.v):it.translate(this.px.v,this.py.v,0):it.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(it){if(this.elem.globalData.frameId!==this.frameId){if
vendor: 6,514 bytes, line 28
28(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||it){var rt;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 nt,st;if(rt=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(nt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/rt,0),st=this.p.getValueAtTime(this.p.keyframes[0].t/rt,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(nt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/rt,0),st=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/rt,0)):(nt=this.p.pv,st=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/rt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){nt=[],st=[];var at=this.px,ot=this.py;at._caching.lastFrame+at.offsetTime<=at.keyframes[0].t?(nt[0]=at.getValueAtTime((at.keyframes[0].t+.01)/rt,0),nt[1]=ot.getValueAtTime((ot.keyframes[0].t+.01)/rt,0),st[0]=at.getValueAtTime(at.keyframes[0].t/rt,0),st[1]=ot.getValueAtTime(ot.keyframes[0].t/rt,0)):at._caching.lastFrame+at.offsetTime>=at.keyframes[at.keyframes.length-1].t?(nt[0]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/rt,0),nt[1]=ot.getValueAtTime(ot.keyframes[ot.keyframes.length-1].t/rt,0),st[0]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/rt,0),st[1]=ot.getValueAtTime((ot.keyframes[ot.keyframes.length-1].t-.01)/rt,0)):(nt=[at.pv,ot.pv],st[0]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/rt,at.offsetTime),st[1]=ot.getValueAtTime((ot._caching.lastFrame+ot.offsetTime-.01)/rt,ot.offsetTime))}else nt=st=tt;this.v.rotate(-Math.atan2(nt[1]-st[1],nt[0]-st[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],et),et.prototype.addDynamicProperty=function(it){this._addDynamicProperty(it),this.elem.addDynamicProperty(it),this._isDirty=!0},et.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(it,rt,nt){return new et(it,rt,nt)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(tt,et){return 1e5*Math.abs(tt-et)<=Math.min(Math.abs(tt),Math.abs(et))}function floatZero(tt){return Math.abs(tt)<=1e-5}function lerp(tt,et,it){return tt*(1-it)+et*it}function lerpPoint(tt,et,it){return[lerp(tt[0],et[0],it),lerp(tt[1],et[1],it)]}function quadRoots(tt,et,it){if(tt===0)return[];var rt=et*et-4*tt*it;if(rt<0)return[];var nt=-et/(2*tt);if(rt===0)return[nt];var st=Math.sqrt(rt)/(2*tt);return[nt-st,nt+st]}function polynomialCoefficients(tt,et,it,rt){return[3*et-tt-3*it+rt,3*tt-6*et+3*it,-3*tt+3*et,tt]}function singlePoint(tt){return new PolynomialBezier(tt,tt,tt,tt,!1)}function PolynomialBezier(tt,et,it,rt,nt){nt&&pointEqual(tt,et)&&(et=lerpPoint(tt,rt,1/3)),nt&&pointEqual(it,rt)&&(it=lerpPoint(tt,rt,2/3));var st=polynomialCoefficients(tt[0],et[0],it[0],rt[0]),at=polynomialCoefficients(tt[1],et[1],it[1],rt[1]);this.a=[st[0],at[0]],this.b=[st[1],at[1]],this.c=[st[2],at[2]],this.d=[st[3],at[3]],this.points=[tt,et,it,rt]}function extrema(tt,et){var it=tt.points[0][et],rt=tt.points[tt.points.length-1][et];if(it>rt){var nt=rt;rt=it,it=nt}for(var st=quadRoots(3*tt.a[et],2*tt.b[et],tt.c[et]),at=0;at<st.length;at+=1)if(st[at]>0&&st[at]<1){var ot=tt.point(st[at])[et];ot<it?it=ot:ot>rt&&(rt=ot)}return{min:it,max:rt}}function intersectData(tt,et,it){var rt=tt.boundingBox();return{cx:rt.cx,cy:rt.cy,width:rt.width,height:rt.height,bez:tt,t:(et+it)/2,t1:et,t2:it}}function splitData(tt){var et=tt.bez.split(.5);return[intersectData(et[0],tt.t1,tt.t),intersectData(et[1],tt.t,tt.t2)]}function boxIntersect(tt,et){return 2*Math.abs(tt.cx-et.cx)<tt.width+et.width&&2*Math.abs(tt.cy-et.cy)<tt.height+et.height}function intersectsImpl(tt,et,it,rt,nt,st){if(boxIntersect(tt,et))if(it>=st||tt.width<=rt&&tt.height<=rt&&et.width<=rt&&et.height<=rt)nt.push([tt.t,et.t]);else{var at=splitData(tt),ot=splitData(et);intersectsImpl(at[0],ot[0],it+1,rt,nt,st),intersectsImpl(at[0],ot[1],it+1,rt,nt,st),intersectsImpl(at[1],ot[0],it+1,rt,nt,st),intersectsImpl(at[1],ot[1],it+1,rt,nt,st)}}function crossProduct(tt,et){return[tt[1]*et[2]-tt[2]*et[1],tt[2]*et[0]-tt[0]*et[2],tt[0]*et[1]-tt[1]*et[0]]}function lineIntersection(tt,et,it,rt){var nt=[tt[0],tt[1],1],st=[et[0],et[1],1],at=[it[0],it[1],1],ot=[rt[0],rt[1],1],lt=crossProduct(crossProduct(nt,st),crossProduct(at,ot));return floatZero(lt[2])?null:[lt[0]/lt[2],lt[1]/lt[2]]}function polarOffset(tt,et,it){return[tt[0]+Math.cos(et)*it,tt[1]-Math.sin(et)*it]}function pointDistance(tt,et){return Math.hypot(tt[0]-et[0],tt[1]-et[1])}function pointEqual(tt,et){return floatEqual(tt[0],et[0])&&floatEqual(tt[1],et[1])}function ZigZagModifier(){}function setPoint(tt,et,it,rt,nt,st,at){var ot=it-Math.PI/2,lt=it+M
vendor: 8,086 bytes, line 28
28ath.PI/2,ct=et[0]+Math.cos(it)*rt*nt,ht=et[1]-Math.sin(it)*rt*nt;tt.setTripleAt(ct,ht,ct+Math.cos(ot)*st,ht-Math.sin(ot)*st,ct+Math.cos(lt)*at,ht-Math.sin(lt)*at,tt.length())}function getPerpendicularVector(tt,et){var it=[et[0]-tt[0],et[1]-tt[1]],rt=.5*-Math.PI;return[Math.cos(rt)*it[0]-Math.sin(rt)*it[1],Math.sin(rt)*it[0]+Math.cos(rt)*it[1]]}function getProjectingAngle(tt,et){var it=et===0?tt.length()-1:et-1,rt=(et+1)%tt.length(),nt=getPerpendicularVector(tt.v[it],tt.v[rt]);return Math.atan2(0,1)-Math.atan2(nt[1],nt[0])}function zigZagCorner(tt,et,it,rt,nt,st,at){var ot=getProjectingAngle(et,it),lt=et.v[it%et._length],ct=et.v[it===0?et._length-1:it-1],ht=et.v[(it+1)%et._length],dt=st===2?Math.sqrt(Math.pow(lt[0]-ct[0],2)+Math.pow(lt[1]-ct[1],2)):0,ut=st===2?Math.sqrt(Math.pow(lt[0]-ht[0],2)+Math.pow(lt[1]-ht[1],2)):0;setPoint(tt,et.v[it%et._length],ot,at,rt,ut/(2*(nt+1)),dt/(2*(nt+1)))}function zigZagSegment(tt,et,it,rt,nt,st){for(var at=0;at<rt;at+=1){var ot=(at+1)/(rt+1),lt=nt===2?Math.sqrt(Math.pow(et.points[3][0]-et.points[0][0],2)+Math.pow(et.points[3][1]-et.points[0][1],2)):0,ct=et.normalAngle(ot);setPoint(tt,et.point(ot),ct,st,it,lt/(2*(rt+1)),lt/(2*(rt+1))),st=-st}return st}function linearOffset(tt,et,it){var rt=Math.atan2(et[0]-tt[0],et[1]-tt[1]);return[polarOffset(tt,rt,it),polarOffset(et,rt,it)]}function offsetSegment(tt,et){var it,rt,nt,st,at,ot,lt;it=(lt=linearOffset(tt.points[0],tt.points[1],et))[0],rt=lt[1],nt=(lt=linearOffset(tt.points[1],tt.points[2],et))[0],st=lt[1],at=(lt=linearOffset(tt.points[2],tt.points[3],et))[0],ot=lt[1];var ct=lineIntersection(it,rt,nt,st);ct===null&&(ct=rt);var ht=lineIntersection(at,ot,nt,st);return ht===null&&(ht=at),new PolynomialBezier(it,ct,ht,ot)}function joinLines(tt,et,it,rt,nt){var st=et.points[3],at=it.points[0];if(rt===3||pointEqual(st,at))return st;if(rt===2){var ot=-et.tangentAngle(1),lt=-it.tangentAngle(0)+Math.PI,ct=lineIntersection(st,polarOffset(st,ot+Math.PI/2,100),at,polarOffset(at,ot+Math.PI/2,100)),ht=ct?pointDistance(ct,st):pointDistance(st,at)/2,dt=polarOffset(st,ot,2*ht*roundCorner);return tt.setXYAt(dt[0],dt[1],"o",tt.length()-1),dt=polarOffset(at,lt,2*ht*roundCorner),tt.setTripleAt(at[0],at[1],at[0],at[1],dt[0],dt[1],tt.length()),at}var ut=lineIntersection(pointEqual(st,et.points[2])?et.points[0]:et.points[2],st,at,pointEqual(at,it.points[1])?it.points[3]:it.points[1]);return ut&&pointDistance(ut,st)<nt?(tt.setTripleAt(ut[0],ut[1],ut[0],ut[1],ut[0],ut[1],tt.length()),ut):st}function getIntersection(tt,et){var it=tt.intersections(et);return it.length&&floatEqual(it[0][0],1)&&it.shift(),it.length?it[0]:null}function pruneSegmentIntersection(tt,et){var it=tt.slice(),rt=et.slice(),nt=getIntersection(tt[tt.length-1],et[0]);return nt&&(it[tt.length-1]=tt[tt.length-1].split(nt[0])[0],rt[0]=et[0].split(nt[1])[1]),tt.length>1&&et.length>1&&(nt=getIntersection(tt[0],et[et.length-1]))?[[tt[0].split(nt[0])[0]],[et[et.length-1].split(nt[1])[1]]]:[it,rt]}function pruneIntersections(tt){for(var et,it=1;it<tt.length;it+=1)et=pruneSegmentIntersection(tt[it-1],tt[it]),tt[it-1]=et[0],tt[it]=et[1];return tt.length>1&&(et=pruneSegmentIntersection(tt[tt.length-1],tt[0]),tt[tt.length-1]=et[0],tt[0]=et[1]),tt}function offsetSegmentSplit(tt,et){var it,rt,nt,st,at=tt.inflectionPoints();if(at.length===0)return[offsetSegment(tt,et)];if(at.length===1||floatEqual(at[1],1))return it=(nt=tt.split(at[0]))[0],rt=nt[1],[offsetSegment(it,et),offsetSegment(rt,et)];it=(nt=tt.split(at[0]))[0];var ot=(at[1]-at[0])/(1-at[0]);return st=(nt=nt[1].split(ot))[0],rt=nt[1],[offsetSegment(it,et),offsetSegment(st,et),offsetSegment(rt,et)]}function OffsetPathModifier(){}function getFontProperties(tt){for(var et=tt.fStyle?tt.fStyle.split(" "):[],it="normal",rt="normal",nt=et.length,st=0;st<nt;st+=1)switch(et[st].toLowerCase()){case"italic":rt="italic";break;case"bold":it="700";break;case"black":it="900";break;case"medium":it="500";break;case"regular":case"normal":it="400";break;case"light":case"thin":it="200"}return{style:rt,weight:tt.fWeight||it}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(tt,et){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(tt,et.c,0,null,this),this.o=PropertyFactory.getProp(tt,et.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(tt,et.tr,this),this.so=PropertyFactory.getProp(tt,et.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(tt,et.tr.eo,0,.01,this),this.data=et,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(tt,et,it,rt,nt,st){var at=st?-1:1,ot=rt.s.v[0]+(1-rt.s.v[0])*(1-nt),lt=rt.s.v[1]+(1-rt.s.v[1])*(1-nt);tt.translate(rt.p.v[0]*at*nt,rt.p.v[1]*at*nt,rt.p.v[2]),et.translate(-rt.a.v[0],-rt.a.v[1],rt.a.v[2]),et.rotate(-rt.r.v*at*nt),et.translate(rt.a.v[0],rt.a.v[1],rt.a.v[2]),it.translate(-rt.a.v[0],-rt.a.v[1],rt.a.v[2]),it.scale(st?1/ot:ot,st?1/lt:lt),it.translate(rt.a.v[0],rt.a.v[1],rt.a.v[2])},RepeaterModifier.prototype.init=function(tt,et,it,rt){for(this.elem=tt,this.arr=et,this.pos=it,this.elemsData=rt,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(tt),this.initModifierProperties(tt,et[it]);it>0;)it-=1,this._elements.unshift(et[it]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(tt){var et,it=tt.length;for(et=0;et<it;et+=1)tt[et]._processed=!1,tt[et].ty==="gr"&&this.resetElements(tt[et].it)},RepeaterModifier.prototype.cloneElements=function(tt){var et=JSON.parse(JSON.stringify(tt));return this.resetElements(et),et},RepeaterModifier.prototype.changeGroupRender=function(tt,et){var it,rt=tt.length;for(it=0;it<rt;it+=1)tt[it]._render=et,tt[it].ty==="gr"&&this.changeGroupRender(tt[it].it,et)},RepeaterModifier.prototype.processShapes=function(tt){var et,it,rt,nt,st,at=!1;if(this._mdf||tt){var ot,lt=Math.ceil(this.c.v);if(this._groups.length<lt){for(;this._groups.length<lt;){var ct={it:this.cloneElements(this._elements),ty:"gr"};ct.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,ct),this._groups.splice(0,0,ct),this._currentCopies+=1}this.elem.reloadShapes(),at=!0}for(st=0,rt=0;rt<=this._groups.length-1;rt+=1){if(ot=st<lt,this._groups[rt]._render=ot,this.changeGroupRender(this._groups[rt].it,ot),!ot){var ht=this.elemsData[rt].it,dt=ht[ht.length-1];dt.transform.op.v!==0?(dt.transform.op._mdf=!0,dt.transform.op.v=0):dt.transform.op._mdf=!1}st+=1}this._currentCopies=lt;var ut=this.o.v,gt=ut%1,mt=ut>0?Math.floor(ut):Math.ceil(ut),ft=this.pMatrix.props,pt=this.rMatrix.props,yt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var vt,_t,bt=0;if(ut>0){for(;bt<mt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),bt+=1;gt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,gt,!1),bt+=gt)}else if(ut<0){for(;bt>mt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),bt-=1;gt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-gt,!0),bt-=gt)}for(rt=this.data.m===1?0:this._currentCopies-1,nt=this.data.m===1?1:-1,st=this._currentCopies;st;){if(_t=(it=(et=this.elemsData[rt].it)[et.length-1].transform.mProps.v.props).length,et[et.length-1].transform.mProps._mdf=!0,et[et.length-1].transform.op._mdf=!0,et[et.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(rt/(this._currentCopies-1)),bt!==0){for((rt!==0&&nt===1||rt!==this._currentCopies-1&&nt===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10
vendor: 13,410 bytes, line 28
28],pt[11],pt[12],pt[13],pt[14],pt[15]),this.matrix.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],yt[8],yt[9],yt[10],yt[11],yt[12],yt[13],yt[14],yt[15]),this.matrix.transform(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],ft[8],ft[9],ft[10],ft[11],ft[12],ft[13],ft[14],ft[15]),vt=0;vt<_t;vt+=1)it[vt]=this.matrix.props[vt];this.matrix.reset()}else for(this.matrix.reset(),vt=0;vt<_t;vt+=1)it[vt]=this.matrix.props[vt];bt+=1,st-=1,rt+=nt}}else for(st=this._currentCopies,rt=0,nt=1;st;)it=(et=this.elemsData[rt].it)[et.length-1].transform.mProps.v.props,et[et.length-1].transform.mProps._mdf=!1,et[et.length-1].transform.op._mdf=!1,st-=1,rt+=nt;return at},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(tt,et){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(tt,et.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(tt,et){var it,rt=shapePool.newElement();rt.c=tt.c;var nt,st,at,ot,lt,ct,ht,dt,ut,gt,mt,ft,pt=tt._length,yt=0;for(it=0;it<pt;it+=1)nt=tt.v[it],at=tt.o[it],st=tt.i[it],nt[0]===at[0]&&nt[1]===at[1]&&nt[0]===st[0]&&nt[1]===st[1]?it!==0&&it!==pt-1||tt.c?(ot=it===0?tt.v[pt-1]:tt.v[it-1],ct=(lt=Math.sqrt(Math.pow(nt[0]-ot[0],2)+Math.pow(nt[1]-ot[1],2)))?Math.min(lt/2,et)/lt:0,ht=mt=nt[0]+(ot[0]-nt[0])*ct,dt=ft=nt[1]-(nt[1]-ot[1])*ct,ut=ht-(ht-nt[0])*roundCorner,gt=dt-(dt-nt[1])*roundCorner,rt.setTripleAt(ht,dt,ut,gt,mt,ft,yt),yt+=1,ot=it===pt-1?tt.v[0]:tt.v[it+1],ct=(lt=Math.sqrt(Math.pow(nt[0]-ot[0],2)+Math.pow(nt[1]-ot[1],2)))?Math.min(lt/2,et)/lt:0,ht=ut=nt[0]+(ot[0]-nt[0])*ct,dt=gt=nt[1]+(ot[1]-nt[1])*ct,mt=ht-(ht-nt[0])*roundCorner,ft=dt-(dt-nt[1])*roundCorner,rt.setTripleAt(ht,dt,ut,gt,mt,ft,yt),yt+=1):(rt.setTripleAt(nt[0],nt[1],at[0],at[1],st[0],st[1],yt),yt+=1):(rt.setTripleAt(tt.v[it][0],tt.v[it][1],tt.o[it][0],tt.o[it][1],tt.i[it][0],tt.i[it][1],yt),yt+=1);return rt},RoundCornersModifier.prototype.processShapes=function(tt){var et,it,rt,nt,st,at,ot=this.shapes.length,lt=this.rd.v;if(lt!==0)for(it=0;it<ot;it+=1){if(at=(st=this.shapes[it]).localShapeCollection,st.shape._mdf||this._mdf||tt)for(at.releaseShapes(),st.shape._mdf=!0,et=st.shape.paths.shapes,nt=st.shape.paths._length,rt=0;rt<nt;rt+=1)at.addShape(this.processPath(et[rt],lt));st.shape.paths=st.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(tt){return[((this.a[0]*tt+this.b[0])*tt+this.c[0])*tt+this.d[0],((this.a[1]*tt+this.b[1])*tt+this.c[1])*tt+this.d[1]]},PolynomialBezier.prototype.derivative=function(tt){return[(3*tt*this.a[0]+2*this.b[0])*tt+this.c[0],(3*tt*this.a[1]+2*this.b[1])*tt+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(tt){var et=this.derivative(tt);return Math.atan2(et[1],et[0])},PolynomialBezier.prototype.normalAngle=function(tt){var et=this.derivative(tt);return Math.atan2(et[0],et[1])},PolynomialBezier.prototype.inflectionPoints=function(){var tt=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(tt))return[];var et=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/tt,it=et*et-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/tt;if(it<0)return[];var rt=Math.sqrt(it);return floatZero(rt)?rt>0&&rt<1?[et]:[]:[et-rt,et+rt].filter(function(nt){return nt>0&&nt<1})},PolynomialBezier.prototype.split=function(tt){if(tt<=0)return[singlePoint(this.points[0]),this];if(tt>=1)return[this,singlePoint(this.points[this.points.length-1])];var et=lerpPoint(this.points[0],this.points[1],tt),it=lerpPoint(this.points[1],this.points[2],tt),rt=lerpPoint(this.points[2],this.points[3],tt),nt=lerpPoint(et,it,tt),st=lerpPoint(it,rt,tt),at=lerpPoint(nt,st,tt);return[new PolynomialBezier(this.points[0],et,nt,at,!0),new PolynomialBezier(at,st,rt,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var tt=this.bounds();return{left:tt.x.min,right:tt.x.max,top:tt.y.min,bottom:tt.y.max,width:tt.x.max-tt.x.min,height:tt.y.max-tt.y.min,cx:(tt.x.max+tt.x.min)/2,cy:(tt.y.max+tt.y.min)/2}},PolynomialBezier.prototype.intersections=function(tt,et,it){et===void 0&&(et=2),it===void 0&&(it=7);var rt=[];return intersectsImpl(intersectData(this,0,1),intersectData(tt,0,1),0,et,rt,it),rt},PolynomialBezier.shapeSegment=function(tt,et){var it=(et+1)%tt.length();return new PolynomialBezier(tt.v[et],tt.o[et],tt.i[it],tt.v[it],!0)},PolynomialBezier.shapeSegmentInverted=function(tt,et){var it=(et+1)%tt.length();return new PolynomialBezier(tt.v[it],tt.i[it],tt.o[et],tt.v[et],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(tt,et){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(tt,et.s,0,null,this),this.frequency=PropertyFactory.getProp(tt,et.r,0,null,this),this.pointsType=PropertyFactory.getProp(tt,et.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(tt,et,it,rt){var nt=tt._length,st=shapePool.newElement();if(st.c=tt.c,tt.c||(nt-=1),nt===0)return st;var at=-1,ot=PolynomialBezier.shapeSegment(tt,0);zigZagCorner(st,tt,0,et,it,rt,at);for(var lt=0;lt<nt;lt+=1)at=zigZagSegment(st,ot,et,it,rt,-at),ot=lt!==nt-1||tt.c?PolynomialBezier.shapeSegment(tt,(lt+1)%nt):null,zigZagCorner(st,tt,lt+1,et,it,rt,at);return st},ZigZagModifier.prototype.processShapes=function(tt){var et,it,rt,nt,st,at,ot=this.shapes.length,lt=this.amplitude.v,ct=Math.max(0,Math.round(this.frequency.v)),ht=this.pointsType.v;if(lt!==0)for(it=0;it<ot;it+=1){if(at=(st=this.shapes[it]).localShapeCollection,st.shape._mdf||this._mdf||tt)for(at.releaseShapes(),st.shape._mdf=!0,et=st.shape.paths.shapes,nt=st.shape.paths._length,rt=0;rt<nt;rt+=1)at.addShape(this.processPath(et[rt],lt,ct,ht));st.shape.paths=st.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(tt,et){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(tt,et.a,0,null,this),this.miterLimit=PropertyFactory.getProp(tt,et.ml,0,null,this),this.lineJoin=et.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(tt,et,it,rt){var nt=shapePool.newElement();nt.c=tt.c;var st,at,ot,lt=tt.length();tt.c||(lt-=1);var ct=[];for(st=0;st<lt;st+=1)ot=PolynomialBezier.shapeSegment(tt,st),ct.push(offsetSegmentSplit(ot,et));if(!tt.c)for(st=lt-1;st>=0;st-=1)ot=PolynomialBezier.shapeSegmentInverted(tt,st),ct.push(offsetSegmentSplit(ot,et));ct=pruneIntersections(ct);var ht=null,dt=null;for(st=0;st<ct.length;st+=1){var ut=ct[st];for(dt&&(ht=joinLines(nt,dt,ut[0],it,rt)),dt=ut[ut.length-1],at=0;at<ut.length;at+=1)ot=ut[at],ht&&pointEqual(ot.points[0],ht)?nt.setXYAt(ot.points[1][0],ot.points[1][1],"o",nt.length()-1):nt.setTripleAt(ot.points[0][0],ot.points[0][1],ot.points[1][0],ot.points[1][1],ot.points[0][0],ot.points[0][1],nt.length()),nt.setTripleAt(ot.points[3][0],ot.points[3][1],ot.points[3][0],ot.points[3][1],ot.points[2][0],ot.points[2][1],nt.length()),ht=ot.points[3]}return ct.length&&joinLines(nt,dt,ct[0][0],it,rt),nt},OffsetPathModifier.prototype.processShapes=function(tt){var et,it,rt,nt,st,at,ot=this.shapes.length,lt=this.amount.v,ct=this.miterLimit.v,ht=this.lineJoin;if(lt!==0)for(it=0;it<ot;it+=1){if(at=(st=this.shapes[it]).localShapeCollection,st.shape._mdf||this._mdf||tt)for(at.releaseShapes(),st.shape._mdf=!0,et=st.shape.paths.shapes,nt=st.shape.paths._length,rt=0;rt<nt;rt+=1)at.addShape(this.processPath(et[rt],lt,ht,ct));st.shape.paths=st.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var tt={w:0,size:0,shapes:[],data:{shapes:[]}},et=[];et=et.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 it=127988,rt=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function nt(ht,dt){var ut=createTag("span");ut.setAttribute("aria-hidden",!0),ut.style.fontFamily=dt;var gt=createTag("span");gt.innerText="giItT1WQy@!-/#",ut.style.position="absolute",ut.style.left="-10000px",ut.style.top="-10000px",ut.style.fontSize="300px",ut.style.fontVariant="normal",ut.style.fontStyle="normal",ut.style.fontWeight="normal",ut.style.letterSpacing="0",ut.appendChild(gt),document.body.appendChild(ut);var mt=gt.offsetWidth;return gt.style.fontFamily=function(ft){var pt,yt=ft.split(","),vt=yt.length,_t=[];for(pt=0;pt<vt;pt+=1)yt[pt]!=="sans-serif"&&yt[pt]!=="monospace"&&_t.push(yt[pt]);return _t.join(",")}(ht)+", "+dt,{node:gt,w:mt,parent:ut}}function st(ht,dt){var ut,gt=document.body&&dt?"svg":"canvas",mt=getFontProperties(ht);if(gt==="svg"){var ft=createNS("text");ft.style.fontSize="100px",ft.setAttribute("font-family",ht.fFamily),ft.setAttribute("font-style",mt.style),ft.setAttribute("font-weight",mt.weight),ft.textContent="1",ht.fClass?(ft.style.fontFamily="inherit",ft.setAttribute("class",ht.fClass)):ft.style.fontFamily=ht.fFamily,dt.appendChild(ft),ut=ft}else{var pt=new OffscreenCanvas(500,500).getContext("2d");pt.font=mt.style+" "+mt.weight+" 100px "+ht.fFamily,ut=pt}return{measureText:function(yt){return gt==="svg"?(ut.textContent=yt,ut.getComputedTextLength()):ut.measureText(yt).width}}}function at(ht){var dt=0,ut=ht.charCodeAt(0);if(ut>=55296&&ut<=56319){var gt=ht.charCodeAt(1);gt>=56320&&gt<=57343&&(dt=1024*(ut-55296)+gt-56320+65536)}return dt}function ot(ht){var dt=at(ht);return dt>=127462&&dt<=127487}var lt=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)};lt.isModifier=function(ht,dt){var ut=ht.toString(16)+dt.toString(16);return rt.indexOf(ut)!==-1},lt.isZeroWidthJoiner=function(ht){return ht===8205},lt.isFlagEmoji=function(ht){return ot(ht.substr(0,2))&&ot(ht.substr(2,2))},lt.isRegionalCode=ot,lt.isCombinedCharacter=function(ht){return et.indexOf(ht)!==-1},lt.isRegionalFlag=function(ht,dt){var ut=at(ht.substr(dt,2));if(ut!==it)return!1;var gt=0;for(dt+=2;gt<5;){if((ut=at(ht.substr(dt,2)))<917601||ut>917626)return!1;gt+=1,dt+=2}return at(ht.substr(dt,2))===917631},lt.isVariationSelector=function(ht){return ht===65039},lt.BLACK_FLAG_CODE_POINT=it;var ct={addChars:function(ht){if(ht){var dt;this.chars||(this.chars=[]);var ut,gt,mt=ht.length,ft=this.chars.length;for(dt=0;dt<mt;dt+=1){for(ut=0,gt=!1;ut<ft;)this.chars[ut].style===ht[dt].style&&this.chars[ut].fFamily===ht[dt].fFamily&&this.chars[ut].ch===ht[dt].ch&&(gt=!0),ut+=1;gt||(this.chars.push(ht[dt]),ft+=1)}}},addFonts:function(ht,dt){if(ht){if(this.chars)return this.isLoaded=!0,void(this.fonts=ht.list);if(!document.body)return this.isLoaded=!0,ht.list.forEach(function(wt){wt.helper=st(wt),wt.cache={}}),void(this.fonts=ht.list);var ut,gt=ht.list,mt=gt.length,ft=mt;for(ut=0;ut<mt;ut+=1){var pt,yt,vt=!0;if(gt[ut].loaded=!1,gt[ut].monoCase=nt(gt[ut].fFamily,"monospace"),gt[ut].sansCase=nt(gt[ut].fFamily,"sans-serif"),gt[ut].fPath){if(gt[ut].fOrigin==="p"||gt[ut].origin===3){if((pt=document.querySelectorAll('style[f-forigin="p"][f-family="'+gt[ut].fFamily+'"], style[f-origin="3"][f-family="'+gt[ut].fFamily+'"]')).length>0&&(vt=!1),vt){var _t=createTag("style");_t.setAttribute("f-forigin",gt[ut].fOrigin),_t.setAttribute("f-origin",gt[ut].origin),_t.setAttribute("f-family",gt[ut].fFamily),_t.type="text/css",_t.innerText="@font-face {font-family: "+gt[ut].fFamily+"; font-style: normal; src: url('"+gt[ut].fPath+"');}",dt.appendChild(_t)}}else if(gt[ut].fOrigin==="g"||gt[ut].origin===1){for(pt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),yt=0;yt<pt.length;yt+=1)pt[yt].href.indexOf(gt[ut].fPath)!==-1&&(vt=!1);if(vt){var bt=createTag("link");bt.setAttribute("f-forigin",gt[ut].fOrigin),bt.setAttribute("f-origin",gt[ut].origin),bt.type="text/css",bt.rel="stylesheet",bt.href=gt[ut].fPath,document.body.appendChild(bt)}}else if(gt[ut].fOrigin==="t"||gt[ut].origin===2){for(pt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),yt=0;yt<pt.length;yt+=1)gt[ut].fPath===pt[yt].src&&(vt=!1);if(vt){var St=createTag("link");St.setAttribute("f-forigin",gt[ut].fOrigin),St.setAttribute("f-origin",gt[ut].origin),St.setAttribute("rel","stylesheet"),St.setAttribute("href",gt[ut].fPath),dt.appendChild(St)}}}else gt[ut].loaded=!0,ft-=1;gt[ut].helper=st(gt[ut],dt),gt[ut].cache={},this.fonts.push(gt[ut])}ft===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(ht,dt,ut){for(var gt=0,mt=this.chars.length;gt<mt;){if(this.chars[gt].ch===ht&&this.chars[gt].style===dt&&this.chars[gt].fFamily===ut)return this.chars[gt];gt+=1}return(typeof ht=="string"&&ht.charCodeAt(0)!==13||!ht)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",ht,dt,ut)),tt},getFontByName:function(ht){for(var dt=0,ut=this.fonts.length;dt<ut;){if(this.fonts[dt].fName===ht)return this.fonts[dt];dt+=1}return this.fonts[0]}
vendor: 6,042 bytes, line 28
28,measureText:function(ht,dt,ut){var gt=this.getFontByName(dt),mt=ht;if(!gt.cache[mt]){var ft=gt.helper;if(ht===" "){var pt=ft.measureText("|"+ht+"|"),yt=ft.measureText("||");gt.cache[mt]=(pt-yt)/100}else gt.cache[mt]=ft.measureText(ht)/100}return gt.cache[mt]*ut},checkLoadedFonts:function(){var ht,dt,ut,gt=this.fonts.length,mt=gt;for(ht=0;ht<gt;ht+=1)this.fonts[ht].loaded?mt-=1:this.fonts[ht].fOrigin==="n"||this.fonts[ht].origin===0?this.fonts[ht].loaded=!0:(dt=this.fonts[ht].monoCase.node,ut=this.fonts[ht].monoCase.w,dt.offsetWidth!==ut?(mt-=1,this.fonts[ht].loaded=!0):(dt=this.fonts[ht].sansCase.node,ut=this.fonts[ht].sansCase.w,dt.offsetWidth!==ut&&(mt-=1,this.fonts[ht].loaded=!0)),this.fonts[ht].loaded&&(this.fonts[ht].sansCase.parent.parentNode.removeChild(this.fonts[ht].sansCase.parent),this.fonts[ht].monoCase.parent.parentNode.removeChild(this.fonts[ht].monoCase.parent)));mt!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return lt.prototype=ct,lt}();function SlotManager(tt){this.animationData=tt}function slotFactory(tt){return new SlotManager(tt)}function RenderableElement(){}SlotManager.prototype.getProp=function(tt){return this.animationData.slots&&this.animationData.slots[tt.sid]?Object.assign(tt,this.animationData.slots[tt.sid].p):tt},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)===-1&&this.renderableComponents.push(tt)},removeRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(tt),1)},prepareRenderableFrame:function(tt){this.checkLayerLimits(tt)},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(tt){this.data.ip-this.data.st<=tt&&this.data.op-this.data.st>tt?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var tt,et=this.renderableComponents.length;for(tt=0;tt<et;tt+=1)this.renderableComponents[tt].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(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(tt){return blendModeEnums[tt]||""}),blendModeEnums;function SliderEffect(tt,et,it){this.p=PropertyFactory.getProp(et,tt.v,0,0,it)}function AngleEffect(tt,et,it){this.p=PropertyFactory.getProp(et,tt.v,0,0,it)}function ColorEffect(tt,et,it){this.p=PropertyFactory.getProp(et,tt.v,1,0,it)}function PointEffect(tt,et,it){this.p=PropertyFactory.getProp(et,tt.v,1,0,it)}function LayerIndexEffect(tt,et,it){this.p=PropertyFactory.getProp(et,tt.v,0,0,it)}function MaskIndexEffect(tt,et,it){this.p=PropertyFactory.getProp(et,tt.v,0,0,it)}function CheckboxEffect(tt,et,it){this.p=PropertyFactory.getProp(et,tt.v,0,0,it)}function NoValueEffect(){this.p={}}function EffectsManager(tt,et){var it,rt=tt.ef||[];this.effectElements=[];var nt,st=rt.length;for(it=0;it<st;it+=1)nt=new GroupEffect(rt[it],et),this.effectElements.push(nt)}function GroupEffect(tt,et){this.init(tt,et)}function BaseElement(){}function FrameElement(){}function FootageElement(tt,et,it){this.initFrame(),this.initRenderable(),this.assetData=et.getAssetData(tt.refId),this.footageData=et.imageLoader.getAsset(this.assetData),this.initBaseData(tt,et,it)}function AudioElement(tt,et,it){this.initFrame(),this.initRenderable(),this.assetData=et.getAssetData(tt.refId),this.initBaseData(tt,et,it),this._isPlaying=!1,this._canPlay=!1;var rt=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(rt),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=tt.tm?PropertyFactory.getProp(this,tt.tm,0,et.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,tt.au&&tt.au.lv?tt.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(tt,et){var it;this.data=tt,this.effectElements=[],this.initDynamicPropertyContainer(et);var rt,nt=this.data.ef.length,st=this.data.ef;for(it=0;it<nt;it+=1){switch(rt=null,st[it].ty){case 0:rt=new SliderEffect(st[it],et,this);break;case 1:rt=new AngleEffect(st[it],et,this);break;case 2:rt=new ColorEffect(st[it],et,this);break;case 3:rt=new PointEffect(st[it],et,this);break;case 4:case 7:rt=new CheckboxEffect(st[it],et,this);break;case 10:rt=new LayerIndexEffect(st[it],et,this);break;case 11:rt=new MaskIndexEffect(st[it],et,this);break;case 5:rt=new EffectsManager(st[it],et);break;default:rt=new NoValueEffect(st[it])}rt&&this.effectElements.push(rt)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var tt=0,et=this.data.masksProperties.length;tt<et;){if(this.data.masksProperties[tt].mode!=="n"&&this.data.masksProperties[tt].cl!==!1)return!0;tt+=1}return!1},initExpressions:function(){var tt=getExpressionInterfaces();if(tt){var et=tt("layer"),it=tt("effects"),rt=tt("shape"),nt=tt("text"),st=tt("comp");this.layerInterface=et(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);
vendor: 5,106 bytes, line 28
28var at=it.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(at),this.data.ty===0||this.data.xt?this.compInterface=st(this):this.data.ty===4?(this.layerInterface.shapeInterface=rt(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=nt(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var tt=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=tt},initBaseData:function(tt,et,it){this.globalData=et,this.comp=it,this.data=tt,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(tt,et){var it,rt=this.dynamicProperties.length;for(it=0;it<rt;it+=1)(et||this._isParent&&this.dynamicProperties[it].propType==="transform")&&(this.dynamicProperties[it].getValue(),this.dynamicProperties[it]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(tt){this.dynamicProperties.indexOf(tt)===-1&&this.dynamicProperties.push(tt)}},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 tt=getExpressionInterfaces();if(tt){var et=tt("footage");this.layerInterface=et(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(tt){if(this.prepareRenderableFrame(tt,!0),this.prepareProperties(tt,!0),this.tm._placeholder)this._currentTime=tt/this.data.sr;else{var et=this.tm.v;this._currentTime=et}this._volume=this.lv.v[0];var it=this._volume*this._volumeMultiplier;this._previousVolume!==it&&(this._previousVolume=it,this.audio.volume(it))},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(tt){this.audio.rate(tt)},AudioElement.prototype.volume=function(tt){this._volumeMultiplier=tt,this._previousVolume=tt*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(tt){var et,it,rt=this.layers.length;for(this.completeLayers=!0,et=rt-1;et>=0;et-=1)this.elements[et]||(it=this.layers[et]).ip-it.st<=tt-this.layers[et].st&&it.op-it.st>tt-this.layers[et].st&&this.buildItem(et),this.completeLayers=!!this.elements[et]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(tt){switch(tt.ty){case 2:return this.createImage(tt);case 0:return this.createComp(tt);case 1:return this.createSolid(tt);case 3:default:return this.createNull(tt);case 4:return this.createShape(tt);case 5:return this.createText(tt);case 6:return this.createAudio(tt);case 13:return this.createCamera(tt);case 15:return this.createFootage(tt)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(tt){return new AudioElement(tt,this.globalData,this)},BaseRenderer.prototype.createFootage=function(tt){return new FootageElement(tt,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var tt,et=this.layers.length;for(tt=0;tt<et;tt+=1)this.buildItem(tt);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(tt){var et;this.completeLayers=!1;var it,rt=tt.length,nt=this.layers.length;for(et=0;et<rt;et+=1)for(it=0;it<nt;){if(this.layers[it].id===tt[et].id){this.layers[it]=tt[et];break}it+=1}},BaseRenderer.prototype.setProjectInterface=function(tt){this.globalData.projectInterface=tt},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(tt,et,it){for(var rt=this.elements,nt=this.layers,st=0,at=nt.length;
vendor: 5,244 bytes, line 28
28st<at;)nt[st].ind==et&&(rt[st]&&rt[st]!==!0?(it.push(rt[st]),rt[st].setAsParent(),nt[st].parent!==void 0?this.buildElementParenting(tt,nt[st].parent,it):tt.setHierarchy(it)):(this.buildItem(st),this.addPendingElement(tt))),st+=1},BaseRenderer.prototype.addPendingElement=function(tt){this.pendingElements.push(tt)},BaseRenderer.prototype.searchExtraCompositions=function(tt){var et,it=tt.length;for(et=0;et<it;et+=1)if(tt[et].xt){var rt=this.createComp(tt[et]);rt.initExpressions(),this.globalData.projectInterface.registerComposition(rt)}},BaseRenderer.prototype.getElementById=function(tt){var et,it=this.elements.length;for(et=0;et<it;et+=1)if(this.elements[et].data.ind===tt)return this.elements[et];return null},BaseRenderer.prototype.getElementByPath=function(tt){var et,it=tt.shift();if(typeof it=="number")et=this.elements[it];else{var rt,nt=this.elements.length;for(rt=0;rt<nt;rt+=1)if(this.elements[rt].data.nm===it){et=this.elements[rt];break}}return tt.length===0?et:et.getElementByPath(tt)},BaseRenderer.prototype.setupGlobalData=function(tt,et){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(tt),this.globalData.fontManager.addChars(tt.chars),this.globalData.fontManager.addFonts(tt.fonts,et),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=tt.fr,this.globalData.nm=tt.nm,this.globalData.compSize={w:tt.w,h:tt.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(tt,et,it){this.data=tt,this.element=et,this.globalData=it,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var rt,nt,st=this.globalData.defs,at=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(at),this.solidPath="";var ot,lt,ct,ht,dt,ut,gt=this.masksProperties,mt=0,ft=[],pt=createElementID(),yt="clipPath",vt="clip-path";for(rt=0;rt<at;rt+=1)if((gt[rt].mode!=="a"&&gt[rt].mode!=="n"||gt[rt].inv||gt[rt].o.k!==100||gt[rt].o.x)&&(yt="mask",vt="mask"),gt[rt].mode!=="s"&&gt[rt].mode!=="i"||mt!==0?ct=null:((ct=createNS("rect")).setAttribute("fill","#ffffff"),ct.setAttribute("width",this.element.comp.data.w||0),ct.setAttribute("height",this.element.comp.data.h||0),ft.push(ct)),nt=createNS("path"),gt[rt].mode==="n")this.viewData[rt]={op:PropertyFactory.getProp(this.element,gt[rt].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,gt[rt],3),elem:nt,lastPath:""},st.appendChild(nt);else{var _t;if(mt+=1,nt.setAttribute("fill",gt[rt].mode==="s"?"#000000":"#ffffff"),nt.setAttribute("clip-rule","nonzero"),gt[rt].x.k!==0?(yt="mask",vt="mask",ut=PropertyFactory.getProp(this.element,gt[rt].x,0,null,this.element),_t=createElementID(),(ht=createNS("filter")).setAttribute("id",_t),(dt=createNS("feMorphology")).setAttribute("operator","erode"),dt.setAttribute("in","SourceGraphic"),dt.setAttribute("radius","0"),ht.appendChild(dt),st.appendChild(ht),nt.setAttribute("stroke",gt[rt].mode==="s"?"#000000":"#ffffff")):(dt=null,ut=null),this.storedData[rt]={elem:nt,x:ut,expan:dt,lastPath:"",lastOperator:"",filterId:_t,lastRadius:0},gt[rt].mode==="i"){lt=ft.length;var bt=createNS("g");for(ot=0;ot<lt;ot+=1)bt.appendChild(ft[ot]);var St=createNS("mask");St.setAttribute("mask-type","alpha"),St.setAttribute("id",pt+"_"+mt),St.appendChild(nt),st.appendChild(St),bt.setAttribute("mask","url("+getLocationHref()+"#"+pt+"_"+mt+")"),ft.length=0,ft.push(bt)}else ft.push(nt);gt[rt].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[rt]={elem:nt,lastPath:"",op:PropertyFactory.getProp(this.element,gt[rt].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,gt[rt],3),invRect:ct},this.viewData[rt].prop.k||this.drawPath(gt[rt],this.viewData[rt].prop.v,this.viewData[rt])}for(this.maskElement=createNS(yt),at=ft.length,rt=0;rt<at;rt+=1)this.maskElement.appendChild(ft[rt]);mt>0&&(this.maskElement.setAttribute("id",pt),this.element.maskedElement.setAttribute(vt,"url("+getLocationHref()+"#"+pt+")"),st.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var tt=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:tt,localMat:tt,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 tt,et=this.finalTransform.mat,it=0,rt=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;it<rt;){if(this.hierarchy[it].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}it+=1}if(this.finalTransform._matMdf)for(tt=this.finalTransform.mProp.v.props,et.cloneFromProps(tt),it=0;
vendor: 4,464 bytes, line 28
28it<rt;it+=1)et.multiply(this.hierarchy[it].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var tt=0,et=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;tt<et;)this.localTransforms[tt]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[tt]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),tt+=1;if(this.finalTransform._localMatMdf){var it=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(it),tt=1;tt<et;tt+=1){var rt=this.localTransforms[tt].matrix;it.multiply(rt)}it.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var nt=this.finalTransform.localOpacity;for(tt=0;tt<et;tt+=1)nt*=.01*this.localTransforms[tt].opacity;this.finalTransform.localOpacity=nt}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var tt=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(tt.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var et=0,it=tt.length;for(et=0;et<it;et+=1)this.localTransforms.push(tt[et])}}},globalToLocal:function(tt){var et=[];et.push(this.finalTransform);for(var it,rt=!0,nt=this.comp;rt;)nt.finalTransform?(nt.data.hasMask&&et.splice(0,0,nt.finalTransform),nt=nt.comp):rt=!1;var st,at=et.length;for(it=0;it<at;it+=1)st=et[it].mat.applyToPointArray(0,0,0),tt=[tt[0]-st[0],tt[1]-st[1],0];return tt},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(tt){return this.viewData[tt].prop},MaskElement.prototype.renderFrame=function(tt){var et,it=this.element.finalTransform.mat,rt=this.masksProperties.length;for(et=0;et<rt;et+=1)if((this.viewData[et].prop._mdf||tt)&&this.drawPath(this.masksProperties[et],this.viewData[et].prop.v,this.viewData[et]),(this.viewData[et].op._mdf||tt)&&this.viewData[et].elem.setAttribute("fill-opacity",this.viewData[et].op.v),this.masksProperties[et].mode!=="n"&&(this.viewData[et].invRect&&(this.element.finalTransform.mProp._mdf||tt)&&this.viewData[et].invRect.setAttribute("transform",it.getInverseMatrix().to2dCSS()),this.storedData[et].x&&(this.storedData[et].x._mdf||tt))){var nt=this.storedData[et].expan;this.storedData[et].x.v<0?(this.storedData[et].lastOperator!=="erode"&&(this.storedData[et].lastOperator="erode",this.storedData[et].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[et].filterId+")")),nt.setAttribute("radius",-this.storedData[et].x.v)):(this.storedData[et].lastOperator!=="dilate"&&(this.storedData[et].lastOperator="dilate",this.storedData[et].elem.setAttribute("filter",null)),this.storedData[et].elem.setAttribute("stroke-width",2*this.storedData[et].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var tt="M0,0 ";return tt+=" h"+this.globalData.compSize.w,tt+=" v"+this.globalData.compSize.h,tt+=" h-"+this.globalData.compSize.w,tt+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(tt,et,it){var rt,nt,st=" M"+et.v[0][0]+","+et.v[0][1];for(nt=et._length,rt=1;rt<nt;rt+=1)st+=" C"+et.o[rt-1][0]+","+et.o[rt-1][1]+" "+et.i[rt][0]+","+et.i[rt][1]+" "+et.v[rt][0]+","+et.v[rt][1];if(et.c&&nt>1&&(st+=" C"+et.o[rt-1][0]+","+et.o[rt-1][1]+" "+et.i[0][0]+","+et.i[0][1]+" "+et.v[0][0]+","+et.v[0][1]),it.lastPath!==st){var at="";it.elem&&(et.c&&(at=tt.inv?this.solidPath+st:st),it.elem.setAttribute("d",at)),it.lastPath=st}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var tt={createFilter:function(et,it){var rt=createNS("filter");return rt.setAttribute("id",et),it!==!0&&(rt.setAttribute("filterUnits","objectBoundingBox"),rt.setAttribute("x","0%"),rt.setAttribute("y","0%"),rt.setAttribute("width","100%"),rt.setAttribute("height","100%")),rt},createAlphaToLuminanceFilter:function(){var et=createNS("feColorMatrix");return et.setAttribute("type","matrix"),et.setAttribute("color-interpolation-filters","sRGB"),et.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),et}}
vendor: 5,267 bytes, line 28
28;return tt}(),featureSupport=function(){var tt={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(tt.maskType=!1),/firefox/i.test(navigator.userAgent)&&(tt.svgLumaHidden=!1),tt}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(tt){var et,it,rt="SourceGraphic",nt=tt.data.ef?tt.data.ef.length:0,st=createElementID(),at=filtersFactory.createFilter(st,!0),ot=0;for(this.filters=[],et=0;et<nt;et+=1){it=null;var lt=tt.data.ef[et].ty;registeredEffects$1[lt]&&(it=new registeredEffects$1[lt].effect(at,tt.effectsManager.effectElements[et],tt,idPrefix+ot,rt),rt=idPrefix+ot,registeredEffects$1[lt].countsAsEffect&&(ot+=1)),it&&this.filters.push(it)}ot&&(tt.globalData.defs.appendChild(at),tt.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+st+")")),this.filters.length&&tt.addRenderableComponent(this)}function registerEffect$1(tt,et,it){registeredEffects$1[tt]={effect:et,countsAsEffect:it}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(tt,et,it){this.assetData=et.getAssetData(tt.refId),this.assetData&&this.assetData.sid&&(this.assetData=et.slotManager.getProp(this.assetData)),this.initElement(tt,et,it),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(tt,et){this.elem=tt,this.pos=et}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(tt){var et,it=this.filters.length;for(et=0;et<it;et+=1)this.filters[et].renderFrame(tt)},SVGEffects.prototype.getEffects=function(tt){var et,it=this.filters.length,rt=[];for(et=0;et<it;et+=1)this.filters[et].type===tt&&rt.push(this.filters[et]);return rt},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 tt=null;if(this.data.td){this.matteMasks={};var et=createNS("g");et.setAttribute("id",this.layerId),et.appendChild(this.layerElement),tt=et,this.globalData.defs.appendChild(et)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),tt=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var it=createNS("clipPath"),rt=createNS("path");rt.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var nt=createElementID();if(it.setAttribute("id",nt),it.appendChild(rt),this.globalData.defs.appendChild(it),this.checkMasks()){var st=createNS("g");st.setAttribute("clip-path","url("+getLocationHref()+"#"+nt+")"),st.appendChild(this.layerElement),this.transformedElement=st,tt?tt.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+nt+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(tt){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[tt]){var et,it,rt,nt,st=this.layerId+"_"+tt;if(tt===1||tt===3){var at=createNS("mask");at.setAttribute("id",st),at.setAttribute("mask-type",tt===3?"luminance":"alpha"),(rt=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),at.appendChild(rt),this.globalData.defs.appendChild(at),featureSupport.maskType||tt!==1||(at.setAttribute("mask-type","luminance"),et=createElementID(),it=filtersFactory.createFilter(et),this.globalData.defs.appendChild(it),it.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(nt=createNS("g")).appendChild(rt),at.appendChild(nt),nt.setAttribute("filter","url("+getLocationHref()+"#"+et+")"))}else if(tt===2){var ot=createNS("mask");ot.setAttribute("id",st),ot.setAttribute("mask-type","alpha");var lt=createNS("g");ot.appendChild(lt),et=createElementID(),it=filtersFactory.createFilter(et);var ct=createNS("feComponentTransfer");ct.setAttribute("in","SourceGraphic"),it.appendChild(ct);var ht=createNS("feFuncA");ht.setAttribute("type","table"),ht.setAttribute("tableValues","1.0 0.0"),ct.appendChild(ht),this.globalData.defs.appendChild(it);var dt=createNS("rect");dt.setAttribute("width",this.comp.data.w),dt.setAttribute("height",this.comp.data.h),dt.setAttribute("x","0"),dt.setAttribute("y","0"),dt.setAttribute("fill","#ffffff"),dt.setAttribute("op
28acity","0"),lt.setAttribute("filter","url("+getLocationHref()+"#"+et+")"),lt.appendChild(dt),(rt=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),lt.appendChild(rt),featureSupport.maskType||(ot.setAttribute("mask-type","luminance"),it.appendChild(filtersFactory.createAlphaToLuminanceFilter()),nt=createNS("g"),lt.appendChild(dt),nt.appendChild(this.layerElement),lt.appendChild(nt)),this.globalData.defs.appendChild(ot)}this.matteMasks[tt]=st}return this.matteMasks[tt]},setMatte:function(tt){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+tt+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(tt){this.hierarchy=tt},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(tt,et,it){this.initFrame(),this.initBaseData(tt,et,it),this.initTransform(tt,et,it),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(tt){this._mdf=!1,this.prepareRenderableFrame(tt),this.prepareProperties(tt,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 tt=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",tt),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(tt){var et,it=this.shapeModifiers.length;for(et=0;et<it;et+=1)this.shapeModifiers[et].addShape(tt)},isShapeInAnimatedModifiers:function(tt){for(var et=this.shapeModifiers.length;0<et;)if(this.shapeModifiers[0].isAnimatedWithShape(tt))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var tt,et=this.shapes.length;for(tt=0;tt<et;tt+=1)this.shapes[tt].sh.reset();for(tt=(et=this.shapeModifiers.length)-1;tt>=0&&!this.shapeModifiers[tt].processShapes(this._isFirstFrame);tt-=1);}},searchProcessedElement:function(tt){for(var et=this.processedElements,it=0,rt=et.length;it<rt;){if(et[it].elem===tt)return et[it].pos;it+=1}return 0},addProcessedElement:function(tt,et){for(var it=this.processedElements,rt=it.length;rt;)if(it[rt-=1].elem===tt)return void(it[rt].pos=et);it.push(new ProcessedElement(tt,et))},prepareFrame:function(tt){this.prepareRenderableFrame(tt),this.prepareProperties(tt,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(tt,et,it){this.caches=[],this.styles=[],this.transformers=tt,this.lStr="",this.sh=it,this.lvl=et,this._isAnimated=!!it.k;for(var rt=0,nt=tt.length;rt<nt;){if(tt[rt].mProps.dynamicProperties.length){this._isAnimated=!0;break}rt+=1}}function SVGStyleData(tt,et){this.data=tt,this.type=tt.ty,this.d="",this.lvl=et,this._mdf=!1,this.closed=tt.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(tt,et,it,rt){var nt;this.elem=tt,this.frameId=-1,this.dataProps=createSizedArray(et.length),this.renderer=it,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",et.length?et.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(rt);var st,at=et.length||0;for(nt=0;nt<at;nt+=1)st=PropertyFactory.getProp(tt,et[nt].v,0,0,this),this.k=st.k||this.k,this.dataProps[nt]={n:et[nt].n,p:st};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(tt,et,it){this.initDynamicPropertyContainer(tt),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(tt,et.o,0,.01,this),this.w=PropertyFactory.getProp(tt,et.w,0,null,this),this.d=new DashProperty(tt,et.d||{},"svg",this),this.c=PropertyFactory.getProp(tt,et.c,1,255,this),this.style=it,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(tt,et,it){this.initDynamicPropertyContainer(tt),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(tt,et.o,0,.01,this),this.c=PropertyFactory.getProp(tt,et.c,1,255,this),this.style=it}function SVGNoStyleData(tt,et,it){this.initDynamicPropertyContainer(tt),this.getValue=this.iterateDynamicProperties,this.style=it}function GradientProperty(tt,et,it){this.data=et,this.c=createTypedArray("uint8c",4*et.p);var rt=et.k.k[0].s?et.k.k[0].s.length-4*et.p:et.k.k.length-4*et.p;this.o=createTypedArray("float32",rt),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=rt,this.initDynamicPropertyContainer(it),this.prop=PropertyFactory.getProp(tt,et.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(tt,et,it){this.initDynamicPropertyContainer(tt),this.getValue=this.iterateDynamicProperties,this.initGradientData(tt,et,it)}function SVGGradientStrokeStyleData(tt,et,it){this.initDynamicPropertyContainer(tt),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(tt,et.w,0,null,this),this.d=new DashProperty(tt,et.d||{},"svg",this),this.initGradientData(tt,et,it),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(tt,et,it){this.transform={mProps:tt,op:et,container:it},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(tt){if((this.elem.globalData.frameId!==this.frameId||tt)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||tt,this._mdf)){var et=0,it=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),et=0;et<it;et+=1)this.dataProps[et].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[et].p.v:this.dashArray[et]=this.dataProps[et].p.v:this.dashoffset[0]=this.dataProps[et].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(tt,et){for(var it=0,rt=this.o.length/2;it<rt;){if(Math.abs(tt[4*it]-tt[4*et+2*it])>.01)return!1;it+=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 tt=0,et=this.data.k.k.length;tt<et;){if(!this.comparePoints(this.data.k.k[tt].s,this.data.p))return!1;tt+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(tt){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||tt){var et,it,rt,nt=4*this.data.p;for(et=0;et<nt;et+=1)it=et%4==0?100:255,rt=Math.round(this.prop.v[et]*it),this.c[et]!==rt&&(this.c[et]=rt,this._cmdf=!tt);if(this.o.length)for(nt=this.prop.v.length,et=4*this.data.p;et<nt;et+=1)it=et%2==0?100:1,rt=et%2==0?Math.round(100*this.prop.v[et]):this.prop.v[et],this.o[et-4*this.data.p]!==rt&&(this.o[et-4*this.data.p]=rt,this._omdf=!tt);this._mdf=!tt}}
vendor: 4,147 bytes, line 28
28,extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(tt,et,it){this.o=PropertyFactory.getProp(tt,et.o,0,.01,this),this.s=PropertyFactory.getProp(tt,et.s,1,null,this),this.e=PropertyFactory.getProp(tt,et.e,1,null,this),this.h=PropertyFactory.getProp(tt,et.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(tt,et.a||{k:0},0,degToRads,this),this.g=new GradientProperty(tt,et.g,this),this.style=it,this.stops=[],this.setGradientData(it.pElem,et),this.setGradientOpacity(et,it),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(tt,et){var it=createElementID(),rt=createNS(et.t===1?"linearGradient":"radialGradient");rt.setAttribute("id",it),rt.setAttribute("spreadMethod","pad"),rt.setAttribute("gradientUnits","userSpaceOnUse");var nt,st,at,ot=[];for(at=4*et.g.p,st=0;st<at;st+=4)nt=createNS("stop"),rt.appendChild(nt),ot.push(nt);tt.setAttribute(et.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+it+")"),this.gf=rt,this.cst=ot},SVGGradientFillStyleData.prototype.setGradientOpacity=function(tt,et){if(this.g._hasOpacity&&!this.g._collapsable){var it,rt,nt,st=createNS("mask"),at=createNS("path");st.appendChild(at);var ot=createElementID(),lt=createElementID();st.setAttribute("id",lt);var ct=createNS(tt.t===1?"linearGradient":"radialGradient");ct.setAttribute("id",ot),ct.setAttribute("spreadMethod","pad"),ct.setAttribute("gradientUnits","userSpaceOnUse"),nt=tt.g.k.k[0].s?tt.g.k.k[0].s.length:tt.g.k.k.length;var ht=this.stops;for(rt=4*tt.g.p;rt<nt;rt+=2)(it=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),ct.appendChild(it),ht.push(it);at.setAttribute(tt.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+ot+")"),tt.ty==="gs"&&(at.setAttribute("stroke-linecap",lineCapEnum[tt.lc||2]),at.setAttribute("stroke-linejoin",lineJoinEnum[tt.lj||2]),tt.lj===1&&at.setAttribute("stroke-miterlimit",tt.ml)),this.of=ct,this.ms=st,this.ost=ht,this.maskId=lt,et.msElem=at}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(tt,et,it,rt){if(et===0)return"";var nt,st=tt.o,at=tt.i,ot=tt.v,lt=" M"+rt.applyToPointStringified(ot[0][0],ot[0][1]);for(nt=1;nt<et;nt+=1)lt+=" C"+rt.applyToPointStringified(st[nt-1][0],st[nt-1][1])+" "+rt.applyToPointStringified(at[nt][0],at[nt][1])+" "+rt.applyToPointStringified(ot[nt][0],ot[nt][1]);return it&&et&&(lt+=" C"+rt.applyToPointStringified(st[nt-1][0],st[nt-1][1])+" "+rt.applyToPointStringified(at[0][0],at[0][1])+" "+rt.applyToPointStringified(ot[0][0],ot[0][1]),lt+="z"),lt},SVGElementsRenderer=function(){var tt=new Matrix,et=new Matrix;function it(ct,ht,dt){(dt||ht.transform.op._mdf)&&ht.transform.container.setAttribute("opacity",ht.transform.op.v),(dt||ht.transform.mProps._mdf)&&ht.transform.container.setAttribute("transform",ht.transform.mProps.v.to2dCSS())}function rt(){}function nt(ct,ht,dt){var ut,gt,mt,ft,pt,yt,vt,_t,bt,St,wt=ht.styles.length,xt=ht.lvl;for(yt=0;yt<wt;yt+=1){if(ft=ht.sh._mdf||dt,ht.styles[yt].lvl<xt){for(_t=et.reset(),bt=xt-ht.styles[yt].lvl,St=ht.transformers.length-1;!ft&&bt>0;)ft=ht.transformers[St].mProps._mdf||ft,bt-=1,St-=1;if(ft)for(bt=xt-ht.styles[yt].lvl,St=ht.transformers.length-1;bt>0;)_t.multiply(ht.transformers[St].mProps.v),bt-=1,St-=1}else _t=tt;if(gt=(vt=ht.sh.paths)._length,ft){for(mt="",ut=0;ut<gt;ut+=1)(pt=vt.shapes[ut])&&pt._length&&(mt+=buildShapeString(pt,pt._length,pt.c,_t));ht.caches[yt]=mt}else mt=ht.caches[yt];ht.styles[yt].d+=ct.hd===!0?"":mt,ht.styles[yt]._mdf=ft||ht.styles[yt]._mdf}}function st(ct,ht,dt){var ut=ht.style;(ht.c._mdf||dt)&&ut.pElem.setAttribute("fill","rgb("+bmFloor(ht.c.v[0])+","+bmFloor(ht.c.v[1])+","+bmFloor(ht.c.v[2])+")"),(ht.o._mdf||dt)&&ut.pElem.setAttribute("fill-opacity",ht.o.v)}function at(ct,ht,dt){ot(ct,ht,dt),lt(0,ht,dt)}function ot(ct,ht,dt){var ut,gt,mt,ft,pt,yt=ht.gf,vt=ht.g._hasOpacity,_t=ht.s.v,bt=ht.e.v;if(ht.o._mdf||dt){var St=ct.ty==="gf"?"fill-opacity":"stroke-opacity";ht.style.pElem.setAttribute(St,ht.o.v)}
vendor: 4,687 bytes, line 28
28if(ht.s._mdf||dt){var wt=ct.t===1?"x1":"cx",xt=wt==="x1"?"y1":"cy";yt.setAttribute(wt,_t[0]),yt.setAttribute(xt,_t[1]),vt&&!ht.g._collapsable&&(ht.of.setAttribute(wt,_t[0]),ht.of.setAttribute(xt,_t[1]))}if(ht.g._cmdf||dt){ut=ht.cst;var Pt=ht.g.c;for(mt=ut.length,gt=0;gt<mt;gt+=1)(ft=ut[gt]).setAttribute("offset",Pt[4*gt]+"%"),ft.setAttribute("stop-color","rgb("+Pt[4*gt+1]+","+Pt[4*gt+2]+","+Pt[4*gt+3]+")")}if(vt&&(ht.g._omdf||dt)){var kt=ht.g.o;for(mt=(ut=ht.g._collapsable?ht.cst:ht.ost).length,gt=0;gt<mt;gt+=1)ft=ut[gt],ht.g._collapsable||ft.setAttribute("offset",kt[2*gt]+"%"),ft.setAttribute("stop-opacity",kt[2*gt+1])}if(ct.t===1)(ht.e._mdf||dt)&&(yt.setAttribute("x2",bt[0]),yt.setAttribute("y2",bt[1]),vt&&!ht.g._collapsable&&(ht.of.setAttribute("x2",bt[0]),ht.of.setAttribute("y2",bt[1])));else if((ht.s._mdf||ht.e._mdf||dt)&&(pt=Math.sqrt(Math.pow(_t[0]-bt[0],2)+Math.pow(_t[1]-bt[1],2)),yt.setAttribute("r",pt),vt&&!ht.g._collapsable&&ht.of.setAttribute("r",pt)),ht.e._mdf||ht.h._mdf||ht.a._mdf||dt){pt||(pt=Math.sqrt(Math.pow(_t[0]-bt[0],2)+Math.pow(_t[1]-bt[1],2)));var At=Math.atan2(bt[1]-_t[1],bt[0]-_t[0]),Et=ht.h.v;Et>=1?Et=.99:Et<=-1&&(Et=-.99);var Ft=pt*Et,It=Math.cos(At+ht.a.v)*Ft+_t[0],Mt=Math.sin(At+ht.a.v)*Ft+_t[1];yt.setAttribute("fx",It),yt.setAttribute("fy",Mt),vt&&!ht.g._collapsable&&(ht.of.setAttribute("fx",It),ht.of.setAttribute("fy",Mt))}}function lt(ct,ht,dt){var ut=ht.style,gt=ht.d;gt&&(gt._mdf||dt)&&gt.dashStr&&(ut.pElem.setAttribute("stroke-dasharray",gt.dashStr),ut.pElem.setAttribute("stroke-dashoffset",gt.dashoffset[0])),ht.c&&(ht.c._mdf||dt)&&ut.pElem.setAttribute("stroke","rgb("+bmFloor(ht.c.v[0])+","+bmFloor(ht.c.v[1])+","+bmFloor(ht.c.v[2])+")"),(ht.o._mdf||dt)&&ut.pElem.setAttribute("stroke-opacity",ht.o.v),(ht.w._mdf||dt)&&(ut.pElem.setAttribute("stroke-width",ht.w.v),ut.msElem&&ut.msElem.setAttribute("stroke-width",ht.w.v))}return{createRenderFunction:function(ct){switch(ct.ty){case"fl":return st;case"gf":return ot;case"gs":return at;case"st":return lt;case"sh":case"el":case"rc":case"sr":return nt;case"tr":return it;case"no":return rt;default:return null}}}}();function SVGShapeElement(tt,et,it){this.shapes=[],this.shapesData=tt.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(tt,et,it),this.prevViewData=[]}function LetterProps(tt,et,it,rt,nt,st){this.o=tt,this.sw=et,this.sc=it,this.fc=rt,this.m=nt,this.p=st,this._mdf={o:!0,sw:!!et,sc:!!it,fc:!!rt,m:!0,p:!0}}function TextProperty(tt,et){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,et.d&&et.d.sid&&(et.d=tt.globalData.slotManager.getProp(et.d)),this.data=et,this.elem=tt,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 tt,et,it,rt,nt=this.shapes.length,st=this.stylesList.length,at=[],ot=!1;for(it=0;it<st;it+=1){for(rt=this.stylesList[it],ot=!1,at.length=0,tt=0;tt<nt;tt+=1)(et=this.shapes[tt]).styles.indexOf(rt)!==-1&&(at.push(et),ot=et._isAnimated||ot);at.length>1&&ot&&this.setShapesAsAnimated(at)}},SVGShapeElement.prototype.setShapesAsAnimated=function(tt){var et,it=tt.length;for(et=0;et<it;et+=1)tt[et].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(tt,et){var it,rt=new SVGStyleData(tt,et),nt=rt.pElem;return tt.ty==="st"?it=new SVGStrokeStyleData(this,tt,rt):tt.ty==="fl"?it=new SVGFillStyleData(this,tt,rt):tt.ty==="gf"||tt.ty==="gs"?(it=new(tt.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,tt,rt),this.globalData.defs.appendChild(it.gf),it.maskId&&(this.globalData.defs.appendChild(it.ms),this.globalData.defs.appendChild(it.of),nt.
vendor: 13,879 bytes, line 28
28setAttribute("mask","url("+getLocationHref()+"#"+it.maskId+")"))):tt.ty==="no"&&(it=new SVGNoStyleData(this,tt,rt)),tt.ty!=="st"&&tt.ty!=="gs"||(nt.setAttribute("stroke-linecap",lineCapEnum[tt.lc||2]),nt.setAttribute("stroke-linejoin",lineJoinEnum[tt.lj||2]),nt.setAttribute("fill-opacity","0"),tt.lj===1&&nt.setAttribute("stroke-miterlimit",tt.ml)),tt.r===2&&nt.setAttribute("fill-rule","evenodd"),tt.ln&&nt.setAttribute("id",tt.ln),tt.cl&&nt.setAttribute("class",tt.cl),tt.bm&&(nt.style["mix-blend-mode"]=getBlendMode(tt.bm)),this.stylesList.push(rt),this.addToAnimatedContents(tt,it),it},SVGShapeElement.prototype.createGroupElement=function(tt){var et=new ShapeGroupData;return tt.ln&&et.gr.setAttribute("id",tt.ln),tt.cl&&et.gr.setAttribute("class",tt.cl),tt.bm&&(et.gr.style["mix-blend-mode"]=getBlendMode(tt.bm)),et},SVGShapeElement.prototype.createTransformElement=function(tt,et){var it=TransformPropertyFactory.getTransformProperty(this,tt,this),rt=new SVGTransformData(it,it.o,et);return this.addToAnimatedContents(tt,rt),rt},SVGShapeElement.prototype.createShapeElement=function(tt,et,it){var rt=4;tt.ty==="rc"?rt=5:tt.ty==="el"?rt=6:tt.ty==="sr"&&(rt=7);var nt=new SVGShapeData(et,it,ShapePropertyFactory.getShapeProp(this,tt,rt,this));return this.shapes.push(nt),this.addShapeToModifiers(nt),this.addToAnimatedContents(tt,nt),nt},SVGShapeElement.prototype.addToAnimatedContents=function(tt,et){for(var it=0,rt=this.animatedContents.length;it<rt;){if(this.animatedContents[it].element===et)return;it+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(tt),element:et,data:tt})},SVGShapeElement.prototype.setElementStyles=function(tt){var et,it=tt.styles,rt=this.stylesList.length;for(et=0;et<rt;et+=1)this.stylesList[et].closed||it.push(this.stylesList[et])},SVGShapeElement.prototype.reloadShapes=function(){var tt;this._isFirstFrame=!0;var et=this.itemsData.length;for(tt=0;tt<et;tt+=1)this.prevViewData[tt]=this.itemsData[tt];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),et=this.dynamicProperties.length,tt=0;tt<et;tt+=1)this.dynamicProperties[tt].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(tt,et,it,rt,nt,st,at){var ot,lt,ct,ht,dt,ut,gt=[].concat(st),mt=tt.length-1,ft=[],pt=[];for(ot=mt;ot>=0;ot-=1){if((ut=this.searchProcessedElement(tt[ot]))?et[ot]=it[ut-1]:tt[ot]._render=at,tt[ot].ty==="fl"||tt[ot].ty==="st"||tt[ot].ty==="gf"||tt[ot].ty==="gs"||tt[ot].ty==="no")ut?et[ot].style.closed=!1:et[ot]=this.createStyleElement(tt[ot],nt),tt[ot]._render&&et[ot].style.pElem.parentNode!==rt&&rt.appendChild(et[ot].style.pElem),ft.push(et[ot].style);else if(tt[ot].ty==="gr"){if(ut)for(ct=et[ot].it.length,lt=0;lt<ct;lt+=1)et[ot].prevViewData[lt]=et[ot].it[lt];else et[ot]=this.createGroupElement(tt[ot]);this.searchShapes(tt[ot].it,et[ot].it,et[ot].prevViewData,et[ot].gr,nt+1,gt,at),tt[ot]._render&&et[ot].gr.parentNode!==rt&&rt.appendChild(et[ot].gr)}else tt[ot].ty==="tr"?(ut||(et[ot]=this.createTransformElement(tt[ot],rt)),ht=et[ot].transform,gt.push(ht)):tt[ot].ty==="sh"||tt[ot].ty==="rc"||tt[ot].ty==="el"||tt[ot].ty==="sr"?(ut||(et[ot]=this.createShapeElement(tt[ot],gt,nt)),this.setElementStyles(et[ot])):tt[ot].ty==="tm"||tt[ot].ty==="rd"||tt[ot].ty==="ms"||tt[ot].ty==="pb"||tt[ot].ty==="zz"||tt[ot].ty==="op"?(ut?(dt=et[ot]).closed=!1:((dt=ShapeModifiers.getModifier(tt[ot].ty)).init(this,tt[ot]),et[ot]=dt,this.shapeModifiers.push(dt)),pt.push(dt)):tt[ot].ty==="rp"&&(ut?(dt=et[ot]).closed=!0:(dt=ShapeModifiers.getModifier(tt[ot].ty),et[ot]=dt,dt.init(this,tt,ot,et),this.shapeModifiers.push(dt),at=!1),pt.push(dt));this.addProcessedElement(tt[ot],ot+1)}for(mt=ft.length,ot=0;ot<mt;ot+=1)ft[ot].closed=!0;for(mt=pt.length,ot=0;ot<mt;ot+=1)pt[ot].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var tt;this.renderModifiers();var et=this.stylesList.length;for(tt=0;tt<et;tt+=1)this.stylesList[tt].reset();for(this.renderShape(),tt=0;tt<et;tt+=1)(this.stylesList[tt]._mdf||this._isFirstFrame)&&(this.stylesList[tt].msElem&&(this.stylesList[tt].msElem.setAttribute("d",this.stylesList[tt].d),this.stylesList[tt].d="M0 0"+this.stylesList[tt].d),this.stylesList[tt].pElem.setAttribute("d",this.stylesList[tt].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var tt,et,it=this.animatedContents.length;for(tt=0;tt<it;tt+=1)et=this.animatedContents[tt],(this._isFirstFrame||et.element._isAnimated)&&et.data!==!0&&et.fn(et.data,et.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(tt,et,it,rt,nt,st){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 at=!1;return this.o!==tt&&(this.o=tt,this._mdf.o=!0,at=!0),this.sw!==et&&(this.sw=et,this._mdf.sw=!0,at=!0),this.sc!==it&&(this.sc=it,this._mdf.sc=!0,at=!0),this.fc!==rt&&(this.fc=rt,this._mdf.fc=!0,at=!0),this.m!==nt&&(this.m=nt,this._mdf.m=!0,at=!0),!st.length||this.p[0]===st[0]&&this.p[1]===st[1]&&this.p[4]===st[4]&&this.p[5]===st[5]&&this.p[12]===st[12]&&this.p[13]===st[13]||(this.p=st,this._mdf.p=!0,at=!0),at},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(tt,et){for(var it in et)Object.prototype.hasOwnProperty.call(et,it)&&(tt[it]=et[it]);return tt},TextProperty.prototype.setCurrentData=function(tt){tt.__complete||this.completeTextData(tt),this.currentData=tt,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(tt){this.effectsSequence.push(tt),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(tt){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||tt){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var et=this.currentData,it=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var rt;this.lock=!0,this._mdf=!1;var nt=this.effectsSequence.length,st=tt||this.data.d.k[this.keysIndex].s;for(rt=0;rt<nt;rt+=1)st=it!==this.keysIndex?this.effectsSequence[rt](st,st.t):this.effectsSequence[rt](this.currentData,st.t);et!==st&&this.setCurrentData(st),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var tt=this.data.d.k,et=this.elem.comp.renderedFrame,it=0,rt=tt.length;it<=rt-1&&!(it===rt-1||tt[it+1].t>et);)it+=1;return this.keysIndex!==it&&(this.keysIndex=it),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(tt){for(var et,it,rt=[],nt=0,st=tt.length,at=!1,ot=!1,lt="";nt<st;)at=ot,ot=!1,et=tt.charCodeAt(nt),lt=tt.charAt(nt),FontManager.isCombinedCharacter(et)?at=!0:et>=55296&&et<=56319?FontManager.isRegionalFlag(tt,nt)?lt=tt.substr(nt,14):(it=tt.charCodeAt(nt+1))>=56320&&it<=57343&&(FontManager.isModifier(et,it)?(lt=tt.substr(nt,2),at=!0):lt=FontManager.isFlagEmoji(tt.substr(nt,4))?tt.substr(nt,4):tt.substr(nt,2)):et>56319?(it=tt.charCodeAt(nt+1),FontManager.isVariationSelector(et)&&(at=!0)):FontManager.isZeroWidthJoiner(et)&&(at=!0,ot=!0),at?(rt[rt.length-1]+=lt,at=!1):rt.push(lt),nt+=lt.length;return rt},TextProperty.prototype.completeTextData=function(tt){tt.__complete=!0;var et,it,rt,nt,st,at,ot,lt=this.elem.globalData.fontManager,ct=this.data,ht=[],dt=0,ut=ct.m.g,gt=0,mt=0,ft=0,pt=[],yt=0,vt=0,_t=lt.getFontByName(tt.f),bt=0,St=getFontProperties(_t);tt.fWeight=St.weight,tt.fStyle=St.style,tt.finalSize=tt.s,tt.finalText=this.buildFinalText(tt.t),it=tt.finalText.length,tt.finalLineHeight=tt.lh;var wt,xt=tt.tr/1e3*tt.finalSize;if(tt.sz)for(var Pt,kt,At=!0,Et=tt.sz[0],Ft=tt.sz[1];At;){Pt=0,yt=0,it=(kt=this.buildFinalText(tt.t)).length,xt=tt.tr/1e3*tt.finalSize;var It=-1;for(et=0;et<it;et+=1)wt=kt[et].charCodeAt(0),rt=!1,kt[et]===" "?It=et:wt!==13&&wt!==3||(yt=0,rt=!0,Pt+=tt.finalLineHeight||1.2*tt.finalSize),lt.chars?(ot=lt.getCharData(kt[et],_t.fStyle,_t.fFamily),bt=rt?0:ot.w*tt.finalSize/100):bt=lt.measureText(kt[et],tt.f,tt.finalSize),yt+bt>Et&&kt[et]!==" "?(It===-1?it+=1:et=It,Pt+=tt.finalLineHeight||1.2*tt.finalSize,kt.splice(et,It===et?1:0,"\r"),It=-1,yt=0):(yt+=bt,yt+=xt);Pt+=_t.ascent*tt.finalSize/100,this.canResize&&tt.finalSize>this.minimumFontSize&&Ft<Pt?(tt.finalSize-=1,tt.finalLineHeight=tt.finalSize*tt.lh/tt.s):(tt.finalText=kt,it=tt.finalText.length,At=!1)}yt=-xt,bt=0;var Mt,Lt=0;for(et=0;et<it;et+=1)if(rt=!1,(wt=(Mt=tt.finalText[et]).charCodeAt(0))===13||wt===3?(Lt=0,pt.push(yt),vt=yt>vt?yt:vt,yt=-2*xt,nt="",rt=!0,ft+=1):nt=Mt,lt.chars?(ot=lt.getCharData(Mt,_t.fStyle,lt.getFontByName(tt.f).fFamily),bt=rt?0:ot.w*tt.finalSize/100):bt=lt.measureText(nt,tt.f,tt.finalSize),Mt===" "?Lt+=bt+xt:(yt+=bt+xt+Lt,Lt=0),ht.push({l:bt,an:bt,add:gt,n:rt,anIndexes:[],val:nt,line:ft,animatorJustifyOffset:0}),ut==2){if(gt+=bt,nt===""||nt===" "||et===it-1){for(nt!==""&&nt!==" "||(gt-=bt);mt<=et;)ht[mt].an=gt,ht[mt].ind=dt,ht[mt].extra=bt,mt+=1;dt+=1,gt=0}}else if(ut==3){if(gt+=bt,nt===""||et===it-1){for(nt===""&&(gt-=bt);mt<=et;)ht[mt].an=gt,ht[mt].ind=dt,ht[mt].extra=bt,mt+=1;gt=0,dt+=1}}else ht[dt].ind=dt,ht[dt].extra=0,dt+=1;if(tt.l=ht,vt=yt>vt?yt:vt,pt.push(yt),tt.sz)tt.boxWidth=tt.sz[0],tt.justifyOffset=0;else switch(tt.boxWidth=vt,tt.j){case 1:tt.justifyOffset=-tt.boxWidth;break;case 2:tt.justifyOffset=-tt.boxWidth/2;break;default:tt.justifyOffset=0}tt.lineWidths=pt;var $t,Vt,Ct,Dt,Rt=ct.a;at=Rt.length;var Bt=[];for(st=0;st<at;st+=1){for(($t=Rt[st]).a.sc&&(tt.strokeColorAnim=!0),$t.a.sw&&(tt.strokeWidthAnim=!0),($t.a.fc||$t.a.fh||$t.a.fs||$t.a.fb)&&(tt.fillColorAnim=!0),Dt=0,Ct=$t.s.b,et=0;et<it;et+=1)(Vt=ht[et]).anIndexes[st]=Dt,(Ct==1&&Vt.val!==""||Ct==2&&Vt.val!==""&&Vt.val!==" "||Ct==3&&(Vt.n||Vt.val==" "||et==it-1)||Ct==4&&(Vt.n||et==it-1))&&($t.s.rn===1&&Bt.push(Dt),Dt+=1);ct.a[st].s.totalChars=Dt;var Wt,Gt=-1;if($t.s.rn===1)for(et=0;et<it;et+=1)Gt!=(Vt=ht[et]).anIndexes[st]&&(Gt=Vt.anIndexes[st],Wt=Bt.splice(Math.floor(Math.random()*Bt.length),1)[0]),Vt.anIndexes[st]=Wt}tt.yOffset=tt.finalLineHeight||1.2*tt.finalSize,tt.ls=tt.ls||0,tt.ascent=_t.ascent*tt.finalSize/100},TextProperty.prototype.updateDocumentData=function(tt,et){et=et===void 0?this.keysIndex:et;var it=this.copyData({},this.data.d.k[et].s);it=this.copyData(it,tt),this.data.d.k[et].s=it,this.recalculate(et),this.setCurrentData(it),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(tt){var et=this.data.d.k[tt].s;et.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(et)},TextProperty.prototype.canResizeFont=function(tt){this.canResize=tt,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(tt){this.minimumFontSize=Math.floor(tt)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var tt=Math.max,et=Math.min,it=Math.floor;function rt(nt,st){this._currentTextLength=-1,this.k=!1,this.data=st,this.elem=nt,this.comp=nt.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(nt),this.s=PropertyFactory.getProp(nt,st.s||{k:0},0,0,this),this.e="e"in st?PropertyFactory.getProp(nt,st.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(nt,st.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(nt,st.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(nt,st.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(nt,st.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(nt,st.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return rt.prototype={getMult:function(nt){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var st=0,at=0,ot=1,lt=1;this.ne.v>0?st=this.ne.v/100:at=-this.ne.v/100,this.xe.v>0?ot=1-this.xe.v/100:lt=1+this.xe.v/100;var ct=BezierFactory.getBezierEasing(st,at,ot,lt).get,ht=0,dt=this.finalS,ut=this.finalE,gt=this.data.sh;if(gt===2)ht=ct(ht=ut===dt?nt>=ut?1:0:tt(0,et(.5/(ut-dt)+(nt-dt)/(ut-dt),1)));else if(gt===3)ht=ct(ht=ut===dt?nt>=ut?0:1:1-tt(0,et(.5/(ut-dt)+(nt-dt)/(ut-dt),1)));else if(gt===4)ut===dt?ht=0:(ht=tt(0,et(.5/(ut-dt)+(nt-dt)/(ut-dt),1)))<.5?ht*=2:ht=1-2*(ht-.5),ht=ct(ht);else if(gt===5){if(ut===dt)ht=0;else{var mt=ut-dt,ft=-mt/2+(nt=et(tt(0,nt+.5-dt),ut-dt)),pt=mt/2;ht=Math.sqrt(1-ft*ft/(pt*pt))}ht=ct(ht)}else gt===6?(ut===dt?ht=0:(nt=et(tt(0,nt+.5-dt),ut-dt),ht=(1+Math.cos(Math.PI+2*Math.PI*nt/(ut-dt)))/2),ht=ct(ht)):(nt>=it(dt)&&(ht=tt(0,et(nt-dt<0?et(ut,1)-(dt-nt):ut-nt,1))),ht=ct(ht));if(this.sm.v!==100){var yt=.01*this.sm.v;yt===0&&(yt=1e-8);var vt=.5-.5*yt;ht<vt?ht=0:(ht=(ht-vt)/yt)>1&&(ht=1)}return ht*this.a.v},getValue:function(nt){this.iterateDynamicProperties(),this._mdf=nt||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,nt&&this.data.r===2&&(this.e.v=this._currentTextLength);var st=this.data.r===2?1:100/this.data.totalChars,at=this.o.v/st,ot=this.s.v/st+at,lt=this.e.v/st+at;if(ot>lt){var ct=ot;ot=lt,lt=ct}this.finalS=ot,this.finalE=lt}},extendPrototype([DynamicPropertyContainer],rt),{getTextSelectorProp:function(nt,st,at){return new rt(nt,st)}}}();function TextAnimatorDataProperty(tt,et,it){var rt={propType:!1},nt=PropertyFactory.getProp,st=et.a;this.a={r:st.r?nt(tt,st.r,0,degToRads,it):rt,rx:st.rx?nt(tt,st.rx,0,degToRads,it):rt,ry:st.ry?nt(tt,st.ry,0,degToRads,it):rt,sk:st.sk?nt(tt,st.sk,0,degToRads,it):rt,sa:st.sa?nt(tt,st.sa,0,degToRads,it):rt,s:st.s?nt(tt,st.s,1,.01,it):rt,a:st.a?nt(tt,st.a,1,0,it):rt,o:st.o?nt(tt,st.o,0,.01,it):rt,p:st.p?nt(tt,st.p,1,0,it):rt,sw:st.sw?nt(tt,st.sw,0,0,it):rt,sc:st.sc?
vendor: 17,735 bytes, line 28
28nt(tt,st.sc,1,0,it):rt,fc:st.fc?nt(tt,st.fc,1,0,it):rt,fh:st.fh?nt(tt,st.fh,0,0,it):rt,fs:st.fs?nt(tt,st.fs,0,.01,it):rt,fb:st.fb?nt(tt,st.fb,0,.01,it):rt,t:st.t?nt(tt,st.t,0,0,it):rt},this.s=TextSelectorProp.getTextSelectorProp(tt,et.s,it),this.s.t=et.s.t}function TextAnimatorProperty(tt,et,it){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=tt,this._renderType=et,this._elem=it,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(it)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var tt,et,it=this._textData.a.length,rt=PropertyFactory.getProp;for(tt=0;tt<it;tt+=1)et=this._textData.a[tt],this._animatorsData[tt]=new TextAnimatorDataProperty(this._elem,et,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:rt(this._elem,this._textData.p.a,0,0,this),f:rt(this._elem,this._textData.p.f,0,0,this),l:rt(this._elem,this._textData.p.l,0,0,this),r:rt(this._elem,this._textData.p.r,0,0,this),p:rt(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=rt(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(tt,et){if(this.lettersChangedFlag=et,this._mdf||this._isFirstFrame||et||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var it,rt,nt,st,at,ot,lt,ct,ht,dt,ut,gt,mt,ft,pt,yt,vt,_t,bt,St=this._moreOptions.alignment.v,wt=this._animatorsData,xt=this._textData,Pt=this.mHelper,kt=this._renderType,At=this.renderedLetters.length,Et=tt.l;if(this._hasMaskedPath){if(bt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ft,It=bt.v;for(this._pathData.r.v&&(It=It.reverse()),at={tLength:0,segments:[]},st=It._length-1,yt=0,nt=0;nt<st;nt+=1)Ft=bez.buildBezierData(It.v[nt],It.v[nt+1],[It.o[nt][0]-It.v[nt][0],It.o[nt][1]-It.v[nt][1]],[It.i[nt+1][0]-It.v[nt+1][0],It.i[nt+1][1]-It.v[nt+1][1]]),at.tLength+=Ft.segmentLength,at.segments.push(Ft),yt+=Ft.segmentLength;nt=st,bt.v.c&&(Ft=bez.buildBezierData(It.v[nt],It.v[0],[It.o[nt][0]-It.v[nt][0],It.o[nt][1]-It.v[nt][1]],[It.i[0][0]-It.v[0][0],It.i[0][1]-It.v[0][1]]),at.tLength+=Ft.segmentLength,at.segments.push(Ft),yt+=Ft.segmentLength),this._pathData.pi=at}if(at=this._pathData.pi,ot=this._pathData.f.v,ut=0,dt=1,ct=0,ht=!0,ft=at.segments,ot<0&&bt.v.c)for(at.tLength<Math.abs(ot)&&(ot=-Math.abs(ot)%at.tLength),dt=(mt=ft[ut=ft.length-1].points).length-1;ot<0;)ot+=mt[dt].partialLength,(dt-=1)<0&&(dt=(mt=ft[ut-=1].points).length-1);gt=(mt=ft[ut].points)[dt-1],pt=(lt=mt[dt]).partialLength}st=Et.length,it=0,rt=0;var Mt,Lt,$t,Vt,Ct,Dt=1.2*tt.finalSize*.714,Rt=!0;$t=wt.length;var Bt,Wt,Gt,Ht,zt,qt,Nt,jt,Yt,Zt,Xt,Jt,Ut=-1,Ot=ot,he=ut,ce=dt,ae=-1,ee="",ie=this.defaultPropsArray;if(tt.j===2||tt.j===1){var Kt=0,re=0,ne=tt.j===2?-.5:-1,Qt=0,se=!0;for(nt=0;nt<st;nt+=1)if(Et[nt].n){for(Kt&&(Kt+=re);Qt<nt;)Et[Qt].animatorJustifyOffset=Kt,Qt+=1;Kt=0,se=!0}else{for(Lt=0;Lt<$t;Lt+=1)(Mt=wt[Lt].a).t.propType&&(se&&tt.j===2&&(re+=Mt.t.v*ne),(Ct=wt[Lt].s.getMult(Et[nt].anIndexes[Lt],xt.a[Lt].s.totalChars)).length?Kt+=Mt.t.v*Ct[0]*ne:Kt+=Mt.t.v*Ct*ne);se=!1}for(Kt&&(Kt+=re);Qt<nt;)Et[Qt].animatorJustifyOffset=Kt,Qt+=1}for(nt=0;nt<st;nt+=1){if(Pt.reset(),Ht=1,Et[nt].n)it=0,rt+=tt.yOffset,rt+=Rt?1:0,ot=Ot,Rt=!1,this._hasMaskedPath&&(dt=ce,gt=(mt=ft[ut=he].points)[dt-1],pt=(lt=mt[dt]).partialLength,ct=0),ee="",Xt="",Yt="",Jt="",ie=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ae!==Et[nt].line){switch(tt.j){case 1:ot+=yt-tt.lineWidths[Et[nt].line];break;case 2:ot+=(yt-tt.lineWidths[Et[nt].line])/2}ae=Et[nt].line}Ut!==Et[nt].ind&&(Et[Ut]&&(ot+=Et[Ut].extra),ot+=Et[nt].an/2,Ut=Et[nt].ind),ot+=St[0]*Et[nt].an*.005;var te=0;for(Lt=0;Lt<$t;Lt+=1)(Mt=wt[Lt].a).p.propType&&((Ct=wt[Lt].s.getMult(Et[nt].anIndexes[Lt],xt.a[Lt].s.totalChars)).length?te+=Mt.p.v[0]*Ct[0]:te+=Mt.p.v[0]*Ct),Mt.a.propType&&((Ct=wt[Lt].s.getMult(Et[nt].anIndexes[Lt],xt.a[Lt].s.totalChars)).length?te+=Mt.a.v[0]*Ct[0]:te+=Mt.a.v[0]*Ct);for(ht=!0,this._pathData.a.v&&(ot=.5*Et[0].an+(yt-this._pathData.f.v-.5*Et[0].an-.5*Et[Et.length-1].an)*Ut/(st-1),ot+=this._pathData.f.v);ht;)ct+pt>=ot+te||!mt?(vt=(ot+te-ct)/lt.partialLength,Wt=gt.point[0]+(lt.point[0]-gt.point[0])*vt,Gt=gt.point[1]+(lt.point[1]-gt.point[1])*vt,Pt.translate(-St[0]*Et[nt].an*.005,-St[1]*Dt*.01),ht=!1):mt&&(ct+=lt.partialLength,(dt+=1)>=mt.length&&(dt=0,ft[ut+=1]?mt=ft[ut].points:bt.v.c?(dt=0,mt=ft[ut=0].points):(ct-=lt.partialLength,mt=null)),mt&&(gt=lt,pt=(lt=mt[dt]).partialLength));Bt=Et[nt].an/2-Et[nt].add,Pt.translate(-Bt,0,0)}else Bt=Et[nt].an/2-Et[nt].add,Pt.translate(-Bt,0,0),Pt.translate(-St[0]*Et[nt].an*.005,-St[1]*Dt*.01,0);for(Lt=0;Lt<$t;Lt+=1)(Mt=wt[Lt].a).t.propType&&(Ct=wt[Lt].s.getMult(Et[nt].anIndexes[Lt],xt.a[Lt].s.totalChars),it===0&&tt.j===0||(this._hasMaskedPath?Ct.length?ot+=Mt.t.v*Ct[0]:ot+=Mt.t.v*Ct:Ct.length?it+=Mt.t.v*Ct[0]:it+=Mt.t.v*Ct));for(tt.strokeWidthAnim&&(qt=tt.sw||0),tt.strokeColorAnim&&(zt=tt.sc?[tt.sc[0],tt.sc[1],tt.sc[2]]:[0,0,0]),tt.fillColorAnim&&tt.fc&&(Nt=[tt.fc[0],tt.fc[1],tt.fc[2]]),Lt=0;Lt<$t;Lt+=1)(Mt=wt[Lt].a).a.propType&&((Ct=wt[Lt].s.getMult(Et[nt].anIndexes[Lt],xt.a[Lt].s.totalChars)).length?Pt.translate(-Mt.a.v[0]*Ct[0],-Mt.a.v[1]*Ct[1],Mt.a.v[2]*Ct[2]):Pt.translate(-Mt.a.v[0]*Ct,-Mt.a.v[1]*Ct,Mt.a.v[2]*Ct));for(Lt=0;Lt<$t;Lt+=1)(Mt=wt[Lt].a).s.propType&&((Ct=wt[Lt].s.getMult(Et[nt].anIndexes[Lt],xt.a[Lt].s.totalChars)).length?Pt.scale(1+(Mt.s.v[0]-1)*Ct[0],1+(Mt.s.v[1]-1)*Ct[1],1):Pt.scale(1+(Mt.s.v[0]-1)*Ct,1+(Mt.s.v[1]-1)*Ct,1));for(Lt=0;Lt<$t;Lt+=1){if(Mt=wt[Lt].a,Ct=wt[Lt].s.getMult(Et[nt].anIndexes[Lt],xt.a[Lt].s.totalChars),Mt.sk.propType&&(Ct.length?Pt.skewFromAxis(-Mt.sk.v*Ct[0],Mt.sa.v*Ct[1]):Pt.skewFromAxis(-Mt.sk.v*Ct,Mt.sa.v*Ct)),Mt.r.propType&&(Ct.length?Pt.rotateZ(-Mt.r.v*Ct[2]):Pt.rotateZ(-Mt.r.v*Ct)),Mt.ry.propType&&(Ct.length?Pt.rotateY(Mt.ry.v*Ct[1]):Pt.rotateY(Mt.ry.v*Ct)),Mt.rx.propType&&(Ct.length?Pt.rotateX(Mt.rx.v*Ct[0]):Pt.rotateX(Mt.rx.v*Ct)),Mt.o.propType&&(Ct.length?Ht+=(Mt.o.v*Ct[0]-Ht)*Ct[0]:Ht+=(Mt.o.v*Ct-Ht)*Ct),tt.strokeWidthAnim&&Mt.sw.propType&&(Ct.length?qt+=Mt.sw.v*Ct[0]:qt+=Mt.sw.v*Ct),tt.strokeColorAnim&&Mt.sc.propType)for(jt=0;jt<3;jt+=1)Ct.length?zt[jt]+=(Mt.sc.v[jt]-zt[jt])*Ct[0]:zt[jt]+=(Mt.sc.v[jt]-zt[jt])*Ct;if(tt.fillColorAnim&&tt.fc){if(Mt.fc.propType)for(jt=0;jt<3;jt+=1)Ct.length?Nt[jt]+=(Mt.fc.v[jt]-Nt[jt])*Ct[0]:Nt[jt]+=(Mt.fc.v[jt]-Nt[jt])*Ct;Mt.fh.propType&&(Nt=Ct.length?addHueToRGB(Nt,Mt.fh.v*Ct[0]):addHueToRGB(Nt,Mt.fh.v*Ct)),Mt.fs.propType&&(Nt=Ct.length?addSaturationToRGB(Nt,Mt.fs.v*Ct[0]):addSaturationToRGB(Nt,Mt.fs.v*Ct)),Mt.fb.propType&&(Nt=Ct.length?addBrightnessToRGB(Nt,Mt.fb.v*Ct[0]):addBrightnessToRGB(Nt,Mt.fb.v*Ct))}}for(Lt=0;Lt<$t;Lt+=1)(Mt=wt[Lt].a).p.propType&&(Ct=wt[Lt].s.getMult(Et[nt].anIndexes[Lt],xt.a[Lt].s.totalChars),this._hasMaskedPath?Ct.length?Pt.translate(0,Mt.p.v[1]*Ct[0],-Mt.p.v[2]*Ct[1]):Pt.translate(0,Mt.p.v[1]*Ct,-Mt.p.v[2]*Ct):Ct.length?Pt.translate(Mt.p.v[0]*Ct[0],Mt.p.v[1]*Ct[1],-Mt.p.v[2]*Ct[2]):Pt.translate(Mt.p.v[0]*Ct,Mt.p.v[1]*Ct,-Mt.p.v[2]*Ct));if(tt.strokeWidthAnim&&(Yt=qt<0?0:qt),tt.strokeColorAnim&&(Zt="rgb("+Math.round(255*zt[0])+","+Math.round(255*zt[1])+","+Math.round(255*zt[2])+")"),tt.fillColorAnim&&tt.fc&&(Xt="rgb("+Math.round(255*Nt[0])+","+Math.round(255*Nt[1])+","+Math.round(255*Nt[2])+")"),this._hasMaskedPath){if(Pt.translate(0,-tt.ls),Pt.translate(0,St[1]*Dt*.01+rt,0),this._pathData.p.v){_t=(lt.point[1]-gt.point[1])/(lt.point[0]-gt.point[0]);var oe=180*Math.atan(_t)/Math.PI;lt.point[0]<gt.point[0]&&(oe+=180),Pt.rotate(-oe*Math.PI/180)}Pt.translate(Wt,Gt,0),ot-=St[0]*Et[nt].an*.005,Et[nt+1]&&Ut!==Et[nt+1].ind&&(ot+=Et[nt].an/2,ot+=.001*tt.tr*tt.finalSize)}else{switch(Pt.translate(it,rt,0),tt.ps&&Pt.translate(tt.ps[0],tt.ps[1]+tt.ascent,0),tt.j){case 1:Pt.translate(Et[nt].animatorJustifyOffset+tt.justifyOffset+(tt.boxWidth-tt.lineWidths[Et[nt].line]),0,0);break;case 2:Pt.translate(Et[nt].animatorJustifyOffset+tt.justifyOffset+(tt.boxWidth-tt.lineWidths[Et[nt].line])/2,0,0)}Pt.translate(0,-tt.ls),Pt.translate(Bt,0,0),Pt.translate(St[0]*Et[nt].an*.005,St[1]*Dt*.01,0),it+=Et[nt].l+.001*tt.tr*tt.finalSize}kt==="html"?ee=Pt.toCSS():kt==="svg"?ee=Pt.to2dCSS():ie=[Pt.props[0],Pt.props[1],Pt.props[2],Pt.props[3],Pt.props[4],Pt.props[5],Pt.props[6],Pt.props[7],Pt.props[8],Pt.props[9],Pt.props[10],Pt.props[11],Pt.props[12],Pt.props[13],Pt.props[14],Pt.props[15]],Jt=Ht}At<=nt?(Vt=new LetterProps(Jt,Yt,Zt,Xt,ee,ie),this.renderedLetters.push(Vt),At+=1,this.lettersChangedFlag=!0):(Vt=this.renderedLetters[nt],this.lettersChangedFlag=Vt.update(Jt,Yt,Zt,Xt,ee,ie)||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(tt,et,it){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(tt,et,it),this.textProperty=new TextProperty(this,tt.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(tt.t,this.renderType,this),this.initTransform(tt,et,it),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(tt){this._mdf=!1,this.prepareRenderableFrame(tt),this.prepareProperties(tt,this.isInRange)},ITextElement.prototype.createPathShape=function(tt,et){var it,rt,nt=et.length,st="";for(it=0;it<nt;it+=1)et[it].ty==="sh"&&(rt=et[it].ks.k,st+=buildShapeString(rt,rt.i.length,!0,tt));return st},ITextElement.prototype.updateDocumentData=function(tt,et){this.textProperty.updateDocumentData(tt,et)},ITextElement.prototype.canResizeFont=function(tt){this.textProperty.canResizeFont(tt)},ITextElement.prototype.setMinimumFontSize=function(tt){this.textProperty.setMinimumFontSize(tt)},ITextElement.prototype.applyTextPropertiesToMatrix=function(tt,et,it,rt,nt){switch(tt.ps&&et.translate(tt.ps[0],tt.ps[1]+tt.ascent,0),et.translate(0,-tt.ls,0),tt.j){case 1:et.translate(tt.justifyOffset+(tt.boxWidth-tt.lineWidths[it]),0,0);break;case 2:et.translate(tt.justifyOffset+(tt.boxWidth-tt.lineWidths[it])/2,0,0)}et.translate(rt,nt,0)},ITextElement.prototype.buildColor=function(tt){return"rgb("+Math.round(255*tt[0])+","+Math.round(255*tt[1])+","+Math.round(255*tt[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(tt,et,it){this.textSpans=[],this.renderType="svg",this.initElement(tt,et,it)}function ISolidElement(tt,et,it){this.initElement(tt,et,it)}function NullElement(tt,et,it){this.initFrame(),this.initBaseData(tt,et,it),this.initFrame(),this.initTransform(tt,et,it),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(tt,et,it){this.layers=tt.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(tt,et,it),this.tm=tt.tm?PropertyFactory.getProp(this,tt.tm,0,et.frameRate,this):{_placeholder:!0}}function SVGRenderer(tt,et){this.animationItem=tt,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var it="";if(et&&et.title){var rt=createNS("title"),nt=createElementID();rt.setAttribute("id",nt),rt.textContent=et.title,this.svgElement.appendChild(rt),it+=nt}if(et&&et.description){var st=createNS("desc"),at=createElementID();st.setAttribute("id",at),st.textContent=et.description,this.svgElement.appendChild(st),it+=" "+at}it&&this.svgElement.setAttribute("aria-labelledby",it);var ot=createNS("defs");this.svgElement.appendChild(ot);var lt=createNS("g");this.svgElement.appendChild(lt),this.layerElement=lt,this.renderConfig={preserveAspectRatio:et&&et.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:et&&et.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:et&&et.contentVisibility||"visible",progressiveLoad:et&&et.progressiveLoad||!1,hideOnTransparent:!(et&&et.hideOnTransparent===!1),viewBoxOnly:et&&et.viewBoxOnly||!1,viewBoxSize:et&&et.viewBoxSize||!1,className:et&&et.className||"",id:et&&et.id||"",focusable:et&&et.focusable,filterSize:{width:et&&et.filterSize&&et.filterSize.width||"100%",height:et&&et.filterSize&&et.filterSize.height||"100%",x:et&&et.filterSize&&et.filterSize.x||"0%",y:et&&et.filterSize&&et.filterSize.y||"0%"},width:et&&et.width,height:et&&et.height,runExpressions:!et||et.runExpressions===void 0||et.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:ot,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(tt){for(var et=0,it=tt.length,rt=[],nt="";et<it;)tt[et]==="\r"||tt[et]==="�"?(rt.push(nt),nt=""):nt+=tt[et],et+=1;return rt.push(nt),rt},SVGTextLottieElement.prototype.buildShapeData=function(tt,et){if(tt.shapes&&tt.shapes.length){var it=tt.shapes[0];if(it.it){var rt=it.it[it.it.length-1];rt.s&&(rt.s.k[0]=et,rt.s.k[1]=et)}}return tt},SVGTextLottieElement.prototype.buildNewText=function(){var tt,et;this.addDynamicProperty(this);var it=this.textProperty.currentData;this.renderedLetters=createSizedArray(it?it.l.length:0),it.fc?this.layerElement.setAttribute("fill",this.buildColor(it.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),it.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(it.sc)),this.layerElement.setAttribute("stroke-width",it.sw)),this.layerElement.setAttribute("font-size",it.finalSize);var rt=this.globalData.fontManager.getFontByName(it.f);if(rt.fClass)this.layerElement.setAttribute("class",rt.fClass);else{this.layerElement.setAttribute("font-family",rt.fFamily);var nt=it.fWeight,st=it.fStyle;this.layerElement.setAttribute("font-style",st),this.layerElement.setAttribute("font-weight",nt)}this.layerElement.setAttribute("aria-label",it.t);var at,ot=it.l||[],lt=!!this.globalData.fontManager.chars;et=ot.length;var ct=this.mHelper,ht=this.data.singleShape,dt=0,ut=0,gt=!0,mt=.001*it.tr*it.finalSize;if(!ht||lt||it.sz){var ft,pt=this.textSpans.length;for(tt=0;tt<et;tt+=1){if(this.textSpans[tt]||(this.textSpans[tt]={span:null,childSpan:null,glyph:null}),!lt||!ht||tt===0){if(at=pt>tt?this.textSpans[tt].span:createNS(lt?"g":"text"),pt<=tt){if(at.setAttribute("stroke-linecap","butt"),at.setAttribute("stroke-linejoin","round"),at.setAttribute("stroke-miterlimit","4"),this.textSpans[tt].span=at,lt){var yt=createNS("g");at.appendChild(yt),this.textSpans[tt].childSpan=yt}this.textSpans[tt].span=at,this.layerElement.appendChild(at)}at.style.display="inherit"}if(ct.reset(),ht&&(ot[tt].n&&(dt=-mt,ut+=it.yOffset,ut+=gt?1:0,gt=!1),this.applyTextPropertiesToMatrix(it,ct,ot[tt].line,dt,ut),dt+=ot[tt].l||0,dt+=mt),lt){var vt;if((ft=this.globalData.fontManager.getCharData(it.finalText[tt],rt.fStyle,this.globalData.fontManager.getFontByName(it.f).fFamily)).t===1)vt=new SVGCompElement(ft.data,this.globalData,this);else{var _t=emptyShapeData;ft.data&&ft.data.shapes&&(_t=this.buildShapeData(ft.data,it.finalSize)),vt=new SVGShapeElement(_t,this.globalData,this)}if(this.textSpans[tt].glyph){var bt=this.textSpans[tt].glyph;this.textSpans[tt].childSpan.removeChild(bt.layerElement),bt.destroy()}this.textSpans[tt].glyph=vt,vt._debug=!0,vt.prepareFrame(0),vt.renderFrame(),this.textSpans[tt].childSpan.appendChild(vt.layerElement),ft.t===1&&this.textSpans[tt].childSpan.setAttribute("transform","scale("+it.finalSize/100+","+it.finalSize/100+")")}else ht&&at.setAttribute("transform","translate("+ct.props[12]+","+ct.props[13]+")"),at.textContent=ot[tt].val,at.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ht&&at&&at.setAttribute("d","")}else{var St=this.textContainer,wt="start";switch(it.j){case 1:wt="end";break;case 2:wt="middle";break;default:wt="start"}St.setAttribute("text-anchor",wt),St.setAttribute("letter-spacing",mt);var xt=this.buildTextContents(it.finalText);for(et=xt.length,ut=it.ps?it.ps[1]+it.ascent:0,tt=0;tt<et;tt+=1)(at=this.textSpans[tt].span||createNS("tspan")).textContent=xt[tt],at.setAttribute("x",0),at.setAttribute("y",ut),at.style.display="inherit",St.appendChild(at),this.textSpans[tt]||(this.textSpans[tt]={span:null,glyph:null}),this.textSpans[tt].span=at,ut+=it.finalLineHeight;this.layerElement.appendChild(St)}for(;tt<this.textSpans.length;)this.textSpans[tt].span.style.display="none",tt+=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 tt=this.layerElement.getBBox();
vendor: 6,493 bytes, line 28
28this.bbox={top:tt.y,left:tt.x,width:tt.width,height:tt.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var tt,et,it=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,tt=0;tt<it;tt+=1)(et=this.textSpans[tt].glyph)&&(et.prepareFrame(this.comp.renderedFrame-this.data.st),et._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 tt,et;this._sizeChanged=!0;var it,rt,nt,st=this.textAnimator.renderedLetters,at=this.textProperty.currentData.l;for(et=at.length,tt=0;tt<et;tt+=1)at[tt].n||(it=st[tt],rt=this.textSpans[tt].span,(nt=this.textSpans[tt].glyph)&&nt.renderFrame(),it._mdf.m&&rt.setAttribute("transform",it.m),it._mdf.o&&rt.setAttribute("opacity",it.o),it._mdf.sw&&rt.setAttribute("stroke-width",it.sw),it._mdf.sc&&rt.setAttribute("stroke",it.sc),it._mdf.fc&&rt.setAttribute("fill",it.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var tt=createNS("rect");tt.setAttribute("width",this.data.sw),tt.setAttribute("height",this.data.sh),tt.setAttribute("fill",this.data.sc),this.layerElement.appendChild(tt)},NullElement.prototype.prepareFrame=function(tt){this.prepareProperties(tt,!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(tt){return new NullElement(tt,this.globalData,this)},SVGRendererBase.prototype.createShape=function(tt){return new SVGShapeElement(tt,this.globalData,this)},SVGRendererBase.prototype.createText=function(tt){return new SVGTextLottieElement(tt,this.globalData,this)},SVGRendererBase.prototype.createImage=function(tt){return new IImageElement(tt,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(tt){return new ISolidElement(tt,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(tt){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 "+tt.w+" "+tt.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",tt.w),this.svgElement.setAttribute("height",tt.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var et=this.globalData.defs;this.setupGlobalData(tt,et),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=tt;var it=createNS("clipPath"),rt=createNS("rect");rt.setAttribute("width",tt.w),rt.setAttribute("height",tt.h),rt.setAttribute("x",0),rt.setAttribute("y",0);var nt=createElementID();it.setAttribute("id",nt),it.appendChild(rt),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+nt+")"),et.appendChild(it),this.layers=tt.layers,this.elements=createSizedArray(tt.layers.length)},SVGRendererBase.prototype.destroy=function(){var tt;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var et=this.layers?this.layers.length:0;for(tt=0;tt<et;tt+=1)this.elements[tt]&&this.elements[tt].destroy&&this.elements[tt].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(tt){var et=0,it=this.layers.length;for(et=0;et<it;et+=1)if(this.layers[et].ind===tt)return et;return-1},SVGRendererBase.prototype.buildItem=function(tt){var et=this.elements;if(!et[tt]&&this.layers[tt].ty!==99){et[tt]=!0;var it=this.createItem(this.layers[tt]);if(et[tt]=it,getExpressionsPlugin()&&(this.layers[tt].ty===0&&this.globalData.projectInterface.registerComposition(it),it.initExpressions()),this.appendElementInPos(it,tt),this.layers[tt].tt){var rt="tp"in this.layers[tt]?this.findIndexByInd(this.layers[tt].tp):tt-1;if(rt===-1)return;if(this.elements[rt]&&this.elements[rt]!==!0){var nt=et[rt].getMatte(this.layers[tt].tt);it.setMatte(nt)}else this.buildItem(rt),this.addPendingElement(it)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var tt=this.pendingElements.pop();if(tt.checkParenting(),tt.data.tt)for(var et=0,it=this.elements.length;et<it;){if(this.elements[et]===tt){var rt="tp"in tt.data?this.findIndexByInd(tt.data.tp):et-1,nt=this.elements[rt].getMatte(this.layers[et].tt);tt.setMatte(nt);break}et+=1}}},SVGRendererBase.prototype.renderFrame=function(tt){if(this.renderedFrame!==tt&&!this.destroyed){var et;tt===null?tt=this.renderedFrame:this.renderedFrame=tt,this.globalData.frameNum=tt,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=tt,this.globalData._mdf=!1;var it=this.layers.length;for(this.completeLayers||this.checkLayers(tt),et=it-1;et>=0;et-=1)(this.completeLayers||this.elements[et])&&this.elements[et].prepareFrame(tt-this.layers[et].st);if(this.globalData._mdf)for(et=0;et<it;et+=1)(this.completeLayers||this.elements[et])&&this.elements[et].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(tt,et){var it=tt.getBaseElement();if(it){for(var rt,nt=0;nt<et;)this.elements[nt]&&this.elements[nt]!==!0&&this.elements[nt].getBaseElement()&&
vendor: 3,787 bytes, line 28
28(rt=this.elements[nt].getBaseElement()),nt+=1;rt?this.layerElement.insertBefore(it,rt):this.layerElement.appendChild(it)}},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(tt,et,it){this.initFrame(),this.initBaseData(tt,et,it),this.initTransform(tt,et,it),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&et.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(tt){if(this._mdf=!1,this.prepareRenderableFrame(tt),this.prepareProperties(tt,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=tt/this.data.sr;else{var et=this.tm.v;et===this.data.op&&(et=this.data.op-1),this.renderedFrame=et}var it,rt=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),it=rt-1;it>=0;it-=1)(this.completeLayers||this.elements[it])&&(this.elements[it].prepareFrame(this.renderedFrame-this.layers[it].st),this.elements[it]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var tt,et=this.layers.length;for(tt=0;tt<et;tt+=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].renderFrame()},ICompElement.prototype.setElements=function(tt){this.elements=tt},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var tt,et=this.layers.length;for(tt=0;tt<et;tt+=1)this.elements[tt]&&this.elements[tt].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(tt){return new SVGCompElement(tt,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(tt){return new SVGCompElement(tt,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(tt){var et,it=tt.length,rt="_";for(et=0;et<it;et+=1)rt+=tt[et].transform.key+"_";var nt=this.sequences[rt];return nt||(nt={transforms:[].concat(tt),finalTransform:new Matrix,_mdf:!1},this.sequences[rt]=nt,this.sequenceList.push(nt)),nt},processSequence:function(tt,et){for(var it=0,rt=tt.transforms.length,nt=et;it<rt&&!et;){if(tt.transforms[it].transform.mProps._mdf){nt=!0;break}it+=1}if(nt)for(tt.finalTransform.reset(),it=rt-1;it>=0;it-=1)tt.finalTransform.multiply(tt.transforms[it].transform.mProps.v);tt._mdf=nt},processSequences:function(tt){var et,it=this.sequenceList.length;for(et=0;et<it;et+=1)this.processSequence(this.sequenceList[et],tt)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var tt="__lottie_element_luma_buffer",et=null,it=null,rt=null;function nt(){var st,at,ot;et||(st=createNS("svg"),at=createNS("filter"),ot=createNS("feColorMatrix"),at.setAttribute("id",tt),ot.setAttribute("type","matrix"),ot.setAttribute("color-interpolation-filters","sRGB"),ot.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"),at.appendChild(ot),st.appendChild(at),st.setAttribute("id",tt+"_svg"),featureSupport.svgLumaHidden&&(st.style.display="none"),rt=st,document.body.appendChild(rt),et=createTag("canvas"),(it=et.getContext("2d")).filter="url(#"+tt+")",it.fillStyle="rgba(0,0,0,0)",it.fillRect(0,0,1,1))}return{load:nt,get:function(st){return et||nt(),et.width=st.width,et.height=st.height,it.filter="url
28(#"+tt+")",et}}};function createCanvas(tt,et){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(tt,et);var it=createTag("canvas");return it.width=tt,it.height=et,it}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(tt){var et,it,rt=tt.data.ef?tt.data.ef.length:0;for(this.filters=[],et=0;et<rt;et+=1){it=null;var nt=tt.data.ef[et].ty;registeredEffects[nt]&&(it=new registeredEffects[nt].effect(tt.effectsManager.effectElements[et],tt)),it&&this.filters.push(it)}this.filters.length&&tt.addRenderableComponent(this)}function registerEffect(tt,et){registeredEffects[tt]={effect:et}}function CVMaskElement(tt,et){var it;this.data=tt,this.element=et,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var rt=this.masksProperties.length,nt=!1;for(it=0;it<rt;it+=1)this.masksProperties[it].mode!=="n"&&(nt=!0),this.viewData[it]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[it],3);this.hasMasks=nt,nt&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(tt){var et,it=this.filters.length;for(et=0;et<it;et+=1)this.filters[et].renderFrame(tt)},CVEffects.prototype.getEffects=function(tt){var et,it=this.filters.length,rt=[];for(et=0;et<it;et+=1)this.filters[et].type===tt&&rt.push(this.filters[et]);return rt},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var tt,et,it,rt,nt=this.element.finalTransform.mat,st=this.element.canvasContext,at=this.masksProperties.length;for(st.beginPath(),tt=0;tt<at;tt+=1)if(this.masksProperties[tt].mode!=="n"){var ot;this.masksProperties[tt].inv&&(st.moveTo(0,0),st.lineTo(this.element.globalData.compSize.w,0),st.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),st.lineTo(0,this.element.globalData.compSize.h),st.lineTo(0,0)),rt=this.viewData[tt].v,et=nt.applyToPointArray(rt.v[0][0],rt.v[0][1],0),st.moveTo(et[0],et[1]);var lt=rt._length;for(ot=1;ot<lt;ot+=1)it=nt.applyToTriplePoints(rt.o[ot-1],rt.i[ot],rt.v[ot]),st.bezierCurveTo(it[0],it[1],it[2],it[3],it[4],it[5]);it=nt.applyToTriplePoints(rt.o[ot-1],rt.i[0],rt.v[0]),st.bezierCurveTo(it[0],it[1],it[2],it[3],it[4],it[5])}this.element.globalData.renderer.save(!0),st.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(tt,et,it,rt){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var nt,st=4;et.ty==="rc"?st=5:et.ty==="el"?st=6:et.ty==="sr"&&(st=7),this.sh=ShapePropertyFactory.getShapeProp(tt,et,st,tt);var at,ot=it.length;for(nt=0;nt<ot;nt+=1)it[nt].closed||(at={transforms:rt.addTransformSequence(it[nt].transforms),trNodes:[]},this.styledShapes.push(at),it[nt].elements.push(at))}function CVShapeElement(tt,et,it){this.shapes=[],this.shapesData=tt.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(tt,et,it)}function CVTextElement(tt,et,it){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(tt,et,it)}function CVImageElement(tt,et,it){this.assetData=et.getAssetData(tt.refId),this.img=et.imageLoader.getAsset(this.assetData),this.initElement(tt,et,it)}function CVSolidElement(tt,et,it){this.initElement(tt,et,it)}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 tt;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,tt=0;tt<15;tt+=1){var et=new CanvasContext;this.stack[tt]=et}
vendor: 1,504 bytes, line 28
28this._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(tt,et,it){this.completeLayers=!1,this.layers=tt.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(tt,et,it),this.tm=tt.tm?PropertyFactory.getProp(this,tt.tm,0,et.frameRate,this):{_placeholder:!0}}function CanvasRenderer(tt,et){this.animationItem=tt,this.renderConfig={clearCanvas:!et||et.clearCanvas===void 0||et.clearCanvas,context:et&&et.context||null,progressiveLoad:et&&et.progressiveLoad||!1,preserveAspectRatio:et&&et.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:et&&et.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:et&&et.contentVisibility||"visible",className:et&&et.className||"",id:et&&et.id||"",runExpressions:!et||et.runExpressions===void 0||et.runExpressions},this.renderConfig.dpr=et&&et.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=et&&et.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=ne
vendor: 4,655 bytes, line 28
28w 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(tt,et,it){this.initElement(tt,et,it)}function HShapeElement(tt,et,it){this.shapes=[],this.shapesData=tt.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(tt,et,it),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(tt,et,it){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(tt,et,it)}function HCameraElement(tt,et,it){this.initFrame(),this.initBaseData(tt,et,it),this.initHierarchy();var rt=PropertyFactory.getProp;if(this.pe=rt(this,tt.pe,0,0,this),tt.ks.p.s?(this.px=rt(this,tt.ks.p.x,1,0,this),this.py=rt(this,tt.ks.p.y,1,0,this),this.pz=rt(this,tt.ks.p.z,1,0,this)):this.p=rt(this,tt.ks.p,1,0,this),tt.ks.a&&(this.a=rt(this,tt.ks.a,1,0,this)),tt.ks.or.k.length&&tt.ks.or.k[0].to){var nt,st=tt.ks.or.k.length;for(nt=0;nt<st;nt+=1)tt.ks.or.k[nt].to=null,tt.ks.or.k[nt].ti=null}this.or=rt(this,tt.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=rt(this,tt.ks.rx,0,degToRads,this),this.ry=rt(this,tt.ks.ry,0,degToRads,this),this.rz=rt(this,tt.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(tt,et,it){this.assetData=et.getAssetData(tt.refId),this.initElement(tt,et,it)}function HybridRendererBase(tt,et){this.animationItem=tt,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:et&&et.className||"",imagePreserveAspectRatio:et&&et.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(et&&et.hideOnTransparent===!1),filterSize:{width:et&&et.filterSize&&et.filterSize.width||"400%",height:et&&et.filterSize&&et.filterSize.height||"400%",x:et&&et.filterSize&&et.filterSize.x||"-100%",y:et&&et.filterSize&&et.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(tt,et,it){this.layers=tt.layers,this.supports3d=!tt.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(tt,et,it),this.tm=tt.tm?PropertyFactory.getProp(this,tt.tm,0,et.frameRate,this):{_placeholder:!0}}function HybridRenderer(tt,et){this.animationItem=tt,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:et&&et.className||"",imagePreserveAspectRatio:et&&et.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(et&&et.hideOnTransparent===!1),filterSize:{width:et&&et.filterSize&&et.filterSize.width||"400%",height:et&&et.filterSize&&et.filterSize.height||"400%",x:et&&et.filterSize&&et.filterSize.x||"-100%",y:et&&et.filterSize&&et.filterSize.y||"-100%"},runExpressions:!et||et.runExpressions===void 0||et.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 tt=this.globalData.canvasContext,et=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(et);var it=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(it),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffe
vendor: 13,896 bytes, line 28
28ctsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var tt=this.globalData;if(tt.blendMode!==this.data.bm){tt.blendMode=this.data.bm;var et=getBlendMode(this.data.bm);tt.canvasContext.globalCompositeOperation=et}},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(tt){tt.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 tt=this.buffers[0].getContext("2d");this.clearCanvas(tt),tt.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 tt=this.buffers[1],et=tt.getContext("2d");if(this.clearCanvas(et),et.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 it=assetLoader.getLumaCanvas(this.canvasContext.canvas);it.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(it,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(tt,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(tt){if(!this.hidden&&!this.data.hd&&(this.data.td!==1||tt)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var et=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(et),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(et),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(tt,et){var it={data:tt,type:tt.ty,preTransforms:this.transformsManager.addTransformSequence(et),transforms:[],elements:[],closed:tt.hd===!0},rt={};if(tt.ty==="fl"||tt.ty==="st"?(rt.c=PropertyFactory.getProp(this,tt.c,1,255,this),rt.c.k||(it.co="rgb("+bmFloor(rt.c.v[0])+","+bmFloor(rt.c.v[1])+","+bmFloor(rt.c.v[2])+")")):tt.ty!=="gf"&&tt.ty!=="gs"||(rt.s=PropertyFactory.getProp(this,tt.s,1,null,this),rt.e=PropertyFactory.getProp(this,tt.e,1,null,this),rt.h=PropertyFactory.getProp(this,tt.h||{k:0},0,.01,this),rt.a=PropertyFactory.getProp(this,tt.a||{k:0},0,degToRads,this),rt.g=new GradientProperty(this,tt.g,this)),rt.o=PropertyFactory.getProp(this,tt.o,0,.01,this),tt.ty==="st"||tt.ty==="gs"){if(it.lc=lineCapEnum[tt.lc||2],it.lj=lineJoinEnum[tt.lj||2],tt.lj==1&&(it.ml=tt.ml),rt.w=PropertyFactory.getProp(this,tt.w,0,null,this),rt.w.k||(it.wi=rt.w.v),tt.d){var nt=new DashProperty(this,tt.d,"canvas",this);rt.d=nt,rt.d.k||(it.da=rt.d.dashArray,it.do=rt.d.dashoffset[0])}}else it.r=tt.r===2?"evenodd":"nonzero";return this.stylesList.push(it),rt.style=it,rt},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(tt){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,tt.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,tt,this)}}},CVShapeElement.prototype.createShapeElement=function(tt){var et=new CVShapeData(this,tt,this.stylesList,this.transformsManager);return this.shapes.push(et),this.addShapeToModifiers(et),et},CVShapeElement.prototype.reloadShapes=function(){var tt;this._isFirstFrame=!0;var et=this.itemsData.length;for(tt=0;tt<et;tt+=1)this.prevViewData[tt]=this.itemsData[tt];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),et=this.dynamicProperties.length,tt=0;tt<et;tt+=1)this.dynamicProperties[tt].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(tt){var et,it=this.stylesList.length;for(et=0;et<it;et+=1)this.stylesList[et].closed||this.stylesList[et].transforms.push(tt)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var tt,et=this.stylesList.length;for(tt=0;tt<et;tt+=1)this.stylesList[tt].closed||this.stylesList[tt].transforms.pop()},CVShapeElement.prototype.closeStyles=function(tt){var et,it=tt.length;for(et=0;et<it;et+=1)tt[et].closed=!0},CVShapeElement.prototype.searchShapes=function(tt,et,it,rt,nt){var st,at,ot,lt,ct,ht,dt=tt.length-1,ut=[],gt=[],mt=[].concat(nt);for(st=dt;st>=0;st-=1){if((lt=this.searchProcessedElement(tt[st]))?et[st]=it[lt-1]:tt[st]._shouldRender=rt,tt[st].ty==="fl"||tt[st].ty==="st"||tt[st].ty==="gf"||tt[st].ty==="gs")lt?et[st].style.closed=!1:et[st]=this.createStyleElement(tt[st],mt),ut.push(et[st].style);else if(tt[st].ty==="gr"){if(lt)for(ot=et[st].it.length,at=0;at<ot;at+=1)et[st].prevViewData[at]=et[st].it[at];else et[st]=this.createGroupElement(tt[st]);this.searchShapes(tt[st].it,et[st].it,et[st].prevViewData,rt,mt)}else tt[st].ty==="tr"?(lt||(ht=this.createTransformElement(tt[st]),et[st]=ht),mt.push(et[st]),this.addTransformToStyleList(et[st])):tt[st].ty==="sh"||tt[st].ty==="rc"||tt[st].ty==="el"||tt[st].ty==="sr"?lt||(et[st]=this.createShapeElement(tt[st])):tt[st].ty==="tm"||tt[st].ty==="rd"||tt[st].ty==="pb"||tt[st].ty==="zz"||tt[st].ty==="op"?(lt?(ct=et[st]).closed=!1:((ct=ShapeModifiers.getModifier(tt[st].ty)).init(this,tt[st]),et[st]=ct,this.shapeModifiers.push(ct)),gt.push(ct)):tt[st].ty==="rp"&&(lt?(ct=et[st]).closed=!0:(ct=ShapeModifiers.getModifier(tt[st].ty),et[st]=ct,ct.init(this,tt,st,et),this.shapeModifiers.push(ct),rt=!1),gt.push(ct));this.addProcessedElement(tt[st],st+1)}for(this.removeTransformFromStyleList(),this.closeStyles(ut),dt=gt.length,st=0;st<dt;st+=1)gt[st].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(tt,et){(tt._opMdf||et.op._mdf||this._isFirstFrame)&&(et.opacity=tt.opacity,et.opacity*=et.op.v,et._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var tt,et,it,rt,nt,st,at,ot,lt,ct=this.stylesList.length,ht=this.globalData.renderer,dt=this.globalData.canvasContext;for(tt=0;tt<ct;tt+=1)if(((ot=(lt=this.stylesList[tt]).type)!=="st"&&ot!=="gs"||lt.wi!==0)&&lt.data._shouldRender&&lt.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(ht.save(),st=lt.elements,ot==="st"||ot==="gs"?(ht.ctxStrokeStyle(ot==="st"?lt.co:lt.grd),ht.ctxLineWidth(lt.wi),ht.ctxLineCap(lt.lc),ht.ctxLineJoin(lt.lj),ht.ctxMiterLimit(lt.ml||0)):ht.ctxFillStyle(ot==="fl"?lt.co:lt.grd),ht.ctxOpacity(lt.coOp),ot!=="st"&&ot!=="gs"&&dt.beginPath(),ht.ctxTransform(lt.preTransforms.finalTransform.props),it=st.length,et=0;et<it;et+=1){for(ot!=="st"&&ot!=="gs"||(dt.beginPath(),lt.da&&(dt.setLineDash(lt.da),dt.lineDashOffset=lt.do)),nt=(at=st[et].trNodes).length,rt=0;rt<nt;rt+=1)at[rt].t==="m"?dt.moveTo(at[rt].p[0],at[rt].p[1]):at[rt].t==="c"?dt.bezierCurveTo(at[rt].pts[0],at[rt].pts[1],at[rt].pts[2],at[rt].pts[3],at[rt].pts[4],at[rt].pts[5]):dt.closePath();ot!=="st"&&ot!=="gs"||(ht.ctxStroke(),lt.da&&dt.setLineDash(this.dashResetter))}ot!=="st"&&ot!=="gs"&&this.globalData.renderer.ctxFill(lt.r),ht.restore()}},CVShapeElement.prototype.renderShape=function(tt,et,it,rt){var nt,st;for(st=tt,nt=et.length-1;nt>=0;nt-=1)et[nt].ty==="tr"?(st=it[nt].transform,this.renderShapeTransform(tt,st)):et[nt].ty==="sh"||et[nt].ty==="el"||et[nt].ty==="rc"||et[nt].ty==="sr"?this.renderPath(et[nt],it[nt]):et[nt].ty==="fl"?this.renderFill(et[nt],it[nt],st):et[nt].ty==="st"?this.renderStroke(et[nt],it[nt],st):et[nt].ty==="gf"||et[nt].ty==="gs"?this.renderGradientFill(et[nt],it[nt],st):et[nt].ty==="gr"?this.renderShape(st,et[nt].it,it[nt].it):et[nt].ty;rt&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(tt,et){if(this._isFirstFrame||et._mdf||tt.transforms._mdf){var it,rt,nt,st=tt.trNodes,at=et.paths,ot=at._length;st.length=0;var lt=tt.transforms.finalTransform;for(nt=0;nt<ot;nt+=1){var ct=at.shapes[nt];if(ct&&ct.v){for(rt=ct._length,it=1;it<rt;it+=1)it===1&&st.push({t:"m",p:lt.applyToPointArray(ct.v[0][0],ct.v[0][1],0)}),st.push({t:"c",pts:lt.applyToTriplePoints(ct.o[it-1],ct.i[it],ct.v[it])});rt===1&&st.push({t:"m",p:lt.applyToPointArray(ct.v[0][0],ct.v[0][1],0)}),ct.c&&rt&&(st.push({t:"c",pts:lt.applyToTriplePoints(ct.o[it-1],ct.i[0],ct.v[0])}),st.push({t:"z"}))}}tt.trNodes=st}},CVShapeElement.prototype.renderPath=function(tt,et){if(tt.hd!==!0&&tt._shouldRender){var it,rt=et.styledShapes.length;for(it=0;it<rt;it+=1)this.renderStyledShape(et.styledShapes[it],et.sh)}},CVShapeElement.prototype.renderFill=function(tt,et,it){var rt=et.style;(et.c._mdf||this._isFirstFrame)&&(rt.co="rgb("+bmFloor(et.c.v[0])+","+bmFloor(et.c.v[1])+","+bmFloor(et.c.v[2])+")"),(et.o._mdf||it._opMdf||this._isFirstFrame)&&(rt.coOp=et.o.v*it.opacity)},CVShapeElement.prototype.renderGradientFill=function(tt,et,it){var rt,nt=et.style;if(!nt.grd||et.g._mdf||et.s._mdf||et.e._mdf||tt.t!==1&&(et.h._mdf||et.a._mdf)){var st,at=this.globalData.canvasContext,ot=et.s.v,lt=et.e.v;if(tt.t===1)rt=at.createLinearGradient(ot[0],ot[1],lt[0],lt[1]);else{var ct=Math.sqrt(Math.pow(ot[0]-lt[0],2)+Math.pow(ot[1]-lt[1],2)),ht=Math.atan2(lt[1]-ot[1],lt[0]-ot[0]),dt=et.h.v;dt>=1?dt=.99:dt<=-1&&(dt=-.99);var ut=ct*dt,gt=Math.cos(ht+et.a.v)*ut+ot[0],mt=Math.sin(ht+et.a.v)*ut+ot[1];rt=at.createRadialGradient(gt,mt,0,ot[0],ot[1],ct)}var ft=tt.g.p,pt=et.g.c,yt=1;for(st=0;st<ft;st+=1)et.g._hasOpacity&&et.g._collapsable&&(yt=et.g.o[2*st+1]),rt.addColorStop(pt[4*st]/100,"rgba("+pt[4*st+1]+","+pt[4*st+2]+","+pt[4*st+3]+","+yt+")");nt.grd=rt}nt.coOp=et.o.v*it.opacity},CVShapeElement.prototype.renderStroke=function(tt,et,it){var rt=et.style,nt=et.d;nt&&(nt._mdf||this._isFirstFrame)&&(rt.da=nt.dashArray,rt.do=nt.dashoffset[0]),(et.c._mdf||this._isFirstFrame)&&(rt.co="rgb("+bmFloor(et.c.v[0])+","+bmFloor(et.c.v[1])+","+bmFloor(et.c.v[2])+")"),(et.o._mdf||it._opMdf||this._isFirstFrame)&&(rt.coOp=et.o.v*it.opacity),(et.w._mdf||this._isFirstFrame)&&(rt.wi=et.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 tt=this.textProperty.currentData;this.renderedLetters=createSizedArray(tt.l?tt.l.length:0);var et=!1;tt.fc?(et=!0,this.values.fill=this.buildColor(tt.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=et;var it=!1;tt.sc&&(it=!0,this.values.stroke=this.buildColor(tt.sc),this.values.sWidth=tt.sw);var rt,nt,st,at,ot,lt,ct,ht,dt,ut,gt,mt,ft=this.globalData.fontManager.getFontByName(tt.f),pt=tt.l,yt=this.mHelper;this.stroke=it,this.values.fValue=tt.finalSize+"px "+this.globalData.fontManager.getFontByName(tt.f).fFamily,nt=tt.finalText.length;var vt=this.data.singleShape,_t=.001*tt.tr*tt.finalSize,bt=0,St=0,wt=!0,xt=0;for(rt=0;rt<nt;rt+=1){at=(st=this.globalData.fontManager.getCharData(tt.finalText[rt],ft.fStyle,this.globalData.fontManager.getFontByName(tt.f).fFamily))&&st.data||{},yt.reset(),vt&&pt[rt].n&&(bt=-_t,St+=tt.yOffset,St+=wt?1:0,wt=!1),dt=(ct=at.shapes?at.shapes[0].it:[]).length,yt.scale(tt.finalSize/100,tt.finalSize/100),vt&&this.applyTextPropertiesToMatrix(tt,yt,pt[rt].line,bt,St),gt=createSizedArray(dt-1);var Pt=0;for(ht=0;ht<dt;ht+=1)if(ct[ht].ty==="sh"){for(lt=ct[ht].ks.k.i.length,ut=ct[ht].ks.k,mt=[],ot=1;ot<lt;ot+=1)ot===1&&mt.push(yt.applyToX(ut.v[0][0],ut.v[0][1],0),yt.applyToY(ut.v[0][0],ut.v[0][1],0)),mt.push(yt.applyToX(ut.o[ot-1][0],ut.o[ot-1][1],0),yt.applyToY(ut.o[ot-1][0],ut.o[ot-1][1],0),yt.applyToX(ut.i[ot][0],ut.i[ot][1],0),yt.applyToY(ut.i[ot][0],ut.i[ot][1],0),yt.applyToX(ut.v[ot][0],ut.v[ot][1],0),yt.applyToY(ut.v[ot][0],ut.v[ot][1],0));
vendor: 5,430 bytes, line 28
28mt.push(yt.applyToX(ut.o[ot-1][0],ut.o[ot-1][1],0),yt.applyToY(ut.o[ot-1][0],ut.o[ot-1][1],0),yt.applyToX(ut.i[0][0],ut.i[0][1],0),yt.applyToY(ut.i[0][0],ut.i[0][1],0),yt.applyToX(ut.v[0][0],ut.v[0][1],0),yt.applyToY(ut.v[0][0],ut.v[0][1],0)),gt[Pt]=mt,Pt+=1}vt&&(bt+=pt[rt].l,bt+=_t),this.textSpans[xt]?this.textSpans[xt].elem=gt:this.textSpans[xt]={elem:gt},xt+=1}},CVTextElement.prototype.renderInnerContent=function(){var tt,et,it,rt,nt,st;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 at,ot=this.textAnimator.renderedLetters,lt=this.textProperty.currentData.l;et=lt.length;var ct,ht,dt=null,ut=null,gt=null,mt=this.globalData.renderer;for(tt=0;tt<et;tt+=1)if(!lt[tt].n){if((at=ot[tt])&&(mt.save(),mt.ctxTransform(at.p),mt.ctxOpacity(at.o)),this.fill){for(at&&at.fc?dt!==at.fc&&(mt.ctxFillStyle(at.fc),dt=at.fc):dt!==this.values.fill&&(dt=this.values.fill,mt.ctxFillStyle(this.values.fill)),rt=(ct=this.textSpans[tt].elem).length,this.globalData.canvasContext.beginPath(),it=0;it<rt;it+=1)for(st=(ht=ct[it]).length,this.globalData.canvasContext.moveTo(ht[0],ht[1]),nt=2;nt<st;nt+=6)this.globalData.canvasContext.bezierCurveTo(ht[nt],ht[nt+1],ht[nt+2],ht[nt+3],ht[nt+4],ht[nt+5]);this.globalData.canvasContext.closePath(),mt.ctxFill()}if(this.stroke){for(at&&at.sw?gt!==at.sw&&(gt=at.sw,mt.ctxLineWidth(at.sw)):gt!==this.values.sWidth&&(gt=this.values.sWidth,mt.ctxLineWidth(this.values.sWidth)),at&&at.sc?ut!==at.sc&&(ut=at.sc,mt.ctxStrokeStyle(at.sc)):ut!==this.values.stroke&&(ut=this.values.stroke,mt.ctxStrokeStyle(this.values.stroke)),rt=(ct=this.textSpans[tt].elem).length,this.globalData.canvasContext.beginPath(),it=0;it<rt;it+=1)for(st=(ht=ct[it]).length,this.globalData.canvasContext.moveTo(ht[0],ht[1]),nt=2;nt<st;nt+=6)this.globalData.canvasContext.bezierCurveTo(ht[nt],ht[nt+1],ht[nt+2],ht[nt+3],ht[nt+4],ht[nt+5]);this.globalData.canvasContext.closePath(),mt.ctxStroke()}at&&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 tt=createTag("canvas");tt.width=this.assetData.w,tt.height=this.assetData.h;var et,it,rt=tt.getContext("2d"),nt=this.img.width,st=this.img.height,at=nt/st,ot=this.assetData.w/this.assetData.h,lt=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;at>ot&&lt==="xMidYMid slice"||at<ot&&lt!=="xMidYMid slice"?et=(it=st)*ot:it=(et=nt)/ot,rt.drawImage(this.img,(nt-et)/2,(st-it)/2,et,it,0,0,this.assetData.w,this.assetData.h),this.img=tt}},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(tt){return new CVShapeElement(tt,this.globalData,this)},CanvasRendererBase.prototype.createText=function(tt){return new CVTextElement(tt,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(tt){return new CVImageElement(tt,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(tt){return new CVSolidElement(tt,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(tt){tt[0]===1&&tt[1]===0&&tt[4]===0&&tt[5]===1&&tt[12]===0&&tt[13]===0||this.canvasContext.transform(tt[0],tt[1],tt[4],tt[5],tt[12],tt[13])},CanvasRendererBase.prototype.ctxOpacity=function(tt){this.canvasContext.globalAlpha*=tt<0?0:tt},CanvasRendererBase.prototype.ctxFillStyle=function(tt){this.canvasContext.fillStyle=tt},CanvasRendererBase.prototype.ctxStrokeStyle=function(tt){this.canvasContext.strokeStyle=tt},CanvasRendererBase.prototype.ctxLineWidth=function(tt){this.canvasContext.lineWidth=tt},CanvasRendererBase.prototype.ctxLineCap=function(tt){this.canvasContext.lineCap=tt},CanvasRendererBase.prototype.ctxLineJoin=function(tt){this.canvasContext.lineJoin=tt},CanvasRendererBase.prototype.ctxMiterLimit=function(tt){this.canvasContext.miterLimit=tt},CanvasRendererBase.prototype.ctxFill=function(tt){this.canvasContext.fill(tt)},CanvasRendererBase.prototype.ctxFillRect=function(tt,et,it,rt){this.canvasContext.fillRect(tt,et,it,rt)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore(
vendor: 5,282 bytes, line 28
28)},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(tt){this.renderConfig.clearCanvas?(tt&&(this.globalData.blendMode="source-over"),this.contextData.restore(tt)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(tt){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var et=this.animationItem.container.style;et.width="100%",et.height="100%";var it="0px 0px 0px";et.transformOrigin=it,et.mozTransformOrigin=it,et.webkitTransformOrigin=it,et["-webkit-transform"]=it,et.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=tt,this.layers=tt.layers,this.transformCanvas={w:tt.w,h:tt.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(tt,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(tt.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(tt,et){var it,rt,nt,st;if(this.reset(),tt?(it=tt,rt=et,this.canvasContext.canvas.width=it,this.canvasContext.canvas.height=rt):(this.animationItem.wrapper&&this.animationItem.container?(it=this.animationItem.wrapper.offsetWidth,rt=this.animationItem.wrapper.offsetHeight):(it=this.canvasContext.canvas.width,rt=this.canvasContext.canvas.height),this.canvasContext.canvas.width=it*this.renderConfig.dpr,this.canvasContext.canvas.height=rt*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var at=this.renderConfig.preserveAspectRatio.split(" "),ot=at[1]||"meet",lt=at[0]||"xMidYMid",ct=lt.substr(0,4),ht=lt.substr(4);nt=it/rt,(st=this.transformCanvas.w/this.transformCanvas.h)>nt&&ot==="meet"||st<nt&&ot==="slice"?(this.transformCanvas.sx=it/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=it/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=rt/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=rt/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=ct==="xMid"&&(st<nt&&ot==="meet"||st>nt&&ot==="slice")?(it-this.transformCanvas.w*(rt/this.transformCanvas.h))/2*this.renderConfig.dpr:ct==="xMax"&&(st<nt&&ot==="meet"||st>nt&&ot==="slice")?(it-this.transformCanvas.w*(rt/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=ht==="YMid"&&(st>nt&&ot==="meet"||st<nt&&ot==="slice")?(rt-this.transformCanvas.h*(it/this.transformCanvas.w))/2*this.renderConfig.dpr:ht==="YMax"&&(st>nt&&ot==="meet"||st<nt&&ot==="slice")?(rt-this.transformCanvas.h*(it/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=it/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=rt/(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 tt;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),tt=(this.layers?this.layers.length:0)-1;tt>=0;tt-=1)this.elements[tt]&&this.elements[tt].destroy&&this.elements[tt].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(tt,et){if((this.renderedFrame!==tt||this.renderConfig.clearCanvas!==!0||et)&&!this.destroyed&&tt!==-1){var it;this.renderedFrame=tt,this.globalData.frameNum=tt-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||et,this.globalData.projectInterface.currentFrame=tt;var rt=this.layers.length;for(this.completeLayers||this.checkLayers(tt),it=rt-1;it>=0;it-=1)(this.completeLayers||this.elements[it])&&this.elements[it].prepareFrame(tt-this.layers[it].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),it=rt-1;it>=0;it-=1)(this.completeLayers||this.elements[it])&&this.elements[it].renderFrame();
vendor: 4,435 bytes, line 28
28this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(tt){var et=this.elements;if(!et[tt]&&this.layers[tt].ty!==99){var it=this.createItem(this.layers[tt],this,this.globalData);et[tt]=it,it.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 tt=2*this._length,et=0;for(et=this._length;et<tt;et+=1)this.stack[et]=new CanvasContext;this._length=tt},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(tt){this.cArrPos-=1;var et,it=this.stack[this.cArrPos],rt=it.transform,nt=this.cTr.props;for(et=0;et<16;et+=1)nt[et]=rt[et];if(tt){this.nativeContext.restore();var st=this.stack[this.cArrPos+1];this.appliedFillStyle=st.fillStyle,this.appliedStrokeStyle=st.strokeStyle,this.appliedLineWidth=st.lineWidth,this.appliedLineCap=st.lineCap,this.appliedLineJoin=st.lineJoin,this.appliedMiterLimit=st.miterLimit}this.nativeContext.setTransform(rt[0],rt[1],rt[4],rt[5],rt[12],rt[13]),(tt||it.opacity!==-1&&this.currentOpacity!==it.opacity)&&(this.nativeContext.globalAlpha=it.opacity,this.currentOpacity=it.opacity),this.currentFillStyle=it.fillStyle,this.currentStrokeStyle=it.strokeStyle,this.currentLineWidth=it.lineWidth,this.currentLineCap=it.lineCap,this.currentLineJoin=it.lineJoin,this.currentMiterLimit=it.miterLimit},CVContextData.prototype.save=function(tt){tt&&this.nativeContext.save();var et=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var it,rt=this.stack[this.cArrPos];for(it=0;it<16;it+=1)rt.transform[it]=et[it];this.cArrPos+=1;var nt=this.stack[this.cArrPos];nt.opacity=rt.opacity,nt.fillStyle=rt.fillStyle,nt.strokeStyle=rt.strokeStyle,nt.lineWidth=rt.lineWidth,nt.lineCap=rt.lineCap,nt.lineJoin=rt.lineJoin,nt.miterLimit=rt.miterLimit},CVContextData.prototype.setOpacity=function(tt){this.stack[this.cArrPos].opacity=tt},CVContextData.prototype.setContext=function(tt){this.nativeContext=tt},CVContextData.prototype.fillStyle=function(tt){this.stack[this.cArrPos].fillStyle!==tt&&(this.currentFillStyle=tt,this.stack[this.cArrPos].fillStyle=tt)},CVContextData.prototype.strokeStyle=function(tt){this.stack[this.cArrPos].strokeStyle!==tt&&(this.currentStrokeStyle=tt,this.stack[this.cArrPos].strokeStyle=tt)},CVContextData.prototype.lineWidth=function(tt){this.stack[this.cArrPos].lineWidth!==tt&&(this.currentLineWidth=tt,this.stack[this.cArrPos].lineWidth=tt)},CVContextData.prototype.lineCap=function(tt){this.stack[this.cArrPos].lineCap!==tt&&(this.currentLineCap=tt,this.stack[this.cArrPos].lineCap=tt)},CVContextData.prototype.lineJoin=function(tt){this.stack[this.cArrPos].lineJoin!==tt&&(this.currentLineJoin=tt,this.stack[this.cArrPos].lineJoin=tt)},CVContextData.prototype.miterLimit=function(tt){this.stack[this.cArrPos].miterLimit!==tt&&(this.currentMiterLimit=tt,this.stack[this.cArrPos].miterLimit=tt)},CVContextData.prototype.transform=function(tt){this.transformMat.cloneFromProps(tt);var et=this.cTr;this.transformMat.multiply(et),et.cloneFromProps(this.transformMat.props);var it=et.props;this.nativeContext.setTransform(it[0],it[1],it[4],it[5],it[12],it[13])},CVContextData.prototype.opacity=function(tt){var et=this.stack[this.cArrPos].opacity;et*=tt<0?0:tt,this.stack[this.cArrPos].opacity!==et&&(this.currentOpacity!==tt&&(this.nativeContext.globalAlpha=tt,this.currentOpacity=tt),this.stack[this.cArrPos].opacity=et)},CVContextData.prototype.fill=function(tt){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(tt)},CVContextData.prototype.fillRect=function(tt,et,it,rt){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(tt,et,it,rt)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWi
vendor: 12,477 bytes, line 28
28dth!==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 tt,et=this.canvasContext;for(et.beginPath(),et.moveTo(0,0),et.lineTo(this.data.w,0),et.lineTo(this.data.w,this.data.h),et.lineTo(0,this.data.h),et.lineTo(0,0),et.clip(),tt=this.layers.length-1;tt>=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].renderFrame()},CVCompElement.prototype.destroy=function(){var tt;for(tt=this.layers.length-1;tt>=0;tt-=1)this.elements[tt]&&this.elements[tt].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(tt){return new CVCompElement(tt,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(tt){return new CVCompElement(tt,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),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var tt=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var et=this.finalTransform.mat.toCSS();tt.transform=et,tt.webkitTransform=et}this.finalTransform._opMdf&&(tt.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 tt;this.data.hasMask?((tt=createNS("rect")).setAttribute("width",this.data.sw),tt.setAttribute("height",this.data.sh),tt.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((tt=createTag("div")).style.width=this.data.sw+"px",tt.style.height=this.data.sh+"px",tt.style.backgroundColor=this.data.sc),this.layerElement.appendChild(tt)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var tt;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),tt=this.svgElement;else{tt=createNS("svg");var et=this.comp.data?this.comp.data:this.globalData.compSize;tt.setAttribute("width",et.w),tt.setAttribute("height",et.h),tt.appendChild(this.shapesContainer),this.layerElement.appendChild(tt)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=tt},HShapeElement.prototype.getTransformedPoint=function(tt,et){var it,rt=tt.length;for(it=0;it<rt;it+=1)et=tt[it].mProps.v.applyToPointArray(et[0],et[1],0);return et},HShapeElement.prototype.calculateShapeBoundingBox=function(tt,et){var it,rt,nt,st,at,ot=tt.sh.v,lt=tt.transformers,ct=ot._length;if(!(ct<=1)){for(it=0;it<ct-1;it+=1)rt=this.getTransformedPoint(lt,ot.v[it]),nt=this.getTransformedPoint(lt,ot.o[it]),st=this.getTransformedPoint(lt,ot.i[it+1]),at=this.getTransformedPoint(lt,ot.v[it+1]),this.checkBounds(rt,nt,st,at,et);ot.c&&(rt=this.getTransformedPoint(lt,ot.v[it]),nt=this.getTransformedPoint(lt,ot.o[it]),st=this.getTransformedPoint(lt,ot.i[0]),at=this.getTransformedPoint(lt,ot.v[0]),this.checkBounds(rt,nt,st,at,et))}},HShapeElement.prototype.checkBounds=function(tt,et,it,rt,nt){this.getBoundsOfCurve(tt,et,it,rt);var st=this.shapeBoundingBox;nt.x=bmMin(st.left,nt.x),nt.xMax=bmMax(st.right,nt.xMax),nt.y=bmMin(st.top,nt.y),nt.yMax=bmMax(st.bottom,nt.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(tt,et,it,rt){for(var nt,st,at,ot,lt,ct,ht,dt=[[tt[0],rt[0]],[tt[1],rt[1]]],ut=0;ut<2;++ut)st=6*tt[ut]-12*et[ut]+6*it[ut],nt=-3*tt[ut]+9*et[ut]-9*it[ut]+3*rt[ut],at=3*et[ut]-3*tt[ut],st|=0,at|=0,(nt|=0)==0&&st===0||(nt===0?(ot=-at/st)>0&&ot<1&&dt[ut].push(this.calculateF(ot,tt,et,it,rt,ut)):(lt=st*st-4*at*nt)>=0&&((ct=(-st+bmSqrt(lt))/(2*nt))>0&&ct<1&&dt[ut].push(this.calculateF(ct,tt,et,it,rt,ut)),(ht=(-st-bmSqrt(lt))/(2*nt))>0&&ht<1&&dt[ut].push(this.calculateF(ht,tt,et,it,rt,ut))));this.shapeBoundingBox.left=bmMin.apply(null,dt[0]),this.shapeBoundingBox.top=bmMin.apply(null,dt[1]),this.shapeBoundingBox.right=bmMax.apply(null,dt[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,dt[1])},HShapeElement.prototype.calculateF=function(tt,et,it,rt,nt,st){return bmPow(1-tt,3)*et[st]+3*bmPow(1-tt,2)*tt*it[st]+3*(1-tt)*bmPow(tt,2)*rt[st]+bmPow(tt,3)*nt[st]},HShapeElement.prototype.calculateBoundingBox=function(tt,et){var it,rt=tt.length;for(it=0;it<rt;it+=1)tt[it]&&tt[it].sh?this.calculateShapeBoundingBox(tt[it],et):tt[it]&&tt[it].it?this.calculateBoundingBox(tt[it].it,et):tt[it]&&tt[it].style&&tt[it].w&&this.expandStrokeBoundingBox(tt[it].w,et)},HShapeElement.prototype.expandStrokeBoundingBox=function(tt,et){var it=0;if(tt.keyframes){for(var rt=0;rt<tt.keyframes.length;rt+=1){var nt=tt.keyframes[rt].s;nt>it&&(it=nt)}it*=tt.mult}else it=tt.v*tt.mult;et.x-=it,et.xMax+=it,et.y-=it,et.yMax+=it},HShapeElement.prototype.currentBoxContains=function(tt){return this.currentBBox.x<=tt.x&&this.currentBBox.y<=tt.y&&this.currentBBox.width+this.currentBBox.x>=tt.x+tt.width&&this.currentBBox.height+this.currentBBox.y>=tt.y+tt.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var tt=this.tempBoundingBox,et=999999;if(tt.x=et,tt.xMax=-et,tt.y=et,tt.yMax=-et,this.calculateBoundingBox(this.itemsData,tt),tt.width=tt.xMax<tt.x?0:tt.xMax-tt.x,tt.height=tt.yMax<tt.y?0:tt.yMax-tt.y,this.currentBoxContains(tt))return;var it=!1;if(this.currentBBox.w!==tt.width&&(this.currentBBox.w=tt.width,this.shapeCont.setAttribute("width",tt.width),it=!0),this.currentBBox.h!==tt.height&&(this.currentBBox.h=tt.height,this.shapeCont.setAttribute("height",tt.height),it=!0),it||this.currentBBox.x!==tt.x||this.currentBBox.y!==tt.y){this.currentBBox.w=tt.width,this.currentBBox.h=tt.height,this.currentBBox.x=tt.x,this.currentBBox.y=tt.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var rt=this.shapeCont.style,nt="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";rt.transform=nt,rt.webkitTransform=nt}}},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 tt=createNS("g");this.maskedElement.appendChild(tt),this.innerElem=tt}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var tt=this.textProperty.currentData;this.renderedLetters=createSizedArray(tt.l?tt.l.length:0);var et=this.innerElem.style,it=tt.fc?this.buildColor(tt.fc):"rgba(0,0,0,0)";et.fill=it,et.color=it,tt.sc&&(et.stroke=this.buildColor(tt.sc),et.strokeWidth=tt.sw+"px");var rt,nt,st=this.globalData.fontManager.getFontByName(tt.f);if(!this.globalData.fontManager.chars)if(et.fontSize=tt.finalSize+"px",et.lineHeight=tt.finalSize+"px",st.fClass)this.innerElem.className=st.fClass;else{et.fontFamily=st.fFamily;var at=tt.fWeight,ot=tt.fStyle;et.fontStyle=ot,et.fontWeight=at}var lt,ct,ht,dt=tt.l;nt=dt.length;var ut,gt=this.mHelper,mt="",ft=0;for(rt=0;rt<nt;rt+=1){if(this.globalData.fontManager.chars?(this.textPaths[ft]?lt=this.textPaths[ft]:((lt=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),lt.setAttribute("stroke-linejoin",lineJoinEnum[2]),lt.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[ft]?ht=(ct=this.textSpans[ft]).children[0]:((ct=createTag("div")).style.lineHeight=0,(ht=createNS("svg")).appendChild(lt),styleDiv(ct)))):this.isMasked?lt=this.textPaths[ft]?this.textPaths[ft]:createNS("text"):this.textSpans[ft]?(ct=this.textSpans[ft],lt=this.textPaths[ft]):(styleDiv(ct=createTag("span")),styleDiv(lt=createTag("span")),ct.appendChild(lt)),this.globalData.fontManager.chars){var pt,yt=this.globalData.fontManager.getCharData(tt.finalText[rt],st.fStyle,this.globalData.fontManager.getFontByName(tt.f).fFamily);if(pt=yt?yt.data:null,gt.reset(),pt&&pt.shapes&&pt.shapes.length&&(ut=pt.shapes[0].it,gt.scale(tt.finalSize/100,tt.finalSize/100),mt=this.createPathShape(gt,ut),lt.setAttribute("d",mt)),this.isMasked)this.innerElem.appendChild(lt);else{if(this.innerElem.appendChild(ct),pt&&pt.shapes){document.body.appendChild(ht);var vt=ht.getBBox();ht.setAttribute("width",vt.width+2),ht.setAttribute("height",vt.height+2),ht.setAttribute("viewBox",vt.x-1+" "+(vt.y-1)+" "+(vt.width+2)+" "+(vt.height+2));var _t=ht.style,bt="translate("+(vt.x-1)+"px,"+(vt.y-1)+"px)";_t.transform=bt,_t.webkitTransform=bt,dt[rt].yOffset=vt.y-1}else ht.setAttribute("width",1),ht.setAttribute("height",1);ct.appendChild(ht)}}else if(lt.textContent=dt[rt].val,lt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(lt);else{this.innerElem.appendChild(ct);var St=lt.style,wt="translate3d(0,"+-tt.finalSize/1.2+"px,0)";St.transform=wt,St.webkitTransform=wt}this.isMasked?this.textSpans[ft]=lt:this.textSpans[ft]=ct,this.textSpans[ft].style.display="block",this.textPaths[ft]=lt,ft+=1}for(;ft<this.textSpans.length;)this.textSpans[ft].style.display="none",ft+=1},HTextElement.prototype.renderInnerContent=function(){var tt;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),tt=this.svgElement.style;var et="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";tt.transform=et,tt.webkitTransform=et}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var it,rt,nt,st,at,ot=0,lt=this.textAnimator.renderedLetters,ct=this.textProperty.currentData.l;for(rt=ct.length,it=0;
vendor: 22,313 bytes, line 28
28it<rt;it+=1)ct[it].n?ot+=1:(st=this.textSpans[it],at=this.textPaths[it],nt=lt[ot],ot+=1,nt._mdf.m&&(this.isMasked?st.setAttribute("transform",nt.m):(st.style.webkitTransform=nt.m,st.style.transform=nt.m)),st.style.opacity=nt.o,nt.sw&&nt._mdf.sw&&at.setAttribute("stroke-width",nt.sw),nt.sc&&nt._mdf.sc&&at.setAttribute("stroke",nt.sc),nt.fc&&nt._mdf.fc&&(at.setAttribute("fill",nt.fc),at.style.color=nt.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var ht=this.innerElem.getBBox();if(this.currentBBox.w!==ht.width&&(this.currentBBox.w=ht.width,this.svgElement.setAttribute("width",ht.width)),this.currentBBox.h!==ht.height&&(this.currentBBox.h=ht.height,this.svgElement.setAttribute("height",ht.height)),this.currentBBox.w!==ht.width+2||this.currentBBox.h!==ht.height+2||this.currentBBox.x!==ht.x-1||this.currentBBox.y!==ht.y-1){this.currentBBox.w=ht.width+2,this.currentBBox.h=ht.height+2,this.currentBBox.x=ht.x-1,this.currentBBox.y=ht.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),tt=this.svgElement.style;var dt="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";tt.transform=dt,tt.webkitTransform=dt}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var tt,et,it,rt,nt=this.comp.threeDElements.length;for(tt=0;tt<nt;tt+=1)if((et=this.comp.threeDElements[tt]).type==="3d"){it=et.perspectiveElem.style,rt=et.container.style;var st=this.pe.v+"px",at="0px 0px 0px",ot="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";it.perspective=st,it.webkitPerspective=st,rt.transformOrigin=at,rt.mozTransformOrigin=at,rt.webkitTransformOrigin=at,it.transform=ot,it.webkitTransform=ot}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var tt,et,it=this._isFirstFrame;if(this.hierarchy)for(et=this.hierarchy.length,tt=0;tt<et;tt+=1)it=this.hierarchy[tt].finalTransform.mProp._mdf||it;if(it||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(tt=et=this.hierarchy.length-1;tt>=0;tt-=1){var rt=this.hierarchy[tt].finalTransform.mProp;this.mat.translate(-rt.p.v[0],-rt.p.v[1],rt.p.v[2]),this.mat.rotateX(-rt.or.v[0]).rotateY(-rt.or.v[1]).rotateZ(rt.or.v[2]),this.mat.rotateX(-rt.rx.v).rotateY(-rt.ry.v).rotateZ(rt.rz.v),this.mat.scale(1/rt.s.v[0],1/rt.s.v[1],1/rt.s.v[2]),this.mat.translate(rt.a.v[0],rt.a.v[1],rt.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 nt;nt=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 st=Math.sqrt(Math.pow(nt[0],2)+Math.pow(nt[1],2)+Math.pow(nt[2],2)),at=[nt[0]/st,nt[1]/st,nt[2]/st],ot=Math.sqrt(at[2]*at[2]+at[0]*at[0]),lt=Math.atan2(at[1],ot),ct=Math.atan2(at[0],-at[2]);this.mat.rotateY(ct).rotateX(-lt)}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 ht=!this._prevMat.equals(this.mat);if((ht||this.pe._mdf)&&this.comp.threeDElements){var dt,ut,gt;for(et=this.comp.threeDElements.length,tt=0;tt<et;tt+=1)if((dt=this.comp.threeDElements[tt]).type==="3d"){if(ht){var mt=this.mat.toCSS();(gt=dt.container.style).transform=mt,gt.webkitTransform=mt}this.pe._mdf&&((ut=dt.perspectiveElem.style).perspective=this.pe.v+"px",ut.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(tt){this.prepareProperties(tt,!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 tt=this.globalData.getAssetsPath(this.assetData),et=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",tt),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(et),et.crossOrigin="anonymous",et.src=tt,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(tt,et){var it=tt.getBaseElement();if(it){var rt=this.layers[et];if(rt.ddd&&this.supports3d)this.addTo3dContainer(it,et);else if(this.threeDElements)this.addTo3dContainer(it,et);else{for(var nt,st,at=0;at<et;)this.elements[at]&&this.elements[at]!==!0&&this.elements[at].getBaseElement&&(st=this.elements[at],nt=(this.layers[at].ddd?this.getThreeDContainerByPos(at):st.getBaseElement())||nt),at+=1;nt?rt.ddd&&this.supports3d||this.layerElement.insertBefore(it,nt):rt.ddd&&this.supports3d||this.layerElement.appendChild(it)}}},HybridRendererBase.prototype.createShape=function(tt){return this.supports3d?new HShapeElement(tt,this.globalData,this):new SVGShapeElement(tt,this.globalData,this)},HybridRendererBase.prototype.createText=function(tt){return this.supports3d?new HTextElement(tt,this.globalData,this):new SVGTextLottieElement(tt,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(tt){return this.camera=new HCameraElement(tt,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(tt){return this.supports3d?new HImageElement(tt,this.globalData,this):new IImageElement(tt,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(tt){return this.supports3d?new HSolidElement(tt,this.globalData,this):new ISolidElement(tt,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(tt){for(var et=0,it=this.threeDElements.length;et<it;){if(this.threeDElements[et].startPos<=tt&&this.threeDElements[et].endPos>=tt)return this.threeDElements[et].perspectiveElem;et+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(tt,et){var it,rt,nt=createTag("div");styleDiv(nt);var st=createTag("div");if(styleDiv(st),et==="3d"){(it=nt.style).width=this.globalData.compSize.w+"px",it.height=this.globalData.compSize.h+"px";var at="50% 50%";it.webkitTransformOrigin=at,it.mozTransformOrigin=at,it.transformOrigin=at;var ot="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(rt=st.style).transform=ot,rt.webkitTransform=ot}nt.appendChild(st);var lt={container:st,perspectiveElem:nt,startPos:tt,endPos:tt,type:et};return this.threeDElements.push(lt),lt},HybridRendererBase.prototype.build3dContainers=function(){var tt,et,it=this.layers.length,rt="";for(tt=0;tt<it;tt+=1)this.layers[tt].ddd&&this.layers[tt].ty!==3?(rt!=="3d"&&(rt="3d",et=this.createThreeDContainer(tt,"3d")),et.endPos=Math.max(et.endPos,tt)):(rt!=="2d"&&(rt="2d",et=this.createThreeDContainer(tt,"2d")),et.endPos=Math.max(et.endPos,tt));for(tt=(it=this.threeDElements.length)-1;tt>=0;tt-=1)this.resizerElem.appendChild(this.threeDElements[tt].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(tt,et){for(var it=0,rt=this.threeDElements.length;it<rt;){if(et<=this.threeDElements[it].endPos){for(var nt,st=this.threeDElements[it].startPos;st<et;)this.elements[st]&&this.elements[st].getBaseElement&&(nt=this.elements[st].getBaseElement()),st+=1;nt?this.threeDElements[it].container.insertBefore(tt,nt):this.threeDElements[it].container.appendChild(tt);break}it+=1}},HybridRendererBase.prototype.configAnimation=function(tt){var et=createTag("div"),it=this.animationItem.wrapper,rt=et.style;rt.width=tt.w+"px",rt.height=tt.h+"px",this.resizerElem=et,styleDiv(et),rt.transformStyle="flat",rt.mozTransformStyle="flat",rt.webkitTransformStyle="flat",this.renderConfig.className&&et.setAttribute("class",this.renderConfig.className),it.appendChild(et),rt.overflow="hidden";var nt=createNS("svg");nt.setAttribute("width","1"),nt.setAttribute("height","1"),styleDiv(nt),this.resizerElem.appendChild(nt);var st=createNS("defs");nt.appendChild(st),this.data=tt,this.setupGlobalData(tt,nt),this.globalData.defs=st,this.layers=tt.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var tt;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var et=this.layers?this.layers.length:0;for(tt=0;tt<et;tt+=1)this.elements[tt]&&this.elements[tt].destroy&&this.elements[tt].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var tt,et,it,rt,nt=this.animationItem.wrapper.offsetWidth,st=this.animationItem.wrapper.offsetHeight,at=nt/st;this.globalData.compSize.w/this.globalData.compSize.h>at?(tt=nt/this.globalData.compSize.w,et=nt/this.globalData.compSize.w,it=0,rt=(st-this.globalData.compSize.h*(nt/this.globalData.compSize.w))/2):(tt=st/this.globalData.compSize.h,et=st/this.globalData.compSize.h,it=(nt-this.globalData.compSize.w*(st/this.globalData.compSize.h))/2,rt=0);var ot=this.resizerElem.style;ot.webkitTransform="matrix3d("+tt+",0,0,0,0,"+et+",0,0,0,0,1,0,"+it+","+rt+",0,1)",ot.transform=ot.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 tt,et=this.globalData.compSize.w,it=this.globalData.compSize.h,rt=this.threeDElements.length;for(tt=0;tt<rt;tt+=1){var nt=this.threeDElements[tt].perspectiveElem.style;nt.webkitPerspective=Math.sqrt(Math.pow(et,2)+Math.pow(it,2))+"px",nt.perspective=nt.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(tt){var et,it=tt.length,rt=createTag("div");for(et=0;et<it;et+=1)if(tt[et].xt){var nt=this.createComp(tt[et],rt,this.globalData.comp,null);nt.initExpressions(),this.globalData.projectInterface.registerComposition(nt)}},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(tt,et){for(var it,rt=0;rt<et;)this.elements[rt]&&this.elements[rt].getBaseElement&&(it=this.elements[rt].getBaseElement()),rt+=1;it?this.layerElement.insertBefore(tt,it):this.layerElement.appendChild(tt)},HCompElement.prototype.createComp=function(tt){return this.supports3d?new HCompElement(tt,this.globalData,this):new SVGCompElement(tt,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(tt){return this.supports3d?new HCompElement(tt,this.globalData,this):new SVGCompElement(tt,this.globalData,this)};var CompExpressionInterface=function(tt){function et(it){for(var rt=0,nt=tt.layers.length;rt<nt;){if(tt.layers[rt].nm===it||tt.layers[rt].ind===it)return tt.elements[rt].layerInterface;rt+=1}return null}return Object.defineProperty(et,"_name",{value:tt.data.nm}),et.layer=et,et.pixelAspect=1,et.height=tt.data.h||tt.globalData.compSize.h,et.width=tt.data.w||tt.globalData.compSize.w,et.pixelAspect=1,et.frameDuration=1/tt.globalData.frameRate,et.displayStartTime=0,et.numLayers=tt.layers.length,et};function _typeof$2(tt){return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$2(tt)}function seedRandom(tt,et){var it=this,rt=256,nt=et.pow(rt,6),st=et.pow(2,52),at=2*st,ot=255;function lt(gt){var mt,ft=gt.length,pt=this,yt=0,vt=pt.i=pt.j=0,_t=pt.S=[];for(ft||(gt=[ft++]);yt<rt;)_t[yt]=yt++;for(yt=0;yt<rt;yt++)_t[yt]=_t[vt=ot&vt+gt[yt%ft]+(mt=_t[yt])],_t[vt]=mt;pt.g=function(bt){for(var St,wt=0,xt=pt.i,Pt=pt.j,kt=pt.S;bt--;)St=kt[xt=ot&xt+1],wt=wt*rt+kt[ot&(kt[xt]=kt[Pt=ot&Pt+St])+(kt[Pt]=St)];return pt.i=xt,pt.j=Pt,wt}}function ct(gt,mt){return mt.i=gt.i,mt.j=gt.j,mt.S=gt.S.slice(),mt}function ht(gt,mt){var ft,pt=[],yt=_typeof$2(gt);if(mt&&yt=="object")for(ft in gt)try{pt.push(ht(gt[ft],mt-1))}catch{}return pt.length?pt:yt=="string"?gt:gt+"\0"}function dt(gt,mt){for(var ft,pt=gt+"",yt=0;yt<pt.length;)mt[ot&yt]=ot&(ft^=19*mt[ot&yt])+pt.charCodeAt(yt++);return ut(mt)}function ut(gt){return String.fromCharCode.apply(0,gt)}et.seedrandom=function(gt,mt,ft){var pt=[],yt=dt(ht((mt=mt===!0?{entropy:!0}:mt||{}).entropy?[gt,ut(tt)]:gt===null?function(){try{var bt=new Uint8Array(rt);return(it.crypto||it.msCrypto).getRandomValues(bt),ut(bt)}catch{var St=it.navigator,wt=St&&St.plugins;return[+new Date,it,wt,it.screen,ut(tt)]}}():gt,3),pt),vt=new lt(pt),_t=function(){for(var bt=vt.g(6),St=nt,wt=0;bt<st;)bt=(bt+wt)*rt,St*=rt,wt=vt.g(1);for(;bt>=at;)bt/=2,St/=2,wt>>>=1;return(bt+wt)/St};return _t.int32=function(){return 0|vt.g(4)},_t.quick=function(){return vt.g(4)/4294967296},_t.double=_t,dt(ut(vt.S),tt),(mt.pass||ft||function(bt,St,wt,xt){return xt&&(xt.S&&ct(xt,vt),bt.state=function(){return ct(vt,{})}),wt?(et.random=bt,St):bt})(_t,yt,"global"in mt?mt.global:this==et,mt.state)},dt(et.random(),tt)}function initialize$2(tt){seedRandom([],tt)}var propTypes={SHAPE:"shape"};function _typeof$1(tt){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$1(tt)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(tt){return tt.constructor===Array||tt.constructor===Float32Array}function isNumerable(tt,et){return tt==="number"||et instanceof Number||tt==="boolean"||tt==="string"}function $bm_neg(tt){var et=_typeof$1(tt);if(et==="number"||tt instanceof Number||et==="boolean")return-tt;if($bm_isInstanceOfArray(tt)){var it,rt=tt.length,nt=[];for(it=0;it<rt;it+=1)nt[it]=-tt[it];return nt}return tt.propType?tt.v:-tt}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(tt,et){var it=_typeof$1(tt),rt=_typeof$1(et);if(isNumerable(it,tt)&&isNumerable(rt,et)||it==="string"||rt==="string")return tt+et;if($bm_isInstanceOfArray(tt)&&isNumerable(rt,et))return(tt=tt.slice(0))[0]+=et,tt;if(isNumerable(it,tt)&&$bm_isInstanceOfArray(et))return(et=et.slice(0))[0]=tt+et[0],et;if($bm_isInstanceOfArray(tt)&&$bm_isInstanceOfArray(et)){for(var nt=0,st=tt.length,at=et.length,ot=[];nt<st||nt<at;)(typeof tt[nt]=="number"||tt[nt]instanceof Number)&&(typeof et[nt]=="number"||et[nt]instanceof Number)?ot[nt]=tt[nt]+et[nt]:ot[nt]=et[nt]===void 0?tt[nt]:tt[nt]||et[nt],nt+=1;return ot}return 0}var add=sum;function sub(tt,et){var it=_typeof$1(tt),rt=_typeof$1(et);if(isNumerable(it,tt)&&isNumerable(rt,et))return it==="string"&&(tt=parseInt(tt,10)),rt==="string"&&(et=parseInt(et,10)),tt-et;if($bm_isInstanceOfArray(tt)&&isNumerable(rt,et))return(tt=tt.slice(0))[0]-=et,tt;if(isNumerable(it,tt)&&$bm_isInstanceOfArray(et))return(et=et.slice(0))[0]=tt-et[0],et;if($bm_isInstanceOfArray(tt)&&$bm_isInstanceOfArray(et)){for(var nt=0,st=tt.length,at=et.length,ot=[];nt<st||nt<at;)(typeof tt[nt]=="number"||tt[nt]instanceof Number)&&(typeof et[nt]=="number"||et[nt]instanceof Number)?ot[nt]=tt[nt]-et[nt]:ot[nt]=et[nt]===void 0?tt[nt]:tt[nt]||et[nt],nt+=1;return ot}return 0}function mul(tt,et){var it,rt,nt,st=_typeof$1(tt),at=_typeof$1(et);if(isNumerable(st,tt)&&isNumerable(at,et))return tt*et;if($bm_isInstanceOfArray(tt)&&isNumerable(at,et)){for(nt=tt.length,it=createTypedArray("float32",nt),rt=0;rt<nt;rt+=1)it[rt]=tt[rt]*et;return it}if(isNumerable(st,tt)&&$bm_isInstanceOfArray(et)){for(nt=et.length,it=createTypedArray("float32",nt),rt=0;rt<nt;rt+=1)it[rt]=tt*et[rt];return it}return 0}function div(tt,et){var it,rt,nt,st=_typeof$1(tt),at=_typeof$1(et);if(isNumerable(st,tt)&&isNumerable(at,et))return tt/et;if($bm_isInstanceOfArray(tt)&&isNumerable(at,et)){for(nt=tt.length,it=createTypedArray("float32",nt),rt=0;rt<nt;rt+=1)it[rt]=tt[rt]/et;return it}if(isNumerable(st,tt)&&$bm_isInstanceOfArray(et)){for(nt=et.length,it=createTypedArray("float32",nt),rt=0;rt<nt;rt+=1)it[rt]=tt/et[rt];return it}return 0}function mod(tt,et){return typeof tt=="string"&&(tt=parseInt(tt,10)),typeof et=="string"&&(et=parseInt(et,10)),tt%et}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(tt,et,it){if(et>it){var rt=it;it=et,et=rt}return Math.min(Math.max(tt,et),it)}function radiansToDegrees(tt){return tt/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(tt){return tt*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(tt,et){if(typeof tt=="number"||tt instanceof Number)return et=et||0,Math.abs(tt-et);var it;et||(et=helperLengthArray);var rt=Math.min(tt.length,et.length),nt=0;for(it=0;it<rt;it+=1)nt+=Math.pow(et[it]-tt[it],2);return Math.sqrt(nt)}function normalize(tt){return div(tt,length(tt))}function rgbToHsl(tt){var et,it,rt=tt[0],nt=tt[1],st=tt[2],at=Math.max(rt,nt,st),ot=Math.min(rt,nt,st),lt=(at+ot)/2;if(at===ot)et=0,it=0;else{var ct=at-ot;switch(it=lt>.5?ct/(2-at-ot):ct/(at+ot),at){case rt:et=(nt-st)/ct+(nt<st?6:0);break;case nt:et=(st-rt)/ct+2;break;case st:et=(rt-nt)/ct+4}et/=6}return[et,it,lt,tt[3]]}function hue2rgb(tt,et,it){return it<0&&(it+=1),it>1&&(it-=1),it<1/6?tt+6*(et-tt)*it:it<.5?et:it<2/3?tt+(et-tt)*(2/3-it)*6:tt}function hslToRgb(tt){var et,it,rt,nt=tt[0],st=tt[1],at=tt[2];if(st===0)et=at,rt=at,it=at;else{var ot=at<.5?at*(1+st):at+st-at*st,lt=2*at-ot;et=hue2rgb(lt,ot,nt+1/3),it=hue2rgb(lt,ot,nt),rt=hue2rgb(lt,ot,nt-1/3)}return[et,it,rt,tt[3]]}function linear(tt,et,it,rt,nt){if(rt!==void 0&&nt!==void 0||(rt=et,nt=it,et=0,it=1),it<et){var st=it;it=et,et=st}if(tt<=et)return rt;if(tt>=it)return nt;var at,ot=it===et?0:(tt-et)/(it-et);if(!rt.length)return rt+(nt-rt)*ot;var lt=rt.length,ct=createTypedArray("float32",lt);for(at=0;at<lt;at+=1)ct[at]=rt[at]+(nt[at]-rt[at])*ot;return ct}function random(tt,et){if(et===void 0&&(tt===void 0?(tt=0,et=1):(et=tt,tt=void 0)),et.length){var it,rt=et.length;tt||(tt=createTypedArray("float32",rt));var nt=createTypedArray("float32",rt),st=BMMath.random();for(it=0;it<rt;it+=1)nt[it]=tt[it]+st*(et[it]-tt[it]);return nt}return tt===void 0&&(tt=0),tt+BMMath.random()*(et-tt)}function createPath(tt,et,it,rt){var nt,st=tt.length,at=shapePool.newElement();at.setPathData(!!rt,st);var ot,lt,ct=[0,0];for(nt=0;nt<st;nt+=1)ot=et&&et[nt]?et[nt]:ct,lt=it&&it[nt]?it[nt]:ct,at.setTripleAt(tt[nt][0],tt[nt][1],lt[0]+tt[nt][0],lt[1]+tt[nt][1],ot[0]+tt[nt][0],ot[1]+tt[nt][1],nt,!0);return at}function initiateExpression(elem,data,property){function noOp(tt){return tt}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function(tt,et){var it,rt,nt=this.pv.length?this.pv.length:1,st=createTypedArray("float32",nt),at=Math.floor(5*time);for(it=0,rt=0;it<at;){for(rt=0;rt<nt;rt+=1)st[rt]+=-et+2*et*BMMath.random();it+=1}var ot=5*time,lt=ot-Math.floor(ot),ct=createTypedArray("float32",nt);if(nt>1){for(rt=0;rt<nt;rt+=1)ct[rt]=this.pv[rt]+st[rt]+(-et+2*et*BMMath.random())*lt;return ct}return this.pv+st[0]+(-et+2*et*BMMath.random())*lt}).bind(this);function loopInDuration(tt,et){return loopIn(tt,et,!0)}function loopOutDuration(tt,et){return loopOut(tt,et,!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));
vendor: 5,462 bytes, line 28
28var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(tt,et){var it=[et[0]-tt[0],et[1]-tt[1],et[2]-tt[2]],rt=Math.atan2(it[0],Math.sqrt(it[1]*it[1]+it[2]*it[2]))/degToRads;return[-Math.atan2(it[1],it[2])/degToRads,rt,0]}function easeOut(tt,et,it,rt,nt){return applyEase(easeOutBez,tt,et,it,rt,nt)}function easeIn(tt,et,it,rt,nt){return applyEase(easeInBez,tt,et,it,rt,nt)}function ease(tt,et,it,rt,nt){return applyEase(easeInOutBez,tt,et,it,rt,nt)}function applyEase(tt,et,it,rt,nt,st){nt===void 0?(nt=it,st=rt):et=(et-it)/(rt-it),et>1?et=1:et<0&&(et=0);var at=tt(et);if($bm_isInstanceOfArray(nt)){var ot,lt=nt.length,ct=createTypedArray("float32",lt);for(ot=0;ot<lt;ot+=1)ct[ot]=(st[ot]-nt[ot])*at+nt[ot];return ct}return(st-nt)*at+nt}function nearestKey(tt){var et,it,rt,nt=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(it=-1,(tt*=elem.comp.globalData.frameRate)<data.k[0].t)it=1,rt=data.k[0].t;else{for(et=0;et<nt-1;et+=1){if(tt===data.k[et].t){it=et+1,rt=data.k[et].t;break}if(tt>data.k[et].t&&tt<data.k[et+1].t){tt-data.k[et].t>data.k[et+1].t-tt?(it=et+2,rt=data.k[et+1].t):(it=et+1,rt=data.k[et].t);break}}it===-1&&(it=et+1,rt=data.k[et].t)}else it=0,rt=0;var st={};return st.index=it,st.time=rt/elem.comp.globalData.frameRate,st}function key(tt){var et,it,rt;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+tt);tt-=1,et={time:data.k[tt].t/elem.comp.globalData.frameRate,value:[]};var nt=Object.prototype.hasOwnProperty.call(data.k[tt],"s")?data.k[tt].s:data.k[tt-1].e;for(rt=nt.length,it=0;it<rt;it+=1)et[it]=nt[it],et.value[it]=nt[it];return et}function framesToTime(tt,et){return et||(et=elem.comp.globalData.frameRate),tt/et}function timeToFrames(tt,et){return tt||tt===0||(tt=time),et||(et=elem.comp.globalData.frameRate),tt*et}function seedRandom(tt){BMMath.seedrandom(randSeed+tt)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(tt,et){return typeof value=="string"?et===void 0?value.substring(tt):value.substring(tt,et):""}function substr(tt,et){return typeof value=="string"?et===void 0?value.substr(tt):value.substr(tt,et):""}function posterizeTime(tt){time=tt===0?0:Math.floor(time*tt)/tt,value=valueAtTime(time)}var index=elem.data.ind;!elem.hierarchy||elem.hierarchy.length;var parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(tt){return value=tt,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType!==4||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),!(!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 tt={initExpressions:function(et){var it=0,rt=[];et.renderer.compInterface=CompExpressionInterface(et.renderer),et.renderer.globalData.projectInterface.registerComposition(et.renderer),et.renderer.globalData.pushExpression=function(){it+=1},et.renderer.globalData.popExpression=function(){(it-=1)==0&&function(){var nt,st=rt.length;for(nt=0;nt<st;nt+=1)rt[nt].release();rt.length=0}()},et.renderer.globalData.registerExpressionProperty=function(nt){rt.indexOf(nt)===-1&&rt.push(nt)}}};return tt.resetFrame=ExpressionManager.resetFrame,tt}(),MaskManagerInterface=function(){function tt(et,it){this._mask=et,this._data=it}return Object.defineProperty(tt.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(tt.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}
vendor: 5,703 bytes, line 28
28),function(et){var it,rt=createSizedArray(et.viewData.length),nt=et.viewData.length;for(it=0;it<nt;it+=1)rt[it]=new tt(et.viewData[it],et.masksProperties[it]);return function(st){for(it=0;it<nt;){if(et.masksProperties[it].nm===st)return rt[it];it+=1}return null}}}(),ExpressionPropertyInterface=function(){var tt={pv:0,v:0,mult:1},et={pv:[0,0,0],v:[0,0,0],mult:1};function it(nt,st,at){Object.defineProperty(nt,"velocity",{get:function(){return st.getVelocityAtTime(st.comp.currentFrame)}}),nt.numKeys=st.keyframes?st.keyframes.length:0,nt.key=function(ot){if(!nt.numKeys)return 0;var lt="";lt="s"in st.keyframes[ot-1]?st.keyframes[ot-1].s:"e"in st.keyframes[ot-2]?st.keyframes[ot-2].e:st.keyframes[ot-2].s;var ct=at==="unidimensional"?new Number(lt):Object.assign({},lt);return ct.time=st.keyframes[ot-1].t/st.elem.comp.globalData.frameRate,ct.value=at==="unidimensional"?lt[0]:lt,ct},nt.valueAtTime=st.getValueAtTime,nt.speedAtTime=st.getSpeedAtTime,nt.velocityAtTime=st.getVelocityAtTime,nt.propertyGroup=st.propertyGroup}function rt(){return tt}return function(nt){return nt?nt.propType==="unidimensional"?function(st){st&&"pv"in st||(st=tt);var at=1/st.mult,ot=st.pv*at,lt=new Number(ot);return lt.value=ot,it(lt,st,"unidimensional"),function(){return st.k&&st.getValue(),ot=st.v*at,lt.value!==ot&&((lt=new Number(ot)).value=ot,it(lt,st,"unidimensional")),lt}}(nt):function(st){st&&"pv"in st||(st=et);var at=1/st.mult,ot=st.data&&st.data.l||st.pv.length,lt=createTypedArray("float32",ot),ct=createTypedArray("float32",ot);return lt.value=ct,it(lt,st,"multidimensional"),function(){st.k&&st.getValue();for(var ht=0;ht<ot;ht+=1)ct[ht]=st.v[ht]*at,lt[ht]=ct[ht];return lt}}(nt):rt}}(),TransformExpressionInterface=function(tt){function et(at){switch(at){case"scale":case"Scale":case"ADBE Scale":case 6:return et.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return et.rotation;case"ADBE Rotate X":return et.xRotation;case"ADBE Rotate Y":return et.yRotation;case"position":case"Position":case"ADBE Position":case 2:return et.position;case"ADBE Position_0":return et.xPosition;case"ADBE Position_1":return et.yPosition;case"ADBE Position_2":return et.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return et.anchorPoint;case"opacity":case"Opacity":case 11:return et.opacity;default:return null}}var it,rt,nt,st;return Object.defineProperty(et,"rotation",{get:ExpressionPropertyInterface(tt.r||tt.rz)}),Object.defineProperty(et,"zRotation",{get:ExpressionPropertyInterface(tt.rz||tt.r)}),Object.defineProperty(et,"xRotation",{get:ExpressionPropertyInterface(tt.rx)}),Object.defineProperty(et,"yRotation",{get:ExpressionPropertyInterface(tt.ry)}),Object.defineProperty(et,"scale",{get:ExpressionPropertyInterface(tt.s)}),tt.p?st=ExpressionPropertyInterface(tt.p):(it=ExpressionPropertyInterface(tt.px),rt=ExpressionPropertyInterface(tt.py),tt.pz&&(nt=ExpressionPropertyInterface(tt.pz))),Object.defineProperty(et,"position",{get:function(){return tt.p?st():[it(),rt(),nt?nt():0]}}),Object.defineProperty(et,"xPosition",{get:ExpressionPropertyInterface(tt.px)}),Object.defineProperty(et,"yPosition",{get:ExpressionPropertyInterface(tt.py)}),Object.defineProperty(et,"zPosition",{get:ExpressionPropertyInterface(tt.pz)}),Object.defineProperty(et,"anchorPoint",{get:ExpressionPropertyInterface(tt.a)}),Object.defineProperty(et,"opacity",{get:ExpressionPropertyInterface(tt.o)}),Object.defineProperty(et,"skew",{get:ExpressionPropertyInterface(tt.sk)}),Object.defineProperty(et,"skewAxis",{get:ExpressionPropertyInterface(tt.sa)}),Object.defineProperty(et,"orientation",{get:ExpressionPropertyInterface(tt.or)}),et},LayerExpressionInterface=function(){function tt(ct){var ht=new Matrix;return ct!==void 0?this._elem.finalTransform.mProp.getValueAtTime(ct).clone(ht):this._elem.finalTransform.mProp.applyToMatrix(ht),ht}function et(ct,ht){var dt=this.getMatrix(ht);return dt.props[12]=0,dt.props[13]=0,dt.props[14]=0,this.applyPoint(dt,ct)}function it(ct,ht){var dt=this.getMatrix(ht);return this.applyPoint(dt,ct)}function rt(ct,ht){var dt=this.getMatrix(ht);return dt.props[12]=0,dt.props[13]=0,dt.props[14]=0,this.invertPoint(dt,ct)}function nt(ct,ht){var dt=this.getMatrix(ht);return this.invertPoint(dt,ct)}function st(ct,ht){if(this._elem.hierarchy&&this._elem.hierarchy.length){var dt,ut=this._elem.hierarchy.length;for(dt=0;dt<ut;dt+=1)this._elem.hierarchy[dt].finalTransform.mProp.applyToMatrix(ct)}return ct.applyToPointArray(ht[0],ht[1],ht[2]||0)}function at(ct,ht){if(this._elem.hierarchy&&this._elem.hierarchy.length){var dt,ut=this._elem.hierarchy.length;for(dt=0;dt<ut;dt+=1)this._elem.hierarchy[dt].finalTransform.mProp.applyToMatrix(ct)}return ct.inversePoint(ht)}function ot(ct){var ht=new Matrix;if(ht.reset(),this._elem.finalTransform.mProp.applyToMatrix(ht),this._elem.hierarchy&&this._elem.hierarchy.length){var dt,ut=this._elem.hierarchy.length;for(dt=0;dt<ut;dt+=1)this._elem.hierarchy[dt].finalTransform.mProp.applyToMatrix(ht);return ht.inversePoint(ct)}return ht.inversePoint(ct)}function lt(){return[1,1,1,1]}return function(ct){var ht;function dt(gt){switch(gt){case"ADBE Root Vectors Group":case"Contents":case 2:return dt.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return ht;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return dt.effect;case"ADBE Text Properties":return dt.textInterface;default:return null}}dt.getMatrix=tt,dt.invertPoint=at,dt.applyPoint=st,dt.toWorld=it,dt.toWorldVec=et,dt.fromWorld=nt,dt.fromWorldVec=rt,dt.toComp=it,dt.fromComp=ot,dt.sampleImage=lt,dt.sourceRectAtTime=ct.sourceRectAtTime.bind(ct),dt._elem=ct;
28var ut=getDescriptor(ht=TransformExpressionInterface(ct.finalTransform.mProp),"anchorPoint");return Object.defineProperties(dt,{hasParent:{get:function(){return ct.hierarchy.length}},parent:{get:function(){return ct.hierarchy[0].layerInterface}},rotation:getDescriptor(ht,"rotation"),scale:getDescriptor(ht,"scale"),position:getDescriptor(ht,"position"),opacity:getDescriptor(ht,"opacity"),anchorPoint:ut,anchor_point:ut,transform:{get:function(){return ht}},active:{get:function(){return ct.isInRange}}}),dt.startTime=ct.data.st,dt.index=ct.data.ind,dt.source=ct.data.refId,dt.height=ct.data.ty===0?ct.data.h:100,dt.width=ct.data.ty===0?ct.data.w:100,dt.inPoint=ct.data.ip/ct.comp.globalData.frameRate,dt.outPoint=ct.data.op/ct.comp.globalData.frameRate,dt._name=ct.data.nm,dt.registerMaskInterface=function(gt){dt.mask=new MaskManagerInterface(gt,ct)},dt.registerEffectsInterface=function(gt){dt.effect=gt},dt}}(),propertyGroupFactory=function(tt,et){return function(it){return(it=it===void 0?1:it)<=0?tt:et(it-1)}},PropertyInterface=function(tt,et){var it={_name:tt};return function(rt){return(rt=rt===void 0?1:rt)<=0?it:et(rt-1)}},EffectsExpressionInterface=function(){var tt={createEffectsInterface:function(rt,nt){if(rt.effectsManager){var st,at=[],ot=rt.data.ef,lt=rt.effectsManager.effectElements.length;for(st=0;st<lt;st+=1)at.push(et(ot[st],rt.effectsManager.effectElements[st],nt,rt));var ct=rt.data.ef||[],ht=function(dt){for(st=0,lt=ct.length;st<lt;){if(dt===ct[st].nm||dt===ct[st].mn||dt===ct[st].ix)return at[st];st+=1}return null};return Object.defineProperty(ht,"numProperties",{get:function(){return ct.length}}),ht}return null}};function et(rt,nt,st,at){function ot(ut){for(var gt=rt.ef,mt=0,ft=gt.length;mt<ft;){if(ut===gt[mt].nm||ut===gt[mt].mn||ut===gt[mt].ix)return gt[mt].ty===5?ht[mt]:ht[mt]();mt+=1}throw new Error}var lt,ct=propertyGroupFactory(ot,st),ht=[],dt=rt.ef.length;for(lt=0;lt<dt;lt+=1)rt.ef[lt].ty===5?ht.push(et(rt.ef[lt],nt.effectElements[lt],nt.effectElements[lt].propertyGroup,at)):ht.push(it(nt.effectElements[lt],rt.ef[lt].ty,at,ct));return rt.mn==="ADBE Color Control"&&Object.defineProperty(ot,"color",{get:function(){return ht[0]()}}),Object.defineProperties(ot,{numProperties:{get:function(){return rt.np}},_name:{value:rt.nm},propertyGroup:{value:ct}}),ot.enabled=rt.en!==0,ot.active=ot.enabled,ot}function it(rt,nt,st,at){var ot=ExpressionPropertyInterface(rt.p);return rt.p.setGroupProperty&&rt.p.setGroupProperty(PropertyInterface("",at)),function(){return nt===10?st.comp.compInterface(rt.p.v):ot()}}return tt}(),ShapePathInterface=function(tt,et,it){var rt=et.sh;function nt(at){return at==="Shape"||at==="shape"||at==="Path"||at==="path"||at==="ADBE Vector Shape"||at===2?nt.path:null}var st=propertyGroupFactory(nt,it);return rt.setGroupProperty(PropertyInterface("Path",st)),Object.defineProperties(nt,{path:{get:function(){return rt.k&&rt.getValue(),rt}},shape:{get:function(){return rt.k&&rt.getValue(),rt}},_name:{value:tt.nm},ix:{value:tt.ix},propertyIndex:{value:tt.ix},mn:{value:tt.mn},propertyGroup:{value:it}}),nt},ShapeExpressionInterface=function(){function tt(ut,gt,mt){var ft,pt=[],yt=ut?ut.length:0;for(ft=0;ft<yt;ft+=1)ut[ft].ty==="gr"?pt.push(et(ut[ft],gt[ft],mt)):ut[ft].ty==="fl"?pt.push(it(ut[ft],gt[ft],mt)):ut[ft].ty==="st"?pt.push(nt(ut[ft],gt[ft],mt)):ut[ft].ty==="tm"?pt.push(st(ut[ft],gt[ft],mt)):ut[ft].ty==="tr"||(ut[ft].ty==="el"?pt.push(ot(ut[ft],gt[ft],mt)):ut[ft].ty==="sr"?pt.push(lt(ut[ft],gt[ft],mt)):ut[ft].ty==="sh"?pt.push(ShapePathInterface(ut[ft],gt[ft],mt)):ut[ft].ty==="rc"?pt.push(ct(ut[ft],gt[ft],mt)):ut[ft].ty==="rd"?pt.push(ht(ut[ft],gt[ft],mt)):ut[ft].ty==="rp"?pt.push(dt(ut[ft],gt[ft],mt)):ut[ft].ty==="gf"?pt.push(rt(ut[ft],gt[ft],mt)):pt.push((ut[ft],gt[ft],function(){return null})));return pt}function et(ut,gt,mt){var ft=function(vt){switch(vt){case"ADBE Vectors Group":case"Contents":case 2:return ft.content;default:return ft.transform}};ft.propertyGroup=propertyGroupFactory(ft,mt);var pt=function(vt,_t,bt){var St,wt=function(Pt){for(var kt=0,At=St.length;kt<At;){if(St[kt]._name===Pt||St[kt].mn===Pt||St[kt].propertyIndex===Pt||St[kt].ix===Pt||St[kt].ind===Pt)return St[kt];kt+=1}return typeof Pt=="number"?St[Pt-1]:null};wt.propertyGroup=propertyGroupFactory(wt,bt),St=tt(vt.it,_t.it,wt.propertyGroup),wt.
vendor: 9,080 bytes, line 28
28numProperties=St.length;var xt=at(vt.it[vt.it.length-1],_t.it[_t.it.length-1],wt.propertyGroup);return wt.transform=xt,wt.propertyIndex=vt.cix,wt._name=vt.nm,wt}(ut,gt,ft.propertyGroup),yt=at(ut.it[ut.it.length-1],gt.it[gt.it.length-1],ft.propertyGroup);return ft.content=pt,ft.transform=yt,Object.defineProperty(ft,"_name",{get:function(){return ut.nm}}),ft.numProperties=ut.np,ft.propertyIndex=ut.ix,ft.nm=ut.nm,ft.mn=ut.mn,ft}function it(ut,gt,mt){function ft(pt){return pt==="Color"||pt==="color"?ft.color:pt==="Opacity"||pt==="opacity"?ft.opacity:null}return Object.defineProperties(ft,{color:{get:ExpressionPropertyInterface(gt.c)},opacity:{get:ExpressionPropertyInterface(gt.o)},_name:{value:ut.nm},mn:{value:ut.mn}}),gt.c.setGroupProperty(PropertyInterface("Color",mt)),gt.o.setGroupProperty(PropertyInterface("Opacity",mt)),ft}function rt(ut,gt,mt){function ft(pt){return pt==="Start Point"||pt==="start point"?ft.startPoint:pt==="End Point"||pt==="end point"?ft.endPoint:pt==="Opacity"||pt==="opacity"?ft.opacity:null}return Object.defineProperties(ft,{startPoint:{get:ExpressionPropertyInterface(gt.s)},endPoint:{get:ExpressionPropertyInterface(gt.e)},opacity:{get:ExpressionPropertyInterface(gt.o)},type:{get:function(){return"a"}},_name:{value:ut.nm},mn:{value:ut.mn}}),gt.s.setGroupProperty(PropertyInterface("Start Point",mt)),gt.e.setGroupProperty(PropertyInterface("End Point",mt)),gt.o.setGroupProperty(PropertyInterface("Opacity",mt)),ft}function nt(ut,gt,mt){var ft,pt=propertyGroupFactory(St,mt),yt=propertyGroupFactory(bt,pt);function vt(wt){Object.defineProperty(bt,ut.d[wt].nm,{get:ExpressionPropertyInterface(gt.d.dataProps[wt].p)})}var _t=ut.d?ut.d.length:0,bt={};for(ft=0;ft<_t;ft+=1)vt(ft),gt.d.dataProps[ft].p.setGroupProperty(yt);function St(wt){return wt==="Color"||wt==="color"?St.color:wt==="Opacity"||wt==="opacity"?St.opacity:wt==="Stroke Width"||wt==="stroke width"?St.strokeWidth:null}return Object.defineProperties(St,{color:{get:ExpressionPropertyInterface(gt.c)},opacity:{get:ExpressionPropertyInterface(gt.o)},strokeWidth:{get:ExpressionPropertyInterface(gt.w)},dash:{get:function(){return bt}},_name:{value:ut.nm},mn:{value:ut.mn}}),gt.c.setGroupProperty(PropertyInterface("Color",pt)),gt.o.setGroupProperty(PropertyInterface("Opacity",pt)),gt.w.setGroupProperty(PropertyInterface("Stroke Width",pt)),St}function st(ut,gt,mt){function ft(yt){return yt===ut.e.ix||yt==="End"||yt==="end"?ft.end:yt===ut.s.ix?ft.start:yt===ut.o.ix?ft.offset:null}var pt=propertyGroupFactory(ft,mt);return ft.propertyIndex=ut.ix,gt.s.setGroupProperty(PropertyInterface("Start",pt)),gt.e.setGroupProperty(PropertyInterface("End",pt)),gt.o.setGroupProperty(PropertyInterface("Offset",pt)),ft.propertyIndex=ut.ix,ft.propertyGroup=mt,Object.defineProperties(ft,{start:{get:ExpressionPropertyInterface(gt.s)},end:{get:ExpressionPropertyInterface(gt.e)},offset:{get:ExpressionPropertyInterface(gt.o)},_name:{value:ut.nm}}),ft.mn=ut.mn,ft}function at(ut,gt,mt){function ft(yt){return ut.a.ix===yt||yt==="Anchor Point"?ft.anchorPoint:ut.o.ix===yt||yt==="Opacity"?ft.opacity:ut.p.ix===yt||yt==="Position"?ft.position:ut.r.ix===yt||yt==="Rotation"||yt==="ADBE Vector Rotation"?ft.rotation:ut.s.ix===yt||yt==="Scale"?ft.scale:ut.sk&&ut.sk.ix===yt||yt==="Skew"?ft.skew:ut.sa&&ut.sa.ix===yt||yt==="Skew Axis"?ft.skewAxis:null}var pt=propertyGroupFactory(ft,mt);return gt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",pt)),gt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",pt)),gt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",pt)),gt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",pt)),gt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",pt)),gt.transform.mProps.sk&&(gt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",pt)),gt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",pt))),gt.transform.op.setGroupProperty(PropertyInterface("Opacity",pt)),Object.defineProperties(ft,{opacity:{get:ExpressionPropertyInterface(gt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(gt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(gt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(gt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(gt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(gt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(gt.transform.mProps.sa)},_name:{value:ut.nm}}),ft.ty="tr",ft.mn=ut.mn,ft.propertyGroup=mt,ft}function ot(ut,gt,mt){function ft(vt){return ut.p.ix===vt?ft.position:ut.s.ix===vt?ft.size:null}var pt=propertyGroupFactory(ft,mt);ft.propertyIndex=ut.ix;var yt=gt.sh.ty==="tm"?gt.sh.prop:gt.sh;return yt.s.setGroupProperty(PropertyInterface("Size",pt)),yt.p.setGroupProperty(PropertyInterface("Position",pt)),Object.defineProperties(ft,{size:{get:ExpressionPropertyInterface(yt.s)},position:{get:ExpressionPropertyInterface(yt.p)},_name:{value:ut.nm}}),ft.mn=ut.mn,ft}function lt(ut,gt,mt){function ft(vt){return ut.p.ix===vt?ft.position:ut.r.ix===vt?ft.rotation:ut.pt.ix===vt?ft.points:ut.or.ix===vt||vt==="ADBE Vector Star Outer Radius"?ft.outerRadius:ut.os.ix===vt?ft.outerRoundness:!ut.ir||ut.ir.ix!==vt&&vt!=="ADBE Vector Star Inner Radius"?ut.is&&ut.is.ix===vt?ft.innerRoundness:null:ft.innerRadius}var pt=propertyGroupFactory(ft,mt),yt=gt.sh.ty==="tm"?gt.sh.prop:gt.sh;return ft.propertyIndex=ut.ix,yt.or.setGroupProperty(PropertyInterface("Outer Radius",pt)),yt.os.setGroupProperty(PropertyInterface("Outer Roundness",pt)),yt.pt.setGroupProperty(PropertyInterface("Points",pt)),yt.p.setGroupProperty(PropertyInterface("Position",pt)),yt.r.setGroupProperty(PropertyInterface("Rotation",pt)),ut.ir&&(yt.ir.setGroupProperty(PropertyInterface("Inner Radius",pt)),yt.is.setGroupProperty(PropertyInterface("Inner Roundness",pt))),Object.defineProperties(ft,{position:{get:ExpressionPropertyInterface(yt.p)},rotation:{get:ExpressionPropertyInterface(yt.r)},points:{get:ExpressionPropertyInterface(yt.pt)},outerRadius:{get:ExpressionPropertyInterface(yt.or)},outerRoundness:{get:ExpressionPropertyInterface(yt.os)},innerRadius:{get:ExpressionPropertyInterface(yt.ir)},innerRoundness:{get:ExpressionPropertyInterface(yt.is)},_name:{value:ut.nm}}),ft.mn=ut.mn,ft}function ct(ut,gt,mt){function ft(vt){return ut.p.ix===vt?ft.position:ut.r.ix===vt?ft.roundness:ut.s.ix===vt||vt==="Size"||vt==="ADBE Vector Rect Size"?ft.size:null}var pt=propertyGroupFactory(ft,mt),yt=gt.sh.ty==="tm"?gt.sh.prop:gt.sh;return ft.propertyIndex=ut.ix,yt.p.setGroupProperty(PropertyInterface("Position",pt)),yt.s.setGroupProperty(PropertyInterface("Size",pt)),yt.r.setGroupProperty(PropertyInterface("Rotation",pt)),Object.defineProperties(ft,{position:{get:ExpressionPropertyInterface(yt.p)},roundness:{get:ExpressionPropertyInterface(yt.r)},size:{get:ExpressionPropertyInterface(yt.s)},_name:{value:ut.nm}}),ft.mn=ut.mn,ft}function ht(ut,gt,mt){function ft(vt){return ut.r.ix===vt||vt==="Round Corners 1"?ft.radius:null}var pt=propertyGroupFactory(ft,mt),yt=gt;return ft.propertyIndex=ut.ix,yt.rd.setGroupProperty(PropertyInterface("Radius",pt)),Object.defineProperties(ft,{radius:{get:ExpressionPropertyInterface(yt.rd)},_name:{value:ut.nm}}),ft.mn=ut.mn,ft}function dt(ut,gt,mt){function ft(vt){return ut.c.ix===vt||vt==="Copies"?ft.copies:ut.o.ix===vt||vt==="Offset"?ft.offset:null}var pt=propertyGroupFactory(ft,mt),yt=gt;return ft.propertyIndex=ut.ix,yt.c.setGroupProperty(PropertyInterface("Copies",pt)),yt.o.setGroupProperty(PropertyInterface("Offset",pt)),Object.defineProperties(ft,{copies:{get:ExpressionPropertyInterface(yt.c)},offset:{get:ExpressionPropertyInterface(yt.o)},_name:{value:ut.nm}}),ft.mn=ut.mn,ft}return function(ut,gt,mt){var ft;function pt(yt){if(typeof yt=="number")return(yt=yt===void 0?1:yt)===0?mt:ft[yt-1];for(var vt=0,_t=ft.length;vt<_t;){if(ft[vt]._name===yt)return ft[vt];vt+=1}return null}return pt.propertyGroup=propertyGroupFactory(pt,function(){return mt}),ft=tt(ut,gt,pt.propertyGroup),pt.numProperties=ft.length,pt._name="Contents",pt}}(),TextExpressionInterface=function(tt){var et;function it(rt){return rt==="ADBE Text Document"?it.sourceText:null}return Object.defineProperty(it,"sourceText",{get:function(){tt.textProperty.getValue();var rt=tt.textProperty.currentData.t;return et&&rt===et.value||((et=new String(rt)).value=rt||new String(rt),Object.defineProperty(et,"style",{get:function(){return{fillColor:tt.textProperty.currentData.fc}}})),et}}),it};function _typeof(tt){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof(tt)}var FootageInterface=(dataInterfaceFactory=function(tt){function et(it){return it==="Outline"?et.outlineInterface():null}return et._name="Outline",et.outlineInterface=function(it){var rt="",nt=it.getFootageData();function st(at){if(nt[at])return rt=at,_typeof(nt=nt[at])==="object"?st:nt;var ot=at.indexOf(rt);
vendor: 12,484 bytes, line 28
28if(ot!==-1){var lt=parseInt(at.substr(ot+rt.length),10);return _typeof(nt=nt[lt])==="object"?st:nt}return""}return function(){return rt="",nt=it.getFootageData(),st}}(tt),et},function(tt){function et(it){return it==="Data"?et.dataInterface:null}return et._name="Data",et.dataInterface=dataInterfaceFactory(tt),et}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(tt){return interfaces[tt]||null}var expressionHelpers={searchExpressions:function(tt,et,it){et.x&&(it.k=!0,it.x=!0,it.initiateExpression=ExpressionManager.initiateExpression,it.effectsSequence.push(it.initiateExpression(tt,et,it).bind(it)))},getSpeedAtTime:function(tt){var et=this.getValueAtTime(tt),it=this.getValueAtTime(tt+-.01),rt=0;if(et.length){var nt;for(nt=0;nt<et.length;nt+=1)rt+=Math.pow(it[nt]-et[nt],2);rt=100*Math.sqrt(rt)}else rt=0;return rt},getVelocityAtTime:function(tt){if(this.vel!==void 0)return this.vel;var et,it,rt=-.001,nt=this.getValueAtTime(tt),st=this.getValueAtTime(tt+rt);if(nt.length)for(et=createTypedArray("float32",nt.length),it=0;it<nt.length;it+=1)et[it]=(st[it]-nt[it])/rt;else et=(st-nt)/rt;return et},getValueAtTime:function(tt){return tt*=this.elem.globalData.frameRate,(tt-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<tt?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(tt,this._cachingAtTime),this._cachingAtTime.lastFrame=tt),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(tt){this.propertyGroup=tt}};function addPropertyDecorator(){function tt(dt,ut,gt){if(!this.k||!this.keyframes)return this.pv;dt=dt?dt.toLowerCase():"";var mt,ft,pt,yt,vt,_t=this.comp.renderedFrame,bt=this.keyframes,St=bt[bt.length-1].t;if(_t<=St)return this.pv;if(gt?ft=St-(mt=ut?Math.abs(St-this.elem.comp.globalData.frameRate*ut):Math.max(0,St-this.elem.data.ip)):((!ut||ut>bt.length-1)&&(ut=bt.length-1),mt=St-(ft=bt[bt.length-1-ut].t)),dt==="pingpong"){if(Math.floor((_t-ft)/mt)%2!=0)return this.getValueAtTime((mt-(_t-ft)%mt+ft)/this.comp.globalData.frameRate,0)}else{if(dt==="offset"){var wt=this.getValueAtTime(ft/this.comp.globalData.frameRate,0),xt=this.getValueAtTime(St/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime(((_t-ft)%mt+ft)/this.comp.globalData.frameRate,0),kt=Math.floor((_t-ft)/mt);if(this.pv.length){for(yt=(vt=new Array(wt.length)).length,pt=0;pt<yt;pt+=1)vt[pt]=(xt[pt]-wt[pt])*kt+Pt[pt];return vt}return(xt-wt)*kt+Pt}if(dt==="continue"){var At=this.getValueAtTime(St/this.comp.globalData.frameRate,0),Et=this.getValueAtTime((St-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(yt=(vt=new Array(At.length)).length,pt=0;pt<yt;pt+=1)vt[pt]=At[pt]+(At[pt]-Et[pt])*((_t-St)/this.comp.globalData.frameRate)/5e-4;return vt}return At+(_t-St)/.001*(At-Et)}}return this.getValueAtTime(((_t-ft)%mt+ft)/this.comp.globalData.frameRate,0)}function et(dt,ut,gt){if(!this.k)return this.pv;dt=dt?dt.toLowerCase():"";var mt,ft,pt,yt,vt,_t=this.comp.renderedFrame,bt=this.keyframes,St=bt[0].t;if(_t>=St)return this.pv;if(gt?ft=St+(mt=ut?Math.abs(this.elem.comp.globalData.frameRate*ut):Math.max(0,this.elem.data.op-St)):((!ut||ut>bt.length-1)&&(ut=bt.length-1),mt=(ft=bt[ut].t)-St),dt==="pingpong"){if(Math.floor((St-_t)/mt)%2==0)return this.getValueAtTime(((St-_t)%mt+St)/this.comp.globalData.frameRate,0)}else{if(dt==="offset"){var wt=this.getValueAtTime(St/this.comp.globalData.frameRate,0),xt=this.getValueAtTime(ft/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime((mt-(St-_t)%mt+St)/this.comp.globalData.frameRate,0),kt=Math.floor((St-_t)/mt)+1;if(this.pv.length){for(yt=(vt=new Array(wt.length)).length,pt=0;pt<yt;pt+=1)vt[pt]=Pt[pt]-(xt[pt]-wt[pt])*kt;return vt}return Pt-(xt-wt)*kt}if(dt==="continue"){var At=this.getValueAtTime(St/this.comp.globalData.frameRate,0),Et=this.getValueAtTime((St+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(yt=(vt=new Array(At.length)).length,pt=0;pt<yt;pt+=1)vt[pt]=At[pt]+(At[pt]-Et[pt])*(St-_t)/.001;return vt}return At+(At-Et)*(St-_t)/.001}}return this.getValueAtTime((mt-((St-_t)%mt+St))/this.comp.globalData.frameRate,0)}function it(dt,ut){if(!this.k)return this.pv;if(dt=.5*(dt||.4),(ut=Math.floor(ut||5))<=1)return this.pv;var gt,mt,ft=this.comp.renderedFrame/this.comp.globalData.frameRate,pt=ft-dt,yt=ut>1?(ft+dt-pt)/(ut-1):1,vt=0,_t=0;for(gt=this.pv.length?createTypedArray("float32",this.pv.length):0;vt<ut;){if(mt=this.getValueAtTime(pt+vt*yt),this.pv.length)for(_t=0;_t<this.pv.length;_t+=1)gt[_t]+=mt[_t];else gt+=mt;vt+=1}if(this.pv.length)for(_t=0;_t<this.pv.length;_t+=1)gt[_t]/=ut;else gt/=ut;return gt}function rt(dt){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var ut=this._transformCachingAtTime.v;if(ut.cloneFromProps(this.pre.props),this.appliedTransformations<1){var gt=this.a.getValueAtTime(dt);ut.translate(-gt[0]*this.a.mult,-gt[1]*this.a.mult,gt[2]*this.a.mult)}if(this.appliedTransformations<2){var mt=this.s.getValueAtTime(dt);ut.scale(mt[0]*this.s.mult,mt[1]*this.s.mult,mt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var ft=this.sk.getValueAtTime(dt),pt=this.sa.getValueAtTime(dt);ut.skewFromAxis(-ft*this.sk.mult,pt*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var yt=this.r.getValueAtTime(dt);ut.rotate(-yt*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var vt=this.rz.getValueAtTime(dt),_t=this.ry.getValueAtTime(dt),bt=this.rx.getValueAtTime(dt),St=this.or.getValueAtTime(dt);ut.rotateZ(-vt*this.rz.mult).rotateY(_t*this.ry.mult).rotateX(bt*this.rx.mult).rotateZ(-St[2]*this.or.mult).rotateY(St[1]*this.or.mult).rotateX(St[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var wt=this.px.getValueAtTime(dt),xt=this.py.getValueAtTime(dt);if(this.data.p.z){var Pt=this.pz.getValueAtTime(dt);ut.translate(wt*this.px.mult,xt*this.py.mult,-Pt*this.pz.mult)}else ut.translate(wt*this.px.mult,xt*this.py.mult,0)}else{var kt=this.p.getValueAtTime(dt);ut.translate(kt[0]*this.p.mult,kt[1]*this.p.mult,-kt[2]*this.p.mult)}return ut}function nt(){return this.v.clone(new Matrix)}var st=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(dt,ut,gt){var mt=st(dt,ut,gt);return mt.dynamicProperties.length?mt.getValueAtTime=rt.bind(mt):mt.getValueAtTime=nt.bind(mt),mt.setGroupProperty=expressionHelpers.setGroupProperty,mt};var at=PropertyFactory.getProp;PropertyFactory.getProp=function(dt,ut,gt,mt,ft){var pt=at(dt,ut,gt,mt,ft);pt.kf?pt.getValueAtTime=expressionHelpers.getValueAtTime.bind(pt):pt.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(pt),pt.setGroupProperty=expressionHelpers.setGroupProperty,pt.loopOut=tt,pt.loopIn=et,pt.smooth=it,pt.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(pt),pt.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(pt),pt.numKeys=ut.a===1?ut.k.length:0,pt.propertyIndex=ut.ix;var yt=0;return gt!==0&&(yt=createTypedArray("float32",ut.a===1?ut.k[0].s.length:ut.k.length)),pt._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:yt},expressionHelpers.searchExpressions(dt,ut,pt),pt.k&&ft.addDynamicProperty(pt),pt};var ot=ShapePropertyFactory.getConstructorFunction(),lt=ShapePropertyFactory.getKeyframedConstructorFunction();function ct(){}ct.prototype={vertices:function(dt,ut){this.k&&this.getValue();var gt,mt=this.v;ut!==void 0&&(mt=this.getValueAtTime(ut,0));var ft=mt._length,pt=mt[dt],yt=mt.v,vt=createSizedArray(ft);for(gt=0;gt<ft;gt+=1)vt[gt]=dt==="i"||dt==="o"?[pt[gt][0]-yt[gt][0],pt[gt][1]-yt[gt][1]]:[pt[gt][0],pt[gt][1]];return vt},points:function(dt){return this.vertices("v",dt)},inTangents:function(dt){return this.vertices("i",dt)},outTangents:function(dt){return this.vertices("o",dt)},isClosed:function(){return this.v.c},pointOnPath:function(dt,ut){var gt=this.v;ut!==void 0&&(gt=this.getValueAtTime(ut,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(gt));for(var mt,ft=this._segmentsLength,pt=ft.lengths,yt=ft.totalLength*dt,vt=0,_t=pt.length,bt=0;vt<_t;){if(bt+pt[vt].addedLength>yt){var St=vt,wt=gt.c&&vt===_t-1?0:vt+1,xt=(yt-bt)/pt[vt].addedLength;mt=bez.getPointInSegment(gt.v[St],gt.v[wt],gt.o[St],gt.i[wt],xt,pt[vt]);break}bt+=pt[vt].addedLength,vt+=1}return mt||(mt=gt.c?[gt.v[0][0],gt.v[0][1]]:[gt.v[gt._length-1][0],gt.v[gt._length-1][1]]),mt},vectorOnPath:function(dt,ut,gt){dt==1?dt=this.v.c:dt==0&&(dt=.999);var mt=this.pointOnPath(dt,ut),ft=this.pointOnPath(dt+.001,ut),pt=ft[0]-mt[0],yt=ft[1]-mt[1],vt=Math.sqrt(Math.pow(pt,2)+Math.pow(yt,2));return vt===0?[0,0]:gt==="tangent"?[pt/vt,yt/vt]:[-yt/vt,pt/vt]},tangentOnPath:function(dt,ut){return this.vectorOnPath(dt,ut,"tangent")},normalOnPath:function(dt,ut){return this.vectorOnPath(dt,ut,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([ct],ot),extendPrototype([ct],lt),lt.prototype.getValueAtTime=function(dt){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),dt*=this.elem.globalData.frameRate,(dt-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<dt?this._caching.lastIndex:0,this._cachingAtTime.lastTime=dt,this.interpolateShape(dt,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},lt.prototype.initiateExpression=ExpressionManager.initiateExpression;var ht=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(dt,ut,gt,mt,ft){var pt=ht(dt,ut,gt,mt,ft);return pt.propertyIndex=ut.ix,pt.lock=!1,gt===3?expressionHelpers.searchExpressions(dt,ut.pt,pt):gt===4&&expressionHelpers.searchExpressions(dt,ut.ks,pt),pt.k&&dt.addDynamicProperty(pt),pt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(tt,et){var it=this.calculateExpression(et);if(tt.t!==it){var rt={};return this.copyData(rt,tt),rt.t=it.toString(),rt.__complete=!1,rt}return tt},TextProperty.prototype.searchProperty=function(){var tt=this.searchKeyframes(),et=this.searchExpressions();return this.kf=tt||et,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(tt,et){var it,rt,nt=createNS("feMerge");for(nt.setAttribute("result",tt),rt=0;rt<et.length;rt+=1)(it=createNS("feMergeNode")).setAttribute("in",et[rt]),nt.appendChild(it),nt.appendChild(it);return nt}};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(tt,et,it,rt,nt){this.filterManager=et;var st=createNS("feColorMatrix");st.setAttribute("type","matrix"),st.setAttribute("color-interpolation-filters","linearRGB"),st.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=st,st.setAttribute("result",rt+"_tint_1"),tt.appendChild(st),(st=createNS("feColorMatrix")).setAttribute("type","matrix"),st.setAttribute("color-interpolation-filters","sRGB"),st.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),st.setAttribute("result",rt+"_tint_2"),tt.appendChild(st),this.matrixFilter=st;var at=this.createMergeNode(rt,[nt,rt+"_tint_1",rt+"_tint_2"]);tt.appendChild(at)}function SVGFillFilter(tt,et,it,rt){this.filterManager=et;var nt=createNS("feColorMatrix");nt.setAttribute("type","matrix"),nt.setAttribute("color-interpolation-filters","sRGB"),nt.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),nt.setAttribute("result",rt),tt.appendChild(nt),this.matrixFilter=nt}function SVGStrokeEffect(tt,et,it){this.initialized=!1,this.filterManager=et,this.elem=it,this.paths=[]}function SVGTritoneFilter(tt,et,it,rt){this.filterManager=et;var nt=createNS("feColorMatrix");nt.setAttribute("type","matrix"),nt.setAttribute("color-interpolation-filters","linearRGB"),nt.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"),tt.appendChild(nt);var st=createNS("feComponentTransfer");
vendor: 10,173 bytes, line 28
28st.setAttribute("color-interpolation-filters","sRGB"),st.setAttribute("result",rt),this.matrixFilter=st;var at=createNS("feFuncR");at.setAttribute("type","table"),st.appendChild(at),this.feFuncR=at;var ot=createNS("feFuncG");ot.setAttribute("type","table"),st.appendChild(ot),this.feFuncG=ot;var lt=createNS("feFuncB");lt.setAttribute("type","table"),st.appendChild(lt),this.feFuncB=lt,tt.appendChild(st)}function SVGProLevelsFilter(tt,et,it,rt){this.filterManager=et;var nt=this.filterManager.effectElements,st=createNS("feComponentTransfer");(nt[10].p.k||nt[10].p.v!==0||nt[11].p.k||nt[11].p.v!==1||nt[12].p.k||nt[12].p.v!==1||nt[13].p.k||nt[13].p.v!==0||nt[14].p.k||nt[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",st)),(nt[17].p.k||nt[17].p.v!==0||nt[18].p.k||nt[18].p.v!==1||nt[19].p.k||nt[19].p.v!==1||nt[20].p.k||nt[20].p.v!==0||nt[21].p.k||nt[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",st)),(nt[24].p.k||nt[24].p.v!==0||nt[25].p.k||nt[25].p.v!==1||nt[26].p.k||nt[26].p.v!==1||nt[27].p.k||nt[27].p.v!==0||nt[28].p.k||nt[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",st)),(nt[31].p.k||nt[31].p.v!==0||nt[32].p.k||nt[32].p.v!==1||nt[33].p.k||nt[33].p.v!==1||nt[34].p.k||nt[34].p.v!==0||nt[35].p.k||nt[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",st)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(st.setAttribute("color-interpolation-filters","sRGB"),tt.appendChild(st)),(nt[3].p.k||nt[3].p.v!==0||nt[4].p.k||nt[4].p.v!==1||nt[5].p.k||nt[5].p.v!==1||nt[6].p.k||nt[6].p.v!==0||nt[7].p.k||nt[7].p.v!==1)&&((st=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),st.setAttribute("result",rt),tt.appendChild(st),this.feFuncRComposed=this.createFeFunc("feFuncR",st),this.feFuncGComposed=this.createFeFunc("feFuncG",st),this.feFuncBComposed=this.createFeFunc("feFuncB",st))}function SVGDropShadowEffect(tt,et,it,rt,nt){var st=et.container.globalData.renderConfig.filterSize,at=et.data.fs||st;tt.setAttribute("x",at.x||st.x),tt.setAttribute("y",at.y||st.y),tt.setAttribute("width",at.width||st.width),tt.setAttribute("height",at.height||st.height),this.filterManager=et;var ot=createNS("feGaussianBlur");ot.setAttribute("in","SourceAlpha"),ot.setAttribute("result",rt+"_drop_shadow_1"),ot.setAttribute("stdDeviation","0"),this.feGaussianBlur=ot,tt.appendChild(ot);var lt=createNS("feOffset");lt.setAttribute("dx","25"),lt.setAttribute("dy","0"),lt.setAttribute("in",rt+"_drop_shadow_1"),lt.setAttribute("result",rt+"_drop_shadow_2"),this.feOffset=lt,tt.appendChild(lt);var ct=createNS("feFlood");ct.setAttribute("flood-color","#00ff00"),ct.setAttribute("flood-opacity","1"),ct.setAttribute("result",rt+"_drop_shadow_3"),this.feFlood=ct,tt.appendChild(ct);var ht=createNS("feComposite");ht.setAttribute("in",rt+"_drop_shadow_3"),ht.setAttribute("in2",rt+"_drop_shadow_2"),ht.setAttribute("operator","in"),ht.setAttribute("result",rt+"_drop_shadow_4"),tt.appendChild(ht);var dt=this.createMergeNode(rt,[rt+"_drop_shadow_4",nt]);tt.appendChild(dt)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(tt){if(tt||this.filterManager._mdf){var et=this.filterManager.effectElements[0].p.v,it=this.filterManager.effectElements[1].p.v,rt=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+rt+" 0"),this.matrixFilter.setAttribute("values",it[0]-et[0]+" 0 0 0 "+et[0]+" "+(it[1]-et[1])+" 0 0 0 "+et[1]+" "+(it[2]-et[2])+" 0 0 0 "+et[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(tt){if(tt||this.filterManager._mdf){var et=this.filterManager.effectElements[2].p.v,it=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+et[0]+" 0 0 0 0 "+et[1]+" 0 0 0 0 "+et[2]+" 0 0 0 "+it+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var tt,et,it,rt,nt=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(rt=this.elem.maskManager.masksProperties.length,it=0):rt=1+(it=this.filterManager.effectElements[0].p.v-1),(et=createNS("g")).setAttribute("fill","none"),et.setAttribute("stroke-linecap","round"),et.setAttribute("stroke-dashoffset",1);it<rt;it+=1)tt=createNS("path"),et.appendChild(tt),this.paths.push({p:tt,m:it});if(this.filterManager.effectElements[10].p.v===3){var st=createNS("mask"),at=createElementID();st.setAttribute("id",at),st.setAttribute("mask-type","alpha"),st.appendChild(et),this.elem.globalData.defs.appendChild(st);var ot=createNS("g");for(ot.setAttribute("mask","url("+getLocationHref()+"#"+at+")");nt[0];)ot.appendChild(nt[0]);this.elem.layerElement.appendChild(ot),this.masker=st,et.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(nt=this.elem.layerElement.children||this.elem.layerElement.childNodes;nt.length;)this.elem.layerElement.removeChild(nt[0]);this.elem.layerElement.appendChild(et),this.elem.layerElement.removeAttribute("mask"),et.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=et},SVGStrokeEffect.prototype.renderFrame=function(tt){var et;this.initialized||this.initialize();var it,rt,nt=this.paths.length;for(et=0;et<nt;et+=1)if(this.paths[et].m!==-1&&(it=this.elem.maskManager.viewData[this.paths[et].m],rt=this.paths[et].p,(tt||this.filterManager._mdf||it.prop._mdf)&&rt.setAttribute("d",it.lastPath),tt||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||it.prop._mdf)){var st;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var at=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),ot=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),lt=rt.getTotalLength();st="0 0 0 "+lt*at+" ";var ct,ht=lt*(ot-at),dt=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,ut=Math.floor(ht/dt);for(ct=0;ct<ut;ct+=1)st+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";st+="0 "+10*lt+" 0 0"}else st="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;rt.setAttribute("stroke-dasharray",st)}if((tt||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(tt||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(tt||this.filterManager.effectElements[3].p._mdf)){var gt=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*gt[0])+","+bmFloor(255*gt[1])+","+bmFloor(255*gt[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(tt){if(tt||this.filterManager._mdf){var et=this.filterManager.effectElements[0].p.v,it=this.filterManager.effectElements[1].p.v,rt=this.filterManager.effectElements[2].p.v,nt=rt[0]+" "+it[0]+" "+et[0],st=rt[1]+" "+it[1]+" "+et[1],at=rt[2]+" "+it[2]+" "+et[2];this.feFuncR.setAttribute("tableValues",nt),this.feFuncG.setAttribute("tableValues",st),this.feFuncB.setAttribute("tableValues",at)}},SVGProLevelsFilter.prototype.createFeFunc=function(tt,et){var it=createNS(tt);return it.setAttribute("type","table"),et.appendChild(it),it},SVGProLevelsFilter.prototype.getTableValue=function(tt,et,it,rt,nt){for(var st,at,ot=0,lt=Math.min(tt,et),ct=Math.max(tt,et),ht=Array.call(null,{length:256}),dt=0,ut=nt-rt,gt=et-tt;ot<=256;)at=(st=ot/256)<=lt?gt<0?nt:rt:st>=ct?gt<0?rt:nt:rt+ut*Math.pow((st-tt)/gt,1/it),ht[dt]=at,dt+=1,ot+=256/255;return ht.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(tt){if(tt||this.filterManager._mdf){var et,it=this.filterManager.effectElements;this.feFuncRComposed&&(tt||it[3].p._mdf||it[4].p._mdf||it[5].p._mdf||it[6].p._mdf||it[7].p._mdf)&&(et=this.getTableValue(it[3].p.v,it[4].p.v,it[5].p.v,it[6].p.v,it[7].p.v),this.feFuncRComposed.setAttribute("tableValues",et),this.feFuncGComposed.setAttribute("tableValues",et),this.feFuncBComposed.setAttribute("tableValues",et)),this.feFuncR&&(tt||it[10].p._mdf||it[11].p._mdf||it[12].p._mdf||it[13].p._mdf||it[14].p._mdf)&&(et=this.getTableValue(it[10].p.v,it[11].p.v,it[12].p.v,it[13].p.v,it[14].p.v),this.feFuncR.setAttribute("tableValues",et)),this.feFuncG&&(tt||it[17].p._mdf||it[18].p._mdf||it[19].p._mdf||it[20].p._mdf||it[21].p._mdf)&&(et=this.getTableValue(it[17].p.v,it[18].p.v,it[19].p.v,it[20].p.v,it[21].p.v),this.feFuncG.setAttribute("tableValues",et)),this.feFuncB&&(tt||it[24].p._mdf||it[25].p._mdf||it[26].p._mdf||it[27].p._mdf||it[28].p._mdf)&&(et=this.getTableValue(it[24].p.v,it[25].p.v,it[26].p.v,it[27].p.v,it[28].p.v),this.feFuncB.setAttribute("tableValues",et)),this.feFuncA&&(tt||it[31].p._mdf||it[32].p._mdf||it[33].p._mdf||it[34].p._mdf||it[35].p._mdf)&&(et=this.getTableValue(it[31].p.v,it[32].p.v,it[33].p.v,it[34].p.v,it[35].p.v),this.feFuncA.setAttribute("tableValues",et))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(tt){if(tt||this.filterManager._mdf){if((tt||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),tt||this.filterManager.effectElements[0].p._mdf){var et=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*et[0]),Math.round(255*et[1]),Math.round(255*et[2])))}if((tt||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),tt||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var it=this.filterManager.effectElements[3].p.v,rt=(this.filterManager.effectElements[2].p.v-90)*degToRads,nt=it*Math.cos(rt),st=it*Math.sin(rt);
vendor: 4,372 bytes, line 28
28this.feOffset.setAttribute("dx",nt),this.feOffset.setAttribute("dy",st)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(tt,et,it){this.initialized=!1,this.filterManager=et,this.filterElem=tt,this.elem=it,it.matteElement=createNS("g"),it.matteElement.appendChild(it.layerElement),it.matteElement.appendChild(it.transformedElement),it.baseElement=it.matteElement}function SVGGaussianBlurEffect(tt,et,it,rt){tt.setAttribute("x","-100%"),tt.setAttribute("y","-100%"),tt.setAttribute("width","300%"),tt.setAttribute("height","300%"),this.filterManager=et;var nt=createNS("feGaussianBlur");nt.setAttribute("result",rt),tt.appendChild(nt),this.feGaussianBlur=nt}function TransformEffect(){}function SVGTransformEffect(tt,et){this.init(et)}function CVTransformEffect(tt){this.init(tt)}return SVGMatte3Effect.prototype.findSymbol=function(tt){for(var et=0,it=_svgMatteSymbols.length;et<it;){if(_svgMatteSymbols[et]===tt)return _svgMatteSymbols[et];et+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(tt,et){var it=tt.layerElement.parentNode;if(it){for(var rt,nt=it.children,st=0,at=nt.length;st<at&&nt[st]!==tt.layerElement;)st+=1;st<=at-2&&(rt=nt[st+1]);var ot=createNS("use");ot.setAttribute("href","#"+et),rt?it.insertBefore(ot,rt):it.appendChild(ot)}},SVGMatte3Effect.prototype.setElementAsMask=function(tt,et){if(!this.findSymbol(et)){var it=createElementID(),rt=createNS("mask");rt.setAttribute("id",et.layerId),rt.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(et);var nt=tt.globalData.defs;nt.appendChild(rt);var st=createNS("symbol");st.setAttribute("id",it),this.replaceInParent(et,it),st.appendChild(et.layerElement),nt.appendChild(st);var at=createNS("use");at.setAttribute("href","#"+it),rt.appendChild(at),et.data.hd=!1,et.show()}tt.setMatte(et.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var tt=this.filterManager.effectElements[0].p.v,et=this.elem.comp.elements,it=0,rt=et.length;it<rt;)et[it]&&et[it].data.ind===tt&&this.setElementAsMask(this.elem,et[it]),it+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(tt){if(tt||this.filterManager._mdf){var et=.3*this.filterManager.effectElements[0].p.v,it=this.filterManager.effectElements[1].p.v,rt=it==3?0:et,nt=it==2?0:et;this.feGaussianBlur.setAttribute("stdDeviation",rt+" "+nt);var st=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",st)}},TransformEffect.prototype.init=function(tt){this.effectsManager=tt,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(tt){if(this._opMdf=!1,this._mdf=!1,tt||this.effectsManager._mdf){var et=this.effectsManager.effectElements,it=et[0].p.v,rt=et[1].p.v,nt=et[2].p.v===1,st=et[3].p.v,at=nt?st:et[4].p.v,ot=et[5].p.v,lt=et[6].p.v,ct=et[7].p.v;this.matrix.reset(),this.matrix.translate(-it[0],-it[1],it[2]),this.matrix.scale(.01*at,.01*st,1),this.matrix.rotate(-ct*degToRads),this.matrix.skewFromAxis(-ot*degToRads,(lt+90)*degToRads),this.matrix.translate(rt[0],rt[1],0),this._mdf=!0,this.opacity!==et[8].p.v&&(this.opacity=et[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())}
28)(lottie$1,lottie$1.exports);var _templateObject$1,styles=r$3(_templateObject$1||(_templateObject$1=_taggedTemplateLiteral([`
29  * {
30    box-sizing: border-box;
31  }
32
33  :host {
34    --lottie-player-toolbar-height: 35px;
35    --lottie-player-toolbar-background-color: transparent;
36    --lottie-player-toolbar-icon-color: #999;
37    --lottie-player-toolbar-icon-hover-color: #222;
38    --lottie-player-toolbar-icon-active-color: #555;
39    --lottie-player-seeker-track-color: #ccc;
40    --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);
41    --lottie-player-seeker-display: block;
42
43    display: block;
44    width: 100%;
45    height: 100%;
46  }
47
48  .main {
49    display: flex;
50    flex-direction: column;
51    height: 100%;
52    width: 100%;
53  }
54
55  .animation {
56    width: 100%;
57    height: 100%;
58    display: flex;
59  }
60  .animation.controls {
61    height: calc(100% - 35px);
62  }
63
64  .toolbar {
65    display: flex;
66    align-items: center;
67    justify-items: center;
68    background-color: var(--lottie-player-toolbar-background-color);
69    margin: 0 5px;
70    height: 35px;
71  }
72
73  .toolbar button {
74    cursor: pointer;
75    fill: var(--lottie-player-toolbar-icon-color);
76    display: flex;
77    background: none;
78    border: 0;
79    padding: 0;
80    outline: none;
81    height: 100%;
82  }
83
84  .toolbar button:hover {
85    fill: var(--lottie-player-toolbar-icon-hover-color);
86  }
87
88  .toolbar button.active {
89    fill: var(--lottie-player-toolbar-icon-active-color);
90  }
91
92  .toolbar button.active:hover {
93    fill: var(--lottie-player-toolbar-icon-hover-color);
94  }
95
96  .toolbar button:focus {
97    outline: 1px dotted var(--lottie-player-toolbar-icon-active-color);
98  }
99
100  .toolbar button svg {
101  }
102
103  .toolbar button.disabled svg {
104    display: none;
105  }
106
107  .seeker {
108    -webkit-appearance: none;
109    width: 95%;
110    outline: none;
111    background-color: var(--lottie-player-toolbar-background-color);
112    display: var(--lottie-player-seeker-display);
113  }
114
115  .seeker::-webkit-slider-runnable-track {
116    width: 100%;
117    height: 5px;
118    cursor: pointer;
119    background: var(--lottie-player-seeker-track-color);
120    border-radius: 3px;
121  }
122  .seeker::-webkit-slider-thumb {
123    height: 15px;
124    width: 15px;
125    border-radius: 50%;
126    background: var(--lottie-player-seeker-thumb-color);
127    cursor: pointer;
128    -webkit-appearance: none;
129    margin-top: -5px;
130  }
131  .seeker:focus::-webkit-slider-runnable-track {
132    background: #999;
133  }
134  .seeker::-moz-range-track {
135    width: 100%;
136    height: 5px;
137    cursor: pointer;
138    background: var(--lottie-player-seeker-track-color);
139    border-radius: 3px;
140  }
141  .seeker::-moz-range-thumb {
142    height: 15px;
143    width: 15px;
144    border-radius: 50%;
145    background: var(--lottie-player-seeker-thumb-color);
146    cursor: pointer;
147  }
148  .seeker::-ms-track {
149    width: 100%;
150    height: 5px;
151    cursor: pointer;
152    background: transparent;
153    border-color: transparent;
154    color: transparent;
155  }
156  .seeker::-ms-fill-lower {
157    background: var(--lottie-player-seeker-track-color);
158    border-radius: 3px;
159  }
160  .seeker::-ms-fill-upper {
161    background: var(--lottie-player-seeker-track-color);
162    border-radius: 3px;
163  }
164  .seeker::-ms-thumb {
165    border: 0;
166    height: 15px;
167    width: 15px;
168    border-radius: 50%;
169    background: var(--lottie-player-seeker-thumb-color);
170    cursor: pointer;
171  }
172  .seeker:focus::-ms-fill-lower {
173    background: var(--lottie-player-seeker-track-color);
174  }
175  .seeker:focus::-ms-fill-upper {
176    background: var(--lottie-player-seeker-track-color);
177  }
178
179  .error {
180    display: flex;
181    justify-content: center;
182    height: 100%;
183    align-items: center;
184  }
185`]))),version="2.0.12",dependencies={"lottie-web":"^5.12.2"},_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,PlayerState,PlayMode,PlayerEvents;function parseSrc(tt){if(typeof tt=="object")return tt;try{return JSON.parse(tt)}catch{return new URL(tt,window.location.href).toString()}}function isLottie(tt){return["v","ip","op","layers","fr","w","h"].every(et=>Object.prototype.hasOwnProperty.call(tt,et))}function fromURL(tt){return _fromURL.apply(this,arguments)}function _fromURL(){return(_fromURL=_asyncToGenerator(function*(tt){if(typeof tt!="string")throw new Error("The url value must be a string");var et;try{var it=new URL(tt),rt=yield fetch(it.toString());et=yield rt.json()}catch{throw new Error("An error occurred while trying to load the Lottie file from URL")}return et})).apply(this,arguments)}(function(tt){tt.Destroyed="destroyed",tt.Error="error",tt.Frozen="frozen",tt.Loading="loading",tt.Paused="paused",tt.Playing="playing",tt.Stopped="stopped"})(PlayerState||(PlayerState={})),function(tt){tt.Bounce="bounce",tt.Normal="normal"}(PlayMode||(PlayMode={})),function(tt){tt.Complete="complete",tt.Destroyed="destroyed",tt.Error="error",tt.Frame="frame",tt.Freeze="freeze",tt.Load="load",tt.Loop="loop",tt.Pause="pause",tt.Play="play",tt.Ready="ready",tt.Rendered="rendered",tt.Stop="stop"}(PlayerEvents||(PlayerEvents={}));var LottiePlayer=class extends s{constructor(){super(...arguments),this.autoplay=!1,this.background="transparent",this.controls=!1,this.currentState=PlayerState.Loading,this.description="Lottie animation",this.direction=1,this.disableCheck=!1,this.disableShadowDOM=!1,this.hover=!1,this.intermission=1,this.loop=!1,this.mode=PlayMode.Normal,this.preserveAspectRatio="xMidYMid meet",this.renderer="svg",this.speed=1,this._io=void 0,this._counter=1,this._onVisibilityChange=()=>{document.hidden===!0&&this.currentState===PlayerState.Playing?this.freeze():this.currentState===PlayerState.Frozen&&this.play()}}load(tt){var et=this;return _asyncToGenerator(function*(){var it={container:et.container,loop:!1,autoplay:!1,renderer:et.renderer,rendererSettings:Object.assign({preserveAspectRatio:et.preserveAspectRatio,clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0},et.viewBoxSize&&{viewBoxSize:et.viewBoxSize})};try{var rt=parseSrc(tt),nt={},st=typeof rt=="string"?"path":"animationData";et._lottie&&et._lottie.destroy(),et.webworkers&&lottie$1.exports.useWebWorker(!0),et._lottie=lottie$1.exports.loadAnimation(Object.assign(Object.assign({},it),{[st]:rt})),et._attachEventListeners(),et.disableCheck||(st==="path"?(nt=yield fromURL(rt),st="animationData"):nt=rt,isLottie(nt)||(et.currentState=PlayerState.Error,et.dispatchEvent(new CustomEvent(PlayerEvents.Error))))}catch{et.currentState=PlayerState.Error,et.dispatchEvent(new CustomEvent(PlayerEvents.Error))}})()}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:dependencies["lottie-web"],lottiePlayerVersion:version}}play(){this._lottie&&(this._lottie.play(),this.currentState=PlayerState.Playing,this.dispatchEvent(new CustomEvent(PlayerEvents.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentState=PlayerState.Paused,this.dispatchEvent(new CustomEvent(PlayerEvents.Pause)))}stop(){this._lottie&&(this._counter=1,this._lottie.stop(),this.currentState=PlayerState.Stopped,this.dispatchEvent(new CustomEvent(PlayerEvents.Stop)))}destroy(){this._lottie&&(this._lottie.destroy(),this._lottie=null,this.currentState=PlayerState.Destroyed,this.dispatchEvent(new CustomEvent(PlayerEvents.Destroyed)),this.remove())}seek(tt){if(this._lottie){var et=/^(\d+)(%?)$/.exec(tt.toString());if(et){var it=et[2]==="%"?this._lottie.totalFrames*Number(et[1])/100:Number(et[1]);this.seeker=it,this.currentState===PlayerState.Playing?this._lottie.goToAndPlay(it,!0):(this._lottie.goToAndStop(it,!0),this._lottie.pause())}}}
vendor: 4,173 bytes, lines 185-260
185snapshot(){var tt=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(this.shadowRoot){var et=this.shadowRoot.querySelector(".animation svg"),it=new XMLSerializer().serializeToString(et);if(tt){var rt=document.createElement("a");rt.href="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(it)),rt.download="download_".concat(this.seeker,".svg"),document.body.appendChild(rt),rt.click(),document.body.removeChild(rt)}return it}}setSpeed(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this._lottie&&this._lottie.setSpeed(tt)}setDirection(tt){this._lottie&&this._lottie.setDirection(tt)}setLooping(tt){this._lottie&&(this.loop=tt,this._lottie.loop=tt)}togglePlay(){return this.currentState===PlayerState.Playing?this.pause():this.play()}toggleLooping(){this.setLooping(!this.loop)}resize(){this._lottie&&this._lottie.resize()}static get styles(){return styles}disconnectedCallback(){this.isConnected||(this._io&&(this._io.disconnect(),this._io=void 0),document.removeEventListener("visibilitychange",this._onVisibilityChange),this.destroy())}render(){var tt=this.controls?"main controls":"main",et=this.controls?"animation controls":"animation";return $(_templateObject||(_templateObject=_taggedTemplateLiteral([` <div
186      id="animation-container"
187      class=`,`
188      lang="en"
189      aria-label=`,`
190      role="img"
191    >
192      <div
193        id="animation"
194        class=`,`
195        style="background:`,`;"
196      >
197        `,`
198      </div>
199      `,`
200    </div>`])),tt,this.description,et,this.background,this.currentState===PlayerState.Error?$(_templateObject2||(_templateObject2=_taggedTemplateLiteral(['<div class="error">⚠️</div>']))):void 0,this.controls&&!this.disableShadowDOM?this.renderControls():void 0)}createRenderRoot(){return this.disableShadowDOM&&(this.style.display="block"),this.disableShadowDOM?this:super.createRenderRoot()}firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(tt=>{tt[0].isIntersecting?this.currentState===PlayerState.Frozen&&this.play():this.currentState===PlayerState.Playing&&this.freeze()}),this._io.observe(this.container)),document.hidden!==void 0&&document.addEventListener("visibilitychange",this._onVisibilityChange),this.src&&this.load(this.src),this.dispatchEvent(new CustomEvent(PlayerEvents.Rendered))}renderControls(){var tt=this.currentState===PlayerState.Playing,et=this.currentState===PlayerState.Paused,it=this.currentState===PlayerState.Stopped;return $(_templateObject3||(_templateObject3=_taggedTemplateLiteral([`
201      <div
202        id="lottie-controls"
203        aria-label="lottie-animation-controls"
204        class="toolbar"
205      >
206        <button
207          id="lottie-play-button"
208          @click=`,`
209          class=`,`
210          style="align-items:center;"
211          tabindex="0"
212          aria-label="play-pause"
213        >
214          `,`
215        </button>
216        <button
217          id="lottie-stop-button"
218          @click=`,`
219          class=`,`
220          style="align-items:center;"
221          tabindex="0"
222          aria-label="stop"
223        >
224          <svg width="24" height="24" aria-hidden="true" focusable="false">
225            <path d="M6 6h12v12H6V6z" />
226          </svg>
227        </button>
228        <input
229          id="lottie-seeker-input"
230          class="seeker"
231          type="range"
232          min="0"
233          step="1"
234          max="100"
235          .value=`,`
236          @input=`,`
237          @mousedown=`,`
238          @mouseup=`,`
239          aria-valuemin="1"
240          aria-valuemax="100"
241          role="slider"
242          aria-valuenow=`,`
243          tabindex="0"
244          aria-label="lottie-seek-input"
245        />
246        <button
247          id="lottie-loop-toggle"
248          @click=`,`
249          class=`,`
250          style="align-items:center;"
251          tabindex="0"
252          aria-label="loop-toggle"
253        >
254          <svg width="24" height="24" aria-hidden="true" focusable="false">
255            <path
256              d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"
257            />
258          </svg>
259        </button>
260      </div>
261    `])),this.togglePlay,tt||et?"active":"",$(tt?_templateObject4||(_templateObject4=_taggedTemplateLiteral([`<svg
262                width="24"
263                height="24"
264                aria-hidden="true"
265                focusable="false"
266              >
267                <path
268                  d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"
269                />
270              </svg>`])):_templateObject5||(_templateObject5=_taggedTemplateLiteral([`<svg
271                width="24"
272                height="24"
273                aria-hidden="true"
274                focusable="false"
275              >
276                <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />
277              </svg>`]))),this.stop,it?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===PlayerState.Playing&&this.play()},this.seeker,this.toggleLooping,this.loop?"active":"")}_handleSeekChange(tt){if(this._lottie&&!isNaN(tt.target.value)){var et=tt.target.value/100*this._lottie.totalFrames;this.seek(et)}}_attachEventListeners(){this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(PlayerEvents.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{if(this.currentState===PlayerState.Playing){if((!this.loop||this.count&&this._counter>=this.count)&&(this.dispatchEvent(new CustomEvent(PlayerEvents.Complete)),this.mode!==PlayMode.Bounce||this._lottie.currentFrame===0))return;this.mode===PlayMode.Bounce?(this.count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(PlayerEvents.Loop)),this.currentState===PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this.count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(PlayerEvents.Loop)),this.currentState===PlayerState.Playing&&(this.direction===-1?(this.seek("99%"),this.play()):(this._lottie.stop(),this._lottie.play()))},this.intermission))}else this.dispatchEvent(new CustomEvent(PlayerEvents.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(this.direction===-1&&this.seek("100%"),this.play()),this.dispatchEvent(new CustomEvent(PlayerEvents.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(PlayerEvents.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=PlayerState.Error,this.dispatchEvent(new CustomEvent(PlayerEvents.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==PlayerState.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===PlayerState.Playing&&this.stop()})}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=PlayerState.Frozen,this.dispatchEvent(new CustomEvent(PlayerEvents.Freeze)))}};__decorate([e$5({type:Boolean})],LottiePlayer.prototype,"autoplay",void 0),__decorate([e$5({type:String,reflect:!0})],LottiePlayer.prototype,"background",void 0),__decorate([e$5({type:Boolean})],LottiePlayer.prototype,"controls",void 0),__decorate([e$5({type:Number})],LottiePlayer.prototype,"count",void 0),__decorate([e$5({type:String})],LottiePlayer.prototype,"currentState",void 0),__decorate([e$5({type:String})],LottiePlayer.prototype,"description",void 0),__decorate([e$5({type:Number})],LottiePlayer.prototype,"direction",void 0),__decorate([e$5({type:Boolean})],LottiePlayer.prototype,"disableCheck",void 0),__decorate([e$5({type:Boolean})],LottiePlayer.prototype,"disableShadowDOM",void 0),__decorate([e$5({type:Boolean})],LottiePlayer.prototype,"hover",void 0),__decorate([e$5()],LottiePlayer.prototype,"intermission",void 0),__decorate([e$5({type:Boolean,reflect:!0})],LottiePlayer.prototype,"loop",void 0),__decorate([e$5()],LottiePlayer.prototype,"mode",void 0),__decorate([e$5({type:String})],LottiePlayer.prototype,"preserveAspectRatio",void 0),__decorate([e$5({type:String})],LottiePlayer.prototype,"renderer",void 0),__decorate([e$5({type:String})],LottiePlayer.prototype,"viewBoxSize",void 0),__decorate([e$5()],LottiePlayer.prototype,"seeker",void 0),__decorate([e$5({type:Number})],LottiePlayer.prototype,"speed",void 0),__decorate([e$5({type:String})],LottiePlayer.prototype,"src",void 0),__decorate([e$5({type:Boolean})],LottiePlayer.prototype,"webworkers",void 0),__decorate([i(".animation")],LottiePlayer.prototype,"container",void 0),LottiePlayer=__decorate([n$1("lottie-player")],LottiePlayer);const contact=defineComponent(()=>({emails:["hello","jobs"],currentEmail:"hello",transforms:{}
277,angle:0,async init(){await this.$nextTick(),await this.$nextTick(),this.computeTransforms()},async computeTransforms(){await this.$nextTick(),this.$el.querySelectorAll("a[data-email]").forEach(it=>{const rt=it.querySelector("span"),nt=rt.offsetWidth,st=rt.offsetTop;this.transforms[it.dataset.email]={x:nt,y:st}});const et=Object.values(this.transforms);if(et.length>=2){const it=et[0],rt=et[et.length-1],nt=rt.y-it.y,st=rt.x-it.x;this.angle=Math.atan(nt/st)+Math.PI/2}},get transformValue(){if(this.transforms[this.currentEmail]){const{x:tt,y:et}=this.transforms[this.currentEmail];return`translate(${tt}px, ${et}px)`}return""}})),__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:contact},Symbol.toStringTag,{value:"Module"})),footer=defineComponent(()=>({progress:0,translate:0,cleanupScroll:null,init(){this.cleanupScroll=scroll(({y:tt})=>{this.progress=tt.progress,this.translate=(1-this.progress)*(window.innerWidth<768?-225:-450)},{target:this.$root,offset:["start end","start 10%"]})},destroy(){var tt;(tt=this.cleanupScroll)==null||tt.call(this)},updatePosition(){},updateProgress(){}})),__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:footer},Symbol.toStringTag,{value:"Module"})),loadMore=defineComponent(()=>({loaded:!1,destroyed:!1,async load(){const tt=document.querySelectorAll(".load-more:not(.loaded) ~ *"),et=[];let it=!1,rt=0;for(;!it&&rt<tt.length;)tt[rt].classList.contains("load-more")?it=!0:(et.push(tt[rt]),tt[rt].style.opacity="0",rt++);this.loaded=!0,this.$dispatch("load-more"),await this.$nextTick(),this.$dispatch("load-more"),setTimeout(()=>{this.$dispatch("load-more")},400),setTimeout(()=>{this.destroyed=!0},600)}})),__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:loadMore},Symbol.toStringTag,{value:"Module"}));function xor(tt,et){return!!tt!=!!et}const overlay=defineComponent(()=>({menuOpen:!1,lightNav:!0,menuLinks:[],currentLink:void 0,hoverEffects:new Map,activeEffects:new Map,async init(){this.menuLinks=Array.from(this.$refs.mainNav.querySelectorAll("a")),this.menuLinks.forEach(tt=>{tt.dataset.effectCustom=""}),await this.createEffects(),Z.hooks.beforeLeave(()=>{var tt;(tt=this.activeEffects)==null||tt.forEach(et=>et.animateOut())}),Z.hooks.beforeEnter(()=>{this.updateCurrent()}),this.updateCurrent(),Alpine.effect(()=>{this.lightNav=xor(this.menuOpen,this.$store.scroll.navColor==="light")})},async createEffects(){const tt=["rounded","roundedSmall","roundedFat"],et=[];this.menuLinks.forEach((it,rt)=>{const nt=new TextEffect(it,tt[rt%tt.length]),st=new TextEffect(it,"linethrough");this.hoverEffects.set(it,nt),this.activeEffects.set(it,st),et.push(nt.setupEffect(),st.setupEffect()),it.addEventListener("mouseover",()=>{this.onLinkHover(it)}),it.addEventListener("mouseout",()=>{this.onLinkOut(it)})}),await Promise.all(et)},onLinkHover(tt){var et;(et=this.hoverEffects.get(tt))==null||et.animateIn()},onLinkOut(tt){var et;(et=this.hoverEffects.get(tt))==null||et.animateOut()},updateCurrent(){var et;const tt=this.menuLinks.find(it=>{const rt=new URL(it.getAttribute("href"));return window.location.pathname.startsWith(rt.pathname)});this.currentLink=tt,tt&&((et=this.activeEffects.get(tt))==null||et.animateIn())},get scrolled(){return this.$store.scroll.value>50},get topBarHidden(){return!this.menuOpen&&this.scrolled&&this.$store.scroll.direction>0},toggleMenu(tt){this.menuOpen=tt??!this.menuOpen,document.body.classList.toggle("overflow-hidden",this.menuOpen)}})),__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:overlay},Symbol.toStringTag,{value:"Module"})),pushShort=defineComponent((tt,et)=>({amount:0,hover:!1,active:!1,init(){this.updateAmount()},updateAmount(){window.innerWidth>=1280?this.amount=tt:this.amount=et},cursorIn(){this.hover||(this.hover=!0,followCursor.setScale(0),followCursor.enableFill())},cursorOut(){this.hover=!1,followCursor.setScale(1),followCursor.disableFill()}})),__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:pushShort},Symbol.toStringTag,{value:"Module"})),singleProject=defineComponent((tt,et,it)=>({bgColor:et,colorChanges:[],particlesColor:it,currentChange:null,caseStudyEnabled:!1,projectContent:"",studyContent:"",contentWrapper:null,get activeColor(){return this.caseStudyEnabled?"white":this.bgColor},init(){const rt=new URLSearchParams(window.location.search);this.caseStudyEnabled=tt&&rt.get("study")!=="false",this.projectContent=this.$refs.projectContent.innerHTML,this.studyContent=this.$refs.studyContent.innerHTML,this.contentTarget=this.$refs.contentWrapper,this.contentTarget.innerHTML=this.caseStudyEnabled?this.studyContent:this.projectContent,typoFix(this.contentTarget);const nt=Array.from(this.$root.querySelectorAll("[x-color-change]"));this.colorChanges=nt.reverse();const st=()=>{window.location.search==="?study=false"&&this.showStudy(!1,!1)};window.addEventListener("popstate",st),this.cleanupListener=()=>window.removeEventListener("popstate",st)},async showStudy(rt,nt=!0){rt!=this.caseStudyEnabled&&(await animate(this.contentTarget,{opacity:0}
277,{duration:.3}).finished,getLenis().scrollTo(0,{duration:1}),this.caseStudyEnabled=rt,nt&&window.history.pushState(null,null,window.location.pathname+(rt?"":"?study=false")),this.contentTarget.innerHTML=this.caseStudyEnabled?this.studyContent:this.projectContent,typoFix(this.contentTarget),this.contentTarget.style.opacity=1,await nextTick(),lifecycle.initPage(),updateNavColor())},onScroll(){for(const rt of this.colorChanges){if(getComputedStyle(rt).display=="none")continue;const{top:nt}=rt.getBoundingClientRect();if(nt<window.innerHeight/2){if(rt===this.currentChange)return;this.currentChange=rt;const st=this.$getData(rt);this.bgColor=st.color,st.particlesColor&&(this.particlesColor=st.particlesColor);return}}this.bgColor=et,this.currentChange=null,this.particlesColor=it},destroy(){var rt;(rt=this.cleanupListener)==null||rt.call(this)}})),__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:singleProject},Symbol.toStringTag,{value:"Module"})),skillsList=defineComponent(tt=>({currentSkill:0,totalSkills:tt,skillVisible:!1,absolutePositions:[],strokeTranslates:[],init(){this.onResize()},onResize(){var it;if(window.innerWidth>=768)return;const et=this.$refs.slogansWrapper.getBoundingClientRect();this.absolutePositions=[],this.strokeTranslates=[];for(let rt=0;rt<this.totalSkills;rt++){const nt=(it=this.$refs[`slogan_${rt}`])==null?void 0:it.getBoundingClientRect();this.absolutePositions.push(nt.y+window.scrollY),this.strokeTranslates.push(nt.y-et.y)}},onScroll(){if(!(window.innerWidth>=768))for(let et=this.totalSkills-1;et>=0;et--){const it=this.absolutePositions[et];if(!it)continue;const rt=it-window.scrollY-200;if(rt<300&&rt>200){this.currentSkill=et,this.skillVisible=!0;return}}},rootBindings:{"@scroll.window"(){this.onScroll()},"@resize.window"(){this.onResize(),this.onScroll()}}})),__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:skillsList},Symbol.toStringTag,{value:"Module"}));let rgbshiftModule;const disableRGBShift=async()=>{if(canIUse("three")){if(!rgbshiftModule){const{RGBShiftMaterial:tt}=await __vitePreload(async()=>{const{RGBShiftMaterial:et}=await import("./RGBShiftMaterial-CRL1aHih.js");return{RGBShiftMaterial:et}},__vite__mapDeps([7,1]));rgbshiftModule=tt}rgbshiftModule.disabled=!0}},enableRGBShift=async()=>{rgbshiftModule&&(rgbshiftModule.disabled=!1)},team=defineComponent(()=>({openId:null,isOpening:!1,async openPerson(tt){this.openId=tt;const et=this.$refs[`portraitOpenTarget-${tt}`],it=this.$refs[`portraitImage-${tt}`];await this.moveImage(it,et),disableRGBShift()},async closePerson(){if(this.isOpening)return;const tt=this.$refs[`portraitClosedTarget-${this.openId}`],et=this.$refs[`portraitImage-${this.openId}`];et.style.width="",et.style.height="",tt.appendChild(et),this.openId=null,enableRGBShift()},async moveImage(tt,et,it=0){await this.$nextTick();const rt=tt.getBoundingClientRect();et.appendChild(tt),await this.$nextTick();const nt=tt.getBoundingClientRect();this.isOpening=!0,await animate(tt,{width:[rt.width+"px",nt.width+"px"],height:[rt.height+"px",nt.height+"px"],x:[rt.left-nt.left,0],y:[rt.top-nt.top,0]},{duration:.6,delay:it,easing:power4.out}).finished,tt.style.transform="",tt.style.width="",tt.style.height="",this.isOpening=!1},get isMobile(){return window.innerWidth<1024},destroy(){enableRGBShift()}})),__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:team},Symbol.toStringTag,{value:"Module"})),componentsImports=Object.assign({"./contact.ts":__vite_glob_0_0,"./footer.ts":__vite_glob_0_1,"./loadMore.ts":__vite_glob_0_2,"./overlay.ts":__vite_glob_0_3,"./pushShort.ts":__vite_glob_0_4,"./singleProject.ts":__vite_glob_0_5,"./skillsList.ts":__vite_glob_0_6,"./team.t
277s":__vite_glob_0_7});function defineComponent(tt){return function(...et){const it=tt(...et);if(it.rootBindings){const rt=it.init;it.init=function(){this.$root.setAttribute("x-bind","rootBindings"),rt==null||rt.call(this)}}return it}}function components(){for(const[tt,et]of Object.entries(componentsImports)){const it=tt.replace("./","").replace(".ts",""),rt=et.default;module_default$1.data(it,rt)}}const ledger=new WeakMap;function editLedger(tt,et,it,rt){if(!tt&&!ledger.has(et))return!1;const nt=ledger.get(et)??new WeakMap;ledger.set(et,nt);const st=nt.get(it)??new Set;nt.set(it,st);const at=st.has(rt);return tt?st.add(rt):st.delete(rt),at&&tt}function safeClosest(tt,et){let it=tt.target;if(it instanceof Text&&(it=it.parentElement),it instanceof Element&&tt.currentTarget instanceof Node){const rt=it.closest(et);if(rt&&tt.currentTarget.contains(rt))return rt}}function delegate(tt,et,it,rt={}){const{signal:nt,base:st=document}=rt;if(nt!=null&&nt.aborted)return;const{once:at,...ot}=rt,lt=st instanceof Document?st.documentElement:st,ct=!!(typeof rt=="object"?rt.capture:rt),ht=gt=>{const mt=safeClosest(gt,String(tt));
277if(mt){const ft=Object.assign(gt,{delegateTarget:mt});it.call(lt,ft),at&&(lt.removeEventListener(et,ht,ot),editLedger(!1,lt,it,dt))}},dt=JSON.stringify({selector:tt,type:et,capture:ct});editLedger(!0,lt,it,dt)||lt.addEventListener(et,ht,ot),nt==null||nt.addEventListener("abort",()=>{editLedger(!1,lt,it,dt)})}const cachedEffects=new Map;async function onLinkHover(tt){const et=tt.target;if(et===tt.delegateTarget&&followCursor.running&&(followCursor.setScale(0),followCursor.enableFill(),et.dataset.effectCustom===void 0&&!("effectNone"in et.dataset))){let it=cachedEffects.get(et);!it&&!("effectNone"in et.dataset)&&(it=new TextEffect(et),cachedEffects.set(et,it),await it.setupEffect()),await nextTick(),it.animateIn()}}async function onLinkLeave(tt){const et=tt.target;if(et!==tt.delegateTarget||(followCursor.setScale(1),await followCursor.disableFill(),et.dataset.effectCustom!==void 0)||!followCursor.running)return;const it=cachedEffects.get(et);it==null||it.animateOut()}function cleanCachedEffects(){for(const tt of cachedEffects.values())tt.destroy();cachedEffects.clear()}function linksEffects(){delegate("a:not([data-cursor-custom]), [link-effect]","mouseover",onLinkHover),delegate("a:not([data-cursor-custom]), [link-effect]","mouseout",onLinkLeave),Z.hooks.after(()=>{cleanCachedEffects()})}async function initApp(){loader.setup(),setFeatureConfig(),typoFix(),lenis(),initBarba(),followCursor.init(),await initThree(),linksEffects(),components(),directives(),alpine(),await nextTick(),lifecycle.initPage()}document.readyState!=="loading"?initApp():document.addEventListener("DOMContentLoaded",initApp);export{FrontSide as F,animateObjectFrom as a,animate as b,clamp as c,animateObjectTo as d,power4 as e,followCursor as f,animationsGroup as g,power2 as h,mix as i,imageLoaded as j,getLenis as k,lerp as l,module_default$1 as m,canIUse as n,getParticles as o,power3 as p,nextTick as q,elementMovesOnScroll as r,spring as s,useSizes as u};
278//# sourceMappingURL=main.ts-CB3ImU2k.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.