PageSourceSearch

https://www.nojesfabriken.se/app/plugins/stories/build/frontend.js?ver=2f5950bc9b3dfc5aa18b

js nojesfabriken.se collected 2026-10-05 18:40:16 UTC 60,843 bytes, 1 lines download raw bytes

1(()=>{"use strict";class t{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t){const e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return e(this.animations,"duration")}get iterationDuration(){return e(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function e(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];null!==i&&i>n&&(n=i)}return n}class n extends t{then(t,e){return this.finished.finally(t).then(()=>{})}}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class i{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>s(this.subscriptions,t)}notify(t,e,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,n);else for(let i=0;i<s;i++){const s=this.subscriptions[i];s&&s(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function r(t,e){return e?t*(1e3/e):0}const a={},o=t=>t,l=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],u={value:null,addProjectionMetrics:null};function h(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=l.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,s=new Set,i=!1,r=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){a.has(e)&&(c.schedule(e),t()),l++,e(o)}const c={schedule:(t,e=!1,r=!1)=>{const o=r&&i?n:s;return e&&a.add(t),o.add(t),t},cancel:t=>{s.delete(t),a.delete(t)},process:t=>{if(o=t,i)return void(r=!0);i=!0;const a=n;n=s,s=a,n.forEach(h),e&&u.value&&u.value.frameloop[e].push(l),l=0,n.clear(),i=!1,r&&(r=!1,c.process(t))}};return c}(r,e?n:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:p,update:m,preRender:f,render:y,postRender:g}=o,v=()=>{const r=a.useManualTiming,o=r?i.timestamp:performance.now();n=!1,r||(i.delta=s?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,h.process(i),c.process(i),d.process(i),p.process(i),m.process(i),f.process(i),y.process(i),g.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(v))};return{schedule:l.reduce((e,r)=>{const a=o[r];return e[r]=(e,r=!1,o=!1)=>(n||(n=!0,s=!0,i.isProcessing||t(v)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<l.length;e++)o[l[e]].cancel(t)},state:i,steps:o}}const{schedule:c,cancel:d,state:p,steps:m}=h("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:o,!0);let f;function y(){f=void 0}const g={now:()=>(void 0===f&&g.set(p.isProcessing||a.useManualTiming?p.timestamp:performance.now()),f),set:t=>{f=t,queueMicrotask(y)}},v={current:void 0};class b{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=g.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=g.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new i);const n=this.events[t].add(e);return"change"===t?()=>{n(),c.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return v.current&&v.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=g.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return r(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function T(t,e){return new b(t,e)}const w=t=>1e3*t,M=t=>t/1e3,S=(t,e,n)=>n>e?e:n<t?t:n,x=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let e=0;e<i;e++)s+=Math.round(1e4*t(e/(i-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},A=2e4;function V(t){let e=0,n=t.next(e);for(;!n.done&&e<A;)e+=50,n=t.next(e);return e>=A?1/0:e}function k(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(V(s),A);return{type:"keyframes",ease:t=>s.next(i*t).value/e,duration:M(i)}}const C=.01,F=2,P=.005,B=.5;function R(t,e){return t*Math.sqrt(1-e*e)}const E=["duration","bounce"],D=["stiffness","damping","mass"];function I(t,e){return e.some(e=>void 0!==t[e])}function O(t=.3,e=.3){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:r},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!I(t,D)&&I(t,E))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(1.2*n),i=s*s,r=2*S(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:1,stiffness:i,damping:r}}else{const n=function({duration:t=800,bounce:e=.3,velocity:n=0,mass:s=1}){let i,r;w(10);let a=1-e;a=S(.05,1,a),t=S(.01,10,M(t)),a<1?(i=e=>{const s=e*a,i=s*t;return.001-(s-n)/R(e,a)*Math.exp(-i)},r=e=>{const s=e*a*t,r=s*n+n,o=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-s),u=R(Math.pow(e,2),a);return(.001-i(e)>
10?-1:1)*((r-o)*l)/u}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const o=function(t,e,n){let s=n;for(let n=1;n<12;n++)s-=t(s)/e(s);return s}(i,r,5/t);if(t=w(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(o,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}({...t,velocity:0});e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...n,velocity:-M(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*h)),y=a-r,g=M(Math.sqrt(l/h)),v=Math.abs(y)<5;let b,T,k,O,N,K;if(s||(s=v?C:F),i||(i=v?P:B),f<1)k=R(g,f),O=(m+f*g*y)/k,b=t=>{const e=Math.exp(-f*g*t);return a-e*(O*Math.sin(k*t)+y*Math.cos(k*t))},N=f*g*O+y*k,K=f*g*y-O*k,T=t=>Math.exp(-f*g*t)*(N*Math.sin(k*t)+K*Math.cos(k*t));else if(1===f){b=t=>a-Math.exp(-g*t)*(y+(m+g*y)*t);const t=m+g*y;T=e=>Math.exp(-g*e)*(g*t*e-m)}else{const t=g*Math.sqrt(f*f-1);b=e=>{const n=Math.exp(-f*g*e),s=Math.min(t*e,300);return a-n*((m+f*g*y)*Math.sinh(s)+t*y*Math.cosh(s))/t};const e=(m+f*g*y)/t,n=f*g*e-y*t,s=f*g*y-e*t;T=e=>{const i=Math.exp(-f*g*e),r=Math.min(t*e,300);return i*(n*Math.sinh(r)+s*Math.cosh(r))}}const j={calculatedDuration:p&&c||null,velocity:t=>w(T(t)),next:t=>{if(!p&&f<1){const e=Math.exp(-f*g*t),n=Math.sin(k*t),r=Math.cos(k*t),l=a-e*(O*n+y*r),u=w(e*(N*n+K*r));return o.done=Math.abs(u)<=s&&Math.abs(a-l)<=i,o.value=o.done?a:l,o}const e=b(t);if(p)o.done=t>=c;else{const n=w(T(t));o.done=Math.abs(n)<=s&&Math.abs(a-e)<=i}return o.value=o.done?a:e,o},toString:()=>{const t=Math.min(V(j),A),e=x(e=>j.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return j}O.applyToOptions=t=>{const e=k(t,100,O);return t.ease=e.ease,t.duration=w(e.duration),t.type="keyframes",t};const N=(t,e,n)=>{const s=e-t;return 0===s?1:(n-t)/s},K=(t,e,n)=>t+(e-t)*n;function j(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=N(0,e,s);t.push(K(n,1,i))}}function W(t){const e=[0];return j(e,t.length-1),e}function L(t){return"function"==typeof t&&"applyToOptions"in t}const $=t=>Boolean(t&&t.getVelocity),Y=t=>Array.isArray(t)&&"number"!=typeof t[0];function U(t,e){return Y(t)?t[((t,e,n)=>{const s=e-0;return((n-0)%s+s)%s+0})(0,t.length,e)]:t}function X(t){return"object"==typeof t&&!Array.isArray(t)}function q(t,e,n,s){return null==t?[]:"string"==typeof t&&X(e)?function(t,e,n){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(t=>null!=t)}(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(t=>null!=t):[t]}function z(t,e,n){return t*(e+1)}function Z(t,e,n,s){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function _(t,e,n,i,r,a){!function(t,e,n){for(let i=0;i<t.length;i++){const r=t[i];r.at>e&&r.at<n&&(s(t,r),i--)}}(t,r,a);for(let s=0;s<e.length;s++)t.push({value:e[s],at:K(r,a,i[s]),easing:U(n,s)})}function H(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function G(t,e){return t.at===e.at?null===t.value?1:null===e.value?-1:0:t.at-e.at}function J(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Q(t,e){return e[t]||(e[t]=[]),e[t]}function tt(t){return Array.isArray(t)?t:[t]}function et(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const nt=t=>"number"==typeof t,st=t=>t.every(nt),it=(t,e)=>n=>e(t(n)),rt=(...t)=>t.reduce(it),at={layout:0,mainThread:0,waapi:0},ot=t=>e=>"string"==typeof e&&e.startsWith(t),lt=ot("--"),ut=ot("var(--"),ht=t=>!!ut(t)&&ct.test(t.split("/*")[0].trim()),ct=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dt(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}const pt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},mt={...pt,transform:t=>S(0,1,t)},ft={...pt,default:1},yt=t=>Math.round(1e5*t)/1e5,gt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,vt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bt=(t,e)=>n=>Boolean("string"==typeof n&&vt.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Tt=(t,e,n)=>s=>{if("string"!=typeof s)return s;const[i,r,a,o]=s.match(gt);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},wt={...pt,transform:t=>Math.round((t=>S(0,255,t))(t))},Mt={test:bt("rgb","red"),parse:Tt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+wt.transform(t)+", "+wt.transform(e)+", "+wt.transform(n)+", "+yt(mt.transform(s))+")"},St={test:bt("#"),parse:function(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alph
vendor: 14,916 bytes, line 1
1a:i?parseInt(i,16)/255:1}},transform:Mt.transform},xt=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),At=xt("deg"),Vt=xt("%"),kt=xt("px"),Ct=xt("vh"),Ft=xt("vw"),Pt=(()=>({...Vt,parse:t=>Vt.parse(t)/100,transform:t=>Vt.transform(100*t)}))(),Bt={test:bt("hsl","hue"),parse:Tt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Vt.transform(yt(e))+", "+Vt.transform(yt(n))+", "+yt(mt.transform(s))+")"},Rt={test:t=>Mt.test(t)||St.test(t)||Bt.test(t),parse:t=>Mt.test(t)?Mt.parse(t):Bt.test(t)?Bt.parse(t):St.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Mt.transform(t):Bt.transform(t),getAnimatableNone:t=>{const e=Rt.parse(t);return e.alpha=0,Rt.transform(e)}},Et=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Dt="number",It="color",Ot=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Nt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Ot,t=>(Rt.test(t)?(s.color.push(r),i.push(It),n.push(Rt.parse(t))):t.startsWith("var(")?(s.var.push(r),i.push("var"),n.push(t)):(s.number.push(r),i.push(Dt),n.push(parseFloat(t))),++r,"${}")).split("${}");return{values:n,split:a,indexes:s,types:i}}function Kt({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],void 0!==s[r]){const t=e[r];i+=t===Dt?yt(s[r]):t===It?Rt.transform(s[r]):s[r]}return i}}const jt={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(gt)?.length||0)+(t.match(Et)?.length||0)>0},parse:function(t){return Nt(t).values},createTransformer:function(t){return Kt(Nt(t))},getAnimatableNone:function(t){const e=Nt(t);return Kt(e)(e.values.map((t,n)=>((t,e)=>{return"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof(n=t)?0:Rt.test(n)?Rt.getAnimatableNone(n):n;var n})(t,e.split[n])))}};function Wt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Lt(t,e){return n=>n>0?e:t}const $t=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Yt=[St,Mt,Bt];function Ut(t){const e=(n=t,Yt.find(t=>t.test(n)));var n;if(Boolean(e),!Boolean(e))return!1;let s=e.parse(t);return e===Bt&&(s=function({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,n/=100;let i=0,r=0,a=0;if(e/=100){const s=n<.5?n*(1+e):n+e-n*e,o=2*n-s;i=Wt(o,s,t+1/3),r=Wt(o,s,t),a=Wt(o,s,t-1/3)}else i=r=a=n;return{red:Math.round(255*i),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(s)),s}const Xt=(t,e)=>{const n=Ut(t),s=Ut(e);if(!n||!s)return Lt(t,e);const i={...n};return t=>(i.red=$t(n.red,s.red,t),i.green=$t(n.green,s.green,t),i.blue=$t(n.blue,s.blue,t),i.alpha=K(n.alpha,s.alpha,t),Mt.transform(i))},qt=new Set(["none","hidden"]);function zt(t,e){return n=>K(t,e,n)}function Zt(t){return"number"==typeof t?zt:"string"==typeof t?ht(t)?Lt:Rt.test(t)?Xt:Gt:Array.isArray(t)?_t:"object"==typeof t?Rt.test(t)?Xt:Ht:Lt}function _t(t,e){const n=[...t],s=n.length,i=t.map((t,n)=>Zt(t)(t,e[n]));return t=>{for(let e=0;e<s;e++)n[e]=i[e](t);return n}}function Ht(t,e){const n={...t,...e},s={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(s[i]=Zt(t[i])(t[i],e[i]));return t=>{for(const e in s)n[e]=s[e](t);return n}}const Gt=(t,e)=>{const n=jt.createTransformer(e),s=Nt(t),i=Nt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?qt.has(t)&&!i.values.length||qt.has(e)&&!s.values.length?function(t,e){return qt.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):rt(_t(function(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],a=t.indexes[r][s[r]],o=t.values[a]??0;n[i]=o,s[r]++}return n}(s,i),i.values),n):Lt(t,e)};function Jt(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?K(t,e,n):Zt(t)(t,e)}const Qt=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>c.update(e,t),stop:()=>d(e),now:()=>p.isProcessing?p.timestamp:g.now()}};function te(t,e,n){const s=Math.max(e-5,0);return r(n-t(s),e-s)}function ee({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===o?l:void 0===l||Math.abs(o-t)<Math.abs(l-t)?o:l;let m=n*e;const f=c+m,y=void 0===a?f:a(f);y!==f&&(m=y-c);const g=t=>-m*Math.exp(-t/s),v=t=>y+g(t),b=t=>{const e=g(t),n=v(t);d.done=Math.abs(e)<=u,d.value=d.done?y:n};let T,w;const M=t=>{var e;e=d.value,(void 0!==o&&e<o||void 0!==l&&e>l)&&(T=t,w=O({keyframes:[d.value,p(d.value)],velocity:te(v,t,d.value),damping:i,stiffness:r,restDelta:u,restSpeed:h}))};return M(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==T||(e=!0,b(t),M(t)),void 0!==T&&t>=T?w.next(t-T):(!e&&b(t),d)}}}const ne=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function se(t,e,n,s){if(t===e&&n===s)return o;return i=>0===i||1===i?i:ne(function(t,e,n,s,i){let r,a,o=0;do{a=e+(n-e)/2,r=ne(a,s,i)-t,r>0?n=a:e=a}while(Math.abs(r)>1e-7&&++o<12);return a}(i,0,1,t,n),e,s)}const ie=se(.42,0,1,1),re=se(0,0,.58,1),ae=se(.42,0,.58,1),oe=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,le=t=>e=>1-t(1-e),ue=se(.33,1.53,.69,.99),he=le(ue),ce=oe(he),de=t=>t>=1?1:(t*=2)<1?.5*he(t):.5*(2-Math.pow(2,-10*(t-1))),pe=t=>1-Math.sin(Math.acos(t)),me=le(pe),fe=oe(pe),ye=t=>Array.isArray(t)&&"number"==typeof t[0],ge={linear:o,easeIn:ie,easeInOut:ae,easeOut:re,circIn:pe,circInOut:fe,circOut:me,backIn:he,backInOut:ce,backOut:ue,anticipate:de},ve=t=>{if(ye(t)){t.length;const[e,n,s,i]=t;return se(e,n,s,i)}return"string"==typeof t?ge[t]:t};function be({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Y(s)?s.map(ve):ve(s),r={done:!1,value:e[0]},l=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:W(e),t),u=function(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(e.length,1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];const l=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const u=function(t,e,n){const s=[],i=n||a.mix||Jt,r=t.length-1;for(let n=0;n<r;n++){let r=i(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||o:e;r=rt(t,r)}s.push(r)}return s}(e,s,i),h=u.length,c=n=>{if(l&&n<t[0])return e[0];let s=0;if(h>1)for(;s<t.length-2&&!(n<t[s+1]);s++);const i=N(t[s],t[s+1],n);return u[s](i)};return n?e=>c(S(t[0],t[r-1],e)):c}(l,e,{ease:Array.isArray(i)?i:(h=e,c=i,h.map(()=>c||ae).splice(0,h.length-1))});var h,c;return{calculatedDuration:t,next:e=>(r.value=u(e),r.done=e>=t,r)}}const Te=t=>null!==t;function we(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Te),a=i<0||e&&"loop"!==n&&e%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}const Me={decay:ee,inertia:ee,tween:be,keyframes:be,spring:O};function Se(t){"string"==typeof t.type&&(t.type=Me[t.type])}class xe{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Ae=t=>t/100;class Ve extends xe{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==g.now()&&this.tick(g.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},at.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;Se(t);const{type:e=be,repeat:n=0,repeatDelay:s=0,repeatType:i,velocity:r=0}=t;let{keyframes:a}=t;const o=e||be;o!==be&&"number"!=typeof a[0]&&(this.mixKeyframes=rt(Ae,Jt(a[0],a[1])),a=[0,100]);const l=o({...t,keyframes:a});"mirror"===i&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=V(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:s,mixKeyframes:i,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let v,b=this.currentTime,T=n;if(h){const t=Math.min(this.currentTime,s)/a;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1),Boolean(e%2)&&("reverse"===c?(n=1-n,d&&(n-=d/a)):"mirror"===c&&(T=r)),b=S(0,1,n)*a}g?(this.delayState.value=u[0],v=this.delayState):v=T.next(b),i&&!g&&(v.value=i(v.value));let{done:w}=v;g||null===o||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const M=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return M&&p!==ee&&(v.value=we(u,this.options,f,this.speed)),m&&m(v.value),M&&this.finish(),v}then(t,e){return this.finished.then(t,e)}get duration(){return M(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+M(t)}get time(){return M(this.currentTime)}set time(t){t=w(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;return t<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(t):te(t=>this.generator.next(t).value,t,this.generator.next(t).value)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(g.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=M(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Qt,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(g.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,at.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const ke=t=>180*t/Math.PI,Ce=t=>{const e=ke(Math.atan2(t[1],t[0]));return Pe(e)},Fe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ce,rotateZ:Ce,skewX:t=>ke(Math.atan(t[1])),skewY:t=>ke(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Pe=t=>((t%=360)<0&&(t+=360),t),Be=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Re=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ee={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Be,scaleY:Re,scale:t=>(Be(t)+Re(t))/2,rotateX:t=>Pe(ke(Math.atan2(t[6],t[5]))),rotateY:t=>Pe(ke(Math.atan2(-t[2],t[0]))),rotateZ:Ce,rotate:Ce,skewX:t=>ke(Math.atan(t[4])),skewY:t=>ke(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function De(t){return t.includes("scale")?1:0}function Ie(t,e){if(!t||"none"===t)return De(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Ee,i=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Fe,i=e}if(!i)return De(e);const r=s[e],a=i[1].split(",").map(Oe);return"function"==typeof r?r(a):a[r]}function Oe(t){return parseFloat(t.trim())}const Ne=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ke=(()=>new Set(Ne))(),je=t=>t===pt||t===kt,We=new Set(["x","y","z"]),Le=Ne.filter(t=>!We.has(t)),$e={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return"border-box"===s?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return"border-box"===s?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ie(e,"x"),y:(t,{transform:e})=>Ie(e,"y")};$e.translateX=$e.x,$e.translateY=$e.y;const Ye=new Set;let Ue=!1,Xe=!1,qe=!1;function ze(){if(Xe){const t=Array.from(Ye).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return Le.forEach(n=>{const s=t.getValue(n);void 0!==s&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}Xe=!1,Ue=!1,Ye.forEach(t=>t.complete(qe)),Ye.clear()}function Ze(){Ye.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Xe=!0)})}class _e{constructor(t,e,n,s,i,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=s,this.element=i,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Ye.add(this),Ue||(Ue=!0,c.read(Ze),c.resolveKeyframes(ze))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:s}=this;
vendor: 1,536 bytes, line 1
1if(null===t[0]){const i=s?.get(),r=t[t.length-1];if(void 0!==i)t[0]=i;else if(n&&e){const s=n.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===i&&s.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ye.delete(this)}cancel(){"scheduled"===this.state&&(Ye.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function He(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}function Ge(t){let e;return()=>(void 0===e&&(e=t()),e)}const Je={};function Qe(t,e){const n=Ge(t);return()=>Je[e]??n()}const tn=Qe(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),en=Qe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),nn=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,sn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nn([0,.65,.55,1]),circOut:nn([.55,0,1,.45]),backIn:nn([.31,.01,.66,-.59]),backOut:nn([.33,1.53,.69,.99])};function rn(t,e){return t?"function"==typeof t?en()?x(t,e):"ease-out":ye(t)?nn(t):Array.isArray(t)?t.map(t=>rn(t,e)||sn.easeOut):sn[t]:void 0}function an(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h=void 0){const c={[e]:n};l&&(c.offset=l);const d=rn(o,i);
1Array.isArray(d)&&(c.easing=d),u.value&&at.waapi++;const p={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(p.pseudoElement=h);const m=t.animate(c,p);return u.value&&m.finished.finally(()=>{at.waapi--}),m}class on extends xe{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:n,keyframes:s,pseudoElement:i,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=Boolean(i),this.allowFlatten=r,this.options=t,t.type;const l=function({type:t,...e}){return L(t)&&en()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=an(e,n,s,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const t=we(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),He(e,n,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return M(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+M(t)}get time(){return M(Number(this.animation.currentTime)||0)}set time(t){const e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=w(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:n,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tn()?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),n&&(this.animation.rangeEnd=n),o):s(this)}}const ln={anticipate:de,backInOut:ce,circInOut:fe};class un extends on{constructor(t){var e;"string"==typeof(e=t).ease&&e.ease in ln&&(e.ease=ln[e.ease]),Se(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:s,element:i,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const a=new Ve({...r,autoplay:!1}),o=Math.max(10,g.now()-this.startTime),l=S(0,10,o-10),u=a.sample(o).value,{name:h}=this.options;i&&h&&He(i,h,u),e.setWithVelocity(a.sample(Math.max(0,o-l)).value,u,l),a.stop()}}const hn=(t,e)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!jt.test(t)&&"0"!==t||t.startsWith("url(")));function cn(t){t.duration=0,t.type="keyframes"}const dn=new Set(["opacity","clipPath","filter","transform"]),pn=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,mn=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fn=Ge(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class yn extends xe{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=g.now();const c={autoplay:t,delay:e,type:n,repeat:s,repeatDelay:i,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||_e;this.keyframeResolver=new d(a,(t,e,n)=>this.onKeyframesResolved(t,e,c,!n),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,s){this.keyframeResolver=void 0;const{name:i,type:r,velocity:l,delay:u,isHandoff:h,onUpdate:c}=n;this.resolvedAt=g.now();let d=!0;(function(t,e,n,s){const i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],a=hn(i,e),o=hn(r,e);return!(!a||!o)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||L(n))&&s)})(t,i,r,l)||(d=!1,!a.instantAnimations&&u||c?.(we(t,n,e)),t[0]=t[t.length-1],cn(n),n.repeat=0);const p={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},m=d&&!h&&function(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:a,keyframes:o}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:h}=e.owner.getProps();return fn()&&n&&(dn.has(n)||mn.has(n)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&pn.test(t[e]))return!0;return!1}(o))&&("transform"!==n||!h)&&!u&&!s&&"mirror"!==i&&0!==r&&"inertia"!==a}(p),f=p.motionValue?.owner?.current;let y;if(m)try{y=new un({...p,element:f})}catch{y=new Ve(p)}else y=new Ve(p);y.finished.then(()=>{this.notifyFinished()}).catch(o),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),qe=!0,Ze(),ze(),qe=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function gn(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function vn(t,e){const n=t?.[e]??t?.default??t;return n!==t?gn(n,t):n}const bn={type:"spring",stiffness:500,damping:25,restSpeed:10},Tn={type:"keyframes",duration:.8},wn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mn=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),Sn=(t,e,n,s={},i,r)=>
1o=>{const l=vn(s,t)||{},u=l.delay||s.delay||0;let{elapsed:h=0}=s;h-=w(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:i};(function(t){for(const e in t)if(!Mn.has(e))return!0;return!1})(l)||Object.assign(d,((t,{keyframes:e})=>e.length>2?Tn:Ke.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:bn:wn)(t,d)),d.duration&&(d.duration=w(d.duration)),d.repeatDelay&&(d.repeatDelay=w(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(cn(d),0===d.delay&&(p=!0)),(a.instantAnimations||a.skipAnimations||i?.shouldSkipAnimations)&&(p=!0,cn(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!r&&void 0!==e.get()){const t=we(d.keyframes,l);if(void 0!==t)return void c.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new Ve(d):new yn(d)},xn=new WeakMap,An=new Set(["width","height","top","left","right","bottom",...Ne]);function Vn(t){const e=[{},{}];return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function kn(t,e,n,s){if("function"==typeof e){const[i,r]=Vn(s);e=e(void 0!==n?n:t.custom,i,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[i,r]=Vn(s);e=e(void 0!==n?n:t.custom,i,r)}return e}function Cn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,T(n))}function Fn(t){return(t=>Array.isArray(t))(t)?t[t.length-1]||0:t}function Pn(t,e){const n=t.getValue("willChange");if(s=n,Boolean($(s)&&s.add))return n.add(e);if(!n&&a.WillChange){const n=new a.WillChange("auto");t.addValue("willChange",n),n.add(e)}var s}function Bn(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Rn="data-"+Bn("framerAppearId");function En(t){return t.props[Rn]}function Dn({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,s}function In(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:a,...o}=e;const l=t.getDefaultTransition();r=r?gn(r,l):l;const u=r?.reduceMotion;s&&(r=s);const h=[],d=i&&t.animationState&&t.animationState.getState()[i];for(const e in o){const s=t.getValue(e,t.latestValues[e]??null),i=o[e];if(void 0===i||d&&Dn(d,e))continue;const a={delay:n,...vn(r||{},e)},l=s.get();if(void 0!==l&&!s.isAnimating&&!Array.isArray(i)&&i===l&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const n=En(t);if(n){const t=window.MotionHandoffAnimation(n,e,c);null!==t&&(a.startTime=t,p=!0)}}Pn(t,e);const m=u??t.shouldReduceMotion;s.start(Sn(e,s,i,m&&An.has(e)?{type:!1}:a,t,p));const f=s.animation;f&&h.push(f)}if(a){const e=()=>c.update(()=>{a&&function(t,e){const n=function(t,e){const n=t.getProps();return kn(n,e,n.custom,t)}(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const e in r)Cn(t,e,Fn(r[e]))}(t,a)});h.length?Promise.all(h).then(e):e()}return h}function On(t){return"object"==typeof(e=t)&&null!==e&&"ownerSVGElement"in t;var e}const Nn=new Set(["brightness","contrast","saturate","opacity"]);function Kn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[s]=n.match(gt)||[];if(!s)return t;const i=n.replace(s,"");let r=Nn.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const jn=/\b([a-z-]*)\(.*?\)/gu,Wn={...jt,getAnimatableNone:t=>{const e=t.match(jn);return e?e.map(Kn).join(" "):t}},Ln={...jt,getAnimatableNone:t=>{const e=jt.parse(t);return jt.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},$n={...pt,transform:Math.round},Yn={borderWidth:kt,borderTopWidth:kt,borderRightWidth:kt,borderBottomWidth:kt,borderLeftWidth:kt,borderRadius:kt,borderTopLeftRadius:kt,borderTopRightRadius:kt,borderBottomRightRadius:kt,borderBottomLeftRadius:kt,width:kt,maxWidth:kt,height:kt,maxHeight:kt,top:kt,right:kt,bottom:kt,left:kt,inset:kt,insetBlock:kt,insetBlockStart:kt,insetBlockEnd:kt,insetInline:kt,insetInlineStart:kt,insetInlineEnd:kt,padding:kt,paddingTop:kt,paddingRight:kt,paddingBottom:kt,paddingLeft:kt,paddingBlock:kt,paddingBlockStart:kt,paddingBlockEnd:kt,paddingInline:kt,paddingInlineStart:kt,paddingInlineEnd:kt,margin:kt,marginTop:kt,marginRight:kt,marginBottom:kt,marginLeft:kt,marginBlock:kt,marginBlockStart:kt,marginBlockEnd:kt,marginInline:kt,marginInlineStart:kt,marginInlineEnd:kt,fontSize:kt,backgroundPositionX:kt,backgroundPositionY:kt,rotate:At,rotateX:At,rotateY:At,rotateZ:At,scale:ft,scaleX:ft,scaleY:ft,scaleZ:ft,skew:At,skewX:At,skewY:At,distance:kt,translateX:kt,translateY:kt,translateZ:kt,x:kt,y:kt,z:kt,perspective:kt,transformPerspective:kt,opacity:mt,originX:Pt,originY:Pt,originZ:kt,zIndex:$n,fillOpacity:mt,strokeOpacity:mt,numOctaves:$n},Un={...Yn,color:Rt,backgroundColor:Rt,outlineColor:Rt,fill:Rt,stroke:Rt,borderColor:Rt,borderTopColor:Rt,borderRightColor:Rt,borderBottomColor:Rt,borderLeftColor:Rt,filter:Wn,WebkitFilter:Wn,mask:Ln,WebkitMask:Ln},Xn=t=>Un[t],qn=()=>({x:{min:0,max:0},y:{min:0,max:0}}),zn=t=>e=>e.test(t),Zn=[pt,kt,Vt,At,Ft,Ct,{test:t=>"auto"===t,parse:t=>t}],Hn=t=>Zn.find(zn(t)),Gn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Jn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qn(t,e,n=1){const[s,i]=function(t){const e=Jn.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const t=r.trim();return Gn(t)?parseFloat(t):t}return ht(i)?Qn(i,e,n+1):i}const ts=t=>/^0[^.\s]+$/u.test(t);function es(t){return"number"==typeof t?0===t:null===t||"none"===t||"0"===t||ts(t)}const ns=new Set([Wn,Ln]);function ss(t,e){let n=Xn(t);return ns.has(n)||(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,683 bytes, line 1
1const is=new Set(["auto","none","0"]);class rs extends _e{constructor(t,e,n,s,i){super(t,e,n,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let s=t[n];if("string"==typeof s&&(s=s.trim(),ht(s))){const i=Qn(s,e.current);void 0!==i&&(t[n]=i),n===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!An.has(n)||2!==t.length)return;const[s,i]=t,r=Hn(s),a=Hn(i);if(dt(s)!==dt(i)&&$e[n])this.needsMeasurement=!0;else if(r!==a)if(je(r)&&je(a))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else $e[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)(null===t[e]||es(t[e]))&&n.push(e);n.length&&function(t,e,n){let s,i=0;for(;i<t.length&&!s;){const e=t[i];"string"==typeof e&&!is.has(e)&&Nt(e).values.length&&(s=t[i]),i++}if(s&&n)for(const i of e)t[i]=ss(n,s)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$e[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const s=e[e.length-1];void 0!==s&&t.getValue(n,s).jump(s,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);const i=n.length-1,r=n[i];n[i]=$e[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 11,979 bytes, line 1
1h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const{schedule:as,cancel:os}=h(queueMicrotask,!1),ls=[...Zn,Rt,jt],us=["initial","animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"];function hs(t){return null!==(e=t.animate)&&"object"==typeof e&&"function"==typeof e.start||us.some(e=>function(t){return"string"==typeof t||Array.isArray(t)}(t[e]));var e}const cs={current:null},ds={current:!1},ps="undefined"!=typeof window,ms=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let fs={};class ys{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=_e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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.renderScheduledAt=0,this.scheduleRender=()=>{const t=g.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,c.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=o,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=hs(e),this.isVariantNode=function(t){return Boolean(hs(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&$(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,xn.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ds.current||function(){if(ds.current=!0,ps)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>cs.current=t.matches;t.addEventListener("change",e),e()}else cs.current=!1}(),this.shouldReduceMotion=cs.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),d(this.notifyUpdate),d(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&dn.has(t)&&this.current instanceof HTMLElement){const{factory:n,keyframes:s,times:i,ease:r,duration:a}=e.accelerate,o=new on({element:this.current,name:t,keyframes:s,times:i,ease:r,duration:w(a)}),l=n(o);return void this.valueSubscriptions.set(t,()=>{l(),o.cancel()})}const n=Ke.has(t);n&&this.onBindTransform&&this.onBindTransform();const s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&c.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in fs){const e=fs[t];if(!e)continue;const{isEnabled:n,Feature:s}=e;if(!this.features[t]&&s&&n(this.props)&&(this.features[t]=new s(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ms.length;e++){const n=ms[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const s=t["on"+n];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=function(t,e,n){for(const s in e){const i=e[s],r=n[s];if($(i))t.addValue(s,i);else if($(r))t.addValue(s,T(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const e=t.getValue(s);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{const e=t.getStaticValue(s);t.addValue(s,T(void 0!==e?e:i,{owner:t}))}}for(const s in n)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=T(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=n&&("string"==typeof n&&(Gn(n)||ts(n))?n=parseFloat(n):(s=n,!ls.find(zn(s))&&jt.test(e)&&(n=ss(t,e))),this.setBaseTarget(t,$(n)?n.get():n)),$(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const s=kn(this.props,e,this.presenceContext?.custom);s&&(n=s[t])}if(e&&void 0!==n)return n;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||$(s)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new i),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){as.render(this.render)}}class gs extends ys{constructor(){super(...arguments),this.KeyframeResolver=rs}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){const n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}const vs=(t,e)=>e&&"number"==typeof t?e.transform(t):t,bs={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ts=Ne.length;function ws(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let a=!1,o=!1;for(const t in e){const n=e[t];if(Ke.has(t))a=!0;else if(lt(t))i[t]=n;else{const e=vs(n,Yn[t]);t.startsWith("origin")?(o=!0,r[t]=e):s[t]=e}}if(e.transform||(a||n?s.transform=function(t,e,n){let s="",i=!0;for(let r=0;r<Ts;r++){const a=Ne[r],o=t[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===(a.startsWith("scale")?1:0);else{const t=parseFloat(o);l=a.startsWith("scale")?1===t:0===t}if(!l||n){const t=vs(o,Yn[a]);l||(i=!1,s+=`${bs[a]||a}(${t}) `),n&&(e[a]=t)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}(e,t.transform,n):s.transform&&(s.transform="none")),o){const{originX:t="50%",originY:e="50%",originZ:n=0}=r;s.transformOrigin=`${t} ${e} ${n}`}}const Ms={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ss={offset:"strokeDashoffset",array:"strokeDasharray"},xs=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];const As=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"]);function Vs(t,{style:e,vars:n},s,i){const r=t.style;let a;for(a in e)r[a]=e[a];for(a in i?.applyProjectionStyles(r,s),n)r.setProperty(a,n[a])}function ks(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Cs={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!kt.test(t))return t;t=parseFloat(t)}return`${ks(t,e.target.x)}% ${ks(t,e.target.y)}%`}},Fs={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=jt.parse(t);if(i.length>5)return s;const r=jt.createTransformer(t),a="number"!=typeof i[0]?1:0,o=n.x.scale*e.x,l=n.y.scale*e.y;i[0+a]/=o,i[1+a]/=l;const u=K(o,l,.5);return"number"==typeof i[2+a]&&(i[2+a]/=u),"number"==typeof i[3+a]&&(i[3+a]/=u),r(i)}},Ps={borderRadius:{...Cs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cs,borderTopRightRadius:Cs,borderBottomLeftRadius:Cs,borderBottomRightRadius:Cs,boxShadow:Fs};function Bs(t,{layout:e,layoutId:n}){return Ke.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Ps[t]||"opacity"===t)}function Rs(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const e in s)($(s[e])||i&&$(i[e])||Bs(e,t)||void 0!==n?.getValue(e)?.liveStyle)&&(r[e]=s[e]);return r}class Es extends gs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qn}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Ke.has(e)){const t=Xn(e);return t&&t.default||0}return e=As.has(e)?e:Bn(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return function(t,e,n){const s=Rs(t,e,n);for(const n in t)($(t[n])||$(e[n]))&&(s[-1!==Ne.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return s}(t,e,n)}build(t,e,n){!function(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(ws(t,o,u),l)return void(t.style.viewBox&&(t.attrs.viewB
1ox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox);for(const t of xs)void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==n&&(c.y=n),void 0!==s&&(c.scale=s),void 0!==i&&function(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Ms:Ss;t[r.offset]=""+-s,t[r.array]=`${e} ${n}`}(c,i,r,a,!1)}(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,s){!function(t,e,n,s){Vs(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(As.has(n)?n:Bn(n),e.attrs[n])}(t,e,0,s)}mount(t){var e;this.isSVGTag="string"==typeof(e=t.tagName)&&"svg"===e.toLowerCase(),super.mount(t)}}class Ds extends gs{constructor(){super(...arguments),this.type="html",this.renderInstance=Vs}readValueFromInstance(t,e){if(Ke.has(e))return this.projection?.isProjecting?De(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ie(n,e)})(t,e);{const s=(n=t,window.getComputedStyle(n)),i=(lt(e)?s.getPropertyValue(e):s[e])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return function(t,e){return function({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}(t,e)}build(t,e,n){ws(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Rs(t,e,n)}}class Is extends ys{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function Os(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=On(t)&&!function(t){return On(t)&&"svg"===t.tagName}(t)?new Es(e):new Ds(e);n.mount(t),xn.set(t,n)}function Ns(t){const e=new Is({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),xn.set(t,e)}function Ks(t,e,n,s){const i=[];if(function(t,e){return $(t)||"number"==typeof t||"string"==typeof t&&!X(e)}(t,e))i.push(function(t,e,n){const s=$(t)?t:T(t);return s.start(Sn("",s,e,n)),s.animation}(t,X(e)&&e.default||e,n&&n.default||n));else{if(null==t)return i;const r=q(t,e,s),a=r.length;Boolean(a);for(let t=0;t<a;t++){const s=r[t],o=s instanceof Element?Os:Ns;xn.has(s)||o(s);const l=xn.get(s),u={...n};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,a)),i.push(...In(l,{...e,transition:u},{}))}}return i}const js=function(t={}){const{scope:e,reduceMotion:i}=t;return function(t,r,a){let o,l=[];
vendor: 2,470 bytes, line 1
1if(u=t,Array.isArray(u)&&u.some(Array.isArray)){const{onComplete:n,...s}=r||{};"function"==typeof n&&(o=n),l=function(t,e,n){const s=[],i=function(t,{defaultTransition:e={},...n}={},s,i){const r=e.duration||.3,a=new Map,o=new Map,l={},u=new Map;let h=0,c=0,d=0;for(let n=0;n<t.length;n++){const a=t[n];if("string"==typeof a){u.set(a,c);continue}if(!Array.isArray(a)){u.set(a.name,Z(c,a.at,h,u));continue}let[p,m,f={}]=a;void 0!==f.at&&(c=Z(c,f.at,h,u));let y=0;const g=(t,n,s,a=0,o=0)=>{const l=tt(t),{delay:u=0,times:h=W(l),type:p=e.type||"keyframes",repeat:m,repeatType:f,repeatDelay:g=0,...v}=n;let{ease:b=e.ease||"easeOut",duration:T}=n;const M="function"==typeof u?u(a,o):u,S=l.length,x=L(p)?p:i?.[p||"keyframes"];if(S<=2&&x){let t=100;if(2===S&&st(l)){const e=l[1]-l[0];t=Math.abs(e)}const n={...e,...v};void 0!==T&&(n.duration=w(T));const s=k(n,t,x);b=s.ease,T=s.duration}T??(T=r);const A=c+M;1===h.length&&0===h[0]&&(h[1]=1);const V=h.length-l.length;if(V>0&&j(h,V),1===l.length&&l.unshift(null),m){T=z(T,m);const t=[...l],e=[...h];b=Array.isArray(b)?[...b]:[b];const n=[...b];for(let s=0;s<m;s++){l.push(...t);for(let i=0;i<t.length;i++)h.push(e[i]+(s+1)),b.push(0===i?"linear":U(n,i-1))}H(h,m)}const C=A+T;_(s,l,b,h,A,C),y=Math.max(M+T,y),d=Math.max(C,d)};if($(p))g(m,f,Q("default",J(p,o)));else{const t=q(p,m,s,l),e=t.length;for(let n=0;n<e;n++){const s=J(t[n],o);for(const t in m)g(m[t],et(f,t),Q(t,s),n,e)}}h=c,c+=y}return o.forEach((t,s)=>{for(const i in t){const r=t[i];r.sort(G);const o=[],l=[],u=[];for(let t=0;t<r.length;t++){const{at:e,value:n,easing:s}=r[t];o.push(n),l.push(N(0,d,e)),u.push(s||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),a.has(s)||a.set(s,{keyframes:{},transition:{}});const h=a.get(s);h.keyframes[i]=o;const{type:c,...p}=e;h.transition[i]={...p,duration:d,ease:u,times:l,...n}}}),a}(t.map(t=>{if(Array.isArray(t)&&"function"==typeof t[0]){const e=t[0],n=T(0);return n.on("change",e),1===t.length?[n,[0,1]]:2===t.length?[n,[0,1],t[1]]:[n,t[1],t[2]]}return t}),e,n,{spring:O});return i.forEach(({keyframes:t,transition:e},n)=>{s.push(...Ks(n,t,e))}),s}(t,void 0!==i?{reduceMotion:i,...s}:s,e)}else{const{onComplete:n,...s}=a||{};"function"==typeof n&&(o=n),l=Ks(t,r,void 0!==i?{reduceMotion:i,...s}:s,e)}var u;const h=new n(l);return o&&h.finished.then(o),e&&(e.animations.push(h),h.finished.then(()=>{s(e.animations,h)})),h}}();window.StoriesAnimate=js})();

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.