PageSourceSearch

https://dj-millenium-falcon.netlify.app/assets/index-CpcFdiYF.js

js dj-millenium-falcon.netlify.app collected 2026-10-03 10:39:29 UTC 664,094 bytes, 316 lines download raw bytes

vendor: 9,417 bytes, lines 1-17
1var pr=(e,i,s)=>{if(!i.has(e))throw TypeError("Cannot "+s)};var gt=(e,i,s)=>(pr(e,i,"read from private field"),s?s.call(e):i.get(e)),At=(e,i,s)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,s)},kt=(e,i,s,a)=>(pr(e,i,"write to private field"),a?a.call(e,s):i.set(e,s),s);var ur=(e,i,s,a)=>({set _(o){kt(e,i,o,s)},get _(){return gt(e,i,a)}}),Vt=(e,i,s)=>(pr(e,i,"access private method"),s);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const h of o)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function a(o){if(o.ep)return;o.ep=!0;const h=s(o);fetch(o.href,h)}})();function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$2=Symbol.for("react.fragment"),q$1=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$1=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z$1=Symbol.iterator;function A$1(e){return e===null||typeof e!="object"?null:(e=z$1&&e[z$1]||e["@@iterator"],typeof e=="function"?e:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$1={};function E$1(e,i,s){this.props=e,this.context=i,this.refs=D$1,this.updater=s||B$1}E$1.prototype.isReactComponent={};E$1.prototype.setState=function(e,i){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,i,"setState")};E$1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F(){}F.prototype=E$1.prototype;function G$1(e,i,s){this.props=e,this.context=i,this.refs=D$1,this.updater=s||B$1}var H$1=G$1.prototype=new F;H$1.constructor=G$1;C$1(H$1,E$1.prototype);H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};function M$1(e,i,s){var a,o={},h=null,d=null;if(i!=null)for(a in i.ref!==void 0&&(d=i.ref),i.key!==void 0&&(h=""+i.key),i)J.call(i,a)&&!L$1.hasOwnProperty(a)&&(o[a]=i[a]);var g=arguments.length-2;if(g===1)o.children=s;else if(1<g){for(var b=Array(g),_=0;_<g;_++)b[_]=arguments[_+2];o.children=b}if(e&&e.defaultProps)for(a in g=e.defaultProps,g)o[a]===void 0&&(o[a]=g[a]);return{$$typeof:l$1,type:e,key:h,ref:d,props:o,_owner:K$1.current}}function N$1(e,i){return{$$typeof:l$1,type:e.type,key:i,ref:e.ref,props:e.props,_owner:e._owner}}function O$1(e){return typeof e=="object"&&e!==null&&e.$$typeof===l$1}function escape(e){var i={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(s){return i[s]})}var P$1=/\/+/g;function Q$1(e,i){return typeof e=="object"&&e!==null&&e.key!=null?escape(""+e.key):i.toString(36)}function R$1(e,i,s,a,o){var h=typeof e;(h==="undefined"||h==="boolean")&&(e=null);var d=!1;if(e===null)d=!0;else switch(h){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case l$1:case n$1:d=!0}}if(d)return d=e,o=o(d),e=a===""?"."+Q$1(d,0):a,I$1(o)?(s="",e!=null&&(s=e.replace(P$1,"$&/")+"/"),R$1(o,i,s,"",function(_){return _})):o!=null&&(O$1(o)&&(o=N$1(o,s+(!o.key||d&&d.key===o.key?"":(""+o.key).replace(P$1,"$&/")+"/")+e)),i.push(o)),1;if(d=0,a=a===""?".":a+":",I$1(e))for(var g=0;g<e.length;g++){h=e[g];var b=a+Q$1(h,g);d+=R$1(h,i,s,b,o)}else if(b=A$1(e),typeof b=="function")for(e=b.call(e),g=0;!(h=e.next()).done;)h=h.value,b=a+Q$1(h,g++),d+=R$1(h,i,s,b,o);else if(h==="object")throw i=String(e),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return d}function S$1(e,i,s){if(e==null)return e;var a=[],o=0;return R$1(e,a,"","",function(h){return i.call(s,h,o++)}),a}function T$1(e){if(e._status===-1){var i=e._result;i=i(),i.then(function(s){(e._status===0||e._status===-1)&&(e._status=1,e._result=s)},function(s){(e._status===0||e._status===-1)&&(e._status=2,e._result=s)}),e._status===-1&&(e._status=0,e._result=i)}if(e._status===1)return e._result.default;throw e._result}var U$1={current:null},V$1={transition:null},W$1={ReactCurrentDispatcher:U$1,ReactCurrentBatchConfig:V$1,ReactCurrentOwner:K$1};react_production_min.Children={map:S$1,forEach:function(e,i,s){S$1(e,function(){i.apply(this,arguments)},s)},count:function(e){var i=0;return S$1(e,function(){i++}),i},toArray:function(e){return S$1(e,function(i){return i})||[]},only:function(e){if(!O$1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};react_production_min.Component=E$1;react_production_min.Fragment=p$2;react_production_min.Profiler=r;react_production_min.PureComponent=G$1;react_production_min.StrictMode=q$1;react_production_min.Suspense=w;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$1;react_production_min.cloneElement=function(e,i,s){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=C$1({},e.props),o=e.key,h=e.ref,d=e._owner;if(i!=null){if(i.ref!==void 0&&(h=i.ref,d=K$1.current),i.key!==void 0&&(o=""+i.key),e.type&&e.type.defaultProps)var g=e.type.defaultProps;for(b in i)J.call(i,b)&&!L$1.hasOwnProperty(b)&&(a[b]=i[b]===void 0&&g!==void 0?g[b]:i[b])}var b=arguments.length-2;if(b===1)a.children=s;else if(1<b){g=Array(b);for(var _=0;_<b;_++)g[_]=arguments[_+2];a.children=g}return{$$typeof:l$1,type:e.type,key:o,ref:h,props:a,_owner:d}};react_production_min.createContext=function(e){return e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:t,_context:e},e.Consumer=e};react_production_min.createElement=M$1;react_production_min.createFactory=function(e){var i=M$1.bind(null,e);return i.type=e,i};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(e){return{$$typeof:v$1,render:e}};react_production_min.isValidElement=O$1;react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T$1}};react_production_min.memo=function(e,i){return{$$typeof:x,type:e,compare:i===void 0?null:i}};react_production_min.startTransition=function(e){var i=V$1.transition;V$1.transition={};try{e()}finally{V$1.transition=i}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};react_production_min.useCallback=function(e,i){return U$1.current.useCallback(e,i)};react_production_min.useContext=function(e){return U$1.current.useContext(e)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(e){return U$1.current.useDeferredValue(e)};react_production_min.useEffect=function(e,i){return U$1.current.useEffect(e,i)};react_production_min.useId=function(){return U$1.current.useId()};react_production_min.useImperativeHandle=function(e,i,s){return U$1.current.useImperativeHandle(e,i,s)};react_production_min.useInsertionEffect=function(e,i){return U$1.current.useInsertionEffect(e,i)};react_production_min.useLayoutEffect=function(e,i){return U$1.current.useLayoutEffect(e,i)};react_production_min.useMemo=function(e,i){return U$1.current.useMemo(e,i)};react_production_min.useReducer=function(e,i,s){return U$1.current.useReducer(e,i,s)};react_production_min.useRef=function(e){return U$1.current.useRef(e)};react_production_min.useState=function(e){return U$1.current.useState(e)};react_production_min.useSyncExternalStore=function(e,i,s){return U$1.current.useSyncExternalStore(e,i,s)};react_production_min.useTransition=function(){return U$1.current.useTransition()};react_production_min.version="18.2.0";react.exports=react_production_min;var reactExports=react.exports;const React=getDefaultExportFromCjs(reactExports);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var f=reactExports,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m$1=Object.prototype.hasOwnProperty,n=f.__SECRET_INT
vendor: 6,822 bytes, lines 17-33
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$1={key:!0,ref:!0,__self:!0,__source:!0};function q(e,i,s){var a,o={},h=null,d=null;s!==void 0&&(h=""+s),i.key!==void 0&&(h=""+i.key),i.ref!==void 0&&(d=i.ref);for(a in i)m$1.call(i,a)&&!p$1.hasOwnProperty(a)&&(o[a]=i[a]);if(e&&e.defaultProps)for(a in i=e.defaultProps,i)o[a]===void 0&&(o[a]=i[a]);return{$$typeof:k,type:e,key:h,ref:d,props:o,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,client={},reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function i(ht,vt){var bt=ht.length;ht.push(vt);e:for(;0<bt;){var wt=bt-1>>>1,_t=ht[wt];if(0<o(_t,vt))ht[wt]=vt,ht[bt]=_t,bt=wt;else break e}}function s(ht){return ht.length===0?null:ht[0]}function a(ht){if(ht.length===0)return null;var vt=ht[0],bt=ht.pop();if(bt!==vt){ht[0]=bt;e:for(var wt=0,_t=ht.length,Rt=_t>>>1;wt<Rt;){var Dt=2*(wt+1)-1,Lt=ht[Dt],Ft=Dt+1,Mt=ht[Ft];if(0>o(Lt,bt))Ft<_t&&0>o(Mt,Lt)?(ht[wt]=Mt,ht[Ft]=bt,wt=Ft):(ht[wt]=Lt,ht[Dt]=bt,wt=Dt);else if(Ft<_t&&0>o(Mt,bt))ht[wt]=Mt,ht[Ft]=bt,wt=Ft;else break e}}return vt}function o(ht,vt){var bt=ht.sortIndex-vt.sortIndex;return bt!==0?bt:ht.id-vt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;e.unstable_now=function(){return h.now()}}else{var d=Date,g=d.now();e.unstable_now=function(){return d.now()-g}}var b=[],_=[],j=1,_e=null,tt=3,$=!1,nt=!1,it=!1,et=typeof setTimeout=="function"?setTimeout:null,rt=typeof clearTimeout=="function"?clearTimeout:null,st=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function at(ht){for(var vt=s(_);vt!==null;){if(vt.callback===null)a(_);else if(vt.startTime<=ht)a(_),vt.sortIndex=vt.expirationTime,i(b,vt);else break;vt=s(_)}}function ot(ht){if(it=!1,at(ht),!nt)if(s(b)!==null)nt=!0,Ct(lt);else{var vt=s(_);vt!==null&&Et(ot,vt.startTime-ht)}}function lt(ht,vt){nt=!1,it&&(it=!1,rt(ut),ut=-1),$=!0;var bt=tt;try{for(at(vt),_e=s(b);_e!==null&&(!(_e.expirationTime>vt)||ht&&!dt());){var wt=_e.callback;if(typeof wt=="function"){_e.callback=null,tt=_e.priorityLevel;var _t=wt(_e.expirationTime<=vt);vt=e.unstable_now(),typeof _t=="function"?_e.callback=_t:_e===s(b)&&a(b),at(vt)}else a(b);_e=s(b)}if(_e!==null)var Rt=!0;else{var Dt=s(_);Dt!==null&&Et(ot,Dt.startTime-vt),Rt=!1}return Rt}finally{_e=null,tt=bt,$=!1}}var pt=!1,ct=null,ut=-1,mt=5,ft=-1;function dt(){return!(e.unstable_now()-ft<mt)}function St(){if(ct!==null){var ht=e.unstable_now();ft=ht;var vt=!0;try{vt=ct(!0,ht)}finally{vt?yt():(pt=!1,ct=null)}}else pt=!1}var yt;if(typeof st=="function")yt=function(){st(St)};else if(typeof MessageChannel<"u"){var xt=new MessageChannel,Pt=xt.port2;xt.port1.onmessage=St,yt=function(){Pt.postMessage(null)}}else yt=function(){et(St,0)};function Ct(ht){ct=ht,pt||(pt=!0,yt())}function Et(ht,vt){ut=et(function(){ht(e.unstable_now())},vt)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ht){ht.callback=null},e.unstable_continueExecution=function(){nt||$||(nt=!0,Ct(lt))},e.unstable_forceFrameRate=function(ht){0>ht||125<ht?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):mt=0<ht?Math.floor(1e3/ht):5},e.unstable_getCurrentPriorityLevel=function(){return tt},e.unstable_getFirstCallbackNode=function(){return s(b)},e.unstable_next=function(ht){switch(tt){case 1:case 2:case 3:var vt=3;break;default:vt=tt}var bt=tt;tt=vt;try{return ht()}finally{tt=bt}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ht,vt){switch(ht){case 1:case 2:case 3:case 4:case 5:break;default:ht=3}var bt=tt;tt=ht;try{return vt()}finally{tt=bt}},e.unstable_scheduleCallback=function(ht,vt,bt){var wt=e.unstable_now();switch(typeof bt=="object"&&bt!==null?(bt=bt.delay,bt=typeof bt=="number"&&0<bt?wt+bt:wt):bt=wt,ht){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=bt+_t,ht={id:j++,callback:vt,priorityLevel:ht,startTime:bt,expirationTime:_t,sortIndex:-1},bt>wt?(ht.sortIndex=bt,i(_,ht),s(b)===null&&ht===s(_)&&(it?(rt(ut),ut=-1):it=!0,Et(ot,bt-wt))):(ht.sortIndex=_t,i(b,ht),nt||$||(nt=!0,Ct(lt))),ht},e.unstable_shouldYield=dt,e.unstable_wrapCallback=function(ht){var vt=tt;return function(){var bt=tt;tt=vt;try{return ht.apply(this,arguments)}finally{tt=bt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var aa=reactExports,ca=schedulerExports;function p(e){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+e+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(e,i){ha(e,i),ha(e+"Capture",i)}function ha(e,i){for(ea[e]=i,e=0;e<i.length;e++)da.add(i[e])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(e){return ja.call(ma,e)?!0:ja.call(la,e)?!1:ka.test(e)?ma[e]=!0:(la[e]=!0,!1)}function pa(e,i,s,a){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return a?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qa(e,i,s,a){if(i===null||typeof i>"u"||pa(e,i,s,a))return!0;
vendor: 5,165 bytes, lines 33-34
33if(a)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function v(e,i,s,a,o,h,d){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=s,this.propertyName=e,this.type=i,this.sanitizeURL=h,this.removeEmptyString=d}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){z[e]=new v(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var i=e[0];z[i]=new v(i,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){z[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){z[e]=new v(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){z[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){z[e]=new v(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){z[e]=new v(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){z[e]=new v(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){z[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var i=e.replace(ra,sa);z[i]=new v(i,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var i=e.replace(ra,sa);z[i]=new v(i,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var i=e.replace(ra,sa);z[i]=new v(i,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){z[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)});z.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){z[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function ta(e,i,s,a){var o=z.hasOwnProperty(i)?z[i]:null;(o!==null?o.type!==0:a||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(qa(i,s,o,a)&&(s=null),a||o===null?oa(i)&&(s===null?e.removeAttribute(i):e.setAttribute(i,""+s)):o.mustUseProperty?e[o.propertyName]=s===null?o.type===3?!1:"":s:(i=o.attributeName,a=o.attributeNamespace,s===null?e.removeAttribute(i):(o=o.type,s=o===3||o===4&&s===!0?"":""+s,a?e.setAttributeNS(a,i,s):e.setAttribute(i,s))))}var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(e){return e===null||typeof e!="object"?null:(e=Ja&&e[Ja]||e["@@iterator"],typeof e=="function"?e:null)}var A=Object.assign,La;function Ma(e){if(La===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);La=i&&i[1]||""}return`
34`+La+e}var Na=!1;function Oa(e,i){if(!e||Na)return"";Na=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(_){var a=_}Reflect.construct(e,[],i)}else{try{i.call()}catch(_){a=_}e.call(i.prototype)}else{try{throw Error()}catch(_){a=_}e()}}
vendor: 4,388 bytes, lines 34-37
34catch(_){if(_&&a&&typeof _.stack=="string"){for(var o=_.stack.split(`
35`),h=a.stack.split(`
36`),d=o.length-1,g=h.length-1;1<=d&&0<=g&&o[d]!==h[g];)g--;for(;1<=d&&0<=g;d--,g--)if(o[d]!==h[g]){if(d!==1||g!==1)do if(d--,g--,0>g||o[d]!==h[g]){var b=`
37`+o[d].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),b}while(1<=d&&0<=g);break}}}finally{Na=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?Ma(e):""}function Pa(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Oa(e.type,!1),e;case 11:return e=Oa(e.type.render,!1),e;case 1:return e=Oa(e.type,!0),e;default:return""}}function Qa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ca:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case Da:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return i=e.displayName||null,i!==null?i:Qa(e.type)||"Memo";case Ha:i=e._payload,e=e._init;try{return Qa(e(i))}catch{}}return null}function Ra(e){var i=e.type;switch(e.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=i.render,e=e.displayName||e.name||"",i.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(i);case 8:return i===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ta(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ua(e){var i=Ta(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,i),a=""+e[i];if(!e.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,h=s.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return o.call(this)},set:function(d){a=""+d,h.call(this,d)}}),Object.defineProperty(e,i,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var s=i.getValue(),a="";return e&&(a=Ta(e)?e.checked?"true":"false":e.value),e=a,e!==s?(i.setValue(e),!0):!1}function Xa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ya(e,i){var s=i.checked;return A({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Za(e,i){var s=i.defaultValue==null?"":i.defaultValue,a=i.checked!=null?i.checked:i.defaultChecked;s=Sa(i.value!=null?i.value:s),e._wrapperState={initialChecked:a,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function ab(e,i){i=i.checked,i!=null&&ta(e,"checked",i,!1)}function bb(e,i){ab(e,i);var s=Sa(i.value),a=i.type;if(s!=null)a==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}i.hasOwnProperty("value")?cb(e,i.type,s):i.hasOwnProperty("defaultValue")&&cb(e,i.type,Sa(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(e.defaultChecked=!!i.defaultChecked)}function db(e,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var a=i.t
vendor: 12,344 bytes, line 37
37ype;if(!(a!=="submit"&&a!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+e._wrapperState.initialValue,s||i===e.value||(e.value=i),e.defaultValue=i}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function cb(e,i,s){(i!=="number"||Xa(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var eb=Array.isArray;function fb(e,i,s,a){if(e=e.options,i){i={};for(var o=0;o<s.length;o++)i["$"+s[o]]=!0;for(s=0;s<e.length;s++)o=i.hasOwnProperty("$"+e[s].value),e[s].selected!==o&&(e[s].selected=o),o&&a&&(e[s].defaultSelected=!0)}else{for(s=""+Sa(s),i=null,o=0;o<e.length;o++){if(e[o].value===s){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}i!==null||e[o].disabled||(i=e[o])}i!==null&&(i.selected=!0)}}function gb(e,i){if(i.dangerouslySetInnerHTML!=null)throw Error(p(91));return A({},i,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hb(e,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(p(92));if(eb(s)){if(1<s.length)throw Error(p(93));s=s[0]}i=s}i==null&&(i=""),s=i}e._wrapperState={initialValue:Sa(s)}}function ib(e,i){var s=Sa(i.value),a=Sa(i.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),i.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),a!=null&&(e.defaultValue=""+a)}function jb(e){var i=e.textContent;i===e._wrapperState.initialValue&&i!==""&&i!==null&&(e.value=i)}function kb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(e,i){return e==null||e==="http://www.w3.org/1999/xhtml"?kb(i):e==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var mb,nb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,a,o){MSApp.execUnsafeLocalFunction(function(){return e(i,s,a,o)})}:e}(function(e,i){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=i;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=mb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;i.firstChild;)e.appendChild(i.firstChild)}});function ob(e,i){if(i){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=i;return}}e.textContent=i}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(e){qb.forEach(function(i){i=i+e.charAt(0).toUpperCase()+e.substring(1),pb[i]=pb[e]})});function rb(e,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||pb.hasOwnProperty(e)&&pb[e]?(""+i).trim():i+"px"}function sb(e,i){e=e.style;for(var s in i)if(i.hasOwnProperty(s)){var a=s.indexOf("--")===0,o=rb(s,i[s],a);s==="float"&&(s="cssFloat"),a?e.setProperty(s,o):e[s]=o}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(e,i){if(i){if(tb[e]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(p(137,e));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(p(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(p(61))}if(i.style!=null&&typeof i.style!="object")throw Error(p(62))}}function vb(e,i){if(e.indexOf("-")===-1)return typeof i.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yb=null,zb=null,Ab=null;function Bb(e){if(e=Cb(e)){if(typeof yb!="function")throw Error(p(280));var i=e.stateNode;i&&(i=Db(i),yb(e.stateNode,e.type,i))}}function Eb(e){zb?Ab?Ab.push(e):Ab=[e]:zb=e}function Fb(){if(zb){var e=zb,i=Ab;if(Ab=zb=null,Bb(e),i)for(e=0;e<i.length;e++)Bb(i[e])}}function Gb(e,i){return e(i)}function Hb(){}var Ib=!1;function Jb(e,i,s){if(Ib)return e(i,s);Ib=!0;try{return Gb(e,i,s)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(e,i){var s=e.stateNode;if(s===null)return null;var a=Db(s);if(a===null)return null;s=a[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(p(231,i,typeof s));return s}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(e,i,s,a,o,h,d,g,b){var _=Array.prototype.slice.call(arguments,3);try{i.apply(s,_)}catch(j){this.onError(j)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(e){Ob=!0,Pb=e}};function Tb(e,i,s,a,o,h,d,g,b){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(e,i,s,a,o,h,d,g,b){if(Tb.apply(this,arguments),Ob){if(Ob){var _=Pb;Ob=!1,Pb=null}else throw Error(p(198));Qb||(Qb=!0,Rb=_)}}function Vb(e){var i=e,s=e;if(e.alternate)for(;i.return;)i=i.return;else{e=i;do i=e,i.flags&4098&&(s=i.return),e=i.return;while(e)}return i.tag===3?s:null}function Wb(e){if(e.tag===13){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function Xb(e){if(Vb(e)!==e)throw Error(p(188))}function Yb(e){var i=e.alternate;if(!i){if(i=Vb(e),i===null)throw Error(p(188));return i!==e?null:e}for(var s=e,a=i;;){var o=s.return;if(o===null)break;var h=o.alternate;if(h===null){if(a=o.return,a!==null){s=a;continue}break}if(o.child===h.child){for(h=o.child;h;){if(h===s)return Xb(o),e;if(h===a)return Xb(o),i;h=h.sibling}throw Error(p(188))}if(s.return!==a.return)s=o,a=h;else{for(var d=!1,g=o.child;g;){if(g===s){d=!0,s=o,a=h;break}if(g===a){d=!0,a=o,s=h;break}g=g.sibling}if(!d){for(g=h.child;g;){if(g===s){d=!0,s=h,a=o;break}if(g===a){d=!0,a=h,s=o;break}g=g.sibling}if(!d)throw Error(p(189))}}if(s.alternate!==a)throw Error(p(190))}if(s.tag!==3)throw Error(p(188));return s.stateNode.current===s?e:i}function Zb(e){return e=Yb(e),e!==null?$b(e):null}function $b(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var i=$b(e);if(i!==null)return i;e=e.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(e){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,e,void 0,(e.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(e){return e>>>=0,e===0?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,i){var s=e.pendingLanes;if(s===0)return 0;var a=0,o=e.suspendedLanes,h=e.pingedLanes,d=s&268435455;if(d!==0){var g=d&~o;g!==0?a=tc(g):(h&=d,h!==0&&(a=tc(h)))}else d=s&~o,d!==0?a=tc(d):h!==0&&(a=tc(h));if(a===0)return 0;if(i!==0&&i!==a&&!(i&o)&&(o=a&-a,h=i&-i,o>=h||o===16&&(h&4194240)!==0))return i;if(a&4&&(a|=s&16),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=a;0<i;)s=31-oc(i),o=1<<s,a|=e[s],i&=~o;return a}function vc(e,i){switch(e){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(e,i){for(var s=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes;0<h;){var d=31-oc(h),g=1<<d,b=o[d];b===-1?(!(g&s)||g&a)&&(o[d]=vc(g,i)):b<=i&&(e.expiredLanes|=g),h&=~g}}function xc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yc(){var e=rc;return rc<<=1,!(rc&4194240)&&(rc=64),e}function zc(e){for(var i=[],s=0;31>s;s++)i.push(e);return i}function Ac(e,i,s){e.pendingLanes|=i,i!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,i=31-oc(i),e[i]=s}function Bc(e,i){var s=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<s;){var o=31-oc(s),h=1<<o;i[o]=0,a[o]=-1,e[o]=-1,s&=~h}}function Cc(e,i){var s=e.entangledLanes|=i;for(e=e.entanglements;s;){var a=31-oc(s),o=1<<a;o&i|e[a]&i&&(e[a]|=i),s&=~o}}var C=0;function Dc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(e,i){switch(e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(i.pointerId)}}function Tc(e,i,s,a,o,h){return e===null||e.nativeEvent!==h?(e={blockedOn:i,domEventName:s,eventSystemFlags:a,nativeEvent:h,targetContainers:[o]},i!==null&&(i=Cb(i),i!==null&&Fc(i)),e):(e.eventSystemFlags|=a,i=e.targetContainers,o!==null&&i.indexOf(o)===-1&&i.push(o),e)}function Uc(e,i,s,a,o){switch(i){case"focusin":return Lc=Tc(Lc,e,i,s,a,o),!0;case"dragenter":return Mc=Tc(Mc,e,i,s,a,o),!0;case"mouseover":return Nc=Tc(Nc,e,i,s,a,o),!0;case"pointerover":var h=o.pointerId;return Oc.set(h,Tc(Oc.get(h)||null,e,i,s,a,o)),!0;case"gotpointercapture":return h=o.pointerId,Pc.set(h,Tc(Pc.get(h)||null,e,i,s,a,o)),!0}return!1}function Vc(e){var i=Wc(e.target);if(i!==null){var s=Vb(i);if(s!==null){if(i=s.tag,i===13){if(i=Wb(s),i!==null){e.blockedOn=i,Ic(e.priority,function(){Gc(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xc(e){if(e.blockedOn!==null)return!1;for(var i=e.targetContainers;0<i.length;){var s=Yc(e.domEventName,e.eventSystemFlags,i[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var a=new s.constructor(s.type,s);wb=a,s.target.dispatchEvent(a),wb=null}else return i=Cb(s),i!==null&&Fc(i),e.blockedOn=s,!1;i.shift()}return!0}function Zc(e,i,s){Xc(e)&&s.delete(i)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEac
vendor: 2,741 bytes, line 37
37h(Zc),Pc.forEach(Zc)}function ad(e,i){e.blockedOn===i&&(e.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(e){function i(o){return ad(o,e)}if(0<Kc.length){ad(Kc[0],e);for(var s=1;s<Kc.length;s++){var a=Kc[s];a.blockedOn===e&&(a.blockedOn=null)}}for(Lc!==null&&ad(Lc,e),Mc!==null&&ad(Mc,e),Nc!==null&&ad(Nc,e),Oc.forEach(i),Pc.forEach(i),s=0;s<Qc.length;s++)a=Qc[s],a.blockedOn===e&&(a.blockedOn=null);for(;0<Qc.length&&(s=Qc[0],s.blockedOn===null);)Vc(s),s.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(e,i,s,a){var o=C,h=cd.transition;cd.transition=null;try{C=1,fd(e,i,s,a)}finally{C=o,cd.transition=h}}function gd(e,i,s,a){var o=C,h=cd.transition;cd.transition=null;try{C=4,fd(e,i,s,a)}finally{C=o,cd.transition=h}}function fd(e,i,s,a){if(dd){var o=Yc(e,i,s,a);if(o===null)hd(e,i,a,id$2,s),Sc(e,a);else if(Uc(o,e,i,s,a))a.stopPropagation();else if(Sc(e,a),i&4&&-1<Rc.indexOf(e)){for(;o!==null;){var h=Cb(o);if(h!==null&&Ec(h),h=Yc(e,i,s,a),h===null&&hd(e,i,a,id$2,s),h===o)break;o=h}o!==null&&a.stopPropagation()}else hd(e,i,a,null,s)}}var id$2=null;function Yc(e,i,s,a){if(id$2=null,e=xb(a),e=Wc(e),e!==null)if(i=Vb(e),i===null)e=null;else if(s=i.tag,s===13){if(e=Wb(i),e!==null)return e;e=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;e=null}else i!==e&&(e=null);return id$2=e,null}function jd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;
vendor: 9,091 bytes, line 37
37function nd(){if(md)return md;var e,i=ld,s=i.length,a,o="value"in kd?kd.value:kd.textContent,h=o.length;for(e=0;e<s&&i[e]===o[e];e++);var d=s-e;for(a=1;a<=d&&i[s-a]===o[h-a];a++);return md=o.slice(e,1<a?1-a:void 0)}function od(e){var i=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&i===13&&(e=13)):e=i,e===10&&(e=13),32<=e||e===13?e:0}function pd(){return!0}function qd(){return!1}function rd(e){function i(s,a,o,h,d){this._reactName=s,this._targetInst=o,this.type=a,this.nativeEvent=h,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(s=e[g],this[g]=s?s(h):h[g]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),i}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yd&&(yd&&e.type==="mousemove"?(wd=e.screenX-yd.screenX,xd=e.screenY-yd.screenY):xd=wd=0,yd=e),wd)},movementY:function(e){return"movementY"in e?e.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(e){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(e):(e=Od[e])?!!i[e]:!1}function zd(){return Pd}var Qd=A({},ud,{key:function(e){if(e.key){var i=Md[e.key]||e.key;if(i!=="Unidentified")return i}return e.type==="keypress"?(e=od(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(e){return e.type==="keypress"?od(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?od(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=" ",fe=!1;function ge(e,i){switch(e){case"keyup":return $d.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ie=!1;function je(e,i){switch(e){case"compositionend":return he(i);case"keypress":return i.which!==32?null:(fe=!0,ee);case"textInput":return e=i.data,e===ee&&fe?null:e;default:return null}}function ke(e,i){if(ie)return e==="compositionend"||!ae&&ge(e,i)?(e=nd(),md=ld=kd=null,ie=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return de&&i.locale!=="ko"?null:i.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i==="input"?!!le[e.type]:i==="textarea"}function ne(e,i,s,a){Eb(a),i=oe(i,"onChange"),0<i.length&&(s=new td("onChange","change",null,s,a),e.push({event:s,listeners:i}))}var pe=null,qe=null;function re(e){se(e,0)}function te(e){var i=ue(e);if(Wa(i))return e}function ve(e,i){if(e==="change")return i}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(e){if(e.propertyName==="value"&&te(qe)){var i=[];ne(i,qe,e,xb(e)),Jb(re,i)}}function Ce(e,i,s){e==="focusin"?(Ae(),pe=i,qe=s,pe.attachEvent("onpropertychange",Be)):e==="focusout"&&Ae()}function De(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return te(qe)}function Ee(e,i){if(e==="click")return te(i)}function Fe(e,i){if(e==="input"||e==="change")return te(i)}function Ge(e,i){return e===i&&(e!==0||1/e===1/i)||e!==e&&i!==i}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(e,i){if(He(e,i))return!0;if(typeof e!="object"||e===null||typeof i!="object"||i===null)return!1;var s=Object.keys(e),a=Object.keys(i);if(s.length!==a.length)return!1;for(a=0;a<s.length;a++){var o=s[a];if(!ja.call(i,o)||!He(e[o],i[o]))return!1}return!0}function Je(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ke(e,i){var s=Je(e);e=0;for(var a;s;){if(s.nodeType===3){if(a=e+s.textContent.length,e<=i&&a>=i)return{node:s,offset:i-e};e=a}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Je(s)}}function Le(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?Le(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function Me(){for(var e=window,i=Xa();i instanceof e.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)e=i.contentWindow;else break;i=Xa(e.document)}return i}function Ne(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}function Oe(e){var i=Me(),s=e.focusedElem,a=e.selectionRange;if(i!==s&&s&&s.ownerDocument&&Le(s.ownerDocument.documentElement,s)){if(a!==null&&Ne(s)){if(i=a.start,e=a.end,e===void 0&&(e=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(e,s.value.length);else if(e=(i=s.ownerDocument||document)&&i.defaultView||window,e.getSelection){e=e.getSelection();var o=s.textContent.length,h=Math.min(a.start,o);a=a.end===void 0?h:Math.min(a.end,o),!e.extend&&h>a&&(o=a,a=h,h=o),o=Ke(s,h);var d=Ke(s,a);o&&d&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(i=i.createRange(),i.setStart(o.node,o.offset),e.removeAllRanges(),h>a?(e.addRange(i),e.extend(d.node,d.offset)):(i.setEnd(d.node,d.offset),e.addRange(i)))}}for(i=[],e=s;e=e.parentNode;)e.nodeType===1&&i.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)e=i[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(e,i,s){var a=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Te||Qe==null||Qe!==Xa(a)||(a=Qe,"selectionStart"in a&&Ne(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focu
vendor: 14,125 bytes, lines 37-38
37sNode:a.focusNode,focusOffset:a.focusOffset}),Se&&Ie(Se,a)||(Se=a,a=oe(Re,"onSelect"),0<a.length&&(i=new td("onSelect","select",null,i,s),e.push({event:i,listeners:a}),i.target=Qe)))}function Ve(e,i){var s={};return s[e.toLowerCase()]=i.toLowerCase(),s["Webkit"+e]="webkit"+i,s["Moz"+e]="moz"+i,s}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(e){if(Xe[e])return Xe[e];if(!We[e])return e;var i=We[e],s;for(s in i)if(i.hasOwnProperty(s)&&s in Ye)return Xe[e]=i[s];return e}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(e,i){df.set(e,i),fa(i,[e])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(e,i,s){var a=e.type||"unknown-event";e.currentTarget=s,Ub(a,i,void 0,e),e.currentTarget=null}function se(e,i){i=(i&4)!==0;for(var s=0;s<e.length;s++){var a=e[s],o=a.event;a=a.listeners;e:{var h=void 0;if(i)for(var d=a.length-1;0<=d;d--){var g=a[d],b=g.instance,_=g.currentTarget;if(g=g.listener,b!==h&&o.isPropagationStopped())break e;nf(o,g,_),h=b}else for(d=0;d<a.length;d++){if(g=a[d],b=g.instance,_=g.currentTarget,g=g.listener,b!==h&&o.isPropagationStopped())break e;nf(o,g,_),h=b}}}if(Qb)throw e=Rb,Qb=!1,Rb=null,e}function D(e,i){var s=i[of];s===void 0&&(s=i[of]=new Set);var a=e+"__bubble";s.has(a)||(pf(i,e,2,!1),s.add(a))}function qf(e,i,s){var a=0;i&&(a|=4),pf(s,e,a,i)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(e){if(!e[rf]){e[rf]=!0,da.forEach(function(s){s!=="selectionchange"&&(mf.has(s)||qf(s,!1,e),qf(s,!0,e))});var i=e.nodeType===9?e:e.ownerDocument;i===null||i[rf]||(i[rf]=!0,qf("selectionchange",!1,i))}}function pf(e,i,s,a){switch(jd(i)){case 1:var o=ed;break;case 4:o=gd;break;default:o=fd}s=o.bind(null,i,s,e),o=void 0,!Lb||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(i,s,{capture:!0,passive:o}):e.addEventListener(i,s,!0):o!==void 0?e.addEventListener(i,s,{passive:o}):e.addEventListener(i,s,!1)}function hd(e,i,s,a,o){var h=a;if(!(i&1)&&!(i&2)&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var g=a.stateNode.containerInfo;if(g===o||g.nodeType===8&&g.parentNode===o)break;if(d===4)for(d=a.return;d!==null;){var b=d.tag;if((b===3||b===4)&&(b=d.stateNode.containerInfo,b===o||b.nodeType===8&&b.parentNode===o))return;d=d.return}for(;g!==null;){if(d=Wc(g),d===null)return;if(b=d.tag,b===5||b===6){a=h=d;continue e}g=g.parentNode}}a=a.return}Jb(function(){var _=h,j=xb(s),_e=[];e:{var tt=df.get(e);if(tt!==void 0){var $=td,nt=e;switch(e){case"keypress":if(od(s)===0)break e;case"keydown":case"keyup":$=Rd;break;case"focusin":nt="focus",$=Fd;break;case"focusout":nt="blur",$=Fd;break;case"beforeblur":case"afterblur":$=Fd;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=Vd;break;case $e:case af:case bf:$=Hd;break;case cf:$=Xd;break;case"scroll":$=vd;break;case"wheel":$=Zd;break;case"copy":case"cut":case"paste":$=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Td}var it=(i&4)!==0,et=!it&&e==="scroll",rt=it?tt!==null?tt+"Capture":null:tt;it=[];for(var st=_,at;st!==null;){at=st;var ot=at.stateNode;if(at.tag===5&&ot!==null&&(at=ot,rt!==null&&(ot=Kb(st,rt),ot!=null&&it.push(tf(st,ot,at)))),et)break;st=st.return}0<it.length&&(tt=new $(tt,nt,null,s,j),_e.push({event:tt,listeners:it}))}}if(!(i&7)){e:{if(tt=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",tt&&s!==wb&&(nt=s.relatedTarget||s.fromElement)&&(Wc(nt)||nt[uf]))break e;if(($||tt)&&(tt=j.window===j?j:(tt=j.ownerDocument)?tt.defaultView||tt.parentWindow:window,$?(nt=s.relatedTarget||s.toElement,$=_,nt=nt?Wc(nt):null,nt!==null&&(et=Vb(nt),nt!==et||nt.tag!==5&&nt.tag!==6)&&(nt=null)):($=null,nt=_),$!==nt)){if(it=Bd,ot="onMouseLeave",rt="onMouseEnter",st="mouse",(e==="pointerout"||e==="pointerover")&&(it=Td,ot="onPointerLeave",rt="onPointerEnter",st="pointer"),et=$==null?tt:ue($),at=nt==null?tt:ue(nt),tt=new it(ot,st+"leave",$,s,j),tt.target=et,tt.relatedTarget=at,ot=null,Wc(j)===_&&(it=new it(rt,st+"enter",nt,s,j),it.target=at,it.relatedTarget=et,ot=it),et=ot,$&&nt)t:{for(it=$,rt=nt,st=0,at=it;at;at=vf(at))st++;for(at=0,ot=rt;ot;ot=vf(ot))at++;for(;0<st-at;)it=vf(it),st--;for(;0<at-st;)rt=vf(rt),at--;for(;st--;){if(it===rt||rt!==null&&it===rt.alternate)break t;it=vf(it),rt=vf(rt)}it=null}else it=null;$!==null&&wf(_e,tt,$,it,!1),nt!==null&&et!==null&&wf(_e,et,nt,it,!0)}}e:{if(tt=_?ue(_):window,$=tt.nodeName&&tt.nodeName.toLowerCase(),$==="select"||$==="input"&&tt.type==="file")var lt=ve;else if(me(tt))if(we)lt=Fe;else{lt=De;var pt=Ce}else($=tt.nodeName)&&$.toLowerCase()==="input"&&(tt.type==="checkbox"||tt.type==="radio")&&(lt=Ee);if(lt&&(lt=lt(e,_))){ne(_e,lt,s,j);break e}pt&&pt(e,tt,_),e==="focusout"&&(pt=tt._wrapperState)&&pt.controlled&&tt.type==="number"&&cb(tt,"number",tt.value)}switch(pt=_?ue(_):window,e){case"focusin":(me(pt)||pt.contentEditable==="true")&&(Qe=pt,Re=_,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(_e,s,j);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(_e,s,j)}var ct;if(ae)e:{switch(e){case"compositionstart":var ut="onCompositionStart";break e;case"compositionend":ut="onCompositionEnd";break e;case"compositionupdate":ut="onCompositionUpdate";break e}ut=void 0}else ie?ge(e,s)&&(ut="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(ut="onCompositionStart");ut&&(de&&s.locale!=="ko"&&(ie||ut!=="onCompositionStart"?ut==="onCompositionEnd"&&ie&&(ct=nd()):(kd=j,ld="value"in kd?kd.value:kd.textContent,ie=!0)),pt=oe(_,ut),0<pt.length&&(ut=new Ld(ut,e,null,s,j),_e.push({event:ut,listeners:pt}),ct?ut.data=ct:(ct=he(s),ct!==null&&(ut.data=ct)))),(ct=ce?je(e,s):ke(e,s))&&(_=oe(_,"onBeforeInput"),0<_.length&&(j=new Ld("onBeforeInput","beforeinput",null,s,j),_e.push({event:j,listeners:_}),j.data=ct))}se(_e,i)})}function tf(e,i,s){return{instance:e,listener:i,currentTarget:s}}function oe(e,i){for(var s=i+"Capture",a=[];e!==null;){var o=e,h=o.stateNode;o.tag===5&&h!==null&&(o=h,h=Kb(e,s),h!=null&&a.unshift(tf(e,h,o)),h=Kb(e,i),h!=null&&a.push(tf(e,h,o))),e=e.return}return a}function vf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wf(e,i,s,a,o){for(var h=i._reactName,d=[];s!==null&&s!==a;){var g=s,b=g.alternate,_=g.stateNode;if(b!==null&&b===a)break;g.tag===5&&_!==null&&(g=_,o?(b=Kb(s,h),b!=null&&d.unshift(tf(s,b,g))):o||(b=Kb(s,h),b!=null&&d.push(tf(s,b,g)))),s=s.return}d.length!==0&&e.push({event:i,listeners:d})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(e){return(typeof e=="string"?e:""+e).replace(xf,`
38`).replace(yf,"")}function Af(e,i,s){if(i=zf(i),zf(e)!==i&&s)throw Error(p(425))}function Bf(){}var Cf=null,Df=null;function Ef(e,i){return e==="textarea"||e==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(e){return Hf.resolve(null).then(e).catch(If)}:Ff;function If(e){setTimeout(function(){throw e})}function Kf(e,i){var s=i,a=0;do{var o=s.nextSibling;if(e.removeChild(s),o&&o.nodeType===8)if(s=o.data,s==="/$"){if(a===0){e.removeChild(o),bd(i);return}a--}else s!=="$"&&s!=="$?"&&s!=="$!"||a++;s=o}while(s);bd(i)}function Lf(e){for(;e!=null;e=e.nextSibling){var i=e.nodeType;if(i===1||i===3)break;if(i===8){if(i=e.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return e}function Mf(e){e=e.previousSibling;for(var i=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return e;i--}else s==="/$"&&i++}e=e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(e){var i=e[Of];if(i)return i;for(var s=e.parentNode;s;){if(i=s[uf]||s[Of]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(e=Mf(e);e!==null;){if(s=e[Of])return s;e=Mf(e)}return i}e=s,s=e.parentNode}return null}function Cb(e){return e=e[Of]||e[uf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ue(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(p(33))}function Db(e){return e[Pf]||null}var Sf=[],Tf=-1;function Uf(e){return{current:e}}function E(e){0>Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,i){Tf++,Sf[Tf]=e.current,e.current=i}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,i){var s=e.type.contextTypes;if(!s)return Vf;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===i)return a.__reactInternalMemoizedMaskedChildContext;var o={},h;for(h in s)o[h]=i[h];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),o}function Zf(e){return e=e.childContextTypes,e!=null}function $f(){E(Wf),E(H)}function ag(e,i,s){if(H.current!==Vf)throw Error(p(168));G(H,i),G(Wf,s)}function bg(e,i,s){var a=e.stateNode;if(i=i.childContextTypes,typeof a.getChildContext!="function")return s;a=a.getChildContext();for(var o in a)if(!(o in i))throw Error(p(108,Ra(e)||"Unknown",o));return A({},s,a)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,i,s){var a=e.stateNode;if(!a)throw Error(p(169));s?(e=bg(e,i,Xf),a.__reactInternalMemoizedMergedChildContext=e,E(Wf),E(H),G(H,e)):E(Wf),G(Wf,s)}var eg=null,fg=!1,gg=!1;function hg(e){eg===null?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&eg!==null){gg=!0;var e=0,i=C;try{var s=eg;for(C=1;e<s.length;e++){var a=s[e];do a=a(!0);while(a!==null)}eg=null,fg=!1}catch(o){throw eg!==null&&(eg=eg.slice(e+1)),ac(fc,jg),o}finally{C=i,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(e,i){kg[lg++]=ng,kg[lg++]=mg,mg=e,ng=i}function ug(e,i,s){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=e;var a=rg;e=sg;var o=32-oc(a)-1;a&=~(1<<o),s+=1;var h=32-oc(i)+o;if(30<h){var d=o-o%5;h=(a&(1<<d)-1).toString(32),a>>=d,o-=d,rg=1<<32-oc(i)+o|s<<o|a,sg=h+e}else rg=1<<h|s<<o|a,sg=e}function vg(e){e.return!==null&&(tg(e,1),ug(e,1,0))}function wg(e){for(;e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(e,i){var s=Bg(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=e,i=e.deletions,i===null?(e.deletions=[s],e.flags|=16):i.push(s)}function Cg(e,i){switch(e.tag){case 5:var s=e.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(e.stateNode=i,xg=e,yg=Lf(i.firstChild),!0):!1;case 6:return i=e.pendingProps===""||i.nodeType!==3?null:i,i!==null?(e.stateNode=i,xg=e,yg=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=qg!==null?{id:rg,overflow:sg}:null,e.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=Bg(18,null,null,0),s.stateNode=i,s.return=e,e.child=s,xg=e,yg=null,!0):!1;default:return!1}}function Dg(e){return(e.mode&1)!==0&&(e.flags&128)===0}
vendor: 3,758 bytes, line 38
38function Eg(e){if(I){var i=yg;if(i){var s=i;if(!Cg(e,i)){if(Dg(e))throw Error(p(418));i=Lf(s.nextSibling);var a=xg;i&&Cg(e,i)?Ag(a,s):(e.flags=e.flags&-4097|2,I=!1,xg=e)}}else{if(Dg(e))throw Error(p(418));e.flags=e.flags&-4097|2,I=!1,xg=e}}}function Fg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xg=e}function Gg(e){if(e!==xg)return!1;if(!I)return Fg(e),I=!0,!1;var i;if((i=e.tag!==3)&&!(i=e.tag!==5)&&(i=e.type,i=i!=="head"&&i!=="body"&&!Ef(e.type,e.memoizedProps)),i&&(i=yg)){if(Dg(e))throw Hg(),Error(p(418));for(;i;)Ag(e,i),i=Lf(i.nextSibling)}if(Fg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(p(317));e:{for(e=e.nextSibling,i=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(i===0){yg=Lf(e.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}e=e.nextSibling}yg=null}}else yg=xg?Lf(e.stateNode.nextSibling):null;return!0}function Hg(){for(var e=yg;e;)e=Lf(e.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(e){zg===null?zg=[e]:zg.push(e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(e,i){if(e&&e.defaultProps){i=A({},i),e=e.defaultProps;for(var s in e)i[s]===void 0&&(i[s]=e[s]);return i}return i}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(e){var i=Mg.current;E(Mg),e._currentValue=i}function Sg(e,i,s){for(;e!==null;){var a=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,a!==null&&(a.childLanes|=i)):a!==null&&(a.childLanes&i)!==i&&(a.childLanes|=i),e===s)break;e=e.return}}function Tg(e,i){Ng=e,Pg=Og=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&i&&(Ug=!0),e.firstContext=null)}function Vg(e){var i=e._currentValue;if(Pg!==e)if(e={context:e,memoizedValue:i,next:null},Og===null){if(Ng===null)throw Error(p(308));Og=e,Ng.dependencies={lanes:0,firstContext:e}}else Og=Og.next=e;return i}var Wg=null;function Xg(e){Wg===null?Wg=[e]:Wg.push(e)}function Yg(e,i,s,a){var o=i.interleaved;return o===null?(s.next=s,Xg(i)):(s.next=o.next,o.next=s),i.interleaved=s,Zg(e,a)}function Zg(e,i){e.lanes|=i;var s=e.alternate;for(s!==null&&(s.lanes|=i),s=e,e=e.return;e!==null;)e.childLanes|=i,s=e.alternate,s!==null&&(s.childLanes|=i),s=e,e=e.return;return s.tag===3?s.stateNode:null}var $g=!1;function ah(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ch(e,i){return{eventTime:e,lane:i,tag:0,payload:null,callback:null,next:null}}function dh(e,i,s){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,K&2){var o=a.pending;return o===null?i.next=i:(i.next=o.next,o.next=i),a.pending=i,Zg(e,s)}return o=a.interleaved,o===null?(i.next=i,Xg(a)):(i.next=o.next,o.next=i),a.interleaved=i,Zg(e,s)}function eh(e,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var a=i.lanes;a&=e.pendingLanes,s|=a,i.lanes=s,Cc(e,s)}}function fh(e,i){var s=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,s===a)){var o=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var d={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};h===null?o=h=d:h=h.next=d,s=s.next}while(s!==null);h===null?o=h=i:h=h.next=i}else o=h=i;s={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:a.shared,effects:a.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=i:e.next=i,s.lastBaseUpdate=i}function gh(e,i,s,a){var o=e.updateQueue;$g=!1;var h=o.firstBaseUpdate,d=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var b=g,_=b.next;
vendor: 7,175 bytes, line 38
38b.next=null,d===null?h=_:d.next=_,d=b;var j=e.alternate;j!==null&&(j=j.updateQueue,g=j.lastBaseUpdate,g!==d&&(g===null?j.firstBaseUpdate=_:g.next=_,j.lastBaseUpdate=b))}if(h!==null){var _e=o.baseState;d=0,j=_=b=null,g=h;do{var tt=g.lane,$=g.eventTime;if((a&tt)===tt){j!==null&&(j=j.next={eventTime:$,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var nt=e,it=g;switch(tt=i,$=s,it.tag){case 1:if(nt=it.payload,typeof nt=="function"){_e=nt.call($,_e,tt);break e}_e=nt;break e;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=it.payload,tt=typeof nt=="function"?nt.call($,_e,tt):nt,tt==null)break e;_e=A({},_e,tt);break e;case 2:$g=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,tt=o.effects,tt===null?o.effects=[g]:tt.push(g))}else $={eventTime:$,lane:tt,tag:g.tag,payload:g.payload,callback:g.callback,next:null},j===null?(_=j=$,b=_e):j=j.next=$,d|=tt;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;tt=g,g=tt.next,tt.next=null,o.lastBaseUpdate=tt,o.shared.pending=null}}while(!0);if(j===null&&(b=_e),o.baseState=b,o.firstBaseUpdate=_,o.lastBaseUpdate=j,i=o.shared.interleaved,i!==null){o=i;do d|=o.lane,o=o.next;while(o!==i)}else h===null&&(o.shared.lanes=0);hh|=d,e.lanes=d,e.memoizedState=_e}}function ih(e,i,s){if(e=i.effects,i.effects=null,e!==null)for(i=0;i<e.length;i++){var a=e[i],o=a.callback;if(o!==null){if(a.callback=null,a=s,typeof o!="function")throw Error(p(191,o));o.call(a)}}}var jh=new aa.Component().refs;function kh(e,i,s,a){i=e.memoizedState,s=s(a,i),s=s==null?i:A({},i,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var nh={isMounted:function(e){return(e=e._reactInternals)?Vb(e)===e:!1},enqueueSetState:function(e,i,s){e=e._reactInternals;var a=L(),o=lh(e),h=ch(a,o);h.payload=i,s!=null&&(h.callback=s),i=dh(e,h,o),i!==null&&(mh(i,e,o,a),eh(i,e,o))},enqueueReplaceState:function(e,i,s){e=e._reactInternals;var a=L(),o=lh(e),h=ch(a,o);h.tag=1,h.payload=i,s!=null&&(h.callback=s),i=dh(e,h,o),i!==null&&(mh(i,e,o,a),eh(i,e,o))},enqueueForceUpdate:function(e,i){e=e._reactInternals;var s=L(),a=lh(e),o=ch(s,a);o.tag=2,i!=null&&(o.callback=i),i=dh(e,o,a),i!==null&&(mh(i,e,a,s),eh(i,e,a))}};function oh(e,i,s,a,o,h,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,h,d):i.prototype&&i.prototype.isPureReactComponent?!Ie(s,a)||!Ie(o,h):!0}function ph(e,i,s){var a=!1,o=Vf,h=i.contextType;return typeof h=="object"&&h!==null?h=Vg(h):(o=Zf(i)?Xf:H.current,a=i.contextTypes,h=(a=a!=null)?Yf(e,o):Vf),i=new i(s,h),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=nh,e.stateNode=i,i._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=h),i}function qh(e,i,s,a){e=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,a),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,a),i.state!==e&&nh.enqueueReplaceState(i,i.state,null)}function rh(e,i,s,a){var o=e.stateNode;o.props=s,o.state=e.memoizedState,o.refs=jh,ah(e);var h=i.contextType;typeof h=="object"&&h!==null?o.context=Vg(h):(h=Zf(i)?Xf:H.current,o.context=Yf(e,h)),o.state=e.memoizedState,h=i.getDerivedStateFromProps,typeof h=="function"&&(kh(e,i,h,s),o.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(i=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),i!==o.state&&nh.enqueueReplaceState(o,o.state,null),gh(e,s,o,a),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function sh(e,i,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(p(309));var a=s.stateNode}if(!a)throw Error(p(147,e));var o=a,h=""+e;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===h?i.ref:(i=function(d){var g=o.refs;g===jh&&(g=o.refs={}),d===null?delete g[h]:g[h]=d},i._stringRef=h,i)}if(typeof e!="string")throw Error(p(284));if(!s._owner)throw Error(p(290,e))}return e}function th(e,i){throw e=Object.prototype.toString.call(i),Error(p(31,e==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":e))}function uh(e){var i=e._init;return i(e._payload)}function vh$1(e){function i(rt,st){if(e){var at=rt.deletions;at===null?(rt.deletions=[st],rt.flags|=16):at.push(st)}}function s(rt,st){if(!e)return null;for(;st!==null;)i(rt,st),st=st.sibling;return null}function a(rt,st){for(rt=new Map;st!==null;)st.key!==null?rt.set(st.key,st):rt.set(st.index,st),st=st.sibling;return rt}function o(rt,st){return rt=wh(rt,st),rt.index=0,rt.sibling=null,rt}function h(rt,st,at){return rt.index=at,e?(at=rt.alternate,at!==null?(at=at.index,at<st?(rt.flags|=2,st):at):(rt.flags|=2,st)):(rt.flags|=1048576,st)}function d(rt){return e&&rt.alternate===null&&(rt.flags|=2),rt}function g(rt,st,at,ot){return st===null||st.tag!==6?(st=xh(at,rt.mode,ot),st.return=rt,st):(st=o(st,at),st.return=rt,st)}function b(rt,st,at,ot){var lt=at.type;return lt===ya?j(rt,st,at.props.children,ot,at.key):st!==null&&(st.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Ha&&uh(lt)===st.type)?(ot=o(st,at.props),ot.ref=sh(rt,st,at),ot.return=rt,ot):(ot=yh(at.type,at.key,at.props,null,rt.mode,ot),ot.ref=sh(rt,st,at),ot.return=rt,ot)}function _(rt,st,at,ot){return st===null||st.tag!==4||st.stateNode.containerInfo!==at.containerInfo||st.stateNode.implementation!==at.implementation?(st=zh(at,rt.mode,ot),st.return=rt,st):(st=o(st,at.children||[]),st.return=rt,st)}function j(rt,st,at,ot,lt){return st===null||st.tag!==7?(st=Ah(at,rt.mode,ot,lt),st.return=rt,st):(st=o(st,at),st.return=rt,st)}function _e(rt,st,at){if(typeof st=="string"&&st!==""||typeof st=="number")return st=xh(""+st,rt.mode,at),st.return=rt,st;if(typeof st=="object"&&st!==null){switch(st.$$typeof){case va:return at=yh(st.type,st.key,st.props,null,rt.mode,at),at.ref=sh(rt,null,st),at.return=rt,at;case wa:return st=zh(st,rt.mode,at),st.return=rt,st;case Ha:var ot=st._init;return _e(rt,ot(st._payload),at)}if(eb(st)||Ka(st))return st=Ah(st,rt.mode,at,null),st.return=rt,st;th(rt,st)}return null}function tt(rt,st,at,ot){var lt=st!==null?st.key:null;if(typeof at=="string"&&at!==""||typeof at=="number")return lt!==null?null:g(rt,st,""+at,ot);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case va:return at.key===lt?b(rt,st,at,ot):null;case wa:return at.key===lt?_(rt,st,at,ot):null;case Ha:return lt=at._init,tt(rt,st,lt(at._payload),ot)}if(eb(at)||Ka(at))return lt!==null?null:j(rt,st,at,ot,null);th(rt,at)}return null}function $(rt,st,at,ot,lt){if(typeof ot=="string"&&ot!==""||typeof ot=="number")return rt=rt.get(at)||null,g(st,rt,""+ot,lt);if(typeof ot=="object"&&ot!==null){switch(ot.$$typeof){case va:return rt=rt.get(ot.key===null?at:ot.key)||null,b(st,rt,ot,lt);case wa:return rt=rt.get(ot.key===null?at:ot.key)||null,_(st,rt,ot,lt);case Ha:var pt=ot._init;return $(rt,st,at,pt(ot._payload),lt)}
vendor: 20,610 bytes, lines 38-40
38if(eb(ot)||Ka(ot))return rt=rt.get(at)||null,j(st,rt,ot,lt,null);th(st,ot)}return null}function nt(rt,st,at,ot){for(var lt=null,pt=null,ct=st,ut=st=0,mt=null;ct!==null&&ut<at.length;ut++){ct.index>ut?(mt=ct,ct=null):mt=ct.sibling;var ft=tt(rt,ct,at[ut],ot);if(ft===null){ct===null&&(ct=mt);break}e&&ct&&ft.alternate===null&&i(rt,ct),st=h(ft,st,ut),pt===null?lt=ft:pt.sibling=ft,pt=ft,ct=mt}if(ut===at.length)return s(rt,ct),I&&tg(rt,ut),lt;if(ct===null){for(;ut<at.length;ut++)ct=_e(rt,at[ut],ot),ct!==null&&(st=h(ct,st,ut),pt===null?lt=ct:pt.sibling=ct,pt=ct);return I&&tg(rt,ut),lt}for(ct=a(rt,ct);ut<at.length;ut++)mt=$(ct,rt,ut,at[ut],ot),mt!==null&&(e&&mt.alternate!==null&&ct.delete(mt.key===null?ut:mt.key),st=h(mt,st,ut),pt===null?lt=mt:pt.sibling=mt,pt=mt);return e&&ct.forEach(function(dt){return i(rt,dt)}),I&&tg(rt,ut),lt}function it(rt,st,at,ot){var lt=Ka(at);if(typeof lt!="function")throw Error(p(150));if(at=lt.call(at),at==null)throw Error(p(151));for(var pt=lt=null,ct=st,ut=st=0,mt=null,ft=at.next();ct!==null&&!ft.done;ut++,ft=at.next()){ct.index>ut?(mt=ct,ct=null):mt=ct.sibling;var dt=tt(rt,ct,ft.value,ot);if(dt===null){ct===null&&(ct=mt);break}e&&ct&&dt.alternate===null&&i(rt,ct),st=h(dt,st,ut),pt===null?lt=dt:pt.sibling=dt,pt=dt,ct=mt}if(ft.done)return s(rt,ct),I&&tg(rt,ut),lt;if(ct===null){for(;!ft.done;ut++,ft=at.next())ft=_e(rt,ft.value,ot),ft!==null&&(st=h(ft,st,ut),pt===null?lt=ft:pt.sibling=ft,pt=ft);return I&&tg(rt,ut),lt}for(ct=a(rt,ct);!ft.done;ut++,ft=at.next())ft=$(ct,rt,ut,ft.value,ot),ft!==null&&(e&&ft.alternate!==null&&ct.delete(ft.key===null?ut:ft.key),st=h(ft,st,ut),pt===null?lt=ft:pt.sibling=ft,pt=ft);return e&&ct.forEach(function(St){return i(rt,St)}),I&&tg(rt,ut),lt}function et(rt,st,at,ot){if(typeof at=="object"&&at!==null&&at.type===ya&&at.key===null&&(at=at.props.children),typeof at=="object"&&at!==null){switch(at.$$typeof){case va:e:{for(var lt=at.key,pt=st;pt!==null;){if(pt.key===lt){if(lt=at.type,lt===ya){if(pt.tag===7){s(rt,pt.sibling),st=o(pt,at.props.children),st.return=rt,rt=st;break e}}else if(pt.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Ha&&uh(lt)===pt.type){s(rt,pt.sibling),st=o(pt,at.props),st.ref=sh(rt,pt,at),st.return=rt,rt=st;break e}s(rt,pt);break}else i(rt,pt);pt=pt.sibling}at.type===ya?(st=Ah(at.props.children,rt.mode,ot,at.key),st.return=rt,rt=st):(ot=yh(at.type,at.key,at.props,null,rt.mode,ot),ot.ref=sh(rt,st,at),ot.return=rt,rt=ot)}return d(rt);case wa:e:{for(pt=at.key;st!==null;){if(st.key===pt)if(st.tag===4&&st.stateNode.containerInfo===at.containerInfo&&st.stateNode.implementation===at.implementation){s(rt,st.sibling),st=o(st,at.children||[]),st.return=rt,rt=st;break e}else{s(rt,st);break}else i(rt,st);st=st.sibling}st=zh(at,rt.mode,ot),st.return=rt,rt=st}return d(rt);case Ha:return pt=at._init,et(rt,st,pt(at._payload),ot)}if(eb(at))return nt(rt,st,at,ot);if(Ka(at))return it(rt,st,at,ot);th(rt,at)}return typeof at=="string"&&at!==""||typeof at=="number"?(at=""+at,st!==null&&st.tag===6?(s(rt,st.sibling),st=o(st,at),st.return=rt,rt=st):(s(rt,st),st=xh(at,rt.mode,ot),st.return=rt,rt=st),d(rt)):s(rt,st)}return et}var Bh=vh$1(!0),Ch=vh$1(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(e){if(e===Dh)throw Error(p(174));return e}function Ih(e,i){switch(G(Gh,i),G(Fh,e),G(Eh,Dh),e=i.nodeType,e){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:lb(null,"");break;default:e=e===8?i.parentNode:i,i=e.namespaceURI||null,e=e.tagName,i=lb(i,e)}E(Eh),G(Eh,i)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(e){Hh(Gh.current);var i=Hh(Eh.current),s=lb(i,e.type);i!==s&&(G(Fh,e),G(Eh,s))}function Lh(e){Fh.current===e&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(e){for(var i=e;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Nh=[];function Oh(){for(var e=0;e<Nh.length;e++)Nh[e]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q(){throw Error(p(321))}function Wh(e,i){if(i===null)return!1;for(var s=0;s<i.length&&s<e.length;s++)if(!He(e[s],i[s]))return!1;return!0}function Xh(e,i,s,a,o,h){if(Rh=h,N=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Ph.current=e===null||e.memoizedState===null?Yh:Zh,e=s(a,o),Th){h=0;do{if(Th=!1,Uh=0,25<=h)throw Error(p(301));h+=1,P=O=null,i.updateQueue=null,Ph.current=$h,e=s(a,o)}while(Th)}if(Ph.current=ai,i=O!==null&&O.next!==null,Rh=0,P=O=N=null,Sh=!1,i)throw Error(p(300));return e}function bi(){var e=Uh!==0;return Uh=0,e}function ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P===null?N.memoizedState=P=e:P=P.next=e,P}function di(){if(O===null){var e=N.alternate;e=e!==null?e.memoizedState:null}else e=O.next;var i=P===null?N.memoizedState:P.next;if(i!==null)P=i,O=e;else{if(e===null)throw Error(p(310));O=e,e={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null},P===null?N.memoizedState=P=e:P=P.next=e}return P}function ei(e,i){return typeof i=="function"?i(e):i}function fi(e){var i=di(),s=i.queue;if(s===null)throw Error(p(311));s.lastRenderedReducer=e;var a=O,o=a.baseQueue,h=s.pending;if(h!==null){if(o!==null){var d=o.next;o.next=h.next,h.next=d}a.baseQueue=o=h,s.pending=null}if(o!==null){h=o.next,a=a.baseState;var g=d=null,b=null,_=h;do{var j=_.lane;if((Rh&j)===j)b!==null&&(b=b.next={lane:0,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),a=_.hasEagerState?_.eagerState:e(a,_.action);else{var _e={lane:j,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null};b===null?(g=b=_e,d=a):b=b.next=_e,N.lanes|=j,hh|=j}_=_.next}while(_!==null&&_!==h);b===null?d=a:b.next=g,He(a,i.memoizedState)||(Ug=!0),i.memoizedState=a,i.baseState=d,i.baseQueue=b,s.lastRenderedState=a}if(e=s.interleaved,e!==null){o=e;do h=o.lane,N.lanes|=h,hh|=h,o=o.next;while(o!==e)}else o===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function gi(e){var i=di(),s=i.queue;if(s===null)throw Error(p(311));s.lastRenderedReducer=e;var a=s.dispatch,o=s.pending,h=i.memoizedState;if(o!==null){s.pending=null;var d=o=o.next;do h=e(h,d.action),d=d.next;while(d!==o);He(h,i.memoizedState)||(Ug=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),s.lastRenderedState=h}return[h,a]}function hi(){}function ii(e,i){var s=N,a=di(),o=i(),h=!He(a.memoizedState,o);if(h&&(a.memoizedState=o,Ug=!0),a=a.queue,ji(ki.bind(null,s,a,e),[e]),a.getSnapshot!==i||h||P!==null&&P.memoizedState.tag&1){if(s.flags|=2048,li(9,mi.bind(null,s,a,o,i),void 0,null),R===null)throw Error(p(349));Rh&30||ni(s,i,o)}return o}function ni(e,i,s){e.flags|=16384,e={getSnapshot:i,value:s},i=N.updateQueue,i===null?(i={lastEffect:null,stores:null},N.updateQueue=i,i.stores=[e]):(s=i.stores,s===null?i.stores=[e]:s.push(e))}function mi(e,i,s,a){i.value=s,i.getSnapshot=a,oi(i)&&pi(e)}function ki(e,i,s){return s(function(){oi(i)&&pi(e)})}function oi(e){var i=e.getSnapshot;e=e.value;try{var s=i();return!He(e,s)}catch{return!0}}function pi(e){var i=Zg(e,1);i!==null&&mh(i,e,1,-1)}function qi(e){var i=ci();return typeof e=="function"&&(e=e()),i.memoizedState=i.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e},i.queue=e,e=e.dispatch=ri.bind(null,N,e),[i.memoizedState,e]}function li(e,i,s,a){return e={tag:e,create:i,destroy:s,deps:a,next:null},i=N.updateQueue,i===null?(i={lastEffect:null,stores:null},N.updateQueue=i,i.lastEffect=e.next=e):(s=i.lastEffect,s===null?i.lastEffect=e.next=e:(a=s.next,s.next=e,e.next=a,i.lastEffect=e)),e}function si(){return di().memoizedState}function ti(e,i,s,a){var o=ci();N.flags|=e,o.memoizedState=li(1|i,s,void 0,a===void 0?null:a)}function ui(e,i,s,a){var o=di();a=a===void 0?null:a;var h=void 0;if(O!==null){var d=O.memoizedState;if(h=d.destroy,a!==null&&Wh(a,d.deps)){o.memoizedState=li(i,s,h,a);return}}N.flags|=e,o.memoizedState=li(1|i,s,h,a)}function vi(e,i){return ti(8390656,8,e,i)}function ji(e,i){return ui(2048,8,e,i)}function wi(e,i){return ui(4,2,e,i)}function xi(e,i){return ui(4,4,e,i)}function yi(e,i){if(typeof i=="function")return e=e(),i(e),function(){i(null)};if(i!=null)return e=e(),i.current=e,function(){i.current=null}}function zi(e,i,s){return s=s!=null?s.concat([e]):null,ui(4,4,yi.bind(null,i,e),s)}function Ai(){}function Bi(e,i){var s=di();i=i===void 0?null:i;var a=s.memoizedState;return a!==null&&i!==null&&Wh(i,a[1])?a[0]:(s.memoizedState=[e,i],e)}function Ci(e,i){var s=di();i=i===void 0?null:i;var a=s.memoizedState;return a!==null&&i!==null&&Wh(i,a[1])?a[0]:(e=e(),s.memoizedState=[e,i],e)}function Di(e,i,s){return Rh&21?(He(s,i)||(s=yc(),N.lanes|=s,hh|=s,e.baseState=!0),i):(e.baseState&&(e.baseState=!1,Ug=!0),e.memoizedState=s)}function Ei(e,i){var s=C;C=s!==0&&4>s?s:4,e(!0);var a=Qh.transition;Qh.transition={};try{e(!1),i()}finally{C=s,Qh.transition=a}}function Fi(){return di().memoizedState}function Gi(e,i,s){var a=lh(e);if(s={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null},Hi(e))Ii(i,s);else if(s=Yg(e,i,s,a),s!==null){var o=L();mh(s,e,a,o),Ji(s,i,a)}}function ri(e,i,s){var a=lh(e),o={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null};if(Hi(e))Ii(i,o);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var d=i.lastRenderedState,g=h(d,s);if(o.hasEagerState=!0,o.eagerState=g,He(g,d)){var b=i.interleaved;b===null?(o.next=o,Xg(i)):(o.next=b.next,b.next=o),i.interleaved=o;return}}catch{}finally{}s=Yg(e,i,o,a),s!==null&&(o=L(),mh(s,e,a,o),Ji(s,i,a))}}function Hi(e){var i=e.alternate;return e===N||i!==null&&i===N}function Ii(e,i){Th=Sh=!0;var s=e.pending;s===null?i.next=i:(i.next=s.next,s.next=i),e.pending=i}function Ji(e,i,s){if(s&4194240){var a=i.lanes;a&=e.pendingLanes,s|=a,i.lanes=s,Cc(e,s)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(e,i){return ci().memoizedState=[e,i===void 0?null:i],e},useContext:Vg,useEffect:vi,useImperativeHandle:function(e,i,s){return s=s!=null?s.concat([e]):null,ti(4194308,4,yi.bind(null,i,e),s)},useLayoutEffect:function(e,i){return ti(4194308,4,e,i)},useInsertionEffect:function(e,i){return ti(4,2,e,i)},useMemo:function(e,i){var s=ci();return i=i===void 0?null:i,e=e(),s.memoizedState=[e,i],e},useReducer:function(e,i,s){var a=ci();return i=s!==void 0?s(i):i,a.memoizedState=a.baseState=i,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=Gi.bind(null,N,e),[a.memoizedState,e]},useRef:function(e){var i=ci();return e={current:e},i.memoizedState=e},useState:qi,useDebugValue:Ai,useDeferredValue:function(e){return ci().memoizedState=e},useTransition:function(){var e=qi(!1),i=e[0];return e=Ei.bind(null,e[1]),ci().memoizedState=e,[i,e]},useMutableSource:function(){},useSyncExternalStore:function(e,i,s){var a=N,o=ci();if(I){if(s===void 0)throw Error(p(407));s=s()}else{if(s=i(),R===null)throw Error(p(349));Rh&30||ni(a,i,s)}o.memoizedState=s;var h={value:s,getSnapshot:i};return o.queue=h,vi(ki.bind(null,a,h,e),[e]),a.flags|=2048,li(9,mi.bind(null,a,h,s,i),void 0,null),s},useId:function(){var e=ci(),i=R.identifierPrefix;if(I){var s=sg,a=rg;s=(a&~(1<<32-oc(a)-1)).toString(32)+s,i=":"+i+"R"+s,s=Uh++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=Vh++,i=":"+i+"r"+s.toString(32)+":";return e.memoizedState=i},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(e){var i=di();return Di(i,O.memoizedState,e)},useTransition:function(){var e=fi(ei)[0],i=di().memoizedState;return[e,i]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(e){var i=di();return O===null?i.memoizedState=e:Di(i,O.memoizedState,e)},useTransition:function(){var e=gi(ei)[0],i=di().memoizedState;return[e,i]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(e,i){try{var s="",a=i;do s+=Pa(a),a=a.return;while(a);var o=s}catch(h){o=`
39Error generating stack: `+h.message+`
40`+h.stack}return{value:e,source:i,stack:o,digest:null}}function Li(e,i,s){return{value:e,source:null,stack:s??null,digest:i??null}}function Mi(e,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(e,i,s){s=ch(-1,s),s.tag=3,s.payload={element:null};var a=i.value;return s.callback=function(){Pi||(Pi=!0,Qi=a),Mi(e,i)},s}function Ri(e,i,s){s=ch(-1,s),s.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var o=i.value;s.payload=function(){return a(o)},s.callback=function(){Mi(e,i)}}var h=e.stateNode;return h!==null&&typeof h.componentDidCatch=="function"&&(s.callback=function(){Mi(e,i),typeof a!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var d=i.stack;this.componentDidCatch(i.value,{componentStack:d!==null?d:""})}),s}function Ti(e,i,s){var a=e.pingCache;if(a===null){a=e.pingCache=new Ni;var o=new Set;a.set(i,o)}else o=a.get(i),o===void 0&&(o=new Set,a.set(i,o));o.has(s)||(o.add(s),e=Ui.bind(null,e,i,s),i.then(e,e))}function Vi(e){do{var i;if((i=e.tag===13)&&(i=e.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return e;e=e.return}while(e!==null);return null}function Wi(e,i,s,a,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===i?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=ch(-1,1),i.tag=2,dh(s,i,1))),s.lanes|=1),e)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(e,i,s,a){i.child=e===null?Ch(i,null,s,a):Bh(i,e.child,s,a)}function Zi(e,i,s,a,o){s=s.render;var h=i.ref;return Tg(i,o),a=Xh(e,i,s,a,h,o),s=bi(),e!==null&&!Ug?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~o,$i(e,i,o)):(I&&s&&vg(i),i.flags|=1,Yi(e,i,a,o),i.child)}function aj(e,i,s,a,o){if(e===null){var h=s.type;return typeof h=="function"&&!bj(h)&&h.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=h,cj(e,i,h,a,o)):(e=yh(s.type,null,a,i,i.mode,o),e.ref=i.ref,e.return=i,i.child=e)}if(h=e.child,!(e.lanes&o)){var d=h.memoizedProps;if(s=s.compare,s=s!==null?s:Ie,s(d,a)&&e.ref===i.ref)return $i(e,i,o)}return i.flags|=1,e=wh(h,a),e.ref=i.ref,e.return=i,i.child=e}function cj(e,i,s,a,o){if(e!==null){var h=e.memoizedProps;if(Ie(h,a)&&e.ref===i.ref)if(Ug=!1,i.pendingProps=a=h,(e.lanes&o)!==0)e.flags&131072&&(Ug=!0);else return i.lanes=e.lanes,$i(e,i,o)}return dj(e,i,s,a,o)}function ej(e,i,s){var a=i.pendingProps,o=a.children,h=e!==null?e.memoizedState:null;if(a.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=s;else{if(!(s&1073741824))return e=h!==null?h.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:e,cachePool:null,transitions:null},i.updateQueue=null,G(fj,gj),gj|=e,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=h!==null?h.baseLanes:s,G(fj,gj),gj|=a}else h!==null?(a=h.baseLanes|s,i.memoizedState=null):a=s,G(fj,gj),gj|=a;return Yi(e,i,o,s),i.child}function hj(e,i){var s=i.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function dj(e,i,s,a,o){var h=Zf(s)?Xf:H.current;return h=Yf(i,h),Tg(i,o),s=Xh(e,i,s,a,h,o),a=bi(),e!==null&&!Ug?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~o,$i(e,i,o)):(I&&a&&vg(i),i.flags|=1,Yi(e,i,s,o),i.child)}function ij(e,i,s,a,o){if(Zf(s)){var h=!0;cg(i)}else h=!1;if(Tg(i,o),i.stateNode===null)jj(e,i),ph(i,s,a),rh(i,s,a,o),a=!0;else if(e===null){var d=i.stateNode,g=i.memoizedProps;d.props=g;var b=d.context,_=s.contextType;typeof _=="object"&&_!==null?_=Vg(_):(_=Zf(s)?Xf:H.current,_=Yf(i,_));var j=s.getDerivedStateFromProps,_e=typeof j=="function"||typeof d.getSnapshotBeforeUpdate=="function";_e||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==a||b!==_)&&qh(i,d,a,_),$g=!1;var tt=i.memoizedState;d.state=tt,gh(i,a,d,o),b=i.memoizedState,g!==a||tt!==b||Wf.current||$g?(typeof j=="function"&&(kh(i,s,j,a),b=i.memoizedState),(g=$g||oh(i,s,g,a,tt,b,_))?(_e||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(i.flags|=4194308)):(typeof d.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=a,i.memoizedState=b),d.props=a,d.state=b,d.context=_,a=g):(typeof d.componentDidMount=="function"&&(i.flags|=4194308),a=!1)}else{d=i.stateNode,bh(e,i),g=i.memoizedProps,_=i.type===i.elementType?g:Lg(i.type,g),d.props=_,_e=i.pendingProps,tt=d.context,b=s.contextType,typeof b=="object"&&b!==null?b=Vg(b):(b=Zf(s)?Xf:H.current,b=Yf(i,b));var $=s.getDerivedStateFromProps;(j=typeof $=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==_e||tt!==b)&&qh(i,d,a,b),$g=!1,tt=i.memoizedState,d.state=tt,gh(i,a,d,o);var nt=i.memoizedState;g!==_e||tt!==nt||Wf.current||$g?(typeof $=="function"&&(kh(i,s,$,a),nt=i.memoizedState),(_=$g||oh(i,s,_,a,tt,nt,b)||!1)?(j||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(a,nt,b),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(a,nt,b)),typeof d.componentDidUpdate=="function"&&(i.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&tt===e.memoizedState||(i.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&tt===e.memoizedState||(i.flags|=1024),i.memoizedProps=a,i.memoizedState=nt),d.props=a,d.state=nt,d.context=b,a=_):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&tt===e.memoizedState||(i.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&tt===e.memoizedState||(i.flags|=1024),a=!1)}return kj(e,i,s,a,h,o)}function kj(e,i,s,a,o,h){hj(e,i);var d=(i.flags&128)!==0;if(!a&&!d)return o&&dg(i,s,!1),$i(e,i,h);a=i.stateNode,Xi.current=i;var g=d&&typeof s.getDerivedStateFromError!="function"?null:a.render();return i.flags|=1,e!==null&&d?(i.child=Bh(i,e.child,null,h),i.child=Bh(i,null,g,h)):Yi(e,i,g,h),i.memoizedState=a.state,o&&dg(i,s,!0),i.child}function lj(e){var i=e.stateNode;i.pendingContext?ag(e,i.pendingContext,i.pendingContext!==i.context):i.context&&ag(e,i.context,!1),Ih(e,i.containerInfo)}function mj(e,i,s,a,o){return Ig(),Jg(o),i.flags|=256,Yi(e,i,s,a),i.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(e){return{baseLanes:e,cachePool:null,transitions:null}}function pj(e,i,s){var a=i.pendingProps,o=M.current,h=!1,d=(i.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(o&2)!==0),g?(h=!0,i.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),G(M,o&1),e===null)return Eg(i),e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(i.mode&1?e.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(d=a.children,e=a.fallback,h?(a=i.mode,h=i.child,d={mode:"hidden",children:d},!(a&1)&&h!==null?(h.childLanes=0,h.pendingProps=d):h=qj(d,a,0,null),e=Ah(e,a,s,null),h.return=i,e.return=i,h.sibling=e,i.child=h,i.child.memoizedState=oj(s),i.memoizedState=nj,e):rj(i,d));if(o=e.memoizedState,o!==null&&(g=o.dehydrated,g!==null))return sj(e,i,d,a,g,o,s);if(h){h=a.fallback,d=i.mode,o=e.child,g=o.sibling;var b={mode:"hidden",children:a.children};return!(d&1)&&i.child!==o?(a=i.child,a.childLanes=0,a.pendingProps=b,i.deleti
vendor: 6,829 bytes, line 40
40ons=null):(a=wh(o,b),a.subtreeFlags=o.subtreeFlags&14680064),g!==null?h=wh(g,h):(h=Ah(h,d,s,null),h.flags|=2),h.return=i,a.return=i,a.sibling=h,i.child=a,a=h,h=i.child,d=e.child.memoizedState,d=d===null?oj(s):{baseLanes:d.baseLanes|s,cachePool:null,transitions:d.transitions},h.memoizedState=d,h.childLanes=e.childLanes&~s,i.memoizedState=nj,a}return h=e.child,e=h.sibling,a=wh(h,{mode:"visible",children:a.children}),!(i.mode&1)&&(a.lanes=s),a.return=i,a.sibling=null,e!==null&&(s=i.deletions,s===null?(i.deletions=[e],i.flags|=16):s.push(e)),i.child=a,i.memoizedState=null,a}function rj(e,i){return i=qj({mode:"visible",children:i},e.mode,0,null),i.return=e,e.child=i}function tj(e,i,s,a){return a!==null&&Jg(a),Bh(i,e.child,null,s),e=rj(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function sj(e,i,s,a,o,h,d){if(s)return i.flags&256?(i.flags&=-257,a=Li(Error(p(422))),tj(e,i,d,a)):i.memoizedState!==null?(i.child=e.child,i.flags|=128,null):(h=a.fallback,o=i.mode,a=qj({mode:"visible",children:a.children},o,0,null),h=Ah(h,o,d,null),h.flags|=2,a.return=i,h.return=i,a.sibling=h,i.child=a,i.mode&1&&Bh(i,e.child,null,d),i.child.memoizedState=oj(d),i.memoizedState=nj,h);if(!(i.mode&1))return tj(e,i,d,null);if(o.data==="$!"){if(a=o.nextSibling&&o.nextSibling.dataset,a)var g=a.dgst;return a=g,h=Error(p(419)),a=Li(h,a,void 0),tj(e,i,d,a)}if(g=(d&e.childLanes)!==0,Ug||g){if(a=R,a!==null){switch(d&-d){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(a.suspendedLanes|d)?0:o,o!==0&&o!==h.retryLane&&(h.retryLane=o,Zg(e,o),mh(a,e,o,-1))}return uj(),a=Li(Error(p(421))),tj(e,i,d,a)}return o.data==="$?"?(i.flags|=128,i.child=e.child,i=vj.bind(null,e),o._reactRetry=i,null):(e=h.treeContext,yg=Lf(o.nextSibling),xg=i,I=!0,zg=null,e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=i),i=rj(i,a.children),i.flags|=4096,i)}function wj(e,i,s){e.lanes|=i;var a=e.alternate;a!==null&&(a.lanes|=i),Sg(e.return,i,s)}function xj(e,i,s,a,o){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:a,tail:s,tailMode:o}:(h.isBackwards=i,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=s,h.tailMode=o)}function yj(e,i,s){var a=i.pendingProps,o=a.revealOrder,h=a.tail;if(Yi(e,i,a.children,s),a=M.current,a&2)a=a&1|2,i.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wj(e,s,i);else if(e.tag===19)wj(e,s,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break e;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(G(M,a),!(i.mode&1))i.memoizedState=null;else switch(o){case"forwards":for(s=i.child,o=null;s!==null;)e=s.alternate,e!==null&&Mh(e)===null&&(o=s),s=s.sibling;s=o,s===null?(o=i.child,i.child=null):(o=s.sibling,s.sibling=null),xj(i,!1,o,s,h);break;case"backwards":for(s=null,o=i.child,i.child=null;o!==null;){if(e=o.alternate,e!==null&&Mh(e)===null){i.child=o;break}e=o.sibling,o.sibling=s,s=o,o=e}xj(i,!0,s,null,h);break;case"together":xj(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function jj(e,i){!(i.mode&1)&&e!==null&&(e.alternate=null,i.alternate=null,i.flags|=2)}function $i(e,i,s){if(e!==null&&(i.dependencies=e.dependencies),hh|=i.lanes,!(s&i.childLanes))return null;if(e!==null&&i.child!==e.child)throw Error(p(153));if(i.child!==null){for(e=i.child,s=wh(e,e.pendingProps),i.child=s,s.return=i;e.sibling!==null;)e=e.sibling,s=s.sibling=wh(e,e.pendingProps),s.return=i;s.sibling=null}return i.child}function zj(e,i,s){switch(i.tag){case 3:lj(i),Ig();break;case 5:Kh(i);break;case 1:Zf(i.type)&&cg(i);break;case 4:Ih(i,i.stateNode.containerInfo);break;case 10:var a=i.type._context,o=i.memoizedProps.value;G(Mg,a._currentValue),a._currentValue=o;break;case 13:if(a=i.memoizedState,a!==null)return a.dehydrated!==null?(G(M,M.current&1),i.flags|=128,null):s&i.child.childLanes?pj(e,i,s):(G(M,M.current&1),e=$i(e,i,s),e!==null?e.sibling:null);G(M,M.current&1);break;case 19:if(a=(s&i.childLanes)!==0,e.flags&128){if(a)return yj(e,i,s);i.flags|=128}if(o=i.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),G(M,M.current),a)break;return null;case 22:case 23:return i.lanes=0,ej(e,i,s)}return $i(e,i,s)}var Aj,Bj,Cj,Dj;Aj=function(e,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}};Bj=function(){};Cj=function(e,i,s,a){var o=e.memoizedProps;if(o!==a){e=i.stateNode,Hh(Eh.current);var h=null;switch(s){case"input":o=Ya(e,o),a=Ya(e,a),h=[];break;case"select":o=A({},o,{value:void 0}),a=A({},a,{value:void 0}),h=[];break;case"textarea":o=gb(e,o),a=gb(e,a),h=[];break;default:typeof o.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Bf)}ub(s,a);var d;s=null;for(_ in o)if(!a.hasOwnProperty(_)&&o.hasOwnProperty(_)&&o[_]!=null)if(_==="style"){var g=o[_];for(d in g)g.hasOwnProperty(d)&&(s||(s={}),s[d]="")}else _!=="dangerouslySetInnerHTML"&&_!=="children"&&_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(ea.hasOwnProperty(_)?h||(h=[]):(h=h||[]).push(_,null));for(_ in a){var b=a[_];if(g=o!=null?o[_]:void 0,a.hasOwnProperty(_)&&b!==g&&(b!=null||g!=null))if(_==="style")if(g){for(d in g)!g.hasOwnProperty(d)||b&&b.hasOwnProperty(d)||(s||(s={}),s[d]="");for(d in b)b.hasOwnProperty(d)&&g[d]!==b[d]&&(s||(s={}),s[d]=b[d])}else s||(h||(h=[]),h.push(_,s)),s=b;else _==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,g=g?g.__html:void 0,b!=null&&g!==b&&(h=h||[]).push(_,b)):_==="children"?typeof b!="string"&&typeof b!="number"||(h=h||[]).push(_,""+b):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&(ea.hasOwnProperty(_)?(b!=null&&_==="onScroll"&&D("scroll",e),h||g===b||(h=[])):(h=h||[]).push(_,b))}s&&(h=h||[]).push("style",s);var _=h;(i.updateQueue=_)&&(i.flags|=4)}};Dj=function(e,i,s,a){s!==a&&(i.flags|=4)};function Ej(e,i){if(!I)switch(e.tailMode){case"hidden":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function S(e){var i=e.alternate!==null&&e.alternate.child===e.child,s=0,a=0;if(i)for(var o=e.child;o!==null;
vendor: 8,534 bytes, line 40
40)s|=o.lanes|o.childLanes,a|=o.subtreeFlags&14680064,a|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)s|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=s,i}function Fj(e,i,s){var a=i.pendingProps;switch(wg(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(i),null;case 1:return Zf(i.type)&&$f(),S(i),null;case 3:return a=i.stateNode,Jh(),E(Wf),E(H),Oh(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Gg(i)?i.flags|=4:e===null||e.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(e,i),S(i),null;case 5:Lh(i);var o=Hh(Gh.current);if(s=i.type,e!==null&&i.stateNode!=null)Cj(e,i,s,a,o),e.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!a){if(i.stateNode===null)throw Error(p(166));return S(i),null}if(e=Hh(Eh.current),Gg(i)){a=i.stateNode,s=i.type;var h=i.memoizedProps;switch(a[Of]=i,a[Pf]=h,e=(i.mode&1)!==0,s){case"dialog":D("cancel",a),D("close",a);break;case"iframe":case"object":case"embed":D("load",a);break;case"video":case"audio":for(o=0;o<lf.length;o++)D(lf[o],a);break;case"source":D("error",a);break;case"img":case"image":case"link":D("error",a),D("load",a);break;case"details":D("toggle",a);break;case"input":Za(a,h),D("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!h.multiple},D("invalid",a);break;case"textarea":hb(a,h),D("invalid",a)}ub(s,h),o=null;for(var d in h)if(h.hasOwnProperty(d)){var g=h[d];d==="children"?typeof g=="string"?a.textContent!==g&&(h.suppressHydrationWarning!==!0&&Af(a.textContent,g,e),o=["children",g]):typeof g=="number"&&a.textContent!==""+g&&(h.suppressHydrationWarning!==!0&&Af(a.textContent,g,e),o=["children",""+g]):ea.hasOwnProperty(d)&&g!=null&&d==="onScroll"&&D("scroll",a)}switch(s){case"input":Va(a),db(a,h,!0);break;case"textarea":Va(a),jb(a);break;case"select":case"option":break;default:typeof h.onClick=="function"&&(a.onclick=Bf)}a=o,i.updateQueue=a,a!==null&&(i.flags|=4)}else{d=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kb(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=d.createElement(s,{is:a.is}):(e=d.createElement(s),s==="select"&&(d=e,a.multiple?d.multiple=!0:a.size&&(d.size=a.size))):e=d.createElementNS(e,s),e[Of]=i,e[Pf]=a,Aj(e,i,!1,!1),i.stateNode=e;e:{switch(d=vb(s,a),s){case"dialog":D("cancel",e),D("close",e),o=a;break;case"iframe":case"object":case"embed":D("load",e),o=a;break;case"video":case"audio":for(o=0;o<lf.length;o++)D(lf[o],e);o=a;break;case"source":D("error",e),o=a;break;case"img":case"image":case"link":D("error",e),D("load",e),o=a;break;case"details":D("toggle",e),o=a;break;case"input":Za(e,a),o=Ya(e,a),D("invalid",e);break;case"option":o=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},o=A({},a,{value:void 0}),D("invalid",e);break;case"textarea":hb(e,a),o=gb(e,a),D("invalid",e);break;default:o=a}ub(s,o),g=o;for(h in g)if(g.hasOwnProperty(h)){var b=g[h];h==="style"?sb(e,b):h==="dangerouslySetInnerHTML"?(b=b?b.__html:void 0,b!=null&&nb(e,b)):h==="children"?typeof b=="string"?(s!=="textarea"||b!=="")&&ob(e,b):typeof b=="number"&&ob(e,""+b):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(ea.hasOwnProperty(h)?b!=null&&h==="onScroll"&&D("scroll",e):b!=null&&ta(e,h,b,d))}switch(s){case"input":Va(e),db(e,a,!1);break;case"textarea":Va(e),jb(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Sa(a.value));break;case"select":e.multiple=!!a.multiple,h=a.value,h!=null?fb(e,!!a.multiple,h,!1):a.defaultValue!=null&&fb(e,!!a.multiple,a.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Bf)}switch(s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return S(i),null;case 6:if(e&&i.stateNode!=null)Dj(e,i,e.memoizedProps,a);else{if(typeof a!="string"&&i.stateNode===null)throw Error(p(166));if(s=Hh(Gh.current),Hh(Eh.current),Gg(i)){if(a=i.stateNode,s=i.memoizedProps,a[Of]=i,(h=a.nodeValue!==s)&&(e=xg,e!==null))switch(e.tag){case 3:Af(a.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Af(a.nodeValue,s,(e.mode&1)!==0)}h&&(i.flags|=4)}else a=(s.nodeType===9?s:s.ownerDocument).createTextNode(a),a[Of]=i,i.stateNode=a}return S(i),null;case 13:if(E(M),a=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(I&&yg!==null&&i.mode&1&&!(i.flags&128))Hg(),Ig(),i.flags|=98560,h=!1;else if(h=Gg(i),a!==null&&a.dehydrated!==null){if(e===null){if(!h)throw Error(p(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(p(317));h[Of]=i}else Ig(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;S(i),h=!1}else zg!==null&&(Gj(zg),zg=null),h=!0;if(!h)return i.flags&65536?i:null}return i.flags&128?(i.lanes=s,i):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(i.child.flags|=8192,i.mode&1&&(e===null||M.current&1?T===0&&(T=3):uj())),i.updateQueue!==null&&(i.flags|=4),S(i),null);case 4:return Jh(),Bj(e,i),e===null&&sf(i.stateNode.containerInfo),S(i),null;case 10:return Rg(i.type._context),S(i),null;case 17:return Zf(i.type)&&$f(),S(i),null;case 19:if(E(M),h=i.memoizedState,h===null)return S(i),null;if(a=(i.flags&128)!==0,d=h.rendering,d===null)if(a)Ej(h,!1);else{if(T!==0||e!==null&&e.flags&128)for(e=i.child;e!==null;){if(d=Mh(e),d!==null){for(i.flags|=128,Ej(h,!1),a=d.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),i.subtreeFlags=0,a=s,s=i.child;s!==null;)h=s,e=a,h.flags&=14680066,d=h.alternate,d===null?(h.childLanes=0,h.lanes=e,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=d.childLanes,h.lanes=d.lanes,h.child=d.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=d.memoizedProps,h.memoizedState=d.memoizedState,h.updateQueue=d.updateQueue,h.type=d.type,e=d.dependencies,h.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return G(M,M.current&1|2),i.child}e=e.sibling}h.tail!==null&&B()>Hj&&(i.flags|=128,a=!0,Ej(h,!1),i.lanes=4194304)}else{if(!a)if(e=Mh(d),e!==null){if(i.flags|=128,a=!0,s=e.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Ej(h,!0),h.tail===null&&h.tailMode==="hidden"&&!d.alternate&&!I)return S(i),null}else 2*B()-h.renderingStartTime>Hj&&s!==1073741824&&(i.flags|=128,a=!0,Ej(h,!1),i.lanes=4194304);h.isBackwards?(d.sibling=i.child,i.child=d):(s=h.last,s!==null?s.sibling=d:i.child=d,h.last=d)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=B(),i.sibling=null,s=M.current,G(M,a?s&1|2:s&1),i):(S(i),null);case 22:case 23:return Ij(),a=i.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(i.flags|=8192),a&&i.mode&1?gj&1073741824&&(S(i),i.subtreeFlags&6&&(i.flags|=8192)):S(i),null;case 24:return null;case 25:return null}throw Error(p(156,i.tag))}function Jj(e,i){switch(wg(i),i.tag){case 1:return Zf(i.type)&&$f(),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return Jh(),E(Wf),E(H),Oh(),e=i.flags,e&65536&&!(e&128)?(i.flags=e&-65537|128,i):null;case 5:return Lh(i),null;case 13:if(E(M),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(p(340));Ig()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(i.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj(e,i){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(a){W(e,i,a)}else s.current=null}function Nj(e,i,s){try{s()}catch(a){W(e,i,a)}}var Oj=!1;function Pj(e,i){if(Cf=dd,e=Me(),Ne(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var a=s.getSelection&&s.getSelection();if(a&&a.rangeCount!==0){s=a.anchorNode;var o=a.anchorOffset,h=a.focusNode;a=a.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var d=0,g=-1,b=-1,_=0,j=0,_e=e,tt=null;t:for(;;){for(var $;_e!==s||o!==0&&_e.nodeType!==3||(g=d+o),_e!==h||a!==0&&_e.nodeType!==3||(b=d+a),_e.nodeType===3&&(d+=_e.nodeValue.length),($=_e.firstChild)!==null;)tt=_e,_e=$;for(;;){if(_e===e)break t;
vendor: 5,903 bytes, line 40
40if(tt===s&&++_===o&&(g=d),tt===h&&++j===a&&(b=d),($=_e.nextSibling)!==null)break;_e=tt,tt=_e.parentNode}_e=$}s=g===-1||b===-1?null:{start:g,end:b}}else s=null}s=s||{start:0,end:0}}else s=null;for(Df={focusedElem:e,selectionRange:s},dd=!1,V=i;V!==null;)if(i=V,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,V=e;else for(;V!==null;){i=V;try{var nt=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(nt!==null){var it=nt.memoizedProps,et=nt.memoizedState,rt=i.stateNode,st=rt.getSnapshotBeforeUpdate(i.elementType===i.type?it:Lg(i.type,it),et);rt.__reactInternalSnapshotBeforeUpdate=st}break;case 3:var at=i.stateNode.containerInfo;at.nodeType===1?at.textContent="":at.nodeType===9&&at.documentElement&&at.removeChild(at.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(ot){W(i,i.return,ot)}if(e=i.sibling,e!==null){e.return=i.return,V=e;break}V=i.return}return nt=Oj,Oj=!1,nt}function Qj(e,i,s){var a=i.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var h=o.destroy;o.destroy=void 0,h!==void 0&&Nj(i,s,h)}o=o.next}while(o!==a)}}function Rj(e,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&e)===e){var a=s.create;s.destroy=a()}s=s.next}while(s!==i)}}function Sj(e){var i=e.ref;if(i!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof i=="function"?i(e):i.current=e}}function Tj(e){var i=e.alternate;i!==null&&(e.alternate=null,Tj(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&(delete i[Of],delete i[Pf],delete i[of],delete i[Qf],delete i[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uj(e){return e.tag===5||e.tag===3||e.tag===4}function Vj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wj(e,i,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(e,i):s.insertBefore(e,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(e,s)):(i=s,i.appendChild(e)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Bf));else if(a!==4&&(e=e.child,e!==null))for(Wj(e,i,s),e=e.sibling;e!==null;)Wj(e,i,s),e=e.sibling}function Xj(e,i,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,i?s.insertBefore(e,i):s.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Xj(e,i,s),e=e.sibling;e!==null;)Xj(e,i,s),e=e.sibling}var X=null,Yj=!1;function Zj(e,i,s){for(s=s.child;s!==null;)ak(e,i,s),s=s.sibling}function ak(e,i,s){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,s)}catch{}switch(s.tag){case 5:U||Mj(s,i);case 6:var a=X,o=Yj;X=null,Zj(e,i,s),X=a,Yj=o,X!==null&&(Yj?(e=X,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):X.removeChild(s.stateNode));break;case 18:X!==null&&(Yj?(e=X,s=s.stateNode,e.nodeType===8?Kf(e.parentNode,s):e.nodeType===1&&Kf(e,s),bd(e)):Kf(X,s.stateNode));break;case 4:a=X,o=Yj,X=s.stateNode.containerInfo,Yj=!0,Zj(e,i,s),X=a,Yj=o;break;case 0:case 11:case 14:case 15:if(!U&&(a=s.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var h=o,d=h.destroy;h=h.tag,d!==void 0&&(h&2||h&4)&&Nj(s,i,d),o=o.next}while(o!==a)}Zj(e,i,s);break;case 1:if(!U&&(Mj(s,i),a=s.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=s.memoizedProps,a.state=s.memoizedState,a.componentWillUnmount()}catch(g){W(s,i,g)}Zj(e,i,s);break;case 21:Zj(e,i,s);break;case 22:s.mode&1?(U=(a=U)||s.memoizedState!==null,Zj(e,i,s),U=a):Zj(e,i,s);break;default:Zj(e,i,s)}}function bk(e){var i=e.updateQueue;if(i!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Lj),i.forEach(function(a){var o=ck.bind(null,e,a);s.has(a)||(s.add(a),a.then(o,o))})}}function dk(e,i){var s=i.deletions;if(s!==null)for(var a=0;a<s.length;a++){var o=s[a];try{var h=e,d=i,g=d;e:for(;g!==null;){switch(g.tag){case 5:X=g.stateNode,Yj=!1;break e;case 3:X=g.stateNode.containerInfo,Yj=!0;break e;case 4:X=g.stateNode.containerInfo,Yj=!0;break e}g=g.return}if(X===null)throw Error(p(160));ak(h,d,o),X=null,Yj=!1;var b=o.alternate;b!==null&&(b.return=null),o.return=null}catch(_){W(o,i,_)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)ek(i,e),i=i.sibling}function ek(e,i){var s=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dk(i,e),fk(e),a&4){try{Qj(3,e,e.return),Rj(3,e)}catch(it){W(e,e.return,it)}try{Qj(5,e,e.return)}catch(it){W(e,e.return,it)}}break;case 1:dk(i,e),fk(e),a&512&&s!==null&&Mj(s,s.return);break;case 5:if(dk(i,e),fk(e),a&512&&s!==null&&Mj(s,s.return),e.flags&32){var o=e.stateNode;try{ob(o,"")}catch(it){W(e,e.return,it)}}if(a&4&&(o=e.stateNode,o!=null)){var h=e.memoizedProps,d=s!==null?s.memoizedProps:h,g=e.type,b=e.updateQueue;if(e.updateQueue=null,b!==null)try{g==="input"&&h.type==="radio"&&h.name!=null&&ab(o,h),vb(g,d);var _=vb(g,h);for(d=0;d<b.length;d+=2){var j=b[d],_e=b[d+1];j==="style"?sb(o,_e):j==="dangerouslySetInnerHTML"?nb(o,_e):j==="children"?ob(o,_e):ta(o,j,_e,_)}switch(g){case"input":bb(o,h);break;case"textarea":ib(o,h);break;case"select":var tt=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!h.multiple;var $=h.value;$!=null?fb(o,!!h.multiple,$,!1):tt!==!!h.multiple&&(h.defaultValue!=null?fb(o,!!h.multiple,h.defaultValue,!0):fb(o,!!h.multiple,h.multiple?[]:"",!1))}o[Pf]=h}catch(it){W(e,e.return,it)}}break;case 6:if(dk(i,e),fk(e),a&4){if(e.stateNode===null)throw Error(p(162));o=e.stateNode,h=e.memoizedProps;try{o.nodeValue=h}catch(it){W(e,e.return,it)}}break;case 3:if(dk(i,e),fk(e),a&4&&s!==null&&s.memoizedState.isDehydrated)try{bd(i.
vendor: 18,110 bytes, line 40
40containerInfo)}catch(it){W(e,e.return,it)}break;case 4:dk(i,e),fk(e);break;case 13:dk(i,e),fk(e),o=e.child,o.flags&8192&&(h=o.memoizedState!==null,o.stateNode.isHidden=h,!h||o.alternate!==null&&o.alternate.memoizedState!==null||(gk=B())),a&4&&bk(e);break;case 22:if(j=s!==null&&s.memoizedState!==null,e.mode&1?(U=(_=U)||j,dk(i,e),U=_):dk(i,e),fk(e),a&8192){if(_=e.memoizedState!==null,(e.stateNode.isHidden=_)&&!j&&e.mode&1)for(V=e,j=e.child;j!==null;){for(_e=V=j;V!==null;){switch(tt=V,$=tt.child,tt.tag){case 0:case 11:case 14:case 15:Qj(4,tt,tt.return);break;case 1:Mj(tt,tt.return);var nt=tt.stateNode;if(typeof nt.componentWillUnmount=="function"){a=tt,s=tt.return;try{i=a,nt.props=i.memoizedProps,nt.state=i.memoizedState,nt.componentWillUnmount()}catch(it){W(a,s,it)}}break;case 5:Mj(tt,tt.return);break;case 22:if(tt.memoizedState!==null){hk(_e);continue}}$!==null?($.return=tt,V=$):hk(_e)}j=j.sibling}e:for(j=null,_e=e;;){if(_e.tag===5){if(j===null){j=_e;try{o=_e.stateNode,_?(h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none"):(g=_e.stateNode,b=_e.memoizedProps.style,d=b!=null&&b.hasOwnProperty("display")?b.display:null,g.style.display=rb("display",d))}catch(it){W(e,e.return,it)}}}else if(_e.tag===6){if(j===null)try{_e.stateNode.nodeValue=_?"":_e.memoizedProps}catch(it){W(e,e.return,it)}}else if((_e.tag!==22&&_e.tag!==23||_e.memoizedState===null||_e===e)&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===e)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===e)break e;j===_e&&(j=null),_e=_e.return}j===_e&&(j=null),_e.sibling.return=_e.return,_e=_e.sibling}}break;case 19:dk(i,e),fk(e),a&4&&bk(e);break;case 21:break;default:dk(i,e),fk(e)}}function fk(e){var i=e.flags;if(i&2){try{e:{for(var s=e.return;s!==null;){if(Uj(s)){var a=s;break e}s=s.return}throw Error(p(160))}switch(a.tag){case 5:var o=a.stateNode;a.flags&32&&(ob(o,""),a.flags&=-33);var h=Vj(e);Xj(e,h,o);break;case 3:case 4:var d=a.stateNode.containerInfo,g=Vj(e);Wj(e,g,d);break;default:throw Error(p(161))}}catch(b){W(e,e.return,b)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function ik(e,i,s){V=e,jk(e)}function jk(e,i,s){for(var a=(e.mode&1)!==0;V!==null;){var o=V,h=o.child;if(o.tag===22&&a){var d=o.memoizedState!==null||Kj;if(!d){var g=o.alternate,b=g!==null&&g.memoizedState!==null||U;g=Kj;var _=U;if(Kj=d,(U=b)&&!_)for(V=o;V!==null;)d=V,b=d.child,d.tag===22&&d.memoizedState!==null?kk(o):b!==null?(b.return=d,V=b):kk(o);for(;h!==null;)V=h,jk(h),h=h.sibling;V=o,Kj=g,U=_}lk(e)}else o.subtreeFlags&8772&&h!==null?(h.return=o,V=h):lk(e)}}function lk(e){for(;V!==null;){var i=V;if(i.flags&8772){var s=i.alternate;try{if(i.flags&8772)switch(i.tag){case 0:case 11:case 15:U||Rj(5,i);break;case 1:var a=i.stateNode;if(i.flags&4&&!U)if(s===null)a.componentDidMount();else{var o=i.elementType===i.type?s.memoizedProps:Lg(i.type,s.memoizedProps);a.componentDidUpdate(o,s.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var h=i.updateQueue;h!==null&&ih(i,h,a);break;case 3:var d=i.updateQueue;if(d!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}ih(i,d,s)}break;case 5:var g=i.stateNode;if(s===null&&i.flags&4){s=g;var b=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":b.autoFocus&&s.focus();break;case"img":b.src&&(s.src=b.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var _=i.alternate;if(_!==null){var j=_.memoizedState;if(j!==null){var _e=j.dehydrated;_e!==null&&bd(_e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p(163))}U||i.flags&512&&Sj(i)}catch(tt){W(i,i.return,tt)}}if(i===e){V=null;break}if(s=i.sibling,s!==null){s.return=i.return,V=s;break}V=i.return}}function hk(e){for(;V!==null;){var i=V;if(i===e){V=null;break}var s=i.sibling;if(s!==null){s.return=i.return,V=s;break}V=i.return}}function kk(e){for(;V!==null;){var i=V;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{Rj(4,i)}catch(b){W(i,s,b)}break;case 1:var a=i.stateNode;if(typeof a.componentDidMount=="function"){var o=i.return;try{a.componentDidMount()}catch(b){W(i,o,b)}}var h=i.return;try{Sj(i)}catch(b){W(i,h,b)}break;case 5:var d=i.return;try{Sj(i)}catch(b){W(i,d,b)}}}catch(b){W(i,i.return,b)}if(i===e){V=null;break}var g=i.sibling;if(g!==null){g.return=i.return,V=g;break}V=i.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y=null,Z=0,gj=0,fj=Uf(0),T=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L(){return K&6?B():Bk!==-1?Bk:Bk=B()}function lh(e){return e.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(e=C,e!==0||(e=window.event,e=e===void 0?16:jd(e.type)),e):1}function mh(e,i,s,a){if(50<zk)throw zk=0,Ak=null,Error(p(185));Ac(e,s,a),(!(K&2)||e!==R)&&(e===R&&(!(K&2)&&(rk|=s),T===4&&Dk(e,Z)),Ek(e,a),s===1&&K===0&&!(i.mode&1)&&(Hj=B()+500,fg&&jg()))}function Ek(e,i){var s=e.callbackNode;wc(e,i);var a=uc(e,e===R?Z:0);if(a===0)s!==null&&bc(s),e.callbackNode=null,e.callbackPriority=0;else if(i=a&-a,e.callbackPriority!==i){if(s!=null&&bc(s),i===1)e.tag===0?ig(Fk.bind(null,e)):hg(Fk.bind(null,e)),Jf(function(){!(K&6)&&jg()}),s=null;else{switch(Dc(a)){case 1:s=fc;break;case 4:s=gc;break;case 16:s=hc;break;case 536870912:s=jc;break;default:s=hc}s=Gk(s,Hk.bind(null,e))}e.callbackPriority=i,e.callbackNode=s}}function Hk(e,i){if(Bk=-1,Ck=0,K&6)throw Error(p(327));var s=e.callbackNode;if(Ik()&&e.callbackNode!==s)return null;var a=uc(e,e===R?Z:0);if(a===0)return null;if(a&30||a&e.expiredLanes||i)i=Jk(e,a);else{i=a;var o=K;K|=2;var h=Kk();(R!==e||Z!==i)&&(vk=null,Hj=B()+500,Lk(e,i));do try{Mk();break}catch(g){Nk(e,g)}while(!0);Qg(),nk.current=h,K=o,Y!==null?i=0:(R=null,Z=0,i=T)}if(i!==0){if(i===2&&(o=xc(e),o!==0&&(a=o,i=Ok(e,o))),i===1)throw s=qk,Lk(e,0),Dk(e,a),Ek(e,B()),s;if(i===6)Dk(e,a);else{if(o=e.current.alternate,!(a&30)&&!Pk(o)&&(i=Jk(e,a),i===2&&(h=xc(e),h!==0&&(a=h,i=Ok(e,h))),i===1))throw s=qk,Lk(e,0),Dk(e,a),Ek(e,B()),s;switch(e.finishedWork=o,e.finishedLanes=a,i){case 0:case 1:throw Error(p(345));case 2:Qk(e,uk,vk);break;case 3:if(Dk(e,a),(a&130023424)===a&&(i=gk+500-B(),10<i)){if(uc(e,0)!==0)break;if(o=e.suspendedLanes,(o&a)!==a){L(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ff(Qk.bind(null,e,uk,vk),i);break}Qk(e,uk,vk);break;case 4:if(Dk(e,a),(a&4194240)===a)break;for(i=e.eventTimes,o=-1;0<a;){var d=31-oc(a);h=1<<d,d=i[d],d>o&&(o=d),a&=~h}if(a=o,a=B()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*mk(a/1960))-a,10<a){e.timeoutHandle=Ff(Qk.bind(null,e,uk,vk),a);break}Qk(e,uk,vk);break;case 5:Qk(e,uk,vk);break;default:throw Error(p(329))}}}return Ek(e,B()),e.callbackNode===s?Hk.bind(null,e):null}function Ok(e,i){var s=tk;return e.current.memoizedState.isDehydrated&&(Lk(e,i).flags|=256),e=Jk(e,i),e!==2&&(i=uk,uk=s,i!==null&&Gj(i)),e}function Gj(e){uk===null?uk=e:uk.push.apply(uk,e)}function Pk(e){for(var i=e;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var a=0;a<s.length;a++){var o=s[a],h=o.getSnapshot;o=o.value;try{if(!He(h(),o))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Dk(e,i){for(i&=~sk,i&=~rk,e.suspendedLanes|=i,e.pingedLanes&=~i,e=e.expirationTimes;0<i;){var s=31-oc(i),a=1<<s;e[s]=-1,i&=~a}}function Fk(e){if(K&6)throw Error(p(327));Ik();var i=uc(e,0);if(!(i&1))return Ek(e,B()),null;var s=Jk(e,i);if(e.tag!==0&&s===2){var a=xc(e);a!==0&&(i=a,s=Ok(e,a))}if(s===1)throw s=qk,Lk(e,0),Dk(e,i),Ek(e,B()),s;if(s===6)throw Error(p(345));return e.finishedWork=e.current.alternate,e.finishedLanes=i,Qk(e,uk,vk),Ek(e,B()),null}function Rk(e,i){var s=K;K|=1;try{return e(i)}finally{K=s,K===0&&(Hj=B()+500,fg&&jg())}}function Sk(e){xk!==null&&xk.tag===0&&!(K&6)&&Ik();var i=K;K|=1;var s=pk.transition,a=C;try{if(pk.transition=null,C=1,e)return e()}finally{C=a,pk.transition=s,K=i,!(K&6)&&jg()}}function Ij(){gj=fj.current,E(fj)}function Lk(e,i){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,Gf(s)),Y!==null)for(s=Y.return;s!==null;){var a=s;switch(wg(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&$f();break;case 3:Jh(),E(Wf),E(H),Oh();break;case 5:Lh(a);break;case 4:Jh();break;case 13:E(M);break;case 19:E(M);break;case 10:Rg(a.type._context);break;case 22:case 23:Ij()}s=s.return}if(R=e,Y=e=wh(e.current,null),Z=gj=i,T=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(i=0;i<Wg.length;i++)if(s=Wg[i],a=s.interleaved,a!==null){s.interleaved=null;var o=a.next,h=s.pending;if(h!==null){var d=h.next;h.next=o,a.next=d}s.pending=a}Wg=null}return e}function Nk(e,i){do{var s=Y;try{if(Qg(),Ph.current=ai,Sh){for(var a=N.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Sh=!1}if(Rh=0,P=O=N=null,Th=!1,Uh=0,ok.current=null,s===null||s.return===null){T=1,qk=i,Y=null;break}e:{var h=e,d=s.return,g=s,b=i;if(i=Z,g.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){var _=b,j=g,_e=j.tag;if(!(j.mode&1)&&(_e===0||_e===11||_e===15)){var tt=j.alternate;tt?(j.updateQueue=tt.updateQueue,j.memoizedState=tt.memoizedState,j.lanes=tt.lanes):(j.updateQueue=null,j.memoizedState=null)}var $=Vi(d);if($!==null){$.flags&=-257,Wi($,d,g,h,i),$.mode&1&&Ti(h,_,i),i=$,b=_;var nt=i.updateQueue;if(nt===null){var it=new Set;it.add(b),i.updateQueue=it}else nt.add(b);break e}else{if(!(i&1)){Ti(h,_,i),uj();break e}b=Error(p(426))}}else if(I&&g.mode&1){var et=Vi(d);if(et!==null){!(et.flags&65536)&&(et.flags|=256),Wi(et,d,g,h,i),Jg(Ki(b,g));break e}}h=b=Ki(b,g),T!==4&&(T=2),tk===null?tk=[h]:tk.push(h),h=d;do{switch(h.tag){case 3:h.flags|=65536,i&=-i,h.lanes|=i;var rt=Oi(h,b,i);fh(h,rt);break e;case 1:g=b;var st=h.type,at=h.stateNode;if(!(h.flags&128)&&(typeof st.getDerivedStateFromError=="function"||at!==null&&typeof at.componentDidCatch=="function"&&(Si===null||!Si.has(at)))){h.flags|=65536,i&=-i,h.lanes|=i;var ot=Ri(h,g,i);fh(h,ot);break e}}h=h.return}while(h!==null)}Tk(s)}catch(lt){i=lt,Y===s&&s!==null&&(Y=s=s.return);continue}break}while(!0)}function Kk(){var e=nk.current;return nk.current=ai,e===null?ai:e}function uj(){(T===0||T===3||T===2)&&(T=4),R===null||!(hh&268435455)&&!(rk&268435455)||Dk(R,Z)}function Jk(e,i){var s=K;K|=2;var a=Kk();(R!==e||Z!==i)&&(vk=null,Lk(e,i));do try{Uk();break}catch(o){Nk(e,o)}while(!0);if(Qg(),K=s,nk.current=a,Y!==null)throw Error(p(261));return R=null,Z=0,T}function Uk(){for(;Y!==null;)Vk(Y)}function Mk(){for(;Y!==null&&!cc();)Vk(Y)}function Vk(e){var i=Wk(e.alternate,e,gj);e.memoizedProps=e.pendingProps,i===null?Tk(e):Y=i,ok.current=null}function Tk(e){var i=e;do{var s=i.alternate;if(e=i.return,i.flags&32768){if(s=Jj(s,i),s!==null){s.flags&=32767,Y=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{T=6,Y=null;return}}else if(s=Fj(s,i,gj),s!==null){Y=s;return}if(i=i.sibling,i!==null){Y=i;return}Y=i=e}while(i!==null);T===0&&(T=5)}function Qk(e,i,s){var a=C,o=pk.transition;try{pk.transition=null,C=1,Xk(e,i,s,a)}finally{pk.transition=o,C=a}return null}function Xk(e,i,s,a){do Ik();while(xk!==null);if(K&6)throw Error(p(327));s=e.finishedWork;var o=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(p(177));e.callbackNode=null,e.callbackPriority=0;var h=s.lanes|s.childLanes;if(Bc(e,h),e===R&&(Y=R=null,Z=0),!(s.subtreeFlags&2064)&&!(s.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),h=(s.flags&15990)!==0,s.subtreeFlags&15990||h){h=pk.transition,pk.transition=null;var d=C;C=1;var g=K;K|=4,ok.current=null,Pj(e,s),ek(s,e),Oe(Df),dd=!!Cf,Df=Cf=null,e.current=s,ik(s),dc(),K=g,C=d,pk.transition=h}else e.current=s;if(wk&&(wk=!1,xk=e,yk=o),h=e.pendingLanes,h===0&&(Si=null),mc(s.stateNode),Ek(e,B()),i!==null)for(a=e.onRecoverableError,s=0;s<i.length;s++)o=i[s],a(o.value,{componentStack:o.stack,digest:o.digest});if(Pi)throw Pi=!1,e=Qi,Qi=null,e;return yk&1&&e.tag!==0&&Ik(),h=e.pendingLanes,h&1?e===Ak?zk++:(zk=0,Ak=e):zk=0,jg(),null}function Ik(){if(xk!==null){var e=Dc(yk),i=pk.transition,s=C;try{if(pk.transition=null,C=16>e?16:e,xk===null)var a=!1;else{if(e=xk,xk=null,yk=0,K&6)throw Error(p(331));var o=K;for(K|=4,V=e.current;V!==null;){var h=V,d=h.child;if(V.flags&16){var g=h.deletions;if(g!==null){for(var b=0;b<g.length;b++){var _=g[b];for(V=_;V!==null;){var j=V;switch(j.tag){case 0:case 11:case 15:Qj(8,j,h)}var _e=j.child;if(_e!==null)_e.return=j,V=_e;else for(;V!==null;){j=V;var tt=j.sibling,$=j.return;if(Tj(j),j===_){V=null;break}if(tt!==null){tt.return=$,V=tt;break}V=$}}}var nt=h.alternate;if(nt!==null){var it=nt.child;if(it!==null){nt.child=null;do{var et=it.sibling;it.sibling=null,it=et}while(it!==null)}}V=h}}if(h.subtreeFlags&2064&&d!==null)d.return=h,V=d;else e:for(;V!==null;){if(h=V,h.flags&2048)switch(h.tag){case 0:case 11:case 15:Qj(9,h,h.return)}var rt=h.sibling;if(rt!==null){rt.return=h.return,V=rt;break e}V=h.return}}var st=e.current;for(V=st;V!==null;){d=V;var at=d.child;if(d.subtreeFlags&2064&&at!==null)at.return=d,V=at;else e:for(d=st;V!==null;){if(g=V,g.flags&2048)try{switch(g.tag){case 0:case 11:case 15:Rj(9,g)}}catch(lt){W(g,g.return,lt)}if(g===d){V=null;break e}var ot=g.sibling;if(ot!==null){ot.return=g.return,V=ot;break e}V=g.return}}if(K=o,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,e)}catch{}a=!0}return a}finally{C=s,pk.transition=i}}return!1}function Yk(e,i,s){i=Ki(s,i),i=Oi(e,i,1),e=dh(e,i,1),i=L(),e!==null&&(Ac(e,1,i),Ek(e,i))}function W(e,i,s){if(e.tag===3)Yk(e,e,s);else for(;i!==null;){if(i.tag===3){Yk(i,e,s);break}else if(i.tag===1){var a=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Si===null||!Si.has(a))){e=Ki(s,e),e=Ri(i,e,1),i=dh(i,e,1),e=L(),i!==null&&(Ac(i,1,e),Ek(i,e));break}}i=i.return}}function Ui(e,i,s){var a=e.pingCache;a!==null&&a.delete(i),i=L(),e.pingedLanes|=e.suspendedLanes&s,R===e&&(Z&s)===s&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-gk?Lk(e,0):sk|=s),Ek(e,i)}function Zk(e,i){i===0&&(e.mode&1?(i=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):i=1);var s=L();e=Zg(e,i),e!==null&&(Ac(e,i,s),Ek(e,s))}function vj(e){var i=e.memoizedState,s=0;i!==null&&(s=i.retryLane),Zk(e,s)}function ck(e,i){var s=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(s=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(p(314))}a!==null&&a.delete(i),Zk(e,s)}var Wk;Wk=function(e,i,s){if(e!==null)if(e.memoizedProps!==i.pendingProps||Wf.current)Ug=!0;else{if(!(e.lanes&s)&&!(i.flags&128))return Ug=!1,zj(e,i,s);Ug=!!(e.flags&131072)}else Ug=!1,I&&i.flags&1048576&&ug(i,ng,i.index);switch(i.lanes=0,i.tag){case 2:var a=i.type;jj(e,i),e=i.pendingProps;var o=Yf(i,H.current);Tg(i,s),o=Xh(null,i,a,e,o,s);var h=bi();return i.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Zf(a)?(h=!0,cg(i)):h=!1,i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ah(i),o.updater=nh,i.stateNode=o,o._reactInternals=i,rh(i,a,e,s),i=kj(null,i,a,!0,h,s)):(i.tag=0,I&&h&&vg(i),Yi(null,i,o,s),i=i.child),i;case 16:a=i.elementType;e:{switch(jj(e,i),e=i.pendingProps,o=a._init,a=o(a._payload),i.type=a,o=i.tag=$k(a),e=Lg(a,e),o){case 0:i=dj(null,i,a,e,s);break e;case 1:i=ij(null,i,a,e,s);break e;case 11:i=Zi(null,i,a,e,s);break e;case 14:i=aj(null,i,a,Lg(a.type,e),s);break e}throw Error(p(306,a,""))}return i;case 0:return a=i.type,o=i.pendingProps,o=i.elementType===a?o:Lg(a,o),dj(e,i,a,o,s);case 1:return a=i.type,o=i.pendingProps,o=i.elementType===a?o:Lg(a,o),ij(e,i,a,o,s);case 3:e:{if(lj(i),e===null)throw Error(p(387));a=i.pendingProps,h=i.memoizedState,o=h.element,bh(e,i),gh(i,a,null,s);var d=i.memoizedState;if(a=d.element,h.isDehydrated)if(h={element:a,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},i.updateQueue.baseState=h,i.memoizedState=h,i.flags&256){o=Ki(Error(p(423)),i),i=mj(e,i,a,s,o);break e}else if(a!==o){o=Ki(Error(p(424)),i),i=mj(e,i,a,s,o);break e}else for(yg=Lf(i.stateNode.containerInfo.firstChild),xg=i,I=!0,zg=null,s=Ch(i,null,a,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ig(),a===o){i=$i(e,i,s);break e}Yi(e,i,a,s)}i=i.child}return i;case 5:return Kh(i),e===null&&Eg(i),a=i.type,o=i.pendingProps,h=e!==null?e.memoizedProps:null,d=o.children,Ef(a,o)?d=null:h!==null&&Ef(a,h)&&(i.flags|=32),hj(e,i),Yi(e,i,d,s),i.child;case 6:return e===null&&Eg(i),null;case 13:return pj(e,i,s);case 4:return Ih(i,i.stateNode.containerInfo),a=i.pendingProps,e===null?i.child=Bh(i,null,a,s):Yi(e,i,a,s),i.child;case 11:return a=i.type,o=i.pendingProps,o=i.elementType===a?o:Lg(a,o),Zi(e,i,a,o,s);case 7:return Yi(e,i,i.pendingProps,s),i.child;case 8:return Yi(e,i,i.pendingProps.children,s),i.child;case 12:return Yi(e,i,i.pendingProps.children,s),i.child;case 10:e:{if(a=i.type._context,o=i.pendingProps,h=i.memoizedProps,d=o.value,G(Mg,a._currentValue),a._currentValue=d,h!==null)if(He(h.value,d)){if(h.children===o.children&&!Wf.current){i=$i(e,i,s);break e}}else for(h=i.child,h!==null&&(h.return=i);h!==null;){var g=h.dependencies;if(g!==null){d=h.child;for(var b=g.firstContext;b!==null;){if(b.context===a){if(h.tag===1){b=ch(-1,s&-s),b.tag=2;var _=h.updateQueue;if(_!==null){_=_.shared;var j=_.pending;j===null?b.next=b:(b.next=j.next,j.next=b),_.pending=b}}h.lanes|=s,b=h.alternate,b!==null&&(b.lanes|=s),Sg(h.return,s,i),g.lanes|=s;break}b=b.next}}else if(h.tag===10)d=h.type===i.type?null:h.child;else if(h.tag===18){if(d=h.return,d===null)throw Error(p(341));d.lanes|=s,g=d.alternate,g!==null&&(g.lanes|=s),Sg(d,s,i),d=h.sibling}else d=h.child;if(d!==null)d.return=h;else for(d=h;d!==null;){if(d===i){d=null;break}if(h=d.sibling,h!==null){h.return=d.return,d=h;break}d=d.return}h=d}
vendor: 5,830 bytes, line 40
40Yi(e,i,o.children,s),i=i.child}return i;case 9:return o=i.type,a=i.pendingProps.children,Tg(i,s),o=Vg(o),a=a(o),i.flags|=1,Yi(e,i,a,s),i.child;case 14:return a=i.type,o=Lg(a,i.pendingProps),o=Lg(a.type,o),aj(e,i,a,o,s);case 15:return cj(e,i,i.type,i.pendingProps,s);case 17:return a=i.type,o=i.pendingProps,o=i.elementType===a?o:Lg(a,o),jj(e,i),i.tag=1,Zf(a)?(e=!0,cg(i)):e=!1,Tg(i,s),ph(i,a,o),rh(i,a,o,s),kj(null,i,a,!0,e,s);case 19:return yj(e,i,s);case 22:return ej(e,i,s)}throw Error(p(156,i.tag))};function Gk(e,i){return ac(e,i)}function al(e,i,s,a){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,i,s,a){return new al(e,i,s,a)}function bj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $k(e){if(typeof e=="function")return bj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Da)return 11;if(e===Ga)return 14}return 2}function wh(e,i){var s=e.alternate;return s===null?(s=Bg(e.tag,i,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=i,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,i=e.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function yh(e,i,s,a,o,h){var d=2;if(a=e,typeof e=="function")bj(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ya:return Ah(s.children,o,h,i);case za:d=8,o|=8;break;case Aa:return e=Bg(12,s,i,o|2),e.elementType=Aa,e.lanes=h,e;case Ea:return e=Bg(13,s,i,o),e.elementType=Ea,e.lanes=h,e;case Fa:return e=Bg(19,s,i,o),e.elementType=Fa,e.lanes=h,e;case Ia:return qj(s,o,h,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:d=10;break e;case Ca:d=9;break e;case Da:d=11;break e;case Ga:d=14;break e;case Ha:d=16,a=null;break e}throw Error(p(130,e==null?e:typeof e,""))}return i=Bg(d,s,i,o),i.elementType=e,i.type=a,i.lanes=h,i}function Ah(e,i,s,a){return e=Bg(7,e,a,i),e.lanes=s,e}function qj(e,i,s,a){return e=Bg(22,e,a,i),e.elementType=Ia,e.lanes=s,e.stateNode={isHidden:!1},e}function xh(e,i,s){return e=Bg(6,e,null,i),e.lanes=s,e}function zh(e,i,s){return i=Bg(4,e.children!==null?e.children:[],e.key,i),i.lanes=s,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function bl(e,i,s,a,o){this.tag=i,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cl(e,i,s,a,o,h,d,g,b){return e=new bl(e,i,s,g,b),i===1?(i=1,h===!0&&(i|=8)):i=0,h=Bg(3,null,null,i),e.current=h,h.stateNode=e,h.memoizedState={element:a,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(h),e}function dl(e,i,s){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:a==null?null:""+a,children:e,containerInfo:i,implementation:s}}function el(e){if(!e)return Vf;e=e._reactInternals;e:{if(Vb(e)!==e||e.tag!==1)throw Error(p(170));var i=e;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Zf(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(p(171))}if(e.tag===1){var s=e.type;if(Zf(s))return bg(e,s,i)}return i}function fl(e,i,s,a,o,h,d,g,b){return e=cl(s,a,!0,e,o,h,d,g,b),e.context=el(null),s=e.current,a=L(),o=lh(s),h=ch(a,o),h.callback=i??null,dh(s,h,o),e.current.lanes=o,Ac(e,o,a),Ek(e,a),e}function gl(e,i,s,a){var o=i.current,h=L(),d=lh(o);return s=el(s),i.context===null?i.context=s:i.pendingContext=s,i=ch(h,d),i.payload={element:e},a=a===void 0?null:a,a!==null&&(i.callback=a),e=dh(o,i,d),e!==null&&(mh(e,o,d,h),eh(e,o,d)),d}function hl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function il(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<i?s:i}}function jl(e,i){il(e,i),(e=e.alternate)&&il(e,i)}function kl(){return null}var ll=typeof reportError=="function"?reportError:function(e){console.error(e)};function ml(e){this._internalRoot=e}nl.prototype.render=ml.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(p(409));gl(e,i,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;Sk(function(){gl(null,e,null,null)}),i[uf]=null}};function nl(e){this._internalRoot=e}nl.prototype.unstable_scheduleHydration=function(e){if(e){var i=Hc();e={blockedOn:null,target:e,priority:i};for(var s=0;s<Qc.length&&i!==0&&i<Qc[s].priority;s++);Qc.splice(s,0,e),s===0&&Vc(e)}};function ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(e,i,s,a,o){if(o){if(typeof a=="function"){var h=a;a=function(){var _=hl(d);h.call(_)}}var d=fl(i,a,e,0,null,!1,!1,"",ql);
40return e._reactRootContainer=d,e[uf]=d.current,sf(e.nodeType===8?e.parentNode:e),Sk(),d}for(;o=e.lastChild;)e.removeChild(o);if(typeof a=="function"){var g=a;a=function(){var _=hl(b);g.call(_)}}var b=cl(e,0,!1,null,null,!1,!1,"",ql);return e._reactRootContainer=b,e[uf]=b.current,sf(e.nodeType===8?e.parentNode:e),Sk(function(){gl(i,b,s,a)}),b}function sl(e,i,s,a,o){var h=s._reactRootContainer;if(h){var d=h;if(typeof o=="function"){var g=o;o=function(){var b=hl(d);g.call(b)}}gl(i,d,e,o)}else d=rl(s,i,e,o,a);return hl(d)}Ec=function(e){switch(e.tag){case 3:var i=e.stateNode;if(i.current.memoizedState.isDehydrated){var s=tc(i.pendingLanes);s!==0&&(Cc(i,s|1),Ek(i,B()),!(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var a=Zg(e,1);if(a!==null){var o=L();mh(a,e,1,o)}}),jl(e,1)}};Fc=function(e){if(e.tag===13){var i=Zg(e,134217728);if(i!==null){var s=L();mh(i,e,134217728,s)}jl(e,134217728)}};Gc=function(e){if(e.tag===13){var i=lh(e),s=Zg(e,i);if(s!==null){var a=L();mh(s,e,i,a)}jl(e,i)}};Hc=function(){return C};Ic=function(e,i){var s=C;try{return C=e,i()}finally{C=s}};yb=function(e,i,s){switch(i){case"input":if(bb(e,s),i=s.name,s.type==="radio"&&i!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var a=s[i];if(a!==e&&a.form===e.form){var o=Db(a);if(!o)throw Error(p(90));Wa(a),bb(a,o)}}}break;case"textarea":ib(e,s);break;case"select":i=s.value,i!=null&&fb(e,!!s.multiple,i,!1)}};Gb=Rk;Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zb(e),e===null?null:e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;reactDom_production_min.createPortal=function(e,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(i))throw Error(p(200));return dl(e,i,null,s)};reactDom_production_min.createRoot=function(e,i){if(!ol(e))throw Error(p(299));var s=!1,a="",o=ll;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(a=i.identifierPrefix),i.onRecoverableError!==void 0&&(o=i.onRecoverableError)),i=cl(e,1,!1,null,null,s,!1,a,o),e[uf]=i.current,sf(e.nodeType===8?e.parentNode:e),new ml(i)};reactDom_production_min.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(p(188)):(e=Object.keys(e).join(","),Error(p(268,e)));return e=Zb(i),e=e===null?null:e.stateNode,e};reactDom_production_min.flushSync=function(e){return Sk(e)};reactDom_production_min.hydrate=function(e,i,s){if(!pl(i))throw Error(p(200));return sl(null,e,i,!0,s)};reactDom_production_min.hydrateRoot=function(e,i,s){if(!ol(e))throw Error(p(405));var a=s!=null&&s.hydratedSources||null,o=!1,h="",d=ll;if(s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onRecoverableError!==void 0&&(d=s.onRecoverableError)),i=fl(i,null,e,1,s??null,o,!1,h,d),e[uf]=i.current,sf(e),a)for(e=0;e<a.length;e++)s=a[e],o=s._getVersion,o=o(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,o]:i.mutableSourceEagerHydrationData.push(s,o);return new nl(i)};reactDom_production_min.render=function(e,i,s){if(!pl(i))throw Error(p(200));return sl(null,e,i,!1,s)};reactDom_production_min.unmountComponentAtNode=function(e){if(!pl(e))throw Error(p(40));return e._reactRootContainer?(Sk(function(){sl(null,null,e,!1,function(){e._reactRootContainer=null,e[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Rk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,i,s,a){if(!pl(s))throw Error(p(200));if(e==null||e._reactInternals===void 0)throw Error(p(38));return sl(e,i,s,!1,a)};reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,m=reactDomExports;client.createRoot=m.createRoot,client.hydrateRoot=m.hydrateRoot;var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window>"u"||"Deno"in window;function noop$1(){}function functionalUpdate(e,i){return typeof e=="function"?e(i):e}function isValidTimeout(e){return typeof e=="number"&&e>=0&&e!==1/0}function timeUntilStale(e,i){return Math.max(e+(i||0)-Date.now(),0)}function matchQuery(e,i){const{type:s="all",exact:a,fetchStatus:o,predicate:h,queryKey:d,stale:g}=e;if(d){if(a){if(i.queryHash!==hashQueryKeyByOptions(d,i.options))return!1}else if(!partialMatchKey(i.queryKey,d))return!1}if(s!=="all"){const b=i.isActive();if(s==="active"&&!b||s==="inactive"&&b)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||typeof o<"u"&&o!==i.state.fetchStatus||h&&!h(i))}function matchMutation(e,i){const{exact:s,status:a,predicate:o,mutationKey:h}=e;if(h){if(!i.options.mutationKey)return!1;if(s){if(hashKey(i.options.mutationKey)!==hashKey(h))return!1}else if(!partialMatchKey(i.options.mutationKey,h))return!1}return!(a&&i.state.status!==a||o&&!o(i))}function hashQueryKeyByOptions(e,i){return((i==null?void 0:i.queryKeyHashFn)||hashKey)(e)}function hashKey(e){return JSON.stringify(e,(i,s)=>isPlainObject(s)?Object.keys(s).sort().reduce((a,o)=>(a[o]=s[o],a),{}):s)}function partialMatchKey(e,i){return e===i?!0:typeof e!=typeof i?!1:e&&i&&typeof e=="object"&&typeof i=="object"?!Object.keys(i).some(s=>
40!partialMatchKey(e[s],i[s])):!1}function replaceEqualDeep(e,i){if(e===i)return e;const s=isPlainArray(e)&&isPlainArray(i);if(s||isPlainObject(e)&&isPlainObject(i)){const a=s?e:Object.keys(e),o=a.length,h=s?i:Object.keys(i),d=h.length,g=s?[]:{};let b=0;for(let _=0;_<d;_++){const j=s?_:h[_];!s&&e[j]===void 0&&i[j]===void 0&&a.includes(j)?(g[j]=void 0,b++):(g[j]=replaceEqualDeep(e[j],i[j]),g[j]===e[j]&&e[j]!==void 0&&b++)}return o===d&&b===o?e:g}return i}function shallowEqualObjects(e,i){if(!i||Object.keys(e).length!==Object.keys(i).length)return!1;for(const s in e)if(e[s]!==i[s])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;const i=e.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!hasObjectPrototype(s)||!s.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(e){return Object.prototype.toString.call(e)==="[object Object]"}function sleep(e){return new Promise(i=>{setTimeout(i,e)})}function replaceData(e,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,i):s.structuralSharing!==!1?replaceEqualDeep(e,i):i}function addToEnd(e,i,s=0){const a=[...e,i];return s&&a.length>s?a.slice(1):a}function addToStart(e,i,s=0){const a=[i,...e];return s&&a.length>s?a.slice(0,-1):a}var Cn,gn,Fn,Er,FocusManager=(Er=class extends Subscribable{constructor(){super();At(this,Cn,void 0);At(this,gn,void 0);At(this,Fn,void 0);kt(this,Fn,i=>{if(!isServer&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){gt(this,gn)||this.setEventListener(gt(this,Fn))}onUnsubscribe(){var i;this.hasListeners()||((i=gt(this,gn))==null||i.call(this),kt(this,gn,void 0))}setEventListener(i){var s;kt(this,Fn,i),(s=gt(this,gn))==null||s.call(this),kt(this,gn,i(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(i){gt(this,Cn)!==i&&(kt(this,Cn,i),this.onFocus())}onFocus(){this.listeners.forEach(i=>{i()})}isFocused(){var i;return typeof gt(this,Cn)=="boolean"?gt(this,Cn):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Cn=new WeakMap,gn=new WeakMap,Fn=new WeakMap,Er),focusManager=new FocusManager,In,yn,Vn,Sr,OnlineManager=(Sr=class extends Subscribable{constructor(){super();At(this,In,!0);At(this,yn,void 0);At(this,Vn,void 0);kt(this,Vn,i=>{if(!isServer&&window.addEventListener){const s=()=>i(!0),a=()=>i(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",a)}}})}onSubscribe(){gt(this,yn)||this.setEventListener(gt(this,Vn))}onUnsubscribe(){var i;this.hasListeners()||((i=gt(this,yn))==null||i.call(this),kt(this,yn,void 0))}setEventListener(i){var s;kt(this,Vn,i),(s=gt(this,yn))==null||s.call(this),kt(this,yn,i(this.setOnline.bind(this)))}setOnline(i){gt(this,In)!==i&&(kt(this,In,i),this.listeners.forEach(a=>{a(i)}))}isOnline(){return gt(this,In)}},In=new WeakMap,yn=new WeakMap,Vn=new WeakMap,Sr),onlineManager=new OnlineManager;function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(e??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function isCancelledError(e){return e instanceof CancelledError}function createRetryer(e){let i=!1,s=0,a=!1,o,h,d;const g=new Promise((et,rt)=>{h=et,d=rt}),b=et=>{var rt;a||($(new CancelledError(et)),(rt=e.abort)==null||rt.call(e))},_=()=>{i=!0},j=()=>{i=!1},_e=()=>!focusManager.isFocused()||e.networkMode!=="always"&&!onlineManager.isOnline(),tt=et=>{var rt;a||(a=!0,(rt=e.onSuccess)==null||rt.call(e,et),o==null||o(),h(et))},$=et=>{var rt;a||(a=!0,(rt=e.onError)==null||rt.call(e,et),o==null||o(),d(et))},nt=()=>new Promise(et=>{var rt;o=st=>{const at=a||!_e();return at&&et(st),at},(rt=e.onPause)==null||rt.call(e)}).then(()=>{var et;o=void 0,a||(et=e.onContinue)==null||et.call(e)}),it=()=>{if(a)return;let et;try{et=e.fn()}catch(rt){et=Promise.reject(rt)}Promise.resolve(et).then(tt).catch(rt=>{var pt;if(a)return;const st=e.retry??(isServer?0:3),at=e.retryDelay??defaultRetryDelay,ot=typeof at=="function"?at(s,rt):at,lt=st===!0||typeof st=="number"&&s<st||typeof st=="function"&&st(s,rt);if(i||!lt){$(rt);return}s++,(pt=e.onFail)==null||pt.call(e,s,rt),sleep(ot).then(()=>
40{if(_e())return nt()}).then(()=>{i?$(rt):it()})})};return canFetch(e.networkMode)?it():nt().then(it),{promise:g,cancel:b,continue:()=>(o==null?void 0:o())?g:Promise.resolve(),cancelRetry:_,continueRetry:j}}function createNotifyManager(){let e=[],i=0,s=tt=>{tt()},a=tt=>{tt()},o=tt=>setTimeout(tt,0);const h=tt=>{o=tt},d=tt=>{let $;i++;try{$=tt()}finally{i--,i||_()}return $},g=tt=>{i?e.push(tt):o(()=>{s(tt)})},b=tt=>(...$)=>{g(()=>{tt(...$)})},_=()=>{const tt=e;e=[],tt.length&&o(()=>{a(()=>{tt.forEach($=>{s($)})})})};return{batch:d,batchCalls:b,schedule:g,setNotifyFunction:tt=>{s=tt},setBatchNotifyFunction:tt=>{a=tt},setScheduler:h}}var notifyManager=createNotifyManager(),wn,Pr,Removable=(Pr=class{constructor(){At(this,wn,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&kt(this,wn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){gt(this,wn)&&(clearTimeout(gt(this,wn)),kt(this,wn,void 0))}},wn=new WeakMap,Pr),Rn,Ln,Jt,vn,en,$t,Qn,kn,Bn,cr,sn,fn,br,Query=(br=class extends Removable{constructor(i){super();At(this,Bn);At(this,sn);At(this,Rn,void 0);At(this,Ln,void 0);At(this,Jt,void 0);At(this,vn,void 0);At(this,en,void 0);At(this,$t,void 0);At(this,Qn,void 0);At(this,kn,void 0);kt(this,kn,!1),kt(this,Qn,i.defaultOptions),Vt(this,Bn,cr).call(this,i.options),kt(this,$t,[]),kt(this,Jt,i.cache),this.queryKey=i.queryKey,this.queryHash=i.queryHash,kt(this,Rn,i.state||getDefaultState$1(this.options)),this.state=gt(this,Rn),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!gt(this,$t).length&&this.state.fetchStatus==="idle"&&gt(this,Jt).remove(this)}setData(i,s){const a=replaceData(this.state.data,i,this.options);return Vt(this,sn,fn).call(this,{data:a,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),a}setState(i,s){Vt(this,sn,fn).call(this,{type:"setState",state:i,setStateOptions:s})}cancel(i){var a;const s=gt(this,vn);return(a=gt(this,en))==null||a.cancel(i),s?s.then(noop$1).catch(noop$1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(gt(this,Rn))}isActive(){return gt(this,$t).some(i=>i.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||gt(this,$t).some(i=>i.getCurrentResult().isStale)}isStaleByTime(i=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,i)}onFocus(){var s;const i=gt(this,$t).find(a=>a.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(s=gt(this,en))==null||s.continue()}onOnline(){var s;const i=gt(this,$t).find(a=>a.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(s=gt(this,en))==null||s.continue()}addObserver(i){gt(this,$t).includes(i)||(gt(this,$t).push(i),this.clearGcTimeout(),gt(this,Jt).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){gt(this,$t).includes(i)&&(kt(this,$t,gt(this,$t).filter(s=>s!==i)),gt(this,$t).length||(gt(this,en)&&(gt(this,kn)?gt(this,en).cancel({revert:!0}):gt(this,en).cancelRetry()),this.scheduleGc()),gt(this,Jt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return gt(this,$t).length}invalidate(){this.state.isInvalidated||Vt(this,sn,fn).call(this,{type:"invalidate"})}fetch(i,s){var _,j,_e,tt;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(gt(this,vn))return(_=gt(this,en))==null||_.continueRetry(),gt(this,vn)}if(i&&Vt(this,Bn,cr).call(this,i),!this.options.queryFn){const $=gt(this,$t).find(nt=>nt.options.queryFn);$&&Vt(this,Bn,cr).call(this,$.options)}const a=new AbortController,o={queryKey:this.queryKey,meta:this.meta},h=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>(kt(this,kn,!0),a.signal)})};h(o);const d=()=>this.options.queryFn?(kt(this,kn,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),g={fetchOptions:s,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};h(g),(j=this.options.behavior)==null||j.onFetch(g,this),kt(this,Ln,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((_e=g.fetchOptions)==null?void 0:_e.meta))&&Vt(this,sn,fn).call(this,{type:"fetch",meta:(tt=g.fetchOptions)==null?void 0:tt.meta});const b=$=>{var nt,it,et,rt;isCancelledError($)&&$.silent||Vt(this,sn,fn).call(this,{type:"error",error:$}),isCancelledError($)||((it=(nt=gt(this,Jt).config).onError)==null||it.call(nt,$,this),(rt=(et=gt(this,Jt).config).onSettled)==null||rt.call(et,this.state.data,$,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return kt(this,en,createRetryer({fn:g.fetchFn,abort:a.abort.bind(a),onSuccess:$=>{var nt,it,et,rt;if(typeof $>"u"){b(new Error(`${this.queryHash} data is undefined`));return}this.setData($),(it=(nt=gt(this,Jt).config).onSuccess)==null||it.call(nt,$,this),(rt=(et=gt(this,Jt).config).onSettled)==null||rt.call(et,$,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:b,onFail:($,nt)=>{Vt(this,sn,fn).call(this,{type:"failed",failureCount:$,error:nt})},onPause:()=>{Vt(this,sn,fn).call(this,{type:"pause"})},onContinue:()=>{Vt(this,sn,fn).call(this,{type:"continue"})}
vendor: 4,802 bytes, line 40
40,retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode})),kt(this,vn,gt(this,en).promise),gt(this,vn)}},Rn=new WeakMap,Ln=new WeakMap,Jt=new WeakMap,vn=new WeakMap,en=new WeakMap,$t=new WeakMap,Qn=new WeakMap,kn=new WeakMap,Bn=new WeakSet,cr=function(i){this.options={...gt(this,Qn),...i},this.updateGcTime(this.options.gcTime)},sn=new WeakSet,fn=function(i){const s=a=>{switch(i.type){case"failed":return{...a,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:i.meta??null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!a.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...a,data:i.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:i.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=i.error;return isCancelledError(o)&&o.revert&&gt(this,Ln)?{...gt(this,Ln),fetchStatus:"idle"}:{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...i.state}}};this.state=s(this.state),notifyManager.batch(()=>{gt(this,$t).forEach(a=>{a.onQueryUpdate()}),gt(this,Jt).notify({query:this,type:"updated",action:i})})},br);function getDefaultState$1(e){const i=typeof e.initialData=="function"?e.initialData():e.initialData,s=typeof i<"u",a=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var on,Cr,QueryCache=(Cr=class extends Subscribable{constructor(i={}){super();At(this,on,void 0);this.config=i,kt(this,on,new Map)}build(i,s,a){const o=s.queryKey,h=s.queryHash??hashQueryKeyByOptions(o,s);let d=this.get(h);return d||(d=new Query({cache:this,queryKey:o,queryHash:h,options:i.defaultQueryOptions(s),state:a,defaultOptions:i.getQueryDefaults(o)}),this.add(d)),d}add(i){gt(this,on).has(i.queryHash)||(gt(this,on).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const s=gt(this,on).get(i.queryHash);s&&(i.destroy(),s===i&&gt(this,on).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return gt(this,on).get(i)}getAll(){return[...gt(this,on).values()]}find(i){const s={exact:!0,...i};return this.getAll().find(a=>matchQuery(s,a))}findAll(i={}){const s=this.getAll();return Object.keys(i).length>0?s.filter(a=>matchQuery(i,a)):s}notify(i){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(i)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},on=new WeakMap,Cr),ln,qn,Zt,jn,un,mn,wr,Mutation=(wr=class extends Removable{constructor(i){super();At(this,un);At(this,ln,void 0);At(this,qn,void 0);At(this,Zt,void 0);At(this,jn,void 0);this.mutationId=i.mutationId,kt(this,qn,i.defaultOptions),kt(this,Zt,i.mutationCache),kt(this,ln,[]),this.state=i.state||getDefaultState(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options={...gt(this,qn),...i},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){gt(this,ln).includes(i)||(gt(this,ln).push(i),this.clearGcTimeout(),gt(this,Zt).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){kt(this,ln,gt(this,ln).filter(s=>s!==i)),this.scheduleGc(),gt(this,Zt).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){gt(this,ln).length||(this.state.status==="pending"?this.scheduleGc():gt(this,Zt).remove(this))}continue(){var i;return((i=gt(this,jn))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var o,h,d,g,b,_,j,_e,tt,$,nt,it,et,rt,st,at,ot,lt,pt,ct;const s=()=>(kt(this,jn,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(i):Promise.reject(new Error("No mutationFn found")),onFail:(ut,mt)=>{Vt(this,un,mn).call(this,{type:"failed",failureCount:ut,error:mt})},onPause:()=>{Vt(this,un,mn).call(this,{type:"pause"})},onContinue:()=>{Vt(this,un,mn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),gt(this,jn).promise),a=this.state.status==="pending";
40try{if(!a){Vt(this,un,mn).call(this,{type:"pending",variables:i}),await((h=(o=gt(this,Zt).config).onMutate)==null?void 0:h.call(o,i,this));const mt=await((g=(d=this.options).onMutate)==null?void 0:g.call(d,i));mt!==this.state.context&&Vt(this,un,mn).call(this,{type:"pending",context:mt,variables:i})}const ut=await s();return await((_=(b=gt(this,Zt).config).onSuccess)==null?void 0:_.call(b,ut,i,this.state.context,this)),await((_e=(j=this.options).onSuccess)==null?void 0:_e.call(j,ut,i,this.state.context)),await(($=(tt=gt(this,Zt).config).onSettled)==null?void 0:$.call(tt,ut,null,this.state.variables,this.state.context,this)),await((it=(nt=this.options).onSettled)==null?void 0:it.call(nt,ut,null,i,this.state.context)),Vt(this,un,mn).call(this,{type:"success",data:ut}),ut}catch(ut){try{throw await((rt=(et=gt(this,Zt).config).onError)==null?void 0:rt.call(et,ut,i,this.state.context,this)),await((at=(st=this.options).onError)==null?void 0:at.call(st,ut,i,this.state.context)),await((lt=(ot=gt(this,Zt).config).onSettled)==null?void 0:lt.call(ot,void 0,ut,this.state.variables,this.state.context,this)),await((ct=(pt=this.options).onSettled)==null?void 0:ct.call(pt,void 0,ut,i,this.state.context)),ut}finally{Vt(this,un,mn).call(this,{type:"error",error:ut})}}}},ln=new WeakMap,qn=new WeakMap,Zt=new WeakMap,jn=new WeakMap,un=new WeakSet,mn=function(i){const s=a=>{switch(i.type){case"failed":return{...a,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...a,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:i.error,failureCount:a.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=s(this.state),notifyManager.batch(()=>{gt(this,ln).forEach(a=>{a.onMutationUpdate(i)}),gt(this,Zt).notify({mutation:this,type:"updated",action:i})})},wr);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tn,Yn,Tn,kr,MutationCache=(kr=class extends Subscribable{constructor(i={}){super();At(this,tn,void 0);At(this,Yn,void 0);At(this,Tn,void 0);this.config=i,kt(this,tn,[]),kt(this,Yn,0)}build(i,s,a){const o=new Mutation({mutationCache:this,mutationId:++ur(this,Yn)._,options:i.defaultMutationOptions(s),state:a});return this.add(o),o}add(i){gt(this,tn).push(i),this.notify({type:"added",mutation:i})}remove(i){kt(this,tn,gt(this,tn).filter(s=>s!==i)),this.notify({type:"removed",mutation:i})}clear(){notifyManager.batch(()=>{gt(this,tn).forEach(i=>{this.remove(i)})})}getAll(){return gt(this,tn)}find(i){const s={exact:!0,...i};return gt(this,tn).find(a=>matchMutation(s,a))}findAll(i={}){return gt(this,tn).filter(s=>matchMutation(i,s))}notify(i){notifyManager.batch(()=>{this.listeners.forEach(s=>{s(i)})})}resumePausedMutations(){return kt(this,Tn,(gt(this,Tn)??Promise.resolve()).then(()=>{const i=gt(this,tn).filter(s=>s.state.isPaused);return notifyManager.batch(()=>i.reduce((s,a)=>s.then(()=>a.continue().catch(noop$1)),Promise.resolve()))}).then(()=>{kt(this,Tn,void 0)})),gt(this,Tn)}},tn=new WeakMap,Yn=new WeakMap,Tn=new WeakMap,kr);function infiniteQueryBehavior(e){return{onFetch:(i,s)=>{const a=async()=>{var nt,it,et,rt,st;const o=i.options,h=(et=(it=(nt=i.fetchOptions)==null?void 0:nt.meta)==null?void 0:it.fetchMore)==null?void 0:et.direction,d=((rt=i.state.data)==null?void 0:rt.pages)||[],g=((st=i.state.data)==null?void 0:st.pageParams)||[],b={pages:[],pageParams:[]};let _=!1;const j=at=>{Object.defineProperty(at,"signal",{enumerable:!0,get:()=>(i.signal.aborted?_=!0:i.signal.addEventListener("abort",()=>{_=!0}),i.signal)})},_e=i.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${i.options.queryHash}'`))),tt=async(at,ot,lt)=>{if(_)return Promise.reject();if(ot==null&&at.pages.length)return Promise.resolve(at);const pt={queryKey:i.queryKey,pageParam:ot,direction:lt?"backward":"forward",meta:i.options.meta};j(pt);const ct=await _e(pt),{maxPages:ut}=i.options,mt=lt?addToStart:addToEnd;return{pages:mt(at.pages,ct,ut),pageParams:mt(at.pageParams,ot,ut)}};let $;if(h&&d.length){const at=h==="backward",ot=at?getPreviousPageParam:getNextPageParam,lt={pages:d,pageParams:g},pt=ot(o,lt);$=await tt(lt,pt,at)}else{$=await tt(b,g[0]??o.initialPageParam);const at=e??d.length;for(let ot=1;ot<at;ot++){const lt=getNextPageParam(o,$);$=await tt($,lt)}}return $};i.options.persister?i.fetchFn=()=>{var o,h;
40return(h=(o=i.options).persister)==null?void 0:h.call(o,a,{queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s)}:i.fetchFn=a}}}function getNextPageParam(e,{pages:i,pageParams:s}){const a=i.length-1;return e.getNextPageParam(i[a],i,s[a],s)}function getPreviousPageParam(e,{pages:i,pageParams:s}){var a;return(a=e.getPreviousPageParam)==null?void 0:a.call(e,i[0],i,s[0],s)}var Ht,xn,En,On,Nn,Sn,zn,Gn,Tr,QueryClient=(Tr=class{constructor(e={}){At(this,Ht,void 0);At(this,xn,void 0);At(this,En,void 0);At(this,On,void 0);At(this,Nn,void 0);At(this,Sn,void 0);At(this,zn,void 0);At(this,Gn,void 0);kt(this,Ht,e.queryCache||new QueryCache),kt(this,xn,e.mutationCache||new MutationCache),kt(this,En,e.defaultOptions||{}),kt(this,On,new Map),kt(this,Nn,new Map),kt(this,Sn,0)}mount(){ur(this,Sn)._++,gt(this,Sn)===1&&(kt(this,zn,focusManager.subscribe(()=>{focusManager.isFocused()&&(this.resumePausedMutations(),gt(this,Ht).onFocus())})),kt(this,Gn,onlineManager.subscribe(()=>{onlineManager.isOnline()&&(this.resumePausedMutations(),gt(this,Ht).onOnline())})))}unmount(){var e,i;ur(this,Sn)._--,gt(this,Sn)===0&&((e=gt(this,zn))==null||e.call(this),kt(this,zn,void 0),(i=gt(this,Gn))==null||i.call(this),kt(this,Gn,void 0))}isFetching(e){return gt(this,Ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return gt(this,xn).findAll({...e,status:"pending"}).length}getQueryData(e){var s;const i=this.defaultQueryOptions({queryKey:e});return(s=gt(this,Ht).get(i.queryHash))==null?void 0:s.state.data}ensureQueryData(e){const i=this.getQueryData(e.queryKey);return i!==void 0?Promise.resolve(i):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:i,state:s})=>{const a=s.data;return[i,a]})}setQueryData(e,i,s){const a=this.defaultQueryOptions({queryKey:e}),o=gt(this,Ht).get(a.queryHash),h=o==null?void 0:o.state.data,d=functionalUpdate(i,h);if(!(typeof d>"u"))return gt(this,Ht).build(this,a).setData(d,{...s,manual:!0})}setQueriesData(e,i,s){return notifyManager.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,i,s)]))}getQueryState(e){var s;const i=this.defaultQueryOptions({queryKey:e});return(s=gt(this,Ht).get(i.queryHash))==null?void 0:s.state}removeQueries(e){const i=gt(this,Ht);notifyManager.batch(()=>{i.findAll(e).forEach(s=>{i.remove(s)})})}resetQueries(e,i){const s=gt(this,Ht),a={type:"active",...e};return notifyManager.batch(()=>(s.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(a,i)))}cancelQueries(e={},i={}){const s={revert:!0,...i},a=notifyManager.batch(()=>gt(this,Ht).findAll(e).map(o=>o.cancel(s)));return Promise.all(a).then(noop$1).catch(noop$1)}invalidateQueries(e={},i={}){return notifyManager.batch(()=>{if(gt(this,Ht).findAll(e).forEach(a=>{a.invalidate()}),e.refetchType==="none")return Promise.resolve();const s={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(s,i)})}refetchQueries(e={},i){const s={...i,cancelRefetch:(i==null?void 0:i.cancelRefetch)??!0},a=notifyManager.batch(()=>gt(this,Ht).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let h=o.fetch(void 0,s);return s.throwOnError||(h=h.catch(noop$1)),o.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(a).then(noop$1)}fetchQuery(e){const i=this.defaultQueryOptions(e);typeof i.retry>"u"&&(i.retry=!1);const s=gt(this,Ht).build(this,i);return s.isStaleByTime(i.staleTime)?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(noop$1).catch(noop$1)}fetchInfiniteQuery(e){return e.behavior=infiniteQueryBehavior(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(noop$1).catch(noop$1)}resumePausedMutations(){return gt(this,xn).resumePausedMutations()}getQueryCache(){return gt(this,Ht)}getMutationCache(){return gt(this,xn)}getDefaultOptions(){return gt(this,En)}setDefaultOptions(e){kt(this,En,e)}setQueryDefaults(e,i){gt(this,On).set(hashKey(e),{queryKey:e,defaultOptions:i})}getQueryDefaults(e){const i=[...gt(this,On).values()];let s={};return i.forEach(a=>{partialMatchKey(e,a.queryKey)&&(s={...s,...a.defaultOptions})}),s}setMutationDefaults(e,i){gt(this,Nn).set(hashKey(e),{mutationKey:e,defaultOptions:i})}getMutationDefaults(e){const i=[...gt(this,Nn).values()];let s={};
40return i.forEach(a=>{partialMatchKey(e,a.mutationKey)&&(s={...s,...a.defaultOptions})}),s}defaultQueryOptions(e){if(e._defaulted)return e;const i={...gt(this,En).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return i.queryHash||(i.queryHash=hashQueryKeyByOptions(i.queryKey,i)),typeof i.refetchOnReconnect>"u"&&(i.refetchOnReconnect=i.networkMode!=="always"),typeof i.throwOnError>"u"&&(i.throwOnError=!!i.suspense),typeof i.networkMode>"u"&&i.persister&&(i.networkMode="offlineFirst"),i}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...gt(this,En).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){gt(this,Ht).clear(),gt(this,xn).clear()}},Ht=new WeakMap,xn=new WeakMap,En=new WeakMap,On=new WeakMap,Nn=new WeakMap,Sn=new WeakMap,zn=new WeakMap,Gn=new WeakMap,Tr),Qt,Nt,Xn,Ut,An,Hn,cn,Zn,$n,Un,_n,Mn,Pn,Wn,Dn,Kn,Jn,fr,er,dr,tr,mr,nr,gr,rr,yr,ir,vr,sr,xr,hr,_r,Ar,QueryObserver=(Ar=class extends Subscribable{constructor(i,s){super();At(this,Dn);At(this,Jn);At(this,er);At(this,tr);At(this,nr);At(this,rr);At(this,ir);At(this,sr);At(this,hr);At(this,Qt,void 0);At(this,Nt,void 0);At(this,Xn,void 0);At(this,Ut,void 0);At(this,An,void 0);At(this,Hn,void 0);At(this,cn,void 0);At(this,Zn,void 0);At(this,$n,void 0);At(this,Un,void 0);At(this,_n,void 0);At(this,Mn,void 0);At(this,Pn,void 0);At(this,Wn,new Set);this.options=s,kt(this,Qt,i),kt(this,cn,null),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(gt(this,Nt).addObserver(this),shouldFetchOnMount(gt(this,Nt),this.options)?Vt(this,Dn,Kn).call(this):this.updateResult(),Vt(this,nr,gr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(gt(this,Nt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(gt(this,Nt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Vt(this,rr,yr).call(this),Vt(this,ir,vr).call(this),gt(this,Nt).removeObserver(this)}setOptions(i,s){const a=this.options,o=gt(this,Nt);if(this.options=gt(this,Qt).defaultQueryOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");Vt(this,sr,xr).call(this),shallowEqualObjects(this.options,a)||gt(this,Qt).getQueryCache().notify({type:"observerOptionsUpdated",query:gt(this,Nt),observer:this});const h=this.hasListeners();h&&shouldFetchOptionally(gt(this,Nt),o,this.options,a)&&Vt(this,Dn,Kn).call(this),this.updateResult(s),h&&(gt(this,Nt)!==o||this.options.enabled!==a.enabled||this.options.staleTime!==a.staleTime)&&Vt(this,Jn,fr).call(this);const d=Vt(this,er,dr).call(this);h&&(gt(this,Nt)!==o||this.options.enabled!==a.enabled||d!==gt(this,Pn))&&Vt(this,tr,mr).call(this,d)}getOptimisticResult(i){const s=gt(this,Qt).getQueryCache().build(gt(this,Qt),i),a=this.createResult(s,i);return shouldAssignObserverCurrentProperties(this,a)&&(kt(this,Ut,a),kt(this,Hn,this.options),kt(this,An,gt(this,Nt).state)),a}getCurrentResult(){return gt(this,Ut)}trackResult(i){const s={};
40return Object.keys(i).forEach(a=>{Object.defineProperty(s,a,{configurable:!1,enumerable:!0,get:()=>(gt(this,Wn).add(a),i[a])})}),s}getCurrentQuery(){return gt(this,Nt)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const s=gt(this,Qt).defaultQueryOptions(i),a=gt(this,Qt).getQueryCache().build(gt(this,Qt),s);return a.isFetchingOptimistic=!0,a.fetch().then(()=>this.createResult(a,s))}fetch(i){return Vt(this,Dn,Kn).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),gt(this,Ut)))}createResult(i,s){var pt;const a=gt(this,Nt),o=this.options,h=gt(this,Ut),d=gt(this,An),g=gt(this,Hn),_=i!==a?i.state:gt(this,Xn),{state:j}=i;let{error:_e,errorUpdatedAt:tt,fetchStatus:$,status:nt}=j,it=!1,et;if(s._optimisticResults){const ct=this.hasListeners(),ut=!ct&&shouldFetchOnMount(i,s),mt=ct&&shouldFetchOptionally(i,a,s,o);(ut||mt)&&($=canFetch(i.options.networkMode)?"fetching":"paused",j.dataUpdatedAt||(nt="pending")),s._optimisticResults==="isRestoring"&&($="idle")}if(s.select&&typeof j.data<"u")if(h&&j.data===(d==null?void 0:d.data)&&s.select===gt(this,Zn))et=gt(this,$n);else try{kt(this,Zn,s.select),et=s.select(j.data),et=replaceData(h==null?void 0:h.data,et,s),kt(this,$n,et),kt(this,cn,null)}catch(ct){kt(this,cn,ct)}else et=j.data;if(typeof s.placeholderData<"u"&&typeof et>"u"&&nt==="pending"){let ct;if(h!=null&&h.isPlaceholderData&&s.placeholderData===(g==null?void 0:g.placeholderData))ct=h.data;else if(ct=typeof s.placeholderData=="function"?s.placeholderData((pt=gt(this,Un))==null?void 0:pt.state.data,gt(this,Un)):s.placeholderData,s.select&&typeof ct<"u")try{ct=s.select(ct),kt(this,cn,null)}catch(ut){kt(this,cn,ut)}typeof ct<"u"&&(nt="success",et=replaceData(h==null?void 0:h.data,ct,s),it=!0)}gt(this,cn)&&(_e=gt(this,cn),et=gt(this,$n),tt=Date.now(),nt="error");const rt=$==="fetching",st=nt==="pending",at=nt==="error",ot=st&&rt;return{status:nt,fetchStatus:$,isPending:st,isSuccess:nt==="success",isError:at,isInitialLoading:ot,isLoading:ot,data:et,dataUpdatedAt:j.dataUpdatedAt,error:_e,errorUpdatedAt:tt,failureCount:j.fetchFailureCount,failureReason:j.fetchFailureReason,errorUpdateCount:j.errorUpdateCount,isFetched:j.dataUpdateCount>0||j.errorUpdateCount>0,isFetchedAfterMount:j.dataUpdateCount>_.dataUpdateCount||j.errorUpdateCount>_.errorUpdateCount,isFetching:rt,isRefetching:rt&&!st,isLoadingError:at&&j.dataUpdatedAt===0,isPaused:$==="paused",isPlaceholderData:it,isRefetchError:at&&j.dataUpdatedAt!==0,isStale:isStale(i,s),refetch:this.refetch}}updateResult(i){const s=gt(this,Ut),a=this.createResult(gt(this,Nt),this.options);if(kt(this,An,gt(this,Nt).state),kt(this,Hn,this.options),gt(this,An).data!==void 0&&kt(this,Un,gt(this,Nt)),shallowEqualObjects(a,s))return;kt(this,Ut,a);const o={},h=()=>{if(!s)return!0;const{notifyOnChangeProps:d}=this.options,g=typeof d=="function"?d():d;if(g==="all"||!g&&!gt(this,Wn).size)return!0;const b=new Set(g??gt(this,Wn));return this.options.throwOnError&&b.add("error"),Object.keys(gt(this,Ut)).some(_=>{const j=_;return gt(this,Ut)[j]!==s[j]&&b.has(j)})};(i==null?void 0:i.listeners)!==!1&&h()&&(o.listeners=!0),Vt(this,hr,_r).call(this,{...o,...i})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Vt(this,nr,gr).call(this)}},Qt=new WeakMap,Nt=new WeakMap,Xn=new WeakMap,Ut=new WeakMap,An=new WeakMap,Hn=new WeakMap,cn=new WeakMap,Zn=new WeakMap,$n=new WeakMap,Un=new WeakMap,_n=new WeakMap,Mn=new WeakMap,Pn=new WeakMap,Wn=new WeakMap,Dn=new WeakSet,Kn=function(i){Vt(this,sr,xr).call(this);let s=gt(this,Nt).fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(noop$1)),s},Jn=new WeakSet,fr=function(){if(Vt(this,rr,yr).call(this),isServer||gt(this,Ut).isStale||!isValidTimeout(this.options.staleTime))return;const s=timeUntilStale(gt(this,Ut).dataUpdatedAt,this.options.staleTime)+1;kt(this,_n,setTimeout(()=>{gt(this,Ut).isStale||this.updateResult()},s))},er=new WeakSet,dr=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(gt(this,Nt)):this.options.refetchInterval)??!1},tr=new WeakSet,mr=function(i){Vt(this,ir,vr).call(this),kt(this,Pn,i),!(isServer||this.options.enabled===!1||!isValidTimeout(gt(this,Pn))||gt(this,Pn)===0)&&kt(this,Mn,setInterval(()=>
40{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&Vt(this,Dn,Kn).call(this)},gt(this,Pn)))},nr=new WeakSet,gr=function(){Vt(this,Jn,fr).call(this),Vt(this,tr,mr).call(this,Vt(this,er,dr).call(this))},rr=new WeakSet,yr=function(){gt(this,_n)&&(clearTimeout(gt(this,_n)),kt(this,_n,void 0))},ir=new WeakSet,vr=function(){gt(this,Mn)&&(clearInterval(gt(this,Mn)),kt(this,Mn,void 0))},sr=new WeakSet,xr=function(){const i=gt(this,Qt).getQueryCache().build(gt(this,Qt),this.options);if(i===gt(this,Nt))return;const s=gt(this,Nt);kt(this,Nt,i),kt(this,Xn,i.state),this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))},hr=new WeakSet,_r=function(i){notifyManager.batch(()=>{i.listeners&&this.listeners.forEach(s=>{s(gt(this,Ut))}),gt(this,Qt).getQueryCache().notify({query:gt(this,Nt),type:"observerResultsUpdated"})})},Ar);function shouldLoadOnMount(e,i){return i.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&i.retryOnMount===!1)}function shouldFetchOnMount(e,i){return shouldLoadOnMount(e,i)||e.state.dataUpdatedAt>0&&shouldFetchOn(e,i,i.refetchOnMount)}function shouldFetchOn(e,i,s){if(i.enabled!==!1){const a=typeof s=="function"?s(e):s;return a==="always"||a!==!1&&isStale(e,i)}return!1}function shouldFetchOptionally(e,i,s,a){return s.enabled!==!1&&(e!==i||a.enabled===!1)&&(!s.suspense||e.state.status!=="error")&&isStale(e,s)}function isStale(e,i){return e.isStaleByTime(i.staleTime)}function shouldAssignObserverCurrentProperties(e,i){return!shallowEqualObjects(e.getCurrentResult(),i)}var QueryClientContext=reactExports.createContext(void 0),useQueryClient=e=>{const i=reactExports.useContext(QueryClientContext);if(e)return e;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},QueryClientProvider=({client:e,children:i})=>(reactExports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:e,children:i})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext);function shouldThrowError(e,i){return typeof e=="function"?e(...i):!!e}var ensurePreventErrorBoundaryRetry=(e,i)=>{(e.suspense||e.throwOnError)&&(i.isReset()||(e.retryOnMount=!1))},useClearResetErrorBoundary=e=>{reactExports.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:i,throwOnError:s,query:a})=>e.isError&&!i.isReset()&&!e.isFetching&&a&&shouldThrowError(s,[e.error,a]),ensureStaleTime=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},shouldSuspend=(e,i)=>(e==null?void 0:e.suspense)&&i.isPending,fetchOptimistic=(e,i,s)=>i.fetchOptimistic(e).catch(()=>{s.clearReset()});function useBaseQuery(e,i,s){const a=useQueryClient(s),o=useIsRestoring(),h=useQueryErrorResetBoundary(),d=a.defaultQueryOptions(e);d._optimisticResults=o?"isRestoring":"optimistic",ensureStaleTime(d),ensurePreventErrorBoundaryRetry(d,h),useClearResetErrorBoundary(h);const[g]=reactExports.useState(()=>new i(a,d)),b=g.getOptimisticResult(d);if(reactExports.useSyncExternalStore(reactExports.useCallback(_=>{const j=o?()=>{}:g.subscribe(notifyManager.batchCalls(_));return g.updateResult(),j},[g,o]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),reactExports.useEffect(()=>{g.setOptions(d,{listeners:!1})},[d,g]),shouldSuspend(d,b))throw fetchOptimistic(d,g,h);if(getHasError({result:b,errorResetBoundary:h,throwOnError:d.throwOnError,query:a.getQueryCache().get(d.queryHash)}))throw b.error;return d.notifyOnChangeProps?b:g.trackResult(b)}function useQuery(e,i){return useBaseQuery(e,QueryObserver,i)}var ReactQueryDevtools2=function(){return null};const MotionConfigContext=reactExports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),MotionContext=reactExports.createContext({}),PresenceContext=reactExports.createContext(null),isBrowser=typeof document<"u",useIsomorphicLayoutEffect=isBrowser?reactExports.useLayoutEffect:reactExports.useEffect,LazyContext=reactExports.createContext({strict:!1}),camelToDash=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId),MotionGlobalConfig={skipAnimations:!1,useManualTiming:!1};class Queue{constructor(){this.order=[],this.scheduled=new Set}add(i){if(!this.scheduled.has(i))return this.scheduled.add(i),this.order.push(i),!0}remove(i){const s=this.order.indexOf(i);s!==-1&&(this.order.splice(s,1),this.scheduled.delete(i))}clear(){this.order.length=0,this.scheduled.clear()}}function createRenderStep(e){let i=new Queue,s=new Queue,a=0,o=!1,h=!1;const d=new WeakSet,g={schedule:(b,_=!1,j=!1)=>
40{const _e=j&&o,tt=_e?i:s;return _&&d.add(b),tt.add(b)&&_e&&o&&(a=i.order.length),b},cancel:b=>{s.remove(b),d.delete(b)},process:b=>{if(o){h=!0;return}if(o=!0,[i,s]=[s,i],s.clear(),a=i.order.length,a)for(let _=0;_<a;_++){const j=i.order[_];d.has(j)&&(g.schedule(j),e()),j(b)}o=!1,h&&(h=!1,g.process(b))}};return g}const stepsOrder=["prepare","read","update","preRender","render","postRender"],maxElapsed=40;function createRenderBatcher(e,i){let s=!1,a=!0;const o={delta:0,timestamp:0,isProcessing:!1},h=stepsOrder.reduce((_e,tt)=>(_e[tt]=createRenderStep(()=>s=!0),_e),{}),d=_e=>{h[_e].process(o)},g=()=>{const _e=performance.now();s=!1,o.delta=a?1e3/60:Math.max(Math.min(_e-o.timestamp,maxElapsed),1),o.timestamp=_e,o.isProcessing=!0,stepsOrder.forEach(d),o.isProcessing=!1,s&&i&&(a=!1,e(g))},b=()=>{s=!0,a=!0,o.isProcessing||e(g)};return{schedule:stepsOrder.reduce((_e,tt)=>{const $=h[tt];return _e[tt]=(nt,it=!1,et=!1)=>(s||b(),$.schedule(nt,it,et)),_e},{}),cancel:_e=>stepsOrder.forEach(tt=>h[tt].cancel(_e)),state:o,steps:h}}const{schedule:microtask,cancel:cancelMicrotask}=createRenderBatcher(queueMicrotask,!1);function useVisualElement(e,i,s,a){const{visualElement:o}=reactExports.useContext(MotionContext),h=reactExports.useContext(LazyContext),d=reactExports.useContext(PresenceContext),g=reactExports.useContext(MotionConfigContext).reducedMotion,b=reactExports.useRef();a=a||h.renderer,!b.current&&a&&(b.current=a(e,{visualState:i,parent:o,props:s,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:g}));const _=b.current;reactExports.useInsertionEffect(()=>{_&&_.update(s,d)});const j=reactExports.useRef(!!(s[optimizedAppearDataAttribute]&&!window.HandoffComplete));return useIsomorphicLayoutEffect(()=>{_&&(microtask.postRender(_.render),j.current&&_.animationState&&_.animationState.animateChanges())}),reactExports.useEffect(()=>{_&&(_.updateFeatures(),!j.current&&_.animationState&&_.animationState.animateChanges(),j.current&&(j.current=!1,window.HandoffComplete=!0))}),_}function isRefObject(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function useMotionRef(e,i,s){return reactExports.useCallback(a=>{a&&e.mount&&e.mount(a),i&&(a?i.mount(a):i.unmount()),s&&(typeof s=="function"?s(a):isRefObject(s)&&(s.current=a))},[i])}function isVariantLabel(e){return typeof e=="string"||Array.isArray(e)}function isAnimationControls(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(e){return isAnimationControls(e.animate)||variantProps.some(i=>isVariantLabel(e[i]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function getCurrentTreeVariants(e,i){if(isControllingVariants(e)){const{initial:s,animate:a}=e;return{initial:s===!1||isVariantLabel(s)?s:void 0,animate:isVariantLabel(a)?a:void 0}}return e.inherit!==!1?i:{}}function useCreateMotionContext(e){const{initial:i,animate:s}=getCurrentTreeVariants(e,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:i,animate:s}),[variantLabelsAsDependency(i),variantLabelsAsDependency(s)])}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}const featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},featureDefinitions={};for(const e in featureProps)featureDefinitions[e]={isEnabled:i=>featureProps[e].some(s=>!!i[s])};function loadFeatures(e){for(const i in e)featureDefinitions[i]={...featureDefinitions[i],...e[i]}}const LayoutGroupContext=reactExports.createContext({}),SwitchLayoutGroupContext=reactExports.createContext({}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function createMotionComponent({preloadedFeatures:e,createVisualElement:i,useRender:s,useVisualState:a,Component:o}){e&&loadFeatures(e);function h(g,b){let _;const j={...reactExports.useContext(MotionConfigContext),...g,layoutId:useLayoutId(g)},{isStatic:_e}=j,tt=useCreateMotionContext(g),$=a(g,_e);if(!_e&&isBrowser){tt.visualElement=useVisualElement(o,$,j,i);const nt=reactExports.useContext(SwitchLayoutGroupContext),it=reactExports.useContext(LazyContext).strict;tt.visualElement&&(_=tt.visualElement.loadFeatures(j,it,e,nt))}return reactExports.createElement(MotionContext.Provider,{value:tt},_&&tt.visualElement?reactExports.createElement(_,{visualElement:tt.visualElement,...j}
40):null,s(o,g,useMotionRef($,tt.visualElement,b),$,_e,tt.visualElement))}const d=reactExports.forwardRef(h);return d[motionComponentSymbol]=o,d}function useLayoutId({layoutId:e}){const i=reactExports.useContext(LayoutGroupContext).id;return i&&e!==void 0?i+"-"+e:e}function createMotionProxy(e){function i(a,o={}){return createMotionComponent(e(a,o))}if(typeof Proxy>"u")return i;const s=new Map;return new Proxy(i,{get:(a,o)=>(s.has(o)||s.set(o,i(o)),s.get(o))})}const lowercaseSVGElements=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(e){return typeof e!="string"||e.includes("-")?!1:!!(lowercaseSVGElements.indexOf(e)>-1||/[A-Z]/.test(e))}const scaleCorrectors={};function addScaleCorrector(e){Object.assign(scaleCorrectors,e)}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set(transformPropOrder);function isForcedMotionValue(e,{layout:i,layoutId:s}){return transformProps.has(e)||e.startsWith("origin")||(i||s!==void 0)&&(!!scaleCorrectors[e]||e==="opacity")}const isMotionValue=e=>!!(e&&e.getVelocity),translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(e,{enableHardwareAcceleration:i=!0,allowTransformNone:s=!0},a,o){let h="";for(let d=0;d<numTransforms;d++){const g=transformPropOrder[d];if(e[g]!==void 0){const b=translateAlias[g]||g;h+=`${b}(${e[g]}) `}}return i&&!e.z&&(h+="translateZ(0)"),h=h.trim(),o?h=o(e,a?"":h):s&&a&&(h="none"),h}const checkStringStartsWith=e=>i=>typeof i=="string"&&i.startsWith(e),isCSSVariableName=checkStringStartsWith("--"),startsAsVariableToken=checkStringStartsWith("var(--"),isCSSVariableToken=e=>startsAsVariableToken(e)&&singleCssVariableRegex.test(e),singleCssVariableRegex=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
40:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,getValueAsType=(e,i)=>i&&typeof e=="number"?i.transform(e):e,clamp=(e,i,s)=>s>i?i:s<e?e:s,number={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},alpha={...number,transform:e=>clamp(0,1,e)},scale={...number,default:1},sanitize=e=>Math.round(e*1e5)/1e5,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString(e){return typeof e=="string"}const createUnitType=e=>({test:i=>isString(i)&&i.endsWith(e)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${e}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent,parse:e=>percent.parse(e)/100,transform:e=>percent.transform(e*100)},int={...number,transform:Math.round},numberValueTypes={borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int};function buildHTMLStyles(e,i,s,a){const{style:o,vars:h,transform:d,transformOrigin:g}=e;let b=!1,_=!1,j=!0;for(const _e in i){const tt=i[_e];if(isCSSVariableName(_e)){h[_e]=tt;continue}const $=numberValueTypes[_e],nt=getValueAsType(tt,$);if(transformProps.has(_e)){if(b=!0,d[_e]=nt,!j)continue;tt!==($.default||0)&&(j=!1)}else _e.startsWith("origin")?(_=!0,g[_e]=nt):o[_e]=nt}if(i.transform||(b||a?o.transform=buildTransform(e.transform,s,j,a):o.transform&&(o.transform="none")),_){const{originX:_e="50%",originY:tt="50%",originZ:$=0}=g;o.transformOrigin=`${_e} ${tt} ${$}`}}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,i,s){for(const a in i)!isMotionValue(i[a])&&!isForcedMotionValue(a,s)&&(e[a]=i[a])}function useInitialMotionValues({transformTemplate:e},i,s){return reactExports.useMemo(()=>{const a=createHtmlRenderState();return buildHTMLStyles(a,i,{enableHardwareAcceleration:!s},e),Object.assign({},a.vars,a.style)},[i])}function useStyle(e,i,s){const a=e.style||{},o={};return copyRawValuesOnly(o,a,e),Object.assign(o,useInitialMotionValues(e,i,s)),o}function useHTMLProps(e,i,s){const a={},o=useStyle(e,i,s);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=o,a}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||validMotionProps.has(e)}let shouldForward=e=>!isValidMotionProp(e);function loadExternalIsValidProp(e){e&&(shouldForward=i=>i.startsWith("on")?!isValidMotionProp(i):e(i))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps(e,i,s){const a={};for(const o in e)o==="values"&&typeof e.values=="object"||(shouldForward(o)||s===!0&&isValidMotionProp(o)||!i&&!isValidMotionProp(o)||e.draggable&&o.startsWith("onDrag"))&&(a[o]=e[o]);return a}function calcOrigin$1(e,i,s){return typeof e=="string"?e:px.transform(i+s*e)}function calcSVGTransformOrigin(e,i,s){const a=calcOrigin$1(i,e.x,e.width),o=calcOrigin$1(s,e.y,e.height);return`${a} ${o}`}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(e,i,s=1,a=0,o=!0){e.pathLength=1;const h=o?dashKeys:camelKeys;e[h.offset]=px.transform(-a);const d=px.transform(i),g=px.transform(s);e[h.array]=`${d} ${g}`}function buildSVGAttrs(e,{attrX:i,attrY:s,attrScale:a,originX:o,originY:h,pathLength:d,pathSpacing:g=1,pathOffset:b=0,..._},j,_e,tt){if(buildHTMLStyles(e,_,j,tt),_e){e.style.viewBox&&(e.attrs.viewB
vendor: 1,695 bytes, line 40
40ox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:$,style:nt,dimensions:it}=e;$.transform&&(it&&(nt.transform=$.transform),delete $.transform),it&&(o!==void 0||h!==void 0||nt.transform)&&(nt.transformOrigin=calcSVGTransformOrigin(it,o!==void 0?o:.5,h!==void 0?h:.5)),i!==void 0&&($.x=i),s!==void 0&&($.y=s),a!==void 0&&($.scale=a),d!==void 0&&buildSVGPath($,d,g,b,!1)}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=e=>typeof e=="string"&&e.toLowerCase()==="svg";function useSVGProps(e,i,s,a){const o=reactExports.useMemo(()=>{const h=createSvgRenderState();return buildSVGAttrs(h,i,{enableHardwareAcceleration:!1},isSVGTag(a),e.transformTemplate),{...h.attrs,style:{...h.style}}},[i]);if(e.style){const h={};copyRawValuesOnly(h,e.style,e),o.style={...h,...o.style}}return o}function createUseRender(e=!1){return(s,a,o,{latestValues:h},d)=>{const b=(isSVGComponent(s)?useSVGProps:useHTMLProps)(a,h,d,s),_=filterProps(a,typeof s=="string",e),j=s!==reactExports.Fragment?{..._,...b,ref:o}:{},{children:_e}=a,tt=reactExports.useMemo(()=>isMotionValue(_e)?_e.get():_e,[_e]);return reactExports.createElement(s,{...j,children:tt})}}function renderHTML(e,{style:i,vars:s},a,o){Object.assign(e.style,i,o&&o.getProjectionStyles(a));for(const h in s)e.style.setProperty(h,s[h])}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);
40function renderSVG(e,i,s,a){renderHTML(e,i,void 0,a);for(const o in i.attrs)e.setAttribute(camelCaseAttributes.has(o)?o:camelToDash(o),i.attrs[o])}function scrapeMotionValuesFromProps$1(e,i){const{style:s}=e,a={};for(const o in s)(isMotionValue(s[o])||i.style&&isMotionValue(i.style[o])||isForcedMotionValue(o,e))&&(a[o]=s[o]);return a}function scrapeMotionValuesFromProps(e,i){const s=scrapeMotionValuesFromProps$1(e,i);for(const a in e)if(isMotionValue(e[a])||isMotionValue(i[a])){const o=transformPropOrder.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[o]=e[a]}return s}function resolveVariantFromProps(e,i,s,a={},o={}){return typeof i=="function"&&(i=i(s!==void 0?s:e.custom,a,o)),typeof i=="string"&&(i=e.variants&&e.variants[i]),typeof i=="function"&&(i=i(s!==void 0?s:e.custom,a,o)),i}function useConstant(e){const i=reactExports.useRef(null);return i.current===null&&(i.current=e()),i.current}const isKeyframesTarget=e=>Array.isArray(e),isCustomValue=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),resolveFinalValueInKeyframes=e=>isKeyframesTarget(e)?e[e.length-1]||0:e;function resolveMotionValue(e){const i=isMotionValue(e)?e.get():e;return isCustomValue(i)?i.toValue():i}function makeState({scrapeMotionValuesFromProps:e,createRenderState:i,onMount:s},a,o,h){const d={latestValues:makeLatestValues(a,o,h,e),renderState:i()};return s&&(d.mount=g=>s(a,g,d)),d}const makeUseVisualState=e=>(i,s)=>{const a=reactExports.useContext(MotionContext),o=reactExports.useContext(PresenceContext),h=()=>makeState(e,i,a,o);return s?h():useConstant(h)};function makeLatestValues(e,i,s,a){const o={},h=a(e,{});for(const tt in h)o[tt]=resolveMotionValue(h[tt]);let{initial:d,animate:g}=e;const b=isControllingVariants(e),_=isVariantNode(e);i&&_&&!b&&e.inherit!==!1&&(d===void 0&&(d=i.initial),g===void 0&&(g=i.animate));let j=s?s.initial===!1:!1;j=j||d===!1;const _e=j?g:d;return _e&&typeof _e!="boolean"&&!isAnimationControls(_e)&&(Array.isArray(_e)?_e:[_e]).forEach($=>{const nt=resolveVariantFromProps(e,$);if(!nt)return;const{transitionEnd:it,transition:et,...rt}=nt;for(const st in rt){let at=rt[st];if(Array.isArray(at)){const ot=j?at.length-1:0;at=at[ot]}at!==null&&(o[st]=at)}for(const st in it)o[st]=it[st]}),o}const noop=e=>e,{schedule:frame,cancel:cancelFrame,state:frameData,steps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop,!0),svgMotionConfig={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:(e,i,{renderState:s,latestValues:a})=>{frame.read(()=>{try{s.dimensions=typeof i.getBBox=="function"?i.getBBox():i.getBoundingClientRect()}catch{s.dimensions={x:0,y:0,width:0,height:0}}}),frame.render(()=>{buildSVGAttrs(s,a,{enableHardwareAcceleration:!1},isSVGTag(i.tagName),e.transformTemplate),renderSVG(i,s)})}})},htmlMotionConfig={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState})};function createDomMotionConfig(e,{forwardMotionProps:i=!1},s,a){return{...isSVGComponent(e)?svgMotionConfig:htmlMotionConfig,preloadedFeatures:s,useRender:createUseRender(i),createVisualElement:a,Component:e}}function addDomEvent(e,i,s,a={passive:!0}){return e.addEventListener(i,s,a),()=>e.removeEventListener(i,s)}const isPrimaryPointer=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function extractEventInfo(e,i="page"){return{point:{x:e[i+"X"],y:e[i+"Y"]}}}const addPointerInfo=e=>i=>isPrimaryPointer(i)&&e(i,extractEventInfo(i));function addPointerEvent(e,i,s,a){return addDomEvent(e,i,addPointerInfo(s),a)}const combineFunctions=(e,i)=>s=>i(e(s)),pipe=(...e)=>e.reduce(combineFunctions);function createLock(e){let i=null;return()=>{const s=()=>{i=null};return i===null?(i=e,s):!1}}const globalHorizontalLock=createLock("dragHorizontal"),globalVerticalLock=createLock("dragVertical");function getGlobalLock(e){let i=!1;if(e==="y")i=globalVerticalLock();else if(e==="x")i=globalHorizontalLock();else{const s=globalHorizontalLock(),a=globalVerticalLock();s&&a?i=()=>{s(),a()}:(s&&s(),a&&a())}return i}function isDragActive(){const e=getGlobalLock(!0);return e?(e(),!1):!0}class Feature{constructor(i){this.isMounted=!1,this.node=i}update(){}}
40function addHoverEvent(e,i){const s="pointer"+(i?"enter":"leave"),a="onHover"+(i?"Start":"End"),o=(h,d)=>{if(h.pointerType==="touch"||isDragActive())return;const g=e.getProps();e.animationState&&g.whileHover&&e.animationState.setActive("whileHover",i),g[a]&&frame.update(()=>g[a](h,d))};return addPointerEvent(e.current,s,o,{passive:!e.getProps()[a]})}class HoverGesture extends Feature{mount(){this.unmount=pipe(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const isNodeOrChild=(e,i)=>i?e===i?!0:isNodeOrChild(e,i.parentElement):!1;function fireSyntheticPointerEvent(e,i){if(!i)return;const s=new PointerEvent("pointer"+e);i(s,extractEventInfo(s))}class PressGesture extends Feature{constructor(){super(...arguments),this.removeStartListeners=noop,this.removeEndListeners=noop,this.removeAccessibleListeners=noop,this.startPointerPress=(i,s)=>{if(this.isPressing)return;this.removeEndListeners();const a=this.node.getProps(),h=addPointerEvent(window,"pointerup",(g,b)=>{if(!this.checkPressEnd())return;const{onTap:_,onTapCancel:j,globalTapTarget:_e}=this.node.getProps();frame.update(()=>{!_e&&!isNodeOrChild(this.node.current,g.target)?j&&j(g,b):_&&_(g,b)})},{passive:!(a.onTap||a.onPointerUp)}),d=addPointerEvent(window,"pointercancel",(g,b)=>this.cancelPress(g,b),{passive:!(a.onTapCancel||a.onPointerCancel)});this.removeEndListeners=pipe(h,d),this.startPress(i,s)},this.startAccessiblePress=()=>{const i=h=>{if(h.key!=="Enter"||this.isPressing)return;const d=g=>{g.key!=="Enter"||!this.checkPressEnd()||fireSyntheticPointerEvent("up",(b,_)=>{const{onTap:j}=this.node.getProps();j&&frame.update(()=>j(b,_))})};this.removeEndListeners(),this.removeEndListeners=addDomEvent(this.node.current,"keyup",d),fireSyntheticPointerEvent("down",(g,b)=>{this.startPress(g,b)})},s=addDomEvent(this.node.current,"keydown",i),a=()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(h,d)=>this.cancelPress(h,d))},o=addDomEvent(this.node.current,"blur",a);this.removeAccessibleListeners=pipe(s,o)}}startPress(i,s){this.isPressing=!0;const{onTapStart:a,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),a&&frame.update(()=>a(i,s))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(i,s){if(!this.checkPressEnd())return;const{onTapCancel:a}=this.node.getProps();a&&frame.update(()=>a(i,s))}mount(){const i=this.node.getProps(),s=addPointerEvent(i.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(i.onTapStart||i.onPointerStart)}),a=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pipe(s,a)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const observerCallbacks=new WeakMap,observers=new WeakMap,fireObserverCallback=e=>{const i=observerCallbacks.get(e.target);i&&i(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)};function initIntersectionObserver({root:e,...i}){const s=e||document;observers.has(s)||observers.set(s,{});const a=observers.get(s),o=JSON.stringify(i);return a[o]||(a[o]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...i})),a[o]}function observeIntersection(e,i,s){const a=initIntersectionObserver(i);return observerCallbacks.set(e,s),a.observe(e),()=>{observerCallbacks.delete(e),a.unobserve(e)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:a,amount:o="some",once:h}=i,d={root:s?s.current:void 0,rootMargin:a,threshold:typeof o=="number"?o:thresholdNames[o]},g=b=>{const{isIntersecting:_}=b;if(this.isInView===_||(this.isInView=_,h&&!_&&this.hasEnteredView))return;_&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",_);const{onViewportEnter:j,onViewportLeave:_e}=this.node.getProps(),tt=_?j:_e;tt&&tt(b)};return observeIntersection(this.node.current,d,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(i,s))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:e={}},{viewport:i={}}={}){return s=>e[s]!==i[s]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}};function shallowCompare(e,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==e.length)return!1;for(let a=0;a<s;a++)if(i[a]!==e[a])return!1;return!0}function getCurrent(e){const i={};
40return e.values.forEach((s,a)=>i[a]=s.get()),i}function getVelocity$1(e){const i={};return e.values.forEach((s,a)=>i[a]=s.getVelocity()),i}function resolveVariant(e,i,s){const a=e.getProps();return resolveVariantFromProps(a,i,s!==void 0?s:a.custom,getCurrent(e),getVelocity$1(e))}let invariant=noop;const secondsToMilliseconds=e=>e*1e3,millisecondsToSeconds=e=>e/1e3,instantAnimationState={current:!1},isBezierDefinition=e=>Array.isArray(e)&&typeof e[0]=="number";function isWaapiSupportedEasing(e){return!!(!e||typeof e=="string"&&supportedWaapiEasing[e]||isBezierDefinition(e)||Array.isArray(e)&&e.every(isWaapiSupportedEasing))}const cubicBezierAsString=([e,i,s,a])=>`cubic-bezier(${e}, ${i}, ${s}, ${a})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing(e){if(e)return isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(mapEasingToNativeEasing):supportedWaapiEasing[e]}function animateStyle(e,i,s,{delay:a=0,duration:o,repeat:h=0,repeatType:d="loop",ease:g,times:b}={}){const _={[i]:s};b&&(_.offset=b);const j=mapEasingToNativeEasing(g);return Array.isArray(j)&&(_.easing=j),e.animate(_,{delay:a,duration:o,easing:Array.isArray(j)?"linear":j,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"})}function getFinalKeyframe(e,{repeat:i,repeatType:s="loop"}){const a=i&&s!=="loop"&&i%2===1?0:e.length-1;return e[a]}const calcBezier=(e,i,s)=>(((1-3*s+3*i)*e+(3*s-6*i))*e+3*i)*e,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(e,i,s,a,o){let h,d,g=0;do d=i+(s-i)/2,h=calcBezier(d,a,o)-e,h>0?s=d:i=d;while(Math.abs(h)>subdivisionPrecision&&++g<subdivisionMaxIterations);return d}function cubicBezier(e,i,s,a){if(e===i&&s===a)return noop;const o=h=>binarySubdivide(h,0,1,e,s);return h=>h===0||h===1?h:calcBezier(o(h),i,a)}const easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&typeof e[0]!="number",mirrorEasing=e=>i=>i<=.5?e(2*i)/2:(2-e(2*(1-i)))/2,reverseEasing=e=>i=>1-e(1-i),circIn=e=>1-Math.sin(Math.acos(e)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circIn),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=e=>(e*=2)<1?.5*backIn(e):.5*(2-Math.pow(2,-10*(e-1))),easingLookup={linear:noop,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},easingDefinitionToFunction=e=>{if(Array.isArray(e)){invariant(e.length===4);const[i,s,a,o]=e;return cubicBezier(i,s,a,o)}else if(typeof e=="string")return easingLookup[e];return e},progress=(e,i,s)=>{const a=i-e;return a===0?1:(s-e)/a},mixNumber$1=(e,i,s)=>e+(i-e)*s;function hueToRgb(e,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(i-e)*6*s:s<1/2?i:s<2/3?e+(i-e)*(2/3-s)*6:e}function hslaToRgba({hue:e,saturation:i,lightness:s,alpha:a}){e/=360,i/=100,s/=100;let o=0,h=0,d=0;if(!i)o=h=d=s;else{const g=s<.5?s*(1+i):s+i-s*i,b=2*s-g;o=hueToRgb(b,g,e+1/3),h=hueToRgb(b,g,e),d=hueToRgb(b,g,e-1/3)}return{red:Math.round(o*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:a}}const isColorString=(e,i)=>s=>!!(isString(s)&&singleColorRegex.test(s)&&s.startsWith(e)||i&&Object.prototype.hasOwnProperty.call(s,i)),splitColor=(e,i,s)=>a=>{if(!isString(a))return a;const[o,h,d,g]=a.match(floatRegex);return{[e]:parseFloat(o),[i]:parseFloat(h),[s]:parseFloat(d),alpha:g!==void 0?parseFloat(g):1}},clampRgbUnit=e=>clamp(0,255,e),rgbUnit={...number,transform:e=>Math.round(clampRgbUnit(e))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:i,blue:s,alpha:a=1})=>"rgba("+rgbUnit.transform(e)+", "+rgbUnit.transform(i)+", "+rgbUnit.transform(s)+", "+sanitize(alpha.transform(a))+")"};function parseHex(e){let i="",s="",a="",o="";return e.length>5?(i=e.substring(1,3),s=e.substring(3,5),a=e.substring(5,7),o=e.substring(7,9)):(i=e.substring(1,2),s=e.substring(2,3),a=e.substring(3,4),o=e.substring(4,5),i+=i,s+=s,a+=a,o+=o),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(a,16),alph
40a:o?parseInt(o,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:i,lightness:s,alpha:a=1})=>"hsla("+Math.round(e)+", "+percent.transform(sanitize(i))+", "+percent.transform(sanitize(s))+", "+sanitize(alpha.transform(a))+")"},mixLinearColor=(e,i,s)=>{const a=e*e,o=s*(i*i-a)+a;return o<0?0:Math.sqrt(o)},colorTypes=[hex,rgba,hsla],getColorType=e=>colorTypes.find(i=>i.test(e));function asRGBA(e){const i=getColorType(e);let s=i.parse(e);return i===hsla&&(s=hslaToRgba(s)),s}const mixColor=(e,i)=>{const s=asRGBA(e),a=asRGBA(i),o={...s};return h=>(o.red=mixLinearColor(s.red,a.red,h),o.green=mixLinearColor(s.green,a.green,h),o.blue=mixLinearColor(s.blue,a.blue,h),o.alpha=mixNumber$1(s.alpha,a.alpha,h),rgba.transform(o))},color={test:e=>rgba.test(e)||hex.test(e)||hsla.test(e),parse:e=>rgba.test(e)?rgba.parse(e):hsla.test(e)?hsla.parse(e):hex.parse(e),transform:e=>isString(e)?e:e.hasOwnProperty("red")?rgba.transform(e):hsla.transform(e)};function test(e){var i,s;return isNaN(e)&&isString(e)&&(((i=e.match(floatRegex))===null||i===void 0?void 0:i.length)||0)+(((s=e.match(colorRegex))===null||s===void 0?void 0:s.length)||0)>0}const NUMBER_TOKEN="number",COLOR_TOKEN="color",VAR_TOKEN="var",VAR_FUNCTION_TOKEN="var(",SPLIT_TOKEN="${}
40",complexRegex=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function analyseComplexValue(e){const i=e.toString(),s=i.match(complexRegex)||[],a=[],o={color:[],number:[],var:[]},h=[];for(let b=0;b<s.length;b++){const _=s[b];color.test(_)?(o.color.push(b),h.push(COLOR_TOKEN),a.push(color.parse(_))):_.startsWith(VAR_FUNCTION_TOKEN)?(o.var.push(b),h.push(VAR_TOKEN),a.push(_)):(o.number.push(b),h.push(NUMBER_TOKEN),a.push(parseFloat(_)))}const g=i.replace(complexRegex,SPLIT_TOKEN).split(SPLIT_TOKEN);return{values:a,split:g,indexes:o,types:h}}function parseComplexValue(e){return analyseComplexValue(e).values}function createTransformer(e){const{split:i,types:s}=analyseComplexValue(e),a=i.length;return o=>{let h="";for(let d=0;d<a;d++)if(h+=i[d],o[d]!==void 0){const g=s[d];g===NUMBER_TOKEN?h+=sanitize(o[d]):g===COLOR_TOKEN?h+=color.transform(o[d]):h+=o[d]}return h}}const convertNumbersToZero=e=>typeof e=="number"?0:e;function getAnimatableNone$1(e){const i=parseComplexValue(e);return createTransformer(e)(i.map(convertNumbersToZero))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1};function mixImmediate(e,i){return s=>s>0?i:e}function mixNumber(e,i){return s=>mixNumber$1(e,i,s)}function getMixer(e){return typeof e=="number"?mixNumber:typeof e=="string"?isCSSVariableToken(e)?mixImmediate:color.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:typeof e=="object"?color.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,i){const s=[...e],a=s.length,o=e.map((h,d)=>getMixer(h)(h,i[d]));return h=>{for(let d=0;d<a;d++)s[d]=o[d](h);return s}}function mixObject(e,i){const s={...e,...i},a={};for(const o in s)e[o]!==void 0&&i[o]!==void 0&&(a[o]=getMixer(e[o])(e[o],i[o]));return o=>{for(const h in a)s[h]=a[h](o);return s}}function matchOrder(e,i){var s;const a=[],o={color:0,var:0,number:0};for(let h=0;h<i.values.length;h++){const d=i.types[h],g=e.indexes[d][o[d]],b=(s=e.values[g])!==null&&s!==void 0?s:0;a[h]=b,o[d]++}return a}const mixComplex=(e,i)=>{const s=complex.createTransformer(i),a=analyseComplexValue(e),o=analyseComplexValue(i);return a.indexes.var.length===o.indexes.var.length&&a.indexes.color.length===o.indexes.color.length&&a.indexes.number.length>=o.indexes.number.length?pipe(mixArray(matchOrder(a,o),o.values),s):mixImmediate(e,i)};function mix(e,i,s){return typeof e=="number"&&typeof i=="number"&&typeof s=="number"?mixNumber$1(e,i,s):getMixer(e)(e,i)}function createMixers(e,i,s){const a=[],o=s||mix,h=e.length-1;for(let d=0;d<h;d++){let g=o(e[d],e[d+1]);if(i){const b=Array.isArray(i)?i[d]||noop:i;g=pipe(b,g)}a.push(g)}return a}function interpolate(e,i,{clamp:s=!0,ease:a,mixer:o}={}){const h=e.length;if(invariant(h===i.length),h===1)return()=>i[0];e[0]>e[h-1]&&(e=[...e].reverse(),i=[...i].reverse());const d=createMixers(i,a,o),g=d.length,b=_=>{let j=0;if(g>1)for(;j<e.length-2&&!(_<e[j+1]);j++);const _e=progress(e[j],e[j+1],_);return d[j](_e)};return s?_=>b(clamp(e[0],e[h-1],_)):b}function fillOffset(e,i){const s=e[e.length-1];for(let a=1;a<=i;a++){const o=progress(0,i,a);e.push(mixNumber$1(s,1,o))}}function defaultOffset(e){const i=[0];return fillOffset(i,e.length-1),i}function convertOffsetToTimes(e,i){return e.map(s=>s*i)}function defaultEasing(e,i){return e.map(()=>i||easeInOut).splice(0,e.length-1)}function keyframes({duration:e=300,keyframes:i,times:s,ease:a="easeInOut"}){const o=isEasingArray(a)?a.map(easingDefinitionToFunction):easingDefinitionToFunction(a),h={done:!1,value:i[0]},d=convertOffsetToTimes(s&&s.length===i.length?s:defaultOffset(i),e),g=interpolate(d,i,{ease:Array.isArray(o)?o:defaultEasing(i,o)});return{calculatedDuration:e,next:b=>(h.value=g(b),h.done=b>=e,h)}}function velocityPerSecond(e,i){return i?e*(1e3/i):0}const velocitySampleDuration=5;function calcGeneratorVelocity(e,i,s){const a=Math.max(i-velocitySampleDuration,0);return velocityPerSecond(s-e(a),i-a)}const safeMin=.001,minDuration=.01,maxDuration$1=10,minDamping=.05,maxDamping=1;function findSpring({duration:e=800,bounce:i=.25,velocity:s=0,mass:a=1}
40){let o,h,d=1-i;d=clamp(minDamping,maxDamping,d),e=clamp(minDuration,maxDuration$1,millisecondsToSeconds(e)),d<1?(o=_=>{const j=_*d,_e=j*e,tt=j-s,$=calcAngularFreq(_,d),nt=Math.exp(-_e);return safeMin-tt/$*nt},h=_=>{const _e=_*d*e,tt=_e*s+s,$=Math.pow(d,2)*Math.pow(_,2)*e,nt=Math.exp(-_e),it=calcAngularFreq(Math.pow(_,2),d);return(-o(_)+safeMin>0?-1:1)*((tt-$)*nt)/it}):(o=_=>{const j=Math.exp(-_*e),_e=(_-s)*e+1;return-safeMin+j*_e},h=_=>{const j=Math.exp(-_*e),_e=(s-_)*(e*e);return j*_e});const g=5/e,b=approximateRoot(o,h,g);if(e=secondsToMilliseconds(e),isNaN(b))return{stiffness:100,damping:10,duration:e};{const _=Math.pow(b,2)*a;return{stiffness:_,damping:d*2*Math.sqrt(a*_),duration:e}}}const rootIterations=12;function approximateRoot(e,i,s){let a=s;for(let o=1;o<rootIterations;o++)a=a-e(a)/i(a);return a}function calcAngularFreq(e,i){return e*Math.sqrt(1-i*i)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(e,i){return i.some(s=>e[s]!==void 0)}function getSpringOptions(e){let i={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!isSpringType(e,physicsKeys)&&isSpringType(e,durationKeys)){const s=findSpring(e);i={...i,...s,mass:1},i.isResolvedFromDuration=!0}return i}function spring({keyframes:e,restDelta:i,restSpeed:s,...a}){const o=e[0],h=e[e.length-1],d={done:!1,value:o},{stiffness:g,damping:b,mass:_,duration:j,velocity:_e,isResolvedFromDuration:tt}=getSpringOptions({...a,velocity:-millisecondsToSeconds(a.velocity||0)}),$=_e||0,nt=b/(2*Math.sqrt(g*_)),it=h-o,et=millisecondsToSeconds(Math.sqrt(g/_)),rt=Math.abs(it)<5;s||(s=rt?.01:2),i||(i=rt?.005:.5);let st;if(nt<1){const at=calcAngularFreq(et,nt);st=ot=>{const lt=Math.exp(-nt*et*ot);return h-lt*(($+nt*et*it)/at*Math.sin(at*ot)+it*Math.cos(at*ot))}}else if(nt===1)st=at=>h-Math.exp(-et*at)*(it+($+et*it)*at);else{const at=et*Math.sqrt(nt*nt-1);st=ot=>{const lt=Math.exp(-nt*et*ot),pt=Math.min(at*ot,300);return h-lt*(($+nt*et*it)*Math.sinh(pt)+at*it*Math.cosh(pt))/at}}return{calculatedDuration:tt&&j||null,next:at=>{const ot=st(at);if(tt)d.done=at>=j;else{let lt=$;at!==0&&(nt<1?lt=calcGeneratorVelocity(st,at,ot):lt=0);const pt=Math.abs(lt)<=s,ct=Math.abs(h-ot)<=i;d.done=pt&&ct}return d.value=d.done?h:ot,d}}}function inertia({keyframes:e,velocity:i=0,power:s=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:h=500,modifyTarget:d,min:g,max:b,restDelta:_=.5,restSpeed:j}){const _e=e[0],tt={done:!1,value:_e},$=ut=>g!==void 0&&ut<g||b!==void 0&&ut>b,nt=ut=>g===void 0?b:b===void 0||Math.abs(g-ut)<Math.abs(b-ut)?g:b;let it=s*i;const et=_e+it,rt=d===void 0?et:d(et);rt!==et&&(it=rt-_e);const st=ut=>-it*Math.exp(-ut/a),at=ut=>rt+st(ut),ot=ut=>{const mt=st(ut),ft=at(ut);tt.done=Math.abs(mt)<=_,tt.value=tt.done?rt:ft};let lt,pt;const ct=ut=>{$(tt.value)&&(lt=ut,pt=spring({keyframes:[tt.value,nt(tt.value)],velocity:calcGeneratorVelocity(at,ut,tt.value),damping:o,stiffness:h,restDelta:_,restSpeed:j}))};return ct(0),{calculatedDuration:null,next:ut=>{let mt=!1;return!pt&&lt===void 0&&(mt=!0,ot(ut),ct(ut)),lt!==void 0&&ut>lt?pt.next(ut-lt):(!mt&&ot(ut),tt)}}}let now;function clearTime(){now=void 0}const time={now:()=>(now===void 0&&time.set(frameData.isProcessing||MotionGlobalConfig.useManualTiming?frameData.timestamp:performance.now()),now),set:e=>{now=e,queueMicrotask(clearTime)}},frameloopDriver=e=>{const i=({timestamp:s})=>e(s);return{start:()=>frame.update(i,!0),stop:()=>cancelFrame(i),now:()=>frameData.isProcessing?frameData.timestamp:time.now()}},maxGeneratorDuration=2e4;function calcGeneratorDuration(e){let i=0;const s=50;let a=e.next(i);for(;!a.done&&i<maxGeneratorDuration;)i+=s,a=e.next(i);return i>=maxGeneratorDuration?1/0:i}const types={decay:inertia,inertia,tween:keyframes,keyframes,spring},percentToProgress=e=>e/100;function animateValue({autoplay:e=!0,delay:i=0,driver:s=frameloopDriver,keyframes:a,type:o="keyframes",repeat:h=0,repeatDelay:d=0,repeatType:g="loop",onPlay:b,onStop:_,onComplete:j,onUpdate:_e,...tt}){let $=1,nt=!1,it,et;const rt=()=>{et=new Promise(wt=>{it=wt})};rt();let st;const at=types[o]||keyframes;let ot;at!==keyframes&&typeof a[0]!="number"&&(ot=pipe(percentToProgress,mix(a[0],a[1])),a=[0,100]);const lt=at({...tt,keyframes:a});let pt;g==="mirror"&&(pt=at({...tt,keyframes:[...a].reverse(),velocity:-(tt.velocity||0)}
40));let ct="idle",ut=null,mt=null,ft=null;lt.calculatedDuration===null&&h&&(lt.calculatedDuration=calcGeneratorDuration(lt));const{calculatedDuration:dt}=lt;let St=1/0,yt=1/0;dt!==null&&(St=dt+d,yt=St*(h+1)-d);let xt=0;const Pt=wt=>{if(mt===null)return;$>0&&(mt=Math.min(mt,wt)),$<0&&(mt=Math.min(wt-yt/$,mt)),ut!==null?xt=ut:xt=Math.round(wt-mt)*$;const _t=xt-i*($>=0?1:-1),Rt=$>=0?_t<0:_t>yt;xt=Math.max(_t,0),ct==="finished"&&ut===null&&(xt=yt);let Dt=xt,Lt=lt;if(h){const Ot=Math.min(xt,yt)/St;let Bt=Math.floor(Ot),jt=Ot%1;!jt&&Ot>=1&&(jt=1),jt===1&&Bt--,Bt=Math.min(Bt,h+1),!!(Bt%2)&&(g==="reverse"?(jt=1-jt,d&&(jt-=d/St)):g==="mirror"&&(Lt=pt)),Dt=clamp(0,1,jt)*St}const Ft=Rt?{done:!1,value:a[0]}:Lt.next(Dt);ot&&(Ft.value=ot(Ft.value));let{done:Mt}=Ft;!Rt&&dt!==null&&(Mt=$>=0?xt>=yt:xt<=0);const It=ut===null&&(ct==="finished"||ct==="running"&&Mt);return _e&&_e(Ft.value),It&&ht(),Ft},Ct=()=>{st&&st.stop(),st=void 0},Et=()=>{ct="idle",Ct(),it(),rt(),mt=ft=null},ht=()=>{ct="finished",j&&j(),Ct(),it()},vt=()=>{if(nt)return;st||(st=s(Pt));const wt=st.now();b&&b(),ut!==null?mt=wt-ut:(!mt||ct==="finished")&&(mt=wt),ct==="finished"&&rt(),ft=mt,ut=null,ct="running",st.start()};e&&vt();const bt={then(wt,_t){return et.then(wt,_t)},get time(){return millisecondsToSeconds(xt)},set time(wt){wt=secondsToMilliseconds(wt),xt=wt,ut!==null||!st||$===0?ut=wt:mt=st.now()-wt/$},get duration(){const wt=lt.calculatedDuration===null?calcGeneratorDuration(lt):lt.calculatedDuration;return millisecondsToSeconds(wt)},get speed(){return $},set speed(wt){wt===$||!st||($=wt,bt.time=millisecondsToSeconds(xt))},get state(){return ct},play:vt,pause:()=>{ct="paused",ut=xt},stop:()=>{nt=!0,ct!=="idle"&&(ct="idle",_&&_(),Et())},cancel:()=>{ft!==null&&Pt(ft),Et()},complete:()=>{ct="finished"},sample:wt=>(mt=0,Pt(wt))};return bt}function memo(e){let i;return()=>(i===void 0&&(i=e()),i)}const supportsWaapi=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),acceleratedValues=new Set(["opacity","clipPath","filter","transform"]),sampleDelta=10,maxDuration=2e4,requiresPregeneratedKeyframes=(e,i)=>i.type==="spring"||e==="backgroundColor"||!isWaapiSupportedEasing(i.ease);function createAcceleratedAnimation(e,i,{onUpdate:s,onComplete:a,...o}){if(!(supportsWaapi()&&acceleratedValues.has(i)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let d=!1,g,b,_=!1;const j=()=>{b=new Promise(at=>{g=at})};j();let{keyframes:_e,duration:tt=300,ease:$,times:nt}=o;if(requiresPregeneratedKeyframes(i,o)){const at=animateValue({...o,repeat:0,delay:0});let ot={done:!1,value:_e[0]};const lt=[];let pt=0;for(;!ot.done&&pt<maxDuration;)ot=at.sample(pt),lt.push(ot.value),pt+=sampleDelta;nt=void 0,_e=lt,tt=pt-sampleDelta,$="linear"}const it=animateStyle(e.owner.current,i,_e,{...o,duration:tt,ease:$,times:nt}),et=()=>{_=!1,it.cancel()},rt=()=>{_=!0,frame.update(et),g(),j()};return it.onfinish=()=>{_||(e.set(getFinalKeyframe(_e,o)),a&&a(),rt())},{then(at,ot){return b.then(at,ot)},attachTimeline(at){return it.timeline=at,it.onfinish=null,noop},get time(){return millisecondsToSeconds(it.currentTime||0)},set time(at){it.currentTime=secondsToMilliseconds(at)},get speed(){return it.playbackRate},set speed(at){it.playbackRate=at},get duration(){return millisecondsToSeconds(tt)},play:()=>{d||(it.play(),cancelFrame(et))},pause:()=>it.pause(),stop:()=>{if(d=!0,it.playState==="idle")return;const{currentTime:at}=it;if(at){const ot=animateValue({...o,autoplay:!1});e.setWithVelocity(ot.sample(at-sampleDelta).value,ot.sample(at).value,sampleDelta)}rt()},complete:()=>{_||it.finish()},cancel:rt}}function createInstantAnimation({keyframes:e,delay:i,onUpdate:s,onComplete:a}){const o=()=>(s&&s(e[e.length-1]),a&&a(),{time:0,speed:1,duration:0,play:noop,pause:noop,stop:noop,then:h=>(h(),Promise.resolve()),cancel:noop,complete:noop});return i?animateValue({keyframes:[0,1],duration:0,delay:i,onComplete:o}):o()}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:i})=>i.length>2?keyframesTransition:transformProps.has(e)?e.startsWith("scale")?criticallyDampedSpring(i[1]):underDampedSpring:ease,isAnimatable=(e,i)=>e==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(complex.test(i)||i==="0")&&!i.startsWith("url(")),maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){const[i,s]=e.slice(0,-1).split("(");if(i==="drop-shadow")return e;const[a]=s.match(floatRegex)||[];
vendor: 10,833 bytes, line 40
40if(!a)return e;const o=s.replace(a,"");let h=maxDefaults.has(i)?1:0;return a!==s&&(h*=100),i+"("+h+o+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter={...complex,getAnimatableNone:e=>{const i=e.match(functionRegex);return i?i.map(applyDefaultFilter).join(" "):e}},defaultValueTypes={...numberValueTypes,color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,filter,WebkitFilter:filter},getDefaultValueType=e=>defaultValueTypes[e];function getAnimatableNone(e,i){let s=getDefaultValueType(e);return s!==filter&&(s=complex),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const isZeroValueString=e=>/^0[^.\s]+$/.test(e);function isNone(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||isZeroValueString(e)}function getKeyframes(e,i,s,a){const o=isAnimatable(i,s);let h;Array.isArray(s)?h=[...s]:h=[null,s];const d=a.from!==void 0?a.from:e.get();let g;const b=[];for(let _=0;_<h.length;_++)h[_]===null&&(h[_]=_===0?d:h[_-1]),isNone(h[_])&&b.push(_),typeof h[_]=="string"&&h[_]!=="none"&&h[_]!=="0"&&(g=h[_]);if(o&&b.length&&g)for(let _=0;_<b.length;_++){const j=b[_];h[j]=getAnimatableNone(i,g)}return h}function isTransitionDefined({when:e,delay:i,delayChildren:s,staggerChildren:a,staggerDirection:o,repeat:h,repeatType:d,repeatDelay:g,from:b,elapsed:_,...j}){return!!Object.keys(j).length}function getValueTransition(e,i){return e[i]||e.default||e}const animateMotionValue=(e,i,s,a={})=>o=>{const h=getValueTransition(a,e)||{},d=h.delay||a.delay||0;let{elapsed:g=0}=a;g=g-secondsToMilliseconds(d);const b=getKeyframes(i,e,s,h),_=b[0],j=b[b.length-1],_e=isAnimatable(e,_),tt=isAnimatable(e,j);let $={keyframes:b,velocity:i.getVelocity(),ease:"easeOut",...h,delay:-g,onUpdate:nt=>{i.set(nt),h.onUpdate&&h.onUpdate(nt)},onComplete:()=>{o(),h.onComplete&&h.onComplete()}};if(isTransitionDefined(h)||($={...$,...getDefaultTransition(e,$)}),$.duration&&($.duration=secondsToMilliseconds($.duration)),$.repeatDelay&&($.repeatDelay=secondsToMilliseconds($.repeatDelay)),!_e||!tt||instantAnimationState.current||h.type===!1||MotionGlobalConfig.skipAnimations)return createInstantAnimation($);if(!a.isHandoff&&i.owner&&i.owner.current instanceof HTMLElement&&!i.owner.getProps().onUpdate){const nt=createAcceleratedAnimation(i,e,$);if(nt)return nt}return animateValue($)};function isWillChangeMotionValue(e){return!!(isMotionValue(e)&&e.add)}const isNumericalString=e=>/^\-?\d*\.?\d+$/.test(e);function addUniqueItem(e,i){e.indexOf(i)===-1&&e.push(i)}function removeItem(e,i){const s=e.indexOf(i);s>-1&&e.splice(s,1)}class SubscriptionManager{constructor(){this.subscriptions=[]}add(i){return addUniqueItem(this.subscriptions,i),()=>removeItem(this.subscriptions,i)}notify(i,s,a){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](i,s,a);else for(let h=0;h<o;h++){const d=this.subscriptions[h];d&&d(i,s,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const MAX_VELOCITY_DELTA=30,isFloat=e=>!isNaN(parseFloat(e));class MotionValue{constructor(i,s={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(a,o=!0)=>{const h=time.now();this.updatedAt!==h&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(i),this.canTrackVelocity=isFloat(this.current),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=time.now()}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new SubscriptionManager);const a=this.events[i].add(s);return i==="change"?()=>{a(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i,s=!0){!s||!this.passiveEffect?this.updateAndNotify(i,s):this.passiveEffect(i,this.updateAndNotify)}setWithVelocity(i,s,a){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-a}jump(i){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=time.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>MAX_VELOCITY_DELTA)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,MAX_VELOCITY_DELTA);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue(e,i){return new MotionValue(e,i)}const testValueType=e=>i=>i.test(e),auto={test:e=>e==="auto",parse:e=>e},dimensionValueTypes=[number,px,percent,degrees,vw,vh,auto],findDimensionValueType=e=>dimensionValueTypes.find(testValueType(e)),valueTypes=[...dimensionValueTypes,color,complex],findValueType=e=>valueTypes.find(testValueType(e));function setMotionValue(e,i,s){e.hasValue(i)?e.getValue(i).set(s):e.addValue(i,motionValue(s))}function setTarget(e,i){const s=resolveVariant(e,i);let{transitionEnd:a={},transition:o={},...h}=s?e.makeTargetAnimatable(s,!1):{};h={...h,...a};for(const d in h){const g=resolveFinalValueInKeyframes(h[d]);setMotionValue(e,d,g)}}function checkTargetForNewValues(e,i,s){var a,o;const h=Object.keys(i).filter(g=>!e.hasValue(g)),d=h.length;if(d)for(let g=0;g<d;g++){const b=h[g],_=i[b];let j=null;Array.isArray(_)&&(j=_[0]),j===null&&(j=(o=(a=s[b])!==null&&a!==void 0?a:e.readValue(b))!==null&&o!==void 0?o:i[b]),j!=null&&(typeof j=="string"&&(isNumericalString(j)||isZeroValueString(j))?j=parseFloat(j):!findValueType(j)&&complex.test(_)&&(j=getAnimatableNone(b,_)),e.addValue(b,motionValue(j,{owner:e})),s[b]===void 0&&(s[b]=j),j!==null&&e.setBaseTarget(b,j))}}function getOriginFromTransition(e,i){return i?(i[e]||i.default||i).from:void 0}function getOrigin(e,i,s){const a={};for(const o in e){const h=getOriginFromTransition(o,i);if(h!==void 0)a[o]=h;else{const d=s.getValue(o);d&&(a[o]=d.get())}}return a}function shouldBlockAnimation({protectedKeys:e,needsAnimating:i},s){const a=e.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,a}function hasKeyframesChanged(e,i){const s=e.get();if(Array.isArray(i)){for(let a=0;a<i.length;a++)if(i[a]!==s)return!0}else return s!==i}function animateTarget(e,i,{delay:s=0,transitionOverride:a,type:o}={}){let{transition:h=e.getDefaultTransition(),transitionEnd:d,...g}=e.makeTargetAnimatable(i);const b=e.getValue("willChange");a&&(h=a);const _=[],j=o&&e.animationState&&e.animationState.getState()[o];for(const _e in g){const tt=e.getValue(_e),$=g[_e];if(!tt||$===void 0||j&&shouldBlockAnimation(j,_e))continue;const nt={delay:s,elapsed:0,...getValueTransition(h||{},_e)};if(window.HandoffAppearAnimations){const rt=e.getProps()[optimizedAppearDataAttribute];if(rt){const st=window.HandoffAppearAnimations(rt,_e,tt,frame);st!==null&&(nt.elapsed=st,nt.isHandoff=!0)}}let it=!nt.isHandoff&&!hasKeyframesChanged(tt,$);if(nt.type==="spring"&&(tt.getVelocity()||nt.velocity)&&(it=!1),tt.animation&&(it=!1),it)continue;tt.start(animateMotionValue(_e,tt,$,e.shouldReduceMotion&&transformProps.has(_e)?{type:!1}:nt));const et=tt.animation;isWillChangeMotionValue(b)&&(b.add(_e),et.then(()=>b.remove(_e))),_.push(et)}return d&&Promise.all(_).then(()=>{d&&setTarget(e,d)}),_}function animateVariant(e,i,s={}){const a=resolveVariant(e,i,s.custom);let{transition:o=e.getDefaultTransition()||{}}=a||{};s.transitionOverride&&(o=s.transitionOverride);const h=a?()=>Promise.all(animateTarget(e,a,s)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(b=0)=>{const{delayChildren:_=0,staggerChildren:j,staggerDirection:_e}=o;return animateChildren(e,i,_+b,j,_e,s)}:()=>Promise.resolve(),{when:g}=o;if(g){const[b,_]=g==="beforeChildren"?[h,d]:[d,h];return b().then(()=>_())}else return Promise.all([h(),d(s.delay)])}function animateChildren(e,i,s=0,a=0,o=1,h){const d=[],g=(e.variantChildren.size-1)*a,b=o===1?(_=0)=>_*a:(_=0)=>g-_*a;return Array.from(e.variantChildren).sort(sortByTreeOrder).forEach((_,j)=>{_.notify("AnimationStart",i),d.push(animateVariant(_,i,{...h,delay:s+b(j)}).then(()=>_.notify("AnimationComplete",i)))}),Promise.all(d)}function sortByTreeOrder(e,i){return e.sortNodePosition(i)}function animateVisualElement(e,i,s={}){e.notify("AnimationStart",i);let a;if(Array.isArray(i)){const o=i.map(h=>animateVariant(e,h,s));a=Promise.all(o)}else if(typeof i=="string")a=animateVariant(e,i,s);else{const o=typeof i=="function"?resolveVariant(e,i,s.custom):i;a=Promise.all(animateTarget(e,o,s))}return a.then(()=>e.notify("AnimationComplete",i))}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList(e){return i=>Promise.all(i.map(({animation:s,options:a})=>animateVisualElement(e,s,a)))}function createAnimationState(e){let i=animateList(e);const s=createState();let a=!0;const o=(b,_)=>{const j=resolveVariant(e,_);if(j){const{transition:_e,transitionEnd:tt,...$}=j;b={...b,...$,...tt}}return b};function h(b){i=b(e)}function d(b,_){const j=e.getProps(),_e=e.getVariantContext(!0)||{},tt=[],$=new Set;let nt={},it=1/0;for(let rt=0;rt<numAnimationTypes;rt++){const st=reversePriorityOrder[rt],at=s[st],ot=j[st]!==void 0?j[st]:_e[st],lt=isVariantLabel(ot),pt=st===_?at.isActive:null;pt===!1&&(it=rt);let ct=ot===_e[st]&&ot!==j[st]&&lt;if(ct&&a&&e.manuallyAnimateOnMount&&(ct=!1),at.protectedKeys={...nt},!at.isActive&&pt===null||!ot&&!at.prevProp||isAnimationControls(ot)||typeof ot=="boolean")continue;let mt=checkVariantsDidChange(at.prevProp,ot)||st===_&&at.isActive&&!ct&&lt||rt>it&&lt,ft=!1;const dt=Array.isArray(ot)?ot:[ot];let St=dt.reduce(o,{});pt===!1&&(St={});const{prevResolvedValues:yt={}}=at,xt={...yt,...St},Pt=Ct=>{mt=!0,$.has(Ct)&&(ft=!0,$.delete(Ct)),at.needsAnimating[Ct]=!0};for(const Ct in xt){const Et=St[Ct],ht=yt[Ct];if(nt.hasOwnProperty(Ct))continue;let vt=!1;isKeyframesTarget(Et)&&isKeyframesTarget(ht)?vt=!shallowCompare(Et,ht):vt=Et!==ht,vt?Et
vendor: 7,234 bytes, line 40
40!==void 0?Pt(Ct):$.add(Ct):Et!==void 0&&$.has(Ct)?Pt(Ct):at.protectedKeys[Ct]=!0}at.prevProp=ot,at.prevResolvedValues=St,at.isActive&&(nt={...nt,...St}),a&&e.blockInitialAnimation&&(mt=!1),mt&&(!ct||ft)&&tt.push(...dt.map(Ct=>({animation:Ct,options:{type:st,...b}})))}if($.size){const rt={};$.forEach(st=>{const at=e.getBaseTarget(st);at!==void 0&&(rt[st]=at)}),tt.push({animation:rt})}let et=!!tt.length;return a&&(j.initial===!1||j.initial===j.animate)&&!e.manuallyAnimateOnMount&&(et=!1),a=!1,et?i(tt):Promise.resolve()}function g(b,_,j){var _e;if(s[b].isActive===_)return Promise.resolve();(_e=e.variantChildren)===null||_e===void 0||_e.forEach($=>{var nt;return(nt=$.animationState)===null||nt===void 0?void 0:nt.setActive(b,_)}),s[b].isActive=_;const tt=d(j,b);for(const $ in s)s[$].protectedKeys={};return tt}return{animateChanges:d,setActive:g,setAnimateFunction:h,getState:()=>s}}function checkVariantsDidChange(e,i){return typeof i=="string"?i!==e:Array.isArray(i)?!shallowCompare(i,e):!1}function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class AnimationFeature extends Feature{constructor(i){super(i),i.animationState||(i.animationState=createAnimationState(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();this.unmount(),isAnimationControls(i)&&(this.unmount=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){}}let id$1=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$1++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s,custom:a}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;const h=this.node.animationState.setActive("exit",!i,{custom:a??this.node.getProps().custom});s&&!i&&h.then(()=>s(this.id))}mount(){const{register:i}=this.node.presenceContext||{};i&&(this.unmount=i(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}},distance=(e,i)=>Math.abs(e-i);function distance2D(e,i){const s=distance(e.x,i.x),a=distance(e.y,i.y);return Math.sqrt(s**2+a**2)}class PanSession{constructor(i,s,{transformPagePoint:a,contextWindow:o,dragSnapToOrigin:h=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _e=getPanInfo(this.lastMoveEventInfo,this.history),tt=this.startEvent!==null,$=distance2D(_e.offset,{x:0,y:0})>=3;if(!tt&&!$)return;const{point:nt}=_e,{timestamp:it}=frameData;this.history.push({...nt,timestamp:it});const{onStart:et,onMove:rt}=this.handlers;tt||(et&&et(this.lastMoveEvent,_e),this.startEvent=this.lastMoveEvent),rt&&rt(this.lastMoveEvent,_e)},this.handlePointerMove=(_e,tt)=>{this.lastMoveEvent=_e,this.lastMoveEventInfo=transformPoint(tt,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(_e,tt)=>{this.end();const{onEnd:$,onSessionEnd:nt,resumeAnimation:it}=this.handlers;if(this.dragSnapToOrigin&&it&&it(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const et=getPanInfo(_e.type==="pointercancel"?this.lastMoveEventInfo:transformPoint(tt,this.transformPagePoint),this.history);this.startEvent&&$&&$(_e,et),nt&&nt(_e,et)},!isPrimaryPointer(i))return;this.dragSnapToOrigin=h,this.handlers=s,this.transformPagePoint=a,this.contextWindow=o||window;const d=extractEventInfo(i),g=transformPoint(d,this.transformPagePoint),{point:b}=g,{timestamp:_}=frameData;this.history=[{...b,timestamp:_}];const{onSessionStart:j}=s;j&&j(i,getPanInfo(g,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint(e,i){return i?{point:i(e.point)}:e}function subtractPoint(e,i){return{x:e.x-i.x,y:e.y-i.y}}function getPanInfo({point:e},i){return{point:e,delta:subtractPoint(e,lastDevicePoint(i)),offset:subtractPoint(e,startDevicePoint(i)),velocity:getVelocity(i,.1)}}function startDevicePoint(e){return e[0]}function lastDevicePoint(e){return e[e.length-1]}function getVelocity(e,i){if(e.length<2)return{x:0,y:0};let s=e.length-1,a=null;const o=lastDevicePoint(e);for(;s>=0&&(a=e[s],!(o.timestamp-a.timestamp>secondsToMilliseconds(i)));)s--;if(!a)return{x:0,y:0};const h=millisecondsToSeconds(o.timestamp-a.timestamp);if(h===0)return{x:0,y:0};const d={x:(o.x-a.x)/h,y:(o.y-a.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function calcLength(e){return e.max-e.min}function isNear(e,i=0,s=.01){return Math.abs(e-i)<=s}function calcAxisDelta(e,i,s,a=.5){e.origin=a,e.originPoint=mixNumber$1(i.min,i.max,e.origin),e.scale=calcLength(s)/calcLength(i),(isNear(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=mixNumber$1(s.min,s.max,e.origin)-e.originPoint,(isNear(e.translate)||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,i,s,a){calcAxisDelta(e.x,i.x,s.x,a?a.originX:void 0),calcAxisDelta(e.y,i.y,s.y,a?a.originY:void 0)}function calcRelativeAxis(e,i,s){e.min=s.min+i.min,e.max=e.min+calcLength(i)}function calcRelativeBox(e,i,s){calcRelativeAxis(e.x,i.x,s.x),calcRelativeAxis(e.y,i.y,s.y)}function calcRelativeAxisPosition(e,i,s){e.min=i.min-s.min,e.max=e.min+calcLength(i)}function calcRelativePosition(e,i,s){calcRelativeAxisPosition(e.x,i.x,s.x),calcRelativeAxisPosition(e.y,i.y,s.y)}function applyConstraints(e,{min:i,max:s},a){return i!==void 0&&e<i?e=a?mixNumber$1(i,e,a.min):Math.max(e,i):s!==void 0&&e>s&&(e=a?mixNumber$1(s,e,a.max):Math.min(e,s)),e}function calcRelativeAxisConstraints(e,i,s){return{min:i!==void 0?e.min+i:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function calcRelativeConstraints(e,{top:i,left:s,bottom:a,right:o}){return{x:calcRelativeAxisConstraints(e.x,s,o),y:calcRelativeAxisConstraints(e.y,i,a)}}function calcViewportAxisConstraints(e,i){let s=i.min-e.min,a=i.max-e.max;return i.max-i.min<e.max-e.min&&([s,a]=[a,s]),{min:s,max:a}}function calcViewportConstraints(e,i){return{x:calcViewportAxisConstraints(e.x,i.x),y:calcViewportAxisConstraints(e.y,i.y)}}function calcOrigin(e,i){let s=.5;const a=calcLength(e),o=calcLength(i);return o>a?s=progress(i.min,i.max-a,e.min):a>o&&(s=progress(e.min,e.max-o,i.min)),clamp(0,1,s)}function rebaseAxisConstraints(e,i){const s={};return i.min!==void 0&&(s.min=i.min-e.min),i.max!==void 0&&(s.max=i.max-e.min),s}const defaultElastic=.35;function resolveDragElastic(e=defaultElastic){return e===!1?e=0:e===!0&&(e=defaultElastic),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"to
40p","bottom")}}function resolveAxisElastic(e,i,s){return{min:resolvePointElastic(e,i),max:resolvePointElastic(e,s)}}function resolvePointElastic(e,i){return typeof e=="number"?e:e[i]||0}const createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(e){return[e("x"),e("y")]}function convertBoundingBoxToBox({top:e,left:i,right:s,bottom:a}){return{x:{min:i,max:s},y:{min:e,max:a}}}function convertBoxToBoundingBox({x:e,y:i}){return{top:i.min,right:e.max,bottom:i.max,left:e.min}}function transformBoxPoints(e,i){if(!i)return e;const s=i({x:e.left,y:e.top}),a=i({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:a.y,right:a.x}}function isIdentityScale(e){return e===void 0||e===1}function hasScale({scale:e,scaleX:i,scaleY:s}){return!isIdentityScale(e)||!isIdentityScale(i)||!isIdentityScale(s)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY}function has2DTranslate(e){return is2DTranslate(e.x)||is2DTranslate(e.y)}function is2DTranslate(e){return e&&e!=="0%"}function scalePoint(e,i,s){const a=e-s,o=i*a;return s+o}function applyPointDelta(e,i,s,a,o){return o!==void 0&&(e=scalePoint(e,o,a)),scalePoint(e,s,a)+i}function applyAxisDelta(e,i=0,s=1,a,o){e.min=applyPointDelta(e.min,i,s,a,o),e.max=applyPointDelta(e.max,i,s,a,o)}function applyBoxDelta(e,{x:i,y:s}){applyAxisDelta(e.x,i.translate,i.scale,i.originPoint),applyAxisDelta(e.y,s.translate,s.scale,s.originPoint)}function applyTreeDeltas(e,i,s,a=!1){const o=s.length;if(!o)return;i.x=i.y=1;let h,d;for(let g=0;g<o;g++){h=s[g],d=h.projectionDelta;const b=h.instance;b&&b.style&&b.style.display==="contents"||(a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&transformBox(e,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,applyBoxDelta(e,d)),a&&hasTransform(h.latestValues)&&transformBox(e,h.latestValues))}i.x=snapToDefault(i.x),i.y=snapToDefault(i.y)}function snapToDefault(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function translateAxis(e,i){e.min=e.min+i,e.max=e.max+i}function transformAxis(e,i,[s,a,o]){const h=i[o]!==void 0?i[o]:.5,d=mixNumber$1(e.min,e.max,h);applyAxisDelta(e,i[s],i[a],d,i.scale)}const xKeys$1=["x","scaleX","originX"],yKeys$1=["y","scaleY","originY"];function transformBox(e,i){transformAxis(e.x,i,xKeys$1),transformAxis(e.y,i,yKeys$1)}function measureViewportBox(e,i){return convertBoundingBoxToBox(transformBoxPoints(e.getBoundingClientRect(),i))}function measurePageBox(e,i,s){const a=measureViewportBox(e,s),{scroll:o}=i;return o&&(translateAxis(a.x,o.offset.x),translateAxis(a.y,o.offset.y)),a}const getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,elementDragControls=new WeakMap;class VisualElementDragControls{constructor(i){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=i}start(i,{snapToCursor:s=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const o=j=>{const{dragSnapToOrigin:_e}=this.getProps();_e?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(extractEventInfo(j,"page").point)},h=(j,_e)=>{const{drag:tt,dragPropagation:$,onDragStart:nt}=this.getProps();if(tt&&!$&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(tt),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(et=>{let rt=this.getAxisMotionValue(et).get()||0;if(percent.test(rt)){const{projection:st}=this.visualElement;if(st&&st.layout){const at=st.layout.layoutBox[et];at&&(rt=calcLength(at)*(parseFloat(rt)/100))}}this.originPoint[et]=rt}),nt&&frame.update(()=>nt(j,_e),!1,!0);const{animationState:it}=this.visualElement;it&&it.setActive("whileDrag",!0)},d=(j,_e)=>{const{dragPropagation:tt,dragDirectionLock:$,onDirectionLock:nt,onDrag:it}=this.getProps();if(!tt&&!this.openGlobalLock)return;const{offset:et}=_e;if($&&this.currentDirection===null){this.currentDirection=getCurrentDirection(et),this.currentDirection!==null&&nt&&nt(this.currentDirection);return}this.updateAxis("x",_e.point,et),this.updateAxis("y",_e.point,et),this.visualElement.render(),it&&it
vendor: 39,020 bytes, line 40
40(j,_e)},g=(j,_e)=>this.stop(j,_e),b=()=>eachAxis(j=>{var _e;return this.getAnimationState(j)==="paused"&&((_e=this.getAxisMotionValue(j).animation)===null||_e===void 0?void 0:_e.play())}),{dragSnapToOrigin:_}=this.getProps();this.panSession=new PanSession(i,{onSessionStart:o,onStart:h,onMove:d,onSessionEnd:g,resumeAnimation:b},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:_,contextWindow:getContextWindow(this.visualElement)})}stop(i,s){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:h}=this.getProps();h&&frame.update(()=>h(i,s))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,a){const{drag:o}=this.getProps();if(!a||!shouldDrag(i,o,this.currentDirection))return;const h=this.getAxisMotionValue(i);let d=this.originPoint[i]+a[i];this.constraints&&this.constraints[i]&&(d=applyConstraints(d,this.constraints[i],this.elastic[i])),h.set(d)}resolveConstraints(){var i;const{dragConstraints:s,dragElastic:a}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)===null||i===void 0?void 0:i.layout,h=this.constraints;s&&isRefObject(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&o?this.constraints=calcRelativeConstraints(o.layoutBox,s):this.constraints=!1,this.elastic=resolveDragElastic(a),h!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(d=>{this.getAxisMotionValue(d)&&(this.constraints[d]=rebaseAxisConstraints(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!isRefObject(i))return!1;const a=i.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const h=measurePageBox(a,o.root,this.visualElement.getTransformPagePoint());let d=calcViewportConstraints(o.layout.layoutBox,h);if(s){const g=s(convertBoxToBoundingBox(d));this.hasMutatedConstraints=!!g,g&&(d=convertBoundingBoxToBox(g))}return d}startAnimation(i){const{drag:s,dragMomentum:a,dragElastic:o,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:g}=this.getProps(),b=this.constraints||{},_=eachAxis(j=>{if(!shouldDrag(j,s,this.currentDirection))return;let _e=b&&b[j]||{};d&&(_e={min:0,max:0});const tt=o?200:1e6,$=o?40:1e7,nt={type:"inertia",velocity:a?i[j]:0,bounceStiffness:tt,bounceDamping:$,timeConstant:750,restDelta:1,restSpeed:10,...h,..._e};return this.startAxisValueAnimation(j,nt)});return Promise.all(_).then(g)}startAxisValueAnimation(i,s){const a=this.getAxisMotionValue(i);return a.start(animateMotionValue(i,a,0,s))}stopAnimation(){eachAxis(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){eachAxis(i=>{var s;return(s=this.getAxisMotionValue(i).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(i){var s;return(s=this.getAxisMotionValue(i).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(i){const s="_drag"+i.toUpperCase(),a=this.visualElement.getProps(),o=a[s];return o||this.visualElement.getValue(i,(a.initial?a.initial[i]:void 0)||0)}snapToCursor(i){eachAxis(s=>{const{drag:a}=this.getProps();if(!shouldDrag(s,a,this.currentDirection))return;const{projection:o}=this.visualElement,h=this.getAxisMotionValue(s);if(o&&o.layout){const{min:d,max:g}=o.layout.layoutBox[s];h.set(i[s]-mixNumber$1(d,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:a}=this.visualElement;if(!isRefObject(s)||!a||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};eachAxis(d=>{const g=this.getAxisMotionValue(d);if(g){const b=g.get();o[d]=calcOrigin({min:b,max:b},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),eachAxis(d=>{if(!shouldDrag(d,i,null))return;const g=this.getAxisMotionValue(d),{min:b,max:_}=this.constraints[d];g.set(mixNumber$1(b,_,o[d]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const i=this.visualElement.current,s=addPointerEvent(i,"pointerdown",b=>{const{drag:_,dragListener:j=!0}=this.getProps();_&&j&&this.start(b)}),a=()=>{const{dragConstraints:b}=this.getProps();isRefObject(b)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,h=o.addEventListener("measure",a);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),a();const d=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),g=o.addEventListener("didUpdate",({delta:b,hasLayoutChanged:_})=>{this.isDragging&&_&&(eachAxis(j=>{const _e=this.getAxisMotionValue(j);_e&&(this.originPoint[j]+=b[j].translate,_e.set(_e.get()+b[j].translate))}),this.visualElement.render())});return()=>{d(),s(),h(),g&&g()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:a=!1,dragPropagation:o=!1,dragConstraints:h=!1,dragElastic:d=defaultElastic,dragMomentum:g=!0}=i;return{...i,drag:s,dragDirectionLock:a,dragPropagation:o,dragConstraints:h,dragElastic:d,dragMomentum:g}}}function shouldDrag(e,i,s){return(i===!0||i===e)&&(s===null||s===e)}function getCurrentDirection(e,i=10){let s=null;return Math.abs(e.y)>i?s="y":Math.abs(e.x)>i&&(s="x"),s}class DragGesture extends Feature{constructor(i){super(i),this.removeGroupControls=noop,this.removeListeners=noop,this.controls=new VisualElementDragControls(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=e=>(i,s)=>{e&&frame.update(()=>e(i,s))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop}onPointerDown(i){this.session=new PanSession(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:a,onPanEnd:o}=this.node.getProps();return{onSessionStart:asyncHandler(i),onStart:asyncHandler(s),onMove:a,onEnd:(h,d)=>{delete this.session,o&&frame.update(()=>o(h,d))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function usePresence(){const e=reactExports.useContext(PresenceContext);if(e===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:a}=e,o=reactExports.useId();return reactExports.useEffect(()=>a(o),[]),!i&&s?[!1,()=>s&&s(o)]:[!0]}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,i){return i.max===i.min?0:e/(i.max-i.min)*100}const correctBorderRadius={correct:(e,i)=>{if(!i.target)return e;if(typeof e=="string")if(px.test(e))e=parseFloat(e);else return e;const s=pixelsToPercent(e,i.target.x),a=pixelsToPercent(e,i.target.y);return`${s}% ${a}%`}},correctBoxShadow={correct:(e,{treeScale:i,projectionDelta:s})=>{const a=e,o=complex.parse(e);if(o.length>5)return a;const h=complex.createTransformer(e),d=typeof o[0]!="number"?1:0,g=s.x.scale*i.x,b=s.y.scale*i.y;o[0+d]/=g,o[1+d]/=b;const _=mixNumber$1(g,b,.5);return typeof o[2+d]=="number"&&(o[2+d]/=_),typeof o[3+d]=="number"&&(o[3+d]/=_),h(o)}};class MeasureLayoutWithContext extends React.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:a,layoutId:o}=this.props,{projection:h}=i;addScaleCorrector(defaultScaleCorrectors),h&&(s.group&&s.group.add(h),a&&a.register&&o&&a.register(h),h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:a,drag:o,isPresent:h}=this.props,d=a.projection;return d&&(d.isPresent=h,o||i.layoutDependency!==s||s===void 0?d.willUpdate():this.safeToRemove(),i.isPresent!==h&&(h?d.promote():d.relegate()||frame.postRender(()=>{const g=d.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:a}=this.props,{projection:o}=i;o&&(o.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(o),a&&a.deregister&&a.deregister(o))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function MeasureLayout(e){const[i,s]=usePresence(),a=reactExports.useContext(LayoutGroupContext);return React.createElement(MeasureLayoutWithContext,{...e,layoutGroup:a,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:i,safeToRemove:s})}const defaultScaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow},borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=e=>typeof e=="string"?parseFloat(e):e,isPx=e=>typeof e=="number"||px.test(e);function mixValues(e,i,s,a,o,h){o?(e.opacity=mixNumber$1(0,s.opacity!==void 0?s.opacity:1,easeCrossfadeIn(a)),e.opacityExit=mixNumber$1(i.opacity!==void 0?i.opacity:1,0,easeCrossfadeOut(a))):h&&(e.opacity=mixNumber$1(i.opacity!==void 0?i.opacity:1,s.opacity!==void 0?s.opacity:1,a));for(let d=0;d<numBorders;d++){const g=`border${borders[d]}Radius`;let b=getRadius(i,g),_=getRadius(s,g);if(b===void 0&&_===void 0)continue;b||(b=0),_||(_=0),b===0||_===0||isPx(b)===isPx(_)?(e[g]=Math.max(mixNumber$1(asNumber(b),asNumber(_),a),0),(percent.test(_)||percent.test(b))&&(e[g]+="%")):e[g]=_}(i.rotate||s.rotate)&&(e.rotate=mixNumber$1(i.rotate||0,s.rotate||0,a))}function getRadius(e,i){return e[i]!==void 0?e[i]:e.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop);function compress(e,i,s){return a=>a<e?0:a>i?1:s(progress(e,i,a))}function copyAxisInto(e,i){e.min=i.min,e.max=i.max}function copyBoxInto(e,i){copyAxisInto(e.x,i.x),copyAxisInto(e.y,i.y)}function removePointDelta(e,i,s,a,o){return e-=i,e=scalePoint(e,1/s,a),o!==void 0&&(e=scalePoint(e,1/o,a)),e}function removeAxisDelta(e,i=0,s=1,a=.5,o,h=e,d=e){if(percent.test(i)&&(i=parseFloat(i),i=mixNumber$1(d.min,d.max,i/100)-d.min),typeof i!="number")return;let g=mixNumber$1(h.min,h.max,a);e===h&&(g-=i),e.min=removePointDelta(e.min,i,s,g,o),e.max=removePointDelta(e.max,i,s,g,o)}function removeAxisTransforms(e,i,[s,a,o],h,d){removeAxisDelta(e,i[s],i[a],i[o],i.scale,h,d)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(e,i,s,a){removeAxisTransforms(e.x,i,xKeys,s?s.x:void 0,a?a.x:void 0),removeAxisTransforms(e.y,i,yKeys,s?s.y:void 0,a?a.y:void 0)}function isAxisDeltaZero(e){return e.translate===0&&e.scale===1}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function boxEquals(e,i){return e.x.min===i.x.min&&e.x.max===i.x.max&&e.y.min===i.y.min&&e.y.max===i.y.max}function boxEqualsRounded(e,i){return Math.round(e.x.min)===Math.round(i.x.min)&&Math.round(e.x.max)===Math.round(i.x.max)&&Math.round(e.y.min)===Math.round(i.y.min)&&Math.round(e.y.max)===Math.round(i.y.max)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}class NodeStack{constructor(){this.members=[]}add(i){addUniqueItem(this.members,i),i.scheduleRender()}remove(i){if(removeItem(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(o=>i===o);if(s===0)return!1;let a;for(let o=s;o>=0;o--){const h=this.members[o];if(h.isPresent!==!1){a=h;break}}return a?(this.promote(a),!0):!1}promote(i,s){const a=this.lead;if(i!==a&&(this.prevLead=a,this.lead=i,i.show(),a)){a.instance&&a.scheduleRender(),i.scheduleRender(),i.resumeFrom=a,s&&(i.resumeFrom.preserveOpacity=!0),a.snapshot&&(i.snapshot=a.snapshot,i.snapshot.latestValues=a.animationValues||a.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:o}=i.options;o===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:a}=i;s.onExitComplete&&s.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform(e,i,s){let a="";const o=e.x.translate/i.x,h=e.y.translate/i.y;if((o||h)&&(a=`translate3d(${o}px, ${h}px, 0) `),(i.x!==1||i.y!==1)&&(a+=`scale(${1/i.x}, ${1/i.y}) `),s){const{rotate:b,rotateX:_,rotateY:j}=s;b&&(a+=`rotate(${b}deg) `),_&&(a+=`rotateX(${_}deg) `),j&&(a+=`rotateY(${j}deg) `)}const d=e.x.scale*i.x,g=e.y.scale*i.y;return(d!==1||g!==1)&&(a+=`scale(${d}, ${g})`),a||"none"}const compareByDepth=(e,i)=>e.depth-i.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(i){addUniqueItem(this.children,i),this.isDirty=!0}remove(i){removeItem(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(i)}}function delay(e,i){const s=time.now(),a=({timestamp:o})=>{const h=o-s;h>=i&&(cancelFrame(a),e(h-i))};return frame.read(a,!0),()=>cancelFrame(a)}function record(e){window.MotionDebug&&window.MotionDebug.record(e)}function isSVGElement(e){return e instanceof SVGElement&&e.tagName!=="svg"}function animateSingleValue(e,i,s){const a=isMotionValue(e)?e:motionValue(e);return a.start(animateMotionValue("",a,i,s)),a.animation}const transformAxes=["","X","Y","Z"],hiddenVisibility={visibility:"hidden"},animationTarget=1e3;let id=0;const projectionFrameData={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function createProjectionNode({attachResizeListener:e,defaultParent:i,measureScroll:s,checkIsScrollRoot:a,resetTransform:o}){return class{constructor(d={},g=i==null?void 0:i()){this.id=id++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,projectionFrameData.totalNodes=projectionFrameData.resolvedTargetDeltas=projectionFrameData.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),record(projectionFrameData)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let b=0;b<this.path.length;b++)this.path[b].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(d,g){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new SubscriptionManager),this.eventHandlers.get(d).add(g)}notifyListeners(d,...g){const b=this.eventHandlers.get(d);b&&b.notify(...g)}hasListeners(d){return this.eventHandlers.has(d)}mount(d,g=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=isSVGElement(d),this.instance=d;const{layoutId:b,layout:_,visualElement:j}=this.options;if(j&&!j.current&&j.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),g&&(_||b)&&(this.isLayoutDirty=!0),e){let _e;const tt=()=>this.root.updateBlockedByResize=!1;e(d,()=>{this.root.updateBlockedByResize=!0,_e&&_e(),_e=delay(tt,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}b&&this.root.registerSharedNode(b,this),this.options.animate!==!1&&j&&(b||_)&&this.addEventListener("didUpdate",({delta:_e,hasLayoutChanged:tt,hasRelativeTargetChanged:$,layout:nt})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const it=this.options.transition||j.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:et,onLayoutAnimationComplete:rt}=j.getProps(),st=!this.targetLayout||!boxEqualsRounded(this.targetLayout,nt)||$,at=!tt&&$;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||at||tt&&(st||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(_e,at);const ot={...getValueTransition(it,"layout"),onPlay:et,onComplete:rt};(j.shouldReduceMotion||this.options.layoutRoot)&&(ot.delay=0,ot.type=!1),this.startAnimation(ot)}else tt||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=nt})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cancelFrame(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetRotation),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let j=0;j<this.path.length;j++){const _e=this.path[j];_e.shouldResetTransform=!0,_e.updateScroll("snapshot"),_e.options.layoutRoot&&_e.willUpdate(!1)}const{layoutId:g,layout:b}=this.options;if(g===void 0&&!b)return;const _=this.getTransformTemplate();this.prevTransformTemplateValue=_?_(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}this.isUpdating||this.nodes.forEach(clearIsLayoutDirty),this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate),this.clearAllSnapshots();const g=time.now();frameData.delta=clamp(0,1e3/60,g-frameData.timestamp),frameData.timestamp=g,frameData.isProcessing=!0,steps.update.process(frameData),steps.preRender.process(frameData),steps.render.process(frameData),frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,microtask.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let b=0;b<this.path.length;b++)this.path[b].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let g=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(g=!1),g&&(this.scroll={animationId:this.root.animationId,phase:d,isRoot:a(this.instance),offset:s(this.instance)})}resetTransform(){if(!o)return;const d=this.isLayoutDirty||this.shouldResetTransform,g=this.projectionDelta&&!isDeltaZero(this.projectionDelta),b=this.getTransformTemplate(),_=b?b(this.latestValues,""):void 0,j=_!==this.prevTransformTemplateValue;d&&(g||hasTransform(this.latestValues)||j)&&(o(this.instance,_),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const g=this.measurePageBox();let b=this.removeElementScroll(g);return d&&(b=this.removeTransform(b)),roundBox(b),{animationId:this.root.animationId,measuredBox:g,layoutBox:b,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return createBox();const g=d.measureViewportBox(),{scroll:b}=this.root;return b&&(translateAxis(g.x,b.offset.x),translateAxis(g.y,b.offset.y)),g}removeElementScroll(d){const g=createBox();copyBoxInto(g,d);for(let b=0;b<this.path.length;b++){const _=this.path[b],{scroll:j,options:_e}=_;if(_!==this.root&&j&&_e.layoutScroll){if(j.isRoot){copyBoxInto(g,d);const{scroll:tt}=this.root;tt&&(translateAxis(g.x,-tt.offset.x),translateAxis(g.y,-tt.offset.y))}translateAxis(g.x,j.offset.x),translateAxis(g.y,j.offset.y)}}return g}applyTransform(d,g=!1){const b=createBox();copyBoxInto(b,d);for(let _=0;_<this.path.length;_++){const j=this.path[_];!g&&j.options.layoutScroll&&j.scroll&&j!==j.root&&transformBox(b,{x:-j.scroll.offset.x,y:-j.scroll.offset.y}),hasTransform(j.latestValues)&&transformBox(b,j.latestValues)}return hasTransform(this.latestValues)&&transformBox(b,this.latestValues),b}removeTransform(d){const g=createBox();copyBoxInto(g,d);for(let b=0;b<this.path.length;b++){const _=this.path[b];if(!_.instance||!hasTransform(_.latestValues))continue;hasScale(_.latestValues)&&_.updateSnapshot();const j=createBox(),_e=_.measurePageBox();copyBoxInto(j,_e),removeBoxTransforms(g,_.latestValues,_.snapshot?_.snapshot.layoutBox:void 0,j)}return hasTransform(this.latestValues)&&removeBoxTransforms(g,this.latestValues),g}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var g;const b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);const _=!!this.resumingFrom||this!==b;if(!(d||_&&this.isSharedProjectionDirty||this.isProjectionDirty||!((g=this.parent)===null||g===void 0)&&g.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:_e,layoutId:tt}=this.options;if(!(!this.layout||!(_e||tt))){if(this.resolvedRelativeTargetAt=frameData.timestamp,!this.targetDelta&&!this.relativeTarget){const $=this.getClosestProjectingParent();$&&$.layout&&this.animationProgress!==1?(this.relativeParent=$,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,$.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),calcRelativeBox(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const $=this.getClosestProjectingParent();$&&!!$.resumingFrom==!!this.resumingFrom&&!$.options.layoutScroll&&$.target&&this.animationProgress!==1?(this.relativeParent=$,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,$.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}projectionFrameData.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var d;const g=this.getLead(),b=!!this.resumingFrom||this!==g;let _=!0;if((this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty)&&(_=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(_=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(_=!1),_)return;const{layout:j,layoutId:_e}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(j||_e))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const tt=this.treeScale.x,$=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,b),g.layout&&!g.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(g.target=g.layout.layoutBox,g.targetWithTransforms=createBox());const{target:nt}=g;if(!nt){this.projectionTransform&&(this.projectionDelta=createDelta(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta());const it=this.projectionTransform;calcBoxDelta(this.projectionDelta,this.layoutCorrected,nt,this.latestValues),this.projectionTransform=buildProjectionTransform(this.projectionDelta,this.treeScale),(this.projectionTransform!==it||this.treeScale.x!==tt||this.treeScale.y!==$)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",nt)),projectionFrameData.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(d,g=!1){const b=this.snapshot,_=b?b.latestValues:{},j={...this.latestValues},_e=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const tt=createBox(),$=b?b.source:void 0,nt=this.layout?this.layout.source:void 0,it=$!==nt,et=this.getStack(),rt=!et||et.members.length<=1,st=!!(it&&!rt&&this.options.crossfade===!0&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let at;this.mixTargetDelta=ot=>{const lt=ot/1e3;mixAxisDelta(_e.x,d.x,lt),mixAxisDelta(_e.y,d.y,lt),this.setTargetDelta(_e),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(tt,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,tt,lt),at&&boxEquals(this.relativeTarget,at)&&(this.isProjectionDirty=!1),at||(at=createBox()),copyBoxInto(at,this.relativeTarget)),it&&(this.animationValues=j,mixValues(j,_,this.latestValues,lt,st,rt)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=lt},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.currentAnimation=animateSingleValue(0,animationTarget,{...d,onUpdate:g=>{this.mixTargetDelta(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:g,target:b,layout:_,latestValues:j}=d;if(!(!g||!b||!_)){if(this!==d&&this.layout&&_&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,_.layoutBox)){b=this.target||createBox();const _e=calcLength(this.layout.layoutBox.x);b.x.min=d.target.x.min,b.x.max=b.x.min+_e;const tt=calcLength(this.layout.layoutBox.y);b.y.min=d.target.y.min,b.y.max=b.y.min+tt}copyBoxInto(g,b),transformBox(g,j),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,g,j)}}registerSharedNode(d,g){this.sharedNodes.has(d)||this.sharedNodes.set(d,new NodeStack),this.sharedNodes.get(d).add(g);const _=g.options.initialPromotionConfig;g.promote({transition:_?_.transition:void 0,preserveFollowOpacity:_&&_.shouldPreserveFollowOpacity?_.shouldPreserveFollowOpacity(g):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var d;const{layoutId:g}=this.options;return g?((d=this.getStack())===null||d===void 0?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:g}=this.options;return g?(d=this.getStack())===null||d===void 0?void 0:d.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:g,preserveFollowOpacity:b}={}){const _=this.getStack();_&&_.promote(this,b),d&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetRotation(){const{visualElement:d}=this.options;if(!d)return;let g=!1;const{latestValues:b}=d;if((b.rotate||b.rotateX||b.rotateY||b.rotateZ)&&(g=!0),!g)return;const _={};for(let j=0;j<transformAxes.length;j++){const _e="rotate"+transformAxes[j];b[_e]&&(_[_e]=b[_e],d.setStaticValue(_e,0))}d.render();for(const j in _)d.setStaticValue(j,_[j]);d.scheduleRender()}getProjectionStyles(d){var g,b;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hiddenVisibility;const _={visibility:""},j=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,_.opacity="",_.pointerEvents=resolveMotionValue(d==null?void 0:d.pointerEvents)||"",_.transform=j?j(this.latestValues,""):"none",_;const _e=this.getLead();if(!this.projectionDelta||!this.layout||!_e.target){const it={};return this.options.layoutId&&(it.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,it.pointerEvents=resolveMotionValue(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(it.transform=j?j({},""):"none",this.hasProjected=!1),it}const tt=_e.animationValues||_e.latestValues;this.applyTransformsToTarget(),_.transform=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,tt),j&&(_.transform=j(tt,_.transform));const{x:$,y:nt}=this.projectionDelta;_.transformOrigin=`${$.origin*100}% ${nt.origin*100}% 0`,_e.animationValues?_.opacity=_e===this?(b=(g=tt.opacity)!==null&&g!==void 0?g:this.latestValues.opacity)!==null&&b!==void 0?b:1:this.preserveOpacity?this.latestValues.opacity:tt.opacityExit:_.opacity=_e===this?tt.opacity!==void 0?tt.opacity:"":tt.opacityExit!==void 0?tt.opacityExit:0;for(const it in scaleCorrectors){if(tt[it]===void 0)continue;const{correct:et,applyTo:rt}=scaleCorrectors[it],st=_.transform==="none"?tt[it]:et(tt[it],_e);if(rt){const at=rt.length;for(let ot=0;ot<at;ot++)_[rt[ot]]=st}else _[it]=st}return this.options.layoutId&&(_.pointerEvents=_e===this?resolveMotionValue(d==null?void 0:d.pointerEvents)||"":"none"),_}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var g;return(g=d.currentAnimation)===null||g===void 0?void 0:g.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){var i;const s=((i=e.resumeFrom)===null||i===void 0?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&s&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:o}=e.layout,{animationType:h}=e.options,d=s.source!==e.layout.source;h==="size"?eachAxis(_e=>{const tt=d?s.measuredBox[_e]:s.layoutBox[_e],$=calcLength(tt);tt.min=a[_e].min,tt.max=tt.min+$}):shouldAnimatePositionOnly(h,s.layoutBox,a)&&eachAxis(_e=>{const tt=d?s.measuredBox[_e]:s.layoutBox[_e],$=calcLength(a[_e]);tt.max=tt.min+$,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[_e].max=e.relativeTarget[_e].min+$)});const g=createDelta();calcBoxDelta(g,a,s.layoutBox);const b=createDelta();d?calcBoxDelta(b,e.applyTransform(o,!0),s.measuredBox):calcBoxDelta(b,a,s.layoutBox);const _=!isDeltaZero(g);let j=!1;if(!e.resumeFrom){const _e=e.getClosestProjectingParent();if(_e&&!_e.resumeFrom){const{snapshot:tt,layout:$}=_e;if(tt&&$){const nt=createBox();calcRelativePosition(nt,s.layoutBox,tt.layoutBox);const it=createBox();calcRelativePosition(it,a,$.layoutBox),boxEqualsRounded(nt,it)||(j=!0),_e.options.layoutRoot&&(e.relativeTarget=it,e.relativeTargetOrigin=nt,e.relativeParent=_e)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:s,delta:b,layoutDelta:g,hasLayoutChanged:_,hasRelativeTargetChanged:j})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function propagateDirtyNodes(e){projectionFrameData.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){const{visualElement:i}=e.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetRotation(e){e.resetRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,i,s){e.translate=mixNumber$1(i.translate,0,s),e.scale=mixNumber$1(i.scale,1,s),e.origin=i.origin,e.originPoint=i.originPoint}function mixAxis(e,i,s,a){e.min=mixNumber$1(i.min,s.min,a),e.max=mixNumber$1(i.max,s.max,a)}function mixBox(e,i,s,a){mixAxis(e.x,i.x,s.x,a),mixAxis(e.y,i.y,s.y,a)}function hasOpacityCrossfade(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis(e){e.min=roundPoint(e.min),e.max=roundPoint(e.max)}function roundBox(e){roundAxis(e.x),roundAxis(e.y)}function shouldAnimatePositionOnly(e,i,s){return e==="position"||e==="preserve-aspect"&&!isNear(aspectRatio(i),aspectRatio(s),.2)}const DocumentProjectionNode=createProjectionNode({attachResizeListener:(e,i)=>addDomEvent(e,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const e=new DocumentProjectionNode({});e.mount(window),e.setOptions({layoutScroll:!0}),rootProjectionNode.current=e}return rootProjectionNode.current},resetTransform:(e,i)=>{e.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}},splitCSSVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function parseCSSVariable(e){const i=splitCSSVariableRegex.exec(e);if(!i)return[,];const[,s,a]=i;return[s,a]}function getVariableValue(e,i,s=1){const[a,o]=parseCSSVariable(e);if(!a)return;const h=window.getComputedStyle(i).getPropertyValue(a);if(h){const d=h.trim();return isNumericalString(d)?parseFloat(d):d}else return isCSSVariableToken(o)?getVariableValue(o,i,s+1):o}
40function resolveCSSVariables(e,{...i},s){const a=e.current;if(!(a instanceof Element))return{target:i,transitionEnd:s};s&&(s={...s}),e.values.forEach(o=>{const h=o.get();if(!isCSSVariableToken(h))return;const d=getVariableValue(h,a);d&&o.set(d)});for(const o in i){const h=i[o];if(!isCSSVariableToken(h))continue;const d=getVariableValue(h,a);d&&(i[o]=d,s||(s={}),s[o]===void 0&&(s[o]=h))}return{target:i,transitionEnd:s}}const positionalKeys=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isPositionalKey=e=>positionalKeys.has(e),hasPositionalKey=e=>Object.keys(e).some(isPositionalKey),isNumOrPxType=e=>e===number||e===px,getPosFromMatrix=(e,i)=>parseFloat(e.split(", ")[i]),getTranslateFromMatrix=(e,i)=>(s,{transform:a})=>{if(a==="none"||!a)return 0;const o=a.match(/^matrix3d\((.+)\)$/);if(o)return getPosFromMatrix(o[1],i);{const h=a.match(/^matrix\((.+)\)$/);return h?getPosFromMatrix(h[1],e):0}},transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter(e=>!transformKeys.has(e));function removeNonTranslationalTransform(e){const i=[];return nonTranslationalTransformKeys.forEach(s=>{const a=e.getValue(s);a!==void 0&&(i.push([s,a.get()]),a.set(s.startsWith("scale")?1:0))}),i.length&&e.render(),i}const positionalValues={width:({x:e},{paddingLeft:i="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(i)-parseFloat(s),height:({y:e},{paddingTop:i="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(i)-parseFloat(s),top:(e,{top:i})=>parseFloat(i),left:(e,{left:i})=>parseFloat(i),bottom:({y:e},{top:i})=>parseFloat(i)+(e.max-e.min),right:({x:e},{left:i})=>parseFloat(i)+(e.max-e.min),x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};positionalValues.translateX=positionalValues.x;positionalValues.translateY=positionalValues.y;const convertChangedValueTypes=(e,i,s)=>{const a=i.measureViewportBox(),o=i.current,h=getComputedStyle(o),{display:d}=h,g={};d==="none"&&i.setStaticValue("display",e.display||"block"),s.forEach(_=>{g[_]=positionalValues[_](a,h)}),i.render();const b=i.measureViewportBox();return s.forEach(_=>{const j=i.getValue(_);j&&j.jump(g[_]),e[_]=positionalValues[_](b,h)}),e},checkAndConvertChangedValueTypes=(e,i,s={},a={})=>{i={...i},a={...a};const o=Object.keys(i).filter(isPositionalKey);let h=[],d=!1;const g=[];if(o.forEach(b=>{const _=e.getValue(b);if(!e.hasValue(b))return;let j=s[b],_e=findDimensionValueType(j);const tt=i[b];let $;if(isKeyframesTarget(tt)){const nt=tt.length,it=tt[0]===null?1:0;j=tt[it],_e=findDimensionValueType(j);for(let et=it;et<nt&&tt[et]!==null;et++)$?invariant(findDimensionValueType(tt[et])===$):$=findDimensionValueType(tt[et])}else $=findDimensionValueType(tt);if(_e!==$)if(isNumOrPxType(_e)&&isNumOrPxType($)){const nt=_.get();typeof nt=="string"&&_.set(parseFloat(nt)),typeof tt=="string"?i[b]=parseFloat(tt):Array.isArray(tt)&&$===px&&(i[b]=tt.map(parseFloat))}else _e!=null&&_e.transform&&($!=null&&$.transform)&&(j===0||tt===0)?j===0?_.set($.transform(j)):i[b]=_e.transform(tt):(d||(h=removeNonTranslationalTransform(e),d=!0),g.push(b),a[b]=a[b]!==void 0?a[b]:i[b],_.jump(tt))}),g.length){const b=g.indexOf("height")>=0?window.pageYOffset:null,_=convertChangedValueTypes(i,e,g);return h.length&&h.forEach(([j,_e])=>{e.getValue(j).set(_e)}),e.render(),isBrowser&&b!==null&&window.scrollTo({top:b}),{target:_,transitionEnd:a}}else return{target:i,transitionEnd:a}};function unitConversion(e,i,s,a){return hasPositionalKey(i)?checkAndConvertChangedValueTypes(e,i,s,a):{target:i,transitionEnd:a}}const parseDomVariant=(e,i,s,a)=>{const o=resolveCSSVariables(e,i,a);return i=o.target,a=o.transitionEnd,unitConversion(e,i,s,a)},prefersReducedMotion={current:null},hasReducedMotionListener={current:!1};function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),i=()=>prefersReducedMotion.current=e.matches;e.addListener(i),i()}else prefersReducedMotion.current=!1}function updateMotionValuesFromProps(e,i,s){const{willChange:a}=i;for(const o in i){const h=i[o],d=s[o];if(isMotionValue(h))e.addValue(o,h),isWillChangeMotionValue(a)&&a.add(o);else if(isMotionValue(d))e.addValue(o,motionValue(h,{owner:e})),isWillChangeMotionValue(a)&&a.remove(o);else if(d!==h)if(e.hasValue(o)){const g=e.getValue(o);!g.hasAnimated&&g.set(h)}else{const g=e.getStaticValue(o);e.addValue(o,motionValue(g!==void 0?g:h,{owner:e}))}}for(const o in s)i[o]===void 0&&e.removeValue(o);return i}const visualElementStore=new WeakMap,featureNames=Object.keys(featureDefinitions),numFeatures=featureNames.length,propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],numVariantProps=variantProps.length;class VisualElement{constructor({parent:i,props:s,presenceContext:a,reducedMotionConfig:o,visualState:h},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>frame.render(this.render,!1,!0);
vendor: 5,215 bytes, line 40
40const{latestValues:g,renderState:b}=h;this.latestValues=g,this.baseTarget={...g},this.initialValues=s.initial?{...g}:{},this.renderState=b,this.parent=i,this.props=s,this.presenceContext=a,this.depth=i?i.depth+1:0,this.reducedMotionConfig=o,this.options=d,this.isControllingVariants=isControllingVariants(s),this.isVariantNode=isVariantNode(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:_,...j}=this.scrapeMotionValuesFromProps(s,{});for(const _e in j){const tt=j[_e];g[_e]!==void 0&&isMotionValue(tt)&&(tt.set(g[_e],!1),isWillChangeMotionValue(_)&&_.add(_e))}}scrapeMotionValuesFromProps(i,s){return{}}mount(i){this.current=i,visualElementStore.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,a)=>this.bindToMotionValue(a,s)),hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:prefersReducedMotion.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){visualElementStore.delete(this.current),this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(i=>i()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const i in this.events)this.events[i].clear();for(const i in this.features)this.features[i].unmount();this.current=null}bindToMotionValue(i,s){const a=transformProps.has(i),o=s.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&frame.update(this.notifyUpdate,!1,!0),a&&this.projection&&(this.projection.isTransformDirty=!0)}),h=s.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(i,()=>{o(),h()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}loadFeatures({children:i,...s},a,o,h){let d,g;for(let b=0;b<numFeatures;b++){const _=featureNames[b],{isEnabled:j,Feature:_e,ProjectionNode:tt,MeasureLayout:$}=featureDefinitions[_];tt&&(d=tt),j(s)&&(!this.features[_]&&_e&&(this.features[_]=new _e(this)),$&&(g=$))}if((this.type==="html"||this.type==="svg")&&!this.projection&&d){this.projection=new d(this.latestValues,this.parent&&this.parent.projection);const{layoutId:b,layout:_,drag:j,dragConstraints:_e,layoutScroll:tt,layoutRoot:$}=s;this.projection.setOptions({layoutId:b,layout:_,alwaysMeasureLayout:!!j||_e&&isRefObject(_e),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof _=="string"?_:"both",initialPromotionConfig:h,layoutScroll:tt,layoutRoot:$})}return g}updateFeatures(){for(const i in this.features){const s=this.features[i];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}makeTargetAnimatable(i,s=!0){return this.makeTargetAnimatableFromInstance(i,s)}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let a=0;a<propEventHandlers.length;a++){const o=propEventHandlers[a];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const h=i["on"+o];h&&(this.propEventSubscriptions[o]=this.on(o,h))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(i,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(i=!1){if(i)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const a=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(a.initial=this.props.initial),a}const s={};for(let a=0;a<numVariantProps;a++){const o=variantProps[a],h=this.props[o];(isVariantLabel(h)||h===!1)&&(s[o]=h)}return s}addVariantChild(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){s!==this.values.get(i)&&(this.removeValue(i),this.bindToMotionValue(i,s)),this.values.set(i,s),this.latestValues[i]=s.get()}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}
40getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let a=this.values.get(i);return a===void 0&&s!==void 0&&(a=motionValue(s,{owner:this}),this.addValue(i,a)),a}readValue(i){var s;return this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:(s=this.getBaseTargetFromProps(this.props,i))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,i,this.options)}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var s;const{initial:a}=this.props,o=typeof a=="string"||typeof a=="object"?(s=resolveVariantFromProps(this.props,a))===null||s===void 0?void 0:s[i]:void 0;if(a&&o!==void 0)return o;const h=this.getBaseTargetFromProps(this.props,i);return h!==void 0&&!isMotionValue(h)?h:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new SubscriptionManager),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}}class DOMVisualElement extends VisualElement{sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:a}){delete s[i],delete a[i]}makeTargetAnimatableFromInstance({transition:i,transitionEnd:s,...a},o){const h=getOrigin(a,i||{},this);if(o){checkTargetForNewValues(this,a,h);const d=parseDomVariant(this,a,h,s);s=d.transitionEnd,a=d.target}return{transition:i,transitionEnd:s,...a}}}function getComputedStyle$1(e){return window.getComputedStyle(e)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html"}readValueFromInstance(i,s){if(transformProps.has(s)){const a=getDefaultValueType(s);return a&&a.default||0}else{const a=getComputedStyle$1(i),o=(isCSSVariableName(s)?a.getPropertyValue(s):a[s])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(i,{transformPagePoint:s}){return measureViewportBox(i,s)}build(i,s,a,o){buildHTMLStyles(i,s,a,o.transformTemplate)}scrapeMotionValuesFromProps(i,s){return scrapeMotionValuesFromProps$1(i,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;isMotionValue(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}renderInstance(i,s,a,o){renderHTML(i,s,a,o)}}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(transformProps.has(s)){const a=getDefaultValueType(s);return a&&a.default||0}return s=camelCaseAttributes.has(s)?s:camelToDash(s),i.getAttribute(s)}measureInstanceViewportBox(){return createBox()}scrapeMotionValuesFromProps(i,s){return scrapeMotionValuesFromProps(i,s)}build(i,s,a,o){buildSVGAttrs(i,s,a,this.isSVGTag,o.transformTemplate)}
40renderInstance(i,s,a,o){renderSVG(i,s,a,o)}mount(i){this.isSVGTag=isSVGTag(i.tagName),super.mount(i)}}const createDomVisualElement=(e,i)=>isSVGComponent(e)?new SVGVisualElement(i,{enableHardwareAcceleration:!1}):new HTMLVisualElement(i,{enableHardwareAcceleration:!0}),layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},preloadedFeatures={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy((e,i)=>createDomMotionConfig(e,i,preloadedFeatures,createDomVisualElement));function useIsMounted(){const e=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function useForceUpdate(){const e=useIsMounted(),[i,s]=reactExports.useState(0),a=reactExports.useCallback(()=>{e.current&&s(i+1)},[i]);return[reactExports.useCallback(()=>frame.postRender(a),[a]),i]}class PopChildMeasure extends reactExports.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const a=this.props.sizeRef.current;a.height=s.offsetHeight||0,a.width=s.offsetWidth||0,a.top=s.offsetTop,a.left=s.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function PopChild({children:e,isPresent:i}){const s=reactExports.useId(),a=reactExports.useRef(null),o=reactExports.useRef({width:0,height:0,top:0,left:0});return reactExports.useInsertionEffect(()=>{const{width:h,height:d,top:g,left:b}=o.current;if(i||!a.current||!h||!d)return;a.current.dataset.motionPopId=s;const _=document.createElement("style");return document.head.appendChild(_),_.sheet&&_.sheet.insertRule(`
41          [data-motion-pop-id="${s}"] {
42            position: absolute !important;
43            width: ${h}px !important;
44            height: ${d}px !important;
45            top: ${g}px !important;
46            left: ${b}px !important;
47          }
48        `),()=>{document.head.removeChild(_)}},[i]),reactExports.createElement(PopChildMeasure,{isPresent:i,childRef:a,sizeRef:o},reactExports.cloneElement(e,{ref:a}))}const PresenceChild=({children:e,initial:i,isPresent:s,onExitComplete:a,custom:o,presenceAffectsLayout:h,mode:d})=>{const g=useConstant(newChildrenMap),b=reactExports.useId(),_=reactExports.useMemo(()=>({id:b,initial:i,isPresent:s,custom:o,onExitComplete:j=>{g.set(j,!0);for(const _e of g.values())if(!_e)return;a&&a()},register:j=>(g.set(j,!1),()=>g.delete(j))}),h?void 0:[s]);return reactExports.useMemo(()=>{g.forEach((j,_e)=>g.set(_e,!1))},[s]),reactExports.useEffect(()=>{!s&&!g.size&&a&&a()},[s]),d==="popLayout"&&(e=reactExports.createElement(PopChild,{isPresent:s},e)),reactExports.createElement(PresenceContext.Provider,{value:_},e)};function newChildrenMap(){return new Map}function useUnmountEffect(e){return reactExports.useEffect(()=>()=>e(),[])}const getChildKey=e=>e.key||"";function updateChildLookup(e,i){e.forEach(s=>{const a=getChildKey(s);i.set(a,s)})}function onlyElements(e){const i=[];return reactExports.Children.forEach(e,s=>{reactExports.isValidElement(s)&&i.push(s)}),i}const AnimatePresence=({children:e,custom:i,initial:s=!0,onExitComplete:a,exitBeforeEnter:o,presenceAffectsLayout:h=!0,mode:d="sync"})=>{const g=reactExports.useContext(LayoutGroupContext).forceRender||useForceUpdate()[0],b=useIsMounted(),_=onlyElements(e);let j=_;const _e=reactExports.useRef(new Map).current,tt=reactExports.useRef(j),$=reactExports.useRef(new Map).current,nt=reactExports.useRef(!0);if(useIsomorphicLayoutEffect(()=>{nt.current=!1,updateChildLookup(_,$),tt.current=j}),useUnmountEffect(()=>{nt.current=!0,$.clear(),_e.clear()}),nt.current)return reactExports.createElement(reactExports.Fragment,null,j.map(st=>reactExports.createElement(PresenceChild,{key:getChildKey(st),isPresent:!0,initial:s?void 0:!1,presenceAffectsLayout:h,mode:d},st)));j=[...j];const it=tt.current.map(getChildKey),et=_.map(getChildKey),rt=it.length;for(let st=0;st<rt;st++){const at=it[st];et.indexOf(at)===-1&&!_e.has(at)&&_e.set(at,void 0)}return d==="wait"&&_e.size&&(j=[]),_e.forEach((st,at)=>{if(et.indexOf(at)!==-1)return;const ot=$.get(at);if(!ot)return;const lt=it.indexOf(at);let pt=st;if(!pt){const ct=()=>{_e.delete(at);const ut=Array.from($.keys()).filter(mt=>!et.includes(mt));if(ut.forEach(mt=>$.delete(mt)),tt.current=_.filter(mt=>
48{const ft=getChildKey(mt);return ft===at||ut.includes(ft)}),!_e.size){if(b.current===!1)return;g(),a&&a()}};pt=reactExports.createElement(PresenceChild,{key:getChildKey(ot),isPresent:!1,onExitComplete:ct,custom:i,presenceAffectsLayout:h,mode:d},ot),_e.set(at,pt)}j.splice(lt,0,pt)}),j=j.map(st=>{const at=st.key;return _e.has(at)?st:reactExports.createElement(PresenceChild,{key:getChildKey(st),isPresent:!0,presenceAffectsLayout:h,mode:d},st)}),reactExports.createElement(reactExports.Fragment,null,_e.size?j:j.map(st=>reactExports.cloneElement(st)))},MilleniumFalconContext=reactExports.createContext(null);var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),_excluded=["attr","size","title"];function _objectWithoutProperties(e,i){if(e==null)return{};var s=_objectWithoutPropertiesLoose(e,i),a,o;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(e);for(o=0;o<h.length;o++)a=h[o],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}function _objectWithoutPropertiesLoose(e,i){if(e==null)return{};var s={},a=Object.keys(e),o,h;for(h=0;h<a.length;h++)o=a[h],!(i.indexOf(o)>=0)&&(s[o]=e[o]);return s}function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},_extends.apply(this,arguments)}function ownKeys(e,i){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),s.push.apply(s,a)}return s}function _objectSpread(e){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(s),!0).forEach(function(a){_defineProperty(e,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(s,a))})}return e}function _defineProperty(e,i,s){return i=_toPropertyKey(i),i in e?Object.defineProperty(e,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[i]=s,e}function _toPropertyKey(e){var i=_toPrimitive(e,"string");return typeof i=="symbol"?i:String(i)}function _toPrimitive(e,i){if(typeof e!="object"||e===null)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var a=s.call(e,i||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(e)}function Tree2Element(e){return e&&e.map((i,s)=>React.createElement(i.tag,_objectSpread({key:s},i.attr),Tree2Element(i.child)))}function GenIcon(e){return i=>React.createElement(IconBase,_extends({attr:_objectSpread({},e.attr)},i),Tree2Element(e.child))}function IconBase(e){var i=s=>{var{attr:a,size:o,title:h}=e,d=_objectWithoutProperties(e,_excluded),g=o||s.size||"1em",b;return s.className&&(b=s.className),e.className&&(b=(b?b+" ":"")+e.className),React.createElement("svg",_extends({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,a,d,{className:b,style:_objectSpread(_objectSpread({color:e.color||s.color},s.style),e.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),h&&React.createElement("title",null,h),e.children)};return IconContext!==void 0?React.createElement(IconContext.Consumer,null,s=>i(s)):i(DefaultContext)}function MdRocketLaunch(e){return GenIcon({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55l1.33.26zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83L11.17 17zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81l-.26-1.33zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12A2.996 2.996 0 0 1 9 18zm4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2z"},child:[]}]})(e)}function MdOutlineBuildCircle(e){return GenIcon({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"g",attr:{fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]},{tag:"path",attr:{d:"M13.49 11.38c.43-1.22.17-2.64-.81-3.62a3.468 3.468 0 0 0-4.1-.59l2.35 2.35-1.41 1.41-2.35-2.35c-.71 1.32-.52 2.99.59 4.1.98.98 2.4 1.24 3.62.81l3.41 3.41c.2.2.51.2.71 0l1.4-1.4c.2-.2.2-.51 0-.71l-3.41-3.41z"},child:[]}]}]})(e)}function MilleniumFalconIntro({next:e}){return jsxRuntimeExports.jsxs("div",{className:"millenium-falcon--page",children:[jsxRuntimeExports.jsx("h2",{className:"millenium-falcon--page-title",children:"Welcome to the Millenium Falcon"}),jsxRuntimeExports.jsxs("button",{onClick:e,className:"millenium-falcon--page-button",children:[jsxRuntimeExports.jsx(MdOutlineBuildCircle,{className:"millenium-falcon--page-icon"}),jsxRuntimeExports.jsx("span",{children:"Build your team"})]}),jsxRuntimeExports.jsx("p",{children:"To protect the galaxy"})]})}/*! *****************************************************************************
49Copyright (c) Microsoft Corporation.
50
51Permission to use, copy, modify, and/or distribute this software for any
52purpose with or without fee is hereby granted.
53
54THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
55REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
56AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
57INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
58LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
59OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60PERFORMANCE OF THIS SOFTWARE.
61***************************************************************************** */var extendStatics=function(e,i){return(extendStatics=Object.
61setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(s[o]=a[o])})(e,i)};function __extends(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=e}extendStatics(e,i),e.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}var __assign=function(){return(__assign=Object.assign||function(e){for(var i,s=1,a=arguments.length;s<a;s++)for(var o in i=arguments[s])Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);return e}).apply(this,arguments)};function __awaiter(e,i,s,a){return new(s||(s=Promise))(function(o,h){function d(_){try{b(a.next(_))}catch(j){h(j)}}function g(_){try{b(a.throw(_))}catch(j){h(j)}}function b(_){var j;_.done?o(_.value):(j=_.value,j instanceof s?j:new s(function(_e){_e(j)})).then(d,g)}b((a=a.apply(e,i||[])).next())})}function __generator(e,i){var s,a,o,h,d={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(b){return function(_){return function(j){if(s)throw new TypeError("Generator is already executing.");for(;d;)try{if(s=1,a&&(o=2&j[0]?a.return:j[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,j[1])).done)return o;switch(a=0,o&&(j=[2&j[0],o.value]),j[0]){case 0:case 1:o=j;break;case 4:return d.label++,{value:j[1],done:!1};case 5:d.label++,a=j[1],j=[0];continue;case 7:j=d.ops.pop(),d.trys.pop();continue;default:if(o=d.trys,!((o=o.length>0&&o[o.length-1])||j[0]!==6&&j[0]!==2)){d=0;continue}if(j[0]===3&&(!o||j[1]>o[0]&&j[1]<o[3])){d.label=j[1];break}if(j[0]===6&&d.label<o[1]){d.label=o[1],o=j;break}if(o&&d.label<o[2]){d.label=o[2],d.ops.push(j);break}o[2]&&d.ops.pop(),d.trys.pop();continue}j=i.call(e,d)}catch(_e){j=[6,_e],a=0}finally{s=o=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([b,_])}}}function createCommonjsModule(e,i){return e(i={exports:{}},i.exports),i.exports}var lottie=createCommonjsModule(function(module,exports){typeof navigator<"u"&&function(e,i){module.exports=i()}(0,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,i){var s,a,o=e.length;for(s=0;s<o;s+=1)for(var h in a=e[s].prototype)Object.prototype.hasOwnProperty.call(a,h)&&(i.prototype[h]=a[h])}function getDescriptor(e,i){return Object.getOwnPropertyDescriptor(e,i)}function createProxyFunction(e){function i(){}return i.prototype=e,i}var audioControllerFactory=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].pause()},resume:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].resume()},setRate:function(i){var s,a=this.audios.length;for(s=0;s<a;s+=1)this.audios[s].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,s){var a,o=0,h=[];switch(i){case"int16":case"uint8c":a=1;break;default:a=1.1}for(o=0;o<s;o+=1)h.push(a);return h}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(i,s){return i==="float32"?new Float32Array(s):i==="int16"?new Int16Array(s):i==="uint8c"?new Uint8ClampedArray(s):e(i,s)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e,i=["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"],s=i.length;for(e=0;e<s;e+=1)BMMath[i[e]]=Math[i[e]]})(),BMMath.random=Math.random,BMMath.abs=function(e){if(_typeof$6(e)==="object"&&e.length){var i,s=createSizedArray(e.length),a=e.length;for(i=0;i<a;i+=1)s[i]=Math.abs(e[i]);return s}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,i,s,a){this.type=e,this.currentTime=i,this.totalTime=s,this.direction=a<0?-1:1}function BMCompleteEvent(e,i){this.type=e,this.direction=i<0?-1:1}function BMCompleteLoopEvent(e,i,s,a){this.type=e,this.currentLoop=s,this.totalLoops=i,this.direction=a<0?-1:1}function BMSegmentStartEvent(e,i,s){this.type=e,this.firstFrame=i,this.totalFrames=s}function BMDestroyEvent(e,i){this.type=e,this.target=i}function BMRenderFrameErrorEvent(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,i,s){var a,o,h,d,g,b,_,j;switch(b=s*(1-i),_=s*(1-(g=6*e-(d=Math.floor(6*e)))*i),j=s*(1-(1-g)*i),d%6){case 0:a=s,o=j,h=b;break;case 1:a=_,o=s,h=b;break;case 2:a=b,o=s,h=j;break;case 3:a=b,o=_,h=s;break;case 4:a=j,o=b,h=s;break;case 5:a=s,o=b,h=_}return[a,o,h]}function RGBtoHSV(e,i,s){var a,o=Math.max(e,i,s),h=Math.min(e,i,s),d=o-h,g=o===0?0:d/o,b=o/255;switch(o){case h:a=0;break;case e:a=i-s+d*(i<s?6:0),a/=6*d;break;case i:a=s-e+2*d,a/=6*d;break;case s:a=e-i+4*d,a/=6*d}return[a,g,b]}function addSaturationToRGB(e,i){var s=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return s[1]+=i,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),HSVtoRGB(s[0],s[1],s[2])}function addBrightnessToRGB(e,i){var s=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return s[2]+=i,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),HSVtoRGB(s[0],s[1],s[2])}function addHueToRGB(e,i){var s=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return s[0]+=i/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),HSVtoRGB(s[0],s[1],s[2])}var rgbToHex=function(){var e,i,s=[];for(e=0;e<256;e+=1)i=e.toString(16),s[e]=i.length===1?"0"+i:i;return function(a,o,h){return a<0&&(a=0),o<0&&(o=0),h<0&&(h=0),"#"+s[a]+s[o]+s[h]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return(_typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}var dataManager=function(){var e,i,s=1,a=[],o={onmessage:function(){},postMessage:function(b){e({data:b})}},h={postMessage:function(b){o.onmessage({data:b})}};function d(){i||((i=function(b){if(window.Worker&&window.Blob&&getWebWorker()){var _=new Blob(["var _workerSelf = self;
61 self.onmessage = ",b.toString()],{type:"text/javascript"}),j=URL.createObjectURL(_);return new Worker(j)}return e=b,o}(function(b){if(h.dataManager||(h.dataManager=function(){function j(ct,ut){var mt,ft,dt,St,yt,xt,Pt=ct.length;for(ft=0;ft<Pt;ft+=1)if("ks"in(mt=ct[ft])&&!mt.completed){if(mt.completed=!0,mt.hasMask){var Ct=mt.masksProperties;for(St=Ct.length,dt=0;dt<St;dt+=1)if(Ct[dt].pt.k.i)$(Ct[dt].pt.k);else for(xt=Ct[dt].pt.k.length,yt=0;yt<xt;yt+=1)Ct[dt].pt.k[yt].s&&$(Ct[dt].pt.k[yt].s[0]),Ct[dt].pt.k[yt].e&&$(Ct[dt].pt.k[yt].e[0])}mt.ty===0?(mt.layers=_e(mt.refId,ut),j(mt.layers,ut)):mt.ty===4?tt(mt.shapes):mt.ty===5&&lt(mt)}}function _e(ct,ut){var mt=function(ft,dt){for(var St=0,yt=dt.length;St<yt;){if(dt[St].id===ft)return dt[St];St+=1}return null}(ct,ut);return mt?mt.layers.__used?JSON.parse(JSON.stringify(mt.layers)):(mt.layers.__used=!0,mt.layers):null}function tt(ct){var ut,mt,ft;for(ut=ct.length-1;ut>=0;ut-=1)if(ct[ut].ty==="sh")if(ct[ut].ks.k.i)$(ct[ut].ks.k);else for(ft=ct[ut].ks.k.length,mt=0;mt<ft;mt+=1)ct[ut].ks.k[mt].s&&$(ct[ut].ks.k[mt].s[0]),ct[ut].ks.k[mt].e&&$(ct[ut].ks.k[mt].e[0]);else ct[ut].ty==="gr"&&tt(ct[ut].it)}function $(ct){var ut,mt=ct.i.length;for(ut=0;ut<mt;ut+=1)ct.i[ut][0]+=ct.v[ut][0],ct.i[ut][1]+=ct.v[ut][1],ct.o[ut][0]+=ct.v[ut][0],ct.o[ut][1]+=ct.v[ut][1]}function nt(ct,ut){var mt=ut?ut.split("."):[100,100,100];return ct[0]>mt[0]||!(mt[0]>ct[0])&&(ct[1]>mt[1]||!(mt[1]>ct[1])&&(ct[2]>mt[2]||!(mt[2]>ct[2])&&null))}var it,et=function(){var ct=[4,4,14];function ut(mt){var ft,dt,St,yt=mt.length;for(ft=0;ft<yt;ft+=1)mt[ft].ty===5&&(dt=mt[ft],St=void 0,St=dt.t.d,dt.t.d={k:[{s:St,t:0}]})}return function(mt){if(nt(ct,mt.v)&&(ut(mt.layers),mt.assets)){var ft,dt=mt.assets.length;for(ft=0;ft<dt;ft+=1)mt.assets[ft].layers&&ut(mt.assets[ft].layers)}}}(),rt=(it=[4,7,99],function(ct){if(ct.chars&&!nt(it,ct.v)){var ut,mt=ct.chars.length;for(ut=0;ut<mt;ut+=1){var ft=ct.chars[ut];ft.data&&ft.data.shapes&&(tt(ft.data.shapes),ft.data.ip=0,ft.data.op=99999,ft.data.st=0,ft.data.sr=1,ft.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}},ct.chars[ut].t||(ft.data.shapes.push({ty:"no"}),ft.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"})))}}}),st=function(){var ct=[5,7,15];function ut(mt){var ft,dt,St,yt=mt.length;for(ft=0;ft<yt;ft+=1)mt[ft].ty===5&&(dt=mt[ft],St=void 0,typeof(St=dt.t.p).a=="number"&&(St.a={a:0,k:St.a}),typeof St.p=="number"&&(St.p={a:0,k:St.p}),typeof St.r=="number"&&(St.r={a:0,k:St.r}))}return function(mt){if(nt(ct,mt.v)&&(ut(mt.layers),mt.assets)){var ft,dt=mt.assets.length;for(ft=0;ft<dt;ft+=1)mt.assets[ft].layers&&ut(mt.assets[ft].layers)}}}(),at=function(){var ct=[4,1,9];function ut(ft){var dt,St,yt,xt=ft.length;for(dt=0;dt<xt;dt+=1)if(ft[dt].ty==="gr")ut(ft[dt].it);else if(ft[dt].ty==="fl"||ft[dt].ty==="st")if(ft[dt].c.k&&ft[dt].c.k[0].i)for(yt=ft[dt].c.k.length,St=0;St<yt;St+=1)ft[dt].c.k[St].s&&(ft[dt].c.k[St].s[0]/=255,ft[dt].c.k[St].s[1]/=255,ft[dt].c.k[St].s[2]/=255,ft[dt].c.k[St].s[3]/=255),ft[dt].c.k[St].e&&(ft[dt].c.k[St].e[0]/=255,ft[dt].c.k[St].e[1]/=255,ft[dt].c.k[St].e[2]/=255,ft[dt].c.k[St].e[3]/=255);else ft[dt].c.k[0]/=255,ft[dt].c.k[1]/=255,ft[dt].c.k[2]/=255,ft[dt].c.k[3]/=255}function mt(ft){var dt,St=ft.length;for(dt=0;dt<St;dt+=1)ft[dt].ty===4&&ut(ft[dt].shapes)}return function(ft){if(nt(ct,ft.v)&&(mt(ft.layers),ft.assets)){var dt,St=ft.assets.length;for(dt=0;dt<St;dt+=1)ft.assets[dt].layers&&mt(ft.assets[dt].layers)}}}(),ot=function(){var ct=[4,4,18];function ut(ft){var dt,St,yt;for(dt=ft.length-1;dt>=0;dt-=1)if(ft[dt].ty==="sh")if(ft[dt].ks.k.i)ft[dt].ks.k.c=ft[dt].closed;else for(yt=ft[dt].ks.k.length,St=0;St<yt;St+=1)ft[dt].ks.k[St].s&&(ft[dt].ks.k[St].s[0].c=ft[dt].closed),ft[dt].ks.k[St].e&&(ft[dt].ks.k[St].e[0].c=ft[dt].closed);else ft[dt].ty==="gr"&&ut(ft[dt].it)}function mt(ft){var dt,St,yt,xt,Pt,Ct,Et=ft.length;for(St=0;St<Et;St+=1){if((dt=ft[St]).hasMask){var ht=dt.masksProperties;for(xt=ht.length,yt=0;yt<xt;yt+=1)if(ht[yt].pt.k.i)ht[yt].pt.k.c=ht[yt].cl;else for(Ct=ht[yt].pt.k.length,Pt=0;Pt<Ct;Pt+=1)ht[yt].pt.k[Pt].s&&(ht[yt].pt.k[Pt].s[0].c=ht[yt].cl),ht[yt].pt.k[Pt].e&&(ht[yt].pt.k[Pt].e[0].c=ht[yt].cl)}dt.ty===4&&ut(dt.shapes)}}
61return function(ft){if(nt(ct,ft.v)&&(mt(ft.layers),ft.assets)){var dt,St=ft.assets.length;for(dt=0;dt<St;dt+=1)ft.assets[dt].layers&&mt(ft.assets[dt].layers)}}}();function lt(ct){ct.t.a.length===0&&ct.t.p}var pt={completeData:function(ct){ct.__complete||(at(ct),et(ct),rt(ct),st(ct),ot(ct),j(ct.layers,ct.assets),function(ut,mt){if(ut){var ft=0,dt=ut.length;for(ft=0;ft<dt;ft+=1)ut[ft].t===1&&(ut[ft].data.layers=_e(ut[ft].data.refId,mt),j(ut[ft].data.layers,mt))}}(ct.chars,ct.assets),ct.__complete=!0)}};return pt.checkColors=at,pt.checkChars=rt,pt.checkPathProperties=st,pt.checkShapes=ot,pt.completeLayers=j,pt}()),h.assetLoader||(h.assetLoader=function(){function j(_e){var tt=_e.getResponseHeader("content-type");return tt&&_e.responseType==="json"&&tt.indexOf("json")!==-1||_e.response&&_typeof$5(_e.response)==="object"?_e.response:_e.response&&typeof _e.response=="string"?JSON.parse(_e.response):_e.responseText?JSON.parse(_e.responseText):null}return{load:function(_e,tt,$,nt){var it,et=new XMLHttpRequest;try{et.responseType="json"}catch{}et.onreadystatechange=function(){if(et.readyState===4)if(et.status===200)it=j(et),$(it);else try{it=j(et),$(it)}catch(rt){nt&&nt(rt)}};try{et.open(["G","E","T"].join(""),_e,!0)}catch{et.open(["G","E","T"].join(""),tt+"/"+_e,!0)}et.send()}}}()),b.data.type==="loadAnimation")h.assetLoader.load(b.data.path,b.data.fullPath,function(j){h.dataManager.completeData(j),h.postMessage({id:b.data.id,payload:j,status:"success"})},function(){h.postMessage({id:b.data.id,status:"error"})});else if(b.data.type==="complete"){var _=b.data.animation;h.dataManager.completeData(_),h.postMessage({id:b.data.id,payload:_,status:"success"})}else b.data.type==="loadData"&&h.assetLoader.load(b.data.path,b.data.fullPath,function(j){h.postMessage({id:b.data.id,payload:j,status:"success"})},function(){h.postMessage({id:b.data.id,status:"error"})})})).onmessage=function(b){var _=b.data,j=_.id,_e=a[j];a[j]=null,_.status==="success"?_e.onComplete(_.payload):_e.onError&&_e.onError()})}function g(b,_){var j="processId_"+(s+=1);return a[j]={onComplete:b,onError:_},j}return{loadAnimation:function(b,_,j){d();var _e=g(_,j);i.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:_e})},loadData:function(b,_,j){d();var _e=g(_,j);i.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:_e})},completeAnimation:function(b,_,j){d();var _e=g(_,j);i.postMessage({type:"complete",animation:b,id:_e})}}}(),ImagePreloader=function(){var e=function(){var g=createTag("canvas");g.width=1,g.height=1;var b=g.getContext("2d");return b.fillStyle="rgba(0,0,0,0)",b.fillRect(0,0,1,1),g}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(g,b,_){var j="";if(g.e)j=g.p;else if(b){var _e=g.p;_e.indexOf("images/")!==-1&&(_e=_e.split("/")[1]),j=b+_e}else j=_,j+=g.u?g.u:"",j+=g.p;return j}function o(g){var b=0,_=setInterval((function(){(g.getBBox().width||b>500)&&(this._imageLoaded(),clearInterval(_)),b+=1}).bind(this),50)}function h(g){var b={assetData:g},_=a(g,this.assetsPath,this.path);return dataManager.loadData(_,(function(j){b.img=j,this._footageLoaded()}).bind(this),(function(){b.img={},this._footageLoaded()}).bind(this)),b}function d(){this._imageLoaded=i.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=h.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return d.prototype={loadAssets:function(g,b){var _;this.imagesLoadedCb=b;var j=g.length;for(_=0;_<j;_+=1)g[_].layers||(g[_].t&&g[_].t!=="seq"?g[_].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(g[_]))):(this.totalImages+=1,this.images.push(this._createImageData(g[_]))))},setAssetsPath:function(g){this.assetsPath=g||""},setPath:function(g){this.path=g||""},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(g){for(var b=0,_=this.images.length;b<_;){if(this.images[b].assetData===g)return this.images[b].img;b+=1}return null},createImgData:function(g){var b=a(g,this.assetsPath,this.path),_=createTag("img");_.crossOrigin="anonymous",_.addEventListener("load",this._imageLoaded,!1),_.addEventListener("error",(function(){j.img=e,this._imageLoaded()}).bind(this),!1),_.src=b;var j={img:_,assetData:g};return j},createImageData:function(g){var b=a(g,this.assetsPath,this.path),_=createNS("image");isSafari?this.testImageLoaded(_):_.addEventListener("load",this._imageLoaded,!1),_.addEventListener("error",(function(){j.img=e,this._imageLoaded()}).bind(this),!1),_.setAttributeNS("http://www.w3.org/1999/xlink","href",b),this._elementHelper.append?this._elementHelper.append(_):this._elementHelper.appendChild(_);var j={img:_,assetData:g};return j},imageLoaded:i,footageLoaded:s,setCacheType:function(g,b){g==="svg"?(this._elementHelper=b,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},d}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,i){if(this._cbs[e])for(var s=this._cbs[e],a=0;a<s.length;a+=1)s[a](i)},addEventListener:function(e,i){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(i),(function(){this.removeEventListener(e,i)}).bind(this)},removeEventListener:function(e,i){if(i){if(this._cbs[e]){for(var s=0,a=this._cbs[e].length;s<a;)this._cbs[e][s]===i&&(this._cbs[e].splice(s,1),s-=1,a-=1),s+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(i){for(var s,a=i.split(`\r
62`),o={},h=0,d=0;d<a.length;d+=1)(s=a[d].split(":")).length===2&&(o[s[0]]=s[1].trim(),h+=1);if(h===0)throw new Error;return o}return function(i){for(var s=[],a=0;a<i.length;a+=1){var o=i[a],h={time:o.tm,duration:o.dr};try{h.payload=JSON.parse(i[a].cm)}catch{try{h.payload=e(i[a].cm)}catch{h.payload={name:i[a].cm}}}s.push(h)}return s}}(),ProjectInterface=function(){function e(i){this.compositions.push(i)}return function(){function i(s){for(var a=0,o=this.compositions.length;a<o;){if(this.compositions[a].data&&this.compositions[a].data.nm===s)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),renderers={},registerRenderer=function(e,i){renderers[e]=i};function getRenderer(e){return renderers[e]}function _typeof$4(e){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=ne
vendor: 2,481 bytes, line 62
62w BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var s=getRenderer(i);this.renderer=new s(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,i){i&&_typeof$4(i)!=="object"&&(i=JSON.parse(i));var s={wrapper:e,animationData:i},a=e.attributes;s.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",s.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:"canvas";var o=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";o==="false"?s.loop=!1:o==="true"?s.loop=!0:o!==""&&(s.loop=parseInt(o,10));
62var h=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:!a.getNamedItem("bm-autoplay")||a.getNamedItem("bm-autoplay").value;s.autoplay=h!=="false",s.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"",(a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"")==="false"&&(s.prerender=!1),this.setParams(s)},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i,s,a=this.animationData.layers,o=a.length,h=e.layers,d=h.length;for(s=0;s<d;s+=1)for(i=0;i<o;){if(a[i].id===h[s].id){a[i]=h[s];break}i+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(o=e.assets.length,i=0;i<o;i+=1)this.animationData.assets.push(e.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var i=getExpressionsPlugin();i&&i.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var i=e.shift();this.timeCompleted=i.time*this.frameRate;var s=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(s,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},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 e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,i){var s=typeof e=="number"?e:void 0,a=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(s,a)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}
vendor: 4,084 bytes, line 62
62catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var i,s=0;s<this.markers.length;s+=1)if((i=this.markers[s]).payload&&i.payload.name===e)return i;return null},AnimationItem.prototype.goToAndStop=function(e,i,s){if(!s||this.name===s){var a=Number(e);if(isNaN(a)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,i,s){if(!s||this.name===s){var a=Number(e);if(isNaN(a)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(a,i,s);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(this.isPaused!==!0&&this.isLoaded!==!1){var i=this.currentRawFrame+e*this.frameModifier,s=!1;i>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(s=!0,i=this.totalFrames-1):i<0?this.checkSegments(i%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(s=!0,i=0):(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(i),s&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,i){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?s=e:this.currentRawFrame+this.firstFrame>i&&(s=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},AnimationItem.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),_typeof$4(e[0])==="object"){var s,a=e.length;for(s=0;s<a;s+=1)this.segments.push(e[s])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)}
vendor: 4,120 bytes, line 62
62,AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var s=e.p;s.indexOf("images/")!==-1&&(s=s.split("/")[1]),i=this.assetsPath+s}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},AnimationItem.prototype.getAssetData=function(e){for(var i=0,s=this.assets.length;i<s;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,i,s){try{this.renderer.getElementByPath(e).updateDocumentData(i,s)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var i=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},AnimationItem.prototype.triggerConfigError=function(e){var i=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var animationManager=function(){var e={},i=[],s=0,a=0,o=0,h=!0,d=!1;function g(it){for(var et=0,rt=it.target;et<a;)i[et].animation===rt&&(i.splice(et,1),et-=1,a-=1,rt.isPaused||j()),et+=1}function b(it,et){if(!it)return null;for(var rt=0;rt<a;){if(i[rt].elem===it&&i[rt].elem!==null)return i[rt].animation;rt+=1}var st=new AnimationItem;return _e(st,it),st.setData(it,et),st}function _(){o+=1,nt()}function j(){o-=1}function _e(it,et){it.addEventListener("destroy",g),it.addEventListener("_active",_),it.addEventListener("_idle",j),i.push({elem:et,animation:it}),a+=1}function tt(it){var et,rt=it-s;for(et=0;et<a;et+=1)i[et].animation.advanceTime(rt);
vendor: 4,930 bytes, line 62
62s=it,o&&!d?window.requestAnimationFrame(tt):h=!0}function $(it){s=it,window.requestAnimationFrame(tt)}function nt(){!d&&o&&h&&(window.requestAnimationFrame($),h=!1)}return e.registerAnimation=b,e.loadAnimation=function(it){var et=new AnimationItem;return _e(et,null),et.setParams(it),et},e.setSpeed=function(it,et){var rt;for(rt=0;rt<a;rt+=1)i[rt].animation.setSpeed(it,et)},e.setDirection=function(it,et){var rt;for(rt=0;rt<a;rt+=1)i[rt].animation.setDirection(it,et)},e.play=function(it){var et;for(et=0;et<a;et+=1)i[et].animation.play(it)},e.pause=function(it){var et;for(et=0;et<a;et+=1)i[et].animation.pause(it)},e.stop=function(it){var et;for(et=0;et<a;et+=1)i[et].animation.stop(it)},e.togglePause=function(it){var et;for(et=0;et<a;et+=1)i[et].animation.togglePause(it)},e.searchAnimations=function(it,et,rt){var st,at=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ot=at.length;for(st=0;st<ot;st+=1)rt&&at[st].setAttribute("data-bm-type",rt),b(at[st],it);if(et&&ot===0){rt||(rt="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var pt=createTag("div");pt.style.width="100%",pt.style.height="100%",pt.setAttribute("data-bm-type",rt),lt.appendChild(pt),b(pt,it)}},e.resize=function(){var it;for(it=0;it<a;it+=1)i[it].animation.resize()},e.goToAndStop=function(it,et,rt){var st;for(st=0;st<a;st+=1)i[st].animation.goToAndStop(it,et,rt)},e.destroy=function(it){var et;for(et=a-1;et>=0;et-=1)i[et].animation.destroy(it)},e.freeze=function(){d=!0},e.unfreeze=function(){d=!1,nt()},e.setVolume=function(it,et){var rt;for(rt=0;rt<a;rt+=1)i[rt].animation.setVolume(it,et)},e.mute=function(it){var et;for(et=0;et<a;et+=1)i[et].animation.mute(it)},e.unmute=function(it){var et;for(et=0;et<a;et+=1)i[et].animation.unmute(it)},e.getRegisteredAnimations=function(){var it,et=i.length,rt=[];for(it=0;it<et;it+=1)rt.push(i[it].animation);return rt},e}(),BezierFactory=function(){var e={getBezierEasing:function(_,j,_e,tt,$){var nt=$||("bez_"+_+"_"+j+"_"+_e+"_"+tt).replace(/\./g,"p");if(i[nt])return i[nt];var it=new b([_,j,_e,tt]);return i[nt]=it,it}},i={},s=typeof Float32Array=="function";function a(_,j){return 1-3*j+3*_}function o(_,j){return 3*j-6*_}function h(_){return 3*_}function d(_,j,_e){return((a(j,_e)*_+o(j,_e))*_+h(j))*_}function g(_,j,_e){return 3*a(j,_e)*_*_+2*o(j,_e)*_+h(j)}function b(_){this._p=_,this._mSampleValues=s?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return b.prototype={get:function(_){var j=this._p[0],_e=this._p[1],tt=this._p[2],$=this._p[3];return this._precomputed||this._precompute(),j===_e&&tt===$?_:_===0?0:_===1?1:d(this._getTForX(_),_e,$)},_precompute:function(){var _=this._p[0],j=this._p[1],_e=this._p[2],tt=this._p[3];this._precomputed=!0,_===j&&_e===tt||this._calcSampleValues()},_calcSampleValues:function(){for(var _=this._p[0],j=this._p[2],_e=0;_e<11;++_e)this._mSampleValues[_e]=d(.1*_e,_,j)},_getTForX:function(_){for(var j=this._p[0],_e=this._p[2],tt=this._mSampleValues,$=0,nt=1;nt!==10&&tt[nt]<=_;++nt)$+=.1;var it=$+.1*((_-tt[--nt])/(tt[nt+1]-tt[nt])),et=g(it,j,_e);return et>=.001?function(rt,st,at,ot){for(var lt=0;lt<4;++lt){var pt=g(st,at,ot);if(pt===0)return st;st-=(d(st,at,ot)-rt)/pt}return st}(_,it,j,_e):et===0?it:function(rt,st,at,ot,lt){var pt,ct,ut=0;do(pt=d(ct=st+(at-st)/2,ot,lt)-rt)>0?at=ct:st=ct;while(Math.abs(pt)>1e-7&&++ut<10);return ct}(_,$,$+.1,j,_e)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,i,s){var a=0,o=e,h=createSizedArray(o);return{newElement:function(){return a?h[a-=1]:i()},release:function(d){a===o&&(h=pooling.double(h),o*=2),s&&s(d),h[a]=d,a+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var i,s=e.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(e.lengths[i]);e.lengths.length=0});function bezFunction(){var e=Math;function i(_,j,_e,tt,$,nt){var it=_*tt+j*$+_e*nt-$*tt-nt*_-_e*j;return it>-.001&&it<.001}var s=function(_,j,_e,tt){var $,nt,it,et,rt,st,at=getDefaultCurveSegments(),ot=0,lt=[],pt=[],ct=bezierLengthPool.newElement();for(it=_e.length,$=0;$<at;$+=1){for(rt=$/(at-1),st=0,nt=0;nt<it;nt+=1)et=bmPow(1-rt,3)*_[nt]+3*bmPow(1-rt,2)*rt*_e[nt]+3*(1-rt)*bmPow(rt,2)*tt[nt]+bmPow(rt,3)*j[nt],lt[nt]=et,pt[nt]!==null&&(st+=bmPow(lt[nt]-pt[nt],2)),pt[nt]=lt[nt];st&&(ot+=st=bmSqrt(st)),ct.percents[$]=rt,ct.lengths[$]=ot}return ct.addedLength=ot,ct};function a(_){this.segmentLength=0,this.points=new Array(_)}function o(_,j){this.partialLength=_,this.point=j}var h,d=(h={},function(_,j,_e,tt){var $=(_[0]+"_"+_[1]+"_"+j[0]+"_"+j[1]+"_"+_e[0]+"_"+_e[1]+"_"+tt[0]+"_"+tt[1]).replace(/\./g,"p");
vendor: 4,207 bytes, line 62
62if(!h[$]){var nt,it,et,rt,st,at,ot,lt=getDefaultCurveSegments(),pt=0,ct=null;_.length===2&&(_[0]!==j[0]||_[1]!==j[1])&&i(_[0],_[1],j[0],j[1],_[0]+_e[0],_[1]+_e[1])&&i(_[0],_[1],j[0],j[1],j[0]+tt[0],j[1]+tt[1])&&(lt=2);var ut=new a(lt);for(et=_e.length,nt=0;nt<lt;nt+=1){for(ot=createSizedArray(et),st=nt/(lt-1),at=0,it=0;it<et;it+=1)rt=bmPow(1-st,3)*_[it]+3*bmPow(1-st,2)*st*(_[it]+_e[it])+3*(1-st)*bmPow(st,2)*(j[it]+tt[it])+bmPow(st,3)*j[it],ot[it]=rt,ct!==null&&(at+=bmPow(ot[it]-ct[it],2));pt+=at=bmSqrt(at),ut.points[nt]=new o(at,ot),ct=ot}ut.segmentLength=pt,h[$]=ut}return h[$]});function g(_,j){var _e=j.percents,tt=j.lengths,$=_e.length,nt=bmFloor(($-1)*_),it=_*j.addedLength,et=0;if(nt===$-1||nt===0||it===tt[nt])return _e[nt];for(var rt=tt[nt]>it?-1:1,st=!0;st;)if(tt[nt]<=it&&tt[nt+1]>it?(et=(it-tt[nt])/(tt[nt+1]-tt[nt]),st=!1):nt+=rt,nt<0||nt>=$-1){if(nt===$-1)return _e[nt];st=!1}return _e[nt]+(_e[nt+1]-_e[nt])*et}var b=createTypedArray("float32",8);return{getSegmentsLength:function(_){var j,_e=segmentsLengthPool.newElement(),tt=_.c,$=_.v,nt=_.o,it=_.i,et=_._length,rt=_e.lengths,st=0;for(j=0;j<et-1;j+=1)rt[j]=s($[j],$[j+1],nt[j],it[j+1]),st+=rt[j].addedLength;return tt&&et&&(rt[j]=s($[j],$[0],nt[j],it[0]),st+=rt[j].addedLength),_e.totalLength=st,_e},getNewSegment:function(_,j,_e,tt,$,nt,it){$<0?$=0:$>1&&($=1);var et,rt=g($,it),st=g(nt=nt>1?1:nt,it),at=_.length,ot=1-rt,lt=1-st,pt=ot*ot*ot,ct=rt*ot*ot*3,ut=rt*rt*ot*3,mt=rt*rt*rt,ft=ot*ot*lt,dt=rt*ot*lt+ot*rt*lt+ot*ot*st,St=rt*rt*lt+ot*rt*st+rt*ot*st,yt=rt*rt*st,xt=ot*lt*lt,Pt=rt*lt*lt+ot*st*lt+ot*lt*st,Ct=rt*st*lt+ot*st*st+rt*lt*st,Et=rt*st*st,ht=lt*lt*lt,vt=st*lt*lt+lt*st*lt+lt*lt*st,bt=st*st*lt+lt*st*st+st*lt*st,wt=st*st*st;for(et=0;et<at;et+=1)b[4*et]=e.round(1e3*(pt*_[et]+ct*_e[et]+ut*tt[et]+mt*j[et]))/1e3,b[4*et+1]=e.round(1e3*(ft*_[et]+dt*_e[et]+St*tt[et]+yt*j[et]))/1e3,b[4*et+2]=e.round(1e3*(xt*_[et]+Pt*_e[et]+Ct*tt[et]+Et*j[et]))/1e3,b[4*et+3]=e.round(1e3*(ht*_[et]+vt*_e[et]+bt*tt[et]+wt*j[et]))/1e3;return b},getPointInSegment:function(_,j,_e,tt,$,nt){var it=g($,nt),et=1-it;return[e.round(1e3*(et*et*et*_[0]+(it*et*et+et*it*et+et*et*it)*_e[0]+(it*it*et+et*it*it+it*et*it)*tt[0]+it*it*it*j[0]))/1e3,e.round(1e3*(et*et*et*_[1]+(it*et*et+et*it*et+et*et*it)*_e[1]+(it*it*et+et*it*it+it*et*it)*tt[1]+it*it*it*j[1]))/1e3]},buildBezierData:d,pointOnLine2D:i,pointOnLine3D:function(_,j,_e,tt,$,nt,it,et,rt){if(_e===0&&nt===0&&rt===0)return i(_,j,tt,$,it,et);var st,at=e.sqrt(e.pow(tt-_,2)+e.pow($-j,2)+e.pow(nt-_e,2)),ot=e.sqrt(e.pow(it-_,2)+e.pow(et-j,2)+e.pow(rt-_e,2)),lt=e.sqrt(e.pow(it-tt,2)+e.pow(et-$,2)+e.pow(rt-nt,2));return(st=at>ot?at>lt?at-ot-lt:lt-ot-at:lt>ot?lt-ot-at:ot-at-lt)>-1e-4&&st<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,i=Math.abs;function s(tt,$){var nt,it=this.offsetTime;this.propType==="multidimensional"&&(nt=createTypedArray("float32",this.pv.length));for(var et,rt,st,at,ot,lt,pt,ct,ut,mt=$.lastIndex,ft=mt,dt=this.keyframes.length-1,St=!0;St;){if(et=this.keyframes[ft],rt=this.keyframes[ft+1],ft===dt-1&&tt>=rt.t-it){et.h&&(et=rt),mt=0;break}if(rt.t-it>tt){mt=ft;break}ft<dt-1?ft+=1:(mt=0,St=!1)}st=this.keyframesMetadata[ft]||{};var yt,xt=rt.t-it,Pt=et.t-it;if(et.to){st.bezierData||(st.bezierData=bez.buildBezierData(et.s,rt.s||et.e,et.to,et.ti));var Ct=st.bezierData;if(tt>=xt||tt<Pt){var Et=tt>=xt?Ct.points.length-1:0;for(ot=Ct.points[Et].point.length,at=0;at<ot;at+=1)nt[at]=Ct.points[Et].point[at]}else{st.__fnct?ut=st.__fnct:(ut=BezierFactory.getBezierEasing(et.o.x,et.o.y,et.i.x,et.i.y,et.n).get,st.__fnct=ut),lt=ut((tt-Pt)/(xt-Pt));var ht,vt=Ct.segmentLength*lt,bt=$.lastFrame<tt&&$._lastKeyframeIndex===ft?$._lastAddedLength:0;for(ct=$.lastFrame<tt&&$._lastKeyframeIndex===ft?$._lastPoint:0,St=!0,pt=Ct.points.length;St;){if(bt+=Ct.points[ct].partialLength,vt===0||lt===0||ct===Ct.points.length-1){for(ot=Ct.points[ct].point.length,at=0;at<ot;at+=1)nt[at]=Ct.points[ct].point[at];break}if(vt>=bt&&vt<bt+Ct.points[ct+1].partialLength){for(ht=(vt-bt)/Ct.points[ct+1].partialLength,ot=Ct.points[ct].point.length,at=0;at<ot;at+=1)nt[at]=Ct.points[ct].point[at]+(Ct.points[ct+1].point[at]-Ct.points[ct].point[at])*ht;break}ct<pt-1?ct+=1:St=!1}
vendor: 7,075 bytes, line 62
62$._lastPoint=ct,$._lastAddedLength=bt-Ct.points[ct].partialLength,$._lastKeyframeIndex=ft}}else{var wt,_t,Rt,Dt,Lt;if(dt=et.s.length,yt=rt.s||et.e,this.sh&&et.h!==1)tt>=xt?(nt[0]=yt[0],nt[1]=yt[1],nt[2]=yt[2]):tt<=Pt?(nt[0]=et.s[0],nt[1]=et.s[1],nt[2]=et.s[2]):function(Ft,Mt){var It=Mt[0],Ot=Mt[1],Bt=Mt[2],jt=Mt[3],zt=Math.atan2(2*Ot*jt-2*It*Bt,1-2*Ot*Ot-2*Bt*Bt),Tt=Math.asin(2*It*Ot+2*Bt*jt),Wt=Math.atan2(2*It*jt-2*Ot*Bt,1-2*It*It-2*Bt*Bt);Ft[0]=zt/degToRads,Ft[1]=Tt/degToRads,Ft[2]=Wt/degToRads}(nt,function(Ft,Mt,It){var Ot,Bt,jt,zt,Tt,Wt=[],hn=Ft[0],pn=Ft[1],an=Ft[2],qt=Ft[3],Kt=Mt[0],Gt=Mt[1],Yt=Mt[2],Xt=Mt[3];return(Bt=hn*Kt+pn*Gt+an*Yt+qt*Xt)<0&&(Bt=-Bt,Kt=-Kt,Gt=-Gt,Yt=-Yt,Xt=-Xt),1-Bt>1e-6?(Ot=Math.acos(Bt),jt=Math.sin(Ot),zt=Math.sin((1-It)*Ot)/jt,Tt=Math.sin(It*Ot)/jt):(zt=1-It,Tt=It),Wt[0]=zt*hn+Tt*Kt,Wt[1]=zt*pn+Tt*Gt,Wt[2]=zt*an+Tt*Yt,Wt[3]=zt*qt+Tt*Xt,Wt}(a(et.s),a(yt),(tt-Pt)/(xt-Pt)));else for(ft=0;ft<dt;ft+=1)et.h!==1&&(tt>=xt?lt=1:tt<Pt?lt=0:(et.o.x.constructor===Array?(st.__fnct||(st.__fnct=[]),st.__fnct[ft]?ut=st.__fnct[ft]:(wt=et.o.x[ft]===void 0?et.o.x[0]:et.o.x[ft],_t=et.o.y[ft]===void 0?et.o.y[0]:et.o.y[ft],Rt=et.i.x[ft]===void 0?et.i.x[0]:et.i.x[ft],Dt=et.i.y[ft]===void 0?et.i.y[0]:et.i.y[ft],ut=BezierFactory.getBezierEasing(wt,_t,Rt,Dt).get,st.__fnct[ft]=ut)):st.__fnct?ut=st.__fnct:(wt=et.o.x,_t=et.o.y,Rt=et.i.x,Dt=et.i.y,ut=BezierFactory.getBezierEasing(wt,_t,Rt,Dt).get,et.keyframeMetadata=ut),lt=ut((tt-Pt)/(xt-Pt)))),yt=rt.s||et.e,Lt=et.h===1?et.s[ft]:et.s[ft]+(yt[ft]-et.s[ft])*lt,this.propType==="multidimensional"?nt[ft]=Lt:nt=Lt}return $.lastIndex=mt,nt}function a(tt){var $=tt[0]*degToRads,nt=tt[1]*degToRads,it=tt[2]*degToRads,et=Math.cos($/2),rt=Math.cos(nt/2),st=Math.cos(it/2),at=Math.sin($/2),ot=Math.sin(nt/2),lt=Math.sin(it/2);return[at*ot*st+et*rt*lt,at*rt*st+et*ot*lt,et*ot*st-at*rt*lt,et*rt*st-at*ot*lt]}function o(){var tt=this.comp.renderedFrame-this.offsetTime,$=this.keyframes[0].t-this.offsetTime,nt=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(tt===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=nt&&tt>=nt||this._caching.lastFrame<$&&tt<$))){this._caching.lastFrame>=tt&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var it=this.interpolateValue(tt,this._caching);this.pv=it}return this._caching.lastFrame=tt,this.pv}function h(tt){var $;if(this.propType==="unidimensional")$=tt*this.mult,i(this.v-$)>1e-5&&(this.v=$,this._mdf=!0);else for(var nt=0,it=this.v.length;nt<it;)$=tt[nt]*this.mult,i(this.v[nt]-$)>1e-5&&(this.v[nt]=$,this._mdf=!0),nt+=1}function d(){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 $=this.effectsSequence.length,nt=this.kf?this.pv:this.data.k;for(tt=0;tt<$;tt+=1)nt=this.effectsSequence[tt](nt);this.setVValue(nt),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function g(tt){this.effectsSequence.push(tt),this.container.addDynamicProperty(this)}function b(tt,$,nt,it){this.propType="unidimensional",this.mult=nt||1,this.data=$,this.v=nt?$.k*nt:$.k,this.pv=$.k,this._mdf=!1,this.elem=tt,this.container=it,this.comp=tt.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=d,this.setVValue=h,this.addEffect=g}function _(tt,$,nt,it){var et;this.propType="multidimensional",this.mult=nt||1,this.data=$,this._mdf=!1,this.elem=tt,this.container=it,this.comp=tt.comp,this.k=!1,this.kf=!1,this.frameId=-1;var rt=$.k.length;for(this.v=createTypedArray("float32",rt),this.pv=createTypedArray("float32",rt),this.vel=createTypedArray("float32",rt),et=0;et<rt;et+=1)this.v[et]=$.k[et]*this.mult,this.pv[et]=$.k[et];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=d,this.setVValue=h,this.addEffect=g}function j(tt,$,nt,it){this.propType="unidimensional",this.keyframes=$.k,this.keyframesMetadata=[],this.offsetTime=tt.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=$,this.mult=nt||1,this.elem=tt,this.container=it,this.comp=tt.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=d,this.setVValue=h,this.interpolateValue=s,this.effectsSequence=[o.bind(this)],this.addEffect=g}function _e(tt,$,nt,it){var et;this.propType="multidimensional";var rt,st,at,ot,lt=$.k.length;for(et=0;et<lt-1;et+=1)$.k[et].to&&$.k[et].s&&$.k[et+1]&&$.k[et+1].s&&(rt=$.k[et].s,st=$.k[et+1].s,at=$.k[et].to,ot=$.k[et].ti,(rt.length===2&&(rt[0]!==st[0]||rt[1]!==st[1])&&bez.pointOnLine2D(rt[0],rt[1],st[0],st[1],rt[0]+at[0],rt[1]+at[1])&&bez.pointOnLine2D(rt[0],rt[1],st[0],st[1],st[0]+ot[0],st[1]+ot[1])||rt.length===3&&(rt[0]!==st[0]||rt[1]!==st[1]||rt[2]!==st[2])&&bez.pointOnLine3D(rt[0],rt[1],rt[2],st[0],st[1],st[2],rt[0]+at[0],rt[1]+at[1],rt[2]+at[2])&&bez.pointOnLine3D(rt[0],rt[1],rt[2],st[0],st[1],st[2],st[0]+ot[0],st[1]+ot[1],st[2]+ot[2]))&&($.k[et].to=null,$.k[et].ti=null),rt[0]===st[0]&&rt[1]===st[1]&&at[0]===0&&at[1]===0&&ot[0]===0&&ot[1]===0&&(rt.length===2||rt[2]===st[2]&&at[2]===0&&ot[2]===0)&&($.k[et].to=null,$.k[et].ti=null));this.effectsSequence=[o.bind(this)],this.data=$,this.keyframes=$.k,this.keyframesMetadata=[],this.offsetTime=tt.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=nt||1,this.elem=tt,this.container=it,this.comp=tt.comp,this.getValue=d,this.setVValue=h,this.interpolateValue=s,this.frameId=-1;var pt=$.k[0].s.length;for(this.v=createTypedArray("float32",pt),this.pv=createTypedArray("float32",pt),et=0;et<pt;et+=1)this.v[et]=e,this.pv[et]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",pt)},this.addEffect=g}return{getProp:function(tt,$,nt,it,et){var rt;if($.k.length)if(typeof $.k[0]=="number")rt=new _(tt,$,it,et);else switch(nt){case 0:rt=new j(tt,$,it,et);break;case 1:rt=new _e(tt,$,it,et)}else rt=new b(tt,$,it,et);return rt.effectsSequence.length&&et.addDynamicProperty(rt),rt}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var i=this.dynamicProperties.length;for(e=0;e<i;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var s=0;s<i;)this.v[s]=pointPool.newElement(),this.o[s]=pointPool.newElement(),this.i[s]=pointPool.newElement(),s+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;
vendor: 7,986 bytes, line 62
62)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,i,s,a,o){var h;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":h=this.v;break;case"i":h=this.i;break;case"o":h=this.o;break;default:h=[]}(!h[a]||h[a]&&!o)&&(h[a]=pointPool.newElement()),h[a][0]=e,h[a][1]=i},ShapePath.prototype.setTripleAt=function(e,i,s,a,o,h,d,g){this.setXYAt(e,i,"v",d,g),this.setXYAt(s,a,"o",d,g),this.setXYAt(o,h,"i",d,g)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var i=this.v,s=this.o,a=this.i,o=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],a[0][0],a[0][1],s[0][0],s[0][1],0,!1),o=1);var h,d=this._length-1,g=this._length;for(h=o;h<g;h+=1)e.setTripleAt(i[d][0],i[d][1],a[d][0],a[d][1],s[d][0],s[d][1],h,!1),d-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var i,s=e._length;for(i=0;i<s;i+=1)pointPool.release(e.v[i]),pointPool.release(e.i[i]),pointPool.release(e.o[i]),e.v[i]=null,e.i[i]=null,e.o[i]=null;e._length=0,e.c=!1}),factory.clone=function(e){var i,s=factory.newElement(),a=e._length===void 0?e.v.length:e._length;for(s.setLength(a),s.c=e.c,i=0;i<a;i+=1)s.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],i);return s},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var i,s=e._length;for(i=0;i<s;i+=1)shapePool.release(e.shapes[i]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function e(tt,$,nt){var it,et,rt,st,at,ot,lt,pt,ct,ut=nt.lastIndex,mt=this.keyframes;if(tt<mt[0].t-this.offsetTime)it=mt[0].s[0],rt=!0,ut=0;else if(tt>=mt[mt.length-1].t-this.offsetTime)it=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],rt=!0;else{for(var ft,dt,St,yt=ut,xt=mt.length-1,Pt=!0;Pt&&(ft=mt[yt],!((dt=mt[yt+1]).t-this.offsetTime>tt));)yt<xt-1?yt+=1:Pt=!1;if(St=this.keyframesMetadata[yt]||{},ut=yt,!(rt=ft.h===1)){if(tt>=dt.t-this.offsetTime)pt=1;else if(tt<ft.t-this.offsetTime)pt=0;else{var Ct;St.__fnct?Ct=St.__fnct:(Ct=BezierFactory.getBezierEasing(ft.o.x,ft.o.y,ft.i.x,ft.i.y).get,St.__fnct=Ct),pt=Ct((tt-(ft.t-this.offsetTime))/(dt.t-this.offsetTime-(ft.t-this.offsetTime)))}et=dt.s?dt.s[0]:ft.e[0]}it=ft.s[0]}for(ot=$._length,lt=it.i[0].length,nt.lastIndex=ut,st=0;st<ot;st+=1)for(at=0;at<lt;at+=1)ct=rt?it.i[st][at]:it.i[st][at]+(et.i[st][at]-it.i[st][at])*pt,$.i[st][at]=ct,ct=rt?it.o[st][at]:it.o[st][at]+(et.o[st][at]-it.o[st][at])*pt,$.o[st][at]=ct,ct=rt?it.v[st][at]:it.v[st][at]+(et.v[st][at]-it.v[st][at])*pt,$.v[st][at]=ct}function i(){var tt=this.comp.renderedFrame-this.offsetTime,$=this.keyframes[0].t-this.offsetTime,nt=this.keyframes[this.keyframes.length-1].t-this.offsetTime,it=this._caching.lastFrame;return it!==-999999&&(it<$&&tt<$||it>nt&&tt>nt)||(this._caching.lastIndex=it<tt?this._caching.lastIndex:0,this.interpolateShape(tt,this.pv,this._caching)),this._caching.lastFrame=tt,this.pv}function s(){this.paths=this.localShapeCollection}function a(tt){(function($,nt){if($._length!==nt._length||$.c!==nt.c)return!1;var it,et=$._length;for(it=0;it<et;it+=1)if($.v[it][0]!==nt.v[it][0]||$.v[it][1]!==nt.v[it][1]||$.o[it][0]!==nt.o[it][0]||$.o[it][1]!==nt.o[it][1]||$.i[it][0]!==nt.i[it][0]||$.i[it][1]!==nt.i[it][1])return!1;return!0})(this.v,tt)||(this.v=shapePool.clone(tt),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var tt,$;this.lock=!0,this._mdf=!1,tt=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var nt=this.effectsSequence.length;for($=0;$<nt;$+=1)tt=this.effectsSequence[$](tt);this.setVValue(tt),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function h(tt,$,nt){this.propType="shape",this.comp=tt.comp,this.container=tt,this.elem=tt,this.data=$,this.k=!1,this.kf=!1,this._mdf=!1;var it=nt===3?$.pt.k:$.ks.k;this.v=shapePool.clone(it),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function d(tt){this.effectsSequence.push(tt),this.container.addDynamicProperty(this)}function g(tt,$,nt){this.propType="shape",this.comp=tt.comp,this.elem=tt,this.container=tt,this.offsetTime=tt.data.st,this.keyframes=nt===3?$.pt.k:$.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var it=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,it),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=s,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[i.bind(this)]}h.prototype.interpolateShape=e,h.prototype.getValue=o,h.prototype.setVValue=a,h.prototype.addEffect=d,g.prototype.getValue=o,g.prototype.interpolateShape=e,g.prototype.setVValue=a,g.prototype.addEffect=d;var b=function(){var tt=roundCorner;function $(nt,it){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=it.d,this.elem=nt,this.comp=nt.comp,this.frameId=-1,this.initDynamicPropertyContainer(nt),this.p=PropertyFactory.getProp(nt,it.p,1,0,this),this.s=PropertyFactory.getProp(nt,it.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return $.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var nt=this.p.v[0],it=this.p.v[1],et=this.s.v[0]/2,rt=this.s.v[1]/2,st=this.d!==3,at=this.v;at.v[0][0]=nt,at.v[0][1]=it-rt,at.v[1][0]=st?nt+et:nt-et,at.v[1][1]=it,at.v[2][0]=nt,at.v[2][1]=it+rt,at.v[3][0]=st?nt-et:nt+et,at.v[3][1]=it,at.i[0][0]=st?nt-et*tt:nt+et*tt,at.i[0][1]=it-rt,at.i[1][0]=st?nt+et:nt-et,at.i[1][1]=it-rt*tt,at.i[2][0]=st?nt+et*tt:nt-et*tt,at.i[2][1]=it+rt,at.i[3][0]=st?nt-et:nt+et,at.i[3][1]=it+rt*tt,at.o[0][0]=st?nt+et*tt:nt-et*tt,at.o[0][1]=it-rt,at.o[1][0]=st?nt+et:nt-et,at.o[1][1]=it+rt*tt,at.o[2][0]=st?nt-et*tt:nt+et*tt,at.o[2][1]=it+rt,at.o[3][0]=st?nt-et:nt+et,at.o[3][1]=it-rt*tt}},extendPrototype([DynamicPropertyContainer],$),$}(),_=function(){function tt($,nt){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=$,this.comp=$.comp,this.data=nt,this.frameId=-1,this.d=nt.d,this.initDynamicPropertyContainer($),nt.sy===1?(this.ir=PropertyFactory.getProp($,nt.ir,0,0,this),this.is=PropertyFactory.getProp($,nt.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 9,747 bytes, line 62
62pertyFactory.getProp($,nt.pt,0,0,this),this.p=PropertyFactory.getProp($,nt.p,1,0,this),this.r=PropertyFactory.getProp($,nt.r,0,degToRads,this),this.or=PropertyFactory.getProp($,nt.or,0,0,this),this.os=PropertyFactory.getProp($,nt.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 tt.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var $,nt,it,et,rt=2*Math.floor(this.pt.v),st=2*Math.PI/rt,at=!0,ot=this.or.v,lt=this.ir.v,pt=this.os.v,ct=this.is.v,ut=2*Math.PI*ot/(2*rt),mt=2*Math.PI*lt/(2*rt),ft=-Math.PI/2;ft+=this.r.v;var dt=this.data.d===3?-1:1;for(this.v._length=0,$=0;$<rt;$+=1){it=at?pt:ct,et=at?ut:mt;var St=(nt=at?ot:lt)*Math.cos(ft),yt=nt*Math.sin(ft),xt=St===0&&yt===0?0:yt/Math.sqrt(St*St+yt*yt),Pt=St===0&&yt===0?0:-St/Math.sqrt(St*St+yt*yt);St+=+this.p.v[0],yt+=+this.p.v[1],this.v.setTripleAt(St,yt,St-xt*et*it*dt,yt-Pt*et*it*dt,St+xt*et*it*dt,yt+Pt*et*it*dt,$,!0),at=!at,ft+=st*dt}},convertPolygonToPath:function(){var $,nt=Math.floor(this.pt.v),it=2*Math.PI/nt,et=this.or.v,rt=this.os.v,st=2*Math.PI*et/(4*nt),at=.5*-Math.PI,ot=this.data.d===3?-1:1;for(at+=this.r.v,this.v._length=0,$=0;$<nt;$+=1){var lt=et*Math.cos(at),pt=et*Math.sin(at),ct=lt===0&&pt===0?0:pt/Math.sqrt(lt*lt+pt*pt),ut=lt===0&&pt===0?0:-lt/Math.sqrt(lt*lt+pt*pt);lt+=+this.p.v[0],pt+=+this.p.v[1],this.v.setTripleAt(lt,pt,lt-ct*st*rt*ot,pt-ut*st*rt*ot,lt+ct*st*rt*ot,pt+ut*st*rt*ot,$,!0),at+=it*ot}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],tt),tt}(),j=function(){function tt($,nt){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=$,this.comp=$.comp,this.frameId=-1,this.d=nt.d,this.initDynamicPropertyContainer($),this.p=PropertyFactory.getProp($,nt.p,1,0,this),this.s=PropertyFactory.getProp($,nt.s,1,0,this),this.r=PropertyFactory.getProp($,nt.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return tt.prototype={convertRectToPath:function(){var $=this.p.v[0],nt=this.p.v[1],it=this.s.v[0]/2,et=this.s.v[1]/2,rt=bmMin(it,et,this.r.v),st=rt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt($+it,nt-et+rt,$+it,nt-et+rt,$+it,nt-et+st,0,!0),this.v.setTripleAt($+it,nt+et-rt,$+it,nt+et-st,$+it,nt+et-rt,1,!0),rt!==0?(this.v.setTripleAt($+it-rt,nt+et,$+it-rt,nt+et,$+it-st,nt+et,2,!0),this.v.setTripleAt($-it+rt,nt+et,$-it+st,nt+et,$-it+rt,nt+et,3,!0),this.v.setTripleAt($-it,nt+et-rt,$-it,nt+et-rt,$-it,nt+et-st,4,!0),this.v.setTripleAt($-it,nt-et+rt,$-it,nt-et+st,$-it,nt-et+rt,5,!0),this.v.setTripleAt($-it+rt,nt-et,$-it+rt,nt-et,$-it+st,nt-et,6,!0),this.v.setTripleAt($+it-rt,nt-et,$+it-st,nt-et,$+it-rt,nt-et,7,!0)):(this.v.setTripleAt($-it,nt+et,$-it+st,nt+et,$-it,nt+et,2),this.v.setTripleAt($-it,nt-et,$-it,nt-et+st,$-it,nt-et,3))):(this.v.setTripleAt($+it,nt-et+rt,$+it,nt-et+st,$+it,nt-et+rt,0,!0),rt!==0?(this.v.setTripleAt($+it-rt,nt-et,$+it-rt,nt-et,$+it-st,nt-et,1,!0),this.v.setTripleAt($-it+rt,nt-et,$-it+st,nt-et,$-it+rt,nt-et,2,!0),this.v.setTripleAt($-it,nt-et+rt,$-it,nt-et+rt,$-it,nt-et+st,3,!0),this.v.setTripleAt($-it,nt+et-rt,$-it,nt+et-st,$-it,nt+et-rt,4,!0),this.v.setTripleAt($-it+rt,nt+et,$-it+rt,nt+et,$-it+st,nt+et,5,!0),this.v.setTripleAt($+it-rt,nt+et,$+it-st,nt+et,$+it-rt,nt+et,6,!0),this.v.setTripleAt($+it,nt+et-rt,$+it,nt+et-rt,$+it,nt+et-st,7,!0)):(this.v.setTripleAt($-it,nt-et,$-it+st,nt-et,$-it,nt-et,1,!0),this.v.setTripleAt($-it,nt+et,$-it,nt+et-st,$-it,nt+et,2,!0),this.v.setTripleAt($+it,nt+et,$+it-st,nt+et,$+it,nt+et,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],tt),tt}(),_e={getShapeProp:function(tt,$,nt){var it;return nt===3||nt===4?it=(nt===3?$.pt:$.ks).k.length?new g(tt,$,nt):new h(tt,$,nt):nt===5?it=new j(tt,$):nt===6?it=new b(tt,$):nt===7&&(it=new _(tt,$)),it.k&&tt.addDynamicProperty(it),it},getConstructorFunction:function(){return h},getKeyframedConstructorFunction:function(){return g}};return _e}(),Matrix=function(){var e=Math.cos,i=Math.sin,s=Math.tan,a=Math.round;function o(){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 h(Et){if(Et===0)return this;var ht=e(Et),vt=i(Et);return this._t(ht,-vt,0,0,vt,ht,0,0,0,0,1,0,0,0,0,1)}function d(Et){if(Et===0)return this;var ht=e(Et),vt=i(Et);return this._t(1,0,0,0,0,ht,-vt,0,0,vt,ht,0,0,0,0,1)}function g(Et){if(Et===0)return this;var ht=e(Et),vt=i(Et);return this._t(ht,0,vt,0,0,1,0,0,-vt,0,ht,0,0,0,0,1)}function b(Et){if(Et===0)return this;var ht=e(Et),vt=i(Et);return this._t(ht,-vt,0,0,vt,ht,0,0,0,0,1,0,0,0,0,1)}function _(Et,ht){return this._t(1,ht,Et,1,0,0)}function j(Et,ht){return this.shear(s(Et),s(ht))}function _e(Et,ht){var vt=e(ht),bt=i(ht);return this._t(vt,bt,0,0,-bt,vt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,s(Et),1,0,0,0,0,1,0,0,0,0,1)._t(vt,-bt,0,0,bt,vt,0,0,0,0,1,0,0,0,0,1)}function tt(Et,ht,vt){return vt||vt===0||(vt=1),Et===1&&ht===1&&vt===1?this:this._t(Et,0,0,0,0,ht,0,0,0,0,vt,0,0,0,0,1)}function $(Et,ht,vt,bt,wt,_t,Rt,Dt,Lt,Ft,Mt,It,Ot,Bt,jt,zt){return this.props[0]=Et,this.props[1]=ht,this.props[2]=vt,this.props[3]=bt,this.props[4]=wt,this.props[5]=_t,this.props[6]=Rt,this.props[7]=Dt,this.props[8]=Lt,this.props[9]=Ft,this.props[10]=Mt,this.props[11]=It,this.props[12]=Ot,this.props[13]=Bt,this.props[14]=jt,this.props[15]=zt,this}function nt(Et,ht,vt){return vt=vt||0,Et!==0||ht!==0||vt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Et,ht,vt,1):this}function it(Et,ht,vt,bt,wt,_t,Rt,Dt,Lt,Ft,Mt,It,Ot,Bt,jt,zt){var Tt=this.props;if(Et===1&&ht===0&&vt===0&&bt===0&&wt===0&&_t===1&&Rt===0&&Dt===0&&Lt===0&&Ft===0&&Mt===1&&It===0)return Tt[12]=Tt[12]*Et+Tt[15]*Ot,Tt[13]=Tt[13]*_t+Tt[15]*Bt,Tt[14]=Tt[14]*Mt+Tt[15]*jt,Tt[15]*=zt,this._identityCalculated=!1,this;var Wt=Tt[0],hn=Tt[1],pn=Tt[2],an=Tt[3],qt=Tt[4],Kt=Tt[5],Gt=Tt[6],Yt=Tt[7],Xt=Tt[8],nn=Tt[9],dn=Tt[10],rn=Tt[11],bn=Tt[12],ar=Tt[13],or=Tt[14],lr=Tt[15];return Tt[0]=Wt*Et+hn*wt+pn*Lt+an*Ot,Tt[1]=Wt*ht+hn*_t+pn*Ft+an*Bt,Tt[2]=Wt*vt+hn*Rt+pn*Mt+an*jt,Tt[3]=Wt*bt+hn*Dt+pn*It+an*zt,Tt[4]=qt*Et+Kt*wt+Gt*Lt+Yt*Ot,Tt[5]=qt*ht+Kt*_t+Gt*Ft+Yt*Bt,Tt[6]=qt*vt+Kt*Rt+Gt*Mt+Yt*jt,Tt[7]=qt*bt+Kt*Dt+Gt*It+Yt*zt,Tt[8]=Xt*Et+nn*wt+dn*Lt+rn*Ot,Tt[9]=Xt*ht+nn*_t+dn*Ft+rn*Bt,Tt[10]=Xt*vt+nn*Rt+dn*Mt+rn*jt,Tt[11]=Xt*bt+nn*Dt+dn*It+rn*zt,Tt[12]=bn*Et+ar*wt+or*Lt+lr*Ot,Tt[13]=bn*ht+ar*_t+or*Ft+lr*Bt,Tt[14]=bn*vt+ar*Rt+or*Mt+lr*jt,Tt[15]=bn*bt+ar*Dt+or*It+lr*zt,this._identityCalculated=!1,this}function et(){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 rt(Et){for(var ht=0;ht<16;){if(Et.props[ht]!==this.props[ht])return!1;ht+=1}return!0}function st(Et){var ht;for(ht=0;ht<16;ht+=1)Et.props[ht]=this.props[ht];return Et}function at(Et){var ht;for(ht=0;ht<16;ht+=1)this.props[ht]=Et[ht]}function ot(Et,ht,vt){return{x:Et*this.props[0]+ht*this.props[4]+vt*this.props[8]+this.props[12],y:Et*this.props[1]+ht*this.props[5]+vt*this.props[9]+this.props[13],z:Et*this.props[2]+ht*this.props[6]+vt*this.props[10]+this.props[14]}}function lt(Et,ht,vt){return Et*this.props[0]+ht*this.props[4]+vt*this.props[8]+this.props[12]}function pt(Et,ht,vt){return Et*this.props[1]+ht*this.props[5]+vt*this.props[9]+this.props[13]}function ct(Et,ht,vt){return Et*this.props[2]+ht*this.props[6]+vt*this.props[10]+this.props[14]}function ut(){var Et=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/Et,vt=-this.props[1]/Et,bt=-this.props[4]/Et,wt=this.props[0]/Et,_t=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Et,Rt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Et,Dt=new Matrix;return Dt.props[0]=ht,Dt.props[1]=vt,Dt.props[4]=bt,Dt.props[5]=wt,Dt.props[12]=_t,Dt.props[13]=Rt,Dt}function mt(Et){return this.getInverseMatrix().applyToPointArray(Et[0],Et[1],Et[2]||0)}function ft(Et){var ht,vt=Et.length,bt=[];for(ht=0;ht<vt;ht+=1)bt[ht]=mt(Et[ht]);return bt}function dt(Et,ht,vt){var bt=createTypedArray("float32",6);if(this.isIdentity())bt[0]=Et[0],bt[1]=Et[1],bt[2]=ht[0],bt[3]=ht[1],bt[4]=vt[0],bt[5]=vt[1];else{var wt=this.props[0],_t=this.props[1],Rt=this.props[4],Dt=this.props[5],Lt=this.props[12],Ft=this.props[13];bt[0]=Et[0]*wt+Et[1]*Rt+Lt,bt[1]=Et[0]*_t+Et[1]*Dt+Ft,bt[2]=ht[0]*wt+ht[1]*Rt+Lt,bt[3]=ht[0]*_t+ht[1]*Dt+Ft,bt[4]=vt[0]*wt+vt[1]*Rt+Lt,bt[5]=vt[0]*_t+vt[1]*Dt+Ft}return bt}function St(Et,ht,vt){return this.isIdentity()?[Et,ht,vt]:[Et*this.props[0]+ht*this.props[4]+vt*this.props[8]+this.props[12],Et*this.props[1]+ht*this.props[5]+vt*this.props[9]+this.props[13],Et*this.props[2]+ht*this.props[6]+vt*this.props[10]+this.props[14]]}function yt(Et,ht){if(this.isIdentity())return Et+","+ht;var vt=this.props;
vendor: 5,154 bytes, line 62
62return Math.round(100*(Et*vt[0]+ht*vt[4]+vt[12]))/100+","+Math.round(100*(Et*vt[1]+ht*vt[5]+vt[13]))/100}function xt(){for(var Et=0,ht=this.props,vt="matrix3d(";Et<16;)vt+=a(1e4*ht[Et])/1e4,vt+=Et===15?")":",",Et+=1;return vt}function Pt(Et){return Et<1e-6&&Et>0||Et>-1e-6&&Et<0?a(1e4*Et)/1e4:Et}function Ct(){var Et=this.props;return"matrix("+Pt(Et[0])+","+Pt(Et[1])+","+Pt(Et[4])+","+Pt(Et[5])+","+Pt(Et[12])+","+Pt(Et[13])+")"}return function(){this.reset=o,this.rotate=h,this.rotateX=d,this.rotateY=g,this.rotateZ=b,this.skew=j,this.skewFromAxis=_e,this.shear=_,this.scale=tt,this.setTransform=$,this.translate=nt,this.transform=it,this.applyToPoint=ot,this.applyToX=lt,this.applyToY=pt,this.applyToZ=ct,this.applyToPointArray=St,this.applyToTriplePoints=dt,this.applyToPointStringified=yt,this.toCSS=xt,this.to2dCSS=Ct,this.clone=st,this.cloneFromProps=at,this.equals=rt,this.inversePoints=ft,this.inversePoint=mt,this.getInverseMatrix=ut,this._t=this.transform,this.isIdentity=et,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,i){e==="expressions"&&setExpressionsPlugin(i)}function getFactory(e){switch(e){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(e){for(var i=queryString.split("&"),s=0;s<i.length;s+=1){var a=i[s].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.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)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},i={};return e.registerModifier=function(s,a){i[s]||(i[s]=a)},e.getModifier=function(s,a,o){return new i[s](a,o)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,i){this.s=PropertyFactory.getProp(e,i.s,0,.01,this),this.e=Pro
vendor: 4,324 bytes, line 62
62pertyFactory.getProp(e,i.e,0,.01,this),this.o=PropertyFactory.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,i,s,a,o){var h=[];i<=1?h.push({s:e,e:i}):e>=1?h.push({s:e-1,e:i-1}):(h.push({s:e,e:1}),h.push({s:0,e:i-1}));var d,g,b=[],_=h.length;for(d=0;d<_;d+=1){var j,_e;(g=h[d]).e*o<a||g.s*o>a+s||(j=g.s*o<=a?0:(g.s*o-a)/s,_e=g.e*o>=a+s?1:(g.e*o-a)/s,b.push([j,_e]))}return b.length||b.push([0,0]),b},TrimModifier.prototype.releasePathsData=function(e){var i,s=e.length;for(i=0;i<s;i+=1)segmentsLengthPool.release(e[i]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var i,s,a,o;if(this._mdf||e){var h=this.o.v%360/360;if(h<0&&(h+=1),(i=this.s.v>1?1+h:this.s.v<0?0+h:this.s.v+h)>(s=this.e.v>1?1+h:this.e.v<0?0+h:this.e.v+h)){var d=i;i=s,s=d}i=1e-4*Math.round(1e4*i),s=1e-4*Math.round(1e4*s),this.sValue=i,this.eValue=s}else i=this.sValue,s=this.eValue;var g,b,_,j,_e,tt=this.shapes.length,$=0;if(s===i)for(o=0;o<tt;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(s===1&&i===0||s===0&&i===1){if(this._mdf)for(o=0;o<tt;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var nt,it,et=[];for(o=0;o<tt;o+=1)if((nt=this.shapes[o]).shape._mdf||this._mdf||e||this.m===2){if(b=(a=nt.shape.paths)._length,_e=0,!nt.shape._mdf&&nt.pathsData.length)_e=nt.totalShapeLength;else{for(_=this.releasePathsData(nt.pathsData),g=0;g<b;g+=1)j=bez.getSegmentsLength(a.shapes[g]),_.push(j),_e+=j.totalLength;nt.totalShapeLength=_e,nt.pathsData=_}$+=_e,nt.shape._mdf=!0}else nt.shape.paths=nt.localShapeCollection;var rt,st=i,at=s,ot=0;for(o=tt-1;o>=0;o-=1)if((nt=this.shapes[o]).shape._mdf){for((it=nt.localShapeCollection).releaseShapes(),this.m===2&&tt>1?(rt=this.calculateShapeEdges(i,s,nt.totalShapeLength,ot,$),ot+=nt.totalShapeLength):rt=[[st,at]],b=rt.length,g=0;g<b;g+=1){st=rt[g][0],at=rt[g][1],et.length=0,at<=1?et.push({s:nt.totalShapeLength*st,e:nt.totalShapeLength*at}):st>=1?et.push({s:nt.totalShapeLength*(st-1),e:nt.totalShapeLength*(at-1)}):(et.push({s:nt.totalShapeLength*st,e:nt.totalShapeLength}),et.push({s:0,e:nt.totalShapeLength*(at-1)}));var lt=this.addShapes(nt,et[0]);if(et[0].s!==et[0].e){if(et.length>1)if(nt.shape.paths.shapes[nt.shape.paths._length-1].c){var pt=lt.pop();this.addPaths(lt,it),lt=this.addShapes(nt,et[1],pt)}else this.addPaths(lt,it),lt=this.addShapes(nt,et[1]);this.addPaths(lt,it)}}nt.shape.paths=it}}},TrimModifier.prototype.addPaths=function(e,i){var s,a=e.length;for(s=0;s<a;s+=1)i.addShape(e[s])},TrimModifier.prototype.addSegment=function(e,i,s,a,o,h,d){o.setXYAt(i[0],i[1],"o",h),o.setXYAt(s[0],s[1],"i",h+1),d&&o.setXYAt(e[0],e[1],"v",h),o.setXYAt(a[0],a[1],"v",h+1)},TrimModifier.prototype.addSegmentFromArray=function(e,i,s,a){i.setXYAt(e[1],e[5],"o",s),i.setXYAt(e[2],e[6],"i",s+1),a&&i.setXYAt(e[0],e[4],"v",s),i.setXYAt(e[3],e[7],"v",s+1)},TrimModifier.prototype.addShapes=function(e,i,s){var a,o,h,d,g,b,_,j,_e=e.pathsData,tt=e.shape.paths.shapes,$=e.shape.paths._length,nt=0,it=[],et=!0;for(s?(g=s._length,j=s._length):(s=shapePool.newElement(),g=0,j=0),it.push(s),a=0;a<$;a+=1){for(b=_e[a].lengths,s.c=tt[a].c,h=tt[a].c?b.length:b.length+1,o=1;o<h;o+=1)if(nt+(d=b[o-1]).addedLength<i.s)nt+=d.addedLength,s.c=!1;else{if(nt>i.e){s.c=!1;break}i.s<=nt&&i.e>=nt+d.addedLength?(this.addSegment(tt[a].v[o-1],tt[a].o[o-1],tt[a].i[o],tt[a].v[o],s,g,et),et=!1):(_=bez.getNewSegment(tt[a].v[o-1],tt[a].v[o],tt[a].o[o-1],tt[a].i[o],(i.s-nt)/d.addedLength,(i.e-nt)/d.addedLength,b[o-1]),this.addSegmentFromArray(_,s,g,et),et=!1,s.c=!1),nt+=d.addedLength,g+=1}if(tt[a].c&&b.length){if(d=b[o-1],nt<=i.e){var rt=b[o-1].addedLength;i.s<=nt&&i.e>=nt+rt?(this.addSegment(tt[a].v[o-1],tt[a].o[o-1],tt[a].i[0],tt[a].v[0],s,g,et),et=!1):(_=bez.getNewSegment(tt[a].v[o-1],tt[a].v[0],tt[a].o[o-1],tt[a].i[0],(i.s-nt)/rt,(i.e-nt)/rt,b[o-1]),this.addSegmentFromArray(_,s,g,et),et=!1,s.c=!1)}else s.c=!1;nt+=d.addedLength,g+=1}
vendor: 6,953 bytes, line 62
62if(s._length&&(s.setXYAt(s.v[j][0],s.v[j][1],"i",j),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),nt>i.e)break;a<$-1&&(s=shapePool.newElement(),et=!0,it.push(s),g=0)}return it},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,i){var s=i/100,a=[0,0],o=e._length,h=0;for(h=0;h<o;h+=1)a[0]+=e.v[h][0],a[1]+=e.v[h][1];a[0]/=o,a[1]/=o;var d,g,b,_,j,_e,tt=shapePool.newElement();for(tt.c=e.c,h=0;h<o;h+=1)d=e.v[h][0]+(a[0]-e.v[h][0])*s,g=e.v[h][1]+(a[1]-e.v[h][1])*s,b=e.o[h][0]+(a[0]-e.o[h][0])*-s,_=e.o[h][1]+(a[1]-e.o[h][1])*-s,j=e.i[h][0]+(a[0]-e.i[h][0])*-s,_e=e.i[h][1]+(a[1]-e.i[h][1])*-s,tt.setTripleAt(d,g,b,_,j,_e,h);return tt},PuckerAndBloatModifier.prototype.processShapes=function(e){var i,s,a,o,h,d,g=this.shapes.length,b=this.amount.v;if(b!==0)for(s=0;s<g;s+=1){if(d=(h=this.shapes[s]).localShapeCollection,h.shape._mdf||this._mdf||e)for(d.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,o=h.shape.paths._length,a=0;a<o;a+=1)d.addShape(this.processPath(i[a],b));h.shape.paths=h.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function i(s,a,o){if(this.elem=s,this.frameId=-1,this.propType="transform",this.data=a,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(o||s),a.p&&a.p.s?(this.px=PropertyFactory.getProp(s,a.p.x,0,0,this),this.py=PropertyFactory.getProp(s,a.p.y,0,0,this),a.p.z&&(this.pz=PropertyFactory.getProp(s,a.p.z,0,0,this))):this.p=PropertyFactory.getProp(s,a.p||{k:[0,0,0]},1,0,this),a.rx){if(this.rx=PropertyFactory.getProp(s,a.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(s,a.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(s,a.rz,0,degToRads,this),a.or.k[0].ti){var h,d=a.or.k.length;for(h=0;h<d;h+=1)a.or.k[h].to=null,a.or.k[h].ti=null}this.or=PropertyFactory.getProp(s,a.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(s,a.r||{k:0},0,degToRads,this);a.sk&&(this.sk=PropertyFactory.getProp(s,a.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(s,a.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(s,a.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(s,a.s||{k:[100,100,100]},1,.01,this),a.o?this.o=PropertyFactory.getProp(s,a.o,0,.01,s):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return i.prototype={applyToMatrix:function(s){var a=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||a,this.a&&s.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&s.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&s.skewFromAxis(-this.sk.v,this.sa.v),this.r?s.rotate(-this.r.v):s.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?s.translate(this.px.v,this.py.v,-this.pz.v):s.translate(this.px.v,this.py.v,0):s.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(s){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||s){var a;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 o,h;if(a=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(o=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/a,0),h=this.p.getValueAtTime(this.p.keyframes[0].t/a,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(o=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/a,0),h=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/a,0)):(o=this.p.pv,h=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/a,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){o=[],h=[];var d=this.px,g=this.py;d._caching.lastFrame+d.offsetTime<=d.keyframes[0].t?(o[0]=d.getValueAtTime((d.keyframes[0].t+.01)/a,0),o[1]=g.getValueAtTime((g.keyframes[0].t+.01)/a,0),h[0]=d.getValueAtTime(d.keyframes[0].t/a,0),h[1]=g.getValueAtTime(g.keyframes[0].t/a,0)):d._caching.lastFrame+d.offsetTime>=d.keyframes[d.keyframes.length-1].t?(o[0]=d.getValueAtTime(d.keyframes[d.keyframes.length-1].t/a,0),o[1]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/a,0),h[0]=d.getValueAtTime((d.keyframes[d.keyframes.length-1].t-.01)/a,0),h[1]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/a,0)):(o=[d.pv,g.pv],h[0]=d.getValueAtTime((d._caching.lastFrame+d.offsetTime-.01)/a,d.offsetTime),h[1]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/a,g.offsetTime))}else o=h=e;this.v.rotate(-Math.atan2(o[1]-h[1],o[0]-h[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],i),i.prototype.addDynamicProperty=function(s){this._addDynamicProperty(s),this.elem.addDynamicProperty(s),this._isDirty=!0},i.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(s,a,o){return new i(s,a,o)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}
vendor: 6,921 bytes, line 62
62function floatEqual(e,i){return 1e5*Math.abs(e-i)<=Math.min(Math.abs(e),Math.abs(i))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,i,s){return e*(1-s)+i*s}function lerpPoint(e,i,s){return[lerp(e[0],i[0],s),lerp(e[1],i[1],s)]}function quadRoots(e,i,s){if(e===0)return[];var a=i*i-4*e*s;if(a<0)return[];var o=-i/(2*e);if(a===0)return[o];var h=Math.sqrt(a)/(2*e);return[o-h,o+h]}function polynomialCoefficients(e,i,s,a){return[3*i-e-3*s+a,3*e-6*i+3*s,-3*e+3*i,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,i,s,a,o){o&&pointEqual(e,i)&&(i=lerpPoint(e,a,1/3)),o&&pointEqual(s,a)&&(s=lerpPoint(e,a,2/3));var h=polynomialCoefficients(e[0],i[0],s[0],a[0]),d=polynomialCoefficients(e[1],i[1],s[1],a[1]);this.a=[h[0],d[0]],this.b=[h[1],d[1]],this.c=[h[2],d[2]],this.d=[h[3],d[3]],this.points=[e,i,s,a]}function extrema(e,i){var s=e.points[0][i],a=e.points[e.points.length-1][i];if(s>a){var o=a;a=s,s=o}for(var h=quadRoots(3*e.a[i],2*e.b[i],e.c[i]),d=0;d<h.length;d+=1)if(h[d]>0&&h[d]<1){var g=e.point(h[d])[i];g<s?s=g:g>a&&(a=g)}return{min:s,max:a}}function intersectData(e,i,s){var a=e.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:e,t:(i+s)/2,t1:i,t2:s}}function splitData(e){var i=e.bez.split(.5);return[intersectData(i[0],e.t1,e.t),intersectData(i[1],e.t,e.t2)]}function boxIntersect(e,i){return 2*Math.abs(e.cx-i.cx)<e.width+i.width&&2*Math.abs(e.cy-i.cy)<e.height+i.height}function intersectsImpl(e,i,s,a,o,h){if(boxIntersect(e,i))if(s>=h||e.width<=a&&e.height<=a&&i.width<=a&&i.height<=a)o.push([e.t,i.t]);else{var d=splitData(e),g=splitData(i);intersectsImpl(d[0],g[0],s+1,a,o,h),intersectsImpl(d[0],g[1],s+1,a,o,h),intersectsImpl(d[1],g[0],s+1,a,o,h),intersectsImpl(d[1],g[1],s+1,a,o,h)}}function crossProduct(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function lineIntersection(e,i,s,a){var o=[e[0],e[1],1],h=[i[0],i[1],1],d=[s[0],s[1],1],g=[a[0],a[1],1],b=crossProduct(crossProduct(o,h),crossProduct(d,g));return floatZero(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function polarOffset(e,i,s){return[e[0]+Math.cos(i)*s,e[1]-Math.sin(i)*s]}function pointDistance(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function pointEqual(e,i){return floatEqual(e[0],i[0])&&floatEqual(e[1],i[1])}function ZigZagModifier(){}function setPoint(e,i,s,a,o,h,d){var g=s-Math.PI/2,b=s+Math.PI/2,_=i[0]+Math.cos(s)*a*o,j=i[1]-Math.sin(s)*a*o;e.setTripleAt(_,j,_+Math.cos(g)*h,j-Math.sin(g)*h,_+Math.cos(b)*d,j-Math.sin(b)*d,e.length())}function getPerpendicularVector(e,i){var s=[i[0]-e[0],i[1]-e[1]],a=.5*-Math.PI;return[Math.cos(a)*s[0]-Math.sin(a)*s[1],Math.sin(a)*s[0]+Math.cos(a)*s[1]]}function getProjectingAngle(e,i){var s=i===0?e.length()-1:i-1,a=(i+1)%e.length(),o=getPerpendicularVector(e.v[s],e.v[a]);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,i,s,a,o,h,d){var g=getProjectingAngle(i,s),b=i.v[s%i._length],_=i.v[s===0?i._length-1:s-1],j=i.v[(s+1)%i._length],_e=h===2?Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)):0,tt=h===2?Math.sqrt(Math.pow(b[0]-j[0],2)+Math.pow(b[1]-j[1],2)):0;setPoint(e,i.v[s%i._length],g,d,a,tt/(2*(o+1)),_e/(2*(o+1)))}function zigZagSegment(e,i,s,a,o,h){for(var d=0;d<a;d+=1){var g=(d+1)/(a+1),b=o===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,_=i.normalAngle(g);setPoint(e,i.point(g),_,h,s,b/(2*(a+1)),b/(2*(a+1))),h=-h}return h}function linearOffset(e,i,s){var a=Math.atan2(i[0]-e[0],i[1]-e[1]);return[polarOffset(e,a,s),polarOffset(i,a,s)]}function offsetSegment(e,i){var s,a,o,h,d,g,b;s=(b=linearOffset(e.points[0],e.points[1],i))[0],a=b[1],o=(b=linearOffset(e.points[1],e.points[2],i))[0],h=b[1],d=(b=linearOffset(e.points[2],e.points[3],i))[0],g=b[1];var _=lineIntersection(s,a,o,h);_===null&&(_=a);var j=lineIntersection(d,g,o,h);return j===null&&(j=d),new PolynomialBezier(s,_,j,g)}function joinLines(e,i,s,a,o){var h=i.points[3],d=s.points[0];if(a===3||pointEqual(h,d))return h;if(a===2){var g=-i.tangentAngle(1),b=-s.tangentAngle(0)+Math.PI,_=lineIntersection(h,polarOffset(h,g+Math.PI/2,100),d,polarOffset(d,g+Math.PI/2,100)),j=_?pointDistance(_,h):pointDistance(h,d)/2,_e=polarOffset(h,g,2*j*roundCorner);return e.setXYAt(_e[0],_e[1],"o",e.length()-1),_e=polarOffset(d,b,2*j*roundCorner),e.setTripleAt(d[0],d[1],d[0],d[1],_e[0],_e[1],e.length()),d}var tt=lineIntersection(pointEqual(h,i.points[2])?i.points[0]:i.points[2],h,d,pointEqual(d,s.points[1])?s.points[3]:s.points[1]);return tt&&pointDistance(tt,h)<o?(e.setTripleAt(tt[0],tt[1],tt[0],tt[1],tt[0],tt[1],e.length()),tt):h}function getIntersection(e,i){var s=e.intersections(i);return s.length&&floatEqual(s[0][0],1)&&s.shift(),s.length?s[0]:null}function pruneSegmentIntersection(e,i){var s=e.slice(),a=i.slice(),o=getIntersection(e[e.length-1],i[0]);return o&&(s[e.length-1]=e[e.length-1].split(o[0])[0],a[0]=i[0].split(o[1])[1]),e.length>1&&i.length>1&&(o=getIntersection(e[0],i[i.length-1]))?[[e[0].split(o[0])[0]],[i[i.length-1].split(o[1])[1]]]:[s,a]}function pruneIntersections(e){for(var i,s=1;s<e.length;s+=1)i=pruneSegmentIntersection(e[s-1],e[s]),e[s-1]=i[0],e[s]=i[1];return e.length>1&&(i=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function offsetSegmentSplit(e,i){var s,a,o,h,d=e.inflectionPoints();if(d.length===0)return[offsetSegment(e,i)];if(d.length===1||floatEqual(d[1],1))return s=(o=e.split(d[0]))[0],a=o[1],[offsetSegment(s,i),offsetSegment(a,i)];s=(o=e.split(d[0]))[0];var g=(d[1]-d[0])/(1-d[0]);return h=(o=o[1].split(g))[0],a=o[1],[offsetSegment(s,i),offsetSegment(h,i),offsetSegment(a,i)]}function OffsetPathModifier(){}function getFontProperties(e){for(var i=e.fStyle?e.fStyle.split(" "):[],s="normal",a="normal",o=i.length,h=0;h<o;h+=1)switch(i[h].toLowerCase()){case"italic":a="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200"}return{style:a,weight:e.fWeight||s}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,i.c,0,null,this),this.o=PropertyFactory.getProp(e,i.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,i.tr,this),this.so=PropertyFactory.getProp(e,i.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,i,s,a,o,h){var d=h?-1:1,g=a.s.v[0]+(1-a.s.v[0])*(1-o),b=a.s.v[1]+(1-a.s.v[1])*(1-o);e.translate(a.p.v[0]*d*o,a.p.v[1]*d*o,a.p.v[2]),i.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),i.rotate(-a.r.v*d
vendor: 9,215 bytes, line 62
62*o),i.translate(a.a.v[0],a.a.v[1],a.a.v[2]),s.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),s.scale(h?1/g:g,h?1/b:b),s.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,i,s,a){for(this.elem=e,this.arr=i,this.pos=s,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[s]);s>0;)s-=1,this._elements.unshift(i[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var i,s=e.length;for(i=0;i<s;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},RepeaterModifier.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},RepeaterModifier.prototype.changeGroupRender=function(e,i){var s,a=e.length;for(s=0;s<a;s+=1)e[s]._render=i,e[s].ty==="gr"&&this.changeGroupRender(e[s].it,i)},RepeaterModifier.prototype.processShapes=function(e){var i,s,a,o,h,d=!1;if(this._mdf||e){var g,b=Math.ceil(this.c.v);if(this._groups.length<b){for(;this._groups.length<b;){var _={it:this.cloneElements(this._elements),ty:"gr"};_.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,_),this._groups.splice(0,0,_),this._currentCopies+=1}this.elem.reloadShapes(),d=!0}for(h=0,a=0;a<=this._groups.length-1;a+=1){if(g=h<b,this._groups[a]._render=g,this.changeGroupRender(this._groups[a].it,g),!g){var j=this.elemsData[a].it,_e=j[j.length-1];_e.transform.op.v!==0?(_e.transform.op._mdf=!0,_e.transform.op.v=0):_e.transform.op._mdf=!1}h+=1}this._currentCopies=b;var tt=this.o.v,$=tt%1,nt=tt>0?Math.floor(tt):Math.ceil(tt),it=this.pMatrix.props,et=this.rMatrix.props,rt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var st,at,ot=0;if(tt>0){for(;ot<nt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ot+=1;$&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,$,!1),ot+=$)}else if(tt<0){for(;ot>nt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ot-=1;$&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-$,!0),ot-=$)}for(a=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,h=this._currentCopies;h;){if(at=(s=(i=this.elemsData[a].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),ot!==0){for((a!==0&&o===1||a!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(et[0],et[1],et[2],et[3],et[4],et[5],et[6],et[7],et[8],et[9],et[10],et[11],et[12],et[13],et[14],et[15]),this.matrix.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],rt[8],rt[9],rt[10],rt[11],rt[12],rt[13],rt[14],rt[15]),this.matrix.transform(it[0],it[1],it[2],it[3],it[4],it[5],it[6],it[7],it[8],it[9],it[10],it[11],it[12],it[13],it[14],it[15]),st=0;st<at;st+=1)s[st]=this.matrix.props[st];this.matrix.reset()}else for(this.matrix.reset(),st=0;st<at;st+=1)s[st]=this.matrix.props[st];ot+=1,h-=1,a+=o}}else for(h=this._currentCopies,a=0,o=1;h;)s=(i=this.elemsData[a].it)[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,h-=1,a+=o;return d},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,i){var s,a=shapePool.newElement();a.c=e.c;var o,h,d,g,b,_,j,_e,tt,$,nt,it,et=e._length,rt=0;for(s=0;s<et;s+=1)o=e.v[s],d=e.o[s],h=e.i[s],o[0]===d[0]&&o[1]===d[1]&&o[0]===h[0]&&o[1]===h[1]?s!==0&&s!==et-1||e.c?(g=s===0?e.v[et-1]:e.v[s-1],_=(b=Math.sqrt(Math.pow(o[0]-g[0],2)+Math.pow(o[1]-g[1],2)))?Math.min(b/2,i)/b:0,j=nt=o[0]+(g[0]-o[0])*_,_e=it=o[1]-(o[1]-g[1])*_,tt=j-(j-o[0])*roundCorner,$=_e-(_e-o[1])*roundCorner,a.setTripleAt(j,_e,tt,$,nt,it,rt),rt+=1,g=s===et-1?e.v[0]:e.v[s+1],_=(b=Math.sqrt(Math.pow(o[0]-g[0],2)+Math.pow(o[1]-g[1],2)))?Math.min(b/2,i)/b:0,j=tt=o[0]+(g[0]-o[0])*_,_e=$=o[1]+(g[1]-o[1])*_,nt=j-(j-o[0])*roundCorner,it=_e-(_e-o[1])*roundCorner,a.setTripleAt(j,_e,tt,$,nt,it,rt),rt+=1):(a.setTripleAt(o[0],o[1],d[0],d[1],h[0],h[1],rt),rt+=1):(a.setTripleAt(e.v[s][0],e.v[s][1],e.o[s][0],e.o[s][1],e.i[s][0],e.i[s][1],rt),rt+=1);return a},RoundCornersModifier.prototype.processShapes=function(e){var i,s,a,o,h,d,g=this.shapes.length,b=this.rd.v;if(b!==0)for(s=0;s<g;s+=1){if(d=(h=this.shapes[s]).localShapeCollection,h.shape._mdf||this._mdf||e)for(d.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,o=h.shape.paths._length,a=0;a<o;a+=1)d.addShape(this.processPath(i[a],b));h.shape.paths=h.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},PolynomialBezier.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,s=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(s<0)return[];var a=Math.sqrt(s);return floatZero(a)?a>0&&a<1?[i]:[]:[i-a,i+a].filter(function(o){return o>0&&o<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var i=lerpPoint(this.points[0],this.points[1],e),s=lerpPoint(this.points[1],this.points[2],e),a=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(i,s,e),h=lerpPoint(s,a,e),d=lerpPoint(o,h,e);return[new PolynomialBezier(this.points[0],i,o,d,!0),new PolynomialBezier(d,h,a,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,i,s){i===void 0&&(i=2),s===void 0&&(s=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,i,a,s),a},PolynomialBezier.shapeSegment=function(e,i){var s=(i+1)%e.length();return new PolynomialBezier(e.v[i],e.o[i],e.i[s],e.v[s],!0)},PolynomialBezier.shapeSegmentInverted=function(e,i){var s=(i+1)%e.length();return new PolynomialBezier(e.v[s],e.i[s],e.o[i],e.v[i],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,i.s,0,null,this),this.frequency=PropertyFactory.getProp(e,i.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,i.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(e,i,s,a){var o=e._length,h=shapePool.newElement();if(h.c=e.c,e.c||(o-=1),o===0)return h;var d=-1,g=PolynomialBezier.shapeSegment(e,0);zigZagCorner(h,e,0,i,s,a,d);for(var b=0;b<o;b+=1)d=zigZagSegment(h,g,i,s,a,-d),g=b!==o-1||e.c?PolynomialBezier.shapeSegment(e,(b+1)%o):null,zigZagCorner(h,e,b+1,i,s,a,d);return h},ZigZagModifier.prototype.processShapes=function(e){var i,s,a,o,h,d,g=this.shapes.length,b=this.amplitude.v,_=Math.max(0,Math.round(this.frequency.v)),j=this.pointsType.v;if(b!==0)for(s=0;s<g;s+=1){if(d=(h=this.shapes[s]).localShapeCollection,h.shape._mdf||this._mdf||e)for(d.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,o=h.shape.paths._length,a=0;a<o;a+=1)d.addShape(this.processPath(i[a],b,_,j));h.shape.paths=h.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,i.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,i,s,a){var o=shapePool.newElement();o.c=e.c;var h,d,g,b=e.length();e.c||(b-=1);var _=[];for(h=0;h<b;h+=1)g=PolynomialBezier.shapeSegment(e,h),_.push(offsetSegmentSplit(g,
62i));if(!e.c)for(h=b-1;h>=0;h-=1)g=PolynomialBezier.shapeSegmentInverted(e,h),_.push(offsetSegmentSplit(g,i));_=pruneIntersections(_);var j=null,_e=null;for(h=0;h<_.length;h+=1){var tt=_[h];for(_e&&(j=joinLines(o,_e,tt[0],s,a)),_e=tt[tt.length-1],d=0;d<tt.length;d+=1)g=tt[d],j&&pointEqual(g.points[0],j)?o.setXYAt(g.points[1][0],g.points[1][1],"o",o.length()-1):o.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],o.length()),o.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],o.length()),j=g.points[3]}return _.length&&joinLines(o,_e,_[0][0],s,a),o},OffsetPathModifier.prototype.processShapes=function(e){var i,s,a,o,h,d,g=this.shapes.length,b=this.amount.v,_=this.miterLimit.v,j=this.lineJoin;if(b!==0)for(s=0;s<g;s+=1){if(d=(h=this.shapes[s]).localShapeCollection,h.shape._mdf||this._mdf||e)for(d.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,o=h.shape.paths._length,a=0;a<o;a+=1)d.addShape(this.processPath(i[a],b,j,_));h.shape.paths=h.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.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 s=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],a=[65039,8205];function o(g,b){var _=createTag("span");_.setAttribute("aria-hidden",!0),_.style.fontFamily=b;var j=createTag("span");j.innerText="giItT1WQy@!-/#",_.style.position="absolute",_.style.left="-10000px",_.style.top="-10000px",_.style.fontSize="300px",_.style.fontVariant="normal",_.style.fontStyle="normal",_.style.fontWeight="normal",_.style.letterSpacing="0",_.appendChild(j),document.body.appendChild(_);var _e=j.offsetWidth;return j.style.fontFamily=function(tt){var $,nt=tt.split(","),it=nt.length,et=[];for($=0;$<it;$+=1)nt[$]!=="sans-serif"&&nt[$]!=="monospace"&&et.push(nt[$]);return et.join(",")}(g)+", "+b,{node:j,w:_e,parent:_}}function h(g,b){var _,j=document.body&&b?"svg":"canvas",_e=getFontProperties(g);if(j==="svg"){var tt=createNS("text");tt.style.fontSize="100px",tt.setAttribute("font-family",g.fFamily),tt.setAttribute("font-style",_e.style),tt.setAttribute("font-weight",_e.weight),tt.textContent="1",g.fClass?(tt.style.fontFamily="inherit",tt.setAttribute("class",g.fClass)):tt.style.fontFamily=g.fFamily,b.appendChild(tt),_=tt}else{var $=new OffscreenCanvas(500,500).getContext("2d");$.font=_e.style+" "+_e.weight+" 100px "+g.fFamily,_=$}return{measureText:function(nt){return j==="svg"?(_.textContent=nt,_.getComputedTextLength()):_.measureText(nt).width}}}var d=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)};return d.isModifier=function(g,b){var _=g.toString(16)+b.toString(16);return s.indexOf(_)!==-1},d.isZeroWidthJoiner=function(g,b){return b?g===a[0]&&b===a[1]:g===a[1]},d.isCombinedCharacter=function(g){return i.indexOf(g)!==-1},d.prototype={addChars:function(g){if(g){var b;this.chars||(this.chars=[]);var _,j,_e=g.length,tt=this.chars.length;for(b=0;b<_e;b+=1){for(_=0,j=!1;_<tt;)this.chars[_].style===g[b].style&&this.chars[_].fFamily===g[b].fFamily&&this.chars[_].ch===g[b].ch&&(j=!0),_+=1;j||(this.chars.push(g[b]),tt+=1)}}},addFonts:function(g,b){if(g){if(this.chars)return this.isLoaded=!0,void(this.fonts=g.list);if(!document.body)return this.isLoaded=!0,g.list.forEach(function(at){at.helper=h(at),at.cache={}}),void(this.fonts=g.list);var _,j=g.list,_e=j.length,tt=_e;for(_=0;_<_e;_+=1){var $,nt,it=!0;if(j[_].loaded=!1,j[_].monoCase=o(j[_].fFamily,"monospace"),j[_].sansCase=o(j[_].fFamily,"sans-serif"),j[_].fPath){if(j[_].fOrigin==="p"||j[_].origin===3){if(($=document.querySelectorAll('style[f-forigin="p"][f-family="'+j[_].fFamily+'"], style[f-origin="3"][f-family="'+j[_].fFamily+'"]')).length>0&&(it=!1),it){var et=createTag("style");et.setAttribute("f-forigin",j[_].fOrigin),et.setAttribute("f-origin",j[_].origin),et.setAttribute("f-family",j[_].fFamily),et.type="text/css",et.innerText="@font-face {font-family: "+j[_].fFamily+"; font-style: normal; src: url('"+j[_].fPath+"');}",b.appendChild(et)}}else if(j[_].fOrigin==="g"||j[_].origin===1){for($=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),nt=0;nt<$.length;nt+=1)$[nt].href.indexOf(j[_].fPath)!==-1&&(it=!1);if(it){var rt=createTag("link");rt.setAttribute("f-forigin",j[_].fOrigin),rt.setAttribute("f-origin",j[_].origin),rt.type="text/css",rt.rel="stylesheet",rt.href=j[_].fPath,document.body.appendChild(rt)}}else if(j[_].fOrigin==="t"||j[_].origin===2){for($=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),nt=0;nt<$.length;nt+=1)j[_].fPath===$[nt].src&&(it=!1);if(it){var st=createTag("link");st.setAttribute("f-forigin",j[_].fOrigin),st.setAttribute("f-origin",j[_].origin),st.setAttribute("rel","stylesheet"),st.setAttribute("href",j[_].fPath),b.appendChild(st)}}}else j[_].loaded=!0,tt-=1;j[_].helper=h(j[_],b),j[_].cache={},this.fonts.push(j[_])}tt===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(g,b,_){for(var j=0,_e=this.chars.length;j<_e;){if(this.chars[j].ch===g&&this.chars[j].style===b&&this.chars[j].fFamily===_)return this.chars[j];j+=1}return(typeof g=="string"&&g.charCodeAt(0)!==13||!g)&&console&&console.warn&&!this._warned&&(this._warned=!0),e},getFontByName:function(g){for(var b=0,_=this.fonts.length;b<_;){if(this.fonts[b].fName===g)return this.fonts[b];b+=1}return this.fonts[0]},measureText:function(g,b,_){var j=this.getFontByName(b),_e=g.charCodeAt(0);if(!j.cache[_e+1]){var tt=j.helper;if(g===" "){var $=tt.measureText("|"+g+"|"),nt=tt.measureText("||");j.cache[_e+1]=($-nt)/100}else j.cache[_e+1]=tt.measureText(g)/100}return j.cache[_e+1]*_},checkLoadedFonts:function(){var g,b,_,j=this.fonts.length,_e=j;for(g=0;g<j;g+=1)this.fonts[g].loaded?_e-=1:this.fonts[g].fOrigin==="n"||this.fonts[g].origin===0?this.fonts[g].loaded=!0:(b=this.fonts[g].monoCase.node,_=this.fonts[g].monoCase.w,b.offsetWidth!==_?(_e-=1,this.fonts[g].loaded=!0):(b=this.fonts[g].sansCase.node,_=this.fonts[g].sansCase.w,b.offsetWidth!==_&&(_e-=1,this.fonts[g].loaded=!0)),this.fonts[g].loaded&&(this.fonts[g].sansCase.parent.parentNode.removeChild(this.fonts[g].sansCase.parent),this.fonts[g].monoCase.parent.parentNode.removeChild(this.fonts[g].monoCase.parent)));_e!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},d}();
vendor: 7,099 bytes, line 62
62function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){this.renderableComponents.indexOf(e)===-1&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){this.renderableComponents.indexOf(e)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?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 e,i=this.renderableComponents.length;for(e=0;e<i;e+=1)this.renderableComponents[e].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(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,i,s){this.p=PropertyFactory.getProp(i,e.v,0,0,s)}function AngleEffect(e,i,s){this.p=PropertyFactory.getProp(i,e.v,0,0,s)}function ColorEffect(e,i,s){this.p=PropertyFactory.getProp(i,e.v,1,0,s)}function PointEffect(e,i,s){this.p=PropertyFactory.getProp(i,e.v,1,0,s)}function LayerIndexEffect(e,i,s){this.p=PropertyFactory.getProp(i,e.v,0,0,s)}function MaskIndexEffect(e,i,s){this.p=PropertyFactory.getProp(i,e.v,0,0,s)}function CheckboxEffect(e,i,s){this.p=PropertyFactory.getProp(i,e.v,0,0,s)}function NoValueEffect(){this.p={}}function EffectsManager(e,i){var s,a=e.ef||[];this.effectElements=[];var o,h=a.length;for(s=0;s<h;s+=1)o=new GroupEffect(a[s],i),this.effectElements.push(o)}function GroupEffect(e,i){this.init(e,i)}function BaseElement(){}function FrameElement(){}function FootageElement(e,i,s){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,s)}function AudioElement(e,i,s){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,s),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(e,i,s){this.data=e,this.element=i,this.globalData=s,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a,o,h=this.globalData.defs,d=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(d),this.solidPath="";var g,b,_,j,_e,tt,$=this.masksProperties,nt=0,it=[],et=createElementID(),rt="clipPath",st="clip-path";for(a=0;a<d;a+=1)if(($[a].mode!=="a"&&$[a].mode!=="n"||$[a].inv||$[a].o.k!==100||$[a].o.x)&&(rt="mask",st="mask"),$[a].mode!=="s"&&$[a].mode!=="i"||nt!==0?_=null:((_=createNS("rect")).setAttribute("fill","#ffffff"),_.setAttribute("width",this.element.comp.data.w||0),_.setAttribute("height",this.element.comp.data.h||0),it.push(_)),o=createNS("path"),$[a].mode==="n")this.viewData[a]={op:PropertyFactory.getProp(this.element,$[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,$[a],3),elem:o,lastPath:""},h.appendChild(o);else{var at;if(nt+=1,o.setAttribute("fill",$[a].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),$[a].x.k!==0?(rt="mask",st="mask",tt=PropertyFactory.getProp(this.element,$[a].x,0,null,this.element),at=createElementID(),(j=createNS("filter")).setAttribute("id",at),(_e=createNS("feMorphology")).setAttribute("operator","erode"),_e.setAttribute("in","SourceGraphic"),_e.setAttribute("radius","0"),j.appendChild(_e),h.appendChild(j),o.setAttribute("stroke",$[a].mode==="s"?"#000000":"#ffffff")):(_e=null,tt=null),this.storedData[a]={elem:o,x:tt,expan:_e,lastPath:"",lastOperator:"",filterId:at,lastRadius:0},$[a].mode==="i"){b=it.length;var ot=createNS("g");for(g=0;g<b;g+=1)ot.appendChild(it[g]);var lt=createNS("mask");lt.setAttribute("mask-type","alpha"),lt.setAttribute("id",et+"_"+nt),lt.appendChild(o),h.appendChild(lt),ot.setAttribute("mask","url("+getLocationHref()+"#"+et+"_"+nt+")"),it.length=0,it.push(ot)}else it.push(o);$[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,$[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,$[a],3),invRect:_},this.viewData[a].prop.k||this.drawPath($[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(rt),d=it.length,a=0;a<d;a+=1)this.maskElement.appendChild(it[a]);nt>0&&(this.maskElement.setAttribute("id",et),this.element.maskedElement.setAttribute(st,"url("+getLocationHref()+"#"+et+")"),h.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,i){var s;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,o=this.data.ef.length,h=this.data.ef;for(s=0;s<o;s+=1){switch(a=null,h[s].ty){case 0:a=new SliderEffect(h[s],i,this);break;case 1:a=new AngleEffect(h[s],i,this);break;case 2:a=new ColorEffect(h[s],i,this);break;case 3:a=new PointEffect(h[s],i,this);break;case 4:case 7:a=new CheckboxEffect(h[s],i,this);break;case 10:a=new LayerIndexEffect(h[s],i,this);break;case 11:a=new MaskIndexEffect(h[s],i,this);break;case 5:a=new EffectsManager(h[s],i);break;default:a=new NoValueEffect(h[s])}a&&this.effectElements.push(a)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,i=this.data.masksProperties.length;e<i;){if(this.data.masksProperties[e].mode!=="n"&&this.data.masksProperties[e].cl!==!1)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var i=e("layer"),s=e("effects"),a=e("shape"),o=e("text"),h=e("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);
vendor: 7,689 bytes, line 62
62var d=s.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(d),this.data.ty===0||this.data.xt?this.compInterface=h(this):this.data.ty===4?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,i,s){this.globalData=i,this.comp=s,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,i){var s,a=this.dynamicProperties.length;for(s=0;s<a;s+=1)(i||this._isParent&&this.dynamicProperties[s].propType==="transform")&&(this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var i=e("footage");this.layerInterface=i(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var s=this._volume*this._volumeMultiplier;this._previousVolume!==s&&(this._previousVolume=s,this.audio.volume(s))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var i,s,a=this.layers.length;for(this.completeLayers=!0,i=a-1;i>=0;i-=1)this.elements[i]||(s=this.layers[i]).ip-s.st<=e-this.layers[i].st&&s.op-s.st>e-this.layers[i].st&&this.buildItem(i),this.completeLayers=!!this.elements[i]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var i;this.completeLayers=!1;var s,a=e.length,o=this.layers.length;for(i=0;i<a;i+=1)for(s=0;s<o;){if(this.layers[s].id===e[i].id){this.layers[s]=e[i];break}s+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,i,s){for(var a=this.elements,o=this.layers,h=0,d=o.length;h<d;)o[h].ind==i&&(a[h]&&a[h]!==!0?(s.push(a[h]),a[h].setAsParent(),o[h].parent!==void 0?this.buildElementParenting(e,o[h].parent,s):e.setHierarchy(s)):(this.buildItem(h),this.addPendingElement(e))),h+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var i,s=e.length;for(i=0;i<s;i+=1)if(e[i].xt){var a=this.createComp(e[i]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(e){var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},BaseRenderer.prototype.getElementByPath=function(e){var i,s=e.shift();if(typeof s=="number")i=this.elements[s];else{var a,o=this.elements.length;for(a=0;a<o;a+=1)if(this.elements[a].data.nm===s){i=this.elements[a];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,i=this.finalTransform.mat,s=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;s<a;){if(this.hierarchy[s].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}s+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,i.cloneFromProps(e),s=0;s<a;s+=1)e=this.hierarchy[s].finalTransform.mProp.v.props,i.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var i=[];i.push(this.finalTransform);for(var s,a=!0,o=this.comp;a;)o.finalTransform?(o.data.hasMask&&i.splice(0,0,o.finalTransform),o=o.comp):a=!1;var h,d=i.length;for(s=0;s<d;
vendor: 5,781 bytes, line 62
62s+=1)h=i[s].mat.applyToPointArray(0,0,0),e=[e[0]-h[0],e[1]-h[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var i,s=this.element.finalTransform.mat,a=this.masksProperties.length;for(i=0;i<a;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var o=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),o.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",2*this.storedData[i].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,i,s){var a,o,h=" M"+i.v[0][0]+","+i.v[0][1];for(o=i._length,a=1;a<o;a+=1)h+=" C"+i.o[a-1][0]+","+i.o[a-1][1]+" "+i.i[a][0]+","+i.i[a][1]+" "+i.v[a][0]+","+i.v[a][1];if(i.c&&o>1&&(h+=" C"+i.o[a-1][0]+","+i.o[a-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),s.lastPath!==h){var d="";s.elem&&(i.c&&(d=e.inv?this.solidPath+h:h),s.elem.setAttribute("d",d)),s.lastPath=h}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};return e.createFilter=function(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a},e.createAlphaToLuminanceFilter=function(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),i},e}(),featureSupport=function(){var e={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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var i,s,a="SourceGraphic",o=e.data.ef?e.data.ef.length:0,h=createElementID(),d=filtersFactory.createFilter(h,!0),g=0;for(this.filters=[],i=0;i<o;i+=1){s=null;var b=e.data.ef[i].ty;registeredEffects[b]&&(s=new registeredEffects[b].effect(d,e.effectsManager.effectElements[i],e,idPrefix+g,a),a=idPrefix+g,registeredEffects[b].countsAsEffect&&(g+=1)),s&&this.filters.push(s)}g&&(e.globalData.defs.appendChild(d),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,i,s){registeredEffects[e]={effect:i,countsAsEffect:s}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,i,s){this.assetData=i.getAssetData(e.refId),this.initElement(e,i,s),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,i){this.elem=e,this.pos=i}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var i,s=this.filters.length;for(i=0;i<s;i+=1)this.filters[i].renderFrame(e)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),e=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var s=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(s.setAttribute("id",o),s.appendChild(a),this.globalData.defs.appendChild(s),this.checkMasks()){var h=createNS("g");h.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),h.appendChild(this.layerElement),this.transformedElement=h,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("op
62acity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var i,s,a,o,h=this.layerId+"_"+e;if(e===1||e===3){var d=createNS("mask");d.setAttribute("id",h),d.setAttribute("mask-type",e===3?"luminance":"alpha"),(a=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),d.appendChild(a),this.globalData.defs.appendChild(d),featureSupport.maskType||e!==1||(d.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(o=createNS("g")).appendChild(a),d.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(e===2){var g=createNS("mask");g.setAttribute("id",h),g.setAttribute("mask-type","alpha");var b=createNS("g");g.appendChild(b),i=createElementID(),s=filtersFactory.createFilter(i);var _=createNS("feComponentTransfer");_.setAttribute("in","SourceGraphic"),s.appendChild(_);var j=createNS("feFuncA");j.setAttribute("type","table"),j.setAttribute("tableValues","1.0 0.0"),_.appendChild(j),this.globalData.defs.appendChild(s);var _e=createNS("rect");_e.setAttribute("width",this.comp.data.w),_e.setAttribute("height",this.comp.data.h),_e.setAttribute("x","0"),_e.setAttribute("y","0"),_e.setAttribute("fill","#ffffff"),_e.setAttribute("opacity","0"),b.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),b.appendChild(_e),(a=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),b.appendChild(a),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),b.appendChild(_e),o.appendChild(this.layerElement),b.appendChild(o)),this.globalData.defs.appendChild(g)}this.matteMasks[e]=h}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,i,s){this.initFrame(),this.initBaseData(e,i,s),this.initTransform(e,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var i,s=this.shapeModifiers.length;for(i=0;i<s;i+=1)this.shapeModifiers[i].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var i=this.shapeModifiers.length;0<i;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,i=this.shapes.length;for(e=0;e<i;e+=1)this.shapes[e].sh.reset();for(e=(i=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var i=this.processedElements,s=0,a=i.length;s<a;){if(i[s].elem===e)return i[s].pos;s+=1}return 0},addProcessedElement:function(e,i){for(var s=this.processedElements,a=s.length;a;)if(s[a-=1].elem===e)return void(s[a].pos=i);s.push(new ProcessedElement(e,i))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,i,s){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=s,this.lvl=i,this._isAnimated=!!s.k;for(var a=0,o=e.length;a<o;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function SVGStyleData(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,i,s,a){var o;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(i.length),this.renderer=s,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",i.length?i.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var h,d=i.length||0;for(o=0;o<d;o+=1)h=PropertyFactory.getProp(e,i[o].v,0,0,this),this.k=h.k||this.k,this.dataProps[o]={n:i[o].n,p:h};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,i,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,i.o,0,.01,this),this.w=PropertyFactory.getProp(e,i.w,0,null,this),this.d=new DashProperty(e,i.d||{},"svg",this),this.c=PropertyFactory.getProp(e,i.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,i,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,i.o,0,.01,this),this.c=PropertyFactory.getProp(e,i.c,1,255,this),this.style=s}function SVGNoStyleData(e,i,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=s}function GradientProperty(e,i,s){this.data=i,this.c=createTypedArray("uint8c",4*i.p);var a=i.k.k[0].s?i.k.k[0].s.length-4*i.p:i.k.k.length-4*i.p;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(s),this.prop=PropertyFactory.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,i,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,s)}function SVGGradientStrokeStyleData(e,i,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,i.w,0,null,this),this.d=new DashProperty(e,i.d||{},"svg",this),this.initGradientData(e,i,s),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,i,s){this.transform={mProps:e,op:i,container:s},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,s=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<s;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,i){for(var s=0,a=this.o.length/2;s<a;){if(Math.abs(e[4*s]-e[4*i+2*s])>.01)return!1;s+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,s,a,o=4*this.data.p;for(i=0;i<o;i+=1)s=i%4==0?100:255,a=Math.round(this.prop.v[i]*s),this.c[i]!==a&&(this.c[i]=a,this._cmdf=!e);if(this.o.length)for(o=this.prop.v.length,i=4*this.data.p;i<o;i+=1)s=i%2==0?100:1,a=i%2==0?Math.round(100*this.prop.v[i]):this.prop.v[i],this.o[i-4*this.data.p]!==a&&(this.o[i-4*this.data.p]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,i,s){this.o=PropertyFactory.getProp(e,i.o,0,.01,this),this.s=PropertyFactory.getProp(e,i.s,1,null,this),this.e=Pro
vendor: 13,118 bytes, line 62
62pertyFactory.getProp(e,i.e,1,null,this),this.h=PropertyFactory.getProp(e,i.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,i.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,i.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,i),this.setGradientOpacity(i,s),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,i){var s=createElementID(),a=createNS(i.t===1?"linearGradient":"radialGradient");a.setAttribute("id",s),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var o,h,d,g=[];for(d=4*i.g.p,h=0;h<d;h+=4)o=createNS("stop"),a.appendChild(o),g.push(o);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),this.gf=a,this.cst=g},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var s,a,o,h=createNS("mask"),d=createNS("path");h.appendChild(d);var g=createElementID(),b=createElementID();h.setAttribute("id",b);var _=createNS(e.t===1?"linearGradient":"radialGradient");_.setAttribute("id",g),_.setAttribute("spreadMethod","pad"),_.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var j=this.stops;for(a=4*e.g.p;a<o;a+=2)(s=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),_.appendChild(s),j.push(s);d.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+g+")"),e.ty==="gs"&&(d.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),d.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&d.setAttribute("stroke-miterlimit",e.ml)),this.of=_,this.ms=h,this.ost=j,this.maskId=b,i.msElem=d}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,i,s,a){if(i===0)return"";var o,h=e.o,d=e.i,g=e.v,b=" M"+a.applyToPointStringified(g[0][0],g[0][1]);for(o=1;o<i;o+=1)b+=" C"+a.applyToPointStringified(h[o-1][0],h[o-1][1])+" "+a.applyToPointStringified(d[o][0],d[o][1])+" "+a.applyToPointStringified(g[o][0],g[o][1]);return s&&i&&(b+=" C"+a.applyToPointStringified(h[o-1][0],h[o-1][1])+" "+a.applyToPointStringified(d[0][0],d[0][1])+" "+a.applyToPointStringified(g[0][0],g[0][1]),b+="z"),b},SVGElementsRenderer=function(){var e=new Matrix,i=new Matrix;function s(_,j,_e){(_e||j.transform.op._mdf)&&j.transform.container.setAttribute("opacity",j.transform.op.v),(_e||j.transform.mProps._mdf)&&j.transform.container.setAttribute("transform",j.transform.mProps.v.to2dCSS())}function a(){}function o(_,j,_e){var tt,$,nt,it,et,rt,st,at,ot,lt,pt,ct=j.styles.length,ut=j.lvl;for(rt=0;rt<ct;rt+=1){if(it=j.sh._mdf||_e,j.styles[rt].lvl<ut){for(at=i.reset(),lt=ut-j.styles[rt].lvl,pt=j.transformers.length-1;!it&&lt>0;)it=j.transformers[pt].mProps._mdf||it,lt-=1,pt-=1;if(it)for(lt=ut-j.styles[rt].lvl,pt=j.transformers.length-1;lt>0;)ot=j.transformers[pt].mProps.v.props,at.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],ot[8],ot[9],ot[10],ot[11],ot[12],ot[13],ot[14],ot[15]),lt-=1,pt-=1}else at=e;if($=(st=j.sh.paths)._length,it){for(nt="",tt=0;tt<$;tt+=1)(et=st.shapes[tt])&&et._length&&(nt+=buildShapeString(et,et._length,et.c,at));j.caches[rt]=nt}else nt=j.caches[rt];j.styles[rt].d+=_.hd===!0?"":nt,j.styles[rt]._mdf=it||j.styles[rt]._mdf}}function h(_,j,_e){var tt=j.style;(j.c._mdf||_e)&&tt.pElem.setAttribute("fill","rgb("+bmFloor(j.c.v[0])+","+bmFloor(j.c.v[1])+","+bmFloor(j.c.v[2])+")"),(j.o._mdf||_e)&&tt.pElem.setAttribute("fill-opacity",j.o.v)}function d(_,j,_e){g(_,j,_e),b(_,j,_e)}function g(_,j,_e){var tt,$,nt,it,et,rt=j.gf,st=j.g._hasOpacity,at=j.s.v,ot=j.e.v;if(j.o._mdf||_e){var lt=_.ty==="gf"?"fill-opacity":"stroke-opacity";j.style.pElem.setAttribute(lt,j.o.v)}if(j.s._mdf||_e){var pt=_.t===1?"x1":"cx",ct=pt==="x1"?"y1":"cy";rt.setAttribute(pt,at[0]),rt.setAttribute(ct,at[1]),st&&!j.g._collapsable&&(j.of.setAttribute(pt,at[0]),j.of.setAttribute(ct,at[1]))}if(j.g._cmdf||_e){tt=j.cst;var ut=j.g.c;for(nt=tt.length,$=0;$<nt;$+=1)(it=tt[$]).setAttribute("offset",ut[4*$]+"%"),it.setAttribute("stop-color","rgb("+ut[4*$+1]+","+ut[4*$+2]+","+ut[4*$+3]+")")}if(st&&(j.g._omdf||_e)){var mt=j.g.o;for(nt=(tt=j.g._collapsable?j.cst:j.ost).length,$=0;$<nt;$+=1)it=tt[$],j.g._collapsable||it.setAttribute("offset",mt[2*$]+"%"),it.setAttribute("stop-opacity",mt[2*$+1])}if(_.t===1)(j.e._mdf||_e)&&(rt.setAttribute("x2",ot[0]),rt.setAttribute("y2",ot[1]),st&&!j.g._collapsable&&(j.of.setAttribute("x2",ot[0]),j.of.setAttribute("y2",ot[1])));else if((j.s._mdf||j.e._mdf||_e)&&(et=Math.sqrt(Math.pow(at[0]-ot[0],2)+Math.pow(at[1]-ot[1],2)),rt.setAttribute("r",et),st&&!j.g._collapsable&&j.of.setAttribute("r",et)),j.e._mdf||j.h._mdf||j.a._mdf||_e){et||(et=Math.sqrt(Math.pow(at[0]-ot[0],2)+Math.pow(at[1]-ot[1],2)));var ft=Math.atan2(ot[1]-at[1],ot[0]-at[0]),dt=j.h.v;dt>=1?dt=.99:dt<=-1&&(dt=-.99);var St=et*dt,yt=Math.cos(ft+j.a.v)*St+at[0],xt=Math.sin(ft+j.a.v)*St+at[1];rt.setAttribute("fx",yt),rt.setAttribute("fy",xt),st&&!j.g._collapsable&&(j.of.setAttribute("fx",yt),j.of.setAttribute("fy",xt))}}function b(_,j,_e){var tt=j.style,$=j.d;$&&($._mdf||_e)&&$.dashStr&&(tt.pElem.setAttribute("stroke-dasharray",$.dashStr),tt.pElem.setAttribute("stroke-dashoffset",$.dashoffset[0])),j.c&&(j.c._mdf||_e)&&tt.pElem.setAttribute("stroke","rgb("+bmFloor(j.c.v[0])+","+bmFloor(j.c.v[1])+","+bmFloor(j.c.v[2])+")"),(j.o._mdf||_e)&&tt.pElem.setAttribute("stroke-opacity",j.o.v),(j.w._mdf||_e)&&(tt.pElem.setAttribute("stroke-width",j.w.v),tt.msElem&&tt.msElem.setAttribute("stroke-width",j.w.v))}return{createRenderFunction:function(_){switch(_.ty){case"fl":return h;case"gf":return g;case"gs":return d;case"st":return b;case"sh":case"el":case"rc":case"sr":return o;case"tr":return s;case"no":return a;default:return null}}}}();function SVGShapeElement(e,i,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,s),this.prevViewData=[]}function LetterProps(e,i,s,a,o,h){this.o=e,this.sw=i,this.sc=s,this.fc=a,this.m=o,this.p=h,this._mdf={o:!0,sw:!!i,sc:!!s,fc:!!a,m:!0,p:!0}}function TextProperty(e,i){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,i,s,a,o=this.shapes.length,h=this.stylesList.length,d=[],g=!1;for(s=0;s<h;s+=1){for(a=this.stylesList[s],g=!1,d.length=0,e=0;e<o;e+=1)(i=this.shapes[e]).styles.indexOf(a)!==-1&&(d.push(i),g=i._isAnimated||g);d.length>1&&g&&this.setShapesAsAnimated(d)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var i,s=e.length;for(i=0;i<s;i+=1)e[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,i){var s,a=new SVGStyleData(e,i),o=a.pElem;return e.ty==="st"?s=new SVGStrokeStyleData(this,e,a):e.ty==="fl"?s=new SVGFillStyleData(this,e,a):e.ty==="gf"||e.ty==="gs"?(s=new(e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,a),this.globalData.defs.appendChild(s.gf),s.maskId&&(this.globalData.defs.appendChild(s.ms),this.globalData.defs.appendChild(s.of),o.setAttribute("mask","url("+getLocationHref()+"#"+s.maskId+")"))):e.ty==="no"&&(s=new SVGNoStyleData(this,e,a)),e.ty!=="st"&&e.ty!=="gs"||(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),this.addToAnimatedContents(e,s),s},SVGShapeElement.prototype.createGroupElement=function(e){var i=new ShapeGroupData;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),i},SVGShapeElement.prototype.createTransformElement=function(e,i){var s=TransformPropertyFactory.getTransformProperty(this,e,this),a=new SVGTransformData(s,s.o,i);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,i,s){var a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7);var o=new SVGShapeData(i,s,ShapePropertyFactory.getShapeProp(this,e,a,this));return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,i){for(var s=0,a=this.animatedContents.length;s<a;){if(this.animatedContents[s].element===i)return;s+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:i,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var i,s=e.styles,a=this.stylesList.length;for(i=0;i<a;i+=1)this.stylesList[i].closed||s.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,i,s,a,o,h,d){var g,b,_,j,_e,tt,$=[].concat(h),nt=e.length-1,it=[],et=[];for(g=nt;g>=0;g-=1){if((tt=this.searchProcessedElement(e[g]))?i[g]=s[tt-1]:e[g]._render=d,e[g].ty==="fl"||e[g].ty==="st"||e[g].ty==="gf"||e[g].ty==="gs"||e[g].ty==="no")tt?i[g].style.closed=!1:i[g]=this.createStyleElement(e[g],o),e[g]._render&&i[g].style.pElem.parentNode!==a&&a.appendChild(i[g].style.pElem),it.push(i[g].style);else if(e[g].ty==="gr"){if(tt)for(_=i[g].it.length,b=0;b<_;b+=1)i[g].prevViewData[b]=i[g].it[b];else i[g]=this.createGroupElement(e[g]);this.searchShapes(e[g].it,i[g].it,i[g].prevViewData,i[g].gr,o+1,$,d),e[g]._render&&i[g].gr.parentNode!==a&&a.appendChild(i[g].gr)}else e[g].ty==="tr"?(tt||(i[g]=this.createTransformElement(e[g],a)),j=i[g].transform,$.push(j)):e[g].ty==="sh"||e[g].ty==="rc"||e[g].ty==="el"||e[g].ty==="sr"?(tt||(i[g]=this.createShapeElement(e[g],$,o)),this.setElementStyles(i[g])):e[g].ty==="tm"||e[g].ty==="rd"||e[g].ty==="ms"||e[g].ty==="pb"||e[g].ty==="zz"||e[g].ty==="op"?(tt?(_e=i[g]).closed=!1:((_e=ShapeModifiers.getModifier(e[g].ty)).init(this,e[g]),i[g]=_e,this.shapeModifiers.push(_e)),et.push(_e)):e[g].ty==="rp"&&(tt?(_e=i[g]).closed=!0:(_e=ShapeModifiers.getModifier(e[g].ty),i[g]=_e,_e.init(this,e,g,i),this.shapeModifiers.push(_e),d=!1),et.push(_e));this.addProcessedElement(e[g],g+1)}for(nt=it.length,g=0;g<nt;g+=1)it[g].closed=!0;for(nt=et.length,g=0;g<nt;g+=1)et[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,i,s=this.animatedContents.length;for(e=0;e<s;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,i,s,a,o,h){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 d=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,d=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,d=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,d=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,d=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,d=!0),!h.length||this.p[0]===h[0]&&this.p[1]===h[1]&&this.p[4]===h[4]&&this.p[5]===h[5]&&this.p[12]===h[12]&&this.p[13]===
vendor: 4,466 bytes, line 62
62h[13]||(this.p=h,this._mdf.p=!0,d=!0),d},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,s=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var a;this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,h=e||this.data.d.k[this.keysIndex].s;for(a=0;a<o;a+=1)h=s!==this.keysIndex?this.effectsSequence[a](h,h.t):this.effectsSequence[a](this.currentData,h.t);i!==h&&this.setCurrentData(h),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,s=0,a=e.length;s<=a-1&&!(s===a-1||e[s+1].t>i);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var i,s,a=[],o=0,h=e.length,d=!1;o<h;)i=e.charCodeAt(o),FontManager.isCombinedCharacter(i)?a[a.length-1]+=e.charAt(o):i>=55296&&i<=56319?(s=e.charCodeAt(o+1))>=56320&&s<=57343?(d||FontManager.isModifier(i,s)?(a[a.length-1]+=e.substr(o,2),d=!1):a.push(e.substr(o,2)),o+=1):a.push(e.charAt(o)):i>56319?(s=e.charCodeAt(o+1),FontManager.isZeroWidthJoiner(i,s)?(d=!0,a[a.length-1]+=e.substr(o,2),o+=1):a.push(e.charAt(o))):FontManager.isZeroWidthJoiner(i)?(a[a.length-1]+=e.charAt(o),d=!0):a.push(e.charAt(o)),o+=1;return a},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var i,s,a,o,h,d,g,b=this.elem.globalData.fontManager,_=this.data,j=[],_e=0,tt=_.m.g,$=0,nt=0,it=0,et=[],rt=0,st=0,at=b.getFontByName(e.f),ot=0,lt=getFontProperties(at);e.fWeight=lt.weight,e.fStyle=lt.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),s=e.finalText.length,e.finalLineHeight=e.lh;var pt,ct=e.tr/1e3*e.finalSize;if(e.sz)for(var ut,mt,ft=!0,dt=e.sz[0],St=e.sz[1];ft;){ut=0,rt=0,s=(mt=this.buildFinalText(e.t)).length,ct=e.tr/1e3*e.finalSize;var yt=-1;for(i=0;i<s;i+=1)pt=mt[i].charCodeAt(0),a=!1,mt[i]===" "?yt=i:pt!==13&&pt!==3||(rt=0,a=!0,ut+=e.finalLineHeight||1.2*e.finalSize),b.chars?(g=b.getCharData(mt[i],at.fStyle,at.fFamily),ot=a?0:g.w*e.finalSize/100):ot=b.measureText(mt[i],e.f,e.finalSize),rt+ot>dt&&mt[i]!==" "?(yt===-1?s+=1:i=yt,ut+=e.finalLineHeight||1.2*e.finalSize,mt.splice(i,yt===i?1:0,"\r"),yt=-1,rt=0):(rt+=ot,rt+=ct);ut+=at.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&St<ut?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=mt,s=e.finalText.length,ft=!1)}rt=-ct,ot=0;var xt,Pt=0;for(i=0;i<s;i+=1)if(a=!1,(pt=(xt=e.finalText[i]).charCodeAt(0))===13||pt===3?(Pt=0,et.push(rt),st=rt>st?rt:st,rt=-2*ct,o="",a=!0,it+=1):o=xt,b.chars?(g=b.getCharData(xt,at.fStyle,b.getFontByName(e.f).fFamily),ot=a?0:g.w*e.finalSize/100):ot=b.measureText(o,e.f,e.finalSize),xt===" "?Pt+=ot+ct:(rt+=ot+ct+Pt,Pt=0),j.push({l:ot,an:ot,add:$,n:a,anIndexes:[],val:o,line:it,animatorJustifyOffset:0}),tt==2){if($+=ot,o===""||o===" "||i===s-1){for(o!==""&&o!==" "||($-=ot);nt<=i;)j[nt].an=$,j[nt].ind=_e,j[nt].extra=ot,nt+=1;_e+=1,$=0}}else if(tt==3){if($+=ot,o===""||i===s-1){for(o===""&&($-=ot);nt<=i;)j[nt].an=$,j[nt].ind=_e,j[nt].extra=ot,nt+=1;$=0,_e+=1}}else j[_e].ind=_e,j[_e].extra=0,_e+=1;if(e.l=j,st=rt>st?rt:st,et.push(rt),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=st,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=et;var Ct,Et,ht,vt,bt=_.a;d=bt.length;var wt=[];for(h=0;h<d;h+=1){for((Ct=bt[h]).a.sc&&(e.strokeColorAnim=!0),Ct.a.sw&&(e.strokeWidthAnim=!0),(Ct.a.fc||Ct.a.fh||Ct.a.fs||Ct.a.fb)&&(e.fillColorAnim=!0),vt=0,ht=Ct.s.b,i=0;i<s;
vendor: 4,370 bytes, line 62
62i+=1)(Et=j[i]).anIndexes[h]=vt,(ht==1&&Et.val!==""||ht==2&&Et.val!==""&&Et.val!==" "||ht==3&&(Et.n||Et.val==" "||i==s-1)||ht==4&&(Et.n||i==s-1))&&(Ct.s.rn===1&&wt.push(vt),vt+=1);_.a[h].s.totalChars=vt;var _t,Rt=-1;if(Ct.s.rn===1)for(i=0;i<s;i+=1)Rt!=(Et=j[i]).anIndexes[h]&&(Rt=Et.anIndexes[h],_t=wt.splice(Math.floor(Math.random()*wt.length),1)[0]),Et.anIndexes[h]=_t}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=at.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var s=this.copyData({},this.data.d.k[i].s);s=this.copyData(s,e),this.data.d.k[i].s=s,this.recalculate(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,i=Math.min,s=Math.floor;function a(o,h){this._currentTextLength=-1,this.k=!1,this.data=h,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,h.s||{k:0},0,0,this),this.e="e"in h?PropertyFactory.getProp(o,h.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(o,h.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,h.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,h.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,h.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,h.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var h=0,d=0,g=1,b=1;this.ne.v>0?h=this.ne.v/100:d=-this.ne.v/100,this.xe.v>0?g=1-this.xe.v/100:b=1+this.xe.v/100;var _=BezierFactory.getBezierEasing(h,d,g,b).get,j=0,_e=this.finalS,tt=this.finalE,$=this.data.sh;if($===2)j=_(j=tt===_e?o>=tt?1:0:e(0,i(.5/(tt-_e)+(o-_e)/(tt-_e),1)));else if($===3)j=_(j=tt===_e?o>=tt?0:1:1-e(0,i(.5/(tt-_e)+(o-_e)/(tt-_e),1)));else if($===4)tt===_e?j=0:(j=e(0,i(.5/(tt-_e)+(o-_e)/(tt-_e),1)))<.5?j*=2:j=1-2*(j-.5),j=_(j);else if($===5){if(tt===_e)j=0;else{var nt=tt-_e,it=-nt/2+(o=i(e(0,o+.5-_e),tt-_e)),et=nt/2;j=Math.sqrt(1-it*it/(et*et))}j=_(j)}else $===6?(tt===_e?j=0:(o=i(e(0,o+.5-_e),tt-_e),j=(1+Math.cos(Math.PI+2*Math.PI*o/(tt-_e)))/2),j=_(j)):(o>=s(_e)&&(j=e(0,i(o-_e<0?i(tt,1)-(_e-o):tt-o,1))),j=_(j));if(this.sm.v!==100){var rt=.01*this.sm.v;rt===0&&(rt=1e-8);var st=.5-.5*rt;j<st?j=0:(j=(j-st)/rt)>1&&(j=1)}return j*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var h=this.data.r===2?1:100/this.data.totalChars,d=this.o.v/h,g=this.s.v/h+d,b=this.e.v/h+d;if(g>b){var _=g;g=b,b=_}this.finalS=g,this.finalE=b}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(o,h,d){return new a(o,h)}}}();function TextAnimatorDataProperty(e,i,s){var a={propType:!1},o=PropertyFactory.getProp,h=i.a;this.a={r:h.r?o(e,h.r,0,degToRads,s):a,rx:h.rx?o(e,h.rx,0,degToRads,s):a,ry:h.ry?o(e,h.ry,0,degToRads,s):a,sk:h.sk?o(e,h.sk,0,degToRads,s):a,sa:h.sa?o(e,h.sa,0,degToRads,s):a,s:h.s?o(e,h.s,1,.01,s):a,a:h.a?o(e,h.a,1,0,s):a,o:h.o?o(e,h.o,0,.01,s):a,p:h.p?o(e,h.p,1,0,s):a,sw:h.sw?o(e,h.sw,0,0,s):a,sc:h.sc?o(e,h.sc,1,0,s):a,fc:h.fc?o(e,h.fc,1,0,s):a,fh:h.fh?o(e,h.fh,0,0,s):a,fs:h.fs?o(e,h.fs,0,.01,s):a,fb:h.fb?o(e,h.fb,0,.01,s):a,t:h.t?o(e,h.t,0,0,s):a},this.s=TextSelectorProp.getTextSelectorProp(e,i.s,s),this.s.t=i.s.t}function TextAnimatorProperty(e,i,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=s,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,i,s=this._textData.a.length,a=PropertyFactory.getProp;for(e=0;e<s;
vendor: 9,959 bytes, line 62
62e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,this._mdf||this._isFirstFrame||i||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var s,a,o,h,d,g,b,_,j,_e,tt,$,nt,it,et,rt,st,at,ot,lt=this._moreOptions.alignment.v,pt=this._animatorsData,ct=this._textData,ut=this.mHelper,mt=this._renderType,ft=this.renderedLetters.length,dt=e.l;if(this._hasMaskedPath){if(ot=this._pathData.m,!this._pathData.n||this._pathData._mdf){var St,yt=ot.v;for(this._pathData.r.v&&(yt=yt.reverse()),d={tLength:0,segments:[]},h=yt._length-1,rt=0,o=0;o<h;o+=1)St=bez.buildBezierData(yt.v[o],yt.v[o+1],[yt.o[o][0]-yt.v[o][0],yt.o[o][1]-yt.v[o][1]],[yt.i[o+1][0]-yt.v[o+1][0],yt.i[o+1][1]-yt.v[o+1][1]]),d.tLength+=St.segmentLength,d.segments.push(St),rt+=St.segmentLength;o=h,ot.v.c&&(St=bez.buildBezierData(yt.v[o],yt.v[0],[yt.o[o][0]-yt.v[o][0],yt.o[o][1]-yt.v[o][1]],[yt.i[0][0]-yt.v[0][0],yt.i[0][1]-yt.v[0][1]]),d.tLength+=St.segmentLength,d.segments.push(St),rt+=St.segmentLength),this._pathData.pi=d}if(d=this._pathData.pi,g=this._pathData.f.v,tt=0,_e=1,_=0,j=!0,it=d.segments,g<0&&ot.v.c)for(d.tLength<Math.abs(g)&&(g=-Math.abs(g)%d.tLength),_e=(nt=it[tt=it.length-1].points).length-1;g<0;)g+=nt[_e].partialLength,(_e-=1)<0&&(_e=(nt=it[tt-=1].points).length-1);$=(nt=it[tt].points)[_e-1],et=(b=nt[_e]).partialLength}h=dt.length,s=0,a=0;var xt,Pt,Ct,Et,ht,vt=1.2*e.finalSize*.714,bt=!0;Ct=pt.length;var wt,_t,Rt,Dt,Lt,Ft,Mt,It,Ot,Bt,jt,zt,Tt=-1,Wt=g,hn=tt,pn=_e,an=-1,qt="",Kt=this.defaultPropsArray;if(e.j===2||e.j===1){var Gt=0,Yt=0,Xt=e.j===2?-.5:-1,nn=0,dn=!0;for(o=0;o<h;o+=1)if(dt[o].n){for(Gt&&(Gt+=Yt);nn<o;)dt[nn].animatorJustifyOffset=Gt,nn+=1;Gt=0,dn=!0}else{for(Pt=0;Pt<Ct;Pt+=1)(xt=pt[Pt].a).t.propType&&(dn&&e.j===2&&(Yt+=xt.t.v*Xt),(ht=pt[Pt].s.getMult(dt[o].anIndexes[Pt],ct.a[Pt].s.totalChars)).length?Gt+=xt.t.v*ht[0]*Xt:Gt+=xt.t.v*ht*Xt);dn=!1}for(Gt&&(Gt+=Yt);nn<o;)dt[nn].animatorJustifyOffset=Gt,nn+=1}for(o=0;o<h;o+=1){if(ut.reset(),Dt=1,dt[o].n)s=0,a+=e.yOffset,a+=bt?1:0,g=Wt,bt=!1,this._hasMaskedPath&&(_e=pn,$=(nt=it[tt=hn].points)[_e-1],et=(b=nt[_e]).partialLength,_=0),qt="",jt="",Ot="",zt="",Kt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(an!==dt[o].line){switch(e.j){case 1:g+=rt-e.lineWidths[dt[o].line];break;case 2:g+=(rt-e.lineWidths[dt[o].line])/2}an=dt[o].line}Tt!==dt[o].ind&&(dt[Tt]&&(g+=dt[Tt].extra),g+=dt[o].an/2,Tt=dt[o].ind),g+=lt[0]*dt[o].an*.005;var rn=0;for(Pt=0;Pt<Ct;Pt+=1)(xt=pt[Pt].a).p.propType&&((ht=pt[Pt].s.getMult(dt[o].anIndexes[Pt],ct.a[Pt].s.totalChars)).length?rn+=xt.p.v[0]*ht[0]:rn+=xt.p.v[0]*ht),xt.a.propType&&((ht=pt[Pt].s.getMult(dt[o].anIndexes[Pt],ct.a[Pt].s.totalChars)).length?rn+=xt.a.v[0]*ht[0]:rn+=xt.a.v[0]*ht);for(j=!0,this._pathData.a.v&&(g=.5*dt[0].an+(rt-this._pathData.f.v-.5*dt[0].an-.5*dt[dt.length-1].an)*Tt/(h-1),g+=this._pathData.f.v);j;)_+et>=g+rn||!nt?(st=(g+rn-_)/b.partialLength,_t=$.point[0]+(b.point[0]-$.point[0])*st,Rt=$.point[1]+(b.point[1]-$.point[1])*st,ut.translate(-lt[0]*dt[o].an*.005,-lt[1]*vt*.01),j=!1):nt&&(_+=b.partialLength,(_e+=1)>=nt.length&&(_e=0,it[tt+=1]?nt=it[tt].points:ot.v.c?(_e=0,nt=it[tt=0].points):(_-=b.partialLength,nt=null)),nt&&($=b,et=(b=nt[_e]).partialLength));wt=dt[o].an/2-dt[o].add,ut.translate(-wt,0,0)}else wt=dt[o].an/2-dt[o].add,ut.translate(-wt,0,0),ut.translate(-lt[0]*dt[o].an*.005,-lt[1]*vt*.01,0);for(Pt=0;Pt<Ct;Pt+=1)(xt=pt[Pt].a).t.propType&&(ht=pt[Pt].s.getMult(dt[o].anIndexes[Pt],ct.a[Pt].s.totalChars),s===0&&e.j===0||(this._hasMaskedPath?ht.length?g+=xt.t.v*ht[0]:g+=xt.t.v*ht:ht.length?s+=xt.t.v*ht[0]:s+=xt.t.v*ht));for(e.strokeWidthAnim&&(Ft=e.sw||0),e.strokeColorAnim&&(Lt=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(Mt=[e.fc[0],e.fc[1],e.fc[2]]),Pt=0;Pt<Ct;Pt+=1)(xt=pt[Pt].a).a.propType&&((ht=pt[Pt].s.getMult(dt[o].anIndexes[Pt],ct.a[Pt].s.totalChars)).length?ut.translate(-xt.a.v[0]*ht[0],-xt.a.v[1]*ht[1],xt.a.v[2]*ht[2]):ut.translate(-xt.a.v[0]*ht,-xt.a.v[1]*ht,xt.a.v[2]*ht));for(Pt=0;Pt<Ct;Pt+=1)(xt=pt[Pt].a).s.propType&&((ht=pt[Pt].s.getMult(dt[o].anIndexes[Pt],ct.a[Pt].s.totalChars)).length?ut.scale(1+(xt.s.v[0]-1)*ht[0],1+(xt.s.v[1]-1)*ht[1],1):ut.scale(1+(xt.s.v[0]-1)*ht,1+(xt.s.v[1]-1)*ht,1));for(Pt=0;Pt<Ct;Pt+=1){if(xt=pt[Pt].a,ht=pt[Pt].s.getMult(dt[o].anIndexes[Pt],ct.a[Pt].s.totalChars),xt.sk.propType&&(ht.length?ut.skewFromAxis(-xt.sk.v*ht[0],xt.sa.v*ht[1]):ut.skewFromAxis(-xt.sk.v*ht,xt.sa.v*ht)),xt.r.propType&&(ht.length?ut.rotateZ(-xt.r.v*ht[2]):ut.rotateZ(-xt.r.v*ht)),xt.ry.propType&&(ht.length?ut.rotateY(xt.ry.v*ht[1]):ut.rotateY(xt.ry.v*ht)),xt.rx.propType&&(ht.length?ut.rotateX(xt.rx.v*ht[0]):ut.rotateX(xt.rx.v*ht)),xt.o.propType&&(ht.length?Dt+=(xt.o.v*ht[0]-Dt)*ht[0]:Dt+=(xt.o.v*ht-Dt)*ht),e.strokeWidthAnim&&xt.sw.propType&&(ht.length?Ft+=xt.sw.v*ht[0]:Ft+=xt.sw.v*ht),e.strokeColorAnim&&xt.sc.propType)for(It=0;It<3;It+=1)ht.length?Lt[It]+=(xt.sc.v[It]-Lt[It])*ht[0]:Lt[It]+=(xt.sc.v[It]-Lt[It])*ht;if(e.fillColorAnim&&e.fc){if(xt.fc.propType)for(It=0;It<3;It+=1)ht.length?Mt[It]+=(xt.fc.v[It]-Mt[It])*ht[0]:Mt[It]+=(xt.fc.v[It]-Mt[It])*ht;xt.fh.propType&&(Mt=ht.length?addHueToRGB(Mt,xt.fh.v*ht[0]):addHueToRGB(Mt,xt.fh.v*ht)),xt.fs.propType&&(Mt=ht.length?addSaturationToRGB(Mt,xt.fs.v*ht[0]):addSaturationToRGB(Mt,xt.fs.v*ht)),xt.fb.propType&&(Mt=ht.length?addBrightnessToRGB(Mt,xt.fb.v*ht[0]):addBrightnessToRGB(Mt,xt.fb.v*ht))}}for(Pt=0;Pt<Ct;Pt+=1)(xt=pt[Pt].a).p.propType&&(ht=pt[Pt].s.getMult(dt[o].anIndexes[Pt],ct.a[Pt].s.totalChars),this._hasMaskedPath?ht.length?ut.translate(0,xt.p.v[1]*ht[0],-xt.p.v[2]*ht[1]):ut.translate(0,xt.p.v[1]*ht,-xt.p.v[2]*ht):ht.length?ut.translate(xt.p.v[0]*ht[0],xt.p.v[1]*ht[1],-xt.p.v[2]*ht[2]):ut.translate(xt.p.v[0]*ht,xt.p.v[1]*ht,-xt.p.v[2]*ht));if(e.strokeWidthAnim&&(Ot=Ft<0?0:Ft),e.strokeColorAnim&&(Bt="rgb("+Math.round(255*Lt[0])+","+Math.round(255*Lt[1])+","+Math.round(255*Lt[2])+")"),e.fillColorAnim&&e.fc&&(jt="rgb("+Math.round(255*Mt[0])+","+Math.round(255*Mt[1])+","+Math.round(255*Mt[2])+")"),this._hasMaskedPath){if(ut.translate(0,-e.ls),ut.translate(0,lt[1]*vt*.01+a,0),this._pathData.p.v){at=(b.point[1]-$.point[1])/(b.point[0]-$.point[0]);var bn=180*Math.atan(at)/Math.PI;b.point[0]<$.point[0]&&(bn+=180),ut.rotate(-bn*Math.PI/180)}ut.translate(_t,Rt,0),g-=lt[0]*dt[o].an*.005,dt[o+1]&&Tt!==dt[o+1].ind&&(g+=dt[o].an/2,g+=.001*e.tr*e.finalSize)}else{switch(ut.translate(s,a,0),e.ps&&ut.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:ut.translate(dt[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[dt[o].line]),0,0);break;case 2:ut.translate(dt[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[dt[o].line])/2,0,0)}ut.translate(0,-e.ls),ut.translate(wt,0,0),ut.translate(lt[0]*dt[o].an*.005,lt[1]*vt*.01,0),s+=dt[o].l+.001*e.tr*e.finalSize}mt==="html"?qt=ut.toCSS():mt==="svg"?qt=ut.to2dCSS():Kt=[ut.props[0],ut.props[1],ut.props[2],ut.props[3],ut.props[4],ut.props[5],ut.props[6],ut.props[7],ut.props[8],ut.props[9],ut.props[10],ut.props[11],ut.props[12],ut.props[13],ut.props[14],ut.props[15]],zt=Dt}ft<=o?(Et=new LetterProps(zt,Ot,Bt,jt,qt,Kt),this.renderedLetters.push(Et),ft+=1,this.lettersChangedFlag=!0):(Et=this.renderedLetters[o],this.lettersChangedFlag=Et.update(zt,Ot,Bt,jt,qt,Kt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,i,s){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,s),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,i){var s,a,o=i.length,h="";for(s=0;s<o;s+=1)i[s].ty==="sh"&&(a=i[s].ks.k,h+=buildShapeString(a,a.i.length,!0,e));return h},ITextElement.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,i,s,a,o){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s])/2,0,0)}i.translate(a,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};
vendor: 6,603 bytes, line 62
62var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,i,s){this.textSpans=[],this.renderType="svg",this.initElement(e,i,s)}function ISolidElement(e,i,s){this.initElement(e,i,s)}function NullElement(e,i,s){this.initFrame(),this.initBaseData(e,i,s),this.initFrame(),this.initTransform(e,i,s),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,i,s){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,i,s),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var s="";if(i&&i.title){var a=createNS("title"),o=createElementID();a.setAttribute("id",o),a.textContent=i.title,this.svgElement.appendChild(a),s+=o}if(i&&i.description){var h=createNS("desc"),d=createElementID();h.setAttribute("id",d),h.textContent=i.description,this.svgElement.appendChild(h),s+=" "+d}s&&this.svgElement.setAttribute("aria-labelledby",s);var g=createNS("defs");this.svgElement.appendChild(g);var b=createNS("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:g,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var e;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),e=0;e<15;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var i=0,s=e.length,a=[],o="";i<s;)e[i]==="\r"||e[i]==="�"?(a.push(o),o=""):o+=e[i],i+=1;return a.push(o),a},SVGTextLottieElement.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var s=e.shapes[0];if(s.it){var a=s.it[s.it.length-1];a.s&&(a.s.k[0]=i,a.s.k[1]=i)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,i;this.addDynamicProperty(this);var s=this.textProperty.currentData;this.renderedLetters=createSizedArray(s?s.l.length:0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.finalSize);var a=this.globalData.fontManager.getFontByName(s.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var o=s.fWeight,h=s.fStyle;this.layerElement.setAttribute("font-style",h),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",s.t);var d,g=s.l||[],b=!!this.globalData.fontManager.chars;i=g.length;var _=this.mHelper,j=this.data.singleShape,_e=0,tt=0,$=!0,nt=.001*s.tr*s.finalSize;if(!j||b||s.sz){var it,et=this.textSpans.length;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!b||!j||e===0){if(d=et>e?this.textSpans[e].span:createNS(b?"g":"text"),et<=e){if(d.setAttribute("stroke-linecap","butt"),d.setAttribute("stroke-linejoin","round"),d.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=d,b){var rt=createNS("g");d.appendChild(rt),this.textSpans[e].childSpan=rt}this.textSpans[e].span=d,this.layerElement.appendChild(d)}d.style.display="inherit"}if(_.reset(),j&&(g[e].n&&(_e=-nt,tt+=s.yOffset,tt+=$?1:0,$=!1),this.applyTextPropertiesToMatrix(s,_,g[e].line,_e,tt),_e+=g[e].l||0,_e+=nt),b){var st;if((it=this.globalData.fontManager.getCharData(s.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily)).t===1)st=new SVGCompElement(it.data,this.globalData,this);else{var at=emptyShapeData;it.data&&it.data.shapes&&(at=this.buildShapeData(it.data,s.finalSize)),st=new SVGShapeElement(at,this.globalData,this)}if(this.textSpans[e].glyph){var ot=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(ot.layerElement),ot.destroy()}this.textSpans[e].glyph=st,st._debug=!0,st.prepareFrame(0),st.renderFrame(),this.textSpans[e].childSpan.appendChild(st.layerElement),it.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else j&&d.setAttribute("transform","translate("+_.props[12]+","+_.props[13]+")"),d.textContent=g[e].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}j&&d&&d.setAttribute("d","")}else{var lt=this.textContainer,pt="start";switch(s.j){case 1:pt="end";break;case 2:pt="middle";break;default:pt="start"}lt.setAttribute("text-anchor",pt),lt.setAttribute("letter-spacing",nt);var ct=this.buildTextContents(s.finalText);for(i=ct.length,tt=s.ps?s.ps[1]+s.ascent:0,e=0;e<i;e+=1)(d=this.textSpans[e].span||createNS("tspan")).textContent=ct[e],d.setAttribute("x",0),d.setAttribute("y",tt),d.style.display="inherit",lt.appendChild(d),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=d,tt+=s.finalLineHeight;this.layerElement.appendChild(lt)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();
vendor: 6,243 bytes, line 62
62this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,i,s=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<s;e+=1)(i=this.textSpans[e].glyph)&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,i;this._sizeChanged=!0;var s,a,o,h=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;for(i=d.length,e=0;e<i;e+=1)d[e].n||(s=h[e],a=this.textSpans[e].span,(o=this.textSpans[e].glyph)&&o.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),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 i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var s=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var o=createElementID();s.setAttribute("id",o),s.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),i.appendChild(s),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var i=0,s=this.layers.length;for(i=0;i<s;i+=1)if(this.layers[i].ind===e)return i;return-1},SVGRendererBase.prototype.buildItem=function(e){var i=this.elements;if(!i[e]&&this.layers[e].ty!==99){i[e]=!0;var s=this.createItem(this.layers[e]);if(i[e]=s,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(s),s.initExpressions()),this.appendElementInPos(s,e),this.layers[e].tt){var a="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(a===-1)return;if(this.elements[a]&&this.elements[a]!==!0){var o=i[a].getMatte(this.layers[e].tt);s.setMatte(o)}else this.buildItem(a),this.addPendingElement(s)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,s=this.elements.length;i<s;){if(this.elements[i]===e){var a="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,o=this.elements[a].getMatte(this.layers[i].tt);e.setMatte(o);break}i+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var i;e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var s=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<s;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,i){var s=e.getBaseElement();if(s){for(var a,o=0;o<i;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement()&&
62(a=this.elements[o].getBaseElement()),o+=1;a?this.layerElement.insertBefore(s,a):this.layerElement.appendChild(s)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,i,s){this.initFrame(),this.initBaseData(e,i,s),this.initTransform(e,i,s),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&i.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var s,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=a-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},CVContextData.prototype.duplicate=function(){var e=2*this._length,i=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(i);var s=0;for(s=this._length;s<e;s+=1)this.saved[s]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVContextData.prototype.popTransform=function(){var e,i=this.saved[this.cArrPos],s=this.cTr.props;for(e=0;e<16;e+=1)s[e]=i[e];return i},CVContextData.prototype.popOpacity=function(){var e=this.savedOp[this.cArrPos];return this.cO=e,e},CVContextData.prototype.pop=function(){return this.cArrPos-=1,{transform:this.popTransform(),opacity:this.popOpacity()}},CVContextData.prototype.push=function(){var e,i=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var s=this.saved[this.cArrPos];for(e=0;e<16;e+=1)s[e]=i[e];this.savedOp[this.cArrPos]=this.cO,this.cArrPos+=1},CVContextData.prototype.getTransform=function(){return this.cTr},CVContextData.prototype.getOpacity=function(){return this.cO},CVContextData.prototype.setOpacity=function(e){this.cO=e},ShapeTransformManager.prototype={addTransformSequence:function(e){var i,s=e.length,a="_";for(i=0;i<s;i+=1)a+=e[i].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(e,i){for(var s,a=0,o=e.transforms.length,h=i;a<o&&!i;){if(e.transforms[a].transform.mProps._mdf){h=!0;break}a+=1}if(h)for(e.finalTransform.reset(),a=o-1;a>=0;a-=1)s=e.transforms[a].transform.mProps.v.props,e.finalTransform.transform(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12],s[13],s[14],s[15]);e._mdf=h},processSequences:function(e){var i,s=this.sequenceList.length;for(i=0;i<s;i+=1)this.processSequence(this.sequenceList[i],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",i=null,
vendor: 4,401 bytes, line 62
62s=null,a=null;function o(){var h,d,g;i||(h=createNS("svg"),d=createNS("filter"),g=createNS("feColorMatrix"),d.setAttribute("id",e),g.setAttribute("type","matrix"),g.setAttribute("color-interpolation-filters","sRGB"),g.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"),d.appendChild(g),h.appendChild(d),h.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(h.style.display="none"),a=h,document.body.appendChild(a),i=createTag("canvas"),(s=i.getContext("2d")).filter="url(#"+e+")",s.fillStyle="rgba(0,0,0,0)",s.fillRect(0,0,1,1))}return{load:o,get:function(h){return i||o(),i.width=h.width,i.height=h.height,s.filter="url(#"+e+")",i}}};function createCanvas(e,i){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,i);var s=createTag("canvas");return s.width=e,s.height=i,s}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas};function CVEffects(){}function CVMaskElement(e,i){var s;this.data=e,this.element=i,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a=this.masksProperties.length,o=!1;for(s=0;s<a;s+=1)this.masksProperties[s].mode!=="n"&&(o=!0),this.viewData[s]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[s],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,i,s,a,o=this.element.finalTransform.mat,h=this.element.canvasContext,d=this.masksProperties.length;for(h.beginPath(),e=0;e<d;e+=1)if(this.masksProperties[e].mode!=="n"){var g;this.masksProperties[e].inv&&(h.moveTo(0,0),h.lineTo(this.element.globalData.compSize.w,0),h.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),h.lineTo(0,this.element.globalData.compSize.h),h.lineTo(0,0)),a=this.viewData[e].v,i=o.applyToPointArray(a.v[0][0],a.v[0][1],0),h.moveTo(i[0],i[1]);var b=a._length;for(g=1;g<b;g+=1)s=o.applyToTriplePoints(a.o[g-1],a.i[g],a.v[g]),h.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=o.applyToTriplePoints(a.o[g-1],a.i[0],a.v[0]),h.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}this.element.globalData.renderer.save(!0),h.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,i,s,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o,h=4;i.ty==="rc"?h=5:i.ty==="el"?h=6:i.ty==="sr"&&(h=7),this.sh=ShapePropertyFactory.getShapeProp(e,i,h,e);var d,g=s.length;for(o=0;o<g;o+=1)s[o].closed||(d={transforms:a.addTransformSequence(s[o].transforms),trNodes:[]},this.styledShapes.push(d),s[o].elements.push(d))}function CVShapeElement(e,i,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,i,s)}function CVTextElement(e,i,s){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,i,s)}function CVImageElement(e,i,s){this.assetData=i.getAssetData(e.refId),this.img=i.imageLoader.getAsset(this.assetData),this.initElement(e,i,s)}function CVSolidElement(e,i,s){this.initElement(e,i,s)}function CanvasRendererBase(e,i){this.animationItem=e,this.renderConfig={clearCanvas:!i||i.clearCanvas===void 0||i.clearCanvas,context:i&&i.context||null,progressiveLoad:i&&i.progressiveLoad||!1,preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",className:i&&i.className||"",id:i&&i.id||""},this.renderConfig.dpr=i&&i.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=i&&i.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: 1,135 bytes, line 62
62w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(e,i,s){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,i,s),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,i){this.animationItem=e,this.renderConfig={clearCanvas:!i||i.clearCanvas===void 0||i.clearCanvas,context:i&&i.context||null,progressiveLoad:i&&i.progressiveLoad||!1,preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",className:i&&i.className||"",id:i&&i.id||"",runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.renderConfig.dpr=i&&i.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=i&&i.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: 2,427 bytes, line 62
62w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(e,i,s){this.initElement(e,i,s)}function HShapeElement(e,i,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,i,s),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,i,s){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,i,s)}function HCameraElement(e,i,s){this.initFrame(),this.initBaseData(e,i,s),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,h=e.ks.or.k.length;for(o=0;o<h;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,i,s){this.assetData=i.getAssetData(e.refId),this.initElement(e,i,s)}function HybridRendererBase(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,i,s){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,i,s),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}
vendor: 15,013 bytes, line 62
62function HybridRenderer(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"},runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,i=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(i);var s=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(s),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=i}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],i=e.getContext("2d");if(this.clearCanvas(i),i.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 s=assetLoader.getLumaCanvas(this.canvasContext.canvas);s.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(this.data.td!==1||e)){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(i),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,i){var s={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(i),transforms:[],elements:[],closed:e.hd===!0},a={};if(e.ty==="fl"||e.ty==="st"?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(s.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):e.ty!=="gf"&&e.ty!=="gs"||(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(s.lc=lineCapEnum[e.lc||2],s.lj=lineJoinEnum[e.lj||2],e.lj==1&&(s.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(s.wi=a.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);a.d=o,a.d.k||(s.da=a.d.dashArray,s.do=a.d.dashoffset[0])}}else s.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(s),a.style=s,a},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var i=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(i),this.addShapeToModifiers(i),i},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var i,s=this.stylesList.length;for(i=0;i<s;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var i,s=e.length;for(i=0;i<s;i+=1)e[i].closed=!0},CVShapeElement.prototype.searchShapes=function(e,i,s,a,o){var h,d,g,b,_,j,_e=e.length-1,tt=[],$=[],nt=[].concat(o);for(h=_e;h>=0;h-=1){if((b=this.searchProcessedElement(e[h]))?i[h]=s[b-1]:e[h]._shouldRender=a,e[h].ty==="fl"||e[h].ty==="st"||e[h].ty==="gf"||e[h].ty==="gs")b?i[h].style.closed=!1:i[h]=this.createStyleElement(e[h],nt),tt.push(i[h].style);else if(e[h].ty==="gr"){if(b)for(g=i[h].it.length,d=0;d<g;d+=1)i[h].prevViewData[d]=i[h].it[d];else i[h]=this.createGroupElement(e[h]);this.searchShapes(e[h].it,i[h].it,i[h].prevViewData,a,nt)}else e[h].ty==="tr"?(b||(j=this.createTransformElement(e[h]),i[h]=j),nt.push(i[h]),this.addTransformToStyleList(i[h])):e[h].ty==="sh"||e[h].ty==="rc"||e[h].ty==="el"||e[h].ty==="sr"?b||(i[h]=this.createShapeElement(e[h])):e[h].ty==="tm"||e[h].ty==="rd"||e[h].ty==="pb"||e[h].ty==="zz"||e[h].ty==="op"?(b?(_=i[h]).closed=!1:((_=ShapeModifiers.getModifier(e[h].ty)).init(this,e[h]),i[h]=_,this.shapeModifiers.push(_)),$.push(_)):e[h].ty==="rp"&&(b?(_=i[h]).closed=!0:(_=ShapeModifiers.getModifier(e[h].ty),i[h]=_,_.init(this,e,h,i),this.shapeModifiers.push(_),a=!1),$.push(_));this.addProcessedElement(e[h],h+1)}for(this.removeTransformFromStyleList(),this.closeStyles(tt),_e=$.length,h=0;h<_e;h+=1)$[h].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,i){(e._opMdf||i.op._mdf||this._isFirstFrame)&&(i.opacity=e.opacity,i.opacity*=i.op.v,i._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,i,s,a,o,h,d,g,b,_=this.stylesList.length,j=this.globalData.renderer,_e=this.globalData.canvasContext;for(e=0;e<_;e+=1)if(((g=(b=this.stylesList[e]).type)!=="st"&&g!=="gs"||b.wi!==0)&&b.data._shouldRender&&b.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(j.save(),h=b.elements,g==="st"||g==="gs"?(_e.strokeStyle=g==="st"?b.co:b.grd,_e.lineWidth=b.wi,_e.lineCap=b.lc,_e.lineJoin=b.lj,_e.miterLimit=b.ml||0):_e.fillStyle=g==="fl"?b.co:b.grd,j.ctxOpacity(b.coOp),g!=="st"&&g!=="gs"&&_e.beginPath(),j.ctxTransform(b.preTransforms.finalTransform.props),s=h.length,i=0;i<s;i+=1){for(g!=="st"&&g!=="gs"||(_e.beginPath(),b.da&&(_e.setLineDash(b.da),_e.lineDashOffset=b.do)),o=(d=h[i].trNodes).length,a=0;a<o;a+=1)d[a].t==="m"?_e.moveTo(d[a].p[0],d[a].p[1]):d[a].t==="c"?_e.bezierCurveTo(d[a].pts[0],d[a].pts[1],d[a].pts[2],d[a].pts[3],d[a].pts[4],d[a].pts[5]):_e.closePath();g!=="st"&&g!=="gs"||(_e.stroke(),b.da&&_e.setLineDash(this.dashResetter))}g!=="st"&&g!=="gs"&&_e.fill(b.r),j.restore()}},CVShapeElement.prototype.renderShape=function(e,i,s,a){var o,h;for(h=e,o=i.length-1;o>=0;o-=1)i[o].ty==="tr"?(h=s[o].transform,this.renderShapeTransform(e,h)):i[o].ty==="sh"||i[o].ty==="el"||i[o].ty==="rc"||i[o].ty==="sr"?this.renderPath(i[o],s[o]):i[o].ty==="fl"?this.renderFill(i[o],s[o],h):i[o].ty==="st"?this.renderStroke(i[o],s[o],h):i[o].ty==="gf"||i[o].ty==="gs"?this.renderGradientFill(i[o],s[o],h):i[o].ty==="gr"?this.renderShape(h,i[o].it,s[o].it):i[o].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,i){if(this._isFirstFrame||i._mdf||e.transforms._mdf){var s,a,o,h=e.trNodes,d=i.paths,g=d._length;h.length=0;var b=e.transforms.finalTransform;for(o=0;o<g;o+=1){var _=d.shapes[o];if(_&&_.v){for(a=_._length,s=1;s<a;s+=1)s===1&&h.push({t:"m",p:b.applyToPointArray(_.v[0][0],_.v[0][1],0)}),h.push({t:"c",pts:b.applyToTriplePoints(_.o[s-1],_.i[s],_.v[s])});a===1&&h.push({t:"m",p:b.applyToPointArray(_.v[0][0],_.v[0][1],0)}),_.c&&a&&(h.push({t:"c",pts:b.applyToTriplePoints(_.o[s-1],_.i[0],_.v[0])}),h.push({t:"z"}))}}e.trNodes=h}},CVShapeElement.prototype.renderPath=function(e,i){if(e.hd!==!0&&e._shouldRender){var s,a=i.styledShapes.length;for(s=0;s<a;s+=1)this.renderStyledShape(i.styledShapes[s],i.sh)}},CVShapeElement.prototype.renderFill=function(e,i,s){var a=i.style;(i.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"),(i.o._mdf||s._opMdf||this._isFirstFrame)&&(a.coOp=i.o.v*s.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,i,s){var a,o=i.style;if(!o.grd||i.g._mdf||i.s._mdf||i.e._mdf||e.t!==1&&(i.h._mdf||i.a._mdf)){var h,d=this.globalData.canvasContext,g=i.s.v,b=i.e.v;if(e.t===1)a=d.createLinearGradient(g[0],g[1],b[0],b[1]);else{var _=Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2)),j=Math.atan2(b[1]-g[1],b[0]-g[0]),_e=i.h.v;_e>=1?_e=.99:_e<=-1&&(_e=-.99);var tt=_*_e,$=Math.cos(j+i.a.v)*tt+g[0],nt=Math.sin(j+i.a.v)*tt+g[1];a=d.createRadialGradient($,nt,0,g[0],g[1],_)}var it=e.g.p,et=i.g.c,rt=1;for(h=0;h<it;h+=1)i.g._hasOpacity&&i.g._collapsable&&(rt=i.g.o[2*h+1]),a.addColorStop(et[4*h]/100,"rgba("+et[4*h+1]+","+et[4*h+2]+","+et[4*h+3]+","+rt+")");o.grd=a}o.coOp=i.o.v*s.opacity},CVShapeElement.prototype.renderStroke=function(e,i,s){var a=i.style,o=i.d;o&&(o._mdf||this._isFirstFrame)&&(a.da=o.dashArray,a.do=o.dashoffset[0]),(i.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")"),(i.o._mdf||s._opMdf||this._isFirstFrame)&&(a.coOp=i.o.v*s.opacity),(i.w._mdf||this._isFirstFrame)&&(a.wi=i.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var i=!1;e.fc?(i=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=i;var s=!1;e.sc&&(s=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var a,o,h,d,g,b,_,j,_e,tt,$,nt,it=this.globalData.fontManager.getFontByName(e.f),et=e.l,rt=this.mHelper;this.stroke=s,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var st=this.data.singleShape,at=.001*e.tr*e.finalSize,ot=0,lt=0,pt=!0,ct=0;for(a=0;a<o;a+=1){d=(h=this.globalData.fontManager.getCharData(e.finalText[a],it.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&h.data||{},rt.reset(),st&&et[a].n&&(ot=-at,lt+=e.yOffset,lt+=pt?1:0,pt=!1),_e=(_=d.shapes?d.shapes[0].it:[]).length,rt.scale(e.finalSize/100,e.finalSize/100),st&&this.applyTextPropertiesToMatrix(e,rt,et[a].line,ot,lt),$=createSizedArray(_e-1);var ut=0;for(j=0;j<_e;j+=1)if(_[j].ty==="sh"){for(b=_[j].ks.k.i.length,tt=_[j].ks.k,nt=[],g=1;g<b;g+=1)g===1&&nt.push(rt.applyToX(tt.v[0][0],tt.v[0][1],0),rt.applyToY(tt.v[0][0],tt.v[0][1],0)),nt.push(rt.applyToX(tt.o[g-1][0],tt.o[g-1][1],0),rt.applyToY(tt.o[g-1][0],tt.o[g-1][1],0),rt.applyToX(tt.i[g][0],tt.i[g][1],0),rt.applyToY(tt.i[g][0],tt.i[g][1],0),rt.applyToX(tt.v[g][0],tt.v[g][1],0),rt.applyToY(tt.v[g][0],tt.v[g][1],0));nt.push(rt.applyToX(tt.o[g-1][0],tt.o[g-1][1],0),rt.applyToY(tt.o[g-1][0],tt.o[g-1][1],0),rt.applyToX(tt.i[0][0],tt.i[0][1],0),rt.applyToY(tt.i[0][0],tt.i[0][1],0),rt.applyToX(tt.v[0][0],tt.v[0][1],0),rt.applyToY(tt.v[0][0],tt.v[0][1],0)),$[ut]=nt,ut+=1}st&&(ot+=et[a].l,ot+=at),this.textSpans[ct]?this.textSpans[ct].elem=$:this.textSpans[ct]={elem:$},ct+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,i,s,a,o,h,d=this.canvasContext;d.font=this.values.fValue,d.lineCap="butt",d.lineJoin="miter",d.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var g,b=this.textAnimator.renderedLetters,_=this.textProperty.currentData.l;i=_.length;var j,_e,tt=null,$=null,nt=null;for(e=0;e<i;
62e+=1)if(!_[e].n){if((g=b[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(g.p),this.globalData.renderer.ctxOpacity(g.o)),this.fill){for(g&&g.fc?tt!==g.fc&&(tt=g.fc,d.fillStyle=g.fc):tt!==this.values.fill&&(tt=this.values.fill,d.fillStyle=this.values.fill),a=(j=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),s=0;s<a;s+=1)for(h=(_e=j[s]).length,this.globalData.canvasContext.moveTo(_e[0],_e[1]),o=2;o<h;o+=6)this.globalData.canvasContext.bezierCurveTo(_e[o],_e[o+1],_e[o+2],_e[o+3],_e[o+4],_e[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(g&&g.sw?nt!==g.sw&&(nt=g.sw,d.lineWidth=g.sw):nt!==this.values.sWidth&&(nt=this.values.sWidth,d.lineWidth=this.values.sWidth),g&&g.sc?$!==g.sc&&($=g.sc,d.strokeStyle=g.sc):$!==this.values.stroke&&($=this.values.stroke,d.strokeStyle=this.values.stroke),a=(j=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),s=0;s<a;s+=1)for(h=(_e=j[s]).length,this.globalData.canvasContext.moveTo(_e[0],_e[1]),o=2;o<h;o+=6)this.globalData.canvasContext.bezierCurveTo(_e[o],_e[o+1],_e[o+2],_e[o+3],_e[o+4],_e[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}g&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var i,s,a=e.getContext("2d"),o=this.img.width,h=this.img.height,d=o/h,g=this.assetData.w/this.assetData.h,b=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;d>g&&b==="xMidYMid slice"||d<g&&b!=="xMidYMid slice"?i=(s=h)*g:s=(i=o)/g,a.drawImage(this.img,(o-i)/2,(h-s)/2,i,s,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){if(e[0]!==1||e[1]!==0||e[4]!==0||e[5]!==1||e[12]!==0||e[13]!==0)if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(e);var i=this.contextData.getTransform(),s=i.props;this.transformMat.transform(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12],s[13],s[14],s[15]),i.cloneFromProps(this.transformMat.props);var a=i.props;this.canvasContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])}else this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){var i=this.contextData.getOpacity();if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=e<0?0:e,void(this.globalData.currentGlobalAlpha=i);i*=e<0?0:e,this.contextData.setOpacity(i),this.globalData.currentGlobalAlpha!==i&&(this.canvasContext.globalAlpha=i,this.globalData.currentGlobalAlpha=i)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore(
vendor: 4,302 bytes, line 62
62)},CanvasRendererBase.prototype.save=function(e){this.renderConfig.clearCanvas?(e&&this.canvasContext.save(),this.contextData.push()):this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(this.renderConfig.clearCanvas){e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over");var i=this.contextData.pop(),s=i.transform,a=i.opacity;this.canvasContext.setTransform(s[0],s[1],s[4],s[5],s[12],s[13]),this.globalData.currentGlobalAlpha!==a&&(this.canvasContext.globalAlpha=a,this.globalData.currentGlobalAlpha=a)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var i=this.animationItem.container.style;i.width="100%",i.height="100%";var s="0px 0px 0px";i.transformOrigin=s,i.mozTransformOrigin=s,i.webkitTransformOrigin=s,i["-webkit-transform"]=s,i.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,i){var s,a,o,h;if(this.reset(),e?(s=e,a=i,this.canvasContext.canvas.width=s,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(s=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(s=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=s*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var d=this.renderConfig.preserveAspectRatio.split(" "),g=d[1]||"meet",b=d[0]||"xMidYMid",_=b.substr(0,4),j=b.substr(4);o=s/a,(h=this.transformCanvas.w/this.transformCanvas.h)>o&&g==="meet"||h<o&&g==="slice"?(this.transformCanvas.sx=s/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=_==="xMid"&&(h<o&&g==="meet"||h>o&&g==="slice")?(s-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:_==="xMax"&&(h<o&&g==="meet"||h>o&&g==="slice")?(s-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=j==="YMid"&&(h>o&&g==="meet"||h<o&&g==="slice")?(a-this.transformCanvas.h*(s/this.transformCanvas.w))/2*this.renderConfig.dpr:j==="YMax"&&(h>o&&g==="meet"||h<o&&g==="slice")?(a-this.transformCanvas.h*(s/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=s/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;
vendor: 4,220 bytes, line 62
62for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,i){if((this.renderedFrame!==e||this.renderConfig.clearCanvas!==!0||i)&&!this.destroyed&&e!==-1){var s;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||i,this.globalData.projectInterface.currentFrame=e;var a=this.layers.length;for(this.completeLayers||this.checkLayers(e),s=0;s<a;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(e-this.layers[s].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),s=a-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var i=this.elements;if(!i[e]&&this.layers[e].ty!==99){var s=this.createItem(this.layers[e],this,this.globalData);i[e]=s,s.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,i=this.canvasContext;for(i.beginPath(),i.moveTo(0,0),i.lineTo(this.data.w,0),i.lineTo(this.data.w,this.data.h),i.lineTo(0,this.data.h),i.lineTo(0,0),i.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();e.transform=i,e.webkitTransform=i}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRe
vendor: 6,240 bytes, line 62
62nderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var i=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",i.w),e.setAttribute("height",i.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,i){var s,a=e.length;for(s=0;s<a;s+=1)i=e[s].mProps.v.applyToPointArray(i[0],i[1],0);return i},HShapeElement.prototype.calculateShapeBoundingBox=function(e,i){var s,a,o,h,d,g=e.sh.v,b=e.transformers,_=g._length;if(!(_<=1)){for(s=0;s<_-1;s+=1)a=this.getTransformedPoint(b,g.v[s]),o=this.getTransformedPoint(b,g.o[s]),h=this.getTransformedPoint(b,g.i[s+1]),d=this.getTransformedPoint(b,g.v[s+1]),this.checkBounds(a,o,h,d,i);g.c&&(a=this.getTransformedPoint(b,g.v[s]),o=this.getTransformedPoint(b,g.o[s]),h=this.getTransformedPoint(b,g.i[0]),d=this.getTransformedPoint(b,g.v[0]),this.checkBounds(a,o,h,d,i))}},HShapeElement.prototype.checkBounds=function(e,i,s,a,o){this.getBoundsOfCurve(e,i,s,a);var h=this.shapeBoundingBox;o.x=bmMin(h.left,o.x),o.xMax=bmMax(h.right,o.xMax),o.y=bmMin(h.top,o.y),o.yMax=bmMax(h.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,i,s,a){for(var o,h,d,g,b,_,j,_e=[[e[0],a[0]],[e[1],a[1]]],tt=0;tt<2;++tt)h=6*e[tt]-12*i[tt]+6*s[tt],o=-3*e[tt]+9*i[tt]-9*s[tt]+3*a[tt],d=3*i[tt]-3*e[tt],h|=0,d|=0,(o|=0)===0&&h===0||(o===0?(g=-d/h)>0&&g<1&&_e[tt].push(this.calculateF(g,e,i,s,a,tt)):(b=h*h-4*d*o)>=0&&((_=(-h+bmSqrt(b))/(2*o))>0&&_<1&&_e[tt].push(this.calculateF(_,e,i,s,a,tt)),(j=(-h-bmSqrt(b))/(2*o))>0&&j<1&&_e[tt].push(this.calculateF(j,e,i,s,a,tt))));this.shapeBoundingBox.left=bmMin.apply(null,_e[0]),this.shapeBoundingBox.top=bmMin.apply(null,_e[1]),this.shapeBoundingBox.right=bmMax.apply(null,_e[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,_e[1])},HShapeElement.prototype.calculateF=function(e,i,s,a,o,h){return bmPow(1-e,3)*i[h]+3*bmPow(1-e,2)*e*s[h]+3*(1-e)*bmPow(e,2)*a[h]+bmPow(e,3)*o[h]},HShapeElement.prototype.calculateBoundingBox=function(e,i){var s,a=e.length;for(s=0;s<a;s+=1)e[s]&&e[s].sh?this.calculateShapeBoundingBox(e[s],i):e[s]&&e[s].it?this.calculateBoundingBox(e[s].it,i):e[s]&&e[s].style&&e[s].w&&this.expandStrokeBoundingBox(e[s].w,i)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,i){var s=0;if(e.keyframes){for(var a=0;a<e.keyframes.length;a+=1){var o=e.keyframes[a].s;o>s&&(s=o)}s*=e.mult}else s=e.v*e.mult;i.x-=s,i.xMax+=s,i.y-=s,i.yMax+=s},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,i=999999;if(e.x=i,e.xMax=-i,e.y=i,e.yMax=-i,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var s=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),s=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),s=!0),s||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=o,a.webkitTransform=o}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var i=this.innerElem.style,s=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";i.fill=s,i.color=s,e.sc&&(i.stroke=this.buildColor(e.sc),i.strokeWidth=e.sw+"px");var a,o,h=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(i.fontSize=e.finalSize+"px",i.lineHeight=e.finalSize+"px",h.fClass)this.innerElem.className=h.fClass;else{i.fontFamily=h.fFamily;var d=e.fWeight,g=e.fStyle;i.fontStyle=g,i.fontWeight=d}var b,_,j,_e=e.l;o=_e.length;var tt,$=this.mHelper,nt="",it=0;for(a=0;a<o;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[it]?b
vendor: 22,108 bytes, line 62
62=this.textPaths[it]:((b=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),b.setAttribute("stroke-linejoin",lineJoinEnum[2]),b.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[it]?j=(_=this.textSpans[it]).children[0]:((_=createTag("div")).style.lineHeight=0,(j=createNS("svg")).appendChild(b),styleDiv(_)))):this.isMasked?b=this.textPaths[it]?this.textPaths[it]:createNS("text"):this.textSpans[it]?(_=this.textSpans[it],b=this.textPaths[it]):(styleDiv(_=createTag("span")),styleDiv(b=createTag("span")),_.appendChild(b)),this.globalData.fontManager.chars){var et,rt=this.globalData.fontManager.getCharData(e.finalText[a],h.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(et=rt?rt.data:null,$.reset(),et&&et.shapes&&et.shapes.length&&(tt=et.shapes[0].it,$.scale(e.finalSize/100,e.finalSize/100),nt=this.createPathShape($,tt),b.setAttribute("d",nt)),this.isMasked)this.innerElem.appendChild(b);else{if(this.innerElem.appendChild(_),et&&et.shapes){document.body.appendChild(j);var st=j.getBBox();j.setAttribute("width",st.width+2),j.setAttribute("height",st.height+2),j.setAttribute("viewBox",st.x-1+" "+(st.y-1)+" "+(st.width+2)+" "+(st.height+2));var at=j.style,ot="translate("+(st.x-1)+"px,"+(st.y-1)+"px)";at.transform=ot,at.webkitTransform=ot,_e[a].yOffset=st.y-1}else j.setAttribute("width",1),j.setAttribute("height",1);_.appendChild(j)}}else if(b.textContent=_e[a].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(b);else{this.innerElem.appendChild(_);var lt=b.style,pt="translate3d(0,"+-e.finalSize/1.2+"px,0)";lt.transform=pt,lt.webkitTransform=pt}this.isMasked?this.textSpans[it]=b:this.textSpans[it]=_,this.textSpans[it].style.display="block",this.textPaths[it]=b,it+=1}for(;it<this.textSpans.length;)this.textSpans[it].style.display="none",it+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var i="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=i,e.webkitTransform=i}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var s,a,o,h,d,g=0,b=this.textAnimator.renderedLetters,_=this.textProperty.currentData.l;for(a=_.length,s=0;s<a;s+=1)_[s].n?g+=1:(h=this.textSpans[s],d=this.textPaths[s],o=b[g],g+=1,o._mdf.m&&(this.isMasked?h.setAttribute("transform",o.m):(h.style.webkitTransform=o.m,h.style.transform=o.m)),h.style.opacity=o.o,o.sw&&o._mdf.sw&&d.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&d.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(d.setAttribute("fill",o.fc),d.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var j=this.innerElem.getBBox();if(this.currentBBox.w!==j.width&&(this.currentBBox.w=j.width,this.svgElement.setAttribute("width",j.width)),this.currentBBox.h!==j.height&&(this.currentBBox.h=j.height,this.svgElement.setAttribute("height",j.height)),this.currentBBox.w!==j.width+2||this.currentBBox.h!==j.height+2||this.currentBBox.x!==j.x-1||this.currentBBox.y!==j.y-1){this.currentBBox.w=j.width+2,this.currentBBox.h=j.height+2,this.currentBBox.x=j.x-1,this.currentBBox.y=j.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var _e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=_e,e.webkitTransform=_e}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,i,s,a,o=this.comp.threeDElements.length;for(e=0;e<o;e+=1)if((i=this.comp.threeDElements[e]).type==="3d"){s=i.perspectiveElem.style,a=i.container.style;var h=this.pe.v+"px",d="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.perspective=h,s.webkitPerspective=h,a.transformOrigin="0px 0px 0px",a.mozTransformOrigin="0px 0px 0px",a.webkitTransformOrigin="0px 0px 0px",s.transform=d,s.webkitTransform=d}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,i,s=this._isFirstFrame;if(this.hierarchy)for(i=this.hierarchy.length,e=0;e<i;e+=1)s=this.hierarchy[e].finalTransform.mProp._mdf||s;if(s||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=i=this.hierarchy.length-1;e>=0;e-=1){var a=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;o=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 h=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),d=[o[0]/h,o[1]/h,o[2]/h],g=Math.sqrt(d[2]*d[2]+d[0]*d[0]),b=Math.atan2(d[1],g),_=Math.atan2(d[0],-d[2]);this.mat.rotateY(_).rotateX(-b)}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 j=!this._prevMat.equals(this.mat);if((j||this.pe._mdf)&&this.comp.threeDElements){var _e,tt,$;for(i=this.comp.threeDElements.length,e=0;e<i;e+=1)if((_e=this.comp.threeDElements[e]).type==="3d"){if(j){var nt=this.mat.toCSS();($=_e.container.style).transform=nt,$.webkitTransform=nt}this.pe._mdf&&((tt=_e.perspectiveElem.style).perspective=this.pe.v+"px",tt.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),i=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(i),i.crossOrigin="anonymous",i.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,i){var s=e.getBaseElement();if(s){var a=this.layers[i];if(a.ddd&&this.supports3d)this.addTo3dContainer(s,i);else if(this.threeDElements)this.addTo3dContainer(s,i);else{for(var o,h,d=0;d<i;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement&&(h=this.elements[d],o=(this.layers[d].ddd?this.getThreeDContainerByPos(d):h.getBaseElement())||o),d+=1;o?a.ddd&&this.supports3d||this.layerElement.insertBefore(s,o):a.ddd&&this.supports3d||this.layerElement.appendChild(s)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var i=0,s=this.threeDElements.length;i<s;){if(this.threeDElements[i].startPos<=e&&this.threeDElements[i].endPos>=e)return this.threeDElements[i].perspectiveElem;i+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,i){var s,a,o=createTag("div");styleDiv(o);var h=createTag("div");if(styleDiv(h),i==="3d"){(s=o.style).width=this.globalData.compSize.w+"px",s.height=this.globalData.compSize.h+"px",s.webkitTransformOrigin="50% 50%",s.mozTransformOrigin="50% 50%",s.transformOrigin="50% 50%";var d="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(a=h.style).transform=d,a.webkitTransform=d}o.appendChild(h);var g={container:h,perspectiveElem:o,startPos:e,endPos:e,type:i};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var e,i,s=this.layers.length,a="";for(e=0;e<s;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(a!=="3d"&&(a="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(a!=="2d"&&(a="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(e=(s=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,i){for(var s=0,a=this.threeDElements.length;s<a;){if(i<=this.threeDElements[s].endPos){for(var o,h=this.threeDElements[s].startPos;h<i;)this.elements[h]&&this.elements[h].getBaseElement&&(o=this.elements[h].getBaseElement()),h+=1;o?this.threeDElements[s].container.insertBefore(e,o):this.threeDElements[s].container.appendChild(e);break}s+=1}},HybridRendererBase.prototype.configAnimation=function(e){var i=createTag("div"),s=this.animationItem.wrapper,a=i.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=i,styleDiv(i),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&i.setAttribute("class",this.renderConfig.className),s.appendChild(i),a.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var h=createNS("defs");o.appendChild(h),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=h,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,i,s,a,o=this.animationItem.wrapper.offsetWidth,h=this.animationItem.wrapper.offsetHeight,d=o/h;this.globalData.compSize.w/this.globalData.compSize.h>d?(e=o/this.globalData.compSize.w,i=o/this.globalData.compSize.w,s=0,a=(h-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(e=h/this.globalData.compSize.h,i=h/this.globalData.compSize.h,s=(o-this.globalData.compSize.w*(h/this.globalData.compSize.h))/2,a=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+e+",0,0,0,0,"+i+",0,0,0,0,1,0,"+s+","+a+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,i=this.globalData.compSize.w,s=this.globalData.compSize.h,a=this.threeDElements.length;for(e=0;e<a;e+=1){var o=this.threeDElements[e].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(i,2)+Math.pow(s,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var i,s=e.length,a=createTag("div");for(i=0;i<s;i+=1)if(e[i].xt){var o=this.createComp(e[i],a,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,i){for(var s,a=0;a<i;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.layerElement.insertBefore(e,s):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function i(s){for(var a=0,o=e.layers.length;a<o;){if(e.layers[a].nm===s||e.layers[a].ind===s)return e.elements[a].layerInterface;a+=1}return null}return Object.defineProperty(i,"_name",{value:e.data.nm}),i.layer=i,i.pixelAspect=1,i.height=e.data.h||e.globalData.compSize.h,i.width=e.data.w||e.globalData.compSize.w,i.pixelAspect=1,i.frameDuration=1/e.globalData.frameRate,i.displayStartTime=0,i.numLayers=e.layers.length,i},Expressions=function(){var e={};return e.initExpressions=function(i){var s=0,a=[];i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=function(){s+=1},i.renderer.globalData.popExpression=function(){(s-=1)===0&&function(){var o,h=a.length;for(o=0;o<h;o+=1)a[o].release();a.length=0}()},i.renderer.globalData.registerExpressionProperty=function(o){a.indexOf(o)===-1&&a.push(o)}},e}(),MaskManagerInterface=function(){function e(i,s){this._mask=i,this._data=s}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(i){var s,a=createSizedArray(i.viewData.length),o=i.viewData.length;for(s=0;s<o;s+=1)a[s]=new e(i.viewData[s],i.masksProperties[s]);return function(h){for(s=0;s<o;){if(i.masksProperties[s].nm===h)return a[s];s+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},i={pv:[0,0,0],v:[0,0,0],mult:1};function s(o,h,d){Object.defineProperty(o,"velocity",{get:function(){return h.getVelocityAtTime(h.comp.currentFrame)}}),o.numKeys=h.keyframes?h.keyframes.length:0,o.key=function(g){if(!o.numKeys)return 0;var b="";b="s"in h.keyframes[g-1]?h.keyframes[g-1].s:"e"in h.keyframes[g-2]?h.keyframes[g-2].e:h.keyframes[g-2].s;var _=d==="unidimensional"?new Number(b):Object.assign({},b);return _.time=h.keyframes[g-1].t/h.elem.comp.globalData.frameRate,_.value=d==="unidimensional"?b[0]:b,_},o.valueAtTime=h.getValueAtTime,o.speedAtTime=h.getSpeedAtTime,o.velocityAtTime=h.getVelocityAtTime,o.propertyGroup=h.propertyGroup}function a(){return e}return function(o){return o?o.propType==="unidimensional"?function(h){h&&"pv"in h||(h=e);var d=1/h.mult,g=h.pv*d,b=new Number(g);return b.value=g,s(b,h,"unidimensional"),function(){return h.k&&h.getValue(),g=h.v*d,b.value!==g&&((b=new Number(g)).value=g,s(b,h,"unidimensional")),b}}(o):function(h){h&&"pv"in h||(h=i);var d=1/h.mult,g=h.data&&h.data.l||h.pv.length,b=createTypedArray("float32",g),_=createTypedArray("float32",g);return b.value=_,s(b,h,"multidimensional"),function(){h.k&&h.getValue();for(var j=0;j<g;j+=1)_[j]=h.v[j]*d,b[j]=_[j];return b}}(o):a}}(),TransformExpressionInterface=function(e){function i(d){switch(d){case"scale":case"Scale":case"ADBE Scale":case 6:return i.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return i.rotation;case"ADBE Rotate X":return i.xRotation;case"ADBE Rotate Y":return i.yRotation;case"position":case"Position":case"ADBE Position":case 2:return i.position;case"ADBE Position_0":return i.xPosition;case"ADBE Position_1":return i.yPosition;case"ADBE Position_2":return i.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return i.anchorPoint;case"opacity":case"Opacity":case 11:return i.opacity;default:return null}}var s,a,o,h;return Object.defineProperty(i,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(i,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(i,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(i,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(i,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?h=ExpressionPropertyInterface(e.p):(s=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(i,"position",{get:function(){return e.p?h():[s(),a(),o?o():0]}}),Object.defineProperty(i,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(i,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(i,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(i,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(i,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(i,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(i,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(i,"orientation",{get:ExpressionPropertyInterface(e.or)}),i},LayerExpressionInterface=function(){function e(_){var j=new Matrix;return _!==void 0?this._elem.finalTransform.mProp.getValueAtTime(_).clone(j):this._elem.finalTransform.mProp.applyToMatrix(j),j}function i(_,j){var _e=this.getMatrix(j);return _e.props[12]=0,_e.props[13]=0,_e.props[14]=0,this.applyPoint(_e,_)}function s(_,j){var _e=this.getMatrix(j);return this.applyPoint(_e,_)}function a(_,j){var _e=this.getMatrix(j);return _e.props[12]=0,_e.props[13]=0,_e.props[14]=0,this.invertPoint(_e,_)}function o(_,j){var _e=this.getMatrix(j);return this.invertPoint(_e,_)}function h(_,j){if(this._elem.hierarchy&&this._elem.hierarchy.length){var _e,tt=this._elem.hierarchy.length;for(_e=0;_e<tt;_e+=1)this._elem.hierarchy[_e].finalTransform.mProp.applyToMatrix(_)}return _.applyToPointArray(j[0],j[1],j[2]||0)}function d(_,j){if(this._elem.hierarchy&&this._elem.hierarchy.length){var _e,tt=this._elem.hierarchy.length;for(_e=0;_e<tt;_e+=1)this._elem.hierarchy[_e].finalTransform.mProp.applyToMatrix(_)}return _.inversePoint(j)}function g(_){var j=new Matrix;if(j.reset(),this._elem.finalTransform.mProp.applyToMatrix(j),this._elem.hierarchy&&this._elem.hierarchy.length){var _e,tt=this._elem.hierarchy.length;for(_e=0;_e<tt;_e+=1)this._elem.hierarchy[_e].finalTransform.mProp.applyToMatrix(j);return j.inversePoint(_)}return j.inversePoint(_)}function b(){return[1,1,1,1]}return function(_){var j;function _e($){switch($){case"ADBE Root Vectors Group":case"Contents":case 2:return _e.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return j;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return _e.effect;case"ADBE Text Properties":return _e.textInterface;default:return null}}_e.getMatrix=e,_e.invertPoint=d,_e.applyPoint=h,_e.toWorld=s,_e.toWorldVec=i,_e.fromWorld=o,_e.fromWorldVec=a,_e.toComp=s,_e.fromComp=g,_e.sampleImage=b,_e.sourceRectAtTime=_.sourceRectAtTime.bind(_),_e._elem=_;var tt=getDescriptor(j=TransformExpressionInterface(_.finalTransform.mProp),"anchorPoint");return Object.defineProperties(_e,{hasParent:{get:function(){return _.hierarchy.length}},parent:{get:function(){return _.hierarchy[0].layerInterface}},rotation:getDescriptor(j,"rotation"),scale:getDescriptor(j,"scale"),position:getDescriptor(j,"position"),opacity:getDescriptor(j,"opacity"),anchorPoint:tt,anchor_point:tt,transform:{get:function(){return j}},active:{get:function(){return _.isInRange}}}),_e.startTime=_.data.st,_e.index=_.data.ind,_e.source=_.data.refId,_e.height=_.data.ty===0?_.data.h:100,_e.width=_.data.ty===0?_.data.w:100,_e.inPoint=_.data.ip/_.comp.globalData.frameRate,_e.outPoint=_.data.op/_.comp.globalData.frameRate,_e._name=_.data.nm,_e.registerMaskInterface=function($){_e.mask=new MaskManagerInterface($,_)},_e.registerEffectsInterface=function($){_e.effect=$},_e}}(),propertyGroupFactory=function(e,i){return function(s){return(s=s===void 0?1:s)<=0?e:i(s-1)}},PropertyInterface=function(e,i){var s={_name:e};return function(a){return(a=a===void 0?1:a)<=0?s:i(a-1)}}
vendor: 7,642 bytes, line 62
62,EffectsExpressionInterface=function(){function e(s,a,o,h){function d(_e){for(var tt=s.ef,$=0,nt=tt.length;$<nt;){if(_e===tt[$].nm||_e===tt[$].mn||_e===tt[$].ix)return tt[$].ty===5?_[$]:_[$]();$+=1}throw new Error}var g,b=propertyGroupFactory(d,o),_=[],j=s.ef.length;for(g=0;g<j;g+=1)s.ef[g].ty===5?_.push(e(s.ef[g],a.effectElements[g],a.effectElements[g].propertyGroup,h)):_.push(i(a.effectElements[g],s.ef[g].ty,h,b));return s.mn==="ADBE Color Control"&&Object.defineProperty(d,"color",{get:function(){return _[0]()}}),Object.defineProperties(d,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:b}}),d.enabled=s.en!==0,d.active=d.enabled,d}function i(s,a,o,h){var d=ExpressionPropertyInterface(s.p);return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",h)),function(){return a===10?o.comp.compInterface(s.p.v):d()}}return{createEffectsInterface:function(s,a){if(s.effectsManager){var o,h=[],d=s.data.ef,g=s.effectsManager.effectElements.length;for(o=0;o<g;o+=1)h.push(e(d[o],s.effectsManager.effectElements[o],a,s));var b=s.data.ef||[],_=function(j){for(o=0,g=b.length;o<g;){if(j===b[o].nm||j===b[o].mn||j===b[o].ix)return h[o];o+=1}return null};return Object.defineProperty(_,"numProperties",{get:function(){return b.length}}),_}return null}}}(),ShapePathInterface=function(e,i,s){var a=i.sh;function o(d){return d==="Shape"||d==="shape"||d==="Path"||d==="path"||d==="ADBE Vector Shape"||d===2?o.path:null}var h=propertyGroupFactory(o,s);return a.setGroupProperty(PropertyInterface("Path",h)),Object.defineProperties(o,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:s}}),o},ShapeExpressionInterface=function(){function e($,nt,it){var et,rt=[],st=$?$.length:0;for(et=0;et<st;et+=1)$[et].ty==="gr"?rt.push(i($[et],nt[et],it)):$[et].ty==="fl"?rt.push(s($[et],nt[et],it)):$[et].ty==="st"?rt.push(h($[et],nt[et],it)):$[et].ty==="tm"?rt.push(d($[et],nt[et],it)):$[et].ty==="tr"||($[et].ty==="el"?rt.push(b($[et],nt[et],it)):$[et].ty==="sr"?rt.push(_($[et],nt[et],it)):$[et].ty==="sh"?rt.push(ShapePathInterface($[et],nt[et],it)):$[et].ty==="rc"?rt.push(j($[et],nt[et],it)):$[et].ty==="rd"?rt.push(_e($[et],nt[et],it)):$[et].ty==="rp"?rt.push(tt($[et],nt[et],it)):$[et].ty==="gf"?rt.push(a($[et],nt[et],it)):rt.push(o($[et],nt[et])));return rt}function i($,nt,it){var et=function(at){switch(at){case"ADBE Vectors Group":case"Contents":case 2:return et.content;default:return et.transform}};et.propertyGroup=propertyGroupFactory(et,it);var rt=function(at,ot,lt){var pt,ct=function(mt){for(var ft=0,dt=pt.length;ft<dt;){if(pt[ft]._name===mt||pt[ft].mn===mt||pt[ft].propertyIndex===mt||pt[ft].ix===mt||pt[ft].ind===mt)return pt[ft];ft+=1}return typeof mt=="number"?pt[mt-1]:null};ct.propertyGroup=propertyGroupFactory(ct,lt),pt=e(at.it,ot.it,ct.propertyGroup),ct.numProperties=pt.length;var ut=g(at.it[at.it.length-1],ot.it[ot.it.length-1],ct.propertyGroup);return ct.transform=ut,ct.propertyIndex=at.cix,ct._name=at.nm,ct}($,nt,et.propertyGroup),st=g($.it[$.it.length-1],nt.it[nt.it.length-1],et.propertyGroup);return et.content=rt,et.transform=st,Object.defineProperty(et,"_name",{get:function(){return $.nm}}),et.numProperties=$.np,et.propertyIndex=$.ix,et.nm=$.nm,et.mn=$.mn,et}function s($,nt,it){function et(rt){return rt==="Color"||rt==="color"?et.color:rt==="Opacity"||rt==="opacity"?et.opacity:null}return Object.defineProperties(et,{color:{get:ExpressionPropertyInterface(nt.c)},opacity:{get:ExpressionPropertyInterface(nt.o)},_name:{value:$.nm},mn:{value:$.mn}}),nt.c.setGroupProperty(PropertyInterface("Color",it)),nt.o.setGroupProperty(PropertyInterface("Opacity",it)),et}function a($,nt,it){function et(rt){return rt==="Start Point"||rt==="start point"?et.startPoint:rt==="End Point"||rt==="end point"?et.endPoint:rt==="Opacity"||rt==="opacity"?et.opacity:null}return Object.defineProperties(et,{startPoint:{get:ExpressionPropertyInterface(nt.s)},endPoint:{get:ExpressionPropertyInterface(nt.e)},opacity:{get:ExpressionPropertyInterface(nt.o)},type:{get:function(){return"a"}},_name:{value:$.nm},mn:{value:$.mn}}),nt.s.setGroupProperty(PropertyInterface("Start Point",it)),nt.e.setGroupProperty(PropertyInterface("End Point",it)),nt.o.setGroupProperty(PropertyInterface("Opacity",it)),et}function o(){return function(){return null}}function h($,nt,it){var et,rt=propertyGroupFactory(pt,it),st=propertyGroupFactory(lt,rt);function at(ct){Object.defineProperty(lt,$.d[ct].nm,{get:ExpressionPropertyInterface(nt.d.dataProps[ct].p)})}var ot=$.d?$.d.length:0,lt={};for(et=0;et<ot;et+=1)at(et),nt.d.dataProps[et].p.setGroupProperty(st);function pt(ct){return ct==="Color"||ct==="color"?pt.color:ct==="Opacity"||ct==="opacity"?pt.opacity:ct==="Stroke Width"||ct==="stroke width"?pt.strokeWidth:null}return Object.defineProperties(pt,{color:{get:ExpressionPropertyInterface(nt.c)},opacity:{get:ExpressionPropertyInterface(nt.o)},strokeWidth:{get:ExpressionPropertyInterface(nt.w)},dash:{get:function(){return lt}},_name:{value:$.nm},mn:{value:$.mn}}),nt.c.setGroupProperty(PropertyInterface("Color",rt)),nt.o.setGroupProperty(PropertyInterface("Opacity",rt)),nt.w.setGroupProperty(PropertyInterface("Stroke Width",rt)),pt}function d($,nt,it){function et(st){return st===$.e.ix||st==="End"||st==="end"?et.end:st===$.s.ix?et.start:st===$.o.ix?et.offset:null}var rt=propertyGroupFactory(et,it);return et.propertyIndex=$.ix,nt.s.setGroupProperty(PropertyInterface("Start",rt)),nt.e.setGroupProperty(PropertyInterface("End",rt)),nt.o.setGroupProperty(PropertyInterface("Offset",rt)),et.propertyIndex=$.ix,et.propertyGroup=it,Object.defineProperties(et,{start:{get:ExpressionPropertyInterface(nt.s)},end:{get:ExpressionPropertyInterface(nt.e)},offset:{get:ExpressionPropertyInterface(nt.o)},_name:{value:$.nm}}),et.mn=$.mn,et}function g($,nt,it){function et(st){return $.a.ix===st||st==="Anchor Point"?et.anchorPoint:$.o.ix===st||st==="Opacity"?et.opacity:$.p.ix===st||st==="Position"?et.position:$.r.ix===st||st==="Rotation"||st==="ADBE Vector Rotation"?et.rotation:$.s.ix===st||st==="Scale"?et.scale:$.sk&&$.sk.ix===st||st==="Skew"?et.skew:$.sa&&$.sa.ix===st||st==="Skew Axis"?et.skewAxis:null}var rt=propertyGroupFactory(et,it);return nt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",rt)),nt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",rt)),nt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",rt)),nt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",rt)),nt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",rt)),nt.transform.mProps.sk&&(nt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",rt)),nt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",rt))),nt.transform.op.setGroupProperty(PropertyInterface("Opacity",rt)),Object.defineProperties(et,{opacity:{get:ExpressionPropertyInterface(nt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(nt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(nt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(nt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(nt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(nt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(nt.transform.mProps.sa)},_name:{value:$.nm}}),et.ty="tr",et.mn=$.mn,et.propertyGroup=it,et}function b($,nt,it){function et(at){return $.p.ix===at?et.position:$.s.ix===at?et.size:null}var rt=propertyGroupFactory(et,it);et.propertyIndex=$.ix;
62var st=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return st.s.setGroupProperty(PropertyInterface("Size",rt)),st.p.setGroupProperty(PropertyInterface("Position",rt)),Object.defineProperties(et,{size:{get:ExpressionPropertyInterface(st.s)},position:{get:ExpressionPropertyInterface(st.p)},_name:{value:$.nm}}),et.mn=$.mn,et}function _($,nt,it){function et(at){return $.p.ix===at?et.position:$.r.ix===at?et.rotation:$.pt.ix===at?et.points:$.or.ix===at||at==="ADBE Vector Star Outer Radius"?et.outerRadius:$.os.ix===at?et.outerRoundness:!$.ir||$.ir.ix!==at&&at!=="ADBE Vector Star Inner Radius"?$.is&&$.is.ix===at?et.innerRoundness:null:et.innerRadius}var rt=propertyGroupFactory(et,it),st=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return et.propertyIndex=$.ix,st.or.setGroupProperty(PropertyInterface("Outer Radius",rt)),st.os.setGroupProperty(PropertyInterface("Outer Roundness",rt)),st.pt.setGroupProperty(PropertyInterface("Points",rt)),st.p.setGroupProperty(PropertyInterface("Position",rt)),st.r.setGroupProperty(PropertyInterface("Rotation",rt)),$.ir&&(st.ir.setGroupProperty(PropertyInterface("Inner Radius",rt)),st.is.setGroupProperty(PropertyInterface("Inner Roundness",rt))),Object.defineProperties(et,{position:{get:ExpressionPropertyInterface(st.p)},rotation:{get:ExpressionPropertyInterface(st.r)},points:{get:ExpressionPropertyInterface(st.pt)},outerRadius:{get:ExpressionPropertyInterface(st.or)},outerRoundness:{get:ExpressionPropertyInterface(st.os)},innerRadius:{get:ExpressionPropertyInterface(st.ir)},innerRoundness:{get:ExpressionPropertyInterface(st.is)},_name:{value:$.nm}}),et.mn=$.mn,et}function j($,nt,it){function et(at){return $.p.ix===at?et.position:$.r.ix===at?et.roundness:$.s.ix===at||at==="Size"||at==="ADBE Vector Rect Size"?et.size:null}var rt=propertyGroupFactory(et,it),st=nt.sh.ty==="tm"?nt.sh.prop:nt.sh;return et.propertyIndex=$.ix,st.p.setGroupProperty(PropertyInterface("Position",rt)),st.s.setGroupProperty(PropertyInterface("Size",rt)),st.r.setGroupProperty(PropertyInterface("Rotation",rt)),Object.defineProperties(et,{position:{get:ExpressionPropertyInterface(st.p)},roundness:{get:ExpressionPropertyInterface(st.r)},size:{get:ExpressionPropertyInterface(st.s)},_name:{value:$.nm}}),et.mn=$.mn,et}function _e($,nt,it){function et(at){return $.r.ix===at||at==="Round Corners 1"?et.radius:null}var rt=propertyGroupFactory(et,it),st=nt;return et.propertyIndex=$.ix,st.rd.setGroupProperty(PropertyInterface("Radius",rt)),Object.defineProperties(et,{radius:{get:ExpressionPropertyInterface(st.rd)},_name:{value:$.nm}}),et.mn=$.mn,et}function tt($,nt,it){function et(at){return $.c.ix===at||at==="Copies"?et.copies:$.o.ix===at||at==="Offset"?et.offset:null}var rt=propertyGroupFactory(et,it),st=nt;return et.propertyIndex=$.ix,st.c.setGroupProperty(PropertyInterface("Copies",rt)),st.o.setGroupProperty(PropertyInterface("Offset",rt)),Object.defineProperties(et,{copies:{get:ExpressionPropertyInterface(st.c)},offset:{get:ExpressionPropertyInterface(st.o)},_name:{value:$.nm}}),et.mn=$.mn,et}return function($,nt,it){var et;function rt(st){if(typeof st=="number")return(st=st===void 0?1:st)===0?it:et[st-1];for(var at=0,ot=et.length;at<ot;){if(et[at]._name===st)return et[at];at+=1}return null}return rt.propertyGroup=propertyGroupFactory(rt,function(){return it}),et=e($,nt,rt.propertyGroup),rt.numProperties=et.length,rt._name="Contents",rt}}(),TextExpressionInterface=function(e){var i,s;function a(o){switch(o){case"ADBE Text Document":return a.sourceText;default:return null}}return Object.defineProperty(a,"sourceText",{get:function(){e.textProperty.getValue();var o=e.textProperty.currentData.t;return o!==i&&(i=e.textProperty.currentData.t,(s=new String(o)).value=o||new String(o),Object.defineProperty(s,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),s}}),a};function _typeof$2(e){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}var FootageInterface=(dataInterfaceFactory=function(e){function i(s){return s==="Outline"?i.outlineInterface():null}return i._name="Outline",i.outlineInterface=function(s){var a="",o=s.getFootageData();function h(d){if(o[d])return a=d,_typeof$2(o=o[d])==="object"?h:o;var g=d.indexOf(a);if(g!==-1){var b=parseInt(d.substr(g+a.length),10);return _typeof$2(o=o[b])==="object"?h:o}return""}return function(){return a="",o=s.getFootageData(),h}}(e),i},function(e){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=dataInterfaceFactory(e),i}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}function _typeof$1(e){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}function seedRandom(e,i){var s=this,a=i.pow(256,6),o=i.pow(2,52),h=2*o;function d(j){var _e,tt=j.length,$=this,nt=0,it=$.i=$.j=0,et=$.S=[];for(tt||(j=[tt++]);nt<256;)et[nt]=nt++;for(nt=0;nt<256;nt++)et[nt]=et[it=255&it+j[nt%tt]+(_e=et[nt])],et[it]=_e;$.g=function(rt){for(var st,at=0,ot=$.i,lt=$.j,pt=$.S;rt--;)st=pt[ot=255&ot+1],at=256*at+pt[255&(pt[ot]=pt[lt=255&lt+st])+(pt[lt]=st)];return $.i=ot,$.j=lt,at}}function g(j,_e){return _e.i=j.i,_e.j=j.j,_e.S=j.S.slice(),_e}function b(j,_e){for(var tt,$=j+"",nt=0;nt<$.length;
62)_e[255&nt]=255&(tt^=19*_e[255&nt])+$.charCodeAt(nt++);return _(_e)}function _(j){return String.fromCharCode.apply(0,j)}i.seedrandom=function(j,_e,tt){var $=[],nt=b(function rt(st,at){var ot,lt=[],pt=_typeof$1(st);if(at&&pt=="object")for(ot in st)try{lt.push(rt(st[ot],at-1))}catch{}return lt.length?lt:pt=="string"?st:st+"\0"}((_e=_e===!0?{entropy:!0}:_e||{}).entropy?[j,_(e)]:j===null?function(){try{var rt=new Uint8Array(256);return(s.crypto||s.msCrypto).getRandomValues(rt),_(rt)}catch{var st=s.navigator,at=st&&st.plugins;return[+new Date,s,at,s.screen,_(e)]}}():j,3),$),it=new d($),et=function(){for(var rt=it.g(6),st=a,at=0;rt<o;)rt=256*(rt+at),st*=256,at=it.g(1);for(;rt>=h;)rt/=2,st/=2,at>>>=1;return(rt+at)/st};return et.int32=function(){return 0|it.g(4)},et.quick=function(){return it.g(4)/4294967296},et.double=et,b(_(it.S),e),(_e.pass||tt||function(rt,st,at,ot){return ot&&(ot.S&&g(ot,it),rt.state=function(){return g(it,{})}),at?(i.random=rt,st):rt})(et,nt,"global"in _e?_e.global:this==i,_e.state)},b(i.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,i){return e==="number"||e==="boolean"||e==="string"||i instanceof Number}function $bm_neg(e){var i=_typeof(e);if(i==="number"||i==="boolean"||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var s,a=e.length,o=[];for(s=0;s<a;s+=1)o[s]=-e[s];return o}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,i){var s=_typeof(e),a=_typeof(i);if(s==="string"||a==="string"||isNumerable(s,e)&&isNumerable(a,i))return e+i;if($bm_isInstanceOfArray(e)&&isNumerable(a,i))return(e=e.slice(0))[0]+=i,e;if(isNumerable(s,e)&&$bm_isInstanceOfArray(i))return(i=i.slice(0))[0]=e+i[0],i;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(i)){for(var o=0,h=e.length,d=i.length,g=[];o<h||o<d;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof i[o]=="number"||i[o]instanceof Number)?g[o]=e[o]+i[o]:g[o]=i[o]===void 0?e[o]:e[o]||i[o],o+=1;return g}return 0}var add=sum;function sub(e,i){var s=_typeof(e),a=_typeof(i);if(isNumerable(s,e)&&isNumerable(a,i))return s==="string"&&(e=parseInt(e,10)),a==="string"&&(i=parseInt(i,10)),e-i;if($bm_isInstanceOfArray(e)&&isNumerable(a,i))return(e=e.slice(0))[0]-=i,e;if(isNumerable(s,e)&&$bm_isInstanceOfArray(i))return(i=i.slice(0))[0]=e-i[0],i;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(i)){for(var o=0,h=e.length,d=i.length,g=[];o<h||o<d;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof i[o]=="number"||i[o]instanceof Number)?g[o]=e[o]-i[o]:g[o]=i[o]===void 0?e[o]:e[o]||i[o],o+=1;return g}return 0}function mul(e,i){var s,a,o,h=_typeof(e),d=_typeof(i);if(isNumerable(h,e)&&isNumerable(d,i))return e*i;if($bm_isInstanceOfArray(e)&&isNumerable(d,i)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]*i;return s}if(isNumerable(h,e)&&$bm_isInstanceOfArray(i)){for(o=i.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e*i[a];return s}return 0}function div(e,i){var s,a,o,h=_typeof(e),d=_typeof(i);if(isNumerable(h,e)&&isNumerable(d,i))return e/i;if($bm_isInstanceOfArray(e)&&isNumerable(d,i)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]/i;return s}if(isNumerable(h,e)&&$bm_isInstanceOfArray(i)){for(o=i.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e/i[a];return s}return 0}function mod(e,i){return typeof e=="string"&&(e=parseInt(e,10)),typeof i=="string"&&(i=parseInt(i,10)),e%i}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,i,s){if(i>s){var a=s;s=i,i=a}return Math.min(Math.max(e,i),s)}function radiansToDegrees(e){return e/degToRads}
vendor: 5,357 bytes, line 62
62var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,i){if(typeof e=="number"||e instanceof Number)return i=i||0,Math.abs(e-i);var s;i||(i=helperLengthArray);var a=Math.min(e.length,i.length),o=0;for(s=0;s<a;s+=1)o+=Math.pow(i[s]-e[s],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var i,s,a=e[0],o=e[1],h=e[2],d=Math.max(a,o,h),g=Math.min(a,o,h),b=(d+g)/2;if(d===g)i=0,s=0;else{var _=d-g;switch(s=b>.5?_/(2-d-g):_/(d+g),d){case a:i=(o-h)/_+(o<h?6:0);break;case o:i=(h-a)/_+2;break;case h:i=(a-o)/_+4}i/=6}return[i,s,b,e[3]]}function hue2rgb(e,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+6*(i-e)*s:s<.5?i:s<2/3?e+(i-e)*(2/3-s)*6:e}function hslToRgb(e){var i,s,a,o=e[0],h=e[1],d=e[2];if(h===0)i=d,a=d,s=d;else{var g=d<.5?d*(1+h):d+h-d*h,b=2*d-g;i=hue2rgb(b,g,o+1/3),s=hue2rgb(b,g,o),a=hue2rgb(b,g,o-1/3)}return[i,s,a,e[3]]}function linear(e,i,s,a,o){if(a!==void 0&&o!==void 0||(a=i,o=s,i=0,s=1),s<i){var h=s;s=i,i=h}if(e<=i)return a;if(e>=s)return o;var d,g=s===i?0:(e-i)/(s-i);if(!a.length)return a+(o-a)*g;var b=a.length,_=createTypedArray("float32",b);for(d=0;d<b;d+=1)_[d]=a[d]+(o[d]-a[d])*g;return _}function random(e,i){if(i===void 0&&(e===void 0?(e=0,i=1):(i=e,e=void 0)),i.length){var s,a=i.length;e||(e=createTypedArray("float32",a));var o=createTypedArray("float32",a),h=BMMath.random();for(s=0;s<a;s+=1)o[s]=e[s]+h*(i[s]-e[s]);return o}return e===void 0&&(e=0),e+BMMath.random()*(i-e)}function createPath(e,i,s,a){var o,h=e.length,d=shapePool.newElement();d.setPathData(!!a,h);var g,b,_=[0,0];for(o=0;o<h;o+=1)g=i&&i[o]?i[o]:_,b=s&&s[o]?s[o]:_,d.setTripleAt(e[o][0],e[o][1],b[0]+e[o][0],b[1]+e[o][1],g[0]+e[o][0],g[1]+e[o][1],o,!0);return d}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=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(e,i){var s,a,o=this.pv.length?this.pv.length:1,h=createTypedArray("float32",o),d=Math.floor(5*time);for(s=0,a=0;s<d;){for(a=0;a<o;a+=1)h[a]+=-i+2*i*BMMath.random();s+=1}var g=5*time,b=g-Math.floor(g),_=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)_[a]=this.pv[a]+h[a]+(-i+2*i*BMMath.random())*b;return _}return this.pv+h[0]+(-i+2*i*BMMath.random())*b}).bind(this);function loopInDuration(e,i){return loopIn(e,i,!0)}function loopOutDuration(e,i){return loopOut(e,i,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,i){var s=[i[0]-e[0],i[1]-e[1],i[2]-e[2]],a=Math.atan2(s[0],Math.sqrt(s[1]*s[1]+s[2]*s[2]))/degToRads;return[-Math.atan2(s[1],s[2])/degToRads,a,0]}function easeOut(e,i,s,a,o){return applyEase(easeOutBez,e,i,s,a,o)}function easeIn(e,i,s,a,o){return applyEase(easeInBez,e,i,s,a,o)}function ease(e,i,s,a,o){return applyEase(easeInOutBez,e,i,s,a,o)}function applyEase(e,i,s,a,o,h){o===void 0?(o=s,h=a):i=(i-s)/(a-s),i>1?i=1:i<0&&(i=0);var d=e(i);if($bm_isInstanceOfArray(o)){var g,b=o.length,_=createTypedArray("float32",b);for(g=0;g<b;g+=1)_[g]=(h[g]-o[g])*d+o[g];return _}return(h-o)*d+o}function nearestKey(e){var i,s,a,o=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(s=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)s=1,a=data.k[0].t;else{for(i=0;i<o-1;i+=1){if(e===data.k[i].t){s=i+1,a=data.k[i].t;break}if(e>data.k[i].t&&e<data.k[i+1].t){e-data.k[i].t>data.k[i+1].t-e?(s=i+2,a=data.k[i+1].t):(s=i+1,a=data.k[i].t);break}}s===-1&&(s=i+1,a=data.k[i].t)}else s=0,a=0;var h={};return h.index=s,h.time=a/elem.comp.globalData.frameRate,h}function key(e){var i,s,a;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,i={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=o.length,s=0;s<a;s+=1)i[s]=o[s],i.value[s]=o[s];return i}
62function framesToTime(e,i){return i||(i=elem.comp.globalData.frameRate),e/i}function timeToFrames(e,i){return e||e===0||(e=time),i||(i=elem.comp.globalData.frameRate),e*i}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,i){return typeof value=="string"?i===void 0?value.substring(e):value.substring(e,i):""}function substr(e,i){return typeof value=="string"?i===void 0?value.substr(e):value.substr(e,i):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,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(e){return value=e,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],ob}(),expressionHelpers={searchExpressions:function(e,i,s){i.x&&(s.k=!0,s.x=!0,s.initiateExpression=ExpressionManager.initiateExpression,s.effectsSequence.push(s.initiateExpression(e,i,s).bind(s)))},getSpeedAtTime:function(e){var i=this.getValueAtTime(e),s=this.getValueAtTime(e+-.01),a=0;if(i.length){var o;for(o=0;o<i.length;o+=1)a+=Math.pow(s[o]-i[o],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(e){if(this.vel!==void 0)return this.vel;var i,s,a=this.getValueAtTime(e),o=this.getValueAtTime(e+-.001);if(a.length)for(i=createTypedArray("float32",a.length),s=0;s<a.length;s+=1)i[s]=(o[s]-a[s])/-.001;else i=(o-a)/-.001;return i},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(_e,tt,$){if(!this.k||!this.keyframes)return this.pv;_e=_e?_e.toLowerCase():"";var nt,it,et,rt,st,at=this.comp.renderedFrame,ot=this.keyframes,lt=ot[ot.length-1].t;if(at<=lt)return this.pv;if($?it=lt-(nt=tt?Math.abs(lt-this.elem.comp.globalData.frameRate*tt):Math.max(0,lt-this.elem.data.ip)):((!tt||tt>
vendor: 10,163 bytes, line 62
62ot.length-1)&&(tt=ot.length-1),nt=lt-(it=ot[ot.length-1-tt].t)),_e==="pingpong"){if(Math.floor((at-it)/nt)%2!=0)return this.getValueAtTime((nt-(at-it)%nt+it)/this.comp.globalData.frameRate,0)}else{if(_e==="offset"){var pt=this.getValueAtTime(it/this.comp.globalData.frameRate,0),ct=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),ut=this.getValueAtTime(((at-it)%nt+it)/this.comp.globalData.frameRate,0),mt=Math.floor((at-it)/nt);if(this.pv.length){for(rt=(st=new Array(pt.length)).length,et=0;et<rt;et+=1)st[et]=(ct[et]-pt[et])*mt+ut[et];return st}return(ct-pt)*mt+ut}if(_e==="continue"){var ft=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),dt=this.getValueAtTime((lt-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(rt=(st=new Array(ft.length)).length,et=0;et<rt;et+=1)st[et]=ft[et]+(ft[et]-dt[et])*((at-lt)/this.comp.globalData.frameRate)/5e-4;return st}return ft+(at-lt)/.001*(ft-dt)}}return this.getValueAtTime(((at-it)%nt+it)/this.comp.globalData.frameRate,0)}function i(_e,tt,$){if(!this.k)return this.pv;_e=_e?_e.toLowerCase():"";var nt,it,et,rt,st,at=this.comp.renderedFrame,ot=this.keyframes,lt=ot[0].t;if(at>=lt)return this.pv;if($?it=lt+(nt=tt?Math.abs(this.elem.comp.globalData.frameRate*tt):Math.max(0,this.elem.data.op-lt)):((!tt||tt>ot.length-1)&&(tt=ot.length-1),nt=(it=ot[tt].t)-lt),_e==="pingpong"){if(Math.floor((lt-at)/nt)%2==0)return this.getValueAtTime(((lt-at)%nt+lt)/this.comp.globalData.frameRate,0)}else{if(_e==="offset"){var pt=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),ct=this.getValueAtTime(it/this.comp.globalData.frameRate,0),ut=this.getValueAtTime((nt-(lt-at)%nt+lt)/this.comp.globalData.frameRate,0),mt=Math.floor((lt-at)/nt)+1;if(this.pv.length){for(rt=(st=new Array(pt.length)).length,et=0;et<rt;et+=1)st[et]=ut[et]-(ct[et]-pt[et])*mt;return st}return ut-(ct-pt)*mt}if(_e==="continue"){var ft=this.getValueAtTime(lt/this.comp.globalData.frameRate,0),dt=this.getValueAtTime((lt+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(rt=(st=new Array(ft.length)).length,et=0;et<rt;et+=1)st[et]=ft[et]+(ft[et]-dt[et])*(lt-at)/.001;return st}return ft+(ft-dt)*(lt-at)/.001}}return this.getValueAtTime((nt-((lt-at)%nt+lt))/this.comp.globalData.frameRate,0)}function s(_e,tt){if(!this.k)return this.pv;if(_e=.5*(_e||.4),(tt=Math.floor(tt||5))<=1)return this.pv;var $,nt,it=this.comp.renderedFrame/this.comp.globalData.frameRate,et=it-_e,rt=tt>1?(it+_e-et)/(tt-1):1,st=0,at=0;for($=this.pv.length?createTypedArray("float32",this.pv.length):0;st<tt;){if(nt=this.getValueAtTime(et+st*rt),this.pv.length)for(at=0;at<this.pv.length;at+=1)$[at]+=nt[at];else $+=nt;st+=1}if(this.pv.length)for(at=0;at<this.pv.length;at+=1)$[at]/=tt;else $/=tt;return $}function a(_e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var tt=this._transformCachingAtTime.v;if(tt.cloneFromProps(this.pre.props),this.appliedTransformations<1){var $=this.a.getValueAtTime(_e);tt.translate(-$[0]*this.a.mult,-$[1]*this.a.mult,$[2]*this.a.mult)}if(this.appliedTransformations<2){var nt=this.s.getValueAtTime(_e);tt.scale(nt[0]*this.s.mult,nt[1]*this.s.mult,nt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var it=this.sk.getValueAtTime(_e),et=this.sa.getValueAtTime(_e);tt.skewFromAxis(-it*this.sk.mult,et*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var rt=this.r.getValueAtTime(_e);tt.rotate(-rt*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var st=this.rz.getValueAtTime(_e),at=this.ry.getValueAtTime(_e),ot=this.rx.getValueAtTime(_e),lt=this.or.getValueAtTime(_e);tt.rotateZ(-st*this.rz.mult).rotateY(at*this.ry.mult).rotateX(ot*this.rx.mult).rotateZ(-lt[2]*this.or.mult).rotateY(lt[1]*this.or.mult).rotateX(lt[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var pt=this.px.getValueAtTime(_e),ct=this.py.getValueAtTime(_e);if(this.data.p.z){var ut=this.pz.getValueAtTime(_e);tt.translate(pt*this.px.mult,ct*this.py.mult,-ut*this.pz.mult)}else tt.translate(pt*this.px.mult,ct*this.py.mult,0)}else{var mt=this.p.getValueAtTime(_e);tt.translate(mt[0]*this.p.mult,mt[1]*this.p.mult,-mt[2]*this.p.mult)}return tt}function o(){return this.v.clone(new Matrix)}var h=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(_e,tt,$){var nt=h(_e,tt,$);return nt.dynamicProperties.length?nt.getValueAtTime=a.bind(nt):nt.getValueAtTime=o.bind(nt),nt.setGroupProperty=expressionHelpers.setGroupProperty,nt};var d=PropertyFactory.getProp;PropertyFactory.getProp=function(_e,tt,$,nt,it){var et=d(_e,tt,$,nt,it);et.kf?et.getValueAtTime=expressionHelpers.getValueAtTime.bind(et):et.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(et),et.setGroupProperty=expressionHelpers.setGroupProperty,et.loopOut=e,et.loopIn=i,et.smooth=s,et.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(et),et.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(et),et.numKeys=tt.a===1?tt.k.length:0,et.propertyIndex=tt.ix;var rt=0;return $!==0&&(rt=createTypedArray("float32",tt.a===1?tt.k[0].s.length:tt.k.length)),et._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:rt},expressionHelpers.searchExpressions(_e,tt,et),et.k&&it.addDynamicProperty(et),et};var g=ShapePropertyFactory.getConstructorFunction(),b=ShapePropertyFactory.getKeyframedConstructorFunction();function _(){}_.prototype={vertices:function(_e,tt){this.k&&this.getValue();var $,nt=this.v;tt!==void 0&&(nt=this.getValueAtTime(tt,0));var it=nt._length,et=nt[_e],rt=nt.v,st=createSizedArray(it);for($=0;$<it;$+=1)st[$]=_e==="i"||_e==="o"?[et[$][0]-rt[$][0],et[$][1]-rt[$][1]]:[et[$][0],et[$][1]];return st},points:function(_e){return this.vertices("v",_e)},inTangents:function(_e){return this.vertices("i",_e)},outTangents:function(_e){return this.vertices("o",_e)},isClosed:function(){return this.v.c},pointOnPath:function(_e,tt){var $=this.v;tt!==void 0&&($=this.getValueAtTime(tt,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength($));for(var nt,it=this._segmentsLength,et=it.lengths,rt=it.totalLength*_e,st=0,at=et.length,ot=0;st<at;){if(ot+et[st].addedLength>rt){var lt=st,pt=$.c&&st===at-1?0:st+1,ct=(rt-ot)/et[st].addedLength;nt=bez.getPointInSegment($.v[lt],$.v[pt],$.o[lt],$.i[pt],ct,et[st]);break}ot+=et[st].addedLength,st+=1}return nt||(nt=$.c?[$.v[0][0],$.v[0][1]]:[$.v[$._length-1][0],$.v[$._length-1][1]]),nt},vectorOnPath:function(_e,tt,$){_e==1?_e=this.v.c:_e==0&&(_e=.999);var nt=this.pointOnPath(_e,tt),it=this.pointOnPath(_e+.001,tt),et=it[0]-nt[0],rt=it[1]-nt[1],st=Math.sqrt(Math.pow(et,2)+Math.pow(rt,2));return st===0?[0,0]:$==="tangent"?[et/st,rt/st]:[-rt/st,et/st]},tangentOnPath:function(_e,tt){return this.vectorOnPath(_e,tt,"tangent")},normalOnPath:function(_e,tt){return this.vectorOnPath(_e,tt,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([_],g),extendPrototype([_],b),b.prototype.getValueAtTime=function(_e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),_e*=this.elem.globalData.frameRate,(_e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<_e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=_e,this.interpolateShape(_e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},b.prototype.initiateExpression=ExpressionManager.initiateExpression;var j=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(_e,tt,$,nt,it){var et=j(_e,tt,$,nt,it);return et.propertyIndex=tt.ix,et.lock=!1,$===3?expressionHelpers.searchExpressions(_e,tt.pt,et):$===4&&expressionHelpers.searchExpressions(_e,tt.ks,et),et.k&&_e.addDynamicProperty(et),et}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,i){var s=this.calculateExpression(i);if(e.t!==s){var a={};return this.copyData(a,e),a.t=s.toString(),a.__complete=!1,a}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),i=this.searchExpressions();return this.kf=e||i,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,i){var s,a,o=createNS("feMerge");for(o.setAttribute("result",e),a=0;a<i.length;a+=1)(s=createNS("feMergeNode")).setAttribute("in",i[a]),o.appendChild(s),o.appendChild(s);return o}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,i,s,a,o){this.filterManager=i;var h=createNS("feColorMatrix");h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","linearRGB"),h.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=h,h.setAttribute("result",a+"_tint_1"),e.appendChild(h),(h=createNS("feColorMatrix")).setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),h.setAttribute("result",a+"_tint_2"),e.appendChild(h),this.matrixFilter=h;var d=this.createMergeNode(a,[o,a+"_tint_1",a+"_tint_2"]);e.appendChild(d)}function SVGFillFilter(e,i,s,a){this.filterManager=i;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",a),e.appendChild(o),this.matrixFilter=o}function SVGStrokeEffect(e,i,s){this.initialized=!1,this.filterManager=i,this.elem=s,this.paths=[]}function SVGTritoneFilter(e,i,s,a){this.filterManager=i;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.a
vendor: 9,794 bytes, line 62
62ppendChild(o);var h=createNS("feComponentTransfer");h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("result",a),this.matrixFilter=h;var d=createNS("feFuncR");d.setAttribute("type","table"),h.appendChild(d),this.feFuncR=d;var g=createNS("feFuncG");g.setAttribute("type","table"),h.appendChild(g),this.feFuncG=g;var b=createNS("feFuncB");b.setAttribute("type","table"),h.appendChild(b),this.feFuncB=b,e.appendChild(h)}function SVGProLevelsFilter(e,i,s,a){this.filterManager=i;var o=this.filterManager.effectElements,h=createNS("feComponentTransfer");(o[10].p.k||o[10].p.v!==0||o[11].p.k||o[11].p.v!==1||o[12].p.k||o[12].p.v!==1||o[13].p.k||o[13].p.v!==0||o[14].p.k||o[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",h)),(o[17].p.k||o[17].p.v!==0||o[18].p.k||o[18].p.v!==1||o[19].p.k||o[19].p.v!==1||o[20].p.k||o[20].p.v!==0||o[21].p.k||o[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",h)),(o[24].p.k||o[24].p.v!==0||o[25].p.k||o[25].p.v!==1||o[26].p.k||o[26].p.v!==1||o[27].p.k||o[27].p.v!==0||o[28].p.k||o[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",h)),(o[31].p.k||o[31].p.v!==0||o[32].p.k||o[32].p.v!==1||o[33].p.k||o[33].p.v!==1||o[34].p.k||o[34].p.v!==0||o[35].p.k||o[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",h)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(h.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(h)),(o[3].p.k||o[3].p.v!==0||o[4].p.k||o[4].p.v!==1||o[5].p.k||o[5].p.v!==1||o[6].p.k||o[6].p.v!==0||o[7].p.k||o[7].p.v!==1)&&((h=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("result",a),e.appendChild(h),this.feFuncRComposed=this.createFeFunc("feFuncR",h),this.feFuncGComposed=this.createFeFunc("feFuncG",h),this.feFuncBComposed=this.createFeFunc("feFuncB",h))}function SVGDropShadowEffect(e,i,s,a,o){var h=i.container.globalData.renderConfig.filterSize,d=i.data.fs||h;e.setAttribute("x",d.x||h.x),e.setAttribute("y",d.y||h.y),e.setAttribute("width",d.width||h.width),e.setAttribute("height",d.height||h.height),this.filterManager=i;var g=createNS("feGaussianBlur");g.setAttribute("in","SourceAlpha"),g.setAttribute("result",a+"_drop_shadow_1"),g.setAttribute("stdDeviation","0"),this.feGaussianBlur=g,e.appendChild(g);var b=createNS("feOffset");b.setAttribute("dx","25"),b.setAttribute("dy","0"),b.setAttribute("in",a+"_drop_shadow_1"),b.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=b,e.appendChild(b);var _=createNS("feFlood");_.setAttribute("flood-color","#00ff00"),_.setAttribute("flood-opacity","1"),_.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=_,e.appendChild(_);var j=createNS("feComposite");j.setAttribute("in",a+"_drop_shadow_3"),j.setAttribute("in2",a+"_drop_shadow_2"),j.setAttribute("operator","in"),j.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(j);var _e=this.createMergeNode(a,[a+"_drop_shadow_4",o]);e.appendChild(_e)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,s=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",s[0]-i[0]+" 0 0 0 "+i[0]+" "+(s[1]-i[1])+" 0 0 0 "+i[1]+" "+(s[2]-i[2])+" 0 0 0 "+i[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var i=this.filterManager.effectElements[2].p.v,s=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+i[0]+" 0 0 0 0 "+i[1]+" 0 0 0 0 "+i[2]+" 0 0 0 "+s+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,i,s,a,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(a=this.elem.maskManager.masksProperties.length,s=0):a=(s=this.filterManager.effectElements[0].p.v-1)+1,(i=createNS("g")).setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1);s<a;s+=1)e=createNS("path"),i.appendChild(e),this.paths.push({p:e,m:s});if(this.filterManager.effectElements[10].p.v===3){var h=createNS("mask"),d=createElementID();h.setAttribute("id",d),h.setAttribute("mask-type","alpha"),h.appendChild(i),this.elem.globalData.defs.appendChild(h);var g=createNS("g");for(g.setAttribute("mask","url("+getLocationHref()+"#"+d+")");o[0];)g.appendChild(o[0]);this.elem.layerElement.appendChild(g),this.masker=h,i.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(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){var i;this.initialized||this.initialize();var s,a,o=this.paths.length;for(i=0;i<o;i+=1)if(this.paths[i].m!==-1&&(s=this.elem.maskManager.viewData[this.paths[i].m],a=this.paths[i].p,(e||this.filterManager._mdf||s.prop._mdf)&&a.setAttribute("d",s.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||s.prop._mdf)){var h;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var d=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),g=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),b=a.getTotalLength();h="0 0 0 "+b*d+" ";var _,j=b*(g-d),_e=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,tt=Math.floor(j/_e);for(_=0;_<tt;_+=1)h+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";h+="0 "+10*b+" 0 0"}else h="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",h)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var $=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*$[0])+","+bmFloor(255*$[1])+","+bmFloor(255*$[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,s=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,o=a[0]+" "+s[0]+" "+i[0],h=a[1]+" "+s[1]+" "+i[1],d=a[2]+" "+s[2]+" "+i[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",h),this.feFuncB.setAttribute("tableValues",d)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,i){var s=createNS(e);return s.setAttribute("type","table"),i.appendChild(s),s},SVGProLevelsFilter.prototype.getTableValue=function(e,i,s,a,o){for(var h,d,g=0,b=Math.min(e,i),_=Math.max(e,i),j=Array.call(null,{length:256}),_e=0,tt=o-a,$=i-e;g<=256;)d=(h=g/256)<=b?$<0?o:a:h>=_?$<0?a:o:a+tt*Math.pow((h-e)/$,1/s),j[_e]=d,_e+=1,g+=256/255;return j.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var i,s=this.filterManager.effectElements;this.feFuncRComposed&&(e||s[3].p._mdf||s[4].p._mdf||s[5].p._mdf||s[6].p._mdf||s[7].p._mdf)&&(i=this.getTableValue(s[3].p.v,s[4].p.v,s[5].p.v,s[6].p.v,s[7].p.v),this.feFuncRComposed.setAttribute("tableValues",i),this.feFuncGComposed.setAttribute("tableValues",i),this.feFuncBComposed.setAttribute("tableValues",i)),this.feFuncR&&(e||s[10].p._mdf||s[11].p._mdf||s[12].p._mdf||s[13].p._mdf||s[14].p._mdf)&&(i=this.getTableValue(s[10].p.v,s[11].p.v,s[12].p.v,s[13].p.v,s[14].p.v),this.feFuncR.setAttribute("tableValues",i)),this.feFuncG&&(e||s[17].p._mdf||s[18].p._mdf||s[19].p._mdf||s[20].p._mdf||s[21].p._mdf)&&(i=this.getTableValue(s[17].p.v,s[18].p.v,s[19].p.v,s[20].p.v,s[21].p.v),this.feFuncG.setAttribute("tableValues",i)),this.feFuncB&&(e||s[24].p._mdf||s[25].p._mdf||s[26].p._mdf||s[27].p._mdf||s[28].p._mdf)&&(i=this.getTableValue(s[24].p.v,s[25].p.v,s[26].p.v,s[27].p.v,s[28].p.v),this.feFuncB.setAttribute("tableValues",i)),this.feFuncA&&(e||s[31].p._mdf||s[32].p._mdf||s[33].p._mdf||s[34].p._mdf||s[35].p._mdf)&&(i=this.getTableValue(s[31].p.v,s[32].p.v,s[33].p.v,s[34].p.v,s[35].p.v),this.feFuncA.setAttribute("tableValues",i))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var s=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=s*Math.cos(a),h=s*Math.sin(a);
62this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",h)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,i,s){this.initialized=!1,this.filterManager=i,this.filterElem=e,this.elem=s,s.matteElement=createNS("g"),s.matteElement.appendChild(s.layerElement),s.matteElement.appendChild(s.transformedElement),s.baseElement=s.matteElement}function SVGGaussianBlurEffect(e,i,s,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=i;var o=createNS("feGaussianBlur");o.setAttribute("result",a),e.appendChild(o),this.feGaussianBlur=o}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var i=0,s=_svgMatteSymbols.length;i<s;){if(_svgMatteSymbols[i]===e)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,i){var s=e.layerElement.parentNode;if(s){for(var a,o=s.children,h=0,d=o.length;h<d&&o[h]!==e.layerElement;)h+=1;h<=d-2&&(a=o[h+1]);var g=createNS("use");g.setAttribute("href","#"+i),a?s.insertBefore(g,a):s.appendChild(g)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,i){if(!this.findSymbol(i)){var s=createElementID(),a=createNS("mask");a.setAttribute("id",i.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(i);var o=e.globalData.defs;o.appendChild(a);var h=createNS("symbol");h.setAttribute("id",s),this.replaceInParent(i,s),h.appendChild(i.layerElement),o.appendChild(h);var d=createNS("use");d.setAttribute("href","#"+s),a.appendChild(d),i.data.hd=!1,i.show()}e.setMatte(i.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,i=this.elem.comp.elements,s=0,a=i.length;s<a;)i[s]&&i[s].data.ind===e&&this.setElementAsMask(this.elem,i[s]),s+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var i=.3*this.filterManager.effectElements[0].p.v,s=this.filterManager.effectElements[1].p.v,a=s==3?0:i,o=s==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+o);var h=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",h)}},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(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})}),REACT_LOTTIE_PLAYER_VERSION="3.5.3",LOTTIE_WEB_VERSION="^5.10.2",PlayerState,PlayerEvent;function parseSrc(e){if(typeof e=="object")return e;try{return JSON.parse(e)}catch{}try{return new URL(e).toString()}catch{}return e}(function(e){e.Loading="loading",e.Playing="playing",e.Paused="paused",e.Stopped="stopped",e.Frozen="frozen",e.Error="error"})(PlayerState||(PlayerState={})),function(e){e.Load="load",e.InstanceSaved="instanceSaved",e.Error="error",e.Ready="ready",e.Play="play",e.Pause="pause",e.Stop="stop",e.Freeze="freeze",e.Loop="loop",e.Complete="complete",e.Frame="frame"}(PlayerEvent||(PlayerEvent={}));var defaultOptions={clearCanvas:!1,hideOnTransparent:!0,progressiveLoad:!0},Player=function(e){function i(s){var a=e.call(this,s)||this;return a.container=null,a.unmounted=!1,a.handleBgChange=function(o){a.setState({background:o})},a.triggerDownload=function(o,h){var d=document.createElement("a");d.href=o,d.download=h,document.body.appendChild(d),d.click(),document.body.removeChild(d)},a.snapshot=function(o){var h;o===void 0&&(o=!0);var d=a.props.id?a.props.id:"lottie",g=document.getElementById(d);if(a.props.renderer==="svg"){if(g){var b=g.querySelector("svg");if(b){var _=new XMLSerializer().serializeToString(b);h="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(_)}}o&&a.triggerDownload(h,"snapshot.svg")}else if(a.props.renderer==="canvas"){if(g){var j=g.querySelector("canvas");
62j&&(h=j.toDataURL("image/png"))}o&&a.triggerDownload(h,"snapshot.png")}return h},typeof window<"u"&&(window.lottie=lottie),a.state={animationData:null,background:"transparent",containerRef:reactExports.createRef(),debug:!0,instance:null,playerState:PlayerState.Loading,seeker:0},a}return __extends(i,e),i.getDerivedStateFromProps=function(s,a){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return s.background!==a.background?[2,{background:s.background}]:[2,null]})})},i.prototype.getVersions=function(){return{lottieWebVersion:LOTTIE_WEB_VERSION,lottiePlayerVersion:REACT_LOTTIE_PLAYER_VERSION}},i.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){switch(s.label){case 0:return this.unmounted?[3,2]:[4,this.createLottie()];case 1:s.sent(),s.label=2;case 2:return[2]}})})},i.prototype.componentWillUnmount=function(){this.unmounted=!0,this.state.instance&&this.state.instance.destroy()},i.prototype.componentDidUpdate=function(s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(a){switch(a.label){case 0:return this.props.src===s.src?[3,2]:(this.state.instance&&this.state.instance.destroy(),[4,this.createLottie()]);case 1:a.sent(),a.label=2;case 2:return[2]}})})},i.prototype.render=function(){var s=this,a=this.props,o=a.children,h=a.loop,d=a.style,g=a.onBackgroundChange,b=a.className,_=this.state,j=_.animationData,_e=_.instance,tt=_.playerState,$=_.seeker,nt=_.debug,it=_.background;return reactExports.createElement("div",{className:"lf-player-container"},this.state.playerState===PlayerState.Error?reactExports.createElement("div",{className:"lf-error"},reactExports.createElement("span",{"aria-label":"error-symbol",role:"img"},"⚠️")):reactExports.createElement("div",{id:this.props.id?this.props.id:"lottie",ref:function(et){return s.container=et},style:__assign({background:it,margin:"0 auto",outline:"none",overflow:"hidden"},d),className:b}),reactExports.Children.map(o,function(et){return reactExports.isValidElement(et)?reactExports.cloneElement(et,{animationData:j,background:it,debug:nt,instance:_e,loop:h,pause:function(){return s.pause()},play:function(){return s.play()},playerState:tt,seeker:$,setBackground:function(rt){s.setState({background:rt}),typeof g=="function"&&g(rt)},setSeeker:function(rt,st){return s.setSeeker(rt,st)},stop:function(){return s.stop()},toggleDebug:function(){return s.toggleDebug()},setLoop:function(rt){return s.setLoop(rt)},colorChangedEvent:function(rt){s.handleBgChange(rt)},snapshot:function(){s.snapshot()}}):null}))},i.prototype.toggleDebug=function(){this.setState({debug:!this.state.debug})},i.prototype.createLottie=function(){return __awaiter(this,void 0,void 0,function(){var s,a,o,h,d,g,b,_,j,_e,tt,$,nt,it,et=this;return __generator(this,function(rt){switch(rt.label){case 0:if(s=this.props,a=s.autoplay,o=s.direction,h=s.loop,d=s.lottieRef,g=s.renderer,b=s.speed,_=s.src,j=s.background,_e=s.rendererSettings,tt=s.hover,$=this.state.instance,!_||!this.container)return[2];rt.label=1;case 1:return rt.trys.push([1,5,,6]),typeof(nt=parseSrc(_))!="string"?[3,4]:[4,fetch(nt).catch(function(){throw et.setState({playerState:PlayerState.Error}),et.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")})];case 2:return[4,rt.sent().json().catch(function(){throw et.setState({playerState:PlayerState.Error}),et.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")})];case 3:nt=rt.sent(),rt.label=4;case 4:return $&&$.destroy(),it=lottie.loadAnimation({rendererSettings:_e||defaultOptions,animationData:nt,autoplay:a||!1,container:this.container,loop:h||!1,renderer:g}),b&&it.setSpeed(b),this.setState({animationData:nt}),this.setState({instance:it},function(){et.triggerEvent(PlayerEvent.InstanceSaved),typeof d=="function"&&d(it),a&&et.play()}),it.addEventListener("enterFrame",function(){et.triggerEvent(PlayerEvent.Frame),et.setState({seeker:Math.floor(it.currentFrame)})}),it.addEventListener("DOMLoaded",function(){et.triggerEvent(PlayerEvent.Loa
62d)}),it.addEventListener("data_ready",function(){et.triggerEvent(PlayerEvent.Ready)}),it.addEventListener("data_failed",function(){et.setState({playerState:PlayerState.Error}),et.triggerEvent(PlayerEvent.Error)}),it.addEventListener("loopComplete",function(){et.triggerEvent(PlayerEvent.Loop)}),it.addEventListener("complete",function(){et.triggerEvent(PlayerEvent.Complete),et.setState({playerState:PlayerState.Paused}),et.props.keepLastFrame&&!et.props.loop||et.setSeeker(0)}),this.container&&(this.container.addEventListener("mouseenter",function(){tt&&et.state.playerState!==PlayerState.Playing&&(et.props.keepLastFrame&&et.stop(),et.play())}),this.container.addEventListener("mouseleave",function(){tt&&et.state.playerState===PlayerState.Playing&&et.stop()})),b&&this.setPlayerSpeed(b),o&&this.setPlayerDirection(o),j&&this.setState({background:j}),[3,6];case 5:return rt.sent(),this.setState({playerState:PlayerState.Error}),this.triggerEvent(PlayerEvent.Error),[3,6];case 6:return[2]}})})},i.prototype.play=function(){var s=this.state.instance;s&&(this.triggerEvent(PlayerEvent.Play),s.play(),this.setState({playerState:PlayerState.Playing}))},i.prototype.pause=function(){var s=this.state.instance;s&&(this.triggerEvent(PlayerEvent.Pause),s.pause(),this.setState({playerState:PlayerState.Paused}))},i.prototype.stop=function(){var s=this.state.instance;s&&(this.triggerEvent(PlayerEvent.Stop),s.stop(),this.setState({playerState:PlayerState.Stopped}))},i.prototype.setPlayerSpeed=function(s){var a=this.state.instance;a&&a.setSpeed(s)},i.prototype.setPlayerDirection=function(s){var a=this.state.instance;a&&a.setDirection(s)},i.prototype.setSeeker=function(s,a){a===void 0&&(a=!1);var o=this.state,h=o.instance,d=o.playerState;h&&(a&&d===PlayerState.Playing?h.goToAndPlay(s,!0):(h.goToAndStop(s,!0),this.triggerEvent(PlayerEvent.Pause),this.setState({playerState:PlayerState.Paused})))},i.prototype.setLoop=function(s){var a=this.state.instance;a&&(a.loop=s,this.setState({instance:a}))},i.prototype.triggerEvent=function(s){var a=this.props.onEvent;a&&a(s)},i.defaultProps={loop:!1},i}(reactExports.Component);function styleInject(e,i){i===void 0&&(i={});var s=i.insertAt;if(e&&typeof document<"u"){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",s==="top"&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var css_248z=`.lf-progress {
63  -webkit-appearance: none;
64  -moz-apperance: none;
65  width: 100%;
66  /* margin: 0 10px; */
67  height: 4px;
68  border-radius: 3px;
69  cursor: pointer;
70}
71.lf-progress:focus {
72  outline: none;
73  border: none;
74}
75.lf-progress::-moz-range-track {
76  cursor: pointer;
77  background: none;
78  border: none;
79  outline: none;
80}
81.lf-progress::-webkit-slider-thumb {
82  -webkit-appearance: none !important;
83  height: 13px;
84  width: 13px;
85  border: 0;
86  border-radius: 50%;
87  background: #0fccce;
88  cursor: pointer;
89}
90.lf-progress::-moz-range-thumb {
91  -moz-appearance: none !important;
92  height: 13px;
93  width: 13px;
94  border: 0;
95  border-radius: 50%;
96  background: #0fccce;
97  cursor: pointer;
98}
99.lf-progress::-ms-track {
100  width: 100%;
101  height: 3px;
102  cursor: pointer;
103  background: transparent;
104  border-color: transparent;
105  color: transparent;
106}
107.lf-progress::-ms-fill-lower {
108  background: #ccc;
109  border-radius: 3px;
110}
111.lf-progress::-ms-fill-upper {
112  background: #ccc;
113  border-radius: 3px;
114}
115.lf-progress::-ms-thumb {
116  border: 0;
117  height: 15px;
118  width: 15px;
119  border-radius: 50%;
120  background: #0fccce;
121  cursor: pointer;
122}
123.lf-progress:focus::-ms-fill-lower {
124  background: #ccc;
125}
126.lf-progress:focus::-ms-fill-upper {
127  background: #ccc;
128}
129.lf-player-container :focus {
130  outline: 0;
131}
132.lf-popover {
133  position: relative;
134}
135
136.lf-popover-content {
137  display: inline-block;
138  position: absolute;
139  opacity: 1;
140  visibility: visible;
141  transform: translate(0, -10px);
142  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
143  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
144}
145
146.lf-popover-content.hidden {
147  opacity: 0;
148  visibility: hidden;
149  transform: translate(0, 0px);
150}
151
152.lf-player-btn-container {
153  display: flex;
154  align-items: center;
155}
156.lf-player-btn {
157  cursor: pointer;
158  fill: #999;
159  width: 14px;
160}
161
162.lf-player-btn.active {
163  fill: #555;
164}
165
166.lf-popover {
167  position: relative;
168}
169
170.lf-popover-content {
171  display: inline-block;
172  position: absolute;
173  background-color: #ffffff;
174  opacity: 1;
175
176  transform: translate(0, -10px);
177  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
178  transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
179  padding: 10px;
180}
181
182.lf-popover-content.hidden {
183  opacity: 0;
184  visibility: hidden;
185  transform: translate(0, 0px);
186}
187
188.lf-arrow {
189  position: absolute;
190  z-index: -1;
191  content: '';
192  bottom: -9px;
193  border-style: solid;
194  border-width: 10px 10px 0px 10px;
195}
196
197.lf-left-align,
198.lf-left-align .lfarrow {
199  left: 0;
200  right: unset;
201}
202
203.lf-right-align,
204.lf-right-align .lf-arrow {
205  right: 0;
206  left: unset;
207}
208
209.lf-text-input {
210  border: 1px #ccc solid;
211  border-radius: 5px;
212  padding: 3px;
213  width: 60px;
214  margin: 0;
215}
216
217.lf-color-picker {
218  display: flex;
219  flex-direction: row;
220  justify-content: space-between;
221  height: 90px;
222}
223
224.lf-color-selectors {
225  display: flex;
226  flex-direction: column;
227  justify-content: space-between;
228}
229
230.lf-color-component {
231  display: flex;
232  flex-direction: row;
233  font-size: 12px;
234  align-items: center;
235  justify-content: center;
236}
237
238.lf-color-component strong {
239  width: 40px;
240}
241
242.lf-color-component input[type='range'] {
243  margin: 0 0 0 10px;
244}
245
246.lf-color-component input[type='number'] {
247  width: 50px;
248  margin: 0 0 0 10px;
249}
250
251.lf-color-preview {
252  font-size: 12px;
253  display: flex;
254  flex-direction: column;
255  align-items: center;
256  justify-content: space-between;
257  padding-left: 5px;
258}
259
260.lf-preview {
261  height: 60px;
262  width: 60px;
263}
264
265.lf-popover-snapshot {
266  width: 150px;
267}
268.lf-popover-snapshot h5 {
269  margin: 5px 0 10px 0;
270  font-size: 0.75rem;
271}
272.lf-popover-snapshot a {
273  display: block;
274  text-decoration: none;
275}
276.lf-popover-snapshot a:before {
277  content: '⥼';
278  margin-right: 5px;
279}
280.lf-popover-snapshot .lf-note {
281  display: block;
282  margin-top: 10px;
283  color: #999;
284}
285.lf-player-controls > div {
286  margin-right: 5px;
287  margin-left: 5px;
288}
289.lf-player-controls > div:first-child {
290  margin-left: 0px;
291}
292.lf-player-controls > div:last-child {
293  margin-right: 0px;
294}
295`;styleInject(css_248z);var ColorPicker=function(e){function i(){var s=e!==null&&e.apply(this,arguments)||this;return s.state={red:0,green:0,blue:0,rgba:null,hex:"#000000",colorComponents:[]},s.handleChange=function(a,o){if(a==="r"){var h="#"+(256|o).toString(16).slice(1)+(256|s.state.green).toString(16).slice(1)+(256|s.state.blue).toString(16).slice(1);s.setState({hex:h})}else a==="g"?(h="#"+(256|s.state.red).toString(16).slice(1)+(256|o).toString(16).slice(1)+(256|s.state.blue).toString(16).slice(1),s.setState({hex:h})):a==="b"&&(h="#"+(256|s.state.red).toString(16).slice(1)+(256|s.state.green).toString(16).slice(1)+(256|o).toString(16).slice(1),s.setState({hex:h}))},s.parseColor=function(a){var o;if(typeof a=="string"){if(a[0]==="#"){var h=a.length===4?[a.slice(1,2),a.slice(2,3),a.slice(3,4)].map(function(d){return parseInt(""+d+d,16)}):[a.slice(1,3),a.slice(3,5),a.slice(5,7)].map(function(d){return parseInt(d,16)});s.setState({colorComponents:h})}else a.startsWith("rgb")&&(h=(o=a.match(/\d+/g))===null||o===void 0?void 0:o.map(function(d){return parseInt(d)}))!==void 0&&s.setState({colorComponents:h});s.state.colorComponents.length&&(s.setState({red:s.state.colorComponents[0]}),s.setState({green:s.state.colorComponents[1]}),s.setState({blue:s.state.colorComponents[2]}))}},s}return __extends(i,e),i.prototype.componentDidUpdate=function(s,a){return this.props.colorChangedEvent&&this.state.hex!==a.hex&&this.props.colorChangedEvent(this.state.hex),!0},i.prototype.render=function(){var s=this;return reactExports.createElement("div",{className:"lf-color-picker"},reactExports.createElement("div",{className:"lf-color-selectors"},reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Red"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.red,onChange:function(a){s.setState({red:a.target.value}),s.handleChange("r",a.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.red,onChange:function(a){s.setState({red:a.target.value}),s.handleChange("r",a.target.value)}})),reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Green"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.green,onChange:function(a){s.setState({green:a.target.value}),s.handleChange("g",a.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.green,onChange:function(a){s.setState({green:a.target.value}),s.handleChange("g",a.target.value)}})),reactExports.createElement("div",{className:"lf-color-component"},reactExports.createElement("strong",null,"Blue"),reactExports.createElement("input",{type:"range",min:"0",max:"255",value:this.state.blue,onChange:function(a){s.setState({blue:a.target.value}),s.handleChange("b",a.target.value)}}),reactExports.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.blue,onChange:function(a){s.setState({blue:a.target.value}),s.handleChange("b",a.target.value)}}))),reactExports.createElement("div",{className:"lf-color-preview"},reactExports.createElement("div",{className:"lf-preview",style:{background:"rgb("+this.state.red+", "+this.state.green+", "+this.state.blue+")"}}),reactExports.createElement("div",null,reactExports.createElement("input",{className:"lf-text-input",type:"text",value:this.state.hex,onChange:function(a){s.setState({hex:a.target.value}),s.parseColor(a.target.value)}}))))},i}(reactExports.Component),Popover=function(e){var i=e.children,s=e.icon,a=reactExports.useState(null),o=a[0],h=a[1],d=reactExports.useState(null),g=d[0],b=d[1],_=reactExports.useState(null),j=_[0],_e=_[1],tt=reactExports.useState(!1),$=tt[0],nt=tt[1];return reactExports.useEffect(function(){if(o&&g){var it=o.getBoundingClientRect(),et=g.getBoundingClientRect(),rt=it.left+et.width>window.innerWidth?-1:0;_e(rt)}},[j,g,o]),reactExports.createElement("div",{className:"lf-popover",onMouseOver:function(){nt(!0)},onMouseLeave:function(){nt(!1)},ref:function(it){h(it)}},reactExports.createElement("div",{className:" lf-player-btn"},s),reactExports.createElement("div",{className:"lf-popover-content",ref:function(it){b(it)},style:{bottom:"22px",right:"0px",zIndex:2,visibility:$?"visible":"hidden"}},i))},Seeker=function(e){function i(s){var a=e.call(this,s)||this;return a.inputRef=reactExports.createRef(),a.handleChange=function(){return function(o){var h=o.target.value,d=Math.floor(h/100*a.props.max);a.props.onChange(d)}},a.state={value:0},a}return __extends(i,e),i.prototype.render=function(){var s=this.props.value/this.props.max*100,a={backgroundImage:"-webkit-gradient(linear, left top, right top, color-stop("+s+"%, rgba(15, 204, 206, 0.4)), color-stop("+s+"%, #DAE1E7))"},o={position:"absolute",left:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"},h={position:"absolute",right:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"};return reactExports.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",marginRight:"5px",marginLeft:"5px",position:"relative"}}
295,reactExports.createElement("input",{ref:this.inputRef,id:"track",className:"lf-progress",name:"progress","aria-label":"progress",type:"range",min:"0",max:"100",step:"0.1",value:s,onInput:this.handleChange(),onChange:this.handleChange(),style:a}),this.props.showLabels&&reactExports.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},reactExports.createElement("div",{style:o},this.props.min),reactExports.createElement("div",{style:h},this.props.max)))},i}(reactExports.Component),ControlButtonStyle={display:"inline-flex",cursor:"pointer"};(function(e){function i(s){var a=e.call(this,s)||this;return a.state={activeFrame:0,mouseDown:!1},a}return __extends(i,e),i.prototype.render=function(){var s=this,a=this.props,o=a.instance,h=a.playerState,d=a.seeker,g=a.setLoop,b=a.setSeeker,_=a.play,j=a.pause,_e=a.stop,tt=a.visible,$=a.buttons;if(!o||!tt)return null;var nt=!$||$.includes("play"),it=!$||$.includes("stop"),et=!$||$.includes("repeat"),rt=!$||$.includes("frame"),st=!$||$.includes("background"),at=!$||$.includes("snapshot"),ot={width:14,height:14,viewBox:"0 0 24 24"},lt=Math.round(o.currentFrame);return reactExports.createElement("div",{className:"lf-player-controls",style:{display:"flex",justifyContent:"space-between",height:"60px",alignItems:"center",backgroundColor:this.props.transparentTheme?"transparent":this.props.darkTheme?"#3C3C3C":"#ffffff",paddingLeft:"10px",paddingRight:"10px"}},nt&&reactExports.createElement("div",{role:"button","aria-label":h===PlayerState.Playing?PlayerEvent.Pause:PlayerEvent.Play,tabIndex:0,onClick:function(){h===PlayerState.Playing?typeof j=="function"&&j():typeof _=="function"&&_()},onKeyDown:function(){h===PlayerState.Playing?typeof j=="function"&&j():typeof _=="function"&&_()},className:"lf-player-btn",style:ControlButtonStyle},h===PlayerState.Playing?reactExports.createElement("svg",__assign({},ot),reactExports.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"14",y:".5"}),reactExports.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"2",y:".5"})):reactExports.createElement("svg",__assign({},ot),reactExports.createElement("path",{d:"M2 3.4C2 1.9 3.5 1 4.8 1.8l16.5 9.6c1.2.7 1.2 2.5 0 3.2L4.8 24.2C3.5 25 2 24.1 2 22.6V3.4z"}))),it&&reactExports.createElement("div",{tabIndex:0,role:"button","aria-label":PlayerEvent.Stop,onClick:function(){return _e&&_e()},onKeyDown:function(){return _e&&_e()},className:h===PlayerState.Stopped?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},reactExports.createElement("svg",__assign({},ot),reactExports.createElement("path",{d:`M2 3.667A1.67 1.67 0 0 1 3.667 2h16.666A1.67 1.67 0 0 1 22 3.667v16.666A1.67 1.67 0 0 1 20.333
296            22H3.667A1.67 1.67 0 0 1 2 20.333z`}))),reactExports.createElement(Seeker,{min:0,step:1,max:o?o.totalFrames:1,value:d||0,onChange:function(pt){b&&s.setState({activeFrame:pt},function(){b(pt,!1)})},onChangeEnd:function(pt){b&&s.setState({activeFrame:pt},function(){b(pt,!1)})},showLabels:this.props.showLabels,darkTheme:this.props.darkTheme}),rt&&reactExports.createElement("div",{role:"button",className:"lf-player-btn-container"},reactExports.createElement("input",{style:{outline:"none",border:this.props.darkTheme?"1px #505050 solid":"1px #ccc solid",borderRadius:"3px",width:"40px",textAlign:"center",backgroundColor:this.props.darkTheme?"#505050":"#ffffff",color:this.props.darkTheme?"#B9B9B9":"#999",fontSize:"0.7rem",padding:"0",fontFamily:"inherit"},type:"text",value:lt,readOnly:!0})),et&&reactExports.createElement("div",{role:"button","aria-label":PlayerEvent.Loop,tabIndex:0,onClick:function(){o&&g&&g(!o.loop)},onKeyDown:function(){o&&g&&g(!o.loop)},className:o.loop?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},reactExports.createElement("svg",__assign({},ot),reactExports.createElement("path",{d:`M12.5 16.8137h-.13v1.8939h4.9696c3.6455 0 6.6113-2.9658 6.6113-6.6116
297            0-3.64549-2.9658-6.61131-6.6113-6.61131-.5231 0-.947.42391-.947.94696 0 .52304.4239.94696.947.94696 2.6011 0
298            4.7174 2.11634 4.7174 4.71739 0 2.6014-2.1166 4.7177-4.7174 4.7177H12.5zM13.6025
299            5.61469v-.13H7.48137C3.83582 5.48469.87 8.45051.87 12.096c0 3.6509 3.17269 6.6117 6.81304 6.6117.52304 0
300            .94696-.424.94696-.947 0-.5231-.42392-.947-.94696-.947-2.60804 0-4.91907-2.1231-4.91907-4.7176 0-2.60115
301            2.11634-4.71744 4.7174-4.71744h6.12113V5.61469z`,stroke:"#8795A1",strokeWidth:".26"}),reactExports.createElement("path",{d:`M11.1482
302            2.20355h0l-.001-.00116c-.3412-.40061-.9405-.44558-1.33668-.0996h-.00001c-.39526.34519-.43936.94795-.
30209898
303            1.34767l2.51487 3.03683-2.51894 3.06468c-.33872.40088-.29282 1.00363.10347
304            1.34723l.08517-.0982-.08517.0982c.17853.1549.39807.2308.61647.2308.2671 0 .5328-.114.72-.3347h0l.0011-.0014
305            3.0435-3.68655.0006-.00068c.3035-.35872.3025-.88754-.0019-1.24526l-3.0425-3.65786zM13.9453
306            21.7965h0l.001.0011c.3413.4006.9407.4456 1.337.0996h0c.3953-.3452.4395-.9479.099-1.3477l-2.5154-3.0368
307            2.5195-3.0647c.3388-.4008.2929-1.0036-.1035-1.3472l-.0852.0982.0852-.0982c-.1786-.1549-.3981-.2308-.6166-.2308-.2671
308            0-.5329.114-.7202.3347h0l-.0011.0014-3.0442
309            3.6865c-.0001.0003-.0003.0005-.0005.0007-.3036.3587-.3027.8876.0019 1.2453l3.0431 3.6579z`,fill:"#8795A1",stroke:"#8795A1",strokeWidth:".26"}))),st&&reactExports.createElement(Popover,{icon:reactExports.createElement("svg",__assign({},ot),reactExports.createElement("path",{d:`M12 3.1L6.1 8.6a7.6 7.6 0 00-2.2 4 7.2 7.2 0 00.4 4.4 7.9 7.9 0 003 3.5 8.7 8.7 0 004.7 1.3c1.6 0
310            3.2-.5 4.6-1.3s2.4-2 3-3.5a7.2 7.2 0 00.5-4.5 7.6 7.6 0 00-2.2-4L12 3.2zM12 0l7.5 7a9.8 9.8 0 013 5.1
311            9.3 9.3 0 01-.6 5.8c-.9 1.8-2.2 3.3-4 4.4A11.2 11.2 0 0112 24a11.2 11.2 0
312            01-6-1.7c-1.7-1-3-2.6-3.9-4.4a9.3 9.3 0 01-.6-5.8c.4-2 1.5-3.7 3-5L12 0zM6 14h12c0 1.5-.7 3-1.8 4s-2.6
313            1.6-4.2 1.6S9 19 7.8 18s-1.7-2.5-1.7-4z`}))},reactExports.createElement("div",{slot:"content",className:"lf-popover popover-background"},reactExports.createElement(ColorPicker,{colorChangedEvent:this.props.colorChangedEvent}))),at&&reactExports.createElement(Popover,{icon:reactExports.createElement("svg",__assign({},ot),reactExports.createElement("path",{clipRule:"evenodd",d:`M0 3.01A2.983 2.983 0 012.983.027H16.99a2.983 2.983 0 012.983 2.983v14.008a2.982 2.982 0 01-2.983
314              2.983H2.983A2.983 2.983 0 010 17.018zm2.983-.941a.941.941 0 00-.942.94v14.01c0
315              .52.422.94.942.94H16.99a.94.94 0 00.941-.94V3.008a.941.941 0 00-.94-.94H2.981z`,fillRule:"evenodd"}),reactExports.createElement("path",{d:"M12.229 7.945l-2.07 4.598-2.586-2.605-2.414 2.758v2.146h9.656V11.93z"}),reactExports.createElement("circle",{cx:"7.444",cy:"6.513",r:"2.032"}),reactExports.createElement("path",{d:`M9.561 23.916h11.25a2.929 2.929 0 002.926-2.927V9.954a1.06 1.06 0 10-2.122 0v11.035a.805.805 0
316              01-.803.804H9.562a1.061 1.061 0 100 2.123z`,stroke:"#8795a1",strokeWidth:".215"}))},reactExports.createElement("div",{slot:"content",className:"lf-popover lf-popover-snapshot",onWheel:function(pt){b&&b(lt+(pt.deltaY>0?-1:1),!1)}},reactExports.createElement("h5",null,"Frame ",lt),reactExports.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download SVG"),reactExports.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download PNG"),reactExports.createElement("i",{className:"lf-note"},"Scroll with mousewheel to find exact frame"))))},i})(reactExports.Component);function PeopleCard({people:e,avatarUrl:i,type:s,isPreview:a}){const{name:o,birth_year:h,gender:d}=e;return jsxRuntimeExports.jsxs("article",{className:`people-card ${a?"preview":""}`,children:[s&&jsxRuntimeExports.jsx("span",{className:"people-card--type",children:s}),jsxRuntimeExports.jsx("div",{className:"people-card--image",children:jsxRuntimeExports.jsx("img",{src:`/people/${i}`})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h2",{className:"people-card--name",children:o}),jsxRuntimeExports.jsxs("p",{className:"people-card--text",children:[jsxRuntimeExports.jsx("strong",{children:"Gender:"})," ",d]}),jsxRuntimeExports.jsxs("p",{className:"people-card--text",children:[jsxRuntimeExports.jsx("strong",{children:"Birth year:"})," ",h]})]})]})}const images={"Luke Skywalker":"1.jpg","C-3PO":"2.jpg","R2-D2":"3.jpg","Darth Vader":"4.jpg","Leia Organa":"5.jpg","Owen Lars":"6.jpg","Beru Whitesun lars":"7.jpg","R5-D4":"8.jpg","Biggs Darklighter":"9.jpg","Obi-Wan Kenobi":"10.jpg","Anakin Skywalker":"11.jpg","Wilhuff Tarkin":"12.jpg",Chewbacca:"13.jpg","Han Solo":"14.jpg",Greedo:"15.jpg","Jabba Desilijic Tiure":"16.jpg","Wedge Antilles":"17.jpg","Jek Tono Porkins":"18.jpg",Yoda:"19.jpg",Palpatine:"20.jpg","Boba Fett":"21.jpg","IG-88":"22.jpg",Bossk:"23.jpg","Lando Calrissian":"24.jpg",L
316obot:"25.jpg",Ackbar:"26.jpg","Mon Mothma":"27.jpg","Arvel Crynyd":"28.jpg","Wicket Systri Warrick":"29.jpg","Nien Nunb":"30.jpg","Qui-Gon Jinn":"31.jpg","Nute Gunray":"32.jpg","Finis Valorum":"33.jpg","Padmé Amidala":"34.jpg","Jar Jar Binks":"35.jpg","Roos Tarpals":"36.jpg","Rugor Nass":"37.jpg","Ric Olié":"38.jpg",Watto:"39.jpg",Sebulba:"40.jpg","Quarsh Panaka":"41.jpg","Shmi Skywalker":"42.jpg","Darth Maul":"43.jpg","Bib Fortuna":"44.jpg","Ayla Secura":"45.jpg","Ratts Tyerel":"46.jpg","Dud Bolt":"47.jpg",Gasgano:"48.jpg","Ben Quadinaros":"49.jpg","Mace Windu":"50.jpg","Ki-Adi-Mundi":"51.jpg","Kit Fisto":"52.jpg","Eeth Koth":"53.jpg","Adi Gallia":"54.jpg","Saesee Tiin":"55.jpg","Yarael Poof":"56.jpg","Plo Koon":"57.jpg","Mas Amedda":"58.jpg","Gregar Typho":"59.jpg",Cordé:"60.jpg","Cliegg Lars":"61.jpg","Poggle the Lesser":"62.jpg","Luminara Unduli":"63.jpg","Barriss Offee":"64.jpg",Dormé:"65.jpg",Dooku:"66.jpg","Bail Prestor Organa":"67.jpg","Jango Fett":"68.jpg","Zam Wesell":"69.jpg","Dexter Jettster":"70.jpg","Lama Su":"71.jpg","Taun We":"72.jpg","Jocasta Nu":"73.jpg","R4-P17":"74.jpg","Wat Tambor":"75.jpg","San Hill":"76.jpg","Shaak Ti":"77.jpg",Grievous:"78.jpg",Tarfful:"79.jpg","Raymus Antilles":"80.jpg","Sly Moore":"81.jpg","Tion Medon":"82.jpg"};var define_import_meta_env_default={VITE_APP_SWAPI_API:"https://swapi.py4e.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const API_BASE_URL$1=define_import_meta_env_default.VITE_SOME_KEY,PEOPLE_BASE_URL$1=`${API_BASE_URL$1}/api/people/`;function generateImageMap(e){return e.reduce((i,s,a)=>({...i,[s.name]:`${a+1}.jpg`}),{})}async function fetchAllResults(e,i){if(!i)return e;let s=e;const o=await(await fetch(i)).json();return s=s.concat(o.results),fetchAllResults(s,(o==null?void 0:o.next)||"")}async function getImages(){const e=await fetchAllResults([],PEOPLE_BASE_URL$1);return generateImageMap(e)}function usePeopleImages(){return useQuery({queryKey:["people"],queryFn:()=>getImages(),staleTime:1/0,initialData:images})}function MilleniumFalconOutro({characters:e,reset:i}){var $,nt;const{data:s}=usePeopleImages(),[a,o]=reactExports.useState(5),[h,d]=reactExports.useState(!1),[g,b]=reactExports.useState(!1),[_,j]=reactExports.useState(),_e=reactExports.useCallback(()=>{let it=setInterval(()=>{o(et=>et===1?(clearInterval(it),b(!0),d(!0),0):et-1)},1e3);j(it)},[]);reactExports.useEffect(()=>()=>clearInterval(_),[_]),reactExports.useEffect(()=>{h&&setTimeout(()=>d(!1),4e3)},[h]);const tt=reactExports.useCallback(()=>{_e()},[_e]);return jsxRuntimeExports.jsx("div",{className:"millenium-falcon--page is-light-mode outro-page",children:g?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:h?jsxRuntimeExports.jsx("div",{className:"falcon-animation",children:jsxRuntimeExports.jsx(Player,{src:"https://lottie.host/067a979a-2ec6-4410-902c-b6a7066983d3/AndUoRgOHE.json",autoplay:!0,loop:!1,speed:.7})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h2",{className:"millenium-falcon--page-title",children:"Great Job!"}),jsxRuntimeExports.jsxs("button",{onClick:i,className:"millenium-falcon--page-button",children:[jsxRuntimeExports.jsx(MdOutlineBuildCircle,{className:"millenium-falcon--page-icon"}),jsxRuntimeExports.jsx("span",{children:"Build new team"})]})]})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_?jsxRuntimeExports.jsx("p",{className:"millenium-falcon--page-countdown",children:a}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h2",{className:"millenium-falcon--page-title",children:"Time to explore the galaxy"}),jsxRuntimeExports.jsxs("button",{onClick:tt,className:"millenium-falcon--page-button",children:[jsxRuntimeExports.jsx(MdRocketLaunch,{className:"millenium-falcon--page-icon"}),jsxRuntimeExports.jsx("span",{children:"Launch"})]}),jsxRuntimeExports.jsxs("div",{className:"millenium-falcon--page-characters",children:[($=e==null?void 0:e["crew members"])==null?void 0:$.map(it=>jsxRuntimeExports.jsx(PeopleCard,{people:it,avatarUrl:s[it.name],type:"crew members",isPreview:!0},it.name)),(nt=e==null?void 0:e.passengers)==null?void 0:nt.map(it=>
316jsxRuntimeExports.jsx(PeopleCard,{people:it,avatarUrl:s[it.name],type:"passengers",isPreview:!0},it.name))]})]})})})}function IoIosCloseCircle(e){return GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(e)}function c(e,i,s){var a=this,o=reactExports.useRef(null),h=reactExports.useRef(0),d=reactExports.useRef(null),g=reactExports.useRef([]),b=reactExports.useRef(),_=reactExports.useRef(),j=reactExports.useRef(e),_e=reactExports.useRef(!0);j.current=e;var tt=typeof window<"u",$=!i&&i!==0&&tt;if(typeof e!="function")throw new TypeError("Expected a function");i=+i||0;var nt=!!(s=s||{}).leading,it=!("trailing"in s)||!!s.trailing,et="maxWait"in s,rt="debounceOnServer"in s&&!!s.debounceOnServer,st=et?Math.max(+s.maxWait||0,i):null;reactExports.useEffect(function(){return _e.current=!0,function(){_e.current=!1}},[]);var at=reactExports.useMemo(function(){var ot=function(ft){var dt=g.current,St=b.current;return g.current=b.current=null,h.current=ft,_.current=j.current.apply(St,dt)},lt=function(ft,dt){$&&cancelAnimationFrame(d.current),d.current=$?requestAnimationFrame(ft):setTimeout(ft,dt)},pt=function(ft){if(!_e.current)return!1;var dt=ft-o.current;return!o.current||dt>=i||dt<0||et&&ft-h.current>=st},ct=function(ft){return d.current=null,it&&g.current?ot(ft):(g.current=b.current=null,_.current)},ut=function ft(){var dt=Date.now();if(pt(dt))return ct(dt);if(_e.current){var St=i-(dt-o.current),yt=et?Math.min(St,st-(dt-h.current)):St;lt(ft,yt)}},mt=function(){if(tt||rt){var ft=Date.now(),dt=pt(ft);if(g.current=[].slice.call(arguments),b.current=a,o.current=ft,dt){if(!d.current&&_e.current)return h.current=o.current,lt(ut,i),nt?ot(o.current):_.current;if(et)return lt(ut,i),ot(o.current)}return d.current||lt(ut,i),_.current}};return mt.cancel=function(){d.current&&($?cancelAnimationFrame(d.current):clearTimeout(d.current)),h.current=0,g.current=o.current=b.current=d.current=null},mt.isPending=function(){return!!d.current},mt.flush=function(){return d.current?ct(Date.now()):_.current},mt},[nt,et,i,st,it,$,tt,rt]);return at}function FiSearch(e){return GenIcon({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function generateAutocompleteResult(e,i){const s=e==null?void 0:e.toLowerCase().indexOf(i==null?void 0:i.toLowerCase().trim());if(s===-1)return e;if(s===0)return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("strong",{children:e.substring(s,i.length)}),e.substring(s+i.length)]});if(s===e.length-i.length)return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[e.substring(0,s),jsxRuntimeExports.jsx("strong",{children:e.substring(s)})]});if(s!==-1)return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[e.substring(0,s),jsxRuntimeExports.jsx("strong",{children:e.substring(s,s+i.length)}),e.substring(s+i.length)]})}function PeopleDropdownList({searchQuery:e,selections:i,peopleList:s,isSelectable:a,toggleSelection:o}){const h=reactExports.useContext(MilleniumFalconContext),d=h==null?void 0:h.allSelections;return((s==null?void 0:s.length)||0)>0?s==null?void 0:s.map(g=>{const b=!!(i!=null&&i.find(_e=>g.name===_e.name)),_=!!(d!=null&&d.find(_e=>g.name===_e.name)),j=!a||_;return jsxRuntimeExports.jsx("li",{tabIndex:0,role:"option","aria-selected":b,onClick:()=>{_&&!b||!b&&!a||o(g,b)},className:`${b?"active":""} ${j?"disabled":""}`,"aria-disabled":!!j,children:e?generateAutocompleteResult(g.name,e):g.name},g.name)}):jsxRuntimeExports.jsx("li",{children:"No results found"})}function Loader(){return jsxRuntimeExports.jsx("div",{className:"animate block"})}const placeholderList=Array(10).fill(0).map((e,i)=>i);function PeopleLoader(){return placeholderList.map(e=>jsxRuntimeExports.jsx("li",{className:"loader",children:jsxRuntimeExports.jsx(Loader,{})},e))}function cleanInput(e){return`${e}`.replace(/[<>%$]/gi,"")}function isLetterKey(e){if(e.length>1)return!1;const i=e.charCodeAt(0);return i>=65&&i<=90||i>=97&&i<=122}function PeopleDropdown({children:e,type:i,setSearchString:s,peopleList:a,maxSelections:o,isLoading:h,selections:d,toggleSelection:g,className:b}){const _=reactExports.useRef(null),j=reactExports.useRef(null),_e=reactExports.useRef(null),tt=reactExports.useRef(null),$=reactExports.useRef(null),nt=reactExports.useRef(null),it=reactExports.useRef(null),et=reactExports.useRef(null),rt=reactExports.useRef(null),st=reactExports.useRef(null),[at,ot]=reactExports.useState(!1),[lt,pt]=reactExports.useState(""),ct=((d==null?void 0:d.length)||0)<o;function ut(){var xt;const yt=(xt=tt.current)==null?void 0:xt.querySelectorAll('a[href], area[href], input
316:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"], li[role="option"]');rt.current=(yt==null?void 0:yt[0])||null,st.current=(yt==null?void 0:yt[(yt==null?void 0:yt.length)-1])||null}const mt=c(yt=>{const xt=yt.trim();s(xt)},800);function ft(){pt(""),ot(!1)}reactExports.useEffect(()=>{var xt,Pt;if(j.current&&at){(xt=nt.current)==null||xt.focus(),ut();return}(Pt=_e.current)==null||Pt.focus()},[at]),reactExports.useEffect(()=>{mt(lt)},[lt]),reactExports.useEffect(()=>{var yt;h||((yt=nt.current)==null||yt.focus(),ut())},[h]),reactExports.useEffect(()=>{var yt;ct||(pt(""),ot(!1),(yt=et.current)==null||yt.focus())},[ct]),reactExports.useEffect(()=>{var yt;d&&((yt=tt.current)==null||yt.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}))},[d]);const dt=reactExports.useRef(yt=>{var Pt,Ct,Et;const xt=yt==null?void 0:yt.composedPath();if(yt.key==="Esc"||yt.key==="Escape"){ft();return}if(yt.key==="Tab"&&(yt.shiftKey?document.activeElement===rt.current&&st.current&&(yt.preventDefault(),(Pt=st.current)==null||Pt.focus()):document.activeElement===st.current&&rt.current&&(yt.preventDefault(),(Ct=rt.current)==null||Ct.focus())),j!=null&&j.current&&!xt.includes(nt==null?void 0:nt.current)&&(isLetterKey(yt.key)||yt.key==="Backspace")){(Et=nt.current)==null||Et.focus();return}if(xt.includes($==null?void 0:$.current)){if(yt.key==="Spacebar"||yt.key===" "||yt.key==="Enter"){const ht=yt.target;if(!ht)return;ht.click()}if(yt.key==="ArrowUp"){const ht=yt.target,vt=ht==null?void 0:ht.previousSibling;if(!vt)return;vt.focus();return}if(yt.key==="ArrowDown"){const ht=yt.target,vt=ht==null?void 0:ht.nextSibling;if(!vt)return;vt.focus()}}}),St=reactExports.useRef(yt=>{var xt;yt.target===_.current&&(ft(),(xt=et.current)==null||xt.focus())});return reactExports.useEffect(()=>{const yt=St.current,xt=dt.current;return window.addEventListener("click",yt),window.addEventListener("keydown",xt),et.current=document.activeElement,()=>{window.removeEventListener("click",yt),window.removeEventListener("keydown",xt)}},[]),jsxRuntimeExports.jsxs("div",{className:`people-dropdown ${b}`,children:[at&&jsxRuntimeExports.jsx("div",{className:"people-dropdown--outer-overlay",ref:_}),!at&&jsxRuntimeExports.jsxs("button",{type:"button",onClick:()=>{(a==null?void 0:a.length)!==0&&ot(yt=>!yt)},"aria-haspopup":"listbox","aria-disabled":(a==null?void 0:a.length)===0,ref:_e,"aria-expanded":at,className:`people-dropdown--button ${at?"active":""} ${(a==null?void 0:a.length)===0||h?"disabled":""}`,children:[jsxRuntimeExports.jsx("span",{children:d!=null&&d.length?`${d.map(yt=>yt.name).join(", ")} have been selected`:`Select ${o} ${i==null?void 0:i.toLowerCase()}`}),h&&jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Loading"})]}),at&&jsxRuntimeExports.jsx("div",{className:"people-dropdown--overlay",ref:j,children:jsxRuntimeExports.jsxs("div",{className:"people-dropdown--menu",ref:tt,children:[jsxRuntimeExports.jsx("button",{type:"button",className:"people-dropdown--close-button button-sr-only",ref:it,onClick:ft,"aria-label":"Close dropdown menu",children:jsxRuntimeExports.jsx(IoIosCloseCircle,{})}),jsxRuntimeExports.jsxs("div",{className:"people-dropdown--search",children:[jsxRuntimeExports.jsx("input",{type:"search","aria-label":`Search ${i}`,placeholder:`Search ${i}`,className:"people-dropdown--input",ref:nt,value:lt,onChange:yt=>pt(cleanInput(yt.target.value)),onBlur:yt=>pt(cleanInput(yt.target.value))}),jsxRuntimeExports.jsx(FiSearch,{className:"people-dropdown--icon","aria-hidden":!0})]}),jsxRuntimeExports.jsx("p",{className:"sr-only",id:`dropdown--list-${i}`,children:`${i} dropdown list.`}),jsxRuntimeExports.jsx("ul",{className:"people-dropdown--list",role:"listbox","aria-label":`Select ${o} ${i}`,tabIndex:-1,"aria-labelledby":`dropdown--list-${i}`,ref:$,children:jsxRuntimeExports.jsx(PeopleDropdownListWrapper,{isLoading:h,peopleList:a,children:jsxRuntimeExports.jsx(PeopleDropdownList,{searchQuery:lt,selections:d,peopleList:a,isSelectable:ct,toggleSelection:g})})}),e]})})]})}function PeopleDropdownListWrapper({isLoading:e,peopleList:i,children:s}){return e?jsxRuntimeExports.jsx(PeopleLoader,{}):i?s:jsxRuntimeExports.jsx("li",{children:"Error loading the API results"})}function ImArrowRight2(e){return GenIcon({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.707 13.707l5-5c0.391-0.39 0.391-1.024 0-1.414l-5-5c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414l3.293 3.293h-9.586c-0.552 0-1 0.448-1 1s0.448 1 1 1h9.586l-3.293 3.293c-0.195 0.195-0.293 0.451-0.293 0.707s0.098 0.512 0.293 0.707c0.391 0.391 1.024 0.391 1.414 0z"},child:[]}]})(e)}function ImArrowLeft2(e){return GenIcon({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.293 13.707l-5-5c-0.391-0.39-0.391-1.024 0-1.414l5-5c0.391-0.391 1.024-0.391 1.414 0s0.391 1.024 0 1.414l-3.293 3.293h9.586c0.552 0 1 0.448 1 1s-0.448 1-1 1h-9.586l3.293 3.293c0.195 0.195 0.293 0.451 0.293 0.707s-0.098 0.512-0.293 0.707c-0.391 0.391-1.024 0.391-1.414 0z"},child:[]}]})(e)}function Pagination({isFirstIndex:e,canNextPage:i,canPreviousPage:s,next:a,previous:o}){return jsxRuntimeExports.jsxs("div",{className:`pagination ${e?"flex-end":""}`,children:[s&&jsxRuntimeExports.jsxs("button",{onClick:o,className:"pagination--button","aria-label":"previous page",children:[jsxRuntimeExports.jsx(ImArrowLeft2,{className:"pagination--button-icon previous-icon","aria-hidden":!0}),"Previous"]}),i&&jsxRuntimeExports.jsxs("button",{className:"pagination--button",onClick:a,"aria-label":"next page",children:["Next",jsxRuntimeExports.jsx(ImArrowRight2,{className:"pagination--button-icon next-icon","aria-hidden":!0})]})]})}function PeopleSelectPagination({nextText:e,previousText:i,canPreviousStage:s,next:a,previous:o,errorMessage:h}){return jsxRuntimeExports.jsxs("div",{className:"people-select--pagination--wrapper",children:[h&&jsxRuntimeExports.jsx("div",{className:"pagination--error",children:jsxRuntimeExports.jsx("p",{children:h})}),jsxRuntimeExports.jsxs("div",{className:`pagination ${s?"":"flex-end"}`,children:[s&&jsxRuntimeExports.jsxs("button",{onClick:o,className:"pagination--button","aria-label":"previous page",children:[jsxRuntimeExports.jsx(ImArrowLeft2,{className:"pagination--button-icon previous-icon","aria-hidden":!0}),i||"Previous"]}),jsxRuntimeExports.jsxs("button",{className:"pagination--button",onClick:a,"aria-label":"next page",children:[e||"Next",jsxRuntimeExports.jsx(ImArrowRight2,{className:"pagination--button-icon next-icon","aria-hidden":!0}),h&&jsxRuntimeExports.jsx("span",{className:"sr-only",children:h})]})]})]})}const API_BASE_URL="https://swapi.py4e.com",PEOPLE_BASE_URL=`${API_BASE_URL}/api/people/`;function getQueryUrl(e,i){return e&&i?`${PEOPLE_BASE_URL}?search=${e}&page=${i}`:e?`${PEOPLE_BASE_URL}?search=${e}`:i?`${PEOPLE_BASE_URL}?page=${i}`:PEOPLE_BASE_URL}async function fetchPeople(e,i){const s=getQueryUrl(e,i),a=await fetch(s);if(!a.ok)throw new Error(a.statusText);return await a.json()}function usePeople(e,i){return useQuery({queryKey:["people",e||"",i||null],queryFn:()=>fetchPeople(e,i),staleTime:1/0})}const stageRevealVariant={initial:e=>({y:e?100:-100,opacity:0}
316),exit:e=>({y:e?-100:100,opacity:0})},selectionRevealVariant={initial:e=>({x:e?100:-100,opacity:0}),exit:e=>({x:e?-100:100,opacity:0})};function PeopleSelect({type:e,maxSelections:i,next:s,updateForm:a,saveSelections:o,...h}){const{data:d}=usePeopleImages(),[g,b]=reactExports.useState(1),[_,j]=reactExports.useState(""),{data:_e,isFetching:tt}=usePeople(_,g),[$,nt]=reactExports.useState(!0),[it,et]=reactExports.useState(o),[rt,st]=reactExports.useState(""),at=reactExports.useCallback((ot,lt)=>{if(lt){nt(!1),et(pt=>pt?pt==null?void 0:pt.filter(ct=>ct.name!==ot.name):null);return}((it==null?void 0:it.length)||0)>=i||(nt(!0),et(pt=>[...pt||[],ot]))},[it]);return reactExports.useEffect(()=>{b(1)},[_]),reactExports.useEffect(()=>{rt&&setTimeout(()=>st(""),3e3)},[rt]),reactExports.useEffect(()=>{a(it!=null&&it.length?it:null,e)},[it]),jsxRuntimeExports.jsxs("section",{className:"people-select",children:[((it==null?void 0:it.length)||0)>0&&jsxRuntimeExports.jsxs("div",{className:"people-select--display",children:[jsxRuntimeExports.jsxs("h2",{children:["Selected ",e]}),jsxRuntimeExports.jsx("div",{className:"people-select--display-list",children:jsxRuntimeExports.jsx(AnimatePresence,{mode:"sync",custom:$,children:it==null?void 0:it.map(ot=>jsxRuntimeExports.jsxs(motion.div,{custom:$,initial:"initial",exit:"exit",variants:selectionRevealVariant,animate:{x:0,opacity:1},transition:{duration:.2},className:"people-select--card-wrapper",children:[jsxRuntimeExports.jsx("button",{className:"people-select--remove-button",onClick:()=>at(ot,!0),"aria-label":"Remove selection",children:jsxRuntimeExports.jsx(IoIosCloseCircle,{})}),jsxRuntimeExports.jsx(PeopleCard,{people:ot,avatarUrl:d[ot.name]})]},ot.name))})})]}),jsxRuntimeExports.jsxs("div",{className:"people-select--dropdown-wrapper",children:[jsxRuntimeExports.jsxs("h2",{className:"people-select--dropdown-title",children:["Select ",i," ",e]}),jsxRuntimeExports.jsx(PeopleDropdown,{type:e,setSearchString:j,maxSelections:i,peopleList:_e==null?void 0:_e.results,isLoading:tt,selections:it,toggleSelection:at,className:"people-select--dropdown",children:jsxRuntimeExports.jsx(Pagination,{isFirstIndex:g===1,next:()=>b(ot=>ot+1),previous:()=>b(ot=>ot-1),canNextPage:!!(_e!=null&&_e.next),canPreviousPage:!!(_e!=null&&_e.previous)})})]}),jsxRuntimeExports.jsx(PeopleSelectPagination,{next:()=>{if((it==null?void 0:it.length)!==i){st(`Please select ${i} ${e}`);return}s()},errorMessage:rt,...h})]})}function MilleniumFalconForm(){const[e,i]=reactExports.useState(1),[s,a]=reactExports.useState({"crew members":null,passengers:null}),[o,h]=reactExports.useState(!0),d=reactExports.useMemo(()=>Object.keys(s).reduce((tt,$)=>{const nt=s[$];return[...tt,...nt||[]]},[]),[s]);function g(tt,$){a(nt=>({...nt,[$]:tt}))}function b(){h(!0),i(tt=>tt+1)}function _(){h(!1),i(tt=>tt-1)}function j(){return e===1?"intro-page":e===4?"final-page":""}function _e(){a({"crew members":null,passengers:null}),i(2)}return jsxRuntimeExports.jsx("div",{className:`millenium-falcon-form ${j()}`,children:jsxRuntimeExports.jsxs(AnimatePresence,{mode:"wait",custom:o,children:[e===1&&jsxRuntimeExports.jsx(motion.div,{className:"millenium-falcon-form--starter",custom:o,initial:"initial",exit:"exit",variants:stageRevealVariant,animate:{y:0,opacity:1},transition:{duration:.3},children:jsxRuntimeExports.jsx(MilleniumFalconIntro,{next:b})}),e===2&&jsxRuntimeExports.jsx(motion.div,{custom:o,initial:"initial",exit:"exit",variants:stageRevealVariant,animate:{y:0,opacity:1},transition:{duration:.3},children:jsxRuntimeExports.jsx(MilleniumFalconContext.Provider,{value:{allSelections:d},children:jsxRuntimeExports.jsx(PeopleSelect,{type:"crew members",maxSelections:4,updateForm:g,next:b,saveSelections:s["crew members"]})})},"crew members"),e===3&&jsxRuntimeExports.jsx(motion.div,{custom:o,initial:"initial",exit:"exit",variants:stageRevealVariant,animate:{y:0,opacity:1},transition:{duration:.3},children:jsxRuntimeExports.jsx(MilleniumFalconContext.Provider,{value:{allSelections:d},children:jsxRuntimeExports.jsx(PeopleSelect,{type:"passengers",maxSelections:6,updateForm:g,saveSelections:s.passengers,next:b,previous:_,previousText:"Edit crew",nextText:"Let's take off",canPreviousStage:!0})})},"passengers"),e===4&&jsxRuntimeExports.jsx(motion.div,{custom:o,initial:"initial",exit:"exit",variants:stageRevealVariant,animate:{y:0,opacity:1},transition:{duration:.3},children:jsxRuntimeExports.jsx(MilleniumFalconOutro,{characters:s,reset:_e})})]})})}function MilleniumFalcon(){return jsxRuntimeExports.jsx("div",{className:"millenium-falcon",children:jsxRuntimeExports.jsx(MilleniumFalconForm,{})})}function App(){const[e]=reactExports.useState(()=>new QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}));return jsxRuntimeExports.jsxs(QueryClientProvider,{client:e,children:[jsxRuntimeExports.jsx(MilleniumFalcon,{}),jsxRuntimeExports.jsx(ReactQueryDevtools2,{initialIsOpen:!1})]})}client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));

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.