@hyperframes/core 0.4.22 → 0.5.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/compiler/htmlBundler.d.ts.map +1 -1
  2. package/dist/compiler/htmlBundler.js +7 -1
  3. package/dist/compiler/htmlBundler.js.map +1 -1
  4. package/dist/compiler/htmlCompiler.d.ts.map +1 -1
  5. package/dist/compiler/htmlCompiler.js +2 -0
  6. package/dist/compiler/htmlCompiler.js.map +1 -1
  7. package/dist/compiler/rewriteSubCompPaths.d.ts +4 -0
  8. package/dist/compiler/rewriteSubCompPaths.d.ts.map +1 -1
  9. package/dist/compiler/rewriteSubCompPaths.js +17 -0
  10. package/dist/compiler/rewriteSubCompPaths.js.map +1 -1
  11. package/dist/compiler/timingCompiler.d.ts +1 -0
  12. package/dist/compiler/timingCompiler.d.ts.map +1 -1
  13. package/dist/compiler/timingCompiler.js +2 -1
  14. package/dist/compiler/timingCompiler.js.map +1 -1
  15. package/dist/generated/runtime-inline.js +1 -1
  16. package/dist/generated/runtime-inline.js.map +1 -1
  17. package/dist/hyperframe.manifest.json +1 -1
  18. package/dist/hyperframe.runtime.iife.js +5 -5
  19. package/dist/hyperframe.runtime.mjs +5 -5
  20. package/dist/studio-api/createStudioApi.d.ts.map +1 -1
  21. package/dist/studio-api/createStudioApi.js +2 -0
  22. package/dist/studio-api/createStudioApi.js.map +1 -1
  23. package/dist/studio-api/helpers/subComposition.d.ts.map +1 -1
  24. package/dist/studio-api/helpers/subComposition.js +4 -1
  25. package/dist/studio-api/helpers/subComposition.js.map +1 -1
  26. package/dist/studio-api/routes/fonts.d.ts +3 -0
  27. package/dist/studio-api/routes/fonts.d.ts.map +1 -0
  28. package/dist/studio-api/routes/fonts.js +239 -0
  29. package/dist/studio-api/routes/fonts.js.map +1 -0
  30. package/dist/studio-api/routes/thumbnail.d.ts.map +1 -1
  31. package/dist/studio-api/routes/thumbnail.js +9 -3
  32. package/dist/studio-api/routes/thumbnail.js.map +1 -1
  33. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  // AUTO-GENERATED by scripts/build-hyperframes-runtime-artifact.ts — do not edit
2
- const RUNTIME_IIFE = "\"use strict\";(()=>{function me(e){try{window.parent.postMessage(e,\"*\")}catch{}}function At(e){let t=n=>{let o=n.data;if(!o||o.source!==\"hf-parent\"||o.type!==\"control\")return;let r=o.action;if(r===\"play\"){e.onPlay();return}if(r===\"pause\"){e.onPause();return}if(r===\"seek\"){e.onSeek(Number(o.frame??0),o.seekMode??\"commit\");return}if(r===\"set-muted\"){e.onSetMuted(!!o.muted);return}if(r===\"set-media-output-muted\"){e.onSetMediaOutputMuted(!!o.muted);return}if(r===\"set-playback-rate\"){e.onSetPlaybackRate(Number(o.playbackRate??1));return}if(r===\"enable-pick-mode\"){e.onEnablePickMode();return}if(r===\"disable-pick-mode\"){e.onDisablePickMode();return}if(r===\"flash-elements\"){let i=o.selectors,u=o.duration||800;i&&Nn(i,u)}};return window.addEventListener(\"message\",t),t}function Nn(e,t){if(!document.getElementById(\"__hf-flash-styles\")){let n=document.createElement(\"style\");n.id=\"__hf-flash-styles\",n.textContent=`\n .__hf-flash {\n outline: 2px solid rgba(59, 130, 246, 0.6) !important;\n outline-offset: 2px !important;\n animation: __hf-flash-pulse ${t}ms ease-out forwards !important;\n }\n @keyframes __hf-flash-pulse {\n 0% { outline-color: rgba(59, 130, 246, 0.8); }\n 100% { outline-color: transparent; }\n }\n `,document.head.appendChild(n)}for(let n of e)try{document.querySelectorAll(n).forEach(r=>{r.classList.add(\"__hf-flash\"),setTimeout(()=>r.classList.remove(\"__hf-flash\"),t)})}catch{}}var et=null;function Nt(e){et=e}function Oe(e,t){if(et)try{et({source:\"hf-preview\",type:\"analytics\",event:e,properties:t??{}})}catch{}}function Et(e){let t=[],n=d=>{if(typeof d.getAnimations!=\"function\")return[];try{return d.getAnimations()}catch{return[]}},o=(d,c)=>{for(let s of d){try{s.currentTime=c}catch{}try{s.pause()}catch{}}},r=d=>{for(let c of d)try{c.play()}catch{}},i=d=>{for(let c of d)try{c.pause()}catch{}},u=d=>{d.baseDelay?d.el.style.animationDelay=d.baseDelay:d.el.style.removeProperty(\"animation-delay\"),d.basePlayState?d.el.style.animationPlayState=d.basePlayState:d.el.style.removeProperty(\"animation-play-state\")};return{name:\"css\",discover:()=>{t=[];let d=document.querySelectorAll(\"*\");for(let c of d){if(!(c instanceof HTMLElement))continue;let s=window.getComputedStyle(c);!s.animationName||s.animationName===\"none\"||t.push({el:c,baseDelay:c.style.animationDelay||\"\",basePlayState:c.style.animationPlayState||\"\"})}},seek:d=>{let c=Number(d.time)||0;for(let s of t){if(!s.el.isConnected)continue;let a=e?.resolveStartSeconds?e.resolveStartSeconds(s.el):Number.parseFloat(s.el.getAttribute(\"data-start\")??\"0\")||0,m=Math.max(0,c-a)*1e3,p=n(s.el);if(p.length>0){o(p,m);continue}s.el.style.animationPlayState=\"paused\",s.el.style.animationDelay=`-${(m/1e3).toFixed(3)}s`}},pause:()=>{for(let d of t){if(!d.el.isConnected)continue;let c=n(d.el);c.length>0&&i(c),u(d)}},play:()=>{for(let d of t)d.el.isConnected&&(u(d),r(n(d.el)))},revert:()=>{t=[]}}}function yt(e){return{name:\"gsap\",discover:()=>{},seek:t=>{let n=e.getTimeline();if(!n)return;n.pause();let o=Math.max(0,Number(t.time)||0);typeof n.totalTime==\"function\"?n.totalTime(o,!1):n.seek(o,!1)},pause:()=>{let t=e.getTimeline();t&&t.pause()}}}function Ct(){return{name:\"lottie\",discover:()=>{try{let e=window.lottie;if(e&&typeof e.getRegisteredAnimations==\"function\"){let t=e.getRegisteredAnimations();if(Array.isArray(t)&&t.length>0){let n=window.__hfLottie??[],o=new Set(n);for(let r of t)o.has(r)||n.push(r);window.__hfLottie=n}}}catch{}},seek:e=>{let t=Math.max(0,Number(e.time)||0),n=window.__hfLottie;if(!(!n||n.length===0))for(let o of n)try{if(bt(o))o.goToAndStop(t*1e3,!1);else if(Mt(o)){if(typeof o.setCurrentRawFrameValue==\"function\"){let r=o.totalFrames??0,i=o.frameRate??30,u=t*i;r>0&&o.setCurrentRawFrameValue(Math.min(u,r-1))}else if(typeof o.seek==\"function\"){let r=o.duration??1,i=Math.min(100,t/r*100);o.seek(i)}}}catch{}},pause:()=>{let e=window.__hfLottie;if(!(!e||e.length===0))for(let t of e)try{(bt(t)||Mt(t))&&t.pause()}catch{}},revert:()=>{}}}function bt(e){return typeof e==\"object\"&&e!==null&&typeof e.goToAndStop==\"function\"}function Mt(e){return typeof e==\"object\"&&e!==null&&typeof e.pause==\"function\"&&(\"totalFrames\"in e||\"duration\"in e)}function Dt(){let e=null,t=0;return{name:\"three\",discover:()=>{},seek:n=>{e=Math.max(0,Number(n.time)||0),t=e,window.__hfThreeTime=e;try{window.dispatchEvent(new CustomEvent(\"hf-seek\",{detail:{time:e}}))}catch{}},pause:()=>{e==null&&(e=Math.max(0,t))},play:()=>{e=null},revert:()=>{e=null,t=0}}}function kt(){return{name:\"waapi\",discover:()=>{},seek:e=>{if(!document.getAnimations)return;let t=Math.max(0,(Number(e.time)||0)*1e3);for(let n of document.getAnimations()){try{n.currentTime=t}catch{}try{n.pause()}catch{}}},pause:()=>{if(document.getAnimations)for(let e of document.getAnimations())try{e.pause()}catch{}}}}function Lt(e){let t=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\")),n=[],o=[],r=0;for(let i of t){let u=e?.resolveStartSeconds?e.resolveStartSeconds(i):Number.parseFloat(i.dataset.start??\"0\");if(!Number.isFinite(u))continue;let d=Number.parseFloat(i.dataset.playbackStart??i.dataset.mediaStart??\"0\")||0,c=i.defaultPlaybackRate,s=Number.isFinite(c)&&c>0?Math.max(.1,Math.min(5,c)):1,a=i.loop,m=Number.isFinite(i.duration)&&i.duration>0?i.duration:null,p=Number.parseFloat(i.dataset.duration??\"\");(!Number.isFinite(p)||p<=0)&&m!=null&&(p=Math.max(0,(m-d)/s));let F=Number.isFinite(p)&&p>0?u+p:Number.POSITIVE_INFINITY,D=Number.parseFloat(i.dataset.volume??\"\"),C={el:i,start:u,mediaStart:d,duration:Number.isFinite(p)&&p>0?p:Number.POSITIVE_INFINITY,end:F,volume:Number.isFinite(D)?D:null,playbackRate:s,loop:a,sourceDuration:m};n.push(C),i.tagName===\"VIDEO\"&&o.push(C),Number.isFinite(F)&&(r=Math.max(r,F))}return{timedMediaEls:t,mediaClips:n,videoClips:o,maxMediaEnd:r}}var tt=new WeakMap,_e=new WeakSet;function En(e){if(_e.has(e))return;_e.add(e);let t=()=>_e.delete(e);e.addEventListener(\"playing\",t,{once:!0}),e.addEventListener(\"pause\",t,{once:!0}),e.addEventListener(\"error\",t,{once:!0})}function Tt(e){let t=!!(e.outputMuted||e.userMuted);for(let n of e.clips){let{el:o}=n;if(!o.isConnected)continue;let r=(e.timeSeconds-n.start)*n.playbackRate+n.mediaStart;if(e.timeSeconds>=n.start&&e.timeSeconds<n.end&&r>=0){if(n.loop&&n.sourceDuration!=null&&n.sourceDuration>0){let F=n.sourceDuration-n.mediaStart;F>0&&r>=n.sourceDuration&&(r=n.mediaStart+(r-n.mediaStart)%F)}n.volume!=null&&(o.volume=n.volume),t&&(o.muted=!0);try{o.playbackRate=n.playbackRate*e.playbackRate}catch{}let u=o.currentTime||0,d=Math.abs(u-r),c=r-u,s=tt.get(o);tt.set(o,c);let a=s===void 0,m=!a&&Math.abs(c-s)>.5,p=d>3;if(d>.5&&(a||m||p))try{o.currentTime=r}catch{}e.playing&&o.paused&&!_e.has(o)?(o.preload!==\"auto\"&&(o.preload=\"auto\"),En(o),o.play().catch(F=>{_e.delete(o),(F&&typeof F==\"object\"&&\"name\"in F?String(F.name??\"\"):\"\")===\"NotAllowedError\"&&e.onAutoplayBlocked?.()})):!e.playing&&!o.paused&&o.pause();continue}tt.delete(o),o.paused||o.pause()}}function wt(e){let t=!1,n=null,o=null,r=null,i=null;function u(S,x){try{window.dispatchEvent(new CustomEvent(S,{detail:x}))}catch{}}function d(S){r=S,u(\"hyperframe:picker:hovered\",{elementInfo:r,isPickMode:t,timestamp:Date.now()})}function c(S){i=S,u(\"hyperframe:picker:selected\",{elementInfo:i,isPickMode:t,timestamp:Date.now()})}function s(S){if(!S||S===document.body||S===document.documentElement)return!1;let x=S.tagName.toLowerCase();return!(x===\"script\"||x===\"style\"||x===\"link\"||x===\"meta\"||S.classList.contains(\"__hf-pick-highlight\"))}function a(S){let x=S;if(x.id)return`#${x.id}`;let g=S.getAttribute(\"data-composition-id\");if(g)return`[data-composition-id=\"${g}\"]`;let E=S.getAttribute(\"data-composition-src\");if(E)return`[data-composition-src=\"${E}\"]`;let b=S.getAttribute(\"data-track-index\");if(b)return`[data-track-index=\"${b}\"]`;let y=S.tagName.toLowerCase(),v=S.parentElement;if(!v)return y;let _=v.querySelectorAll(`:scope > ${y}`);if(_.length===1)return y;for(let O=0;O<_.length;O+=1)if(_[O]===S)return`${y}:nth-of-type(${O+1})`;return y}function m(S){let x=S.tagName.toLowerCase(),g=(S.textContent??\"\").trim().replace(/\\s+/g,\" \"),E=(b,y)=>b.length>y?`${b.slice(0,y-1)}\\u2026`:b;return x===\"h1\"||x===\"h2\"||x===\"h3\"?\"Heading\":x===\"p\"||x===\"span\"||x===\"div\"?g.length>0?E(g,56):\"Text\":x===\"img\"?\"Image\":x===\"video\"?\"Video\":x===\"audio\"?\"Audio\":x===\"svg\"?\"Shape\":S.getAttribute(\"data-composition-src\")?\"Composition\":x===\"section\"?\"Section\":`${x.charAt(0).toUpperCase()}${x.slice(1)}`}function p(S,x,g){let E=typeof g==\"number\"&&g>0?g:8,b=[];if(document.elementsFromPoint)b=document.elementsFromPoint(S,x);else if(document.elementFromPoint){let _=document.elementFromPoint(S,x);b=_?[_]:[]}let y={},v=[];for(let _=0;_<b.length;_+=1){let O=b[_];if(!s(O))continue;let V=`${O.tagName}::${O.id||\"\"}::${_}`;if(!y[V]&&(y[V]=!0,v.push(O),v.length>=E))break}return v}function F(S){let x=S.getBoundingClientRect(),g={};for(let b=0;b<S.attributes.length;b+=1){let y=S.attributes[b];y.name.startsWith(\"data-\")&&(g[y.name]=y.value)}return{id:S.id||null,tagName:S.tagName.toLowerCase(),selector:a(S),label:m(S),boundingBox:{x:x.left,y:x.top,width:x.width,height:x.height},textContent:S.textContent?S.textContent.trim().slice(0,200):null,src:S.getAttribute(\"src\")||S.getAttribute(\"data-composition-src\")||null,dataAttributes:g}}function D(S,x,g){return p(S,x,g).map(F)}function C(S){if(!t)return;let g=p(S.clientX,S.clientY,1)[0]??(S.target instanceof Element?S.target:null);if(!s(g)||n===g)return;n&&n.classList.remove(\"__hf-pick-highlight\"),n=g,g.classList.add(\"__hf-pick-highlight\");let E=F(g);d(E),e.postMessage({source:\"hf-preview\",type:\"element-hovered\",elementInfo:E})}function T(S){if(!t)return;S.preventDefault(),S.stopPropagation(),S.stopImmediatePropagation();let x=D(S.clientX,S.clientY,8);x.length!==0&&(d(x[0]??null),e.postMessage({source:\"hf-preview\",type:\"element-pick-candidates\",candidates:x,selectedIndex:0,point:{x:S.clientX,y:S.clientY}}))}function U(S){S.key===\"Escape\"&&(k(),e.postMessage({source:\"hf-preview\",type:\"pick-mode-cancelled\"}))}function z(){t||(t=!0,o=document.createElement(\"style\"),o.textContent=[\".__hf-pick-highlight { outline: 2px solid #4f8cf7 !important; outline-offset: 2px; cursor: crosshair !important; }\",\".__hf-pick-active * { cursor: crosshair !important; }\"].join(`\n`),document.head.appendChild(o),document.body.classList.add(\"__hf-pick-active\"),document.addEventListener(\"mousemove\",C,!0),document.addEventListener(\"click\",T,!0),document.addEventListener(\"keydown\",U,!0),u(\"hyperframe:picker:mode\",{isPickMode:!0,timestamp:Date.now()}))}function k(){t&&(t=!1,n&&(n.classList.remove(\"__hf-pick-highlight\"),n=null),o&&(o.remove(),o=null),document.body.classList.remove(\"__hf-pick-active\"),document.removeEventListener(\"mousemove\",C,!0),document.removeEventListener(\"click\",T,!0),document.removeEventListener(\"keydown\",U,!0),u(\"hyperframe:picker:mode\",{isPickMode:!1,timestamp:Date.now()}))}function Q(){window.__HF_PICKER_API={enable:z,disable:k,isActive:()=>t,getHovered:()=>r,getSelected:()=>i,getCandidatesAtPoint:(S,x,g)=>Number.isFinite(S)&&Number.isFinite(x)?D(S,x,g):[],pickAtPoint:(S,x,g)=>{if(!Number.isFinite(S)||!Number.isFinite(x))return null;let E=D(S,x,8);if(!E.length)return null;let b=Math.max(0,Math.min(E.length-1,Number(g??0))),y=E[b]??null;return y?(c(y),e.postMessage({source:\"hf-preview\",type:\"element-picked\",elementInfo:y}),k(),y):null},pickManyAtPoint:(S,x,g)=>{if(!Number.isFinite(S)||!Number.isFinite(x))return[];let E=D(S,x,8);if(!E.length)return[];let b=[],y=Array.isArray(g)?g:[0];for(let v of y){let _=Math.max(0,Math.min(E.length-1,Math.floor(Number(v)))),O=E[_];if(!O)continue;b.some(w=>w.selector===O.selector&&w.tagName===O.tagName)||b.push(O)}return b.length?(c(b[0]??null),e.postMessage({source:\"hf-preview\",type:\"element-picked-many\",elementInfos:b}),k(),b):[]}},u(\"hyperframe:picker:api-ready\",{hasApi:!0,timestamp:Date.now()})}return{enablePickMode:z,disablePickMode:k,installPickerApi:Q}}function nt(e,t){let n=Number.isFinite(t)&&t>0?t:30,o=Number.isFinite(e)&&e>0?e:0;return Math.floor(o*n+1e-9)/n}function Ge(e,t,n){if(e){for(let o of Object.values(e))if(!(!o||o===t))try{n(o)}catch{}}}function Bt(e,t,n){let o=nt(t,n);return e.pause(),typeof e.totalTime==\"function\"?e.totalTime(o,!1):e.seek(o,!1),o}function yn(e,t,n,o){let r=[];Ge(e,t,i=>{i.play(),r.push(i)});try{return Bt(t,n,o)}finally{for(let i of r)try{i.pause()}catch{}}}function bn(e,t){Ge(e,t,n=>{n.play()})}function Rt(e){return{_timeline:null,play:()=>{let t=e.getTimeline();if(!t||e.getIsPlaying())return;let n=Math.max(0,Number(e.getSafeDuration?.()??t.duration()??0)||0);n>0&&Math.max(0,Number(t.time())||0)>=n&&(t.pause(),t.seek(0,!1),e.onDeterministicSeek(0),e.setIsPlaying(!1),e.onSyncMedia(0,!1),e.onRenderFrameSeek(0)),typeof t.timeScale==\"function\"&&t.timeScale(e.getPlaybackRate()),t.play(),Ge(e.getTimelineRegistry?.(),t,o=>{typeof o.timeScale==\"function\"&&o.timeScale(e.getPlaybackRate()),o.play()}),e.onDeterministicPlay(),e.setIsPlaying(!0),e.onShowNativeVideos(),e.onStatePost(!0)},pause:()=>{let t=e.getTimeline();if(!t)return;t.pause(),Ge(e.getTimelineRegistry?.(),t,o=>{o.pause()});let n=Math.max(0,Number(t.time())||0);e.onDeterministicSeek(n),e.onDeterministicPause(),e.setIsPlaying(!1),e.onSyncMedia(n,!1),e.onRenderFrameSeek(n),e.onStatePost(!0)},seek:t=>{let n=e.getTimeline();if(!n)return;let o=Math.max(0,Number(t)||0),r=yn(e.getTimelineRegistry?.(),n,o,e.getCanonicalFps());e.onDeterministicSeek(r),e.setIsPlaying(!1),e.onSyncMedia(r,!1),e.onRenderFrameSeek(r),e.onStatePost(!0)},renderSeek:t=>{let n=e.getTimeline(),o=e.getCanonicalFps(),r=n?(bn(e.getTimelineRegistry?.(),n),Bt(n,t,o)):nt(Math.max(0,Number(t)||0),o);e.onDeterministicSeek(r),e.setIsPlaying(!1),e.onSyncMedia(r,!1),e.onRenderFrameSeek(r),e.onStatePost(!0)},getTime:()=>Number(e.getTimeline()?.time()??0),getDuration:()=>Number(e.getTimeline()?.duration()??0),isPlaying:()=>e.getIsPlaying(),setPlaybackRate:t=>e.setPlaybackRate(t),getPlaybackRate:()=>e.getPlaybackRate()}}function vt(){return{capturedTimeline:null,isPlaying:!1,rafId:null,currentTime:0,deterministicAdapters:[],parityModeEnabled:!0,canonicalFps:30,bridgeMuted:!1,mediaOutputMuted:!1,mediaAutoplayBlockedPosted:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,timelinePollIntervalId:null,controlBridgeHandler:null,clampDurationLoggedRaw:null,beforeUnloadHandler:null,domReadyHandler:null,injectedCompStyles:[],injectedCompScripts:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,maxTimelineDurationSeconds:1800,nativeVisualWatchdogTick:0}}var Mn=\"data-hf-authored-duration\",Cn=\"data-hf-authored-end\";function De(e){if(e==null||e===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}function Dn(e){return De(e.getAttribute(\"data-duration\"))}function kn(e){return De(e.getAttribute(\"data-end\"))}function Ln(e){return De(e.getAttribute(Mn))}function Tn(e){return De(e.getAttribute(Cn))}function wn(e){let t=(e??\"\").trim();if(!t)return null;let n=De(t);if(n!=null)return{kind:\"absolute\",value:n};let o=t.match(/^([A-Za-z0-9_.:-]+)(?:\\s*([+-])\\s*([0-9]*\\.?[0-9]+))?$/);if(!o)return null;let r=(o[1]??\"\").trim();if(!r)return null;let i=o[2]??\"+\",u=o[3]??\"0\",d=Number.parseFloat(u),c=Number.isFinite(d)?Math.max(0,d):0,s=i===\"-\"?-c:c;return{kind:\"reference\",refId:r,offset:s}}function Be(e){let t=e.timelineRegistry??{},n=e.includeAuthoredTimingAttrs??!1,o=new WeakMap,r=new WeakMap,i=new Set,u=a=>{let m=document.getElementById(a);return m||(document.querySelector(`[data-composition-id=\"${CSS.escape(a)}\"]`)??null)},d=a=>{let m=r.get(a);if(m!==void 0)return m;let p=null,F=Dn(a)??(n?Ln(a):null);if(F!=null&&F>0&&(p=F),p==null||p<=0){let D=kn(a)??(n?Tn(a):null);if(D!=null){let C=s(a,0),T=D-C;Number.isFinite(T)&&T>0&&(p=T)}}if((p==null||p<=0)&&a instanceof HTMLMediaElement){let D=De(a.getAttribute(\"data-playback-start\"))??De(a.getAttribute(\"data-media-start\"))??0;Number.isFinite(a.duration)&&a.duration>D&&(p=a.duration-D)}if(p==null||p<=0){let D=a.getAttribute(\"data-composition-id\");if(D){let C=t[D]??null;if(C&&typeof C.duration==\"function\")try{let T=Number(C.duration());Number.isFinite(T)&&T>0&&(p=T)}catch{}}}return p!=null&&Number.isFinite(p)&&p>0?(r.set(a,p),p):(r.set(a,null),null)},c=(a,m)=>{if(a.hasAttribute(\"data-composition-id\")){let F=a.parentElement?.closest(\"[data-composition-id]\");return F?s(F,m):0}let p=a.closest(\"[data-composition-id]\");return p?s(p,m):0},s=(a,m)=>{let p=o.get(a);if(p!==void 0)return p??m;if(i.has(a))return m;i.add(a);try{let F=wn(a.getAttribute(\"data-start\"));if(!F){if(a.hasAttribute(\"data-composition-id\")){let z=a.parentElement;if(z&&(z.hasAttribute(\"data-composition-src\")||z.hasAttribute(\"data-composition-id\"))){let k=s(z,m);return o.set(a,k),k}}return o.set(a,m),m}if(F.kind===\"absolute\"){let z=Math.max(0,F.value),k=Math.max(0,c(a,m)+z);return o.set(a,k),k}let D=u(F.refId);if(!D)return o.set(a,m),m;let C=s(D,0),T=d(D);if(T==null||T<=0){let z=Math.max(0,C+F.offset);return o.set(a,z),z}let U=Math.max(0,C+T+F.offset);return o.set(a,U),U}finally{i.delete(a)}};return{resolveStartForElement:(a,m=0)=>s(a,Math.max(0,m)),resolveDurationForElement:a=>d(a)}}var Bn=\"data-hf-authored-duration\",Rn=\"data-hf-authored-end\";function xe(e){if(e==null||e===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}function it(e){return xe(e.getAttribute(\"data-duration\"))??xe(e.getAttribute(Bn))}function It(e){return xe(e.getAttribute(\"data-end\"))??xe(e.getAttribute(Rn))}function ot(...e){let t=e.filter(n=>Number.isFinite(n??null));return t.length===0?null:Math.max(...t)}var Pt={composition:0,video:1,image:2,element:3,audio:4};function vn(e){if(e.length===0)return;let t=new Map;for(let u of e){let d=t.get(u.track)??new Set;d.add(u.kind),t.set(u.track,d)}if(!Array.from(t.values()).some(u=>u.size>1))return;let o=0,r=new Map,i=[...t.keys()].sort((u,d)=>u-d);for(let u of i){let d=t.get(u);if(d.size===1)r.set(`${u}:${[...d][0]}`,o++);else{let c=[...d].sort((s,a)=>(Pt[s]??99)-(Pt[a]??99));for(let s of c)r.set(`${u}:${s}`,o++)}}for(let u of e){let d=`${u.track}:${u.kind}`,c=r.get(d);c!=null&&(u.track=c)}}function We(e){let t=String(e??\"\").trim();if(!t)return null;let n=t.toLowerCase();if(n.startsWith(\"data:\")||n.startsWith(\"javascript:\"))return null;try{return new URL(t,document.baseURI).toString()}catch{return t}}function In(e){let t=e.getAttribute(\"src\")??e.getAttribute(\"data-src\");if(t)return We(t);let n=e.getAttribute(\"data-composition-src\");if(n)return We(n);let o=e.querySelector(\"img[src], video[src], audio[src], source[src]\");return o?We(o.getAttribute(\"src\")):null}function Ot(e){let n=window.__timelines??{},o=Be({timelineRegistry:n,includeAuthoredTimingAttrs:!0}),r=B=>{if(!B)return null;let M=n[B]??null;if(!M||typeof M.duration!=\"function\")return null;try{let L=Number(M.duration());return Number.isFinite(L)&&L>0?L:null}catch{return null}},i=B=>{let M=xe(B.getAttribute(\"data-duration\"));if(M!=null&&M>0)return M;let L=xe(B.getAttribute(\"data-playback-start\"))??xe(B.getAttribute(\"data-media-start\"))??0;return Number.isFinite(B.duration)&&B.duration>L?Math.max(0,B.duration-L):null},u=()=>{let B=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\"));if(B.length===0)return null;let M=0;for(let L of B){let J=o.resolveStartForElement(L,0);if(!Number.isFinite(J))continue;let X=i(L);X==null||X<=0||(M=Math.max(M,Math.max(0,J)+X))}return M>0?M:null},d=B=>{let M=B.trim().toLowerCase();return!(!M||M===\"main\"||M.includes(\"caption\")||M.includes(\"ambient\"))},c=(B,M)=>{let L=[],J=null,X=null,I=null,P=B.parentElement;for(;P;){let H=P.getAttribute(\"data-composition-id\");H&&(L.push(H),!I&&P!==M&&(I=H),J==null&&(J=o.resolveStartForElement(P,0)),X==null&&(X=xe(P.getAttribute(\"data-duration\"))??r(H)??null)),P=P.parentElement}return{parentCompositionId:I,compositionAncestors:L.reverse(),inheritedStart:J,inheritedDuration:X}},s=document.querySelector(\"[data-composition-id]\"),a=Array.from(document.querySelectorAll(\"[data-composition-id]\")),m=s?.getAttribute(\"data-composition-id\")??null,p=s?o.resolveStartForElement(s,0):0,F=u(),D=F!=null?Math.max(0,F-Math.max(0,p)):null,C=r(m),T=it(s??document.body),U=ot(...a.filter(B=>B!==s).map(B=>{let M=o.resolveStartForElement(B,0),L=o.resolveDurationForElement(B)??r(B.getAttribute(\"data-composition-id\"))??null;return!Number.isFinite(M)||L==null||L<=0?null:Math.max(0,M)+L})),z=U!=null?Math.max(0,U-Math.max(0,p)):null,k=typeof C==\"number\"&&Number.isFinite(C)&&C>0?C:null,Q=typeof T==\"number\"&&Number.isFinite(T)&&T>0?T:null,S=typeof D==\"number\"&&Number.isFinite(D)&&D>0?D:null,x=typeof z==\"number\"&&Number.isFinite(z)&&z>0?z:null,g=ot(S,x),E=k!=null&&g!=null&&k>g+1,b=Q??(E?g:ot(k,S,x)),y=b!=null?Math.min(b,e.maxTimelineDurationSeconds):null,_=(y!=null?p+y:null)??(typeof F==\"number\"&&Number.isFinite(F)&&F>0?F:null),O=(B,M)=>!Number.isFinite(M)||M<=0?0:_==null||!Number.isFinite(_)?M:!Number.isFinite(B)||B>=_?0:Math.max(0,Math.min(M,_-B)),V=[],w=[],K=Array.from(document.querySelectorAll(\"[data-start], [data-track-index], [data-composition-id], video, audio, img\")),Z=0;for(let B=0;B<K.length;B+=1){let M=K[B];if(M===s||[\"SCRIPT\",\"STYLE\",\"LINK\",\"META\",\"TEMPLATE\",\"NOSCRIPT\"].includes(M.tagName))continue;let L=c(M,s),J=o.resolveStartForElement(M,L.inheritedStart??0),X=M.getAttribute(\"data-composition-id\"),I=it(M);if((I==null||I<=0)&&X&&X!==m&&(I=r(X)),(I==null||I<=0)&&M instanceof HTMLMediaElement){let de=xe(M.getAttribute(\"data-playback-start\"))??xe(M.getAttribute(\"data-media-start\"))??0;Number.isFinite(M.duration)&&M.duration>0&&(I=Math.max(0,M.duration-de))}if(I==null||I<=0){let de=L.inheritedDuration;if(de!=null&&de>0){let ge=(L.inheritedStart??0)+de;I=Math.max(0,ge-J)}}if(I==null||I<=0||(I=O(J,I),I<=0))continue;let P=J+I;Z=Math.max(Z,P);let H=M.tagName.toLowerCase(),ue=X&&X!==m?\"composition\":H===\"video\"?\"video\":H===\"audio\"?\"audio\":H===\"img\"?\"image\":\"element\";V.push({id:M.id||X||`__node__index_${B}`,label:M.getAttribute(\"data-timeline-label\")??M.getAttribute(\"data-label\")??M.getAttribute(\"aria-label\")??X??M.id??M.className?.split(\" \")[0]??ue,start:J,duration:I,track:Number.parseInt(M.getAttribute(\"data-track-index\")??M.getAttribute(\"data-track\")??String(B),10)||0,kind:ue,tagName:H,compositionId:M.getAttribute(\"data-composition-id\"),compositionAncestors:L.compositionAncestors,parentCompositionId:L.parentCompositionId,nodePath:null,compositionSrc:We(M.getAttribute(\"data-composition-src\")),assetUrl:In(M),timelineRole:M.getAttribute(\"data-timeline-role\"),timelineLabel:M.getAttribute(\"data-timeline-label\"),timelineGroup:M.getAttribute(\"data-timeline-group\"),timelinePriority:xe(M.getAttribute(\"data-timeline-priority\"))})}let W=new Set(V.map(B=>B.id)),j=s?.getAttribute(\"data-composition-id\")??null,R=j?n[j]??null:null;if(R&&s){let B=R;if(typeof B.getChildren==\"function\")try{let M=B.getChildren(!0,!0,!1)??[],L=new Map;for(let I of s.children){let P=I;if(!P.id)continue;let H=P.tagName.toLowerCase();H===\"script\"||H===\"style\"||H===\"link\"||L.set(P,{id:P.id,start:1/0,end:-1/0})}let J=I=>{let P=I;for(;P;){if(L.has(P))return P;if(P===s)return null;P=P.parentElement}return null};for(let I of M){if(typeof I.targets!=\"function\"||typeof I.startTime!=\"function\"||typeof I.duration!=\"function\")continue;let P=I.startTime(),H=I.parent;for(;H&&typeof H.startTime==\"function\";)P+=H.startTime(),H=H.parent;let ue=P+I.duration();if(!(!Number.isFinite(P)||!Number.isFinite(ue)))for(let de of I.targets()){if(!(de instanceof Element))continue;let Ee=J(de);if(!Ee)continue;let ge=L.get(Ee);ge&&(ge.start=Math.min(ge.start,P),ge.end=Math.max(ge.end,ue))}}let X=V.length>0?Math.max(...V.map(I=>I.track))+1:0;for(let[I,P]of L){if(P.start===1/0||P.end===-1/0)continue;let H=I;if(W.has(H.id))continue;let ue=Math.max(0,P.end-P.start);if(ue<=0)continue;let de=O(P.start,ue);de<=0||(Z=Math.max(Z,P.start+de),V.push({id:H.id,label:H.getAttribute(\"data-timeline-label\")??H.getAttribute(\"data-label\")??H.getAttribute(\"aria-label\")??H.id,start:P.start,duration:de,track:Number.parseInt(H.getAttribute(\"data-track-index\")??H.getAttribute(\"data-track\")??\"\",10)||X,kind:\"element\",tagName:H.tagName.toLowerCase(),compositionId:H.getAttribute(\"data-composition-id\"),compositionAncestors:j?[j]:[],parentCompositionId:j,nodePath:null,compositionSrc:null,assetUrl:null,timelineRole:H.getAttribute(\"data-timeline-role\"),timelineLabel:H.getAttribute(\"data-timeline-label\"),timelineGroup:H.getAttribute(\"data-timeline-group\"),timelinePriority:xe(H.getAttribute(\"data-timeline-priority\"))}),W.add(H.id))}}catch{}}if(s&&y!=null&&y>0){let B=V.length>0?Math.max(...V.map(M=>M.track))+1:0;for(let M of s.children){let L=M;if(!L.id||W.has(L.id))continue;let J=L.getAttribute(\"data-timeline-role\");if(J!==\"overlay\"&&J!==\"persistent-overlay\")continue;let X=L.tagName.toLowerCase();if(X===\"script\"||X===\"style\"||X===\"link\"||X===\"meta\"||window.getComputedStyle(L).display===\"none\")continue;let P=O(0,y);P<=0||(Z=Math.max(Z,P),V.push({id:L.id,label:L.getAttribute(\"data-timeline-label\")??L.getAttribute(\"data-label\")??L.getAttribute(\"aria-label\")??L.id,start:0,duration:P,track:Number.parseInt(L.getAttribute(\"data-track-index\")??L.getAttribute(\"data-track\")??\"\",10)||B,kind:\"element\",tagName:X,compositionId:L.getAttribute(\"data-composition-id\"),compositionAncestors:j?[j]:[],parentCompositionId:j,nodePath:null,compositionSrc:null,assetUrl:null,timelineRole:J,timelineLabel:L.getAttribute(\"data-timeline-label\"),timelineGroup:L.getAttribute(\"data-timeline-group\"),timelinePriority:xe(L.getAttribute(\"data-timeline-priority\"))}),W.add(L.id))}}vn(V);for(let B of a){if(B===s)continue;let M=B.getAttribute(\"data-composition-id\");if(!M||!d(M))continue;let L=o.resolveStartForElement(B,0),J=it(B);if((J==null||J<=0)&&It(B)!=null){let H=It(B);J=Math.max(0,H-L)}let X=r(M),I=J&&J>0?J:X;if(I==null||I<=0)continue;let P=O(L,I);P<=0||w.push({id:M,label:B.getAttribute(\"data-label\")??M,start:L,duration:P,thumbnailUrl:We(B.getAttribute(\"data-thumbnail-url\")),avatarName:null})}let $=Math.max(1,Math.min(Math.max(Z||1,y??0),e.maxTimelineDurationSeconds));return{source:\"hf-preview\",type:\"timeline\",durationInFrames:E&&Q==null?Number.POSITIVE_INFINITY:Math.max(1,Math.round($*Math.max(1,e.canonicalFps))),clips:V,scenes:w,compositionWidth:xe(s?.getAttribute(\"data-width\"))??1920,compositionHeight:xe(s?.getAttribute(\"data-height\"))??1080}}var Pn=/^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:)(?!\\/\\/)(?!\\/)(?!\\.\\.?\\/).+/,On=e=>new Promise(t=>{let n=!1,o=Date.now(),r=null,i=u=>{n||(n=!0,r!=null&&window.clearTimeout(r),t({status:u,elapsedMs:Math.max(0,Date.now()-o)}))};e.addEventListener(\"load\",()=>i(\"load\"),{once:!0}),e.addEventListener(\"error\",()=>i(\"error\"),{once:!0}),r=window.setTimeout(()=>i(\"timeout\"),8e3)});function rt(e){for(;e.firstChild;)e.removeChild(e.firstChild);e.textContent=\"\"}function _t(e,t){let n=e.trim();if(!n)return e;try{return Pn.test(n)?new URL(n,document.baseURI).toString():t?new URL(n,t).toString():new URL(n,document.baseURI).toString()}catch{return e}}async function st(e){let t=null;e.hostCompositionId&&(t=Array.from(e.sourceNode.querySelectorAll(\"[data-composition-id]\")).find(s=>s.getAttribute(\"data-composition-id\")===e.hostCompositionId)??null);let n=t??e.sourceNode;if(e.headStyles)for(let c of e.headStyles){let s=c.cloneNode(!0);s instanceof HTMLStyleElement&&(document.head.appendChild(s),e.injectedStyles.push(s))}let o=Array.from(n.querySelectorAll(\"style\"));for(let c of o){let s=c.cloneNode(!0);s instanceof HTMLStyleElement&&(document.head.appendChild(s),e.injectedStyles.push(s))}let r=[];if(e.headScripts)for(let c of e.headScripts){let s=c.getAttribute(\"type\")?.trim()??\"\",a=c.getAttribute(\"src\")?.trim()??\"\";if(a){let m=_t(a,e.compositionUrl);r.push({kind:\"external\",src:m,type:s})}else{let m=c.textContent?.trim()??\"\";m&&r.push({kind:\"inline\",content:m,type:s})}}let i=Array.from(n.querySelectorAll(\"script\")),u=[...r];for(let c of i){let s=c.getAttribute(\"type\")?.trim()??\"\",a=c.getAttribute(\"src\")?.trim()??\"\";if(a){let m=_t(a,e.compositionUrl);u.push({kind:\"external\",src:m,type:s})}else{let m=c.textContent?.trim()??\"\";m&&u.push({kind:\"inline\",content:m,type:s})}c.parentNode?.removeChild(c)}let d=Array.from(n.querySelectorAll(\"style\"));for(let c of d)c.parentNode?.removeChild(c);if(t){let c=document.importNode(t,!0),s=t.getAttribute(\"data-width\"),a=t.getAttribute(\"data-height\"),m=e.parseDimensionPx(s),p=e.parseDimensionPx(a);c.style.position=\"relative\",c.style.width=m||\"100%\",c.style.height=p||\"100%\",m&&c.style.setProperty(\"--comp-width\",m),p&&c.style.setProperty(\"--comp-height\",p),s&&e.host.setAttribute(\"data-width\",s),a&&e.host.setAttribute(\"data-height\",a),m&&e.host instanceof HTMLElement&&(e.host.style.width=m),p&&e.host instanceof HTMLElement&&(e.host.style.height=p),e.host.appendChild(c)}else e.hasTemplate?e.host.appendChild(document.importNode(n,!0)):e.host.innerHTML=e.fallbackBodyInnerHtml;for(let c of u){let s=document.createElement(\"script\");if(c.type&&(s.type=c.type),s.async=!1,c.kind===\"external\"?s.src=c.src:c.type.toLowerCase()===\"module\"?s.textContent=c.content:s.textContent=`(function(){${c.content}})();`,document.body.appendChild(s),e.injectedScripts.push(s),c.kind===\"external\"){let a=await On(s);a.status!==\"load\"&&e.onDiagnostic?.({code:\"external_composition_script_load_issue\",details:{hostCompositionId:e.hostCompositionId,hostCompositionSrc:e.hostCompositionSrc,resolvedScriptSrc:c.src,loadStatus:a.status,elapsedMs:a.elapsedMs}})}}}async function Wt(e){let t=Array.from(document.querySelectorAll(\"[data-composition-id]:not([data-composition-src])\")).filter(n=>{if(n.children.length>0)return!1;let o=n.getAttribute(\"data-composition-id\");return o?!!document.querySelector(`template#${CSS.escape(o)}-template`):!1});if(t.length!==0)for(let n of t){let o=n.getAttribute(\"data-composition-id\"),r=document.querySelector(`template#${CSS.escape(o)}-template`);rt(n),await st({host:n,hostCompositionId:o,hostCompositionSrc:`template#${o}-template`,sourceNode:r.content,hasTemplate:!0,fallbackBodyInnerHtml:\"\",compositionUrl:null,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,parseDimensionPx:e.parseDimensionPx,onDiagnostic:e.onDiagnostic})}}async function Ht(e){let t=Array.from(document.querySelectorAll(\"[data-composition-src]\"));t.length!==0&&await Promise.all(t.map(async n=>{let o=n.getAttribute(\"data-composition-src\");if(!o)return;let r=null;try{r=new URL(o,document.baseURI)}catch{r=null}rt(n);try{let i=n.getAttribute(\"data-composition-id\"),u=i!=null?document.querySelector(`template#${CSS.escape(i)}-template`):null;if(u){await st({host:n,hostCompositionId:i,hostCompositionSrc:o,sourceNode:u.content,hasTemplate:!0,fallbackBodyInnerHtml:\"\",compositionUrl:r,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,parseDimensionPx:e.parseDimensionPx,onDiagnostic:e.onDiagnostic});return}let d=await fetch(o);if(!d.ok)throw new Error(`HTTP ${d.status}`);let c=await d.text(),a=new DOMParser().parseFromString(c,\"text/html\"),m=(i?a.querySelector(`template#${CSS.escape(i)}-template`):null)??a.querySelector(\"template\"),p=m?m.content:a.body,F=m?void 0:Array.from(a.head.querySelectorAll(\"style\")),D=m?void 0:Array.from(a.head.querySelectorAll(\"script\"));await st({host:n,hostCompositionId:i,hostCompositionSrc:o,sourceNode:p,hasTemplate:!!m,fallbackBodyInnerHtml:a.body.innerHTML,compositionUrl:r,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,parseDimensionPx:e.parseDimensionPx,headStyles:F,headScripts:D,onDiagnostic:e.onDiagnostic})}catch(i){e.onDiagnostic?.({code:\"external_composition_load_failed\",details:{hostCompositionId:n.getAttribute(\"data-composition-id\"),hostCompositionSrc:o,errorMessage:i instanceof Error?i.message:\"unknown_error\"}}),rt(n)}}))}function at(){let e=window.gsap;e&&document.querySelectorAll(\".caption-group\").length!==0&&fetch(\"caption-overrides.json\").then(t=>t.ok?t.json():null).then(t=>{if(!t||!Array.isArray(t)||t.length===0)return;let n=[],o=document.querySelectorAll(\".caption-group\");for(let r of o){let i=r.querySelectorAll(\":scope > span\");for(let u of i)n.push(u)}for(let r of t){let i=null;if(r.wordId&&(i=document.getElementById(r.wordId)),!i&&r.wordIndex!==void 0&&(i=n[r.wordIndex]??null),!i||!(i instanceof HTMLElement))continue;let u={},d={};if(r.x!==void 0&&(u.x=r.x),r.y!==void 0&&(u.y=r.y),r.scale!==void 0&&(u.scale=r.scale),r.rotation!==void 0&&(u.rotation=r.rotation),r.opacity!==void 0&&(d.opacity=r.opacity),r.fontSize!==void 0&&(d.fontSize=`${r.fontSize}px`),r.fontWeight!==void 0&&(d.fontWeight=r.fontWeight),r.fontFamily!==void 0&&(d.fontFamily=r.fontFamily),r.activeColor||r.dimColor){let s=e.getTweensOf(i).filter(m=>m.vars.color!==void 0).sort((m,p)=>m.startTime()-p.startTime()),a=s.length>0?String(s[0].vars.color):\"\";for(let m of s)String(m.vars.color)===a?r.dimColor&&(m.vars.color=r.dimColor):r.activeColor&&(m.vars.color=r.activeColor);r.dimColor&&e.set(i,{color:r.dimColor})}if(Object.keys(d).length>0&&e.set(i,d),Object.keys(u).length>0){let c=document.createElement(\"span\");c.style.display=\"inline-block\",c.dataset.captionWrapper=\"true\",i.parentNode?.insertBefore(c,i),c.appendChild(i),e.set(c,u)}}}).catch(()=>{})}var jt=\"data-hf-authored-duration\",zt=\"data-hf-authored-end\";function Ut(){let e=vt(),t=window,n=null,o=null,r=[],i=new Set,u=null;if(typeof t.__hfRuntimeTeardown==\"function\")try{t.__hfRuntimeTeardown()}catch{}document.documentElement&&(document.documentElement.style.margin=\"0\",document.documentElement.style.padding=\"0\",document.documentElement.style.overflow=\"hidden\"),document.body&&(document.body.style.margin=\"0\",document.body.style.padding=\"0\",document.body.style.overflow=\"hidden\"),window.__timelines=window.__timelines||{};let d=l=>{r.push(l)},c=(l,h,f)=>{let N=f??`${l}:${JSON.stringify(h)}`;i.has(N)||(i.add(N),me({source:\"hf-preview\",type:\"diagnostic\",code:l,details:h}))},s=l=>{let h={scale:1,focusX:960,focusY:540},f=[],N=[],A={time:l.getTime(),duration:l.getDuration(),isPlaying:l.isPlaying(),renderMode:!1,timelineDirty:!1};return{play:l.play,pause:l.pause,seek:l.seek,getTime:l.getTime,getDuration:l.getDuration,isPlaying:l.isPlaying,getMainTimeline:()=>null,getElementBounds:()=>{},getElementsAtPoint:()=>{},setElementPosition:()=>{},previewElementPosition:()=>{},setElementKeyframes:()=>{},setElementScale:()=>{},setElementFontSize:()=>{},setElementTextContent:()=>{},setElementTextColor:()=>{},setElementTextShadow:()=>{},setElementTextFontWeight:()=>{},setElementTextFontFamily:()=>{},setElementTextOutline:()=>{},setElementTextHighlight:()=>{},setElementVolume:()=>{},setStageZoom:()=>{},getStageZoom:()=>h,setStageZoomKeyframes:()=>{},getStageZoomKeyframes:()=>f,addElement:()=>!1,removeElement:()=>!1,updateElementTiming:()=>!1,setElementTiming:()=>{},updateElementSrc:()=>!1,updateElementLayer:()=>!1,updateElementBasePosition:()=>!1,markTimelineDirty:()=>{},isTimelineDirty:()=>!1,rebuildTimeline:()=>{},ensureTimeline:()=>{},enableRenderMode:()=>{},disableRenderMode:()=>{},renderSeek:l.renderSeek,getElementVisibility:()=>({visible:!1}),getVisibleElements:()=>N,getRenderState:()=>({...A,time:l.getTime(),duration:l.getDuration(),isPlaying:l.isPlaying()})}},a=1/60,m=.75,p=.75,F=.35,D=900,C=3,T=2,U=.05,z=100,k=240,Q=l=>{if(l instanceof Error)return l.message||String(l);if(typeof l==\"string\")return l;try{return JSON.stringify(l)}catch{return String(l??\"\")}},S=l=>{let h=l.toLowerCase();return h.includes(\"cannot read properties of null\")||h.includes(\"cannot set properties of null\")?{code:\"runtime_null_dom_access\",category:\"dom-null-access\"}:h.includes(\"failed to execute 'queryselector'\")?{code:\"runtime_invalid_selector\",category:\"selector-invalid\"}:h.includes(\"is not defined\")?{code:\"runtime_reference_missing\",category:\"reference-missing\"}:{code:\"runtime_script_error\",category:\"script-error\"}},x=l=>{if(l==null||l.trim()===\"\")return null;let h=Number.parseFloat(l);return!Number.isFinite(h)||h<=0?null:`${h}px`},g=()=>{let l=document.querySelector('[data-composition-id][data-root=\"true\"]');if(l instanceof HTMLElement)return l;let h=Array.from(document.querySelectorAll(\"[data-composition-id]\"));return h.length===0?null:h.find(f=>!f.parentElement?.closest(\"[data-composition-id]\"))??h[0]??null},E=()=>{let l=g();if(!l)return;let h=x(l.getAttribute(\"data-width\")),f=x(l.getAttribute(\"data-height\"));h&&(l.style.width=h),f&&(l.style.height=f),h&&l.style.setProperty(\"--comp-width\",h),f&&l.style.setProperty(\"--comp-height\",f)},b=()=>{let l=g(),h=Array.from(document.querySelectorAll(\"[data-composition-id]\")).filter(f=>f.hasAttribute(\"data-duration\")||f.hasAttribute(\"data-end\"));for(let f of h){if(l&&f===l)continue;let N=f.getAttribute(\"data-duration\"),A=f.getAttribute(\"data-end\");N!=null&&!f.hasAttribute(jt)&&f.setAttribute(jt,N),A!=null&&!f.hasAttribute(zt)&&f.setAttribute(zt,A),f.removeAttribute(\"data-duration\"),f.removeAttribute(\"data-end\")}},y=()=>{let l=g();if(!l)return;l.style.position||(l.style.position=\"relative\"),l.style.overflow=\"hidden\";let h=x(l.getAttribute(\"data-width\")),f=x(l.getAttribute(\"data-height\"));h&&(l.style.width=h),f&&(l.style.height=f);let N=Array.from(l.children);for(let A of N){let te=A.tagName.toLowerCase();if(te===\"script\"||te===\"style\"||te===\"link\"||te===\"meta\"||!A.hasAttribute(\"data-start\"))continue;let ce=(A.style.top===\"0px\"||A.style.top===\"0\")&&(A.style.left===\"0px\"||A.style.left===\"0\")&&A.style.width===\"100%\"&&A.style.height===\"100%\",pe=/translate\\(\\s*-50%\\s*,\\s*-50%\\s*\\)/.test(A.style.transform);if(ce&&pe&&!A.hasAttribute(\"data-width\")&&!A.hasAttribute(\"data-height\")){let Ae=A.style.top,Y=A.style.left,G=A.style.width,ee=A.style.height;A.style.top=\"\",A.style.left=\"\",A.style.width=\"\",A.style.height=\"\";let q=window.getComputedStyle(A);q.top!==\"auto\"||q.bottom!==\"auto\"||q.left!==\"auto\"||q.right!==\"auto\"||q.width!==\"0px\"||q.height!==\"0px\"||(A.style.top=Ae,A.style.left=Y,A.style.width=G,A.style.height=ee)}let re=window.getComputedStyle(A),ie=re.position;if(ie!==\"absolute\"&&ie!==\"fixed\"&&(A.style.position=\"absolute\"),!!A.style.top||!!A.style.bottom||re.top!==\"auto\"||re.bottom!==\"auto\"||(A.style.top=\"0\"),!!A.style.left||!!A.style.right||re.left!==\"auto\"||re.right!==\"auto\"||(A.style.left=\"0\"),te!==\"audio\"){let Ae=x(A.getAttribute(\"data-width\")),Y=x(A.getAttribute(\"data-height\")),G=re.width!==\"0px\"&&re.width!==\"auto\",ee=re.height!==\"0px\"&&re.height!==\"auto\";Ae?!A.style.width&&!G&&(A.style.width=Ae):!A.style.width&&re.width===\"0px\"&&(A.style.width=\"100%\"),Y?!A.style.height&&!ee&&(A.style.height=Y):!A.style.height&&re.height===\"0px\"&&(A.style.height=\"100%\")}}},v=(l,h=0)=>Be({timelineRegistry:window.__timelines??{}}).resolveStartForElement(l,h),_=(l,h)=>Be({timelineRegistry:window.__timelines??{},includeAuthoredTimingAttrs:h?.includeAuthoredTimingAttrs??!0}).resolveDurationForElement(l),O=!!document.querySelector(\"[data-composition-src]\"),V=!1;{let l=document.querySelectorAll(\"[data-composition-id]:not([data-composition-src])\");for(let h of l){let f=h.getAttribute(\"data-composition-id\");if(f&&h.children.length===0&&document.querySelector(`template#${CSS.escape(f)}-template`)){V=!0;break}}}let w=!O&&!V,K=l=>{if(!l||typeof l.duration!=\"function\")return null;try{let h=Number(l.duration());return Number.isFinite(h)?Math.max(0,h):null}catch{return null}},Z=l=>typeof l==\"number\"&&Number.isFinite(l)&&l>a,W=l=>{let h=Number(l.getAttribute(\"data-duration\"));if(Number.isFinite(h)&&h>0)return h;let f=Number(l.getAttribute(\"data-playback-start\")??l.getAttribute(\"data-media-start\")??\"0\"),N=Number.isFinite(f)?Math.max(0,f):0;return Number.isFinite(l.duration)&&l.duration>N?Math.max(0,l.duration-N):null},j=()=>{let l=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\"));if(l.length===0)return null;let h=0;for(let f of l){let N=v(f,0);if(!Number.isFinite(N))continue;let A=W(f);A==null||A<=a||(h=Math.max(h,Math.max(0,N)+A))}return h>a?h:null},R=()=>{let l=j();return typeof l!=\"number\"||!Number.isFinite(l)||l<=a?null:l},$=l=>Z(l)?Math.max(a,l*m):a,fe=(l,h=0)=>{let f=K(l),N=R(),A=Number.isFinite(h)&&h>a?h:0,te=0;Z(f)?te=Math.max(f,A):Z(N)?te=Math.max(N,A):te=A;let ce=Math.max(1,Number(e.maxTimelineDurationSeconds)||1800);return te>0?Math.max(0,Math.min(te,ce)):0},le=()=>{let l=window.__timelines??{},h=Be({timelineRegistry:l}),f=R(),N=$(f),A=Y=>{let G=document.querySelector(`[data-composition-id=\"${CSS.escape(Y)}\"]`);return G?h.resolveStartForElement(G,0):0},te=Y=>{let G=window.gsap;if(!G||typeof G.timeline!=\"function\")return null;let ee=G.timeline({paused:!0});for(let q of Y)ee.add(q.timeline,A(q.compositionId));return ee},ce=(Y,G)=>{if(!Z(Y))return null;let ee=window.gsap;if(!ee||typeof ee.timeline!=\"function\")return null;let q=ee.timeline({paused:!0});if(G)try{q.add(G,0)}catch{}let ne=q;if(typeof ne.to==\"function\")try{ne.to({},{duration:Y})}catch{}return q},pe=(Y,G)=>{let ee=Y;if(typeof ee.getChildren!=\"function\")return[];try{let q=ee.getChildren(!0,!0,!0)??[];if(!Array.isArray(q))return[];let ne=[];for(let se of G)if(!q.some(Ce=>Ce===se.timeline))try{let Ce=A(se.compositionId);Y.add(se.timeline,Ce),ne.push(se.compositionId)}catch{}return ne}catch{return[]}},re=g(),ie=re?.getAttribute(\"data-composition-id\")??null;if(!ie)return{timeline:null};let he=l[ie]??null,oe=(()=>{if(!re)return[];let Y=new Set,G=Array.from(re.querySelectorAll(\"[data-composition-id]\")),ee=[];for(let q of G){let ne=q.getAttribute(\"data-composition-id\");if(!ne||ne===ie||Y.has(ne))continue;Y.add(ne);let se=l[ne]??null;if(!se||typeof se.play!=\"function\"||typeof se.pause!=\"function\")continue;let we=K(se);ee.push({compositionId:ne,timeline:se,durationSeconds:we??0})}return ee})(),Ae=Y=>{for(let G of Y){let ee=G.timeline;if(typeof ee.paused==\"function\")try{ee.paused(!1)}catch{}}};if(oe.length>0&&Ae(oe),he){let Y=oe.length>0?pe(he,oe):[];if((oe.length>0||!document.querySelector(\"[data-composition-id]:not([data-composition-id='\"+ie+\"'])\"))&&(M=!0),Y.length>0)try{let q=he.time();he.seek(q,!1)}catch{}let G=K(he);if(!Z(G)&&oe.length>0){let q=oe.map(An=>An.compositionId),ne=te(oe),se=K(ne);if(ne&&Z(se))return{timeline:ne,selectedTimelineIds:q,selectedDurationSeconds:se,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_unusable_fallback\",details:{rootCompositionId:ie,rootDurationSeconds:G,fallbackKind:\"composite_by_root_children\",minCandidateDurationSeconds:N,selectedDurationSeconds:se,mediaDurationFloorSeconds:f,selectedTimelineIds:q,autoNestedChildren:Y}}};let we=ce(f??0,he),Ce=K(we);if(we&&Z(Ce))return{timeline:we,selectedTimelineIds:[ie],selectedDurationSeconds:Ce,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_unusable_media_floor_fallback\",details:{rootCompositionId:ie,rootDurationSeconds:G,fallbackKind:\"media_duration_floor\",mediaDurationFloorSeconds:f,selectedDurationSeconds:Ce,selectedTimelineIds:[ie],autoNestedChildren:Y}}}}if(!Z(G)&&oe.length===0){let q=ce(f??0,he),ne=K(q);if(q&&Z(ne))return{timeline:q,selectedTimelineIds:[ie],selectedDurationSeconds:ne,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_unusable_media_floor_fallback\",details:{rootCompositionId:ie,rootDurationSeconds:G,fallbackKind:\"media_duration_floor\",mediaDurationFloorSeconds:f,selectedDurationSeconds:ne,selectedTimelineIds:[ie]}}}}let ee=re?.getAttribute(\"data-duration\");if(ee){let q=parseFloat(ee);if(Z(q)&&Z(G)&&q>=G+.5){let ne=he;if(typeof ne.to==\"function\")try{ne.to({},{duration:0},q)}catch{}let se=K(he);if(Z(se))return{timeline:he,selectedTimelineIds:[ie],selectedDurationSeconds:se,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_padded_to_declared_duration\",details:{rootCompositionId:ie,rootDurationSeconds:G,rootDeclaredDur:q,newDur:se}}}}}return{timeline:he,selectedTimelineIds:[ie],selectedDurationSeconds:G,mediaDurationFloorSeconds:f,diagnostics:Y.length>0?{code:\"root_timeline_auto_nested_children\",details:{rootCompositionId:ie,selectedDurationSeconds:G,autoNestedChildren:Y}}:void 0}}if(oe.length>0){let Y=oe.map(q=>q.compositionId),G=te(oe),ee=K(G);if(G)return{timeline:G,selectedTimelineIds:Y,selectedDurationSeconds:ee,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_missing_fallback\",details:{rootCompositionId:ie,fallbackKind:\"composite_by_root_children\",minCandidateDurationSeconds:N,selectedDurationSeconds:ee,mediaDurationFloorSeconds:f,selectedTimelineIds:Y}}}}return{timeline:null}},B=()=>{let l=e.capturedTimeline;if(!l||typeof l.time!=\"function\")return;let h=Number(l.time());Number.isFinite(h)&&(e.currentTime=Math.max(0,h))},M=!1,L=()=>{if(!w)return!1;let l=e.capturedTimeline,h=K(l),f=Z(h);if(l&&f&&M)return!1;let N=le();return N.timeline?l&&l===N.timeline?(typeof l.timeScale==\"function\"&&l.timeScale(e.playbackRate),!1):(e.capturedTimeline=N.timeline,typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate),N.diagnostics&&me({source:\"hf-preview\",type:\"diagnostic\",code:N.diagnostics.code,details:N.diagnostics.details}),me({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_bound\",details:{selectedTimelineIds:N.selectedTimelineIds??[],selectedDurationSeconds:N.selectedDurationSeconds??null,mediaDurationFloorSeconds:N.mediaDurationFloorSeconds??null}}),!0):!1},J=()=>{let l=g();if(!(l instanceof HTMLElement))return;let h=l.getBoundingClientRect(),f=Number(l.getAttribute(\"data-width\")),N=Number(l.getAttribute(\"data-height\")),A=window.getComputedStyle(l),te=Number.isFinite(f)&&f>0&&Number.isFinite(N)&&N>0,ce=h.width<=0||h.height<=0||l.clientWidth<=0||l.clientHeight<=0;!te||!ce||c(\"root_stage_layout_zero\",{compositionId:l.getAttribute(\"data-composition-id\")??null,declaredWidth:f,declaredHeight:N,rectWidth:Math.round(h.width),rectHeight:Math.round(h.height),clientWidth:l.clientWidth,clientHeight:l.clientHeight,display:A.display,visibility:A.visibility,overflow:A.overflow},`root-stage-layout-zero:${l.getAttribute(\"data-composition-id\")??\"unknown\"}`)},X=()=>{e.tornDown||(u!=null&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame(()=>{u=null,J()}))},I=()=>{n=l=>{let h=Q(l.error??l.message).slice(0,k);if(!h)return;let f=S(h);me({source:\"hf-preview\",type:\"diagnostic\",code:f.code,details:{category:f.category,message:h,filename:l.filename||null,line:Number.isFinite(l.lineno)?l.lineno:null,column:Number.isFinite(l.colno)?l.colno:null}})},o=l=>{let h=Q(l.reason).slice(0,k);if(!h)return;let f=S(h);me({source:\"hf-preview\",type:\"diagnostic\",code:`${f.code}_unhandled_rejection`,details:{category:`${f.category}-unhandled-rejection`,message:h}})},window.addEventListener(\"error\",n),window.addEventListener(\"unhandledrejection\",o)},P=()=>{let l=Array.from(document.querySelectorAll(\"img, video, audio, source, link[rel='stylesheet']\"));for(let f of l){let N=()=>{if(!(f instanceof Element))return;let A=f.tagName.toLowerCase(),te=f.getAttribute(\"src\")??f.getAttribute(\"href\")??f.getAttribute(\"poster\")??null,ce=A===\"link\"?\"runtime_stylesheet_load_failed\":\"runtime_asset_load_failed\";c(ce,{tagName:A,assetUrl:te,currentSrc:(f instanceof HTMLImageElement||f instanceof HTMLMediaElement)&&f.currentSrc||null,readyState:f instanceof HTMLMediaElement?f.readyState:null,networkState:f instanceof HTMLMediaElement?f.networkState:null},`${ce}:${A}:${te??\"unknown\"}`)};f.addEventListener(\"error\",N),d(()=>{f.removeEventListener(\"error\",N)})}let h=document.fonts;h&&h.ready.then(()=>{if(e.tornDown)return;let f=Array.from(h).filter(N=>N.status===\"error\").map(N=>N.family).filter(N=>!!N).slice(0,10);f.length!==0&&c(\"runtime_font_load_issue\",{failedFamilies:f,totalFaces:Array.from(h).length},`runtime-font-load-issue:${f.join(\"|\")}`)}).catch(()=>{})},H=(l,h)=>{if(!l.timeline)return!1;let f=e.capturedTimeline;if(f&&f===l.timeline)return!1;let N=Math.max(0,e.currentTime||0),A=e.isPlaying;e.capturedTimeline=l.timeline,typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);try{e.capturedTimeline.pause(),e.capturedTimeline.seek(N,!1),A&&e.capturedTimeline.play()}catch{}return me({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_loop_guard_rebind\",details:{reason:h,previousTime:N,selectedTimelineIds:l.selectedTimelineIds??[],selectedDurationSeconds:l.selectedDurationSeconds??null,mediaDurationFloorSeconds:l.mediaDurationFloorSeconds??null}}),!0},ue=null,de=!1,Ee=new Set,ge=()=>{e.tornDown||(ue!=null&&window.clearTimeout(ue),ue=window.setTimeout(()=>{if(e.tornDown)return;ue=null;let l=le();if(!l.timeline||!Z(l.mediaDurationFloorSeconds??null))return;if(!e.capturedTimeline){L()&&(ke(),ye(!0));return}if(de)return;let f=K(e.capturedTimeline),N=l.selectedDurationSeconds??K(l.timeline);Z(N)&&(!Z(f)||N>=f+U)&&H(l,\"manual\")&&(de=!0,me({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_rebind_after_media_metadata\",details:{previousDurationSeconds:f??null,selectedDurationSeconds:N??null,selectedTimelineIds:l.selectedTimelineIds??[],mediaDurationFloorSeconds:l.mediaDurationFloorSeconds??null}}),ke(),ye(!0))},z))},gn=()=>{for(let l of Ee)l.removeEventListener(\"loadedmetadata\",ge),l.removeEventListener(\"durationchange\",ge);Ee.clear()},Qe=()=>{if(e.tornDown)return;let l=Array.from(document.querySelectorAll(\"video, audio\"));for(let h of l)Ee.has(h)||(Ee.add(h),h.addEventListener(\"loadedmetadata\",ge),h.addEventListener(\"durationchange\",ge),h.preload!==\"auto\"&&(h.preload=\"auto\"),h.readyState<HTMLMediaElement.HAVE_FUTURE_DATA&&h.load())},ht=()=>{let l=Lt({resolveStartSeconds:N=>v(N,0)});Tt({clips:l.mediaClips,timeSeconds:e.currentTime,playing:e.isPlaying,playbackRate:e.playbackRate,outputMuted:e.mediaOutputMuted,userMuted:e.bridgeMuted,onAutoplayBlocked:()=>{e.mediaAutoplayBlockedPosted||(e.mediaAutoplayBlockedPosted=!0,me({source:\"hf-preview\",type:\"media-autoplay-blocked\"}))}});let h=document.querySelector(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")??null,f=Array.from(document.querySelectorAll(\"[data-start]\"));for(let N of f){if(!(N instanceof HTMLElement))continue;let A=N.tagName.toLowerCase();if(A===\"script\"||A===\"style\"||A===\"link\"||A===\"meta\")continue;if(!N.getAttribute(\"data-composition-id\")){let oe=N.closest(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")??null;if(oe&&oe!==h)continue}let ce=v(N,0),pe=_(N),re=N.getAttribute(\"data-composition-id\");if(re){let Te=(window.__timelines??{})[re],oe=null;if(Te&&typeof Te.duration==\"function\"){let Ae=Number(Te.duration());Number.isFinite(Ae)&&Ae>0&&(oe=Ae)}pe!=null&&pe>0&&oe!=null?pe=Math.min(pe,oe):(pe==null||pe<=0)&&oe!=null&&(pe=oe)}let ie=pe!=null&&pe>0?ce+pe:Number.POSITIVE_INFINITY,he=e.currentTime>=ce&&(Number.isFinite(ie)?e.currentTime<ie:!0);N.style.visibility=he?\"visible\":\"hidden\"}},ye=l=>{B();let h=Math.max(0,Math.round((e.currentTime||0)*e.canonicalFps)),f=Date.now();(l||h!==e.bridgeLastPostedFrame||e.isPlaying!==e.bridgeLastPostedPlaying||e.bridgeMuted!==e.bridgeLastPostedMuted||f-e.bridgeLastPostedAt>=e.bridgeMaxPostIntervalMs)&&(e.bridgeLastPostedFrame=h,e.bridgeLastPostedPlaying=e.isPlaying,e.bridgeLastPostedMuted=e.bridgeMuted,e.bridgeLastPostedAt=f,me({source:\"hf-preview\",type:\"state\",frame:h,isPlaying:e.isPlaying,muted:e.bridgeMuted,playbackRate:e.playbackRate}))},ke=()=>{b(),E(),y();let l=g();if(l){let f=x(l.getAttribute(\"data-width\")),N=x(l.getAttribute(\"data-height\")),A=f?parseInt(f,10):0,te=N?parseInt(N,10):0;A>0&&te>0&&me({source:\"hf-preview\",type:\"stage-size\",width:A,height:te})}L();let h=Ot({canonicalFps:e.canonicalFps,maxTimelineDurationSeconds:e.maxTimelineDurationSeconds});window.__clipManifest=h,me(h),X()},Pe=(l,h=0)=>{for(let f of e.deterministicAdapters){try{l===\"discover\"&&f.discover(),l===\"pause\"&&f.pause(),l===\"play\"&&f.play&&f.play()}catch{}if(l===\"discover\")try{f.seek({time:h})}catch{}}};if(w)at();else{let l={injectedStyles:e.injectedCompStyles,injectedScripts:e.injectedCompScripts,parseDimensionPx:x,onDiagnostic:({code:h,details:f})=>{me({source:\"hf-preview\",type:\"diagnostic\",code:h,details:f})}};Ht(l).then(()=>Wt(l)).finally(()=>{w=!0,Pe(\"discover\",e.currentTime),Qe(),P(),at(),ke(),ye(!0)})}let ze=wt({postMessage:l=>me(l)});ze.installPickerApi();let gt=l=>{let h=Number(l);!Number.isFinite(h)||h<=0?e.playbackRate=1:e.playbackRate=Math.max(.1,Math.min(5,h)),e.capturedTimeline&&typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);let f=document.querySelectorAll(\"video, audio\");for(let N of f)if(N instanceof HTMLMediaElement)try{N.playbackRate=e.playbackRate}catch{}},ae=Rt({getTimeline:()=>e.capturedTimeline,setTimeline:l=>{e.capturedTimeline=l},getTimelineRegistry:()=>window.__timelines??{},getIsPlaying:()=>e.isPlaying,setIsPlaying:l=>{e.isPlaying=l},getPlaybackRate:()=>e.playbackRate,setPlaybackRate:gt,getCanonicalFps:()=>e.canonicalFps,onSyncMedia:(l,h)=>{e.currentTime=Math.max(0,Number(l)||0),e.isPlaying=h,ht()},onStatePost:ye,onDeterministicSeek:l=>{for(let h of e.deterministicAdapters)try{h.seek({time:Number(l)||0})}catch{}},onDeterministicPause:()=>Pe(\"pause\"),onDeterministicPlay:()=>Pe(\"play\"),onRenderFrameSeek:()=>{},onShowNativeVideos:()=>{},getSafeDuration:()=>fe(e.capturedTimeline,0)});window.__player=s(ae),window.__playerReady=!0,window.__renderReady=!0,Nt(me),Oe(\"composition_loaded\",{duration:ae.getDuration(),compositionId:document.querySelector(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")??null}),e.controlBridgeHandler=At({onPlay:()=>{ae.play(),Oe(\"composition_played\",{time:ae.getTime()})},onPause:()=>{ae.pause(),Oe(\"composition_paused\",{time:ae.getTime()})},onSeek:(l,h)=>{let f=Math.max(0,l)/e.canonicalFps;ae.seek(f),Oe(\"composition_seeked\",{time:f})},onSetMuted:l=>{e.bridgeMuted=l;let h=l||e.mediaOutputMuted,f=document.querySelectorAll(\"video, audio\");for(let N of f)N instanceof HTMLMediaElement&&(N.muted=h)},onSetMediaOutputMuted:l=>{e.mediaOutputMuted=l;let h=l||e.bridgeMuted,f=document.querySelectorAll(\"video, audio\");for(let N of f)N instanceof HTMLMediaElement&&(N.muted=h)},onSetPlaybackRate:l=>gt(l),onEnablePickMode:()=>ze.enablePickMode(),onDisablePickMode:()=>ze.disablePickMode()}),L(),e.capturedTimeline&&(ae._timeline=e.capturedTimeline),w&&setTimeout(()=>{let l=e.capturedTimeline;L()&&e.capturedTimeline!==l&&(ae._timeline=e.capturedTimeline),Pe(\"discover\",e.currentTime),ke(),ye(!0)},0),e.deterministicAdapters=[kt(),Et({resolveStartSeconds:l=>v(l,0)}),Ct(),Dt(),yt({getTimeline:()=>e.capturedTimeline})],I(),Pe(\"discover\"),Qe(),e.timelinePollIntervalId&&clearInterval(e.timelinePollIntervalId);let Ze=0,Ue=null,St=0,Ye=!1,Le=0,Ft=()=>{St=Date.now(),Ye=!1,Le=0};e.timelinePollIntervalId=setInterval(()=>{Ze+=1;let h=e.isPlaying&&e.capturedTimeline!=null&&Math.max(0,e.currentTime||0)<T?!1:L();if(e.capturedTimeline&&!ae._timeline&&(ae._timeline=e.capturedTimeline),(h||Ze%20===0)&&ke(),Ze%10===0&&Qe(),B(),e.isPlaying&&e.capturedTimeline){let f=Math.max(0,e.currentTime||0),N=Ue,A=fe(e.capturedTimeline,0);if(A>0&&f>=A){ae.pause(),ae.seek(A),Ue=A,Le=0,ye(!0);return}if(N!=null&&N>=p&&f<=F?Le+=1:Le=0,!Ye&&Le>=C&&Date.now()-St>D){let ce=le();H(ce,\"loop_guard\")&&(Ye=!0,Le=0)}Ue=Math.max(0,e.currentTime||0)}else Ue=Math.max(0,e.currentTime||0);e.isPlaying&&ht(),ye(!1)},50),ke(),ye(!0);let Sn=ae.seek;ae.seek=l=>{Ft(),Sn(l)};let Fn=ae.renderSeek;ae.renderSeek=l=>{Ft(),Fn(l)};let Xe=()=>{if(!e.tornDown){e.tornDown=!0,e.timelinePollIntervalId&&(clearInterval(e.timelinePollIntervalId),e.timelinePollIntervalId=null),ue!=null&&(window.clearTimeout(ue),ue=null),u!=null&&(window.cancelAnimationFrame(u),u=null),gn(),e.controlBridgeHandler&&(window.removeEventListener(\"message\",e.controlBridgeHandler),e.controlBridgeHandler=null),n&&(window.removeEventListener(\"error\",n),n=null),o&&(window.removeEventListener(\"unhandledrejection\",o),o=null),e.beforeUnloadHandler&&(window.removeEventListener(\"beforeunload\",e.beforeUnloadHandler),e.beforeUnloadHandler=null),ze.disablePickMode();for(let l of e.deterministicAdapters)if(!(!l||typeof l.revert!=\"function\"))try{l.revert()}catch{}e.deterministicAdapters=[];for(let l of r.splice(0))try{l()}catch{}for(let l of e.injectedCompStyles)try{l.remove()}catch{}e.injectedCompStyles=[];for(let l of e.injectedCompScripts)try{l.remove()}catch{}e.injectedCompScripts=[],e.capturedTimeline=null,t.__hfRuntimeTeardown===Xe&&(t.__hfRuntimeTeardown=null)}};t.__hfRuntimeTeardown=Xe,e.beforeUnloadHandler=Xe,window.addEventListener(\"beforeunload\",e.beforeUnloadHandler)}var Gt=[\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"S\",\"B\",\"S\",\"WS\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"B\",\"B\",\"S\",\"WS\",\"ON\",\"ON\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ES\",\"CS\",\"ES\",\"CS\",\"CS\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"CS\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"CS\",\"ON\",\"ET\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"ON\",\"ON\",\"BN\",\"ON\",\"ON\",\"ET\",\"ET\",\"EN\",\"EN\",\"ON\",\"L\",\"ON\",\"ON\",\"ON\",\"EN\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\"],lt=[[697,698,\"ON\"],[706,719,\"ON\"],[722,735,\"ON\"],[741,749,\"ON\"],[751,767,\"ON\"],[768,879,\"NSM\"],[884,885,\"ON\"],[894,894,\"ON\"],[900,901,\"ON\"],[903,903,\"ON\"],[1014,1014,\"ON\"],[1155,1161,\"NSM\"],[1418,1418,\"ON\"],[1421,1422,\"ON\"],[1423,1423,\"ET\"],[1424,1424,\"R\"],[1425,1469,\"NSM\"],[1470,1470,\"R\"],[1471,1471,\"NSM\"],[1472,1472,\"R\"],[1473,1474,\"NSM\"],[1475,1475,\"R\"],[1476,1477,\"NSM\"],[1478,1478,\"R\"],[1479,1479,\"NSM\"],[1480,1535,\"R\"],[1536,1541,\"AN\"],[1542,1543,\"ON\"],[1544,1544,\"AL\"],[1545,1546,\"ET\"],[1547,1547,\"AL\"],[1548,1548,\"CS\"],[1549,1549,\"AL\"],[1550,1551,\"ON\"],[1552,1562,\"NSM\"],[1563,1610,\"AL\"],[1611,1631,\"NSM\"],[1632,1641,\"AN\"],[1642,1642,\"ET\"],[1643,1644,\"AN\"],[1645,1647,\"AL\"],[1648,1648,\"NSM\"],[1649,1749,\"AL\"],[1750,1756,\"NSM\"],[1757,1757,\"AN\"],[1758,1758,\"ON\"],[1759,1764,\"NSM\"],[1765,1766,\"AL\"],[1767,1768,\"NSM\"],[1769,1769,\"ON\"],[1770,1773,\"NSM\"],[1774,1775,\"AL\"],[1776,1785,\"EN\"],[1786,1808,\"AL\"],[1809,1809,\"NSM\"],[1810,1839,\"AL\"],[1840,1866,\"NSM\"],[1867,1957,\"AL\"],[1958,1968,\"NSM\"],[1969,1983,\"AL\"],[1984,2026,\"R\"],[2027,2035,\"NSM\"],[2036,2037,\"R\"],[2038,2041,\"ON\"],[2042,2044,\"R\"],[2045,2045,\"NSM\"],[2046,2069,\"R\"],[2070,2073,\"NSM\"],[2074,2074,\"R\"],[2075,2083,\"NSM\"],[2084,2084,\"R\"],[2085,2087,\"NSM\"],[2088,2088,\"R\"],[2089,2093,\"NSM\"],[2094,2136,\"R\"],[2137,2139,\"NSM\"],[2140,2143,\"R\"],[2144,2191,\"AL\"],[2192,2193,\"AN\"],[2194,2198,\"AL\"],[2199,2207,\"NSM\"],[2208,2249,\"AL\"],[2250,2273,\"NSM\"],[2274,2274,\"AN\"],[2275,2306,\"NSM\"],[2362,2362,\"NSM\"],[2364,2364,\"NSM\"],[2369,2376,\"NSM\"],[2381,2381,\"NSM\"],[2385,2391,\"NSM\"],[2402,2403,\"NSM\"],[2433,2433,\"NSM\"],[2492,2492,\"NSM\"],[2497,2500,\"NSM\"],[2509,2509,\"NSM\"],[2530,2531,\"NSM\"],[2546,2547,\"ET\"],[2555,2555,\"ET\"],[2558,2558,\"NSM\"],[2561,2562,\"NSM\"],[2620,2620,\"NSM\"],[2625,2626,\"NSM\"],[2631,2632,\"NSM\"],[2635,2637,\"NSM\"],[2641,2641,\"NSM\"],[2672,2673,\"NSM\"],[2677,2677,\"NSM\"],[2689,2690,\"NSM\"],[2748,2748,\"NSM\"],[2753,2757,\"NSM\"],[2759,2760,\"NSM\"],[2765,2765,\"NSM\"],[2786,2787,\"NSM\"],[2801,2801,\"ET\"],[2810,2815,\"NSM\"],[2817,2817,\"NSM\"],[2876,2876,\"NSM\"],[2879,2879,\"NSM\"],[2881,2884,\"NSM\"],[2893,2893,\"NSM\"],[2901,2902,\"NSM\"],[2914,2915,\"NSM\"],[2946,2946,\"NSM\"],[3008,3008,\"NSM\"],[3021,3021,\"NSM\"],[3059,3064,\"ON\"],[3065,3065,\"ET\"],[3066,3066,\"ON\"],[3072,3072,\"NSM\"],[3076,3076,\"NSM\"],[3132,3132,\"NSM\"],[3134,3136,\"NSM\"],[3142,3144,\"NSM\"],[3146,3149,\"NSM\"],[3157,3158,\"NSM\"],[3170,3171,\"NSM\"],[3192,3198,\"ON\"],[3201,3201,\"NSM\"],[3260,3260,\"NSM\"],[3276,3277,\"NSM\"],[3298,3299,\"NSM\"],[3328,3329,\"NSM\"],[3387,3388,\"NSM\"],[3393,3396,\"NSM\"],[3405,3405,\"NSM\"],[3426,3427,\"NSM\"],[3457,3457,\"NSM\"],[3530,3530,\"NSM\"],[3538,3540,\"NSM\"],[3542,3542,\"NSM\"],[3633,3633,\"NSM\"],[3636,3642,\"NSM\"],[3647,3647,\"ET\"],[3655,3662,\"NSM\"],[3761,3761,\"NSM\"],[3764,3772,\"NSM\"],[3784,3790,\"NSM\"],[3864,3865,\"NSM\"],[3893,3893,\"NSM\"],[3895,3895,\"NSM\"],[3897,3897,\"NSM\"],[3898,3901,\"ON\"],[3953,3966,\"NSM\"],[3968,3972,\"NSM\"],[3974,3975,\"NSM\"],[3981,3991,\"NSM\"],[3993,4028,\"NSM\"],[4038,4038,\"NSM\"],[4141,4144,\"NSM\"],[4146,4151,\"NSM\"],[4153,4154,\"NSM\"],[4157,4158,\"NSM\"],[4184,4185,\"NSM\"],[4190,4192,\"NSM\"],[4209,4212,\"NSM\"],[4226,4226,\"NSM\"],[4229,4230,\"NSM\"],[4237,4237,\"NSM\"],[4253,4253,\"NSM\"],[4957,4959,\"NSM\"],[5008,5017,\"ON\"],[5120,5120,\"ON\"],[5760,5760,\"WS\"],[5787,5788,\"ON\"],[5906,5908,\"NSM\"],[5938,5939,\"NSM\"],[5970,5971,\"NSM\"],[6002,6003,\"NSM\"],[6068,6069,\"NSM\"],[6071,6077,\"NSM\"],[6086,6086,\"NSM\"],[6089,6099,\"NSM\"],[6107,6107,\"ET\"],[6109,6109,\"NSM\"],[6128,6137,\"ON\"],[6144,6154,\"ON\"],[6155,6157,\"NSM\"],[6158,6158,\"BN\"],[6159,6159,\"NSM\"],[6277,6278,\"NSM\"],[6313,6313,\"NSM\"],[6432,6434,\"NSM\"],[6439,6440,\"NSM\"],[6450,6450,\"NSM\"],[6457,6459,\"NSM\"],[6464,6464,\"ON\"],[6468,6469,\"ON\"],[6622,6655,\"ON\"],[6679,6680,\"NSM\"],[6683,6683,\"NSM\"],[6742,6742,\"NSM\"],[6744,6750,\"NSM\"],[6752,6752,\"NSM\"],[6754,6754,\"NSM\"],[6757,6764,\"NSM\"],[6771,6780,\"NSM\"],[6783,6783,\"NSM\"],[6832,6877,\"NSM\"],[6880,6891,\"NSM\"],[6912,6915,\"NSM\"],[6964,6964,\"NSM\"],[6966,6970,\"NSM\"],[6972,6972,\"NSM\"],[6978,6978,\"NSM\"],[7019,7027,\"NSM\"],[7040,7041,\"NSM\"],[7074,7077,\"NSM\"],[7080,7081,\"NSM\"],[7083,7085,\"NSM\"],[7142,7142,\"NSM\"],[7144,7145,\"NSM\"],[7149,7149,\"NSM\"],[7151,7153,\"NSM\"],[7212,7219,\"NSM\"],[7222,7223,\"NSM\"],[7376,7378,\"NSM\"],[7380,7392,\"NSM\"],[7394,7400,\"NSM\"],[7405,7405,\"NSM\"],[7412,7412,\"NSM\"],[7416,7417,\"NSM\"],[7616,7679,\"NSM\"],[8125,8125,\"ON\"],[8127,8129,\"ON\"],[8141,8143,\"ON\"],[8157,8159,\"ON\"],[8173,8175,\"ON\"],[8189,8190,\"ON\"],[8192,8202,\"WS\"],[8203,8205,\"BN\"],[8207,8207,\"R\"],[8208,8231,\"ON\"],[8232,8232,\"WS\"],[8233,8233,\"B\"],[8234,8238,\"BN\"],[8239,8239,\"CS\"],[8240,8244,\"ET\"],[8245,8259,\"ON\"],[8260,8260,\"CS\"],[8261,8286,\"ON\"],[8287,8287,\"WS\"],[8288,8303,\"BN\"],[8304,8304,\"EN\"],[8308,8313,\"EN\"],[8314,8315,\"ES\"],[8316,8318,\"ON\"],[8320,8329,\"EN\"],[8330,8331,\"ES\"],[8332,8334,\"ON\"],[8352,8399,\"ET\"],[8400,8432,\"NSM\"],[8448,8449,\"ON\"],[8451,8454,\"ON\"],[8456,8457,\"ON\"],[8468,8468,\"ON\"],[8470,8472,\"ON\"],[8478,8483,\"ON\"],[8485,8485,\"ON\"],[8487,8487,\"ON\"],[8489,8489,\"ON\"],[8494,8494,\"ET\"],[8506,8507,\"ON\"],[8512,8516,\"ON\"],[8522,8525,\"ON\"],[8528,8543,\"ON\"],[8585,8587,\"ON\"],[8592,8721,\"ON\"],[8722,8722,\"ES\"],[8723,8723,\"ET\"],[8724,9013,\"ON\"],[9083,9108,\"ON\"],[9110,9257,\"ON\"],[9280,9290,\"ON\"],[9312,9351,\"ON\"],[9352,9371,\"EN\"],[9450,9899,\"ON\"],[9901,10239,\"ON\"],[10496,11123,\"ON\"],[11126,11263,\"ON\"],[11493,11498,\"ON\"],[11503,11505,\"NSM\"],[11513,11519,\"ON\"],[11647,11647,\"NSM\"],[11744,11775,\"NSM\"],[11776,11869,\"ON\"],[11904,11929,\"ON\"],[11931,12019,\"ON\"],[12032,12245,\"ON\"],[12272,12287,\"ON\"],[12288,12288,\"WS\"],[12289,12292,\"ON\"],[12296,12320,\"ON\"],[12330,12333,\"NSM\"],[12336,12336,\"ON\"],[12342,12343,\"ON\"],[12349,12351,\"ON\"],[12441,12442,\"NSM\"],[12443,12444,\"ON\"],[12448,12448,\"ON\"],[12539,12539,\"ON\"],[12736,12773,\"ON\"],[12783,12783,\"ON\"],[12829,12830,\"ON\"],[12880,12895,\"ON\"],[12924,12926,\"ON\"],[12977,12991,\"ON\"],[13004,13007,\"ON\"],[13175,13178,\"ON\"],[13278,13279,\"ON\"],[13311,13311,\"ON\"],[19904,19967,\"ON\"],[42128,42182,\"ON\"],[42509,42511,\"ON\"],[42607,42610,\"NSM\"],[42611,42611,\"ON\"],[42612,42621,\"NSM\"],[42622,42623,\"ON\"],[42654,42655,\"NSM\"],[42736,42737,\"NSM\"],[42752,42785,\"ON\"],[42888,42888,\"ON\"],[43010,43010,\"NSM\"],[43014,43014,\"NSM\"],[43019,43019,\"NSM\"],[43045,43046,\"NSM\"],[43048,43051,\"ON\"],[43052,43052,\"NSM\"],[43064,43065,\"ET\"],[43124,43127,\"ON\"],[43204,43205,\"NSM\"],[43232,43249,\"NSM\"],[43263,43263,\"NSM\"],[43302,43309,\"NSM\"],[43335,43345,\"NSM\"],[43392,43394,\"NSM\"],[43443,43443,\"NSM\"],[43446,43449,\"NSM\"],[43452,43453,\"NSM\"],[43493,43493,\"NSM\"],[43561,43566,\"NSM\"],[43569,43570,\"NSM\"],[43573,43574,\"NSM\"],[43587,43587,\"NSM\"],[43596,43596,\"NSM\"],[43644,43644,\"NSM\"],[43696,43696,\"NSM\"],[43698,43700,\"NSM\"],[43703,43704,\"NSM\"],[43710,43711,\"NSM\"],[43713,43713,\"NSM\"],[43756,43757,\"NSM\"],[43766,43766,\"NSM\"],[43882,43883,\"ON\"],[44005,44005,\"NSM\"],[44008,44008,\"NSM\"],[44013,44013,\"NSM\"],[64285,64285,\"R\"],[64286,64286,\"NSM\"],[64287,64296,\"R\"],[64297,64297,\"ES\"],[64298,64335,\"R\"],[64336,64450,\"AL\"],[64451,64466,\"ON\"],[64467,64829,\"AL\"],[64830,64847,\"ON\"],[64848,64911,\"AL\"],[64912,64913,\"ON\"],[64914,64967,\"AL\"],[64968,64975,\"ON\"],[64976,65007,\"BN\"],[65008,65020,\"AL\"],[65021,65023,\"ON\"],[65024,65039,\"NSM\"],[65040,65049,\"ON\"],[65056,65071,\"NSM\"],[65072,65103,\"ON\"],[65104,65104,\"CS\"],[65105,65105,\"ON\"],[65106,65106,\"CS\"],[65108,65108,\"ON\"],[65109,65109,\"CS\"],[65110,65118,\"ON\"],[65119,65119,\"ET\"],[65120,65121,\"ON\"],[65122,65123,\"ES\"],[65124,65126,\"ON\"],[65128,65128,\"ON\"],[65129,65130,\"ET\"],[65131,65131,\"ON\"],[65136,65278,\"AL\"],[65279,65279,\"BN\"],[65281,65282,\"ON\"],[65283,65285,\"ET\"],[65286,65290,\"ON\"],[65291,65291,\"ES\"],[65292,65292,\"CS\"],[65293,65293,\"ES\"],[65294,65295,\"CS\"],[65296,65305,\"EN\"],[65306,65306,\"CS\"],[65307,65312,\"ON\"],[65339,65344,\"ON\"],[65371,65381,\"ON\"],[65504,65505,\"ET\"],[65506,65508,\"ON\"],[65509,65510,\"ET\"],[65512,65518,\"ON\"],[65520,65528,\"BN\"],[65529,65533,\"ON\"],[65534,65535,\"BN\"],[65793,65793,\"ON\"],[65856,65932,\"ON\"],[65936,65948,\"ON\"],[65952,65952,\"ON\"],[66045,66045,\"NSM\"],[66272,66272,\"NSM\"],[66273,66299,\"EN\"],[66422,66426,\"NSM\"],[67584,67870,\"R\"],[67871,67871,\"ON\"],[67872,68096,\"R\"],[68097,68099,\"NSM\"],[68100,68100,\"R\"],[68101,68102,\"NSM\"],[68103,68107,\"R\"],[68108,68111,\"NSM\"],[68112,68151,\"R\"],[68152,68154,\"NSM\"],[68155,68158,\"R\"],[68159,68159,\"NSM\"],[68160,68324,\"R\"],[68325,68326,\"NSM\"],[68327,68408,\"R\"],[68409,68415,\"ON\"],[68416,68863,\"R\"],[68864,68899,\"AL\"],[68900,68903,\"NSM\"],[68904,68911,\"AL\"],[68912,68921,\"AN\"],[68922,68927,\"AL\"],[68928,68937,\"AN\"],[68938,68968,\"R\"],[68969,68973,\"NSM\"],[68974,68974,\"ON\"],[68975,69215,\"R\"],[69216,69246,\"AN\"],[69247,69290,\"R\"],[69291,69292,\"NSM\"],[69293,69311,\"R\"],[69312,69327,\"AL\"],[69328,69336,\"ON\"],[69337,69369,\"AL\"],[69370,69375,\"NSM\"],[69376,69423,\"R\"],[69424,69445,\"AL\"],[69446,69456,\"NSM\"],[69457,69487,\"AL\"],[69488,69505,\"R\"],[69506,69509,\"NSM\"],[69510,69631,\"R\"],[69633,69633,\"NSM\"],[69688,69702,\"NSM\"],[69714,69733,\"ON\"],[69744,69744,\"NSM\"],[69747,69748,\"NSM\"],[69759,69761,\"NSM\"],[69811,69814,\"NSM\"],[69817,69818,\"NSM\"],[69826,69826,\"NSM\"],[69888,69890,\"NSM\"],[69927,69931,\"NSM\"],[69933,69940,\"NSM\"],[70003,70003,\"NSM\"],[70016,70017,\"NSM\"],[70070,70078,\"NSM\"],[70089,70092,\"NSM\"],[70095,70095,\"NSM\"],[70191,70193,\"NSM\"],[70196,70196,\"NSM\"],[70198,70199,\"NSM\"],[70206,70206,\"NSM\"],[70209,70209,\"NSM\"],[70367,70367,\"NSM\"],[70371,70378,\"NSM\"],[70400,70401,\"NSM\"],[70459,70460,\"NSM\"],[70464,70464,\"NSM\"],[70502,70508,\"NSM\"],[70512,70516,\"NSM\"],[70587,70592,\"NSM\"],[70606,70606,\"NSM\"],[70608,70608,\"NSM\"],[70610,70610,\"NSM\"],[70625,70626,\"NSM\"],[70712,70719,\"NSM\"],[70722,70724,\"NSM\"],[70726,70726,\"NSM\"],[70750,70750,\"NSM\"],[70835,70840,\"NSM\"],[70842,70842,\"NSM\"],[70847,70848,\"NSM\"],[70850,70851,\"NSM\"],[71090,71093,\"NSM\"],[71100,71101,\"NSM\"],[71103,71104,\"NSM\"],[71132,71133,\"NSM\"],[71219,71226,\"NSM\"],[71229,71229,\"NSM\"],[71231,71232,\"NSM\"],[71264,71276,\"ON\"],[71339,71339,\"NSM\"],[71341,71341,\"NSM\"],[71344,71349,\"NSM\"],[71351,71351,\"NSM\"],[71453,71453,\"NSM\"],[71455,71455,\"NSM\"],[71458,71461,\"NSM\"],[71463,71467,\"NSM\"],[71727,71735,\"NSM\"],[71737,71738,\"NSM\"],[71995,71996,\"NSM\"],[71998,71998,\"NSM\"],[72003,72003,\"NSM\"],[72148,72151,\"NSM\"],[72154,72155,\"NSM\"],[72160,72160,\"NSM\"],[72193,72198,\"NSM\"],[72201,72202,\"NSM\"],[72243,72248,\"NSM\"],[72251,72254,\"NSM\"],[72263,72263,\"NSM\"],[72273,72278,\"NSM\"],[72281,72283,\"NSM\"],[72330,72342,\"NSM\"],[72344,72345,\"NSM\"],[72544,72544,\"NSM\"],[72546,72548,\"NSM\"],[72550,72550,\"NSM\"],[72752,72758,\"NSM\"],[72760,72765,\"NSM\"],[72850,72871,\"NSM\"],[72874,72880,\"NSM\"],[72882,72883,\"NSM\"],[72885,72886,\"NSM\"],[73009,73014,\"NSM\"],[73018,73018,\"NSM\"],[73020,73021,\"NSM\"],[73023,73029,\"NSM\"],[73031,73031,\"NSM\"],[73104,73105,\"NSM\"],[73109,73109,\"NSM\"],[73111,73111,\"NSM\"],[73459,73460,\"NSM\"],[73472,73473,\"NSM\"],[73526,73530,\"NSM\"],[73536,73536,\"NSM\"],[73538,73538,\"NSM\"],[73562,73562,\"NSM\"],[73685,73692,\"ON\"],[73693,73696,\"ET\"],[73697,73713,\"ON\"],[78912,78912,\"NSM\"],[78919,78933,\"NSM\"],[90398,90409,\"NSM\"],[90413,90415,\"NSM\"],[92912,92916,\"NSM\"],[92976,92982,\"NSM\"],[94031,94031,\"NSM\"],[94095,94098,\"NSM\"],[94178,94178,\"ON\"],[94180,94180,\"NSM\"],[113821,113822,\"NSM\"],[113824,113827,\"BN\"],[117760,117973,\"ON\"],[118e3,118009,\"EN\"],[118010,118012,\"ON\"],[118016,118451,\"ON\"],[118458,118480,\"ON\"],[118496,118512,\"ON\"],[118528,118573,\"NSM\"],[118576,118598,\"NSM\"],[119143,119145,\"NSM\"],[119155,119162,\"BN\"],[119163,119170,\"NSM\"],[119173,119179,\"NSM\"],[119210,119213,\"NSM\"],[119273,119274,\"ON\"],[119296,119361,\"ON\"],[119362,119364,\"NSM\"],[119365,119365,\"ON\"],[119552,119638,\"ON\"],[120513,120513,\"ON\"],[120539,120539,\"ON\"],[120571,120571,\"ON\"],[120597,120597,\"ON\"],[120629,120629,\"ON\"],[120655,120655,\"ON\"],[120687,120687,\"ON\"],[120713,120713,\"ON\"],[120745,120745,\"ON\"],[120771,120771,\"ON\"],[120782,120831,\"EN\"],[121344,121398,\"NSM\"],[121403,121452,\"NSM\"],[121461,121461,\"NSM\"],[121476,121476,\"NSM\"],[121499,121503,\"NSM\"],[121505,121519,\"NSM\"],[122880,122886,\"NSM\"],[122888,122904,\"NSM\"],[122907,122913,\"NSM\"],[122915,122916,\"NSM\"],[122918,122922,\"NSM\"],[123023,123023,\"NSM\"],[123184,123190,\"NSM\"],[123566,123566,\"NSM\"],[123628,123631,\"NSM\"],[123647,123647,\"ET\"],[124140,124143,\"NSM\"],[124398,124399,\"NSM\"],[124643,124643,\"NSM\"],[124646,124646,\"NSM\"],[124654,124655,\"NSM\"],[124661,124661,\"NSM\"],[124928,125135,\"R\"],[125136,125142,\"NSM\"],[125143,125251,\"R\"],[125252,125258,\"NSM\"],[125259,126063,\"R\"],[126064,126143,\"AL\"],[126144,126207,\"R\"],[126208,126287,\"AL\"],[126288,126463,\"R\"],[126464,126703,\"AL\"],[126704,126705,\"ON\"],[126706,126719,\"AL\"],[126720,126975,\"R\"],[126976,127019,\"ON\"],[127024,127123,\"ON\"],[127136,127150,\"ON\"],[127153,127167,\"ON\"],[127169,127183,\"ON\"],[127185,127221,\"ON\"],[127232,127242,\"EN\"],[127243,127247,\"ON\"],[127279,127279,\"ON\"],[127338,127343,\"ON\"],[127405,127405,\"ON\"],[127584,127589,\"ON\"],[127744,128728,\"ON\"],[128732,128748,\"ON\"],[128752,128764,\"ON\"],[128768,128985,\"ON\"],[128992,129003,\"ON\"],[129008,129008,\"ON\"],[129024,129035,\"ON\"],[129040,129095,\"ON\"],[129104,129113,\"ON\"],[129120,129159,\"ON\"],[129168,129197,\"ON\"],[129200,129211,\"ON\"],[129216,129217,\"ON\"],[129232,129240,\"ON\"],[129280,129623,\"ON\"],[129632,129645,\"ON\"],[129648,129660,\"ON\"],[129664,129674,\"ON\"],[129678,129734,\"ON\"],[129736,129736,\"ON\"],[129741,129756,\"ON\"],[129759,129770,\"ON\"],[129775,129784,\"ON\"],[129792,129938,\"ON\"],[129940,130031,\"ON\"],[130032,130041,\"EN\"],[130042,130042,\"ON\"],[131070,131071,\"BN\"],[196606,196607,\"BN\"],[262142,262143,\"BN\"],[327678,327679,\"BN\"],[393214,393215,\"BN\"],[458750,458751,\"BN\"],[524286,524287,\"BN\"],[589822,589823,\"BN\"],[655358,655359,\"BN\"],[720894,720895,\"BN\"],[786430,786431,\"BN\"],[851966,851967,\"BN\"],[917502,917759,\"BN\"],[917760,917999,\"NSM\"],[918e3,921599,\"BN\"],[983038,983039,\"BN\"],[1048574,1048575,\"BN\"],[1114110,1114111,\"BN\"]];function _n(e){if(e<=255)return Gt[e];let t=0,n=lt.length-1;for(;t<=n;){let o=t+n>>1,r=lt[o];if(e<r[0]){n=o-1;continue}if(e>r[1]){t=o+1;continue}return r[2]}return\"L\"}function Wn(e){let t=e.length;if(t===0)return null;let n=new Array(t),o=!1;for(let s=0;s<t;){let a=e.charCodeAt(s),m=a,p=1;if(a>=55296&&a<=56319&&s+1<t){let D=e.charCodeAt(s+1);D>=56320&&D<=57343&&(m=(a-55296<<10)+(D-56320)+65536,p=2)}let F=_n(m);(F===\"R\"||F===\"AL\"||F===\"AN\")&&(o=!0);for(let D=0;D<p;D++)n[s+D]=F;s+=p}if(!o)return null;let r=0;for(let s=0;s<t;s++){let a=n[s];if(a===\"L\"){r=0;break}if(a===\"R\"||a===\"AL\"){r=1;break}}let i=new Int8Array(t);for(let s=0;s<t;s++)i[s]=r;let u=r&1?\"R\":\"L\",d=u,c=d;for(let s=0;s<t;s++)n[s]===\"NSM\"?n[s]=c:c=n[s];c=d;for(let s=0;s<t;s++){let a=n[s];a===\"EN\"?n[s]=c===\"AL\"?\"AN\":\"EN\":(a===\"R\"||a===\"L\"||a===\"AL\")&&(c=a)}for(let s=0;s<t;s++)n[s]===\"AL\"&&(n[s]=\"R\");for(let s=1;s<t-1;s++)n[s]===\"ES\"&&n[s-1]===\"EN\"&&n[s+1]===\"EN\"&&(n[s]=\"EN\"),n[s]===\"CS\"&&(n[s-1]===\"EN\"||n[s-1]===\"AN\")&&n[s+1]===n[s-1]&&(n[s]=n[s-1]);for(let s=0;s<t;s++){if(n[s]!==\"EN\")continue;let a;for(a=s-1;a>=0&&n[a]===\"ET\";a--)n[a]=\"EN\";for(a=s+1;a<t&&n[a]===\"ET\";a++)n[a]=\"EN\"}for(let s=0;s<t;s++){let a=n[s];(a===\"WS\"||a===\"ES\"||a===\"ET\"||a===\"CS\")&&(n[s]=\"ON\")}c=d;for(let s=0;s<t;s++){let a=n[s];a===\"EN\"?n[s]=c===\"L\"?\"L\":\"EN\":(a===\"R\"||a===\"L\")&&(c=a)}for(let s=0;s<t;s++){if(n[s]!==\"ON\")continue;let a=s+1;for(;a<t&&n[a]===\"ON\";)a++;let m=s>0?n[s-1]:d,p=a<t?n[a]:d,F=m!==\"L\"?\"R\":\"L\";if(F===(p!==\"L\"?\"R\":\"L\"))for(let C=s;C<a;C++)n[C]=F;s=a-1}for(let s=0;s<t;s++)n[s]===\"ON\"&&(n[s]=u);for(let s=0;s<t;s++){let a=n[s];(i[s]&1)===0?a===\"R\"?i[s]++:(a===\"AN\"||a===\"EN\")&&(i[s]+=2):(a===\"L\"||a===\"AN\"||a===\"EN\")&&i[s]++}return i}function qt(e,t){let n=Wn(e);if(n===null)return null;let o=new Int8Array(t.length);for(let r=0;r<t.length;r++)o[r]=n[t[r]];return o}var Hn=/[ \\t\\n\\r\\f]+/g,jn=/[\\t\\n\\r\\f]| {2,}|^ | $/;function zn(e){let t=e??\"normal\";return t===\"pre-wrap\"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Un(e){if(!jn.test(e))return e;let t=e.replace(Hn,\" \");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Gn(e){return/[\\r\\f]/.test(e)?e.replace(/\\r\\n/g,`\n`).replace(/[\\r\\f]/g,`\n`):e.replace(/\\r\\n/g,`\n`)}var ut=null,qn;function $n(){return ut===null&&(ut=new Intl.Segmenter(qn,{granularity:\"word\"})),ut}var Kn=/\\p{Script=Arabic}/u,qe=/\\p{M}/u,Xt=/\\p{Nd}/u;function $t(e){return Kn.test(e)}function Kt(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=44032&&e<=55215||e>=65280&&e<=65519}function Fe(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let o=e.charCodeAt(t+1);if(o>=56320&&o<=57343){let r=(n-55296<<10)+(o-56320)+65536;if(Kt(r))return!0;t++;continue}}if(Kt(n))return!0}}return!1}function Vn(e){let t=Ve(e);return t!==null&&(Ke.has(t)||be.has(t))}var Jn=new Set([\"\\xA0\",\"\\u202F\",\"\\u2060\",\"\\uFEFF\"]);function Qn(e){return Fe(e)}function Zn(e){let t=Ve(e);return t!==null&&Jn.has(t)}function $e(e){return!Vn(e)&&!Zn(e)}var Ke=new Set([\"\\uFF0C\",\"\\uFF0E\",\"\\uFF01\",\"\\uFF1A\",\"\\uFF1B\",\"\\uFF1F\",\"\\u3001\",\"\\u3002\",\"\\u30FB\",\"\\uFF09\",\"\\u3015\",\"\\u3009\",\"\\u300B\",\"\\u300D\",\"\\u300F\",\"\\u3011\",\"\\u3017\",\"\\u3019\",\"\\u301B\",\"\\u30FC\",\"\\u3005\",\"\\u303B\",\"\\u309D\",\"\\u309E\",\"\\u30FD\",\"\\u30FE\"]),je=new Set(['\"',\"(\",\"[\",\"{\",\"\\u201C\",\"\\u2018\",\"\\xAB\",\"\\u2039\",\"\\uFF08\",\"\\u3014\",\"\\u3008\",\"\\u300A\",\"\\u300C\",\"\\u300E\",\"\\u3010\",\"\\u3016\",\"\\u3018\",\"\\u301A\"]),dt=new Set([\"'\",\"\\u2019\"]),be=new Set([\".\",\",\",\"!\",\"?\",\":\",\";\",\"\\u060C\",\"\\u061B\",\"\\u061F\",\"\\u0964\",\"\\u0965\",\"\\u104A\",\"\\u104B\",\"\\u104C\",\"\\u104D\",\"\\u104F\",\")\",\"]\",\"}\",\"%\",'\"',\"\\u201D\",\"\\u2019\",\"\\xBB\",\"\\u203A\",\"\\u2026\"]),Yn=new Set([\":\",\".\",\"\\u060C\",\"\\u061B\"]),Xn=new Set([\"\\u104F\"]),ei=new Set([\"\\u201D\",\"\\u2019\",\"\\xBB\",\"\\u203A\",\"\\u300D\",\"\\u300F\",\"\\u3011\",\"\\u300B\",\"\\u3009\",\"\\u3015\",\"\\uFF09\"]);function ti(e){if(mt(e))return!0;let t=!1;for(let n of e){if(be.has(n)){t=!0;continue}if(!(t&&qe.test(n)))return!1}return t}function ni(e){for(let t of e)if(!Ke.has(t)&&!be.has(t))return!1;return e.length>0}function ii(e){if(mt(e))return!0;for(let t of e)if(!je.has(t)&&!dt.has(t)&&!qe.test(t))return!1;return e.length>0}function mt(e){let t=!1;for(let n of e)if(!(n===\"\\\\\"||qe.test(n))){if(je.has(n)||be.has(n)||dt.has(n)){t=!0;continue}return!1}return t}function en(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let o=e.charCodeAt(n);if(o<56320||o>57343)return n;let r=n-1;if(r<0)return n;let i=e.charCodeAt(r);return i>=55296&&i<=56319?r:n}function Ve(e){if(e.length===0)return null;let t=en(e,e.length);return e.slice(t)}function oi(e){let t=Array.from(e),n=t.length;for(;n>0;){let o=t[n-1];if(qe.test(o)){n--;continue}if(je.has(o)||dt.has(o)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(\"\"),tail:t.slice(n).join(\"\")}}function ri(e,t,n){return n===\"text\"&&!t&&e.length===1&&e!==\"-\"&&e!==\"\\u2014\"?e:null}function Vt(e,t,n,o){let r=t[o],i=e[o];if(r==null)return i;let u=n[o];if(i.length===u)return i;let d=r.repeat(u);return e[o]=d,d}function Jt(e,t){return e&&t!==null&&Yn.has(t)}function si(e){let t=Ve(e);return t!==null&&Xn.has(t)}function ai(e){if(e.length<2||e[0]!==\" \")return null;let t=e.slice(1);return/^\\p{M}+$/u.test(t)?{space:\" \",marks:t}:null}function Je(e){let t=e.length;for(;t>0;){let n=en(e,t),o=e.slice(n,t);if(ei.has(o))return!0;if(!be.has(o))return!1;t=n}return!1}function li(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===\" \")return\"preserved-space\";if(e===\"\t\")return\"tab\";if(t.preserveHardBreaks&&e===`\n`)return\"hard-break\"}return e===\" \"?\"space\":e===\"\\xA0\"||e===\"\\u202F\"||e===\"\\u2060\"||e===\"\\uFEFF\"?\"glue\":e===\"\\u200B\"?\"zero-width-break\":e===\"\\xAD\"?\"soft-hyphen\":\"text\"}var ui=/[\\x20\\t\\n\\xA0\\xAD\\u200B\\u202F\\u2060\\uFEFF]/;function Se(e){return e.length===1?e[0]:e.join(\"\")}function ci(e,t){let n=[];for(let o=e.length-1;o>=0;o--)n.push(e[o]);return n.push(t),Se(n)}function di(e,t,n,o){if(!ui.test(e))return[{text:e,isWordLike:t,kind:\"text\",start:n}];let r=[],i=null,u=[],d=n,c=!1,s=0;for(let a of e){let m=li(a,o),p=m===\"text\"&&t;if(i!==null&&m===i&&p===c){u.push(a),s+=a.length;continue}i!==null&&r.push({text:Se(u),isWordLike:c,kind:i,start:d}),i=m,u=[a],d=n+s,c=p,s+=a.length}return i!==null&&r.push({text:Se(u),isWordLike:c,kind:i,start:d}),r}function ct(e){return e===\"space\"||e===\"preserved-space\"||e===\"zero-width-break\"||e===\"hard-break\"}var mi=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function xi(e,t){let n=e.texts[t];return n.startsWith(\"www.\")?!0:mi.test(n)&&t+1<e.len&&e.kinds[t+1]===\"text\"&&e.texts[t+1]===\"//\"}function fi(e){return e.includes(\"?\")&&(e.includes(\"://\")||e.startsWith(\"www.\"))}function pi(e){let t=e.texts.slice(),n=e.isWordLike.slice(),o=e.kinds.slice(),r=e.starts.slice();for(let u=0;u<e.len;u++){if(o[u]!==\"text\"||!xi(e,u))continue;let d=[t[u]],c=u+1;for(;c<e.len&&!ct(o[c]);){d.push(t[c]),n[u]=!0;let s=t[c].includes(\"?\");if(o[c]=\"text\",t[c]=\"\",c++,s)break}t[u]=Se(d)}let i=0;for(let u=0;u<t.length;u++){let d=t[u];d.length!==0&&(i!==u&&(t[i]=d,n[i]=n[u],o[i]=o[u],r[i]=r[u]),i++)}return t.length=i,n.length=i,o.length=i,r.length=i,{len:i,texts:t,isWordLike:n,kinds:o,starts:r}}function hi(e){let t=[],n=[],o=[],r=[];for(let i=0;i<e.len;i++){let u=e.texts[i];if(t.push(u),n.push(e.isWordLike[i]),o.push(e.kinds[i]),r.push(e.starts[i]),!fi(u))continue;let d=i+1;if(d>=e.len||ct(e.kinds[d]))continue;let c=[],s=e.starts[d],a=d;for(;a<e.len&&!ct(e.kinds[a]);)c.push(e.texts[a]),a++;c.length>0&&(t.push(Se(c)),n.push(!0),o.push(\"text\"),r.push(s),i=a-1)}return{len:t.length,texts:t,isWordLike:n,kinds:o,starts:r}}var gi=new Set([\":\",\"-\",\"/\",\"\\xD7\",\",\",\".\",\"+\",\"\\u2013\",\"\\u2014\"]),Qt=/^[A-Za-z0-9_]+[,:;]*$/,Zt=/[,:;]+$/;function tn(e){for(let t of e)if(Xt.test(t))return!0;return!1}function He(e){if(e.length===0)return!1;for(let t of e)if(!(Xt.test(t)||gi.has(t)))return!1;return!0}function Si(e){let t=[],n=[],o=[],r=[];for(let i=0;i<e.len;i++){let u=e.texts[i],d=e.kinds[i];if(d===\"text\"&&He(u)&&tn(u)){let c=[u],s=i+1;for(;s<e.len&&e.kinds[s]===\"text\"&&He(e.texts[s]);)c.push(e.texts[s]),s++;t.push(Se(c)),n.push(!0),o.push(\"text\"),r.push(e.starts[i]),i=s-1;continue}t.push(u),n.push(e.isWordLike[i]),o.push(d),r.push(e.starts[i])}return{len:t.length,texts:t,isWordLike:n,kinds:o,starts:r}}function Fi(e){let t=[],n=[],o=[],r=[];for(let i=0;i<e.len;i++){let u=e.texts[i],d=e.kinds[i],c=e.isWordLike[i];if(d===\"text\"&&c&&Qt.test(u)){let s=[u],a=Zt.test(u),m=i+1;for(;a&&m<e.len&&e.kinds[m]===\"text\"&&e.isWordLike[m]&&Qt.test(e.texts[m]);){let p=e.texts[m];s.push(p),a=Zt.test(p),m++}t.push(Se(s)),n.push(!0),o.push(\"text\"),r.push(e.starts[i]),i=m-1;continue}t.push(u),n.push(c),o.push(d),r.push(e.starts[i])}return{len:t.length,texts:t,isWordLike:n,kinds:o,starts:r}}function Ai(e){let t=[],n=[],o=[],r=[];for(let i=0;i<e.len;i++){let u=e.texts[i];if(e.kinds[i]===\"text\"&&u.includes(\"-\")){let d=u.split(\"-\"),c=d.length>1;for(let s=0;s<d.length;s++){let a=d[s];if(!c)break;(a.length===0||!tn(a)||!He(a))&&(c=!1)}if(c){let s=0;for(let a=0;a<d.length;a++){let m=d[a],p=a<d.length-1?`${m}-`:m;t.push(p),n.push(!0),o.push(\"text\"),r.push(e.starts[i]+s),s+=p.length}continue}}t.push(u),n.push(e.isWordLike[i]),o.push(e.kinds[i]),r.push(e.starts[i])}return{len:t.length,texts:t,isWordLike:n,kinds:o,starts:r}}function Ni(e){let t=[],n=[],o=[],r=[],i=0;for(;i<e.len;){let u=[e.texts[i]],d=e.isWordLike[i],c=e.kinds[i],s=e.starts[i];if(c===\"glue\"){let a=[u[0]],m=s;for(i++;i<e.len&&e.kinds[i]===\"glue\";)a.push(e.texts[i]),i++;let p=Se(a);if(i<e.len&&e.kinds[i]===\"text\")u[0]=p,u.push(e.texts[i]),d=e.isWordLike[i],c=\"text\",s=m,i++;else{t.push(p),n.push(!1),o.push(\"glue\"),r.push(m);continue}}else i++;if(c===\"text\")for(;i<e.len&&e.kinds[i]===\"glue\";){let a=[];for(;i<e.len&&e.kinds[i]===\"glue\";)a.push(e.texts[i]),i++;let m=Se(a);if(i<e.len&&e.kinds[i]===\"text\"){u.push(m,e.texts[i]),d=d||e.isWordLike[i],i++;continue}u.push(m)}t.push(Se(u)),n.push(d),o.push(c),r.push(s)}return{len:t.length,texts:t,isWordLike:n,kinds:o,starts:r}}function Ei(e){let t=e.texts.slice(),n=e.isWordLike.slice(),o=e.kinds.slice(),r=e.starts.slice();for(let i=0;i<t.length-1;i++){if(o[i]!==\"text\"||o[i+1]!==\"text\"||!Fe(t[i])||!Fe(t[i+1]))continue;let u=oi(t[i]);u!==null&&(t[i]=u.head,t[i+1]=u.tail+t[i+1],r[i+1]=r[i]+u.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:o,starts:r}}function Yt(e,t,n){let o=$n(),r=0,i=[],u=[],d=[],c=[],s=[],a=[],m=[],p=[],F=[],D=[],C=[],T=[];for(let x of o.segment(e))for(let g of di(x.segment,x.isWordLike??!1,x.index,n)){let K=function(){a[w]!==null&&(u[w]=[Vt(i,a,m,w)],a[w]=null),u[w].push(g.text),d[w]=d[w]||g.isWordLike,p[w]=p[w]||y,F[w]=F[w]||v,D[w]=O,C[w]=V,T[w]=Jt(F[w],_)},E=g.kind===\"text\",b=ri(g.text,g.isWordLike,g.kind),y=Fe(g.text),v=$t(g.text),_=Ve(g.text),O=Je(g.text),V=si(g.text),w=r-1;t.carryCJKAfterClosingQuote&&E&&r>0&&c[w]===\"text\"&&y&&p[w]&&D[w]||E&&r>0&&c[w]===\"text\"&&ni(g.text)&&p[w]||E&&r>0&&c[w]===\"text\"&&C[w]?K():E&&r>0&&c[w]===\"text\"&&g.isWordLike&&v&&T[w]?(K(),d[w]=!0):b!==null&&r>0&&c[w]===\"text\"&&a[w]===b?m[w]=(m[w]??1)+1:E&&!g.isWordLike&&r>0&&c[w]===\"text\"&&(ti(g.text)||g.text===\"-\"&&d[w])?K():(i[r]=g.text,u[r]=[g.text],d[r]=g.isWordLike,c[r]=g.kind,s[r]=g.start,a[r]=b,m[r]=b===null?0:1,p[r]=y,F[r]=v,D[r]=O,C[r]=V,T[r]=Jt(v,_),r++)}for(let x=0;x<r;x++){if(a[x]!==null){i[x]=Vt(i,a,m,x);continue}i[x]=Se(u[x])}for(let x=1;x<r;x++)c[x]===\"text\"&&!d[x]&&mt(i[x])&&c[x-1]===\"text\"&&(i[x-1]+=i[x],d[x-1]=d[x-1]||d[x],i[x]=\"\");let U=Array.from({length:r},()=>null),z=-1;for(let x=r-1;x>=0;x--){let g=i[x];if(g.length!==0){if(c[x]===\"text\"&&!d[x]&&ii(g)&&z>=0&&c[z]===\"text\"){let E=U[z]??[];E.push(g),U[z]=E,s[z]=s[x],i[x]=\"\";continue}z=x}}for(let x=0;x<r;x++){let g=U[x];g!=null&&(i[x]=ci(g,i[x]))}let k=0;for(let x=0;x<r;x++){let g=i[x];g.length!==0&&(k!==x&&(i[k]=g,d[k]=d[x],c[k]=c[x],s[k]=s[x]),k++)}i.length=k,d.length=k,c.length=k,s.length=k;let Q=Ni({len:k,texts:i,isWordLike:d,kinds:c,starts:s}),S=Ei(Fi(Ai(Si(hi(pi(Q))))));for(let x=0;x<S.len-1;x++){let g=ai(S.texts[x]);g!==null&&(S.kinds[x]!==\"space\"&&S.kinds[x]!==\"preserved-space\"||S.kinds[x+1]!==\"text\"||!$t(S.texts[x+1])||(S.texts[x]=g.space,S.isWordLike[x]=!1,S.kinds[x]=S.kinds[x]===\"preserved-space\"?\"preserved-space\":\"space\",S.texts[x+1]=g.marks+S.texts[x+1],S.starts[x+1]=S.starts[x]+g.space.length))}return S}function yi(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],o=0;for(let r=0;r<e.len;r++)e.kinds[r]===\"hard-break\"&&(n.push({startSegmentIndex:o,endSegmentIndex:r,consumedEndSegmentIndex:r+1}),o=r+1);return o<e.len&&n.push({startSegmentIndex:o,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function bi(e){if(e.len<=1)return e;let t=[],n=[],o=[],r=[],i=null,u=!1,d=0,c=!1,s=!1;function a(){i!==null&&(t.push(Se(i)),n.push(u),o.push(\"text\"),r.push(d),i=null)}for(let m=0;m<e.len;m++){let p=e.texts[m],F=e.kinds[m],D=e.isWordLike[m],C=e.starts[m];if(F===\"text\"){let T=Qn(p),U=$e(p);if(i!==null&&c&&s){i.push(p),u=u||D,c=c||T,s=U;continue}a(),i=[p],u=D,d=C,c=T,s=U;continue}a(),t.push(p),n.push(D),o.push(F),r.push(C)}return a(),{len:t.length,texts:t,isWordLike:n,kinds:o,starts:r}}function nn(e,t,n=\"normal\",o=\"normal\"){let r=zn(n),i=r.mode===\"pre-wrap\"?Gn(e):Un(e);if(i.length===0)return{normalized:i,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let u=o===\"keep-all\"?bi(Yt(i,t,r)):Yt(i,t,r);return{normalized:i,chunks:yi(u,r),...u}}var Re=null,on=new Map,ve=null,Mi=96,Ci=/\\p{Emoji_Presentation}/u,Di=/[\\p{Emoji_Presentation}\\p{Extended_Pictographic}\\p{Regional_Indicator}\\uFE0F\\u20E3]/u,xt=null,rn=new Map;function ft(){if(Re!==null)return Re;if(typeof OffscreenCanvas<\"u\")return Re=new OffscreenCanvas(1,1).getContext(\"2d\"),Re;if(typeof document<\"u\")return Re=document.createElement(\"canvas\").getContext(\"2d\"),Re;throw new Error(\"Text measurement requires OffscreenCanvas or a DOM canvas context.\")}function ki(e){let t=on.get(e);return t||(t=new Map,on.set(e,t)),t}function Ne(e,t){let n=t.get(e);return n===void 0&&(n={width:ft().measureText(e).width,containsCJK:Fe(e)},t.set(e,n)),n}function Ie(){if(ve!==null)return ve;if(typeof navigator>\"u\")return ve={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},ve;let e=navigator.userAgent,n=navigator.vendor===\"Apple Computer, Inc.\"&&e.includes(\"Safari/\")&&!e.includes(\"Chrome/\")&&!e.includes(\"Chromium/\")&&!e.includes(\"CriOS/\")&&!e.includes(\"FxiOS/\")&&!e.includes(\"EdgiOS/\"),o=e.includes(\"Chrome/\")||e.includes(\"Chromium/\")||e.includes(\"CriOS/\")||e.includes(\"Edg/\");return ve={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:o,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},ve}function Li(e){let t=e.match(/(\\d+(?:\\.\\d+)?)\\s*px/);return t?parseFloat(t[1]):16}function sn(){return xt===null&&(xt=new Intl.Segmenter(void 0,{granularity:\"grapheme\"})),xt}function Ti(e){return Ci.test(e)||e.includes(\"\\uFE0F\")}function an(e){return Di.test(e)}function wi(e,t){let n=rn.get(e);if(n!==void 0)return n;let o=ft();o.font=e;let r=o.measureText(\"\\u{1F600}\").width;if(n=0,r>t+.5&&typeof document<\"u\"&&document.body!==null){let i=document.createElement(\"span\");i.style.font=e,i.style.display=\"inline-block\",i.style.visibility=\"hidden\",i.style.position=\"absolute\",i.textContent=\"\\u{1F600}\",document.body.appendChild(i);let u=i.getBoundingClientRect().width;document.body.removeChild(i),r-u>.5&&(n=r-u)}return rn.set(e,n),n}function Bi(e){let t=0,n=sn();for(let o of n.segment(e))Ti(o.segment)&&t++;return t}function Ri(e,t){return t.emojiCount===void 0&&(t.emojiCount=Bi(e)),t.emojiCount}function Me(e,t,n){return n===0?t.width:t.width-Ri(e,t)*n}function ln(e,t,n,o,r){if(t.breakableFitAdvances!==void 0)return t.breakableFitAdvances;let i=sn(),u=[];for(let a of i.segment(e))u.push(a.segment);if(u.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(r===\"sum-graphemes\"){let a=[];for(let m of u){let p=Ne(m,n);a.push(Me(m,p,o))}return t.breakableFitAdvances=a,t.breakableFitAdvances}if(r===\"pair-context\"||u.length>Mi){let a=[],m=null,p=0;for(let F of u){let D=Ne(F,n),C=Me(F,D,o);if(m===null)a.push(C);else{let T=m+F,U=Ne(T,n);a.push(Me(T,U,o)-p)}m=F,p=C}return t.breakableFitAdvances=a,t.breakableFitAdvances}let d=[],c=\"\",s=0;for(let a of u){c+=a;let m=Ne(c,n),p=Me(c,m,o);d.push(p-s),s=p}return t.breakableFitAdvances=d,t.breakableFitAdvances}function un(e,t){let n=ft();n.font=e;let o=ki(e),r=Li(e),i=t?wi(e,r):0;return{cache:o,fontSize:r,emojiCorrection:i}}function vi(e,t){for(;t<e.widths.length;){let n=e.kinds[t];if(n!==\"space\"&&n!==\"zero-width-break\"&&n!==\"soft-hyphen\")break;t++}return t}function Ii(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function Pi(e,t,n,o,r){let i=0,u=t;for(;i<e.length;){let d=u+e[i];if((i+1<e.length?d+r:d)>n+o)break;u=d,i++}return{fitCount:i,fittedWidth:u}}function cn(e,t){return e.simpleLineWalkFastPath?dn(e,t):mn(e,t)}function dn(e,t,n){let{widths:o,kinds:r,breakableFitAdvances:i}=e;if(o.length===0)return 0;let d=Ie().lineFitEpsilon,c=t+d,s=0,a=0,m=!1,p=0,F=0,D=0,C=0,T=-1,U=0;function z(){T=-1,U=0}function k(b=D,y=C,v=a){s++,n?.({startSegmentIndex:p,startGraphemeIndex:F,endSegmentIndex:b,endGraphemeIndex:y,width:v}),a=0,m=!1,z()}function Q(b,y){m=!0,p=b,F=0,D=b+1,C=0,a=y}function S(b,y,v){m=!0,p=b,F=y,D=b,C=y+1,a=v}function x(b,y){if(!m){Q(b,y);return}a+=y,D=b+1,C=0}function g(b,y){let v=i[b];for(let _=y;_<v.length;_++){let O=v[_];m?a+O>c?(k(),S(b,_,O)):(a+=O,D=b,C=_+1):S(b,_,O)}m&&D===b&&C===v.length&&(D=b+1,C=0)}let E=0;for(;E<o.length&&!(!m&&(E=vi(e,E),E>=o.length));){let b=o[E],y=r[E],v=y===\"space\"||y===\"preserved-space\"||y===\"tab\"||y===\"zero-width-break\"||y===\"soft-hyphen\";if(!m){b>t&&i[E]!==null?g(E,0):Q(E,b),v&&(T=E+1,U=a-b),E++;continue}if(a+b>c){if(v){x(E,b),k(E+1,0,a-b),E++;continue}if(T>=0){if(D>T||D===T&&C>0){k();continue}k(T,0,U);continue}if(b>t&&i[E]!==null){k(),g(E,0),E++;continue}k();continue}x(E,b),v&&(T=E+1,U=a-b),E++}return m&&k(),s}function mn(e,t,n){if(e.simpleLineWalkFastPath)return dn(e,t,n);let{widths:o,lineEndFitAdvances:r,lineEndPaintAdvances:i,kinds:u,breakableFitAdvances:d,discretionaryHyphenWidth:c,tabStopAdvance:s,chunks:a}=e;if(o.length===0||a.length===0)return 0;let m=Ie(),p=m.lineFitEpsilon,F=t+p,D=0,C=0,T=!1,U=0,z=0,k=0,Q=0,S=-1,x=0,g=0,E=null;function b(){S=-1,x=0,g=0,E=null}function y(W=k,j=Q,R=C){D++,n?.({startSegmentIndex:U,startGraphemeIndex:z,endSegmentIndex:W,endGraphemeIndex:j,width:R}),C=0,T=!1,b()}function v(W,j){T=!0,U=W,z=0,k=W+1,Q=0,C=j}function _(W,j,R){T=!0,U=W,z=j,k=W,Q=j+1,C=R}function O(W,j){if(!T){v(W,j);return}C+=j,k=W+1,Q=0}function V(W,j,R,$){if(!j)return;let fe=W===\"tab\"?0:r[R],le=W===\"tab\"?$:i[R];S=R+1,x=C-$+fe,g=C-$+le,E=W}function w(W,j){let R=d[W];for(let $=j;$<R.length;$++){let fe=R[$];T?C+fe>F?(y(),_(W,$,fe)):(C+=fe,k=W,Q=$+1):_(W,$,fe)}T&&k===W&&Q===R.length&&(k=W+1,Q=0)}function K(W){if(E!==\"soft-hyphen\")return!1;let j=d[W];if(j==null)return!1;let{fitCount:R,fittedWidth:$}=Pi(j,C,t,p,c);return R===0?!1:(C=$,k=W,Q=R,b(),R===j.length?(k=W+1,Q=0,!0):(y(W,R,$+c),w(W,R),!0))}function Z(W){D++,n?.({startSegmentIndex:W.startSegmentIndex,startGraphemeIndex:0,endSegmentIndex:W.consumedEndSegmentIndex,endGraphemeIndex:0,width:0}),b()}for(let W=0;W<a.length;W++){let j=a[W];if(j.startSegmentIndex===j.endSegmentIndex){Z(j);continue}T=!1,C=0,U=j.startSegmentIndex,z=0,k=j.startSegmentIndex,Q=0,b();let R=j.startSegmentIndex;for(;R<j.endSegmentIndex;){let $=u[R],fe=$===\"space\"||$===\"preserved-space\"||$===\"tab\"||$===\"zero-width-break\"||$===\"soft-hyphen\",le=$===\"tab\"?Ii(C,s):o[R];if($===\"soft-hyphen\"){T&&(k=R+1,Q=0,S=R+1,x=C+c,g=C+c,E=$),R++;continue}if(!T){le>t&&d[R]!==null?w(R,0):v(R,le),V($,fe,R,le),R++;continue}if(C+le>F){let M=C+($===\"tab\"?0:r[R]),L=C+($===\"tab\"?le:i[R]);if(E===\"soft-hyphen\"&&m.preferEarlySoftHyphenBreak&&x<=F){y(S,0,g);continue}if(E===\"soft-hyphen\"&&K(R)){R++;continue}if(fe&&M<=F){O(R,le),y(R+1,0,L),R++;continue}if(S>=0&&x<=F){if(k>S||k===S&&Q>0){y();continue}let J=S;y(J,0,g),R=J;continue}if(le>t&&d[R]!==null){y(),w(R,0),R++;continue}y();continue}O(R,le),V($,fe,R,le),R++}if(T){let $=S===j.consumedEndSegmentIndex?g:C;y(j.consumedEndSegmentIndex,0,$)}}return D}var pt=null;function Oi(){return pt===null&&(pt=new Intl.Segmenter(void 0,{granularity:\"grapheme\"})),pt}function _i(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function Wi(e,t){let n=[],o=[],r=0,i=!1,u=!1,d=!1;function c(){o.length!==0&&(n.push({text:o.length===1?o[0]:o.join(\"\"),start:r}),o=[],i=!1,u=!1,d=!1)}function s(m,p,F){o=[m],r=p,i=F,u=Je(m),d=je.has(m)}function a(m,p){o.push(m),i=i||p;let F=Je(m);m.length===1&&be.has(m)?u=u||F:u=F,d=!1}for(let m of Oi().segment(e)){let p=m.segment,F=Fe(p);if(o.length===0){s(p,m.index,F);continue}if(d||Ke.has(p)||be.has(p)||t.carryCJKAfterClosingQuote&&F&&u){a(p,F);continue}if(!i&&!F){a(p,F);continue}c(),s(p,m.index,F)}return c(),n}function Hi(e){if(e.length<=1)return e;let t=[],n=[e[0].text],o=e[0].start,r=Fe(e[0].text),i=$e(e[0].text);function u(){t.push({text:n.length===1?n[0]:n.join(\"\"),start:o})}for(let d=1;d<e.length;d++){let c=e[d],s=Fe(c.text),a=$e(c.text);if(r&&i){n.push(c.text),r=r||s,i=a;continue}u(),n=[c.text],o=c.start,r=s,i=a}return u(),t}function ji(e,t,n,o){let r=Ie(),{cache:i,emojiCorrection:u}=un(t,an(e.normalized)),d=Me(\"-\",Ne(\"-\",i),u),s=Me(\" \",Ne(\" \",i),u)*8;if(e.len===0)return _i(n);let a=[],m=[],p=[],F=[],D=e.chunks.length<=1,C=n?[]:null,T=[],U=n?[]:null,z=Array.from({length:e.len});function k(g,E,b,y,v,_,O){v!==\"text\"&&v!==\"space\"&&v!==\"zero-width-break\"&&(D=!1),a.push(E),m.push(b),p.push(y),F.push(v),C?.push(_),T.push(O),U!==null&&U.push(g)}function Q(g,E,b,y,v){let _=Ne(g,i),O=Me(g,_,u),V=E===\"space\"||E===\"preserved-space\"||E===\"zero-width-break\"?0:O,w=E===\"space\"||E===\"zero-width-break\"?0:O;if(v&&y&&g.length>1){let K=\"sum-graphemes\";He(g)?K=\"pair-context\":r.preferPrefixWidthsForBreakableRuns&&(K=\"segment-prefixes\");let Z=ln(g,_,i,u,K);k(g,O,V,w,E,b,Z);return}k(g,O,V,w,E,b,null)}for(let g=0;g<e.len;g++){z[g]=a.length;let E=e.texts[g],b=e.isWordLike[g],y=e.kinds[g],v=e.starts[g];if(y===\"soft-hyphen\"){k(E,0,d,d,y,v,null);continue}if(y===\"hard-break\"){k(E,0,0,0,y,v,null);continue}if(y===\"tab\"){k(E,0,0,0,y,v,null);continue}let _=Ne(E,i);if(y===\"text\"&&_.containsCJK){let O=Wi(E,r),V=o===\"keep-all\"?Hi(O):O;for(let w=0;w<V.length;w++){let K=V[w];Q(K.text,\"text\",v+K.start,b,o===\"keep-all\"||!Fe(K.text))}continue}Q(E,y,v,b,!0)}let S=zi(e.chunks,z,a.length),x=C===null?null:qt(e.normalized,C);return U!==null?{widths:a,lineEndFitAdvances:m,lineEndPaintAdvances:p,kinds:F,simpleLineWalkFastPath:D,segLevels:x,breakableFitAdvances:T,discretionaryHyphenWidth:d,tabStopAdvance:s,chunks:S,segments:U}:{widths:a,lineEndFitAdvances:m,lineEndPaintAdvances:p,kinds:F,simpleLineWalkFastPath:D,segLevels:x,breakableFitAdvances:T,discretionaryHyphenWidth:d,tabStopAdvance:s,chunks:S}}function zi(e,t,n){let o=[];for(let r=0;r<e.length;r++){let i=e[r],u=i.startSegmentIndex<t.length?t[i.startSegmentIndex]:n,d=i.endSegmentIndex<t.length?t[i.endSegmentIndex]:n,c=i.consumedEndSegmentIndex<t.length?t[i.consumedEndSegmentIndex]:n;o.push({startSegmentIndex:u,endSegmentIndex:d,consumedEndSegmentIndex:c})}return o}function Ui(e,t,n,o){let r=o?.wordBreak??\"normal\",i=nn(e,Ie(),o?.whiteSpace,r);return ji(i,t,n,r)}function xn(e,t,n){return Ui(e,t,!1,n)}function fn(e,t,n){let o=cn(e,t);return{lineCount:o,height:o*n}}var Gi={maxWidth:1600,baseFontSize:78,minFontSize:42,fontWeight:900,fontFamily:\"Outfit\",step:2};function pn(e,t){let n={...Gi,...t},o=1.2;for(let r=n.baseFontSize;r>=n.minFontSize;r-=n.step){let i=`${n.fontWeight} ${r}px ${n.fontFamily}`,u=xn(e,i),{lineCount:d}=fn(u,n.maxWidth,r*o);if(d<=1)return{fontSize:r,fits:!0}}return{fontSize:n.minFontSize,fits:!1}}window.__timelines=window.__timelines||{};window.__hyperframes={fitTextFontSize:pn};function hn(){let e=window;e.__hyperframeRuntimeBootstrapped||(e.__hyperframeRuntimeBootstrapped=!0,Ut())}document.readyState===\"loading\"?document.addEventListener(\"DOMContentLoaded\",hn,{once:!0}):hn();})();\n";
2
+ const RUNTIME_IIFE = "\"use strict\";(()=>{function fe(e){try{window.parent.postMessage(e,\"*\")}catch{}}function At(e){let t=n=>{let i=n.data;if(!i||i.source!==\"hf-parent\"||i.type!==\"control\")return;let r=i.action;if(r===\"play\"){e.onPlay();return}if(r===\"pause\"){e.onPause();return}if(r===\"seek\"){e.onSeek(Number(i.frame??0),i.seekMode??\"commit\");return}if(r===\"set-muted\"){e.onSetMuted(!!i.muted);return}if(r===\"set-media-output-muted\"){e.onSetMediaOutputMuted(!!i.muted);return}if(r===\"set-playback-rate\"){e.onSetPlaybackRate(Number(i.playbackRate??1));return}if(r===\"enable-pick-mode\"){e.onEnablePickMode();return}if(r===\"disable-pick-mode\"){e.onDisablePickMode();return}if(r===\"flash-elements\"){let o=i.selectors,u=i.duration||800;o&&Nn(o,u)}};return window.addEventListener(\"message\",t),t}function Nn(e,t){if(!document.getElementById(\"__hf-flash-styles\")){let n=document.createElement(\"style\");n.id=\"__hf-flash-styles\",n.textContent=`\n .__hf-flash {\n outline: 2px solid rgba(59, 130, 246, 0.6) !important;\n outline-offset: 2px !important;\n animation: __hf-flash-pulse ${t}ms ease-out forwards !important;\n }\n @keyframes __hf-flash-pulse {\n 0% { outline-color: rgba(59, 130, 246, 0.8); }\n 100% { outline-color: transparent; }\n }\n `,document.head.appendChild(n)}for(let n of e)try{document.querySelectorAll(n).forEach(r=>{r.classList.add(\"__hf-flash\"),setTimeout(()=>r.classList.remove(\"__hf-flash\"),t)})}catch{}}var et=null;function Nt(e){et=e}function Pe(e,t){if(et)try{et({source:\"hf-preview\",type:\"analytics\",event:e,properties:t??{}})}catch{}}function Et(e){let t=[],n=d=>{if(typeof d.getAnimations!=\"function\")return[];try{return d.getAnimations()}catch{return[]}},i=(d,c)=>{for(let s of d){try{s.currentTime=c}catch{}try{s.pause()}catch{}}},r=d=>{for(let c of d)try{c.play()}catch{}},o=d=>{for(let c of d)try{c.pause()}catch{}},u=d=>{d.baseDelay?d.el.style.animationDelay=d.baseDelay:d.el.style.removeProperty(\"animation-delay\"),d.basePlayState?d.el.style.animationPlayState=d.basePlayState:d.el.style.removeProperty(\"animation-play-state\")};return{name:\"css\",discover:()=>{t=[];let d=document.querySelectorAll(\"*\");for(let c of d){if(!(c instanceof HTMLElement))continue;let s=window.getComputedStyle(c);!s.animationName||s.animationName===\"none\"||t.push({el:c,baseDelay:c.style.animationDelay||\"\",basePlayState:c.style.animationPlayState||\"\"})}},seek:d=>{let c=Number(d.time)||0;for(let s of t){if(!s.el.isConnected)continue;let a=e?.resolveStartSeconds?e.resolveStartSeconds(s.el):Number.parseFloat(s.el.getAttribute(\"data-start\")??\"0\")||0,m=Math.max(0,c-a)*1e3,h=n(s.el);if(h.length>0){i(h,m);continue}s.el.style.animationPlayState=\"paused\",s.el.style.animationDelay=`-${(m/1e3).toFixed(3)}s`}},pause:()=>{for(let d of t){if(!d.el.isConnected)continue;let c=n(d.el);c.length>0&&o(c),u(d)}},play:()=>{for(let d of t)d.el.isConnected&&(u(d),r(n(d.el)))},revert:()=>{t=[]}}}function yt(e){return{name:\"gsap\",discover:()=>{},seek:t=>{let n=e.getTimeline();if(!n)return;n.pause();let i=Math.max(0,Number(t.time)||0);typeof n.totalTime==\"function\"?n.totalTime(i,!1):n.seek(i,!1)},pause:()=>{let t=e.getTimeline();t&&t.pause()}}}function Ct(){return{name:\"lottie\",discover:()=>{try{let e=window.lottie;if(e&&typeof e.getRegisteredAnimations==\"function\"){let t=e.getRegisteredAnimations();if(Array.isArray(t)&&t.length>0){let n=window.__hfLottie??[],i=new Set(n);for(let r of t)i.has(r)||n.push(r);window.__hfLottie=n}}}catch{}},seek:e=>{let t=Math.max(0,Number(e.time)||0),n=window.__hfLottie;if(!(!n||n.length===0))for(let i of n)try{if(bt(i))i.goToAndStop(t*1e3,!1);else if(Mt(i)){if(typeof i.setCurrentRawFrameValue==\"function\"){let r=i.totalFrames??0,o=i.frameRate??30,u=t*o;r>0&&i.setCurrentRawFrameValue(Math.min(u,r-1))}else if(typeof i.seek==\"function\"){let r=i.duration??1,o=Math.min(100,t/r*100);i.seek(o)}}}catch{}},pause:()=>{let e=window.__hfLottie;if(!(!e||e.length===0))for(let t of e)try{(bt(t)||Mt(t))&&t.pause()}catch{}},revert:()=>{}}}function bt(e){return typeof e==\"object\"&&e!==null&&typeof e.goToAndStop==\"function\"}function Mt(e){return typeof e==\"object\"&&e!==null&&typeof e.pause==\"function\"&&(\"totalFrames\"in e||\"duration\"in e)}function Dt(){let e=null,t=0;return{name:\"three\",discover:()=>{},seek:n=>{e=Math.max(0,Number(n.time)||0),t=e,window.__hfThreeTime=e;try{window.dispatchEvent(new CustomEvent(\"hf-seek\",{detail:{time:e}}))}catch{}},pause:()=>{e==null&&(e=Math.max(0,t))},play:()=>{e=null},revert:()=>{e=null,t=0}}}function kt(){return{name:\"waapi\",discover:()=>{},seek:e=>{if(!document.getAnimations)return;let t=Math.max(0,(Number(e.time)||0)*1e3);for(let n of document.getAnimations()){try{n.currentTime=t}catch{}try{n.pause()}catch{}}},pause:()=>{if(document.getAnimations)for(let e of document.getAnimations())try{e.pause()}catch{}}}}function Lt(e){let t=Array.from(document.querySelectorAll(\"video, audio\")),n=e?.shouldIncludeElement?t.filter(u=>e.shouldIncludeElement?.(u)):t.filter(u=>u.hasAttribute(\"data-start\")),i=[],r=[],o=0;for(let u of n){let d=e?.resolveStartSeconds?e.resolveStartSeconds(u):Number.parseFloat(u.dataset.start??\"0\");if(!Number.isFinite(d))continue;let c=Number.parseFloat(u.dataset.playbackStart??u.dataset.mediaStart??\"0\")||0,s=u.defaultPlaybackRate,a=Number.isFinite(s)&&s>0?Math.max(.1,Math.min(5,s)):1,m=u.loop,h=Number.isFinite(u.duration)&&u.duration>0?u.duration:null,A=e?.resolveDurationSeconds?.(u)??Number.parseFloat(u.dataset.duration??\"\");(!Number.isFinite(A)||A<=0)&&h!=null&&(A=Math.max(0,(h-c)/a));let C=Number.isFinite(A)&&A>0?d+A:Number.POSITIVE_INFINITY,D=Number.parseFloat(u.dataset.volume??\"\"),L={el:u,start:d,mediaStart:c,duration:Number.isFinite(A)&&A>0?A:Number.POSITIVE_INFINITY,end:C,volume:Number.isFinite(D)?D:null,playbackRate:a,loop:m,sourceDuration:h};i.push(L),u.tagName===\"VIDEO\"&&r.push(L),Number.isFinite(C)&&(o=Math.max(o,C))}return{timedMediaEls:n,mediaClips:i,videoClips:r,maxMediaEnd:o}}var tt=new WeakMap,Oe=new WeakSet;function En(e){if(Oe.has(e))return;Oe.add(e);let t=()=>Oe.delete(e);e.addEventListener(\"playing\",t,{once:!0}),e.addEventListener(\"pause\",t,{once:!0}),e.addEventListener(\"error\",t,{once:!0})}function Tt(e){let t=!!(e.outputMuted||e.userMuted);for(let n of e.clips){let{el:i}=n;if(!i.isConnected)continue;let r=(e.timeSeconds-n.start)*n.playbackRate+n.mediaStart;if(e.timeSeconds>=n.start&&e.timeSeconds<n.end&&r>=0){if(n.loop&&n.sourceDuration!=null&&n.sourceDuration>0){let A=n.sourceDuration-n.mediaStart;A>0&&r>=n.sourceDuration&&(r=n.mediaStart+(r-n.mediaStart)%A)}n.volume!=null&&(i.volume=n.volume),t&&(i.muted=!0);try{i.playbackRate=n.playbackRate*e.playbackRate}catch{}let u=i.currentTime||0,d=Math.abs(u-r),c=r-u,s=tt.get(i);tt.set(i,c);let a=s===void 0,m=!a&&Math.abs(c-s)>.5,h=d>3;if(d>.5&&(a||m||h))try{i.currentTime=r}catch{}e.playing&&i.paused&&!Oe.has(i)?(i.preload!==\"auto\"&&(i.preload=\"auto\"),En(i),i.play().catch(A=>{Oe.delete(i),(A&&typeof A==\"object\"&&\"name\"in A?String(A.name??\"\"):\"\")===\"NotAllowedError\"&&e.onAutoplayBlocked?.()})):!e.playing&&!i.paused&&i.pause();continue}tt.delete(i),i.paused||i.pause()}}function wt(e){let t=!1,n=null,i=null,r=null,o=null;function u(S,x){try{window.dispatchEvent(new CustomEvent(S,{detail:x}))}catch{}}function d(S){r=S,u(\"hyperframe:picker:hovered\",{elementInfo:r,isPickMode:t,timestamp:Date.now()})}function c(S){o=S,u(\"hyperframe:picker:selected\",{elementInfo:o,isPickMode:t,timestamp:Date.now()})}function s(S){if(!S||S===document.body||S===document.documentElement)return!1;let x=S.tagName.toLowerCase();return!(x===\"script\"||x===\"style\"||x===\"link\"||x===\"meta\"||S.classList.contains(\"__hf-pick-highlight\"))}function a(S){let x=S;if(x.id)return`#${x.id}`;let g=S.getAttribute(\"data-composition-id\");if(g)return`[data-composition-id=\"${g}\"]`;let N=S.getAttribute(\"data-composition-src\");if(N)return`[data-composition-src=\"${N}\"]`;let y=S.getAttribute(\"data-track-index\");if(y)return`[data-track-index=\"${y}\"]`;let E=S.tagName.toLowerCase(),R=S.parentElement;if(!R)return E;let _=R.querySelectorAll(`:scope > ${E}`);if(_.length===1)return E;for(let W=0;W<_.length;W+=1)if(_[W]===S)return`${E}:nth-of-type(${W+1})`;return E}function m(S){let x=S.tagName.toLowerCase(),g=(S.textContent??\"\").trim().replace(/\\s+/g,\" \"),N=(y,E)=>y.length>E?`${y.slice(0,E-1)}\\u2026`:y;return x===\"h1\"||x===\"h2\"||x===\"h3\"?\"Heading\":x===\"p\"||x===\"span\"||x===\"div\"?g.length>0?N(g,56):\"Text\":x===\"img\"?\"Image\":x===\"video\"?\"Video\":x===\"audio\"?\"Audio\":x===\"svg\"?\"Shape\":S.getAttribute(\"data-composition-src\")?\"Composition\":x===\"section\"?\"Section\":`${x.charAt(0).toUpperCase()}${x.slice(1)}`}function h(S,x,g){let N=typeof g==\"number\"&&g>0?g:8,y=[];if(document.elementsFromPoint)y=document.elementsFromPoint(S,x);else if(document.elementFromPoint){let _=document.elementFromPoint(S,x);y=_?[_]:[]}let E={},R=[];for(let _=0;_<y.length;_+=1){let W=y[_];if(!s(W))continue;let Z=`${W.tagName}::${W.id||\"\"}::${_}`;if(!E[Z]&&(E[Z]=!0,R.push(W),R.length>=N))break}return R}function A(S){let x=S.getBoundingClientRect(),g={};for(let y=0;y<S.attributes.length;y+=1){let E=S.attributes[y];E.name.startsWith(\"data-\")&&(g[E.name]=E.value)}return{id:S.id||null,tagName:S.tagName.toLowerCase(),selector:a(S),label:m(S),boundingBox:{x:x.left,y:x.top,width:x.width,height:x.height},textContent:S.textContent?S.textContent.trim().slice(0,200):null,src:S.getAttribute(\"src\")||S.getAttribute(\"data-composition-src\")||null,dataAttributes:g}}function C(S,x,g){return h(S,x,g).map(A)}function D(S){if(!t)return;let g=h(S.clientX,S.clientY,1)[0]??(S.target instanceof Element?S.target:null);if(!s(g)||n===g)return;n&&n.classList.remove(\"__hf-pick-highlight\"),n=g,g.classList.add(\"__hf-pick-highlight\");let N=A(g);d(N),e.postMessage({source:\"hf-preview\",type:\"element-hovered\",elementInfo:N})}function L(S){if(!t)return;S.preventDefault(),S.stopPropagation(),S.stopImmediatePropagation();let x=C(S.clientX,S.clientY,8);x.length!==0&&(d(x[0]??null),e.postMessage({source:\"hf-preview\",type:\"element-pick-candidates\",candidates:x,selectedIndex:0,point:{x:S.clientX,y:S.clientY}}))}function G(S){S.key===\"Escape\"&&(k(),e.postMessage({source:\"hf-preview\",type:\"pick-mode-cancelled\"}))}function U(){t||(t=!0,i=document.createElement(\"style\"),i.textContent=[\".__hf-pick-highlight { outline: 2px solid #4f8cf7 !important; outline-offset: 2px; cursor: crosshair !important; }\",\".__hf-pick-active * { cursor: crosshair !important; }\"].join(`\n`),document.head.appendChild(i),document.body.classList.add(\"__hf-pick-active\"),document.addEventListener(\"mousemove\",D,!0),document.addEventListener(\"click\",L,!0),document.addEventListener(\"keydown\",G,!0),u(\"hyperframe:picker:mode\",{isPickMode:!0,timestamp:Date.now()}))}function k(){t&&(t=!1,n&&(n.classList.remove(\"__hf-pick-highlight\"),n=null),i&&(i.remove(),i=null),document.body.classList.remove(\"__hf-pick-active\"),document.removeEventListener(\"mousemove\",D,!0),document.removeEventListener(\"click\",L,!0),document.removeEventListener(\"keydown\",G,!0),u(\"hyperframe:picker:mode\",{isPickMode:!1,timestamp:Date.now()}))}function X(){window.__HF_PICKER_API={enable:U,disable:k,isActive:()=>t,getHovered:()=>r,getSelected:()=>o,getCandidatesAtPoint:(S,x,g)=>Number.isFinite(S)&&Number.isFinite(x)?C(S,x,g):[],pickAtPoint:(S,x,g)=>{if(!Number.isFinite(S)||!Number.isFinite(x))return null;let N=C(S,x,8);if(!N.length)return null;let y=Math.max(0,Math.min(N.length-1,Number(g??0))),E=N[y]??null;return E?(c(E),e.postMessage({source:\"hf-preview\",type:\"element-picked\",elementInfo:E}),k(),E):null},pickManyAtPoint:(S,x,g)=>{if(!Number.isFinite(S)||!Number.isFinite(x))return[];let N=C(S,x,8);if(!N.length)return[];let y=[],E=Array.isArray(g)?g:[0];for(let R of E){let _=Math.max(0,Math.min(N.length-1,Math.floor(Number(R)))),W=N[_];if(!W)continue;y.some(w=>w.selector===W.selector&&w.tagName===W.tagName)||y.push(W)}return y.length?(c(y[0]??null),e.postMessage({source:\"hf-preview\",type:\"element-picked-many\",elementInfos:y}),k(),y):[]}},u(\"hyperframe:picker:api-ready\",{hasApi:!0,timestamp:Date.now()})}return{enablePickMode:U,disablePickMode:k,installPickerApi:X}}function nt(e,t){let n=Number.isFinite(t)&&t>0?t:30,i=Number.isFinite(e)&&e>0?e:0;return Math.floor(i*n+1e-9)/n}function Ue(e,t,n){if(e){for(let i of Object.values(e))if(!(!i||i===t))try{n(i)}catch{}}}function Bt(e,t,n){let i=nt(t,n);return e.pause(),typeof e.totalTime==\"function\"?e.totalTime(i,!1):e.seek(i,!1),i}function yn(e,t,n,i){let r=[];Ue(e,t,o=>{o.play(),r.push(o)});try{return Bt(t,n,i)}finally{for(let o of r)try{o.pause()}catch{}}}function bn(e,t){Ue(e,t,n=>{n.play()})}function Rt(e){return{_timeline:null,play:()=>{let t=e.getTimeline();if(!t||e.getIsPlaying())return;let n=Math.max(0,Number(e.getSafeDuration?.()??t.duration()??0)||0);n>0&&Math.max(0,Number(t.time())||0)>=n&&(t.pause(),t.seek(0,!1),e.onDeterministicSeek(0),e.setIsPlaying(!1),e.onSyncMedia(0,!1),e.onRenderFrameSeek(0)),typeof t.timeScale==\"function\"&&t.timeScale(e.getPlaybackRate()),t.play(),Ue(e.getTimelineRegistry?.(),t,i=>{typeof i.timeScale==\"function\"&&i.timeScale(e.getPlaybackRate()),i.play()}),e.onDeterministicPlay(),e.setIsPlaying(!0),e.onShowNativeVideos(),e.onStatePost(!0)},pause:()=>{let t=e.getTimeline();if(!t)return;t.pause(),Ue(e.getTimelineRegistry?.(),t,i=>{i.pause()});let n=Math.max(0,Number(t.time())||0);e.onDeterministicSeek(n),e.onDeterministicPause(),e.setIsPlaying(!1),e.onSyncMedia(n,!1),e.onRenderFrameSeek(n),e.onStatePost(!0)},seek:t=>{let n=e.getTimeline();if(!n)return;let i=Math.max(0,Number(t)||0),r=yn(e.getTimelineRegistry?.(),n,i,e.getCanonicalFps());e.onDeterministicSeek(r),e.setIsPlaying(!1),e.onSyncMedia(r,!1),e.onRenderFrameSeek(r),e.onStatePost(!0)},renderSeek:t=>{let n=e.getTimeline(),i=e.getCanonicalFps(),r=n?(bn(e.getTimelineRegistry?.(),n),Bt(n,t,i)):nt(Math.max(0,Number(t)||0),i);e.onDeterministicSeek(r),e.setIsPlaying(!1),e.onSyncMedia(r,!1),e.onRenderFrameSeek(r),e.onStatePost(!0)},getTime:()=>Number(e.getTimeline()?.time()??0),getDuration:()=>Number(e.getTimeline()?.duration()??0),isPlaying:()=>e.getIsPlaying(),setPlaybackRate:t=>e.setPlaybackRate(t),getPlaybackRate:()=>e.getPlaybackRate()}}function vt(){return{capturedTimeline:null,isPlaying:!1,rafId:null,currentTime:0,deterministicAdapters:[],parityModeEnabled:!0,canonicalFps:30,bridgeMuted:!1,mediaOutputMuted:!1,mediaAutoplayBlockedPosted:!1,playbackRate:1,bridgeLastPostedFrame:-1,bridgeLastPostedAt:0,bridgeLastPostedPlaying:!1,bridgeLastPostedMuted:!1,bridgeMaxPostIntervalMs:80,timelinePollIntervalId:null,controlBridgeHandler:null,clampDurationLoggedRaw:null,beforeUnloadHandler:null,domReadyHandler:null,injectedCompStyles:[],injectedCompScripts:[],cachedTimedMediaEls:[],cachedMediaClips:[],cachedVideoClips:[],cachedMediaTimelineDurationSeconds:0,tornDown:!1,maxTimelineDurationSeconds:1800,nativeVisualWatchdogTick:0}}var Mn=\"data-hf-authored-duration\",Cn=\"data-hf-authored-end\";function De(e){if(e==null||e===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}function Dn(e){return De(e.getAttribute(\"data-duration\"))}function kn(e){return De(e.getAttribute(\"data-end\"))}function Ln(e){return De(e.getAttribute(Mn))}function Tn(e){return De(e.getAttribute(Cn))}function wn(e){let t=(e??\"\").trim();if(!t)return null;let n=De(t);if(n!=null)return{kind:\"absolute\",value:n};let i=t.match(/^([A-Za-z0-9_.:-]+)(?:\\s*([+-])\\s*([0-9]*\\.?[0-9]+))?$/);if(!i)return null;let r=(i[1]??\"\").trim();if(!r)return null;let o=i[2]??\"+\",u=i[3]??\"0\",d=Number.parseFloat(u),c=Number.isFinite(d)?Math.max(0,d):0,s=o===\"-\"?-c:c;return{kind:\"reference\",refId:r,offset:s}}function we(e){let t=e.timelineRegistry??{},n=e.includeAuthoredTimingAttrs??!1,i=new WeakMap,r=new WeakMap,o=new Set,u=a=>{let m=document.getElementById(a);return m||(document.querySelector(`[data-composition-id=\"${CSS.escape(a)}\"]`)??null)},d=a=>{let m=r.get(a);if(m!==void 0)return m;let h=null,A=Dn(a)??(n?Ln(a):null);if(A!=null&&A>0&&(h=A),h==null||h<=0){let C=kn(a)??(n?Tn(a):null);if(C!=null){let D=s(a,0),L=C-D;Number.isFinite(L)&&L>0&&(h=L)}}if((h==null||h<=0)&&a instanceof HTMLMediaElement){let C=De(a.getAttribute(\"data-playback-start\"))??De(a.getAttribute(\"data-media-start\"))??0;Number.isFinite(a.duration)&&a.duration>C&&(h=a.duration-C)}if(h==null||h<=0){let C=a.getAttribute(\"data-composition-id\");if(C){let D=t[C]??null;if(D&&typeof D.duration==\"function\")try{let L=Number(D.duration());Number.isFinite(L)&&L>0&&(h=L)}catch{}}}return h!=null&&Number.isFinite(h)&&h>0?(r.set(a,h),h):(r.set(a,null),null)},c=(a,m)=>{if(a.hasAttribute(\"data-composition-id\")){let A=a.parentElement?.closest(\"[data-composition-id]\");return A?s(A,m):0}let h=a.closest(\"[data-composition-id]\");return h?s(h,m):0},s=(a,m)=>{let h=i.get(a);if(h!==void 0)return h??m;if(o.has(a))return m;o.add(a);try{let A=wn(a.getAttribute(\"data-start\"));if(!A){if(a.hasAttribute(\"data-composition-id\")){let U=a.parentElement;if(U&&(U.hasAttribute(\"data-composition-src\")||U.hasAttribute(\"data-composition-id\"))){let k=s(U,m);return i.set(a,k),k}}return i.set(a,m),m}if(A.kind===\"absolute\"){let U=Math.max(0,A.value),k=Math.max(0,c(a,m)+U);return i.set(a,k),k}let C=u(A.refId);if(!C)return i.set(a,m),m;let D=s(C,0),L=d(C);if(L==null||L<=0){let U=Math.max(0,D+A.offset);return i.set(a,U),U}let G=Math.max(0,D+L+A.offset);return i.set(a,G),G}finally{o.delete(a)}};return{resolveStartForElement:(a,m=0)=>s(a,Math.max(0,m)),resolveDurationForElement:a=>d(a)}}var Bn=\"data-hf-authored-duration\",Rn=\"data-hf-authored-end\";function pe(e){if(e==null||e===\"\")return null;let t=Number(e);return Number.isFinite(t)?t:null}function it(e){return pe(e.getAttribute(\"data-duration\"))??pe(e.getAttribute(Bn))}function It(e){return pe(e.getAttribute(\"data-end\"))??pe(e.getAttribute(Rn))}function ot(...e){let t=e.filter(n=>Number.isFinite(n??null));return t.length===0?null:Math.max(...t)}var Pt={composition:0,video:1,image:2,element:3,audio:4};function vn(e){if(e.length===0)return;let t=new Map;for(let u of e){let d=t.get(u.track)??new Set;d.add(u.kind),t.set(u.track,d)}if(!Array.from(t.values()).some(u=>u.size>1))return;let i=0,r=new Map,o=[...t.keys()].sort((u,d)=>u-d);for(let u of o){let d=t.get(u);if(d.size===1)r.set(`${u}:${[...d][0]}`,i++);else{let c=[...d].sort((s,a)=>(Pt[s]??99)-(Pt[a]??99));for(let s of c)r.set(`${u}:${s}`,i++)}}for(let u of e){let d=`${u.track}:${u.kind}`,c=r.get(d);c!=null&&(u.track=c)}}function _e(e){let t=String(e??\"\").trim();if(!t)return null;let n=t.toLowerCase();if(n.startsWith(\"data:\")||n.startsWith(\"javascript:\"))return null;try{return new URL(t,document.baseURI).toString()}catch{return t}}function In(e){let t=e.getAttribute(\"src\")??e.getAttribute(\"data-src\");if(t)return _e(t);let n=e.getAttribute(\"data-composition-src\");if(n)return _e(n);let i=e.querySelector(\"img[src], video[src], audio[src], source[src]\");return i?_e(i.getAttribute(\"src\")):null}function Ot(e){let n=window.__timelines??{},i=we({timelineRegistry:n,includeAuthoredTimingAttrs:!0}),r=B=>{if(!B)return null;let b=n[B]??null;if(!b||typeof b.duration!=\"function\")return null;try{let T=Number(b.duration());return Number.isFinite(T)&&T>0?T:null}catch{return null}},o=B=>{let b=pe(B.getAttribute(\"data-duration\"));if(b!=null&&b>0)return b;let T=pe(B.getAttribute(\"data-playback-start\"))??pe(B.getAttribute(\"data-media-start\"))??0;return Number.isFinite(B.duration)&&B.duration>T?Math.max(0,B.duration-T):null},u=()=>{let B=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\"));if(B.length===0)return null;let b=0;for(let T of B){let Y=i.resolveStartForElement(T,0);if(!Number.isFinite(Y))continue;let te=o(T);te==null||te<=0||(b=Math.max(b,Math.max(0,Y)+te))}return b>0?b:null},d=B=>{let b=B.trim().toLowerCase();return!(!b||b===\"main\"||b.includes(\"caption\")||b.includes(\"ambient\"))},c=(B,b)=>{let T=[],Y=null,te=null,I=null,P=B.parentElement;for(;P;){let j=P.getAttribute(\"data-composition-id\");j&&(T.push(j),!I&&P!==b&&(I=j),Y==null&&(Y=i.resolveStartForElement(P,0)),te==null&&(te=pe(P.getAttribute(\"data-duration\"))??r(j)??null)),P=P.parentElement}return{parentCompositionId:I,compositionAncestors:T.reverse(),inheritedStart:Y,inheritedDuration:te}},s=document.querySelector(\"[data-composition-id]\"),a=Array.from(document.querySelectorAll(\"[data-composition-id]\")),m=s?.getAttribute(\"data-composition-id\")??null,h=s?i.resolveStartForElement(s,0):0,A=u(),C=A!=null?Math.max(0,A-Math.max(0,h)):null,D=r(m),L=it(s??document.body),G=ot(...a.filter(B=>B!==s).map(B=>{let b=i.resolveStartForElement(B,0),T=i.resolveDurationForElement(B)??r(B.getAttribute(\"data-composition-id\"))??null;return!Number.isFinite(b)||T==null||T<=0?null:Math.max(0,b)+T})),U=G!=null?Math.max(0,G-Math.max(0,h)):null,k=typeof D==\"number\"&&Number.isFinite(D)&&D>0?D:null,X=typeof L==\"number\"&&Number.isFinite(L)&&L>0?L:null,S=typeof C==\"number\"&&Number.isFinite(C)&&C>0?C:null,x=typeof U==\"number\"&&Number.isFinite(U)&&U>0?U:null,g=ot(S,x),N=k!=null&&g!=null&&k>g+1,y=X??(N?g:ot(k,S,x)),E=y!=null?Math.min(y,e.maxTimelineDurationSeconds):null,_=(E!=null?h+E:null)??(typeof A==\"number\"&&Number.isFinite(A)&&A>0?A:null),W=(B,b)=>!Number.isFinite(b)||b<=0?0:_==null||!Number.isFinite(_)?b:!Number.isFinite(B)||B>=_?0:Math.max(0,Math.min(b,_-B)),Z=[],w=[],Q=Array.from(document.querySelectorAll(\"[data-start], [data-track-index], [data-composition-id], video, audio, img\")),ee=0;for(let B=0;B<Q.length;B+=1){let b=Q[B];if(b===s||[\"SCRIPT\",\"STYLE\",\"LINK\",\"META\",\"TEMPLATE\",\"NOSCRIPT\"].includes(b.tagName))continue;let T=c(b,s),Y=i.resolveStartForElement(b,T.inheritedStart??0),te=b.getAttribute(\"data-composition-id\"),I=it(b);if((I==null||I<=0)&&te&&te!==m&&(I=r(te)),(I==null||I<=0)&&b instanceof HTMLMediaElement){let de=pe(b.getAttribute(\"data-playback-start\"))??pe(b.getAttribute(\"data-media-start\"))??0;Number.isFinite(b.duration)&&b.duration>0&&(I=Math.max(0,b.duration-de))}if(I==null||I<=0){let de=T.inheritedDuration;if(de!=null&&de>0){let ge=(T.inheritedStart??0)+de;I=Math.max(0,ge-Y)}}if(I==null||I<=0||(I=W(Y,I),I<=0))continue;let P=Y+I;ee=Math.max(ee,P);let j=b.tagName.toLowerCase(),ce=te&&te!==m?\"composition\":j===\"video\"?\"video\":j===\"audio\"?\"audio\":j===\"img\"?\"image\":\"element\";Z.push({id:b.id||te||`__node__index_${B}`,label:b.getAttribute(\"data-timeline-label\")??b.getAttribute(\"data-label\")??b.getAttribute(\"aria-label\")??te??b.id??b.className?.split(\" \")[0]??ce,start:Y,duration:I,track:Number.parseInt(b.getAttribute(\"data-track-index\")??b.getAttribute(\"data-track\")??String(B),10)||0,kind:ce,tagName:j,compositionId:b.getAttribute(\"data-composition-id\"),compositionAncestors:T.compositionAncestors,parentCompositionId:T.parentCompositionId,nodePath:null,compositionSrc:_e(b.getAttribute(\"data-composition-src\")),assetUrl:In(b),timelineRole:b.getAttribute(\"data-timeline-role\"),timelineLabel:b.getAttribute(\"data-timeline-label\"),timelineGroup:b.getAttribute(\"data-timeline-group\"),timelinePriority:pe(b.getAttribute(\"data-timeline-priority\"))})}let H=new Set(Z.map(B=>B.id)),z=s?.getAttribute(\"data-composition-id\")??null,v=z?n[z]??null:null;if(v&&s){let B=v;if(typeof B.getChildren==\"function\")try{let b=B.getChildren(!0,!0,!1)??[],T=new Map;for(let I of s.children){let P=I;if(!P.id)continue;let j=P.tagName.toLowerCase();j===\"script\"||j===\"style\"||j===\"link\"||T.set(P,{id:P.id,start:1/0,end:-1/0})}let Y=I=>{let P=I;for(;P;){if(T.has(P))return P;if(P===s)return null;P=P.parentElement}return null};for(let I of b){if(typeof I.targets!=\"function\"||typeof I.startTime!=\"function\"||typeof I.duration!=\"function\")continue;let P=I.startTime(),j=I.parent;for(;j&&typeof j.startTime==\"function\";)P+=j.startTime(),j=j.parent;let ce=P+I.duration();if(!(!Number.isFinite(P)||!Number.isFinite(ce)))for(let de of I.targets()){if(!(de instanceof Element))continue;let Ee=Y(de);if(!Ee)continue;let ge=T.get(Ee);ge&&(ge.start=Math.min(ge.start,P),ge.end=Math.max(ge.end,ce))}}let te=Z.length>0?Math.max(...Z.map(I=>I.track))+1:0;for(let[I,P]of T){if(P.start===1/0||P.end===-1/0)continue;let j=I;if(H.has(j.id))continue;let ce=Math.max(0,P.end-P.start);if(ce<=0)continue;let de=W(P.start,ce);de<=0||(ee=Math.max(ee,P.start+de),Z.push({id:j.id,label:j.getAttribute(\"data-timeline-label\")??j.getAttribute(\"data-label\")??j.getAttribute(\"aria-label\")??j.id,start:P.start,duration:de,track:Number.parseInt(j.getAttribute(\"data-track-index\")??j.getAttribute(\"data-track\")??\"\",10)||te,kind:\"element\",tagName:j.tagName.toLowerCase(),compositionId:j.getAttribute(\"data-composition-id\"),compositionAncestors:z?[z]:[],parentCompositionId:z,nodePath:null,compositionSrc:null,assetUrl:null,timelineRole:j.getAttribute(\"data-timeline-role\"),timelineLabel:j.getAttribute(\"data-timeline-label\"),timelineGroup:j.getAttribute(\"data-timeline-group\"),timelinePriority:pe(j.getAttribute(\"data-timeline-priority\"))}),H.add(j.id))}}catch{}}if(s&&E!=null&&E>0){let B=Z.length>0?Math.max(...Z.map(b=>b.track))+1:0;for(let b of s.children){let T=b;if(!T.id||H.has(T.id))continue;let Y=T.getAttribute(\"data-timeline-role\");if(Y!==\"overlay\"&&Y!==\"persistent-overlay\")continue;let te=T.tagName.toLowerCase();if(te===\"script\"||te===\"style\"||te===\"link\"||te===\"meta\"||window.getComputedStyle(T).display===\"none\")continue;let P=W(0,E);P<=0||(ee=Math.max(ee,P),Z.push({id:T.id,label:T.getAttribute(\"data-timeline-label\")??T.getAttribute(\"data-label\")??T.getAttribute(\"aria-label\")??T.id,start:0,duration:P,track:Number.parseInt(T.getAttribute(\"data-track-index\")??T.getAttribute(\"data-track\")??\"\",10)||B,kind:\"element\",tagName:te,compositionId:T.getAttribute(\"data-composition-id\"),compositionAncestors:z?[z]:[],parentCompositionId:z,nodePath:null,compositionSrc:null,assetUrl:null,timelineRole:Y,timelineLabel:T.getAttribute(\"data-timeline-label\"),timelineGroup:T.getAttribute(\"data-timeline-group\"),timelinePriority:pe(T.getAttribute(\"data-timeline-priority\"))}),H.add(T.id))}}vn(Z);for(let B of a){if(B===s)continue;let b=B.getAttribute(\"data-composition-id\");if(!b||!d(b))continue;let T=i.resolveStartForElement(B,0),Y=it(B);if((Y==null||Y<=0)&&It(B)!=null){let j=It(B);Y=Math.max(0,j-T)}let te=r(b),I=Y&&Y>0?Y:te;if(I==null||I<=0)continue;let P=W(T,I);P<=0||w.push({id:b,label:B.getAttribute(\"data-label\")??b,start:T,duration:P,thumbnailUrl:_e(B.getAttribute(\"data-thumbnail-url\")),avatarName:null})}let K=Math.max(1,Math.min(Math.max(ee||1,E??0),e.maxTimelineDurationSeconds));return{source:\"hf-preview\",type:\"timeline\",durationInFrames:N&&X==null?Number.POSITIVE_INFINITY:Math.max(1,Math.round(K*Math.max(1,e.canonicalFps))),clips:Z,scenes:w,compositionWidth:pe(s?.getAttribute(\"data-width\"))??1920,compositionHeight:pe(s?.getAttribute(\"data-height\"))??1080}}var Pn=/^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:)(?!\\/\\/)(?!\\/)(?!\\.\\.?\\/).+/,On=e=>new Promise(t=>{let n=!1,i=Date.now(),r=null,o=u=>{n||(n=!0,r!=null&&window.clearTimeout(r),t({status:u,elapsedMs:Math.max(0,Date.now()-i)}))};e.addEventListener(\"load\",()=>o(\"load\"),{once:!0}),e.addEventListener(\"error\",()=>o(\"error\"),{once:!0}),r=window.setTimeout(()=>o(\"timeout\"),8e3)});function rt(e){for(;e.firstChild;)e.removeChild(e.firstChild);e.textContent=\"\"}function _t(e,t){let n=e.trim();if(!n)return e;try{return Pn.test(n)?new URL(n,document.baseURI).toString():t?new URL(n,t).toString():new URL(n,document.baseURI).toString()}catch{return e}}async function st(e){let t=null;e.hostCompositionId&&(t=Array.from(e.sourceNode.querySelectorAll(\"[data-composition-id]\")).find(s=>s.getAttribute(\"data-composition-id\")===e.hostCompositionId)??null);let n=t??e.sourceNode;if(e.headStyles)for(let c of e.headStyles){let s=c.cloneNode(!0);s instanceof HTMLStyleElement&&(document.head.appendChild(s),e.injectedStyles.push(s))}let i=Array.from(n.querySelectorAll(\"style\"));for(let c of i){let s=c.cloneNode(!0);s instanceof HTMLStyleElement&&(document.head.appendChild(s),e.injectedStyles.push(s))}let r=[];if(e.headScripts)for(let c of e.headScripts){let s=c.getAttribute(\"type\")?.trim()??\"\",a=c.getAttribute(\"src\")?.trim()??\"\";if(a){let m=_t(a,e.compositionUrl);r.push({kind:\"external\",src:m,type:s})}else{let m=c.textContent?.trim()??\"\";m&&r.push({kind:\"inline\",content:m,type:s})}}let o=Array.from(n.querySelectorAll(\"script\")),u=[...r];for(let c of o){let s=c.getAttribute(\"type\")?.trim()??\"\",a=c.getAttribute(\"src\")?.trim()??\"\";if(a){let m=_t(a,e.compositionUrl);u.push({kind:\"external\",src:m,type:s})}else{let m=c.textContent?.trim()??\"\";m&&u.push({kind:\"inline\",content:m,type:s})}c.parentNode?.removeChild(c)}let d=Array.from(n.querySelectorAll(\"style\"));for(let c of d)c.parentNode?.removeChild(c);if(t){let c=document.importNode(t,!0),s=t.getAttribute(\"data-width\"),a=t.getAttribute(\"data-height\"),m=e.parseDimensionPx(s),h=e.parseDimensionPx(a);c.style.position=\"relative\",c.style.width=m||\"100%\",c.style.height=h||\"100%\",m&&c.style.setProperty(\"--comp-width\",m),h&&c.style.setProperty(\"--comp-height\",h),s&&e.host.setAttribute(\"data-width\",s),a&&e.host.setAttribute(\"data-height\",a),m&&e.host instanceof HTMLElement&&(e.host.style.width=m),h&&e.host instanceof HTMLElement&&(e.host.style.height=h),e.host.appendChild(c)}else e.hasTemplate?e.host.appendChild(document.importNode(n,!0)):e.host.innerHTML=e.fallbackBodyInnerHtml;for(let c of u){let s=document.createElement(\"script\");if(c.type&&(s.type=c.type),s.async=!1,c.kind===\"external\"?s.src=c.src:c.type.toLowerCase()===\"module\"?s.textContent=c.content:s.textContent=`(function(){${c.content}})();`,document.body.appendChild(s),e.injectedScripts.push(s),c.kind===\"external\"){let a=await On(s);a.status!==\"load\"&&e.onDiagnostic?.({code:\"external_composition_script_load_issue\",details:{hostCompositionId:e.hostCompositionId,hostCompositionSrc:e.hostCompositionSrc,resolvedScriptSrc:c.src,loadStatus:a.status,elapsedMs:a.elapsedMs}})}}}async function Wt(e){let t=Array.from(document.querySelectorAll(\"[data-composition-id]:not([data-composition-src])\")).filter(n=>{if(n.children.length>0)return!1;let i=n.getAttribute(\"data-composition-id\");return i?!!document.querySelector(`template#${CSS.escape(i)}-template`):!1});if(t.length!==0)for(let n of t){let i=n.getAttribute(\"data-composition-id\"),r=document.querySelector(`template#${CSS.escape(i)}-template`);rt(n),await st({host:n,hostCompositionId:i,hostCompositionSrc:`template#${i}-template`,sourceNode:r.content,hasTemplate:!0,fallbackBodyInnerHtml:\"\",compositionUrl:null,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,parseDimensionPx:e.parseDimensionPx,onDiagnostic:e.onDiagnostic})}}async function Ht(e){let t=Array.from(document.querySelectorAll(\"[data-composition-src]\"));t.length!==0&&await Promise.all(t.map(async n=>{let i=n.getAttribute(\"data-composition-src\");if(!i)return;let r=null;try{r=new URL(i,document.baseURI)}catch{r=null}rt(n);try{let o=n.getAttribute(\"data-composition-id\"),u=o!=null?document.querySelector(`template#${CSS.escape(o)}-template`):null;if(u){await st({host:n,hostCompositionId:o,hostCompositionSrc:i,sourceNode:u.content,hasTemplate:!0,fallbackBodyInnerHtml:\"\",compositionUrl:r,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,parseDimensionPx:e.parseDimensionPx,onDiagnostic:e.onDiagnostic});return}let d=await fetch(i);if(!d.ok)throw new Error(`HTTP ${d.status}`);let c=await d.text(),a=new DOMParser().parseFromString(c,\"text/html\"),m=(o?a.querySelector(`template#${CSS.escape(o)}-template`):null)??a.querySelector(\"template\"),h=m?m.content:a.body,A=m?void 0:Array.from(a.head.querySelectorAll(\"style\")),C=m?void 0:Array.from(a.head.querySelectorAll(\"script\"));await st({host:n,hostCompositionId:o,hostCompositionSrc:i,sourceNode:h,hasTemplate:!!m,fallbackBodyInnerHtml:a.body.innerHTML,compositionUrl:r,injectedStyles:e.injectedStyles,injectedScripts:e.injectedScripts,parseDimensionPx:e.parseDimensionPx,headStyles:A,headScripts:C,onDiagnostic:e.onDiagnostic})}catch(o){e.onDiagnostic?.({code:\"external_composition_load_failed\",details:{hostCompositionId:n.getAttribute(\"data-composition-id\"),hostCompositionSrc:i,errorMessage:o instanceof Error?o.message:\"unknown_error\"}}),rt(n)}}))}function at(){let e=window.gsap;e&&document.querySelectorAll(\".caption-group\").length!==0&&fetch(\"caption-overrides.json\").then(t=>t.ok?t.json():null).then(t=>{if(!t||!Array.isArray(t)||t.length===0)return;let n=[],i=document.querySelectorAll(\".caption-group\");for(let r of i){let o=r.querySelectorAll(\":scope > span\");for(let u of o)n.push(u)}for(let r of t){let o=null;if(r.wordId&&(o=document.getElementById(r.wordId)),!o&&r.wordIndex!==void 0&&(o=n[r.wordIndex]??null),!o||!(o instanceof HTMLElement))continue;let u={},d={};if(r.x!==void 0&&(u.x=r.x),r.y!==void 0&&(u.y=r.y),r.scale!==void 0&&(u.scale=r.scale),r.rotation!==void 0&&(u.rotation=r.rotation),r.opacity!==void 0&&(d.opacity=r.opacity),r.fontSize!==void 0&&(d.fontSize=`${r.fontSize}px`),r.fontWeight!==void 0&&(d.fontWeight=r.fontWeight),r.fontFamily!==void 0&&(d.fontFamily=r.fontFamily),r.activeColor||r.dimColor){let s=e.getTweensOf(o).filter(m=>m.vars.color!==void 0).sort((m,h)=>m.startTime()-h.startTime()),a=s.length>0?String(s[0].vars.color):\"\";for(let m of s)String(m.vars.color)===a?r.dimColor&&(m.vars.color=r.dimColor):r.activeColor&&(m.vars.color=r.activeColor);r.dimColor&&e.set(o,{color:r.dimColor})}if(Object.keys(d).length>0&&e.set(o,d),Object.keys(u).length>0){let c=document.createElement(\"span\");c.style.display=\"inline-block\",c.dataset.captionWrapper=\"true\",o.parentNode?.insertBefore(c,o),c.appendChild(o),e.set(c,u)}}}).catch(()=>{})}var jt=\"data-hf-authored-duration\",zt=\"data-hf-authored-end\";function Ut(){let e=vt(),t=window,n=null,i=null,r=[],o=new Set,u=null;if(typeof t.__hfRuntimeTeardown==\"function\")try{t.__hfRuntimeTeardown()}catch{}document.documentElement&&(document.documentElement.style.margin=\"0\",document.documentElement.style.padding=\"0\",document.documentElement.style.overflow=\"hidden\"),document.body&&(document.body.style.margin=\"0\",document.body.style.padding=\"0\",document.body.style.overflow=\"hidden\"),window.__timelines=window.__timelines||{};let d=l=>{r.push(l)},c=(l,p,f)=>{let M=f??`${l}:${JSON.stringify(p)}`;o.has(M)||(o.add(M),fe({source:\"hf-preview\",type:\"diagnostic\",code:l,details:p}))},s=l=>{let p={scale:1,focusX:960,focusY:540},f=[],M=[],F={time:l.getTime(),duration:l.getDuration(),isPlaying:l.isPlaying(),renderMode:!1,timelineDirty:!1};return{play:l.play,pause:l.pause,seek:l.seek,getTime:l.getTime,getDuration:l.getDuration,isPlaying:l.isPlaying,getMainTimeline:()=>null,getElementBounds:()=>{},getElementsAtPoint:()=>{},setElementPosition:()=>{},previewElementPosition:()=>{},setElementKeyframes:()=>{},setElementScale:()=>{},setElementFontSize:()=>{},setElementTextContent:()=>{},setElementTextColor:()=>{},setElementTextShadow:()=>{},setElementTextFontWeight:()=>{},setElementTextFontFamily:()=>{},setElementTextOutline:()=>{},setElementTextHighlight:()=>{},setElementVolume:()=>{},setStageZoom:()=>{},getStageZoom:()=>p,setStageZoomKeyframes:()=>{},getStageZoomKeyframes:()=>f,addElement:()=>!1,removeElement:()=>!1,updateElementTiming:()=>!1,setElementTiming:()=>{},updateElementSrc:()=>!1,updateElementLayer:()=>!1,updateElementBasePosition:()=>!1,markTimelineDirty:()=>{},isTimelineDirty:()=>!1,rebuildTimeline:()=>{},ensureTimeline:()=>{},enableRenderMode:()=>{},disableRenderMode:()=>{},renderSeek:l.renderSeek,getElementVisibility:()=>({visible:!1}),getVisibleElements:()=>M,getRenderState:()=>({...F,time:l.getTime(),duration:l.getDuration(),isPlaying:l.isPlaying()})}},a=1/60,m=.75,h=.75,A=.35,C=900,D=3,L=2,G=.05,U=100,k=240,X=l=>{if(l instanceof Error)return l.message||String(l);if(typeof l==\"string\")return l;try{return JSON.stringify(l)}catch{return String(l??\"\")}},S=l=>{let p=l.toLowerCase();return p.includes(\"cannot read properties of null\")||p.includes(\"cannot set properties of null\")?{code:\"runtime_null_dom_access\",category:\"dom-null-access\"}:p.includes(\"failed to execute 'queryselector'\")?{code:\"runtime_invalid_selector\",category:\"selector-invalid\"}:p.includes(\"is not defined\")?{code:\"runtime_reference_missing\",category:\"reference-missing\"}:{code:\"runtime_script_error\",category:\"script-error\"}},x=l=>{if(l==null||l.trim()===\"\")return null;let p=Number.parseFloat(l);return!Number.isFinite(p)||p<=0?null:`${p}px`},g=()=>{let l=document.querySelector('[data-composition-id][data-root=\"true\"]');if(l instanceof HTMLElement)return l;let p=Array.from(document.querySelectorAll(\"[data-composition-id]\"));return p.length===0?null:p.find(f=>!f.parentElement?.closest(\"[data-composition-id]\"))??p[0]??null},N=()=>{let l=g();if(!l)return;let p=x(l.getAttribute(\"data-width\")),f=x(l.getAttribute(\"data-height\"));p&&(l.style.width=p),f&&(l.style.height=f),p&&l.style.setProperty(\"--comp-width\",p),f&&l.style.setProperty(\"--comp-height\",f)},y=()=>{let l=g(),p=Array.from(document.querySelectorAll(\"[data-composition-id]\")).filter(f=>f.hasAttribute(\"data-duration\")||f.hasAttribute(\"data-end\"));for(let f of p){if(l&&f===l)continue;let M=f.getAttribute(\"data-duration\"),F=f.getAttribute(\"data-end\");M!=null&&!f.hasAttribute(jt)&&f.setAttribute(jt,M),F!=null&&!f.hasAttribute(zt)&&f.setAttribute(zt,F),f.removeAttribute(\"data-duration\"),f.removeAttribute(\"data-end\")}},E=()=>{let l=g();if(!l)return;l.style.position||(l.style.position=\"relative\"),l.style.overflow=\"hidden\";let p=x(l.getAttribute(\"data-width\")),f=x(l.getAttribute(\"data-height\"));p&&(l.style.width=p),f&&(l.style.height=f);let M=Array.from(l.children);for(let F of M){let O=F.tagName.toLowerCase();if(O===\"script\"||O===\"style\"||O===\"link\"||O===\"meta\"||!F.hasAttribute(\"data-start\"))continue;let re=(F.style.top===\"0px\"||F.style.top===\"0\")&&(F.style.left===\"0px\"||F.style.left===\"0\")&&F.style.width===\"100%\"&&F.style.height===\"100%\",Fe=/translate\\(\\s*-50%\\s*,\\s*-50%\\s*\\)/.test(F.style.transform);if(re&&Fe&&!F.hasAttribute(\"data-width\")&&!F.hasAttribute(\"data-height\")){let xe=F.style.top,V=F.style.left,q=F.style.width,ie=F.style.height;F.style.top=\"\",F.style.left=\"\",F.style.width=\"\",F.style.height=\"\";let $=window.getComputedStyle(F);$.top!==\"auto\"||$.bottom!==\"auto\"||$.left!==\"auto\"||$.right!==\"auto\"||$.width!==\"0px\"||$.height!==\"0px\"||(F.style.top=xe,F.style.left=V,F.style.width=q,F.style.height=ie)}let J=window.getComputedStyle(F),ne=J.position;if(ne!==\"absolute\"&&ne!==\"fixed\"&&(F.style.position=\"absolute\"),!!F.style.top||!!F.style.bottom||J.top!==\"auto\"||J.bottom!==\"auto\"||(F.style.top=\"0\"),!!F.style.left||!!F.style.right||J.left!==\"auto\"||J.right!==\"auto\"||(F.style.left=\"0\"),O!==\"audio\"){let xe=x(F.getAttribute(\"data-width\")),V=x(F.getAttribute(\"data-height\")),q=J.width!==\"0px\"&&J.width!==\"auto\",ie=J.height!==\"0px\"&&J.height!==\"auto\";xe?!F.style.width&&!q&&(F.style.width=xe):!F.style.width&&J.width===\"0px\"&&(F.style.width=\"100%\"),V?!F.style.height&&!ie&&(F.style.height=V):!F.style.height&&J.height===\"0px\"&&(F.style.height=\"100%\")}}},R=(l,p=0)=>we({timelineRegistry:window.__timelines??{}}).resolveStartForElement(l,p),_=(l,p)=>we({timelineRegistry:window.__timelines??{},includeAuthoredTimingAttrs:p?.includeAuthoredTimingAttrs??!0}).resolveDurationForElement(l),W=!!document.querySelector(\"[data-composition-src]\"),Z=!1;{let l=document.querySelectorAll(\"[data-composition-id]:not([data-composition-src])\");for(let p of l){let f=p.getAttribute(\"data-composition-id\");if(f&&p.children.length===0&&document.querySelector(`template#${CSS.escape(f)}-template`)){Z=!0;break}}}let w=!W&&!Z,Q=l=>{if(!l||typeof l.duration!=\"function\")return null;try{let p=Number(l.duration());return Number.isFinite(p)?Math.max(0,p):null}catch{return null}},ee=l=>typeof l==\"number\"&&Number.isFinite(l)&&l>a,H=l=>{let p=Number(l.getAttribute(\"data-duration\"));if(Number.isFinite(p)&&p>0)return p;let f=Number(l.getAttribute(\"data-playback-start\")??l.getAttribute(\"data-media-start\")??\"0\"),M=Number.isFinite(f)?Math.max(0,f):0;return Number.isFinite(l.duration)&&l.duration>M?Math.max(0,l.duration-M):null},z=()=>{let l=Array.from(document.querySelectorAll(\"video[data-start], audio[data-start]\"));if(l.length===0)return null;let p=0;for(let f of l){let M=R(f,0);if(!Number.isFinite(M))continue;let F=H(f);F==null||F<=a||(p=Math.max(p,Math.max(0,M)+F))}return p>a?p:null},v=()=>{let l=z();return typeof l!=\"number\"||!Number.isFinite(l)||l<=a?null:l},K=l=>ee(l)?Math.max(a,l*m):a,he=(l,p=0)=>{let f=Q(l),M=v(),F=Number.isFinite(p)&&p>a?p:0,O=0;ee(f)?O=Math.max(f,F):ee(M)?O=Math.max(M,F):O=F;let re=Math.max(1,Number(e.maxTimelineDurationSeconds)||1800);return O>0?Math.max(0,Math.min(O,re)):0},ue=()=>{let l=window.__timelines??{},p=we({timelineRegistry:l}),f=v(),M=K(f),F=V=>{let q=document.querySelector(`[data-composition-id=\"${CSS.escape(V)}\"]`);return q?p.resolveStartForElement(q,0):0},O=V=>{let q=window.gsap;if(!q||typeof q.timeline!=\"function\")return null;let ie=q.timeline({paused:!0});for(let $ of V)ie.add($.timeline,F($.compositionId));return ie},re=(V,q)=>{if(!ee(V))return null;let ie=window.gsap;if(!ie||typeof ie.timeline!=\"function\")return null;let $=ie.timeline({paused:!0});if(q)try{$.add(q,0)}catch{}let oe=$;if(typeof oe.to==\"function\")try{oe.to({},{duration:V})}catch{}return $},Fe=(V,q)=>{let ie=V;if(typeof ie.getChildren!=\"function\")return[];try{let $=ie.getChildren(!0,!0,!0)??[];if(!Array.isArray($))return[];let oe=[];for(let ae of q)if(!$.some(Ce=>Ce===ae.timeline))try{let Ce=F(ae.compositionId);V.add(ae.timeline,Ce),oe.push(ae.compositionId)}catch{}return oe}catch{return[]}},J=g(),ne=J?.getAttribute(\"data-composition-id\")??null;if(!ne)return{timeline:null};let me=l[ne]??null,se=(()=>{if(!J)return[];let V=new Set,q=Array.from(J.querySelectorAll(\"[data-composition-id]\")),ie=[];for(let $ of q){let oe=$.getAttribute(\"data-composition-id\");if(!oe||oe===ne||V.has(oe))continue;V.add(oe);let ae=l[oe]??null;if(!ae||typeof ae.play!=\"function\"||typeof ae.pause!=\"function\")continue;let Te=Q(ae);ie.push({compositionId:oe,timeline:ae,durationSeconds:Te??0})}return ie})(),xe=V=>{for(let q of V){let ie=q.timeline;if(typeof ie.paused==\"function\")try{ie.paused(!1)}catch{}}};if(se.length>0&&xe(se),me){let V=se.length>0?Fe(me,se):[];if((se.length>0||!document.querySelector(\"[data-composition-id]:not([data-composition-id='\"+ne+\"'])\"))&&(b=!0),V.length>0)try{let $=me.time();me.seek($,!1)}catch{}let q=Q(me);if(!ee(q)&&se.length>0){let $=se.map(An=>An.compositionId),oe=O(se),ae=Q(oe);if(oe&&ee(ae))return{timeline:oe,selectedTimelineIds:$,selectedDurationSeconds:ae,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_unusable_fallback\",details:{rootCompositionId:ne,rootDurationSeconds:q,fallbackKind:\"composite_by_root_children\",minCandidateDurationSeconds:M,selectedDurationSeconds:ae,mediaDurationFloorSeconds:f,selectedTimelineIds:$,autoNestedChildren:V}}};let Te=re(f??0,me),Ce=Q(Te);if(Te&&ee(Ce))return{timeline:Te,selectedTimelineIds:[ne],selectedDurationSeconds:Ce,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_unusable_media_floor_fallback\",details:{rootCompositionId:ne,rootDurationSeconds:q,fallbackKind:\"media_duration_floor\",mediaDurationFloorSeconds:f,selectedDurationSeconds:Ce,selectedTimelineIds:[ne],autoNestedChildren:V}}}}if(!ee(q)&&se.length===0){let $=re(f??0,me),oe=Q($);if($&&ee(oe))return{timeline:$,selectedTimelineIds:[ne],selectedDurationSeconds:oe,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_unusable_media_floor_fallback\",details:{rootCompositionId:ne,rootDurationSeconds:q,fallbackKind:\"media_duration_floor\",mediaDurationFloorSeconds:f,selectedDurationSeconds:oe,selectedTimelineIds:[ne]}}}}let ie=J?.getAttribute(\"data-duration\");if(ie){let $=parseFloat(ie);if(ee($)&&ee(q)&&$>=q+.5){let oe=me;if(typeof oe.to==\"function\")try{oe.to({},{duration:0},$)}catch{}let ae=Q(me);if(ee(ae))return{timeline:me,selectedTimelineIds:[ne],selectedDurationSeconds:ae,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_padded_to_declared_duration\",details:{rootCompositionId:ne,rootDurationSeconds:q,rootDeclaredDur:$,newDur:ae}}}}}return{timeline:me,selectedTimelineIds:[ne],selectedDurationSeconds:q,mediaDurationFloorSeconds:f,diagnostics:V.length>0?{code:\"root_timeline_auto_nested_children\",details:{rootCompositionId:ne,selectedDurationSeconds:q,autoNestedChildren:V}}:void 0}}if(se.length>0){let V=se.map($=>$.compositionId),q=O(se),ie=Q(q);if(q)return{timeline:q,selectedTimelineIds:V,selectedDurationSeconds:ie,mediaDurationFloorSeconds:f,diagnostics:{code:\"root_timeline_missing_fallback\",details:{rootCompositionId:ne,fallbackKind:\"composite_by_root_children\",minCandidateDurationSeconds:M,selectedDurationSeconds:ie,mediaDurationFloorSeconds:f,selectedTimelineIds:V}}}}return{timeline:null}},B=()=>{let l=e.capturedTimeline;if(!l||typeof l.time!=\"function\")return;let p=Number(l.time());Number.isFinite(p)&&(e.currentTime=Math.max(0,p))},b=!1,T=()=>{if(!w)return!1;let l=e.capturedTimeline,p=Q(l),f=ee(p);if(l&&f&&b)return!1;let M=ue();return M.timeline?l&&l===M.timeline?(typeof l.timeScale==\"function\"&&l.timeScale(e.playbackRate),!1):(e.capturedTimeline=M.timeline,typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate),M.diagnostics&&fe({source:\"hf-preview\",type:\"diagnostic\",code:M.diagnostics.code,details:M.diagnostics.details}),fe({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_bound\",details:{selectedTimelineIds:M.selectedTimelineIds??[],selectedDurationSeconds:M.selectedDurationSeconds??null,mediaDurationFloorSeconds:M.mediaDurationFloorSeconds??null}}),!0):!1},Y=()=>{let l=g();if(!(l instanceof HTMLElement))return;let p=l.getBoundingClientRect(),f=Number(l.getAttribute(\"data-width\")),M=Number(l.getAttribute(\"data-height\")),F=window.getComputedStyle(l),O=Number.isFinite(f)&&f>0&&Number.isFinite(M)&&M>0,re=p.width<=0||p.height<=0||l.clientWidth<=0||l.clientHeight<=0;!O||!re||c(\"root_stage_layout_zero\",{compositionId:l.getAttribute(\"data-composition-id\")??null,declaredWidth:f,declaredHeight:M,rectWidth:Math.round(p.width),rectHeight:Math.round(p.height),clientWidth:l.clientWidth,clientHeight:l.clientHeight,display:F.display,visibility:F.visibility,overflow:F.overflow},`root-stage-layout-zero:${l.getAttribute(\"data-composition-id\")??\"unknown\"}`)},te=()=>{e.tornDown||(u!=null&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame(()=>{u=null,Y()}))},I=()=>{n=l=>{let p=X(l.error??l.message).slice(0,k);if(!p)return;let f=S(p);fe({source:\"hf-preview\",type:\"diagnostic\",code:f.code,details:{category:f.category,message:p,filename:l.filename||null,line:Number.isFinite(l.lineno)?l.lineno:null,column:Number.isFinite(l.colno)?l.colno:null}})},i=l=>{let p=X(l.reason).slice(0,k);if(!p)return;let f=S(p);fe({source:\"hf-preview\",type:\"diagnostic\",code:`${f.code}_unhandled_rejection`,details:{category:`${f.category}-unhandled-rejection`,message:p}})},window.addEventListener(\"error\",n),window.addEventListener(\"unhandledrejection\",i)},P=()=>{let l=Array.from(document.querySelectorAll(\"img, video, audio, source, link[rel='stylesheet']\"));for(let f of l){let M=()=>{if(!(f instanceof Element))return;let F=f.tagName.toLowerCase(),O=f.getAttribute(\"src\")??f.getAttribute(\"href\")??f.getAttribute(\"poster\")??null,re=F===\"link\"?\"runtime_stylesheet_load_failed\":\"runtime_asset_load_failed\";c(re,{tagName:F,assetUrl:O,currentSrc:(f instanceof HTMLImageElement||f instanceof HTMLMediaElement)&&f.currentSrc||null,readyState:f instanceof HTMLMediaElement?f.readyState:null,networkState:f instanceof HTMLMediaElement?f.networkState:null},`${re}:${F}:${O??\"unknown\"}`)};f.addEventListener(\"error\",M),d(()=>{f.removeEventListener(\"error\",M)})}let p=document.fonts;p&&p.ready.then(()=>{if(e.tornDown)return;let f=Array.from(p).filter(M=>M.status===\"error\").map(M=>M.family).filter(M=>!!M).slice(0,10);f.length!==0&&c(\"runtime_font_load_issue\",{failedFamilies:f,totalFaces:Array.from(p).length},`runtime-font-load-issue:${f.join(\"|\")}`)}).catch(()=>{})},j=(l,p)=>{if(!l.timeline)return!1;let f=e.capturedTimeline;if(f&&f===l.timeline)return!1;let M=Math.max(0,e.currentTime||0),F=e.isPlaying;e.capturedTimeline=l.timeline,typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);try{e.capturedTimeline.pause(),e.capturedTimeline.seek(M,!1),F&&e.capturedTimeline.play()}catch{}return fe({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_loop_guard_rebind\",details:{reason:p,previousTime:M,selectedTimelineIds:l.selectedTimelineIds??[],selectedDurationSeconds:l.selectedDurationSeconds??null,mediaDurationFloorSeconds:l.mediaDurationFloorSeconds??null}}),!0},ce=null,de=!1,Ee=new Set,ge=()=>{e.tornDown||(ce!=null&&window.clearTimeout(ce),ce=window.setTimeout(()=>{if(e.tornDown)return;ce=null;let l=ue();if(!l.timeline||!ee(l.mediaDurationFloorSeconds??null))return;if(!e.capturedTimeline){T()&&(ke(),ye(!0));return}if(de)return;let f=Q(e.capturedTimeline),M=l.selectedDurationSeconds??Q(l.timeline);ee(M)&&(!ee(f)||M>=f+G)&&j(l,\"manual\")&&(de=!0,fe({source:\"hf-preview\",type:\"diagnostic\",code:\"timeline_rebind_after_media_metadata\",details:{previousDurationSeconds:f??null,selectedDurationSeconds:M??null,selectedTimelineIds:l.selectedTimelineIds??[],mediaDurationFloorSeconds:l.mediaDurationFloorSeconds??null}}),ke(),ye(!0))},U))},gn=()=>{for(let l of Ee)l.removeEventListener(\"loadedmetadata\",ge),l.removeEventListener(\"durationchange\",ge);Ee.clear()},Je=()=>{if(e.tornDown)return;let l=Array.from(document.querySelectorAll(\"video, audio\"));for(let p of l)Ee.has(p)||(Ee.add(p),p.addEventListener(\"loadedmetadata\",ge),p.addEventListener(\"durationchange\",ge),p.preload!==\"auto\"&&(p.preload=\"auto\"),p.readyState<HTMLMediaElement.HAVE_FUTURE_DATA&&p.load())},ht=()=>{let l=F=>{let O=F.closest(\"[data-composition-id]\"),re=O?R(O,0):null,Fe=O?_(O,{includeAuthoredTimingAttrs:!0}):null;return{compositionRoot:O,inheritedStart:re,inheritedDuration:Fe}},p=Lt({shouldIncludeElement:F=>F.hasAttribute(\"data-start\")||!!l(F).compositionRoot,resolveStartSeconds:F=>{let O=l(F);return R(F,O.inheritedStart??0)},resolveDurationSeconds:F=>{let O=l(F),re=R(F,O.inheritedStart??0),Fe=Number.parseFloat(F.dataset.playbackStart??F.dataset.mediaStart??\"0\")||0,J=O.inheritedStart!=null&&O.inheritedDuration!=null&&O.inheritedDuration>0?Math.max(0,O.inheritedStart+O.inheritedDuration-re):null,ne=Number.isFinite(F.duration)&&F.duration>Fe?Math.max(0,F.duration-Fe):null;return ne!=null&&J!=null?Math.min(ne,J):ne??J}});Tt({clips:p.mediaClips,timeSeconds:e.currentTime,playing:e.isPlaying,playbackRate:e.playbackRate,outputMuted:e.mediaOutputMuted,userMuted:e.bridgeMuted,onAutoplayBlocked:()=>{e.mediaAutoplayBlockedPosted||(e.mediaAutoplayBlockedPosted=!0,fe({source:\"hf-preview\",type:\"media-autoplay-blocked\"}))}});let f=document.querySelector(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")??null,M=Array.from(document.querySelectorAll(\"[data-start]\"));for(let F of M){if(!(F instanceof HTMLElement))continue;let O=F.tagName.toLowerCase();if(O===\"script\"||O===\"style\"||O===\"link\"||O===\"meta\")continue;if(!F.getAttribute(\"data-composition-id\")){let xe=F.closest(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")??null;if(xe&&xe!==f)continue}let Fe=R(F,0),J=_(F),ne=F.getAttribute(\"data-composition-id\");if(ne){let se=(window.__timelines??{})[ne],xe=null;if(se&&typeof se.duration==\"function\"){let V=Number(se.duration());Number.isFinite(V)&&V>0&&(xe=V)}J!=null&&J>0&&xe!=null?J=Math.min(J,xe):(J==null||J<=0)&&xe!=null&&(J=xe)}let me=J!=null&&J>0?Fe+J:Number.POSITIVE_INFINITY,Xe=e.currentTime>=Fe&&(Number.isFinite(me)?e.currentTime<me:!0);F.style.visibility=Xe?\"visible\":\"hidden\"}},ye=l=>{B();let p=Math.max(0,Math.round((e.currentTime||0)*e.canonicalFps)),f=Date.now();(l||p!==e.bridgeLastPostedFrame||e.isPlaying!==e.bridgeLastPostedPlaying||e.bridgeMuted!==e.bridgeLastPostedMuted||f-e.bridgeLastPostedAt>=e.bridgeMaxPostIntervalMs)&&(e.bridgeLastPostedFrame=p,e.bridgeLastPostedPlaying=e.isPlaying,e.bridgeLastPostedMuted=e.bridgeMuted,e.bridgeLastPostedAt=f,fe({source:\"hf-preview\",type:\"state\",frame:p,isPlaying:e.isPlaying,muted:e.bridgeMuted,playbackRate:e.playbackRate}))},ke=()=>{y(),N(),E();let l=g();if(l){let f=x(l.getAttribute(\"data-width\")),M=x(l.getAttribute(\"data-height\")),F=f?parseInt(f,10):0,O=M?parseInt(M,10):0;F>0&&O>0&&fe({source:\"hf-preview\",type:\"stage-size\",width:F,height:O})}T();let p=Ot({canonicalFps:e.canonicalFps,maxTimelineDurationSeconds:e.maxTimelineDurationSeconds});window.__clipManifest=p,fe(p),te()},Ie=(l,p=0)=>{for(let f of e.deterministicAdapters){try{l===\"discover\"&&f.discover(),l===\"pause\"&&f.pause(),l===\"play\"&&f.play&&f.play()}catch{}if(l===\"discover\")try{f.seek({time:p})}catch{}}};if(w)at();else{let l={injectedStyles:e.injectedCompStyles,injectedScripts:e.injectedCompScripts,parseDimensionPx:x,onDiagnostic:({code:p,details:f})=>{fe({source:\"hf-preview\",type:\"diagnostic\",code:p,details:f})}};Ht(l).then(()=>Wt(l)).finally(()=>{w=!0,Ie(\"discover\",e.currentTime),Je(),P(),at(),ke(),ye(!0)})}let je=wt({postMessage:l=>fe(l)});je.installPickerApi();let gt=l=>{let p=Number(l);!Number.isFinite(p)||p<=0?e.playbackRate=1:e.playbackRate=Math.max(.1,Math.min(5,p)),e.capturedTimeline&&typeof e.capturedTimeline.timeScale==\"function\"&&e.capturedTimeline.timeScale(e.playbackRate);let f=document.querySelectorAll(\"video, audio\");for(let M of f)if(M instanceof HTMLMediaElement)try{M.playbackRate=e.playbackRate}catch{}},le=Rt({getTimeline:()=>e.capturedTimeline,setTimeline:l=>{e.capturedTimeline=l},getTimelineRegistry:()=>window.__timelines??{},getIsPlaying:()=>e.isPlaying,setIsPlaying:l=>{e.isPlaying=l},getPlaybackRate:()=>e.playbackRate,setPlaybackRate:gt,getCanonicalFps:()=>e.canonicalFps,onSyncMedia:(l,p)=>{e.currentTime=Math.max(0,Number(l)||0),e.isPlaying=p,ht()},onStatePost:ye,onDeterministicSeek:l=>{for(let p of e.deterministicAdapters)try{p.seek({time:Number(l)||0})}catch{}},onDeterministicPause:()=>Ie(\"pause\"),onDeterministicPlay:()=>Ie(\"play\"),onRenderFrameSeek:()=>{},onShowNativeVideos:()=>{},getSafeDuration:()=>he(e.capturedTimeline,0)});window.__player=s(le),window.__playerReady=!0,window.__renderReady=!0,Nt(fe),Pe(\"composition_loaded\",{duration:le.getDuration(),compositionId:document.querySelector(\"[data-composition-id]\")?.getAttribute(\"data-composition-id\")??null}),e.controlBridgeHandler=At({onPlay:()=>{le.play(),Pe(\"composition_played\",{time:le.getTime()})},onPause:()=>{le.pause(),Pe(\"composition_paused\",{time:le.getTime()})},onSeek:(l,p)=>{let f=Math.max(0,l)/e.canonicalFps;le.seek(f),Pe(\"composition_seeked\",{time:f})},onSetMuted:l=>{e.bridgeMuted=l;let p=l||e.mediaOutputMuted,f=document.querySelectorAll(\"video, audio\");for(let M of f)M instanceof HTMLMediaElement&&(M.muted=p)},onSetMediaOutputMuted:l=>{e.mediaOutputMuted=l;let p=l||e.bridgeMuted,f=document.querySelectorAll(\"video, audio\");for(let M of f)M instanceof HTMLMediaElement&&(M.muted=p)},onSetPlaybackRate:l=>gt(l),onEnablePickMode:()=>je.enablePickMode(),onDisablePickMode:()=>je.disablePickMode()}),T(),e.capturedTimeline&&(le._timeline=e.capturedTimeline),w&&setTimeout(()=>{let l=e.capturedTimeline;T()&&e.capturedTimeline!==l&&(le._timeline=e.capturedTimeline),Ie(\"discover\",e.currentTime),ke(),ye(!0)},0),e.deterministicAdapters=[kt(),Et({resolveStartSeconds:l=>R(l,0)}),Ct(),Dt(),yt({getTimeline:()=>e.capturedTimeline})],I(),Ie(\"discover\"),Je(),e.timelinePollIntervalId&&clearInterval(e.timelinePollIntervalId);let Qe=0,ze=null,St=0,Ze=!1,Le=0,Ft=()=>{St=Date.now(),Ze=!1,Le=0};e.timelinePollIntervalId=setInterval(()=>{Qe+=1;let p=e.isPlaying&&e.capturedTimeline!=null&&Math.max(0,e.currentTime||0)<L?!1:T();if(e.capturedTimeline&&!le._timeline&&(le._timeline=e.capturedTimeline),(p||Qe%20===0)&&ke(),Qe%10===0&&Je(),B(),e.isPlaying&&e.capturedTimeline){let f=Math.max(0,e.currentTime||0),M=ze,F=he(e.capturedTimeline,0);if(F>0&&f>=F){le.pause(),le.seek(F),ze=F,Le=0,ye(!0);return}if(M!=null&&M>=h&&f<=A?Le+=1:Le=0,!Ze&&Le>=D&&Date.now()-St>C){let re=ue();j(re,\"loop_guard\")&&(Ze=!0,Le=0)}ze=Math.max(0,e.currentTime||0)}else ze=Math.max(0,e.currentTime||0);e.isPlaying&&ht(),ye(!1)},50),ke(),ye(!0);let Sn=le.seek;le.seek=l=>{Ft(),Sn(l)};let Fn=le.renderSeek;le.renderSeek=l=>{Ft(),Fn(l)};let Ye=()=>{if(!e.tornDown){e.tornDown=!0,e.timelinePollIntervalId&&(clearInterval(e.timelinePollIntervalId),e.timelinePollIntervalId=null),ce!=null&&(window.clearTimeout(ce),ce=null),u!=null&&(window.cancelAnimationFrame(u),u=null),gn(),e.controlBridgeHandler&&(window.removeEventListener(\"message\",e.controlBridgeHandler),e.controlBridgeHandler=null),n&&(window.removeEventListener(\"error\",n),n=null),i&&(window.removeEventListener(\"unhandledrejection\",i),i=null),e.beforeUnloadHandler&&(window.removeEventListener(\"beforeunload\",e.beforeUnloadHandler),e.beforeUnloadHandler=null),je.disablePickMode();for(let l of e.deterministicAdapters)if(!(!l||typeof l.revert!=\"function\"))try{l.revert()}catch{}e.deterministicAdapters=[];for(let l of r.splice(0))try{l()}catch{}for(let l of e.injectedCompStyles)try{l.remove()}catch{}e.injectedCompStyles=[];for(let l of e.injectedCompScripts)try{l.remove()}catch{}e.injectedCompScripts=[],e.capturedTimeline=null,t.__hfRuntimeTeardown===Ye&&(t.__hfRuntimeTeardown=null)}};t.__hfRuntimeTeardown=Ye,e.beforeUnloadHandler=Ye,window.addEventListener(\"beforeunload\",e.beforeUnloadHandler)}var Gt=[\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"S\",\"B\",\"S\",\"WS\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"B\",\"B\",\"S\",\"WS\",\"ON\",\"ON\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ES\",\"CS\",\"ES\",\"CS\",\"CS\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"EN\",\"CS\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"B\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"BN\",\"CS\",\"ON\",\"ET\",\"ET\",\"ET\",\"ET\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"ON\",\"ON\",\"BN\",\"ON\",\"ON\",\"ET\",\"ET\",\"EN\",\"EN\",\"ON\",\"L\",\"ON\",\"ON\",\"ON\",\"EN\",\"L\",\"ON\",\"ON\",\"ON\",\"ON\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"ON\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\",\"L\"],lt=[[697,698,\"ON\"],[706,719,\"ON\"],[722,735,\"ON\"],[741,749,\"ON\"],[751,767,\"ON\"],[768,879,\"NSM\"],[884,885,\"ON\"],[894,894,\"ON\"],[900,901,\"ON\"],[903,903,\"ON\"],[1014,1014,\"ON\"],[1155,1161,\"NSM\"],[1418,1418,\"ON\"],[1421,1422,\"ON\"],[1423,1423,\"ET\"],[1424,1424,\"R\"],[1425,1469,\"NSM\"],[1470,1470,\"R\"],[1471,1471,\"NSM\"],[1472,1472,\"R\"],[1473,1474,\"NSM\"],[1475,1475,\"R\"],[1476,1477,\"NSM\"],[1478,1478,\"R\"],[1479,1479,\"NSM\"],[1480,1535,\"R\"],[1536,1541,\"AN\"],[1542,1543,\"ON\"],[1544,1544,\"AL\"],[1545,1546,\"ET\"],[1547,1547,\"AL\"],[1548,1548,\"CS\"],[1549,1549,\"AL\"],[1550,1551,\"ON\"],[1552,1562,\"NSM\"],[1563,1610,\"AL\"],[1611,1631,\"NSM\"],[1632,1641,\"AN\"],[1642,1642,\"ET\"],[1643,1644,\"AN\"],[1645,1647,\"AL\"],[1648,1648,\"NSM\"],[1649,1749,\"AL\"],[1750,1756,\"NSM\"],[1757,1757,\"AN\"],[1758,1758,\"ON\"],[1759,1764,\"NSM\"],[1765,1766,\"AL\"],[1767,1768,\"NSM\"],[1769,1769,\"ON\"],[1770,1773,\"NSM\"],[1774,1775,\"AL\"],[1776,1785,\"EN\"],[1786,1808,\"AL\"],[1809,1809,\"NSM\"],[1810,1839,\"AL\"],[1840,1866,\"NSM\"],[1867,1957,\"AL\"],[1958,1968,\"NSM\"],[1969,1983,\"AL\"],[1984,2026,\"R\"],[2027,2035,\"NSM\"],[2036,2037,\"R\"],[2038,2041,\"ON\"],[2042,2044,\"R\"],[2045,2045,\"NSM\"],[2046,2069,\"R\"],[2070,2073,\"NSM\"],[2074,2074,\"R\"],[2075,2083,\"NSM\"],[2084,2084,\"R\"],[2085,2087,\"NSM\"],[2088,2088,\"R\"],[2089,2093,\"NSM\"],[2094,2136,\"R\"],[2137,2139,\"NSM\"],[2140,2143,\"R\"],[2144,2191,\"AL\"],[2192,2193,\"AN\"],[2194,2198,\"AL\"],[2199,2207,\"NSM\"],[2208,2249,\"AL\"],[2250,2273,\"NSM\"],[2274,2274,\"AN\"],[2275,2306,\"NSM\"],[2362,2362,\"NSM\"],[2364,2364,\"NSM\"],[2369,2376,\"NSM\"],[2381,2381,\"NSM\"],[2385,2391,\"NSM\"],[2402,2403,\"NSM\"],[2433,2433,\"NSM\"],[2492,2492,\"NSM\"],[2497,2500,\"NSM\"],[2509,2509,\"NSM\"],[2530,2531,\"NSM\"],[2546,2547,\"ET\"],[2555,2555,\"ET\"],[2558,2558,\"NSM\"],[2561,2562,\"NSM\"],[2620,2620,\"NSM\"],[2625,2626,\"NSM\"],[2631,2632,\"NSM\"],[2635,2637,\"NSM\"],[2641,2641,\"NSM\"],[2672,2673,\"NSM\"],[2677,2677,\"NSM\"],[2689,2690,\"NSM\"],[2748,2748,\"NSM\"],[2753,2757,\"NSM\"],[2759,2760,\"NSM\"],[2765,2765,\"NSM\"],[2786,2787,\"NSM\"],[2801,2801,\"ET\"],[2810,2815,\"NSM\"],[2817,2817,\"NSM\"],[2876,2876,\"NSM\"],[2879,2879,\"NSM\"],[2881,2884,\"NSM\"],[2893,2893,\"NSM\"],[2901,2902,\"NSM\"],[2914,2915,\"NSM\"],[2946,2946,\"NSM\"],[3008,3008,\"NSM\"],[3021,3021,\"NSM\"],[3059,3064,\"ON\"],[3065,3065,\"ET\"],[3066,3066,\"ON\"],[3072,3072,\"NSM\"],[3076,3076,\"NSM\"],[3132,3132,\"NSM\"],[3134,3136,\"NSM\"],[3142,3144,\"NSM\"],[3146,3149,\"NSM\"],[3157,3158,\"NSM\"],[3170,3171,\"NSM\"],[3192,3198,\"ON\"],[3201,3201,\"NSM\"],[3260,3260,\"NSM\"],[3276,3277,\"NSM\"],[3298,3299,\"NSM\"],[3328,3329,\"NSM\"],[3387,3388,\"NSM\"],[3393,3396,\"NSM\"],[3405,3405,\"NSM\"],[3426,3427,\"NSM\"],[3457,3457,\"NSM\"],[3530,3530,\"NSM\"],[3538,3540,\"NSM\"],[3542,3542,\"NSM\"],[3633,3633,\"NSM\"],[3636,3642,\"NSM\"],[3647,3647,\"ET\"],[3655,3662,\"NSM\"],[3761,3761,\"NSM\"],[3764,3772,\"NSM\"],[3784,3790,\"NSM\"],[3864,3865,\"NSM\"],[3893,3893,\"NSM\"],[3895,3895,\"NSM\"],[3897,3897,\"NSM\"],[3898,3901,\"ON\"],[3953,3966,\"NSM\"],[3968,3972,\"NSM\"],[3974,3975,\"NSM\"],[3981,3991,\"NSM\"],[3993,4028,\"NSM\"],[4038,4038,\"NSM\"],[4141,4144,\"NSM\"],[4146,4151,\"NSM\"],[4153,4154,\"NSM\"],[4157,4158,\"NSM\"],[4184,4185,\"NSM\"],[4190,4192,\"NSM\"],[4209,4212,\"NSM\"],[4226,4226,\"NSM\"],[4229,4230,\"NSM\"],[4237,4237,\"NSM\"],[4253,4253,\"NSM\"],[4957,4959,\"NSM\"],[5008,5017,\"ON\"],[5120,5120,\"ON\"],[5760,5760,\"WS\"],[5787,5788,\"ON\"],[5906,5908,\"NSM\"],[5938,5939,\"NSM\"],[5970,5971,\"NSM\"],[6002,6003,\"NSM\"],[6068,6069,\"NSM\"],[6071,6077,\"NSM\"],[6086,6086,\"NSM\"],[6089,6099,\"NSM\"],[6107,6107,\"ET\"],[6109,6109,\"NSM\"],[6128,6137,\"ON\"],[6144,6154,\"ON\"],[6155,6157,\"NSM\"],[6158,6158,\"BN\"],[6159,6159,\"NSM\"],[6277,6278,\"NSM\"],[6313,6313,\"NSM\"],[6432,6434,\"NSM\"],[6439,6440,\"NSM\"],[6450,6450,\"NSM\"],[6457,6459,\"NSM\"],[6464,6464,\"ON\"],[6468,6469,\"ON\"],[6622,6655,\"ON\"],[6679,6680,\"NSM\"],[6683,6683,\"NSM\"],[6742,6742,\"NSM\"],[6744,6750,\"NSM\"],[6752,6752,\"NSM\"],[6754,6754,\"NSM\"],[6757,6764,\"NSM\"],[6771,6780,\"NSM\"],[6783,6783,\"NSM\"],[6832,6877,\"NSM\"],[6880,6891,\"NSM\"],[6912,6915,\"NSM\"],[6964,6964,\"NSM\"],[6966,6970,\"NSM\"],[6972,6972,\"NSM\"],[6978,6978,\"NSM\"],[7019,7027,\"NSM\"],[7040,7041,\"NSM\"],[7074,7077,\"NSM\"],[7080,7081,\"NSM\"],[7083,7085,\"NSM\"],[7142,7142,\"NSM\"],[7144,7145,\"NSM\"],[7149,7149,\"NSM\"],[7151,7153,\"NSM\"],[7212,7219,\"NSM\"],[7222,7223,\"NSM\"],[7376,7378,\"NSM\"],[7380,7392,\"NSM\"],[7394,7400,\"NSM\"],[7405,7405,\"NSM\"],[7412,7412,\"NSM\"],[7416,7417,\"NSM\"],[7616,7679,\"NSM\"],[8125,8125,\"ON\"],[8127,8129,\"ON\"],[8141,8143,\"ON\"],[8157,8159,\"ON\"],[8173,8175,\"ON\"],[8189,8190,\"ON\"],[8192,8202,\"WS\"],[8203,8205,\"BN\"],[8207,8207,\"R\"],[8208,8231,\"ON\"],[8232,8232,\"WS\"],[8233,8233,\"B\"],[8234,8238,\"BN\"],[8239,8239,\"CS\"],[8240,8244,\"ET\"],[8245,8259,\"ON\"],[8260,8260,\"CS\"],[8261,8286,\"ON\"],[8287,8287,\"WS\"],[8288,8303,\"BN\"],[8304,8304,\"EN\"],[8308,8313,\"EN\"],[8314,8315,\"ES\"],[8316,8318,\"ON\"],[8320,8329,\"EN\"],[8330,8331,\"ES\"],[8332,8334,\"ON\"],[8352,8399,\"ET\"],[8400,8432,\"NSM\"],[8448,8449,\"ON\"],[8451,8454,\"ON\"],[8456,8457,\"ON\"],[8468,8468,\"ON\"],[8470,8472,\"ON\"],[8478,8483,\"ON\"],[8485,8485,\"ON\"],[8487,8487,\"ON\"],[8489,8489,\"ON\"],[8494,8494,\"ET\"],[8506,8507,\"ON\"],[8512,8516,\"ON\"],[8522,8525,\"ON\"],[8528,8543,\"ON\"],[8585,8587,\"ON\"],[8592,8721,\"ON\"],[8722,8722,\"ES\"],[8723,8723,\"ET\"],[8724,9013,\"ON\"],[9083,9108,\"ON\"],[9110,9257,\"ON\"],[9280,9290,\"ON\"],[9312,9351,\"ON\"],[9352,9371,\"EN\"],[9450,9899,\"ON\"],[9901,10239,\"ON\"],[10496,11123,\"ON\"],[11126,11263,\"ON\"],[11493,11498,\"ON\"],[11503,11505,\"NSM\"],[11513,11519,\"ON\"],[11647,11647,\"NSM\"],[11744,11775,\"NSM\"],[11776,11869,\"ON\"],[11904,11929,\"ON\"],[11931,12019,\"ON\"],[12032,12245,\"ON\"],[12272,12287,\"ON\"],[12288,12288,\"WS\"],[12289,12292,\"ON\"],[12296,12320,\"ON\"],[12330,12333,\"NSM\"],[12336,12336,\"ON\"],[12342,12343,\"ON\"],[12349,12351,\"ON\"],[12441,12442,\"NSM\"],[12443,12444,\"ON\"],[12448,12448,\"ON\"],[12539,12539,\"ON\"],[12736,12773,\"ON\"],[12783,12783,\"ON\"],[12829,12830,\"ON\"],[12880,12895,\"ON\"],[12924,12926,\"ON\"],[12977,12991,\"ON\"],[13004,13007,\"ON\"],[13175,13178,\"ON\"],[13278,13279,\"ON\"],[13311,13311,\"ON\"],[19904,19967,\"ON\"],[42128,42182,\"ON\"],[42509,42511,\"ON\"],[42607,42610,\"NSM\"],[42611,42611,\"ON\"],[42612,42621,\"NSM\"],[42622,42623,\"ON\"],[42654,42655,\"NSM\"],[42736,42737,\"NSM\"],[42752,42785,\"ON\"],[42888,42888,\"ON\"],[43010,43010,\"NSM\"],[43014,43014,\"NSM\"],[43019,43019,\"NSM\"],[43045,43046,\"NSM\"],[43048,43051,\"ON\"],[43052,43052,\"NSM\"],[43064,43065,\"ET\"],[43124,43127,\"ON\"],[43204,43205,\"NSM\"],[43232,43249,\"NSM\"],[43263,43263,\"NSM\"],[43302,43309,\"NSM\"],[43335,43345,\"NSM\"],[43392,43394,\"NSM\"],[43443,43443,\"NSM\"],[43446,43449,\"NSM\"],[43452,43453,\"NSM\"],[43493,43493,\"NSM\"],[43561,43566,\"NSM\"],[43569,43570,\"NSM\"],[43573,43574,\"NSM\"],[43587,43587,\"NSM\"],[43596,43596,\"NSM\"],[43644,43644,\"NSM\"],[43696,43696,\"NSM\"],[43698,43700,\"NSM\"],[43703,43704,\"NSM\"],[43710,43711,\"NSM\"],[43713,43713,\"NSM\"],[43756,43757,\"NSM\"],[43766,43766,\"NSM\"],[43882,43883,\"ON\"],[44005,44005,\"NSM\"],[44008,44008,\"NSM\"],[44013,44013,\"NSM\"],[64285,64285,\"R\"],[64286,64286,\"NSM\"],[64287,64296,\"R\"],[64297,64297,\"ES\"],[64298,64335,\"R\"],[64336,64450,\"AL\"],[64451,64466,\"ON\"],[64467,64829,\"AL\"],[64830,64847,\"ON\"],[64848,64911,\"AL\"],[64912,64913,\"ON\"],[64914,64967,\"AL\"],[64968,64975,\"ON\"],[64976,65007,\"BN\"],[65008,65020,\"AL\"],[65021,65023,\"ON\"],[65024,65039,\"NSM\"],[65040,65049,\"ON\"],[65056,65071,\"NSM\"],[65072,65103,\"ON\"],[65104,65104,\"CS\"],[65105,65105,\"ON\"],[65106,65106,\"CS\"],[65108,65108,\"ON\"],[65109,65109,\"CS\"],[65110,65118,\"ON\"],[65119,65119,\"ET\"],[65120,65121,\"ON\"],[65122,65123,\"ES\"],[65124,65126,\"ON\"],[65128,65128,\"ON\"],[65129,65130,\"ET\"],[65131,65131,\"ON\"],[65136,65278,\"AL\"],[65279,65279,\"BN\"],[65281,65282,\"ON\"],[65283,65285,\"ET\"],[65286,65290,\"ON\"],[65291,65291,\"ES\"],[65292,65292,\"CS\"],[65293,65293,\"ES\"],[65294,65295,\"CS\"],[65296,65305,\"EN\"],[65306,65306,\"CS\"],[65307,65312,\"ON\"],[65339,65344,\"ON\"],[65371,65381,\"ON\"],[65504,65505,\"ET\"],[65506,65508,\"ON\"],[65509,65510,\"ET\"],[65512,65518,\"ON\"],[65520,65528,\"BN\"],[65529,65533,\"ON\"],[65534,65535,\"BN\"],[65793,65793,\"ON\"],[65856,65932,\"ON\"],[65936,65948,\"ON\"],[65952,65952,\"ON\"],[66045,66045,\"NSM\"],[66272,66272,\"NSM\"],[66273,66299,\"EN\"],[66422,66426,\"NSM\"],[67584,67870,\"R\"],[67871,67871,\"ON\"],[67872,68096,\"R\"],[68097,68099,\"NSM\"],[68100,68100,\"R\"],[68101,68102,\"NSM\"],[68103,68107,\"R\"],[68108,68111,\"NSM\"],[68112,68151,\"R\"],[68152,68154,\"NSM\"],[68155,68158,\"R\"],[68159,68159,\"NSM\"],[68160,68324,\"R\"],[68325,68326,\"NSM\"],[68327,68408,\"R\"],[68409,68415,\"ON\"],[68416,68863,\"R\"],[68864,68899,\"AL\"],[68900,68903,\"NSM\"],[68904,68911,\"AL\"],[68912,68921,\"AN\"],[68922,68927,\"AL\"],[68928,68937,\"AN\"],[68938,68968,\"R\"],[68969,68973,\"NSM\"],[68974,68974,\"ON\"],[68975,69215,\"R\"],[69216,69246,\"AN\"],[69247,69290,\"R\"],[69291,69292,\"NSM\"],[69293,69311,\"R\"],[69312,69327,\"AL\"],[69328,69336,\"ON\"],[69337,69369,\"AL\"],[69370,69375,\"NSM\"],[69376,69423,\"R\"],[69424,69445,\"AL\"],[69446,69456,\"NSM\"],[69457,69487,\"AL\"],[69488,69505,\"R\"],[69506,69509,\"NSM\"],[69510,69631,\"R\"],[69633,69633,\"NSM\"],[69688,69702,\"NSM\"],[69714,69733,\"ON\"],[69744,69744,\"NSM\"],[69747,69748,\"NSM\"],[69759,69761,\"NSM\"],[69811,69814,\"NSM\"],[69817,69818,\"NSM\"],[69826,69826,\"NSM\"],[69888,69890,\"NSM\"],[69927,69931,\"NSM\"],[69933,69940,\"NSM\"],[70003,70003,\"NSM\"],[70016,70017,\"NSM\"],[70070,70078,\"NSM\"],[70089,70092,\"NSM\"],[70095,70095,\"NSM\"],[70191,70193,\"NSM\"],[70196,70196,\"NSM\"],[70198,70199,\"NSM\"],[70206,70206,\"NSM\"],[70209,70209,\"NSM\"],[70367,70367,\"NSM\"],[70371,70378,\"NSM\"],[70400,70401,\"NSM\"],[70459,70460,\"NSM\"],[70464,70464,\"NSM\"],[70502,70508,\"NSM\"],[70512,70516,\"NSM\"],[70587,70592,\"NSM\"],[70606,70606,\"NSM\"],[70608,70608,\"NSM\"],[70610,70610,\"NSM\"],[70625,70626,\"NSM\"],[70712,70719,\"NSM\"],[70722,70724,\"NSM\"],[70726,70726,\"NSM\"],[70750,70750,\"NSM\"],[70835,70840,\"NSM\"],[70842,70842,\"NSM\"],[70847,70848,\"NSM\"],[70850,70851,\"NSM\"],[71090,71093,\"NSM\"],[71100,71101,\"NSM\"],[71103,71104,\"NSM\"],[71132,71133,\"NSM\"],[71219,71226,\"NSM\"],[71229,71229,\"NSM\"],[71231,71232,\"NSM\"],[71264,71276,\"ON\"],[71339,71339,\"NSM\"],[71341,71341,\"NSM\"],[71344,71349,\"NSM\"],[71351,71351,\"NSM\"],[71453,71453,\"NSM\"],[71455,71455,\"NSM\"],[71458,71461,\"NSM\"],[71463,71467,\"NSM\"],[71727,71735,\"NSM\"],[71737,71738,\"NSM\"],[71995,71996,\"NSM\"],[71998,71998,\"NSM\"],[72003,72003,\"NSM\"],[72148,72151,\"NSM\"],[72154,72155,\"NSM\"],[72160,72160,\"NSM\"],[72193,72198,\"NSM\"],[72201,72202,\"NSM\"],[72243,72248,\"NSM\"],[72251,72254,\"NSM\"],[72263,72263,\"NSM\"],[72273,72278,\"NSM\"],[72281,72283,\"NSM\"],[72330,72342,\"NSM\"],[72344,72345,\"NSM\"],[72544,72544,\"NSM\"],[72546,72548,\"NSM\"],[72550,72550,\"NSM\"],[72752,72758,\"NSM\"],[72760,72765,\"NSM\"],[72850,72871,\"NSM\"],[72874,72880,\"NSM\"],[72882,72883,\"NSM\"],[72885,72886,\"NSM\"],[73009,73014,\"NSM\"],[73018,73018,\"NSM\"],[73020,73021,\"NSM\"],[73023,73029,\"NSM\"],[73031,73031,\"NSM\"],[73104,73105,\"NSM\"],[73109,73109,\"NSM\"],[73111,73111,\"NSM\"],[73459,73460,\"NSM\"],[73472,73473,\"NSM\"],[73526,73530,\"NSM\"],[73536,73536,\"NSM\"],[73538,73538,\"NSM\"],[73562,73562,\"NSM\"],[73685,73692,\"ON\"],[73693,73696,\"ET\"],[73697,73713,\"ON\"],[78912,78912,\"NSM\"],[78919,78933,\"NSM\"],[90398,90409,\"NSM\"],[90413,90415,\"NSM\"],[92912,92916,\"NSM\"],[92976,92982,\"NSM\"],[94031,94031,\"NSM\"],[94095,94098,\"NSM\"],[94178,94178,\"ON\"],[94180,94180,\"NSM\"],[113821,113822,\"NSM\"],[113824,113827,\"BN\"],[117760,117973,\"ON\"],[118e3,118009,\"EN\"],[118010,118012,\"ON\"],[118016,118451,\"ON\"],[118458,118480,\"ON\"],[118496,118512,\"ON\"],[118528,118573,\"NSM\"],[118576,118598,\"NSM\"],[119143,119145,\"NSM\"],[119155,119162,\"BN\"],[119163,119170,\"NSM\"],[119173,119179,\"NSM\"],[119210,119213,\"NSM\"],[119273,119274,\"ON\"],[119296,119361,\"ON\"],[119362,119364,\"NSM\"],[119365,119365,\"ON\"],[119552,119638,\"ON\"],[120513,120513,\"ON\"],[120539,120539,\"ON\"],[120571,120571,\"ON\"],[120597,120597,\"ON\"],[120629,120629,\"ON\"],[120655,120655,\"ON\"],[120687,120687,\"ON\"],[120713,120713,\"ON\"],[120745,120745,\"ON\"],[120771,120771,\"ON\"],[120782,120831,\"EN\"],[121344,121398,\"NSM\"],[121403,121452,\"NSM\"],[121461,121461,\"NSM\"],[121476,121476,\"NSM\"],[121499,121503,\"NSM\"],[121505,121519,\"NSM\"],[122880,122886,\"NSM\"],[122888,122904,\"NSM\"],[122907,122913,\"NSM\"],[122915,122916,\"NSM\"],[122918,122922,\"NSM\"],[123023,123023,\"NSM\"],[123184,123190,\"NSM\"],[123566,123566,\"NSM\"],[123628,123631,\"NSM\"],[123647,123647,\"ET\"],[124140,124143,\"NSM\"],[124398,124399,\"NSM\"],[124643,124643,\"NSM\"],[124646,124646,\"NSM\"],[124654,124655,\"NSM\"],[124661,124661,\"NSM\"],[124928,125135,\"R\"],[125136,125142,\"NSM\"],[125143,125251,\"R\"],[125252,125258,\"NSM\"],[125259,126063,\"R\"],[126064,126143,\"AL\"],[126144,126207,\"R\"],[126208,126287,\"AL\"],[126288,126463,\"R\"],[126464,126703,\"AL\"],[126704,126705,\"ON\"],[126706,126719,\"AL\"],[126720,126975,\"R\"],[126976,127019,\"ON\"],[127024,127123,\"ON\"],[127136,127150,\"ON\"],[127153,127167,\"ON\"],[127169,127183,\"ON\"],[127185,127221,\"ON\"],[127232,127242,\"EN\"],[127243,127247,\"ON\"],[127279,127279,\"ON\"],[127338,127343,\"ON\"],[127405,127405,\"ON\"],[127584,127589,\"ON\"],[127744,128728,\"ON\"],[128732,128748,\"ON\"],[128752,128764,\"ON\"],[128768,128985,\"ON\"],[128992,129003,\"ON\"],[129008,129008,\"ON\"],[129024,129035,\"ON\"],[129040,129095,\"ON\"],[129104,129113,\"ON\"],[129120,129159,\"ON\"],[129168,129197,\"ON\"],[129200,129211,\"ON\"],[129216,129217,\"ON\"],[129232,129240,\"ON\"],[129280,129623,\"ON\"],[129632,129645,\"ON\"],[129648,129660,\"ON\"],[129664,129674,\"ON\"],[129678,129734,\"ON\"],[129736,129736,\"ON\"],[129741,129756,\"ON\"],[129759,129770,\"ON\"],[129775,129784,\"ON\"],[129792,129938,\"ON\"],[129940,130031,\"ON\"],[130032,130041,\"EN\"],[130042,130042,\"ON\"],[131070,131071,\"BN\"],[196606,196607,\"BN\"],[262142,262143,\"BN\"],[327678,327679,\"BN\"],[393214,393215,\"BN\"],[458750,458751,\"BN\"],[524286,524287,\"BN\"],[589822,589823,\"BN\"],[655358,655359,\"BN\"],[720894,720895,\"BN\"],[786430,786431,\"BN\"],[851966,851967,\"BN\"],[917502,917759,\"BN\"],[917760,917999,\"NSM\"],[918e3,921599,\"BN\"],[983038,983039,\"BN\"],[1048574,1048575,\"BN\"],[1114110,1114111,\"BN\"]];function _n(e){if(e<=255)return Gt[e];let t=0,n=lt.length-1;for(;t<=n;){let i=t+n>>1,r=lt[i];if(e<r[0]){n=i-1;continue}if(e>r[1]){t=i+1;continue}return r[2]}return\"L\"}function Wn(e){let t=e.length;if(t===0)return null;let n=new Array(t),i=!1;for(let s=0;s<t;){let a=e.charCodeAt(s),m=a,h=1;if(a>=55296&&a<=56319&&s+1<t){let C=e.charCodeAt(s+1);C>=56320&&C<=57343&&(m=(a-55296<<10)+(C-56320)+65536,h=2)}let A=_n(m);(A===\"R\"||A===\"AL\"||A===\"AN\")&&(i=!0);for(let C=0;C<h;C++)n[s+C]=A;s+=h}if(!i)return null;let r=0;for(let s=0;s<t;s++){let a=n[s];if(a===\"L\"){r=0;break}if(a===\"R\"||a===\"AL\"){r=1;break}}let o=new Int8Array(t);for(let s=0;s<t;s++)o[s]=r;let u=r&1?\"R\":\"L\",d=u,c=d;for(let s=0;s<t;s++)n[s]===\"NSM\"?n[s]=c:c=n[s];c=d;for(let s=0;s<t;s++){let a=n[s];a===\"EN\"?n[s]=c===\"AL\"?\"AN\":\"EN\":(a===\"R\"||a===\"L\"||a===\"AL\")&&(c=a)}for(let s=0;s<t;s++)n[s]===\"AL\"&&(n[s]=\"R\");for(let s=1;s<t-1;s++)n[s]===\"ES\"&&n[s-1]===\"EN\"&&n[s+1]===\"EN\"&&(n[s]=\"EN\"),n[s]===\"CS\"&&(n[s-1]===\"EN\"||n[s-1]===\"AN\")&&n[s+1]===n[s-1]&&(n[s]=n[s-1]);for(let s=0;s<t;s++){if(n[s]!==\"EN\")continue;let a;for(a=s-1;a>=0&&n[a]===\"ET\";a--)n[a]=\"EN\";for(a=s+1;a<t&&n[a]===\"ET\";a++)n[a]=\"EN\"}for(let s=0;s<t;s++){let a=n[s];(a===\"WS\"||a===\"ES\"||a===\"ET\"||a===\"CS\")&&(n[s]=\"ON\")}c=d;for(let s=0;s<t;s++){let a=n[s];a===\"EN\"?n[s]=c===\"L\"?\"L\":\"EN\":(a===\"R\"||a===\"L\")&&(c=a)}for(let s=0;s<t;s++){if(n[s]!==\"ON\")continue;let a=s+1;for(;a<t&&n[a]===\"ON\";)a++;let m=s>0?n[s-1]:d,h=a<t?n[a]:d,A=m!==\"L\"?\"R\":\"L\";if(A===(h!==\"L\"?\"R\":\"L\"))for(let D=s;D<a;D++)n[D]=A;s=a-1}for(let s=0;s<t;s++)n[s]===\"ON\"&&(n[s]=u);for(let s=0;s<t;s++){let a=n[s];(o[s]&1)===0?a===\"R\"?o[s]++:(a===\"AN\"||a===\"EN\")&&(o[s]+=2):(a===\"L\"||a===\"AN\"||a===\"EN\")&&o[s]++}return o}function qt(e,t){let n=Wn(e);if(n===null)return null;let i=new Int8Array(t.length);for(let r=0;r<t.length;r++)i[r]=n[t[r]];return i}var Hn=/[ \\t\\n\\r\\f]+/g,jn=/[\\t\\n\\r\\f]| {2,}|^ | $/;function zn(e){let t=e??\"normal\";return t===\"pre-wrap\"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Un(e){if(!jn.test(e))return e;let t=e.replace(Hn,\" \");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Gn(e){return/[\\r\\f]/.test(e)?e.replace(/\\r\\n/g,`\n`).replace(/[\\r\\f]/g,`\n`):e.replace(/\\r\\n/g,`\n`)}var ut=null,qn;function $n(){return ut===null&&(ut=new Intl.Segmenter(qn,{granularity:\"word\"})),ut}var Kn=/\\p{Script=Arabic}/u,Ge=/\\p{M}/u,Xt=/\\p{Nd}/u;function $t(e){return Kn.test(e)}function Kt(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=44032&&e<=55215||e>=65280&&e<=65519}function Ae(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let i=e.charCodeAt(t+1);if(i>=56320&&i<=57343){let r=(n-55296<<10)+(i-56320)+65536;if(Kt(r))return!0;t++;continue}}if(Kt(n))return!0}}return!1}function Vn(e){let t=Ke(e);return t!==null&&($e.has(t)||be.has(t))}var Jn=new Set([\"\\xA0\",\"\\u202F\",\"\\u2060\",\"\\uFEFF\"]);function Qn(e){return Ae(e)}function Zn(e){let t=Ke(e);return t!==null&&Jn.has(t)}function qe(e){return!Vn(e)&&!Zn(e)}var $e=new Set([\"\\uFF0C\",\"\\uFF0E\",\"\\uFF01\",\"\\uFF1A\",\"\\uFF1B\",\"\\uFF1F\",\"\\u3001\",\"\\u3002\",\"\\u30FB\",\"\\uFF09\",\"\\u3015\",\"\\u3009\",\"\\u300B\",\"\\u300D\",\"\\u300F\",\"\\u3011\",\"\\u3017\",\"\\u3019\",\"\\u301B\",\"\\u30FC\",\"\\u3005\",\"\\u303B\",\"\\u309D\",\"\\u309E\",\"\\u30FD\",\"\\u30FE\"]),He=new Set(['\"',\"(\",\"[\",\"{\",\"\\u201C\",\"\\u2018\",\"\\xAB\",\"\\u2039\",\"\\uFF08\",\"\\u3014\",\"\\u3008\",\"\\u300A\",\"\\u300C\",\"\\u300E\",\"\\u3010\",\"\\u3016\",\"\\u3018\",\"\\u301A\"]),dt=new Set([\"'\",\"\\u2019\"]),be=new Set([\".\",\",\",\"!\",\"?\",\":\",\";\",\"\\u060C\",\"\\u061B\",\"\\u061F\",\"\\u0964\",\"\\u0965\",\"\\u104A\",\"\\u104B\",\"\\u104C\",\"\\u104D\",\"\\u104F\",\")\",\"]\",\"}\",\"%\",'\"',\"\\u201D\",\"\\u2019\",\"\\xBB\",\"\\u203A\",\"\\u2026\"]),Yn=new Set([\":\",\".\",\"\\u060C\",\"\\u061B\"]),Xn=new Set([\"\\u104F\"]),ei=new Set([\"\\u201D\",\"\\u2019\",\"\\xBB\",\"\\u203A\",\"\\u300D\",\"\\u300F\",\"\\u3011\",\"\\u300B\",\"\\u3009\",\"\\u3015\",\"\\uFF09\"]);function ti(e){if(mt(e))return!0;let t=!1;for(let n of e){if(be.has(n)){t=!0;continue}if(!(t&&Ge.test(n)))return!1}return t}function ni(e){for(let t of e)if(!$e.has(t)&&!be.has(t))return!1;return e.length>0}function ii(e){if(mt(e))return!0;for(let t of e)if(!He.has(t)&&!dt.has(t)&&!Ge.test(t))return!1;return e.length>0}function mt(e){let t=!1;for(let n of e)if(!(n===\"\\\\\"||Ge.test(n))){if(He.has(n)||be.has(n)||dt.has(n)){t=!0;continue}return!1}return t}function en(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let i=e.charCodeAt(n);if(i<56320||i>57343)return n;let r=n-1;if(r<0)return n;let o=e.charCodeAt(r);return o>=55296&&o<=56319?r:n}function Ke(e){if(e.length===0)return null;let t=en(e,e.length);return e.slice(t)}function oi(e){let t=Array.from(e),n=t.length;for(;n>0;){let i=t[n-1];if(Ge.test(i)){n--;continue}if(He.has(i)||dt.has(i)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(\"\"),tail:t.slice(n).join(\"\")}}function ri(e,t,n){return n===\"text\"&&!t&&e.length===1&&e!==\"-\"&&e!==\"\\u2014\"?e:null}function Vt(e,t,n,i){let r=t[i],o=e[i];if(r==null)return o;let u=n[i];if(o.length===u)return o;let d=r.repeat(u);return e[i]=d,d}function Jt(e,t){return e&&t!==null&&Yn.has(t)}function si(e){let t=Ke(e);return t!==null&&Xn.has(t)}function ai(e){if(e.length<2||e[0]!==\" \")return null;let t=e.slice(1);return/^\\p{M}+$/u.test(t)?{space:\" \",marks:t}:null}function Ve(e){let t=e.length;for(;t>0;){let n=en(e,t),i=e.slice(n,t);if(ei.has(i))return!0;if(!be.has(i))return!1;t=n}return!1}function li(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===\" \")return\"preserved-space\";if(e===\"\t\")return\"tab\";if(t.preserveHardBreaks&&e===`\n`)return\"hard-break\"}return e===\" \"?\"space\":e===\"\\xA0\"||e===\"\\u202F\"||e===\"\\u2060\"||e===\"\\uFEFF\"?\"glue\":e===\"\\u200B\"?\"zero-width-break\":e===\"\\xAD\"?\"soft-hyphen\":\"text\"}var ui=/[\\x20\\t\\n\\xA0\\xAD\\u200B\\u202F\\u2060\\uFEFF]/;function Se(e){return e.length===1?e[0]:e.join(\"\")}function ci(e,t){let n=[];for(let i=e.length-1;i>=0;i--)n.push(e[i]);return n.push(t),Se(n)}function di(e,t,n,i){if(!ui.test(e))return[{text:e,isWordLike:t,kind:\"text\",start:n}];let r=[],o=null,u=[],d=n,c=!1,s=0;for(let a of e){let m=li(a,i),h=m===\"text\"&&t;if(o!==null&&m===o&&h===c){u.push(a),s+=a.length;continue}o!==null&&r.push({text:Se(u),isWordLike:c,kind:o,start:d}),o=m,u=[a],d=n+s,c=h,s+=a.length}return o!==null&&r.push({text:Se(u),isWordLike:c,kind:o,start:d}),r}function ct(e){return e===\"space\"||e===\"preserved-space\"||e===\"zero-width-break\"||e===\"hard-break\"}var mi=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function xi(e,t){let n=e.texts[t];return n.startsWith(\"www.\")?!0:mi.test(n)&&t+1<e.len&&e.kinds[t+1]===\"text\"&&e.texts[t+1]===\"//\"}function fi(e){return e.includes(\"?\")&&(e.includes(\"://\")||e.startsWith(\"www.\"))}function pi(e){let t=e.texts.slice(),n=e.isWordLike.slice(),i=e.kinds.slice(),r=e.starts.slice();for(let u=0;u<e.len;u++){if(i[u]!==\"text\"||!xi(e,u))continue;let d=[t[u]],c=u+1;for(;c<e.len&&!ct(i[c]);){d.push(t[c]),n[u]=!0;let s=t[c].includes(\"?\");if(i[c]=\"text\",t[c]=\"\",c++,s)break}t[u]=Se(d)}let o=0;for(let u=0;u<t.length;u++){let d=t[u];d.length!==0&&(o!==u&&(t[o]=d,n[o]=n[u],i[o]=i[u],r[o]=r[u]),o++)}return t.length=o,n.length=o,i.length=o,r.length=o,{len:o,texts:t,isWordLike:n,kinds:i,starts:r}}function hi(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let u=e.texts[o];if(t.push(u),n.push(e.isWordLike[o]),i.push(e.kinds[o]),r.push(e.starts[o]),!fi(u))continue;let d=o+1;if(d>=e.len||ct(e.kinds[d]))continue;let c=[],s=e.starts[d],a=d;for(;a<e.len&&!ct(e.kinds[a]);)c.push(e.texts[a]),a++;c.length>0&&(t.push(Se(c)),n.push(!0),i.push(\"text\"),r.push(s),o=a-1)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}var gi=new Set([\":\",\"-\",\"/\",\"\\xD7\",\",\",\".\",\"+\",\"\\u2013\",\"\\u2014\"]),Qt=/^[A-Za-z0-9_]+[,:;]*$/,Zt=/[,:;]+$/;function tn(e){for(let t of e)if(Xt.test(t))return!0;return!1}function We(e){if(e.length===0)return!1;for(let t of e)if(!(Xt.test(t)||gi.has(t)))return!1;return!0}function Si(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let u=e.texts[o],d=e.kinds[o];if(d===\"text\"&&We(u)&&tn(u)){let c=[u],s=o+1;for(;s<e.len&&e.kinds[s]===\"text\"&&We(e.texts[s]);)c.push(e.texts[s]),s++;t.push(Se(c)),n.push(!0),i.push(\"text\"),r.push(e.starts[o]),o=s-1;continue}t.push(u),n.push(e.isWordLike[o]),i.push(d),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Fi(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let u=e.texts[o],d=e.kinds[o],c=e.isWordLike[o];if(d===\"text\"&&c&&Qt.test(u)){let s=[u],a=Zt.test(u),m=o+1;for(;a&&m<e.len&&e.kinds[m]===\"text\"&&e.isWordLike[m]&&Qt.test(e.texts[m]);){let h=e.texts[m];s.push(h),a=Zt.test(h),m++}t.push(Se(s)),n.push(!0),i.push(\"text\"),r.push(e.starts[o]),o=m-1;continue}t.push(u),n.push(c),i.push(d),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Ai(e){let t=[],n=[],i=[],r=[];for(let o=0;o<e.len;o++){let u=e.texts[o];if(e.kinds[o]===\"text\"&&u.includes(\"-\")){let d=u.split(\"-\"),c=d.length>1;for(let s=0;s<d.length;s++){let a=d[s];if(!c)break;(a.length===0||!tn(a)||!We(a))&&(c=!1)}if(c){let s=0;for(let a=0;a<d.length;a++){let m=d[a],h=a<d.length-1?`${m}-`:m;t.push(h),n.push(!0),i.push(\"text\"),r.push(e.starts[o]+s),s+=h.length}continue}}t.push(u),n.push(e.isWordLike[o]),i.push(e.kinds[o]),r.push(e.starts[o])}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Ni(e){let t=[],n=[],i=[],r=[],o=0;for(;o<e.len;){let u=[e.texts[o]],d=e.isWordLike[o],c=e.kinds[o],s=e.starts[o];if(c===\"glue\"){let a=[u[0]],m=s;for(o++;o<e.len&&e.kinds[o]===\"glue\";)a.push(e.texts[o]),o++;let h=Se(a);if(o<e.len&&e.kinds[o]===\"text\")u[0]=h,u.push(e.texts[o]),d=e.isWordLike[o],c=\"text\",s=m,o++;else{t.push(h),n.push(!1),i.push(\"glue\"),r.push(m);continue}}else o++;if(c===\"text\")for(;o<e.len&&e.kinds[o]===\"glue\";){let a=[];for(;o<e.len&&e.kinds[o]===\"glue\";)a.push(e.texts[o]),o++;let m=Se(a);if(o<e.len&&e.kinds[o]===\"text\"){u.push(m,e.texts[o]),d=d||e.isWordLike[o],o++;continue}u.push(m)}t.push(Se(u)),n.push(d),i.push(c),r.push(s)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Ei(e){let t=e.texts.slice(),n=e.isWordLike.slice(),i=e.kinds.slice(),r=e.starts.slice();for(let o=0;o<t.length-1;o++){if(i[o]!==\"text\"||i[o+1]!==\"text\"||!Ae(t[o])||!Ae(t[o+1]))continue;let u=oi(t[o]);u!==null&&(t[o]=u.head,t[o+1]=u.tail+t[o+1],r[o+1]=r[o]+u.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function Yt(e,t,n){let i=$n(),r=0,o=[],u=[],d=[],c=[],s=[],a=[],m=[],h=[],A=[],C=[],D=[],L=[];for(let x of i.segment(e))for(let g of di(x.segment,x.isWordLike??!1,x.index,n)){let Q=function(){a[w]!==null&&(u[w]=[Vt(o,a,m,w)],a[w]=null),u[w].push(g.text),d[w]=d[w]||g.isWordLike,h[w]=h[w]||E,A[w]=A[w]||R,C[w]=W,D[w]=Z,L[w]=Jt(A[w],_)},N=g.kind===\"text\",y=ri(g.text,g.isWordLike,g.kind),E=Ae(g.text),R=$t(g.text),_=Ke(g.text),W=Ve(g.text),Z=si(g.text),w=r-1;t.carryCJKAfterClosingQuote&&N&&r>0&&c[w]===\"text\"&&E&&h[w]&&C[w]||N&&r>0&&c[w]===\"text\"&&ni(g.text)&&h[w]||N&&r>0&&c[w]===\"text\"&&D[w]?Q():N&&r>0&&c[w]===\"text\"&&g.isWordLike&&R&&L[w]?(Q(),d[w]=!0):y!==null&&r>0&&c[w]===\"text\"&&a[w]===y?m[w]=(m[w]??1)+1:N&&!g.isWordLike&&r>0&&c[w]===\"text\"&&(ti(g.text)||g.text===\"-\"&&d[w])?Q():(o[r]=g.text,u[r]=[g.text],d[r]=g.isWordLike,c[r]=g.kind,s[r]=g.start,a[r]=y,m[r]=y===null?0:1,h[r]=E,A[r]=R,C[r]=W,D[r]=Z,L[r]=Jt(R,_),r++)}for(let x=0;x<r;x++){if(a[x]!==null){o[x]=Vt(o,a,m,x);continue}o[x]=Se(u[x])}for(let x=1;x<r;x++)c[x]===\"text\"&&!d[x]&&mt(o[x])&&c[x-1]===\"text\"&&(o[x-1]+=o[x],d[x-1]=d[x-1]||d[x],o[x]=\"\");let G=Array.from({length:r},()=>null),U=-1;for(let x=r-1;x>=0;x--){let g=o[x];if(g.length!==0){if(c[x]===\"text\"&&!d[x]&&ii(g)&&U>=0&&c[U]===\"text\"){let N=G[U]??[];N.push(g),G[U]=N,s[U]=s[x],o[x]=\"\";continue}U=x}}for(let x=0;x<r;x++){let g=G[x];g!=null&&(o[x]=ci(g,o[x]))}let k=0;for(let x=0;x<r;x++){let g=o[x];g.length!==0&&(k!==x&&(o[k]=g,d[k]=d[x],c[k]=c[x],s[k]=s[x]),k++)}o.length=k,d.length=k,c.length=k,s.length=k;let X=Ni({len:k,texts:o,isWordLike:d,kinds:c,starts:s}),S=Ei(Fi(Ai(Si(hi(pi(X))))));for(let x=0;x<S.len-1;x++){let g=ai(S.texts[x]);g!==null&&(S.kinds[x]!==\"space\"&&S.kinds[x]!==\"preserved-space\"||S.kinds[x+1]!==\"text\"||!$t(S.texts[x+1])||(S.texts[x]=g.space,S.isWordLike[x]=!1,S.kinds[x]=S.kinds[x]===\"preserved-space\"?\"preserved-space\":\"space\",S.texts[x+1]=g.marks+S.texts[x+1],S.starts[x+1]=S.starts[x]+g.space.length))}return S}function yi(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],i=0;for(let r=0;r<e.len;r++)e.kinds[r]===\"hard-break\"&&(n.push({startSegmentIndex:i,endSegmentIndex:r,consumedEndSegmentIndex:r+1}),i=r+1);return i<e.len&&n.push({startSegmentIndex:i,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function bi(e){if(e.len<=1)return e;let t=[],n=[],i=[],r=[],o=null,u=!1,d=0,c=!1,s=!1;function a(){o!==null&&(t.push(Se(o)),n.push(u),i.push(\"text\"),r.push(d),o=null)}for(let m=0;m<e.len;m++){let h=e.texts[m],A=e.kinds[m],C=e.isWordLike[m],D=e.starts[m];if(A===\"text\"){let L=Qn(h),G=qe(h);if(o!==null&&c&&s){o.push(h),u=u||C,c=c||L,s=G;continue}a(),o=[h],u=C,d=D,c=L,s=G;continue}a(),t.push(h),n.push(C),i.push(A),r.push(D)}return a(),{len:t.length,texts:t,isWordLike:n,kinds:i,starts:r}}function nn(e,t,n=\"normal\",i=\"normal\"){let r=zn(n),o=r.mode===\"pre-wrap\"?Gn(e):Un(e);if(o.length===0)return{normalized:o,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let u=i===\"keep-all\"?bi(Yt(o,t,r)):Yt(o,t,r);return{normalized:o,chunks:yi(u,r),...u}}var Be=null,on=new Map,Re=null,Mi=96,Ci=/\\p{Emoji_Presentation}/u,Di=/[\\p{Emoji_Presentation}\\p{Extended_Pictographic}\\p{Regional_Indicator}\\uFE0F\\u20E3]/u,xt=null,rn=new Map;function ft(){if(Be!==null)return Be;if(typeof OffscreenCanvas<\"u\")return Be=new OffscreenCanvas(1,1).getContext(\"2d\"),Be;if(typeof document<\"u\")return Be=document.createElement(\"canvas\").getContext(\"2d\"),Be;throw new Error(\"Text measurement requires OffscreenCanvas or a DOM canvas context.\")}function ki(e){let t=on.get(e);return t||(t=new Map,on.set(e,t)),t}function Ne(e,t){let n=t.get(e);return n===void 0&&(n={width:ft().measureText(e).width,containsCJK:Ae(e)},t.set(e,n)),n}function ve(){if(Re!==null)return Re;if(typeof navigator>\"u\")return Re={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Re;let e=navigator.userAgent,n=navigator.vendor===\"Apple Computer, Inc.\"&&e.includes(\"Safari/\")&&!e.includes(\"Chrome/\")&&!e.includes(\"Chromium/\")&&!e.includes(\"CriOS/\")&&!e.includes(\"FxiOS/\")&&!e.includes(\"EdgiOS/\"),i=e.includes(\"Chrome/\")||e.includes(\"Chromium/\")||e.includes(\"CriOS/\")||e.includes(\"Edg/\");return Re={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:i,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},Re}function Li(e){let t=e.match(/(\\d+(?:\\.\\d+)?)\\s*px/);return t?parseFloat(t[1]):16}function sn(){return xt===null&&(xt=new Intl.Segmenter(void 0,{granularity:\"grapheme\"})),xt}function Ti(e){return Ci.test(e)||e.includes(\"\\uFE0F\")}function an(e){return Di.test(e)}function wi(e,t){let n=rn.get(e);if(n!==void 0)return n;let i=ft();i.font=e;let r=i.measureText(\"\\u{1F600}\").width;if(n=0,r>t+.5&&typeof document<\"u\"&&document.body!==null){let o=document.createElement(\"span\");o.style.font=e,o.style.display=\"inline-block\",o.style.visibility=\"hidden\",o.style.position=\"absolute\",o.textContent=\"\\u{1F600}\",document.body.appendChild(o);let u=o.getBoundingClientRect().width;document.body.removeChild(o),r-u>.5&&(n=r-u)}return rn.set(e,n),n}function Bi(e){let t=0,n=sn();for(let i of n.segment(e))Ti(i.segment)&&t++;return t}function Ri(e,t){return t.emojiCount===void 0&&(t.emojiCount=Bi(e)),t.emojiCount}function Me(e,t,n){return n===0?t.width:t.width-Ri(e,t)*n}function ln(e,t,n,i,r){if(t.breakableFitAdvances!==void 0)return t.breakableFitAdvances;let o=sn(),u=[];for(let a of o.segment(e))u.push(a.segment);if(u.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(r===\"sum-graphemes\"){let a=[];for(let m of u){let h=Ne(m,n);a.push(Me(m,h,i))}return t.breakableFitAdvances=a,t.breakableFitAdvances}if(r===\"pair-context\"||u.length>Mi){let a=[],m=null,h=0;for(let A of u){let C=Ne(A,n),D=Me(A,C,i);if(m===null)a.push(D);else{let L=m+A,G=Ne(L,n);a.push(Me(L,G,i)-h)}m=A,h=D}return t.breakableFitAdvances=a,t.breakableFitAdvances}let d=[],c=\"\",s=0;for(let a of u){c+=a;let m=Ne(c,n),h=Me(c,m,i);d.push(h-s),s=h}return t.breakableFitAdvances=d,t.breakableFitAdvances}function un(e,t){let n=ft();n.font=e;let i=ki(e),r=Li(e),o=t?wi(e,r):0;return{cache:i,fontSize:r,emojiCorrection:o}}function vi(e,t){for(;t<e.widths.length;){let n=e.kinds[t];if(n!==\"space\"&&n!==\"zero-width-break\"&&n!==\"soft-hyphen\")break;t++}return t}function Ii(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function Pi(e,t,n,i,r){let o=0,u=t;for(;o<e.length;){let d=u+e[o];if((o+1<e.length?d+r:d)>n+i)break;u=d,o++}return{fitCount:o,fittedWidth:u}}function cn(e,t){return e.simpleLineWalkFastPath?dn(e,t):mn(e,t)}function dn(e,t,n){let{widths:i,kinds:r,breakableFitAdvances:o}=e;if(i.length===0)return 0;let d=ve().lineFitEpsilon,c=t+d,s=0,a=0,m=!1,h=0,A=0,C=0,D=0,L=-1,G=0;function U(){L=-1,G=0}function k(y=C,E=D,R=a){s++,n?.({startSegmentIndex:h,startGraphemeIndex:A,endSegmentIndex:y,endGraphemeIndex:E,width:R}),a=0,m=!1,U()}function X(y,E){m=!0,h=y,A=0,C=y+1,D=0,a=E}function S(y,E,R){m=!0,h=y,A=E,C=y,D=E+1,a=R}function x(y,E){if(!m){X(y,E);return}a+=E,C=y+1,D=0}function g(y,E){let R=o[y];for(let _=E;_<R.length;_++){let W=R[_];m?a+W>c?(k(),S(y,_,W)):(a+=W,C=y,D=_+1):S(y,_,W)}m&&C===y&&D===R.length&&(C=y+1,D=0)}let N=0;for(;N<i.length&&!(!m&&(N=vi(e,N),N>=i.length));){let y=i[N],E=r[N],R=E===\"space\"||E===\"preserved-space\"||E===\"tab\"||E===\"zero-width-break\"||E===\"soft-hyphen\";if(!m){y>t&&o[N]!==null?g(N,0):X(N,y),R&&(L=N+1,G=a-y),N++;continue}if(a+y>c){if(R){x(N,y),k(N+1,0,a-y),N++;continue}if(L>=0){if(C>L||C===L&&D>0){k();continue}k(L,0,G);continue}if(y>t&&o[N]!==null){k(),g(N,0),N++;continue}k();continue}x(N,y),R&&(L=N+1,G=a-y),N++}return m&&k(),s}function mn(e,t,n){if(e.simpleLineWalkFastPath)return dn(e,t,n);let{widths:i,lineEndFitAdvances:r,lineEndPaintAdvances:o,kinds:u,breakableFitAdvances:d,discretionaryHyphenWidth:c,tabStopAdvance:s,chunks:a}=e;if(i.length===0||a.length===0)return 0;let m=ve(),h=m.lineFitEpsilon,A=t+h,C=0,D=0,L=!1,G=0,U=0,k=0,X=0,S=-1,x=0,g=0,N=null;function y(){S=-1,x=0,g=0,N=null}function E(H=k,z=X,v=D){C++,n?.({startSegmentIndex:G,startGraphemeIndex:U,endSegmentIndex:H,endGraphemeIndex:z,width:v}),D=0,L=!1,y()}function R(H,z){L=!0,G=H,U=0,k=H+1,X=0,D=z}function _(H,z,v){L=!0,G=H,U=z,k=H,X=z+1,D=v}function W(H,z){if(!L){R(H,z);return}D+=z,k=H+1,X=0}function Z(H,z,v,K){if(!z)return;let he=H===\"tab\"?0:r[v],ue=H===\"tab\"?K:o[v];S=v+1,x=D-K+he,g=D-K+ue,N=H}function w(H,z){let v=d[H];for(let K=z;K<v.length;K++){let he=v[K];L?D+he>A?(E(),_(H,K,he)):(D+=he,k=H,X=K+1):_(H,K,he)}L&&k===H&&X===v.length&&(k=H+1,X=0)}function Q(H){if(N!==\"soft-hyphen\")return!1;let z=d[H];if(z==null)return!1;let{fitCount:v,fittedWidth:K}=Pi(z,D,t,h,c);return v===0?!1:(D=K,k=H,X=v,y(),v===z.length?(k=H+1,X=0,!0):(E(H,v,K+c),w(H,v),!0))}function ee(H){C++,n?.({startSegmentIndex:H.startSegmentIndex,startGraphemeIndex:0,endSegmentIndex:H.consumedEndSegmentIndex,endGraphemeIndex:0,width:0}),y()}for(let H=0;H<a.length;H++){let z=a[H];if(z.startSegmentIndex===z.endSegmentIndex){ee(z);continue}L=!1,D=0,G=z.startSegmentIndex,U=0,k=z.startSegmentIndex,X=0,y();let v=z.startSegmentIndex;for(;v<z.endSegmentIndex;){let K=u[v],he=K===\"space\"||K===\"preserved-space\"||K===\"tab\"||K===\"zero-width-break\"||K===\"soft-hyphen\",ue=K===\"tab\"?Ii(D,s):i[v];if(K===\"soft-hyphen\"){L&&(k=v+1,X=0,S=v+1,x=D+c,g=D+c,N=K),v++;continue}if(!L){ue>t&&d[v]!==null?w(v,0):R(v,ue),Z(K,he,v,ue),v++;continue}if(D+ue>A){let b=D+(K===\"tab\"?0:r[v]),T=D+(K===\"tab\"?ue:o[v]);if(N===\"soft-hyphen\"&&m.preferEarlySoftHyphenBreak&&x<=A){E(S,0,g);continue}if(N===\"soft-hyphen\"&&Q(v)){v++;continue}if(he&&b<=A){W(v,ue),E(v+1,0,T),v++;continue}if(S>=0&&x<=A){if(k>S||k===S&&X>0){E();continue}let Y=S;E(Y,0,g),v=Y;continue}if(ue>t&&d[v]!==null){E(),w(v,0),v++;continue}E();continue}W(v,ue),Z(K,he,v,ue),v++}if(L){let K=S===z.consumedEndSegmentIndex?g:D;E(z.consumedEndSegmentIndex,0,K)}}return C}var pt=null;function Oi(){return pt===null&&(pt=new Intl.Segmenter(void 0,{granularity:\"grapheme\"})),pt}function _i(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function Wi(e,t){let n=[],i=[],r=0,o=!1,u=!1,d=!1;function c(){i.length!==0&&(n.push({text:i.length===1?i[0]:i.join(\"\"),start:r}),i=[],o=!1,u=!1,d=!1)}function s(m,h,A){i=[m],r=h,o=A,u=Ve(m),d=He.has(m)}function a(m,h){i.push(m),o=o||h;let A=Ve(m);m.length===1&&be.has(m)?u=u||A:u=A,d=!1}for(let m of Oi().segment(e)){let h=m.segment,A=Ae(h);if(i.length===0){s(h,m.index,A);continue}if(d||$e.has(h)||be.has(h)||t.carryCJKAfterClosingQuote&&A&&u){a(h,A);continue}if(!o&&!A){a(h,A);continue}c(),s(h,m.index,A)}return c(),n}function Hi(e){if(e.length<=1)return e;let t=[],n=[e[0].text],i=e[0].start,r=Ae(e[0].text),o=qe(e[0].text);function u(){t.push({text:n.length===1?n[0]:n.join(\"\"),start:i})}for(let d=1;d<e.length;d++){let c=e[d],s=Ae(c.text),a=qe(c.text);if(r&&o){n.push(c.text),r=r||s,o=a;continue}u(),n=[c.text],i=c.start,r=s,o=a}return u(),t}function ji(e,t,n,i){let r=ve(),{cache:o,emojiCorrection:u}=un(t,an(e.normalized)),d=Me(\"-\",Ne(\"-\",o),u),s=Me(\" \",Ne(\" \",o),u)*8;if(e.len===0)return _i(n);let a=[],m=[],h=[],A=[],C=e.chunks.length<=1,D=n?[]:null,L=[],G=n?[]:null,U=Array.from({length:e.len});function k(g,N,y,E,R,_,W){R!==\"text\"&&R!==\"space\"&&R!==\"zero-width-break\"&&(C=!1),a.push(N),m.push(y),h.push(E),A.push(R),D?.push(_),L.push(W),G!==null&&G.push(g)}function X(g,N,y,E,R){let _=Ne(g,o),W=Me(g,_,u),Z=N===\"space\"||N===\"preserved-space\"||N===\"zero-width-break\"?0:W,w=N===\"space\"||N===\"zero-width-break\"?0:W;if(R&&E&&g.length>1){let Q=\"sum-graphemes\";We(g)?Q=\"pair-context\":r.preferPrefixWidthsForBreakableRuns&&(Q=\"segment-prefixes\");let ee=ln(g,_,o,u,Q);k(g,W,Z,w,N,y,ee);return}k(g,W,Z,w,N,y,null)}for(let g=0;g<e.len;g++){U[g]=a.length;let N=e.texts[g],y=e.isWordLike[g],E=e.kinds[g],R=e.starts[g];if(E===\"soft-hyphen\"){k(N,0,d,d,E,R,null);continue}if(E===\"hard-break\"){k(N,0,0,0,E,R,null);continue}if(E===\"tab\"){k(N,0,0,0,E,R,null);continue}let _=Ne(N,o);if(E===\"text\"&&_.containsCJK){let W=Wi(N,r),Z=i===\"keep-all\"?Hi(W):W;for(let w=0;w<Z.length;w++){let Q=Z[w];X(Q.text,\"text\",R+Q.start,y,i===\"keep-all\"||!Ae(Q.text))}continue}X(N,E,R,y,!0)}let S=zi(e.chunks,U,a.length),x=D===null?null:qt(e.normalized,D);return G!==null?{widths:a,lineEndFitAdvances:m,lineEndPaintAdvances:h,kinds:A,simpleLineWalkFastPath:C,segLevels:x,breakableFitAdvances:L,discretionaryHyphenWidth:d,tabStopAdvance:s,chunks:S,segments:G}:{widths:a,lineEndFitAdvances:m,lineEndPaintAdvances:h,kinds:A,simpleLineWalkFastPath:C,segLevels:x,breakableFitAdvances:L,discretionaryHyphenWidth:d,tabStopAdvance:s,chunks:S}}function zi(e,t,n){let i=[];for(let r=0;r<e.length;r++){let o=e[r],u=o.startSegmentIndex<t.length?t[o.startSegmentIndex]:n,d=o.endSegmentIndex<t.length?t[o.endSegmentIndex]:n,c=o.consumedEndSegmentIndex<t.length?t[o.consumedEndSegmentIndex]:n;i.push({startSegmentIndex:u,endSegmentIndex:d,consumedEndSegmentIndex:c})}return i}function Ui(e,t,n,i){let r=i?.wordBreak??\"normal\",o=nn(e,ve(),i?.whiteSpace,r);return ji(o,t,n,r)}function xn(e,t,n){return Ui(e,t,!1,n)}function fn(e,t,n){let i=cn(e,t);return{lineCount:i,height:i*n}}var Gi={maxWidth:1600,baseFontSize:78,minFontSize:42,fontWeight:900,fontFamily:\"Outfit\",step:2};function pn(e,t){let n={...Gi,...t},i=1.2;for(let r=n.baseFontSize;r>=n.minFontSize;r-=n.step){let o=`${n.fontWeight} ${r}px ${n.fontFamily}`,u=xn(e,o),{lineCount:d}=fn(u,n.maxWidth,r*i);if(d<=1)return{fontSize:r,fits:!0}}return{fontSize:n.minFontSize,fits:!1}}window.__timelines=window.__timelines||{};window.__hyperframes={fitTextFontSize:pn};function hn(){let e=window;e.__hyperframeRuntimeBootstrapped||(e.__hyperframeRuntimeBootstrapped=!0,Ut())}document.readyState===\"loading\"?document.addEventListener(\"DOMContentLoaded\",hn,{once:!0}):hn();})();\n";
3
3
  /**
4
4
  * Returns the pre-built hyperframe runtime IIFE as a string constant.
5
5
  * This is the production-safe path: no esbuild, no file I/O,
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-inline.js","sourceRoot":"","sources":["../../src/generated/runtime-inline.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,YAAY,GAAW,wsiGAAwsiG,CAAC;AAEtuiG;;;;GAIG;AACH,MAAM,UAAU,0BAA0B;IACxC,OAAO,YAAY,CAAC;AACtB,CAAC"}
1
+ {"version":3,"file":"runtime-inline.js","sourceRoot":"","sources":["../../src/generated/runtime-inline.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,YAAY,GAAW,y/jGAAy/jG,CAAC;AAEvhkG;;;;GAIG;AACH,MAAM,UAAU,0BAA0B;IACxC,OAAO,YAAY,CAAC;AACtB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "0.1.0",
3
3
  "buildId": "dev",
4
- "sha256": "f62b766b11799dfeb7be53b32e8604b4823779a5fd0234842a1f6f1bfc3b9ab4",
4
+ "sha256": "02ce520fe0364b7b393d65fa561bdeec3e5576646a4d01d97f8fad0f94433294",
5
5
  "artifacts": {
6
6
  "iife": "hyperframe.runtime.iife.js",
7
7
  "esm": "hyperframe.runtime.mjs"