@xpert-ai/plugin-motion 0.2.0 → 0.3.0

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 (157) hide show
  1. package/.xpertai-plugin/plugin.json +16 -6
  2. package/README.md +19 -5
  3. package/assets/upstream/UPSTREAM-BASELINE.md +27 -0
  4. package/assets/upstream/app/data/reicon-LICENSE.txt +21 -0
  5. package/dist/assets/upstream/UPSTREAM-BASELINE.md +27 -0
  6. package/dist/assets/upstream/app/data/reicon-LICENSE.txt +21 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +18 -9
  10. package/dist/index.js.map +1 -1
  11. package/dist/lib/constants.d.ts +7 -1
  12. package/dist/lib/constants.d.ts.map +1 -1
  13. package/dist/lib/constants.js +7 -0
  14. package/dist/lib/constants.js.map +1 -1
  15. package/dist/lib/entities/motion-export.entity.d.ts +13 -1
  16. package/dist/lib/entities/motion-export.entity.d.ts.map +1 -1
  17. package/dist/lib/entities/motion-export.entity.js +49 -1
  18. package/dist/lib/entities/motion-export.entity.js.map +1 -1
  19. package/dist/lib/entities/motion-project-version.entity.d.ts +3 -1
  20. package/dist/lib/entities/motion-project-version.entity.d.ts.map +1 -1
  21. package/dist/lib/entities/motion-project-version.entity.js +8 -0
  22. package/dist/lib/entities/motion-project-version.entity.js.map +1 -1
  23. package/dist/lib/entities/motion-project.entity.d.ts +4 -1
  24. package/dist/lib/entities/motion-project.entity.d.ts.map +1 -1
  25. package/dist/lib/entities/motion-project.entity.js +8 -0
  26. package/dist/lib/entities/motion-project.entity.js.map +1 -1
  27. package/dist/lib/hyperframes-composition.d.ts +16 -0
  28. package/dist/lib/hyperframes-composition.d.ts.map +1 -0
  29. package/dist/lib/hyperframes-composition.js +106 -0
  30. package/dist/lib/hyperframes-composition.js.map +1 -0
  31. package/dist/lib/motion-agent-response.d.ts +8 -0
  32. package/dist/lib/motion-agent-response.d.ts.map +1 -1
  33. package/dist/lib/motion-agent-response.js +13 -0
  34. package/dist/lib/motion-agent-response.js.map +1 -1
  35. package/dist/lib/motion-render.processor.d.ts +9 -0
  36. package/dist/lib/motion-render.processor.d.ts.map +1 -0
  37. package/dist/lib/motion-render.processor.js +25 -0
  38. package/dist/lib/motion-render.processor.js.map +1 -0
  39. package/dist/lib/motion-view.provider.d.ts.map +1 -1
  40. package/dist/lib/motion-view.provider.js +31 -2
  41. package/dist/lib/motion-view.provider.js.map +1 -1
  42. package/dist/lib/motion.middleware.d.ts.map +1 -1
  43. package/dist/lib/motion.middleware.js +20 -6
  44. package/dist/lib/motion.middleware.js.map +1 -1
  45. package/dist/lib/motion.plugin.d.ts.map +1 -1
  46. package/dist/lib/motion.plugin.js +2 -1
  47. package/dist/lib/motion.plugin.js.map +1 -1
  48. package/dist/lib/motion.service.d.ts +174 -3
  49. package/dist/lib/motion.service.d.ts.map +1 -1
  50. package/dist/lib/motion.service.js +376 -19
  51. package/dist/lib/motion.service.js.map +1 -1
  52. package/dist/lib/remote-components/motion-workbench/app.css +1 -1
  53. package/dist/lib/remote-components/motion-workbench/app.js +553 -38
  54. package/dist/lib/types.d.ts +26 -1
  55. package/dist/lib/types.d.ts.map +1 -1
  56. package/dist/lib/types.js.map +1 -1
  57. package/dist/sandbox-actions/hyperframes-render/action.json +10 -0
  58. package/dist/sandbox-actions/hyperframes-render/bundle/runner.mjs +188 -0
  59. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/README.md +3 -0
  60. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
  61. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/package.json +20 -0
  62. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/README.md +3 -0
  63. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/bin/esbuild +0 -0
  64. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/package.json +20 -0
  65. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/LICENSE +190 -0
  66. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/README.md +156 -0
  67. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/distributed.js +156122 -0
  68. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/hyperframe.manifest.json +22 -0
  69. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/hyperframe.runtime.iife.js +356 -0
  70. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/index.js +169375 -0
  71. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/public-server.js +167618 -0
  72. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/services/healthWorkerThread.js +53 -0
  73. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/services/shaderTransitionWorker.js +606 -0
  74. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/package.json +109 -0
  75. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/LICENSE.md +21 -0
  76. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/README.md +3 -0
  77. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/bin/esbuild +0 -0
  78. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/install.js +289 -0
  79. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/lib/main.js +2532 -0
  80. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/package.json +49 -0
  81. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/LICENSE +20 -0
  82. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/README.md +36 -0
  83. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.browser.cjs +42 -0
  84. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.browser.js +42 -0
  85. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.cjs +44 -0
  86. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.js +44 -0
  87. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.native.js +35 -0
  88. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/package.json +12 -0
  89. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/bin/nanoid.cjs +55 -0
  90. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.browser.cjs +44 -0
  91. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.browser.js +44 -0
  92. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.cjs +57 -0
  93. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.d.cts +91 -0
  94. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.js +62 -0
  95. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/nanoid.js +1 -0
  96. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/index.cjs +24 -0
  97. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/index.js +24 -0
  98. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/package.json +6 -0
  99. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/package.json +89 -0
  100. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/index.cjs +4 -0
  101. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/index.js +4 -0
  102. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/package.json +6 -0
  103. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/LICENSE +15 -0
  104. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/README.md +21 -0
  105. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/package.json +25 -0
  106. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/picocolors.browser.js +4 -0
  107. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/picocolors.js +75 -0
  108. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/LICENSE +20 -0
  109. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/README.md +25 -0
  110. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/at-rule.js +25 -0
  111. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/comment.js +13 -0
  112. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/container.js +447 -0
  113. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/css-syntax-error.js +133 -0
  114. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/declaration.js +24 -0
  115. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/document.js +33 -0
  116. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/fromJSON.js +68 -0
  117. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/input.js +276 -0
  118. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/lazy-result.js +563 -0
  119. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/list.js +58 -0
  120. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/map-generator.js +376 -0
  121. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/no-work-result.js +137 -0
  122. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/node.js +456 -0
  123. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/parse.js +42 -0
  124. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/parser.js +618 -0
  125. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.d.mts +66 -0
  126. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.js +101 -0
  127. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.mjs +30 -0
  128. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/previous-map.js +161 -0
  129. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/processor.js +67 -0
  130. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/result.js +42 -0
  131. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/root.js +61 -0
  132. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/rule.js +27 -0
  133. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/stringifier.js +374 -0
  134. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/stringify.js +11 -0
  135. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/symbols.js +5 -0
  136. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/terminal-highlight.js +70 -0
  137. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/tokenize.js +270 -0
  138. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/warn-once.js +13 -0
  139. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/warning.js +37 -0
  140. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/package.json +88 -0
  141. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/LICENSE +28 -0
  142. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/README.md +765 -0
  143. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/array-set.js +121 -0
  144. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/base64-vlq.js +140 -0
  145. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/base64.js +67 -0
  146. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/binary-search.js +111 -0
  147. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/mapping-list.js +79 -0
  148. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/quick-sort.js +132 -0
  149. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-map-consumer.js +1188 -0
  150. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-map-generator.js +444 -0
  151. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-node.js +413 -0
  152. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/util.js +594 -0
  153. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/package.json +71 -0
  154. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/source-map.js +8 -0
  155. package/dist/xpert-motion-assistant.yaml +240 -37
  156. package/package.json +17 -9
  157. package/skills/motion-agent-skill/SKILL.md +19 -7
@@ -1,48 +1,59 @@
1
1
  ;
2
- "use strict";(()=>{var Um=Object.defineProperty;var il=e=>{throw TypeError(e)};var Ka=(e,t)=>{for(var a in t)Um(e,a,{get:t[a],enumerable:!0})};var sl=(e,t,a)=>t.has(e)||il("Cannot "+a);var $a=(e,t,a)=>(sl(e,t,"read from private field"),a?a.call(e):t.get(e)),qn=(e,t,a)=>t.has(e)?il("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),jn=(e,t,a,o)=>(sl(e,t,"write to private field"),o?o.call(e,a):t.set(e,a),a);var ae={};Ka(ae,{Children:()=>St,Component:()=>Wm,Fragment:()=>nt,Profiler:()=>Gm,PureComponent:()=>Km,StrictMode:()=>$m,Suspense:()=>Xm,cloneElement:()=>Bt,createContext:()=>Ke,createElement:()=>Te,createFactory:()=>Zm,createRef:()=>Jm,default:()=>jm,forwardRef:()=>V,isValidElement:()=>Xa,lazy:()=>Ym,memo:()=>Qm,startTransition:()=>eg,useCallback:()=>Q,useContext:()=>Qe,useDebugValue:()=>tg,useDeferredValue:()=>ag,useEffect:()=>H,useId:()=>Wn,useImperativeHandle:()=>br,useInsertionEffect:()=>og,useLayoutEffect:()=>Ht,useMemo:()=>me,useReducer:()=>wr,useRef:()=>z,useState:()=>M,useSyncExternalStore:()=>Gn,useTransition:()=>rg,version:()=>ng});function qm(e){return window[e]}var ve=qm("React"),jm=ve,St=ve.Children,Wm=ve.Component,nt=ve.Fragment,Gm=ve.Profiler,Km=ve.PureComponent,$m=ve.StrictMode,Xm=ve.Suspense,Bt=ve.cloneElement,Ke=ve.createContext,Te=ve.createElement,Zm=ve.createFactory,Jm=ve.createRef,V=ve.forwardRef,Xa=ve.isValidElement,Ym=ve.lazy,Qm=ve.memo,eg=ve.startTransition,Q=ve.useCallback,Qe=ve.useContext,tg=ve.useDebugValue,ag=ve.useDeferredValue,H=ve.useEffect,Wn=ve.useId,br=ve.useImperativeHandle,og=ve.useInsertionEffect,Ht=ve.useLayoutEffect,me=ve.useMemo,wr=ve.useReducer,z=ve.useRef,M=ve.useState,Gn=ve.useSyncExternalStore,rg=ve.useTransition,ng=ve.version;function ig(e){return window[e]}var ll=ig("ReactDOM"),dl=ll.createRoot,l0=ll.hydrateRoot;function ul(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=ul(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function yr(){for(var e,t,a=0,o="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=ul(e))&&(o&&(o+=" "),o+=t);return o}var sg=(e,t)=>{let a=new Array(e.length+t.length);for(let o=0;o<e.length;o++)a[o]=e[o];for(let o=0;o<t.length;o++)a[e.length+o]=t[o];return a},lg=(e,t)=>({classGroupId:e,validator:t}),hl=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var cl=[],dg="arbitrary..",ug=e=>{let t=fg(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return cg(i);let s=i.split("-"),l=s[0]===""&&s.length>1?1:0;return vl(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){let l=o[i],d=a[i];return l?d?sg(d,l):l:d||cl}return a[i]||cl}}},vl=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],n=a.nextPart.get(r);if(n){let d=vl(e,t+1,n);if(d)return d}let i=a.validators;if(i===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),l=i.length;for(let d=0;d<l;d++){let u=i[d];if(u.validator(s))return u.classGroupId}},cg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?dg+o:void 0})(),fg=e=>{let{theme:t,classGroups:a}=e;return pg(a,t)},pg=(e,t)=>{let a=hl();for(let o in e){let r=e[o];$n(r,a,o,t)}return a},$n=(e,t,a,o)=>{let r=e.length;for(let n=0;n<r;n++){let i=e[n];mg(i,t,a,o)}},mg=(e,t,a,o)=>{if(typeof e=="string"){gg(e,t,a);return}if(typeof e=="function"){hg(e,t,a,o);return}vg(e,t,a,o)},gg=(e,t,a)=>{let o=e===""?t:xl(t,e);o.classGroupId=a},hg=(e,t,a,o)=>{if(xg(e)){$n(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(lg(a,e))},vg=(e,t,a,o)=>{let r=Object.entries(e),n=r.length;for(let i=0;i<n;i++){let[s,l]=r[i];$n(l,xl(t,s),a,o)}},xl=(e,t)=>{let a=e,o=t.split("-"),r=o.length;for(let n=0;n<r;n++){let i=o[n],s=a.nextPart.get(i);s||(s=hl(),a.nextPart.set(i,s)),a=s}return a},xg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(n,i)=>{a[n]=i,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(n){let i=a[n];if(i!==void 0)return i;if((i=o[n])!==void 0)return r(n,i),i},set(n,i){n in a?a[n]=i:r(n,i)}}};var wg=[],fl=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),yg=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let n=[],i=0,s=0,l=0,d,u=r.length;for(let p=0;p<u;p++){let g=r[p];if(i===0&&s===0){if(g===":"){n.push(r.slice(l,p)),l=p+1;continue}if(g==="/"){d=p;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}let c=n.length===0?r:r.slice(l),m=c,h=!1;c.endsWith("!")?(m=c.slice(0,-1),h=!0):c.startsWith("!")&&(m=c.slice(1),h=!0);let x=d&&d>l?d-l:void 0;return fl(n,h,m,x)};if(t){let r=t+":",n=o;o=i=>i.startsWith(r)?n(i.slice(r.length)):fl(wg,!1,i,void 0,!0)}if(a){let r=o;o=n=>a({className:n,parseClassName:r})}return o},Cg=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let n=0;n<a.length;n++){let i=a[n],s=i[0]==="[",l=t.has(i);s||l?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(i)):r.push(i)}return r.length>0&&(r.sort(),o.push(...r)),o}},Sg=e=>({cache:bg(e.cacheSize),parseClassName:yg(e),sortModifiers:Cg(e),postfixLookupClassGroupIds:Lg(e),...ug(e)}),Lg=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o<a.length;o++)t[a[o]]=!0;return t},Ig=/\s+/,kg=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:n,postfixLookupClassGroupIds:i}=t,s=[],l=e.trim().split(Ig),d="";for(let u=l.length-1;u>=0;u-=1){let c=l[u],{isExternal:m,modifiers:h,hasImportantModifier:x,baseClassName:p,maybePostfixModifierPosition:g}=a(c);if(m){d=c+(d.length>0?" "+d:d);continue}let v=!!g,w;if(v){let T=p.substring(0,g);w=o(T);let I=w&&i[w]?o(p):void 0;I&&I!==w&&(w=I,v=!1)}else w=o(p);if(!w){if(!v){d=c+(d.length>0?" "+d:d);continue}if(w=o(p),!w){d=c+(d.length>0?" "+d:d);continue}v=!1}let b=h.length===0?"":h.length===1?h[0]:n(h).join(":"),C=x?b+"!":b,S=C+w;if(s.indexOf(S)>-1)continue;s.push(S);let R=r(w,v);for(let T=0;T<R.length;++T){let I=R[T];s.push(C+I)}d=c+(d.length>0?" "+d:d)}return d},Rg=(...e)=>{let t=0,a,o,r="";for(;t<e.length;)(a=e[t++])&&(o=bl(a))&&(r&&(r+=" "),r+=o);return r},bl=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=bl(e[o]))&&(a&&(a+=" "),a+=t);return a},Pg=(e,...t)=>{let a,o,r,n,i=l=>{let d=t.reduce((u,c)=>c(u),e());return a=Sg(d),o=a.cache.get,r=a.cache.set,n=s,s(l)},s=l=>{let d=o(l);if(d)return d;let u=kg(l,a);return r(l,u),u};return n=i,(...l)=>n(Rg(...l))},Tg=[],Oe=e=>{let t=a=>a[e]||Tg;return t.isThemeGetter=!0,t},wl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mg=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ag=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Eg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Og=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>Mg.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),Lt=e=>!!e&&Number.isInteger(Number(e)),Kn=e=>e.endsWith("%")&&pe(e.slice(0,-1)),_t=e=>Ag.test(e),Cl=()=>!0,Ng=e=>Dg.test(e)&&!zg.test(e),Xn=()=>!1,Fg=e=>Eg.test(e),Bg=e=>Og.test(e),Hg=e=>!W(e)&&!K(e),_g=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Vg=e=>Zt(e,Il,Xn),W=e=>wl.test(e),ua=e=>Zt(e,kl,Ng),pl=e=>Zt(e,Xg,pe),Ug=e=>Zt(e,Pl,Cl),qg=e=>Zt(e,Rl,Xn),ml=e=>Zt(e,Sl,Xn),jg=e=>Zt(e,Ll,Bg),Cr=e=>Zt(e,Tl,Fg),K=e=>yl.test(e),Po=e=>ca(e,kl),Wg=e=>ca(e,Rl),gl=e=>ca(e,Sl),Gg=e=>ca(e,Il),Kg=e=>ca(e,Ll),Sr=e=>ca(e,Tl,!0),$g=e=>ca(e,Pl,!0),Zt=(e,t,a)=>{let o=wl.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},ca=(e,t,a=!1)=>{let o=yl.exec(e);return o?o[1]?t(o[1]):a:!1},Sl=e=>e==="position"||e==="percentage",Ll=e=>e==="image"||e==="url",Il=e=>e==="length"||e==="size"||e==="bg-size",kl=e=>e==="length",Xg=e=>e==="number",Rl=e=>e==="family-name",Pl=e=>e==="number"||e==="weight",Tl=e=>e==="shadow";var Zg=()=>{let e=Oe("color"),t=Oe("font"),a=Oe("text"),o=Oe("font-weight"),r=Oe("tracking"),n=Oe("leading"),i=Oe("breakpoint"),s=Oe("container"),l=Oe("spacing"),d=Oe("radius"),u=Oe("shadow"),c=Oe("inset-shadow"),m=Oe("text-shadow"),h=Oe("drop-shadow"),x=Oe("blur"),p=Oe("perspective"),g=Oe("aspect"),v=Oe("ease"),w=Oe("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),K,W],R=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],I=()=>[K,W,l],F=()=>[Xt,"full","auto",...I()],X=()=>[Lt,"none","subgrid",K,W],D=()=>["auto",{span:["full",Lt,K,W]},Lt,K,W],O=()=>[Lt,"auto",K,W],U=()=>["auto","min","max","fr",K,W],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],k=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...I()],j=()=>[Xt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],B=()=>[Xt,"screen","full","dvw","lvw","svw","min","max","fit",...I()],te=()=>[Xt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],E=()=>[e,K,W],P=()=>[...C(),gl,ml,{position:[K,W]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",Gg,Vg,{size:[K,W]}],be=()=>[Kn,Po,ua],ie=()=>["","none","full",d,K,W],ne=()=>["",pe,Po,ua],J=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[pe,Kn,gl,ml],we=()=>["","none",x,K,W],ye=()=>["none",pe,K,W],Se=()=>["none",pe,K,W],Ve=()=>[pe,K,W],Ae=()=>[Xt,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_t],breakpoint:[_t],color:[Cl],container:[_t],"drop-shadow":[_t],ease:["in","out","in-out"],font:[Hg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_t],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_t],shadow:[_t],spacing:["px",pe],text:[_t],"text-shadow":[_t],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xt,W,K,g]}],container:["container"],"container-type":[{"@container":["","normal","size",K,W]}],"container-named":[_g],columns:[{columns:[pe,W,K,s]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Lt,"auto",K,W]}],basis:[{basis:[Xt,"full","auto",s,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,Xt,"auto","initial","none",W]}],grow:[{grow:["",pe,K,W]}],shrink:[{shrink:["",pe,K,W]}],order:[{order:[Lt,"first","last","none",K,W]}],"grid-cols":[{"grid-cols":X()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":X()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...k(),"normal"]}],"justify-self":[{"justify-self":["auto",...k()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...k(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...k(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...k(),"baseline"]}],"place-self":[{"place-self":["auto",...k()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...te()]}],"min-block-size":[{"min-block":["auto",...te()]}],"max-block-size":[{"max-block":["none",...te()]}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",a,Po,ua]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,$g,Ug]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kn,W]}],"font-family":[{font:[Wg,qg,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,K,W]}],"line-clamp":[{"line-clamp":[pe,"none",K,pl]}],leading:[{leading:[n,...I()]}],"list-image":[{"list-image":["none",K,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",K,ua]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[pe,"auto",K,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[Lt,K,W]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Lt,K,W],radial:["",K,W],conic:[Lt,K,W]},Kg,jg]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,K,W]}],"outline-w":[{outline:["",pe,Po,ua]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",u,Sr,Cr]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",c,Sr,Cr]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[pe,ua]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,Sr,Cr]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[pe,K,W]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[K,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,W]}],filter:[{filter:["","none",K,W]}],blur:[{blur:we()}],brightness:[{brightness:[pe,K,W]}],contrast:[{contrast:[pe,K,W]}],"drop-shadow":[{"drop-shadow":["","none",h,Sr,Cr]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",pe,K,W]}],"hue-rotate":[{"hue-rotate":[pe,K,W]}],invert:[{invert:["",pe,K,W]}],saturate:[{saturate:[pe,K,W]}],sepia:[{sepia:["",pe,K,W]}],"backdrop-filter":[{"backdrop-filter":["","none",K,W]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[pe,K,W]}],"backdrop-contrast":[{"backdrop-contrast":[pe,K,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,K,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,K,W]}],"backdrop-invert":[{"backdrop-invert":["",pe,K,W]}],"backdrop-opacity":[{"backdrop-opacity":[pe,K,W]}],"backdrop-saturate":[{"backdrop-saturate":[pe,K,W]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,K,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",K,W]}],ease:[{ease:["linear","initial",v,K,W]}],delay:[{delay:[pe,K,W]}],animate:[{animate:["none",w,K,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,K,W]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:Ve()}],"skew-x":[{"skew-x":Ve()}],"skew-y":[{"skew-y":Ve()}],transform:[{transform:[K,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ae()}],"translate-x":[{"translate-x":Ae()}],"translate-y":[{"translate-y":Ae()}],"translate-z":[{"translate-z":Ae()}],"translate-none":["translate-none"],zoom:[{zoom:[Lt,K,W]}],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,W]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":E()}],"scrollbar-track-color":[{"scrollbar-track":E()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,W]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[pe,Po,ua,pl]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Ml=Pg(Zg);var Lr=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var Al=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Dl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,o)=>o?o.toUpperCase():a.toLowerCase());var Zn=e=>{let t=Dl(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ir={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var zl=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var Jg=Ke({});var El=()=>Qe(Jg);var Ol=V(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:o,className:r="",children:n,iconNode:i,...s},l)=>{let{size:d=24,strokeWidth:u=2,absoluteStrokeWidth:c=!1,color:m="currentColor",className:h=""}=El()??{},x=o??c?Number(a??u)*24/Number(t??d):a??u;return Te("svg",{ref:l,...Ir,width:t??d??Ir.width,height:t??d??Ir.height,stroke:e??m,strokeWidth:x,className:Lr("lucide",h,r),...!n&&!zl(s)&&{"aria-hidden":"true"},...s},[...i.map(([p,g])=>Te(p,g)),...Array.isArray(n)?n:[n]])});var Jt=(e,t)=>{let a=V(({className:o,...r},n)=>Te(Ol,{ref:n,iconNode:t,className:Lr(`lucide-${Al(Zn(e))}`,`lucide-${e}`,o),...r}));return a.displayName=Zn(e),a};var Yg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],To=Jt("check",Yg);var Qg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Za=Jt("chevron-down",Qg);var eh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Mo=Jt("chevron-up",eh);var th=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ao=Jt("x",th);function ah(e){return window[e]}var Fl=ah("React"),oh=Fl.createElement;function Nl(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function rh(e,t){return t===void 0?Nl(e)?e:null:{...Nl(e)?e:{},key:t}}var Yt=Fl.Fragment,L=(e,t,a)=>oh(e,rh(t,a)),qe=L;function nh(e){return window[e]}var Qt=nh("ReactDOM");var Do=Qt.createPortal,kr=Qt.flushSync,K0=Qt.findDOMNode,$0=Qt.hydrate,X0=Qt.render,Z0=Qt.unstable_batchedUpdates,J0=Qt.unmountComponentAtNode,Y0=Qt.version;var zo={};Ka(zo,{Root:()=>sh,Slot:()=>sh,Slottable:()=>lh,createSlot:()=>mt,createSlottable:()=>Vl});function Bl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ih(...e){return t=>{let a=!1,o=e.map(r=>{let n=Bl(r,t);return!a&&typeof n=="function"&&(a=!0),n});if(a)return()=>{for(let r=0;r<o.length;r++){let n=o[r];typeof n=="function"?n():Bl(e[r],null)}}}}function ge(...e){return Q(ih(...e),e)}function mt(e){let t=V((a,o)=>{let{children:r,...n}=a,i=null,s=!1,l=[];Hl(r)&&typeof Pr=="function"&&(r=Pr(r._payload)),St.forEach(r,m=>{if(fh(m)){s=!0;let h=m,x="child"in h.props?h.props.child:h.props.children;Hl(x)&&typeof Pr=="function"&&(x=Pr(x._payload)),i=dh(h,x),l.push(i?.props?.children)}else l.push(m)}),i?i=Bt(i,void 0,l):!s&&St.count(r)===1&&Xa(r)&&(i=r);let d=i?ch(i):void 0,u=ge(o,d);if(!i){if(r||r===0)throw new Error(s?hh(e):gh(e));return r}let c=uh(n,i.props??{});return i.type!==nt&&(c.ref=o?u:d),Bt(i,c)});return t.displayName=`${e}.Slot`,t}var sh=mt("Slot"),_l=Symbol.for("radix.slottable");function Vl(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=_l,t}var lh=Vl("Slottable"),dh=(e,t)=>{if("child"in e.props){let a=e.props.child;return Xa(a)?Bt(a,void 0,e.props.children(a.props.children)):null}return Xa(t)?t:null};function uh(e,t){let a={...t};for(let o in t){let r=e[o],n=t[o];/^on[A-Z]/.test(o)?r&&n?a[o]=(...s)=>{let l=n(...s);return r(...s),l}:r&&(a[o]=r):o==="style"?a[o]={...r,...n}:o==="className"&&(a[o]=[r,n].filter(Boolean).join(" "))}return{...e,...a}}function ch(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function fh(e){return Xa(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_l}var ph=Symbol.for("react.lazy");function Hl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ph&&"_payload"in e&&mh(e._payload)}function mh(e){return typeof e=="object"&&e!==null&&"then"in e}var gh=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,hh=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Pr=ae[" use ".trim().toString()];var vh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=vh.reduce((e,t)=>{let a=mt(`Primitive.${t}`),o=V((r,n)=>{let{asChild:i,...s}=r,l=i?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),L(l,{...s,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ul(e,t){e&&kr(()=>e.dispatchEvent(t))}var Jn=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),xh="VisuallyHidden",bh=V((e,t)=>L(oe.span,{...e,ref:t,style:{...Jn,...e.style}}));bh.displayName=xh;function et(e,t=[]){let a=[];function o(n,i){let s=Ke(i);s.displayName=n+"Context";let l=a.length;a=[...a,i];let d=c=>{let{scope:m,children:h,...x}=c,p=m?.[e]?.[l]||s,g=me(()=>x,Object.values(x));return L(p.Provider,{value:g,children:h})};d.displayName=n+"Provider";function u(c,m,h={}){let{optional:x=!1}=h,p=m?.[e]?.[l]||s,g=Qe(p);if(g)return g;if(i!==void 0)return i;if(!x)throw new Error(`\`${c}\` must be used within \`${n}\``)}return[d,u]}let r=()=>{let n=a.map(i=>Ke(i));return function(s){let l=s?.[e]||n;return me(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[o,wh(r,...t)]}function wh(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(n){let i=o.reduce((s,{useScope:l,scopeName:d})=>{let c=l(n)[`__scope${d}`];return{...s,...c}},{});return me(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return a.scopeName=t.scopeName,a}function Ja(e){let t=e+"CollectionProvider",[a,o]=et(t),[r,n]=a(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{let{scope:g,children:v}=p,w=z(null),b=z(new Map).current;return L(r,{scope:g,itemMap:b,collectionRef:w,children:v})};i.displayName=t;let s=e+"CollectionSlot",l=mt(s),d=V((p,g)=>{let{scope:v,children:w}=p,b=n(s,v),C=ge(g,b.collectionRef);return L(l,{ref:C,children:w})});d.displayName=s;let u=e+"CollectionItemSlot",c="data-radix-collection-item",m=mt(u),h=V((p,g)=>{let{scope:v,children:w,...b}=p,C=z(null),S=ge(g,C),R=n(u,v);return H(()=>(R.itemMap.set(C,{ref:C,...b}),()=>{R.itemMap.delete(C)})),L(m,{[c]:"",ref:S,children:w})});h.displayName=u;function x(p){let g=n(e+"CollectionConsumer",p);return Q(()=>{let w=g.collectionRef.current;if(!w)return[];let b=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((R,T)=>b.indexOf(R.ref.current)-b.indexOf(T.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:d,ItemSlot:h},x,o]}var hC=!!(typeof window<"u"&&window.document&&window.document.createElement);function se(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r||!r.defaultPrevented)return t?.(r)}}var ke=globalThis?.document?Ht:()=>{};var yh=ae[" useInsertionEffect ".trim().toString()]||ke;function gt({prop:e,defaultProp:t,onChange:a=()=>{},caller:o}){let[r,n,i]=Ch({defaultProp:t,onChange:a}),s=e!==void 0,l=s?e:r;{let u=z(e!==void 0);H(()=>{let c=u.current;c!==s&&console.warn(`${o} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,o])}let d=Q(u=>{if(s){let c=Sh(u)?u(e):u;c!==e&&i.current?.(c)}else n(u)},[s,e,n,i]);return[l,d]}function Ch({defaultProp:e,onChange:t}){let[a,o]=M(e),r=z(a),n=z(t);return yh(()=>{n.current=t},[t]),H(()=>{r.current!==a&&(n.current?.(a),r.current=a)},[a,r]),[a,o,n]}function Sh(e){return typeof e=="function"}function Lh(e,t){return wr((a,o)=>t[a][o]??a,e)}var Vt=e=>{let{present:t,children:a}=e,o=Ih(t),r=typeof a=="function"?a({present:o.isPresent}):St.only(a),n=kh(o.ref,Rh(r));return typeof a=="function"||o.isPresent?Bt(r,{ref:n}):null};Vt.displayName="Presence";function Ih(e){let[t,a]=M(),o=z(null),r=z(e),n=z("none"),i=z(void 0),s=e?"mounted":"unmounted",[l,d]=Lh(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return H(()=>{l==="mounted"?(n.current=i.current??Eo(o.current),i.current=void 0):n.current="none"},[l]),ke(()=>{let u=o.current,c=r.current;if(c!==e){let h=n.current,x=Eo(u);e?(i.current=x,d("MOUNT")):x==="none"||u?.display==="none"?d("UNMOUNT"):d(c&&h!==x?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,d]),ke(()=>{if(t){let u,c=t.ownerDocument.defaultView??window,m=x=>{let g=Eo(o.current).includes(CSS.escape(x.animationName));if(x.target===t&&g&&(d("ANIMATION_END"),!r.current)){let v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=x=>{x.target===t&&(n.current=Eo(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:Q(u=>{if(u){let c=getComputedStyle(u);o.current=c,i.current=Eo(c)}else o.current=null;a(u)},[])}}function ql(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kh(...e){let t=z(e);return t.current=e,Q(a=>{let o=t.current,r=!1,n=o.map(i=>{let s=ql(i,a);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){let s=n[i];typeof s=="function"?s():ql(o[i],null)}}},[])}function Eo(e){return e?.animationName||"none"}function Rh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Ph=ae[" useId ".trim().toString()]||(()=>{}),Th=0;function dt(e){let[t,a]=M(Ph());return ke(()=>{e||a(o=>o??String(Th++))},[e]),e||(t?`radix-${t}`:"")}var Mh=Ke(void 0);function ea(e){let t=Qe(Mh);return e||t||"ltr"}var vt={};Ka(vt,{Close:()=>Ad,Content:()=>Ld,Description:()=>Td,Dialog:()=>xd,DialogClose:()=>Ad,DialogContent:()=>Ld,DialogDescription:()=>Td,DialogOverlay:()=>Sd,DialogPortal:()=>Cd,DialogTitle:()=>Rd,DialogTrigger:()=>wd,Overlay:()=>Sd,Portal:()=>Cd,Root:()=>xd,Title:()=>Rd,Trigger:()=>wd,WarningProvider:()=>Lv,createDialogScope:()=>vv});function $e(e){let t=z(e);return H(()=>{t.current=e}),me(()=>((...a)=>t.current?.(...a)),[])}var Ah="DismissableLayer",Yn="dismissableLayer.update",Dh="dismissableLayer.pointerDownOutside",zh="dismissableLayer.focusOutside",jl,Qn=Ke({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Oo=V((e,t)=>{let{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:r,onPointerDownOutside:n,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...d}=e,u=Qe(Qn),[c,m]=M(null),h=c?.ownerDocument??globalThis?.document,[,x]=M({}),p=ge(t,m),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=v?g.indexOf(v):-1,b=c?g.indexOf(c):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=w,R=z(!1),T=Fh(D=>{n?.(D),s?.(D),D.defaultPrevented||l?.()},{ownerDocument:h,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:Q(D=>{if(!(D instanceof Node))return!1;let O=[...u.branches].some(U=>U.contains(D));return S&&!O},[u.branches,S])}),I=Bh(D=>{if(o&&R.current)return;let O=D.target;[...u.branches].some(q=>q.contains(O))||(i?.(D),s?.(D),D.defaultPrevented||l?.())},h),F=c?b===g.length-1:!1,X=$e(D=>{D.key==="Escape"&&(r?.(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))});return H(()=>{if(F)return h.addEventListener("keydown",X,{capture:!0}),()=>h.removeEventListener("keydown",X,{capture:!0})},[h,F,X]),H(()=>{if(c)return a&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(jl=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Wl(),()=>{a&&(u.layersWithOutsidePointerEventsDisabled.delete(c),u.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=jl))}},[c,h,a,u]),H(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Wl())},[c,u]),H(()=>{let D=()=>x({});return document.addEventListener(Yn,D),()=>document.removeEventListener(Yn,D)},[]),L(oe.div,{...d,ref:p,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:se(e.onFocusCapture,I.onFocusCapture),onBlurCapture:se(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:se(e.onPointerDownCapture,T.onPointerDownCapture)})});Oo.displayName=Ah;var Eh="DismissableLayerBranch",Oh=V((e,t)=>{let a=Qe(Qn),o=z(null),r=ge(t,o);return H(()=>{let n=o.current;if(n)return a.branches.add(n),()=>{a.branches.delete(n)}},[a.branches]),L(oe.div,{...e,ref:r})});Oh.displayName=Eh;function Gl(){let e=Qe(Qn),[t,a]=M(null);return H(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}var Nh=()=>!0;function Fh(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:n,shouldHandlePointerDownOutside:i=Nh}=t,s=$e(e),l=z(!1),d=z(!1),u=z(new Map),c=z(()=>{});return H(()=>{function m(){d.current=!1,r.current=!1,u.current.clear()}function h(){return Array.from(u.current.values()).some(Boolean)}function x(b){if(!d.current)return;let C=b.target;C instanceof Node&&[...n].some(R=>R.contains(C))||u.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{d.current&&c.current()},0)}function p(b){d.current&&u.current.set(b.type,!1)}let g=b=>{if(b.target&&!l.current){let S=function(){a.removeEventListener("click",c.current);let T=h();m(),T||Kl(Dh,s,R,{discrete:!0})};var C=S;if(!i(b.target)){a.removeEventListener("click",c.current),m(),l.current=!1;return}let R={originalEvent:b};d.current=!0,r.current=o&&b.button===0,u.current.clear(),!o||b.button!==0?S():(a.removeEventListener("click",c.current),c.current=S,a.addEventListener("click",c.current,{once:!0}))}else a.removeEventListener("click",c.current),m();l.current=!1},v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let b of v)a.addEventListener(b,x,!0),a.addEventListener(b,p);let w=window.setTimeout(()=>{a.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(w),a.removeEventListener("pointerdown",g),a.removeEventListener("click",c.current);for(let b of v)a.removeEventListener(b,x,!0),a.removeEventListener(b,p)}},[a,s,o,r,n,i]),{onPointerDownCapture:()=>l.current=!0}}function Bh(e,t=globalThis?.document){let a=$e(e),o=z(!1);return H(()=>{let r=n=>{n.target&&!o.current&&Kl(zh,a,{originalEvent:n},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Wl(){let e=new CustomEvent(Yn);document.dispatchEvent(e)}function Kl(e,t,a,{discrete:o}){let r=a.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),o?Ul(r,n):r.dispatchEvent(n)}var ei="focusScope.autoFocusOnMount",ti="focusScope.autoFocusOnUnmount",$l={bubbles:!1,cancelable:!0},Hh="FocusScope",No=V((e,t)=>{let{loop:a=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:n,...i}=e,[s,l]=M(null),d=$e(r),u=$e(n),c=z(null),m=ge(t,l),h=z({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H(()=>{if(o){let w=function(R){if(h.paused||!s)return;let T=R.target;s.contains(T)?c.current=T:ta(c.current,{select:!0})},b=function(R){if(h.paused||!s)return;let T=R.relatedTarget;T!==null&&(s.contains(T)||ta(c.current,{select:!0}))},C=function(R){if(document.activeElement===document.body)for(let I of R)I.removedNodes.length>0&&ta(s)};var p=w,g=b,v=C;document.addEventListener("focusin",w),document.addEventListener("focusout",b);let S=new MutationObserver(C);return s&&S.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",b),S.disconnect()}}},[o,s,h.paused]),H(()=>{if(s){Zl.add(h);let p=document.activeElement;if(!s.contains(p)){let v=new CustomEvent(ei,$l);s.addEventListener(ei,d),s.dispatchEvent(v),v.defaultPrevented||(_h(Wh(Yl(s)),{select:!0}),document.activeElement===p&&ta(s))}return()=>{s.removeEventListener(ei,d),setTimeout(()=>{let v=new CustomEvent(ti,$l);s.addEventListener(ti,u),s.dispatchEvent(v),v.defaultPrevented||ta(p??document.body,{select:!0}),s.removeEventListener(ti,u),Zl.remove(h)},0)}}},[s,d,u,h]);let x=Q(p=>{if(!a&&!o||h.paused)return;let g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(g&&v){let w=p.currentTarget,[b,C]=Vh(w);b&&C?!p.shiftKey&&v===C?(p.preventDefault(),a&&ta(b,{select:!0})):p.shiftKey&&v===b&&(p.preventDefault(),a&&ta(C,{select:!0})):v===w&&p.preventDefault()}},[a,o,h.paused]);return L(oe.div,{tabIndex:-1,...i,ref:m,onKeyDown:x})});No.displayName=Hh;function _h(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(ta(o,{select:t}),document.activeElement!==a)return}function Vh(e){let t=Yl(e),a=Xl(t,e),o=Xl(t.reverse(),e);return[a,o]}function Yl(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function Xl(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let o of e)if(!(a?!o.checkVisibility({checkVisibilityCSS:!0}):Uh(o,{upTo:t})))return o}function Uh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function qh(e){return e instanceof HTMLInputElement&&"select"in e}function ta(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&qh(e)&&t&&e.select()}}var Zl=jh();function jh(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Jl(e,t),e.unshift(t)},remove(t){e=Jl(e,t),e[0]?.resume()}}}function Jl(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}function Wh(e){return e.filter(t=>t.tagName!=="A")}var Gh="Portal",Fo=V((e,t)=>{let{container:a,...o}=e,[r,n]=M(!1);ke(()=>n(!0),[]);let i=a||r&&globalThis?.document?.body;return i?Do(L(oe.div,{...o,ref:t}),i):null});Fo.displayName=Gh;var Tr=0,Ya=null;function Mr(){H(()=>{Ya||(Ya={start:Ql(),end:Ql()});let{start:e,end:t}=Ya;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Tr++,()=>{Tr===1&&(Ya?.start.remove(),Ya?.end.remove(),Ya=null),Tr=Math.max(0,Tr-1)}},[])}function Ql(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tt=function(){return tt=Object.assign||function(t){for(var a,o=1,r=arguments.length;o<r;o++){a=arguments[o];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},tt.apply(this,arguments)};function Ar(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(a[o[r]]=e[o[r]]);return a}function ed(e,t,a){if(a||arguments.length===2)for(var o=0,r=t.length,n;o<r;o++)(n||!(o in t))&&(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var fa="right-scroll-bar-position",pa="width-before-scroll-bar",ai="with-scroll-bars-hidden",oi="--removed-body-scroll-bar-size";function Dr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function td(e,t){var a=M(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(o){var r=a.value;r!==o&&(a.value=o,a.callback(o,r))}}}})[0];return a.callback=t,a.facade}var Kh=typeof window<"u"?Ht:H,ad=new WeakMap;function ri(e,t){var a=td(t||null,function(o){return e.forEach(function(r){return Dr(r,o)})});return Kh(function(){var o=ad.get(a);if(o){var r=new Set(o),n=new Set(e),i=a.current;r.forEach(function(s){n.has(s)||Dr(s,null)}),n.forEach(function(s){r.has(s)||Dr(s,i)})}ad.set(a,e)},[e]),a}function $h(e){return e}function Xh(e,t){t===void 0&&(t=$h);var a=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(n){var i=t(n,o);return a.push(i),function(){a=a.filter(function(s){return s!==i})}},assignSyncMedium:function(n){for(o=!0;a.length;){var i=a;a=[],i.forEach(n)}a={push:function(s){return n(s)},filter:function(){return a}}},assignMedium:function(n){o=!0;var i=[];if(a.length){var s=a;a=[],s.forEach(n),i=a}var l=function(){var u=i;i=[],u.forEach(n)},d=function(){return Promise.resolve().then(l)};d(),a={push:function(u){i.push(u),d()},filter:function(u){return i=i.filter(u),a}}}};return r}function ni(e){e===void 0&&(e={});var t=Xh(null);return t.options=tt({async:!0,ssr:!1},e),t}var od=function(e){var t=e.sideCar,a=Ar(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return Te(o,tt({},a))};od.isSideCarExport=!0;function ii(e,t){return e.useMedium(t),od}var zr=ni();var si=function(){},Bo=V(function(e,t){var a=z(null),o=M({onScrollCapture:si,onWheelCapture:si,onTouchMoveCapture:si}),r=o[0],n=o[1],i=e.forwardProps,s=e.children,l=e.className,d=e.removeScrollBar,u=e.enabled,c=e.shards,m=e.sideCar,h=e.noRelative,x=e.noIsolation,p=e.inert,g=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,b=e.gapMode,C=Ar(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,R=ri([a,t]),T=tt(tt({},C),r);return Te(nt,null,u&&Te(S,{sideCar:zr,removeScrollBar:d,shards:c,noRelative:h,noIsolation:x,inert:p,setCallbacks:n,allowPinchZoom:!!g,lockRef:a,gapMode:b}),i?Bt(St.only(s),tt(tt({},T),{ref:R})):Te(w,tt({},T,{className:l,ref:R}),s))});Bo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bo.classNames={fullWidth:pa,zeroRight:fa};var rd;var nd=function(){if(rd)return rd;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nd();return t&&e.setAttribute("nonce",t),e}function Jh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var li=function(){var e=0,t=null;return{add:function(a){e==0&&(t=Zh())&&(Jh(t,a),Yh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var di=function(){var e=li();return function(t,a){H(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var Ho=function(){var e=di(),t=function(a){var o=a.styles,r=a.dynamic;return e(o,r),null};return t};var Qh={left:0,top:0,right:0,gap:0},ui=function(e){return parseInt(e||"",10)||0},ev=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[ui(a),ui(o),ui(r)]},ci=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qh;var t=ev(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var tv=Ho(),Qa="data-scroll-locked",av=function(e,t,a,o){var r=e.left,n=e.top,i=e.right,s=e.gap;return a===void 0&&(a="margin"),`
3
- .`.concat(ai,` {
4
- overflow: hidden `).concat(o,`;
5
- padding-right: `).concat(s,"px ").concat(o,`;
2
+ "use strict";(()=>{var QT=Object.create;var Sc=Object.defineProperty;var YT=Object.getOwnPropertyDescriptor;var JT=Object.getOwnPropertyNames;var $T=Object.getPrototypeOf,ZT=Object.prototype.hasOwnProperty;var sv=e=>{throw TypeError(e)};var XT=(e,t,a)=>t in e?Sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var eR=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_r=(e,t)=>{for(var a in t)Sc(e,a,{get:t[a],enumerable:!0})},tR=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of JT(t))!ZT.call(e,n)&&n!==a&&Sc(e,n,{get:()=>t[n],enumerable:!(r=YT(t,n))||r.enumerable});return e};var uv=(e,t,a)=>(a=e!=null?QT($T(e)):{},tR(t||!e||!e.__esModule?Sc(a,"default",{value:e,enumerable:!0}):a,e));var te=(e,t,a)=>XT(e,typeof t!="symbol"?t+"":t,a),lv=(e,t,a)=>t.has(e)||sv("Cannot "+a);var zi=(e,t,a)=>(lv(e,t,"read from private field"),a?a.call(e):t.get(e)),eh=(e,t,a)=>t.has(e)?sv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),th=(e,t,a,r)=>(lv(e,t,"write to private field"),r?r.call(e,a):t.set(e,a),a);var Mb=ct(L2=>{var k2={};k2.StyleSheet=function(){this.parentStyleSheet=null};L2.StyleSheet=k2.StyleSheet});var Oa=ct(E2=>{var wt={};wt.CSSRule=function(){this.parentRule=null,this.parentStyleSheet=null};wt.CSSRule.UNKNOWN_RULE=0;wt.CSSRule.STYLE_RULE=1;wt.CSSRule.CHARSET_RULE=2;wt.CSSRule.IMPORT_RULE=3;wt.CSSRule.MEDIA_RULE=4;wt.CSSRule.FONT_FACE_RULE=5;wt.CSSRule.PAGE_RULE=6;wt.CSSRule.KEYFRAMES_RULE=7;wt.CSSRule.KEYFRAME_RULE=8;wt.CSSRule.MARGIN_RULE=9;wt.CSSRule.NAMESPACE_RULE=10;wt.CSSRule.COUNTER_STYLE_RULE=11;wt.CSSRule.SUPPORTS_RULE=12;wt.CSSRule.DOCUMENT_RULE=13;wt.CSSRule.FONT_FEATURE_VALUES_RULE=14;wt.CSSRule.VIEWPORT_RULE=15;wt.CSSRule.REGION_STYLE_RULE=16;wt.CSSRule.prototype={constructor:wt.CSSRule};E2.CSSRule=wt.CSSRule});var Bl=ct(T2=>{var qa={CSSStyleDeclaration:Ci().CSSStyleDeclaration,CSSRule:Oa().CSSRule};qa.CSSStyleRule=function(){qa.CSSRule.call(this),this.selectorText="",this.style=new qa.CSSStyleDeclaration,this.style.parentRule=this};qa.CSSStyleRule.prototype=new qa.CSSRule;qa.CSSStyleRule.prototype.constructor=qa.CSSStyleRule;qa.CSSStyleRule.prototype.type=1;Object.defineProperty(qa.CSSStyleRule.prototype,"cssText",{get:function(){var e;return this.selectorText?e=this.selectorText+" {"+this.style.cssText+"}":e="",e},set:function(e){var t=qa.CSSStyleRule.parse(e);this.style=t.style,this.selectorText=t.selectorText}});qa.CSSStyleRule.parse=function(e){for(var t=0,a="selector",r,n=t,o="",i={selector:!0,value:!0},s=new qa.CSSStyleRule,u,l="",c;c=e.charAt(t);t++)switch(c){case" ":case" ":case"\r":case`
3
+ `:case"\f":if(i[a])switch(e.charAt(t-1)){case" ":case" ":case"\r":case`
4
+ `:case"\f":break;default:o+=" ";break}break;case'"':if(n=t+1,r=e.indexOf('"',n)+1,!r)throw'" is missing';o+=e.slice(t,r),t=r-1;break;case"'":if(n=t+1,r=e.indexOf("'",n)+1,!r)throw"' is missing";o+=e.slice(t,r),t=r-1;break;case"/":if(e.charAt(t+1)==="*"){if(t+=2,r=e.indexOf("*/",t),r===-1)throw new SyntaxError("Missing */");t=r+1}else o+=c;break;case"{":a==="selector"&&(s.selectorText=o.trim(),o="",a="name");break;case":":a==="name"?(u=o.trim(),o="",a="value"):o+=c;break;case"!":a==="value"&&e.indexOf("!important",t)===t?(l="important",t+=9):o+=c;break;case";":a==="value"?(s.style.setProperty(u,o.trim(),l),l="",o="",a="name"):o+=c;break;case"}":if(a==="value")s.style.setProperty(u,o.trim(),l),l="",o="";else{if(a==="name")break;o+=c}a="selector";break;default:o+=c;break}return s};T2.CSSStyleRule=qa.CSSStyleRule});var Fl=ct(R2=>{var ur={StyleSheet:Mb().StyleSheet,CSSStyleRule:Bl().CSSStyleRule};ur.CSSStyleSheet=function(){ur.StyleSheet.call(this),this.cssRules=[]};ur.CSSStyleSheet.prototype=new ur.StyleSheet;ur.CSSStyleSheet.prototype.constructor=ur.CSSStyleSheet;ur.CSSStyleSheet.prototype.insertRule=function(e,t){if(t<0||t>this.cssRules.length)throw new RangeError("INDEX_SIZE_ERR");var a=ur.parse(e).cssRules[0];return a.parentStyleSheet=this,this.cssRules.splice(t,0,a),t};ur.CSSStyleSheet.prototype.deleteRule=function(e){if(e<0||e>=this.cssRules.length)throw new RangeError("INDEX_SIZE_ERR");this.cssRules.splice(e,1)};ur.CSSStyleSheet.prototype.toString=function(){for(var e="",t=this.cssRules,a=0;a<t.length;a++)e+=t[a].cssText+`
5
+ `;return e};R2.CSSStyleSheet=ur.CSSStyleSheet;ur.parse=jf().parse});var Kf=ct(P2=>{var qf={};qf.MediaList=function(){this.length=0};qf.MediaList.prototype={constructor:qf.MediaList,get mediaText(){return Array.prototype.join.call(this,", ")},set mediaText(e){for(var t=e.split(","),a=this.length=t.length,r=0;r<a;r++)this[r]=t[r].trim()},appendMedium:function(e){Array.prototype.indexOf.call(this,e)===-1&&(this[this.length]=e,this.length++)},deleteMedium:function(e){var t=Array.prototype.indexOf.call(this,e);t!==-1&&Array.prototype.splice.call(this,t,1)}};P2.MediaList=qf.MediaList});var Db=ct(N2=>{var Mr={CSSRule:Oa().CSSRule,CSSStyleSheet:Fl().CSSStyleSheet,MediaList:Kf().MediaList};Mr.CSSImportRule=function(){Mr.CSSRule.call(this),this.href="",this.media=new Mr.MediaList,this.styleSheet=new Mr.CSSStyleSheet};Mr.CSSImportRule.prototype=new Mr.CSSRule;Mr.CSSImportRule.prototype.constructor=Mr.CSSImportRule;Mr.CSSImportRule.prototype.type=3;Object.defineProperty(Mr.CSSImportRule.prototype,"cssText",{get:function(){var e=this.media.mediaText;return"@import url("+this.href+")"+(e?" "+e:"")+";"},set:function(e){for(var t=0,a="",r="",n,o;o=e.charAt(t);t++)switch(o){case" ":case" ":case"\r":case`
6
+ `:case"\f":a==="after-import"?a="url":r+=o;break;case"@":!a&&e.indexOf("@import",t)===t&&(a="after-import",t+=6,r="");break;case"u":if(a==="url"&&e.indexOf("url(",t)===t){if(n=e.indexOf(")",t+1),n===-1)throw t+': ")" not found';t+=4;var i=e.slice(t,n);i[0]===i[i.length-1]&&(i[0]==='"'||i[0]==="'")&&(i=i.slice(1,-1)),this.href=i,t=n,a="media"}break;case'"':if(a==="url"){if(n=e.indexOf('"',t+1),!n)throw t+`: '"' not found`;this.href=e.slice(t+1,n),t=n,a="media"}break;case"'":if(a==="url"){if(n=e.indexOf("'",t+1),!n)throw t+`: "'" not found`;this.href=e.slice(t+1,n),t=n,a="media"}break;case";":a==="media"&&r&&(this.media.mediaText=r.trim());break;default:a==="media"&&(r+=o);break}}});N2.CSSImportRule=Mr.CSSImportRule});var Ii=ct(M2=>{var an={CSSRule:Oa().CSSRule};an.CSSGroupingRule=function(){an.CSSRule.call(this),this.cssRules=[]};an.CSSGroupingRule.prototype=new an.CSSRule;an.CSSGroupingRule.prototype.constructor=an.CSSGroupingRule;an.CSSGroupingRule.prototype.insertRule=function(t,a){if(a<0||a>this.cssRules.length)throw new RangeError("INDEX_SIZE_ERR");var r=an.parse(t).cssRules[0];return r.parentRule=this,this.cssRules.splice(a,0,r),a};an.CSSGroupingRule.prototype.deleteRule=function(t){if(t<0||t>=this.cssRules.length)throw new RangeError("INDEX_SIZE_ERR");this.cssRules.splice(t,1)[0].parentRule=null};M2.CSSGroupingRule=an.CSSGroupingRule});var Gs=ct(D2=>{var Dn={CSSRule:Oa().CSSRule,CSSGroupingRule:Ii().CSSGroupingRule};Dn.CSSConditionRule=function(){Dn.CSSGroupingRule.call(this),this.cssRules=[]};Dn.CSSConditionRule.prototype=new Dn.CSSGroupingRule;Dn.CSSConditionRule.prototype.constructor=Dn.CSSConditionRule;Dn.CSSConditionRule.prototype.conditionText="";Dn.CSSConditionRule.prototype.cssText="";D2.CSSConditionRule=Dn.CSSConditionRule});var Qf=ct(O2=>{var rn={CSSRule:Oa().CSSRule,CSSGroupingRule:Ii().CSSGroupingRule,CSSConditionRule:Gs().CSSConditionRule,MediaList:Kf().MediaList};rn.CSSMediaRule=function(){rn.CSSConditionRule.call(this),this.media=new rn.MediaList};rn.CSSMediaRule.prototype=new rn.CSSConditionRule;rn.CSSMediaRule.prototype.constructor=rn.CSSMediaRule;rn.CSSMediaRule.prototype.type=4;Object.defineProperties(rn.CSSMediaRule.prototype,{conditionText:{get:function(){return this.media.mediaText},set:function(e){this.media.mediaText=e},configurable:!0,enumerable:!0},cssText:{get:function(){for(var e=[],t=0,a=this.cssRules.length;t<a;t++)e.push(this.cssRules[t].cssText);return"@media "+this.media.mediaText+" {"+e.join("")+"}"},configurable:!0,enumerable:!0}});O2.CSSMediaRule=rn.CSSMediaRule});var Yf=ct(_2=>{var On={CSSRule:Oa().CSSRule,CSSGroupingRule:Ii().CSSGroupingRule,CSSConditionRule:Gs().CSSConditionRule};On.CSSSupportsRule=function(){On.CSSConditionRule.call(this)};On.CSSSupportsRule.prototype=new On.CSSConditionRule;On.CSSSupportsRule.prototype.constructor=On.CSSSupportsRule;On.CSSSupportsRule.prototype.type=12;Object.defineProperty(On.CSSSupportsRule.prototype,"cssText",{get:function(){for(var e=[],t=0,a=this.cssRules.length;t<a;t++)e.push(this.cssRules[t].cssText);return"@supports "+this.conditionText+" {"+e.join("")+"}"}});_2.CSSSupportsRule=On.CSSSupportsRule});var Ob=ct(B2=>{var nn={CSSStyleDeclaration:Ci().CSSStyleDeclaration,CSSRule:Oa().CSSRule};nn.CSSFontFaceRule=function(){nn.CSSRule.call(this),this.style=new nn.CSSStyleDeclaration,this.style.parentRule=this};nn.CSSFontFaceRule.prototype=new nn.CSSRule;nn.CSSFontFaceRule.prototype.constructor=nn.CSSFontFaceRule;nn.CSSFontFaceRule.prototype.type=5;Object.defineProperty(nn.CSSFontFaceRule.prototype,"cssText",{get:function(){return"@font-face {"+this.style.cssText+"}"}});B2.CSSFontFaceRule=nn.CSSFontFaceRule});var _b=ct(F2=>{var _n={CSSRule:Oa().CSSRule};_n.CSSHostRule=function(){_n.CSSRule.call(this),this.cssRules=[]};_n.CSSHostRule.prototype=new _n.CSSRule;_n.CSSHostRule.prototype.constructor=_n.CSSHostRule;_n.CSSHostRule.prototype.type=1001;Object.defineProperty(_n.CSSHostRule.prototype,"cssText",{get:function(){for(var e=[],t=0,a=this.cssRules.length;t<a;t++)e.push(this.cssRules[t].cssText);return"@host {"+e.join("")+"}"}});F2.CSSHostRule=_n.CSSHostRule});var Jf=ct(H2=>{var on={CSSRule:Oa().CSSRule,CSSStyleDeclaration:Ci().CSSStyleDeclaration};on.CSSKeyframeRule=function(){on.CSSRule.call(this),this.keyText="",this.style=new on.CSSStyleDeclaration,this.style.parentRule=this};on.CSSKeyframeRule.prototype=new on.CSSRule;on.CSSKeyframeRule.prototype.constructor=on.CSSKeyframeRule;on.CSSKeyframeRule.prototype.type=8;Object.defineProperty(on.CSSKeyframeRule.prototype,"cssText",{get:function(){return this.keyText+" {"+this.style.cssText+"} "}});H2.CSSKeyframeRule=on.CSSKeyframeRule});var $f=ct(z2=>{var Bn={CSSRule:Oa().CSSRule};Bn.CSSKeyframesRule=function(){Bn.CSSRule.call(this),this.name="",this.cssRules=[]};Bn.CSSKeyframesRule.prototype=new Bn.CSSRule;Bn.CSSKeyframesRule.prototype.constructor=Bn.CSSKeyframesRule;Bn.CSSKeyframesRule.prototype.type=7;Object.defineProperty(Bn.CSSKeyframesRule.prototype,"cssText",{get:function(){for(var e=[],t=0,a=this.cssRules.length;t<a;t++)e.push(" "+this.cssRules[t].cssText);return"@"+(this._vendorPrefix||"")+"keyframes "+this.name+` {
7
+ `+e.join(`
8
+ `)+`
9
+ }`}});z2.CSSKeyframesRule=Bn.CSSKeyframesRule});var Bb=ct(V2=>{var Zf={};Zf.CSSValue=function(){};Zf.CSSValue.prototype={constructor:Zf.CSSValue,set cssText(e){var t=this._getConstructorName();throw new Error('DOMException: property "cssText" of "'+t+'" is readonly and can not be replaced with "'+e+'"!')},get cssText(){var e=this._getConstructorName();throw new Error('getter "cssText" of "'+e+'" is not implemented!')},_getConstructorName:function(){var e=this.constructor.toString(),t=e.match(/function\s([^\(]+)/),a=t[1];return a}};V2.CSSValue=Zf.CSSValue});var Fb=ct(U2=>{var Dr={CSSValue:Bb().CSSValue};Dr.CSSValueExpression=function(t,a){this._token=t,this._idx=a};Dr.CSSValueExpression.prototype=new Dr.CSSValue;Dr.CSSValueExpression.prototype.constructor=Dr.CSSValueExpression;Dr.CSSValueExpression.prototype.parse=function(){for(var e=this._token,t=this._idx,a="",r="",n="",o,i=[];;++t){if(a=e.charAt(t),a===""){n="css expression error: unfinished expression!";break}switch(a){case"(":i.push(a),r+=a;break;case")":i.pop(a),r+=a;break;case"/":(o=this._parseJSComment(e,t))?o.error?n="css expression error: unfinished comment in expression!":t=o.idx:(o=this._parseJSRexExp(e,t))?(t=o.idx,r+=o.text):r+=a;break;case"'":case'"':o=this._parseJSString(e,t,a),o?(t=o.idx,r+=o.text):r+=a;break;default:r+=a;break}if(n||i.length===0)break}var s;return n?s={error:n}:s={idx:t,expression:r},s};Dr.CSSValueExpression.prototype._parseJSComment=function(e,t){var a=e.charAt(t+1),r;if(a==="/"||a==="*"){var n=t,o,i;if(a==="/"?i=`
10
+ `:a==="*"&&(i="*/"),o=e.indexOf(i,n+1+1),o!==-1)return o=o+i.length-1,r=e.substring(t,o+1),{idx:o,text:r};var s="css expression error: unfinished comment in expression!";return{error:s}}else return!1};Dr.CSSValueExpression.prototype._parseJSString=function(e,t,a){var r=this._findMatchedIdx(e,t,a),n;return r===-1?!1:(n=e.substring(t,r+a.length),{idx:r,text:n})};Dr.CSSValueExpression.prototype._parseJSRexExp=function(e,t){var a=e.substring(0,t).replace(/\s+$/,""),r=[/^$/,/\($/,/\[$/,/\!$/,/\+$/,/\-$/,/\*$/,/\/\s+/,/\%$/,/\=$/,/\>$/,/<$/,/\&$/,/\|$/,/\^$/,/\~$/,/\?$/,/\,$/,/delete$/,/in$/,/instanceof$/,/new$/,/typeof$/,/void$/],n=r.some(function(i){return i.test(a)});if(n){var o="/";return this._parseJSString(e,t,o)}else return!1};Dr.CSSValueExpression.prototype._findMatchedIdx=function(e,t,a){for(var r=t,n,o=-1;;)if(n=e.indexOf(a,r+1),n===-1){n=o;break}else{var i=e.substring(t+1,n),s=i.match(/\\+$/);if(!s||s[0]%2===0)break;r=n}var u=e.indexOf(`
11
+ `,t+1);return u<n&&(n=o),n};U2.CSSValueExpression=Dr.CSSValueExpression});var Hb=ct(G2=>{var Xf={};Xf.MatcherList=function(){this.length=0};Xf.MatcherList.prototype={constructor:Xf.MatcherList,get matcherText(){return Array.prototype.join.call(this,", ")},set matcherText(e){for(var t=e.split(","),a=this.length=t.length,r=0;r<a;r++)this[r]=t[r].trim()},appendMatcher:function(e){Array.prototype.indexOf.call(this,e)===-1&&(this[this.length]=e,this.length++)},deleteMatcher:function(e){var t=Array.prototype.indexOf.call(this,e);t!==-1&&Array.prototype.splice.call(this,t,1)}};G2.MatcherList=Xf.MatcherList});var zb=ct(W2=>{var sn={CSSRule:Oa().CSSRule,MatcherList:Hb().MatcherList};sn.CSSDocumentRule=function(){sn.CSSRule.call(this),this.matcher=new sn.MatcherList,this.cssRules=[]};sn.CSSDocumentRule.prototype=new sn.CSSRule;sn.CSSDocumentRule.prototype.constructor=sn.CSSDocumentRule;sn.CSSDocumentRule.prototype.type=10;Object.defineProperty(sn.CSSDocumentRule.prototype,"cssText",{get:function(){for(var e=[],t=0,a=this.cssRules.length;t<a;t++)e.push(this.cssRules[t].cssText);return"@-moz-document "+this.matcher.matcherText+" {"+e.join("")+"}"}});W2.CSSDocumentRule=sn.CSSDocumentRule});var jf=ct(j2=>{var et={};et.parse=function(t){for(var a=0,r="before-selector",n,o="",i=0,s={selector:!0,value:!0,"value-parenthesis":!0,atRule:!0,"importRule-begin":!0,importRule:!0,atBlock:!0,conditionBlock:!0,"documentRule-begin":!0},u=new et.CSSStyleSheet,l=u,c,d=[],f=!1,p,g,m="",x,v,w,y,S,A,L,C,I=/@(-(?:\w+-)+)?keyframes/g,D=function(J){var ee=t.substring(0,a).split(`
12
+ `),T=ee.length,_=ee.pop().length+1,Q=new Error(J+" (line "+T+", char "+_+")");throw Q.line=T,Q.char=_,Q.styleSheet=u,Q},Z;Z=t.charAt(a);a++)switch(Z){case" ":case" ":case"\r":case`
13
+ `:case"\f":s[r]&&(o+=Z);break;case'"':n=a+1;do n=t.indexOf('"',n)+1,n||D('Unmatched "');while(t[n-2]==="\\");switch(o+=t.slice(a,n),a=n-1,r){case"before-value":r="value";break;case"importRule-begin":r="importRule";break}break;case"'":n=a+1;do n=t.indexOf("'",n)+1,n||D("Unmatched '");while(t[n-2]==="\\");switch(o+=t.slice(a,n),a=n-1,r){case"before-value":r="value";break;case"importRule-begin":r="importRule";break}break;case"/":t.charAt(a+1)==="*"?(a+=2,n=t.indexOf("*/",a),n===-1?D("Missing */"):a=n+1):o+=Z,r==="importRule-begin"&&(o+=" ",r="importRule");break;case"@":if(t.indexOf("@-moz-document",a)===a){r="documentRule-begin",L=new et.CSSDocumentRule,L.__starts=a,a+=13,o="";break}else if(t.indexOf("@media",a)===a){r="atBlock",v=new et.CSSMediaRule,v.__starts=a,a+=5,o="";break}else if(t.indexOf("@supports",a)===a){r="conditionBlock",w=new et.CSSSupportsRule,w.__starts=a,a+=8,o="";break}else if(t.indexOf("@host",a)===a){r="hostRule-begin",a+=4,C=new et.CSSHostRule,C.__starts=a,o="";break}else if(t.indexOf("@import",a)===a){r="importRule-begin",a+=6,o+="@import";break}else if(t.indexOf("@font-face",a)===a){r="fontFaceRule-begin",a+=9,S=new et.CSSFontFaceRule,S.__starts=a,o="";break}else{I.lastIndex=a;var N=I.exec(t);if(N&&N.index===a){r="keyframesRule-begin",A=new et.CSSKeyframesRule,A.__starts=a,A._vendorPrefix=N[1],a+=N[0].length-1,o="";break}else r==="selector"&&(r="atRule")}o+=Z;break;case"{":r==="selector"||r==="atRule"?(x.selectorText=o.trim(),x.style.__starts=a,o="",r="before-name"):r==="atBlock"?(v.media.mediaText=o.trim(),c&&d.push(c),l=c=v,v.parentStyleSheet=u,o="",r="before-selector"):r==="conditionBlock"?(w.conditionText=o.trim(),c&&d.push(c),l=c=w,w.parentStyleSheet=u,o="",r="before-selector"):r==="hostRule-begin"?(c&&d.push(c),l=c=C,C.parentStyleSheet=u,o="",r="before-selector"):r==="fontFaceRule-begin"?(c&&(S.parentRule=c),S.parentStyleSheet=u,x=S,o="",r="before-name"):r==="keyframesRule-begin"?(A.name=o.trim(),c&&(d.push(c),A.parentRule=c),A.parentStyleSheet=u,l=c=A,o="",r="keyframeRule-begin"):r==="keyframeRule-begin"?(x=new et.CSSKeyframeRule,x.keyText=o.trim(),x.__starts=a,o="",r="before-name"):r==="documentRule-begin"&&(L.matcher.matcherText=o.trim(),c&&(d.push(c),L.parentRule=c),l=c=L,L.parentStyleSheet=u,o="",r="before-selector");break;case":":r==="name"?(g=o.trim(),o="",r="before-value"):o+=Z;break;case"(":if(r==="value")if(o.trim()==="expression"){var V=new et.CSSValueExpression(t,a).parse();V.error?D(V.error):(o+=V.expression,a=V.idx)}else r="value-parenthesis",i=1,o+=Z;else r==="value-parenthesis"&&i++,o+=Z;break;case")":r==="value-parenthesis"&&(i--,i===0&&(r="value")),o+=Z;break;case"!":r==="value"&&t.indexOf("!important",a)===a?(m="important",a+=9):o+=Z;break;case";":switch(r){case"value":x.style.setProperty(g,o.trim(),m),m="",o="",r="before-name";break;case"atRule":o="",r="before-selector";break;case"importRule":y=new et.CSSImportRule,y.parentStyleSheet=y.styleSheet.parentStyleSheet=u,y.cssText=o+Z,u.cssRules.push(y),o="",r="before-selector";break;default:o+=Z;break}break;case"}":switch(r){case"value":x.style.setProperty(g,o.trim(),m),m="";case"before-name":case"name":x.__ends=a+1,c&&(x.parentRule=c),x.parentStyleSheet=u,l.cssRules.push(x),o="",l.constructor===et.CSSKeyframesRule?r="keyframeRule-begin":r="before-selector";break;case"keyframeRule-begin":case"before-selector":case"selector":for(c||D("Unexpected }"),f=d.length>0;d.length>0;){if(c=d.pop(),c.constructor.name==="CSSMediaRule"||c.constructor.name==="CSSSupportsRule"){p=l,l=c,l.cssRules.push(p);break}d.length===0&&(f=!1)}f||(l.__ends=a+1,u.cssRules.push(l),l=u,c=null),o="",r="before-selector";break}break;default:switch(r){case"before-selector":r="selector",x=new et.CSSStyleRule,x.__starts=a;break;case"before-name":r="name";break;case"before-value":r="value";break;case"importRule-begin":r="importRule";break}o+=Z;break}return u};j2.parse=et.parse;et.CSSStyleSheet=Fl().CSSStyleSheet;et.CSSStyleRule=Bl().CSSStyleRule;et.CSSImportRule=Db().CSSImportRule;et.CSSGroupingRule=Ii().CSSGroupingRule;et.CSSMediaRule=Qf().CSSMediaRule;et.CSSConditionRule=Gs().CSSConditionRule;et.CSSSupportsRule=Yf().CSSSupportsRule;et.CSSFontFaceRule=Ob().CSSFontFaceRule;et.CSSHostRule=_b().CSSHostRule;et.CSSStyleDeclaration=Ci().CSSStyleDeclaration;et.CSSKeyframeRule=Jf().CSSKeyframeRule;et.CSSKeyframesRule=$f().CSSKeyframesRule;et.CSSValueExpression=Fb().CSSValueExpression;et.CSSDocumentRule=zb().CSSDocumentRule});var Ci=ct(q2=>{var Ws={};Ws.CSSStyleDeclaration=function(){this.length=0,this.parentRule=null,this._importants={}};Ws.CSSStyleDeclaration.prototype={constructor:Ws.CSSStyleDeclaration,getPropertyValue:function(e){return this[e]||""},setProperty:function(e,t,a){if(this[e]){var r=Array.prototype.indexOf.call(this,e);r<0&&(this[this.length]=e,this.length++)}else this[this.length]=e,this.length++;this[e]=t+"",this._importants[e]=a},removeProperty:function(e){if(!(e in this))return"";var t=Array.prototype.indexOf.call(this,e);if(t<0)return"";var a=this[e];return this[e]="",Array.prototype.splice.call(this,t,1),a},getPropertyCSSValue:function(){},getPropertyPriority:function(e){return this._importants[e]||""},getPropertyShorthand:function(){},isPropertyImplicit:function(){},get cssText(){for(var e=[],t=0,a=this.length;t<a;++t){var r=this[t],n=this.getPropertyValue(r),o=this.getPropertyPriority(r);o&&(o=" !"+o),e[t]=r+": "+n+o+";"}return e.join(" ")},set cssText(e){var t,a;for(t=this.length;t--;)a=this[t],this[a]="";Array.prototype.splice.call(this,0,this.length),this._importants={};var r=Ws.parse("#bogus{"+e+"}").cssRules[0].style,n=r.length;for(t=0;t<n;++t)a=r[t],this.setProperty(r[t],r.getPropertyValue(a),r.getPropertyPriority(a))}};q2.CSSStyleDeclaration=Ws.CSSStyleDeclaration;Ws.parse=jf().parse});var Q2=ct(K2=>{var ep={CSSStyleSheet:Fl().CSSStyleSheet,CSSRule:Oa().CSSRule,CSSStyleRule:Bl().CSSStyleRule,CSSGroupingRule:Ii().CSSGroupingRule,CSSConditionRule:Gs().CSSConditionRule,CSSMediaRule:Qf().CSSMediaRule,CSSSupportsRule:Yf().CSSSupportsRule,CSSStyleDeclaration:Ci().CSSStyleDeclaration,CSSKeyframeRule:Jf().CSSKeyframeRule,CSSKeyframesRule:$f().CSSKeyframesRule};ep.clone=function e(t){var a=new ep.CSSStyleSheet,r=t.cssRules;if(!r)return a;for(var n=0,o=r.length;n<o;n++){var i=r[n],s=a.cssRules[n]=new i.constructor,u=i.style;if(u){for(var l=s.style=new ep.CSSStyleDeclaration,c=0,d=u.length;c<d;c++){var f=l[c]=u[c];l[f]=u[f],l._importants[f]=u.getPropertyPriority(f)}l.length=u.length}i.hasOwnProperty("keyText")&&(s.keyText=i.keyText),i.hasOwnProperty("selectorText")&&(s.selectorText=i.selectorText),i.hasOwnProperty("mediaText")&&(s.mediaText=i.mediaText),i.hasOwnProperty("conditionText")&&(s.conditionText=i.conditionText),i.hasOwnProperty("cssRules")&&(s.cssRules=e(i).cssRules)}return a};K2.clone=ep.clone});var Y2=ct(yt=>{"use strict";yt.CSSStyleDeclaration=Ci().CSSStyleDeclaration;yt.CSSRule=Oa().CSSRule;yt.CSSGroupingRule=Ii().CSSGroupingRule;yt.CSSConditionRule=Gs().CSSConditionRule;yt.CSSStyleRule=Bl().CSSStyleRule;yt.MediaList=Kf().MediaList;yt.CSSMediaRule=Qf().CSSMediaRule;yt.CSSSupportsRule=Yf().CSSSupportsRule;yt.CSSImportRule=Db().CSSImportRule;yt.CSSFontFaceRule=Ob().CSSFontFaceRule;yt.CSSHostRule=_b().CSSHostRule;yt.StyleSheet=Mb().StyleSheet;yt.CSSStyleSheet=Fl().CSSStyleSheet;yt.CSSKeyframesRule=$f().CSSKeyframesRule;yt.CSSKeyframeRule=Jf().CSSKeyframeRule;yt.MatcherList=Hb().MatcherList;yt.CSSDocumentRule=zb().CSSDocumentRule;yt.CSSValue=Bb().CSSValue;yt.CSSValueExpression=Fb().CSSValueExpression;yt.parse=jf().parse;yt.clone=Q2().clone});var tk=ct((vte,ek)=>{var Vb=class{constructor(t,a){this.width=t,this.height=a}getContext(){return null}toDataURL(){return""}};ek.exports={createCanvas:(e,t)=>new Vb(e,t)}});var ak=ct((yte,Ub)=>{try{Ub.exports=eR("canvas")}catch{Ub.exports=tk()}});var ve={};_r(ve,{Children:()=>Br,Component:()=>nR,Fragment:()=>Ha,Profiler:()=>oR,PureComponent:()=>iR,StrictMode:()=>sR,Suspense:()=>uR,cloneElement:()=>hn,createContext:()=>fa,createElement:()=>it,createFactory:()=>lR,createRef:()=>cR,default:()=>rR,forwardRef:()=>X,isValidElement:()=>Vi,lazy:()=>dR,memo:()=>fR,startTransition:()=>pR,useCallback:()=>me,useContext:()=>Sa,useDebugValue:()=>mR,useDeferredValue:()=>hR,useEffect:()=>K,useId:()=>ah,useImperativeHandle:()=>Cc,useInsertionEffect:()=>gR,useLayoutEffect:()=>gn,useMemo:()=>_e,useReducer:()=>Ic,useRef:()=>H,useState:()=>O,useSyncExternalStore:()=>rh,useTransition:()=>bR,version:()=>xR});function aR(e){return window[e]}var Ge=aR("React"),rR=Ge,Br=Ge.Children,nR=Ge.Component,Ha=Ge.Fragment,oR=Ge.Profiler,iR=Ge.PureComponent,sR=Ge.StrictMode,uR=Ge.Suspense,hn=Ge.cloneElement,fa=Ge.createContext,it=Ge.createElement,lR=Ge.createFactory,cR=Ge.createRef,X=Ge.forwardRef,Vi=Ge.isValidElement,dR=Ge.lazy,fR=Ge.memo,pR=Ge.startTransition,me=Ge.useCallback,Sa=Ge.useContext,mR=Ge.useDebugValue,hR=Ge.useDeferredValue,K=Ge.useEffect,ah=Ge.useId,Cc=Ge.useImperativeHandle,gR=Ge.useInsertionEffect,gn=Ge.useLayoutEffect,_e=Ge.useMemo,Ic=Ge.useReducer,H=Ge.useRef,O=Ge.useState,rh=Ge.useSyncExternalStore,bR=Ge.useTransition,xR=Ge.version;function vR(e){return window[e]}var cv=vR("ReactDOM"),dv=cv.createRoot,YV=cv.hydrateRoot;function fv(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(a=fv(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function kc(){for(var e,t,a=0,r="",n=arguments.length;a<n;a++)(e=arguments[a])&&(t=fv(e))&&(r&&(r+=" "),r+=t);return r}var yR=(e,t)=>{let a=new Array(e.length+t.length);for(let r=0;r<e.length;r++)a[r]=e[r];for(let r=0;r<t.length;r++)a[e.length+r]=t[r];return a},AR=(e,t)=>({classGroupId:e,validator:t}),xv=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var pv=[],wR="arbitrary..",SR=e=>{let t=IR(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return CR(i);let s=i.split("-"),u=s[0]===""&&s.length>1?1:0;return vv(s,u,t)},getConflictingClassGroupIds:(i,s)=>{if(s){let u=r[i],l=a[i];return u?l?yR(l,u):u:l||pv}return a[i]||pv}}},vv=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let n=e[t],o=a.nextPart.get(n);if(o){let l=vv(e,t+1,o);if(l)return l}let i=a.validators;if(i===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),u=i.length;for(let l=0;l<u;l++){let c=i[l];if(c.validator(s))return c.classGroupId}},CR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),r=t.slice(0,a);return r?wR+r:void 0})(),IR=e=>{let{theme:t,classGroups:a}=e;return kR(a,t)},kR=(e,t)=>{let a=xv();for(let r in e){let n=e[r];oh(n,a,r,t)}return a},oh=(e,t,a,r)=>{let n=e.length;for(let o=0;o<n;o++){let i=e[o];LR(i,t,a,r)}},LR=(e,t,a,r)=>{if(typeof e=="string"){ER(e,t,a);return}if(typeof e=="function"){TR(e,t,a,r);return}RR(e,t,a,r)},ER=(e,t,a)=>{let r=e===""?t:yv(t,e);r.classGroupId=a},TR=(e,t,a,r)=>{if(PR(e)){oh(e(r),t,a,r);return}t.validators===null&&(t.validators=[]),t.validators.push(AR(a,e))},RR=(e,t,a,r)=>{let n=Object.entries(e),o=n.length;for(let i=0;i<o;i++){let[s,u]=n[i];oh(u,yv(t,s),a,r)}},yv=(e,t)=>{let a=e,r=t.split("-"),n=r.length;for(let o=0;o<n;o++){let i=r[o],s=a.nextPart.get(i);s||(s=xv(),a.nextPart.set(i,s)),a=s}return a},PR=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,NR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),r=Object.create(null),n=(o,i)=>{a[o]=i,t++,t>e&&(t=0,r=a,a=Object.create(null))};return{get(o){let i=a[o];if(i!==void 0)return i;if((i=r[o])!==void 0)return n(o,i),i},set(o,i){o in a?a[o]=i:n(o,i)}}};var MR=[],mv=(e,t,a,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:r,isExternal:n}),DR=e=>{let{prefix:t,experimentalParseClassName:a}=e,r=n=>{let o=[],i=0,s=0,u=0,l,c=n.length;for(let m=0;m<c;m++){let x=n[m];if(i===0&&s===0){if(x===":"){o.push(n.slice(u,m)),u=m+1;continue}if(x==="/"){l=m;continue}}x==="["?i++:x==="]"?i--:x==="("?s++:x===")"&&s--}let d=o.length===0?n:n.slice(u),f=d,p=!1;d.endsWith("!")?(f=d.slice(0,-1),p=!0):d.startsWith("!")&&(f=d.slice(1),p=!0);let g=l&&l>u?l-u:void 0;return mv(o,p,f,g)};if(t){let n=t+":",o=r;r=i=>i.startsWith(n)?o(i.slice(n.length)):mv(MR,!1,i,void 0,!0)}if(a){let n=r;r=o=>a({className:o,parseClassName:n})}return r},OR=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,r)=>{t.set(a,1e6+r)}),a=>{let r=[],n=[];for(let o=0;o<a.length;o++){let i=a[o],s=i[0]==="[",u=t.has(i);s||u?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},_R=e=>({cache:NR(e.cacheSize),parseClassName:DR(e),sortModifiers:OR(e),postfixLookupClassGroupIds:BR(e),...SR(e)}),BR=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let r=0;r<a.length;r++)t[a[r]]=!0;return t},FR=/\s+/,HR=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:o,postfixLookupClassGroupIds:i}=t,s=[],u=e.trim().split(FR),l="";for(let c=u.length-1;c>=0;c-=1){let d=u[c],{isExternal:f,modifiers:p,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:x}=a(d);if(f){l=d+(l.length>0?" "+l:l);continue}let v=!!x,w;if(v){let C=m.substring(0,x);w=r(C);let I=w&&i[w]?r(m):void 0;I&&I!==w&&(w=I,v=!1)}else w=r(m);if(!w){if(!v){l=d+(l.length>0?" "+l:l);continue}if(w=r(m),!w){l=d+(l.length>0?" "+l:l);continue}v=!1}let y=p.length===0?"":p.length===1?p[0]:o(p).join(":"),S=g?y+"!":y,A=S+w;if(s.indexOf(A)>-1)continue;s.push(A);let L=n(w,v);for(let C=0;C<L.length;++C){let I=L[C];s.push(S+I)}l=d+(l.length>0?" "+l:l)}return l},zR=(...e)=>{let t=0,a,r,n="";for(;t<e.length;)(a=e[t++])&&(r=Av(a))&&(n&&(n+=" "),n+=r);return n},Av=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Av(e[r]))&&(a&&(a+=" "),a+=t);return a},VR=(e,...t)=>{let a,r,n,o,i=u=>{let l=t.reduce((c,d)=>d(c),e());return a=_R(l),r=a.cache.get,n=a.cache.set,o=s,s(u)},s=u=>{let l=r(u);if(l)return l;let c=HR(u,a);return n(u,c),c};return o=i,(...u)=>o(zR(...u))},UR=[],Pt=e=>{let t=a=>a[e]||UR;return t.isThemeGetter=!0,t},wv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,GR=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,WR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,KR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,QR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>GR.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),Fr=e=>!!e&&Number.isInteger(Number(e)),nh=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),bn=e=>WR.test(e),Cv=()=>!0,YR=e=>jR.test(e)&&!qR.test(e),ih=()=>!1,JR=e=>KR.test(e),$R=e=>QR.test(e),ZR=e=>!re(e)&&!oe(e),XR=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),eP=e=>Gn(e,Lv,ih),re=e=>wv.test(e),Po=e=>Gn(e,Ev,YR),hv=e=>Gn(e,uP,Pe),tP=e=>Gn(e,Rv,Cv),aP=e=>Gn(e,Tv,ih),gv=e=>Gn(e,Iv,ih),rP=e=>Gn(e,kv,$R),Lc=e=>Gn(e,Pv,JR),oe=e=>Sv.test(e),fu=e=>No(e,Ev),nP=e=>No(e,Tv),bv=e=>No(e,Iv),oP=e=>No(e,Lv),iP=e=>No(e,kv),Ec=e=>No(e,Pv,!0),sP=e=>No(e,Rv,!0),Gn=(e,t,a)=>{let r=wv.exec(e);return r?r[1]?t(r[1]):a(r[2]):!1},No=(e,t,a=!1)=>{let r=Sv.exec(e);return r?r[1]?t(r[1]):a:!1},Iv=e=>e==="position"||e==="percentage",kv=e=>e==="image"||e==="url",Lv=e=>e==="length"||e==="size"||e==="bg-size",Ev=e=>e==="length",uP=e=>e==="number",Tv=e=>e==="family-name",Rv=e=>e==="number"||e==="weight",Pv=e=>e==="shadow";var lP=()=>{let e=Pt("color"),t=Pt("font"),a=Pt("text"),r=Pt("font-weight"),n=Pt("tracking"),o=Pt("leading"),i=Pt("breakpoint"),s=Pt("container"),u=Pt("spacing"),l=Pt("radius"),c=Pt("shadow"),d=Pt("inset-shadow"),f=Pt("text-shadow"),p=Pt("drop-shadow"),g=Pt("blur"),m=Pt("perspective"),x=Pt("aspect"),v=Pt("ease"),w=Pt("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...S(),oe,re],L=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],I=()=>[oe,re,u],D=()=>[Un,"full","auto",...I()],Z=()=>[Fr,"none","subgrid",oe,re],N=()=>["auto",{span:["full",Fr,oe,re]},Fr,oe,re],V=()=>[Fr,"auto",oe,re],J=()=>["auto","min","max","fr",oe,re],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...I()],Q=()=>[Un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],q=()=>[Un,"screen","full","dvw","lvw","svw","min","max","fit",...I()],pe=()=>[Un,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],W=()=>[e,oe,re],M=()=>[...S(),bv,gv,{position:[oe,re]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ce=()=>["auto","cover","contain",oP,eP,{size:[oe,re]}],Me=()=>[nh,fu,Po],Se=()=>["","none","full",l,oe,re],B=()=>["",Pe,fu,Po],F=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>[Pe,nh,bv,gv],Re=()=>["","none",g,oe,re],je=()=>["none",Pe,oe,re],Ye=()=>["none",Pe,oe,re],ra=()=>[Pe,oe,re],St=()=>[Un,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bn],breakpoint:[bn],color:[Cv],container:[bn],"drop-shadow":[bn],ease:["in","out","in-out"],font:[ZR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bn],shadow:[bn],spacing:["px",Pe],text:[bn],"text-shadow":[bn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Un,re,oe,x]}],container:["container"],"container-type":[{"@container":["","normal","size",oe,re]}],"container-named":[XR],columns:[{columns:[Pe,re,oe,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Fr,"auto",oe,re]}],basis:[{basis:[Un,"full","auto",s,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Un,"auto","initial","none",re]}],grow:[{grow:["",Pe,oe,re]}],shrink:[{shrink:["",Pe,oe,re]}],order:[{order:[Fr,"first","last","none",oe,re]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[s,"screen",...Q()]}],"min-w":[{"min-w":[s,"screen","none",...Q()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",a,fu,Po]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,sP,tP]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nh,re]}],"font-family":[{font:[nP,aP,t]}],"font-features":[{"font-features":[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,oe,re]}],"line-clamp":[{"line-clamp":[Pe,"none",oe,hv]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",oe,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",oe,Po]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Pe,"auto",oe,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[Fr,oe,re]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fr,oe,re],radial:["",oe,re],conic:[Fr,oe,re]},iP,rP]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:Me()}],"gradient-via-pos":[{via:Me()}],"gradient-to-pos":[{to:Me()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:Se()}],"rounded-s":[{"rounded-s":Se()}],"rounded-e":[{"rounded-e":Se()}],"rounded-t":[{"rounded-t":Se()}],"rounded-r":[{"rounded-r":Se()}],"rounded-b":[{"rounded-b":Se()}],"rounded-l":[{"rounded-l":Se()}],"rounded-ss":[{"rounded-ss":Se()}],"rounded-se":[{"rounded-se":Se()}],"rounded-ee":[{"rounded-ee":Se()}],"rounded-es":[{"rounded-es":Se()}],"rounded-tl":[{"rounded-tl":Se()}],"rounded-tr":[{"rounded-tr":Se()}],"rounded-br":[{"rounded-br":Se()}],"rounded-bl":[{"rounded-bl":Se()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,oe,re]}],"outline-w":[{outline:["",Pe,fu,Po]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",c,Ec,Lc]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",d,Ec,Lc]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Pe,Po]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",f,Ec,Lc]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Pe,oe,re]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Le()}],"mask-image-linear-to-pos":[{"mask-linear-to":Le()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":Le()}],"mask-image-t-to-pos":[{"mask-t-to":Le()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":Le()}],"mask-image-r-to-pos":[{"mask-r-to":Le()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":Le()}],"mask-image-b-to-pos":[{"mask-b-to":Le()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":Le()}],"mask-image-l-to-pos":[{"mask-l-to":Le()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":Le()}],"mask-image-x-to-pos":[{"mask-x-to":Le()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":Le()}],"mask-image-y-to-pos":[{"mask-y-to":Le()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[oe,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":Le()}],"mask-image-radial-to-pos":[{"mask-radial-to":Le()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Le()}],"mask-image-conic-to-pos":[{"mask-conic-to":Le()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,re]}],filter:[{filter:["","none",oe,re]}],blur:[{blur:Re()}],brightness:[{brightness:[Pe,oe,re]}],contrast:[{contrast:[Pe,oe,re]}],"drop-shadow":[{"drop-shadow":["","none",p,Ec,Lc]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Pe,oe,re]}],"hue-rotate":[{"hue-rotate":[Pe,oe,re]}],invert:[{invert:["",Pe,oe,re]}],saturate:[{saturate:[Pe,oe,re]}],sepia:[{sepia:["",Pe,oe,re]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,re]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,oe,re]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,oe,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,oe,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,oe,re]}],"backdrop-invert":[{"backdrop-invert":["",Pe,oe,re]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,oe,re]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,oe,re]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,oe,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",oe,re]}],ease:[{ease:["linear","initial",v,oe,re]}],delay:[{delay:[Pe,oe,re]}],animate:[{animate:["none",w,oe,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,oe,re]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:je()}],"rotate-x":[{"rotate-x":je()}],"rotate-y":[{"rotate-y":je()}],"rotate-z":[{"rotate-z":je()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:ra()}],"skew-x":[{"skew-x":ra()}],"skew-y":[{"skew-y":ra()}],transform:[{transform:[oe,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],zoom:[{zoom:[Fr,oe,re]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",oe,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",oe,re]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Pe,fu,Po,hv]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Nv=VR(lP);var Tc=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();var Mv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Dv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase());var sh=e=>{let t=Dv(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Rc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Ov=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var cP=fa({});var _v=()=>Sa(cP);var Bv=X(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:r,className:n="",children:o,iconNode:i,...s},u)=>{let{size:l=24,strokeWidth:c=2,absoluteStrokeWidth:d=!1,color:f="currentColor",className:p=""}=_v()??{},g=r??d?Number(a??c)*24/Number(t??l):a??c;return it("svg",{ref:u,...Rc,width:t??l??Rc.width,height:t??l??Rc.height,stroke:e??f,strokeWidth:g,className:Tc("lucide",p,n),...!o&&!Ov(s)&&{"aria-hidden":"true"},...s},[...i.map(([m,x])=>it(m,x)),...Array.isArray(o)?o:[o]])});var Wn=(e,t)=>{let a=X(({className:r,...n},o)=>it(Bv,{ref:o,iconNode:t,className:Tc(`lucide-${Mv(sh(e))}`,`lucide-${e}`,r),...n}));return a.displayName=sh(e),a};var dP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],pu=Wn("check",dP);var fP=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ui=Wn("chevron-down",fP);var pP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],mu=Wn("chevron-up",pP);var mP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hu=Wn("x",mP);function hP(e){return window[e]}var Hv=hP("React"),gP=Hv.createElement;function Fv(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function bP(e,t){return t===void 0?Fv(e)?e:null:{...Fv(e)?e:{},key:t}}var jn=Hv.Fragment,E=(e,t,a)=>gP(e,bP(t,a)),na=E;function xP(e){return window[e]}var qn=xP("ReactDOM");var gu=qn.createPortal,Pc=qn.flushSync,D9=qn.findDOMNode,O9=qn.hydrate,_9=qn.render,B9=qn.unstable_batchedUpdates,F9=qn.unmountComponentAtNode,H9=qn.version;var bu={};_r(bu,{Root:()=>yP,Slot:()=>yP,Slottable:()=>AP,createSlot:()=>hr,createSlottable:()=>Gv});function zv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vP(...e){return t=>{let a=!1,r=e.map(n=>{let o=zv(n,t);return!a&&typeof o=="function"&&(a=!0),o});if(a)return()=>{for(let n=0;n<r.length;n++){let o=r[n];typeof o=="function"?o():zv(e[n],null)}}}}function Be(...e){return me(vP(...e),e)}function hr(e){let t=X((a,r)=>{let{children:n,...o}=a,i=null,s=!1,u=[];Vv(n)&&typeof Mc=="function"&&(n=Mc(n._payload)),Br.forEach(n,f=>{if(IP(f)){s=!0;let p=f,g="child"in p.props?p.props.child:p.props.children;Vv(g)&&typeof Mc=="function"&&(g=Mc(g._payload)),i=wP(p,g),u.push(i?.props?.children)}else u.push(f)}),i?i=hn(i,void 0,u):!s&&Br.count(n)===1&&Vi(n)&&(i=n);let l=i?CP(i):void 0,c=Be(r,l);if(!i){if(n||n===0)throw new Error(s?TP(e):EP(e));return n}let d=SP(o,i.props??{});return i.type!==Ha&&(d.ref=r?c:l),hn(i,d)});return t.displayName=`${e}.Slot`,t}var yP=hr("Slot"),Uv=Symbol.for("radix.slottable");function Gv(e){let t=a=>"child"in a?a.children(a.child):a.children;return t.displayName=`${e}.Slottable`,t.__radixId=Uv,t}var AP=Gv("Slottable"),wP=(e,t)=>{if("child"in e.props){let a=e.props.child;return Vi(a)?hn(a,void 0,e.props.children(a.props.children)):null}return Vi(t)?t:null};function SP(e,t){let a={...t};for(let r in t){let n=e[r],o=t[r];/^on[A-Z]/.test(r)?n&&o?a[r]=(...s)=>{let u=o(...s);return n(...s),u}:n&&(a[r]=n):r==="style"?a[r]={...n,...o}:r==="className"&&(a[r]=[n,o].filter(Boolean).join(" "))}return{...e,...a}}function CP(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function IP(e){return Vi(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uv}var kP=Symbol.for("react.lazy");function Vv(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===kP&&"_payload"in e&&LP(e._payload)}function LP(e){return typeof e=="object"&&e!==null&&"then"in e}var EP=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,TP=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Mc=ve[" use ".trim().toString()];var RP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=RP.reduce((e,t)=>{let a=hr(`Primitive.${t}`),r=X((n,o)=>{let{asChild:i,...s}=n,u=i?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E(u,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Wv(e,t){e&&Pc(()=>e.dispatchEvent(t))}var uh=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),PP="VisuallyHidden",NP=X((e,t)=>E(Ae.span,{...e,ref:t,style:{...uh,...e.style}}));NP.displayName=PP;function Ca(e,t=[]){let a=[];function r(o,i){let s=fa(i);s.displayName=o+"Context";let u=a.length;a=[...a,i];let l=d=>{let{scope:f,children:p,...g}=d,m=f?.[e]?.[u]||s,x=_e(()=>g,Object.values(g));return E(m.Provider,{value:x,children:p})};l.displayName=o+"Provider";function c(d,f,p={}){let{optional:g=!1}=p,m=f?.[e]?.[u]||s,x=Sa(m);if(x)return x;if(i!==void 0)return i;if(!g)throw new Error(`\`${d}\` must be used within \`${o}\``)}return[l,c]}let n=()=>{let o=a.map(i=>fa(i));return function(s){let u=s?.[e]||o;return _e(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return n.scopeName=e,[r,MP(n,...t)]}function MP(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){let i=r.reduce((s,{useScope:u,scopeName:l})=>{let d=u(o)[`__scope${l}`];return{...s,...d}},{});return _e(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return a.scopeName=t.scopeName,a}function Gi(e){let t=e+"CollectionProvider",[a,r]=Ca(t),[n,o]=a(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{let{scope:x,children:v}=m,w=H(null),y=H(new Map).current;return E(n,{scope:x,itemMap:y,collectionRef:w,children:v})};i.displayName=t;let s=e+"CollectionSlot",u=hr(s),l=X((m,x)=>{let{scope:v,children:w}=m,y=o(s,v),S=Be(x,y.collectionRef);return E(u,{ref:S,children:w})});l.displayName=s;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=hr(c),p=X((m,x)=>{let{scope:v,children:w,...y}=m,S=H(null),A=Be(x,S),L=o(c,v);return K(()=>(L.itemMap.set(S,{ref:S,...y}),()=>{L.itemMap.delete(S)})),E(f,{[d]:"",ref:A,children:w})});p.displayName=c;function g(m){let x=o(e+"CollectionConsumer",m);return me(()=>{let w=x.collectionRef.current;if(!w)return[];let y=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((L,C)=>y.indexOf(L.ref.current)-y.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:l,ItemSlot:p},g,r]}var rU=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ie(e,t,{checkForDefaultPrevented:a=!0}={}){return function(n){if(e?.(n),a===!1||!n||!n.defaultPrevented)return t?.(n)}}var rt=globalThis?.document?gn:()=>{};var DP=ve[" useInsertionEffect ".trim().toString()]||rt;function gr({prop:e,defaultProp:t,onChange:a=()=>{},caller:r}){let[n,o,i]=OP({defaultProp:t,onChange:a}),s=e!==void 0,u=s?e:n;{let c=H(e!==void 0);K(()=>{let d=c.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=s},[s,r])}let l=me(c=>{if(s){let d=_P(c)?c(e):c;d!==e&&i.current?.(d)}else o(c)},[s,e,o,i]);return[u,l]}function OP({defaultProp:e,onChange:t}){let[a,r]=O(e),n=H(a),o=H(t);return DP(()=>{o.current=t},[t]),K(()=>{n.current!==a&&(o.current?.(a),n.current=a)},[a,n]),[a,r,o]}function _P(e){return typeof e=="function"}function BP(e,t){return Ic((a,r)=>t[a][r]??a,e)}var xn=e=>{let{present:t,children:a}=e,r=FP(t),n=typeof a=="function"?a({present:r.isPresent}):Br.only(a),o=HP(r.ref,zP(n));return typeof a=="function"||r.isPresent?hn(n,{ref:o}):null};xn.displayName="Presence";function FP(e){let[t,a]=O(),r=H(null),n=H(e),o=H("none"),i=H(void 0),s=e?"mounted":"unmounted",[u,l]=BP(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return K(()=>{u==="mounted"?(o.current=i.current??xu(r.current),i.current=void 0):o.current="none"},[u]),rt(()=>{let c=r.current,d=n.current;if(d!==e){let p=o.current,g=xu(c);e?(i.current=g,l("MOUNT")):g==="none"||c?.display==="none"?l("UNMOUNT"):l(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),rt(()=>{if(t){let c,d=t.ownerDocument.defaultView??window,f=g=>{let x=xu(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&x&&(l("ANIMATION_END"),!n.current)){let v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=g=>{g.target===t&&(o.current=xu(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:me(c=>{if(c){let d=getComputedStyle(c);r.current=d,i.current=xu(d)}else r.current=null;a(c)},[])}}function jv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function HP(...e){let t=H(e);return t.current=e,me(a=>{let r=t.current,n=!1,o=r.map(i=>{let s=jv(i,a);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<o.length;i++){let s=o[i];typeof s=="function"?s():jv(r[i],null)}}},[])}function xu(e){return e?.animationName||"none"}function zP(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var VP=ve[" useId ".trim().toString()]||(()=>{}),UP=0;function $a(e){let[t,a]=O(VP());return rt(()=>{e||a(r=>r??String(UP++))},[e]),e||(t?`radix-${t}`:"")}var GP=fa(void 0);function Kn(e){let t=Sa(GP);return e||t||"ltr"}var xr={};_r(xr,{Close:()=>My,Content:()=>ky,Description:()=>Py,Dialog:()=>yy,DialogClose:()=>My,DialogContent:()=>ky,DialogDescription:()=>Py,DialogOverlay:()=>Iy,DialogPortal:()=>Cy,DialogTitle:()=>Ty,DialogTrigger:()=>wy,Overlay:()=>Iy,Portal:()=>Cy,Root:()=>yy,Title:()=>Ty,Trigger:()=>wy,WarningProvider:()=>B3,createDialogScope:()=>R3});function pa(e){let t=H(e);return K(()=>{t.current=e}),_e(()=>((...a)=>t.current?.(...a)),[])}var WP="DismissableLayer",lh="dismissableLayer.update",jP="dismissableLayer.pointerDownOutside",qP="dismissableLayer.focusOutside",qv,ch=fa({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),vu=X((e,t)=>{let{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:u,...l}=e,c=Sa(ch),[d,f]=O(null),p=d?.ownerDocument??globalThis?.document,[,g]=O({}),m=Be(t,f),x=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=v?x.indexOf(v):-1,y=d?x.indexOf(d):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,A=y>=w,L=H(!1),C=JP(N=>{o?.(N),s?.(N),N.defaultPrevented||u?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:L,dismissableSurfaces:c.dismissableSurfaces,shouldHandlePointerDownOutside:me(N=>{if(!(N instanceof Node))return!1;let V=[...c.branches].some(J=>J.contains(N));return A&&!V},[c.branches,A])}),I=$P(N=>{if(r&&L.current)return;let V=N.target;[...c.branches].some(ee=>ee.contains(V))||(i?.(N),s?.(N),N.defaultPrevented||u?.())},p),D=d?y===x.length-1:!1,Z=pa(N=>{N.key==="Escape"&&(n?.(N),!N.defaultPrevented&&u&&(N.preventDefault(),u()))});return K(()=>{if(D)return p.addEventListener("keydown",Z,{capture:!0}),()=>p.removeEventListener("keydown",Z,{capture:!0})},[p,D,Z]),K(()=>{if(d)return a&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(qv=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Kv(),()=>{a&&(c.layersWithOutsidePointerEventsDisabled.delete(d),c.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=qv))}},[d,p,a,c]),K(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Kv())},[d,c]),K(()=>{let N=()=>g({});return document.addEventListener(lh,N),()=>document.removeEventListener(lh,N)},[]),E(Ae.div,{...l,ref:m,style:{pointerEvents:S?A?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,I.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,C.onPointerDownCapture)})});vu.displayName=WP;var KP="DismissableLayerBranch",QP=X((e,t)=>{let a=Sa(ch),r=H(null),n=Be(t,r);return K(()=>{let o=r.current;if(o)return a.branches.add(o),()=>{a.branches.delete(o)}},[a.branches]),E(Ae.div,{...e,ref:n})});QP.displayName=KP;function Qv(){let e=Sa(ch),[t,a]=O(null);return K(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}var YP=()=>!0;function JP(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:n,dismissableSurfaces:o,shouldHandlePointerDownOutside:i=YP}=t,s=pa(e),u=H(!1),l=H(!1),c=H(new Map),d=H(()=>{});return K(()=>{function f(){l.current=!1,n.current=!1,c.current.clear()}function p(){return Array.from(c.current.values()).some(Boolean)}function g(y){if(!l.current)return;let S=y.target;S instanceof Node&&[...o].some(L=>L.contains(S))||c.current.set(y.type,!0),y.type==="click"&&window.setTimeout(()=>{l.current&&d.current()},0)}function m(y){l.current&&c.current.set(y.type,!1)}let x=y=>{if(y.target&&!u.current){let A=function(){a.removeEventListener("click",d.current);let C=p();f(),C||Yv(jP,s,L,{discrete:!0})};var S=A;if(!i(y.target)){a.removeEventListener("click",d.current),f(),u.current=!1;return}let L={originalEvent:y};l.current=!0,n.current=r&&y.button===0,c.current.clear(),!r||y.button!==0?A():(a.removeEventListener("click",d.current),d.current=A,a.addEventListener("click",d.current,{once:!0}))}else a.removeEventListener("click",d.current),f();u.current=!1},v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let y of v)a.addEventListener(y,g,!0),a.addEventListener(y,m);let w=window.setTimeout(()=>{a.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(w),a.removeEventListener("pointerdown",x),a.removeEventListener("click",d.current);for(let y of v)a.removeEventListener(y,g,!0),a.removeEventListener(y,m)}},[a,s,r,n,o,i]),{onPointerDownCapture:()=>u.current=!0}}function $P(e,t=globalThis?.document){let a=pa(e),r=H(!1);return K(()=>{let n=o=>{o.target&&!r.current&&Yv(qP,a,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,a]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kv(){let e=new CustomEvent(lh);document.dispatchEvent(e)}function Yv(e,t,a,{discrete:r}){let n=a.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&n.addEventListener(e,t,{once:!0}),r?Wv(n,o):n.dispatchEvent(o)}var dh="focusScope.autoFocusOnMount",fh="focusScope.autoFocusOnUnmount",Jv={bubbles:!1,cancelable:!0},ZP="FocusScope",yu=X((e,t)=>{let{loop:a=!1,trapped:r=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...i}=e,[s,u]=O(null),l=pa(n),c=pa(o),d=H(null),f=Be(t,u),p=H({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;K(()=>{if(r){let w=function(L){if(p.paused||!s)return;let C=L.target;s.contains(C)?d.current=C:Qn(d.current,{select:!0})},y=function(L){if(p.paused||!s)return;let C=L.relatedTarget;C!==null&&(s.contains(C)||Qn(d.current,{select:!0}))},S=function(L){if(document.activeElement===document.body)for(let I of L)I.removedNodes.length>0&&Qn(s)};var m=w,x=y,v=S;document.addEventListener("focusin",w),document.addEventListener("focusout",y);let A=new MutationObserver(S);return s&&A.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",y),A.disconnect()}}},[r,s,p.paused]),K(()=>{if(s){Zv.add(p);let m=document.activeElement;if(!s.contains(m)){let v=new CustomEvent(dh,Jv);s.addEventListener(dh,l),s.dispatchEvent(v),v.defaultPrevented||(XP(n3(ey(s)),{select:!0}),document.activeElement===m&&Qn(s))}return()=>{s.removeEventListener(dh,l),setTimeout(()=>{let v=new CustomEvent(fh,Jv);s.addEventListener(fh,c),s.dispatchEvent(v),v.defaultPrevented||Qn(m??document.body,{select:!0}),s.removeEventListener(fh,c),Zv.remove(p)},0)}}},[s,l,c,p]);let g=me(m=>{if(!a&&!r||p.paused)return;let x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(x&&v){let w=m.currentTarget,[y,S]=e3(w);y&&S?!m.shiftKey&&v===S?(m.preventDefault(),a&&Qn(y,{select:!0})):m.shiftKey&&v===y&&(m.preventDefault(),a&&Qn(S,{select:!0})):v===w&&m.preventDefault()}},[a,r,p.paused]);return E(Ae.div,{tabIndex:-1,...i,ref:f,onKeyDown:g})});yu.displayName=ZP;function XP(e,{select:t=!1}={}){let a=document.activeElement;for(let r of e)if(Qn(r,{select:t}),document.activeElement!==a)return}function e3(e){let t=ey(e),a=$v(t,e),r=$v(t.reverse(),e);return[a,r]}function ey(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function $v(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(a?!r.checkVisibility({checkVisibilityCSS:!0}):t3(r,{upTo:t})))return r}function t3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function a3(e){return e instanceof HTMLInputElement&&"select"in e}function Qn(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&a3(e)&&t&&e.select()}}var Zv=r3();function r3(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Xv(e,t),e.unshift(t)},remove(t){e=Xv(e,t),e[0]?.resume()}}}function Xv(e,t){let a=[...e],r=a.indexOf(t);return r!==-1&&a.splice(r,1),a}function n3(e){return e.filter(t=>t.tagName!=="A")}var o3="Portal",Au=X((e,t)=>{let{container:a,...r}=e,[n,o]=O(!1);rt(()=>o(!0),[]);let i=a||n&&globalThis?.document?.body;return i?gu(E(Ae.div,{...r,ref:t}),i):null});Au.displayName=o3;var Dc=0,Wi=null;function Oc(){K(()=>{Wi||(Wi={start:ty(),end:ty()});let{start:e,end:t}=Wi;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Dc++,()=>{Dc===1&&(Wi?.start.remove(),Wi?.end.remove(),Wi=null),Dc=Math.max(0,Dc-1)}},[])}function ty(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ia=function(){return Ia=Object.assign||function(t){for(var a,r=1,n=arguments.length;r<n;r++){a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t},Ia.apply(this,arguments)};function _c(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]]);return a}function ay(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,o;r<n;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Mo="right-scroll-bar-position",Do="width-before-scroll-bar",ph="with-scroll-bars-hidden",mh="--removed-body-scroll-bar-size";function Bc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ry(e,t){var a=O(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(r){var n=a.value;n!==r&&(a.value=r,a.callback(r,n))}}}})[0];return a.callback=t,a.facade}var i3=typeof window<"u"?gn:K,ny=new WeakMap;function hh(e,t){var a=ry(t||null,function(r){return e.forEach(function(n){return Bc(n,r)})});return i3(function(){var r=ny.get(a);if(r){var n=new Set(r),o=new Set(e),i=a.current;n.forEach(function(s){o.has(s)||Bc(s,null)}),o.forEach(function(s){n.has(s)||Bc(s,i)})}ny.set(a,e)},[e]),a}function s3(e){return e}function u3(e,t){t===void 0&&(t=s3);var a=[],r=!1,n={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(o){var i=t(o,r);return a.push(i),function(){a=a.filter(function(s){return s!==i})}},assignSyncMedium:function(o){for(r=!0;a.length;){var i=a;a=[],i.forEach(o)}a={push:function(s){return o(s)},filter:function(){return a}}},assignMedium:function(o){r=!0;var i=[];if(a.length){var s=a;a=[],s.forEach(o),i=a}var u=function(){var c=i;i=[],c.forEach(o)},l=function(){return Promise.resolve().then(u)};l(),a={push:function(c){i.push(c),l()},filter:function(c){return i=i.filter(c),a}}}};return n}function gh(e){e===void 0&&(e={});var t=u3(null);return t.options=Ia({async:!0,ssr:!1},e),t}var oy=function(e){var t=e.sideCar,a=_c(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return it(r,Ia({},a))};oy.isSideCarExport=!0;function bh(e,t){return e.useMedium(t),oy}var Fc=gh();var xh=function(){},wu=X(function(e,t){var a=H(null),r=O({onScrollCapture:xh,onWheelCapture:xh,onTouchMoveCapture:xh}),n=r[0],o=r[1],i=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,g=e.noIsolation,m=e.inert,x=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,y=e.gapMode,S=_c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=f,L=hh([a,t]),C=Ia(Ia({},S),n);return it(Ha,null,c&&it(A,{sideCar:Fc,removeScrollBar:l,shards:d,noRelative:p,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!x,lockRef:a,gapMode:y}),i?hn(Br.only(s),Ia(Ia({},C),{ref:L})):it(w,Ia({},C,{className:u,ref:L}),s))});wu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wu.classNames={fullWidth:Do,zeroRight:Mo};var iy;var sy=function(){if(iy)return iy;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function l3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sy();return t&&e.setAttribute("nonce",t),e}function c3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function d3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vh=function(){var e=0,t=null;return{add:function(a){e==0&&(t=l3())&&(c3(t,a),d3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var yh=function(){var e=vh();return function(t,a){K(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var Su=function(){var e=yh(),t=function(a){var r=a.styles,n=a.dynamic;return e(r,n),null};return t};var f3={left:0,top:0,right:0,gap:0},Ah=function(e){return parseInt(e||"",10)||0},p3=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[Ah(a),Ah(r),Ah(n)]},wh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return f3;var t=p3(e),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-a+t[2]-t[0])}};var m3=Su(),ji="data-scroll-locked",h3=function(e,t,a,r){var n=e.left,o=e.top,i=e.right,s=e.gap;return a===void 0&&(a="margin"),`
14
+ .`.concat(ph,` {
15
+ overflow: hidden `).concat(r,`;
16
+ padding-right: `).concat(s,"px ").concat(r,`;
6
17
  }
7
- body[`).concat(Qa,`] {
8
- overflow: hidden `).concat(o,`;
18
+ body[`).concat(ji,`] {
19
+ overflow: hidden `).concat(r,`;
9
20
  overscroll-behavior: contain;
10
- `).concat([t&&"position: relative ".concat(o,";"),a==="margin"&&`
11
- padding-left: `.concat(r,`px;
12
- padding-top: `).concat(n,`px;
21
+ `).concat([t&&"position: relative ".concat(r,";"),a==="margin"&&`
22
+ padding-left: `.concat(n,`px;
23
+ padding-top: `).concat(o,`px;
13
24
  padding-right: `).concat(i,`px;
14
25
  margin-left:0;
15
26
  margin-top:0;
16
- margin-right: `).concat(s,"px ").concat(o,`;
17
- `),a==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
27
+ margin-right: `).concat(s,"px ").concat(r,`;
28
+ `),a==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
18
29
  }
19
30
 
20
- .`).concat(fa,` {
21
- right: `).concat(s,"px ").concat(o,`;
31
+ .`).concat(Mo,` {
32
+ right: `).concat(s,"px ").concat(r,`;
22
33
  }
23
34
 
24
- .`).concat(pa,` {
25
- margin-right: `).concat(s,"px ").concat(o,`;
35
+ .`).concat(Do,` {
36
+ margin-right: `).concat(s,"px ").concat(r,`;
26
37
  }
27
38
 
28
- .`).concat(fa," .").concat(fa,` {
29
- right: 0 `).concat(o,`;
39
+ .`).concat(Mo," .").concat(Mo,` {
40
+ right: 0 `).concat(r,`;
30
41
  }
31
42
 
32
- .`).concat(pa," .").concat(pa,` {
33
- margin-right: 0 `).concat(o,`;
43
+ .`).concat(Do," .").concat(Do,` {
44
+ margin-right: 0 `).concat(r,`;
34
45
  }
35
46
 
36
- body[`).concat(Qa,`] {
37
- `).concat(oi,": ").concat(s,`px;
47
+ body[`).concat(ji,`] {
48
+ `).concat(mh,": ").concat(s,`px;
38
49
  }
39
- `)},id=function(){var e=parseInt(document.body.getAttribute(Qa)||"0",10);return isFinite(e)?e:0},ov=function(){H(function(){return document.body.setAttribute(Qa,(id()+1).toString()),function(){var e=id()-1;e<=0?document.body.removeAttribute(Qa):document.body.setAttribute(Qa,e.toString())}},[])},fi=function(e){var t=e.noRelative,a=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;ov();var n=me(function(){return ci(r)},[r]);return Te(tv,{styles:av(n,!t,r,a?"":"!important")})};var pi=!1;if(typeof window<"u")try{_o=Object.defineProperty({},"passive",{get:function(){return pi=!0,!0}}),window.addEventListener("test",_o,_o),window.removeEventListener("test",_o,_o)}catch{pi=!1}var _o,ma=pi?{passive:!1}:!1;var rv=function(e){return e.tagName==="TEXTAREA"},sd=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!rv(e)&&a[t]==="visible")},nv=function(e){return sd(e,"overflowY")},iv=function(e){return sd(e,"overflowX")},mi=function(e,t){var a=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=ld(e,o);if(r){var n=dd(e,o),i=n[1],s=n[2];if(i>s)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},sv=function(e){var t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;return[t,a,o]},lv=function(e){var t=e.scrollLeft,a=e.scrollWidth,o=e.clientWidth;return[t,a,o]},ld=function(e,t){return e==="v"?nv(t):iv(t)},dd=function(e,t){return e==="v"?sv(t):lv(t)},dv=function(e,t){return e==="h"&&t==="rtl"?-1:1},ud=function(e,t,a,o,r){var n=dv(e,window.getComputedStyle(t).direction),i=n*o,s=a.target,l=t.contains(s),d=!1,u=i>0,c=0,m=0;do{if(!s)break;var h=dd(e,s),x=h[0],p=h[1],g=h[2],v=p-g-n*x;(x||v)&&ld(e,s)&&(c+=v,m+=x);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(r&&Math.abs(c)<1||!r&&i>c)||!u&&(r&&Math.abs(m)<1||!r&&-i>m))&&(d=!0),d};var Er=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cd=function(e){return[e.deltaX,e.deltaY]},fd=function(e){return e&&"current"in e?e.current:e},uv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cv=function(e){return`
50
+ `)},uy=function(){var e=parseInt(document.body.getAttribute(ji)||"0",10);return isFinite(e)?e:0},g3=function(){K(function(){return document.body.setAttribute(ji,(uy()+1).toString()),function(){var e=uy()-1;e<=0?document.body.removeAttribute(ji):document.body.setAttribute(ji,e.toString())}},[])},Sh=function(e){var t=e.noRelative,a=e.noImportant,r=e.gapMode,n=r===void 0?"margin":r;g3();var o=_e(function(){return wh(n)},[n]);return it(m3,{styles:h3(o,!t,n,a?"":"!important")})};var Ch=!1;if(typeof window<"u")try{Cu=Object.defineProperty({},"passive",{get:function(){return Ch=!0,!0}}),window.addEventListener("test",Cu,Cu),window.removeEventListener("test",Cu,Cu)}catch{Ch=!1}var Cu,Oo=Ch?{passive:!1}:!1;var b3=function(e){return e.tagName==="TEXTAREA"},ly=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!b3(e)&&a[t]==="visible")},x3=function(e){return ly(e,"overflowY")},v3=function(e){return ly(e,"overflowX")},Ih=function(e,t){var a=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=cy(e,r);if(n){var o=dy(e,r),i=o[1],s=o[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},y3=function(e){var t=e.scrollTop,a=e.scrollHeight,r=e.clientHeight;return[t,a,r]},A3=function(e){var t=e.scrollLeft,a=e.scrollWidth,r=e.clientWidth;return[t,a,r]},cy=function(e,t){return e==="v"?x3(t):v3(t)},dy=function(e,t){return e==="v"?y3(t):A3(t)},w3=function(e,t){return e==="h"&&t==="rtl"?-1:1},fy=function(e,t,a,r,n){var o=w3(e,window.getComputedStyle(t).direction),i=o*r,s=a.target,u=t.contains(s),l=!1,c=i>0,d=0,f=0;do{if(!s)break;var p=dy(e,s),g=p[0],m=p[1],x=p[2],v=m-x-o*g;(g||v)&&cy(e,s)&&(d+=v,f+=g);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(c&&(n&&Math.abs(d)<1||!n&&i>d)||!c&&(n&&Math.abs(f)<1||!n&&-i>f))&&(l=!0),l};var Hc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},py=function(e){return[e.deltaX,e.deltaY]},my=function(e){return e&&"current"in e?e.current:e},S3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},C3=function(e){return`
40
51
  .block-interactivity-`.concat(e,` {pointer-events: none;}
41
52
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
42
- `)},fv=0,eo=[];function pd(e){var t=z([]),a=z([0,0]),o=z(),r=M(fv++)[0],n=M(Ho)[0],i=z(e);H(function(){i.current=e},[e]),H(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=ed([e.lockRef.current],(e.shards||[]).map(fd),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=Q(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=Er(p),w=a.current,b="deltaX"in p?p.deltaX:w[0]-v[0],C="deltaY"in p?p.deltaY:w[1]-v[1],S,R=p.target,T=Math.abs(b)>Math.abs(C)?"h":"v";if("touches"in p&&T==="h"&&R.type==="range")return!1;var I=window.getSelection(),F=I&&I.anchorNode,X=F?F===R||F.contains(R):!1;if(X)return!1;var D=mi(T,R);if(!D)return!0;if(D?S=T:(S=T==="v"?"h":"v",D=mi(T,R)),!D)return!1;if(!o.current&&"changedTouches"in p&&(b||C)&&(o.current=S),!S)return!0;var O=o.current||S;return ud(O,g,p,O==="h"?b:C,!0)},[]),l=Q(function(p){var g=p;if(!(!eo.length||eo[eo.length-1]!==n)){var v="deltaY"in g?cd(g):Er(g),w=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&uv(S.delta,v)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}if(!w){var b=(i.current.shards||[]).map(fd).filter(Boolean).filter(function(S){return S.contains(g.target)}),C=b.length>0?s(g,b[0]):!i.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),d=Q(function(p,g,v,w){var b={name:p,delta:g,target:v,should:w,shadowParent:pv(v)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(C){return C!==b})},1)},[]),u=Q(function(p){a.current=Er(p),o.current=void 0},[]),c=Q(function(p){d(p.type,cd(p),p.target,s(p,e.lockRef.current))},[]),m=Q(function(p){d(p.type,Er(p),p.target,s(p,e.lockRef.current))},[]);H(function(){return eo.push(n),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",l,ma),document.addEventListener("touchmove",l,ma),document.addEventListener("touchstart",u,ma),function(){eo=eo.filter(function(p){return p!==n}),document.removeEventListener("wheel",l,ma),document.removeEventListener("touchmove",l,ma),document.removeEventListener("touchstart",u,ma)}},[]);var h=e.removeScrollBar,x=e.inert;return Te(nt,null,x?Te(n,{styles:cv(r)}):null,h?Te(fi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function pv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var md=ii(zr,pd);var gd=V(function(e,t){return Te(Bo,tt({},e,{ref:t,sideCar:md}))});gd.classNames=Bo.classNames;var Vo=gd;var mv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,Or=new WeakMap,Nr={},gi=0,hd=function(e){return e&&(e.host||hd(e.parentNode))},gv=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=hd(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},hv=function(e,t,a,o){var r=gv(t,Array.isArray(e)?e:[e]);Nr[a]||(Nr[a]=new WeakMap);var n=Nr[a],i=[],s=new Set,l=new Set(r),d=function(c){!c||s.has(c)||(s.add(c),d(c.parentNode))};r.forEach(d);var u=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(m){if(s.has(m))u(m);else try{var h=m.getAttribute(o),x=h!==null&&h!=="false",p=(to.get(m)||0)+1,g=(n.get(m)||0)+1;to.set(m,p),n.set(m,g),i.push(m),p===1&&x&&Or.set(m,!0),g===1&&m.setAttribute(a,"true"),x||m.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return u(t),s.clear(),gi++,function(){i.forEach(function(c){var m=to.get(c)-1,h=n.get(c)-1;to.set(c,m),n.set(c,h),m||(Or.has(c)||c.removeAttribute(o),Or.delete(c)),h||c.removeAttribute(a)}),gi--,gi||(to=new WeakMap,to=new WeakMap,Or=new WeakMap,Nr={})}},Fr=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||mv(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),hv(o,r,a,"aria-hidden")):function(){return null}};var Hr="Dialog",[vd,vv]=et(Hr),[xv,ht]=vd(Hr),xd=e=>{let{__scopeDialog:t,children:a,open:o,defaultOpen:r,onOpenChange:n,modal:i=!0}=e,s=z(null),l=z(null),[d,u]=gt({prop:o,defaultProp:r??!1,onChange:n,caller:Hr});return L(xv,{scope:t,triggerRef:s,contentRef:l,contentId:dt(),titleId:dt(),descriptionId:dt(),open:d,onOpenChange:u,onOpenToggle:Q(()=>u(c=>!c),[u]),modal:i,children:a})};xd.displayName=Hr;var bd="DialogTrigger",wd=V((e,t)=>{let{__scopeDialog:a,...o}=e,r=ht(bd,a),n=ge(t,r.triggerRef);return L(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":vi(r.open),...o,ref:n,onClick:se(e.onClick,r.onOpenToggle)})});wd.displayName=bd;var hi="DialogPortal",[bv,yd]=vd(hi,{forceMount:void 0}),Cd=e=>{let{__scopeDialog:t,forceMount:a,children:o,container:r}=e,n=ht(hi,t);return L(bv,{scope:t,forceMount:a,children:St.map(o,i=>L(Vt,{present:a||n.open,children:L(Fo,{asChild:!0,container:r,children:i})}))})};Cd.displayName=hi;var Br="DialogOverlay",Sd=V((e,t)=>{let a=yd(Br,e.__scopeDialog),{forceMount:o=a.forceMount,...r}=e,n=ht(Br,e.__scopeDialog);return n.modal?L(Vt,{present:o||n.open,children:L(yv,{...r,ref:t})}):null});Sd.displayName=Br;var wv=mt("DialogOverlay.RemoveScroll"),yv=V((e,t)=>{let{__scopeDialog:a,...o}=e,r=ht(Br,a),n=Gl(),i=ge(t,n);return L(Vo,{as:wv,allowPinchZoom:!0,shards:[r.contentRef],children:L(oe.div,{"data-state":vi(r.open),...o,ref:i,style:{pointerEvents:"auto",...o.style}})})}),ao="DialogContent",Ld=V((e,t)=>{let a=yd(ao,e.__scopeDialog),{forceMount:o=a.forceMount,...r}=e,n=ht(ao,e.__scopeDialog);return L(Vt,{present:o||n.open,children:n.modal?L(Cv,{...r,ref:t}):L(Sv,{...r,ref:t})})});Ld.displayName=ao;var Cv=V((e,t)=>{let a=ht(ao,e.__scopeDialog),o=z(null),r=ge(t,a.contentRef,o);return H(()=>{let n=o.current;if(n)return Fr(n)},[]),L(Id,{...e,ref:r,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:se(e.onCloseAutoFocus,n=>{n.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:se(e.onPointerDownOutside,n=>{let i=n.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&n.preventDefault()}),onFocusOutside:se(e.onFocusOutside,n=>n.preventDefault())})}),Sv=V((e,t)=>{let a=ht(ao,e.__scopeDialog),o=z(!1),r=z(!1);return L(Id,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(o.current||a.triggerRef.current?.focus(),n.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(o.current=!0,n.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let i=n.target;a.triggerRef.current?.contains(i)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&r.current&&n.preventDefault()}})}),Id=V((e,t)=>{let{__scopeDialog:a,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:n,...i}=e,s=ht(ao,a);return Mr(),L(Yt,{children:L(No,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:n,children:L(Oo,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":vi(s.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),kd="DialogTitle",Rd=V((e,t)=>{let{__scopeDialog:a,...o}=e,r=ht(kd,a);return L(oe.h2,{id:r.titleId,...o,ref:t})});Rd.displayName=kd;var Pd="DialogDescription",Td=V((e,t)=>{let{__scopeDialog:a,...o}=e,r=ht(Pd,a);return L(oe.p,{id:r.descriptionId,...o,ref:t})});Td.displayName=Pd;var Md="DialogClose",Ad=V((e,t)=>{let{__scopeDialog:a,...o}=e,r=ht(Md,a);return L(oe.button,{type:"button",...o,ref:t,onClick:se(e.onClick,()=>r.onOpenChange(!1))})});Ad.displayName=Md;var Lv=e=>e.children;function vi(e){return e?"open":"closed"}function _r(e){let t=z({value:e,previous:e});return me(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Vr(e){let[t,a]=M(void 0);return ke(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let n=r[0],i,s;if("borderBoxSize"in n){let l=n.borderBoxSize,d=Array.isArray(l)?l[0]:l;i=d.inlineSize,s=d.blockSize}else i=e.offsetWidth,s=e.offsetHeight;a({width:i,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}var Ed=["top","right","bottom","left"];var It=Math.min,Xe=Math.max,qo=Math.round,jo=Math.floor,xt=e=>({x:e,y:e}),Iv={left:"right",right:"left",bottom:"top",top:"bottom"};function qr(e,t,a){return Xe(e,It(t,a))}function kt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function ga(e){return e.split("-")[1]}function jr(e){return e==="x"?"y":"x"}function Wr(e){return e==="y"?"height":"width"}function bt(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Gr(e){return jr(bt(e))}function Od(e,t,a){a===void 0&&(a=!1);let o=ga(e),r=Gr(e),n=Wr(r),i=r==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(i=Uo(i)),[i,Uo(i)]}function Nd(e){let t=Uo(e);return[Ur(e),t,Ur(t)]}function Ur(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Dd=["left","right"],zd=["right","left"],kv=["top","bottom"],Rv=["bottom","top"];function Pv(e,t,a){switch(e){case"top":case"bottom":return a?t?zd:Dd:t?Dd:zd;case"left":case"right":return t?kv:Rv;default:return[]}}function Fd(e,t,a,o){let r=ga(e),n=Pv(Rt(e),a==="start",o);return r&&(n=n.map(i=>i+"-"+r),t&&(n=n.concat(n.map(Ur)))),n}function Uo(e){let t=Rt(e);return Iv[t]+e.slice(t.length)}function Tv(e){return{top:0,right:0,bottom:0,left:0,...e}}function xi(e){return typeof e!="number"?Tv(e):{top:e,right:e,bottom:e,left:e}}function ha(e){let{x:t,y:a,width:o,height:r}=e;return{width:o,height:r,top:a,left:t,right:t+o,bottom:a+r,x:t,y:a}}function Bd(e,t,a){let{reference:o,floating:r}=e,n=bt(t),i=Gr(t),s=Wr(i),l=Rt(t),d=n==="y",u=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,m=o[s]/2-r[s]/2,h;switch(l){case"top":h={x:u,y:o.y-r.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:c};break;case"left":h={x:o.x-r.width,y:c};break;default:h={x:o.x,y:o.y}}switch(ga(t)){case"start":h[i]-=m*(a&&d?-1:1);break;case"end":h[i]+=m*(a&&d?-1:1);break}return h}async function Vd(e,t){var a;t===void 0&&(t={});let{x:o,y:r,platform:n,rects:i,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:m=!1,padding:h=0}=kt(t,e),x=xi(h),g=s[m?c==="floating"?"reference":"floating":c],v=ha(await n.getClippingRect({element:(a=await(n.isElement==null?void 0:n.isElement(g)))==null||a?g:g.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:l})),w=c==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,b=await(n.getOffsetParent==null?void 0:n.getOffsetParent(s.floating)),C=await(n.isElement==null?void 0:n.isElement(b))?await(n.getScale==null?void 0:n.getScale(b))||{x:1,y:1}:{x:1,y:1},S=ha(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:b,strategy:l}):w);return{top:(v.top-S.top+x.top)/C.y,bottom:(S.bottom-v.bottom+x.bottom)/C.y,left:(v.left-S.left+x.left)/C.x,right:(S.right-v.right+x.right)/C.x}}var Mv=50,Ud=async(e,t,a)=>{let{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:i}=a,s=i.detectOverflow?i:{...i,detectOverflow:Vd},l=await(i.isRTL==null?void 0:i.isRTL(t)),d=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:c}=Bd(d,o,l),m=o,h=0,x={};for(let p=0;p<n.length;p++){let g=n[p];if(!g)continue;let{name:v,fn:w}=g,{x:b,y:C,data:S,reset:R}=await w({x:u,y:c,initialPlacement:o,placement:m,strategy:r,middlewareData:x,rects:d,platform:s,elements:{reference:e,floating:t}});u=b??u,c=C??c,x[v]={...x[v],...S},R&&h<Mv&&(h++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(d=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:c}=Bd(d,m,l)),p=-1)}return{x:u,y:c,placement:m,strategy:r,middlewareData:x}},qd=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:r,rects:n,platform:i,elements:s,middlewareData:l}=t,{element:d,padding:u=0}=kt(e,t)||{};if(d==null)return{};let c=xi(u),m={x:a,y:o},h=Gr(r),x=Wr(h),p=await i.getDimensions(d),g=h==="y",v=g?"top":"left",w=g?"bottom":"right",b=g?"clientHeight":"clientWidth",C=n.reference[x]+n.reference[h]-m[h]-n.floating[x],S=m[h]-n.reference[h],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d)),T=R?R[b]:0;(!T||!await(i.isElement==null?void 0:i.isElement(R)))&&(T=s.floating[b]||n.floating[x]);let I=C/2-S/2,F=T/2-p[x]/2-1,X=It(c[v],F),D=It(c[w],F),O=X,U=T-p[x]-D,q=T/2-p[x]/2+I,k=qr(O,q,U),A=!l.arrow&&ga(r)!=null&&q!==k&&n.reference[x]/2-(q<O?X:D)-p[x]/2<0,j=A?q<O?q-O:q-U:0;return{[h]:m[h]+j,data:{[h]:k,centerOffset:q-k-j,...A&&{alignmentOffset:j}},reset:A}}});var jd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:r,middlewareData:n,rects:i,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:p=!0,...g}=kt(e,t);if((a=n.arrow)!=null&&a.alignmentOffset)return{};let v=Rt(r),w=bt(s),b=Rt(s)===s,C=await(l.isRTL==null?void 0:l.isRTL(d.floating)),S=m||(b||!p?[Uo(s)]:Nd(s)),R=x!=="none";!m&&R&&S.push(...Fd(s,p,x,C));let T=[s,...S],I=await l.detectOverflow(t,g),F=[],X=((o=n.flip)==null?void 0:o.overflows)||[];if(u&&F.push(I[v]),c){let q=Od(r,i,C);F.push(I[q[0]],I[q[1]])}if(X=[...X,{placement:r,overflows:F}],!F.every(q=>q<=0)){var D,O;let q=(((D=n.flip)==null?void 0:D.index)||0)+1,k=T[q];if(k&&(!(c==="alignment"?w!==bt(k):!1)||X.every(B=>bt(B.placement)===w?B.overflows[0]>0:!0)))return{data:{index:q,overflows:X},reset:{placement:k}};let A=(O=X.filter(j=>j.overflows[0]<=0).sort((j,B)=>j.overflows[1]-B.overflows[1])[0])==null?void 0:O.placement;if(!A)switch(h){case"bestFit":{var U;let j=(U=X.filter(B=>{if(R){let te=bt(B.placement);return te===w||te==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(te=>te>0).reduce((te,E)=>te+E,0)]).sort((B,te)=>B[1]-te[1])[0])==null?void 0:U[0];j&&(A=j);break}case"initialPlacement":A=s;break}if(r!==A)return{reset:{placement:A}}}return{}}}};function Hd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _d(e){return Ed.some(t=>e[t]>=0)}var Wd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:r="referenceHidden",...n}=kt(e,t);switch(r){case"referenceHidden":{let i=await o.detectOverflow(t,{...n,elementContext:"reference"}),s=Hd(i,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:_d(s)}}}case"escaped":{let i=await o.detectOverflow(t,{...n,altBoundary:!0}),s=Hd(i,a.floating);return{data:{escapedOffsets:s,escaped:_d(s)}}}default:return{}}}}};var Gd=new Set(["left","top"]);async function Av(e,t){let{placement:a,platform:o,elements:r}=e,n=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Rt(a),s=ga(a),l=bt(a)==="y",d=Gd.has(i)?-1:1,u=n&&l?-1:1,c=kt(t,e),{mainAxis:m,crossAxis:h,alignmentAxis:x}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof x=="number"&&(h=s==="end"?x*-1:x),l?{x:h*u,y:m*d}:{x:m*d,y:h*u}}var Kd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:r,y:n,placement:i,middlewareData:s}=t,l=await Av(t,e);return i===((a=s.offset)==null?void 0:a.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:i}}}}},$d=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:r,platform:n}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x:w,y:b}=v;return{x:w,y:b}}},...d}=kt(e,t),u={x:a,y:o},c=await n.detectOverflow(t,d),m=bt(Rt(r)),h=jr(m),x=u[h],p=u[m];if(i){let v=h==="y"?"top":"left",w=h==="y"?"bottom":"right",b=x+c[v],C=x-c[w];x=qr(b,x,C)}if(s){let v=m==="y"?"top":"left",w=m==="y"?"bottom":"right",b=p+c[v],C=p-c[w];p=qr(b,p,C)}let g=l.fn({...t,[h]:x,[m]:p});return{...g,data:{x:g.x-a,y:g.y-o,enabled:{[h]:i,[m]:s}}}}}},Xd=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:o,placement:r,rects:n,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=kt(e,t),u={x:a,y:o},c=bt(r),m=jr(c),h=u[m],x=u[c],p=kt(s,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){let b=m==="y"?"height":"width",C=n.reference[m]-n.floating[b]+g.mainAxis,S=n.reference[m]+n.reference[b]-g.mainAxis;h<C?h=C:h>S&&(h=S)}if(d){var v,w;let b=m==="y"?"width":"height",C=Gd.has(Rt(r)),S=n.reference[c]-n.floating[b]+(C&&((v=i.offset)==null?void 0:v[c])||0)+(C?0:g.crossAxis),R=n.reference[c]+n.reference[b]+(C?0:((w=i.offset)==null?void 0:w[c])||0)-(C?g.crossAxis:0);x<S?x=S:x>R&&(x=R)}return{[m]:h,[c]:x}}}},Zd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,o;let{placement:r,rects:n,platform:i,elements:s}=t,{apply:l=()=>{},...d}=kt(e,t),u=await i.detectOverflow(t,d),c=Rt(r),m=ga(r),h=bt(r)==="y",{width:x,height:p}=n.floating,g,v;c==="top"||c==="bottom"?(g=c,v=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=c,g=m==="end"?"top":"bottom");let w=p-u.top-u.bottom,b=x-u.left-u.right,C=It(p-u[g],w),S=It(x-u[v],b),R=!t.middlewareData.shift,T=C,I=S;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(I=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(T=w),R&&!m){let X=Xe(u.left,0),D=Xe(u.right,0),O=Xe(u.top,0),U=Xe(u.bottom,0);h?I=x-2*(X!==0||D!==0?X+D:Xe(u.left,u.right)):T=p-2*(O!==0||U!==0?O+U:Xe(u.top,u.bottom))}await l({...t,availableWidth:I,availableHeight:T});let F=await i.getDimensions(s.floating);return x!==F.width||p!==F.height?{reset:{rects:!0}}:{}}}};function Kr(){return typeof window<"u"}function ba(e){return Yd(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wt(e){var t;return(t=(Yd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yd(e){return Kr()?e instanceof Node||e instanceof at(e).Node:!1}function ut(e){return Kr()?e instanceof Element||e instanceof at(e).Element:!1}function Pt(e){return Kr()?e instanceof HTMLElement||e instanceof at(e).HTMLElement:!1}function Jd(e){return!Kr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}function oo(e){let{overflow:t,overflowX:a,overflowY:o,display:r}=ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&r!=="inline"&&r!=="contents"}function Qd(e){return/^(table|td|th)$/.test(ba(e))}function Wo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Dv=/transform|translate|scale|rotate|perspective|filter/,zv=/paint|layout|strict|content/,va=e=>!!e&&e!=="none",bi;function $r(e){let t=ut(e)?ct(e):e;return va(t.transform)||va(t.translate)||va(t.scale)||va(t.rotate)||va(t.perspective)||!Xr()&&(va(t.backdropFilter)||va(t.filter))||Dv.test(t.willChange||"")||zv.test(t.contain||"")}function eu(e){let t=Ut(e);for(;Pt(t)&&!wa(t);){if($r(t))return t;if(Wo(t))return null;t=Ut(t)}return null}function Xr(){return bi==null&&(bi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),bi}function wa(e){return/^(html|body|#document)$/.test(ba(e))}function ct(e){return at(e).getComputedStyle(e)}function Go(e){return ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ut(e){if(ba(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Jd(e)&&e.host||wt(e);return Jd(t)?t.host:t}function tu(e){let t=Ut(e);return wa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pt(t)&&oo(t)?t:tu(t)}function xa(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let r=tu(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),i=at(r);if(n){let s=Zr(i);return t.concat(i,i.visualViewport||[],oo(r)?r:[],s&&a?xa(s):[])}else return t.concat(r,xa(r,[],a))}function Zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nu(e){let t=ct(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=Pt(e),n=r?e.offsetWidth:a,i=r?e.offsetHeight:o,s=qo(a)!==n||qo(o)!==i;return s&&(a=n,o=i),{width:a,height:o,$:s}}function yi(e){return ut(e)?e:e.contextElement}function ro(e){let t=yi(e);if(!Pt(t))return xt(1);let a=t.getBoundingClientRect(),{width:o,height:r,$:n}=nu(t),i=(n?qo(a.width):a.width)/o,s=(n?qo(a.height):a.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var Ev=xt(0);function iu(e){let t=at(e);return!Xr()||!t.visualViewport?Ev:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ov(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==at(e)?!1:t}function ya(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let r=e.getBoundingClientRect(),n=yi(e),i=xt(1);t&&(o?ut(o)&&(i=ro(o)):i=ro(e));let s=Ov(n,a,o)?iu(n):xt(0),l=(r.left+s.x)/i.x,d=(r.top+s.y)/i.y,u=r.width/i.x,c=r.height/i.y;if(n){let m=at(n),h=o&&ut(o)?at(o):o,x=m,p=Zr(x);for(;p&&o&&h!==x;){let g=ro(p),v=p.getBoundingClientRect(),w=ct(p),b=v.left+(p.clientLeft+parseFloat(w.paddingLeft))*g.x,C=v.top+(p.clientTop+parseFloat(w.paddingTop))*g.y;l*=g.x,d*=g.y,u*=g.x,c*=g.y,l+=b,d+=C,x=at(p),p=Zr(x)}}return ha({width:u,height:c,x:l,y:d})}function Jr(e,t){let a=Go(e).scrollLeft;return t?t.left+a:ya(wt(e)).left+a}function su(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-Jr(e,a),r=a.top+t.scrollTop;return{x:o,y:r}}function Nv(e){let{elements:t,rect:a,offsetParent:o,strategy:r}=e,n=r==="fixed",i=wt(o),s=t?Wo(t.floating):!1;if(o===i||s&&n)return a;let l={scrollLeft:0,scrollTop:0},d=xt(1),u=xt(0),c=Pt(o);if((c||!c&&!n)&&((ba(o)!=="body"||oo(i))&&(l=Go(o)),c)){let h=ya(o);d=ro(o),u.x=h.x+o.clientLeft,u.y=h.y+o.clientTop}let m=i&&!c&&!n?su(i,l):xt(0);return{width:a.width*d.x,height:a.height*d.y,x:a.x*d.x-l.scrollLeft*d.x+u.x+m.x,y:a.y*d.y-l.scrollTop*d.y+u.y+m.y}}function Fv(e){return Array.from(e.getClientRects())}function Bv(e){let t=wt(e),a=Go(e),o=e.ownerDocument.body,r=Xe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=Xe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),i=-a.scrollLeft+Jr(e),s=-a.scrollTop;return ct(o).direction==="rtl"&&(i+=Xe(t.clientWidth,o.clientWidth)-r),{width:r,height:n,x:i,y:s}}var au=25;function Hv(e,t){let a=at(e),o=wt(e),r=a.visualViewport,n=o.clientWidth,i=o.clientHeight,s=0,l=0;if(r){n=r.width,i=r.height;let u=Xr();(!u||u&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}let d=Jr(o);if(d<=0){let u=o.ownerDocument,c=u.body,m=getComputedStyle(c),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(o.clientWidth-c.clientWidth-h);x<=au&&(n-=x)}else d<=au&&(n+=d);return{width:n,height:i,x:s,y:l}}function _v(e,t){let a=ya(e,!0,t==="fixed"),o=a.top+e.clientTop,r=a.left+e.clientLeft,n=Pt(e)?ro(e):xt(1),i=e.clientWidth*n.x,s=e.clientHeight*n.y,l=r*n.x,d=o*n.y;return{width:i,height:s,x:l,y:d}}function ou(e,t,a){let o;if(t==="viewport")o=Hv(e,a);else if(t==="document")o=Bv(wt(e));else if(ut(t))o=_v(t,a);else{let r=iu(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ha(o)}function lu(e,t){let a=Ut(e);return a===t||!ut(a)||wa(a)?!1:ct(a).position==="fixed"||lu(a,t)}function Vv(e,t){let a=t.get(e);if(a)return a;let o=xa(e,[],!1).filter(s=>ut(s)&&ba(s)!=="body"),r=null,n=ct(e).position==="fixed",i=n?Ut(e):e;for(;ut(i)&&!wa(i);){let s=ct(i),l=$r(i);!l&&s.position==="fixed"&&(r=null),(n?!l&&!r:!l&&s.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||oo(i)&&!l&&lu(e,i))?o=o.filter(u=>u!==i):r=s,i=Ut(i)}return t.set(e,o),o}function Uv(e){let{element:t,boundary:a,rootBoundary:o,strategy:r}=e,i=[...a==="clippingAncestors"?Wo(t)?[]:Vv(t,this._c):[].concat(a),o],s=ou(t,i[0],r),l=s.top,d=s.right,u=s.bottom,c=s.left;for(let m=1;m<i.length;m++){let h=ou(t,i[m],r);l=Xe(h.top,l),d=It(h.right,d),u=It(h.bottom,u),c=Xe(h.left,c)}return{width:d-c,height:u-l,x:c,y:l}}function qv(e){let{width:t,height:a}=nu(e);return{width:t,height:a}}function jv(e,t,a){let o=Pt(t),r=wt(t),n=a==="fixed",i=ya(e,!0,n,t),s={scrollLeft:0,scrollTop:0},l=xt(0);function d(){l.x=Jr(r)}if(o||!o&&!n)if((ba(t)!=="body"||oo(r))&&(s=Go(t)),o){let h=ya(t,!0,n,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&d();n&&!o&&r&&d();let u=r&&!o&&!n?su(r,s):xt(0),c=i.left+s.scrollLeft-l.x-u.x,m=i.top+s.scrollTop-l.y-u.y;return{x:c,y:m,width:i.width,height:i.height}}function wi(e){return ct(e).position==="static"}function ru(e,t){if(!Pt(e)||ct(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return wt(e)===a&&(a=a.ownerDocument.body),a}function du(e,t){let a=at(e);if(Wo(e))return a;if(!Pt(e)){let r=Ut(e);for(;r&&!wa(r);){if(ut(r)&&!wi(r))return r;r=Ut(r)}return a}let o=ru(e,t);for(;o&&Qd(o)&&wi(o);)o=ru(o,t);return o&&wa(o)&&wi(o)&&!$r(o)?a:o||eu(e)||a}var Wv=async function(e){let t=this.getOffsetParent||du,a=this.getDimensions,o=await a(e.floating);return{reference:jv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Gv(e){return ct(e).direction==="rtl"}var uu={convertOffsetParentRelativeRectToViewportRelativeRect:Nv,getDocumentElement:wt,getClippingRect:Uv,getOffsetParent:du,getElementRects:Wv,getClientRects:Fv,getDimensions:qv,getScale:ro,isElement:ut,isRTL:Gv};function cu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kv(e,t){let a=null,o,r=wt(e);function n(){var s;clearTimeout(o),(s=a)==null||s.disconnect(),a=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),n();let d=e.getBoundingClientRect(),{left:u,top:c,width:m,height:h}=d;if(s||t(),!m||!h)return;let x=jo(c),p=jo(r.clientWidth-(u+m)),g=jo(r.clientHeight-(c+h)),v=jo(u),b={rootMargin:-x+"px "+-p+"px "+-g+"px "+-v+"px",threshold:Xe(0,It(1,l))||1},C=!0;function S(R){let T=R[0].intersectionRatio;if(T!==l){if(!C)return i();T?i(!1,T):o=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!cu(d,e.getBoundingClientRect())&&i(),C=!1}try{a=new IntersectionObserver(S,{...b,root:r.ownerDocument})}catch{a=new IntersectionObserver(S,b)}a.observe(e)}return i(!0),n}function Ci(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,d=yi(e),u=r||n?[...d?xa(d):[],...t?xa(t):[]]:[];u.forEach(v=>{r&&v.addEventListener("scroll",a,{passive:!0}),n&&v.addEventListener("resize",a)});let c=d&&s?Kv(d,a):null,m=-1,h=null;i&&(h=new ResizeObserver(v=>{let[w]=v;w&&w.target===d&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),a()}),d&&!l&&h.observe(d),t&&h.observe(t));let x,p=l?ya(e):null;l&&g();function g(){let v=ya(e);p&&!cu(p,v)&&a(),p=v,x=requestAnimationFrame(g)}return a(),()=>{var v;u.forEach(w=>{r&&w.removeEventListener("scroll",a),n&&w.removeEventListener("resize",a)}),c?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(x)}}var fu=Kd;var pu=$d,mu=jd,gu=Zd,hu=Wd,Si=qd;var vu=Xd,Li=(e,t,a)=>{let o=new Map,r={platform:uu,...a},n={...r.platform,_c:o};return Ud(e,t,{...r,platform:n})};var $v=typeof document<"u",Xv=function(){},Yr=$v?Ht:Xv;function Qr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!Qr(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=a;o--!==0;){let n=r[o];if(!(n==="_owner"&&e.$$typeof)&&!Qr(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function bu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xu(e,t){let a=bu(e);return Math.round(t*a)/a}function Ii(e){let t=z(e);return Yr(()=>{t.current=e}),t}function wu(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:r,elements:{reference:n,floating:i}={},transform:s=!0,whileElementsMounted:l,open:d}=e,[u,c]=M({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=M(o);Qr(m,o)||h(o);let[x,p]=M(null),[g,v]=M(null),w=Q(B=>{B!==R.current&&(R.current=B,p(B))},[]),b=Q(B=>{B!==T.current&&(T.current=B,v(B))},[]),C=n||x,S=i||g,R=z(null),T=z(null),I=z(u),F=l!=null,X=Ii(l),D=Ii(r),O=Ii(d),U=Q(()=>{if(!R.current||!T.current)return;let B={placement:t,strategy:a,middleware:m};D.current&&(B.platform=D.current),Li(R.current,T.current,B).then(te=>{let E={...te,isPositioned:O.current!==!1};q.current&&!Qr(I.current,E)&&(I.current=E,kr(()=>{c(E)}))})},[m,t,a,D,O]);Yr(()=>{d===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,c(B=>({...B,isPositioned:!1})))},[d]);let q=z(!1);Yr(()=>(q.current=!0,()=>{q.current=!1}),[]),Yr(()=>{if(C&&(R.current=C),S&&(T.current=S),C&&S){if(X.current)return X.current(C,S,U);U()}},[C,S,U,X,F]);let k=me(()=>({reference:R,floating:T,setReference:w,setFloating:b}),[w,b]),A=me(()=>({reference:C,floating:S}),[C,S]),j=me(()=>{let B={position:a,left:0,top:0};if(!A.floating)return B;let te=xu(A.floating,u.x),E=xu(A.floating,u.y);return s?{...B,transform:"translate("+te+"px, "+E+"px)",...bu(A.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:te,top:E}},[a,s,A.floating,u.x,u.y]);return me(()=>({...u,update:U,refs:k,elements:A,floatingStyles:j}),[u,U,k,A,j])}var Zv=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:r}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?Si({element:o.current,padding:r}).fn(a):{}:o?Si({element:o,padding:r}).fn(a):{}}}},yu=(e,t)=>{let a=fu(e);return{name:a.name,fn:a.fn,options:[e,t]}},Cu=(e,t)=>{let a=pu(e);return{name:a.name,fn:a.fn,options:[e,t]}},Su=(e,t)=>({fn:vu(e).fn,options:[e,t]}),Lu=(e,t)=>{let a=mu(e);return{name:a.name,fn:a.fn,options:[e,t]}},Iu=(e,t)=>{let a=gu(e);return{name:a.name,fn:a.fn,options:[e,t]}};var ku=(e,t)=>{let a=hu(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Ru=(e,t)=>{let a=Zv(e);return{name:a.name,fn:a.fn,options:[e,t]}};var Jv="Arrow",Pu=V((e,t)=>{let{children:a,width:o=10,height:r=5,...n}=e;return L(oe.svg,{...n,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:L("polygon",{points:"0,0 30,0 15,10"})})});Pu.displayName=Jv;var Tu=Pu;var ki="Popper",[Mu,Ri]=et(ki),[Qv,Au]=Mu(ki),Du=e=>{let{__scopePopper:t,children:a}=e,[o,r]=M(null),[n,i]=M(void 0);return L(Qv,{scope:t,anchor:o,onAnchorChange:r,placementState:n,setPlacementState:i,children:a})};Du.displayName=ki;var zu="PopperAnchor",Eu=V((e,t)=>{let{__scopePopper:a,virtualRef:o,...r}=e,n=Au(zu,a),i=z(null),s=n.onAnchorChange,l=Q(x=>{i.current=x,x&&s(x)},[s]),d=ge(t,l),u=z(null);H(()=>{if(!o)return;let x=u.current;u.current=o.current,x!==u.current&&s(u.current)});let c=n.placementState&&Ti(n.placementState),m=c?.[0],h=c?.[1];return o?null:L(oe.div,{"data-radix-popper-side":m,"data-radix-popper-align":h,...r,ref:d})});Eu.displayName=zu;var Pi="PopperContent",[ex,tx]=Mu(Pi),Ou=V((e,t)=>{let{__scopePopper:a,side:o="bottom",sideOffset:r=0,align:n="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:c="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:x,...p}=e,g=Au(Pi,a),[v,w]=M(null),b=ge(t,w),[C,S]=M(null),R=Vr(C),T=R?.width??0,I=R?.height??0,F=o+(n!=="center"?"-"+n:""),X=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(d)?d:[d],O=D.length>0,U={padding:X,boundary:D.filter(ox),altBoundary:O},{refs:q,floatingStyles:k,placement:A,isPositioned:j,middlewareData:B}=wu({strategy:"fixed",placement:F,whileElementsMounted:(...fe)=>Ci(...fe,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[yu({mainAxis:r+I,alignmentAxis:i}),l&&Cu({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Su():void 0,...U}),l&&Lu({...U}),Iu({...U,apply:({elements:fe,rects:de,availableWidth:we,availableHeight:ye})=>{let{width:Se,height:Ve}=de.reference,Ae=fe.floating.style;Ae.setProperty("--radix-popper-available-width",`${we}px`),Ae.setProperty("--radix-popper-available-height",`${ye}px`),Ae.setProperty("--radix-popper-anchor-width",`${Se}px`),Ae.setProperty("--radix-popper-anchor-height",`${Ve}px`)}}),C&&Ru({element:C,padding:s}),rx({arrowWidth:T,arrowHeight:I}),m&&ku({strategy:"referenceHidden",...U,boundary:O?U.boundary:void 0})]}),te=g.setPlacementState;ke(()=>(te(A),()=>{te(void 0)}),[A,te]);let[E,P]=Ti(A),_=$e(x);ke(()=>{j&&_?.()},[j,_]);let Y=B.arrow?.x,be=B.arrow?.y,ie=B.arrow?.centerOffset!==0,[ne,J]=M();return ke(()=>{v&&J(window.getComputedStyle(v).zIndex)},[v]),L("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:j?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:L(ex,{scope:a,placedSide:E,placedAlign:P,onArrowChange:S,arrowX:Y,arrowY:be,shouldHideArrow:ie,children:L(oe.div,{"data-side":E,"data-align":P,...p,ref:b,style:{...p.style,animation:j?void 0:"none"}})})})});Ou.displayName=Pi;var Nu="PopperArrow",ax={top:"bottom",right:"left",bottom:"top",left:"right"},Fu=V(function(t,a){let{__scopePopper:o,...r}=t,n=tx(Nu,o),i=ax[n.placedSide];return L("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:L(Tu,{...r,ref:a,style:{...r.style,display:"block"}})})});Fu.displayName=Nu;function ox(e){return e!==null}var rx=e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[d,u]=Ti(a),c={start:"0%",center:"50%",end:"100%"}[u],m=(r.arrow?.x??0)+s/2,h=(r.arrow?.y??0)+l/2,x="",p="";return d==="bottom"?(x=i?c:`${m}px`,p=`${-l}px`):d==="top"?(x=i?c:`${m}px`,p=`${o.floating.height+l}px`):d==="right"?(x=`${-l}px`,p=i?c:`${h}px`):d==="left"&&(x=`${o.floating.width+l}px`,p=i?c:`${h}px`),{data:{x,y:p}}}});function Ti(e){let[t,a="center"]=e.split("-");return[t,a]}var Bu=Du,Hu=Eu,_u=Ou,Vu=Fu;var Mi=!1;function ix(){let[e,t]=M(Mi);return H(()=>{Mi||(Mi=!0,t(!0))},[]),e}var Uu=ae[" useSyncExternalStore ".trim().toString()];function sx(){return()=>{}}function lx(){return Uu(sx,()=>!0,()=>!1)}var qu=typeof Uu=="function"?lx:ix;var Ai="rovingFocusGroup.onEntryFocus",dx={bubbles:!1,cancelable:!0},Ko="RovingFocusGroup",[Di,ju,ux]=Ja(Ko),[cx,zi]=et(Ko,[ux]),[fx,px]=cx(Ko),Wu=V((e,t)=>L(Di.Provider,{scope:e.__scopeRovingFocusGroup,children:L(Di.Slot,{scope:e.__scopeRovingFocusGroup,children:L(mx,{...e,ref:t})})}));Wu.displayName=Ko;var mx=V((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:r=!1,dir:n,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:u=!1,...c}=e,m=z(null),h=ge(t,m),x=ea(n),[p,g]=gt({prop:i,defaultProp:s??null,onChange:l,caller:Ko}),[v,w]=M(!1),b=$e(d),C=ju(a),S=z(!1),[R,T]=M(0);return H(()=>{let I=m.current;if(I)return I.addEventListener(Ai,b),()=>I.removeEventListener(Ai,b)},[b]),L(fx,{scope:a,orientation:o,dir:x,loop:r,currentTabStopId:p,onItemFocus:Q(I=>g(I),[g]),onItemShiftTab:Q(()=>w(!0),[]),onFocusableItemAdd:Q(()=>T(I=>I+1),[]),onFocusableItemRemove:Q(()=>T(I=>I-1),[]),children:L(oe.div,{tabIndex:v||R===0?-1:0,"data-orientation":o,...c,ref:h,style:{outline:"none",...e.style},onMouseDown:se(e.onMouseDown,()=>{S.current=!0}),onFocus:se(e.onFocus,I=>{let F=!S.current;if(I.target===I.currentTarget&&F&&!v){let X=new CustomEvent(Ai,dx);if(I.currentTarget.dispatchEvent(X),!X.defaultPrevented){let D=C().filter(A=>A.focusable),O=D.find(A=>A.active),U=D.find(A=>A.id===p),k=[O,U,...D].filter(Boolean).map(A=>A.ref.current);$u(k,u)}}S.current=!1}),onBlur:se(e.onBlur,()=>w(!1))})})}),Gu="RovingFocusGroupItem",Ku=V((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:r=!1,tabStopId:n,children:i,...s}=e,l=dt(),d=n||l,u=px(Gu,a),c=u.currentTabStopId===d,m=ju(a),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:p}=u,g=qu();return ke(()=>{if(!(!g||!o))return h(),()=>x()},[g,o,h,x]),H(()=>{if(!(g||!o))return h(),()=>x()},[g,o,h,x]),L(Di.ItemSlot,{scope:a,id:d,focusable:o,active:r,children:L(oe.span,{tabIndex:c?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:se(e.onMouseDown,v=>{o?u.onItemFocus(d):v.preventDefault()}),onFocus:se(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:se(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;let w=vx(v,u.orientation,u.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let C=m().filter(S=>S.focusable).map(S=>S.ref.current);if(w==="last")C.reverse();else if(w==="prev"||w==="next"){w==="prev"&&C.reverse();let S=C.indexOf(v.currentTarget);C=u.loop?xx(C,S+1):C.slice(S+1)}setTimeout(()=>$u(C))}}),children:typeof i=="function"?i({isCurrentTabStop:c,hasTabStop:p!=null}):i})})});Ku.displayName=Gu;var gx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hx(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function vx(e,t,a){let o=hx(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return gx[o]}function $u(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}function xx(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var Xu=Wu,Zu=Ku;function no(e,[t,a]){return Math.min(a,Math.max(t,e))}var Ze={};Ka(Ze,{Arrow:()=>Ic,Content:()=>nc,Group:()=>fc,Icon:()=>ac,Item:()=>hc,ItemIndicator:()=>bc,ItemText:()=>vc,Label:()=>mc,Portal:()=>rc,Root:()=>Ju,ScrollDownButton:()=>yc,ScrollUpButton:()=>wc,Select:()=>Ju,SelectArrow:()=>Ic,SelectContent:()=>nc,SelectGroup:()=>fc,SelectIcon:()=>ac,SelectItem:()=>hc,SelectItemIndicator:()=>bc,SelectItemText:()=>vc,SelectLabel:()=>mc,SelectPortal:()=>rc,SelectScrollDownButton:()=>yc,SelectScrollUpButton:()=>wc,SelectSeparator:()=>Sc,SelectTrigger:()=>Qu,SelectValue:()=>tc,SelectViewport:()=>uc,Separator:()=>Sc,Trigger:()=>Qu,Value:()=>tc,Viewport:()=>uc,createSelectScope:()=>Sx,unstable_BubbleInput:()=>_i,unstable_Provider:()=>Bi,unstable_SelectBubbleInput:()=>_i,unstable_SelectProvider:()=>Bi});var wx=[" ","Enter","ArrowUp","ArrowDown"],yx=[" ","Enter"],Ca="Select",[tn,an,Cx]=Ja(Ca),[Sa,Sx]=et(Ca,[Cx,Ri]),on=Ri(),[Lx,oa]=Sa(Ca),[Ix,kx]=Sa(Ca),Rx="SelectProvider";function Bi(e){let{__scopeSelect:t,children:a,open:o,defaultOpen:r,onOpenChange:n,value:i,defaultValue:s,onValueChange:l,dir:d,name:u,autoComplete:c,disabled:m,required:h,form:x,internal_do_not_use_render:p}=e,g=on(t),[v,w]=M(null),[b,C]=M(null),[S,R]=M(!1),T=ea(d),[I,F]=gt({prop:o,defaultProp:r??!1,onChange:n,caller:Ca}),[X,D]=gt({prop:i,defaultProp:s,onChange:l,caller:Ca}),O=z(null),U=z(X);H(()=>{let _=x?v?.ownerDocument.getElementById(x):v?.form;if(_ instanceof HTMLFormElement){let Y=()=>D(U.current);return _.addEventListener("reset",Y),()=>_.removeEventListener("reset",Y)}},[x,v,D]);let q=v?!!x||!!v.closest("form"):!0,[k,A]=M(new Set),j=dt(),B=Array.from(k).map(_=>_.props.value).join(";"),te=Q(_=>{A(Y=>new Set(Y).add(_))},[]),E=Q(_=>{A(Y=>{let be=new Set(Y);return be.delete(_),be})},[]),P={required:h,trigger:v,onTriggerChange:w,valueNode:b,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:R,contentId:j,value:X,onValueChange:D,open:I,onOpenChange:F,dir:T,triggerPointerDownPosRef:O,disabled:m,name:u,autoComplete:c,form:x,nativeOptions:k,nativeSelectKey:B,isFormControl:q};return L(Bu,{...g,children:L(Lx,{scope:t,...P,children:L(tn.Provider,{scope:t,children:L(Ix,{scope:t,onNativeOptionAdd:te,onNativeOptionRemove:E,children:_x(p)?p(P):a})})})})}Bi.displayName=Rx;var Ju=e=>{let{__scopeSelect:t,children:a,...o}=e;return L(Bi,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>qe(Yt,{children:[a,r?L(_i,{__scopeSelect:t}):null]})})};Ju.displayName=Ca;var Yu="SelectTrigger",Qu=V((e,t)=>{let{__scopeSelect:a,disabled:o=!1,...r}=e,n=on(a),i=oa(Yu,a),s=i.disabled||o,l=ge(t,i.onTriggerChange),d=an(a),u=z("touch"),[c,m,h]=Rc(p=>{let g=d().filter(b=>!b.disabled),v=g.find(b=>b.value===i.value),w=Pc(g,p,v);w!==void 0&&i.onValueChange(w.value)}),x=p=>{s||(i.onOpenChange(!0),h()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return L(Hu,{asChild:!0,...n,children:L(oe.button,{type:"button",role:"combobox","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":rn(i.value)?"":void 0,...r,ref:l,onClick:se(r.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&x(p)}),onPointerDown:se(r.onPointerDown,p=>{u.current=p.pointerType;let g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(x(p),p.preventDefault())}),onKeyDown:se(r.onKeyDown,p=>{let g=c.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&m(p.key),!(g&&p.key===" ")&&wx.includes(p.key)&&(x(),p.preventDefault())})})})});Qu.displayName=Yu;var ec="SelectValue",tc=V((e,t)=>{let{__scopeSelect:a,className:o,style:r,children:n,placeholder:i="",...s}=e,l=oa(ec,a),{onValueNodeHasChildrenChange:d}=l,u=n!==void 0,c=ge(t,l.onValueNodeChange);ke(()=>{d(u)},[d,u]);let m=rn(l.value);return L(oe.span,{...s,asChild:m?!1:s.asChild,ref:c,style:{pointerEvents:"none"},children:L(nt,{children:m?i:n},m?"placeholder":"value")})});tc.displayName=ec;var Px="SelectIcon",ac=V((e,t)=>{let{__scopeSelect:a,children:o,...r}=e;return L(oe.span,{"aria-hidden":!0,...r,ref:t,children:o||"\u25BC"})});ac.displayName=Px;var oc="SelectPortal",[Tx,Mx]=Sa(oc,{forceMount:void 0}),rc=e=>{let{__scopeSelect:t,forceMount:a,...o}=e;return L(Tx,{scope:e.__scopeSelect,forceMount:a,children:L(Fo,{asChild:!0,...o})})};rc.displayName=oc;var aa="SelectContent",nc=V((e,t)=>{let a=Mx(aa,e.__scopeSelect),{forceMount:o=a.forceMount,...r}=e,n=oa(aa,e.__scopeSelect),[i,s]=M();return ke(()=>{s(new DocumentFragment)},[]),L(Vt,{present:o||n.open,children:({present:l})=>l?L(lc,{...r,ref:t}):L(ic,{...r,fragment:i})})});nc.displayName=aa;var ic=V((e,t)=>{let{__scopeSelect:a,children:o,fragment:r}=e;return r?Do(L(sc,{scope:a,children:L(tn.Slot,{scope:a,children:L("div",{ref:t,children:o})})}),r):null});ic.displayName="SelectContentFragment";var yt=10,[sc,ra]=Sa(aa),Ax="SelectContentImpl",Dx=mt("SelectContent.RemoveScroll"),lc=V((e,t)=>{let{__scopeSelect:a}=e,{position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:n,onPointerDownOutside:i,side:s,sideOffset:l,align:d,alignOffset:u,arrowPadding:c,collisionBoundary:m,collisionPadding:h,sticky:x,hideWhenDetached:p,avoidCollisions:g,...v}=e,w=oa(aa,a),[b,C]=M(null),[S,R]=M(null),T=ge(t,C),[I,F]=M(null),[X,D]=M(null),O=an(a),[U,q]=M(!1),k=z(!1);H(()=>{if(b)return Fr(b)},[b]),Mr();let A=Q(J=>{let[fe,...de]=O().map(Se=>Se.ref.current),[we]=de.slice(-1),ye=document.activeElement;for(let Se of J)if(Se===ye||(Se?.scrollIntoView({block:"nearest"}),Se===fe&&S&&(S.scrollTop=0),Se===we&&S&&(S.scrollTop=S.scrollHeight),Se?.focus(),document.activeElement!==ye))return},[O,S]),j=Q(()=>A([I,b]),[A,I,b]);H(()=>{U&&j()},[U,j]);let{onOpenChange:B,triggerPointerDownPosRef:te}=w;H(()=>{if(b){let J={x:0,y:0},fe=we=>{J={x:Math.abs(Math.round(we.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(we.pageY)-(te.current?.y??0))}},de=we=>{J.x<=10&&J.y<=10?we.preventDefault():we.composedPath().includes(b)||B(!1),document.removeEventListener("pointermove",fe),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",de,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",de,{capture:!0})}}},[b,B,te]),H(()=>{let J=()=>B(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[B]);let[E,P]=Rc(J=>{let fe=O().filter(ye=>!ye.disabled),de=fe.find(ye=>ye.ref.current===document.activeElement),we=Pc(fe,J,de);we&&setTimeout(()=>we.ref.current?.focus())}),_=Q((J,fe,de)=>{let we=!k.current&&!de;(w.value!==void 0&&w.value===fe||we)&&(F(J),we&&(k.current=!0))},[w.value]),Y=Q(()=>b?.focus(),[b]),be=Q((J,fe,de)=>{let we=!k.current&&!de;(w.value!==void 0&&w.value===fe||we)&&D(J)},[w.value]),ie=o==="popper"?Ei:dc,ne=ie===Ei?{side:s,sideOffset:l,align:d,alignOffset:u,arrowPadding:c,collisionBoundary:m,collisionPadding:h,sticky:x,hideWhenDetached:p,avoidCollisions:g}:{};return L(sc,{scope:a,content:b,viewport:S,onViewportChange:R,itemRefCallback:_,selectedItem:I,onItemLeave:Y,itemTextRefCallback:be,focusSelectedItem:j,selectedItemText:X,position:o,isPositioned:U,searchRef:E,children:L(Vo,{as:Dx,allowPinchZoom:!0,children:L(No,{asChild:!0,trapped:w.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:se(r,J=>{w.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:L(Oo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:L(ie,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:J=>J.preventDefault(),...v,...ne,onPlaced:()=>q(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:se(v.onKeyDown,J=>{let fe=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!fe&&J.key.length===1&&P(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let we=O().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(J.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){let ye=J.target,Se=we.indexOf(ye);we=we.slice(Se+1)}setTimeout(()=>A(we)),J.preventDefault()}})})})})})})});lc.displayName=Ax;var zx="SelectItemAlignedPosition",dc=V((e,t)=>{let{__scopeSelect:a,onPlaced:o,...r}=e,n=oa(aa,a),i=ra(aa,a),[s,l]=M(null),[d,u]=M(null),c=ge(t,u),m=an(a),h=z(!1),x=z(!0),{viewport:p,selectedItem:g,selectedItemText:v,focusSelectedItem:w}=i,b=Q(()=>{if(n.trigger&&n.valueNode&&s&&d&&p&&g&&v){let T=n.trigger.getBoundingClientRect(),I=d.getBoundingClientRect(),F=n.valueNode.getBoundingClientRect(),X=v.getBoundingClientRect();if(n.dir!=="rtl"){let ye=X.left-I.left,Se=F.left-ye,Ve=T.left-Se,Ae=T.width+Ve,Ga=Math.max(Ae,I.width),ue=window.innerWidth-yt,Kt=no(Se,[yt,Math.max(yt,ue-Ga)]);s.style.minWidth=Ae+"px",s.style.left=Kt+"px"}else{let ye=I.right-X.right,Se=window.innerWidth-F.right-ye,Ve=window.innerWidth-T.right-Se,Ae=T.width+Ve,Ga=Math.max(Ae,I.width),ue=window.innerWidth-yt,Kt=no(Se,[yt,Math.max(yt,ue-Ga)]);s.style.minWidth=Ae+"px",s.style.right=Kt+"px"}let D=m(),O=window.innerHeight-yt*2,U=p.scrollHeight,q=window.getComputedStyle(d),k=parseInt(q.borderTopWidth,10),A=parseInt(q.paddingTop,10),j=parseInt(q.borderBottomWidth,10),B=parseInt(q.paddingBottom,10),te=k+A+U+B+j,E=Math.min(g.offsetHeight*5,te),P=window.getComputedStyle(p),_=parseInt(P.paddingTop,10),Y=parseInt(P.paddingBottom,10),be=T.top+T.height/2-yt,ie=O-be,ne=g.offsetHeight/2,J=g.offsetTop+ne,fe=k+A+J,de=te-fe;if(fe<=be){let ye=D.length>0&&g===D[D.length-1].ref.current;s.style.bottom="0px";let Se=d.clientHeight-p.offsetTop-p.offsetHeight,Ve=Math.max(ie,ne+(ye?Y:0)+Se+j),Ae=fe+Ve;s.style.height=Ae+"px"}else{let ye=D.length>0&&g===D[0].ref.current;s.style.top="0px";let Ve=Math.max(be,k+p.offsetTop+(ye?_:0)+ne)+de;s.style.height=Ve+"px",p.scrollTop=fe-be+p.offsetTop}s.style.margin=`${yt}px 0`,s.style.minHeight=E+"px",s.style.maxHeight=O+"px",o?.(),requestAnimationFrame(()=>h.current=!0)}},[m,n.trigger,n.valueNode,s,d,p,g,v,n.dir,o]);ke(()=>b(),[b]);let[C,S]=M();ke(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);let R=Q(T=>{T&&x.current===!0&&(b(),w?.(),x.current=!1)},[b,w]);return L(Ox,{scope:a,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:R,children:L("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:L(oe.div,{...r,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});dc.displayName=zx;var Ex="SelectPopperPosition",Ei=V((e,t)=>{let{__scopeSelect:a,align:o="start",collisionPadding:r=yt,...n}=e,i=on(a);return L(_u,{...i,...n,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...n.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ei.displayName=Ex;var[Ox,Hi]=Sa(aa,{}),Oi="SelectViewport",uc=V((e,t)=>{let{__scopeSelect:a,nonce:o,...r}=e,n=ra(Oi,a),i=Hi(Oi,a),s=ge(t,n.onViewportChange),l=z(0);return qe(Yt,{children:[L("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),L(tn.Slot,{scope:a,children:L(oe.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:se(r.onScroll,d=>{let u=d.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:m}=i;if(m?.current&&c){let h=Math.abs(l.current-u.scrollTop);if(h>0){let x=window.innerHeight-yt*2,p=parseFloat(c.style.minHeight),g=parseFloat(c.style.height),v=Math.max(p,g);if(v<x){let w=v+h,b=Math.min(x,w),C=w-b;c.style.height=b+"px",c.style.bottom==="0px"&&(u.scrollTop=C>0?C:0,c.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});uc.displayName=Oi;var cc="SelectGroup",[Nx,Fx]=Sa(cc),fc=V((e,t)=>{let{__scopeSelect:a,...o}=e,r=dt();return L(Nx,{scope:a,id:r,children:L(oe.div,{role:"group","aria-labelledby":r,...o,ref:t})})});fc.displayName=cc;var pc="SelectLabel",mc=V((e,t)=>{let{__scopeSelect:a,...o}=e,r=Fx(pc,a);return L(oe.div,{id:r.id,...o,ref:t})});mc.displayName=pc;var en="SelectItem",[Bx,gc]=Sa(en),hc=V((e,t)=>{let{__scopeSelect:a,value:o,disabled:r=!1,textValue:n,...i}=e,s=oa(en,a),l=ra(en,a),d=s.value===o,[u,c]=M(n??""),[m,h]=M(!1),x=$e(b=>l.itemRefCallback?.(b,o,r)),p=ge(t,x),g=dt(),v=z("touch"),w=()=>{r||(s.onValueChange(o),s.onOpenChange(!1))};return L(Bx,{scope:a,value:o,disabled:r,textId:g,isSelected:d,onItemTextChange:Q(b=>{c(C=>C||(b?.textContent??"").trim())},[]),children:L(tn.ItemSlot,{scope:a,value:o,disabled:r,textValue:u,children:L(oe.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:p,onFocus:se(i.onFocus,()=>h(!0)),onBlur:se(i.onBlur,()=>h(!1)),onClick:se(i.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:se(i.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:se(i.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:se(i.onPointerMove,b=>{v.current=b.pointerType,r?l.onItemLeave?.():v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:se(i.onPointerLeave,b=>{b.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:se(i.onKeyDown,b=>{r||b.target!==b.currentTarget||l.searchRef?.current!==""&&b.key===" "||(yx.includes(b.key)&&w(),b.key===" "&&b.preventDefault())})})})})});hc.displayName=en;var $o="SelectItemText",vc=V((e,t)=>{let{__scopeSelect:a,className:o,style:r,...n}=e,i=oa($o,a),s=ra($o,a),l=gc($o,a),d=kx($o,a),[u,c]=M(null),m=$e(w=>s.itemTextRefCallback?.(w,l.value,l.disabled)),h=ge(t,c,l.onItemTextChange,m),x=u?.textContent,p=me(()=>L("option",{value:l.value,disabled:l.disabled,children:x},l.value),[l.disabled,l.value,x]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=d;return ke(()=>(g(p),()=>v(p)),[g,v,p]),qe(Yt,{children:[L(oe.span,{id:l.textId,...n,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren&&!rn(i.value)?Do(n.children,i.valueNode):null]})});vc.displayName=$o;var xc="SelectItemIndicator",bc=V((e,t)=>{let{__scopeSelect:a,...o}=e;return gc(xc,a).isSelected?L(oe.span,{"aria-hidden":!0,...o,ref:t}):null});bc.displayName=xc;var Ni="SelectScrollUpButton",wc=V((e,t)=>{let a=ra(Ni,e.__scopeSelect),o=Hi(Ni,e.__scopeSelect),[r,n]=M(!1),i=ge(t,o.onScrollButtonChange);return ke(()=>{if(a.viewport&&a.isPositioned){let l=function(){let u=d.scrollTop>0;n(u)};var s=l;let d=a.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[a.viewport,a.isPositioned]),r?L(Cc,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:l}=a;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});wc.displayName=Ni;var Fi="SelectScrollDownButton",yc=V((e,t)=>{let a=ra(Fi,e.__scopeSelect),o=Hi(Fi,e.__scopeSelect),[r,n]=M(!1),i=ge(t,o.onScrollButtonChange);return ke(()=>{if(a.viewport&&a.isPositioned){let l=function(){let u=d.scrollHeight-d.clientHeight,c=Math.ceil(d.scrollTop)<u;n(c)};var s=l;let d=a.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[a.viewport,a.isPositioned]),r?L(Cc,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:l}=a;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});yc.displayName=Fi;var Cc=V((e,t)=>{let{__scopeSelect:a,onAutoScroll:o,...r}=e,n=ra("SelectScrollButton",a),i=z(null),s=an(a),l=Q(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return H(()=>()=>l(),[l]),ke(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),L(oe.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:se(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:se(r.onPointerMove,()=>{n.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:se(r.onPointerLeave,()=>{l()})})}),Hx="SelectSeparator",Sc=V((e,t)=>{let{__scopeSelect:a,...o}=e;return L(oe.div,{"aria-hidden":!0,...o,ref:t})});Sc.displayName=Hx;var Lc="SelectArrow",Ic=V((e,t)=>{let{__scopeSelect:a,...o}=e,r=on(a);return ra(Lc,a).position==="popper"?L(Vu,{...r,...o,ref:t}):null});Ic.displayName=Lc;var kc="SelectBubbleInput",_i=V(({__scopeSelect:e,...t},a)=>{let o=oa(kc,e),{value:r,onValueChange:n,required:i,disabled:s,name:l,autoComplete:d,form:u}=o,{nativeOptions:c,nativeSelectKey:m}=o,h=z(null),x=ge(a,h),p=r??"",g=_r(p),v=Array.from(c).some(w=>(w.props.value??"")==="");return H(()=>{let w=h.current;if(!w)return;let b=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(b,"value").set;if(g!==p&&S){let R=new Event("change",{bubbles:!0});S.call(w,p),w.dispatchEvent(R)}},[g,p]),qe(oe.select,{"aria-hidden":!0,required:i,tabIndex:-1,name:l,autoComplete:d,disabled:s,form:u,onChange:w=>n(w.target.value),...t,style:{...Jn,...t.style},ref:x,defaultValue:p,children:[rn(r)&&!v?L("option",{value:""}):null,Array.from(c)]},m)});_i.displayName=kc;function _x(e){return typeof e=="function"}function rn(e){return e===""||e===void 0}function Rc(e){let t=$e(e),a=z(""),o=z(0),r=Q(i=>{let s=a.current+i;t(s),(function l(d){a.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),n=Q(()=>{a.current="",window.clearTimeout(o.current)},[]);return H(()=>()=>window.clearTimeout(o.current),[]),[a,r,n]}function Pc(e,t,a){let r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,n=a?e.indexOf(a):-1,i=Vx(e,Math.max(n,0));r.length===1&&(i=i.filter(d=>d!==a));let l=i.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==a?l:void 0}function Vx(e,t){return e.map((a,o)=>e[(t+o)%e.length])}var La={};Ka(La,{Range:()=>Bc,Root:()=>Dc,Slider:()=>Dc,SliderRange:()=>Bc,SliderThumb:()=>Uc,SliderTrack:()=>Fc,Thumb:()=>Uc,Track:()=>Fc,createSliderScope:()=>jx,unstable_BubbleInput:()=>Gi,unstable_SliderBubbleInput:()=>Gi,unstable_SliderThumbProvider:()=>ji,unstable_SliderThumbTrigger:()=>Wi,unstable_ThumbProvider:()=>ji,unstable_ThumbTrigger:()=>Wi});var Tc=["PageUp","PageDown"],Mc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ac={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},io="Slider",[Vi,Ux,qx]=Ja(io),[qi,jx]=et(io,[qx]),[Wx,Xo]=qi(io),Dc=V((e,t)=>{let{name:a,min:o=0,max:r=100,step:n=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:d=[o],value:u,onValueChange:c=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:x,...p}=e,g=z(new Set),v=z(0),w=z(!1),C=i==="horizontal"?Gx:Kx,[S,R]=M(null),T=ge(t,R),[I=[],F]=gt({prop:u,defaultProp:d,onChange:A=>{[...g.current][v.current]?.focus({preventScroll:!0,focusVisible:w.current}),w.current=!1,c(A)}}),X=z(I),D=z(I);H(()=>{let A=x?S?.ownerDocument.getElementById(x):S?.closest("form");if(A instanceof HTMLFormElement){let j=()=>F(D.current);return A.addEventListener("reset",j),()=>A.removeEventListener("reset",j)}},[S,x,F]);function O(A){let j=Jx(I,A);k(A,j)}function U(A){k(A,v.current)}function q(){let A=X.current[v.current];I[v.current]!==A&&m(I)}function k(A,j,{commit:B}={commit:!1}){let te=Wc(n),E=sn(Math.round((A-o)/n)*n+o,te),P=no(E,[o,r]);F((_=[])=>{let Y=Xx(_,P,j);if(eb(Y,l*n)){v.current=Y.indexOf(P);let be=String(Y)!==String(_);return be&&B&&m(Y),be?Y:_}else return _})}return L(Wx,{scope:e.__scopeSlider,name:a,disabled:s,min:o,max:r,valueIndexToChangeRef:v,thumbs:g.current,values:I,orientation:i,form:x,children:L(Vi.Provider,{scope:e.__scopeSlider,children:L(Vi.Slot,{scope:e.__scopeSlider,children:L(C,{"aria-disabled":s,"data-disabled":s?"":void 0,...p,ref:T,onPointerDown:se(p.onPointerDown,()=>{s||(X.current=I,w.current=!1)}),min:o,max:r,inverted:h,onSlideStart:s?void 0:O,onSlideMove:s?void 0:U,onSlideEnd:s?void 0:q,onHomeKeyDown:()=>{s||(w.current=!0,k(o,0,{commit:!0}))},onEndKeyDown:()=>{s||(w.current=!0,k(r,I.length-1,{commit:!0}))},onStepKeyDown:({event:A,direction:j})=>{if(!s){w.current=!0;let E=Tc.includes(A.key)||A.shiftKey&&Mc.includes(A.key)?10:1,P=v.current,_=I[P],Y=tb(_,{min:o,step:n,direction:j,multiplier:E});k(Y,P,{commit:!0})}}})})})})});Dc.displayName=io;var[zc,Ec]=qi(io,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Gx=V((e,t)=>{let{min:a,max:o,dir:r,inverted:n,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:d,...u}=e,[c,m]=M(null),h=ge(t,m),x=z(void 0),p=ea(r),g=p==="ltr",v=g&&!n||!g&&n;function w(b){let C=x.current||c.getBoundingClientRect(),S=[0,C.width],T=Ki(S,v?[a,o]:[o,a]);return x.current=C,T(b-C.left)}return L(zc,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:L(Oc,{dir:p,"data-orientation":"horizontal",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{let C=w(b.clientX);i?.(C)},onSlideMove:b=>{let C=w(b.clientX);s?.(C)},onSlideEnd:()=>{x.current=void 0,l?.()},onStepKeyDown:b=>{let S=Ac[v?"from-left":"from-right"].includes(b.key);d?.({event:b,direction:S?-1:1})}})})}),Kx=V((e,t)=>{let{min:a,max:o,inverted:r,onSlideStart:n,onSlideMove:i,onSlideEnd:s,onStepKeyDown:l,...d}=e,u=z(null),c=ge(t,u),m=z(void 0),h=!r;function x(p){let g=m.current||u.current.getBoundingClientRect(),v=[0,g.height],b=Ki(v,h?[o,a]:[a,o]);return m.current=g,b(p-g.top)}return L(zc,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:L(Oc,{"data-orientation":"vertical",...d,ref:c,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{let g=x(p.clientY);n?.(g)},onSlideMove:p=>{let g=x(p.clientY);i?.(g)},onSlideEnd:()=>{m.current=void 0,s?.()},onStepKeyDown:p=>{let v=Ac[h?"from-bottom":"from-top"].includes(p.key);l?.({event:p,direction:v?-1:1})}})})}),Oc=V((e,t)=>{let{__scopeSlider:a,onSlideStart:o,onSlideMove:r,onSlideEnd:n,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:l,...d}=e,u=Xo(io,a);return L(oe.span,{...d,ref:t,onKeyDown:se(e.onKeyDown,c=>{c.key==="Home"?(i(c),c.preventDefault()):c.key==="End"?(s(c),c.preventDefault()):Tc.concat(Mc).includes(c.key)&&(l(c),c.preventDefault())}),onPointerDown:se(e.onPointerDown,c=>{let m=c.target;m.setPointerCapture(c.pointerId),c.preventDefault(),u.thumbs.has(m)?m.focus({preventScroll:!0,focusVisible:!1}):o(c)}),onPointerMove:se(e.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&r(c)}),onPointerUp:se(e.onPointerUp,c=>{let m=c.target;m.hasPointerCapture(c.pointerId)&&(m.releasePointerCapture(c.pointerId),n(c))})})}),Nc="SliderTrack",Fc=V((e,t)=>{let{__scopeSlider:a,...o}=e,r=Xo(Nc,a);return L(oe.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});Fc.displayName=Nc;var Ui="SliderRange",Bc=V((e,t)=>{let{__scopeSlider:a,...o}=e,r=Xo(Ui,a),n=Ec(Ui,a),i=z(null),s=ge(t,i),l=r.values.length,d=r.values.map(m=>jc(m,r.min,r.max)),u=l>1?Math.min(...d):0,c=100-Math.max(...d);return L(oe.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:s,style:{...e.style,[n.startEdge]:u+"%",[n.endEdge]:c+"%"}})});Bc.displayName=Ui;var Hc="SliderThumb",[$x,_c]=qi(Hc),Vc="SliderThumbProvider";function ji(e){let{__scopeSlider:t,name:a,children:o,internal_do_not_use_render:r}=e,n=Xo(Vc,t),i=Ux(t),[s,l]=M(null),d=me(()=>s?i().findIndex(g=>g.ref.current===s):-1,[i,s]),u=Vr(s),c=s?!!n.form||!!s.closest("form"):!0,m=n.values[d],h=a??(n.name?n.name+(n.values.length>1?"[]":""):void 0),x=m===void 0?0:jc(m,n.min,n.max);H(()=>{if(s)return n.thumbs.add(s),()=>{n.thumbs.delete(s)}},[s,n.thumbs]);let p={value:m,name:h,form:n.form,isFormControl:c,index:d,thumb:s,onThumbChange:l,percent:x,size:u};return L($x,{scope:t,...p,children:ab(r)?r(p):o})}ji.displayName=Vc;var nn="SliderThumbTrigger",Wi=V((e,t)=>{let{__scopeSlider:a,...o}=e,r=Xo(nn,a),n=Ec(nn,a),{index:i,value:s,percent:l,size:d,onThumbChange:u}=_c(nn,a),c=ge(t,u),m=Zx(i,r.values.length),h=d?.[n.size],x=h?Yx(h,l,n.direction):0;return L("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[n.startEdge]:`calc(${l}% + ${x}px)`},children:L(Vi.ItemSlot,{scope:a,children:L(oe.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":r.min,"aria-valuenow":s,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...o,ref:c,style:s===void 0?{display:"none"}:e.style,onFocus:se(e.onFocus,()=>{r.valueIndexToChangeRef.current=i})})})})});Wi.displayName=nn;var Uc=V((e,t)=>{let{__scopeSlider:a,name:o,...r}=e;return L(ji,{__scopeSlider:a,name:o,internal_do_not_use_render:({index:n,isFormControl:i})=>qe(Yt,{children:[L(Wi,{...r,ref:t,__scopeSlider:a}),i?L(Gi,{__scopeSlider:a},n):null]})})});Uc.displayName=Hc;var qc="SliderBubbleInput",Gi=V(({__scopeSlider:e,...t},a)=>{let{value:o,name:r,form:n}=_c(qc,e),i=z(null),s=ge(i,a),l=_r(o);return H(()=>{let d=i.current;if(!d)return;let u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==o&&m){let h=new Event("input",{bubbles:!0});m.call(d,o),d.dispatchEvent(h)}},[l,o]),L(oe.input,{style:{display:"none"},name:r,form:n,...t,ref:s,defaultValue:o})});Gi.displayName=qc;function Xx(e=[],t,a){let o=[...e];return o[a]=t,o.sort((r,n)=>r-n)}function jc(e,t,a){let n=100/(a-t)*(e-t);return no(n,[0,100])}function Zx(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Jx(e,t){if(e.length===1)return 0;let a=e.map(r=>Math.abs(r-t)),o=Math.min(...a);return a.indexOf(o)}function Yx(e,t,a){let o=e/2,n=Ki([0,50],[0,o]);return(o-n(t)*a)*a}function Qx(e){return e.slice(0,-1).map((t,a)=>e[a+1]-t)}function eb(e,t){if(t>0){let a=Qx(e);return Math.min(...a)>=t}return!0}function Ki(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(a-e[0])}}function Wc(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[o,r]=t.split("e"),n=o.split(".")[1]||"",i=Number(r);return Math.max(0,n.length-i)}let a=t.split(".")[1];return a?a.length:0}function sn(e,t){let a=Math.pow(10,t);return Math.round(e*a)/a}function tb(e,{min:t,step:a,direction:o,multiplier:r}){let n=Wc(a),i=(e-t)/a,s=Math.round(i),l=sn(s*a+t,n)===sn(e,n),d;return l?d=s+r*o:o>0?d=Math.ceil(i):d=Math.floor(i),sn(d*a+t,n)}function ab(e){return typeof e=="function"}var so={};Ka(so,{Content:()=>db,List:()=>sb,Root:()=>ib,Tabs:()=>Xi,TabsContent:()=>Yi,TabsList:()=>Zi,TabsTrigger:()=>Ji,Trigger:()=>lb,createTabsScope:()=>rb});var ln="Tabs",[ob,rb]=et(ln,[zi]),Gc=zi(),[nb,$i]=ob(ln),Xi=V((e,t)=>{let{__scopeTabs:a,value:o,onValueChange:r,defaultValue:n,orientation:i="horizontal",dir:s,activationMode:l="automatic",...d}=e,u=ea(s),[c,m]=gt({prop:o,onChange:r,defaultProp:n??"",caller:ln});return L(nb,{scope:a,baseId:dt(),value:c,onValueChange:m,orientation:i,dir:u,activationMode:l,children:L(oe.div,{dir:u,"data-orientation":i,...d,ref:t})})});Xi.displayName=ln;var Kc="TabsList",Zi=V((e,t)=>{let{__scopeTabs:a,loop:o=!0,...r}=e,n=$i(Kc,a),i=Gc(a);return L(Xu,{asChild:!0,...i,orientation:n.orientation,dir:n.dir,loop:o,children:L(oe.div,{role:"tablist","aria-orientation":n.orientation,...r,ref:t})})});Zi.displayName=Kc;var $c="TabsTrigger",Ji=V((e,t)=>{let{__scopeTabs:a,value:o,disabled:r=!1,...n}=e,i=$i($c,a),s=Gc(a),l=Zc(i.baseId,o),d=Jc(i.baseId,o),u=o===i.value;return L(Zu,{asChild:!0,...s,focusable:!r,active:u,children:L(oe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":d,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...n,ref:t,onMouseDown:se(e.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?i.onValueChange(o):c.preventDefault()}),onKeyDown:se(e.onKeyDown,c=>{r||c.target!==c.currentTarget||[" ","Enter"].includes(c.key)&&i.onValueChange(o)}),onFocus:se(e.onFocus,()=>{let c=i.activationMode!=="manual";!u&&!r&&c&&i.onValueChange(o)})})})});Ji.displayName=$c;var Xc="TabsContent",Yi=V((e,t)=>{let{__scopeTabs:a,value:o,forceMount:r,children:n,...i}=e,s=$i(Xc,a),l=Zc(s.baseId,o),d=Jc(s.baseId,o),u=o===s.value,c=z(u);return H(()=>{let m=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(m)},[]),L(Vt,{present:r||u,children:({present:m})=>L(oe.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:d,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:m&&n})})});Yi.displayName=Xc;function Zc(e,t){return`${e}-trigger-${t}`}function Jc(e,t){return`${e}-content-${t}`}var ib=Xi,sb=Zi,lb=Ji,db=Yi;var Yc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qc=yr,na=(e,t)=>a=>{var o;if(t?.variants==null)return Qc(e,a?.class,a?.className);let{variants:r,defaultVariants:n}=t,i=Object.keys(r).map(d=>{let u=a?.[d],c=n?.[d];if(u===null)return null;let m=Yc(u)||Yc(c);return r[d][m]}),s=a&&Object.entries(a).reduce((d,u)=>{let[c,m]=u;return m===void 0||(d[c]=m),d},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,u)=>{let{class:c,className:m,...h}=u;return Object.entries(h).every(x=>{let[p,g]=x;return Array.isArray(g)?g.includes({...n,...s}[p]):{...n,...s}[p]===g})?[...d,c,m]:d},[]);return Qc(e,i,l,a?.class,a?.className)};function ub(e,t){let a=getComputedStyle(e),o=parseFloat(a.fontSize);return t*o}function cb(e,t){let a=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(a.fontSize);return t*o}function fb(e){return e/100*window.innerHeight}function pb(e){return e/100*window.innerWidth}function mb(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Zo({groupSize:e,panelElement:t,styleProp:a}){let o,[r,n]=mb(a);switch(n){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=cb(t,r);break}case"em":{o=ub(t,r);break}case"vh":{o=fb(r);break}case"vw":{o=pb(r);break}}return o}function Je(e){return parseFloat(e.toFixed(3))}function po({group:e}){let{orientation:t,panels:a}=e;return a.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function es(e){let{panels:t}=e,a=po({group:e});return a===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{let{element:r,panelConstraints:n}=o,i=0;if(n.collapsedSize!==void 0){let u=Zo({groupSize:a,panelElement:r,styleProp:n.collapsedSize});i=Je(u/a*100)}let s;if(n.defaultSize!==void 0){let u=Zo({groupSize:a,panelElement:r,styleProp:n.defaultSize});s=Je(u/a*100)}let l=0;if(n.minSize!==void 0){let u=Zo({groupSize:a,panelElement:r,styleProp:n.minSize});l=Je(u/a*100)}let d=100;if(n.maxSize!==void 0){let u=Zo({groupSize:a,panelElement:r,styleProp:n.maxSize});d=Je(u/a*100)}return{groupResizeBehavior:n.groupResizeBehavior,collapsedSize:i,collapsible:n.collapsible===!0,defaultSize:s,disabled:n.disabled,minSize:l,maxSize:d,panelId:o.id}})}function Ie(e,t="Assertion error"){if(!e)throw Error(t)}function ts(e,t){return Array.from(t).sort(e==="horizontal"?gb:hb)}function gb(e,t){let a=e.element.offsetLeft-t.element.offsetLeft;return a!==0?a:e.element.offsetWidth-t.element.offsetWidth}function hb(e,t){let a=e.element.offsetTop-t.element.offsetTop;return a!==0?a:e.element.offsetHeight-t.element.offsetHeight}function xf(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function bf(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function vb({orientation:e,rects:t,targetRect:a}){let o={x:a.x+a.width/2,y:a.y+a.height/2},r,n=Number.MAX_VALUE;for(let i of t){let{x:s,y:l}=bf(o,i),d=e==="horizontal"?s:l;d<n&&(n=d,r=i)}return Ie(r,"No rect found"),r}var dn;function xb(){return dn===void 0&&(typeof matchMedia=="function"?dn=!!matchMedia("(pointer:coarse)").matches:dn=!1),dn}function wf(e){let{element:t,orientation:a,panels:o,separators:r}=e,n=ts(a,Array.from(t.children).filter(xf).map(x=>({element:x}))).map(({element:x})=>x),i=[],s=!1,l=!1,d=-1,u=-1,c=0,m,h=[];{let x=-1;for(let p of n)p.hasAttribute("data-panel")&&(x++,p.hasAttribute("data-disabled")||(c++,d===-1&&(d=x),u=x))}if(c>1){let x=-1;for(let p of n)if(p.hasAttribute("data-panel")){x++;let g=o.find(v=>v.element===p);if(g){if(m){let v=m.element.getBoundingClientRect(),w=p.getBoundingClientRect(),b;if(l){let C=a==="horizontal"?new DOMRect(v.right,v.top,0,v.height):new DOMRect(v.left,v.bottom,v.width,0),S=a==="horizontal"?new DOMRect(w.left,w.top,0,w.height):new DOMRect(w.left,w.top,w.width,0);switch(h.length){case 0:{b=[C,S];break}case 1:{let R=h[0],T=vb({orientation:a,rects:[v,w],targetRect:R.element.getBoundingClientRect()});b=[R,T===v?S:C];break}default:{b=h;break}}}else h.length?b=h:b=[a==="horizontal"?new DOMRect(v.right,w.top,w.left-v.right,w.height):new DOMRect(w.left,v.bottom,w.width,w.top-v.bottom)];for(let C of b){let S="width"in C?C:C.element.getBoundingClientRect(),R=xb()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(S.width<R){let I=R-S.width;S=new DOMRect(S.x-I/2,S.y,S.width+I,S.height)}if(S.height<R){let I=R-S.height;S=new DOMRect(S.x,S.y-I/2,S.width,S.height+I)}let T=x<=d||x>u;!s&&!T&&i.push({group:e,groupSize:po({group:e}),panels:[m,g],separator:"width"in C?void 0:C,rect:S}),s=!1}}l=!1,m=g,h=[]}}else if(p.hasAttribute("data-separator")){p.ariaDisabled!==null&&(s=!0);let g=r.find(v=>v.element===p);g?h.push(g):(m=void 0,h=[])}else l=!0}return i}var ia,fn=class{constructor(){qn(this,ia,{})}addListener(t,a){let o=$a(this,ia)[t];return o===void 0?$a(this,ia)[t]=[a]:o.includes(a)||o.push(a),()=>{this.removeListener(t,a)}}emit(t,a){let o=$a(this,ia)[t];if(o!==void 0)if(o.length===1)o[0].call(null,a);else{let r=!1,n=null,i=Array.from(o);for(let s=0;s<i.length;s++){let l=i[s];try{l.call(null,a)}catch(d){n===null&&(r=!0,n=d)}}if(r)throw n}}removeAllListeners(){jn(this,ia,{})}removeListener(t,a){let o=$a(this,ia)[t];if(o!==void 0){let r=o.indexOf(a);r>=0&&o.splice(r,1)}}};ia=new WeakMap;var co={cursorFlags:0,state:"inactive"},as=new fn;function ka(){return co}function bb(e){return as.addListener("change",e)}function wb(e){let t=co,a={...co};a.cursorFlags=e,co=a,as.emit("change",{prev:t,next:a})}function fo(e){let t=co;co=e,as.emit("change",{prev:t,next:e})}var yb=e=>e,Qi=()=>{},yf=1,Cf=2,Sf=4,Lf=8,ef=3,tf=12,un;function af(){return un===void 0&&(un=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(un=!0)),un}function Cb({cursorFlags:e,groups:t,state:a}){let o=0,r=0;switch(a){case"active":case"hover":t.forEach(n=>{if(!n.mutableState.disableCursor)switch(n.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(a){case"active":{if(e&&af()){let n=(e&yf)!==0,i=(e&Cf)!==0,s=(e&Sf)!==0,l=(e&Lf)!==0;if(n)return s?"se-resize":l?"ne-resize":"e-resize";if(i)return s?"sw-resize":l?"nw-resize":"w-resize";if(s)return"s-resize";if(l)return"n-resize"}break}}return af()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}var of=new WeakMap;function os(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:a}=of.get(e)??{};a===void 0&&(a=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(a):e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]));let o=ka();switch(o.state){case"active":case"hover":{let r=Cb({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(i=>i.group),state:o.state}),n=`*, *:hover {cursor: ${r} !important; }`;if(t===n)return;t=n,r?a.cssRules.length===0?a.insertRule(n):a.replaceSync(n):a.cssRules.length===1&&a.deleteRule(0);break}case"inactive":{t=void 0,a.cssRules.length===1&&a.deleteRule(0);break}}of.set(e,{prevStyle:t,styleSheet:a})}var Mt=new Map,If=new fn;function Sb(e){Mt=new Map(Mt),Mt.delete(e)}function rf(e,t){for(let[a]of Mt)if(a.id===e)return a}function sa(e,t){for(let[a,o]of Mt)if(a.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Ta(){return Mt}function rs(e,t){return If.addListener("groupChange",a=>{a.group.id===e&&t(a)})}function qt(e,t,a){let o=Mt.get(e);Mt=new Map(Mt),Mt.set(e,t),If.emit("groupChange",{group:e,isUserInteraction:a?.isUserInteraction===!0,prev:o,next:t})}function kf(e){let t=ka(),a=!1;return t.state==="active"&&(fo({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(os(e),a=!0,t.hitRegions.forEach(o=>{let r=sa(o.group.id,!0);qt(o.group,r,{isUserInteraction:!0})}))),a}function nf(e){e.defaultPrevented||kf(e.currentTarget)}function Lb(e,t,a){let o,r={x:1/0,y:1/0};for(let n of t){let i=bf(a,n.rect);switch(e){case"horizontal":{i.x<=r.x&&(o=n,r=i);break}case"vertical":{i.y<=r.y&&(o=n,r=i);break}}}return o?{distance:r,hitRegion:o}:void 0}function Ib(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function kb(e,t){if(e===t)throw new Error("Cannot compare node with itself");let a={a:df(e),b:df(t)},o;for(;a.a.at(-1)===a.b.at(-1);)o=a.a.pop(),a.b.pop();Ie(o,"Stacking order can only be calculated for elements with a common ancestor");let r={a:lf(sf(a.a)),b:lf(sf(a.b))};if(r.a===r.b){let n=o.childNodes,i={a:a.a.at(-1),b:a.b.at(-1)},s=n.length;for(;s--;){let l=n[s];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(r.a-r.b)}var Rb=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Pb(e){let t=getComputedStyle(Rf(e)??e).display;return t==="flex"||t==="inline-flex"}function Tb(e){let t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Pb(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Rb.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function sf(e){let t=e.length;for(;t--;){let a=e[t];if(Ie(a,"Missing node"),Tb(a))return a}return null}function lf(e){return e&&Number(getComputedStyle(e).zIndex)||0}function df(e){let t=[];for(;e;)t.push(e),e=Rf(e);return t}function Rf(e){let{parentNode:t}=e;return Ib(t)?t.host:t}function Mb(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Ab({groupElement:e,hitRegion:t,pointerEventTarget:a}){if(!xf(a)||a.contains(e)||e.contains(a))return!0;if(kb(a,e)>0){let o=a;for(;o;){if(o.contains(e))return!0;if(Mb(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function ns(e,t){let a=[];return t.forEach((o,r)=>{if(r.disabled)return;let n=wf(r),i=Lb(r.orientation,n,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&Ab({groupElement:r.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&a.push(i.hitRegion)}),a}function Db(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return!1;return!0}function je(e,t,a=0){return Math.abs(Je(e)-Je(t))<=a}function Tt(e,t){return je(e,t)?0:e>t?1:-1}function uo({overrideDisabledPanels:e,panelConstraints:t,prevSize:a,size:o}){let{collapsedSize:r=0,collapsible:n,disabled:i,maxSize:s=100,minSize:l=0}=t;if(i&&!e)return a;if(Tt(o,l)<0)if(n){let d=(r+l)/2;Tt(o,d)<0?o=r:o=l}else o=l;return o=Math.min(s,o),o=Je(o),o}function Yo({delta:e,initialLayout:t,panelConstraints:a,pivotIndices:o,prevLayout:r,trigger:n}){if(je(e,0))return t;let i=n==="imperative-api",s=Object.values(t),l=Object.values(r),d=[...s],[u,c]=o;Ie(u!=null,"Invalid first pivot index"),Ie(c!=null,"Invalid second pivot index");let m=0;switch(n){case"keyboard":{{let p=e<0?c:u,g=a[p];Ie(g,`Panel constraints not found for index ${p}`);let{collapsedSize:v=0,collapsible:w,minSize:b=0}=g;if(w){let C=s[p];if(Ie(C!=null,`Previous layout not found for panel index ${p}`),je(C,v)){let S=b-C;Tt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}{let p=e<0?u:c,g=a[p];Ie(g,`No panel constraints found for index ${p}`);let{collapsedSize:v=0,collapsible:w,minSize:b=0}=g;if(w){let C=s[p];if(Ie(C!=null,`Previous layout not found for panel index ${p}`),je(C,b)){let S=C-v;Tt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}break}default:{let p=e<0?c:u,g=a[p];Ie(g,`Panel constraints not found for index ${p}`);let v=s[p],{collapsible:w,collapsedSize:b,minSize:C}=g;if(w&&Tt(v,C)<0)if(e>0){let S=C-b,R=S/2,T=v+e;Tt(T,C)<0&&(e=Tt(e,R)<=0?0:S)}else{let S=C-b,R=100-S/2,T=v-e;Tt(T,C)<0&&(e=Tt(100+e,R)>0?0:-S)}break}}{let p=e<0?1:-1,g=e<0?c:u,v=0;for(;;){let b=s[g];Ie(b!=null,`Previous layout not found for panel index ${g}`);let C=uo({overrideDisabledPanels:i,panelConstraints:a[g],prevSize:b,size:100})-b;if(v+=C,g+=p,g<0||g>=a.length)break}let w=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-w:w}{let p=e<0?u:c;for(;p>=0&&p<a.length;){let g=Math.abs(e)-Math.abs(m),v=s[p];Ie(v!=null,`Previous layout not found for panel index ${p}`);let w=v-g,b=uo({overrideDisabledPanels:i,panelConstraints:a[p],prevSize:v,size:w});if(!je(v,b)&&(m+=v-b,d[p]=b,m.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?p--:p++}}if(Db(l,d))return r;{let p=e<0?c:u,g=s[p];Ie(g!=null,`Previous layout not found for panel index ${p}`);let v=g+m,w=uo({overrideDisabledPanels:i,panelConstraints:a[p],prevSize:g,size:v});if(d[p]=w,!je(w,v)){let b=v-w,C=e<0?c:u;for(;C>=0&&C<a.length;){let S=d[C];Ie(S!=null,`Previous layout not found for panel index ${C}`);let R=S+b,T=uo({overrideDisabledPanels:i,panelConstraints:a[C],prevSize:S,size:R});if(je(S,T)||(b-=T-S,d[C]=T),je(b,0))break;e>0?C--:C++}}}let h=Object.values(d).reduce((p,g)=>g+p,0);if(!je(h,100,.1))return r;let x=Object.keys(r);return d.reduce((p,g,v)=>(p[x[v]]=g,p),{})}function Ra(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t[a]===void 0||Tt(e[a],t[a])!==0)return!1;return!0}function Pa({layout:e,panelConstraints:t}){let a=Object.values(e),o=[...a],r=o.reduce((s,l)=>s+l,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(s=>`${s}%`).join(", ")}`);if(!je(r,100)&&o.length>0)for(let s=0;s<t.length;s++){let l=o[s];Ie(l!=null,`No layout data found for index ${s}`);let d=100/r*l;o[s]=d}let n=0;for(let s=0;s<t.length;s++){let l=a[s];Ie(l!=null,`No layout data found for index ${s}`);let d=o[s];Ie(d!=null,`No layout data found for index ${s}`);let u=uo({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:l,size:d});d!=u&&(n+=d-u,o[s]=u)}if(!je(n,0))for(let s=0;s<t.length;s++){let l=o[s];Ie(l!=null,`No layout data found for index ${s}`);let d=l+n,u=uo({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:l,size:d});if(l!==u&&(n-=u-l,o[s]=u,je(n,0)))break}let i=Object.keys(e);return o.reduce((s,l,d)=>(s[i[d]]=l,s),{})}function Pf({groupId:e,panelId:t}){let a=()=>{let l=Ta();for(let[d,{defaultLayoutDeferred:u,derivedPanelConstraints:c,layout:m,groupSize:h,separatorToPanels:x}]of l)if(d.id===e)return{defaultLayoutDeferred:u,derivedPanelConstraints:c,group:d,groupSize:h,layout:m,separatorToPanels:x};throw Error(`Group ${e} not found`)},o=()=>{let l=a().derivedPanelConstraints.find(d=>d.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{let l=a().group.panels.find(d=>d.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},n=()=>{let l=a().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},i=({nextSize:l,panels:d,prevLayout:u,derivedPanelConstraints:c})=>{let m=n(),h=d.findIndex(g=>g.id===t),x=h===0,p=h===d.length-1;if(p&&l<m&&(x||d.slice(0,h).every((g,v)=>{let w=c[v];return w?.collapsible&&je(w.collapsedSize,u[w.panelId])}))){let g=d.slice(0,h).reduce((v,w)=>v+u[w.id],0);return{...u,[t]:Je(100-g)}}return Yo({delta:p?m-l:l-m,initialLayout:u,panelConstraints:c,pivotIndices:p?[h-1,h]:[h,h+1],prevLayout:u,trigger:"imperative-api"})},s=l=>{let d=n();if(l===d)return;let{defaultLayoutDeferred:u,derivedPanelConstraints:c,group:m,groupSize:h,layout:x,separatorToPanels:p}=a(),g=i({nextSize:l,panels:m.panels,prevLayout:x,derivedPanelConstraints:c}),v=Pa({layout:g,panelConstraints:c});Ra(x,v)||qt(m,{defaultLayoutDeferred:u,derivedPanelConstraints:c,groupSize:h,layout:v,separatorToPanels:p})};return{collapse:()=>{let{collapsible:l,collapsedSize:d}=o(),{mutableValues:u}=r(),c=n();l&&c!==d&&(u.expandToSize=c,s(d))},expand:()=>{let{collapsible:l,collapsedSize:d,minSize:u}=o(),{mutableValues:c}=r(),m=n();if(l&&m===d){let h=c.expandToSize??u;h===0&&(h=1),s(h)}},getSize:()=>{let{group:l}=a(),d=n(),{element:u}=r(),c=l.orientation==="horizontal"?u.offsetWidth:u.offsetHeight;return{asPercentage:d,inPixels:c}},isCollapsed:()=>{let{collapsible:l,collapsedSize:d}=o(),u=n();return l&&je(d,u)},resize:l=>{let{group:d}=a(),{element:u}=r(),c=po({group:d}),m=Zo({groupSize:c,panelElement:u,styleProp:l}),h=Je(m/c*100);s(h)}}}function uf(e){if(e.defaultPrevented)return;let t=Ta();ns(e,t).forEach(a=>{if(a.separator&&!a.separator.disableDoubleClick){let o=a.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){let r=o.panelConstraints.defaultSize,n=Pf({groupId:a.group.id,panelId:o.id});n&&r!==void 0&&(n.resize(r),e.preventDefault())}}})}function cn(e){let t=Ta();for(let[a]of t)if(a.separators.some(o=>o.element===e))return a;throw Error("Could not find parent Group for separator element")}function Tf({groupId:e}){let t=()=>{let a=Ta();for(let[o,r]of a)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:a,layout:o}=t();return a?{}:o},setLayout(a){let{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:n,groupSize:i,layout:s,separatorToPanels:l}=t(),d=Pa({layout:a,panelConstraints:r});return o?s:(Ra(s,d)||qt(n,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:i,layout:d,separatorToPanels:l}),d)}}}function Ia(e,t){let a=cn(e),o=sa(a.id,!0),r=a.separators.find(u=>u.element===e);Ie(r,"Matching separator not found");let n=o.separatorToPanels.get(r);Ie(n,"Matching panels not found");let i=n.map(u=>a.panels.indexOf(u)),s=Tf({groupId:a.id}).getLayout(),l=Yo({delta:t,initialLayout:s,panelConstraints:o.derivedPanelConstraints,pivotIndices:i,prevLayout:s,trigger:"keyboard"}),d=Pa({layout:l,panelConstraints:o.derivedPanelConstraints});Ra(s,d)||qt(a,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:d,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function cf(e){if(e.defaultPrevented)return;let t=e.currentTarget,a=cn(t);if(!a.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),a.orientation==="vertical"&&Ia(t,5);break}case"ArrowLeft":{e.preventDefault(),a.orientation==="horizontal"&&Ia(t,-5);break}case"ArrowRight":{e.preventDefault(),a.orientation==="horizontal"&&Ia(t,5);break}case"ArrowUp":{e.preventDefault(),a.orientation==="vertical"&&Ia(t,-5);break}case"End":{e.preventDefault(),Ia(t,100);break}case"Enter":{e.preventDefault();let o=cn(t),r=sa(o.id,!0),{derivedPanelConstraints:n,layout:i,separatorToPanels:s}=r,l=o.separators.find(m=>m.element===t);Ie(l,"Matching separator not found");let d=s.get(l);Ie(d,"Matching panels not found");let u=d[0],c=n.find(m=>m.panelId===u.id);if(Ie(c,"Panel metadata not found"),c.collapsible){let m=i[u.id],h=c.collapsedSize===m?o.mutableState.expandedPanelSizes[u.id]??c.minSize:c.collapsedSize;Ia(t,h-m)}break}case"F6":{e.preventDefault();let o=cn(t).separators.map(i=>i.element),r=Array.from(o).findIndex(i=>i===e.currentTarget);Ie(r!==null,"Index not found");let n=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[n].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),Ia(t,-100);break}}}function ff(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;let t=Ta(),a=ns(e,t),o=new Map,r=!1;a.forEach(n=>{n.separator&&(r||(r=!0,n.separator.element.focus({focusVisible:!1,preventScroll:!0})));let i=t.get(n.group);i&&o.set(n.group,i.layout)}),fo({cursorFlags:0,hitRegions:a,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),a.length&&e.preventDefault()}function Mf({document:e,event:t,hitRegions:a,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:n,prevCursorFlags:i}){let s=0;a.forEach(d=>{let{group:u,groupSize:c}=d,{orientation:m,panels:h}=u,{disableCursor:x}=u.mutableState,p=0;n?m==="horizontal"?p=(t.clientX-n.x)/c*100:p=(t.clientY-n.y)/c*100:m==="horizontal"?p=t.clientX<0?-100:100:p=t.clientY<0?-100:100;let g=o.get(u),v=r.get(u);if(!g||!v)return;let{defaultLayoutDeferred:w,derivedPanelConstraints:b,groupSize:C,layout:S,separatorToPanels:R}=v;if(b&&S&&R){let T=Yo({delta:p,initialLayout:g,panelConstraints:b,pivotIndices:d.panels.map(I=>h.indexOf(I)),prevLayout:S,trigger:"mouse-or-touch"});if(Ra(T,S)){if(p!==0&&!x)switch(m){case"horizontal":{s|=p<0?yf:Cf;break}case"vertical":{s|=p<0?Sf:Lf;break}}}else qt(d.group,{defaultLayoutDeferred:w,derivedPanelConstraints:b,groupSize:C,layout:T,separatorToPanels:R})}});let l=0;t.movementX===0?l|=i&ef:l|=s&ef,t.movementY===0?l|=i&tf:l|=s&tf,wb(l),os(e)}function pf(e){let t=Ta(),a=ka();a.state==="active"&&Mf({document:e.currentTarget,event:e,hitRegions:a.hitRegions,initialLayoutMap:a.initialLayoutMap,mountedGroups:t,prevCursorFlags:a.cursorFlags})}function mf(e){if(e.defaultPrevented)return;let t=ka(),a=Ta();switch(t.state){case"active":{if(e.buttons===0){fo({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(o=>{let r=sa(o.group.id,!0);qt(o.group,r,{isUserInteraction:!0})});return}for(let o of t.hitRegions)if(o.separator){let{element:r}=o.separator;r.hasPointerCapture?.(e.pointerId)||r.setPointerCapture?.(e.pointerId)}Mf({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:a,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{let o=ns(e,a);o.length===0?t.state!=="inactive"&&fo({cursorFlags:0,state:"inactive"}):fo({cursorFlags:0,hitRegions:o,state:"hover"}),os(e.currentTarget);break}}}function gf(e){e.relatedTarget instanceof HTMLIFrameElement&&ka().state==="hover"&&fo({cursorFlags:0,state:"inactive"})}function hf(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||kf(e.currentTarget)&&e.preventDefault()}function vf(e){let t=0,a=0,o={};for(let n of e)if(n.defaultSize!==void 0){t++;let i=Je(n.defaultSize);a+=i,o[n.panelId]=i}else o[n.panelId]=void 0;let r=e.length-t;if(r!==0){let n=Je((100-a)/r);for(let i of e)i.defaultSize===void 0&&(o[i.panelId]=n)}return o}function zb(e,t,a){if(!a[0])return;let o=e.panels.find(l=>l.element===t);if(!o||!o.onResize)return;let r=po({group:e}),n=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,i=o.mutableValues.prevSize,s={asPercentage:Je(n/r*100),inPixels:n};o.mutableValues.prevSize=s,o.onResize(s,o.id,i)}function Eb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(e[a]!==t[a])return!1;return!0}function Ob({group:e,nextGroupSize:t,prevGroupSize:a,prevLayout:o}){if(a<=0||t<=0||a===t)return o;let r=0,n=0,i=!1,s=new Map,l=[];for(let c of e.panels){let m=o[c.id]??0;if(c.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){i=!0;let h=m/100*a,x=Je(h/t*100);s.set(c.id,x),r+=x}else l.push(c.id),n+=m}if(!i||l.length===0)return o;let d=100-r,u={...o};if(s.forEach((c,m)=>{u[m]=c}),n>0)for(let c of l){let m=o[c]??0;u[c]=Je(m/n*d)}else{let c=Je(d/l.length);for(let m of l)u[m]=c}return u}function Nb(e,t){let a=e.map(r=>r.id),o=Object.keys(t);if(a.length!==o.length)return!1;for(let r of a)if(!o.includes(r))return!1;return!0}var lo=new Map;function Fb(e){let t=!0;Ie(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");let a=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,n=new a(x=>{for(let p of x){let{borderBoxSize:g,target:v}=p;if(v===e.element){if(t){let w=po({group:e});if(w===0)return;let b=sa(e.id);if(!b)return;let C=es(e),S=b.defaultLayoutDeferred?vf(C):b.layout,R=Ob({group:e,nextGroupSize:w,prevGroupSize:b.groupSize,prevLayout:S}),T=Pa({layout:R,panelConstraints:C});if(!b.defaultLayoutDeferred&&Ra(b.layout,T)&&Eb(b.derivedPanelConstraints,C)&&b.groupSize===w)return;qt(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:C,groupSize:w,layout:T,separatorToPanels:b.separatorToPanels})}}else zb(e,v,g)}});n.observe(e.element),e.panels.forEach(x=>{Ie(!o.has(x.id),`Panel ids must be unique; id "${x.id}" was used more than once`),o.add(x.id),x.onResize&&n.observe(x.element)});let i=po({group:e}),s=es(e),l=e.panels.map(({id:x})=>x).join(","),d=e.mutableState.defaultLayout;d&&(Nb(e.panels,d)||(d=void 0));let u=e.mutableState.layouts[l]??d??vf(s),c=Pa({layout:u,panelConstraints:s}),m=e.element.ownerDocument;lo.set(m,(lo.get(m)??0)+1);let h=new Map;return wf(e).forEach(x=>{x.separator&&h.set(x.separator,x.panels)}),qt(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:s,groupSize:i,layout:c,separatorToPanels:h}),e.separators.forEach(x=>{Ie(!r.has(x.id),`Separator ids must be unique; id "${x.id}" was used more than once`),r.add(x.id),x.element.addEventListener("keydown",cf)}),lo.get(m)===1&&(m.addEventListener("contextmenu",nf,!0),m.addEventListener("dblclick",uf,!0),m.addEventListener("pointerdown",ff,!0),m.addEventListener("pointerleave",pf),m.addEventListener("pointermove",mf),m.addEventListener("pointerout",gf),m.addEventListener("pointerup",hf,!0)),function(){t=!1,lo.set(m,Math.max(0,(lo.get(m)??0)-1)),Sb(e),e.separators.forEach(x=>{x.element.removeEventListener("keydown",cf)}),lo.get(m)||(m.removeEventListener("contextmenu",nf,!0),m.removeEventListener("dblclick",uf,!0),m.removeEventListener("pointerdown",ff,!0),m.removeEventListener("pointerleave",pf),m.removeEventListener("pointermove",mf),m.removeEventListener("pointerout",gf),m.removeEventListener("pointerup",hf,!0)),n.disconnect()}}function Bb(){let[e,t]=M({}),a=Q(()=>t({}),[]);return[e,a]}function is(e){let t=Wn();return`${e??t}`}var Ma=typeof window<"u"?Ht:H;function Jo(e){let t=z(e);return Ma(()=>{t.current=e},[e]),Q((...a)=>t.current?.(...a),[t])}function ss(...e){return Jo(t=>{e.forEach(a=>{if(a)switch(typeof a){case"function":{a(t);break}case"object":{a.current=t;break}}})})}function ls(e){let t=z({...e});return Ma(()=>{for(let a in e)t.current[a]=e[a]},[e]),t.current}var Af=Ke(null);function Hb(e,t){let a=z({getLayout:()=>({}),setLayout:yb});br(t,()=>a.current,[]),Ma(()=>{Object.assign(a.current,Tf({groupId:e}))})}function Df({children:e,className:t,defaultLayout:a,disableCursor:o,disabled:r,elementRef:n,groupRef:i,id:s,onLayoutChange:l,onLayoutChanged:d,orientation:u="horizontal",resizeTargetMinimumSize:c={coarse:20,fine:10},style:m,...h}){let x=z({onLayoutChange:{},onLayoutChanged:{}}),p=Jo(D=>{Ra(x.current.onLayoutChange,D)||(x.current.onLayoutChange=D,l?.(D))}),g=Jo((D,O)=>{Ra(x.current.onLayoutChanged,D)||(x.current.onLayoutChanged=D,d?.(D,{isUserInteraction:O}))}),v=is(s),w=z(null),[b,C]=Bb(),S=z({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:c,separators:[]}),R=ss(w,n);Hb(v,i);let T=Jo((D,O)=>{let U=ka(),q=rf(D),k=sa(D);if(k){let A=!1;return U.state==="active"&&(A=U.hitRegions.some(j=>j.group===q)),{flexGrow:k.layout[O]??1,pointerEvents:A?"none":void 0}}if(a?.[O])return{flexGrow:a?.[O]}}),I=ls({defaultLayout:a,disableCursor:o}),F=me(()=>({get disableCursor(){return!!I.disableCursor},getPanelStyles:T,id:v,orientation:u,registerPanel:D=>{let O=S.current;return O.panels=ts(u,[...O.panels,D]),C(),()=>{O.panels=O.panels.filter(U=>U!==D),C()}},registerSeparator:D=>{let O=S.current;return O.separators=ts(u,[...O.separators,D]),C(),()=>{O.separators=O.separators.filter(U=>U!==D),C()}},updatePanelProps:(D,{disabled:O})=>{let U=S.current.panels.find(A=>A.id===D);U&&(U.panelConstraints.disabled=O);let q=rf(v),k=sa(v);q&&k&&qt(q,{...k,derivedPanelConstraints:es(q)})},updateSeparatorProps:(D,{disabled:O,disableDoubleClick:U})=>{let q=S.current.separators.find(k=>k.id===D);q&&(q.disabled=O,q.disableDoubleClick=U)}}),[T,v,C,u,I]),X=z(null);return Ma(()=>{let D=w.current;if(D===null)return;let O=S.current,U;if(I.defaultLayout!==void 0&&Object.keys(I.defaultLayout).length===O.panels.length){U={};for(let E of O.panels){let P=I.defaultLayout[E.id];P!==void 0&&(U[E.id]=P)}}let q={disabled:!!r,element:D,id:v,mutableState:{defaultLayout:U,disableCursor:!!I.disableCursor,expandedPanelSizes:S.current.lastExpandedPanelSizes,layouts:S.current.layouts},orientation:u,panels:O.panels,resizeTargetMinimumSize:O.resizeTargetMinimumSize,separators:O.separators};X.current=q;let k=Fb(q),{defaultLayoutDeferred:A,derivedPanelConstraints:j,layout:B}=sa(q.id,!0);!A&&j.length>0&&(p(B),g(B,!1));let te=rs(v,E=>{let{defaultLayoutDeferred:P,derivedPanelConstraints:_,layout:Y}=E.next;if(P||_.length===0)return;let be=q.panels.map(({id:ne})=>ne).join(",");q.mutableState.layouts[be]=Y,_.forEach(ne=>{if(ne.collapsible){let{layout:J}=E.prev??{};if(J){let fe=je(ne.collapsedSize,Y[ne.panelId]),de=je(ne.collapsedSize,J[ne.panelId]);fe&&!de&&(q.mutableState.expandedPanelSizes[ne.panelId]=J[ne.panelId])}}});let ie=ka().state!=="active";p(Y),ie&&g(Y,E.isUserInteraction)});return()=>{X.current=null,k(),te()}},[r,v,g,p,u,b,I]),H(()=>{let D=X.current;D&&(D.mutableState.defaultLayout=a,D.mutableState.disableCursor=!!o)}),L(Af.Provider,{value:F,children:L("div",{...h,className:t,"data-group":!0,"data-testid":v,id:v,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...m,display:"flex",flexDirection:u==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:u==="horizontal"?"pan-y":"pan-x"},children:e})})}Df.displayName="Group";function ds(){let e=Qe(Af);return Ie(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function _b(e,t){let{id:a}=ds(),o=z({collapse:Qi,expand:Qi,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Qi});br(t,()=>o.current,[]),Ma(()=>{Object.assign(o.current,Pf({groupId:a,panelId:e}))})}function zf({children:e,className:t,collapsedSize:a="0%",collapsible:o=!1,defaultSize:r,disabled:n,elementRef:i,groupResizeBehavior:s="preserve-relative-size",id:l,maxSize:d="100%",minSize:u="0%",onResize:c,panelRef:m,style:h,...x}){let p=!!l,g=is(l),v=ls({disabled:n}),w=z(null),b=ss(w,i),{getPanelStyles:C,id:S,orientation:R,registerPanel:T,updatePanelProps:I}=ds(),F=c!==null,X=Jo((q,k,A)=>{c?.(q,l,A)});Ma(()=>{let q=w.current;if(q!==null){let k={element:q,id:g,idIsStable:p,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:F?X:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:a,collapsible:o,defaultSize:r,disabled:v.disabled,maxSize:d,minSize:u}};return T(k)}},[s,a,o,r,F,g,p,d,u,X,T,v]),H(()=>{I(g,{disabled:n})},[n,g,I]),_b(g,m);let D=()=>{let q=C(S,g);if(q)return JSON.stringify(q)},O=Gn(q=>rs(S,q),D,D),U;return O?U=JSON.parse(O):r!==void 0?U={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:U={flexGrow:1},L("div",{...x,"data-disabled":n||void 0,"data-panel":!0,"data-testid":g,id:g,ref:b,style:{...Vb,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...U},children:L("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...h,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}zf.displayName="Panel";var Vb={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Ub({layout:e,panelConstraints:t,panelId:a,panelIndex:o}){let r,n,i=e[a],s=t.find(l=>l.panelId===a);if(s){let l=s.maxSize,d=s.collapsible?s.collapsedSize:s.minSize,u=[o,o+1];n=Pa({layout:Yo({delta:d-i,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[a],r=Pa({layout:Yo({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[a]}return{valueControls:a,valueMax:r,valueMin:n,valueNow:i}}function Ef({children:e,className:t,disabled:a,disableDoubleClick:o,elementRef:r,id:n,style:i,...s}){let l=is(n),d=ls({disabled:a,disableDoubleClick:o}),[u,c]=M({}),[m,h]=M("inactive"),[x,p]=M(!1),g=z(null),v=ss(g,r),{disableCursor:w,id:b,orientation:C,registerSeparator:S,updateSeparatorProps:R}=ds(),T=C==="horizontal"?"vertical":"horizontal";Ma(()=>{let X=g.current;if(X!==null){let D={disabled:d.disabled,disableDoubleClick:d.disableDoubleClick,element:X,id:l},O=S(D),U=bb(k=>{h(k.next.state!=="inactive"&&k.next.hitRegions.some(A=>A.separator===D)?k.next.state:"inactive")}),q=rs(b,k=>{let{derivedPanelConstraints:A,layout:j,separatorToPanels:B}=k.next,te=B.get(D);if(te){let E=te[0],P=te.indexOf(E);c(Ub({layout:j,panelConstraints:A,panelId:E.id,panelIndex:P}))}});return()=>{U(),q(),O()}}},[b,l,S,d]),H(()=>{R(l,{disabled:a,disableDoubleClick:o})},[a,o,l,R]);let I;a&&!w&&(I="not-allowed");let F;return a?F="disabled":m==="active"?F="active":x?F="focus":F=m,L("div",{...s,"aria-controls":u.valueControls,"aria-disabled":a||void 0,"aria-orientation":T,"aria-valuemax":u.valueMax,"aria-valuemin":u.valueMin,"aria-valuenow":u.valueNow,children:e,className:t,"data-separator":F,"data-testid":l,id:l,onBlur:()=>p(!1),onFocus:()=>p(!0),ref:v,role:"separator",style:{flexBasis:"auto",cursor:I,...i,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:a?void 0:0})}Ef.displayName="Separator";function De(...e){return Ml(yr(e))}var jb=na("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function pn({className:e,variant:t="default",size:a="default",asChild:o=!1,...r}){let n=o?zo.Root:"button";return L(n,{"data-slot":"button","data-variant":t,"data-size":a,className:De(jb({variant:t,size:a,className:e})),...r})}var Wb=na("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function mo({className:e,variant:t="default",asChild:a=!1,...o}){let r=a?zo.Root:"span";return L(r,{"data-slot":"badge","data-variant":t,className:De(Wb({variant:t}),e),...o})}function it({className:e,size:t="default",...a}){return L("div",{"data-slot":"card","data-size":t,className:De("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}function Qo({...e}){return L(vt.Root,{"data-slot":"dialog",...e})}function Gb({...e}){return L(vt.Portal,{"data-slot":"dialog-portal",...e})}function Kb({className:e,...t}){return L(vt.Overlay,{"data-slot":"dialog-overlay",className:De("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function er({className:e,children:t,showCloseButton:a=!0,...o}){return qe(Gb,{children:[L(Kb,{}),qe(vt.Content,{"data-slot":"dialog-content",className:De("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...o,children:[t,a&&L(vt.Close,{"data-slot":"dialog-close",asChild:!0,children:qe(pn,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[L(Ao,{}),L("span",{className:"sr-only",children:"Close"})]})})]})]})}function tr({className:e,...t}){return L("div",{"data-slot":"dialog-header",className:De("flex flex-col gap-2",e),...t})}function Of({className:e,showCloseButton:t=!1,children:a,...o}){return qe("div",{"data-slot":"dialog-footer",className:De("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...o,children:[a,t&&L(vt.Close,{asChild:!0,children:L(pn,{variant:"outline",children:"Close"})})]})}function ar({className:e,...t}){return L(vt.Title,{"data-slot":"dialog-title",className:De("text-base leading-none font-medium",e),...t})}function or({className:e,...t}){return L(vt.Description,{"data-slot":"dialog-description",className:De("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function Ye({className:e,type:t,...a}){return L("input",{type:t,"data-slot":"input",className:De("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}function Aa({className:e,...t}){return L("textarea",{"data-slot":"textarea",className:De("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}var Ik=na("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});var kk=na("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Nf({...e}){return L(Ze.Root,{"data-slot":"select",...e})}function Ff({...e}){return L(Ze.Value,{"data-slot":"select-value",...e})}function Bf({className:e,size:t="default",children:a,...o}){return qe(Ze.Trigger,{"data-slot":"select-trigger","data-size":t,className:De("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[a,L(Ze.Icon,{asChild:!0,children:L(Za,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function Hf({className:e,children:t,position:a="item-aligned",align:o="center",...r}){return L(Ze.Portal,{children:qe(Ze.Content,{"data-slot":"select-content","data-align-trigger":a==="item-aligned",className:De("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:o,...r,children:[L($b,{}),L(Ze.Viewport,{"data-position":a,className:De("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",a==="popper"&&""),children:t}),L(Xb,{})]})})}function _f({className:e,children:t,...a}){return qe(Ze.Item,{"data-slot":"select-item",className:De("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[L("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:L(Ze.ItemIndicator,{children:L(To,{className:"pointer-events-none"})})}),L(Ze.ItemText,{children:t})]})}function $b({className:e,...t}){return L(Ze.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:De("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:L(Mo,{})})}function Xb({className:e,...t}){return L(Ze.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:De("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:L(Za,{})})}var Rk=3600*24*7;var Pk=Ke(null);var Tk=na("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Vf({className:e,defaultValue:t,value:a,min:o=0,max:r=100,...n}){let i=me(()=>Array.isArray(a)?a:Array.isArray(t)?t:[o,r],[a,t,o,r]);return qe(La.Root,{"data-slot":"slider",defaultValue:t,value:a,min:o,max:r,className:De("relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col",e),...n,children:[L(La.Track,{"data-slot":"slider-track",className:"relative grow overflow-hidden rounded-full bg-muted data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1",children:L(La.Range,{"data-slot":"slider-range",className:"absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full"})}),Array.from({length:i.length},(s,l)=>L(La.Thumb,{"data-slot":"slider-thumb",className:"relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"},l))]})}function Uf({className:e,orientation:t="horizontal",...a}){return L(so.Root,{"data-slot":"tabs","data-orientation":t,className:De("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var Zb=na("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function qf({className:e,variant:t="default",...a}){return L(so.List,{"data-slot":"tabs-list","data-variant":t,className:De(Zb({variant:t}),e),...a})}function us({className:e,...t}){return L(so.Trigger,{"data-slot":"tabs-trigger",className:De("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}var Mk=na("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}});var Ak=Ke({size:"default",variant:"default",spacing:2,orientation:"horizontal"});var ys=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},y=(e,t,a)=>(ys(e,t,"read from private field"),a?a.call(e):t.get(e)),ce=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},He=(e,t,a,o)=>(ys(e,t,"write to private field"),o?o.call(e,a):t.set(e,a),a),Jb=(e,t,a,o)=>({set _(r){He(e,t,r,a)},get _(){return y(e,t,o)}}),he=(e,t,a)=>(ys(e,t,"access private method"),a),xe=new Uint8Array(8),Et=new DataView(xe.buffer),Ne=e=>[(e%256+256)%256],Ce=e=>(Et.setUint16(0,e,!1),[xe[0],xe[1]]),Yb=e=>(Et.setInt16(0,e,!1),[xe[0],xe[1]]),Wf=e=>(Et.setUint32(0,e,!1),[xe[1],xe[2],xe[3]]),G=e=>(Et.setUint32(0,e,!1),[xe[0],xe[1],xe[2],xe[3]]),Qb=e=>(Et.setInt32(0,e,!1),[xe[0],xe[1],xe[2],xe[3]]),Fa=e=>(Et.setUint32(0,Math.floor(e/2**32),!1),Et.setUint32(4,e,!1),[xe[0],xe[1],xe[2],xe[3],xe[4],xe[5],xe[6],xe[7]]),Cs=e=>(Et.setInt16(0,2**8*e,!1),[xe[0],xe[1]]),Dt=e=>(Et.setInt32(0,2**16*e,!1),[xe[0],xe[1],xe[2],xe[3]]),cs=e=>(Et.setInt32(0,2**30*e,!1),[xe[0],xe[1],xe[2],xe[3]]),ft=(e,t=!1)=>{let a=Array(e.length).fill(null).map((o,r)=>e.charCodeAt(r));return t&&a.push(0),a},bn=e=>e&&e[e.length-1],Ss=e=>{let t;for(let a of e)(!t||a.presentationTimestamp>t.presentationTimestamp)&&(t=a);return t},zt=(e,t,a=!0)=>{let o=e*t;return a?Math.round(o):o},Gf=e=>{let t=e*(Math.PI/180),a=Math.cos(t),o=Math.sin(t);return[a,o,0,-o,a,0,0,0,1]},Kf=Gf(0),$f=e=>[Dt(e[0]),Dt(e[1]),cs(e[2]),Dt(e[3]),Dt(e[4]),cs(e[5]),Dt(e[6]),Dt(e[7]),cs(e[8])],ir=e=>!e||typeof e!="object"?e:Array.isArray(e)?e.map(ir):Object.fromEntries(Object.entries(e).map(([t,a])=>[t,ir(a)])),xo=e=>e>=0&&e<2**32,ze=(e,t,a)=>({type:e,contents:t&&new Uint8Array(t.flat(10)),children:a}),Re=(e,t,a,o,r)=>ze(e,[Ne(t),Wf(a),o??[]],r),ew=e=>{let t=512;return e.fragmented?ze("ftyp",[ft("iso5"),G(t),ft("iso5"),ft("iso6"),ft("mp41")]):ze("ftyp",[ft("isom"),G(t),ft("isom"),e.holdsAvc?ft("avc1"):[],ft("mp41")])},fs=e=>({type:"mdat",largeSize:e}),tw=e=>({type:"free",size:e}),mn=(e,t,a=!1)=>ze("moov",null,[aw(t,e),...e.map(o=>ow(o,t)),a?Ew(e):null]),aw=(e,t)=>{let a=zt(Math.max(0,...t.filter(i=>i.samples.length>0).map(i=>{let s=Ss(i.samples);return s.presentationTimestamp+s.duration})),gs),o=Math.max(...t.map(i=>i.id))+1,r=!xo(e)||!xo(a),n=r?Fa:G;return Re("mvhd",+r,0,[n(e),n(e),G(gs),n(a),Dt(1),Cs(1),Array(10).fill(0),$f(Kf),Array(24).fill(0),G(o)])},ow=(e,t)=>ze("trak",null,[rw(e,t),nw(e,t)]),rw=(e,t)=>{let a=Ss(e.samples),o=zt(a?a.presentationTimestamp+a.duration:0,gs),r=!xo(t)||!xo(o),n=r?Fa:G,i;return e.info.type==="video"?i=typeof e.info.rotation=="number"?Gf(e.info.rotation):e.info.rotation:i=Kf,Re("tkhd",+r,3,[n(t),n(t),G(e.id),G(0),n(o),Array(8).fill(0),Ce(0),Ce(0),Cs(e.info.type==="audio"?1:0),Ce(0),$f(i),Dt(e.info.type==="video"?e.info.width:0),Dt(e.info.type==="video"?e.info.height:0)])},nw=(e,t)=>ze("mdia",null,[iw(e,t),sw(e.info.type==="video"?"vide":"soun"),lw(e)]),iw=(e,t)=>{let a=Ss(e.samples),o=zt(a?a.presentationTimestamp+a.duration:0,e.timescale),r=!xo(t)||!xo(o),n=r?Fa:G;return Re("mdhd",+r,0,[n(t),n(t),G(e.timescale),n(o),Ce(21956),Ce(0)])},sw=e=>Re("hdlr",0,0,[ft("mhlr"),ft(e),G(0),G(0),G(0),ft("mp4-muxer-hdlr",!0)]),lw=e=>ze("minf",null,[e.info.type==="video"?dw():uw(),cw(),mw(e)]),dw=()=>Re("vmhd",0,1,[Ce(0),Ce(0),Ce(0),Ce(0)]),uw=()=>Re("smhd",0,0,[Ce(0),Ce(0)]),cw=()=>ze("dinf",null,[fw()]),fw=()=>Re("dref",0,0,[G(1)],[pw()]),pw=()=>Re("url ",0,1),mw=e=>{let t=e.compositionTimeOffsetTable.length>1||e.compositionTimeOffsetTable.some(a=>a.sampleCompositionTimeOffset!==0);return ze("stbl",null,[gw(e),Pw(e),Tw(e),Mw(e),Aw(e),Dw(e),t?zw(e):null])},gw=e=>Re("stsd",0,0,[G(1)],[e.info.type==="video"?hw(jw[e.info.codec],e):Iw(Gw[e.info.codec],e)]),hw=(e,t)=>ze(e,[Array(6).fill(0),Ce(1),Ce(0),Ce(0),Array(12).fill(0),Ce(t.info.width),Ce(t.info.height),G(4718592),G(4718592),G(0),Ce(1),Array(32).fill(0),Ce(24),Yb(65535)],[Ww[t.info.codec](t),t.info.decoderConfig.colorSpace?ww(t):null]),vw={bt709:1,bt470bg:5,smpte170m:6},xw={bt709:1,smpte170m:6,"iec61966-2-1":13},bw={rgb:0,bt709:1,bt470bg:5,smpte170m:6},ww=e=>ze("colr",[ft("nclx"),Ce(vw[e.info.decoderConfig.colorSpace.primaries]),Ce(xw[e.info.decoderConfig.colorSpace.transfer]),Ce(bw[e.info.decoderConfig.colorSpace.matrix]),Ne((e.info.decoderConfig.colorSpace.fullRange?1:0)<<7)]),yw=e=>e.info.decoderConfig&&ze("avcC",[...new Uint8Array(e.info.decoderConfig.description)]),Cw=e=>e.info.decoderConfig&&ze("hvcC",[...new Uint8Array(e.info.decoderConfig.description)]),Sw=e=>{if(!e.info.decoderConfig)return null;let t=e.info.decoderConfig;if(!t.colorSpace)throw new Error("'colorSpace' is required in the decoder config for VP9.");let a=t.codec.split("."),o=Number(a[1]),r=Number(a[2]),s=(Number(a[3])<<4)+(0<<1)+Number(t.colorSpace.fullRange);return Re("vpcC",1,0,[Ne(o),Ne(r),Ne(s),Ne(2),Ne(2),Ne(2),Ce(0)])},Lw=()=>{let a=(1<<7)+1;return ze("av1C",[a,0,0,0])},Iw=(e,t)=>ze(e,[Array(6).fill(0),Ce(1),Ce(0),Ce(0),G(0),Ce(t.info.numberOfChannels),Ce(16),Ce(0),Ce(0),Dt(t.info.sampleRate)],[Kw[t.info.codec](t)]),kw=e=>{let t=new Uint8Array(e.info.decoderConfig.description);return Re("esds",0,0,[G(58753152),Ne(32+t.byteLength),Ce(1),Ne(0),G(75530368),Ne(18+t.byteLength),Ne(64),Ne(21),Wf(0),G(130071),G(130071),G(92307584),Ne(t.byteLength),...t,G(109084800),Ne(1),Ne(2)])},Rw=e=>{let t=3840,a=0,o=e.info.decoderConfig?.description;if(o){if(o.byteLength<18)throw new TypeError("Invalid decoder description provided for Opus; must be at least 18 bytes long.");let r=ArrayBuffer.isView(o)?new DataView(o.buffer,o.byteOffset,o.byteLength):new DataView(o);t=r.getUint16(10,!0),a=r.getInt16(14,!0)}return ze("dOps",[Ne(0),Ne(e.info.numberOfChannels),Ce(t),G(e.info.sampleRate),Cs(a),Ne(0)])},Pw=e=>Re("stts",0,0,[G(e.timeToSampleTable.length),e.timeToSampleTable.map(t=>[G(t.sampleCount),G(t.sampleDelta)])]),Tw=e=>{if(e.samples.every(a=>a.type==="key"))return null;let t=[...e.samples.entries()].filter(([,a])=>a.type==="key");return Re("stss",0,0,[G(t.length),t.map(([a])=>G(a+1))])},Mw=e=>Re("stsc",0,0,[G(e.compactlyCodedChunkTable.length),e.compactlyCodedChunkTable.map(t=>[G(t.firstChunk),G(t.samplesPerChunk),G(1)])]),Aw=e=>Re("stsz",0,0,[G(0),G(e.samples.length),e.samples.map(t=>G(t.size))]),Dw=e=>e.finalizedChunks.length>0&&bn(e.finalizedChunks).offset>=2**32?Re("co64",0,0,[G(e.finalizedChunks.length),e.finalizedChunks.map(t=>Fa(t.offset))]):Re("stco",0,0,[G(e.finalizedChunks.length),e.finalizedChunks.map(t=>G(t.offset))]),zw=e=>Re("ctts",0,0,[G(e.compositionTimeOffsetTable.length),e.compositionTimeOffsetTable.map(t=>[G(t.sampleCount),G(t.sampleCompositionTimeOffset)])]),Ew=e=>ze("mvex",null,e.map(Ow)),Ow=e=>Re("trex",0,0,[G(e.id),G(1),G(0),G(0),G(0)]),jf=(e,t)=>ze("moof",null,[Nw(e),...t.map(Fw)]),Nw=e=>Re("mfhd",0,0,[G(e)]),Xf=e=>{let t=0,a=0,o=0,r=0,n=e.type==="delta";return a|=+n,n?t|=1:t|=2,t<<24|a<<16|o<<8|r},Fw=e=>ze("traf",null,[Bw(e),Hw(e),_w(e)]),Bw=e=>{let t=0;t|=8,t|=16,t|=32,t|=131072;let a=e.currentChunk.samples[1]??e.currentChunk.samples[0],o={duration:a.timescaleUnitsToNextSample,size:a.size,flags:Xf(a)};return Re("tfhd",0,t,[G(e.id),G(o.duration),G(o.size),G(o.flags)])},Hw=e=>Re("tfdt",1,0,[Fa(zt(e.currentChunk.startTimestamp,e.timescale))]),_w=e=>{let t=e.currentChunk.samples.map(p=>p.timescaleUnitsToNextSample),a=e.currentChunk.samples.map(p=>p.size),o=e.currentChunk.samples.map(Xf),r=e.currentChunk.samples.map(p=>zt(p.presentationTimestamp-p.decodeTimestamp,e.timescale)),n=new Set(t),i=new Set(a),s=new Set(o),l=new Set(r),d=s.size===2&&o[0]!==o[1],u=n.size>1,c=i.size>1,m=!d&&s.size>1,h=l.size>1||[...l].some(p=>p!==0),x=0;return x|=1,x|=4*+d,x|=256*+u,x|=512*+c,x|=1024*+m,x|=2048*+h,Re("trun",1,x,[G(e.currentChunk.samples.length),G(e.currentChunk.offset-e.currentChunk.moofOffset||0),d?G(o[0]):[],e.currentChunk.samples.map((p,g)=>[u?G(t[g]):[],c?G(a[g]):[],m?G(o[g]):[],h?Qb(r[g]):[]])])},Vw=e=>ze("mfra",null,[...e.map(Uw),qw()]),Uw=(e,t)=>Re("tfra",1,0,[G(e.id),G(63),G(e.finalizedChunks.length),e.finalizedChunks.map(o=>[Fa(zt(o.startTimestamp,e.timescale)),Fa(o.moofOffset),G(t+1),G(1),G(1)])]),qw=()=>Re("mfro",0,0,[G(0)]),jw={avc:"avc1",hevc:"hvc1",vp9:"vp09",av1:"av01"},Ww={avc:yw,hevc:Cw,vp9:Sw,av1:Lw},Gw={aac:"mp4a",opus:"Opus"},Kw={aac:kw,opus:Rw};var In=class{},Ls=class extends In{constructor(){super(...arguments),this.buffer=null}},Zf=class extends In{constructor(e){if(super(),this.options=e,typeof e!="object")throw new TypeError("StreamTarget requires an options object to be passed to its constructor.");if(e.onData){if(typeof e.onData!="function")throw new TypeError("options.onData, when provided, must be a function.");if(e.onData.length<2)throw new TypeError("options.onData, when provided, must be a function that takes in at least two arguments (data and position). Ignoring the position argument, which specifies the byte offset at which the data is to be written, can lead to broken outputs.")}if(e.chunked!==void 0&&typeof e.chunked!="boolean")throw new TypeError("options.chunked, when provided, must be a boolean.");if(e.chunkSize!==void 0&&(!Number.isInteger(e.chunkSize)||e.chunkSize<1024))throw new TypeError("options.chunkSize, when provided, must be an integer and not smaller than 1024.")}},$w=class extends In{constructor(e,t){if(super(),this.stream=e,this.options=t,!(e instanceof FileSystemWritableFileStream))throw new TypeError("FileSystemWritableFileStreamTarget requires a FileSystemWritableFileStream instance.");if(t!==void 0&&typeof t!="object")throw new TypeError("FileSystemWritableFileStreamTarget's options, when provided, must be an object.");if(t&&t.chunkSize!==void 0&&(!Number.isInteger(t.chunkSize)||t.chunkSize<=0))throw new TypeError("options.chunkSize, when provided, must be a positive integer")}},Da,go,Jf=class{constructor(){this.pos=0,ce(this,Da,new Uint8Array(8)),ce(this,go,new DataView(y(this,Da).buffer)),this.offsets=new WeakMap}seek(e){this.pos=e}writeU32(e){y(this,go).setUint32(0,e,!1),this.write(y(this,Da).subarray(0,4))}writeU64(e){y(this,go).setUint32(0,Math.floor(e/2**32),!1),y(this,go).setUint32(4,e,!1),this.write(y(this,Da).subarray(0,8))}writeAscii(e){for(let t=0;t<e.length;t++)y(this,go).setUint8(t%8,e.charCodeAt(t)),t%8===7&&this.write(y(this,Da));e.length%8!==0&&this.write(y(this,Da).subarray(0,e.length%8))}writeBox(e){if(this.offsets.set(e,this.pos),e.contents&&!e.children)this.writeBoxHeader(e,e.size??e.contents.byteLength+8),this.write(e.contents);else{let t=this.pos;if(this.writeBoxHeader(e,0),e.contents&&this.write(e.contents),e.children)for(let r of e.children)r&&this.writeBox(r);let a=this.pos,o=e.size??a-t;this.seek(t),this.writeBoxHeader(e,o),this.seek(a)}}writeBoxHeader(e,t){this.writeU32(e.largeSize?1:t),this.writeAscii(e.type),e.largeSize&&this.writeU64(t)}measureBoxHeader(e){return 8+(e.largeSize?8:0)}patchBox(e){let t=this.pos;this.seek(this.offsets.get(e)),this.writeBox(e),this.seek(t)}measureBox(e){if(e.contents&&!e.children)return this.measureBoxHeader(e)+e.contents.byteLength;{let t=this.measureBoxHeader(e);if(e.contents&&(t+=e.contents.byteLength),e.children)for(let a of e.children)a&&(t+=this.measureBox(a));return t}}};Da=new WeakMap;go=new WeakMap;var gn,Na,cr,rr,hn,ps,Xw=class extends Jf{constructor(e){super(),ce(this,hn),ce(this,gn,void 0),ce(this,Na,new ArrayBuffer(2**16)),ce(this,cr,new Uint8Array(y(this,Na))),ce(this,rr,0),He(this,gn,e)}write(e){he(this,hn,ps).call(this,this.pos+e.byteLength),y(this,cr).set(e,this.pos),this.pos+=e.byteLength,He(this,rr,Math.max(y(this,rr),this.pos))}finalize(){he(this,hn,ps).call(this,this.pos),y(this,gn).buffer=y(this,Na).slice(0,Math.max(y(this,rr),this.pos))}};gn=new WeakMap;Na=new WeakMap;cr=new WeakMap;rr=new WeakMap;hn=new WeakSet;ps=function(e){let t=y(this,Na).byteLength;for(;t<e;)t*=2;if(t===y(this,Na).byteLength)return;let a=new ArrayBuffer(t),o=new Uint8Array(a);o.set(y(this,cr),0),He(this,Na,a),He(this,cr,o)};var Zw=2**24,Jw=2,sr,za,nr,Wt,lt,wn,ms,Is,Yf,ks,Qf,lr,yn,Rs=class extends Jf{constructor(e){super(),ce(this,wn),ce(this,Is),ce(this,ks),ce(this,lr),ce(this,sr,void 0),ce(this,za,[]),ce(this,nr,void 0),ce(this,Wt,void 0),ce(this,lt,[]),He(this,sr,e),He(this,nr,e.options?.chunked??!1),He(this,Wt,e.options?.chunkSize??Zw)}write(e){y(this,za).push({data:e.slice(),start:this.pos}),this.pos+=e.byteLength}flush(){if(y(this,za).length===0)return;let e=[],t=[...y(this,za)].sort((a,o)=>a.start-o.start);e.push({start:t[0].start,size:t[0].data.byteLength});for(let a=1;a<t.length;a++){let o=e[e.length-1],r=t[a];r.start<=o.start+o.size?o.size=Math.max(o.size,r.start+r.data.byteLength-o.start):e.push({start:r.start,size:r.data.byteLength})}for(let a of e){a.data=new Uint8Array(a.size);for(let o of y(this,za))a.start<=o.start&&o.start<a.start+a.size&&a.data.set(o.data,o.start-a.start);y(this,nr)?(he(this,wn,ms).call(this,a.data,a.start),he(this,lr,yn).call(this)):y(this,sr).options.onData?.(a.data,a.start)}y(this,za).length=0}finalize(){y(this,nr)&&he(this,lr,yn).call(this,!0)}};sr=new WeakMap;za=new WeakMap;nr=new WeakMap;Wt=new WeakMap;lt=new WeakMap;wn=new WeakSet;ms=function(e,t){let a=y(this,lt).findIndex(s=>s.start<=t&&t<s.start+y(this,Wt));a===-1&&(a=he(this,ks,Qf).call(this,t));let o=y(this,lt)[a],r=t-o.start,n=e.subarray(0,Math.min(y(this,Wt)-r,e.byteLength));o.data.set(n,r);let i={start:r,end:r+n.byteLength};if(he(this,Is,Yf).call(this,o,i),o.written[0].start===0&&o.written[0].end===y(this,Wt)&&(o.shouldFlush=!0),y(this,lt).length>Jw){for(let s=0;s<y(this,lt).length-1;s++)y(this,lt)[s].shouldFlush=!0;he(this,lr,yn).call(this)}n.byteLength<e.byteLength&&he(this,wn,ms).call(this,e.subarray(n.byteLength),t+n.byteLength)};Is=new WeakSet;Yf=function(e,t){let a=0,o=e.written.length-1,r=-1;for(;a<=o;){let n=Math.floor(a+(o-a+1)/2);e.written[n].start<=t.start?(a=n+1,r=n):o=n-1}for(e.written.splice(r+1,0,t),(r===-1||e.written[r].end<t.start)&&r++;r<e.written.length-1&&e.written[r].end>=e.written[r+1].start;)e.written[r].end=Math.max(e.written[r].end,e.written[r+1].end),e.written.splice(r+1,1)};ks=new WeakSet;Qf=function(e){let a={start:Math.floor(e/y(this,Wt))*y(this,Wt),data:new Uint8Array(y(this,Wt)),written:[],shouldFlush:!1};return y(this,lt).push(a),y(this,lt).sort((o,r)=>o.start-r.start),y(this,lt).indexOf(a)};lr=new WeakSet;yn=function(e=!1){for(let t=0;t<y(this,lt).length;t++){let a=y(this,lt)[t];if(!(!a.shouldFlush&&!e)){for(let o of a.written)y(this,sr).options.onData?.(a.data.subarray(o.start,o.end),a.start+o.start);y(this,lt).splice(t--,1)}}};var Yw=class extends Rs{constructor(e){super(new Zf({onData:(t,a)=>e.stream.write({type:"write",data:t,position:a}),chunked:!0,chunkSize:e.options?.chunkSize}))}},gs=1e3,Qw=["avc","hevc","vp9","av1"],ey=["aac","opus"],ty=2082844800,ay=["strict","offset","cross-track-offset"],ee,re,Cn,st,Ue,Be,ho,vo,Ps,Ea,Oa,dr,hs,ep,vs,tp,Ts,ap,xs,op,Ms,rp,vn,bs,At,jt,As,np,ur,Sn,Ln,Ds,bo,fr,xn,ws,ip=class{constructor(e){if(ce(this,hs),ce(this,vs),ce(this,Ts),ce(this,xs),ce(this,Ms),ce(this,vn),ce(this,At),ce(this,As),ce(this,ur),ce(this,Ln),ce(this,bo),ce(this,xn),ce(this,ee,void 0),ce(this,re,void 0),ce(this,Cn,void 0),ce(this,st,void 0),ce(this,Ue,null),ce(this,Be,null),ce(this,ho,Math.floor(Date.now()/1e3)+ty),ce(this,vo,[]),ce(this,Ps,1),ce(this,Ea,[]),ce(this,Oa,[]),ce(this,dr,!1),he(this,hs,ep).call(this,e),e.video=ir(e.video),e.audio=ir(e.audio),e.fastStart=ir(e.fastStart),this.target=e.target,He(this,ee,{firstTimestampBehavior:"strict",...e}),e.target instanceof Ls)He(this,re,new Xw(e.target));else if(e.target instanceof Zf)He(this,re,new Rs(e.target));else if(e.target instanceof $w)He(this,re,new Yw(e.target));else throw new Error(`Invalid target: ${e.target}`);he(this,xs,op).call(this),he(this,vs,tp).call(this)}addVideoChunk(e,t,a,o){if(!(e instanceof EncodedVideoChunk))throw new TypeError("addVideoChunk's first argument (sample) must be of type EncodedVideoChunk.");if(t&&typeof t!="object")throw new TypeError("addVideoChunk's second argument (meta), when provided, must be an object.");if(a!==void 0&&(!Number.isFinite(a)||a<0))throw new TypeError("addVideoChunk's third argument (timestamp), when provided, must be a non-negative real number.");if(o!==void 0&&!Number.isFinite(o))throw new TypeError("addVideoChunk's fourth argument (compositionTimeOffset), when provided, must be a real number.");let r=new Uint8Array(e.byteLength);e.copyTo(r),this.addVideoChunkRaw(r,e.type,a??e.timestamp,e.duration,t,o)}addVideoChunkRaw(e,t,a,o,r,n){if(!(e instanceof Uint8Array))throw new TypeError("addVideoChunkRaw's first argument (data) must be an instance of Uint8Array.");if(t!=="key"&&t!=="delta")throw new TypeError("addVideoChunkRaw's second argument (type) must be either 'key' or 'delta'.");if(!Number.isFinite(a)||a<0)throw new TypeError("addVideoChunkRaw's third argument (timestamp) must be a non-negative real number.");if(!Number.isFinite(o)||o<0)throw new TypeError("addVideoChunkRaw's fourth argument (duration) must be a non-negative real number.");if(r&&typeof r!="object")throw new TypeError("addVideoChunkRaw's fifth argument (meta), when provided, must be an object.");if(n!==void 0&&!Number.isFinite(n))throw new TypeError("addVideoChunkRaw's sixth argument (compositionTimeOffset), when provided, must be a real number.");if(he(this,xn,ws).call(this),!y(this,ee).video)throw new Error("No video track declared.");if(typeof y(this,ee).fastStart=="object"&&y(this,Ue).samples.length===y(this,ee).fastStart.expectedVideoChunks)throw new Error(`Cannot add more video chunks than specified in 'fastStart' (${y(this,ee).fastStart.expectedVideoChunks}).`);let i=he(this,vn,bs).call(this,y(this,Ue),e,t,a,o,r,n);if(y(this,ee).fastStart==="fragmented"&&y(this,Be)){for(;y(this,Oa).length>0&&y(this,Oa)[0].decodeTimestamp<=i.decodeTimestamp;){let s=y(this,Oa).shift();he(this,At,jt).call(this,y(this,Be),s)}i.decodeTimestamp<=y(this,Be).lastDecodeTimestamp?he(this,At,jt).call(this,y(this,Ue),i):y(this,Ea).push(i)}else he(this,At,jt).call(this,y(this,Ue),i)}addAudioChunk(e,t,a){if(!(e instanceof EncodedAudioChunk))throw new TypeError("addAudioChunk's first argument (sample) must be of type EncodedAudioChunk.");if(t&&typeof t!="object")throw new TypeError("addAudioChunk's second argument (meta), when provided, must be an object.");if(a!==void 0&&(!Number.isFinite(a)||a<0))throw new TypeError("addAudioChunk's third argument (timestamp), when provided, must be a non-negative real number.");let o=new Uint8Array(e.byteLength);e.copyTo(o),this.addAudioChunkRaw(o,e.type,a??e.timestamp,e.duration,t)}addAudioChunkRaw(e,t,a,o,r){if(!(e instanceof Uint8Array))throw new TypeError("addAudioChunkRaw's first argument (data) must be an instance of Uint8Array.");if(t!=="key"&&t!=="delta")throw new TypeError("addAudioChunkRaw's second argument (type) must be either 'key' or 'delta'.");if(!Number.isFinite(a)||a<0)throw new TypeError("addAudioChunkRaw's third argument (timestamp) must be a non-negative real number.");if(!Number.isFinite(o)||o<0)throw new TypeError("addAudioChunkRaw's fourth argument (duration) must be a non-negative real number.");if(r&&typeof r!="object")throw new TypeError("addAudioChunkRaw's fifth argument (meta), when provided, must be an object.");if(he(this,xn,ws).call(this),!y(this,ee).audio)throw new Error("No audio track declared.");if(typeof y(this,ee).fastStart=="object"&&y(this,Be).samples.length===y(this,ee).fastStart.expectedAudioChunks)throw new Error(`Cannot add more audio chunks than specified in 'fastStart' (${y(this,ee).fastStart.expectedAudioChunks}).`);let n=he(this,vn,bs).call(this,y(this,Be),e,t,a,o,r);if(y(this,ee).fastStart==="fragmented"&&y(this,Ue)){for(;y(this,Ea).length>0&&y(this,Ea)[0].decodeTimestamp<=n.decodeTimestamp;){let i=y(this,Ea).shift();he(this,At,jt).call(this,y(this,Ue),i)}n.decodeTimestamp<=y(this,Ue).lastDecodeTimestamp?he(this,At,jt).call(this,y(this,Be),n):y(this,Oa).push(n)}else he(this,At,jt).call(this,y(this,Be),n)}finalize(){if(y(this,dr))throw new Error("Cannot finalize a muxer more than once.");if(y(this,ee).fastStart==="fragmented"){for(let t of y(this,Ea))he(this,At,jt).call(this,y(this,Ue),t);for(let t of y(this,Oa))he(this,At,jt).call(this,y(this,Be),t);he(this,Ln,Ds).call(this,!1)}else y(this,Ue)&&he(this,ur,Sn).call(this,y(this,Ue)),y(this,Be)&&he(this,ur,Sn).call(this,y(this,Be));let e=[y(this,Ue),y(this,Be)].filter(Boolean);if(y(this,ee).fastStart==="in-memory"){let t;for(let o=0;o<2;o++){let r=mn(e,y(this,ho)),n=y(this,re).measureBox(r);t=y(this,re).measureBox(y(this,st));let i=y(this,re).pos+n+t;for(let s of y(this,vo)){s.offset=i;for(let{data:l}of s.samples)i+=l.byteLength,t+=l.byteLength}if(i<2**32)break;t>=2**32&&(y(this,st).largeSize=!0)}let a=mn(e,y(this,ho));y(this,re).writeBox(a),y(this,st).size=t,y(this,re).writeBox(y(this,st));for(let o of y(this,vo))for(let r of o.samples)y(this,re).write(r.data),r.data=null}else if(y(this,ee).fastStart==="fragmented"){let t=y(this,re).pos,a=Vw(e);y(this,re).writeBox(a);let o=y(this,re).pos-t;y(this,re).seek(y(this,re).pos-4),y(this,re).writeU32(o)}else{let t=y(this,re).offsets.get(y(this,st)),a=y(this,re).pos-t;y(this,st).size=a,y(this,st).largeSize=a>=2**32,y(this,re).patchBox(y(this,st));let o=mn(e,y(this,ho));if(typeof y(this,ee).fastStart=="object"){y(this,re).seek(y(this,Cn)),y(this,re).writeBox(o);let r=t-y(this,re).pos;y(this,re).writeBox(tw(r))}else y(this,re).writeBox(o)}he(this,bo,fr).call(this),y(this,re).finalize(),He(this,dr,!0)}};ee=new WeakMap;re=new WeakMap;Cn=new WeakMap;st=new WeakMap;Ue=new WeakMap;Be=new WeakMap;ho=new WeakMap;vo=new WeakMap;Ps=new WeakMap;Ea=new WeakMap;Oa=new WeakMap;dr=new WeakMap;hs=new WeakSet;ep=function(e){if(typeof e!="object")throw new TypeError("The muxer requires an options object to be passed to its constructor.");if(!(e.target instanceof In))throw new TypeError("The target must be provided and an instance of Target.");if(e.video){if(!Qw.includes(e.video.codec))throw new TypeError(`Unsupported video codec: ${e.video.codec}`);if(!Number.isInteger(e.video.width)||e.video.width<=0)throw new TypeError(`Invalid video width: ${e.video.width}. Must be a positive integer.`);if(!Number.isInteger(e.video.height)||e.video.height<=0)throw new TypeError(`Invalid video height: ${e.video.height}. Must be a positive integer.`);let t=e.video.rotation;if(typeof t=="number"&&![0,90,180,270].includes(t))throw new TypeError(`Invalid video rotation: ${t}. Has to be 0, 90, 180 or 270.`);if(Array.isArray(t)&&(t.length!==9||t.some(a=>typeof a!="number")))throw new TypeError(`Invalid video transformation matrix: ${t.join()}`);if(e.video.frameRate!==void 0&&(!Number.isInteger(e.video.frameRate)||e.video.frameRate<=0))throw new TypeError(`Invalid video frame rate: ${e.video.frameRate}. Must be a positive integer.`)}if(e.audio){if(!ey.includes(e.audio.codec))throw new TypeError(`Unsupported audio codec: ${e.audio.codec}`);if(!Number.isInteger(e.audio.numberOfChannels)||e.audio.numberOfChannels<=0)throw new TypeError(`Invalid number of audio channels: ${e.audio.numberOfChannels}. Must be a positive integer.`);if(!Number.isInteger(e.audio.sampleRate)||e.audio.sampleRate<=0)throw new TypeError(`Invalid audio sample rate: ${e.audio.sampleRate}. Must be a positive integer.`)}if(e.firstTimestampBehavior&&!ay.includes(e.firstTimestampBehavior))throw new TypeError(`Invalid first timestamp behavior: ${e.firstTimestampBehavior}`);if(typeof e.fastStart=="object"){if(e.video){if(e.fastStart.expectedVideoChunks===void 0)throw new TypeError("'fastStart' is an object but is missing property 'expectedVideoChunks'.");if(!Number.isInteger(e.fastStart.expectedVideoChunks)||e.fastStart.expectedVideoChunks<0)throw new TypeError("'expectedVideoChunks' must be a non-negative integer.")}if(e.audio){if(e.fastStart.expectedAudioChunks===void 0)throw new TypeError("'fastStart' is an object but is missing property 'expectedAudioChunks'.");if(!Number.isInteger(e.fastStart.expectedAudioChunks)||e.fastStart.expectedAudioChunks<0)throw new TypeError("'expectedAudioChunks' must be a non-negative integer.")}}else if(![!1,"in-memory","fragmented"].includes(e.fastStart))throw new TypeError("'fastStart' option must be false, 'in-memory', 'fragmented' or an object.");if(e.minFragmentDuration!==void 0&&(!Number.isFinite(e.minFragmentDuration)||e.minFragmentDuration<0))throw new TypeError("'minFragmentDuration' must be a non-negative number.")};vs=new WeakSet;tp=function(){if(y(this,re).writeBox(ew({holdsAvc:y(this,ee).video?.codec==="avc",fragmented:y(this,ee).fastStart==="fragmented"})),He(this,Cn,y(this,re).pos),y(this,ee).fastStart==="in-memory")He(this,st,fs(!1));else if(y(this,ee).fastStart!=="fragmented"){if(typeof y(this,ee).fastStart=="object"){let e=he(this,Ts,ap).call(this);y(this,re).seek(y(this,re).pos+e)}He(this,st,fs(!0)),y(this,re).writeBox(y(this,st))}he(this,bo,fr).call(this)};Ts=new WeakSet;ap=function(){if(typeof y(this,ee).fastStart!="object")return;let e=0,t=[y(this,ee).fastStart.expectedVideoChunks,y(this,ee).fastStart.expectedAudioChunks];for(let a of t)a&&(e+=8*Math.ceil(2/3*a),e+=4*a,e+=12*Math.ceil(2/3*a),e+=4*a,e+=8*a);return e+=4096,e};xs=new WeakSet;op=function(){if(y(this,ee).video&&He(this,Ue,{id:1,info:{type:"video",codec:y(this,ee).video.codec,width:y(this,ee).video.width,height:y(this,ee).video.height,rotation:y(this,ee).video.rotation??0,decoderConfig:null},timescale:y(this,ee).video.frameRate??57600,samples:[],finalizedChunks:[],currentChunk:null,firstDecodeTimestamp:void 0,lastDecodeTimestamp:-1,timeToSampleTable:[],compositionTimeOffsetTable:[],lastTimescaleUnits:null,lastSample:null,compactlyCodedChunkTable:[]}),y(this,ee).audio&&(He(this,Be,{id:y(this,ee).video?2:1,info:{type:"audio",codec:y(this,ee).audio.codec,numberOfChannels:y(this,ee).audio.numberOfChannels,sampleRate:y(this,ee).audio.sampleRate,decoderConfig:null},timescale:y(this,ee).audio.sampleRate,samples:[],finalizedChunks:[],currentChunk:null,firstDecodeTimestamp:void 0,lastDecodeTimestamp:-1,timeToSampleTable:[],compositionTimeOffsetTable:[],lastTimescaleUnits:null,lastSample:null,compactlyCodedChunkTable:[]}),y(this,ee).audio.codec==="aac")){let e=he(this,Ms,rp).call(this,2,y(this,ee).audio.sampleRate,y(this,ee).audio.numberOfChannels);y(this,Be).info.decoderConfig={codec:y(this,ee).audio.codec,description:e,numberOfChannels:y(this,ee).audio.numberOfChannels,sampleRate:y(this,ee).audio.sampleRate}}};Ms=new WeakSet;rp=function(e,t,a){let r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350].indexOf(t),n=a,i="";i+=e.toString(2).padStart(5,"0"),i+=r.toString(2).padStart(4,"0"),r===15&&(i+=t.toString(2).padStart(24,"0")),i+=n.toString(2).padStart(4,"0");let s=Math.ceil(i.length/8)*8;i=i.padEnd(s,"0");let l=new Uint8Array(i.length/8);for(let d=0;d<i.length;d+=8)l[d/8]=parseInt(i.slice(d,d+8),2);return l};vn=new WeakSet;bs=function(e,t,a,o,r,n,i){let s=o/1e6,l=(o-(i??0))/1e6,d=r/1e6,u=he(this,As,np).call(this,s,l,e);return s=u.presentationTimestamp,l=u.decodeTimestamp,n?.decoderConfig&&(e.info.decoderConfig===null?e.info.decoderConfig=n.decoderConfig:Object.assign(e.info.decoderConfig,n.decoderConfig)),{presentationTimestamp:s,decodeTimestamp:l,duration:d,data:t,size:t.byteLength,type:a,timescaleUnitsToNextSample:zt(d,e.timescale)}};At=new WeakSet;jt=function(e,t){y(this,ee).fastStart!=="fragmented"&&e.samples.push(t);let a=zt(t.presentationTimestamp-t.decodeTimestamp,e.timescale);if(e.lastTimescaleUnits!==null){let r=zt(t.decodeTimestamp,e.timescale,!1),n=Math.round(r-e.lastTimescaleUnits);if(e.lastTimescaleUnits+=n,e.lastSample.timescaleUnitsToNextSample=n,y(this,ee).fastStart!=="fragmented"){let i=bn(e.timeToSampleTable);i.sampleCount===1?(i.sampleDelta=n,i.sampleCount++):i.sampleDelta===n?i.sampleCount++:(i.sampleCount--,e.timeToSampleTable.push({sampleCount:2,sampleDelta:n}));let s=bn(e.compositionTimeOffsetTable);s.sampleCompositionTimeOffset===a?s.sampleCount++:e.compositionTimeOffsetTable.push({sampleCount:1,sampleCompositionTimeOffset:a})}}else e.lastTimescaleUnits=0,y(this,ee).fastStart!=="fragmented"&&(e.timeToSampleTable.push({sampleCount:1,sampleDelta:zt(t.duration,e.timescale)}),e.compositionTimeOffsetTable.push({sampleCount:1,sampleCompositionTimeOffset:a}));e.lastSample=t;let o=!1;if(!e.currentChunk)o=!0;else{let r=t.presentationTimestamp-e.currentChunk.startTimestamp;if(y(this,ee).fastStart==="fragmented"){let n=y(this,Ue)??y(this,Be),i=y(this,ee).minFragmentDuration??1;e===n&&t.type==="key"&&r>=i&&(o=!0,he(this,Ln,Ds).call(this))}else o=r>=.5}o&&(e.currentChunk&&he(this,ur,Sn).call(this,e),e.currentChunk={startTimestamp:t.presentationTimestamp,samples:[]}),e.currentChunk.samples.push(t)};As=new WeakSet;np=function(e,t,a){let o=y(this,ee).firstTimestampBehavior==="strict",r=a.lastDecodeTimestamp===-1;if(o&&r&&t!==0)throw new Error(`The first chunk for your media track must have a timestamp of 0 (received DTS=${t}).Non-zero first timestamps are often caused by directly piping frames or audio data from a MediaStreamTrack into the encoder. Their timestamps are typically relative to the age of thedocument, which is probably what you want.
53
+ `)},I3=0,qi=[];function hy(e){var t=H([]),a=H([0,0]),r=H(),n=O(I3++)[0],o=O(Su)[0],i=H(e);K(function(){i.current=e},[e]),K(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var m=ay([e.lockRef.current],(e.shards||[]).map(my),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var s=me(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var v=Hc(m),w=a.current,y="deltaX"in m?m.deltaX:w[0]-v[0],S="deltaY"in m?m.deltaY:w[1]-v[1],A,L=m.target,C=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&C==="h"&&L.type==="range")return!1;var I=window.getSelection(),D=I&&I.anchorNode,Z=D?D===L||D.contains(L):!1;if(Z)return!1;var N=Ih(C,L);if(!N)return!0;if(N?A=C:(A=C==="v"?"h":"v",N=Ih(C,L)),!N)return!1;if(!r.current&&"changedTouches"in m&&(y||S)&&(r.current=A),!A)return!0;var V=r.current||A;return fy(V,x,m,V==="h"?y:S,!0)},[]),u=me(function(m){var x=m;if(!(!qi.length||qi[qi.length-1]!==o)){var v="deltaY"in x?py(x):Hc(x),w=t.current.filter(function(A){return A.name===x.type&&(A.target===x.target||x.target===A.shadowParent)&&S3(A.delta,v)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var y=(i.current.shards||[]).map(my).filter(Boolean).filter(function(A){return A.contains(x.target)}),S=y.length>0?s(x,y[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),l=me(function(m,x,v,w){var y={name:m,delta:x,target:v,should:w,shadowParent:k3(v)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),c=me(function(m){a.current=Hc(m),r.current=void 0},[]),d=me(function(m){l(m.type,py(m),m.target,s(m,e.lockRef.current))},[]),f=me(function(m){l(m.type,Hc(m),m.target,s(m,e.lockRef.current))},[]);K(function(){return qi.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Oo),document.addEventListener("touchmove",u,Oo),document.addEventListener("touchstart",c,Oo),function(){qi=qi.filter(function(m){return m!==o}),document.removeEventListener("wheel",u,Oo),document.removeEventListener("touchmove",u,Oo),document.removeEventListener("touchstart",c,Oo)}},[]);var p=e.removeScrollBar,g=e.inert;return it(Ha,null,g?it(o,{styles:C3(n)}):null,p?it(Sh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function k3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var gy=bh(Fc,hy);var by=X(function(e,t){return it(wu,Ia({},e,{ref:t,sideCar:gy}))});by.classNames=wu.classNames;var Iu=by;var L3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ki=new WeakMap,zc=new WeakMap,Vc={},kh=0,xy=function(e){return e&&(e.host||xy(e.parentNode))},E3=function(e,t){return t.map(function(a){if(e.contains(a))return a;var r=xy(a);return r&&e.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},T3=function(e,t,a,r){var n=E3(t,Array.isArray(e)?e:[e]);Vc[a]||(Vc[a]=new WeakMap);var o=Vc[a],i=[],s=new Set,u=new Set(n),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};n.forEach(l);var c=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else try{var p=f.getAttribute(r),g=p!==null&&p!=="false",m=(Ki.get(f)||0)+1,x=(o.get(f)||0)+1;Ki.set(f,m),o.set(f,x),i.push(f),m===1&&g&&zc.set(f,!0),x===1&&f.setAttribute(a,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return c(t),s.clear(),kh++,function(){i.forEach(function(d){var f=Ki.get(d)-1,p=o.get(d)-1;Ki.set(d,f),o.set(d,p),f||(zc.has(d)||d.removeAttribute(r),zc.delete(d)),p||d.removeAttribute(a)}),kh--,kh||(Ki=new WeakMap,Ki=new WeakMap,zc=new WeakMap,Vc={})}},Uc=function(e,t,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||L3(e);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live], script"))),T3(r,n,a,"aria-hidden")):function(){return null}};var Wc="Dialog",[vy,R3]=Ca(Wc),[P3,br]=vy(Wc),yy=e=>{let{__scopeDialog:t,children:a,open:r,defaultOpen:n,onOpenChange:o,modal:i=!0}=e,s=H(null),u=H(null),[l,c]=gr({prop:r,defaultProp:n??!1,onChange:o,caller:Wc});return E(P3,{scope:t,triggerRef:s,contentRef:u,contentId:$a(),titleId:$a(),descriptionId:$a(),open:l,onOpenChange:c,onOpenToggle:me(()=>c(d=>!d),[c]),modal:i,children:a})};yy.displayName=Wc;var Ay="DialogTrigger",wy=X((e,t)=>{let{__scopeDialog:a,...r}=e,n=br(Ay,a),o=Be(t,n.triggerRef);return E(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.open?n.contentId:void 0,"data-state":Eh(n.open),...r,ref:o,onClick:Ie(e.onClick,n.onOpenToggle)})});wy.displayName=Ay;var Lh="DialogPortal",[N3,Sy]=vy(Lh,{forceMount:void 0}),Cy=e=>{let{__scopeDialog:t,forceMount:a,children:r,container:n}=e,o=br(Lh,t);return E(N3,{scope:t,forceMount:a,children:Br.map(r,i=>E(xn,{present:a||o.open,children:E(Au,{asChild:!0,container:n,children:i})}))})};Cy.displayName=Lh;var Gc="DialogOverlay",Iy=X((e,t)=>{let a=Sy(Gc,e.__scopeDialog),{forceMount:r=a.forceMount,...n}=e,o=br(Gc,e.__scopeDialog);return o.modal?E(xn,{present:r||o.open,children:E(D3,{...n,ref:t})}):null});Iy.displayName=Gc;var M3=hr("DialogOverlay.RemoveScroll"),D3=X((e,t)=>{let{__scopeDialog:a,...r}=e,n=br(Gc,a),o=Qv(),i=Be(t,o);return E(Iu,{as:M3,allowPinchZoom:!0,shards:[n.contentRef],children:E(Ae.div,{"data-state":Eh(n.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),Qi="DialogContent",ky=X((e,t)=>{let a=Sy(Qi,e.__scopeDialog),{forceMount:r=a.forceMount,...n}=e,o=br(Qi,e.__scopeDialog);return E(xn,{present:r||o.open,children:o.modal?E(O3,{...n,ref:t}):E(_3,{...n,ref:t})})});ky.displayName=Qi;var O3=X((e,t)=>{let a=br(Qi,e.__scopeDialog),r=H(null),n=Be(t,a.contentRef,r);return K(()=>{let o=r.current;if(o)return Uc(o)},[]),E(Ly,{...e,ref:n,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:Ie(e.onCloseAutoFocus,o=>{o.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:Ie(e.onPointerDownOutside,o=>{let i=o.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&o.preventDefault()}),onFocusOutside:Ie(e.onFocusOutside,o=>o.preventDefault())})}),_3=X((e,t)=>{let a=br(Qi,e.__scopeDialog),r=H(!1),n=H(!1);return E(Ly,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||a.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let i=o.target;a.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&n.current&&o.preventDefault()}})}),Ly=X((e,t)=>{let{__scopeDialog:a,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:o,...i}=e,s=br(Qi,a);return Oc(),E(jn,{children:E(yu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:o,children:E(vu,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Eh(s.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),Ey="DialogTitle",Ty=X((e,t)=>{let{__scopeDialog:a,...r}=e,n=br(Ey,a);return E(Ae.h2,{id:n.titleId,...r,ref:t})});Ty.displayName=Ey;var Ry="DialogDescription",Py=X((e,t)=>{let{__scopeDialog:a,...r}=e,n=br(Ry,a);return E(Ae.p,{id:n.descriptionId,...r,ref:t})});Py.displayName=Ry;var Ny="DialogClose",My=X((e,t)=>{let{__scopeDialog:a,...r}=e,n=br(Ny,a);return E(Ae.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,()=>n.onOpenChange(!1))})});My.displayName=Ny;var B3=e=>e.children;function Eh(e){return e?"open":"closed"}function jc(e){let t=H({value:e,previous:e});return _e(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function qc(e){let[t,a]=O(void 0);return rt(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(n=>{if(!Array.isArray(n)||!n.length)return;let o=n[0],i,s;if("borderBoxSize"in o){let u=o.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;a({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}var _y=["top","right","bottom","left"];var Hr=Math.min,ma=Math.max,Lu=Math.round,Eu=Math.floor,vr=e=>({x:e,y:e}),F3={left:"right",right:"left",bottom:"top",top:"bottom"};function Qc(e,t,a){return ma(e,Hr(t,a))}function zr(e,t){return typeof e=="function"?e(t):e}function Vr(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function Yc(e){return e==="x"?"y":"x"}function Jc(e){return e==="y"?"height":"width"}function yr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function $c(e){return Yc(yr(e))}function By(e,t,a){a===void 0&&(a=!1);let r=_o(e),n=$c(e),o=Jc(n),i=n==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=ku(i)),[i,ku(i)]}function Fy(e){let t=ku(e);return[Kc(e),t,Kc(t)]}function Kc(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Dy=["left","right"],Oy=["right","left"],H3=["top","bottom"],z3=["bottom","top"];function V3(e,t,a){switch(e){case"top":case"bottom":return a?t?Oy:Dy:t?Dy:Oy;case"left":case"right":return t?H3:z3;default:return[]}}function Hy(e,t,a,r){let n=_o(e),o=V3(Vr(e),a==="start",r);return n&&(o=o.map(i=>i+"-"+n),t&&(o=o.concat(o.map(Kc)))),o}function ku(e){let t=Vr(e);return F3[t]+e.slice(t.length)}function U3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Th(e){return typeof e!="number"?U3(e):{top:e,right:e,bottom:e,left:e}}function Bo(e){let{x:t,y:a,width:r,height:n}=e;return{width:r,height:n,top:a,left:t,right:t+r,bottom:a+n,x:t,y:a}}function zy(e,t,a){let{reference:r,floating:n}=e,o=yr(t),i=$c(t),s=Jc(i),u=Vr(t),l=o==="y",c=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,f=r[s]/2-n[s]/2,p;switch(u){case"top":p={x:c,y:r.y-n.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-n.width,y:d};break;default:p={x:r.x,y:r.y}}switch(_o(t)){case"start":p[i]-=f*(a&&l?-1:1);break;case"end":p[i]+=f*(a&&l?-1:1);break}return p}async function Gy(e,t){var a;t===void 0&&(t={});let{x:r,y:n,platform:o,rects:i,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=zr(t,e),g=Th(p),x=s[f?d==="floating"?"reference":"floating":d],v=Bo(await o.getClippingRect({element:(a=await(o.isElement==null?void 0:o.isElement(x)))==null||a?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),w=d==="floating"?{x:r,y:n,width:i.floating.width,height:i.floating.height}:i.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),S=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},A=Bo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:y,strategy:u}):w);return{top:(v.top-A.top+g.top)/S.y,bottom:(A.bottom-v.bottom+g.bottom)/S.y,left:(v.left-A.left+g.left)/S.x,right:(A.right-v.right+g.right)/S.x}}var G3=50,Wy=async(e,t,a)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i}=a,s=i.detectOverflow?i:{...i,detectOverflow:Gy},u=await(i.isRTL==null?void 0:i.isRTL(t)),l=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:d}=zy(l,r,u),f=r,p=0,g={};for(let m=0;m<o.length;m++){let x=o[m];if(!x)continue;let{name:v,fn:w}=x,{x:y,y:S,data:A,reset:L}=await w({x:c,y:d,initialPlacement:r,placement:f,strategy:n,middlewareData:g,rects:l,platform:s,elements:{reference:e,floating:t}});c=y??c,d=S??d,g[v]={...g[v],...A},L&&p<G3&&(p++,typeof L=="object"&&(L.placement&&(f=L.placement),L.rects&&(l=L.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):L.rects),{x:c,y:d}=zy(l,f,u)),m=-1)}return{x:c,y:d,placement:f,strategy:n,middlewareData:g}},jy=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:r,placement:n,rects:o,platform:i,elements:s,middlewareData:u}=t,{element:l,padding:c=0}=zr(e,t)||{};if(l==null)return{};let d=Th(c),f={x:a,y:r},p=$c(n),g=Jc(p),m=await i.getDimensions(l),x=p==="y",v=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",S=o.reference[g]+o.reference[p]-f[p]-o.floating[g],A=f[p]-o.reference[p],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l)),C=L?L[y]:0;(!C||!await(i.isElement==null?void 0:i.isElement(L)))&&(C=s.floating[y]||o.floating[g]);let I=S/2-A/2,D=C/2-m[g]/2-1,Z=Hr(d[v],D),N=Hr(d[w],D),V=Z,J=C-m[g]-N,ee=C/2-m[g]/2+I,T=Qc(V,ee,J),_=!u.arrow&&_o(n)!=null&&ee!==T&&o.reference[g]/2-(ee<V?Z:N)-m[g]/2<0,Q=_?ee<V?ee-V:ee-J:0;return{[p]:f[p]+Q,data:{[p]:T,centerOffset:ee-T-Q,..._&&{alignmentOffset:Q}},reset:_}}});var qy=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,r;let{placement:n,middlewareData:o,rects:i,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=zr(e,t);if((a=o.arrow)!=null&&a.alignmentOffset)return{};let v=Vr(n),w=yr(s),y=Vr(s)===s,S=await(u.isRTL==null?void 0:u.isRTL(l.floating)),A=f||(y||!m?[ku(s)]:Fy(s)),L=g!=="none";!f&&L&&A.push(...Hy(s,m,g,S));let C=[s,...A],I=await u.detectOverflow(t,x),D=[],Z=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&D.push(I[v]),d){let ee=By(n,i,S);D.push(I[ee[0]],I[ee[1]])}if(Z=[...Z,{placement:n,overflows:D}],!D.every(ee=>ee<=0)){var N,V;let ee=(((N=o.flip)==null?void 0:N.index)||0)+1,T=C[ee];if(T&&(!(d==="alignment"?w!==yr(T):!1)||Z.every(q=>yr(q.placement)===w?q.overflows[0]>0:!0)))return{data:{index:ee,overflows:Z},reset:{placement:T}};let _=(V=Z.filter(Q=>Q.overflows[0]<=0).sort((Q,q)=>Q.overflows[1]-q.overflows[1])[0])==null?void 0:V.placement;if(!_)switch(p){case"bestFit":{var J;let Q=(J=Z.filter(q=>{if(L){let pe=yr(q.placement);return pe===w||pe==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(pe=>pe>0).reduce((pe,W)=>pe+W,0)]).sort((q,pe)=>q[1]-pe[1])[0])==null?void 0:J[0];Q&&(_=Q);break}case"initialPlacement":_=s;break}if(n!==_)return{reset:{placement:_}}}return{}}}};function Vy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Uy(e){return _y.some(t=>e[t]>=0)}var Ky=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:r}=t,{strategy:n="referenceHidden",...o}=zr(e,t);switch(n){case"referenceHidden":{let i=await r.detectOverflow(t,{...o,elementContext:"reference"}),s=Vy(i,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Uy(s)}}}case"escaped":{let i=await r.detectOverflow(t,{...o,altBoundary:!0}),s=Vy(i,a.floating);return{data:{escapedOffsets:s,escaped:Uy(s)}}}default:return{}}}}};var Qy=new Set(["left","top"]);async function W3(e,t){let{placement:a,platform:r,elements:n}=e,o=await(r.isRTL==null?void 0:r.isRTL(n.floating)),i=Vr(a),s=_o(a),u=yr(a)==="y",l=Qy.has(i)?-1:1,c=o&&u?-1:1,d=zr(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(p=s==="end"?g*-1:g),u?{x:p*c,y:f*l}:{x:f*l,y:p*c}}var Yy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;let{x:n,y:o,placement:i,middlewareData:s}=t,u=await W3(t,e);return i===((a=s.offset)==null?void 0:a.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:o+u.y,data:{...u,placement:i}}}}},Jy=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:r,placement:n,platform:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:u={fn:v=>{let{x:w,y}=v;return{x:w,y}}},...l}=zr(e,t),c={x:a,y:r},d=await o.detectOverflow(t,l),f=yr(Vr(n)),p=Yc(f),g=c[p],m=c[f];if(i){let v=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=g+d[v],S=g-d[w];g=Qc(y,g,S)}if(s){let v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",y=m+d[v],S=m-d[w];m=Qc(y,m,S)}let x=u.fn({...t,[p]:g,[f]:m});return{...x,data:{x:x.x-a,y:x.y-r,enabled:{[p]:i,[f]:s}}}}}},$y=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:r,placement:n,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=zr(e,t),c={x:a,y:r},d=yr(n),f=Yc(d),p=c[f],g=c[d],m=zr(s,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let y=f==="y"?"height":"width",S=o.reference[f]-o.floating[y]+x.mainAxis,A=o.reference[f]+o.reference[y]-x.mainAxis;p<S?p=S:p>A&&(p=A)}if(l){var v,w;let y=f==="y"?"width":"height",S=Qy.has(Vr(n)),A=o.reference[d]-o.floating[y]+(S&&((v=i.offset)==null?void 0:v[d])||0)+(S?0:x.crossAxis),L=o.reference[d]+o.reference[y]+(S?0:((w=i.offset)==null?void 0:w[d])||0)-(S?x.crossAxis:0);g<A?g=A:g>L&&(g=L)}return{[f]:p,[d]:g}}}},Zy=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,r;let{placement:n,rects:o,platform:i,elements:s}=t,{apply:u=()=>{},...l}=zr(e,t),c=await i.detectOverflow(t,l),d=Vr(n),f=_o(n),p=yr(n)==="y",{width:g,height:m}=o.floating,x,v;d==="top"||d==="bottom"?(x=d,v=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,x=f==="end"?"top":"bottom");let w=m-c.top-c.bottom,y=g-c.left-c.right,S=Hr(m-c[x],w),A=Hr(g-c[v],y),L=!t.middlewareData.shift,C=S,I=A;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(I=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=w),L&&!f){let Z=ma(c.left,0),N=ma(c.right,0),V=ma(c.top,0),J=ma(c.bottom,0);p?I=g-2*(Z!==0||N!==0?Z+N:ma(c.left,c.right)):C=m-2*(V!==0||J!==0?V+J:ma(c.top,c.bottom))}await u({...t,availableWidth:I,availableHeight:C});let D=await i.getDimensions(s.floating);return g!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function Zc(){return typeof window<"u"}function zo(e){return eA(e)?(e.nodeName||"").toLowerCase():"#document"}function ka(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ar(e){var t;return(t=(eA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eA(e){return Zc()?e instanceof Node||e instanceof ka(e).Node:!1}function Za(e){return Zc()?e instanceof Element||e instanceof ka(e).Element:!1}function Ur(e){return Zc()?e instanceof HTMLElement||e instanceof ka(e).HTMLElement:!1}function Xy(e){return!Zc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ka(e).ShadowRoot}function Yi(e){let{overflow:t,overflowX:a,overflowY:r,display:n}=Xa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&n!=="inline"&&n!=="contents"}function tA(e){return/^(table|td|th)$/.test(zo(e))}function Tu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var j3=/transform|translate|scale|rotate|perspective|filter/,q3=/paint|layout|strict|content/,Fo=e=>!!e&&e!=="none",Rh;function Xc(e){let t=Za(e)?Xa(e):e;return Fo(t.transform)||Fo(t.translate)||Fo(t.scale)||Fo(t.rotate)||Fo(t.perspective)||!ed()&&(Fo(t.backdropFilter)||Fo(t.filter))||j3.test(t.willChange||"")||q3.test(t.contain||"")}function aA(e){let t=vn(e);for(;Ur(t)&&!Vo(t);){if(Xc(t))return t;if(Tu(t))return null;t=vn(t)}return null}function ed(){return Rh==null&&(Rh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Rh}function Vo(e){return/^(html|body|#document)$/.test(zo(e))}function Xa(e){return ka(e).getComputedStyle(e)}function Ru(e){return Za(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vn(e){if(zo(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Xy(e)&&e.host||Ar(e);return Xy(t)?t.host:t}function rA(e){let t=vn(e);return Vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ur(t)&&Yi(t)?t:rA(t)}function Ho(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);let n=rA(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=ka(n);if(o){let s=td(i);return t.concat(i,i.visualViewport||[],Yi(n)?n:[],s&&a?Ho(s):[])}else return t.concat(n,Ho(n,[],a))}function td(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sA(e){let t=Xa(e),a=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=Ur(e),o=n?e.offsetWidth:a,i=n?e.offsetHeight:r,s=Lu(a)!==o||Lu(r)!==i;return s&&(a=o,r=i),{width:a,height:r,$:s}}function Nh(e){return Za(e)?e:e.contextElement}function Ji(e){let t=Nh(e);if(!Ur(t))return vr(1);let a=t.getBoundingClientRect(),{width:r,height:n,$:o}=sA(t),i=(o?Lu(a.width):a.width)/r,s=(o?Lu(a.height):a.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var K3=vr(0);function uA(e){let t=ka(e);return!ed()||!t.visualViewport?K3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q3(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==ka(e)?!1:t}function Uo(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);let n=e.getBoundingClientRect(),o=Nh(e),i=vr(1);t&&(r?Za(r)&&(i=Ji(r)):i=Ji(e));let s=Q3(o,a,r)?uA(o):vr(0),u=(n.left+s.x)/i.x,l=(n.top+s.y)/i.y,c=n.width/i.x,d=n.height/i.y;if(o){let f=ka(o),p=r&&Za(r)?ka(r):r,g=f,m=td(g);for(;m&&r&&p!==g;){let x=Ji(m),v=m.getBoundingClientRect(),w=Xa(m),y=v.left+(m.clientLeft+parseFloat(w.paddingLeft))*x.x,S=v.top+(m.clientTop+parseFloat(w.paddingTop))*x.y;u*=x.x,l*=x.y,c*=x.x,d*=x.y,u+=y,l+=S,g=ka(m),m=td(g)}}return Bo({width:c,height:d,x:u,y:l})}function ad(e,t){let a=Ru(e).scrollLeft;return t?t.left+a:Uo(Ar(e)).left+a}function lA(e,t){let a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-ad(e,a),n=a.top+t.scrollTop;return{x:r,y:n}}function Y3(e){let{elements:t,rect:a,offsetParent:r,strategy:n}=e,o=n==="fixed",i=Ar(r),s=t?Tu(t.floating):!1;if(r===i||s&&o)return a;let u={scrollLeft:0,scrollTop:0},l=vr(1),c=vr(0),d=Ur(r);if((d||!d&&!o)&&((zo(r)!=="body"||Yi(i))&&(u=Ru(r)),d)){let p=Uo(r);l=Ji(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}let f=i&&!d&&!o?lA(i,u):vr(0);return{width:a.width*l.x,height:a.height*l.y,x:a.x*l.x-u.scrollLeft*l.x+c.x+f.x,y:a.y*l.y-u.scrollTop*l.y+c.y+f.y}}function J3(e){return Array.from(e.getClientRects())}function $3(e){let t=Ar(e),a=Ru(e),r=e.ownerDocument.body,n=ma(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ma(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-a.scrollLeft+ad(e),s=-a.scrollTop;return Xa(r).direction==="rtl"&&(i+=ma(t.clientWidth,r.clientWidth)-n),{width:n,height:o,x:i,y:s}}var nA=25;function Z3(e,t){let a=ka(e),r=Ar(e),n=a.visualViewport,o=r.clientWidth,i=r.clientHeight,s=0,u=0;if(n){o=n.width,i=n.height;let c=ed();(!c||c&&t==="fixed")&&(s=n.offsetLeft,u=n.offsetTop)}let l=ad(r);if(l<=0){let c=r.ownerDocument,d=c.body,f=getComputedStyle(d),p=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-p);g<=nA&&(o-=g)}else l<=nA&&(o+=l);return{width:o,height:i,x:s,y:u}}function X3(e,t){let a=Uo(e,!0,t==="fixed"),r=a.top+e.clientTop,n=a.left+e.clientLeft,o=Ur(e)?Ji(e):vr(1),i=e.clientWidth*o.x,s=e.clientHeight*o.y,u=n*o.x,l=r*o.y;return{width:i,height:s,x:u,y:l}}function oA(e,t,a){let r;if(t==="viewport")r=Z3(e,a);else if(t==="document")r=$3(Ar(e));else if(Za(t))r=X3(t,a);else{let n=uA(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Bo(r)}function cA(e,t){let a=vn(e);return a===t||!Za(a)||Vo(a)?!1:Xa(a).position==="fixed"||cA(a,t)}function eN(e,t){let a=t.get(e);if(a)return a;let r=Ho(e,[],!1).filter(s=>Za(s)&&zo(s)!=="body"),n=null,o=Xa(e).position==="fixed",i=o?vn(e):e;for(;Za(i)&&!Vo(i);){let s=Xa(i),u=Xc(i);!u&&s.position==="fixed"&&(n=null),(o?!u&&!n:!u&&s.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||Yi(i)&&!u&&cA(e,i))?r=r.filter(c=>c!==i):n=s,i=vn(i)}return t.set(e,r),r}function tN(e){let{element:t,boundary:a,rootBoundary:r,strategy:n}=e,i=[...a==="clippingAncestors"?Tu(t)?[]:eN(t,this._c):[].concat(a),r],s=oA(t,i[0],n),u=s.top,l=s.right,c=s.bottom,d=s.left;for(let f=1;f<i.length;f++){let p=oA(t,i[f],n);u=ma(p.top,u),l=Hr(p.right,l),c=Hr(p.bottom,c),d=ma(p.left,d)}return{width:l-d,height:c-u,x:d,y:u}}function aN(e){let{width:t,height:a}=sA(e);return{width:t,height:a}}function rN(e,t,a){let r=Ur(t),n=Ar(t),o=a==="fixed",i=Uo(e,!0,o,t),s={scrollLeft:0,scrollTop:0},u=vr(0);function l(){u.x=ad(n)}if(r||!r&&!o)if((zo(t)!=="body"||Yi(n))&&(s=Ru(t)),r){let p=Uo(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&l();o&&!r&&n&&l();let c=n&&!r&&!o?lA(n,s):vr(0),d=i.left+s.scrollLeft-u.x-c.x,f=i.top+s.scrollTop-u.y-c.y;return{x:d,y:f,width:i.width,height:i.height}}function Ph(e){return Xa(e).position==="static"}function iA(e,t){if(!Ur(e)||Xa(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Ar(e)===a&&(a=a.ownerDocument.body),a}function dA(e,t){let a=ka(e);if(Tu(e))return a;if(!Ur(e)){let n=vn(e);for(;n&&!Vo(n);){if(Za(n)&&!Ph(n))return n;n=vn(n)}return a}let r=iA(e,t);for(;r&&tA(r)&&Ph(r);)r=iA(r,t);return r&&Vo(r)&&Ph(r)&&!Xc(r)?a:r||aA(e)||a}var nN=async function(e){let t=this.getOffsetParent||dA,a=this.getDimensions,r=await a(e.floating);return{reference:rN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oN(e){return Xa(e).direction==="rtl"}var fA={convertOffsetParentRelativeRectToViewportRelativeRect:Y3,getDocumentElement:Ar,getClippingRect:tN,getOffsetParent:dA,getElementRects:nN,getClientRects:J3,getDimensions:aN,getScale:Ji,isElement:Za,isRTL:oN};function pA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iN(e,t){let a=null,r,n=Ar(e);function o(){var s;clearTimeout(r),(s=a)==null||s.disconnect(),a=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),o();let l=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let g=Eu(d),m=Eu(n.clientWidth-(c+f)),x=Eu(n.clientHeight-(d+p)),v=Eu(c),y={rootMargin:-g+"px "+-m+"px "+-x+"px "+-v+"px",threshold:ma(0,Hr(1,u))||1},S=!0;function A(L){let C=L[0].intersectionRatio;if(C!==u){if(!S)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!pA(l,e.getBoundingClientRect())&&i(),S=!1}try{a=new IntersectionObserver(A,{...y,root:n.ownerDocument})}catch{a=new IntersectionObserver(A,y)}a.observe(e)}return i(!0),o}function Mh(e,t,a,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Nh(e),c=n||o?[...l?Ho(l):[],...t?Ho(t):[]]:[];c.forEach(v=>{n&&v.addEventListener("scroll",a,{passive:!0}),o&&v.addEventListener("resize",a)});let d=l&&s?iN(l,a):null,f=-1,p=null;i&&(p=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),a()}),l&&!u&&p.observe(l),t&&p.observe(t));let g,m=u?Uo(e):null;u&&x();function x(){let v=Uo(e);m&&!pA(m,v)&&a(),m=v,g=requestAnimationFrame(x)}return a(),()=>{var v;c.forEach(w=>{n&&w.removeEventListener("scroll",a),o&&w.removeEventListener("resize",a)}),d?.(),(v=p)==null||v.disconnect(),p=null,u&&cancelAnimationFrame(g)}}var mA=Yy;var hA=Jy,gA=qy,bA=Zy,xA=Ky,Dh=jy;var vA=$y,Oh=(e,t,a)=>{let r=new Map,n={platform:fA,...a},o={...n.platform,_c:r};return Wy(e,t,{...n,platform:o})};var sN=typeof document<"u",uN=function(){},rd=sN?gn:uN;function nd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!nd(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),a=n.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=a;r--!==0;){let o=n[r];if(!(o==="_owner"&&e.$$typeof)&&!nd(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function AA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yA(e,t){let a=AA(e);return Math.round(t*a)/a}function _h(e){let t=H(e);return rd(()=>{t.current=e}),t}function wA(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:n,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[c,d]=O({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=O(r);nd(f,r)||p(r);let[g,m]=O(null),[x,v]=O(null),w=me(q=>{q!==L.current&&(L.current=q,m(q))},[]),y=me(q=>{q!==C.current&&(C.current=q,v(q))},[]),S=o||g,A=i||x,L=H(null),C=H(null),I=H(c),D=u!=null,Z=_h(u),N=_h(n),V=_h(l),J=me(()=>{if(!L.current||!C.current)return;let q={placement:t,strategy:a,middleware:f};N.current&&(q.platform=N.current),Oh(L.current,C.current,q).then(pe=>{let W={...pe,isPositioned:V.current!==!1};ee.current&&!nd(I.current,W)&&(I.current=W,Pc(()=>{d(W)}))})},[f,t,a,N,V]);rd(()=>{l===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[l]);let ee=H(!1);rd(()=>(ee.current=!0,()=>{ee.current=!1}),[]),rd(()=>{if(S&&(L.current=S),A&&(C.current=A),S&&A){if(Z.current)return Z.current(S,A,J);J()}},[S,A,J,Z,D]);let T=_e(()=>({reference:L,floating:C,setReference:w,setFloating:y}),[w,y]),_=_e(()=>({reference:S,floating:A}),[S,A]),Q=_e(()=>{let q={position:a,left:0,top:0};if(!_.floating)return q;let pe=yA(_.floating,c.x),W=yA(_.floating,c.y);return s?{...q,transform:"translate("+pe+"px, "+W+"px)",...AA(_.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:pe,top:W}},[a,s,_.floating,c.x,c.y]);return _e(()=>({...c,update:J,refs:T,elements:_,floatingStyles:Q}),[c,J,T,_,Q])}var lN=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:r,padding:n}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?Dh({element:r.current,padding:n}).fn(a):{}:r?Dh({element:r,padding:n}).fn(a):{}}}},SA=(e,t)=>{let a=mA(e);return{name:a.name,fn:a.fn,options:[e,t]}},CA=(e,t)=>{let a=hA(e);return{name:a.name,fn:a.fn,options:[e,t]}},IA=(e,t)=>({fn:vA(e).fn,options:[e,t]}),kA=(e,t)=>{let a=gA(e);return{name:a.name,fn:a.fn,options:[e,t]}},LA=(e,t)=>{let a=bA(e);return{name:a.name,fn:a.fn,options:[e,t]}};var EA=(e,t)=>{let a=xA(e);return{name:a.name,fn:a.fn,options:[e,t]}};var TA=(e,t)=>{let a=lN(e);return{name:a.name,fn:a.fn,options:[e,t]}};var cN="Arrow",RA=X((e,t)=>{let{children:a,width:r=10,height:n=5,...o}=e;return E(Ae.svg,{...o,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:E("polygon",{points:"0,0 30,0 15,10"})})});RA.displayName=cN;var PA=RA;var Bh="Popper",[NA,Fh]=Ca(Bh),[fN,MA]=NA(Bh),DA=e=>{let{__scopePopper:t,children:a}=e,[r,n]=O(null),[o,i]=O(void 0);return E(fN,{scope:t,anchor:r,onAnchorChange:n,placementState:o,setPlacementState:i,children:a})};DA.displayName=Bh;var OA="PopperAnchor",_A=X((e,t)=>{let{__scopePopper:a,virtualRef:r,...n}=e,o=MA(OA,a),i=H(null),s=o.onAnchorChange,u=me(g=>{i.current=g,g&&s(g)},[s]),l=Be(t,u),c=H(null);K(()=>{if(!r)return;let g=c.current;c.current=r.current,g!==c.current&&s(c.current)});let d=o.placementState&&zh(o.placementState),f=d?.[0],p=d?.[1];return r?null:E(Ae.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...n,ref:l})});_A.displayName=OA;var Hh="PopperContent",[pN,mN]=NA(Hh),BA=X((e,t)=>{let{__scopePopper:a,side:r="bottom",sideOffset:n=0,align:o="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=e,x=MA(Hh,a),[v,w]=O(null),y=Be(t,w),[S,A]=O(null),L=qc(S),C=L?.width??0,I=L?.height??0,D=r+(o!=="center"?"-"+o:""),Z=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},N=Array.isArray(l)?l:[l],V=N.length>0,J={padding:Z,boundary:N.filter(gN),altBoundary:V},{refs:ee,floatingStyles:T,placement:_,isPositioned:Q,middlewareData:q}=wA({strategy:"fixed",placement:D,whileElementsMounted:(...ge)=>Mh(...ge,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[SA({mainAxis:n+I,alignmentAxis:i}),u&&CA({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?IA():void 0,...J}),u&&kA({...J}),LA({...J,apply:({elements:ge,rects:Le,availableWidth:Re,availableHeight:je})=>{let{width:Ye,height:ra}=Le.reference,St=ge.floating.style;St.setProperty("--radix-popper-available-width",`${Re}px`),St.setProperty("--radix-popper-available-height",`${je}px`),St.setProperty("--radix-popper-anchor-width",`${Ye}px`),St.setProperty("--radix-popper-anchor-height",`${ra}px`)}}),S&&TA({element:S,padding:s}),bN({arrowWidth:C,arrowHeight:I}),f&&EA({strategy:"referenceHidden",...J,boundary:V?J.boundary:void 0})]}),pe=x.setPlacementState;rt(()=>(pe(_),()=>{pe(void 0)}),[_,pe]);let[W,M]=zh(_),j=pa(g);rt(()=>{Q&&j?.()},[Q,j]);let ce=q.arrow?.x,Me=q.arrow?.y,Se=q.arrow?.centerOffset!==0,[B,F]=O();return rt(()=>{v&&F(window.getComputedStyle(v).zIndex)},[v]),E("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:Q?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E(pN,{scope:a,placedSide:W,placedAlign:M,onArrowChange:A,arrowX:ce,arrowY:Me,shouldHideArrow:Se,children:E(Ae.div,{"data-side":W,"data-align":M,...m,ref:y,style:{...m.style,animation:Q?void 0:"none"}})})})});BA.displayName=Hh;var FA="PopperArrow",hN={top:"bottom",right:"left",bottom:"top",left:"right"},HA=X(function(t,a){let{__scopePopper:r,...n}=t,o=mN(FA,r),i=hN[o.placedSide];return E("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:E(PA,{...n,ref:a,style:{...n.style,display:"block"}})})});HA.displayName=FA;function gN(e){return e!==null}var bN=e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:r,middlewareData:n}=t,i=n.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,c]=zh(a),d={start:"0%",center:"50%",end:"100%"}[c],f=(n.arrow?.x??0)+s/2,p=(n.arrow?.y??0)+u/2,g="",m="";return l==="bottom"?(g=i?d:`${f}px`,m=`${-u}px`):l==="top"?(g=i?d:`${f}px`,m=`${r.floating.height+u}px`):l==="right"?(g=`${-u}px`,m=i?d:`${p}px`):l==="left"&&(g=`${r.floating.width+u}px`,m=i?d:`${p}px`),{data:{x:g,y:m}}}});function zh(e){let[t,a="center"]=e.split("-");return[t,a]}var zA=DA,VA=_A,UA=BA,GA=HA;var Vh=!1;function vN(){let[e,t]=O(Vh);return K(()=>{Vh||(Vh=!0,t(!0))},[]),e}var WA=ve[" useSyncExternalStore ".trim().toString()];function yN(){return()=>{}}function AN(){return WA(yN,()=>!0,()=>!1)}var jA=typeof WA=="function"?AN:vN;var Uh="rovingFocusGroup.onEntryFocus",wN={bubbles:!1,cancelable:!0},Pu="RovingFocusGroup",[Gh,qA,SN]=Gi(Pu),[CN,Wh]=Ca(Pu,[SN]),[IN,kN]=CN(Pu),KA=X((e,t)=>E(Gh.Provider,{scope:e.__scopeRovingFocusGroup,children:E(Gh.Slot,{scope:e.__scopeRovingFocusGroup,children:E(LN,{...e,ref:t})})}));KA.displayName=Pu;var LN=X((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:r,loop:n=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...d}=e,f=H(null),p=Be(t,f),g=Kn(o),[m,x]=gr({prop:i,defaultProp:s??null,onChange:u,caller:Pu}),[v,w]=O(!1),y=pa(l),S=qA(a),A=H(!1),[L,C]=O(0);return K(()=>{let I=f.current;if(I)return I.addEventListener(Uh,y),()=>I.removeEventListener(Uh,y)},[y]),E(IN,{scope:a,orientation:r,dir:g,loop:n,currentTabStopId:m,onItemFocus:me(I=>x(I),[x]),onItemShiftTab:me(()=>w(!0),[]),onFocusableItemAdd:me(()=>C(I=>I+1),[]),onFocusableItemRemove:me(()=>C(I=>I-1),[]),children:E(Ae.div,{tabIndex:v||L===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Ie(e.onMouseDown,()=>{A.current=!0}),onFocus:Ie(e.onFocus,I=>{let D=!A.current;if(I.target===I.currentTarget&&D&&!v){let Z=new CustomEvent(Uh,wN);if(I.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){let N=S().filter(_=>_.focusable),V=N.find(_=>_.active),J=N.find(_=>_.id===m),T=[V,J,...N].filter(Boolean).map(_=>_.ref.current);JA(T,c)}}A.current=!1}),onBlur:Ie(e.onBlur,()=>w(!1))})})}),QA="RovingFocusGroupItem",YA=X((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:r=!0,active:n=!1,tabStopId:o,children:i,...s}=e,u=$a(),l=o||u,c=kN(QA,a),d=c.currentTabStopId===l,f=qA(a),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:m}=c,x=jA();return rt(()=>{if(!(!x||!r))return p(),()=>g()},[x,r,p,g]),K(()=>{if(!(x||!r))return p(),()=>g()},[x,r,p,g]),E(Gh.ItemSlot,{scope:a,id:l,focusable:r,active:n,children:E(Ae.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:Ie(e.onMouseDown,v=>{r?c.onItemFocus(l):v.preventDefault()}),onFocus:Ie(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:Ie(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;let w=RN(v,c.orientation,c.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let S=f().filter(A=>A.focusable).map(A=>A.ref.current);if(w==="last")S.reverse();else if(w==="prev"||w==="next"){w==="prev"&&S.reverse();let A=S.indexOf(v.currentTarget);S=c.loop?PN(S,A+1):S.slice(A+1)}setTimeout(()=>JA(S))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:m!=null}):i})})});YA.displayName=QA;var EN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TN(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function RN(e,t,a){let r=TN(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return EN[r]}function JA(e,t=!1){let a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}function PN(e,t){return e.map((a,r)=>e[(t+r)%e.length])}var $A=KA,ZA=YA;function $i(e,[t,a]){return Math.min(a,Math.max(t,e))}var ha={};_r(ha,{Arrow:()=>Lw,Content:()=>sw,Group:()=>mw,Icon:()=>nw,Item:()=>xw,ItemIndicator:()=>Aw,ItemText:()=>vw,Label:()=>gw,Portal:()=>iw,Root:()=>XA,ScrollDownButton:()=>Sw,ScrollUpButton:()=>ww,Select:()=>XA,SelectArrow:()=>Lw,SelectContent:()=>sw,SelectGroup:()=>mw,SelectIcon:()=>nw,SelectItem:()=>xw,SelectItemIndicator:()=>Aw,SelectItemText:()=>vw,SelectLabel:()=>gw,SelectPortal:()=>iw,SelectScrollDownButton:()=>Sw,SelectScrollUpButton:()=>ww,SelectSeparator:()=>Iw,SelectTrigger:()=>tw,SelectValue:()=>rw,SelectViewport:()=>fw,Separator:()=>Iw,Trigger:()=>tw,Value:()=>rw,Viewport:()=>fw,createSelectScope:()=>_N,unstable_BubbleInput:()=>$h,unstable_Provider:()=>Yh,unstable_SelectBubbleInput:()=>$h,unstable_SelectProvider:()=>Yh});var MN=[" ","Enter","ArrowUp","ArrowDown"],DN=[" ","Enter"],Go="Select",[id,sd,ON]=Gi(Go),[Wo,_N]=Ca(Go,[ON,Fh]),ud=Fh(),[BN,Jn]=Wo(Go),[FN,HN]=Wo(Go),zN="SelectProvider";function Yh(e){let{__scopeSelect:t,children:a,open:r,defaultOpen:n,onOpenChange:o,value:i,defaultValue:s,onValueChange:u,dir:l,name:c,autoComplete:d,disabled:f,required:p,form:g,internal_do_not_use_render:m}=e,x=ud(t),[v,w]=O(null),[y,S]=O(null),[A,L]=O(!1),C=Kn(l),[I,D]=gr({prop:r,defaultProp:n??!1,onChange:o,caller:Go}),[Z,N]=gr({prop:i,defaultProp:s,onChange:u,caller:Go}),V=H(null),J=H(Z);K(()=>{let j=g?v?.ownerDocument.getElementById(g):v?.form;if(j instanceof HTMLFormElement){let ce=()=>N(J.current);return j.addEventListener("reset",ce),()=>j.removeEventListener("reset",ce)}},[g,v,N]);let ee=v?!!g||!!v.closest("form"):!0,[T,_]=O(new Set),Q=$a(),q=Array.from(T).map(j=>j.props.value).join(";"),pe=me(j=>{_(ce=>new Set(ce).add(j))},[]),W=me(j=>{_(ce=>{let Me=new Set(ce);return Me.delete(j),Me})},[]),M={required:p,trigger:v,onTriggerChange:w,valueNode:y,onValueNodeChange:S,valueNodeHasChildren:A,onValueNodeHasChildrenChange:L,contentId:Q,value:Z,onValueChange:N,open:I,onOpenChange:D,dir:C,triggerPointerDownPosRef:V,disabled:f,name:c,autoComplete:d,form:g,nativeOptions:T,nativeSelectKey:q,isFormControl:ee};return E(zA,{...x,children:E(BN,{scope:t,...M,children:E(id.Provider,{scope:t,children:E(FN,{scope:t,onNativeOptionAdd:pe,onNativeOptionRemove:W,children:XN(m)?m(M):a})})})})}Yh.displayName=zN;var XA=e=>{let{__scopeSelect:t,children:a,...r}=e;return E(Yh,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:n})=>na(jn,{children:[a,n?E($h,{__scopeSelect:t}):null]})})};XA.displayName=Go;var ew="SelectTrigger",tw=X((e,t)=>{let{__scopeSelect:a,disabled:r=!1,...n}=e,o=ud(a),i=Jn(ew,a),s=i.disabled||r,u=Be(t,i.onTriggerChange),l=sd(a),c=H("touch"),[d,f,p]=Tw(m=>{let x=l().filter(y=>!y.disabled),v=x.find(y=>y.value===i.value),w=Rw(x,m,v);w!==void 0&&i.onValueChange(w.value)}),g=m=>{s||(i.onOpenChange(!0),p()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return E(VA,{asChild:!0,...o,children:E(Ae.button,{type:"button",role:"combobox","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":ld(i.value)?"":void 0,...n,ref:u,onClick:Ie(n.onClick,m=>{m.currentTarget.focus(),c.current!=="mouse"&&g(m)}),onPointerDown:Ie(n.onPointerDown,m=>{c.current=m.pointerType;let x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:Ie(n.onKeyDown,m=>{let x=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(x&&m.key===" ")&&MN.includes(m.key)&&(g(),m.preventDefault())})})})});tw.displayName=ew;var aw="SelectValue",rw=X((e,t)=>{let{__scopeSelect:a,className:r,style:n,children:o,placeholder:i="",...s}=e,u=Jn(aw,a),{onValueNodeHasChildrenChange:l}=u,c=o!==void 0,d=Be(t,u.onValueNodeChange);rt(()=>{l(c)},[l,c]);let f=ld(u.value);return E(Ae.span,{...s,asChild:f?!1:s.asChild,ref:d,style:{pointerEvents:"none"},children:E(Ha,{children:f?i:o},f?"placeholder":"value")})});rw.displayName=aw;var VN="SelectIcon",nw=X((e,t)=>{let{__scopeSelect:a,children:r,...n}=e;return E(Ae.span,{"aria-hidden":!0,...n,ref:t,children:r||"\u25BC"})});nw.displayName=VN;var ow="SelectPortal",[UN,GN]=Wo(ow,{forceMount:void 0}),iw=e=>{let{__scopeSelect:t,forceMount:a,...r}=e;return E(UN,{scope:e.__scopeSelect,forceMount:a,children:E(Au,{asChild:!0,...r})})};iw.displayName=ow;var Yn="SelectContent",sw=X((e,t)=>{let a=GN(Yn,e.__scopeSelect),{forceMount:r=a.forceMount,...n}=e,o=Jn(Yn,e.__scopeSelect),[i,s]=O();return rt(()=>{s(new DocumentFragment)},[]),E(xn,{present:r||o.open,children:({present:u})=>u?E(cw,{...n,ref:t}):E(uw,{...n,fragment:i})})});sw.displayName=Yn;var uw=X((e,t)=>{let{__scopeSelect:a,children:r,fragment:n}=e;return n?gu(E(lw,{scope:a,children:E(id.Slot,{scope:a,children:E("div",{ref:t,children:r})})}),n):null});uw.displayName="SelectContentFragment";var wr=10,[lw,$n]=Wo(Yn),WN="SelectContentImpl",jN=hr("SelectContent.RemoveScroll"),cw=X((e,t)=>{let{__scopeSelect:a}=e,{position:r="item-aligned",onCloseAutoFocus:n,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:x,...v}=e,w=Jn(Yn,a),[y,S]=O(null),[A,L]=O(null),C=Be(t,S),[I,D]=O(null),[Z,N]=O(null),V=sd(a),[J,ee]=O(!1),T=H(!1);K(()=>{if(y)return Uc(y)},[y]),Oc();let _=me(F=>{let[ge,...Le]=V().map(Ye=>Ye.ref.current),[Re]=Le.slice(-1),je=document.activeElement;for(let Ye of F)if(Ye===je||(Ye?.scrollIntoView({block:"nearest"}),Ye===ge&&A&&(A.scrollTop=0),Ye===Re&&A&&(A.scrollTop=A.scrollHeight),Ye?.focus(),document.activeElement!==je))return},[V,A]),Q=me(()=>_([I,y]),[_,I,y]);K(()=>{J&&Q()},[J,Q]);let{onOpenChange:q,triggerPointerDownPosRef:pe}=w;K(()=>{if(y){let F={x:0,y:0},ge=Re=>{F={x:Math.abs(Math.round(Re.pageX)-(pe.current?.x??0)),y:Math.abs(Math.round(Re.pageY)-(pe.current?.y??0))}},Le=Re=>{F.x<=10&&F.y<=10?Re.preventDefault():Re.composedPath().includes(y)||q(!1),document.removeEventListener("pointermove",ge),pe.current=null};return pe.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",Le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",Le,{capture:!0})}}},[y,q,pe]),K(()=>{let F=()=>q(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[q]);let[W,M]=Tw(F=>{let ge=V().filter(je=>!je.disabled),Le=ge.find(je=>je.ref.current===document.activeElement),Re=Rw(ge,F,Le);Re&&setTimeout(()=>Re.ref.current?.focus())}),j=me((F,ge,Le)=>{let Re=!T.current&&!Le;(w.value!==void 0&&w.value===ge||Re)&&(D(F),Re&&(T.current=!0))},[w.value]),ce=me(()=>y?.focus(),[y]),Me=me((F,ge,Le)=>{let Re=!T.current&&!Le;(w.value!==void 0&&w.value===ge||Re)&&N(F)},[w.value]),Se=r==="popper"?jh:dw,B=Se===jh?{side:s,sideOffset:u,align:l,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:x}:{};return E(lw,{scope:a,content:y,viewport:A,onViewportChange:L,itemRefCallback:j,selectedItem:I,onItemLeave:ce,itemTextRefCallback:Me,focusSelectedItem:Q,selectedItemText:Z,position:r,isPositioned:J,searchRef:W,children:E(Iu,{as:jN,allowPinchZoom:!0,children:E(yu,{asChild:!0,trapped:w.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:Ie(n,F=>{w.trigger?.focus({preventScroll:!0}),F.preventDefault()}),children:E(vu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:E(Se,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:F=>F.preventDefault(),...v,...B,onPlaced:()=>ee(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Ie(v.onKeyDown,F=>{let ge=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!ge&&F.key.length===1&&M(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let Re=V().filter(je=>!je.disabled).map(je=>je.ref.current);if(["ArrowUp","End"].includes(F.key)&&(Re=Re.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){let je=F.target,Ye=Re.indexOf(je);Re=Re.slice(Ye+1)}setTimeout(()=>_(Re)),F.preventDefault()}})})})})})})});cw.displayName=WN;var qN="SelectItemAlignedPosition",dw=X((e,t)=>{let{__scopeSelect:a,onPlaced:r,...n}=e,o=Jn(Yn,a),i=$n(Yn,a),[s,u]=O(null),[l,c]=O(null),d=Be(t,c),f=sd(a),p=H(!1),g=H(!0),{viewport:m,selectedItem:x,selectedItemText:v,focusSelectedItem:w}=i,y=me(()=>{if(o.trigger&&o.valueNode&&s&&l&&m&&x&&v){let C=o.trigger.getBoundingClientRect(),I=l.getBoundingClientRect(),D=o.valueNode.getBoundingClientRect(),Z=v.getBoundingClientRect();if(o.dir!=="rtl"){let je=Z.left-I.left,Ye=D.left-je,ra=C.left-Ye,St=C.width+ra,Eo=Math.max(St,I.width),To=window.innerWidth-wr,Fi=$i(Ye,[wr,Math.max(wr,To-Eo)]);s.style.minWidth=St+"px",s.style.left=Fi+"px"}else{let je=I.right-Z.right,Ye=window.innerWidth-D.right-je,ra=window.innerWidth-C.right-Ye,St=C.width+ra,Eo=Math.max(St,I.width),To=window.innerWidth-wr,Fi=$i(Ye,[wr,Math.max(wr,To-Eo)]);s.style.minWidth=St+"px",s.style.right=Fi+"px"}let N=f(),V=window.innerHeight-wr*2,J=m.scrollHeight,ee=window.getComputedStyle(l),T=parseInt(ee.borderTopWidth,10),_=parseInt(ee.paddingTop,10),Q=parseInt(ee.borderBottomWidth,10),q=parseInt(ee.paddingBottom,10),pe=T+_+J+q+Q,W=Math.min(x.offsetHeight*5,pe),M=window.getComputedStyle(m),j=parseInt(M.paddingTop,10),ce=parseInt(M.paddingBottom,10),Me=C.top+C.height/2-wr,Se=V-Me,B=x.offsetHeight/2,F=x.offsetTop+B,ge=T+_+F,Le=pe-ge;if(ge<=Me){let je=N.length>0&&x===N[N.length-1].ref.current;s.style.bottom="0px";let Ye=l.clientHeight-m.offsetTop-m.offsetHeight,ra=Math.max(Se,B+(je?ce:0)+Ye+Q),St=ge+ra;s.style.height=St+"px"}else{let je=N.length>0&&x===N[0].ref.current;s.style.top="0px";let ra=Math.max(Me,T+m.offsetTop+(je?j:0)+B)+Le;s.style.height=ra+"px",m.scrollTop=ge-Me+m.offsetTop}s.style.margin=`${wr}px 0`,s.style.minHeight=W+"px",s.style.maxHeight=V+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,o.trigger,o.valueNode,s,l,m,x,v,o.dir,r]);rt(()=>y(),[y]);let[S,A]=O();rt(()=>{l&&A(window.getComputedStyle(l).zIndex)},[l]);let L=me(C=>{C&&g.current===!0&&(y(),w?.(),g.current=!1)},[y,w]);return E(QN,{scope:a,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:L,children:E("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:E(Ae.div,{...n,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...n.style}})})})});dw.displayName=qN;var KN="SelectPopperPosition",jh=X((e,t)=>{let{__scopeSelect:a,align:r="start",collisionPadding:n=wr,...o}=e,i=ud(a);return E(UA,{...i,...o,ref:t,align:r,collisionPadding:n,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});jh.displayName=KN;var[QN,Jh]=Wo(Yn,{}),qh="SelectViewport",fw=X((e,t)=>{let{__scopeSelect:a,nonce:r,...n}=e,o=$n(qh,a),i=Jh(qh,a),s=Be(t,o.onViewportChange),u=H(0);return na(jn,{children:[E("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),E(id.Slot,{scope:a,children:E(Ae.div,{"data-radix-select-viewport":"",role:"presentation",...n,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...n.style},onScroll:Ie(n.onScroll,l=>{let c=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=i;if(f?.current&&d){let p=Math.abs(u.current-c.scrollTop);if(p>0){let g=window.innerHeight-wr*2,m=parseFloat(d.style.minHeight),x=parseFloat(d.style.height),v=Math.max(m,x);if(v<g){let w=v+p,y=Math.min(g,w),S=w-y;d.style.height=y+"px",d.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}u.current=c.scrollTop})})})]})});fw.displayName=qh;var pw="SelectGroup",[YN,JN]=Wo(pw),mw=X((e,t)=>{let{__scopeSelect:a,...r}=e,n=$a();return E(YN,{scope:a,id:n,children:E(Ae.div,{role:"group","aria-labelledby":n,...r,ref:t})})});mw.displayName=pw;var hw="SelectLabel",gw=X((e,t)=>{let{__scopeSelect:a,...r}=e,n=JN(hw,a);return E(Ae.div,{id:n.id,...r,ref:t})});gw.displayName=hw;var od="SelectItem",[$N,bw]=Wo(od),xw=X((e,t)=>{let{__scopeSelect:a,value:r,disabled:n=!1,textValue:o,...i}=e,s=Jn(od,a),u=$n(od,a),l=s.value===r,[c,d]=O(o??""),[f,p]=O(!1),g=pa(y=>u.itemRefCallback?.(y,r,n)),m=Be(t,g),x=$a(),v=H("touch"),w=()=>{n||(s.onValueChange(r),s.onOpenChange(!1))};return E($N,{scope:a,value:r,disabled:n,textId:x,isSelected:l,onItemTextChange:me(y=>{d(S=>S||(y?.textContent??"").trim())},[]),children:E(id.ItemSlot,{scope:a,value:r,disabled:n,textValue:c,children:E(Ae.div,{role:"option","aria-labelledby":x,"data-highlighted":f?"":void 0,"aria-selected":l&&f,"data-state":l?"checked":"unchecked","aria-disabled":n||void 0,"data-disabled":n?"":void 0,tabIndex:n?void 0:-1,...i,ref:m,onFocus:Ie(i.onFocus,()=>p(!0)),onBlur:Ie(i.onBlur,()=>p(!1)),onClick:Ie(i.onClick,()=>{v.current!=="mouse"&&w()}),onPointerUp:Ie(i.onPointerUp,()=>{v.current==="mouse"&&w()}),onPointerDown:Ie(i.onPointerDown,y=>{v.current=y.pointerType}),onPointerMove:Ie(i.onPointerMove,y=>{v.current=y.pointerType,n?u.onItemLeave?.():v.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ie(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:Ie(i.onKeyDown,y=>{n||y.target!==y.currentTarget||u.searchRef?.current!==""&&y.key===" "||(DN.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});xw.displayName=od;var Nu="SelectItemText",vw=X((e,t)=>{let{__scopeSelect:a,className:r,style:n,...o}=e,i=Jn(Nu,a),s=$n(Nu,a),u=bw(Nu,a),l=HN(Nu,a),[c,d]=O(null),f=pa(w=>s.itemTextRefCallback?.(w,u.value,u.disabled)),p=Be(t,d,u.onItemTextChange,f),g=c?.textContent,m=_e(()=>E("option",{value:u.value,disabled:u.disabled,children:g},u.value),[u.disabled,u.value,g]),{onNativeOptionAdd:x,onNativeOptionRemove:v}=l;return rt(()=>(x(m),()=>v(m)),[x,v,m]),na(jn,{children:[E(Ae.span,{id:u.textId,...o,ref:p}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren&&!ld(i.value)?gu(o.children,i.valueNode):null]})});vw.displayName=Nu;var yw="SelectItemIndicator",Aw=X((e,t)=>{let{__scopeSelect:a,...r}=e;return bw(yw,a).isSelected?E(Ae.span,{"aria-hidden":!0,...r,ref:t}):null});Aw.displayName=yw;var Kh="SelectScrollUpButton",ww=X((e,t)=>{let a=$n(Kh,e.__scopeSelect),r=Jh(Kh,e.__scopeSelect),[n,o]=O(!1),i=Be(t,r.onScrollButtonChange);return rt(()=>{if(a.viewport&&a.isPositioned){let u=function(){let c=l.scrollTop>0;o(c)};var s=u;let l=a.viewport;return u(),l.addEventListener("scroll",u),()=>l.removeEventListener("scroll",u)}},[a.viewport,a.isPositioned]),n?E(Cw,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:u}=a;s&&u&&(s.scrollTop=s.scrollTop-u.offsetHeight)}}):null});ww.displayName=Kh;var Qh="SelectScrollDownButton",Sw=X((e,t)=>{let a=$n(Qh,e.__scopeSelect),r=Jh(Qh,e.__scopeSelect),[n,o]=O(!1),i=Be(t,r.onScrollButtonChange);return rt(()=>{if(a.viewport&&a.isPositioned){let u=function(){let c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;o(d)};var s=u;let l=a.viewport;return u(),l.addEventListener("scroll",u),()=>l.removeEventListener("scroll",u)}},[a.viewport,a.isPositioned]),n?E(Cw,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:u}=a;s&&u&&(s.scrollTop=s.scrollTop+u.offsetHeight)}}):null});Sw.displayName=Qh;var Cw=X((e,t)=>{let{__scopeSelect:a,onAutoScroll:r,...n}=e,o=$n("SelectScrollButton",a),i=H(null),s=sd(a),u=me(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return K(()=>()=>u(),[u]),rt(()=>{s().find(c=>c.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),E(Ae.div,{"aria-hidden":!0,...n,ref:t,style:{flexShrink:0,...n.style},onPointerDown:Ie(n.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Ie(n.onPointerMove,()=>{o.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Ie(n.onPointerLeave,()=>{u()})})}),ZN="SelectSeparator",Iw=X((e,t)=>{let{__scopeSelect:a,...r}=e;return E(Ae.div,{"aria-hidden":!0,...r,ref:t})});Iw.displayName=ZN;var kw="SelectArrow",Lw=X((e,t)=>{let{__scopeSelect:a,...r}=e,n=ud(a);return $n(kw,a).position==="popper"?E(GA,{...n,...r,ref:t}):null});Lw.displayName=kw;var Ew="SelectBubbleInput",$h=X(({__scopeSelect:e,...t},a)=>{let r=Jn(Ew,e),{value:n,onValueChange:o,required:i,disabled:s,name:u,autoComplete:l,form:c}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=H(null),g=Be(a,p),m=n??"",x=jc(m),v=Array.from(d).some(w=>(w.props.value??"")==="");return K(()=>{let w=p.current;if(!w)return;let y=window.HTMLSelectElement.prototype,A=Object.getOwnPropertyDescriptor(y,"value").set;if(x!==m&&A){let L=new Event("change",{bubbles:!0});A.call(w,m),w.dispatchEvent(L)}},[x,m]),na(Ae.select,{"aria-hidden":!0,required:i,tabIndex:-1,name:u,autoComplete:l,disabled:s,form:c,onChange:w=>o(w.target.value),...t,style:{...uh,...t.style},ref:g,defaultValue:m,children:[ld(n)&&!v?E("option",{value:""}):null,Array.from(d)]},f)});$h.displayName=Ew;function XN(e){return typeof e=="function"}function ld(e){return e===""||e===void 0}function Tw(e){let t=pa(e),a=H(""),r=H(0),n=me(i=>{let s=a.current+i;t(s),(function u(l){a.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(s)},[t]),o=me(()=>{a.current="",window.clearTimeout(r.current)},[]);return K(()=>()=>window.clearTimeout(r.current),[]),[a,n,o]}function Rw(e,t,a){let n=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,o=a?e.indexOf(a):-1,i=eM(e,Math.max(o,0));n.length===1&&(i=i.filter(l=>l!==a));let u=i.find(l=>l.textValue.toLowerCase().startsWith(n.toLowerCase()));return u!==a?u:void 0}function eM(e,t){return e.map((a,r)=>e[(t+r)%e.length])}var jo={};_r(jo,{Range:()=>zw,Root:()=>Dw,Slider:()=>Dw,SliderRange:()=>zw,SliderThumb:()=>Ww,SliderTrack:()=>Hw,Thumb:()=>Ww,Track:()=>Hw,createSliderScope:()=>rM,unstable_BubbleInput:()=>rg,unstable_SliderBubbleInput:()=>rg,unstable_SliderThumbProvider:()=>tg,unstable_SliderThumbTrigger:()=>ag,unstable_ThumbProvider:()=>tg,unstable_ThumbTrigger:()=>ag});var Pw=["PageUp","PageDown"],Nw=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Mw={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Zi="Slider",[Zh,tM,aM]=Gi(Zi),[eg,rM]=Ca(Zi,[aM]),[nM,Mu]=eg(Zi),Dw=X((e,t)=>{let{name:a,min:r=0,max:n=100,step:o=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:u=0,defaultValue:l=[r],value:c,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:g,...m}=e,x=H(new Set),v=H(0),w=H(!1),S=i==="horizontal"?oM:iM,[A,L]=O(null),C=Be(t,L),[I=[],D]=gr({prop:c,defaultProp:l,onChange:_=>{[...x.current][v.current]?.focus({preventScroll:!0,focusVisible:w.current}),w.current=!1,d(_)}}),Z=H(I),N=H(I);K(()=>{let _=g?A?.ownerDocument.getElementById(g):A?.closest("form");if(_ instanceof HTMLFormElement){let Q=()=>D(N.current);return _.addEventListener("reset",Q),()=>_.removeEventListener("reset",Q)}},[A,g,D]);function V(_){let Q=cM(I,_);T(_,Q)}function J(_){T(_,v.current)}function ee(){let _=Z.current[v.current];I[v.current]!==_&&f(I)}function T(_,Q,{commit:q}={commit:!1}){let pe=Kw(o),W=dd(Math.round((_-r)/o)*o+r,pe),M=$i(W,[r,n]);D((j=[])=>{let ce=uM(j,M,Q);if(pM(ce,u*o)){v.current=ce.indexOf(M);let Me=String(ce)!==String(j);return Me&&q&&f(ce),Me?ce:j}else return j})}return E(nM,{scope:e.__scopeSlider,name:a,disabled:s,min:r,max:n,valueIndexToChangeRef:v,thumbs:x.current,values:I,orientation:i,form:g,children:E(Zh.Provider,{scope:e.__scopeSlider,children:E(Zh.Slot,{scope:e.__scopeSlider,children:E(S,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:C,onPointerDown:Ie(m.onPointerDown,()=>{s||(Z.current=I,w.current=!1)}),min:r,max:n,inverted:p,onSlideStart:s?void 0:V,onSlideMove:s?void 0:J,onSlideEnd:s?void 0:ee,onHomeKeyDown:()=>{s||(w.current=!0,T(r,0,{commit:!0}))},onEndKeyDown:()=>{s||(w.current=!0,T(n,I.length-1,{commit:!0}))},onStepKeyDown:({event:_,direction:Q})=>{if(!s){w.current=!0;let W=Pw.includes(_.key)||_.shiftKey&&Nw.includes(_.key)?10:1,M=v.current,j=I[M],ce=mM(j,{min:r,step:o,direction:Q,multiplier:W});T(ce,M,{commit:!0})}}})})})})});Dw.displayName=Zi;var[Ow,_w]=eg(Zi,{startEdge:"left",endEdge:"right",size:"width",direction:1}),oM=X((e,t)=>{let{min:a,max:r,dir:n,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:u,onStepKeyDown:l,...c}=e,[d,f]=O(null),p=Be(t,f),g=H(void 0),m=Kn(n),x=m==="ltr",v=x&&!o||!x&&o;function w(y){let S=g.current||d.getBoundingClientRect(),A=[0,S.width],C=ng(A,v?[a,r]:[r,a]);return g.current=S,C(y-S.left)}return E(Ow,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:E(Bw,{dir:m,"data-orientation":"horizontal",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{let S=w(y.clientX);i?.(S)},onSlideMove:y=>{let S=w(y.clientX);s?.(S)},onSlideEnd:()=>{g.current=void 0,u?.()},onStepKeyDown:y=>{let A=Mw[v?"from-left":"from-right"].includes(y.key);l?.({event:y,direction:A?-1:1})}})})}),iM=X((e,t)=>{let{min:a,max:r,inverted:n,onSlideStart:o,onSlideMove:i,onSlideEnd:s,onStepKeyDown:u,...l}=e,c=H(null),d=Be(t,c),f=H(void 0),p=!n;function g(m){let x=f.current||c.current.getBoundingClientRect(),v=[0,x.height],y=ng(v,p?[r,a]:[a,r]);return f.current=x,y(m-x.top)}return E(Ow,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:E(Bw,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{let x=g(m.clientY);o?.(x)},onSlideMove:m=>{let x=g(m.clientY);i?.(x)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:m=>{let v=Mw[p?"from-bottom":"from-top"].includes(m.key);u?.({event:m,direction:v?-1:1})}})})}),Bw=X((e,t)=>{let{__scopeSlider:a,onSlideStart:r,onSlideMove:n,onSlideEnd:o,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:u,...l}=e,c=Mu(Zi,a);return E(Ae.span,{...l,ref:t,onKeyDown:Ie(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):Pw.concat(Nw).includes(d.key)&&(u(d),d.preventDefault())}),onPointerDown:Ie(e.onPointerDown,d=>{let f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),c.thumbs.has(f)?f.focus({preventScroll:!0,focusVisible:!1}):r(d)}),onPointerMove:Ie(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&n(d)}),onPointerUp:Ie(e.onPointerUp,d=>{let f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),o(d))})})}),Fw="SliderTrack",Hw=X((e,t)=>{let{__scopeSlider:a,...r}=e,n=Mu(Fw,a);return E(Ae.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...r,ref:t})});Hw.displayName=Fw;var Xh="SliderRange",zw=X((e,t)=>{let{__scopeSlider:a,...r}=e,n=Mu(Xh,a),o=_w(Xh,a),i=H(null),s=Be(t,i),u=n.values.length,l=n.values.map(f=>qw(f,n.min,n.max)),c=u>1?Math.min(...l):0,d=100-Math.max(...l);return E(Ae.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...r,ref:s,style:{...e.style,[o.startEdge]:c+"%",[o.endEdge]:d+"%"}})});zw.displayName=Xh;var Vw="SliderThumb",[sM,Uw]=eg(Vw),Gw="SliderThumbProvider";function tg(e){let{__scopeSlider:t,name:a,children:r,internal_do_not_use_render:n}=e,o=Mu(Gw,t),i=tM(t),[s,u]=O(null),l=_e(()=>s?i().findIndex(x=>x.ref.current===s):-1,[i,s]),c=qc(s),d=s?!!o.form||!!s.closest("form"):!0,f=o.values[l],p=a??(o.name?o.name+(o.values.length>1?"[]":""):void 0),g=f===void 0?0:qw(f,o.min,o.max);K(()=>{if(s)return o.thumbs.add(s),()=>{o.thumbs.delete(s)}},[s,o.thumbs]);let m={value:f,name:p,form:o.form,isFormControl:d,index:l,thumb:s,onThumbChange:u,percent:g,size:c};return E(sM,{scope:t,...m,children:hM(n)?n(m):r})}tg.displayName=Gw;var cd="SliderThumbTrigger",ag=X((e,t)=>{let{__scopeSlider:a,...r}=e,n=Mu(cd,a),o=_w(cd,a),{index:i,value:s,percent:u,size:l,onThumbChange:c}=Uw(cd,a),d=Be(t,c),f=lM(i,n.values.length),p=l?.[o.size],g=p?dM(p,u,o.direction):0;return E("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[o.startEdge]:`calc(${u}% + ${g}px)`},children:E(Zh.ItemSlot,{scope:a,children:E(Ae.span,{role:"slider","aria-label":e["aria-label"]||f,"aria-valuemin":n.min,"aria-valuenow":s,"aria-valuemax":n.max,"aria-orientation":n.orientation,"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,tabIndex:n.disabled?void 0:0,...r,ref:d,style:s===void 0?{display:"none"}:e.style,onFocus:Ie(e.onFocus,()=>{n.valueIndexToChangeRef.current=i})})})})});ag.displayName=cd;var Ww=X((e,t)=>{let{__scopeSlider:a,name:r,...n}=e;return E(tg,{__scopeSlider:a,name:r,internal_do_not_use_render:({index:o,isFormControl:i})=>na(jn,{children:[E(ag,{...n,ref:t,__scopeSlider:a}),i?E(rg,{__scopeSlider:a},o):null]})})});Ww.displayName=Vw;var jw="SliderBubbleInput",rg=X(({__scopeSlider:e,...t},a)=>{let{value:r,name:n,form:o}=Uw(jw,e),i=H(null),s=Be(i,a),u=jc(r);return K(()=>{let l=i.current;if(!l)return;let c=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(u!==r&&f){let p=new Event("input",{bubbles:!0});f.call(l,r),l.dispatchEvent(p)}},[u,r]),E(Ae.input,{style:{display:"none"},name:n,form:o,...t,ref:s,defaultValue:r})});rg.displayName=jw;function uM(e=[],t,a){let r=[...e];return r[a]=t,r.sort((n,o)=>n-o)}function qw(e,t,a){let o=100/(a-t)*(e-t);return $i(o,[0,100])}function lM(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function cM(e,t){if(e.length===1)return 0;let a=e.map(n=>Math.abs(n-t)),r=Math.min(...a);return a.indexOf(r)}function dM(e,t,a){let r=e/2,o=ng([0,50],[0,r]);return(r-o(t)*a)*a}function fM(e){return e.slice(0,-1).map((t,a)=>e[a+1]-t)}function pM(e,t){if(t>0){let a=fM(e);return Math.min(...a)>=t}return!0}function ng(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(a-e[0])}}function Kw(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[r,n]=t.split("e"),o=r.split(".")[1]||"",i=Number(n);return Math.max(0,o.length-i)}let a=t.split(".")[1];return a?a.length:0}function dd(e,t){let a=Math.pow(10,t);return Math.round(e*a)/a}function mM(e,{min:t,step:a,direction:r,multiplier:n}){let o=Kw(a),i=(e-t)/a,s=Math.round(i),u=dd(s*a+t,o)===dd(e,o),l;return u?l=s+n*r:r>0?l=Math.ceil(i):l=Math.floor(i),dd(l*a+t,o)}function hM(e){return typeof e=="function"}var Xi={};_r(Xi,{Content:()=>wM,List:()=>yM,Root:()=>vM,Tabs:()=>ig,TabsContent:()=>lg,TabsList:()=>sg,TabsTrigger:()=>ug,Trigger:()=>AM,createTabsScope:()=>bM});var fd="Tabs",[gM,bM]=Ca(fd,[Wh]),Qw=Wh(),[xM,og]=gM(fd),ig=X((e,t)=>{let{__scopeTabs:a,value:r,onValueChange:n,defaultValue:o,orientation:i="horizontal",dir:s,activationMode:u="automatic",...l}=e,c=Kn(s),[d,f]=gr({prop:r,onChange:n,defaultProp:o??"",caller:fd});return E(xM,{scope:a,baseId:$a(),value:d,onValueChange:f,orientation:i,dir:c,activationMode:u,children:E(Ae.div,{dir:c,"data-orientation":i,...l,ref:t})})});ig.displayName=fd;var Yw="TabsList",sg=X((e,t)=>{let{__scopeTabs:a,loop:r=!0,...n}=e,o=og(Yw,a),i=Qw(a);return E($A,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:r,children:E(Ae.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:t})})});sg.displayName=Yw;var Jw="TabsTrigger",ug=X((e,t)=>{let{__scopeTabs:a,value:r,disabled:n=!1,...o}=e,i=og(Jw,a),s=Qw(a),u=Zw(i.baseId,r),l=Xw(i.baseId,r),c=r===i.value;return E(ZA,{asChild:!0,...s,focusable:!n,active:c,children:E(Ae.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:u,...o,ref:t,onMouseDown:Ie(e.onMouseDown,d=>{!n&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:Ie(e.onKeyDown,d=>{n||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:Ie(e.onFocus,()=>{let d=i.activationMode!=="manual";!c&&!n&&d&&i.onValueChange(r)})})})});ug.displayName=Jw;var $w="TabsContent",lg=X((e,t)=>{let{__scopeTabs:a,value:r,forceMount:n,children:o,...i}=e,s=og($w,a),u=Zw(s.baseId,r),l=Xw(s.baseId,r),c=r===s.value,d=H(c);return K(()=>{let f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),E(xn,{present:n||c,children:({present:f})=>E(Ae.div,{"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!f,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&o})})});lg.displayName=$w;function Zw(e,t){return`${e}-trigger-${t}`}function Xw(e,t){return`${e}-content-${t}`}var vM=ig,yM=sg,AM=ug,wM=lg;var eS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tS=kc,Zn=(e,t)=>a=>{var r;if(t?.variants==null)return tS(e,a?.class,a?.className);let{variants:n,defaultVariants:o}=t,i=Object.keys(n).map(l=>{let c=a?.[l],d=o?.[l];if(c===null)return null;let f=eS(c)||eS(d);return n[l][f]}),s=a&&Object.entries(a).reduce((l,c)=>{let[d,f]=c;return f===void 0||(l[d]=f),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,c)=>{let{class:d,className:f,...p}=c;return Object.entries(p).every(g=>{let[m,x]=g;return Array.isArray(x)?x.includes({...o,...s}[m]):{...o,...s}[m]===x})?[...l,d,f]:l},[]);return tS(e,i,u,a?.class,a?.className)};function SM(e,t){let a=getComputedStyle(e),r=parseFloat(a.fontSize);return t*r}function CM(e,t){let a=getComputedStyle(e.ownerDocument.documentElement),r=parseFloat(a.fontSize);return t*r}function IM(e){return e/100*window.innerHeight}function kM(e){return e/100*window.innerWidth}function LM(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Du({groupSize:e,panelElement:t,styleProp:a}){let r,[n,o]=LM(a);switch(o){case"%":{r=n/100*e;break}case"px":{r=n;break}case"rem":{r=CM(t,n);break}case"em":{r=SM(t,n);break}case"vh":{r=IM(n);break}case"vw":{r=kM(n);break}}return r}function ga(e){return parseFloat(e.toFixed(3))}function ns({group:e}){let{orientation:t,panels:a}=e;return a.reduce((r,n)=>(r+=t==="horizontal"?n.element.offsetWidth:n.element.offsetHeight,r),0)}function dg(e){let{panels:t}=e,a=ns({group:e});return a===0?t.map(r=>({groupResizeBehavior:r.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:r.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:r.panelConstraints.disabled,minSize:0,maxSize:100,panelId:r.id})):t.map(r=>{let{element:n,panelConstraints:o}=r,i=0;if(o.collapsedSize!==void 0){let c=Du({groupSize:a,panelElement:n,styleProp:o.collapsedSize});i=ga(c/a*100)}let s;if(o.defaultSize!==void 0){let c=Du({groupSize:a,panelElement:n,styleProp:o.defaultSize});s=ga(c/a*100)}let u=0;if(o.minSize!==void 0){let c=Du({groupSize:a,panelElement:n,styleProp:o.minSize});u=ga(c/a*100)}let l=100;if(o.maxSize!==void 0){let c=Du({groupSize:a,panelElement:n,styleProp:o.maxSize});l=ga(c/a*100)}return{groupResizeBehavior:o.groupResizeBehavior,collapsedSize:i,collapsible:o.collapsible===!0,defaultSize:s,disabled:o.disabled,minSize:u,maxSize:l,panelId:r.id}})}function Ze(e,t="Assertion error"){if(!e)throw Error(t)}function fg(e,t){return Array.from(t).sort(e==="horizontal"?EM:TM)}function EM(e,t){let a=e.element.offsetLeft-t.element.offsetLeft;return a!==0?a:e.element.offsetWidth-t.element.offsetWidth}function TM(e,t){let a=e.element.offsetTop-t.element.offsetTop;return a!==0?a:e.element.offsetHeight-t.element.offsetHeight}function vS(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function yS(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function RM({orientation:e,rects:t,targetRect:a}){let r={x:a.x+a.width/2,y:a.y+a.height/2},n,o=Number.MAX_VALUE;for(let i of t){let{x:s,y:u}=yS(r,i),l=e==="horizontal"?s:u;l<o&&(o=l,n=i)}return Ze(n,"No rect found"),n}var pd;function PM(){return pd===void 0&&(typeof matchMedia=="function"?pd=!!matchMedia("(pointer:coarse)").matches:pd=!1),pd}function AS(e){let{element:t,orientation:a,panels:r,separators:n}=e,o=fg(a,Array.from(t.children).filter(vS).map(g=>({element:g}))).map(({element:g})=>g),i=[],s=!1,u=!1,l=-1,c=-1,d=0,f,p=[];{let g=-1;for(let m of o)m.hasAttribute("data-panel")&&(g++,m.hasAttribute("data-disabled")||(d++,l===-1&&(l=g),c=g))}if(d>1){let g=-1;for(let m of o)if(m.hasAttribute("data-panel")){g++;let x=r.find(v=>v.element===m);if(x){if(f){let v=f.element.getBoundingClientRect(),w=m.getBoundingClientRect(),y;if(u){let S=a==="horizontal"?new DOMRect(v.right,v.top,0,v.height):new DOMRect(v.left,v.bottom,v.width,0),A=a==="horizontal"?new DOMRect(w.left,w.top,0,w.height):new DOMRect(w.left,w.top,w.width,0);switch(p.length){case 0:{y=[S,A];break}case 1:{let L=p[0],C=RM({orientation:a,rects:[v,w],targetRect:L.element.getBoundingClientRect()});y=[L,C===v?A:S];break}default:{y=p;break}}}else p.length?y=p:y=[a==="horizontal"?new DOMRect(v.right,w.top,w.left-v.right,w.height):new DOMRect(w.left,v.bottom,w.width,w.top-v.bottom)];for(let S of y){let A="width"in S?S:S.element.getBoundingClientRect(),L=PM()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(A.width<L){let I=L-A.width;A=new DOMRect(A.x-I/2,A.y,A.width+I,A.height)}if(A.height<L){let I=L-A.height;A=new DOMRect(A.x,A.y-I/2,A.width,A.height+I)}let C=g<=l||g>c;!s&&!C&&i.push({group:e,groupSize:ns({group:e}),panels:[f,x],separator:"width"in S?void 0:S,rect:A}),s=!1}}u=!1,f=x,p=[]}}else if(m.hasAttribute("data-separator")){m.ariaDisabled!==null&&(s=!0);let x=n.find(v=>v.element===m);x?p.push(x):(f=void 0,p=[])}else u=!0}return i}var Xn,gd=class{constructor(){eh(this,Xn,{})}addListener(t,a){let r=zi(this,Xn)[t];return r===void 0?zi(this,Xn)[t]=[a]:r.includes(a)||r.push(a),()=>{this.removeListener(t,a)}}emit(t,a){let r=zi(this,Xn)[t];if(r!==void 0)if(r.length===1)r[0].call(null,a);else{let n=!1,o=null,i=Array.from(r);for(let s=0;s<i.length;s++){let u=i[s];try{u.call(null,a)}catch(l){o===null&&(n=!0,o=l)}}if(n)throw o}}removeAllListeners(){th(this,Xn,{})}removeListener(t,a){let r=zi(this,Xn)[t];if(r!==void 0){let n=r.indexOf(a);n>=0&&r.splice(n,1)}}};Xn=new WeakMap;var as={cursorFlags:0,state:"inactive"},pg=new gd;function Ko(){return as}function NM(e){return pg.addListener("change",e)}function MM(e){let t=as,a={...as};a.cursorFlags=e,as=a,pg.emit("change",{prev:t,next:a})}function rs(e){let t=as;as=e,pg.emit("change",{prev:t,next:e})}var DM=e=>e,cg=()=>{},wS=1,SS=2,CS=4,IS=8,aS=3,rS=12,md;function nS(){return md===void 0&&(md=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(md=!0)),md}function OM({cursorFlags:e,groups:t,state:a}){let r=0,n=0;switch(a){case"active":case"hover":t.forEach(o=>{if(!o.mutableState.disableCursor)switch(o.orientation){case"horizontal":{r++;break}case"vertical":{n++;break}}})}if(!(r===0&&n===0)){switch(a){case"active":{if(e&&nS()){let o=(e&wS)!==0,i=(e&SS)!==0,s=(e&CS)!==0,u=(e&IS)!==0;if(o)return s?"se-resize":u?"ne-resize":"e-resize";if(i)return s?"sw-resize":u?"nw-resize":"w-resize";if(s)return"s-resize";if(u)return"n-resize"}break}}return nS()?r>0&&n>0?"move":r>0?"ew-resize":"ns-resize":r>0&&n>0?"grab":r>0?"col-resize":"row-resize"}}var oS=new WeakMap;function mg(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:a}=oS.get(e)??{};a===void 0&&(a=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(a):e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]));let r=Ko();switch(r.state){case"active":case"hover":{let n=OM({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(i=>i.group),state:r.state}),o=`*, *:hover {cursor: ${n} !important; }`;if(t===o)return;t=o,n?a.cssRules.length===0?a.insertRule(o):a.replaceSync(o):a.cssRules.length===1&&a.deleteRule(0);break}case"inactive":{t=void 0,a.cssRules.length===1&&a.deleteRule(0);break}}oS.set(e,{prevStyle:t,styleSheet:a})}var Wr=new Map,kS=new gd;function _M(e){Wr=new Map(Wr),Wr.delete(e)}function iS(e,t){for(let[a]of Wr)if(a.id===e)return a}function eo(e,t){for(let[a,r]of Wr)if(a.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Jo(){return Wr}function hg(e,t){return kS.addListener("groupChange",a=>{a.group.id===e&&t(a)})}function yn(e,t,a){let r=Wr.get(e);Wr=new Map(Wr),Wr.set(e,t),kS.emit("groupChange",{group:e,isUserInteraction:a?.isUserInteraction===!0,prev:r,next:t})}function LS(e){let t=Ko(),a=!1;return t.state==="active"&&(rs({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(mg(e),a=!0,t.hitRegions.forEach(r=>{let n=eo(r.group.id,!0);yn(r.group,n,{isUserInteraction:!0})}))),a}function sS(e){e.defaultPrevented||LS(e.currentTarget)}function BM(e,t,a){let r,n={x:1/0,y:1/0};for(let o of t){let i=yS(a,o.rect);switch(e){case"horizontal":{i.x<=n.x&&(r=o,n=i);break}case"vertical":{i.y<=n.y&&(r=o,n=i);break}}}return r?{distance:n,hitRegion:r}:void 0}function FM(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function HM(e,t){if(e===t)throw new Error("Cannot compare node with itself");let a={a:cS(e),b:cS(t)},r;for(;a.a.at(-1)===a.b.at(-1);)r=a.a.pop(),a.b.pop();Ze(r,"Stacking order can only be calculated for elements with a common ancestor");let n={a:lS(uS(a.a)),b:lS(uS(a.b))};if(n.a===n.b){let o=r.childNodes,i={a:a.a.at(-1),b:a.b.at(-1)},s=o.length;for(;s--;){let u=o[s];if(u===i.a)return 1;if(u===i.b)return-1}}return Math.sign(n.a-n.b)}var zM=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function VM(e){let t=getComputedStyle(ES(e)??e).display;return t==="flex"||t==="inline-flex"}function UM(e){let t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||VM(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||zM.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function uS(e){let t=e.length;for(;t--;){let a=e[t];if(Ze(a,"Missing node"),UM(a))return a}return null}function lS(e){return e&&Number(getComputedStyle(e).zIndex)||0}function cS(e){let t=[];for(;e;)t.push(e),e=ES(e);return t}function ES(e){let{parentNode:t}=e;return FM(t)?t.host:t}function GM(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function WM({groupElement:e,hitRegion:t,pointerEventTarget:a}){if(!vS(a)||a.contains(e)||e.contains(a))return!0;if(HM(a,e)>0){let r=a;for(;r;){if(r.contains(e))return!0;if(GM(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function gg(e,t){let a=[];return t.forEach((r,n)=>{if(n.disabled)return;let o=AS(n),i=BM(n.orientation,o,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&WM({groupElement:n.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&a.push(i.hitRegion)}),a}function jM(e,t){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return!1;return!0}function oa(e,t,a=0){return Math.abs(ga(e)-ga(t))<=a}function Gr(e,t){return oa(e,t)?0:e>t?1:-1}function ts({overrideDisabledPanels:e,panelConstraints:t,prevSize:a,size:r}){let{collapsedSize:n=0,collapsible:o,disabled:i,maxSize:s=100,minSize:u=0}=t;if(i&&!e)return a;if(Gr(r,u)<0)if(o){let l=(n+u)/2;Gr(r,l)<0?r=n:r=u}else r=u;return r=Math.min(s,r),r=ga(r),r}function _u({delta:e,initialLayout:t,panelConstraints:a,pivotIndices:r,prevLayout:n,trigger:o}){if(oa(e,0))return t;let i=o==="imperative-api",s=Object.values(t),u=Object.values(n),l=[...s],[c,d]=r;Ze(c!=null,"Invalid first pivot index"),Ze(d!=null,"Invalid second pivot index");let f=0;switch(o){case"keyboard":{{let m=e<0?d:c,x=a[m];Ze(x,`Panel constraints not found for index ${m}`);let{collapsedSize:v=0,collapsible:w,minSize:y=0}=x;if(w){let S=s[m];if(Ze(S!=null,`Previous layout not found for panel index ${m}`),oa(S,v)){let A=y-S;Gr(A,Math.abs(e))>0&&(e=e<0?0-A:A)}}}{let m=e<0?c:d,x=a[m];Ze(x,`No panel constraints found for index ${m}`);let{collapsedSize:v=0,collapsible:w,minSize:y=0}=x;if(w){let S=s[m];if(Ze(S!=null,`Previous layout not found for panel index ${m}`),oa(S,y)){let A=S-v;Gr(A,Math.abs(e))>0&&(e=e<0?0-A:A)}}}break}default:{let m=e<0?d:c,x=a[m];Ze(x,`Panel constraints not found for index ${m}`);let v=s[m],{collapsible:w,collapsedSize:y,minSize:S}=x;if(w&&Gr(v,S)<0)if(e>0){let A=S-y,L=A/2,C=v+e;Gr(C,S)<0&&(e=Gr(e,L)<=0?0:A)}else{let A=S-y,L=100-A/2,C=v-e;Gr(C,S)<0&&(e=Gr(100+e,L)>0?0:-A)}break}}{let m=e<0?1:-1,x=e<0?d:c,v=0;for(;;){let y=s[x];Ze(y!=null,`Previous layout not found for panel index ${x}`);let S=ts({overrideDisabledPanels:i,panelConstraints:a[x],prevSize:y,size:100})-y;if(v+=S,x+=m,x<0||x>=a.length)break}let w=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-w:w}{let m=e<0?c:d;for(;m>=0&&m<a.length;){let x=Math.abs(e)-Math.abs(f),v=s[m];Ze(v!=null,`Previous layout not found for panel index ${m}`);let w=v-x,y=ts({overrideDisabledPanels:i,panelConstraints:a[m],prevSize:v,size:w});if(!oa(v,y)&&(f+=v-y,l[m]=y,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?m--:m++}}if(jM(u,l))return n;{let m=e<0?d:c,x=s[m];Ze(x!=null,`Previous layout not found for panel index ${m}`);let v=x+f,w=ts({overrideDisabledPanels:i,panelConstraints:a[m],prevSize:x,size:v});if(l[m]=w,!oa(w,v)){let y=v-w,S=e<0?d:c;for(;S>=0&&S<a.length;){let A=l[S];Ze(A!=null,`Previous layout not found for panel index ${S}`);let L=A+y,C=ts({overrideDisabledPanels:i,panelConstraints:a[S],prevSize:A,size:L});if(oa(A,C)||(y-=C-A,l[S]=C),oa(y,0))break;e>0?S--:S++}}}let p=Object.values(l).reduce((m,x)=>x+m,0);if(!oa(p,100,.1))return n;let g=Object.keys(n);return l.reduce((m,x,v)=>(m[g[v]]=x,m),{})}function Qo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t[a]===void 0||Gr(e[a],t[a])!==0)return!1;return!0}function Yo({layout:e,panelConstraints:t}){let a=Object.values(e),r=[...a],n=r.reduce((s,u)=>s+u,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(s=>`${s}%`).join(", ")}`);if(!oa(n,100)&&r.length>0)for(let s=0;s<t.length;s++){let u=r[s];Ze(u!=null,`No layout data found for index ${s}`);let l=100/n*u;r[s]=l}let o=0;for(let s=0;s<t.length;s++){let u=a[s];Ze(u!=null,`No layout data found for index ${s}`);let l=r[s];Ze(l!=null,`No layout data found for index ${s}`);let c=ts({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:u,size:l});l!=c&&(o+=l-c,r[s]=c)}if(!oa(o,0))for(let s=0;s<t.length;s++){let u=r[s];Ze(u!=null,`No layout data found for index ${s}`);let l=u+o,c=ts({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:u,size:l});if(u!==c&&(o-=c-u,r[s]=c,oa(o,0)))break}let i=Object.keys(e);return r.reduce((s,u,l)=>(s[i[l]]=u,s),{})}function TS({groupId:e,panelId:t}){let a=()=>{let u=Jo();for(let[l,{defaultLayoutDeferred:c,derivedPanelConstraints:d,layout:f,groupSize:p,separatorToPanels:g}]of u)if(l.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:d,group:l,groupSize:p,layout:f,separatorToPanels:g};throw Error(`Group ${e} not found`)},r=()=>{let u=a().derivedPanelConstraints.find(l=>l.panelId===t);if(u!==void 0)return u;throw Error(`Panel constraints not found for Panel ${t}`)},n=()=>{let u=a().group.panels.find(l=>l.id===t);if(u!==void 0)return u;throw Error(`Layout not found for Panel ${t}`)},o=()=>{let u=a().layout[t];if(u!==void 0)return u;throw Error(`Layout not found for Panel ${t}`)},i=({nextSize:u,panels:l,prevLayout:c,derivedPanelConstraints:d})=>{let f=o(),p=l.findIndex(x=>x.id===t),g=p===0,m=p===l.length-1;if(m&&u<f&&(g||l.slice(0,p).every((x,v)=>{let w=d[v];return w?.collapsible&&oa(w.collapsedSize,c[w.panelId])}))){let x=l.slice(0,p).reduce((v,w)=>v+c[w.id],0);return{...c,[t]:ga(100-x)}}return _u({delta:m?f-u:u-f,initialLayout:c,panelConstraints:d,pivotIndices:m?[p-1,p]:[p,p+1],prevLayout:c,trigger:"imperative-api"})},s=u=>{let l=o();if(u===l)return;let{defaultLayoutDeferred:c,derivedPanelConstraints:d,group:f,groupSize:p,layout:g,separatorToPanels:m}=a(),x=i({nextSize:u,panels:f.panels,prevLayout:g,derivedPanelConstraints:d}),v=Yo({layout:x,panelConstraints:d});Qo(g,v)||yn(f,{defaultLayoutDeferred:c,derivedPanelConstraints:d,groupSize:p,layout:v,separatorToPanels:m})};return{collapse:()=>{let{collapsible:u,collapsedSize:l}=r(),{mutableValues:c}=n(),d=o();u&&d!==l&&(c.expandToSize=d,s(l))},expand:()=>{let{collapsible:u,collapsedSize:l,minSize:c}=r(),{mutableValues:d}=n(),f=o();if(u&&f===l){let p=d.expandToSize??c;p===0&&(p=1),s(p)}},getSize:()=>{let{group:u}=a(),l=o(),{element:c}=n(),d=u.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:l,inPixels:d}},isCollapsed:()=>{let{collapsible:u,collapsedSize:l}=r(),c=o();return u&&oa(l,c)},resize:u=>{let{group:l}=a(),{element:c}=n(),d=ns({group:l}),f=Du({groupSize:d,panelElement:c,styleProp:u}),p=ga(f/d*100);s(p)}}}function dS(e){if(e.defaultPrevented)return;let t=Jo();gg(e,t).forEach(a=>{if(a.separator&&!a.separator.disableDoubleClick){let r=a.panels.find(n=>n.panelConstraints.defaultSize!==void 0);if(r){let n=r.panelConstraints.defaultSize,o=TS({groupId:a.group.id,panelId:r.id});o&&n!==void 0&&(o.resize(n),e.preventDefault())}}})}function hd(e){let t=Jo();for(let[a]of t)if(a.separators.some(r=>r.element===e))return a;throw Error("Could not find parent Group for separator element")}function RS({groupId:e}){let t=()=>{let a=Jo();for(let[r,n]of a)if(r.id===e)return{group:r,...n};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:a,layout:r}=t();return a?{}:r},setLayout(a){let{defaultLayoutDeferred:r,derivedPanelConstraints:n,group:o,groupSize:i,layout:s,separatorToPanels:u}=t(),l=Yo({layout:a,panelConstraints:n});return r?s:(Qo(s,l)||yn(o,{defaultLayoutDeferred:r,derivedPanelConstraints:n,groupSize:i,layout:l,separatorToPanels:u}),l)}}}function qo(e,t){let a=hd(e),r=eo(a.id,!0),n=a.separators.find(c=>c.element===e);Ze(n,"Matching separator not found");let o=r.separatorToPanels.get(n);Ze(o,"Matching panels not found");let i=o.map(c=>a.panels.indexOf(c)),s=RS({groupId:a.id}).getLayout(),u=_u({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:i,prevLayout:s,trigger:"keyboard"}),l=Yo({layout:u,panelConstraints:r.derivedPanelConstraints});Qo(s,l)||yn(a,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:l,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function fS(e){if(e.defaultPrevented)return;let t=e.currentTarget,a=hd(t);if(!a.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),a.orientation==="vertical"&&qo(t,5);break}case"ArrowLeft":{e.preventDefault(),a.orientation==="horizontal"&&qo(t,-5);break}case"ArrowRight":{e.preventDefault(),a.orientation==="horizontal"&&qo(t,5);break}case"ArrowUp":{e.preventDefault(),a.orientation==="vertical"&&qo(t,-5);break}case"End":{e.preventDefault(),qo(t,100);break}case"Enter":{e.preventDefault();let r=hd(t),n=eo(r.id,!0),{derivedPanelConstraints:o,layout:i,separatorToPanels:s}=n,u=r.separators.find(f=>f.element===t);Ze(u,"Matching separator not found");let l=s.get(u);Ze(l,"Matching panels not found");let c=l[0],d=o.find(f=>f.panelId===c.id);if(Ze(d,"Panel metadata not found"),d.collapsible){let f=i[c.id],p=d.collapsedSize===f?r.mutableState.expandedPanelSizes[c.id]??d.minSize:d.collapsedSize;qo(t,p-f)}break}case"F6":{e.preventDefault();let r=hd(t).separators.map(i=>i.element),n=Array.from(r).findIndex(i=>i===e.currentTarget);Ze(n!==null,"Index not found");let o=e.shiftKey?n>0?n-1:r.length-1:n+1<r.length?n+1:0;r[o].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),qo(t,-100);break}}}function pS(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;let t=Jo(),a=gg(e,t),r=new Map,n=!1;a.forEach(o=>{o.separator&&(n||(n=!0,o.separator.element.focus({focusVisible:!1,preventScroll:!0})));let i=t.get(o.group);i&&r.set(o.group,i.layout)}),rs({cursorFlags:0,hitRegions:a,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),a.length&&e.preventDefault()}function PS({document:e,event:t,hitRegions:a,initialLayoutMap:r,mountedGroups:n,pointerDownAtPoint:o,prevCursorFlags:i}){let s=0;a.forEach(l=>{let{group:c,groupSize:d}=l,{orientation:f,panels:p}=c,{disableCursor:g}=c.mutableState,m=0;o?f==="horizontal"?m=(t.clientX-o.x)/d*100:m=(t.clientY-o.y)/d*100:f==="horizontal"?m=t.clientX<0?-100:100:m=t.clientY<0?-100:100;let x=r.get(c),v=n.get(c);if(!x||!v)return;let{defaultLayoutDeferred:w,derivedPanelConstraints:y,groupSize:S,layout:A,separatorToPanels:L}=v;if(y&&A&&L){let C=_u({delta:m,initialLayout:x,panelConstraints:y,pivotIndices:l.panels.map(I=>p.indexOf(I)),prevLayout:A,trigger:"mouse-or-touch"});if(Qo(C,A)){if(m!==0&&!g)switch(f){case"horizontal":{s|=m<0?wS:SS;break}case"vertical":{s|=m<0?CS:IS;break}}}else yn(l.group,{defaultLayoutDeferred:w,derivedPanelConstraints:y,groupSize:S,layout:C,separatorToPanels:L})}});let u=0;t.movementX===0?u|=i&aS:u|=s&aS,t.movementY===0?u|=i&rS:u|=s&rS,MM(u),mg(e)}function mS(e){let t=Jo(),a=Ko();a.state==="active"&&PS({document:e.currentTarget,event:e,hitRegions:a.hitRegions,initialLayoutMap:a.initialLayoutMap,mountedGroups:t,prevCursorFlags:a.cursorFlags})}function hS(e){if(e.defaultPrevented)return;let t=Ko(),a=Jo();switch(t.state){case"active":{if(e.buttons===0){rs({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(r=>{let n=eo(r.group.id,!0);yn(r.group,n,{isUserInteraction:!0})});return}for(let r of t.hitRegions)if(r.separator){let{element:n}=r.separator;n.hasPointerCapture?.(e.pointerId)||n.setPointerCapture?.(e.pointerId)}PS({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:a,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{let r=gg(e,a);r.length===0?t.state!=="inactive"&&rs({cursorFlags:0,state:"inactive"}):rs({cursorFlags:0,hitRegions:r,state:"hover"}),mg(e.currentTarget);break}}}function gS(e){e.relatedTarget instanceof HTMLIFrameElement&&Ko().state==="hover"&&rs({cursorFlags:0,state:"inactive"})}function bS(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||LS(e.currentTarget)&&e.preventDefault()}function xS(e){let t=0,a=0,r={};for(let o of e)if(o.defaultSize!==void 0){t++;let i=ga(o.defaultSize);a+=i,r[o.panelId]=i}else r[o.panelId]=void 0;let n=e.length-t;if(n!==0){let o=ga((100-a)/n);for(let i of e)i.defaultSize===void 0&&(r[i.panelId]=o)}return r}function qM(e,t,a){if(!a[0])return;let r=e.panels.find(u=>u.element===t);if(!r||!r.onResize)return;let n=ns({group:e}),o=e.orientation==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,i=r.mutableValues.prevSize,s={asPercentage:ga(o/n*100),inPixels:o};r.mutableValues.prevSize=s,r.onResize(s,r.id,i)}function KM(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(e[a]!==t[a])return!1;return!0}function QM({group:e,nextGroupSize:t,prevGroupSize:a,prevLayout:r}){if(a<=0||t<=0||a===t)return r;let n=0,o=0,i=!1,s=new Map,u=[];for(let d of e.panels){let f=r[d.id]??0;if(d.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){i=!0;let p=f/100*a,g=ga(p/t*100);s.set(d.id,g),n+=g}else u.push(d.id),o+=f}if(!i||u.length===0)return r;let l=100-n,c={...r};if(s.forEach((d,f)=>{c[f]=d}),o>0)for(let d of u){let f=r[d]??0;c[d]=ga(f/o*l)}else{let d=ga(l/u.length);for(let f of u)c[f]=d}return c}function YM(e,t){let a=e.map(n=>n.id),r=Object.keys(t);if(a.length!==r.length)return!1;for(let n of a)if(!r.includes(n))return!1;return!0}var es=new Map;function JM(e){let t=!0;Ze(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");let a=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,n=new Set,o=new a(g=>{for(let m of g){let{borderBoxSize:x,target:v}=m;if(v===e.element){if(t){let w=ns({group:e});if(w===0)return;let y=eo(e.id);if(!y)return;let S=dg(e),A=y.defaultLayoutDeferred?xS(S):y.layout,L=QM({group:e,nextGroupSize:w,prevGroupSize:y.groupSize,prevLayout:A}),C=Yo({layout:L,panelConstraints:S});if(!y.defaultLayoutDeferred&&Qo(y.layout,C)&&KM(y.derivedPanelConstraints,S)&&y.groupSize===w)return;yn(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:S,groupSize:w,layout:C,separatorToPanels:y.separatorToPanels})}}else qM(e,v,x)}});o.observe(e.element),e.panels.forEach(g=>{Ze(!r.has(g.id),`Panel ids must be unique; id "${g.id}" was used more than once`),r.add(g.id),g.onResize&&o.observe(g.element)});let i=ns({group:e}),s=dg(e),u=e.panels.map(({id:g})=>g).join(","),l=e.mutableState.defaultLayout;l&&(YM(e.panels,l)||(l=void 0));let c=e.mutableState.layouts[u]??l??xS(s),d=Yo({layout:c,panelConstraints:s}),f=e.element.ownerDocument;es.set(f,(es.get(f)??0)+1);let p=new Map;return AS(e).forEach(g=>{g.separator&&p.set(g.separator,g.panels)}),yn(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:s,groupSize:i,layout:d,separatorToPanels:p}),e.separators.forEach(g=>{Ze(!n.has(g.id),`Separator ids must be unique; id "${g.id}" was used more than once`),n.add(g.id),g.element.addEventListener("keydown",fS)}),es.get(f)===1&&(f.addEventListener("contextmenu",sS,!0),f.addEventListener("dblclick",dS,!0),f.addEventListener("pointerdown",pS,!0),f.addEventListener("pointerleave",mS),f.addEventListener("pointermove",hS),f.addEventListener("pointerout",gS),f.addEventListener("pointerup",bS,!0)),function(){t=!1,es.set(f,Math.max(0,(es.get(f)??0)-1)),_M(e),e.separators.forEach(g=>{g.element.removeEventListener("keydown",fS)}),es.get(f)||(f.removeEventListener("contextmenu",sS,!0),f.removeEventListener("dblclick",dS,!0),f.removeEventListener("pointerdown",pS,!0),f.removeEventListener("pointerleave",mS),f.removeEventListener("pointermove",hS),f.removeEventListener("pointerout",gS),f.removeEventListener("pointerup",bS,!0)),o.disconnect()}}function $M(){let[e,t]=O({}),a=me(()=>t({}),[]);return[e,a]}function bg(e){let t=ah();return`${e??t}`}var $o=typeof window<"u"?gn:K;function Ou(e){let t=H(e);return $o(()=>{t.current=e},[e]),me((...a)=>t.current?.(...a),[t])}function xg(...e){return Ou(t=>{e.forEach(a=>{if(a)switch(typeof a){case"function":{a(t);break}case"object":{a.current=t;break}}})})}function vg(e){let t=H({...e});return $o(()=>{for(let a in e)t.current[a]=e[a]},[e]),t.current}var NS=fa(null);function ZM(e,t){let a=H({getLayout:()=>({}),setLayout:DM});Cc(t,()=>a.current,[]),$o(()=>{Object.assign(a.current,RS({groupId:e}))})}function MS({children:e,className:t,defaultLayout:a,disableCursor:r,disabled:n,elementRef:o,groupRef:i,id:s,onLayoutChange:u,onLayoutChanged:l,orientation:c="horizontal",resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...p}){let g=H({onLayoutChange:{},onLayoutChanged:{}}),m=Ou(N=>{Qo(g.current.onLayoutChange,N)||(g.current.onLayoutChange=N,u?.(N))}),x=Ou((N,V)=>{Qo(g.current.onLayoutChanged,N)||(g.current.onLayoutChanged=N,l?.(N,{isUserInteraction:V}))}),v=bg(s),w=H(null),[y,S]=$M(),A=H({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),L=xg(w,o);ZM(v,i);let C=Ou((N,V)=>{let J=Ko(),ee=iS(N),T=eo(N);if(T){let _=!1;return J.state==="active"&&(_=J.hitRegions.some(Q=>Q.group===ee)),{flexGrow:T.layout[V]??1,pointerEvents:_?"none":void 0}}if(a?.[V])return{flexGrow:a?.[V]}}),I=vg({defaultLayout:a,disableCursor:r}),D=_e(()=>({get disableCursor(){return!!I.disableCursor},getPanelStyles:C,id:v,orientation:c,registerPanel:N=>{let V=A.current;return V.panels=fg(c,[...V.panels,N]),S(),()=>{V.panels=V.panels.filter(J=>J!==N),S()}},registerSeparator:N=>{let V=A.current;return V.separators=fg(c,[...V.separators,N]),S(),()=>{V.separators=V.separators.filter(J=>J!==N),S()}},updatePanelProps:(N,{disabled:V})=>{let J=A.current.panels.find(_=>_.id===N);J&&(J.panelConstraints.disabled=V);let ee=iS(v),T=eo(v);ee&&T&&yn(ee,{...T,derivedPanelConstraints:dg(ee)})},updateSeparatorProps:(N,{disabled:V,disableDoubleClick:J})=>{let ee=A.current.separators.find(T=>T.id===N);ee&&(ee.disabled=V,ee.disableDoubleClick=J)}}),[C,v,S,c,I]),Z=H(null);return $o(()=>{let N=w.current;if(N===null)return;let V=A.current,J;if(I.defaultLayout!==void 0&&Object.keys(I.defaultLayout).length===V.panels.length){J={};for(let W of V.panels){let M=I.defaultLayout[W.id];M!==void 0&&(J[W.id]=M)}}let ee={disabled:!!n,element:N,id:v,mutableState:{defaultLayout:J,disableCursor:!!I.disableCursor,expandedPanelSizes:A.current.lastExpandedPanelSizes,layouts:A.current.layouts},orientation:c,panels:V.panels,resizeTargetMinimumSize:V.resizeTargetMinimumSize,separators:V.separators};Z.current=ee;let T=JM(ee),{defaultLayoutDeferred:_,derivedPanelConstraints:Q,layout:q}=eo(ee.id,!0);!_&&Q.length>0&&(m(q),x(q,!1));let pe=hg(v,W=>{let{defaultLayoutDeferred:M,derivedPanelConstraints:j,layout:ce}=W.next;if(M||j.length===0)return;let Me=ee.panels.map(({id:B})=>B).join(",");ee.mutableState.layouts[Me]=ce,j.forEach(B=>{if(B.collapsible){let{layout:F}=W.prev??{};if(F){let ge=oa(B.collapsedSize,ce[B.panelId]),Le=oa(B.collapsedSize,F[B.panelId]);ge&&!Le&&(ee.mutableState.expandedPanelSizes[B.panelId]=F[B.panelId])}}});let Se=Ko().state!=="active";m(ce),Se&&x(ce,W.isUserInteraction)});return()=>{Z.current=null,T(),pe()}},[n,v,x,m,c,y,I]),K(()=>{let N=Z.current;N&&(N.mutableState.defaultLayout=a,N.mutableState.disableCursor=!!r)}),E(NS.Provider,{value:D,children:E("div",{...p,className:t,"data-group":!0,"data-testid":v,id:v,ref:L,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}MS.displayName="Group";function yg(){let e=Sa(NS);return Ze(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function XM(e,t){let{id:a}=yg(),r=H({collapse:cg,expand:cg,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:cg});Cc(t,()=>r.current,[]),$o(()=>{Object.assign(r.current,TS({groupId:a,panelId:e}))})}function DS({children:e,className:t,collapsedSize:a="0%",collapsible:r=!1,defaultSize:n,disabled:o,elementRef:i,groupResizeBehavior:s="preserve-relative-size",id:u,maxSize:l="100%",minSize:c="0%",onResize:d,panelRef:f,style:p,...g}){let m=!!u,x=bg(u),v=vg({disabled:o}),w=H(null),y=xg(w,i),{getPanelStyles:S,id:A,orientation:L,registerPanel:C,updatePanelProps:I}=yg(),D=d!==null,Z=Ou((ee,T,_)=>{d?.(ee,u,_)});$o(()=>{let ee=w.current;if(ee!==null){let T={element:ee,id:x,idIsStable:m,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:D?Z:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:a,collapsible:r,defaultSize:n,disabled:v.disabled,maxSize:l,minSize:c}};return C(T)}},[s,a,r,n,D,x,m,l,c,Z,C,v]),K(()=>{I(x,{disabled:o})},[o,x,I]),XM(x,f);let N=()=>{let ee=S(A,x);if(ee)return JSON.stringify(ee)},V=rh(ee=>hg(A,ee),N,N),J;return V?J=JSON.parse(V):n!==void 0?J={flexGrow:void 0,flexShrink:void 0,flexBasis:n}:J={flexGrow:1},E("div",{...g,"data-disabled":o||void 0,"data-panel":!0,"data-testid":x,id:x,ref:y,style:{...eD,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...J},children:E("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...p,touchAction:L==="horizontal"?"pan-y":"pan-x"},children:e})})}DS.displayName="Panel";var eD={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function tD({layout:e,panelConstraints:t,panelId:a,panelIndex:r}){let n,o,i=e[a],s=t.find(u=>u.panelId===a);if(s){let u=s.maxSize,l=s.collapsible?s.collapsedSize:s.minSize,c=[r,r+1];o=Yo({layout:_u({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[a],n=Yo({layout:_u({delta:u-i,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[a]}return{valueControls:a,valueMax:n,valueMin:o,valueNow:i}}function OS({children:e,className:t,disabled:a,disableDoubleClick:r,elementRef:n,id:o,style:i,...s}){let u=bg(o),l=vg({disabled:a,disableDoubleClick:r}),[c,d]=O({}),[f,p]=O("inactive"),[g,m]=O(!1),x=H(null),v=xg(x,n),{disableCursor:w,id:y,orientation:S,registerSeparator:A,updateSeparatorProps:L}=yg(),C=S==="horizontal"?"vertical":"horizontal";$o(()=>{let Z=x.current;if(Z!==null){let N={disabled:l.disabled,disableDoubleClick:l.disableDoubleClick,element:Z,id:u},V=A(N),J=NM(T=>{p(T.next.state!=="inactive"&&T.next.hitRegions.some(_=>_.separator===N)?T.next.state:"inactive")}),ee=hg(y,T=>{let{derivedPanelConstraints:_,layout:Q,separatorToPanels:q}=T.next,pe=q.get(N);if(pe){let W=pe[0],M=pe.indexOf(W);d(tD({layout:Q,panelConstraints:_,panelId:W.id,panelIndex:M}))}});return()=>{J(),ee(),V()}}},[y,u,A,l]),K(()=>{L(u,{disabled:a,disableDoubleClick:r})},[a,r,u,L]);let I;a&&!w&&(I="not-allowed");let D;return a?D="disabled":f==="active"?D="active":g?D="focus":D=f,E("div",{...s,"aria-controls":c.valueControls,"aria-disabled":a||void 0,"aria-orientation":C,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":D,"data-testid":u,id:u,onBlur:()=>m(!1),onFocus:()=>m(!0),ref:v,role:"separator",style:{flexBasis:"auto",cursor:I,...i,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:a?void 0:0})}OS.displayName="Separator";function At(...e){return Nv(kc(e))}var rD=Zn("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function bd({className:e,variant:t="default",size:a="default",asChild:r=!1,...n}){let o=r?bu.Root:"button";return E(o,{"data-slot":"button","data-variant":t,"data-size":a,className:At(rD({variant:t,size:a,className:e})),...n})}var nD=Zn("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function za({className:e,variant:t="default",asChild:a=!1,...r}){let n=a?bu.Root:"span";return E(n,{"data-slot":"badge","data-variant":t,className:At(nD({variant:t}),e),...r})}function Qt({className:e,size:t="default",...a}){return E("div",{"data-slot":"card","data-size":t,className:At("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})}function Bu({...e}){return E(xr.Root,{"data-slot":"dialog",...e})}function oD({...e}){return E(xr.Portal,{"data-slot":"dialog-portal",...e})}function iD({className:e,...t}){return E(xr.Overlay,{"data-slot":"dialog-overlay",className:At("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function Fu({className:e,children:t,showCloseButton:a=!0,...r}){return na(oD,{children:[E(iD,{}),na(xr.Content,{"data-slot":"dialog-content",className:At("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,a&&E(xr.Close,{"data-slot":"dialog-close",asChild:!0,children:na(bd,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[E(hu,{}),E("span",{className:"sr-only",children:"Close"})]})})]})]})}function Hu({className:e,...t}){return E("div",{"data-slot":"dialog-header",className:At("flex flex-col gap-2",e),...t})}function _S({className:e,showCloseButton:t=!1,children:a,...r}){return na("div",{"data-slot":"dialog-footer",className:At("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...r,children:[a,t&&E(xr.Close,{asChild:!0,children:E(bd,{variant:"outline",children:"Close"})})]})}function zu({className:e,...t}){return E(xr.Title,{"data-slot":"dialog-title",className:At("text-base leading-none font-medium",e),...t})}function Vu({className:e,...t}){return E(xr.Description,{"data-slot":"dialog-description",className:At("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}function ba({className:e,type:t,...a}){return E("input",{type:t,"data-slot":"input",className:At("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}function An({className:e,...t}){return E("textarea",{"data-slot":"textarea",className:At("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}var fj=Zn("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});var pj=Zn("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function BS({...e}){return E(ha.Root,{"data-slot":"select",...e})}function FS({...e}){return E(ha.Value,{"data-slot":"select-value",...e})}function HS({className:e,size:t="default",children:a,...r}){return na(ha.Trigger,{"data-slot":"select-trigger","data-size":t,className:At("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[a,E(ha.Icon,{asChild:!0,children:E(Ui,{className:"pointer-events-none size-4 text-muted-foreground"})})]})}function zS({className:e,children:t,position:a="item-aligned",align:r="center",...n}){return E(ha.Portal,{children:na(ha.Content,{"data-slot":"select-content","data-align-trigger":a==="item-aligned",className:At("relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:r,...n,children:[E(sD,{}),E(ha.Viewport,{"data-position":a,className:At("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",a==="popper"&&""),children:t}),E(uD,{})]})})}function VS({className:e,children:t,...a}){return na(ha.Item,{"data-slot":"select-item",className:At("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[E("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:E(ha.ItemIndicator,{children:E(pu,{className:"pointer-events-none"})})}),E(ha.ItemText,{children:t})]})}function sD({className:e,...t}){return E(ha.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:At("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:E(mu,{})})}function uD({className:e,...t}){return E(ha.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:At("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:E(Ui,{})})}var mj=3600*24*7;var hj=fa(null);var gj=Zn("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function US({className:e,defaultValue:t,value:a,min:r=0,max:n=100,...o}){let i=_e(()=>Array.isArray(a)?a:Array.isArray(t)?t:[r,n],[a,t,r,n]);return na(jo.Root,{"data-slot":"slider",defaultValue:t,value:a,min:r,max:n,className:At("relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col",e),...o,children:[E(jo.Track,{"data-slot":"slider-track",className:"relative grow overflow-hidden rounded-full bg-muted data-horizontal:h-1 data-horizontal:w-full data-vertical:h-full data-vertical:w-1",children:E(jo.Range,{"data-slot":"slider-range",className:"absolute bg-primary select-none data-horizontal:h-full data-vertical:w-full"})}),Array.from({length:i.length},(s,u)=>E(jo.Thumb,{"data-slot":"slider-thumb",className:"relative block size-3 shrink-0 rounded-full border border-ring bg-white ring-ring/50 transition-[color,box-shadow] select-none after:absolute after:-inset-2 hover:ring-3 focus-visible:ring-3 focus-visible:outline-hidden active:ring-3 disabled:pointer-events-none disabled:opacity-50"},u))]})}function GS({className:e,orientation:t="horizontal",...a}){return E(Xi.Root,{"data-slot":"tabs","data-orientation":t,className:At("group/tabs flex gap-2 data-horizontal:flex-col",e),...a})}var lD=Zn("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function WS({className:e,variant:t="default",...a}){return E(Xi.List,{"data-slot":"tabs-list","data-variant":t,className:At(lD({variant:t}),e),...a})}function Ag({className:e,...t}){return E(Xi.Trigger,{"data-slot":"tabs-trigger",className:At("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}var bj=Zn("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}});var xj=fa({size:"default",variant:"default",spacing:2,orientation:"horizontal"});var Ng=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},k=(e,t,a)=>(Ng(e,t,"read from private field"),a?a.call(e):t.get(e)),Te=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},Bt=(e,t,a,r)=>(Ng(e,t,"write to private field"),r?r.call(e,a):t.set(e,a),a),cD=(e,t,a,r)=>({set _(n){Bt(e,t,n,a)},get _(){return k(e,t,r)}}),ze=(e,t,a)=>(Ng(e,t,"access private method"),a),We=new Uint8Array(8),Qr=new DataView(We.buffer),Nt=e=>[(e%256+256)%256],Qe=e=>(Qr.setUint16(0,e,!1),[We[0],We[1]]),dD=e=>(Qr.setInt16(0,e,!1),[We[0],We[1]]),qS=e=>(Qr.setUint32(0,e,!1),[We[1],We[2],We[3]]),ne=e=>(Qr.setUint32(0,e,!1),[We[0],We[1],We[2],We[3]]),fD=e=>(Qr.setInt32(0,e,!1),[We[0],We[1],We[2],We[3]]),ri=e=>(Qr.setUint32(0,Math.floor(e/2**32),!1),Qr.setUint32(4,e,!1),[We[0],We[1],We[2],We[3],We[4],We[5],We[6],We[7]]),Mg=e=>(Qr.setInt16(0,2**8*e,!1),[We[0],We[1]]),qr=e=>(Qr.setInt32(0,2**16*e,!1),[We[0],We[1],We[2],We[3]]),wg=e=>(Qr.setInt32(0,2**30*e,!1),[We[0],We[1],We[2],We[3]]),er=(e,t=!1)=>{let a=Array(e.length).fill(null).map((r,n)=>e.charCodeAt(n));return t&&a.push(0),a},Sd=e=>e&&e[e.length-1],Dg=e=>{let t;for(let a of e)(!t||a.presentationTimestamp>t.presentationTimestamp)&&(t=a);return t},Kr=(e,t,a=!0)=>{let r=e*t;return a?Math.round(r):r},KS=e=>{let t=e*(Math.PI/180),a=Math.cos(t),r=Math.sin(t);return[a,r,0,-r,a,0,0,0,1]},QS=KS(0),YS=e=>[qr(e[0]),qr(e[1]),wg(e[2]),qr(e[3]),qr(e[4]),wg(e[5]),qr(e[6]),qr(e[7]),wg(e[8])],Wu=e=>!e||typeof e!="object"?e:Array.isArray(e)?e.map(Wu):Object.fromEntries(Object.entries(e).map(([t,a])=>[t,Wu(a)])),us=e=>e>=0&&e<2**32,Ct=(e,t,a)=>({type:e,contents:t&&new Uint8Array(t.flat(10)),children:a}),st=(e,t,a,r,n)=>Ct(e,[Nt(t),qS(a),r??[]],n),pD=e=>{let t=512;return e.fragmented?Ct("ftyp",[er("iso5"),ne(t),er("iso5"),er("iso6"),er("mp41")]):Ct("ftyp",[er("isom"),ne(t),er("isom"),e.holdsAvc?er("avc1"):[],er("mp41")])},Sg=e=>({type:"mdat",largeSize:e}),mD=e=>({type:"free",size:e}),xd=(e,t,a=!1)=>Ct("moov",null,[hD(t,e),...e.map(r=>gD(r,t)),a?KD(e):null]),hD=(e,t)=>{let a=Kr(Math.max(0,...t.filter(i=>i.samples.length>0).map(i=>{let s=Dg(i.samples);return s.presentationTimestamp+s.duration})),kg),r=Math.max(...t.map(i=>i.id))+1,n=!us(e)||!us(a),o=n?ri:ne;return st("mvhd",+n,0,[o(e),o(e),ne(kg),o(a),qr(1),Mg(1),Array(10).fill(0),YS(QS),Array(24).fill(0),ne(r)])},gD=(e,t)=>Ct("trak",null,[bD(e,t),xD(e,t)]),bD=(e,t)=>{let a=Dg(e.samples),r=Kr(a?a.presentationTimestamp+a.duration:0,kg),n=!us(t)||!us(r),o=n?ri:ne,i;return e.info.type==="video"?i=typeof e.info.rotation=="number"?KS(e.info.rotation):e.info.rotation:i=QS,st("tkhd",+n,3,[o(t),o(t),ne(e.id),ne(0),o(r),Array(8).fill(0),Qe(0),Qe(0),Mg(e.info.type==="audio"?1:0),Qe(0),YS(i),qr(e.info.type==="video"?e.info.width:0),qr(e.info.type==="video"?e.info.height:0)])},xD=(e,t)=>Ct("mdia",null,[vD(e,t),yD(e.info.type==="video"?"vide":"soun"),AD(e)]),vD=(e,t)=>{let a=Dg(e.samples),r=Kr(a?a.presentationTimestamp+a.duration:0,e.timescale),n=!us(t)||!us(r),o=n?ri:ne;return st("mdhd",+n,0,[o(t),o(t),ne(e.timescale),o(r),Qe(21956),Qe(0)])},yD=e=>st("hdlr",0,0,[er("mhlr"),er(e),ne(0),ne(0),ne(0),er("mp4-muxer-hdlr",!0)]),AD=e=>Ct("minf",null,[e.info.type==="video"?wD():SD(),CD(),LD(e)]),wD=()=>st("vmhd",0,1,[Qe(0),Qe(0),Qe(0),Qe(0)]),SD=()=>st("smhd",0,0,[Qe(0),Qe(0)]),CD=()=>Ct("dinf",null,[ID()]),ID=()=>st("dref",0,0,[ne(1)],[kD()]),kD=()=>st("url ",0,1),LD=e=>{let t=e.compositionTimeOffsetTable.length>1||e.compositionTimeOffsetTable.some(a=>a.sampleCompositionTimeOffset!==0);return Ct("stbl",null,[ED(e),VD(e),UD(e),GD(e),WD(e),jD(e),t?qD(e):null])},ED=e=>st("stsd",0,0,[ne(1)],[e.info.type==="video"?TD(r4[e.info.codec],e):FD(o4[e.info.codec],e)]),TD=(e,t)=>Ct(e,[Array(6).fill(0),Qe(1),Qe(0),Qe(0),Array(12).fill(0),Qe(t.info.width),Qe(t.info.height),ne(4718592),ne(4718592),ne(0),Qe(1),Array(32).fill(0),Qe(24),dD(65535)],[n4[t.info.codec](t),t.info.decoderConfig.colorSpace?MD(t):null]),RD={bt709:1,bt470bg:5,smpte170m:6},PD={bt709:1,smpte170m:6,"iec61966-2-1":13},ND={rgb:0,bt709:1,bt470bg:5,smpte170m:6},MD=e=>Ct("colr",[er("nclx"),Qe(RD[e.info.decoderConfig.colorSpace.primaries]),Qe(PD[e.info.decoderConfig.colorSpace.transfer]),Qe(ND[e.info.decoderConfig.colorSpace.matrix]),Nt((e.info.decoderConfig.colorSpace.fullRange?1:0)<<7)]),DD=e=>e.info.decoderConfig&&Ct("avcC",[...new Uint8Array(e.info.decoderConfig.description)]),OD=e=>e.info.decoderConfig&&Ct("hvcC",[...new Uint8Array(e.info.decoderConfig.description)]),_D=e=>{if(!e.info.decoderConfig)return null;let t=e.info.decoderConfig;if(!t.colorSpace)throw new Error("'colorSpace' is required in the decoder config for VP9.");let a=t.codec.split("."),r=Number(a[1]),n=Number(a[2]),s=(Number(a[3])<<4)+(0<<1)+Number(t.colorSpace.fullRange);return st("vpcC",1,0,[Nt(r),Nt(n),Nt(s),Nt(2),Nt(2),Nt(2),Qe(0)])},BD=()=>{let a=(1<<7)+1;return Ct("av1C",[a,0,0,0])},FD=(e,t)=>Ct(e,[Array(6).fill(0),Qe(1),Qe(0),Qe(0),ne(0),Qe(t.info.numberOfChannels),Qe(16),Qe(0),Qe(0),qr(t.info.sampleRate)],[i4[t.info.codec](t)]),HD=e=>{let t=new Uint8Array(e.info.decoderConfig.description);return st("esds",0,0,[ne(58753152),Nt(32+t.byteLength),Qe(1),Nt(0),ne(75530368),Nt(18+t.byteLength),Nt(64),Nt(21),qS(0),ne(130071),ne(130071),ne(92307584),Nt(t.byteLength),...t,ne(109084800),Nt(1),Nt(2)])},zD=e=>{let t=3840,a=0,r=e.info.decoderConfig?.description;if(r){if(r.byteLength<18)throw new TypeError("Invalid decoder description provided for Opus; must be at least 18 bytes long.");let n=ArrayBuffer.isView(r)?new DataView(r.buffer,r.byteOffset,r.byteLength):new DataView(r);t=n.getUint16(10,!0),a=n.getInt16(14,!0)}return Ct("dOps",[Nt(0),Nt(e.info.numberOfChannels),Qe(t),ne(e.info.sampleRate),Mg(a),Nt(0)])},VD=e=>st("stts",0,0,[ne(e.timeToSampleTable.length),e.timeToSampleTable.map(t=>[ne(t.sampleCount),ne(t.sampleDelta)])]),UD=e=>{if(e.samples.every(a=>a.type==="key"))return null;let t=[...e.samples.entries()].filter(([,a])=>a.type==="key");return st("stss",0,0,[ne(t.length),t.map(([a])=>ne(a+1))])},GD=e=>st("stsc",0,0,[ne(e.compactlyCodedChunkTable.length),e.compactlyCodedChunkTable.map(t=>[ne(t.firstChunk),ne(t.samplesPerChunk),ne(1)])]),WD=e=>st("stsz",0,0,[ne(0),ne(e.samples.length),e.samples.map(t=>ne(t.size))]),jD=e=>e.finalizedChunks.length>0&&Sd(e.finalizedChunks).offset>=2**32?st("co64",0,0,[ne(e.finalizedChunks.length),e.finalizedChunks.map(t=>ri(t.offset))]):st("stco",0,0,[ne(e.finalizedChunks.length),e.finalizedChunks.map(t=>ne(t.offset))]),qD=e=>st("ctts",0,0,[ne(e.compositionTimeOffsetTable.length),e.compositionTimeOffsetTable.map(t=>[ne(t.sampleCount),ne(t.sampleCompositionTimeOffset)])]),KD=e=>Ct("mvex",null,e.map(QD)),QD=e=>st("trex",0,0,[ne(e.id),ne(1),ne(0),ne(0),ne(0)]),jS=(e,t)=>Ct("moof",null,[YD(e),...t.map(JD)]),YD=e=>st("mfhd",0,0,[ne(e)]),JS=e=>{let t=0,a=0,r=0,n=0,o=e.type==="delta";return a|=+o,o?t|=1:t|=2,t<<24|a<<16|r<<8|n},JD=e=>Ct("traf",null,[$D(e),ZD(e),XD(e)]),$D=e=>{let t=0;t|=8,t|=16,t|=32,t|=131072;let a=e.currentChunk.samples[1]??e.currentChunk.samples[0],r={duration:a.timescaleUnitsToNextSample,size:a.size,flags:JS(a)};return st("tfhd",0,t,[ne(e.id),ne(r.duration),ne(r.size),ne(r.flags)])},ZD=e=>st("tfdt",1,0,[ri(Kr(e.currentChunk.startTimestamp,e.timescale))]),XD=e=>{let t=e.currentChunk.samples.map(m=>m.timescaleUnitsToNextSample),a=e.currentChunk.samples.map(m=>m.size),r=e.currentChunk.samples.map(JS),n=e.currentChunk.samples.map(m=>Kr(m.presentationTimestamp-m.decodeTimestamp,e.timescale)),o=new Set(t),i=new Set(a),s=new Set(r),u=new Set(n),l=s.size===2&&r[0]!==r[1],c=o.size>1,d=i.size>1,f=!l&&s.size>1,p=u.size>1||[...u].some(m=>m!==0),g=0;return g|=1,g|=4*+l,g|=256*+c,g|=512*+d,g|=1024*+f,g|=2048*+p,st("trun",1,g,[ne(e.currentChunk.samples.length),ne(e.currentChunk.offset-e.currentChunk.moofOffset||0),l?ne(r[0]):[],e.currentChunk.samples.map((m,x)=>[c?ne(t[x]):[],d?ne(a[x]):[],f?ne(r[x]):[],p?fD(n[x]):[]])])},e4=e=>Ct("mfra",null,[...e.map(t4),a4()]),t4=(e,t)=>st("tfra",1,0,[ne(e.id),ne(63),ne(e.finalizedChunks.length),e.finalizedChunks.map(r=>[ri(Kr(r.startTimestamp,e.timescale)),ri(r.moofOffset),ne(t+1),ne(1),ne(1)])]),a4=()=>st("mfro",0,0,[ne(0)]),r4={avc:"avc1",hevc:"hvc1",vp9:"vp09",av1:"av01"},n4={avc:DD,hevc:OD,vp9:_D,av1:BD},o4={aac:"mp4a",opus:"Opus"},i4={aac:HD,opus:zD};var Td=class{},Og=class extends Td{constructor(){super(...arguments),this.buffer=null}},$S=class extends Td{constructor(e){if(super(),this.options=e,typeof e!="object")throw new TypeError("StreamTarget requires an options object to be passed to its constructor.");if(e.onData){if(typeof e.onData!="function")throw new TypeError("options.onData, when provided, must be a function.");if(e.onData.length<2)throw new TypeError("options.onData, when provided, must be a function that takes in at least two arguments (data and position). Ignoring the position argument, which specifies the byte offset at which the data is to be written, can lead to broken outputs.")}if(e.chunked!==void 0&&typeof e.chunked!="boolean")throw new TypeError("options.chunked, when provided, must be a boolean.");if(e.chunkSize!==void 0&&(!Number.isInteger(e.chunkSize)||e.chunkSize<1024))throw new TypeError("options.chunkSize, when provided, must be an integer and not smaller than 1024.")}},s4=class extends Td{constructor(e,t){if(super(),this.stream=e,this.options=t,!(e instanceof FileSystemWritableFileStream))throw new TypeError("FileSystemWritableFileStreamTarget requires a FileSystemWritableFileStream instance.");if(t!==void 0&&typeof t!="object")throw new TypeError("FileSystemWritableFileStreamTarget's options, when provided, must be an object.");if(t&&t.chunkSize!==void 0&&(!Number.isInteger(t.chunkSize)||t.chunkSize<=0))throw new TypeError("options.chunkSize, when provided, must be a positive integer")}},Zo,os,ZS=class{constructor(){this.pos=0,Te(this,Zo,new Uint8Array(8)),Te(this,os,new DataView(k(this,Zo).buffer)),this.offsets=new WeakMap}seek(e){this.pos=e}writeU32(e){k(this,os).setUint32(0,e,!1),this.write(k(this,Zo).subarray(0,4))}writeU64(e){k(this,os).setUint32(0,Math.floor(e/2**32),!1),k(this,os).setUint32(4,e,!1),this.write(k(this,Zo).subarray(0,8))}writeAscii(e){for(let t=0;t<e.length;t++)k(this,os).setUint8(t%8,e.charCodeAt(t)),t%8===7&&this.write(k(this,Zo));e.length%8!==0&&this.write(k(this,Zo).subarray(0,e.length%8))}writeBox(e){if(this.offsets.set(e,this.pos),e.contents&&!e.children)this.writeBoxHeader(e,e.size??e.contents.byteLength+8),this.write(e.contents);else{let t=this.pos;if(this.writeBoxHeader(e,0),e.contents&&this.write(e.contents),e.children)for(let n of e.children)n&&this.writeBox(n);let a=this.pos,r=e.size??a-t;this.seek(t),this.writeBoxHeader(e,r),this.seek(a)}}writeBoxHeader(e,t){this.writeU32(e.largeSize?1:t),this.writeAscii(e.type),e.largeSize&&this.writeU64(t)}measureBoxHeader(e){return 8+(e.largeSize?8:0)}patchBox(e){let t=this.pos;this.seek(this.offsets.get(e)),this.writeBox(e),this.seek(t)}measureBox(e){if(e.contents&&!e.children)return this.measureBoxHeader(e)+e.contents.byteLength;{let t=this.measureBoxHeader(e);if(e.contents&&(t+=e.contents.byteLength),e.children)for(let a of e.children)a&&(t+=this.measureBox(a));return t}}};Zo=new WeakMap;os=new WeakMap;var vd,ai,Yu,Uu,yd,Cg,u4=class extends ZS{constructor(e){super(),Te(this,yd),Te(this,vd,void 0),Te(this,ai,new ArrayBuffer(2**16)),Te(this,Yu,new Uint8Array(k(this,ai))),Te(this,Uu,0),Bt(this,vd,e)}write(e){ze(this,yd,Cg).call(this,this.pos+e.byteLength),k(this,Yu).set(e,this.pos),this.pos+=e.byteLength,Bt(this,Uu,Math.max(k(this,Uu),this.pos))}finalize(){ze(this,yd,Cg).call(this,this.pos),k(this,vd).buffer=k(this,ai).slice(0,Math.max(k(this,Uu),this.pos))}};vd=new WeakMap;ai=new WeakMap;Yu=new WeakMap;Uu=new WeakMap;yd=new WeakSet;Cg=function(e){let t=k(this,ai).byteLength;for(;t<e;)t*=2;if(t===k(this,ai).byteLength)return;let a=new ArrayBuffer(t),r=new Uint8Array(a);r.set(k(this,Yu),0),Bt(this,ai,a),Bt(this,Yu,r)};var l4=2**24,c4=2,ju,Xo,Gu,Sn,Ua,Cd,Ig,_g,XS,Bg,e1,qu,Id,Fg=class extends ZS{constructor(e){super(),Te(this,Cd),Te(this,_g),Te(this,Bg),Te(this,qu),Te(this,ju,void 0),Te(this,Xo,[]),Te(this,Gu,void 0),Te(this,Sn,void 0),Te(this,Ua,[]),Bt(this,ju,e),Bt(this,Gu,e.options?.chunked??!1),Bt(this,Sn,e.options?.chunkSize??l4)}write(e){k(this,Xo).push({data:e.slice(),start:this.pos}),this.pos+=e.byteLength}flush(){if(k(this,Xo).length===0)return;let e=[],t=[...k(this,Xo)].sort((a,r)=>a.start-r.start);e.push({start:t[0].start,size:t[0].data.byteLength});for(let a=1;a<t.length;a++){let r=e[e.length-1],n=t[a];n.start<=r.start+r.size?r.size=Math.max(r.size,n.start+n.data.byteLength-r.start):e.push({start:n.start,size:n.data.byteLength})}for(let a of e){a.data=new Uint8Array(a.size);for(let r of k(this,Xo))a.start<=r.start&&r.start<a.start+a.size&&a.data.set(r.data,r.start-a.start);k(this,Gu)?(ze(this,Cd,Ig).call(this,a.data,a.start),ze(this,qu,Id).call(this)):k(this,ju).options.onData?.(a.data,a.start)}k(this,Xo).length=0}finalize(){k(this,Gu)&&ze(this,qu,Id).call(this,!0)}};ju=new WeakMap;Xo=new WeakMap;Gu=new WeakMap;Sn=new WeakMap;Ua=new WeakMap;Cd=new WeakSet;Ig=function(e,t){let a=k(this,Ua).findIndex(s=>s.start<=t&&t<s.start+k(this,Sn));a===-1&&(a=ze(this,Bg,e1).call(this,t));let r=k(this,Ua)[a],n=t-r.start,o=e.subarray(0,Math.min(k(this,Sn)-n,e.byteLength));r.data.set(o,n);let i={start:n,end:n+o.byteLength};if(ze(this,_g,XS).call(this,r,i),r.written[0].start===0&&r.written[0].end===k(this,Sn)&&(r.shouldFlush=!0),k(this,Ua).length>c4){for(let s=0;s<k(this,Ua).length-1;s++)k(this,Ua)[s].shouldFlush=!0;ze(this,qu,Id).call(this)}o.byteLength<e.byteLength&&ze(this,Cd,Ig).call(this,e.subarray(o.byteLength),t+o.byteLength)};_g=new WeakSet;XS=function(e,t){let a=0,r=e.written.length-1,n=-1;for(;a<=r;){let o=Math.floor(a+(r-a+1)/2);e.written[o].start<=t.start?(a=o+1,n=o):r=o-1}for(e.written.splice(n+1,0,t),(n===-1||e.written[n].end<t.start)&&n++;n<e.written.length-1&&e.written[n].end>=e.written[n+1].start;)e.written[n].end=Math.max(e.written[n].end,e.written[n+1].end),e.written.splice(n+1,1)};Bg=new WeakSet;e1=function(e){let a={start:Math.floor(e/k(this,Sn))*k(this,Sn),data:new Uint8Array(k(this,Sn)),written:[],shouldFlush:!1};return k(this,Ua).push(a),k(this,Ua).sort((r,n)=>r.start-n.start),k(this,Ua).indexOf(a)};qu=new WeakSet;Id=function(e=!1){for(let t=0;t<k(this,Ua).length;t++){let a=k(this,Ua)[t];if(!(!a.shouldFlush&&!e)){for(let r of a.written)k(this,ju).options.onData?.(a.data.subarray(r.start,r.end),a.start+r.start);k(this,Ua).splice(t--,1)}}};var d4=class extends Fg{constructor(e){super(new $S({onData:(t,a)=>e.stream.write({type:"write",data:t,position:a}),chunked:!0,chunkSize:e.options?.chunkSize}))}},kg=1e3,f4=["avc","hevc","vp9","av1"],p4=["aac","opus"],m4=2082844800,h4=["strict","offset","cross-track-offset"],he,we,kd,Va,Yt,_t,is,ss,Hg,ei,ti,Ku,Lg,t1,Eg,a1,zg,r1,Tg,n1,Vg,o1,Ad,Rg,jr,wn,Ug,i1,Qu,Ld,Ed,Gg,ls,Ju,wd,Pg,s1=class{constructor(e){if(Te(this,Lg),Te(this,Eg),Te(this,zg),Te(this,Tg),Te(this,Vg),Te(this,Ad),Te(this,jr),Te(this,Ug),Te(this,Qu),Te(this,Ed),Te(this,ls),Te(this,wd),Te(this,he,void 0),Te(this,we,void 0),Te(this,kd,void 0),Te(this,Va,void 0),Te(this,Yt,null),Te(this,_t,null),Te(this,is,Math.floor(Date.now()/1e3)+m4),Te(this,ss,[]),Te(this,Hg,1),Te(this,ei,[]),Te(this,ti,[]),Te(this,Ku,!1),ze(this,Lg,t1).call(this,e),e.video=Wu(e.video),e.audio=Wu(e.audio),e.fastStart=Wu(e.fastStart),this.target=e.target,Bt(this,he,{firstTimestampBehavior:"strict",...e}),e.target instanceof Og)Bt(this,we,new u4(e.target));else if(e.target instanceof $S)Bt(this,we,new Fg(e.target));else if(e.target instanceof s4)Bt(this,we,new d4(e.target));else throw new Error(`Invalid target: ${e.target}`);ze(this,Tg,n1).call(this),ze(this,Eg,a1).call(this)}addVideoChunk(e,t,a,r){if(!(e instanceof EncodedVideoChunk))throw new TypeError("addVideoChunk's first argument (sample) must be of type EncodedVideoChunk.");if(t&&typeof t!="object")throw new TypeError("addVideoChunk's second argument (meta), when provided, must be an object.");if(a!==void 0&&(!Number.isFinite(a)||a<0))throw new TypeError("addVideoChunk's third argument (timestamp), when provided, must be a non-negative real number.");if(r!==void 0&&!Number.isFinite(r))throw new TypeError("addVideoChunk's fourth argument (compositionTimeOffset), when provided, must be a real number.");let n=new Uint8Array(e.byteLength);e.copyTo(n),this.addVideoChunkRaw(n,e.type,a??e.timestamp,e.duration,t,r)}addVideoChunkRaw(e,t,a,r,n,o){if(!(e instanceof Uint8Array))throw new TypeError("addVideoChunkRaw's first argument (data) must be an instance of Uint8Array.");if(t!=="key"&&t!=="delta")throw new TypeError("addVideoChunkRaw's second argument (type) must be either 'key' or 'delta'.");if(!Number.isFinite(a)||a<0)throw new TypeError("addVideoChunkRaw's third argument (timestamp) must be a non-negative real number.");if(!Number.isFinite(r)||r<0)throw new TypeError("addVideoChunkRaw's fourth argument (duration) must be a non-negative real number.");if(n&&typeof n!="object")throw new TypeError("addVideoChunkRaw's fifth argument (meta), when provided, must be an object.");if(o!==void 0&&!Number.isFinite(o))throw new TypeError("addVideoChunkRaw's sixth argument (compositionTimeOffset), when provided, must be a real number.");if(ze(this,wd,Pg).call(this),!k(this,he).video)throw new Error("No video track declared.");if(typeof k(this,he).fastStart=="object"&&k(this,Yt).samples.length===k(this,he).fastStart.expectedVideoChunks)throw new Error(`Cannot add more video chunks than specified in 'fastStart' (${k(this,he).fastStart.expectedVideoChunks}).`);let i=ze(this,Ad,Rg).call(this,k(this,Yt),e,t,a,r,n,o);if(k(this,he).fastStart==="fragmented"&&k(this,_t)){for(;k(this,ti).length>0&&k(this,ti)[0].decodeTimestamp<=i.decodeTimestamp;){let s=k(this,ti).shift();ze(this,jr,wn).call(this,k(this,_t),s)}i.decodeTimestamp<=k(this,_t).lastDecodeTimestamp?ze(this,jr,wn).call(this,k(this,Yt),i):k(this,ei).push(i)}else ze(this,jr,wn).call(this,k(this,Yt),i)}addAudioChunk(e,t,a){if(!(e instanceof EncodedAudioChunk))throw new TypeError("addAudioChunk's first argument (sample) must be of type EncodedAudioChunk.");if(t&&typeof t!="object")throw new TypeError("addAudioChunk's second argument (meta), when provided, must be an object.");if(a!==void 0&&(!Number.isFinite(a)||a<0))throw new TypeError("addAudioChunk's third argument (timestamp), when provided, must be a non-negative real number.");let r=new Uint8Array(e.byteLength);e.copyTo(r),this.addAudioChunkRaw(r,e.type,a??e.timestamp,e.duration,t)}addAudioChunkRaw(e,t,a,r,n){if(!(e instanceof Uint8Array))throw new TypeError("addAudioChunkRaw's first argument (data) must be an instance of Uint8Array.");if(t!=="key"&&t!=="delta")throw new TypeError("addAudioChunkRaw's second argument (type) must be either 'key' or 'delta'.");if(!Number.isFinite(a)||a<0)throw new TypeError("addAudioChunkRaw's third argument (timestamp) must be a non-negative real number.");if(!Number.isFinite(r)||r<0)throw new TypeError("addAudioChunkRaw's fourth argument (duration) must be a non-negative real number.");if(n&&typeof n!="object")throw new TypeError("addAudioChunkRaw's fifth argument (meta), when provided, must be an object.");if(ze(this,wd,Pg).call(this),!k(this,he).audio)throw new Error("No audio track declared.");if(typeof k(this,he).fastStart=="object"&&k(this,_t).samples.length===k(this,he).fastStart.expectedAudioChunks)throw new Error(`Cannot add more audio chunks than specified in 'fastStart' (${k(this,he).fastStart.expectedAudioChunks}).`);let o=ze(this,Ad,Rg).call(this,k(this,_t),e,t,a,r,n);if(k(this,he).fastStart==="fragmented"&&k(this,Yt)){for(;k(this,ei).length>0&&k(this,ei)[0].decodeTimestamp<=o.decodeTimestamp;){let i=k(this,ei).shift();ze(this,jr,wn).call(this,k(this,Yt),i)}o.decodeTimestamp<=k(this,Yt).lastDecodeTimestamp?ze(this,jr,wn).call(this,k(this,_t),o):k(this,ti).push(o)}else ze(this,jr,wn).call(this,k(this,_t),o)}finalize(){if(k(this,Ku))throw new Error("Cannot finalize a muxer more than once.");if(k(this,he).fastStart==="fragmented"){for(let t of k(this,ei))ze(this,jr,wn).call(this,k(this,Yt),t);for(let t of k(this,ti))ze(this,jr,wn).call(this,k(this,_t),t);ze(this,Ed,Gg).call(this,!1)}else k(this,Yt)&&ze(this,Qu,Ld).call(this,k(this,Yt)),k(this,_t)&&ze(this,Qu,Ld).call(this,k(this,_t));let e=[k(this,Yt),k(this,_t)].filter(Boolean);if(k(this,he).fastStart==="in-memory"){let t;for(let r=0;r<2;r++){let n=xd(e,k(this,is)),o=k(this,we).measureBox(n);t=k(this,we).measureBox(k(this,Va));let i=k(this,we).pos+o+t;for(let s of k(this,ss)){s.offset=i;for(let{data:u}of s.samples)i+=u.byteLength,t+=u.byteLength}if(i<2**32)break;t>=2**32&&(k(this,Va).largeSize=!0)}let a=xd(e,k(this,is));k(this,we).writeBox(a),k(this,Va).size=t,k(this,we).writeBox(k(this,Va));for(let r of k(this,ss))for(let n of r.samples)k(this,we).write(n.data),n.data=null}else if(k(this,he).fastStart==="fragmented"){let t=k(this,we).pos,a=e4(e);k(this,we).writeBox(a);let r=k(this,we).pos-t;k(this,we).seek(k(this,we).pos-4),k(this,we).writeU32(r)}else{let t=k(this,we).offsets.get(k(this,Va)),a=k(this,we).pos-t;k(this,Va).size=a,k(this,Va).largeSize=a>=2**32,k(this,we).patchBox(k(this,Va));let r=xd(e,k(this,is));if(typeof k(this,he).fastStart=="object"){k(this,we).seek(k(this,kd)),k(this,we).writeBox(r);let n=t-k(this,we).pos;k(this,we).writeBox(mD(n))}else k(this,we).writeBox(r)}ze(this,ls,Ju).call(this),k(this,we).finalize(),Bt(this,Ku,!0)}};he=new WeakMap;we=new WeakMap;kd=new WeakMap;Va=new WeakMap;Yt=new WeakMap;_t=new WeakMap;is=new WeakMap;ss=new WeakMap;Hg=new WeakMap;ei=new WeakMap;ti=new WeakMap;Ku=new WeakMap;Lg=new WeakSet;t1=function(e){if(typeof e!="object")throw new TypeError("The muxer requires an options object to be passed to its constructor.");if(!(e.target instanceof Td))throw new TypeError("The target must be provided and an instance of Target.");if(e.video){if(!f4.includes(e.video.codec))throw new TypeError(`Unsupported video codec: ${e.video.codec}`);if(!Number.isInteger(e.video.width)||e.video.width<=0)throw new TypeError(`Invalid video width: ${e.video.width}. Must be a positive integer.`);if(!Number.isInteger(e.video.height)||e.video.height<=0)throw new TypeError(`Invalid video height: ${e.video.height}. Must be a positive integer.`);let t=e.video.rotation;if(typeof t=="number"&&![0,90,180,270].includes(t))throw new TypeError(`Invalid video rotation: ${t}. Has to be 0, 90, 180 or 270.`);if(Array.isArray(t)&&(t.length!==9||t.some(a=>typeof a!="number")))throw new TypeError(`Invalid video transformation matrix: ${t.join()}`);if(e.video.frameRate!==void 0&&(!Number.isInteger(e.video.frameRate)||e.video.frameRate<=0))throw new TypeError(`Invalid video frame rate: ${e.video.frameRate}. Must be a positive integer.`)}if(e.audio){if(!p4.includes(e.audio.codec))throw new TypeError(`Unsupported audio codec: ${e.audio.codec}`);if(!Number.isInteger(e.audio.numberOfChannels)||e.audio.numberOfChannels<=0)throw new TypeError(`Invalid number of audio channels: ${e.audio.numberOfChannels}. Must be a positive integer.`);if(!Number.isInteger(e.audio.sampleRate)||e.audio.sampleRate<=0)throw new TypeError(`Invalid audio sample rate: ${e.audio.sampleRate}. Must be a positive integer.`)}if(e.firstTimestampBehavior&&!h4.includes(e.firstTimestampBehavior))throw new TypeError(`Invalid first timestamp behavior: ${e.firstTimestampBehavior}`);if(typeof e.fastStart=="object"){if(e.video){if(e.fastStart.expectedVideoChunks===void 0)throw new TypeError("'fastStart' is an object but is missing property 'expectedVideoChunks'.");if(!Number.isInteger(e.fastStart.expectedVideoChunks)||e.fastStart.expectedVideoChunks<0)throw new TypeError("'expectedVideoChunks' must be a non-negative integer.")}if(e.audio){if(e.fastStart.expectedAudioChunks===void 0)throw new TypeError("'fastStart' is an object but is missing property 'expectedAudioChunks'.");if(!Number.isInteger(e.fastStart.expectedAudioChunks)||e.fastStart.expectedAudioChunks<0)throw new TypeError("'expectedAudioChunks' must be a non-negative integer.")}}else if(![!1,"in-memory","fragmented"].includes(e.fastStart))throw new TypeError("'fastStart' option must be false, 'in-memory', 'fragmented' or an object.");if(e.minFragmentDuration!==void 0&&(!Number.isFinite(e.minFragmentDuration)||e.minFragmentDuration<0))throw new TypeError("'minFragmentDuration' must be a non-negative number.")};Eg=new WeakSet;a1=function(){if(k(this,we).writeBox(pD({holdsAvc:k(this,he).video?.codec==="avc",fragmented:k(this,he).fastStart==="fragmented"})),Bt(this,kd,k(this,we).pos),k(this,he).fastStart==="in-memory")Bt(this,Va,Sg(!1));else if(k(this,he).fastStart!=="fragmented"){if(typeof k(this,he).fastStart=="object"){let e=ze(this,zg,r1).call(this);k(this,we).seek(k(this,we).pos+e)}Bt(this,Va,Sg(!0)),k(this,we).writeBox(k(this,Va))}ze(this,ls,Ju).call(this)};zg=new WeakSet;r1=function(){if(typeof k(this,he).fastStart!="object")return;let e=0,t=[k(this,he).fastStart.expectedVideoChunks,k(this,he).fastStart.expectedAudioChunks];for(let a of t)a&&(e+=8*Math.ceil(2/3*a),e+=4*a,e+=12*Math.ceil(2/3*a),e+=4*a,e+=8*a);return e+=4096,e};Tg=new WeakSet;n1=function(){if(k(this,he).video&&Bt(this,Yt,{id:1,info:{type:"video",codec:k(this,he).video.codec,width:k(this,he).video.width,height:k(this,he).video.height,rotation:k(this,he).video.rotation??0,decoderConfig:null},timescale:k(this,he).video.frameRate??57600,samples:[],finalizedChunks:[],currentChunk:null,firstDecodeTimestamp:void 0,lastDecodeTimestamp:-1,timeToSampleTable:[],compositionTimeOffsetTable:[],lastTimescaleUnits:null,lastSample:null,compactlyCodedChunkTable:[]}),k(this,he).audio&&(Bt(this,_t,{id:k(this,he).video?2:1,info:{type:"audio",codec:k(this,he).audio.codec,numberOfChannels:k(this,he).audio.numberOfChannels,sampleRate:k(this,he).audio.sampleRate,decoderConfig:null},timescale:k(this,he).audio.sampleRate,samples:[],finalizedChunks:[],currentChunk:null,firstDecodeTimestamp:void 0,lastDecodeTimestamp:-1,timeToSampleTable:[],compositionTimeOffsetTable:[],lastTimescaleUnits:null,lastSample:null,compactlyCodedChunkTable:[]}),k(this,he).audio.codec==="aac")){let e=ze(this,Vg,o1).call(this,2,k(this,he).audio.sampleRate,k(this,he).audio.numberOfChannels);k(this,_t).info.decoderConfig={codec:k(this,he).audio.codec,description:e,numberOfChannels:k(this,he).audio.numberOfChannels,sampleRate:k(this,he).audio.sampleRate}}};Vg=new WeakSet;o1=function(e,t,a){let n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350].indexOf(t),o=a,i="";i+=e.toString(2).padStart(5,"0"),i+=n.toString(2).padStart(4,"0"),n===15&&(i+=t.toString(2).padStart(24,"0")),i+=o.toString(2).padStart(4,"0");let s=Math.ceil(i.length/8)*8;i=i.padEnd(s,"0");let u=new Uint8Array(i.length/8);for(let l=0;l<i.length;l+=8)u[l/8]=parseInt(i.slice(l,l+8),2);return u};Ad=new WeakSet;Rg=function(e,t,a,r,n,o,i){let s=r/1e6,u=(r-(i??0))/1e6,l=n/1e6,c=ze(this,Ug,i1).call(this,s,u,e);return s=c.presentationTimestamp,u=c.decodeTimestamp,o?.decoderConfig&&(e.info.decoderConfig===null?e.info.decoderConfig=o.decoderConfig:Object.assign(e.info.decoderConfig,o.decoderConfig)),{presentationTimestamp:s,decodeTimestamp:u,duration:l,data:t,size:t.byteLength,type:a,timescaleUnitsToNextSample:Kr(l,e.timescale)}};jr=new WeakSet;wn=function(e,t){k(this,he).fastStart!=="fragmented"&&e.samples.push(t);let a=Kr(t.presentationTimestamp-t.decodeTimestamp,e.timescale);if(e.lastTimescaleUnits!==null){let n=Kr(t.decodeTimestamp,e.timescale,!1),o=Math.round(n-e.lastTimescaleUnits);if(e.lastTimescaleUnits+=o,e.lastSample.timescaleUnitsToNextSample=o,k(this,he).fastStart!=="fragmented"){let i=Sd(e.timeToSampleTable);i.sampleCount===1?(i.sampleDelta=o,i.sampleCount++):i.sampleDelta===o?i.sampleCount++:(i.sampleCount--,e.timeToSampleTable.push({sampleCount:2,sampleDelta:o}));let s=Sd(e.compositionTimeOffsetTable);s.sampleCompositionTimeOffset===a?s.sampleCount++:e.compositionTimeOffsetTable.push({sampleCount:1,sampleCompositionTimeOffset:a})}}else e.lastTimescaleUnits=0,k(this,he).fastStart!=="fragmented"&&(e.timeToSampleTable.push({sampleCount:1,sampleDelta:Kr(t.duration,e.timescale)}),e.compositionTimeOffsetTable.push({sampleCount:1,sampleCompositionTimeOffset:a}));e.lastSample=t;let r=!1;if(!e.currentChunk)r=!0;else{let n=t.presentationTimestamp-e.currentChunk.startTimestamp;if(k(this,he).fastStart==="fragmented"){let o=k(this,Yt)??k(this,_t),i=k(this,he).minFragmentDuration??1;e===o&&t.type==="key"&&n>=i&&(r=!0,ze(this,Ed,Gg).call(this))}else r=n>=.5}r&&(e.currentChunk&&ze(this,Qu,Ld).call(this,e),e.currentChunk={startTimestamp:t.presentationTimestamp,samples:[]}),e.currentChunk.samples.push(t)};Ug=new WeakSet;i1=function(e,t,a){let r=k(this,he).firstTimestampBehavior==="strict",n=a.lastDecodeTimestamp===-1;if(r&&n&&t!==0)throw new Error(`The first chunk for your media track must have a timestamp of 0 (received DTS=${t}).Non-zero first timestamps are often caused by directly piping frames or audio data from a MediaStreamTrack into the encoder. Their timestamps are typically relative to the age of thedocument, which is probably what you want.
43
54
 
44
55
  If you want to offset all timestamps of a track such that the first one is zero, set firstTimestampBehavior: 'offset' in the options.
45
- `);if(y(this,ee).firstTimestampBehavior==="offset"||y(this,ee).firstTimestampBehavior==="cross-track-offset"){a.firstDecodeTimestamp===void 0&&(a.firstDecodeTimestamp=t);let i;y(this,ee).firstTimestampBehavior==="offset"?i=a.firstDecodeTimestamp:i=Math.min(y(this,Ue)?.firstDecodeTimestamp??1/0,y(this,Be)?.firstDecodeTimestamp??1/0),t-=i,e-=i}if(t<a.lastDecodeTimestamp)throw new Error(`Timestamps must be monotonically increasing (DTS went from ${a.lastDecodeTimestamp*1e6} to ${t*1e6}).`);return a.lastDecodeTimestamp=t,{presentationTimestamp:e,decodeTimestamp:t}};ur=new WeakSet;Sn=function(e){if(y(this,ee).fastStart==="fragmented")throw new Error("Can't finalize individual chunks if 'fastStart' is set to 'fragmented'.");if(e.currentChunk){if(e.finalizedChunks.push(e.currentChunk),y(this,vo).push(e.currentChunk),(e.compactlyCodedChunkTable.length===0||bn(e.compactlyCodedChunkTable).samplesPerChunk!==e.currentChunk.samples.length)&&e.compactlyCodedChunkTable.push({firstChunk:e.finalizedChunks.length,samplesPerChunk:e.currentChunk.samples.length}),y(this,ee).fastStart==="in-memory"){e.currentChunk.offset=0;return}e.currentChunk.offset=y(this,re).pos;for(let t of e.currentChunk.samples)y(this,re).write(t.data),t.data=null;he(this,bo,fr).call(this)}};Ln=new WeakSet;Ds=function(e=!0){if(y(this,ee).fastStart!=="fragmented")throw new Error("Can't finalize a fragment unless 'fastStart' is set to 'fragmented'.");let t=[y(this,Ue),y(this,Be)].filter(s=>s&&s.currentChunk);if(t.length===0)return;let a=Jb(this,Ps)._++;if(a===1){let s=mn(t,y(this,ho),!0);y(this,re).writeBox(s)}let o=y(this,re).pos,r=jf(a,t);y(this,re).writeBox(r);{let s=fs(!1),l=0;for(let u of t)for(let c of u.currentChunk.samples)l+=c.size;let d=y(this,re).measureBox(s)+l;d>=2**32&&(s.largeSize=!0,d=y(this,re).measureBox(s)+l),s.size=d,y(this,re).writeBox(s)}for(let s of t){s.currentChunk.offset=y(this,re).pos,s.currentChunk.moofOffset=o;for(let l of s.currentChunk.samples)y(this,re).write(l.data),l.data=null}let n=y(this,re).pos;y(this,re).seek(y(this,re).offsets.get(r));let i=jf(a,t);y(this,re).writeBox(i),y(this,re).seek(n);for(let s of t)s.finalizedChunks.push(s.currentChunk),y(this,vo).push(s.currentChunk),s.currentChunk=null;e&&he(this,bo,fr).call(this)};bo=new WeakSet;fr=function(){y(this,re)instanceof Rs&&y(this,re).flush()};xn=new WeakSet;ws=function(){if(y(this,dr))throw new Error("Cannot add new video or audio chunks after the file has been finalized.")};function zs(){return typeof window<"u"&&"VideoEncoder"in window&&"VideoFrame"in window}async function oy(e,t,a,o){for(var r=["avc1.640028","avc1.4D0028","avc1.42E01E","avc1.42001f"],n=0;n<r.length;n++)try{var i=await VideoEncoder.isConfigSupported({codec:r[n],width:e,height:t,bitrate:o,framerate:a});if(i&&i.supported)return r[n]}catch{}return null}async function sp(e,t,a){if(t=t||{},!zs())throw new Error("\u8FD9\u4E2A\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 WebCodecs\uFF08\u8BF7\u7528\u8F83\u65B0\u7684 Chrome/Edge\uFF09\u3002");var o=t.fps||e.fps||30,r=Math.round((e.w||1280)*(t.scale||1)),n=Math.round((e.h||720)*(t.scale||1));r%2&&r++,n%2&&n++;var i=t.bitrate||Math.min(24e6,Math.max(2e6,Math.round(r*n*o*.2))),s=await oy(r,n,o,i);if(!s)throw new Error("\u8FD9\u4E2A\u8BBE\u5907\u65E0\u6CD5\u7528 WebCodecs \u7F16\u7801 H.264\u3002");var l=e.duration(),d=Math.max(1,Math.round(l*o)),u=document.createElement("canvas");u.width=r,u.height=n;var c=u.getContext("2d",{alpha:!1}),m=r/(e.w||r),h=n/(e.h||n),x=new ip({target:new Ls,video:{codec:"avc",width:r,height:n,frameRate:o},fastStart:"in-memory"}),p=new VideoEncoder({output:function(S,R){x.addVideoChunk(S,R)},error:function(S){throw S}});p.configure({codec:s,width:r,height:n,bitrate:i,framerate:o});for(var g=Math.round(1e6/o),v=0;v<d;v++){var w=v/o;if(e.seekMedia)try{await e.seekMedia(Math.min(w,l))}catch{}c.save(),(m!==1||h!==1)&&c.scale(m,h),e.renderFrame(c,Math.min(w,l)),c.restore();var b=new VideoFrame(u,{timestamp:v*g,duration:g});if(p.encode(b,{keyFrame:v%(o*2)===0}),b.close(),a&&a(v/d),p.encodeQueueSize>8)for(await new Promise(function(S){setTimeout(S,0)});p.encodeQueueSize>4;)await new Promise(function(S){setTimeout(S,4)})}await p.flush(),x.finalize(),a&&a(1);var C=x.target.buffer;return new Blob([C],{type:"video/mp4"})}var lp={add:{en:"Add","zh-Hans":"\u6DFB\u52A0"},addScene:{en:"Add scene","zh-Hans":"\u6DFB\u52A0\u573A\u666F"},allTargets:{en:"All targets","zh-Hans":"\u5168\u90E8\u76EE\u6807"},applyMotion:{en:"Apply motion","zh-Hans":"\u5E94\u7528\u52A8\u6548"},applySelected:{en:"Apply selected","zh-Hans":"\u5E94\u7528\u9009\u4E2D\u9879"},applyToHtml:{en:"Apply to HTML","zh-Hans":"\u5E94\u7528\u5230 HTML"},applyToVideo:{en:"Apply to video","zh-Hans":"\u5E94\u7528\u5230\u89C6\u9891"},appliesToTarget:{en:"applies to {target}","zh-Hans":"\u5E94\u7528\u5230 {target}"},archive:{en:"Archive","zh-Hans":"\u5F52\u6863"},artifact:{en:"Artifact","zh-Hans":"\u4EA7\u7269"},background:{en:"Background","zh-Hans":"\u80CC\u666F"},block:{en:"Block","zh-Hans":"\u5757"},brief:{en:"Brief","zh-Hans":"\u7B80\u4ECB"},card:{en:"Card","zh-Hans":"\u5361\u7247"},clearPath:{en:"Clear path","zh-Hans":"\u6E05\u9664\u8DEF\u5F84"},click:{en:"Click","zh-Hans":"\u70B9\u51FB"},close:{en:"Close","zh-Hans":"\u5173\u95ED"},code:{en:"Code","zh-Hans":"\u4EE3\u7801"},color:{en:"Color","zh-Hans":"\u989C\u8272"},create:{en:"Create","zh-Hans":"\u521B\u5EFA"},createOrSaveBeforeUpload:{en:"Create or save a Motion project before uploading media.","zh-Hans":"\u4E0A\u4F20\u5A92\u4F53\u524D\u8BF7\u5148\u521B\u5EFA\u6216\u4FDD\u5B58 Motion \u9879\u76EE\u3002"},createProject:{en:"Create project","zh-Hans":"\u521B\u5EFA\u9879\u76EE"},createVideo:{en:"Video","zh-Hans":"\u89C6\u9891"},createWeb:{en:"HTML","zh-Hans":"HTML"},currentProject:{en:"Current project","zh-Hans":"\u5F53\u524D\u9879\u76EE"},currentSelector:{en:"current selector","zh-Hans":"\u5F53\u524D\u9009\u62E9\u5668"},circle:{en:"Circle","zh-Hans":"\u5706\u5F62"},delete:{en:"Delete","zh-Hans":"\u5220\u9664"},delay:{en:"Delay","zh-Hans":"\u5EF6\u8FDF"},deviceDesktop:{en:"Desktop","zh-Hans":"\u684C\u9762"},deviceMobile:{en:"Mobile","zh-Hans":"\u624B\u673A"},deviceTablet:{en:"Tablet","zh-Hans":"\u5E73\u677F"},dirtyWarning:{en:"Unsaved edits are open. Save or reload before accepting agent updates.","zh-Hans":"\u5F53\u524D\u6709\u672A\u4FDD\u5B58\u7F16\u8F91\u3002\u4FDD\u5B58\u6216\u91CD\u65B0\u52A0\u8F7D\u540E\u518D\u63A5\u6536 Agent \u66F4\u65B0\u3002"},distance:{en:"Distance","zh-Hans":"\u8DDD\u79BB"},down:{en:"Down","zh-Hans":"\u4E0B\u79FB"},download:{en:"Download","zh-Hans":"\u4E0B\u8F7D"},duration:{en:"Duration","zh-Hans":"\u65F6\u957F"},draft:{en:"Draft","zh-Hans":"\u8349\u7A3F"},dragLayerHint:{en:"Drag a layer to move and keyframe it.","zh-Hans":"\u62D6\u52A8\u56FE\u5C42\u5373\u53EF\u79FB\u52A8\u5E76\u8BB0\u5F55\u5173\u952E\u5E27\u3002"},drawPathHint:{en:"Draw a path, then release to attach it to the selected layer.","zh-Hans":"\u7ED8\u5236\u8DEF\u5F84\uFF0C\u677E\u5F00\u540E\u7ED1\u5B9A\u5230\u9009\u4E2D\u56FE\u5C42\u3002"},editProjectHint:{en:"Create or switch projects from the dialog to keep the canvas focused.","zh-Hans":"\u901A\u8FC7\u5BF9\u8BDD\u6846\u521B\u5EFA\u6216\u5207\u6362\u9879\u76EE\uFF0C\u8BA9\u753B\u5E03\u4FDD\u6301\u805A\u7126\u3002"},export:{en:"Export","zh-Hans":"\u5BFC\u51FA"},exportHistory:{en:"Export history","zh-Hans":"\u5BFC\u51FA\u8BB0\u5F55"},exportHistoryDescription:{en:"Review generated artifacts for the current project and update project status.","zh-Hans":"\u67E5\u770B\u5F53\u524D\u9879\u76EE\u751F\u6210\u7684\u4EA7\u7269\uFF0C\u5E76\u66F4\u65B0\u9879\u76EE\u72B6\u6001\u3002"},exportMp4:{en:"Export MP4","zh-Hans":"\u5BFC\u51FA MP4"},exports:{en:"Exports","zh-Hans":"\u5BFC\u51FA"},filterAllStatuses:{en:"All statuses","zh-Hans":"\u5168\u90E8\u72B6\u6001"},filterAllSurfaces:{en:"All surfaces","zh-Hans":"\u5168\u90E8\u7C7B\u578B"},filterAllTargets:{en:"All targets","zh-Hans":"\u5168\u90E8\u76EE\u6807"},filterBackground:{en:"Background","zh-Hans":"\u80CC\u666F"},filterButton:{en:"Button","zh-Hans":"\u6309\u94AE"},filterCard:{en:"Card","zh-Hans":"\u5361\u7247"},filterImage:{en:"Image","zh-Hans":"\u56FE\u7247"},filterReady:{en:"Ready","zh-Hans":"\u53EF\u7528"},filterText:{en:"Text","zh-Hans":"\u6587\u672C"},filterVideo:{en:"Video","zh-Hans":"\u89C6\u9891"},filterVideoLayer:{en:"Video layer","zh-Hans":"\u89C6\u9891\u56FE\u5C42"},filterWeb:{en:"HTML / web","zh-Hans":"HTML / \u7F51\u9875"},convertedToLayerTemplate:{en:"converted to layer template","zh-Hans":"\u8F6C\u6362\u4E3A\u56FE\u5C42\u6A21\u677F"},firstAvailableLayer:{en:"first available layer","zh-Hans":"\u7B2C\u4E00\u4E2A\u53EF\u7528\u56FE\u5C42"},html:{en:"HTML Workbench","zh-Hans":"HTML \u5DE5\u4F5C\u53F0"},htmlFit:{en:"HTML fit","zh-Hans":"HTML \u9002\u914D"},htmlSaved:{en:"Motion HTML saved","zh-Hans":"Motion HTML \u5DF2\u4FDD\u5B58"},htmlSelection:{en:"HTML selection","zh-Hans":"HTML \u9009\u4E2D\u9879"},htmlTemplates:{en:"HTML templates","zh-Hans":"HTML \u6A21\u677F"},icons:{en:"Icons","zh-Hans":"\u56FE\u6807"},image:{en:"Image","zh-Hans":"\u56FE\u7247"},invalidCompositionJson:{en:"Invalid composition JSON","zh-Hans":"\u89C6\u9891\u7F16\u6392 JSON \u65E0\u6548"},keyframes:{en:"Keyframes","zh-Hans":"\u5173\u952E\u5E27"},keyframeDot:{en:"{properties} keyframe at {time}s","zh-Hans":"{properties} \u5173\u952E\u5E27\uFF0C{time}s"},keyframeLegend:{en:"Keyframe","zh-Hans":"\u5173\u952E\u5E27"},keyframeTimeline:{en:"Layer keyframes","zh-Hans":"\u56FE\u5C42\u5173\u952E\u5E27"},keyframeTimelineHelp:{en:"Each row is one layer. Click a track to seek; diamond points are saved keyframes.","zh-Hans":"\u6BCF\u884C\u5BF9\u5E94\u4E00\u4E2A\u56FE\u5C42\u3002\u70B9\u51FB\u8F68\u9053\u8DF3\u8F6C\u65F6\u95F4\uFF0C\u83F1\u5F62\u70B9\u662F\u5DF2\u8BB0\u5F55\u7684\u5173\u952E\u5E27\u3002"},kineticCharPop:{en:"Char pop","zh-Hans":"\u5B57\u7B26\u5F39\u51FA"},kineticCharRise:{en:"Char rise","zh-Hans":"\u5B57\u7B26\u4E0A\u5347"},kineticNone:{en:"None","zh-Hans":"\u65E0"},kineticText:{en:"Kinetic text","zh-Hans":"\u52A8\u6001\u6587\u5B57"},kineticTypewriter:{en:"Typewriter","zh-Hans":"\u6253\u5B57\u673A"},kineticWordRise:{en:"Word rise","zh-Hans":"\u8BCD\u7EC4\u4E0A\u5347"},layer:{en:"Layer","zh-Hans":"\u56FE\u5C42"},layerWithId:{en:"Layer {id}","zh-Hans":"\u56FE\u5C42 {id}"},layers:{en:"Layers","zh-Hans":"\u56FE\u5C42"},library:{en:"Motion Library","zh-Hans":"\u52A8\u6548\u5E93"},libraryHelp:{en:"Pick a recipe, preview its intent, then apply it to the selected HTML component or video layer.","zh-Hans":"\u9009\u62E9\u52A8\u6548\u914D\u65B9\uFF0C\u9884\u89C8\u610F\u56FE\uFF0C\u7136\u540E\u5E94\u7528\u5230\u9009\u4E2D\u7684 HTML \u7EC4\u4EF6\u6216\u89C6\u9891\u56FE\u5C42\u3002"},line:{en:"Line","zh-Hans":"\u76F4\u7EBF"},loading:{en:"Loading","zh-Hans":"\u52A0\u8F7D\u4E2D"},main:{en:"Main","zh-Hans":"\u4E3B\u753B\u9762"},manageProjects:{en:"Projects","zh-Hans":"\u9879\u76EE"},mediaUploaded:{en:"Motion media uploaded","zh-Hans":"Motion \u5A92\u4F53\u5DF2\u4E0A\u4F20"},mediaUploadNoSource:{en:"Motion media upload returned no source.","zh-Hans":"Motion \u5A92\u4F53\u4E0A\u4F20\u672A\u8FD4\u56DE\u53EF\u7528\u8D44\u6E90\u3002"},mappedFromRecipeIntent:{en:"mapped from recipe intent","zh-Hans":"\u7531\u914D\u65B9\u610F\u56FE\u6620\u5C04"},motion:{en:"Motion","zh-Hans":"Motion"},motionApplied:{en:"Motion attributes applied","zh-Hans":"\u52A8\u6548\u5C5E\u6027\u5DF2\u5E94\u7528"},motionLabel:{en:"Motion","zh-Hans":"\u52A8\u6548"},motionPath:{en:"Motion path","zh-Hans":"\u8FD0\u52A8\u8DEF\u5F84"},motionStyles:{en:"Motion styles","zh-Hans":"\u52A8\u6548\u6837\u5F0F"},motionVersion:{en:"Motion version","zh-Hans":"Motion \u7248\u672C"},mp4Exported:{en:"Motion MP4 exported","zh-Hans":"Motion MP4 \u5DF2\u5BFC\u51FA"},nameMotionPlaceholder:{en:"Name this motion...","zh-Hans":"\u547D\u540D\u8FD9\u4E2A\u52A8\u6548..."},nameStyleFirst:{en:"Name the motion style first.","zh-Hans":"\u8BF7\u5148\u547D\u540D\u52A8\u6548\u6837\u5F0F\u3002"},newProject:{en:"New project","zh-Hans":"\u65B0\u5EFA\u9879\u76EE"},newVideo:{en:"New video","zh-Hans":"\u65B0\u5EFA\u89C6\u9891"},newWeb:{en:"New HTML","zh-Hans":"\u65B0\u5EFA HTML"},nativeVideoRecipe:{en:"native video recipe","zh-Hans":"\u539F\u751F\u89C6\u9891\u914D\u65B9"},nativeWebRecipe:{en:"native web recipe","zh-Hans":"\u539F\u751F\u7F51\u9875\u914D\u65B9"},noExports:{en:"No exports","zh-Hans":"\u6682\u65E0\u5BFC\u51FA"},noKeyframes:{en:"No keyframes","zh-Hans":"\u6682\u65E0\u5173\u952E\u5E27"},noProjects:{en:"No projects","zh-Hans":"\u6682\u65E0\u9879\u76EE"},noRecipes:{en:"No recipes matched the current filters.","zh-Hans":"\u6CA1\u6709\u5339\u914D\u5F53\u524D\u7B5B\u9009\u7684\u52A8\u6548\u914D\u65B9\u3002"},noVersions:{en:"No versions","zh-Hans":"\u6682\u65E0\u7248\u672C"},oneRowPerLayer:{en:"One row per layer; dots are keyframes.","zh-Hans":"\u6BCF\u4E2A\u56FE\u5C42\u4E00\u884C\uFF0C\u5706\u70B9\u8868\u793A\u5173\u952E\u5E27\u3002"},open:{en:"Open","zh-Hans":"\u6253\u5F00"},path:{en:"Path","zh-Hans":"\u8DEF\u5F84"},preview:{en:"Preview","zh-Hans":"\u9884\u89C8"},previewFilmControl:{en:"Film preview","zh-Hans":"\u6574\u7247\u9884\u89C8"},previewFilmHelp:{en:"Play or scrub the whole composition; the canvas reflects this time.","zh-Hans":"\u64AD\u653E\u6216\u62D6\u52A8\u6574\u6BB5\u89C6\u9891\uFF0C\u753B\u5E03\u4F1A\u663E\u793A\u5BF9\u5E94\u65F6\u95F4\u3002"},preset:{en:"Preset","zh-Hans":"\u9884\u8BBE"},properties:{en:"Properties","zh-Hans":"\u5C5E\u6027"},projects:{en:"Projects","zh-Hans":"\u9879\u76EE"},artifactExported:{en:"Motion {kind} exported","zh-Hans":"Motion {kind} \u5DF2\u5BFC\u51FA"},projectCreated:{en:"{title} created","zh-Hans":"{title} \u5DF2\u521B\u5EFA"},projectDialogDescription:{en:"Create a new Motion project or switch to an existing draft.","zh-Hans":"\u521B\u5EFA\u65B0\u7684 Motion \u9879\u76EE\uFF0C\u6216\u5207\u6362\u5230\u5DF2\u6709\u8349\u7A3F\u3002"},projectDialogTitle:{en:"Motion projects","zh-Hans":"Motion \u9879\u76EE"},projectStatusUpdated:{en:"Motion project {status}","zh-Hans":"Motion \u9879\u76EE\u5DF2\u8BBE\u4E3A {status}"},projectSummary:{en:"{surface} \xB7 v{version} \xB7 {status}","zh-Hans":"{surface} \xB7 v{version} \xB7 {status}"},ready:{en:"Ready","zh-Hans":"\u5C31\u7EEA"},recipeApplied:{en:"Applied {name}","zh-Hans":"\u5DF2\u5E94\u7528 {name}"},recipeAppliedToHtml:{en:"Applied {name} to HTML","zh-Hans":"\u5DF2\u5C06 {name} \u5E94\u7528\u5230 HTML"},recipeAppliedToVideo:{en:"Applied {name} to video","zh-Hans":"\u5DF2\u5C06 {name} \u5E94\u7528\u5230\u89C6\u9891"},recipeSelectEmpty:{en:"Select a recipe to preview and apply it.","zh-Hans":"\u9009\u62E9\u4E00\u4E2A\u52A8\u6548\u914D\u65B9\u6765\u9884\u89C8\u5E76\u5E94\u7528\u3002"},recipeUsageSummary:{en:"{trigger} trigger for {htmlTarget}; {template} template for {videoTarget}.","zh-Hans":"{htmlTarget} \u4F7F\u7528 {trigger} \u89E6\u53D1\uFF1B{videoTarget} \u4F7F\u7528 {template} \u6A21\u677F\u3002"},referencedDraft:{en:"Current draft","zh-Hans":"\u5F53\u524D\u8349\u7A3F"},replayAllHint:{en:"Reload the preview and replay the whole page or composition.","zh-Hans":"\u91CD\u65B0\u52A0\u8F7D\u9884\u89C8\uFF0C\u5E76\u91CD\u64AD\u6574\u4E2A\u9875\u9762\u6216\u7F16\u6392\u3002"},replayMotion:{en:"Replay all","zh-Hans":"\u91CD\u64AD\u5168\u90E8"},recipes:{en:"Recipes","zh-Hans":"\u914D\u65B9"},restore:{en:"Restore","zh-Hans":"\u6062\u590D"},reviewed:{en:"Reviewed","zh-Hans":"\u5DF2\u5BA1\u6838"},save:{en:"Save","zh-Hans":"\u4FDD\u5B58"},saveCurrentVersion:{en:"Save current version","zh-Hans":"\u4FDD\u5B58\u5F53\u524D\u7248\u672C"},saveStyle:{en:"Save style","zh-Hans":"\u4FDD\u5B58\u6837\u5F0F"},sceneLength:{en:"Scene length","zh-Hans":"\u573A\u666F\u65F6\u957F"},sceneStrip:{en:"Scene strip","zh-Hans":"\u573A\u666F\u6BB5\u843D"},sceneStripHelp:{en:"Switch scenes, set transitions, and edit the current scene duration.","zh-Hans":"\u5207\u6362\u573A\u666F\u3001\u8BBE\u7F6E\u8F6C\u573A\uFF0C\u5E76\u8C03\u6574\u5F53\u524D\u573A\u666F\u65F6\u957F\u3002"},scenes:{en:"Scenes","zh-Hans":"\u573A\u666F"},scrub:{en:"Scrub","zh-Hans":"\u62D6\u52A8\u9884\u89C8"},search:{en:"Search","zh-Hans":"\u641C\u7D22"},selectedRecipe:{en:"Selected recipe","zh-Hans":"\u9009\u4E2D\u914D\u65B9"},select:{en:"Select","zh-Hans":"\u9009\u62E9"},selectElement:{en:"Select an element","zh-Hans":"\u9009\u62E9\u5143\u7D20"},selectElementFirst:{en:"Select an element in the preview first.","zh-Hans":"\u8BF7\u5148\u5728\u9884\u89C8\u4E2D\u9009\u62E9\u4E00\u4E2A\u5143\u7D20\u3002"},selectLayerFirst:{en:"Select or add a video layer before applying a Motion recipe.","zh-Hans":"\u5E94\u7528 Motion \u914D\u65B9\u524D\u8BF7\u5148\u9009\u62E9\u6216\u6DFB\u52A0\u89C6\u9891\u56FE\u5C42\u3002"},selectLayerHint:{en:"Click an element on the canvas, or a layer above, to select it.","zh-Hans":"\u70B9\u51FB\u753B\u5E03\u5143\u7D20\u6216\u4E0A\u65B9\u56FE\u5C42\u6765\u9009\u62E9\u3002"},sendToAssistant:{en:"Ask Assistant","zh-Hans":"\u8BE2\u95EE Assistant"},setProperty:{en:"Set {property}","zh-Hans":"\u8BBE\u7F6E {property}"},statusArchived:{en:"Archived","zh-Hans":"\u5DF2\u5F52\u6863"},statusDraft:{en:"Draft","zh-Hans":"\u8349\u7A3F"},statusReady:{en:"Ready","zh-Hans":"\u5C31\u7EEA"},statusReviewed:{en:"Reviewed","zh-Hans":"\u5DF2\u5BA1\u6838"},styleReady:{en:'Style "{name}" is ready to save from the main Motion style action.',"zh-Hans":"\u6837\u5F0F\u201C{name}\u201D\u53EF\u901A\u8FC7\u4E3B Motion \u6837\u5F0F\u64CD\u4F5C\u4FDD\u5B58\u3002"},templateAttention:{en:"Attention","zh-Hans":"\u5438\u5F15\u6CE8\u610F"},templateEmphasis:{en:"Emphasis","zh-Hans":"\u5F3A\u8C03"},templateEntrance:{en:"Entrance","zh-Hans":"\u5165\u573A"},templateExit:{en:"Exit","zh-Hans":"\u9000\u573A"},text:{en:"Text","zh-Hans":"\u6587\u672C"},timeline:{en:"Timeline","zh-Hans":"\u65F6\u95F4\u7EBF"},timelineCurrentTime:{en:"Current time","zh-Hans":"\u5F53\u524D\u65F6\u95F4"},timelinePause:{en:"Pause timeline","zh-Hans":"\u6682\u505C\u65F6\u95F4\u7EBF"},timelinePlay:{en:"Play timeline","zh-Hans":"\u64AD\u653E\u65F6\u95F4\u7EBF"},timelineRestraintWarning:{en:"More than four load motions start early; consider delaying or changing some triggers.","zh-Hans":"\u8D85\u8FC7\u56DB\u4E2A\u52A0\u8F7D\u52A8\u6548\u8FC7\u65E9\u5F00\u59CB\uFF1B\u5EFA\u8BAE\u5EF6\u8FDF\u6216\u8C03\u6574\u90E8\u5206\u89E6\u53D1\u65B9\u5F0F\u3002"},timelineScopeAll:{en:"All motions","zh-Hans":"\u5168\u90E8\u52A8\u6548"},timelineScopeSelection:{en:"Current selection","zh-Hans":"\u5F53\u524D\u9009\u4E2D"},title:{en:"Title","zh-Hans":"\u6807\u9898"},transitionCut:{en:"Cut","zh-Hans":"\u786C\u5207"},transitionDissolve:{en:"Dissolve","zh-Hans":"\u6EB6\u89E3"},transitionFade:{en:"Fade","zh-Hans":"\u6DE1\u5165\u6DE1\u51FA"},transitionPush:{en:"Push","zh-Hans":"\u63A8\u5165"},trigger:{en:"Trigger","zh-Hans":"\u89E6\u53D1"},triggerClick:{en:"On click","zh-Hans":"\u70B9\u51FB\u65F6"},triggerHover:{en:"On hover","zh-Hans":"\u60AC\u505C\u65F6"},triggerLoad:{en:"On load","zh-Hans":"\u52A0\u8F7D\u65F6"},triggerScroll:{en:"On scroll","zh-Hans":"\u6EDA\u52A8\u65F6"},undo:{en:"Undo","zh-Hans":"\u64A4\u9500"},untitled:{en:"Untitled","zh-Hans":"\u672A\u547D\u540D"},unsaved:{en:"Unsaved","zh-Hans":"\u672A\u4FDD\u5B58"},up:{en:"Up","zh-Hans":"\u4E0A\u79FB"},uploadLayerMedia:{en:"Upload layer media","zh-Hans":"\u4E0A\u4F20\u56FE\u5C42\u5A92\u4F53"},uploadReference:{en:"Upload reference","zh-Hans":"\u4E0A\u4F20\u53C2\u8003"},uploadVideoBackground:{en:"Upload video background","zh-Hans":"\u4E0A\u4F20\u89C6\u9891\u80CC\u666F"},version:{en:"Version","zh-Hans":"\u7248\u672C"},versionHistory:{en:"Version history","zh-Hans":"\u7248\u672C\u8BB0\u5F55"},versionHistoryDescription:{en:"Save a reviewable snapshot or restore a previous Motion project version.","zh-Hans":"\u4FDD\u5B58\u53EF\u5BA1\u9605\u5FEB\u7167\uFF0C\u6216\u6062\u590D\u4E4B\u524D\u7684 Motion \u9879\u76EE\u7248\u672C\u3002"},versionLabel:{en:"Version {number}","zh-Hans":"\u7248\u672C {number}"},versionRestored:{en:"Motion version restored","zh-Hans":"Motion \u7248\u672C\u5DF2\u6062\u590D"},versionSaved:{en:"Motion version saved","zh-Hans":"Motion \u7248\u672C\u5DF2\u4FDD\u5B58"},versions:{en:"Versions","zh-Hans":"\u7248\u672C"},video:{en:"Video Composer","zh-Hans":"\u89C6\u9891\u5408\u6210"},videoPause:{en:"Pause film preview","zh-Hans":"\u6682\u505C\u6574\u7247\u9884\u89C8"},videoPlay:{en:"Play film preview","zh-Hans":"\u64AD\u653E\u6574\u7247\u9884\u89C8"},videoLayer:{en:"video layer","zh-Hans":"\u89C6\u9891\u56FE\u5C42"},videoFit:{en:"Video fit","zh-Hans":"\u89C6\u9891\u9002\u914D"},videoSaved:{en:"Motion video composition saved","zh-Hans":"Motion \u89C6\u9891\u7F16\u6392\u5DF2\u4FDD\u5B58"},videoTemplates:{en:"Video templates","zh-Hans":"\u89C6\u9891\u6A21\u677F"},webCodecsUnavailable:{en:"WebCodecs MP4 export is not available in this browser.","zh-Hans":"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 WebCodecs MP4 \u5BFC\u51FA\u3002"},workbenchHeaderLabel:{en:"Motion workbench header","zh-Hans":"Motion \u5DE5\u4F5C\u53F0\u5934\u90E8"}};function dp(e){let a=String(e||"").toLowerCase().startsWith("zh")?"zh-Hans":"en";return(o,r)=>ry(lp[o]?.[a]??lp[o]?.en??o,r)}function Ot(e,t){return e.map(a=>({value:a.value,label:t(a.labelKey)}))}function up(e,t){return e==="projects"?t("projects"):e==="library"?t("library"):e==="html"?t("html"):e==="video"?t("video"):e==="versions"?t("versions"):e==="exports"?t("exports"):e}function kn(e,t){return e==="load"?t("triggerLoad"):e==="scroll"?t("triggerScroll"):e==="hover"?t("triggerHover"):e==="click"?t("triggerClick"):e}function Rn(e,t){if(!e)return t("draft");let a=e.toLowerCase();return a==="draft"?t("statusDraft"):a==="reviewed"?t("statusReviewed"):a==="archived"?t("statusArchived"):a==="ready"?t("statusReady"):e}function ry(e,t){return t?e.replace(/\{([a-zA-Z0-9_]+)\}/g,(a,o)=>t[o]===void 0?a:String(t[o])):e}var Os=new Map,Pn=new Map;function Tn(e){let t=_e(e.w,1280),a=_e(e.h,720),o=_e(e.fps,30),r=Math.max(.5,_e(e.duration,fp(e)));return{w:t,h:a,fps:o,duration:()=>r,preload:async()=>py(e),seekMedia:async n=>hy(e,n),renderFrame(n,i){ny(n,e,{w:t,h:a,time:i,duration:r})}}}function ny(e,t,a){e.clearRect(0,0,a.w,a.h),cp(e,t.bg||"#0f172a",a.w,a.h);let o=fy(t,a.time),r=Array.isArray(t.shared)?t.shared:[];Es(e,t,o,a,r,1);let n=o.scene?.transition||"cut",i=Math.min(.65,o.duration/3);if(o.nextScene&&n!=="cut"&&o.localTime>o.duration-i){let s=Mn((o.localTime-(o.duration-i))/i,0,1);n==="push"?(e.save(),e.translate(a.w*(1-s),0),Es(e,t,{...o,scene:o.nextScene,localTime:0},a,r,1),e.restore()):Es(e,t,{...o,scene:o.nextScene,localTime:0},a,r,s)}}function Es(e,t,a,o,r,n){e.save(),e.globalAlpha*=n,a.scene?.bg&&cp(e,a.scene.bg,o.w,o.h);let i=a.scene?a.scene.layers||[]:t.layers||[];for(let s of[...r,...i])iy(e,s,a.localTime,o);e.restore()}function cp(e,t,a,o){if(/^linear-gradient/i.test(t)){let r=e.createLinearGradient(0,0,a,o);r.addColorStop(0,"#0f172a"),r.addColorStop(.45,"#2563eb"),r.addColorStop(1,"#14b8a6"),e.fillStyle=r}else e.fillStyle=t;e.fillRect(0,0,a,o)}function iy(e,t,a,o){let r=ot(t.start,0),n=ot(t.end,o.duration);if(a<r||a>n)return;let i=Math.max(0,a-r),s=Ba(t,"x",i,ot(t.x,o.w/2)),l=Ba(t,"y",i,ot(t.y,o.h/2)),d=Ba(t,"offset",i,0),u=by(t.path,d),c=u?.x??s,m=u?.y??l,h=Mn(Ba(t,"opacity",i,ot(t.opacity,1)),0,1),x=Ba(t,"scale",i,ot(t.scale,1)),p=Ba(t,"rotate",i,ot(t.rotate,0)),g=Math.max(0,Ba(t,"blur",i,0));e.save(),e.globalAlpha=h,e.translate(c,m),e.rotate(p*Math.PI/180),e.scale(x,x),g>0&&(e.filter=`blur(${g}px)`),t.type==="video"&&t.src?cy(e,t):t.type==="image"&&t.src?uy(e,t):t.type==="ellipse"?dy(e,t):t.type==="rect"?ly(e,t):sy(e,t),e.restore()}function sy(e,t){let a=_e(t.size,64),o=_e(t.weight,800);e.font=`${o} ${a}px ${t.font||"Inter"}, ui-sans-serif, system-ui, sans-serif`,e.textAlign=t.align||"center",e.textBaseline="middle",e.fillStyle=t.color||"#ffffff",t.kinetic?.type==="char-rise"||t.kinetic?.type==="char-pop"?xy(e,t.text||"Motion",a,t):vy(e,t.text||"Motion",0,0,_e(t.w,980),a*1.15)}function ly(e,t){let a=_e(t.w,360),o=_e(t.h,180);e.fillStyle=t.fill||t.color||t.bg||"#ffffff",wy(e,-a/2,-o/2,a,o,_e(t.radius,28)),e.fill()}function dy(e,t){e.fillStyle=t.fill||t.color||t.bg||"#22c55e",e.beginPath(),e.ellipse(0,0,_e(t.w,220)/2,_e(t.h,220)/2,0,0,Math.PI*2),e.fill()}function uy(e,t){let a=t.src?Os.get(t.src):null,o=_e(t.w,480),r=_e(t.h,270);a&&a.complete?e.drawImage(a,-o/2,-r/2,o,r):(e.fillStyle="#e2e8f0",e.fillRect(-o/2,-r/2,o,r))}function cy(e,t){let a=t.src?Pn.get(t.src):null,o=_e(t.w,480),r=_e(t.h,270);a&&a.readyState>=2?e.drawImage(a,-o/2,-r/2,o,r):(e.fillStyle="#020617",e.fillRect(-o/2,-r/2,o,r),e.fillStyle="#94a3b8",e.font="700 28px Inter, ui-sans-serif, system-ui, sans-serif",e.textAlign="center",e.textBaseline="middle",e.fillText("Video",0,0))}function fy(e,t){let a=Array.isArray(e.scenes)?e.scenes:[],o=0;for(let r=0;r<a.length;r+=1){let n=a[r],i=_e(n.duration,3);if(t<=o+i)return{scene:n,sceneIndex:r,nextScene:a[r+1]||null,duration:i,localTime:Math.max(0,t-o)};o+=i}return{scene:null,sceneIndex:-1,nextScene:null,duration:fp(e),localTime:t}}function Ba(e,t,a,o){let r=e.tracks?.[t];if(!Array.isArray(r)||r.length===0)return o;let n=r.filter(i=>typeof i=="object"&&i!==null).map(i=>({t:ot(i.t,0),v:ot(i.v,o),ease:i.ease})).sort((i,s)=>i.t-s.t);if(n.length===0||a<=n[0].t)return n[0]?.v??o;for(let i=1;i<n.length;i+=1){let s=n[i-1],l=n[i];if(a<=l.t){let d=Math.max(.001,l.t-s.t),u=Mn((a-s.t)/d,0,1),c=l.ease==="ease-out"?1-Math.pow(1-u,3):l.ease==="ease-in"?u*u*u:u;return s.v+(l.v-s.v)*c}}return n[n.length-1].v}function py(e){let t=Ns(e).filter(o=>o.type==="image"&&o.src).map(o=>String(o.src)),a=Ns(e).filter(o=>o.type==="video"&&o.src).map(o=>String(o.src));return Promise.all([...t.map(my),...a.map(gy)]).then(()=>{})}function my(e){return new Promise(t=>{if(Os.has(e)){t();return}let a=new Image;a.crossOrigin="anonymous",a.onload=()=>{Os.set(e,a),t()},a.onerror=()=>t(),a.src=e})}function gy(e){return new Promise(t=>{if(Pn.has(e)){t();return}let a=document.createElement("video");a.crossOrigin="anonymous",a.muted=!0,a.preload="auto",a.playsInline=!0,a.onloadeddata=()=>{Pn.set(e,a),t()},a.onerror=()=>t(),a.src=e})}function hy(e,t){let a=Ns(e).filter(o=>o.type==="video"&&o.src).map(o=>({layer:o,video:Pn.get(String(o.src))})).filter(o=>!!o.video);return Promise.all(a.map(({layer:o,video:r})=>new Promise(n=>{let i=ot(o.start,0),s=Math.max(0,t-i);if(!Number.isFinite(r.duration)||Math.abs(r.currentTime-s)<.03){n();return}let l=()=>{r.removeEventListener("seeked",l),n()};r.addEventListener("seeked",l,{once:!0}),r.currentTime=o.loop&&Number.isFinite(r.duration)&&r.duration>0?s%r.duration:Math.min(s,r.duration||s),setTimeout(l,250)}))).then(()=>{})}function Ns(e){let t=[...e.layers||[],...e.shared||[]];for(let a of e.scenes||[])t.push(...a.layers||[]);return t}function fp(e){return Array.isArray(e.scenes)&&e.scenes.length>0?e.scenes.reduce((o,r)=>o+_e(r.duration,3),0):(e.layers||[]).reduce((o,r)=>Math.max(o,ot(r.end,ot(r.start,0)+3)),0)||5}function vy(e,t,a,o,r,n){let i=t.split(/\s+/),s=[],l="";for(let u of i){let c=l?`${l} ${u}`:u;e.measureText(c).width>r&&l?(s.push(l),l=u):l=c}l&&s.push(l);let d=o-(s.length-1)*n/2;s.forEach((u,c)=>e.fillText(u,a,d+c*n))}function xy(e,t,a,o){let r=Array.from(t),i=-r.reduce((s,l)=>s+e.measureText(l).width,0)/2;r.forEach((s,l)=>{let d=e.measureText(s).width,u=o.kinetic?.type==="char-pop"?Math.sin(l*.85)*a*.08:-Math.sin(l*.55)*a*.05;e.fillText(s,i+d/2,u),i+=d})}function by(e,t){let a=(e?.points||[]).map(d=>({x:ot(d.x,NaN),y:ot(d.y,NaN)})).filter(d=>Number.isFinite(d.x)&&Number.isFinite(d.y));if(a.length===0)return null;if(a.length===1)return a[0];let r=Mn(t,0,1)*(a.length-1),n=Math.min(a.length-2,Math.floor(r)),i=r-n,s=a[n],l=a[n+1];return{x:s.x+(l.x-s.x)*i,y:s.y+(l.y-s.y)*i}}function wy(e,t,a,o,r,n){let i=Math.min(n,o/2,r/2);e.beginPath(),e.moveTo(t+i,a),e.arcTo(t+o,a,t+o,a+r,i),e.arcTo(t+o,a+r,t,a+r,i),e.arcTo(t,a+r,t,a,i),e.arcTo(t,a,t+o,a,i),e.closePath()}function _e(e,t){let a=Number(e);return Number.isFinite(a)&&a>0?a:t}function ot(e,t){let a=Number(e);return Number.isFinite(a)?a:t}function Mn(e,t,a){return Math.min(a,Math.max(t,e))}var pp=["opacity","x","y","scale","rotate","blur"],yy=`
56
+ `);if(k(this,he).firstTimestampBehavior==="offset"||k(this,he).firstTimestampBehavior==="cross-track-offset"){a.firstDecodeTimestamp===void 0&&(a.firstDecodeTimestamp=t);let i;k(this,he).firstTimestampBehavior==="offset"?i=a.firstDecodeTimestamp:i=Math.min(k(this,Yt)?.firstDecodeTimestamp??1/0,k(this,_t)?.firstDecodeTimestamp??1/0),t-=i,e-=i}if(t<a.lastDecodeTimestamp)throw new Error(`Timestamps must be monotonically increasing (DTS went from ${a.lastDecodeTimestamp*1e6} to ${t*1e6}).`);return a.lastDecodeTimestamp=t,{presentationTimestamp:e,decodeTimestamp:t}};Qu=new WeakSet;Ld=function(e){if(k(this,he).fastStart==="fragmented")throw new Error("Can't finalize individual chunks if 'fastStart' is set to 'fragmented'.");if(e.currentChunk){if(e.finalizedChunks.push(e.currentChunk),k(this,ss).push(e.currentChunk),(e.compactlyCodedChunkTable.length===0||Sd(e.compactlyCodedChunkTable).samplesPerChunk!==e.currentChunk.samples.length)&&e.compactlyCodedChunkTable.push({firstChunk:e.finalizedChunks.length,samplesPerChunk:e.currentChunk.samples.length}),k(this,he).fastStart==="in-memory"){e.currentChunk.offset=0;return}e.currentChunk.offset=k(this,we).pos;for(let t of e.currentChunk.samples)k(this,we).write(t.data),t.data=null;ze(this,ls,Ju).call(this)}};Ed=new WeakSet;Gg=function(e=!0){if(k(this,he).fastStart!=="fragmented")throw new Error("Can't finalize a fragment unless 'fastStart' is set to 'fragmented'.");let t=[k(this,Yt),k(this,_t)].filter(s=>s&&s.currentChunk);if(t.length===0)return;let a=cD(this,Hg)._++;if(a===1){let s=xd(t,k(this,is),!0);k(this,we).writeBox(s)}let r=k(this,we).pos,n=jS(a,t);k(this,we).writeBox(n);{let s=Sg(!1),u=0;for(let c of t)for(let d of c.currentChunk.samples)u+=d.size;let l=k(this,we).measureBox(s)+u;l>=2**32&&(s.largeSize=!0,l=k(this,we).measureBox(s)+u),s.size=l,k(this,we).writeBox(s)}for(let s of t){s.currentChunk.offset=k(this,we).pos,s.currentChunk.moofOffset=r;for(let u of s.currentChunk.samples)k(this,we).write(u.data),u.data=null}let o=k(this,we).pos;k(this,we).seek(k(this,we).offsets.get(n));let i=jS(a,t);k(this,we).writeBox(i),k(this,we).seek(o);for(let s of t)s.finalizedChunks.push(s.currentChunk),k(this,ss).push(s.currentChunk),s.currentChunk=null;e&&ze(this,ls,Ju).call(this)};ls=new WeakSet;Ju=function(){k(this,we)instanceof Fg&&k(this,we).flush()};wd=new WeakSet;Pg=function(){if(k(this,Ku))throw new Error("Cannot add new video or audio chunks after the file has been finalized.")};function Wg(){return typeof window<"u"&&"VideoEncoder"in window&&"VideoFrame"in window}async function g4(e,t,a,r){for(var n=["avc1.640028","avc1.4D0028","avc1.42E01E","avc1.42001f"],o=0;o<n.length;o++)try{var i=await VideoEncoder.isConfigSupported({codec:n[o],width:e,height:t,bitrate:r,framerate:a});if(i&&i.supported)return n[o]}catch{}return null}async function u1(e,t,a){if(t=t||{},!Wg())throw new Error("\u8FD9\u4E2A\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 WebCodecs\uFF08\u8BF7\u7528\u8F83\u65B0\u7684 Chrome/Edge\uFF09\u3002");var r=t.fps||e.fps||30,n=Math.round((e.w||1280)*(t.scale||1)),o=Math.round((e.h||720)*(t.scale||1));n%2&&n++,o%2&&o++;var i=t.bitrate||Math.min(24e6,Math.max(2e6,Math.round(n*o*r*.2))),s=await g4(n,o,r,i);if(!s)throw new Error("\u8FD9\u4E2A\u8BBE\u5907\u65E0\u6CD5\u7528 WebCodecs \u7F16\u7801 H.264\u3002");var u=e.duration(),l=Math.max(1,Math.round(u*r)),c=document.createElement("canvas");c.width=n,c.height=o;var d=c.getContext("2d",{alpha:!1}),f=n/(e.w||n),p=o/(e.h||o),g=new s1({target:new Og,video:{codec:"avc",width:n,height:o,frameRate:r},fastStart:"in-memory"}),m=new VideoEncoder({output:function(A,L){g.addVideoChunk(A,L)},error:function(A){throw A}});m.configure({codec:s,width:n,height:o,bitrate:i,framerate:r});for(var x=Math.round(1e6/r),v=0;v<l;v++){var w=v/r;if(e.seekMedia)try{await e.seekMedia(Math.min(w,u))}catch{}d.save(),(f!==1||p!==1)&&d.scale(f,p),e.renderFrame(d,Math.min(w,u)),d.restore();var y=new VideoFrame(c,{timestamp:v*x,duration:x});if(m.encode(y,{keyFrame:v%(r*2)===0}),y.close(),a&&a(v/l),m.encodeQueueSize>8)for(await new Promise(function(A){setTimeout(A,0)});m.encodeQueueSize>4;)await new Promise(function(A){setTimeout(A,4)})}await m.flush(),g.finalize(),a&&a(1);var S=g.target.buffer;return new Blob([S],{type:"video/mp4"})}var l1={add:{en:"Add","zh-Hans":"\u6DFB\u52A0"},addScene:{en:"Add scene","zh-Hans":"\u6DFB\u52A0\u573A\u666F"},allTargets:{en:"All targets","zh-Hans":"\u5168\u90E8\u76EE\u6807"},applyMotion:{en:"Apply motion","zh-Hans":"\u5E94\u7528\u52A8\u6548"},applySelected:{en:"Apply selected","zh-Hans":"\u5E94\u7528\u9009\u4E2D\u9879"},applyToHtml:{en:"Apply to HTML","zh-Hans":"\u5E94\u7528\u5230 HTML"},applyToVideo:{en:"Apply to video","zh-Hans":"\u5E94\u7528\u5230\u89C6\u9891"},appliesToTarget:{en:"applies to {target}","zh-Hans":"\u5E94\u7528\u5230 {target}"},archive:{en:"Archive","zh-Hans":"\u5F52\u6863"},artifact:{en:"Artifact","zh-Hans":"\u4EA7\u7269"},background:{en:"Background","zh-Hans":"\u80CC\u666F"},block:{en:"Block","zh-Hans":"\u5757"},brief:{en:"Brief","zh-Hans":"\u7B80\u4ECB"},card:{en:"Card","zh-Hans":"\u5361\u7247"},clearPath:{en:"Clear path","zh-Hans":"\u6E05\u9664\u8DEF\u5F84"},click:{en:"Click","zh-Hans":"\u70B9\u51FB"},close:{en:"Close","zh-Hans":"\u5173\u95ED"},code:{en:"Code","zh-Hans":"\u4EE3\u7801"},color:{en:"Color","zh-Hans":"\u989C\u8272"},compositionInvalid:{en:"SDK validation failed","zh-Hans":"SDK \u6821\u9A8C\u5931\u8D25"},compositionStats:{en:"{elements} elements \xB7 {animations} GSAP animations","zh-Hans":"{elements} \u4E2A\u5143\u7D20 \xB7 {animations} \u4E2A GSAP \u52A8\u753B"},compositionValid:{en:"SDK document valid","zh-Hans":"SDK \u6587\u6863\u6709\u6548"},hyperframesEngine:{en:"HyperFrames \xB7 standard engine","zh-Hans":"HyperFrames \xB7 \u6807\u51C6\u5F15\u64CE"},hyperframesEngineHelp:{en:"Native composition source is persisted through the SDK, previewed by Player, and rendered by Producer.","zh-Hans":"\u539F\u751F composition \u6E90\u7801\u7ECF SDK \u6301\u4E45\u5316\u3001\u7531 Player \u9884\u89C8\u3001\u7531 Producer \u751F\u4EA7\u6E32\u67D3\u3002"},hyperframesPreview:{en:"HyperFrames composition preview","zh-Hans":"HyperFrames composition \u9884\u89C8"},hyperframesRecipeHelp:{en:"This recipe targets the legacy layer model. For native HyperFrames projects, ask the Motion Agent to apply it through the composition source and SDK.","zh-Hans":"\u6B64\u914D\u65B9\u9488\u5BF9\u65E7\u56FE\u5C42\u6A21\u578B\u3002\u539F\u751F HyperFrames \u9879\u76EE\u8BF7\u8BA9 Motion Agent \u901A\u8FC7 composition \u6E90\u7801\u4E0E SDK \u5E94\u7528\u8BE5\u52A8\u6548\u3002"},hyperframesSaved:{en:"HyperFrames composition saved through the SDK","zh-Hans":"HyperFrames composition \u5DF2\u901A\u8FC7 SDK \u4FDD\u5B58"},hyperframesSourceEmpty:{en:"Create a new video project to receive a native HyperFrames starter composition.","zh-Hans":"\u8BF7\u65B0\u5EFA\u89C6\u9891\u9879\u76EE\u4EE5\u751F\u6210\u539F\u751F HyperFrames \u8D77\u59CB composition\u3002"},latestRender:{en:"Latest production render","zh-Hans":"\u6700\u65B0\u751F\u4EA7\u6E32\u67D3"},legacyLocalExport:{en:"Local MP4","zh-Hans":"\u672C\u5730 MP4"},legacyVideoEngine:{en:"Legacy Canvas/WebCodecs","zh-Hans":"\u65E7\u7248 Canvas/WebCodecs"},legacyVideoEngineHelp:{en:"Kept for fast local preview and existing projects. New engine capabilities are built on HyperFrames.","zh-Hans":"\u4EC5\u4FDD\u7559\u7528\u4E8E\u5FEB\u901F\u672C\u5730\u9884\u89C8\u4E0E\u5386\u53F2\u9879\u76EE\u517C\u5BB9\uFF1B\u65B0\u7684\u5F15\u64CE\u80FD\u529B\u5C06\u57FA\u4E8E HyperFrames \u5EFA\u8BBE\u3002"},producer:{en:"HyperFrames Producer","zh-Hans":"HyperFrames Producer"},productionRender:{en:"Production render","zh-Hans":"\u751F\u4EA7\u6E32\u67D3"},productionRenderHelp:{en:"Queue an isolated Node 22 + Chromium + FFmpeg render. The saved SDK source and checksum are the render input.","zh-Hans":"\u6392\u961F\u6267\u884C\u9694\u79BB\u7684 Node 22 + Chromium + FFmpeg \u6E32\u67D3\uFF1B\u5DF2\u4FDD\u5B58\u7684 SDK \u6E90\u7801\u53CA\u6821\u9A8C\u548C\u662F\u552F\u4E00\u6E32\u67D3\u8F93\u5165\u3002"},productionRenderQueued:{en:"HyperFrames production render queued","zh-Hans":"HyperFrames \u751F\u4EA7\u6E32\u67D3\u5DF2\u6392\u961F"},queueProductionRender:{en:"Queue MP4 render","zh-Hans":"\u6392\u961F\u6E32\u67D3 MP4"},renderFps:{en:"Frame rate","zh-Hans":"\u5E27\u7387"},renderQuality:{en:"Quality","zh-Hans":"\u8D28\u91CF"},renderQualityDraft:{en:"Draft","zh-Hans":"\u8349\u7A3F"},renderQualityHigh:{en:"High","zh-Hans":"\u9AD8\u6E05"},renderQualityStandard:{en:"Standard","zh-Hans":"\u6807\u51C6"},runtimeReady:{en:"{profile} \xB7 {workers} workers ready","zh-Hans":"{profile} \xB7 {workers} \u4E2A Worker \u5C31\u7EEA"},runtimeUnavailable:{en:"The platform video runtime is unavailable.","zh-Hans":"\u5E73\u53F0\u89C6\u9891\u8FD0\u884C\u65F6\u4E0D\u53EF\u7528\u3002"},create:{en:"Create","zh-Hans":"\u521B\u5EFA"},createOrSaveBeforeUpload:{en:"Create or save a Motion project before uploading media.","zh-Hans":"\u4E0A\u4F20\u5A92\u4F53\u524D\u8BF7\u5148\u521B\u5EFA\u6216\u4FDD\u5B58 Motion \u9879\u76EE\u3002"},createProject:{en:"Create project","zh-Hans":"\u521B\u5EFA\u9879\u76EE"},createVideo:{en:"Video","zh-Hans":"\u89C6\u9891"},createWeb:{en:"HTML","zh-Hans":"HTML"},currentProject:{en:"Current project","zh-Hans":"\u5F53\u524D\u9879\u76EE"},currentSelector:{en:"current selector","zh-Hans":"\u5F53\u524D\u9009\u62E9\u5668"},circle:{en:"Circle","zh-Hans":"\u5706\u5F62"},delete:{en:"Delete","zh-Hans":"\u5220\u9664"},delay:{en:"Delay","zh-Hans":"\u5EF6\u8FDF"},deviceDesktop:{en:"Desktop","zh-Hans":"\u684C\u9762"},deviceMobile:{en:"Mobile","zh-Hans":"\u624B\u673A"},deviceTablet:{en:"Tablet","zh-Hans":"\u5E73\u677F"},dirtyWarning:{en:"Unsaved edits are open. Save or reload before accepting agent updates.","zh-Hans":"\u5F53\u524D\u6709\u672A\u4FDD\u5B58\u7F16\u8F91\u3002\u4FDD\u5B58\u6216\u91CD\u65B0\u52A0\u8F7D\u540E\u518D\u63A5\u6536 Agent \u66F4\u65B0\u3002"},distance:{en:"Distance","zh-Hans":"\u8DDD\u79BB"},down:{en:"Down","zh-Hans":"\u4E0B\u79FB"},download:{en:"Download","zh-Hans":"\u4E0B\u8F7D"},duration:{en:"Duration","zh-Hans":"\u65F6\u957F"},draft:{en:"Draft","zh-Hans":"\u8349\u7A3F"},dragLayerHint:{en:"Drag a layer to move and keyframe it.","zh-Hans":"\u62D6\u52A8\u56FE\u5C42\u5373\u53EF\u79FB\u52A8\u5E76\u8BB0\u5F55\u5173\u952E\u5E27\u3002"},drawPathHint:{en:"Draw a path, then release to attach it to the selected layer.","zh-Hans":"\u7ED8\u5236\u8DEF\u5F84\uFF0C\u677E\u5F00\u540E\u7ED1\u5B9A\u5230\u9009\u4E2D\u56FE\u5C42\u3002"},editProjectHint:{en:"Create or switch projects from the dialog to keep the canvas focused.","zh-Hans":"\u901A\u8FC7\u5BF9\u8BDD\u6846\u521B\u5EFA\u6216\u5207\u6362\u9879\u76EE\uFF0C\u8BA9\u753B\u5E03\u4FDD\u6301\u805A\u7126\u3002"},export:{en:"Export","zh-Hans":"\u5BFC\u51FA"},exportHistory:{en:"Export history","zh-Hans":"\u5BFC\u51FA\u8BB0\u5F55"},exportHistoryDescription:{en:"Review generated artifacts for the current project and update project status.","zh-Hans":"\u67E5\u770B\u5F53\u524D\u9879\u76EE\u751F\u6210\u7684\u4EA7\u7269\uFF0C\u5E76\u66F4\u65B0\u9879\u76EE\u72B6\u6001\u3002"},exportMp4:{en:"Export MP4","zh-Hans":"\u5BFC\u51FA MP4"},exports:{en:"Exports","zh-Hans":"\u5BFC\u51FA"},filterAllStatuses:{en:"All statuses","zh-Hans":"\u5168\u90E8\u72B6\u6001"},filterAllSurfaces:{en:"All surfaces","zh-Hans":"\u5168\u90E8\u7C7B\u578B"},filterAllTargets:{en:"All targets","zh-Hans":"\u5168\u90E8\u76EE\u6807"},filterBackground:{en:"Background","zh-Hans":"\u80CC\u666F"},filterButton:{en:"Button","zh-Hans":"\u6309\u94AE"},filterCard:{en:"Card","zh-Hans":"\u5361\u7247"},filterImage:{en:"Image","zh-Hans":"\u56FE\u7247"},filterReady:{en:"Ready","zh-Hans":"\u53EF\u7528"},filterText:{en:"Text","zh-Hans":"\u6587\u672C"},filterVideo:{en:"Video","zh-Hans":"\u89C6\u9891"},filterVideoLayer:{en:"Video layer","zh-Hans":"\u89C6\u9891\u56FE\u5C42"},filterWeb:{en:"HTML / web","zh-Hans":"HTML / \u7F51\u9875"},convertedToLayerTemplate:{en:"converted to layer template","zh-Hans":"\u8F6C\u6362\u4E3A\u56FE\u5C42\u6A21\u677F"},firstAvailableLayer:{en:"first available layer","zh-Hans":"\u7B2C\u4E00\u4E2A\u53EF\u7528\u56FE\u5C42"},html:{en:"HTML Workbench","zh-Hans":"HTML \u5DE5\u4F5C\u53F0"},htmlFit:{en:"HTML fit","zh-Hans":"HTML \u9002\u914D"},htmlSaved:{en:"Motion HTML saved","zh-Hans":"Motion HTML \u5DF2\u4FDD\u5B58"},htmlSelection:{en:"HTML selection","zh-Hans":"HTML \u9009\u4E2D\u9879"},htmlTemplates:{en:"HTML templates","zh-Hans":"HTML \u6A21\u677F"},icons:{en:"Icons","zh-Hans":"\u56FE\u6807"},image:{en:"Image","zh-Hans":"\u56FE\u7247"},invalidCompositionJson:{en:"Invalid composition JSON","zh-Hans":"\u89C6\u9891\u7F16\u6392 JSON \u65E0\u6548"},keyframes:{en:"Keyframes","zh-Hans":"\u5173\u952E\u5E27"},keyframeDot:{en:"{properties} keyframe at {time}s","zh-Hans":"{properties} \u5173\u952E\u5E27\uFF0C{time}s"},keyframeLegend:{en:"Keyframe","zh-Hans":"\u5173\u952E\u5E27"},keyframeTimeline:{en:"Layer keyframes","zh-Hans":"\u56FE\u5C42\u5173\u952E\u5E27"},keyframeTimelineHelp:{en:"Each row is one layer. Click a track to seek; diamond points are saved keyframes.","zh-Hans":"\u6BCF\u884C\u5BF9\u5E94\u4E00\u4E2A\u56FE\u5C42\u3002\u70B9\u51FB\u8F68\u9053\u8DF3\u8F6C\u65F6\u95F4\uFF0C\u83F1\u5F62\u70B9\u662F\u5DF2\u8BB0\u5F55\u7684\u5173\u952E\u5E27\u3002"},kineticCharPop:{en:"Char pop","zh-Hans":"\u5B57\u7B26\u5F39\u51FA"},kineticCharRise:{en:"Char rise","zh-Hans":"\u5B57\u7B26\u4E0A\u5347"},kineticNone:{en:"None","zh-Hans":"\u65E0"},kineticText:{en:"Kinetic text","zh-Hans":"\u52A8\u6001\u6587\u5B57"},kineticTypewriter:{en:"Typewriter","zh-Hans":"\u6253\u5B57\u673A"},kineticWordRise:{en:"Word rise","zh-Hans":"\u8BCD\u7EC4\u4E0A\u5347"},layer:{en:"Layer","zh-Hans":"\u56FE\u5C42"},layerWithId:{en:"Layer {id}","zh-Hans":"\u56FE\u5C42 {id}"},layers:{en:"Layers","zh-Hans":"\u56FE\u5C42"},library:{en:"Motion Library","zh-Hans":"\u52A8\u6548\u5E93"},libraryHelp:{en:"Pick a recipe, preview its intent, then apply it to the selected HTML component or video layer.","zh-Hans":"\u9009\u62E9\u52A8\u6548\u914D\u65B9\uFF0C\u9884\u89C8\u610F\u56FE\uFF0C\u7136\u540E\u5E94\u7528\u5230\u9009\u4E2D\u7684 HTML \u7EC4\u4EF6\u6216\u89C6\u9891\u56FE\u5C42\u3002"},line:{en:"Line","zh-Hans":"\u76F4\u7EBF"},loading:{en:"Loading","zh-Hans":"\u52A0\u8F7D\u4E2D"},main:{en:"Main","zh-Hans":"\u4E3B\u753B\u9762"},manageProjects:{en:"Projects","zh-Hans":"\u9879\u76EE"},mediaUploaded:{en:"Motion media uploaded","zh-Hans":"Motion \u5A92\u4F53\u5DF2\u4E0A\u4F20"},mediaUploadNoSource:{en:"Motion media upload returned no source.","zh-Hans":"Motion \u5A92\u4F53\u4E0A\u4F20\u672A\u8FD4\u56DE\u53EF\u7528\u8D44\u6E90\u3002"},mappedFromRecipeIntent:{en:"mapped from recipe intent","zh-Hans":"\u7531\u914D\u65B9\u610F\u56FE\u6620\u5C04"},motion:{en:"Motion","zh-Hans":"Motion"},motionApplied:{en:"Motion attributes applied","zh-Hans":"\u52A8\u6548\u5C5E\u6027\u5DF2\u5E94\u7528"},motionLabel:{en:"Motion","zh-Hans":"\u52A8\u6548"},motionPath:{en:"Motion path","zh-Hans":"\u8FD0\u52A8\u8DEF\u5F84"},motionStyles:{en:"Motion styles","zh-Hans":"\u52A8\u6548\u6837\u5F0F"},motionVersion:{en:"Motion version","zh-Hans":"Motion \u7248\u672C"},mp4Exported:{en:"Motion MP4 exported","zh-Hans":"Motion MP4 \u5DF2\u5BFC\u51FA"},nameMotionPlaceholder:{en:"Name this motion...","zh-Hans":"\u547D\u540D\u8FD9\u4E2A\u52A8\u6548..."},nameStyleFirst:{en:"Name the motion style first.","zh-Hans":"\u8BF7\u5148\u547D\u540D\u52A8\u6548\u6837\u5F0F\u3002"},newProject:{en:"New project","zh-Hans":"\u65B0\u5EFA\u9879\u76EE"},newVideo:{en:"New video","zh-Hans":"\u65B0\u5EFA\u89C6\u9891"},newWeb:{en:"New HTML","zh-Hans":"\u65B0\u5EFA HTML"},nativeVideoRecipe:{en:"native video recipe","zh-Hans":"\u539F\u751F\u89C6\u9891\u914D\u65B9"},nativeWebRecipe:{en:"native web recipe","zh-Hans":"\u539F\u751F\u7F51\u9875\u914D\u65B9"},noExports:{en:"No exports","zh-Hans":"\u6682\u65E0\u5BFC\u51FA"},noKeyframes:{en:"No keyframes","zh-Hans":"\u6682\u65E0\u5173\u952E\u5E27"},noProjects:{en:"No projects","zh-Hans":"\u6682\u65E0\u9879\u76EE"},noRecipes:{en:"No recipes matched the current filters.","zh-Hans":"\u6CA1\u6709\u5339\u914D\u5F53\u524D\u7B5B\u9009\u7684\u52A8\u6548\u914D\u65B9\u3002"},noVersions:{en:"No versions","zh-Hans":"\u6682\u65E0\u7248\u672C"},oneRowPerLayer:{en:"One row per layer; dots are keyframes.","zh-Hans":"\u6BCF\u4E2A\u56FE\u5C42\u4E00\u884C\uFF0C\u5706\u70B9\u8868\u793A\u5173\u952E\u5E27\u3002"},open:{en:"Open","zh-Hans":"\u6253\u5F00"},path:{en:"Path","zh-Hans":"\u8DEF\u5F84"},preview:{en:"Preview","zh-Hans":"\u9884\u89C8"},previewFilmControl:{en:"Film preview","zh-Hans":"\u6574\u7247\u9884\u89C8"},previewFilmHelp:{en:"Play or scrub the whole composition; the canvas reflects this time.","zh-Hans":"\u64AD\u653E\u6216\u62D6\u52A8\u6574\u6BB5\u89C6\u9891\uFF0C\u753B\u5E03\u4F1A\u663E\u793A\u5BF9\u5E94\u65F6\u95F4\u3002"},preset:{en:"Preset","zh-Hans":"\u9884\u8BBE"},properties:{en:"Properties","zh-Hans":"\u5C5E\u6027"},projects:{en:"Projects","zh-Hans":"\u9879\u76EE"},artifactExported:{en:"Motion {kind} exported","zh-Hans":"Motion {kind} \u5DF2\u5BFC\u51FA"},projectCreated:{en:"{title} created","zh-Hans":"{title} \u5DF2\u521B\u5EFA"},projectDialogDescription:{en:"Create a new Motion project or switch to an existing draft.","zh-Hans":"\u521B\u5EFA\u65B0\u7684 Motion \u9879\u76EE\uFF0C\u6216\u5207\u6362\u5230\u5DF2\u6709\u8349\u7A3F\u3002"},projectDialogTitle:{en:"Motion projects","zh-Hans":"Motion \u9879\u76EE"},projectStatusUpdated:{en:"Motion project {status}","zh-Hans":"Motion \u9879\u76EE\u5DF2\u8BBE\u4E3A {status}"},projectSummary:{en:"{surface} \xB7 v{version} \xB7 {status}","zh-Hans":"{surface} \xB7 v{version} \xB7 {status}"},ready:{en:"Ready","zh-Hans":"\u5C31\u7EEA"},recipeApplied:{en:"Applied {name}","zh-Hans":"\u5DF2\u5E94\u7528 {name}"},recipeAppliedToHtml:{en:"Applied {name} to HTML","zh-Hans":"\u5DF2\u5C06 {name} \u5E94\u7528\u5230 HTML"},recipeAppliedToVideo:{en:"Applied {name} to video","zh-Hans":"\u5DF2\u5C06 {name} \u5E94\u7528\u5230\u89C6\u9891"},recipeSelectEmpty:{en:"Select a recipe to preview and apply it.","zh-Hans":"\u9009\u62E9\u4E00\u4E2A\u52A8\u6548\u914D\u65B9\u6765\u9884\u89C8\u5E76\u5E94\u7528\u3002"},recipeUsageSummary:{en:"{trigger} trigger for {htmlTarget}; {template} template for {videoTarget}.","zh-Hans":"{htmlTarget} \u4F7F\u7528 {trigger} \u89E6\u53D1\uFF1B{videoTarget} \u4F7F\u7528 {template} \u6A21\u677F\u3002"},referencedDraft:{en:"Current draft","zh-Hans":"\u5F53\u524D\u8349\u7A3F"},replayAllHint:{en:"Reload the preview and replay the whole page or composition.","zh-Hans":"\u91CD\u65B0\u52A0\u8F7D\u9884\u89C8\uFF0C\u5E76\u91CD\u64AD\u6574\u4E2A\u9875\u9762\u6216\u7F16\u6392\u3002"},replayMotion:{en:"Replay all","zh-Hans":"\u91CD\u64AD\u5168\u90E8"},recipes:{en:"Recipes","zh-Hans":"\u914D\u65B9"},restore:{en:"Restore","zh-Hans":"\u6062\u590D"},reviewed:{en:"Reviewed","zh-Hans":"\u5DF2\u5BA1\u6838"},save:{en:"Save","zh-Hans":"\u4FDD\u5B58"},saveCurrentVersion:{en:"Save current version","zh-Hans":"\u4FDD\u5B58\u5F53\u524D\u7248\u672C"},saveStyle:{en:"Save style","zh-Hans":"\u4FDD\u5B58\u6837\u5F0F"},sceneLength:{en:"Scene length","zh-Hans":"\u573A\u666F\u65F6\u957F"},sceneStrip:{en:"Scene strip","zh-Hans":"\u573A\u666F\u6BB5\u843D"},sceneStripHelp:{en:"Switch scenes, set transitions, and edit the current scene duration.","zh-Hans":"\u5207\u6362\u573A\u666F\u3001\u8BBE\u7F6E\u8F6C\u573A\uFF0C\u5E76\u8C03\u6574\u5F53\u524D\u573A\u666F\u65F6\u957F\u3002"},scenes:{en:"Scenes","zh-Hans":"\u573A\u666F"},scrub:{en:"Scrub","zh-Hans":"\u62D6\u52A8\u9884\u89C8"},search:{en:"Search","zh-Hans":"\u641C\u7D22"},selectedRecipe:{en:"Selected recipe","zh-Hans":"\u9009\u4E2D\u914D\u65B9"},select:{en:"Select","zh-Hans":"\u9009\u62E9"},selectElement:{en:"Select an element","zh-Hans":"\u9009\u62E9\u5143\u7D20"},selectElementFirst:{en:"Select an element in the preview first.","zh-Hans":"\u8BF7\u5148\u5728\u9884\u89C8\u4E2D\u9009\u62E9\u4E00\u4E2A\u5143\u7D20\u3002"},selectLayerFirst:{en:"Select or add a video layer before applying a Motion recipe.","zh-Hans":"\u5E94\u7528 Motion \u914D\u65B9\u524D\u8BF7\u5148\u9009\u62E9\u6216\u6DFB\u52A0\u89C6\u9891\u56FE\u5C42\u3002"},selectLayerHint:{en:"Click an element on the canvas, or a layer above, to select it.","zh-Hans":"\u70B9\u51FB\u753B\u5E03\u5143\u7D20\u6216\u4E0A\u65B9\u56FE\u5C42\u6765\u9009\u62E9\u3002"},sendToAssistant:{en:"Ask Assistant","zh-Hans":"\u8BE2\u95EE Assistant"},setProperty:{en:"Set {property}","zh-Hans":"\u8BBE\u7F6E {property}"},statusArchived:{en:"Archived","zh-Hans":"\u5DF2\u5F52\u6863"},statusDraft:{en:"Draft","zh-Hans":"\u8349\u7A3F"},statusReady:{en:"Ready","zh-Hans":"\u5C31\u7EEA"},statusReviewed:{en:"Reviewed","zh-Hans":"\u5DF2\u5BA1\u6838"},styleReady:{en:'Style "{name}" is ready to save from the main Motion style action.',"zh-Hans":"\u6837\u5F0F\u201C{name}\u201D\u53EF\u901A\u8FC7\u4E3B Motion \u6837\u5F0F\u64CD\u4F5C\u4FDD\u5B58\u3002"},templateAttention:{en:"Attention","zh-Hans":"\u5438\u5F15\u6CE8\u610F"},templateEmphasis:{en:"Emphasis","zh-Hans":"\u5F3A\u8C03"},templateEntrance:{en:"Entrance","zh-Hans":"\u5165\u573A"},templateExit:{en:"Exit","zh-Hans":"\u9000\u573A"},text:{en:"Text","zh-Hans":"\u6587\u672C"},timeline:{en:"Timeline","zh-Hans":"\u65F6\u95F4\u7EBF"},timelineCurrentTime:{en:"Current time","zh-Hans":"\u5F53\u524D\u65F6\u95F4"},timelinePause:{en:"Pause timeline","zh-Hans":"\u6682\u505C\u65F6\u95F4\u7EBF"},timelinePlay:{en:"Play timeline","zh-Hans":"\u64AD\u653E\u65F6\u95F4\u7EBF"},timelineRestraintWarning:{en:"More than four load motions start early; consider delaying or changing some triggers.","zh-Hans":"\u8D85\u8FC7\u56DB\u4E2A\u52A0\u8F7D\u52A8\u6548\u8FC7\u65E9\u5F00\u59CB\uFF1B\u5EFA\u8BAE\u5EF6\u8FDF\u6216\u8C03\u6574\u90E8\u5206\u89E6\u53D1\u65B9\u5F0F\u3002"},timelineScopeAll:{en:"All motions","zh-Hans":"\u5168\u90E8\u52A8\u6548"},timelineScopeSelection:{en:"Current selection","zh-Hans":"\u5F53\u524D\u9009\u4E2D"},title:{en:"Title","zh-Hans":"\u6807\u9898"},transitionCut:{en:"Cut","zh-Hans":"\u786C\u5207"},transitionDissolve:{en:"Dissolve","zh-Hans":"\u6EB6\u89E3"},transitionFade:{en:"Fade","zh-Hans":"\u6DE1\u5165\u6DE1\u51FA"},transitionPush:{en:"Push","zh-Hans":"\u63A8\u5165"},trigger:{en:"Trigger","zh-Hans":"\u89E6\u53D1"},triggerClick:{en:"On click","zh-Hans":"\u70B9\u51FB\u65F6"},triggerHover:{en:"On hover","zh-Hans":"\u60AC\u505C\u65F6"},triggerLoad:{en:"On load","zh-Hans":"\u52A0\u8F7D\u65F6"},triggerScroll:{en:"On scroll","zh-Hans":"\u6EDA\u52A8\u65F6"},undo:{en:"Undo","zh-Hans":"\u64A4\u9500"},untitled:{en:"Untitled","zh-Hans":"\u672A\u547D\u540D"},unsaved:{en:"Unsaved","zh-Hans":"\u672A\u4FDD\u5B58"},up:{en:"Up","zh-Hans":"\u4E0A\u79FB"},uploadLayerMedia:{en:"Upload layer media","zh-Hans":"\u4E0A\u4F20\u56FE\u5C42\u5A92\u4F53"},uploadReference:{en:"Upload reference","zh-Hans":"\u4E0A\u4F20\u53C2\u8003"},uploadVideoBackground:{en:"Upload video background","zh-Hans":"\u4E0A\u4F20\u89C6\u9891\u80CC\u666F"},version:{en:"Version","zh-Hans":"\u7248\u672C"},versionHistory:{en:"Version history","zh-Hans":"\u7248\u672C\u8BB0\u5F55"},versionHistoryDescription:{en:"Save a reviewable snapshot or restore a previous Motion project version.","zh-Hans":"\u4FDD\u5B58\u53EF\u5BA1\u9605\u5FEB\u7167\uFF0C\u6216\u6062\u590D\u4E4B\u524D\u7684 Motion \u9879\u76EE\u7248\u672C\u3002"},versionLabel:{en:"Version {number}","zh-Hans":"\u7248\u672C {number}"},versionRestored:{en:"Motion version restored","zh-Hans":"Motion \u7248\u672C\u5DF2\u6062\u590D"},versionSaved:{en:"Motion version saved","zh-Hans":"Motion \u7248\u672C\u5DF2\u4FDD\u5B58"},versions:{en:"Versions","zh-Hans":"\u7248\u672C"},video:{en:"Video Composer","zh-Hans":"\u89C6\u9891\u5408\u6210"},videoPause:{en:"Pause film preview","zh-Hans":"\u6682\u505C\u6574\u7247\u9884\u89C8"},videoPlay:{en:"Play film preview","zh-Hans":"\u64AD\u653E\u6574\u7247\u9884\u89C8"},videoLayer:{en:"video layer","zh-Hans":"\u89C6\u9891\u56FE\u5C42"},videoFit:{en:"Video fit","zh-Hans":"\u89C6\u9891\u9002\u914D"},videoSaved:{en:"Motion video composition saved","zh-Hans":"Motion \u89C6\u9891\u7F16\u6392\u5DF2\u4FDD\u5B58"},videoTemplates:{en:"Video templates","zh-Hans":"\u89C6\u9891\u6A21\u677F"},webCodecsUnavailable:{en:"WebCodecs MP4 export is not available in this browser.","zh-Hans":"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 WebCodecs MP4 \u5BFC\u51FA\u3002"},workbenchHeaderLabel:{en:"Motion workbench header","zh-Hans":"Motion \u5DE5\u4F5C\u53F0\u5934\u90E8"}};function c1(e){let a=String(e||"").toLowerCase().startsWith("zh")?"zh-Hans":"en";return(r,n)=>b4(l1[r]?.[a]??l1[r]?.en??r,n)}function Yr(e,t){return e.map(a=>({value:a.value,label:t(a.labelKey)}))}function d1(e,t){return e==="projects"?t("projects"):e==="library"?t("library"):e==="html"?t("html"):e==="video"?t("video"):e==="versions"?t("versions"):e==="exports"?t("exports"):e}function Rd(e,t){return e==="load"?t("triggerLoad"):e==="scroll"?t("triggerScroll"):e==="hover"?t("triggerHover"):e==="click"?t("triggerClick"):e}function Pd(e,t){if(!e)return t("draft");let a=e.toLowerCase();return a==="draft"?t("statusDraft"):a==="reviewed"?t("statusReviewed"):a==="archived"?t("statusArchived"):a==="ready"?t("statusReady"):e}function b4(e,t){return t?e.replace(/\{([a-zA-Z0-9_]+)\}/g,(a,r)=>t[r]===void 0?a:String(t[r])):e}var qg=new Map,Nd=new Map;function Md(e){let t=Ft(e.w,1280),a=Ft(e.h,720),r=Ft(e.fps,30),n=Math.max(.5,Ft(e.duration,p1(e)));return{w:t,h:a,fps:r,duration:()=>n,preload:async()=>k4(e),seekMedia:async o=>T4(e,o),renderFrame(o,i){x4(o,e,{w:t,h:a,time:i,duration:n})}}}function x4(e,t,a){e.clearRect(0,0,a.w,a.h),f1(e,t.bg||"#0f172a",a.w,a.h);let r=I4(t,a.time),n=Array.isArray(t.shared)?t.shared:[];jg(e,t,r,a,n,1);let o=r.scene?.transition||"cut",i=Math.min(.65,r.duration/3);if(r.nextScene&&o!=="cut"&&r.localTime>r.duration-i){let s=Dd((r.localTime-(r.duration-i))/i,0,1);o==="push"?(e.save(),e.translate(a.w*(1-s),0),jg(e,t,{...r,scene:r.nextScene,localTime:0},a,n,1),e.restore()):jg(e,t,{...r,scene:r.nextScene,localTime:0},a,n,s)}}function jg(e,t,a,r,n,o){e.save(),e.globalAlpha*=o,a.scene?.bg&&f1(e,a.scene.bg,r.w,r.h);let i=a.scene?a.scene.layers||[]:t.layers||[];for(let s of[...n,...i])v4(e,s,a.localTime,r);e.restore()}function f1(e,t,a,r){if(/^linear-gradient/i.test(t)){let n=e.createLinearGradient(0,0,a,r);n.addColorStop(0,"#0f172a"),n.addColorStop(.45,"#2563eb"),n.addColorStop(1,"#14b8a6"),e.fillStyle=n}else e.fillStyle=t;e.fillRect(0,0,a,r)}function v4(e,t,a,r){let n=La(t.start,0),o=La(t.end,r.duration);if(a<n||a>o)return;let i=Math.max(0,a-n),s=ni(t,"x",i,La(t.x,r.w/2)),u=ni(t,"y",i,La(t.y,r.h/2)),l=ni(t,"offset",i,0),c=N4(t.path,l),d=c?.x??s,f=c?.y??u,p=Dd(ni(t,"opacity",i,La(t.opacity,1)),0,1),g=ni(t,"scale",i,La(t.scale,1)),m=ni(t,"rotate",i,La(t.rotate,0)),x=Math.max(0,ni(t,"blur",i,0));e.save(),e.globalAlpha=p,e.translate(d,f),e.rotate(m*Math.PI/180),e.scale(g,g),x>0&&(e.filter=`blur(${x}px)`),t.type==="video"&&t.src?C4(e,t):t.type==="image"&&t.src?S4(e,t):t.type==="ellipse"?w4(e,t):t.type==="rect"?A4(e,t):y4(e,t),e.restore()}function y4(e,t){let a=Ft(t.size,64),r=Ft(t.weight,800);e.font=`${r} ${a}px ${t.font||"Inter"}, ui-sans-serif, system-ui, sans-serif`,e.textAlign=t.align||"center",e.textBaseline="middle",e.fillStyle=t.color||"#ffffff",t.kinetic?.type==="char-rise"||t.kinetic?.type==="char-pop"?P4(e,t.text||"Motion",a,t):R4(e,t.text||"Motion",0,0,Ft(t.w,980),a*1.15)}function A4(e,t){let a=Ft(t.w,360),r=Ft(t.h,180);e.fillStyle=t.fill||t.color||t.bg||"#ffffff",M4(e,-a/2,-r/2,a,r,Ft(t.radius,28)),e.fill()}function w4(e,t){e.fillStyle=t.fill||t.color||t.bg||"#22c55e",e.beginPath(),e.ellipse(0,0,Ft(t.w,220)/2,Ft(t.h,220)/2,0,0,Math.PI*2),e.fill()}function S4(e,t){let a=t.src?qg.get(t.src):null,r=Ft(t.w,480),n=Ft(t.h,270);a&&a.complete?e.drawImage(a,-r/2,-n/2,r,n):(e.fillStyle="#e2e8f0",e.fillRect(-r/2,-n/2,r,n))}function C4(e,t){let a=t.src?Nd.get(t.src):null,r=Ft(t.w,480),n=Ft(t.h,270);a&&a.readyState>=2?e.drawImage(a,-r/2,-n/2,r,n):(e.fillStyle="#020617",e.fillRect(-r/2,-n/2,r,n),e.fillStyle="#94a3b8",e.font="700 28px Inter, ui-sans-serif, system-ui, sans-serif",e.textAlign="center",e.textBaseline="middle",e.fillText("Video",0,0))}function I4(e,t){let a=Array.isArray(e.scenes)?e.scenes:[],r=0;for(let n=0;n<a.length;n+=1){let o=a[n],i=Ft(o.duration,3);if(t<=r+i)return{scene:o,sceneIndex:n,nextScene:a[n+1]||null,duration:i,localTime:Math.max(0,t-r)};r+=i}return{scene:null,sceneIndex:-1,nextScene:null,duration:p1(e),localTime:t}}function ni(e,t,a,r){let n=e.tracks?.[t];if(!Array.isArray(n)||n.length===0)return r;let o=n.filter(i=>typeof i=="object"&&i!==null).map(i=>({t:La(i.t,0),v:La(i.v,r),ease:i.ease})).sort((i,s)=>i.t-s.t);if(o.length===0||a<=o[0].t)return o[0]?.v??r;for(let i=1;i<o.length;i+=1){let s=o[i-1],u=o[i];if(a<=u.t){let l=Math.max(.001,u.t-s.t),c=Dd((a-s.t)/l,0,1),d=u.ease==="ease-out"?1-Math.pow(1-c,3):u.ease==="ease-in"?c*c*c:c;return s.v+(u.v-s.v)*d}}return o[o.length-1].v}function k4(e){let t=Kg(e).filter(r=>r.type==="image"&&r.src).map(r=>String(r.src)),a=Kg(e).filter(r=>r.type==="video"&&r.src).map(r=>String(r.src));return Promise.all([...t.map(L4),...a.map(E4)]).then(()=>{})}function L4(e){return new Promise(t=>{if(qg.has(e)){t();return}let a=new Image;a.crossOrigin="anonymous",a.onload=()=>{qg.set(e,a),t()},a.onerror=()=>t(),a.src=e})}function E4(e){return new Promise(t=>{if(Nd.has(e)){t();return}let a=document.createElement("video");a.crossOrigin="anonymous",a.muted=!0,a.preload="auto",a.playsInline=!0,a.onloadeddata=()=>{Nd.set(e,a),t()},a.onerror=()=>t(),a.src=e})}function T4(e,t){let a=Kg(e).filter(r=>r.type==="video"&&r.src).map(r=>({layer:r,video:Nd.get(String(r.src))})).filter(r=>!!r.video);return Promise.all(a.map(({layer:r,video:n})=>new Promise(o=>{let i=La(r.start,0),s=Math.max(0,t-i);if(!Number.isFinite(n.duration)||Math.abs(n.currentTime-s)<.03){o();return}let u=()=>{n.removeEventListener("seeked",u),o()};n.addEventListener("seeked",u,{once:!0}),n.currentTime=r.loop&&Number.isFinite(n.duration)&&n.duration>0?s%n.duration:Math.min(s,n.duration||s),setTimeout(u,250)}))).then(()=>{})}function Kg(e){let t=[...e.layers||[],...e.shared||[]];for(let a of e.scenes||[])t.push(...a.layers||[]);return t}function p1(e){return Array.isArray(e.scenes)&&e.scenes.length>0?e.scenes.reduce((r,n)=>r+Ft(n.duration,3),0):(e.layers||[]).reduce((r,n)=>Math.max(r,La(n.end,La(n.start,0)+3)),0)||5}function R4(e,t,a,r,n,o){let i=t.split(/\s+/),s=[],u="";for(let c of i){let d=u?`${u} ${c}`:c;e.measureText(d).width>n&&u?(s.push(u),u=c):u=d}u&&s.push(u);let l=r-(s.length-1)*o/2;s.forEach((c,d)=>e.fillText(c,a,l+d*o))}function P4(e,t,a,r){let n=Array.from(t),i=-n.reduce((s,u)=>s+e.measureText(u).width,0)/2;n.forEach((s,u)=>{let l=e.measureText(s).width,c=r.kinetic?.type==="char-pop"?Math.sin(u*.85)*a*.08:-Math.sin(u*.55)*a*.05;e.fillText(s,i+l/2,c),i+=l})}function N4(e,t){let a=(e?.points||[]).map(l=>({x:La(l.x,NaN),y:La(l.y,NaN)})).filter(l=>Number.isFinite(l.x)&&Number.isFinite(l.y));if(a.length===0)return null;if(a.length===1)return a[0];let n=Dd(t,0,1)*(a.length-1),o=Math.min(a.length-2,Math.floor(n)),i=n-o,s=a[o],u=a[o+1];return{x:s.x+(u.x-s.x)*i,y:s.y+(u.y-s.y)*i}}function M4(e,t,a,r,n,o){let i=Math.min(o,r/2,n/2);e.beginPath(),e.moveTo(t+i,a),e.arcTo(t+r,a,t+r,a+n,i),e.arcTo(t+r,a+n,t,a+n,i),e.arcTo(t,a+n,t,a,i),e.arcTo(t,a,t+r,a,i),e.closePath()}function Ft(e,t){let a=Number(e);return Number.isFinite(a)&&a>0?a:t}function La(e,t){let a=Number(e);return Number.isFinite(a)?a:t}function Dd(e,t,a){return Math.min(a,Math.max(t,e))}var m1=["opacity","x","y","scale","rotate","blur"],D4=`
46
57
  @keyframes ma-fade{from{opacity:0}to{opacity:1}}
47
58
  @keyframes ma-slide-up{from{opacity:0;transform:translateY(var(--ma-d,24px))}to{opacity:1;transform:none}}
48
59
  @keyframes ma-slide-down{from{opacity:0;transform:translateY(calc(var(--ma-d,24px)*-1))}to{opacity:1;transform:none}}
@@ -57,7 +68,7 @@ If you want to offset all timestamps of a track such that the first one is zero,
57
68
  @keyframes ma-wobble{0%,100%{transform:rotate(0)}25%{transform:rotate(-4deg)}50%{transform:rotate(3deg)}75%{transform:rotate(-2deg)}}
58
69
  @keyframes ma-sink{0%{transform:none}50%{transform:scale(.94)}100%{transform:none}}
59
70
  @media(prefers-reduced-motion:reduce){[data-ma-anim]{animation:none!important;opacity:1!important;filter:none!important;transform:none!important}}
60
- `.trim(),Cy=`(function(){
71
+ `.trim(),O4=`(function(){
61
72
  if(window.maMotion) return;
62
73
  var RM = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
63
74
  function animName(el){
@@ -95,30 +106,534 @@ If you want to offset all timestamps of a track such that the first one is zero,
95
106
  window.__maTimeline={seek:seek,duration:timelineDuration,resume:resume};
96
107
  window.maMotion={play:play,wire:wire,wireAll:wireAll,seek:seek,timelineDuration:timelineDuration};
97
108
  if(document.readyState==='loading') document.addEventListener('DOMContentLoaded', wireAll); else wireAll();
98
- })();`;function Sy(e){let t=e.trim();if(!t)throw new Error("HTML artifact is empty.");if(t.length>5*1024*1024)throw new Error("HTML artifact is too large.");if(!/<html[\s>]|<!doctype html/i.test(t))throw new Error("HTML artifact must be a complete HTML document.");return t}function mp(e){let t=Sy(e);if(!/id=["']ma-motion-kf["']/.test(t)){let a=`<style id="ma-motion-kf">
99
- ${yy}
109
+ })();`;function _4(e){let t=e.trim();if(!t)throw new Error("HTML artifact is empty.");if(t.length>5*1024*1024)throw new Error("HTML artifact is too large.");if(!/<html[\s>]|<!doctype html/i.test(t))throw new Error("HTML artifact must be a complete HTML document.");return t}function h1(e){let t=_4(e);if(!/id=["']ma-motion-kf["']/.test(t)){let a=`<style id="ma-motion-kf">
110
+ ${D4}
100
111
  </style>`;t=/<\/head>/i.test(t)?t.replace(/<\/head>/i,`${a}
101
112
  </head>`):`${a}
102
113
  ${t}`}if(!/id=["']ma-motion-runtime["']/.test(t)){let a=`<script id="ma-motion-runtime">
103
- ${Cy}
114
+ ${O4}
104
115
  <\/script>`;t=/<\/body>/i.test(t)?t.replace(/<\/body>/i,`${a}
105
116
  </body>`):`${t}
106
- ${a}`}return t}function Ha(e){let t={},a=e??{};for(let o of pp){let r=a[o];if(Array.isArray(r)){let n=r.filter(i=>typeof i=="object"&&i!==null).map(i=>({t:Fs(Number(i.t??0),0,999),v:Number.isFinite(Number(i.v))?Number(i.v):0,...typeof i.ease=="string"&&i.ease.trim()?{ease:i.ease.trim()}:{}})).sort((i,s)=>Number(i.t??0)-Number(s.t??0));n.length>0&&(t[o]=n)}}return t}function gp(e){return`ma-kf-${e.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"")||"custom"}`}function Ly(e,t){let a=Ha(t),o=new Set;for(let i of Object.values(a))for(let s of i||[])o.add(Fs(Number(s.t??0),0,1));if(o.size===0)return"";let n=Array.from(o).sort((i,s)=>i-s).map(i=>{let s=Math.round(i*1e3)/10,l=wo(a.opacity,i,void 0),d=wo(a.x,i,0)??0,u=wo(a.y,i,0)??0,c=wo(a.scale,i,1)??1,m=wo(a.rotate,i,0)??0,h=wo(a.blur,i,0)??0,x=[l!==void 0?`opacity:${yo(l)}`:"",`transform:translate(${yo(d)}px,${yo(u)}px) scale(${yo(c)}) rotate(${yo(m)}deg)`,h>0?`filter:blur(${yo(h)}px)`:"filter:blur(0)"].filter(Boolean);return`${s}%{${x.join(";")}}`});return`@keyframes ${e}{${n.join("")}}`}function hp(e,t,a){let o=Ly(t,a);if(!o)return e;let r=`ma-custom-${t}`,n=`<style id="${r}">
107
- ${o}
108
- </style>`,i=new RegExp(`<style\\s+id=["']${Iy(r)}["'][\\s\\S]*?<\\/style>`,"i");return i.test(e)?e.replace(i,n):/<\/head>/i.test(e)?e.replace(/<\/head>/i,`${n}
109
- </head>`):`${n}
110
- ${e}`}function wo(e,t,a){if(!e||e.length===0)return a;let o=e.map(r=>({t:Number(r.t??0),v:Number(r.v??a??0)})).sort((r,n)=>r.t-n.t);if(t<=o[0].t)return o[0].v;for(let r=1;r<o.length;r+=1){let n=o[r-1],i=o[r];if(t<=i.t){let s=Math.max(.001,i.t-n.t),l=Fs((t-n.t)/s,0,1);return n.v+(i.v-n.v)*l}}return o[o.length-1].v}function Fs(e,t,a){return Math.max(t,Math.min(a,Number.isFinite(e)?e:t))}function yo(e){return Math.round(e*1e3)/1e3}function Iy(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var vp=["text","rect","ellipse","image","video"];var ky='h1,h2,h3,p,button,a.btn,a.button,[class*="btn"],[class*="button"],[class*="card"],img,[data-ma-anim],[data-ma-kf]',Ry=14,xp=[{group:"Entrance",templates:["fade-in","slide-up","slide-down","slide-left","slide-right","zoom-in","rotate-in","pop","bounce-in"]},{group:"Emphasis",templates:["pulse","float","wobble"]},{group:"Attention",templates:["shake","heartbeat"]},{group:"Exit",templates:["fade-out","zoom-out"]}];function bp(e){let t=[],a=/<([a-zA-Z0-9-]+)\b([^>]*(?:data-ma-anim|data-ma-kf)[^>]*)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9-]+)\b([^>]*(?:data-ma-anim|data-ma-kf)[^>]*)\/?>/gi,o;for(;(o=a.exec(e))!==null;){let r=o[1]||o[4]||"element",n=o[2]||o[5]||"",i=Co(n,"data-ma-anim"),s=Co(n,"data-ma-kf");if(!i&&!s)continue;let l=Co(n,"data-ma-id")||`${r}-${t.length+1}`,d=Ay(o[3]||"").trim();t.push({id:l,label:d?`${r} \xB7 ${d.slice(0,32)}`:r,verb:i||s||"custom",trigger:Co(n,"data-ma-trigger")||"load",delay:Ee(Co(n,"data-ma-delay"),0),duration:Ee(Co(n,"data-ma-dur"),520)})}return t}function _s(e){let t=e.tagName.toLowerCase(),a=(e.text||"").replace(/\s+/g," ").trim(),o=e.className||"",r=Math.max(0,Number(e.index||0));return t==="img"?`Image${e.alt?` \xB7 ${e.alt.slice(0,36)}`:` ${r+1}`}`:t==="button"||t==="a"||/\b(btn|button)\b/i.test(o)?`Button${a?` \xB7 ${a.slice(0,36)}`:` ${r+1}`}`:/\b(card|tile|panel)\b/i.test(o)?`Card${a?` \xB7 ${a.slice(0,36)}`:` ${r+1}`}`:/^h[1-3]$/.test(t)?`Headline${a?` \xB7 ${a.slice(0,42)}`:` ${r+1}`}`:t==="p"?`Text${a?` \xB7 ${a.slice(0,42)}`:` ${r+1}`}`:`${t}${a?` \xB7 ${a.slice(0,42)}`:` ${r+1}`}`}function Py(e){let t=e.width??999,a=e.height??999;return t>=24&&a>=12}function wp(e){let t=!1,a=Array.from(e.querySelectorAll(ky)),o=[];for(let r of a){if(o.length>=Ry)break;let n=r.getBoundingClientRect();Py({tagName:r.tagName,width:n.width,height:n.height})&&(o.some(i=>i!==r&&i.contains(r))||(r.getAttribute("data-ma-id")||(r.setAttribute("data-ma-id",`c${o.length}`),t=!0),o.push(r)))}return{changed:t,components:o.map((r,n)=>({id:r.getAttribute("data-ma-id")||`c${n}`,label:_s({tagName:r.tagName,text:r.textContent,className:r.getAttribute("class"),alt:r.getAttribute("alt"),index:n}),element:r}))}}function yp(e,t=1200){let a=Math.max(t,...e.map(r=>Math.max(0,r.delay)+Math.max(80,r.duration))),o=e.filter(r=>r.trigger==="load"&&r.delay<150).length;return{duration:a,earlyLoadCount:o,restraintWarning:o>4?"More than four load motions start early; consider delaying or changing some triggers.":null,items:e.map(r=>({...r,leftPct:Hs(Math.max(0,r.delay)/a*100,0,100),widthPct:Hs(Math.max(80,r.duration)/a*100,2,100),startsEarly:r.trigger==="load"&&r.delay<150}))}}function _a(){return{opacity:[{t:0,v:0},{t:.5,v:1}],x:[{t:0,v:0},{t:.5,v:0}],y:[{t:0,v:24},{t:.5,v:0,ease:"ease-out"}],scale:[{t:0,v:.96},{t:.5,v:1}],rotate:[{t:0,v:0},{t:.5,v:0}],blur:[{t:0,v:8},{t:.5,v:0}]}}function Cp(e){return{w:la(e.w,1280),h:la(e.h,720),fps:la(e.fps,30)}}function rt(e){return Array.isArray(e.scenes)&&e.scenes.length>0?e.scenes:[]}function Ty(e){let t=rt(e);if(t.length>0)return t.reduce((o,r)=>o+la(r.duration,3),0);let a=So(e,-1).reduce((o,r)=>Math.max(o,Ee(r.end,Ee(r.start,0)+3)),0);return la(e.duration,a||5)}function So(e,t){let a=rt(e);return t>=0&&a[t]?a[t].layers||[]:e.layers||[]}function pr(e,t,a){return(a!==void 0?[...e.shared||[],...So(e,a)]:[...e.layers||[],...e.shared||[],...rt(e).flatMap(r=>r.layers||[])]).find(r=>r.id===t)??null}function Sp(e,t,a=0){let{w:o,h:r}=Cp(t),i={id:`${e}-${Date.now().toString(36)}-${a}`,type:e,start:0,end:Math.min(4,Ty(t)),x:o/2,y:r/2,opacity:1,scale:1,rotate:0,tracks:{opacity:[{t:0,v:0},{t:.45,v:1,ease:"ease-out"}]}};return e==="text"?{...i,text:"New text",w:720,h:96,size:64,weight:800,color:"#ffffff",kinetic:{type:"word-rise",stagger:.04}}:e==="rect"?{...i,w:360,h:180,color:"#8b5cf6",radius:28}:e==="ellipse"?{...i,w:220,h:220,color:"#22c55e"}:{...i,w:480,h:270,color:"#e2e8f0"}}function Lp(e,t,a){let o=rt(e);return t>=0&&o[t]?{...e,scenes:o.map((r,n)=>n===t?{...r,layers:[...r.layers||[],a]}:r)}:{...e,layers:[...e.layers||[],a]}}function Va(e,t,a,o){let r=s=>(s||[]).map(l=>l.id===a?o(l):l),n=rt(e);return(e.shared||[]).some(s=>s.id===a)?{...e,shared:r(e.shared)}:t>=0&&n[t]?{...e,scenes:n.map((s,l)=>l===t?{...s,layers:r(s.layers)}:s)}:{...e,layers:r(e.layers)}}function Ip(e,t,a){let o=n=>(n||[]).filter(i=>i.id!==a),r=rt(e);return(e.shared||[]).some(n=>n.id===a)?{...e,shared:o(e.shared)}:t>=0&&r[t]?{...e,scenes:r.map((n,i)=>i===t?{...n,layers:o(n.layers)}:n)}:{...e,layers:o(e.layers)}}function Vs(e,t,a,o){let r=i=>{let s=[...i||[]],l=s.findIndex(c=>c.id===a),d=l+o;if(l<0||d<0||d>=s.length)return s;let[u]=s.splice(l,1);return s.splice(d,0,u),s},n=rt(e);return t>=0&&n[t]?{...e,scenes:n.map((i,s)=>s===t?{...i,layers:r(i.layers)}:i)}:{...e,layers:r(e.layers)}}function kp(e,t,a,o){let r=Ee(e.x,0)+t,n=Ee(e.y,0)+a;return{...e,x:r,y:n,tracks:{...e.tracks||{},x:Bs(e.tracks?.x,o,r),y:Bs(e.tracks?.y,o,n)}}}function Rp(e,t,a,o){return{...e,tracks:{...e.tracks||{},[t]:Bs(e.tracks?.[t],a,o)}}}function An(e,t){let a=Ee(e.x,0),o=Ee(e.y,0),r={...e.tracks||{}};return t==="fade-in"&&(r.opacity=[{t:0,v:0},{t:.5,v:1,ease:"ease-out"}]),t==="slide-up"&&Object.assign(r,{opacity:[{t:0,v:0},{t:.55,v:1}],y:[{t:0,v:o+56},{t:.55,v:o,ease:"ease-out"}]}),t==="slide-down"&&Object.assign(r,{opacity:[{t:0,v:0},{t:.55,v:1}],y:[{t:0,v:o-56},{t:.55,v:o,ease:"ease-out"}]}),t==="slide-left"&&Object.assign(r,{opacity:[{t:0,v:0},{t:.55,v:1}],x:[{t:0,v:a+72},{t:.55,v:a,ease:"ease-out"}]}),t==="slide-right"&&Object.assign(r,{opacity:[{t:0,v:0},{t:.55,v:1}],x:[{t:0,v:a-72},{t:.55,v:a,ease:"ease-out"}]}),t==="zoom-in"&&Object.assign(r,{opacity:[{t:0,v:0},{t:.5,v:1}],scale:[{t:0,v:.82},{t:.5,v:1,ease:"ease-out"}]}),t==="rotate-in"&&Object.assign(r,{opacity:[{t:0,v:0},{t:.55,v:1}],rotate:[{t:0,v:-10},{t:.55,v:0,ease:"ease-out"}]}),(t==="pop"||t==="bounce-in")&&Object.assign(r,{scale:[{t:0,v:.82},{t:.28,v:1.08},{t:.48,v:1}]}),t==="pulse"&&(r.scale=[{t:0,v:1},{t:.35,v:1.08},{t:.7,v:1}]),t==="float"&&(r.y=[{t:0,v:o},{t:1,v:o-22},{t:2,v:o}]),t==="wobble"&&(r.rotate=[{t:0,v:0},{t:.18,v:-5},{t:.38,v:4},{t:.6,v:0}]),t==="shake"&&(r.x=[{t:0,v:a},{t:.12,v:a-14},{t:.24,v:a+14},{t:.36,v:a}]),t==="heartbeat"&&(r.scale=[{t:0,v:1},{t:.2,v:1.12},{t:.36,v:1},{t:.52,v:1.08},{t:.7,v:1}]),t==="fade-out"&&(r.opacity=[{t:0,v:1},{t:.55,v:0}]),t==="zoom-out"&&Object.assign(r,{opacity:[{t:0,v:1},{t:.55,v:0}],scale:[{t:0,v:1},{t:.55,v:.84}]}),{...e,tracks:r}}function Us(e,t,a="line"){let o=t.filter(r=>Number.isFinite(r.x)&&Number.isFinite(r.y)).slice(0,80);return{...e,path:{kind:a,points:o},tracks:{...e.tracks||{},offset:e.tracks?.offset||[{t:0,v:0},{t:Math.max(.5,Ee(e.end,3)-Ee(e.start,0)),v:1,ease:"ease-out"}]}}}function qs(e){let t=e.type||"text",a=t==="text"?520:t==="ellipse"?220:360,o=t==="text"?la(e.size,64)*1.4:t==="ellipse"?220:180;return{x:Ee(e.x,0),y:Ee(e.y,0),w:la(e.w,a),h:la(e.h,o),rotate:Ee(e.rotate,0)}}function Pp(e,t,a){for(let o=e.length-1;o>=0;o-=1){let r=e[o],n=qs(r);if(t>=n.x-n.w/2&&t<=n.x+n.w/2&&a>=n.y-n.h/2&&a<=n.y+n.h/2)return r}return null}function Tp(e){let t=rt(e),{w:a,h:o}=Cp(e),r=t.length+1;return{...e,layers:t.length?e.layers:void 0,duration:void 0,scenes:[...t,{id:`scene-${r}`,name:`Scene ${r}`,duration:4,transition:r%2===0?"push":"dissolve",bg:r%2===0?"#111827":"#0f766e",layers:[{id:`scene-${r}-title`,type:"text",text:`Scene ${r}`,x:a/2,y:o/2,size:64,weight:800,color:"#ffffff",tracks:_a()}]}]}}function Mp(e,t,a){let o=rt(e);return o[t]?{...e,scenes:o.map((r,n)=>n===t?{...r,duration:Hs(a,.5,30)}:r)}:e}function Ap(e,t,a){let o=rt(e);return o[t]?{...e,scenes:o.map((r,n)=>n===t?{...r,transition:a}:r)}:e}function Bs(e,t,a){let o=Math.max(0,Math.round(t*100)/100),r=My(e||[]),n=r.find(i=>Math.abs(Ee(i.t,0)-o)<.02);return n?n.v=a:r.push({t:o,v:a}),r.sort((i,s)=>Ee(i.t,0)-Ee(s.t,0))}function My(e){return e.filter(t=>typeof t=="object"&&t!==null).map(t=>({t:Math.max(0,Ee(t.t,0)),v:Ee(t.v,0),...typeof t.ease=="string"&&t.ease.trim()?{ease:t.ease.trim()}:{}})).sort((t,a)=>Ee(t.t,0)-Ee(a.t,0))}function Co(e,t){return new RegExp(`${t}=(["'])(.*?)\\1`,"i").exec(e)?.[2]}function Ay(e){return e.replace(/<[^>]*>/g," ").replace(/\s+/g," ")}function Ee(e,t){let a=Number(e);return Number.isFinite(a)?a:t}function la(e,t){let a=Number(e);return Number.isFinite(a)&&a>0?a:t}function Hs(e,t,a){return Math.max(t,Math.min(a,Number.isFinite(e)?e:t))}var Dn=!1;function Dp(e){Dn=e===!0||!!e&&e!==null&&typeof e=="object"&&("enabled"in e?!!e.enabled:!!e.motion)}var zp={info(e,t){Dn&&console.info(`[motion] ${e}`,t??{})},warn(e,t){Dn&&console.warn(`[motion] ${e}`,t??{})},error(e,t){Dn&&console.error(`[motion] ${e}`,t??{})}};var Ep="xpertai.remote_component",Op=1,Ua=new Map,mr=null,Dy=0,Lo={requestTimeout:"Request timed out",remoteRequestFailed:"Remote request failed",unknownError:"Unknown error"};function Fe(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function hr(e,t,a){!mr&&e!=="ready"||parent.postMessage(Object.assign({channel:Ep,protocolVersion:Op,instanceId:mr,type:e},t||{}),"*",a||[])}function js(e,t,a){let o=String(++Dy);return new Promise((r,n)=>{Ua.set(o,{resolve:r,reject:n});try{hr(e,Object.assign({requestId:o},t||{}),a)}catch(i){Ua.delete(o),n(i instanceof Error?i:new Error(Lo.remoteRequestFailed));return}setTimeout(()=>{Ua.has(o)&&(Ua.delete(o),n(new Error(Lo.requestTimeout)))},3e4)})}function Np(e){return js("requestData",{query:e||{}})}function da(e,t,a,o){return js("executeAction",{actionKey:e,targetId:t,input:a,parameters:o})}async function zn(e,t,a,o,r){let n=await r.arrayBuffer();return js("executeFileAction",{actionKey:e,targetId:t,input:a,parameters:o,file:{name:r.name,type:r.type,size:r.size,buffer:n}},[n])}function Me(e,t){hr("notify",{level:e,message:t})}function gr(){let e=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,window.innerHeight||0,720);hr("resize",{height:e,viewportBound:!0})}function Ws(e){return e?Fe(e)?e.payload!==void 0?e.payload:e.data!==void 0?e.data:e.result!==void 0?e.result:e:e:null}function qa(e){return typeof e=="object"&&e&&"message"in e&&e.message?String(e.message):String(e||Lo.unknownError)}function Fp(e){Lo={...Lo,...e}}function Bp(e,t){let a=null;function o(n){window.XpertRemoteUI?.applyTheme?.(n)}function r(n){o(n);let i={...a||{},theme:n};a=i,e(i),setTimeout(gr,0)}window.addEventListener("message",n=>{let i=n.data;if(!(!Fe(i)||i.channel!==Ep||i.protocolVersion!==Op)){if(i.type==="init"){mr=typeof i.instanceId=="string"?i.instanceId:null,Dp(i.debug);let s={manifest:i.manifest,payload:i.payload,initialQuery:Oy(i.initialQuery),locale:typeof i.locale=="string"?i.locale:void 0,theme:i.theme,debug:i.debug};a=s,o(i.theme),e(s),zp.info("bridge.init",{instanceId:mr??"",locale:s.locale??"",hasInitialQuery:i.initialQuery!==void 0}),setTimeout(gr,0);return}if(i.instanceId===mr){if(Ey(i)){r(Ny(i));return}if(i.type==="hostEvent"){t(zy(i));return}if(i.requestId&&Ua.has(String(i.requestId))){let s=Ua.get(String(i.requestId));if(Ua.delete(String(i.requestId)),!s)return;i.type==="error"?s.reject(new Error(String(i.message||Lo.remoteRequestFailed))):s.resolve(i)}}}})}function zy(e){return e.event!==void 0?e.event:e.payload!==void 0?e.payload:e.data!==void 0?e.data:e.result!==void 0?e.result:e}function Ey(e){return["theme","themeChanged","theme-change","hostThemeChanged","host-theme-changed"].includes(String(e.type||""))}function Oy(e){return Fe(e)?{...e,parameters:Fe(e.parameters)?e.parameters:void 0,selectionId:e.selectionId}:{}}function Ny(e){return e.theme!==void 0?e.theme:Fe(e.payload)&&e.payload.theme!==void 0?e.payload.theme:Fe(e.data)&&e.data.theme!==void 0?e.data.theme:e.payload??e.data??null}var Hp=["library","html","video"],_p=["load","scroll","hover","click"],Vp=["fade","slide-up","slide-down","slide-left","slide-right","zoom","rotate","blur","pop","pulse","shake","wobble","sink"],En=["opacity","x","y","scale","rotate","blur"],Up=[{value:"desktop",labelKey:"deviceDesktop"},{value:"tablet",labelKey:"deviceTablet"},{value:"mobile",labelKey:"deviceMobile"}],qp=[{value:"all",labelKey:"filterAllSurfaces"},{value:"web",labelKey:"filterWeb"},{value:"video",labelKey:"filterVideo"}],jp=[{value:"all",labelKey:"filterAllTargets"},{value:"text",labelKey:"filterText"},{value:"button",labelKey:"filterButton"},{value:"card",labelKey:"filterCard"},{value:"image",labelKey:"filterImage"},{value:"video",labelKey:"filterVideoLayer"},{value:"background",labelKey:"filterBackground"}],Wp=[{value:"all",labelKey:"filterAllStatuses"},{value:"ready",labelKey:"filterReady"}],Gp=[{value:"none",labelKey:"kineticNone"},{value:"word-rise",labelKey:"kineticWordRise"},{value:"char-rise",labelKey:"kineticCharRise"},{value:"char-pop",labelKey:"kineticCharPop"},{value:"typewriter",labelKey:"kineticTypewriter"}],Kp=[{value:"cut",labelKey:"transitionCut"},{value:"dissolve",labelKey:"transitionDissolve"},{value:"push",labelKey:"transitionPush"},{value:"fade",labelKey:"transitionFade"}];var f=Te;function Z({size:e="sm",...t}){return f(pn,{size:e,...t})}function Ct(e){return f(Nf,{value:e.value,onValueChange:e.onValueChange},f(Bf,{className:e.className},f(Ff,null)),f(Hf,null,e.options.map(t=>f(_f,{key:t.value,value:t.value},t.label))))}function ja(e){let t=Fy(e.value,e.min,e.max);return f(Vf,{className:e.className,min:e.min,max:e.max,step:e.step,value:[t],onValueChange:a=>{let o=a[0];typeof o=="number"&&e.onChange(o)}})}function Fy(e,t,a){return Number.isFinite(e)?Math.min(a,Math.max(t,e)):t}function $p(e){return f("section",{className:"motion-unified-header motion-page-header","aria-label":e.t("workbenchHeaderLabel")},f(Xp,{title:e.header.title,label:e.t("motion")}),f(Z,{variant:"outline",className:"project-dialog-button",onClick:e.header.onOpenProjects},e.t("manageProjects")),f(Jp,{header:e.header,t:e.t}),f(Zp,{dirty:e.header.dirty,statusLabel:e.header.statusLabel,t:e.t}),f(Z,{variant:"outline",onClick:e.header.onOpenVersions},e.t("versionHistory")),f(Z,{variant:"outline",onClick:e.header.onOpenExports},e.t("exportHistory")))}function On(e){return f("div",{className:"motion-unified-header editor-toolbar"},f(Xp,{title:e.header.title,label:e.t("motion")}),f(Z,{variant:"outline",className:"project-dialog-button",onClick:e.header.onOpenProjects},e.t("manageProjects")),f(Jp,{header:e.header,t:e.t}),f(Zp,{dirty:e.header.dirty,statusLabel:e.header.statusLabel,t:e.t}),f("span",{className:"toolbar-divider"}),f(Uf,{className:"toolbar-tabs",value:e.viewMode,onValueChange:t=>e.onViewModeChange(t)},f(qf,{className:"segmented compact"},f(us,{value:"preview"},e.t("preview")),f(us,{value:"code"},e.t("code")))),f(Ct,{className:"device-select",value:e.device,options:Ot(Up,e.t),onValueChange:t=>e.onDeviceChange(t)}),f(Z,{variant:"outline",className:"replay-button",onClick:e.onReplay,title:e.t("replayAllHint")},e.t("replayMotion")),f("span",{className:"toolbar-spacer"}),f(Z,{variant:"outline",className:"icon-button",onClick:e.onUndo,disabled:!e.canUndo,title:e.t("undo")},"\u21B6"),f("div",{className:"zoom-control"},f(Z,{variant:"ghost",onClick:()=>e.onZoomChange(Math.max(.5,e.zoom-.1))},"\u2212"),f("span",null,Math.round(e.zoom*100),"%"),f(Z,{variant:"ghost",onClick:()=>e.onZoomChange(Math.min(1.4,e.zoom+.1))},"+")),f(Z,{onClick:e.onSave,disabled:e.saving},e.t("save")),f(Z,{variant:"secondary",onClick:e.header.onOpenVersions,disabled:e.saving},e.t("versionHistory")),f("div",{className:"download-menu"},f(Z,{disabled:e.saving,onClick:()=>e.onExport(e.exportKinds[0]||"html")},e.t("download")),e.exportKinds.length>1?f("div",{className:"download-popover"},e.exportKinds.map(t=>f(Z,{key:t,variant:"ghost",onClick:()=>e.onExport(t)},t))):null),f(Z,{variant:"outline",onClick:e.header.onOpenExports},e.t("exportHistory")))}function Xp(e){return f("div",{className:"motion-header-title"},f("span",{className:"motion-kicker"},e.label),f("strong",null,e.title))}function Zp(e){return e.dirty?f(mo,{variant:"outline","data-status":"warning"},e.t("unsaved")):f(mo,{variant:"secondary"},Rn(e.statusLabel,e.t))}function Jp(e){return f(Ct,{className:"motion-header-view-select",value:e.header.activeTab,options:Hp.map(t=>({value:t,label:up(t,e.t)})),onValueChange:t=>e.header.onTabChange(t)})}function Yp(e){return f(Qo,{open:e.open,onOpenChange:e.onOpenChange},f(er,{className:"motion-project-dialog"},f(tr,null,f(ar,null,e.t("projectDialogTitle")),f(or,null,e.t("projectDialogDescription"))),f("div",{className:"project-dialog-layout"},f("section",{className:"project-dialog-create"},f("h3",null,e.t("newProject")),f("label",null,f("span",null,e.t("title")),f(Ye,{value:e.title,onChange:t=>e.onTitleChange(t.target.value)})),f("label",null,f("span",null,e.t("brief")),f(Aa,{value:e.brief,onChange:t=>e.onBriefChange(t.target.value),rows:5})),f("div",{className:"motion-button-row"},f(Z,{onClick:()=>{e.onCreate("web")},disabled:e.saving},e.t("newWeb")),f(Z,{variant:"secondary",onClick:()=>{e.onCreate("video")},disabled:e.saving},e.t("newVideo")))),f("section",{className:"project-dialog-list"},f("h3",null,e.t("currentProject")),f("div",{className:"motion-list"},e.projects.map(t=>f(Z,{key:t.id,variant:t.id===e.selectedProjectId?"secondary":"outline",className:`motion-list-item ${t.id===e.selectedProjectId?"active":""}`,onClick:()=>{e.onSelect(t.id),e.onOpenChange(!1)}},f("strong",null,t.title),f("span",null,e.t("projectSummary",{surface:By(t.surface,e.t),version:t.currentVersionNumber||0,status:Rn(t.status,e.t)})))),e.projects.length===0?f("div",{className:"motion-empty"},e.t("noProjects")):null)))))}function By(e,t){return t(e==="video"?"createVideo":"createWeb")}function Qp(e){return f(Qo,{open:e.open,onOpenChange:e.onOpenChange},f(er,{className:"motion-history-dialog"},f(tr,null,f(ar,null,e.t("versionHistory")),f(or,null,e.t("versionHistoryDescription"))),f("div",{className:"history-dialog-actions"},f(Z,{onClick:()=>{e.onCreateVersion()},disabled:e.saving},e.t("saveCurrentVersion"))),f("div",{className:"history-dialog-body"},f(Hy,{versions:e.versions,currentId:e.currentId,t:e.t,onRestore:e.onRestore}))))}function em(e){return f(Qo,{open:e.open,onOpenChange:e.onOpenChange},f(er,{className:"motion-history-dialog"},f(tr,null,f(ar,null,e.t("exportHistory")),f(or,null,e.t("exportHistoryDescription"))),f("div",{className:"history-dialog-body"},f(_y,{exports:e.exports,selectedProject:e.selectedProject,t:e.t,onReviewed:e.onReviewed,onDraft:e.onDraft,onArchive:e.onArchive})),f(Of,null,f(Z,{variant:"outline",onClick:()=>e.onOpenChange(!1)},e.t("close")))))}function Hy(e){return f("section",{className:"motion-list wide"},e.versions.map(t=>f("article",{key:t.id,className:`motion-record ${t.id===e.currentId?"active":""}`},f("div",null,f("strong",null,e.t("versionLabel",{number:t.versionNumber||0})),f("span",null,t.changeSummary||t.sourceType||e.t("motionVersion"))),f(Z,{variant:"secondary",onClick:()=>{e.onRestore(t.id)}},e.t("restore")))),e.versions.length===0?f("div",{className:"motion-empty"},e.t("noVersions")):null)}function _y(e){return f("section",{className:"motion-list wide"},f("div",{className:"motion-toolbar"},f(Z,{variant:"secondary",onClick:e.onReviewed,disabled:!e.selectedProject},e.t("reviewed")),f(Z,{variant:"outline",onClick:e.onDraft,disabled:!e.selectedProject},e.t("draft")),f(Z,{variant:"outline",onClick:e.onArchive,disabled:!e.selectedProject},e.t("archive"))),e.exports.map(t=>f("article",{key:t.id,className:"motion-record"},f("div",null,f("strong",null,String(t.kind||e.t("artifact")).toUpperCase()),f("span",null,t.filePath||t.fileUrl||t.checksum||t.id)),t.fileUrl?f(Z,{asChild:!0,variant:"secondary"},f("a",{href:t.fileUrl,target:"_blank",rel:"noreferrer"},e.t("open"))):null)),e.exports.length===0?f("div",{className:"motion-empty"},e.t("noExports")):null)}function tm(e){let t=Math.max(1,e.layout.duration),[a,o]=M(!1),r=z({time:e.time,duration:t,onSeek:e.onSeek}),n=z(null);H(()=>{r.current={time:e.time,duration:t,onSeek:e.onSeek}},[t,e.onSeek,e.time]),H(()=>{if(!a)return;let s=0,l=0,d=n.current??Math.min(r.current.time,r.current.duration);n.current=null;let u=c=>{l||(l=c);let m=r.current,h=Math.min(m.duration,d+c-l);if(m.onSeek(h),h>=m.duration){o(!1);return}s=window.requestAnimationFrame(u)};return s=window.requestAnimationFrame(u),()=>window.cancelAnimationFrame(s)},[a]);function i(){if(a){o(!1);return}let s=0;n.current=s,e.onSeek(s),r.current={...r.current,time:s},o(!0)}return f(it,{className:"html-timeline"},f("div",{className:"timeline-head"},f(Z,{className:"play-button small",onClick:i,title:e.t(a?"timelinePause":"timelinePlay")},a?"||":"\u25B6"),f("strong",null,(e.time/1e3).toFixed(2),"s"),f("span",null,e.t("timeline")),f(mo,{variant:"secondary"},e.t(e.scope==="all"?"timelineScopeAll":"timelineScopeSelection")),e.layout.restraintWarning?f(mo,{variant:"outline","data-status":"warning"},e.t("timelineRestraintWarning")):null,f(ja,{min:0,max:t,step:20,value:e.time,onChange:e.onSeek})),f("div",{className:"timeline-ruler"},[0,.25,.5,.75,1].map(s=>f("span",{key:s,style:{left:rm(s)}},(t*s/1e3).toFixed(1),"s"))),f("div",{className:"timeline-body"},f("div",{className:"timeline-playhead",style:{left:`${e.time/t*100}%`}}),e.layout.items.map(s=>f(Z,{key:s.id,variant:"ghost",className:s.id===e.selectedId?"timeline-row active":"timeline-row",onClick:()=>e.onSelect(s.id)},f("span",null,s.label),f("i",{className:s.startsEarly?"starts-early":"",style:{left:`${s.leftPct}%`,width:`${s.widthPct}%`}})))))}function am(e){let t=rt(e.composition);return f("div",{className:"scene-strip"},f("div",{className:"scene-strip-head"},f("strong",null,e.t("sceneStrip")),f("span",null,e.t("sceneStripHelp"))),f("div",{className:"scene-strip-controls"},t.length===0?f(Z,{variant:"secondary",className:"scene-chip active",onClick:()=>e.onSelect(-1)},e.t("main")):t.map((a,o)=>f(nt,{key:a.id||o},f(Z,{variant:o===e.activeSceneIndex?"secondary":"outline",className:o===e.activeSceneIndex?"scene-chip active":"scene-chip",onClick:()=>e.onSelect(o)},a.name||`${e.t("scenes")} ${o+1}`),o<t.length-1?f(Ct,{value:a.transition||"cut",options:Ot(Kp,e.t),onValueChange:e.onTransition,className:"transition-select"}):null)),f(Z,{variant:"outline",className:"scene-chip",onClick:e.onAdd},"+ ",e.t("addScene")),f("label",{className:"scene-duration"},f("span",null,e.t("sceneLength")),f(Ye,{type:"number",min:"0.5",max:"30",step:"0.5",value:t[e.activeSceneIndex]?.duration||e.composition.duration||5,onChange:a=>e.onDuration(Number(a.target.value))}),f("em",null,"s"))))}function om(e){let t=Math.max(.1,e.duration),a=Math.min(t,Math.max(0,e.time));return f(it,{className:"video-timeline"},f("div",{className:"timeline-head compact-head"},f("div",{className:"timeline-title"},f("strong",null,e.t("keyframeTimeline")),f("span",null,e.t("keyframeTimelineHelp"))),f("div",{className:"timeline-legend","aria-hidden":"true"},f("span",null,f("i",{className:"legend-playhead"}),e.t("timelineCurrentTime")),f("span",null,f("i",{className:"legend-keyframe"}),e.t("keyframeLegend")))),f("div",{className:"timeline-ruler"},[0,.25,.5,.75,1].map(o=>f("span",{key:o,style:{left:rm(o)}},(t*o).toFixed(1),"s"))),f("div",{className:"timeline-body"},f("div",{className:"timeline-playhead",style:{left:`${a/t*100}%`}}),e.layers.map(o=>{let r=Vy(o,e.t),n=i=>{let l=(i.currentTarget.querySelector(".timeline-track")||i.currentTarget).getBoundingClientRect(),d=Math.min(1,Math.max(0,(i.clientX-l.left)/l.width));e.onSeek(d*t)};return f("div",{key:o.id||o.text,role:"button",tabIndex:0,className:o.id===e.selectedLayerId?"timeline-row active":"timeline-row",onClick:n,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),e.onSeek(a))}},f("span",null,o.text||o.id||o.type),f("div",{className:"timeline-track"},r.length===0?f("em",{className:"timeline-row-empty"},e.t("noKeyframes")):null,r.map(i=>{let s=e.t("keyframeDot",{properties:i.properties.join(", "),time:i.t.toFixed(2)});return f("button",{key:`${o.id||o.text}-${i.t}-${i.properties.join("-")}`,type:"button",className:Math.abs(i.t-a)<.04?"timeline-keyframe-dot active":"timeline-keyframe-dot",style:{left:`${i.t/t*100}%`},title:s,"aria-label":s,onClick:l=>{l.stopPropagation(),e.onSeek(i.t)}})})))})))}function vr(e){return f("div",{className:"motion-stat"},f("strong",null,e.value??0),f("span",null,e.label))}function rm(e){return e<=0?"var(--timeline-edge-offset)":e>=1?"calc(100% - var(--timeline-edge-offset))":`${e*100}%`}function Vy(e,t){let a=new Map;for(let[o,r]of Object.entries(e.tracks||{}))if(Array.isArray(r))for(let n of r){let i=Number(n.t??0);if(!Number.isFinite(i))continue;let s=i.toFixed(3),l=a.get(s)??{t:i,properties:[]};l.properties.push(Uy(o,t)),a.set(s,l)}return[...a.values()].map(o=>({...o,properties:[...new Set(o.properties)]})).sort((o,r)=>o.t-r.t)}function Uy(e,t){return e==="offset"?t("motionPath"):e}function nm(e){let t=e.getElementById("ma-workbench-edit-style")||e.createElement("style");t.id="ma-workbench-edit-style",t.textContent=`
117
+ ${a}`}return t}function oi(e){let t={},a=e??{};for(let r of m1){let n=a[r];if(Array.isArray(n)){let o=n.filter(i=>typeof i=="object"&&i!==null).map(i=>({t:Qg(Number(i.t??0),0,999),v:Number.isFinite(Number(i.v))?Number(i.v):0,...typeof i.ease=="string"&&i.ease.trim()?{ease:i.ease.trim()}:{}})).sort((i,s)=>Number(i.t??0)-Number(s.t??0));o.length>0&&(t[r]=o)}}return t}function g1(e){return`ma-kf-${e.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"")||"custom"}`}function B4(e,t){let a=oi(t),r=new Set;for(let i of Object.values(a))for(let s of i||[])r.add(Qg(Number(s.t??0),0,1));if(r.size===0)return"";let o=Array.from(r).sort((i,s)=>i-s).map(i=>{let s=Math.round(i*1e3)/10,u=cs(a.opacity,i,void 0),l=cs(a.x,i,0)??0,c=cs(a.y,i,0)??0,d=cs(a.scale,i,1)??1,f=cs(a.rotate,i,0)??0,p=cs(a.blur,i,0)??0,g=[u!==void 0?`opacity:${ds(u)}`:"",`transform:translate(${ds(l)}px,${ds(c)}px) scale(${ds(d)}) rotate(${ds(f)}deg)`,p>0?`filter:blur(${ds(p)}px)`:"filter:blur(0)"].filter(Boolean);return`${s}%{${g.join(";")}}`});return`@keyframes ${e}{${o.join("")}}`}function b1(e,t,a){let r=B4(t,a);if(!r)return e;let n=`ma-custom-${t}`,o=`<style id="${n}">
118
+ ${r}
119
+ </style>`,i=new RegExp(`<style\\s+id=["']${F4(n)}["'][\\s\\S]*?<\\/style>`,"i");return i.test(e)?e.replace(i,o):/<\/head>/i.test(e)?e.replace(/<\/head>/i,`${o}
120
+ </head>`):`${o}
121
+ ${e}`}function cs(e,t,a){if(!e||e.length===0)return a;let r=e.map(n=>({t:Number(n.t??0),v:Number(n.v??a??0)})).sort((n,o)=>n.t-o.t);if(t<=r[0].t)return r[0].v;for(let n=1;n<r.length;n+=1){let o=r[n-1],i=r[n];if(t<=i.t){let s=Math.max(.001,i.t-o.t),u=Qg((t-o.t)/s,0,1);return o.v+(i.v-o.v)*u}}return r[r.length-1].v}function Qg(e,t,a){return Math.max(t,Math.min(a,Number.isFinite(e)?e:t))}function ds(e){return Math.round(e*1e3)/1e3}function F4(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var x1=["text","rect","ellipse","image","video"];var H4='h1,h2,h3,p,button,a.btn,a.button,[class*="btn"],[class*="button"],[class*="card"],img,[data-ma-anim],[data-ma-kf]',z4=14,v1=[{group:"Entrance",templates:["fade-in","slide-up","slide-down","slide-left","slide-right","zoom-in","rotate-in","pop","bounce-in"]},{group:"Emphasis",templates:["pulse","float","wobble"]},{group:"Attention",templates:["shake","heartbeat"]},{group:"Exit",templates:["fade-out","zoom-out"]}];function y1(e){let t=[],a=/<([a-zA-Z0-9-]+)\b([^>]*(?:data-ma-anim|data-ma-kf)[^>]*)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9-]+)\b([^>]*(?:data-ma-anim|data-ma-kf)[^>]*)\/?>/gi,r;for(;(r=a.exec(e))!==null;){let n=r[1]||r[4]||"element",o=r[2]||r[5]||"",i=fs(o,"data-ma-anim"),s=fs(o,"data-ma-kf");if(!i&&!s)continue;let u=fs(o,"data-ma-id")||`${n}-${t.length+1}`,l=W4(r[3]||"").trim();t.push({id:u,label:l?`${n} \xB7 ${l.slice(0,32)}`:n,verb:i||s||"custom",trigger:fs(o,"data-ma-trigger")||"load",delay:It(fs(o,"data-ma-delay"),0),duration:It(fs(o,"data-ma-dur"),520)})}return t}function $g(e){let t=e.tagName.toLowerCase(),a=(e.text||"").replace(/\s+/g," ").trim(),r=e.className||"",n=Math.max(0,Number(e.index||0));return t==="img"?`Image${e.alt?` \xB7 ${e.alt.slice(0,36)}`:` ${n+1}`}`:t==="button"||t==="a"||/\b(btn|button)\b/i.test(r)?`Button${a?` \xB7 ${a.slice(0,36)}`:` ${n+1}`}`:/\b(card|tile|panel)\b/i.test(r)?`Card${a?` \xB7 ${a.slice(0,36)}`:` ${n+1}`}`:/^h[1-3]$/.test(t)?`Headline${a?` \xB7 ${a.slice(0,42)}`:` ${n+1}`}`:t==="p"?`Text${a?` \xB7 ${a.slice(0,42)}`:` ${n+1}`}`:`${t}${a?` \xB7 ${a.slice(0,42)}`:` ${n+1}`}`}function V4(e){let t=e.width??999,a=e.height??999;return t>=24&&a>=12}function A1(e){let t=!1,a=Array.from(e.querySelectorAll(H4)),r=[];for(let n of a){if(r.length>=z4)break;let o=n.getBoundingClientRect();V4({tagName:n.tagName,width:o.width,height:o.height})&&(r.some(i=>i!==n&&i.contains(n))||(n.getAttribute("data-ma-id")||(n.setAttribute("data-ma-id",`c${r.length}`),t=!0),r.push(n)))}return{changed:t,components:r.map((n,o)=>({id:n.getAttribute("data-ma-id")||`c${o}`,label:$g({tagName:n.tagName,text:n.textContent,className:n.getAttribute("class"),alt:n.getAttribute("alt"),index:o}),element:n}))}}function w1(e,t=1200){let a=Math.max(t,...e.map(n=>Math.max(0,n.delay)+Math.max(80,n.duration))),r=e.filter(n=>n.trigger==="load"&&n.delay<150).length;return{duration:a,earlyLoadCount:r,restraintWarning:r>4?"More than four load motions start early; consider delaying or changing some triggers.":null,items:e.map(n=>({...n,leftPct:Jg(Math.max(0,n.delay)/a*100,0,100),widthPct:Jg(Math.max(80,n.duration)/a*100,2,100),startsEarly:n.trigger==="load"&&n.delay<150}))}}function ii(){return{opacity:[{t:0,v:0},{t:.5,v:1}],x:[{t:0,v:0},{t:.5,v:0}],y:[{t:0,v:24},{t:.5,v:0,ease:"ease-out"}],scale:[{t:0,v:.96},{t:.5,v:1}],rotate:[{t:0,v:0},{t:.5,v:0}],blur:[{t:0,v:8},{t:.5,v:0}]}}function S1(e){return{w:to(e.w,1280),h:to(e.h,720),fps:to(e.fps,30)}}function Ea(e){return Array.isArray(e.scenes)&&e.scenes.length>0?e.scenes:[]}function U4(e){let t=Ea(e);if(t.length>0)return t.reduce((r,n)=>r+to(n.duration,3),0);let a=ps(e,-1).reduce((r,n)=>Math.max(r,It(n.end,It(n.start,0)+3)),0);return to(e.duration,a||5)}function ps(e,t){let a=Ea(e);return t>=0&&a[t]?a[t].layers||[]:e.layers||[]}function $u(e,t,a){return(a!==void 0?[...e.shared||[],...ps(e,a)]:[...e.layers||[],...e.shared||[],...Ea(e).flatMap(n=>n.layers||[])]).find(n=>n.id===t)??null}function C1(e,t,a=0){let{w:r,h:n}=S1(t),i={id:`${e}-${Date.now().toString(36)}-${a}`,type:e,start:0,end:Math.min(4,U4(t)),x:r/2,y:n/2,opacity:1,scale:1,rotate:0,tracks:{opacity:[{t:0,v:0},{t:.45,v:1,ease:"ease-out"}]}};return e==="text"?{...i,text:"New text",w:720,h:96,size:64,weight:800,color:"#ffffff",kinetic:{type:"word-rise",stagger:.04}}:e==="rect"?{...i,w:360,h:180,color:"#8b5cf6",radius:28}:e==="ellipse"?{...i,w:220,h:220,color:"#22c55e"}:{...i,w:480,h:270,color:"#e2e8f0"}}function I1(e,t,a){let r=Ea(e);return t>=0&&r[t]?{...e,scenes:r.map((n,o)=>o===t?{...n,layers:[...n.layers||[],a]}:n)}:{...e,layers:[...e.layers||[],a]}}function si(e,t,a,r){let n=s=>(s||[]).map(u=>u.id===a?r(u):u),o=Ea(e);return(e.shared||[]).some(s=>s.id===a)?{...e,shared:n(e.shared)}:t>=0&&o[t]?{...e,scenes:o.map((s,u)=>u===t?{...s,layers:n(s.layers)}:s)}:{...e,layers:n(e.layers)}}function k1(e,t,a){let r=o=>(o||[]).filter(i=>i.id!==a),n=Ea(e);return(e.shared||[]).some(o=>o.id===a)?{...e,shared:r(e.shared)}:t>=0&&n[t]?{...e,scenes:n.map((o,i)=>i===t?{...o,layers:r(o.layers)}:o)}:{...e,layers:r(e.layers)}}function Zg(e,t,a,r){let n=i=>{let s=[...i||[]],u=s.findIndex(d=>d.id===a),l=u+r;if(u<0||l<0||l>=s.length)return s;let[c]=s.splice(u,1);return s.splice(l,0,c),s},o=Ea(e);return t>=0&&o[t]?{...e,scenes:o.map((i,s)=>s===t?{...i,layers:n(i.layers)}:i)}:{...e,layers:n(e.layers)}}function L1(e,t,a,r){let n=It(e.x,0)+t,o=It(e.y,0)+a;return{...e,x:n,y:o,tracks:{...e.tracks||{},x:Yg(e.tracks?.x,r,n),y:Yg(e.tracks?.y,r,o)}}}function E1(e,t,a,r){return{...e,tracks:{...e.tracks||{},[t]:Yg(e.tracks?.[t],a,r)}}}function Od(e,t){let a=It(e.x,0),r=It(e.y,0),n={...e.tracks||{}};return t==="fade-in"&&(n.opacity=[{t:0,v:0},{t:.5,v:1,ease:"ease-out"}]),t==="slide-up"&&Object.assign(n,{opacity:[{t:0,v:0},{t:.55,v:1}],y:[{t:0,v:r+56},{t:.55,v:r,ease:"ease-out"}]}),t==="slide-down"&&Object.assign(n,{opacity:[{t:0,v:0},{t:.55,v:1}],y:[{t:0,v:r-56},{t:.55,v:r,ease:"ease-out"}]}),t==="slide-left"&&Object.assign(n,{opacity:[{t:0,v:0},{t:.55,v:1}],x:[{t:0,v:a+72},{t:.55,v:a,ease:"ease-out"}]}),t==="slide-right"&&Object.assign(n,{opacity:[{t:0,v:0},{t:.55,v:1}],x:[{t:0,v:a-72},{t:.55,v:a,ease:"ease-out"}]}),t==="zoom-in"&&Object.assign(n,{opacity:[{t:0,v:0},{t:.5,v:1}],scale:[{t:0,v:.82},{t:.5,v:1,ease:"ease-out"}]}),t==="rotate-in"&&Object.assign(n,{opacity:[{t:0,v:0},{t:.55,v:1}],rotate:[{t:0,v:-10},{t:.55,v:0,ease:"ease-out"}]}),(t==="pop"||t==="bounce-in")&&Object.assign(n,{scale:[{t:0,v:.82},{t:.28,v:1.08},{t:.48,v:1}]}),t==="pulse"&&(n.scale=[{t:0,v:1},{t:.35,v:1.08},{t:.7,v:1}]),t==="float"&&(n.y=[{t:0,v:r},{t:1,v:r-22},{t:2,v:r}]),t==="wobble"&&(n.rotate=[{t:0,v:0},{t:.18,v:-5},{t:.38,v:4},{t:.6,v:0}]),t==="shake"&&(n.x=[{t:0,v:a},{t:.12,v:a-14},{t:.24,v:a+14},{t:.36,v:a}]),t==="heartbeat"&&(n.scale=[{t:0,v:1},{t:.2,v:1.12},{t:.36,v:1},{t:.52,v:1.08},{t:.7,v:1}]),t==="fade-out"&&(n.opacity=[{t:0,v:1},{t:.55,v:0}]),t==="zoom-out"&&Object.assign(n,{opacity:[{t:0,v:1},{t:.55,v:0}],scale:[{t:0,v:1},{t:.55,v:.84}]}),{...e,tracks:n}}function Xg(e,t,a="line"){let r=t.filter(n=>Number.isFinite(n.x)&&Number.isFinite(n.y)).slice(0,80);return{...e,path:{kind:a,points:r},tracks:{...e.tracks||{},offset:e.tracks?.offset||[{t:0,v:0},{t:Math.max(.5,It(e.end,3)-It(e.start,0)),v:1,ease:"ease-out"}]}}}function e0(e){let t=e.type||"text",a=t==="text"?520:t==="ellipse"?220:360,r=t==="text"?to(e.size,64)*1.4:t==="ellipse"?220:180;return{x:It(e.x,0),y:It(e.y,0),w:to(e.w,a),h:to(e.h,r),rotate:It(e.rotate,0)}}function T1(e,t,a){for(let r=e.length-1;r>=0;r-=1){let n=e[r],o=e0(n);if(t>=o.x-o.w/2&&t<=o.x+o.w/2&&a>=o.y-o.h/2&&a<=o.y+o.h/2)return n}return null}function R1(e){let t=Ea(e),{w:a,h:r}=S1(e),n=t.length+1;return{...e,layers:t.length?e.layers:void 0,duration:void 0,scenes:[...t,{id:`scene-${n}`,name:`Scene ${n}`,duration:4,transition:n%2===0?"push":"dissolve",bg:n%2===0?"#111827":"#0f766e",layers:[{id:`scene-${n}-title`,type:"text",text:`Scene ${n}`,x:a/2,y:r/2,size:64,weight:800,color:"#ffffff",tracks:ii()}]}]}}function P1(e,t,a){let r=Ea(e);return r[t]?{...e,scenes:r.map((n,o)=>o===t?{...n,duration:Jg(a,.5,30)}:n)}:e}function N1(e,t,a){let r=Ea(e);return r[t]?{...e,scenes:r.map((n,o)=>o===t?{...n,transition:a}:n)}:e}function Yg(e,t,a){let r=Math.max(0,Math.round(t*100)/100),n=G4(e||[]),o=n.find(i=>Math.abs(It(i.t,0)-r)<.02);return o?o.v=a:n.push({t:r,v:a}),n.sort((i,s)=>It(i.t,0)-It(s.t,0))}function G4(e){return e.filter(t=>typeof t=="object"&&t!==null).map(t=>({t:Math.max(0,It(t.t,0)),v:It(t.v,0),...typeof t.ease=="string"&&t.ease.trim()?{ease:t.ease.trim()}:{}})).sort((t,a)=>It(t.t,0)-It(a.t,0))}function fs(e,t){return new RegExp(`${t}=(["'])(.*?)\\1`,"i").exec(e)?.[2]}function W4(e){return e.replace(/<[^>]*>/g," ").replace(/\s+/g," ")}function It(e,t){let a=Number(e);return Number.isFinite(a)?a:t}function to(e,t){let a=Number(e);return Number.isFinite(a)&&a>0?a:t}function Jg(e,t,a){return Math.max(t,Math.min(a,Number.isFinite(e)?e:t))}var _d=!1;function M1(e){_d=e===!0||!!e&&e!==null&&typeof e=="object"&&("enabled"in e?!!e.enabled:!!e.motion)}var D1={info(e,t){_d&&console.info(`[motion] ${e}`,t??{})},warn(e,t){_d&&console.warn(`[motion] ${e}`,t??{})},error(e,t){_d&&console.error(`[motion] ${e}`,t??{})}};var O1="xpertai.remote_component",_1=1,ui=new Map,Zu=null,j4=0,ms={requestTimeout:"Request timed out",remoteRequestFailed:"Remote request failed",unknownError:"Unknown error"};function dt(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function el(e,t,a){!Zu&&e!=="ready"||parent.postMessage(Object.assign({channel:O1,protocolVersion:_1,instanceId:Zu,type:e},t||{}),"*",a||[])}function t0(e,t,a){let r=String(++j4);return new Promise((n,o)=>{ui.set(r,{resolve:n,reject:o});try{el(e,Object.assign({requestId:r},t||{}),a)}catch(i){ui.delete(r),o(i instanceof Error?i:new Error(ms.remoteRequestFailed));return}setTimeout(()=>{ui.has(r)&&(ui.delete(r),o(new Error(ms.requestTimeout)))},3e4)})}function B1(e){return t0("requestData",{query:e||{}})}function Jr(e,t,a,r){return t0("executeAction",{actionKey:e,targetId:t,input:a,parameters:r})}async function Bd(e,t,a,r,n){let o=await n.arrayBuffer();return t0("executeFileAction",{actionKey:e,targetId:t,input:a,parameters:r,file:{name:n.name,type:n.type,size:n.size,buffer:o}},[o])}function nt(e,t){el("notify",{level:e,message:t})}function Xu(){let e=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,window.innerHeight||0,720);el("resize",{height:e,viewportBound:!0})}function a0(e){return e?dt(e)?e.payload!==void 0?e.payload:e.data!==void 0?e.data:e.result!==void 0?e.result:e:e:null}function li(e){return typeof e=="object"&&e&&"message"in e&&e.message?String(e.message):String(e||ms.unknownError)}function F1(e){ms={...ms,...e}}function H1(e,t){let a=null;function r(o){window.XpertRemoteUI?.applyTheme?.(o)}function n(o){r(o);let i={...a||{},theme:o};a=i,e(i),setTimeout(Xu,0)}window.addEventListener("message",o=>{let i=o.data;if(!(!dt(i)||i.channel!==O1||i.protocolVersion!==_1)){if(i.type==="init"){Zu=typeof i.instanceId=="string"?i.instanceId:null,M1(i.debug);let s={manifest:i.manifest,payload:i.payload,initialQuery:Q4(i.initialQuery),locale:typeof i.locale=="string"?i.locale:void 0,theme:i.theme,debug:i.debug};a=s,r(i.theme),e(s),D1.info("bridge.init",{instanceId:Zu??"",locale:s.locale??"",hasInitialQuery:i.initialQuery!==void 0}),setTimeout(Xu,0);return}if(i.instanceId===Zu){if(K4(i)){n(Y4(i));return}if(i.type==="hostEvent"){t(q4(i));return}if(i.requestId&&ui.has(String(i.requestId))){let s=ui.get(String(i.requestId));if(ui.delete(String(i.requestId)),!s)return;i.type==="error"?s.reject(new Error(String(i.message||ms.remoteRequestFailed))):s.resolve(i)}}}})}function q4(e){return e.event!==void 0?e.event:e.payload!==void 0?e.payload:e.data!==void 0?e.data:e.result!==void 0?e.result:e}function K4(e){return["theme","themeChanged","theme-change","hostThemeChanged","host-theme-changed"].includes(String(e.type||""))}function Q4(e){return dt(e)?{...e,parameters:dt(e.parameters)?e.parameters:void 0,selectionId:e.selectionId}:{}}function Y4(e){return e.theme!==void 0?e.theme:dt(e.payload)&&e.payload.theme!==void 0?e.payload.theme:dt(e.data)&&e.data.theme!==void 0?e.data.theme:e.payload??e.data??null}var z1=["library","html","video"],V1=["load","scroll","hover","click"],U1=["fade","slide-up","slide-down","slide-left","slide-right","zoom","rotate","blur","pop","pulse","shake","wobble","sink"],Fd=["opacity","x","y","scale","rotate","blur"],G1=[{value:"desktop",labelKey:"deviceDesktop"},{value:"tablet",labelKey:"deviceTablet"},{value:"mobile",labelKey:"deviceMobile"}],W1=[{value:"all",labelKey:"filterAllSurfaces"},{value:"web",labelKey:"filterWeb"},{value:"video",labelKey:"filterVideo"}],j1=[{value:"all",labelKey:"filterAllTargets"},{value:"text",labelKey:"filterText"},{value:"button",labelKey:"filterButton"},{value:"card",labelKey:"filterCard"},{value:"image",labelKey:"filterImage"},{value:"video",labelKey:"filterVideoLayer"},{value:"background",labelKey:"filterBackground"}],q1=[{value:"all",labelKey:"filterAllStatuses"},{value:"ready",labelKey:"filterReady"}],K1=[{value:"none",labelKey:"kineticNone"},{value:"word-rise",labelKey:"kineticWordRise"},{value:"char-rise",labelKey:"kineticCharRise"},{value:"char-pop",labelKey:"kineticCharPop"},{value:"typewriter",labelKey:"kineticTypewriter"}],Q1=[{value:"cut",labelKey:"transitionCut"},{value:"dissolve",labelKey:"transitionDissolve"},{value:"push",labelKey:"transitionPush"},{value:"fade",labelKey:"transitionFade"}];var h=it;function de({size:e="sm",...t}){return h(bd,{size:e,...t})}function Ta(e){return h(BS,{value:e.value,onValueChange:e.onValueChange},h(HS,{className:e.className},h(FS,null)),h(zS,null,e.options.map(t=>h(VS,{key:t.value,value:t.value},t.label))))}function ci(e){let t=J4(e.value,e.min,e.max);return h(US,{className:e.className,min:e.min,max:e.max,step:e.step,value:[t],onValueChange:a=>{let r=a[0];typeof r=="number"&&e.onChange(r)}})}function J4(e,t,a){return Number.isFinite(e)?Math.min(a,Math.max(t,e)):t}function Y1(e){return h("section",{className:"motion-unified-header motion-page-header","aria-label":e.t("workbenchHeaderLabel")},h(J1,{title:e.header.title,label:e.t("motion")}),h(de,{variant:"outline",className:"project-dialog-button",onClick:e.header.onOpenProjects},e.t("manageProjects")),h(Z1,{header:e.header,t:e.t}),h($1,{dirty:e.header.dirty,statusLabel:e.header.statusLabel,t:e.t}),h(de,{variant:"outline",onClick:e.header.onOpenVersions},e.t("versionHistory")),h(de,{variant:"outline",onClick:e.header.onOpenExports},e.t("exportHistory")))}function hs(e){return h("div",{className:"motion-unified-header editor-toolbar"},h(J1,{title:e.header.title,label:e.t("motion")}),h(de,{variant:"outline",className:"project-dialog-button",onClick:e.header.onOpenProjects},e.t("manageProjects")),h(Z1,{header:e.header,t:e.t}),h($1,{dirty:e.header.dirty,statusLabel:e.header.statusLabel,t:e.t}),h("span",{className:"toolbar-divider"}),h(GS,{className:"toolbar-tabs",value:e.viewMode,onValueChange:t=>e.onViewModeChange(t)},h(WS,{className:"segmented compact"},h(Ag,{value:"preview"},e.t("preview")),h(Ag,{value:"code"},e.t("code")))),h(Ta,{className:"device-select",value:e.device,options:Yr(G1,e.t),onValueChange:t=>e.onDeviceChange(t)}),h(de,{variant:"outline",className:"replay-button",onClick:e.onReplay,title:e.t("replayAllHint")},e.t("replayMotion")),h("span",{className:"toolbar-spacer"}),h(de,{variant:"outline",className:"icon-button",onClick:e.onUndo,disabled:!e.canUndo,title:e.t("undo")},"\u21B6"),h("div",{className:"zoom-control"},h(de,{variant:"ghost",onClick:()=>e.onZoomChange(Math.max(.5,e.zoom-.1))},"\u2212"),h("span",null,Math.round(e.zoom*100),"%"),h(de,{variant:"ghost",onClick:()=>e.onZoomChange(Math.min(1.4,e.zoom+.1))},"+")),h(de,{onClick:e.onSave,disabled:e.saving},e.t("save")),h(de,{variant:"secondary",onClick:e.header.onOpenVersions,disabled:e.saving},e.t("versionHistory")),h("div",{className:"download-menu"},h(de,{disabled:e.saving,onClick:()=>e.onExport(e.exportKinds[0]||"html")},e.exportLabel??e.t("download")),e.exportKinds.length>1?h("div",{className:"download-popover"},e.exportKinds.map(t=>h(de,{key:t,variant:"ghost",onClick:()=>e.onExport(t)},t))):null),h(de,{variant:"outline",onClick:e.header.onOpenExports},e.t("exportHistory")))}function J1(e){return h("div",{className:"motion-header-title"},h("span",{className:"motion-kicker"},e.label),h("strong",null,e.title))}function $1(e){return e.dirty?h(za,{variant:"outline","data-status":"warning"},e.t("unsaved")):h(za,{variant:"secondary"},Pd(e.statusLabel,e.t))}function Z1(e){return h(Ta,{className:"motion-header-view-select",value:e.header.activeTab,options:z1.map(t=>({value:t,label:d1(t,e.t)})),onValueChange:t=>e.header.onTabChange(t)})}function X1(e){return h(Bu,{open:e.open,onOpenChange:e.onOpenChange},h(Fu,{className:"motion-project-dialog"},h(Hu,null,h(zu,null,e.t("projectDialogTitle")),h(Vu,null,e.t("projectDialogDescription"))),h("div",{className:"project-dialog-layout"},h("section",{className:"project-dialog-create"},h("h3",null,e.t("newProject")),h("label",null,h("span",null,e.t("title")),h(ba,{value:e.title,onChange:t=>e.onTitleChange(t.target.value)})),h("label",null,h("span",null,e.t("brief")),h(An,{value:e.brief,onChange:t=>e.onBriefChange(t.target.value),rows:5})),h("div",{className:"motion-button-row"},h(de,{onClick:()=>{e.onCreate("web")},disabled:e.saving},e.t("newWeb")),h(de,{variant:"secondary",onClick:()=>{e.onCreate("video")},disabled:e.saving},e.t("newVideo")))),h("section",{className:"project-dialog-list"},h("h3",null,e.t("currentProject")),h("div",{className:"motion-list"},e.projects.map(t=>h(de,{key:t.id,variant:t.id===e.selectedProjectId?"secondary":"outline",className:`motion-list-item ${t.id===e.selectedProjectId?"active":""}`,onClick:()=>{e.onSelect(t.id),e.onOpenChange(!1)}},h("strong",null,t.title),h("span",null,e.t("projectSummary",{surface:$4(t,e.t),version:t.currentVersionNumber||0,status:Pd(t.status,e.t)})))),e.projects.length===0?h("div",{className:"motion-empty"},e.t("noProjects")):null)))))}function $4(e,t){return e.surface==="video"?e.videoEngine==="hyperframes"?`${t("createVideo")} \xB7 HyperFrames`:`${t("createVideo")} \xB7 Legacy`:t("createWeb")}function eC(e){return h(Bu,{open:e.open,onOpenChange:e.onOpenChange},h(Fu,{className:"motion-history-dialog"},h(Hu,null,h(zu,null,e.t("versionHistory")),h(Vu,null,e.t("versionHistoryDescription"))),h("div",{className:"history-dialog-actions"},h(de,{onClick:()=>{e.onCreateVersion()},disabled:e.saving},e.t("saveCurrentVersion"))),h("div",{className:"history-dialog-body"},h(Z4,{versions:e.versions,currentId:e.currentId,t:e.t,onRestore:e.onRestore}))))}function tC(e){return h(Bu,{open:e.open,onOpenChange:e.onOpenChange},h(Fu,{className:"motion-history-dialog"},h(Hu,null,h(zu,null,e.t("exportHistory")),h(Vu,null,e.t("exportHistoryDescription"))),h("div",{className:"history-dialog-body"},h(X4,{exports:e.exports,selectedProject:e.selectedProject,t:e.t,onReviewed:e.onReviewed,onDraft:e.onDraft,onArchive:e.onArchive})),h(_S,null,h(de,{variant:"outline",onClick:()=>e.onOpenChange(!1)},e.t("close")))))}function Z4(e){return h("section",{className:"motion-list wide"},e.versions.map(t=>h("article",{key:t.id,className:`motion-record ${t.id===e.currentId?"active":""}`},h("div",null,h("strong",null,e.t("versionLabel",{number:t.versionNumber||0})),h("span",null,t.changeSummary||t.sourceType||e.t("motionVersion")),t.surface==="video"?h("span",null,t.videoEngine==="hyperframes"?"HyperFrames":"Legacy Canvas/WebCodecs"):null),h(de,{variant:"secondary",onClick:()=>{e.onRestore(t.id)}},e.t("restore")))),e.versions.length===0?h("div",{className:"motion-empty"},e.t("noVersions")):null)}function X4(e){return h("section",{className:"motion-list wide"},h("div",{className:"motion-toolbar"},h(de,{variant:"secondary",onClick:e.onReviewed,disabled:!e.selectedProject},e.t("reviewed")),h(de,{variant:"outline",onClick:e.onDraft,disabled:!e.selectedProject},e.t("draft")),h(de,{variant:"outline",onClick:e.onArchive,disabled:!e.selectedProject},e.t("archive"))),e.exports.map(t=>h("article",{key:t.id,className:"motion-record"},h("div",null,h("strong",null,String(t.kind||e.t("artifact")).toUpperCase()),h("span",null,`${t.status||"succeeded"} \xB7 ${t.backend||"browser"} \xB7 ${Math.round(t.progress??100)}%${t.stage?` \xB7 ${t.stage}`:""}`),h("span",null,t.filePath||t.fileUrl||t.checksum||t.id),t.errorMessage?h("span",{className:"hyperframes-error"},t.errorMessage):null),t.fileUrl?h(de,{asChild:!0,variant:"secondary"},h("a",{href:t.fileUrl,target:"_blank",rel:"noreferrer"},e.t("open"))):null)),e.exports.length===0?h("div",{className:"motion-empty"},e.t("noExports")):null)}function aC(e){let t=Math.max(1,e.layout.duration),[a,r]=O(!1),n=H({time:e.time,duration:t,onSeek:e.onSeek}),o=H(null);K(()=>{n.current={time:e.time,duration:t,onSeek:e.onSeek}},[t,e.onSeek,e.time]),K(()=>{if(!a)return;let s=0,u=0,l=o.current??Math.min(n.current.time,n.current.duration);o.current=null;let c=d=>{u||(u=d);let f=n.current,p=Math.min(f.duration,l+d-u);if(f.onSeek(p),p>=f.duration){r(!1);return}s=window.requestAnimationFrame(c)};return s=window.requestAnimationFrame(c),()=>window.cancelAnimationFrame(s)},[a]);function i(){if(a){r(!1);return}let s=0;o.current=s,e.onSeek(s),n.current={...n.current,time:s},r(!0)}return h(Qt,{className:"html-timeline"},h("div",{className:"timeline-head"},h(de,{className:"play-button small",onClick:i,title:e.t(a?"timelinePause":"timelinePlay")},a?"||":"\u25B6"),h("strong",null,(e.time/1e3).toFixed(2),"s"),h("span",null,e.t("timeline")),h(za,{variant:"secondary"},e.t(e.scope==="all"?"timelineScopeAll":"timelineScopeSelection")),e.layout.restraintWarning?h(za,{variant:"outline","data-status":"warning"},e.t("timelineRestraintWarning")):null,h(ci,{min:0,max:t,step:20,value:e.time,onChange:e.onSeek})),h("div",{className:"timeline-ruler"},[0,.25,.5,.75,1].map(s=>h("span",{key:s,style:{left:oC(s)}},(t*s/1e3).toFixed(1),"s"))),h("div",{className:"timeline-body"},h("div",{className:"timeline-playhead",style:{left:`${e.time/t*100}%`}}),e.layout.items.map(s=>h(de,{key:s.id,variant:"ghost",className:s.id===e.selectedId?"timeline-row active":"timeline-row",onClick:()=>e.onSelect(s.id)},h("span",null,s.label),h("i",{className:s.startsEarly?"starts-early":"",style:{left:`${s.leftPct}%`,width:`${s.widthPct}%`}})))))}function rC(e){let t=Ea(e.composition);return h("div",{className:"scene-strip"},h("div",{className:"scene-strip-head"},h("strong",null,e.t("sceneStrip")),h("span",null,e.t("sceneStripHelp"))),h("div",{className:"scene-strip-controls"},t.length===0?h(de,{variant:"secondary",className:"scene-chip active",onClick:()=>e.onSelect(-1)},e.t("main")):t.map((a,r)=>h(Ha,{key:a.id||r},h(de,{variant:r===e.activeSceneIndex?"secondary":"outline",className:r===e.activeSceneIndex?"scene-chip active":"scene-chip",onClick:()=>e.onSelect(r)},a.name||`${e.t("scenes")} ${r+1}`),r<t.length-1?h(Ta,{value:a.transition||"cut",options:Yr(Q1,e.t),onValueChange:e.onTransition,className:"transition-select"}):null)),h(de,{variant:"outline",className:"scene-chip",onClick:e.onAdd},"+ ",e.t("addScene")),h("label",{className:"scene-duration"},h("span",null,e.t("sceneLength")),h(ba,{type:"number",min:"0.5",max:"30",step:"0.5",value:t[e.activeSceneIndex]?.duration||e.composition.duration||5,onChange:a=>e.onDuration(Number(a.target.value))}),h("em",null,"s"))))}function nC(e){let t=Math.max(.1,e.duration),a=Math.min(t,Math.max(0,e.time));return h(Qt,{className:"video-timeline"},h("div",{className:"timeline-head compact-head"},h("div",{className:"timeline-title"},h("strong",null,e.t("keyframeTimeline")),h("span",null,e.t("keyframeTimelineHelp"))),h("div",{className:"timeline-legend","aria-hidden":"true"},h("span",null,h("i",{className:"legend-playhead"}),e.t("timelineCurrentTime")),h("span",null,h("i",{className:"legend-keyframe"}),e.t("keyframeLegend")))),h("div",{className:"timeline-ruler"},[0,.25,.5,.75,1].map(r=>h("span",{key:r,style:{left:oC(r)}},(t*r).toFixed(1),"s"))),h("div",{className:"timeline-body"},h("div",{className:"timeline-playhead",style:{left:`${a/t*100}%`}}),e.layers.map(r=>{let n=eO(r,e.t),o=i=>{let u=(i.currentTarget.querySelector(".timeline-track")||i.currentTarget).getBoundingClientRect(),l=Math.min(1,Math.max(0,(i.clientX-u.left)/u.width));e.onSeek(l*t)};return h("div",{key:r.id||r.text,role:"button",tabIndex:0,className:r.id===e.selectedLayerId?"timeline-row active":"timeline-row",onClick:o,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),e.onSeek(a))}},h("span",null,r.text||r.id||r.type),h("div",{className:"timeline-track"},n.length===0?h("em",{className:"timeline-row-empty"},e.t("noKeyframes")):null,n.map(i=>{let s=e.t("keyframeDot",{properties:i.properties.join(", "),time:i.t.toFixed(2)});return h("button",{key:`${r.id||r.text}-${i.t}-${i.properties.join("-")}`,type:"button",className:Math.abs(i.t-a)<.04?"timeline-keyframe-dot active":"timeline-keyframe-dot",style:{left:`${i.t/t*100}%`},title:s,"aria-label":s,onClick:u=>{u.stopPropagation(),e.onSeek(i.t)}})})))})))}function tl(e){return h("div",{className:"motion-stat"},h("strong",null,e.value??0),h("span",null,e.label))}function oC(e){return e<=0?"var(--timeline-edge-offset)":e>=1?"calc(100% - var(--timeline-edge-offset))":`${e*100}%`}function eO(e,t){let a=new Map;for(let[r,n]of Object.entries(e.tracks||{}))if(Array.isArray(n))for(let o of n){let i=Number(o.t??0);if(!Number.isFinite(i))continue;let s=i.toFixed(3),u=a.get(s)??{t:i,properties:[]};u.properties.push(tO(r,t)),a.set(s,u)}return[...a.values()].map(r=>({...r,properties:[...new Set(r.properties)]})).sort((r,n)=>r.t-n.t)}function tO(e,t){return e==="offset"?t("motionPath"):e}function iC(e){let t=e.getElementById("ma-workbench-edit-style")||e.createElement("style");t.id="ma-workbench-edit-style",t.textContent=`
111
122
  .ma-editable{cursor:pointer}
112
123
  .ma-selected{outline:3px solid #8b5cf6!important;outline-offset:4px!important}
113
124
  .ma-hover{outline:2px dashed rgba(139,92,246,.55)!important;outline-offset:3px!important}
114
- `,t.parentElement||e.head?.appendChild(t);let a=wp(e);return a.components.forEach(({element:o})=>{o.classList.add("ma-editable")}),a}function im(e,t){Array.from(e.querySelectorAll(".ma-editable")).forEach(o=>{o.addEventListener("mouseenter",()=>o.classList.add("ma-hover")),o.addEventListener("mouseleave",()=>o.classList.remove("ma-hover")),o.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),t(o)})})}function Gs(e,t){if(Array.from(e.querySelectorAll(".ma-selected")).forEach(o=>o.classList.remove("ma-selected")),!t)return;e.querySelector(`[data-ma-id="${xr(t)}"]`)?.classList.add("ma-selected")}function sm(e,t,a){let o=Array.from(e.querySelectorAll("[data-ma-anim],[data-ma-kf]")),r=a?.selectedId?e.querySelector(`[data-ma-id="${xr(a.selectedId)}"]`):null,n=o.length>0?r&&!o.includes(r)?[r]:[]:r?[r]:Array.from(e.querySelectorAll(".ma-editable")).slice(0,6),i=[...o,...n];for(let s of i){let l=jy(s,a?.controls),d=Gt((t-l.delay)/l.duration,0,1),u=qy(l.tracks)?Wy(l.tracks,d):Gy(l.verb,d,l.distance);Ky(s,u)}}function Nn(e,t,a){let r=new DOMParser().parseFromString(e,"text/html"),n=r.querySelector(`[data-ma-id="${xr(t)}"]`);if(!n)throw new Error("Selected element was not found in the HTML draft.");let i=Ha(Ro(a.tracksJson)??_a()),s=gp(t);n.setAttribute("data-ma-id",t),n.setAttribute("data-ma-anim",a.verb),n.setAttribute("data-ma-kf",s),n.setAttribute("data-ma-trigger",a.trigger),n.setAttribute("data-ma-dur",String(Gt(a.duration,80,4e3))),n.setAttribute("data-ma-delay",String(Gt(a.delay,0,8e3))),n.setAttribute("data-ma-dist",String(Gt(a.distance,-400,400))),n.setAttribute("data-ma-tracks",JSON.stringify(i));let l=Ks(r);return hp(l,s,i)}function Ks(e){return`<!doctype html>
115
- ${e.documentElement.outerHTML}`}function lm(e){return _s({tagName:e.tagName,text:e.textContent,className:e.getAttribute("class"),alt:e.getAttribute("alt")})}function Ro(e){try{let t=JSON.parse(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:null}catch{return null}}function $s(e,t){return e&&e.length>0?Number(e[e.length-1].v??0):t==="opacity"||t==="scale"?1:0}function dm(e,t){return e==="opacity"||e==="scale"?t.toFixed(2):e==="rotate"?`${Math.round(t)}\xB0`:`${Math.round(t)}px`}function xr(e){return e.replace(/["\\]/g,"\\$&")}function Gt(e,t,a){return Number.isFinite(e)?Math.min(a,Math.max(t,e)):t}function qy(e){return Object.values(e).some(t=>Array.isArray(t)&&t.length>0)}function jy(e,t){let a=t?Ro(t.tracksJson):null,o=Ro(e.getAttribute("data-ma-tracks")||"");return{verb:e.getAttribute("data-ma-anim")||t?.verb||"fade",duration:Gt(Number(e.getAttribute("data-ma-dur")||t?.duration||520),80,4e3),delay:Gt(Number(e.getAttribute("data-ma-delay")||t?.delay||0),0,8e3),distance:Gt(Number(e.getAttribute("data-ma-dist")||t?.distance||24),-400,400),tracks:Ha(o??a??_a())}}function Wy(e,t){return{opacity:Io(e.opacity,t,void 0),x:Io(e.x,t,0)??0,y:Io(e.y,t,0)??0,scale:Io(e.scale,t,1)??1,rotate:Io(e.rotate,t,0)??0,blur:Io(e.blur,t,0)??0}}function Gy(e,t,a){let o=Gt(t,0,1),r=1-o;switch(e){case"slide-up":return{opacity:o,x:0,y:a*r,scale:1,rotate:0,blur:0};case"slide-down":return{opacity:o,x:0,y:-a*r,scale:1,rotate:0,blur:0};case"slide-left":return{opacity:o,x:-a*r,y:0,scale:1,rotate:0,blur:0};case"slide-right":return{opacity:o,x:a*r,y:0,scale:1,rotate:0,blur:0};case"zoom":return{opacity:o,x:0,y:0,scale:.9+.1*o,rotate:0,blur:0};case"rotate":return{opacity:o,x:0,y:0,scale:.96+.04*o,rotate:-8*r,blur:0};case"blur":return{opacity:o,x:0,y:0,scale:1,rotate:0,blur:10*r};case"pop":{let n=o<.45?o/.45:1-(o-.45)/.55;return{opacity:1,x:0,y:-Math.max(0,n)*Math.min(Math.abs(a),24),scale:1+Math.max(0,n)*.06,rotate:0,blur:0}}case"pulse":return{opacity:1,x:0,y:0,scale:1+Math.sin(Math.PI*o)*.08,rotate:0,blur:0};case"shake":return{opacity:1,x:Math.sin(Math.PI*o*8)*6*r,y:0,scale:1,rotate:0,blur:0};case"wobble":return{opacity:1,x:0,y:0,scale:1,rotate:Math.sin(Math.PI*o*6)*4*r,blur:0};case"sink":return{opacity:1,x:0,y:0,scale:1-Math.sin(Math.PI*o)*.06,rotate:0,blur:0};default:return{opacity:o,x:0,y:0,scale:1,rotate:0,blur:0}}}function Ky(e,t){e.style.animation="none",e.style.animationPlayState="paused",t.opacity!==void 0&&(e.style.opacity=String(ko(t.opacity))),e.style.transform=`translate(${ko(t.x)}px, ${ko(t.y)}px) scale(${ko(t.scale)}) rotate(${ko(t.rotate)}deg)`,e.style.filter=t.blur>0?`blur(${ko(t.blur)}px)`:"blur(0)",e.style.willChange="opacity, transform, filter"}function Io(e,t,a){if(!e||e.length===0)return a;let o=e.map(r=>({t:Number(r.t??0),v:Number(r.v??a??0)})).sort((r,n)=>r.t-n.t);if(t<=o[0].t)return o[0].v;for(let r=1;r<o.length;r+=1){let n=o[r-1],i=o[r];if(t<=i.t){let s=Math.max(.001,i.t-n.t),l=Gt((t-n.t)/s,0,1);return n.v+(i.v-n.v)*l}}return o[o.length-1].v}function ko(e){return Math.round(e*1e3)/1e3}function um(e){let t=z(null),[a,o]=M("preview"),[r,n]=M("desktop"),[i,s]=M(1),[l,d]=M("keyframes"),[u,c]=M(()=>typeof e.componentSelection?.componentId=="string"?e.componentSelection.componentId:""),[m,h]=M(0),[x,p]=M(0),[g,v]=M([]),w=me(()=>bp(e.htmlDraft),[e.htmlDraft]),b=me(()=>{if(w.length>0)return w;let k=u||(typeof e.componentSelection?.componentId=="string"?e.componentSelection.componentId:"");return k?[{id:k,label:typeof e.componentSelection?.label=="string"?e.componentSelection.label:e.t("selectElement"),verb:e.controls.verb,trigger:e.controls.trigger,delay:Number(e.controls.delay||0),duration:Number(e.controls.duration||520)}]:[]},[w,e.componentSelection,e.controls,e.t,u]),C=me(()=>yp(b),[b]),S=b.find(k=>k.id===u)??b[0]??null,R=me(()=>Ha(Ro(e.controls.tracksJson)??_a()),[e.controls.tracksJson]),T=C.duration,I=me(()=>{try{return mp(e.htmlDraft)}catch{return e.htmlDraft}},[e.htmlDraft]);H(()=>{!u&&S?.id&&(c(S.id),e.onComponentSelectionChange({componentId:S.id,label:S.label}))},[e,u,S]);function F(){let A=t.current?.contentDocument;if(!A)return;let j=nm(A);if(j.changed&&e.onDraftChange(Ks(A)),!u&&j.components[0]){let B=j.components[0];c(B.id),e.onComponentSelectionChange({componentId:B.id,label:B.label}),e.onControlsChange({...e.controls,selector:`[data-ma-id="${B.id}"]`})}im(A,B=>{let te=B.getAttribute("data-ma-id")||"";te&&(c(te),e.onComponentSelectionChange({componentId:te,label:lm(B)}),e.onControlsChange({...e.controls,selector:`[data-ma-id="${te}"]`,verb:B.getAttribute("data-ma-anim")||e.controls.verb,trigger:B.getAttribute("data-ma-trigger")||e.controls.trigger,duration:Number(B.getAttribute("data-ma-dur")||e.controls.duration),delay:Number(B.getAttribute("data-ma-delay")||e.controls.delay),distance:Number(B.getAttribute("data-ma-dist")||e.controls.distance),tracksJson:B.getAttribute("data-ma-tracks")||e.controls.tracksJson}))}),Gs(A,u)}H(()=>{let k=t.current?.contentDocument;k&&Gs(k,u)},[u]);function X(){h(0),o("preview"),p(k=>k+1)}function D(k){h(k),t.current?.contentWindow?.__maTimeline?.seek?.(k);let j=t.current?.contentDocument;j&&sm(j,k,{selectedId:u,controls:e.controls})}function O(k,A){let j=Ha(Ro(e.controls.tracksJson)??_a()),B=j[k]&&j[k].length>=2?[...j[k]]:[{t:0,v:k==="opacity"?0:k==="scale"?.96:0},{t:.5,v:k==="opacity"||k==="scale"?1:0}];B[B.length-1]={...B[B.length-1],v:A},e.onControlsChange({...e.controls,tracksJson:JSON.stringify({...j,[k]:B},null,2)})}function U(k=e.controls){if(!u){Me("warning",e.t("selectElementFirst"));return}try{v(j=>[...j.slice(-9),e.htmlDraft]);let A=Nn(e.htmlDraft,u,k);e.onDraftChange(A),e.onComponentSelectionChange({componentId:u,label:S?.label??u,trigger:k.trigger,verb:k.verb})}catch(A){Me("error",qa(A))}}function q(){let k=g[g.length-1];k&&(v(A=>A.slice(0,-1)),e.onDraftChange(k))}return f("section",{className:"motion-workbench-surface html-surface"},f(On,{header:e.header,t:e.t,viewMode:a,device:r,zoom:i,canUndo:g.length>0,onViewModeChange:o,onDeviceChange:n,onZoomChange:s,onReplay:X,onUndo:q,onSave:e.onSave,onExport:k=>e.onExport(k),saving:e.saving,exportKinds:["html","css","json","react","lottie"]}),a==="code"?f(it,{className:"motion-panel motion-code-panel"},f(Aa,{className:"motion-code",value:e.htmlDraft,onChange:k=>e.onDraftChange(k.target.value),spellCheck:!1})):f("div",{className:"html-stage-layout"},f("div",{className:`html-device-frame ${r}`,style:{transform:`scale(${i})`}},f("iframe",{key:`${r}-${x}`,ref:t,title:e.t("html"),sandbox:"allow-scripts allow-same-origin",srcDoc:I,onLoad:F})),f(it,{className:"motion-inspector"},f("div",{className:"inspector-title"},f("div",null,f("span",{className:"selection-dot"}),f("strong",null,S?.label||e.t("selectElement")))),f("div",{className:"segmented"},f(Z,{variant:l==="preset"?"default":"outline",className:l==="preset"?"active":"",onClick:()=>d("preset")},e.t("preset")),f(Z,{variant:l==="keyframes"?"default":"outline",className:l==="keyframes"?"active":"",onClick:()=>d("keyframes")},e.t("keyframes"))),f("section",{className:"inspector-section"},f("span",{className:"section-eyebrow"},e.t("trigger")),f("div",{className:"chip-grid four"},_p.map(k=>f(Z,{key:k,variant:k===e.controls.trigger?"default":"outline",className:k===e.controls.trigger?"chip-button active":"chip-button",onClick:()=>{let A={...e.controls,trigger:k};e.onControlsChange(A),U(A)}},kn(k,e.t))))),l==="preset"?f("section",{className:"inspector-section"},f("span",{className:"section-eyebrow"},e.t("motionLabel")),f("div",{className:"chip-grid"},Vp.map(k=>f(Z,{key:k,variant:k===e.controls.verb?"default":"outline",className:k===e.controls.verb?"chip-button active":"chip-button",onClick:()=>{let A={...e.controls,verb:k};e.onControlsChange(A),U(A)}},k)))):f("section",{className:"inspector-section"},f("span",{className:"section-eyebrow"},e.t("keyframes")),f("label",{className:"range-row"},f("span",null,e.t("scrub")),f(ja,{min:0,max:T,step:20,value:m,onChange:D}),f("em",null,Math.round(m),"ms")),En.map(k=>f("label",{key:k,className:"range-row"},f("span",null,k),f(ja,{min:k==="opacity"?0:k==="scale"?.2:k==="rotate"?-180:-160,max:k==="opacity"?1:k==="scale"?2:k==="rotate"?180:160,step:k==="opacity"||k==="scale"?.01:1,value:$s(R[k],k),onChange:A=>O(k,A)}),f("em",null,dm(k,$s(R[k],k))))),f(Aa,{className:"motion-code-small",value:e.controls.tracksJson,onChange:k=>e.onControlsChange({...e.controls,tracksJson:k.target.value})})),f("section",{className:"inspector-section compact-form"},f("div",{className:"motion-form-grid"},f("label",null,f("span",null,e.t("duration")),f(Ye,{type:"number",value:e.controls.duration,onChange:k=>e.onControlsChange({...e.controls,duration:Number(k.target.value)})})),f("label",null,f("span",null,e.t("delay")),f(Ye,{type:"number",value:e.controls.delay,onChange:k=>e.onControlsChange({...e.controls,delay:Number(k.target.value)})})),f("label",null,f("span",null,e.t("distance")),f(Ye,{type:"number",value:e.controls.distance,onChange:k=>e.onControlsChange({...e.controls,distance:Number(k.target.value)})}))),f(Z,{className:"full-width",onClick:()=>U(),disabled:!u},e.t("applyMotion"))))),f(tm,{layout:C,selectedId:u,scope:w.length>0?"all":"selection",time:m,t:e.t,onSelect:k=>c(k),onSeek:D}))}function fm(e){let[t,a]=M("preview"),[o,r]=M("desktop"),[n,i]=M(1),[s,l]=M("select"),[d,u]=M(0),[c,m]=M("slide-up"),[h,x]=M(""),[p,g]=M(!1),v=z(null),w=z([]),b=z({time:e.videoTime,duration:e.duration,onTimeChange:e.onTimeChange}),C=me(()=>{try{return e.parseVideoComposition(e.videoDraft)}catch{return e.defaultComposition(e.t("invalidCompositionJson"))}},[e]),S=rt(C),R=S.length>0?Math.min(d,S.length-1):-1,T=[...C.shared||[],...So(C,R)],I=typeof e.layerSelection?.layerId=="string"?e.layerSelection.layerId:T[0]?.id||"",F=I?pr(C,I,R):null;H(()=>{b.current={time:e.videoTime,duration:e.duration,onTimeChange:e.onTimeChange}},[e.duration,e.onTimeChange,e.videoTime]),H(()=>{if(!p)return;let P=0,_=performance.now(),Y=be=>{let ie=b.current,ne=Math.min(.08,Math.max(0,(be-_)/1e3));_=be;let J=Math.min(ie.duration,ie.time+ne);if(ie.onTimeChange(J),J>=ie.duration-.01){g(!1);return}P=requestAnimationFrame(Y)};return P=requestAnimationFrame(Y),()=>cancelAnimationFrame(P)},[p]),H(()=>{!I&&T[0]?.id&&e.onLayerSelectionChange({layerId:T[0].id,sceneIndex:R})},[R,T,e,I]);function X(){e.onTimeChange(0),g(!0)}function D(){if(p){g(!1);return}e.videoTime>=e.duration-.05&&e.onTimeChange(0),g(!0)}function O(P,_){e.onDraftChange(JSON.stringify(P,null,2)),_!==void 0&&e.onLayerSelectionChange(_)}function U(P){e.onLayerSelectionChange(P?{layerId:P,sceneIndex:R}:null)}function q(P){let _=Sp(P,C,T.length+1);O(Lp(C,R,_),{layerId:_.id||"",sceneIndex:R})}function k(P){I&&O(Va(C,R,I,_=>P(_)??_))}function A(P){let Y=e.canvasRef.current?.getBoundingClientRect(),be=C.w||1280,ie=C.h||720;return Y?{x:(P.clientX-Y.left)/Y.width*be,y:(P.clientY-Y.top)/Y.height*ie}:{x:0,y:0}}function j(P){let _=A(P);if(s==="path"){w.current=[_];return}let Y=Pp(T,_.x,_.y);Y?.id?(U(Y.id),v.current={id:Y.id,x:_.x,y:_.y}):U(null)}function B(P){let _=A(P);if(s==="path"&&w.current.length>0){w.current.push(_);return}let Y=v.current;if(!Y)return;let be=_.x-Y.x,ie=_.y-Y.y;v.current={...Y,x:_.x,y:_.y},O(Va(C,R,Y.id,ne=>kp(ne,be,ie,e.videoTime)))}function te(){let P=w.current;s==="path"&&I&&P.length>1&&O(Va(C,R,I,_=>Us(_,P,"raw"))),w.current=[],v.current=null}async function E(P,_,Y){if(!e.selectedProject?.id){Me("warning",e.t("createOrSaveBeforeUpload"));return}try{let be=await zn("upload_media_file",e.selectedProject.id,{projectId:e.selectedProject.id,purpose:_},{projectId:e.selectedProject.id},P),ie=e.extractMediaPayload(be);if(!ie?.src)throw new Error(e.t("mediaUploadNoSource"));Y==="background"?O({...C,bg:ie.src}):Y==="reference"?O({...C,reference:{src:ie.src,filePath:ie.filePath||null,mimeType:ie.mimeType||P.type}}):I&&O(Va(C,R,I,ne=>({...ne,src:ie.src,filePath:ie.filePath,fileUrl:ie.fileUrl}))),Me("success",e.t("mediaUploaded"))}catch(be){Me("error",qa(be))}}return f("section",{className:"motion-workbench-surface video-surface"},f(On,{header:e.header,t:e.t,viewMode:t,device:o,zoom:n,canUndo:!1,onViewModeChange:a,onDeviceChange:r,onZoomChange:i,onReplay:X,onUndo:()=>{},onSave:e.onSave,onExport:()=>e.onExportMp4(),saving:e.saving,exportKinds:["mp4"]}),t==="code"?f(it,{className:"motion-panel motion-code-panel"},f(Aa,{className:"motion-code motion-video-code",value:e.videoDraft,onChange:P=>e.onDraftChange(P.target.value),spellCheck:!1})):f("div",{className:"video-stage-layout"},f(it,{className:"video-main"},f("div",{className:"tool-row"},f(Z,{variant:s==="select"?"default":"outline",className:s==="select"?"tool-button active":"tool-button",onClick:()=>l("select")},e.t("select")),f(Z,{variant:s==="path"?"default":"outline",className:s==="path"?"tool-button active":"tool-button",onClick:()=>l("path")},e.t("path")),f("span",null,s==="path"?e.t("drawPathHint"):e.t("dragLayerHint"))),f("div",{className:`video-canvas-wrap ${o}`,style:{transform:`scale(${n})`}},f("canvas",{ref:e.canvasRef,onPointerDown:j,onPointerMove:B,onPointerUp:te,onPointerLeave:te})),f("div",{className:"video-transport-panel"},f("div",{className:"video-transport-title"},f("strong",null,e.t("previewFilmControl")),f("span",null,e.t("previewFilmHelp"))),f("div",{className:"transport-row"},f(Z,{className:"play-button",onClick:D,title:e.t(p?"videoPause":"videoPlay")},p?"||":"\u25B6"),f(ja,{min:0,max:Math.max(.5,e.duration),step:.05,value:Math.min(e.videoTime,e.duration),onChange:e.onTimeChange}),f("strong",null,e.videoTime.toFixed(2)," / ",e.duration.toFixed(2),"s"),f(Z,{variant:"outline",onClick:e.onExportMp4,disabled:e.saving},e.t("exportMp4")),e.exportProgress!==null?f("span",null,Math.round(e.exportProgress*100),"%"):null)),f(am,{composition:C,activeSceneIndex:R,t:e.t,onSelect:u,onAdd:()=>O(Tp(C)),onDuration:P=>O(Mp(C,R,P)),onTransition:P=>O(Ap(C,R,P))}),f("div",{className:"media-row"},f("label",{className:"upload-pill"},e.t("uploadVideoBackground"),f("input",{type:"file",accept:"video/*,image/*",onChange:P=>P.target.files?.[0]&&void E(P.target.files[0],"background","background")})),f("label",{className:"upload-pill"},e.t("uploadReference"),f("input",{type:"file",accept:"video/*,image/*,.gif",onChange:P=>P.target.files?.[0]&&void E(P.target.files[0],"reference","reference")}))),f(om,{layers:T,selectedLayerId:I,duration:e.duration,time:e.videoTime,t:e.t,onSeek:e.onTimeChange})),f("aside",{className:"video-side"},f(it,{className:"side-card"},f("h3",null,e.t("layers")),f("div",{className:"layer-add-grid"},vp.map(P=>f(Z,{key:P,variant:"outline",className:"chip-button",onClick:()=>q(P)},"+ ",cm(P,e.t)))),f("div",{className:"layer-list"},T.map(P=>f("div",{key:P.id||P.text,role:"button",tabIndex:0,className:P.id===I?"layer-row active":"layer-row",onClick:()=>P.id&&U(P.id),onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&P.id&&(_.preventDefault(),U(P.id))}},f("span",null,cm(P.type,e.t)),f("strong",null,P.text||P.id||e.t("untitled")),f(Z,{variant:"destructive",className:"mini-danger",onClick:_=>{_.stopPropagation(),P.id&&O(Ip(C,R,P.id),null)}},e.t("delete")))))),f(it,{className:"side-card"},f("h3",null,e.t("properties")),F?f("div",{className:"property-grid"},f("label",null,f("span",null,e.t("text")),f(Ye,{value:F.text||"",onChange:P=>k(_=>({..._,text:P.target.value})),disabled:F.type!=="text"})),f("label",null,f("span",null,e.t("color")),f(Ye,{type:"color",value:(F.color||F.fill||"#ffffff").slice(0,7),onChange:P=>k(_=>({..._,color:P.target.value,fill:P.target.value}))})),["x","y","w","h","opacity","scale","rotate"].map(P=>f("label",{key:P},f("span",null,P),f(Ye,{type:"number",step:P==="opacity"||P==="scale"?.05:1,value:Number(F[P]??(P==="opacity"||P==="scale"?1:0)),onChange:_=>k(Y=>({...Y,[P]:Number(_.target.value)}))}))),f("label",null,f("span",null,e.t("kineticText")),f(Ct,{value:typeof F.kinetic?.type=="string"?F.kinetic.type:"none",options:Ot(Gp,e.t),onValueChange:P=>k(_=>({..._,kinetic:P==="none"?void 0:{type:P,stagger:.04}}))})),f("label",{className:"upload-pill inline"},e.t("uploadLayerMedia"),f("input",{type:"file",accept:"image/*,video/*",onChange:P=>P.target.files?.[0]&&void E(P.target.files[0],"layer","selected-layer")})),f("div",{className:"accordion-block"},f("strong",null,e.t("keyframes")),["opacity","x","y","scale","rotate","blur"].map(P=>f(Z,{key:P,variant:"outline",className:"chip-button",onClick:()=>k(_=>Rp(_,P,e.videoTime,Number(_[P]??(P==="opacity"||P==="scale"?1:0))))},e.t("setProperty",{property:P})))),f("div",{className:"accordion-block"},f("strong",null,e.t("motionPath")),f(Z,{variant:"outline",className:"chip-button",onClick:()=>k(P=>Us(P,[{x:Number(P.x||0)-160,y:Number(P.y||0)},{x:Number(P.x||0)+160,y:Number(P.y||0)}],"line"))},e.t("line")),f(Z,{variant:"outline",className:"chip-button",onClick:()=>k(P=>({...P,path:void 0}))},e.t("clearPath"))),f("div",{className:"accordion-block"},f("strong",null,e.t("motionLabel")),xp.map(P=>f("div",{key:P.group,className:"template-group"},f("span",null,$y(P.group,e.t)),f("div",{className:"chip-grid"},P.templates.map(_=>f(Z,{key:_,variant:_===c?"default":"outline",className:_===c?"chip-button active":"chip-button",onClick:()=>m(_)},_))))),f(Z,{className:"full-width",onClick:()=>k(P=>An(P,c))},e.t("applySelected"))),f("div",{className:"accordion-block"},f("strong",null,e.t("motionStyles")),f(Ye,{value:h,onChange:P=>x(P.target.value),placeholder:e.t("nameMotionPlaceholder")}),f(Z,{variant:"outline",onClick:()=>Me("info",h?e.t("styleReady",{name:h}):e.t("nameStyleFirst"))},e.t("saveStyle"))),f("div",{className:"motion-button-row"},f(Z,{variant:"outline",onClick:()=>I&&O(Vs(C,R,I,-1))},e.t("up")),f(Z,{variant:"outline",onClick:()=>I&&O(Vs(C,R,I,1))},e.t("down")))):f("p",{className:"muted"},e.t("selectLayerHint"))))))}function cm(e,t){return t(e==="text"?"text":e==="rect"?"block":e==="ellipse"?"circle":e==="image"?"image":e==="video"?"filterVideo":"layer")}function $y(e,t){return e==="Entrance"?t("templateEntrance"):e==="Emphasis"?t("templateEmphasis"):e==="Attention"?t("templateAttention"):e==="Exit"?t("templateExit"):e}function Xs(e){return e.name.split(/\s+/).filter(Boolean).map(a=>a[0]).join("").slice(0,2).toUpperCase()||"MO"}function Fn(e){return[e.id,e.name,e.category,e.cat,e.desc,e.description,...e.surfaces||[],...e.target||[],...e.runtime||[],...e.export||[],...e.tags||[]].filter(t=>typeof t=="string"&&t.length>0).join(" ").toLowerCase()}function mm(e,t,a){let o=Fn(e),r=Xy(o),n=o.includes("subtle")||o.includes("restrained")?18:o.includes("bold")||o.includes("spark")?34:t.distance,i=o.includes("typewriter")?960:o.includes("spark")||o.includes("click")?420:o.includes("slow")?900:t.duration,s=typeof a?.componentId=="string"?a.componentId:"";return{...t,selector:s?`[data-ma-id="${xr(s)}"]`:t.selector||"h1",trigger:hm(o,t.trigger),verb:r,duration:i,distance:n,tracksJson:JSON.stringify(Zy(r,n,o),null,2)}}function gm(e,t){let o=new DOMParser().parseFromString(e,"text/html"),r=t.trim();return r&&pm(o,r)?r:["[data-ma-id]","h1","h2","h3","button","a","p",'[class*="card"]',"main > *","body > *"].find(i=>pm(o,i))??r??"body > *"}function hm(e,t){return e.includes("hover")?"hover":e.includes("click")||e.includes("spark")?"click":e.includes("scroll")||e.includes("reveal")?"scroll":e.includes("load")||e.includes("entrance")||e.includes("intro")?"load":t}function Xy(e){return e.includes("slide left")?"slide-left":e.includes("slide right")?"slide-right":e.includes("slide down")?"slide-down":e.includes("slide")||e.includes("rise")||e.includes("falling")?"slide-up":e.includes("zoom")?"zoom":e.includes("rotate")||e.includes("rotating")?"rotate":e.includes("blur")||e.includes("focus")?"blur":e.includes("pop")||e.includes("spark")||e.includes("bounce")?"pop":e.includes("pulse")||e.includes("heartbeat")?"pulse":e.includes("shake")||e.includes("glitch")?"shake":e.includes("wobble")?"wobble":e.includes("sink")?"sink":"fade"}function Zy(e,t,a){let o=Js();return e==="fade"&&(o.y=[{t:0,v:0},{t:.5,v:0}],o.scale=[{t:0,v:1},{t:.5,v:1}],o.blur=[{t:0,v:0},{t:.5,v:0}]),e==="slide-down"&&(o.y=[{t:0,v:-t},{t:.55,v:0,ease:"ease-out"}]),e==="slide-left"&&(o.x=[{t:0,v:t},{t:.55,v:0,ease:"ease-out"}],o.y=[{t:0,v:0},{t:.55,v:0}]),e==="slide-right"&&(o.x=[{t:0,v:-t},{t:.55,v:0,ease:"ease-out"}],o.y=[{t:0,v:0},{t:.55,v:0}]),e==="zoom"&&(o.scale=[{t:0,v:.82},{t:.5,v:1,ease:"ease-out"}],o.y=[{t:0,v:0},{t:.5,v:0}]),e==="rotate"&&(o.rotate=[{t:0,v:-8},{t:.55,v:0,ease:"ease-out"}]),e==="blur"&&(o.blur=[{t:0,v:16},{t:.6,v:0,ease:"ease-out"}]),e==="pop"&&(o.scale=[{t:0,v:.82},{t:.24,v:1.08},{t:.46,v:1}],o.blur=[{t:0,v:0},{t:.46,v:0}]),e==="pulse"&&(o.opacity=[{t:0,v:1},{t:.35,v:.82},{t:.7,v:1}],o.scale=[{t:0,v:1},{t:.35,v:1.06},{t:.7,v:1}]),e==="shake"&&(o.x=[{t:0,v:0},{t:.15,v:-t/2},{t:.3,v:t/2},{t:.45,v:0}]),e==="wobble"&&(o.rotate=[{t:0,v:0},{t:.18,v:-5},{t:.38,v:4},{t:.6,v:0}]),e==="sink"&&(o.y=[{t:0,v:-t/2},{t:.55,v:0,ease:"ease-out"}]),a.includes("typewriter")&&(o.opacity=[{t:0,v:0},{t:.08,v:1}]),o}function Zs(e){let t=Fn(e);return t.includes("slide left")?"slide-left":t.includes("slide right")?"slide-right":t.includes("slide down")?"slide-down":t.includes("zoom out")?"zoom-out":t.includes("zoom")?"zoom-in":t.includes("rotate")||t.includes("rotating")?"rotate-in":t.includes("pop")||t.includes("spark")?"pop":t.includes("bounce")?"bounce-in":t.includes("pulse")?"pulse":t.includes("float")?"float":t.includes("wobble")?"wobble":t.includes("shake")||t.includes("glitch")?"shake":t.includes("heartbeat")?"heartbeat":t.includes("fade out")?"fade-out":t.includes("fade")?"fade-in":"slide-up"}function vm(e){let t=Fn(e);return t.includes("typewriter")?"typewriter":t.includes("char")||t.includes("letter")?t.includes("pop")?"char-pop":"char-rise":t.includes("word")?"word-rise":null}function xm(e,t,a){let o=(e.surfaces||[]).includes("web")?a("nativeWebRecipe"):a("mappedFromRecipeIntent"),r=typeof t?.label=="string"?t.label:typeof t?.componentId=="string"?t.componentId:a("currentSelector");return`${o}; ${a("appliesToTarget",{target:r})}.`}function bm(e,t,a){let o=(e.surfaces||[]).includes("video")?a("nativeVideoRecipe"):a("convertedToLayerTemplate"),r=typeof t?.layerId=="string"?t.layerId:a("firstAvailableLayer");return`${o}; ${a("appliesToTarget",{target:r})}.`}function wm(e,t,a,o){let r=kn(hm(Fn(e),"load"),o),n=typeof t?.label=="string"?t.label:o("htmlSelection"),i=typeof a?.layerId=="string"?o("layerWithId",{id:a.layerId}):o("videoLayer");return o("recipeUsageSummary",{trigger:r,htmlTarget:n,template:Zs(e),videoTarget:i})}function pm(e,t){try{return e.querySelector(t)!==null}catch{return!1}}function Js(){return{opacity:[{t:0,v:0},{t:.5,v:1}],x:[{t:0,v:0},{t:.5,v:0}],y:[{t:0,v:24},{t:.5,v:0,ease:"ease-out"}],scale:[{t:0,v:.96},{t:.5,v:1}],rotate:[{t:0,v:0},{t:.5,v:0}],blur:[{t:0,v:8},{t:.5,v:0}]}}function ym(e){let t=e.selectedRecipe;return f("section",{className:"motion-library"},f("div",{className:"motion-stat-row"},f(vr,{label:e.t("recipes"),value:e.stats?.recipes}),f(vr,{label:e.t("htmlTemplates"),value:e.stats?.htmlTemplates}),f(vr,{label:e.t("videoTemplates"),value:e.stats?.videoTemplates}),f(vr,{label:e.t("icons"),value:e.stats?.icons})),f("div",{className:"motion-library-layout"},f("div",{className:"motion-card-grid"},e.recipes.map(a=>f("button",{key:a.id,type:"button",className:t?.id===a.id?"motion-card motion-recipe-card active":"motion-card motion-recipe-card",onClick:()=>e.onSelectRecipe(a.id)},f("div",{className:"motion-card-preview","data-kind":a.category||a.cat||"motion"},f("span",null,Xs(a))),f("div",null,f("h3",null,a.name),f("p",null,a.desc||a.description||a.id)),f("div",{className:"motion-chip-row"},(a.surfaces||[]).slice(0,2).map(o=>f("span",{key:o,className:"motion-chip"},o)),(a.target||[]).slice(0,1).map(o=>f("span",{key:o,className:"motion-chip"},o)),f("span",{className:"motion-chip"},a.status||e.t("ready"))))),e.recipes.length===0?f("div",{className:"motion-empty"},e.t("noRecipes")):null),f(it,{className:"motion-recipe-detail"},t?f(nt,null,f("div",{className:"recipe-detail-head"},f("div",null,f("span",{className:"section-eyebrow"},e.t("selectedRecipe")),f("h2",null,t.name),f("p",null,t.desc||t.description||t.id)),f("div",{className:"motion-recipe-preview","data-kind":t.category||t.cat||"motion"},Xs(t))),f("div",{className:"motion-chip-row"},f("span",{className:"motion-chip"},t.category||t.cat||"motion"),(t.surfaces||[]).map(a=>f("span",{key:a,className:"motion-chip"},a)),(t.runtime||[]).slice(0,2).map(a=>f("span",{key:a,className:"motion-chip"},a))),f("div",{className:"recipe-fit-grid"},f("div",null,f("strong",null,e.t("htmlFit")),f("span",null,xm(t,e.componentSelection,e.t))),f("div",null,f("strong",null,e.t("videoFit")),f("span",null,bm(t,e.layerSelection,e.t)))),f("div",{className:"recipe-action-grid"},f(Z,{onClick:()=>e.onApplyHtml(t)},e.t("applyToHtml")),f(Z,{variant:"secondary",onClick:()=>e.onApplyVideo(t)},e.t("applyToVideo"))),f("div",{className:"recipe-usage-note"},f("strong",null,e.selectedProject?.title||e.t("referencedDraft")),f("span",null,wm(t,e.componentSelection,e.layerSelection,e.t)))):f("div",{className:"motion-empty"},e.t("recipeSelectEmpty")))))}var el={items:[],total:0,page:1,pageSize:20};function Jy(){let[e,t]=M(null),[a,o]=M(()=>Rm()),[r,n]=M("html"),[i,s]=M(null),[l,d]=M(!1),[u,c]=M(!1),[m,h]=M(!1),[x,p]=M(""),[g,v]=M(()=>({surface:"all",target:"all",status:"ready"})),[w,b]=M(null),[C,S]=M([]),[R,T]=M(!1),[I,F]=M(!1),[X,D]=M(!1),[O,U]=M(""),[q,k]=M("Motion Launch"),[A,j]=M("Polished motion direction for a product moment."),[B,te]=M(r0("Motion Launch")),[E,P]=M(()=>JSON.stringify(Im("Motion Launch"),null,2)),[_,Y]=M(.85),[be,ie]=M(null),[ne,J]=M(null),[fe,de]=M(null),[we,ye]=M(()=>({selector:"h1",trigger:"load",verb:"slide-up",duration:520,delay:0,distance:24,tracksJson:JSON.stringify(Js(),null,2)})),Se=z(null),Ve=z(!1),Ae=z(null),Ga=z(null),ue=me(()=>dp(e?.locale),[e?.locale]);H(()=>{Ve.current=X},[X]),H(()=>{Ae.current=i},[i]);let Kt=a.detail,le=Kt?.item??a.projects.items.find(N=>N.id===i)??null,tl=Q(N=>{if(!N)return;let $=N.workingCopy?.html,Le=N.workingCopy?.videoComposition;typeof $=="string"&&$.trim()&&te($),Le&&typeof Le=="object"&&P(JSON.stringify(Le,null,2)),J(N.workingCopy?.componentSelection??null),de(N.workingCopy?.layerSelection??null),S([]),D(!1)},[]),We=Q(async N=>{T(!0);try{let $=N?.projectId??Ae.current??e?.initialQuery?.selectionId,Le=r==="library"?"recipes":void 0,Pe=Sm({table:Le,projectId:typeof $=="string"?$:void 0,surface:Le==="recipes"&&g.surface!=="all"?g.surface:void 0,target:Le==="recipes"&&g.target!=="all"?g.target:void 0,status:Le==="recipes"&&g.status!=="all"?g.status:void 0}),Ge=Ws(await Np(Sm({page:1,pageSize:Le==="recipes"?36:20,search:r==="library"?x:void 0,parameters:Pe}))),Nt=Qy(Ge);o(Nt);let $t=Nt.detail;$t?.item?.id&&(s($t.item.id),(!Ve.current||N?.forceDraftSync)&&tl($t)),U(ue("statusReady"))}catch($){let Le=qa($);U(Le),Me("error",Le)}finally{T(!1),setTimeout(gr,0)}},[r,e?.initialQuery?.selectionId,g,x,tl,ue]);H(()=>{Ga.current=We},[We]),H(()=>{Fp({requestTimeout:e?.locale?.startsWith("zh")?"\u8BF7\u6C42\u8D85\u65F6":"Request timed out",remoteRequestFailed:e?.locale?.startsWith("zh")?"\u8FDC\u7A0B\u8BF7\u6C42\u5931\u8D25":"Remote request failed"})},[e?.locale]),H(()=>{Bp(t,()=>{if(Ve.current){U(ue("dirtyWarning")),Me("warning",ue("dirtyWarning"));return}Ga.current?.({projectId:Ae.current,forceDraftSync:!0})}),hr("ready")},[ue]),H(()=>{e&&We({forceDraftSync:!0})},[e,We]),H(()=>{setTimeout(gr,0)},[r,a,X,O]),H(()=>{if(r!=="library")return;let N=a.recipes.items;if(N.length===0){b(null);return}N.some($=>$.id===w)||b(N[0].id)},[r,w,a.recipes.items]),H(()=>{let N=Se.current;if(!N)return;let $=N.getContext("2d");if($)try{let Le=Wa(E),Pe=Tn(Le),Ge=Math.min(1,960/Pe.w);N.width=Math.max(1,Math.round(Pe.w*Ge)),N.height=Math.max(1,Math.round(Pe.h*Ge)),$.save(),$.scale(Ge,Ge),Pe.renderFrame($,Math.min(_,Pe.duration()));let Nt=typeof fe?.layerId=="string"?fe.layerId:"";if(Nt){let $t=pr(Le,Nt);if($t){let Ft=qs($t);$.save(),$.strokeStyle="#8b5cf6",$.lineWidth=4/Ge,$.setLineDash([10/Ge,7/Ge]),$.strokeRect(Ft.x-Ft.w/2,Ft.y-Ft.h/2,Ft.w,Ft.h),$.restore()}}$.restore()}catch{N.width=960,N.height=540,$.fillStyle="#111827",$.fillRect(0,0,N.width,N.height),$.fillStyle="#f8fafc",$.font="600 22px Inter, ui-sans-serif, system-ui, sans-serif",$.fillText(ue("invalidCompositionJson"),32,56)}},[r,fe,ue,E,_]);async function Bn(N){F(!0);try{let $=await da("create_project",null,{title:q,brief:A,surface:N,html:N==="web"?B:void 0,videoComposition:N==="video"?Wa(E):void 0,changeSummary:"Created in Motion Workbench"}),Le=Pm($),Pe=t0(Le);Pe&&s(Pe),n(N==="video"?"video":"html"),D(!1),d(!1),await We({projectId:Pe,forceDraftSync:!0}),Me("success",ue("projectCreated",{title:q}))}catch($){pt($)}finally{F(!1)}}async function Tm(){if(!le?.id){await Bn("web");return}F(!0);try{await da("save_web_artifact",le.id,{projectId:le.id,html:B,selectedRecipeIds:Ys([...le.selectedRecipeIds||[],...C]),componentSelection:ne??void 0,changeSummary:"Saved from Motion HTML Workbench"},{projectId:le.id}),D(!1),await We({projectId:le.id,forceDraftSync:!0}),Me("success",ue("htmlSaved"))}catch(N){pt(N)}finally{F(!1)}}async function Mm(){if(!le?.id){await Bn("video");return}F(!0);try{await da("save_video_composition",le.id,{projectId:le.id,composition:Wa(E),selectedRecipeIds:Ys([...le.selectedRecipeIds||[],...C]),layerSelection:fe??void 0,changeSummary:"Saved from Motion Video Composer"},{projectId:le.id}),D(!1),await We({projectId:le.id,forceDraftSync:!0}),Me("success",ue("videoSaved"))}catch(N){pt(N)}finally{F(!1)}}async function Am(){if(le?.id){F(!0);try{await da("finalize_version",le.id,{projectId:le.id,changeSummary:`Workbench version ${new Date().toLocaleString()}`},{projectId:le.id}),await We({projectId:le.id,forceDraftSync:!0}),Me("success",ue("versionSaved"))}catch(N){pt(N)}finally{F(!1)}}}async function Dm(N){if(le?.id){F(!0);try{await da("export_artifact",le.id,{projectId:le.id,kind:N,content:N==="html"?B:void 0,fileName:`${km(le.title)}.${n0(N)}`,changeSummary:`Exported ${N} from Motion Workbench`},{projectId:le.id}),await We({projectId:le.id}),Me("success",ue("artifactExported",{kind:N.toUpperCase()}))}catch($){pt($)}finally{F(!1)}}}async function zm(){if(le?.id){if(!zs()){Me("error",ue("webCodecsUnavailable"));return}F(!0),ie(0);try{let N=Wa(E),$=Tn(N);await $.preload();let Le=await sp($,{fps:$.fps,bitrate:5e6,scale:1},Ge=>ie(Ge)),Pe=new File([Le],`${km(le.title)}.mp4`,{type:"video/mp4"});await zn("save_export_file",le.id,{projectId:le.id,kind:"mp4",changeSummary:"Browser MP4 export from Motion Workbench"},{projectId:le.id},Pe),await We({projectId:le.id}),Me("success",ue("mp4Exported"))}catch(N){pt(N)}finally{F(!1),ie(null)}}}async function Em(N){if(le?.id){F(!0);try{await da("restore_version",le.id,{projectId:le.id,versionId:N,changeSummary:"Restored in Motion Workbench"},{projectId:le.id}),D(!1),await We({projectId:le.id,forceDraftSync:!0}),Me("success",ue("versionRestored"))}catch($){pt($)}finally{F(!1)}}}async function Hn(N){if(le?.id){F(!0);try{await da(N==="reviewed"?"mark_reviewed":N==="archived"?"archive_project":"mark_draft",le.id,{projectId:le.id},{projectId:le.id}),await We({projectId:le.id}),Me("success",ue("projectStatusUpdated",{status:N}))}catch($){pt($)}finally{F(!1)}}}function al(N){b(N.id),S($=>Ys([...$,N.id]))}function Om(N){try{let $=mm(N,we,ne),Le=typeof ne?.componentId=="string"?ne.componentId:"",Pe=Le?$:{...$,selector:gm(B,$.selector)},Ge=Le?Nn(B,Le,Pe):Lm(B,Pe);ye(Pe),J(Le?{...ne||{},componentId:Le,selectedRecipeId:N.id,selectedRecipeName:N.name}:{selectedRecipeId:N.id,selectedRecipeName:N.name,label:Pe.selector}),_n(Ge),al(N),n("html"),U(ue("recipeAppliedToHtml",{name:N.name})),Me("success",ue("recipeApplied",{name:N.name}))}catch($){pt($)}}function Nm(N){try{let $=Wa(E),Le=typeof fe?.layerId=="string"?fe.layerId:"",Pe=typeof fe?.sceneIndex=="number"?fe.sceneIndex:-1,Ge=[...$.shared||[],...So($,Pe)],Nt=Le?pr($,Le,Pe):Ge[0]??null;if(!Nt?.id)throw new Error(ue("selectLayerFirst"));let $t=Zs(N),Ft=vm(N),Vm=Va($,Pe,Nt.id,rl=>{let nl=An(rl,$t);return Ft&&rl.type==="text"?{...nl,kinetic:{type:Ft,stagger:.04}}:nl});ol(JSON.stringify(Vm,null,2)),de({layerId:Nt.id,sceneIndex:Pe,selectedRecipeId:N.id,selectedRecipeName:N.name}),al(N),n("video"),U(ue("recipeAppliedToVideo",{name:N.name})),Me("success",ue("recipeApplied",{name:N.name}))}catch($){pt($)}}function pt(N){let $=qa(N);U($),Me("error",$)}function _n(N){te(N),D(!0)}function ol(N){P(N),D(!0)}function Fm(){try{_n(Lm(B,we)),U(ue("motionApplied"))}catch(N){pt(N)}}let Bm=me(()=>{try{return Tn(Wa(E)).duration()}catch{return 5}},[E]),Vn=r==="html"||r==="video",Hm=r==="library",_m=a.recipes.items.find(N=>N.id===w)??a.recipes.items[0]??null,Un={title:le?.title||"Motion Workbench",dirty:X,statusLabel:le?.status||"draft",activeTab:r,onTabChange:n,onOpenProjects:()=>d(!0),onOpenVersions:()=>c(!0),onOpenExports:()=>h(!0)};return f("main",{className:Vn?"motion-shell motion-shell-editor":"motion-shell"},f(Yp,{open:l,projects:a.projects.items,selectedProjectId:i,title:q,brief:A,saving:I,t:ue,onOpenChange:d,onTitleChange:k,onBriefChange:j,onCreate:Bn,onSelect:N=>{We({projectId:N,forceDraftSync:!0})}}),f(Qp,{open:u,versions:Kt?.versions||[],currentId:Kt?.currentVersion?.id,saving:I,t:ue,onOpenChange:c,onCreateVersion:Am,onRestore:Em}),f(em,{open:m,exports:Kt?.exports||[],selectedProject:le,t:ue,onOpenChange:h,onReviewed:()=>{Hn("reviewed")},onDraft:()=>{Hn("draft")},onArchive:()=>{Hn("archived")}}),Vn?null:f($p,{header:Un,t:ue}),Hm&&!Vn?f("section",{className:"motion-status-row"},f(Ye,{value:x,onChange:N=>p(N.target.value),onKeyDown:N=>{N.key==="Enter"&&We()},placeholder:ue("search")}),f(Z,{onClick:()=>{We()},disabled:R},ue("search")),f("span",null,R?ue("loading"):O)):null,r==="library"?f("section",{className:"motion-library-command"},f("div",null,f("strong",null,ue("library")),f("span",null,ue("libraryHelp"))),f("div",{className:"motion-filter-row"},f(Ct,{className:"library-filter-select",value:g.surface,options:Ot(qp,ue),onValueChange:N=>v($=>({...$,surface:N}))}),f(Ct,{className:"library-filter-select",value:g.target,options:Ot(jp,ue),onValueChange:N=>v($=>({...$,target:N}))}),f(Ct,{className:"library-filter-select",value:g.status,options:Ot(Wp,ue),onValueChange:N=>v($=>({...$,status:N}))}))):null,r==="library"?f(ym,{recipes:a.recipes.items,stats:a.libraryStats,selectedRecipe:_m,selectedProject:le,componentSelection:ne,layerSelection:fe,t:ue,onSelectRecipe:b,onApplyHtml:Om,onApplyVideo:Nm}):null,r==="html"?f(um,{controls:we,htmlDraft:B,componentSelection:ne,saving:I,selectedProject:le,header:Un,t:ue,onControlsChange:ye,onApply:Fm,onDraftChange:_n,onComponentSelectionChange:J,onSave:()=>{Tm()},onExport:Dm}):null,r==="video"?f(fm,{canvasRef:Se,videoDraft:E,videoTime:_,selectedProject:le,layerSelection:fe,header:Un,t:ue,duration:Bm,saving:I,exportProgress:be,parseVideoComposition:Wa,defaultComposition:Im,extractMediaPayload:Yy,onDraftChange:ol,onTimeChange:Y,onLayerSelectionChange:de,onSave:()=>{Mm()},onExportMp4:()=>{zm()}}):null)}function Ys(e){return Array.from(new Set(e.filter(t=>typeof t=="string"&&t.trim()).map(t=>t.trim())))}function Yy(e){let t=Pm(e);if(!Fe(t)||!Fe(t.media))return null;let a=t.media;return{src:typeof a.src=="string"?a.src:typeof a.fileUrl=="string"?a.fileUrl:typeof a.workspacePath=="string"?a.workspacePath:typeof a.filePath=="string"?a.filePath:"",filePath:typeof a.filePath=="string"?a.filePath:void 0,fileUrl:typeof a.fileUrl=="string"?a.fileUrl:void 0,mimeType:typeof a.mimeType=="string"?a.mimeType:void 0}}function Rm(){return{projects:el,recipes:el,styles:[],detail:null,libraryStats:{}}}function Qy(e){return Fe(e)?{projects:Cm(e.projects),recipes:Cm(e.recipes),styles:Array.isArray(e.styles)?e.styles:[],detail:e0(e.detail),libraryStats:Fe(e.libraryStats)?e.libraryStats:{}}:Rm()}function Cm(e){return Fe(e)?{items:Array.isArray(e.items)?e.items:[],total:typeof e.total=="number"?e.total:0,page:typeof e.page=="number"?e.page:1,pageSize:typeof e.pageSize=="number"?e.pageSize:20}:{...el,items:[]}}function e0(e){return!Fe(e)||!Fe(e.item)||typeof e.item.id!="string"?null:e}function Pm(e){let t=Ws(e);return Fe(t)&&t.data!==void 0?t.data:t}function t0(e){return Fe(e)&&Fe(e.item)&&typeof e.item.id=="string"?e.item.id:Fe(e)&&Fe(e.project)&&typeof e.project.id=="string"?e.project.id:null}function Sm(e){let t={};for(let[a,o]of Object.entries(e))o!=null&&o!==""&&(t[a]=o);return t}function Wa(e){let t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Composition must be a JSON object.");return t}function Lm(e,t){let o=new DOMParser().parseFromString(e,"text/html"),r=t.selector.trim()||"body > *",n;try{n=Array.from(o.querySelectorAll(r))}catch{throw new Error("Selector is invalid.")}if(n.length===0)throw new Error("Selector matched no elements.");let i=a0(t.tracksJson);for(let s of n.slice(0,50))s.setAttribute("data-ma-anim",t.verb),s.setAttribute("data-ma-trigger",t.trigger),s.setAttribute("data-ma-dur",String(Qs(t.duration,80,4e3))),s.setAttribute("data-ma-delay",String(Qs(t.delay,0,8e3))),s.setAttribute("data-ma-dist",String(Qs(t.distance,-400,400))),s.setAttribute("data-ma-tracks",JSON.stringify(i));return`<!doctype html>
116
- ${o.documentElement.outerHTML}`}function a0(e){let t=JSON.parse(e),a={};for(let o of En)Array.isArray(t[o])&&(a[o]=t[o]);return a}function o0(e,t=40){return{opacity:[{t:0,v:0},{t:.5,v:1}],y:[{t:0,v:e+t},{t:.5,v:e,ease:"ease-out"}],scale:[{t:0,v:.96},{t:.5,v:1}],blur:[{t:0,v:8},{t:.5,v:0}]}}function r0(e){return`<!doctype html>
125
+ `,t.parentElement||e.head?.appendChild(t);let a=A1(e);return a.components.forEach(({element:r})=>{r.classList.add("ma-editable")}),a}function sC(e,t){Array.from(e.querySelectorAll(".ma-editable")).forEach(r=>{r.addEventListener("mouseenter",()=>r.classList.add("ma-hover")),r.addEventListener("mouseleave",()=>r.classList.remove("ma-hover")),r.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),t(r)})})}function r0(e,t){if(Array.from(e.querySelectorAll(".ma-selected")).forEach(r=>r.classList.remove("ma-selected")),!t)return;e.querySelector(`[data-ma-id="${al(t)}"]`)?.classList.add("ma-selected")}function uC(e,t,a){let r=Array.from(e.querySelectorAll("[data-ma-anim],[data-ma-kf]")),n=a?.selectedId?e.querySelector(`[data-ma-id="${al(a.selectedId)}"]`):null,o=r.length>0?n&&!r.includes(n)?[n]:[]:n?[n]:Array.from(e.querySelectorAll(".ma-editable")).slice(0,6),i=[...r,...o];for(let s of i){let u=rO(s,a?.controls),l=Cn((t-u.delay)/u.duration,0,1),c=aO(u.tracks)?nO(u.tracks,l):oO(u.verb,l,u.distance);iO(s,c)}}function Hd(e,t,a){let n=new DOMParser().parseFromString(e,"text/html"),o=n.querySelector(`[data-ma-id="${al(t)}"]`);if(!o)throw new Error("Selected element was not found in the HTML draft.");let i=oi(xs(a.tracksJson)??ii()),s=g1(t);o.setAttribute("data-ma-id",t),o.setAttribute("data-ma-anim",a.verb),o.setAttribute("data-ma-kf",s),o.setAttribute("data-ma-trigger",a.trigger),o.setAttribute("data-ma-dur",String(Cn(a.duration,80,4e3))),o.setAttribute("data-ma-delay",String(Cn(a.delay,0,8e3))),o.setAttribute("data-ma-dist",String(Cn(a.distance,-400,400))),o.setAttribute("data-ma-tracks",JSON.stringify(i));let u=n0(n);return b1(u,s,i)}function n0(e){return`<!doctype html>
126
+ ${e.documentElement.outerHTML}`}function lC(e){return $g({tagName:e.tagName,text:e.textContent,className:e.getAttribute("class"),alt:e.getAttribute("alt")})}function xs(e){try{let t=JSON.parse(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:null}catch{return null}}function o0(e,t){return e&&e.length>0?Number(e[e.length-1].v??0):t==="opacity"||t==="scale"?1:0}function cC(e,t){return e==="opacity"||e==="scale"?t.toFixed(2):e==="rotate"?`${Math.round(t)}\xB0`:`${Math.round(t)}px`}function al(e){return e.replace(/["\\]/g,"\\$&")}function Cn(e,t,a){return Number.isFinite(e)?Math.min(a,Math.max(t,e)):t}function aO(e){return Object.values(e).some(t=>Array.isArray(t)&&t.length>0)}function rO(e,t){let a=t?xs(t.tracksJson):null,r=xs(e.getAttribute("data-ma-tracks")||"");return{verb:e.getAttribute("data-ma-anim")||t?.verb||"fade",duration:Cn(Number(e.getAttribute("data-ma-dur")||t?.duration||520),80,4e3),delay:Cn(Number(e.getAttribute("data-ma-delay")||t?.delay||0),0,8e3),distance:Cn(Number(e.getAttribute("data-ma-dist")||t?.distance||24),-400,400),tracks:oi(r??a??ii())}}function nO(e,t){return{opacity:gs(e.opacity,t,void 0),x:gs(e.x,t,0)??0,y:gs(e.y,t,0)??0,scale:gs(e.scale,t,1)??1,rotate:gs(e.rotate,t,0)??0,blur:gs(e.blur,t,0)??0}}function oO(e,t,a){let r=Cn(t,0,1),n=1-r;switch(e){case"slide-up":return{opacity:r,x:0,y:a*n,scale:1,rotate:0,blur:0};case"slide-down":return{opacity:r,x:0,y:-a*n,scale:1,rotate:0,blur:0};case"slide-left":return{opacity:r,x:-a*n,y:0,scale:1,rotate:0,blur:0};case"slide-right":return{opacity:r,x:a*n,y:0,scale:1,rotate:0,blur:0};case"zoom":return{opacity:r,x:0,y:0,scale:.9+.1*r,rotate:0,blur:0};case"rotate":return{opacity:r,x:0,y:0,scale:.96+.04*r,rotate:-8*n,blur:0};case"blur":return{opacity:r,x:0,y:0,scale:1,rotate:0,blur:10*n};case"pop":{let o=r<.45?r/.45:1-(r-.45)/.55;return{opacity:1,x:0,y:-Math.max(0,o)*Math.min(Math.abs(a),24),scale:1+Math.max(0,o)*.06,rotate:0,blur:0}}case"pulse":return{opacity:1,x:0,y:0,scale:1+Math.sin(Math.PI*r)*.08,rotate:0,blur:0};case"shake":return{opacity:1,x:Math.sin(Math.PI*r*8)*6*n,y:0,scale:1,rotate:0,blur:0};case"wobble":return{opacity:1,x:0,y:0,scale:1,rotate:Math.sin(Math.PI*r*6)*4*n,blur:0};case"sink":return{opacity:1,x:0,y:0,scale:1-Math.sin(Math.PI*r)*.06,rotate:0,blur:0};default:return{opacity:r,x:0,y:0,scale:1,rotate:0,blur:0}}}function iO(e,t){e.style.animation="none",e.style.animationPlayState="paused",t.opacity!==void 0&&(e.style.opacity=String(bs(t.opacity))),e.style.transform=`translate(${bs(t.x)}px, ${bs(t.y)}px) scale(${bs(t.scale)}) rotate(${bs(t.rotate)}deg)`,e.style.filter=t.blur>0?`blur(${bs(t.blur)}px)`:"blur(0)",e.style.willChange="opacity, transform, filter"}function gs(e,t,a){if(!e||e.length===0)return a;let r=e.map(n=>({t:Number(n.t??0),v:Number(n.v??a??0)})).sort((n,o)=>n.t-o.t);if(t<=r[0].t)return r[0].v;for(let n=1;n<r.length;n+=1){let o=r[n-1],i=r[n];if(t<=i.t){let s=Math.max(.001,i.t-o.t),u=Cn((t-o.t)/s,0,1);return o.v+(i.v-o.v)*u}}return r[r.length-1].v}function bs(e){return Math.round(e*1e3)/1e3}function dC(e){let t=H(null),[a,r]=O("preview"),[n,o]=O("desktop"),[i,s]=O(1),[u,l]=O("keyframes"),[c,d]=O(()=>typeof e.componentSelection?.componentId=="string"?e.componentSelection.componentId:""),[f,p]=O(0),[g,m]=O(0),[x,v]=O([]),w=_e(()=>y1(e.htmlDraft),[e.htmlDraft]),y=_e(()=>{if(w.length>0)return w;let T=c||(typeof e.componentSelection?.componentId=="string"?e.componentSelection.componentId:"");return T?[{id:T,label:typeof e.componentSelection?.label=="string"?e.componentSelection.label:e.t("selectElement"),verb:e.controls.verb,trigger:e.controls.trigger,delay:Number(e.controls.delay||0),duration:Number(e.controls.duration||520)}]:[]},[w,e.componentSelection,e.controls,e.t,c]),S=_e(()=>w1(y),[y]),A=y.find(T=>T.id===c)??y[0]??null,L=_e(()=>oi(xs(e.controls.tracksJson)??ii()),[e.controls.tracksJson]),C=S.duration,I=_e(()=>{try{return h1(e.htmlDraft)}catch{return e.htmlDraft}},[e.htmlDraft]);K(()=>{!c&&A?.id&&(d(A.id),e.onComponentSelectionChange({componentId:A.id,label:A.label}))},[e,c,A]);function D(){let _=t.current?.contentDocument;if(!_)return;let Q=iC(_);if(Q.changed&&e.onDraftChange(n0(_)),!c&&Q.components[0]){let q=Q.components[0];d(q.id),e.onComponentSelectionChange({componentId:q.id,label:q.label}),e.onControlsChange({...e.controls,selector:`[data-ma-id="${q.id}"]`})}sC(_,q=>{let pe=q.getAttribute("data-ma-id")||"";pe&&(d(pe),e.onComponentSelectionChange({componentId:pe,label:lC(q)}),e.onControlsChange({...e.controls,selector:`[data-ma-id="${pe}"]`,verb:q.getAttribute("data-ma-anim")||e.controls.verb,trigger:q.getAttribute("data-ma-trigger")||e.controls.trigger,duration:Number(q.getAttribute("data-ma-dur")||e.controls.duration),delay:Number(q.getAttribute("data-ma-delay")||e.controls.delay),distance:Number(q.getAttribute("data-ma-dist")||e.controls.distance),tracksJson:q.getAttribute("data-ma-tracks")||e.controls.tracksJson}))}),r0(_,c)}K(()=>{let T=t.current?.contentDocument;T&&r0(T,c)},[c]);function Z(){p(0),r("preview"),m(T=>T+1)}function N(T){p(T),t.current?.contentWindow?.__maTimeline?.seek?.(T);let Q=t.current?.contentDocument;Q&&uC(Q,T,{selectedId:c,controls:e.controls})}function V(T,_){let Q=oi(xs(e.controls.tracksJson)??ii()),q=Q[T]&&Q[T].length>=2?[...Q[T]]:[{t:0,v:T==="opacity"?0:T==="scale"?.96:0},{t:.5,v:T==="opacity"||T==="scale"?1:0}];q[q.length-1]={...q[q.length-1],v:_},e.onControlsChange({...e.controls,tracksJson:JSON.stringify({...Q,[T]:q},null,2)})}function J(T=e.controls){if(!c){nt("warning",e.t("selectElementFirst"));return}try{v(Q=>[...Q.slice(-9),e.htmlDraft]);let _=Hd(e.htmlDraft,c,T);e.onDraftChange(_),e.onComponentSelectionChange({componentId:c,label:A?.label??c,trigger:T.trigger,verb:T.verb})}catch(_){nt("error",li(_))}}function ee(){let T=x[x.length-1];T&&(v(_=>_.slice(0,-1)),e.onDraftChange(T))}return h("section",{className:"motion-workbench-surface html-surface"},h(hs,{header:e.header,t:e.t,viewMode:a,device:n,zoom:i,canUndo:x.length>0,onViewModeChange:r,onDeviceChange:o,onZoomChange:s,onReplay:Z,onUndo:ee,onSave:e.onSave,onExport:T=>e.onExport(T),saving:e.saving,exportKinds:["html","css","json","react","lottie"]}),a==="code"?h(Qt,{className:"motion-panel motion-code-panel"},h(An,{className:"motion-code",value:e.htmlDraft,onChange:T=>e.onDraftChange(T.target.value),spellCheck:!1})):h("div",{className:"html-stage-layout"},h("div",{className:`html-device-frame ${n}`,style:{transform:`scale(${i})`}},h("iframe",{key:`${n}-${g}`,ref:t,title:e.t("html"),sandbox:"allow-scripts allow-same-origin",srcDoc:I,onLoad:D})),h(Qt,{className:"motion-inspector"},h("div",{className:"inspector-title"},h("div",null,h("span",{className:"selection-dot"}),h("strong",null,A?.label||e.t("selectElement")))),h("div",{className:"segmented"},h(de,{variant:u==="preset"?"default":"outline",className:u==="preset"?"active":"",onClick:()=>l("preset")},e.t("preset")),h(de,{variant:u==="keyframes"?"default":"outline",className:u==="keyframes"?"active":"",onClick:()=>l("keyframes")},e.t("keyframes"))),h("section",{className:"inspector-section"},h("span",{className:"section-eyebrow"},e.t("trigger")),h("div",{className:"chip-grid four"},V1.map(T=>h(de,{key:T,variant:T===e.controls.trigger?"default":"outline",className:T===e.controls.trigger?"chip-button active":"chip-button",onClick:()=>{let _={...e.controls,trigger:T};e.onControlsChange(_),J(_)}},Rd(T,e.t))))),u==="preset"?h("section",{className:"inspector-section"},h("span",{className:"section-eyebrow"},e.t("motionLabel")),h("div",{className:"chip-grid"},U1.map(T=>h(de,{key:T,variant:T===e.controls.verb?"default":"outline",className:T===e.controls.verb?"chip-button active":"chip-button",onClick:()=>{let _={...e.controls,verb:T};e.onControlsChange(_),J(_)}},T)))):h("section",{className:"inspector-section"},h("span",{className:"section-eyebrow"},e.t("keyframes")),h("label",{className:"range-row"},h("span",null,e.t("scrub")),h(ci,{min:0,max:C,step:20,value:f,onChange:N}),h("em",null,Math.round(f),"ms")),Fd.map(T=>h("label",{key:T,className:"range-row"},h("span",null,T),h(ci,{min:T==="opacity"?0:T==="scale"?.2:T==="rotate"?-180:-160,max:T==="opacity"?1:T==="scale"?2:T==="rotate"?180:160,step:T==="opacity"||T==="scale"?.01:1,value:o0(L[T],T),onChange:_=>V(T,_)}),h("em",null,cC(T,o0(L[T],T))))),h(An,{className:"motion-code-small",value:e.controls.tracksJson,onChange:T=>e.onControlsChange({...e.controls,tracksJson:T.target.value})})),h("section",{className:"inspector-section compact-form"},h("div",{className:"motion-form-grid"},h("label",null,h("span",null,e.t("duration")),h(ba,{type:"number",value:e.controls.duration,onChange:T=>e.onControlsChange({...e.controls,duration:Number(T.target.value)})})),h("label",null,h("span",null,e.t("delay")),h(ba,{type:"number",value:e.controls.delay,onChange:T=>e.onControlsChange({...e.controls,delay:Number(T.target.value)})})),h("label",null,h("span",null,e.t("distance")),h(ba,{type:"number",value:e.controls.distance,onChange:T=>e.onControlsChange({...e.controls,distance:Number(T.target.value)})}))),h(de,{className:"full-width",onClick:()=>J(),disabled:!c},e.t("applyMotion"))))),h(aC,{layout:S,selectedId:c,scope:w.length>0?"all":"selection",time:f,t:e.t,onSelect:T=>d(T),onSeek:N}))}function pC(e){let[t,a]=O("preview"),[r,n]=O("desktop"),[o,i]=O(1),[s,u]=O("select"),[l,c]=O(0),[d,f]=O("slide-up"),[p,g]=O(""),[m,x]=O(!1),v=H(null),w=H([]),y=H({time:e.videoTime,duration:e.duration,onTimeChange:e.onTimeChange}),S=_e(()=>{try{return e.parseVideoComposition(e.videoDraft)}catch{return e.defaultComposition(e.t("invalidCompositionJson"))}},[e]),A=Ea(S),L=A.length>0?Math.min(l,A.length-1):-1,C=[...S.shared||[],...ps(S,L)],I=typeof e.layerSelection?.layerId=="string"?e.layerSelection.layerId:C[0]?.id||"",D=I?$u(S,I,L):null;K(()=>{y.current={time:e.videoTime,duration:e.duration,onTimeChange:e.onTimeChange}},[e.duration,e.onTimeChange,e.videoTime]),K(()=>{if(!m)return;let M=0,j=performance.now(),ce=Me=>{let Se=y.current,B=Math.min(.08,Math.max(0,(Me-j)/1e3));j=Me;let F=Math.min(Se.duration,Se.time+B);if(Se.onTimeChange(F),F>=Se.duration-.01){x(!1);return}M=requestAnimationFrame(ce)};return M=requestAnimationFrame(ce),()=>cancelAnimationFrame(M)},[m]),K(()=>{!I&&C[0]?.id&&e.onLayerSelectionChange({layerId:C[0].id,sceneIndex:L})},[L,C,e,I]);function Z(){e.onTimeChange(0),x(!0)}function N(){if(m){x(!1);return}e.videoTime>=e.duration-.05&&e.onTimeChange(0),x(!0)}function V(M,j){e.onDraftChange(JSON.stringify(M,null,2)),j!==void 0&&e.onLayerSelectionChange(j)}function J(M){e.onLayerSelectionChange(M?{layerId:M,sceneIndex:L}:null)}function ee(M){let j=C1(M,S,C.length+1);V(I1(S,L,j),{layerId:j.id||"",sceneIndex:L})}function T(M){I&&V(si(S,L,I,j=>M(j)??j))}function _(M){let ce=e.canvasRef.current?.getBoundingClientRect(),Me=S.w||1280,Se=S.h||720;return ce?{x:(M.clientX-ce.left)/ce.width*Me,y:(M.clientY-ce.top)/ce.height*Se}:{x:0,y:0}}function Q(M){let j=_(M);if(s==="path"){w.current=[j];return}let ce=T1(C,j.x,j.y);ce?.id?(J(ce.id),v.current={id:ce.id,x:j.x,y:j.y}):J(null)}function q(M){let j=_(M);if(s==="path"&&w.current.length>0){w.current.push(j);return}let ce=v.current;if(!ce)return;let Me=j.x-ce.x,Se=j.y-ce.y;v.current={...ce,x:j.x,y:j.y},V(si(S,L,ce.id,B=>L1(B,Me,Se,e.videoTime)))}function pe(){let M=w.current;s==="path"&&I&&M.length>1&&V(si(S,L,I,j=>Xg(j,M,"raw"))),w.current=[],v.current=null}async function W(M,j,ce){if(!e.selectedProject?.id){nt("warning",e.t("createOrSaveBeforeUpload"));return}try{let Me=await Bd("upload_media_file",e.selectedProject.id,{projectId:e.selectedProject.id,purpose:j},{projectId:e.selectedProject.id},M),Se=e.extractMediaPayload(Me);if(!Se?.src)throw new Error(e.t("mediaUploadNoSource"));ce==="background"?V({...S,bg:Se.src}):ce==="reference"?V({...S,reference:{src:Se.src,filePath:Se.filePath||null,mimeType:Se.mimeType||M.type}}):I&&V(si(S,L,I,B=>({...B,src:Se.src,filePath:Se.filePath,fileUrl:Se.fileUrl}))),nt("success",e.t("mediaUploaded"))}catch(Me){nt("error",li(Me))}}return h("section",{className:"motion-workbench-surface video-surface"},h(hs,{header:e.header,t:e.t,viewMode:t,device:r,zoom:o,canUndo:!1,onViewModeChange:a,onDeviceChange:n,onZoomChange:i,onReplay:Z,onUndo:()=>{},onSave:e.onSave,onExport:()=>e.onExportMp4(),saving:e.saving,exportKinds:["mp4"],exportLabel:e.t("legacyLocalExport")}),h("div",{className:"hyperframes-engine-row legacy-engine-row"},h("div",null,h(za,{variant:"outline","data-status":"warning"},e.t("legacyVideoEngine")),h("span",null,e.t("legacyVideoEngineHelp")))),t==="code"?h(Qt,{className:"motion-panel motion-code-panel"},h(An,{className:"motion-code motion-video-code",value:e.videoDraft,onChange:M=>e.onDraftChange(M.target.value),spellCheck:!1})):h("div",{className:"video-stage-layout"},h(Qt,{className:"video-main"},h("div",{className:"tool-row"},h(de,{variant:s==="select"?"default":"outline",className:s==="select"?"tool-button active":"tool-button",onClick:()=>u("select")},e.t("select")),h(de,{variant:s==="path"?"default":"outline",className:s==="path"?"tool-button active":"tool-button",onClick:()=>u("path")},e.t("path")),h("span",null,s==="path"?e.t("drawPathHint"):e.t("dragLayerHint"))),h("div",{className:`video-canvas-wrap ${r}`,style:{transform:`scale(${o})`}},h("canvas",{ref:e.canvasRef,onPointerDown:Q,onPointerMove:q,onPointerUp:pe,onPointerLeave:pe})),h("div",{className:"video-transport-panel"},h("div",{className:"video-transport-title"},h("strong",null,e.t("previewFilmControl")),h("span",null,e.t("previewFilmHelp"))),h("div",{className:"transport-row"},h(de,{className:"play-button",onClick:N,title:e.t(m?"videoPause":"videoPlay")},m?"||":"\u25B6"),h(ci,{min:0,max:Math.max(.5,e.duration),step:.05,value:Math.min(e.videoTime,e.duration),onChange:e.onTimeChange}),h("strong",null,e.videoTime.toFixed(2)," / ",e.duration.toFixed(2),"s"),h(de,{variant:"outline",onClick:e.onExportMp4,disabled:e.saving},e.t("exportMp4")),e.exportProgress!==null?h("span",null,Math.round(e.exportProgress*100),"%"):null)),h(rC,{composition:S,activeSceneIndex:L,t:e.t,onSelect:c,onAdd:()=>V(R1(S)),onDuration:M=>V(P1(S,L,M)),onTransition:M=>V(N1(S,L,M))}),h("div",{className:"media-row"},h("label",{className:"upload-pill"},e.t("uploadVideoBackground"),h("input",{type:"file",accept:"video/*,image/*",onChange:M=>M.target.files?.[0]&&void W(M.target.files[0],"background","background")})),h("label",{className:"upload-pill"},e.t("uploadReference"),h("input",{type:"file",accept:"video/*,image/*,.gif",onChange:M=>M.target.files?.[0]&&void W(M.target.files[0],"reference","reference")}))),h(nC,{layers:C,selectedLayerId:I,duration:e.duration,time:e.videoTime,t:e.t,onSeek:e.onTimeChange})),h("aside",{className:"video-side"},h(Qt,{className:"side-card"},h("h3",null,e.t("layers")),h("div",{className:"layer-add-grid"},x1.map(M=>h(de,{key:M,variant:"outline",className:"chip-button",onClick:()=>ee(M)},"+ ",fC(M,e.t)))),h("div",{className:"layer-list"},C.map(M=>h("div",{key:M.id||M.text,role:"button",tabIndex:0,className:M.id===I?"layer-row active":"layer-row",onClick:()=>M.id&&J(M.id),onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&M.id&&(j.preventDefault(),J(M.id))}},h("span",null,fC(M.type,e.t)),h("strong",null,M.text||M.id||e.t("untitled")),h(de,{variant:"destructive",className:"mini-danger",onClick:j=>{j.stopPropagation(),M.id&&V(k1(S,L,M.id),null)}},e.t("delete")))))),h(Qt,{className:"side-card"},h("h3",null,e.t("properties")),D?h("div",{className:"property-grid"},h("label",null,h("span",null,e.t("text")),h(ba,{value:D.text||"",onChange:M=>T(j=>({...j,text:M.target.value})),disabled:D.type!=="text"})),h("label",null,h("span",null,e.t("color")),h(ba,{type:"color",value:(D.color||D.fill||"#ffffff").slice(0,7),onChange:M=>T(j=>({...j,color:M.target.value,fill:M.target.value}))})),["x","y","w","h","opacity","scale","rotate"].map(M=>h("label",{key:M},h("span",null,M),h(ba,{type:"number",step:M==="opacity"||M==="scale"?.05:1,value:Number(D[M]??(M==="opacity"||M==="scale"?1:0)),onChange:j=>T(ce=>({...ce,[M]:Number(j.target.value)}))}))),h("label",null,h("span",null,e.t("kineticText")),h(Ta,{value:typeof D.kinetic?.type=="string"?D.kinetic.type:"none",options:Yr(K1,e.t),onValueChange:M=>T(j=>({...j,kinetic:M==="none"?void 0:{type:M,stagger:.04}}))})),h("label",{className:"upload-pill inline"},e.t("uploadLayerMedia"),h("input",{type:"file",accept:"image/*,video/*",onChange:M=>M.target.files?.[0]&&void W(M.target.files[0],"layer","selected-layer")})),h("div",{className:"accordion-block"},h("strong",null,e.t("keyframes")),["opacity","x","y","scale","rotate","blur"].map(M=>h(de,{key:M,variant:"outline",className:"chip-button",onClick:()=>T(j=>E1(j,M,e.videoTime,Number(j[M]??(M==="opacity"||M==="scale"?1:0))))},e.t("setProperty",{property:M})))),h("div",{className:"accordion-block"},h("strong",null,e.t("motionPath")),h(de,{variant:"outline",className:"chip-button",onClick:()=>T(M=>Xg(M,[{x:Number(M.x||0)-160,y:Number(M.y||0)},{x:Number(M.x||0)+160,y:Number(M.y||0)}],"line"))},e.t("line")),h(de,{variant:"outline",className:"chip-button",onClick:()=>T(M=>({...M,path:void 0}))},e.t("clearPath"))),h("div",{className:"accordion-block"},h("strong",null,e.t("motionLabel")),v1.map(M=>h("div",{key:M.group,className:"template-group"},h("span",null,sO(M.group,e.t)),h("div",{className:"chip-grid"},M.templates.map(j=>h(de,{key:j,variant:j===d?"default":"outline",className:j===d?"chip-button active":"chip-button",onClick:()=>f(j)},j))))),h(de,{className:"full-width",onClick:()=>T(M=>Od(M,d))},e.t("applySelected"))),h("div",{className:"accordion-block"},h("strong",null,e.t("motionStyles")),h(ba,{value:p,onChange:M=>g(M.target.value),placeholder:e.t("nameMotionPlaceholder")}),h(de,{variant:"outline",onClick:()=>nt("info",p?e.t("styleReady",{name:p}):e.t("nameStyleFirst"))},e.t("saveStyle"))),h("div",{className:"motion-button-row"},h(de,{variant:"outline",onClick:()=>I&&V(Zg(S,L,I,-1))},e.t("up")),h(de,{variant:"outline",onClick:()=>I&&V(Zg(S,L,I,1))},e.t("down")))):h("p",{className:"muted"},e.t("selectLayerHint"))))))}function fC(e,t){return t(e==="text"?"text":e==="rect"?"block":e==="ellipse"?"circle":e==="image"?"image":e==="video"?"filterVideo":"layer")}function sO(e,t){return e==="Entrance"?t("templateEntrance"):e==="Emphasis"?t("templateEmphasis"):e==="Attention"?t("templateAttention"):e==="Exit"?t("templateExit"):e}function uO(e){return e.hasRuntime||e.runtimeInjected?!1:!!(e.hasNestedCompositions||e.hasTimelines&&e.attempts>=5)}function Ud(e){return typeof e=="object"&&e!==null}function lO(e){return Ud(e)&&typeof e.getDuration=="function"}function cO(e){return Ud(e)&&typeof e.duration=="function"&&typeof e.time=="function"&&typeof e.seek=="function"&&typeof e.play=="function"&&typeof e.pause=="function"}var dO="https://cdn.jsdelivr.net/npm/@hyperframes/core@0.7.63/dist/hyperframe.runtime.iife.js";function Gd(e){if(e===null)return null;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:null}function fO(e){let t=e?.querySelector("[data-composition-id][data-width][data-height]")??e?.querySelector("[data-width][data-height]");if(!t)return null;let a=Gd(t.getAttribute("data-width")),r=Gd(t.getAttribute("data-height"));return a!==null&&r!==null?{width:a,height:r}:null}var pO=class{constructor(e,t){te(this,"_iframe");te(this,"_callbacks");te(this,"_interval",null);te(this,"_runtimeInjected",!1);this._iframe=e,this._callbacks=t}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._runtimeInjected=!1;let e=0;this._interval=setInterval(()=>{e++;try{let t=this._iframe.contentWindow;if(!t)return;let a=!!(t.__hf||t.__player),r=!!(t.__timelines&&Object.keys(t.__timelines).length>0),n=!!this._iframe.contentDocument?.querySelector("[data-composition-src]");if(uO({hasRuntime:a,hasTimelines:r,hasNestedCompositions:n,runtimeInjected:this._runtimeInjected,attempts:e})){this._injectRuntime();return}if(this._runtimeInjected&&!a)return;let o=this._resolvePlaybackDurationAdapter(t);if(o&&o.getDuration()>0){this.stop();let i=fO(this._iframe.contentDocument);this._callbacks.onReady({duration:o.getDuration(),adapter:o,compositionSize:i});return}}catch{}e>=40&&(this.stop(),this._callbacks.onError("Composition timeline not found after 8s"))},200)}stop(){this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{let e=this._iframe.contentWindow;return e?this._resolveDirectTimelineAdapterFromWindow(e):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(e){return this._resolveDirectTimelineAdapterFromWindow(e)}hasRuntimeBridge(e){return Reflect.get(e,"__hf")!==void 0||Ud(Reflect.get(e,"__player"))}_injectRuntime(){this._runtimeInjected=!0;try{let e=this._iframe.contentDocument;if(!e)return;let t=e.createElement("script");t.src=dO,(e.head||e.documentElement).appendChild(t),this._callbacks.onRuntimeInjected?.()}catch{}}_resolveDirectTimelineAdapterFromWindow(e){if(this.hasRuntimeBridge(e))return null;let t=Reflect.get(e,"__timelines");if(!Ud(t))return null;let a=Object.keys(t);if(a.length===0)return null;let r=this._iframe.contentDocument?.querySelector("[data-composition-id]")?.getAttribute("data-composition-id"),n=r&&r in t?r:a[a.length-1],o=t[n];return cO(o)?o:null}_resolvePlaybackDurationAdapter(e){let t=Reflect.get(e,"__player");if(lO(t))return{kind:"runtime",getDuration:()=>t.getDuration()};let a=this._resolveDirectTimelineAdapterFromWindow(e);return a?{kind:"direct-timeline",timeline:a,getDuration:()=>a.duration()}:null}},mO=`
127
+ :host {
128
+ display: block;
129
+ position: relative;
130
+ overflow: hidden;
131
+ background: #000;
132
+ contain: layout style;
133
+ }
134
+
135
+ .hfp-container {
136
+ position: absolute;
137
+ inset: 0;
138
+ overflow: hidden;
139
+ pointer-events: none;
140
+ }
141
+
142
+
143
+ .hfp-iframe {
144
+ position: absolute;
145
+ top: 50%;
146
+ left: 50%;
147
+ border: none;
148
+ pointer-events: none;
149
+ }
150
+
151
+ /* Opt-in: an interactive composition (e.g. a live slideshow/app with playable
152
+ media or controls) \u2014 let pointer events reach the iframe content. */
153
+ :host([interactive]) .hfp-container,
154
+ :host([interactive]) .hfp-iframe {
155
+ pointer-events: auto;
156
+ }
157
+
158
+ .hfp-poster {
159
+ position: absolute;
160
+ inset: 0;
161
+ object-fit: contain;
162
+ z-index: 1;
163
+ pointer-events: none;
164
+ }
165
+
166
+ .hfp-shader-loader {
167
+ position: absolute;
168
+ inset: 0;
169
+ z-index: 20;
170
+ display: grid;
171
+ place-items: center;
172
+ visibility: hidden;
173
+ opacity: 0;
174
+ pointer-events: none;
175
+ background: #030504;
176
+ color: #f4f7fb;
177
+ cursor: default;
178
+ user-select: none;
179
+ -webkit-user-select: none;
180
+ transition: opacity 420ms ease-out, visibility 420ms ease-out;
181
+ }
182
+
183
+ .hfp-shader-loader.hfp-visible,
184
+ .hfp-shader-loader.hfp-hiding {
185
+ visibility: visible;
186
+ }
187
+
188
+ .hfp-shader-loader.hfp-visible {
189
+ opacity: 1;
190
+ pointer-events: auto;
191
+ }
192
+
193
+ .hfp-shader-loader.hfp-hiding {
194
+ opacity: 0;
195
+ pointer-events: none;
196
+ }
197
+
198
+ .hfp-shader-loader-panel {
199
+ display: grid;
200
+ grid-template-rows: 86px 40px 26px 12px 44px;
201
+ justify-items: center;
202
+ align-items: center;
203
+ gap: 8px;
204
+ width: min(620px, 82%);
205
+ text-align: center;
206
+ font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
207
+ }
208
+
209
+ .hfp-shader-loader-mark {
210
+ width: 86px;
211
+ height: 86px;
212
+ display: grid;
213
+ place-items: center;
214
+ overflow: visible;
215
+ }
216
+
217
+ .hfp-shader-loader-mark svg {
218
+ display: block;
219
+ overflow: visible;
220
+ filter: drop-shadow(0 0 5px rgba(79, 219, 94, 0.16));
221
+ pointer-events: none;
222
+ }
223
+
224
+ .hfp-shader-loader-title {
225
+ width: 100%;
226
+ height: 40px;
227
+ overflow: hidden;
228
+ white-space: nowrap;
229
+ text-overflow: ellipsis;
230
+ font-size: 26px;
231
+ line-height: 40px;
232
+ font-weight: 700;
233
+ letter-spacing: 0;
234
+ }
235
+
236
+ .hfp-shader-loader-title-text {
237
+ color: transparent;
238
+ background: linear-gradient(
239
+ 90deg,
240
+ rgba(244, 247, 251, 0.84) 0%,
241
+ #ffffff 42%,
242
+ #80efe4 52%,
243
+ #ffffff 62%,
244
+ rgba(244, 247, 251, 0.84) 100%
245
+ );
246
+ background-size: 220% 100%;
247
+ -webkit-background-clip: text;
248
+ background-clip: text;
249
+ animation: hfp-shader-loader-sheen 1.9s linear infinite;
250
+ }
251
+
252
+ .hfp-shader-loader-detail {
253
+ width: 100%;
254
+ height: 26px;
255
+ overflow: hidden;
256
+ white-space: nowrap;
257
+ text-overflow: ellipsis;
258
+ color: rgba(244, 247, 251, 0.62);
259
+ font-size: 15px;
260
+ line-height: 26px;
261
+ font-weight: 500;
262
+ }
263
+
264
+ .hfp-shader-loader-track {
265
+ width: min(360px, 100%);
266
+ height: 8px;
267
+ overflow: hidden;
268
+ border-radius: 999px;
269
+ background: rgba(255, 255, 255, 0.1);
270
+ }
271
+
272
+ .hfp-shader-loader-fill {
273
+ width: 100%;
274
+ height: 100%;
275
+ border-radius: inherit;
276
+ background: linear-gradient(90deg, #06e3fa, #4fdb5e);
277
+ transform: scaleX(0);
278
+ transform-origin: left center;
279
+ transition: transform 160ms ease;
280
+ }
281
+
282
+ .hfp-shader-loader-progress {
283
+ width: min(420px, 100%);
284
+ height: 44px;
285
+ display: grid;
286
+ grid-template-rows: repeat(2, 22px);
287
+ color: rgba(244, 247, 251, 0.48);
288
+ font: 600 13px/22px "IBM Plex Mono", "SF Mono", "Fira Code", "Courier New", monospace;
289
+ font-variant-numeric: tabular-nums;
290
+ }
291
+
292
+ .hfp-shader-loader-row {
293
+ display: grid;
294
+ grid-template-columns: minmax(0, 1fr) 74px;
295
+ align-items: center;
296
+ column-gap: 20px;
297
+ width: 100%;
298
+ white-space: nowrap;
299
+ }
300
+
301
+ .hfp-shader-loader-label {
302
+ min-width: 0;
303
+ overflow: hidden;
304
+ text-align: left;
305
+ text-overflow: ellipsis;
306
+ }
307
+
308
+ .hfp-shader-loader-value {
309
+ text-align: right;
310
+ }
311
+
312
+ @keyframes hfp-shader-loader-sheen {
313
+ from {
314
+ background-position: 140% 0;
315
+ }
316
+ to {
317
+ background-position: -140% 0;
318
+ }
319
+ }
320
+
321
+ /* \u2500\u2500 Theming via CSS custom properties \u2500\u2500
322
+ *
323
+ * Override from outside the shadow DOM:
324
+ * hyperframes-player {
325
+ * --hfp-controls-bg: linear-gradient(transparent, rgba(0,0,0,0.9));
326
+ * --hfp-accent: #ff6b6b;
327
+ * --hfp-font: "Inter", sans-serif;
328
+ * }
329
+ */
330
+
331
+ .hfp-controls {
332
+ position: absolute;
333
+ bottom: 0;
334
+ left: 0;
335
+ right: 0;
336
+ display: flex;
337
+ align-items: center;
338
+ gap: var(--hfp-controls-gap, 12px);
339
+ padding: var(--hfp-controls-padding, 8px 16px);
340
+ background: var(--hfp-controls-bg, linear-gradient(transparent, rgba(0, 0, 0, 0.7)));
341
+ color: var(--hfp-color, #fff);
342
+ font-family: var(--hfp-font, system-ui, -apple-system, sans-serif);
343
+ font-size: var(--hfp-font-size, 13px);
344
+ z-index: 10;
345
+ pointer-events: auto;
346
+ opacity: 1;
347
+ transition: opacity 0.3s ease;
348
+ user-select: none;
349
+ }
350
+
351
+ .hfp-controls.hfp-hidden {
352
+ opacity: 0;
353
+ pointer-events: none;
354
+ }
355
+
356
+ .hfp-play-btn {
357
+ position: relative;
358
+ background: none;
359
+ border: none;
360
+ color: var(--hfp-color, #fff);
361
+ cursor: pointer;
362
+ padding: 8px;
363
+ display: flex;
364
+ align-items: center;
365
+ justify-content: center;
366
+ width: 40px;
367
+ height: 40px;
368
+ flex-shrink: 0;
369
+ z-index: 10;
370
+ }
371
+
372
+ .hfp-play-btn:hover {
373
+ opacity: 0.8;
374
+ }
375
+
376
+ /* Stacked play/pause glyphs that crossfade-morph on toggle (rotate + scale). */
377
+ .hfp-play-btn .hfp-ico {
378
+ position: absolute;
379
+ display: flex;
380
+ align-items: center;
381
+ justify-content: center;
382
+ transition:
383
+ opacity 200ms ease,
384
+ transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
385
+ }
386
+ .hfp-play-btn .hfp-ico-play {
387
+ opacity: 1;
388
+ transform: rotate(0) scale(1);
389
+ }
390
+ .hfp-play-btn .hfp-ico-pause {
391
+ opacity: 0;
392
+ transform: rotate(-90deg) scale(0.4);
393
+ }
394
+ .hfp-play-btn.hfp-playing .hfp-ico-play {
395
+ opacity: 0;
396
+ transform: rotate(90deg) scale(0.4);
397
+ }
398
+ .hfp-play-btn.hfp-playing .hfp-ico-pause {
399
+ opacity: 1;
400
+ transform: rotate(0) scale(1);
401
+ }
402
+ @media (prefers-reduced-motion: reduce) {
403
+ .hfp-play-btn .hfp-ico {
404
+ transition-duration: 0ms;
405
+ transform: none;
406
+ }
407
+ }
408
+
409
+ .hfp-play-btn svg,
410
+ .hfp-play-btn svg * {
411
+ pointer-events: none;
412
+ }
413
+
414
+ .hfp-scrubber {
415
+ flex: 1;
416
+ min-width: 0;
417
+ height: var(--hfp-scrubber-height, 4px);
418
+ background: var(--hfp-scrubber-bg, rgba(255, 255, 255, 0.3));
419
+ border-radius: var(--hfp-scrubber-radius, 2px);
420
+ cursor: pointer;
421
+ position: relative;
422
+ overflow: hidden;
423
+ }
424
+
425
+ .hfp-scrubber:hover {
426
+ height: var(--hfp-scrubber-height-hover, 6px);
427
+ }
428
+
429
+ .hfp-progress {
430
+ position: absolute;
431
+ top: 0;
432
+ left: 0;
433
+ height: 100%;
434
+ background: var(--hfp-accent, #fff);
435
+ pointer-events: none;
436
+ }
437
+
438
+ .hfp-time {
439
+ flex-shrink: 0;
440
+ font-variant-numeric: tabular-nums;
441
+ opacity: 0.9;
442
+ }
443
+
444
+ .hfp-speed-wrap {
445
+ position: relative;
446
+ flex-shrink: 0;
447
+ }
448
+
449
+ .hfp-speed-btn {
450
+ background: var(--hfp-speed-btn-bg, rgba(255, 255, 255, 0.15));
451
+ border: none;
452
+ border-radius: var(--hfp-speed-btn-radius, 4px);
453
+ color: var(--hfp-color, #fff);
454
+ cursor: pointer;
455
+ font-family: var(--hfp-font, system-ui, -apple-system, sans-serif);
456
+ font-size: 12px;
457
+ font-variant-numeric: tabular-nums;
458
+ font-weight: 600;
459
+ padding: 4px 8px;
460
+ min-width: 40px;
461
+ text-align: center;
462
+ transition: background 0.15s ease;
463
+ }
464
+
465
+ .hfp-speed-btn:hover {
466
+ background: var(--hfp-speed-btn-bg-hover, rgba(255, 255, 255, 0.3));
467
+ }
468
+
469
+ .hfp-speed-menu {
470
+ position: absolute;
471
+ bottom: calc(100% + 8px);
472
+ right: 0;
473
+ background: var(--hfp-menu-bg, rgba(20, 20, 20, 0.95));
474
+ backdrop-filter: blur(12px);
475
+ -webkit-backdrop-filter: blur(12px);
476
+ border: 1px solid var(--hfp-menu-border, rgba(255, 255, 255, 0.1));
477
+ border-radius: var(--hfp-menu-radius, 8px);
478
+ padding: 4px;
479
+ display: flex;
480
+ flex-direction: column;
481
+ gap: 2px;
482
+ min-width: 80px;
483
+ opacity: 0;
484
+ visibility: hidden;
485
+ transform: translateY(4px);
486
+ transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
487
+ box-shadow: var(--hfp-menu-shadow, 0 8px 24px rgba(0, 0, 0, 0.4));
488
+ }
489
+
490
+ .hfp-speed-menu.hfp-open {
491
+ opacity: 1;
492
+ visibility: visible;
493
+ transform: translateY(0);
494
+ }
495
+
496
+ .hfp-speed-option {
497
+ background: none;
498
+ border: none;
499
+ border-radius: 4px;
500
+ color: var(--hfp-menu-color, rgba(255, 255, 255, 0.7));
501
+ cursor: pointer;
502
+ font-family: var(--hfp-font, system-ui, -apple-system, sans-serif);
503
+ font-size: 13px;
504
+ font-variant-numeric: tabular-nums;
505
+ padding: 6px 12px;
506
+ text-align: left;
507
+ transition: background 0.1s ease, color 0.1s ease;
508
+ white-space: nowrap;
509
+ }
510
+
511
+ .hfp-speed-option:hover {
512
+ background: var(--hfp-menu-hover-bg, rgba(255, 255, 255, 0.1));
513
+ color: var(--hfp-color, #fff);
514
+ }
515
+
516
+ .hfp-speed-option.hfp-active {
517
+ color: var(--hfp-accent, #fff);
518
+ font-weight: 600;
519
+ }
520
+
521
+ .hfp-volume-wrap {
522
+ position: relative;
523
+ flex-shrink: 0;
524
+ display: flex;
525
+ align-items: center;
526
+ gap: 0;
527
+ }
528
+
529
+ .hfp-mute-btn {
530
+ background: none;
531
+ border: none;
532
+ color: var(--hfp-color, #fff);
533
+ cursor: pointer;
534
+ padding: 4px;
535
+ display: flex;
536
+ align-items: center;
537
+ justify-content: center;
538
+ width: 32px;
539
+ height: 32px;
540
+ flex-shrink: 0;
541
+ }
542
+
543
+ .hfp-mute-btn:hover {
544
+ opacity: 0.8;
545
+ }
546
+
547
+ .hfp-mute-btn svg,
548
+ .hfp-mute-btn svg * {
549
+ pointer-events: none;
550
+ }
551
+
552
+ .hfp-volume-slider-wrap {
553
+ width: 0;
554
+ overflow: hidden;
555
+ transition: width 0.2s ease;
556
+ display: flex;
557
+ align-items: center;
558
+ }
559
+
560
+ .hfp-volume-wrap:hover .hfp-volume-slider-wrap {
561
+ width: 64px;
562
+ }
563
+
564
+ .hfp-volume-slider {
565
+ width: 56px;
566
+ height: var(--hfp-scrubber-height, 4px);
567
+ background: var(--hfp-scrubber-bg, rgba(255, 255, 255, 0.3));
568
+ border-radius: var(--hfp-scrubber-radius, 2px);
569
+ cursor: pointer;
570
+ position: relative;
571
+ overflow: hidden;
572
+ margin-left: 4px;
573
+ margin-right: 4px;
574
+ }
575
+
576
+ .hfp-volume-fill {
577
+ position: absolute;
578
+ top: 0;
579
+ left: 0;
580
+ height: 100%;
581
+ background: var(--hfp-accent, #fff);
582
+ pointer-events: none;
583
+ }
584
+ `,hO='<svg width="24" height="24" viewBox="46 21 54 56" fill="currentColor"><path d="M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z"/></svg>',gO='<svg width="24" height="24" viewBox="0 0 18 18" fill="currentColor"><rect x="3" y="2" width="4" height="14"/><rect x="11" y="2" width="4" height="14"/></svg>',mC='<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M3 9v6h4l5 5V4L7 9H3z"/><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"/><path d="M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>',hC='<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M3 9v6h4l5 5V4L7 9H3z"/><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"/></svg>',bO='<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M3 9v6h4l5 5V4L7 9H3z"/><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z" opacity="0.3"/><line x1="18" y1="7" x2="14" y2="17" stroke="currentColor" stroke-width="2"/></svg>',xO=[.25,.5,1,1.5,2,4];function i0(e){return Number.isInteger(e)?`${e}x`:`${e}x`}function gC(e){if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),a=Math.floor(t/60),r=t%60;return`${a}:${r.toString().padStart(2,"0")}`}function vO(e,t,a={}){let r=a.speedPresets??xO,n=document.createElement("div");n.className="hfp-controls",n.addEventListener("click",B=>{B.stopPropagation()});let o=document.createElement("button");o.className="hfp-play-btn",o.type="button",o.innerHTML=`<span class="hfp-ico hfp-ico-play">${hO}</span><span class="hfp-ico hfp-ico-pause">${gO}</span>`,o.setAttribute("aria-label","Play");let i=document.createElement("div");i.className="hfp-scrubber";let s=document.createElement("div");s.className="hfp-progress",s.style.width="0%",i.appendChild(s);let u=document.createElement("span");u.className="hfp-time",u.textContent="0:00 / 0:00";let l=document.createElement("div");l.className="hfp-speed-wrap";let c=document.createElement("button");c.className="hfp-speed-btn",c.type="button",c.textContent="1x",c.setAttribute("aria-label","Playback speed");let d=document.createElement("div");d.className="hfp-speed-menu",d.setAttribute("role","menu");for(let B of r){let F=document.createElement("button");F.className="hfp-speed-option",F.type="button",F.setAttribute("role","menuitem"),F.dataset.speed=String(B),F.textContent=i0(B),B===1&&F.classList.add("hfp-active"),d.appendChild(F)}l.appendChild(d),l.appendChild(c);let f=document.createElement("div");f.className="hfp-volume-wrap";let p=document.createElement("button");p.className="hfp-mute-btn",p.type="button",p.innerHTML=mC,p.setAttribute("aria-label","Mute");let g=document.createElement("div");g.className="hfp-volume-slider-wrap";let m=document.createElement("div");m.className="hfp-volume-slider",m.setAttribute("role","slider"),m.setAttribute("aria-label","Volume"),m.setAttribute("aria-valuemin","0"),m.setAttribute("aria-valuemax","100"),m.setAttribute("aria-valuenow","100"),m.tabIndex=0;let x=document.createElement("div");x.className="hfp-volume-fill",x.style.width="100%",m.appendChild(x),g.appendChild(m),f.appendChild(g),f.appendChild(p),a.audioLocked&&(f.style.display="none"),n.appendChild(o),n.appendChild(i),n.appendChild(u),n.appendChild(f),n.appendChild(l),e.appendChild(n);let v=!1,w=!1,y=1,S=null,A=r.indexOf(1);A===-1&&(A=0);let L=(B,F)=>B?bO:F===0||F<.5?hC:mC;o.addEventListener("click",B=>{B.stopPropagation(),v?t.onPause():t.onPlay()}),p.addEventListener("click",B=>{B.stopPropagation(),t.onMuteToggle()});let C=!1,I=B=>{let F=m.getBoundingClientRect(),ge=Math.max(0,Math.min(1,(B-F.left)/F.width));y=ge,x.style.width=`${ge*100}%`,m.setAttribute("aria-valuenow",String(Math.round(ge*100))),w&&ge>0&&t.onMuteToggle(),p.innerHTML=L(w,ge),t.onVolumeChange(ge)};m.addEventListener("mousedown",B=>{B.stopPropagation(),C=!0,I(B.clientX)});let D=B=>{C&&I(B.clientX)},Z=()=>{C=!1};document.addEventListener("mousemove",D),document.addEventListener("mouseup",Z),m.addEventListener("touchstart",B=>{C=!0;let F=B.touches[0];F&&I(F.clientX)},{passive:!0});let N=B=>{if(C){let F=B.touches[0];F&&I(F.clientX)}},V=()=>{C=!1};document.addEventListener("touchmove",N,{passive:!0}),document.addEventListener("touchend",V);let J=.05;m.addEventListener("keydown",B=>{let F=y;if(B.key==="ArrowRight"||B.key==="ArrowUp")F=Math.min(1,y+J);else if(B.key==="ArrowLeft"||B.key==="ArrowDown")F=Math.max(0,y-J);else return;B.preventDefault(),B.stopPropagation(),y=F,x.style.width=`${F*100}%`,m.setAttribute("aria-valuenow",String(Math.round(F*100))),w&&F>0&&t.onMuteToggle(),p.innerHTML=L(w,F),t.onVolumeChange(F)});let ee=B=>{for(let F of d.querySelectorAll(".hfp-speed-option"))F.classList.toggle("hfp-active",F.dataset.speed===String(B))};c.addEventListener("click",B=>{B.stopPropagation();let F=d.classList.toggle("hfp-open");c.setAttribute("aria-expanded",String(F))}),d.addEventListener("click",B=>{B.stopPropagation();let F=B.target.closest(".hfp-speed-option");if(!F)return;let ge=parseFloat(F.dataset.speed);A=r.indexOf(ge),c.textContent=i0(ge),ee(ge),d.classList.remove("hfp-open"),c.setAttribute("aria-expanded","false"),t.onSpeedChange(ge)});let T=()=>{d.classList.remove("hfp-open"),c.setAttribute("aria-expanded","false")};document.addEventListener("click",T);let _=B=>{let F=i.getBoundingClientRect(),ge=Math.max(0,Math.min(1,(B-F.left)/F.width));t.onSeek(ge)},Q=!1;i.addEventListener("mousedown",B=>{B.stopPropagation(),Q=!0,t.onScrubStart?.(),_(B.clientX)});let q=B=>{Q&&_(B.clientX)},pe=()=>{Q&&(Q=!1,t.onScrubEnd?.())};document.addEventListener("mousemove",q),document.addEventListener("mouseup",pe),i.addEventListener("touchstart",B=>{Q=!0,t.onScrubStart?.();let F=B.touches[0];F&&_(F.clientX)},{passive:!0});let W=B=>{if(Q){let F=B.touches[0];F&&_(F.clientX)}},M=()=>{Q&&(Q=!1,t.onScrubEnd?.())};document.addEventListener("touchmove",W,{passive:!0}),document.addEventListener("touchend",M);let j=()=>{S&&clearTimeout(S),S=setTimeout(()=>{v&&n.classList.add("hfp-hidden")},3e3)},ce=e instanceof ShadowRoot?e.host:e,Me=()=>{n.classList.remove("hfp-hidden"),j()},Se=()=>{v&&n.classList.add("hfp-hidden")};return ce.addEventListener("mousemove",Me),ce.addEventListener("mouseleave",Se),{updateTime(B,F){let ge=F>0?Math.min(B,F):B,Le=F>0?ge/F*100:0;s.style.width=`${Le}%`,u.textContent=`${gC(ge)} / ${gC(F)}`},updatePlaying(B){v=B,o.classList.toggle("hfp-playing",B),o.setAttribute("aria-label",B?"Pause":"Play"),B?j():n.classList.remove("hfp-hidden")},updateSpeed(B){let F=r.indexOf(B);F!==-1&&(A=F),c.textContent=i0(B),ee(B)},updateMuted(B){w=B,p.innerHTML=L(B,y),p.setAttribute("aria-label",B?"Unmute":"Mute")},updateVolume(B){y=B,x.style.width=`${B*100}%`,m.setAttribute("aria-valuenow",String(Math.round(B*100))),p.innerHTML=L(w,B)},setVolumeControlsHidden(B){f.style.display=B?"none":""},show(){n.style.display=""},hide(){n.style.display="none"},destroy(){document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",pe),document.removeEventListener("touchmove",W),document.removeEventListener("touchend",M),document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",Z),document.removeEventListener("touchmove",N),document.removeEventListener("touchend",V),document.removeEventListener("click",T),ce.removeEventListener("mousemove",Me),ce.removeEventListener("mouseleave",Se),S&&clearTimeout(S),n.remove()}}}function yO(e,t,a,r,n,o=!1){let i=r?r.split(",").map(Number).filter(l=>!isNaN(l)&&l>0):void 0,s={...i?{speedPresets:i}:{},audioLocked:o},u=vO(e,n,s);return u.updateMuted(t),u.updateVolume(a),u}function bC(e,t,a){return t?(a||(a=document.createElement("img"),a.className="hfp-poster",e.appendChild(a)),a.src=t,a):(a?.remove(),null)}function AO(e){return e.composedPath().some(t=>t instanceof HTMLElement&&t.classList.contains("hfp-controls"))}var zd=null;function wO(e,t){if(typeof CSSStyleSheet<"u")try{zd||(zd=new CSSStyleSheet,zd.replaceSync(t)),e.adoptedStyleSheets=[zd];return}catch{}let a=document.createElement("style");a.textContent=t,e.appendChild(a)}function SO(){let e=document.createElement("div");e.className="hfp-container";let t=document.createElement("iframe");return t.className="hfp-iframe",t.sandbox.add("allow-scripts","allow-same-origin"),t.allow="autoplay; fullscreen",t.referrerPolicy="no-referrer",t.title="HyperFrames Composition",e.appendChild(t),{container:e,iframe:t}}function CO(e,t,a,r){let n=e.offsetWidth,o=e.offsetHeight;if(n===0||o===0)return!1;let i=Math.min(n/a,o/r);return t.style.width=`${a}px`,t.style.height=`${r}px`,t.style.transform=`translate(-50%, -50%) scale(${i})`,!0}var IO=class{constructor(e){te(this,"_callbacks");te(this,"_raf",null);te(this,"_lastUpdateMs",0);this._callbacks=e}start(e,t,a,r){this.stop();let n=()=>{if(r()){this._raf=null;return}let o;try{o=e.time()}catch{this._raf=null;return}let i=a();i>0&&(o=Math.min(o,i));let s=i>0&&o>=i,u=performance.now();if((u-this._lastUpdateMs>100||s)&&(this._lastUpdateMs=u,this._callbacks.onTimeUpdate(o,i)),s){if(this._callbacks.getLoop()){this._callbacks.restart();return}try{e.pause()}catch{}this._callbacks.onPaused(),this._raf=null;return}this._raf=requestAnimationFrame(n)};this._raf=requestAnimationFrame(n)}stop(){this._raf!==null&&(cancelAnimationFrame(this._raf),this._raf=null)}get isRunning(){return this._raf!==null}};function kO(e){let t=Array.from(e.querySelectorAll("[data-composition-id]"));if(t.length===0)return e.body?[e.body]:[];let a=[];for(let r of t)EO(r)||a.push(r);return LO(e),a}function LO(e){let t=e.body;if(!t||typeof console>"u"||typeof console.warn!="function")return;let a=t.querySelectorAll("audio[data-start], video[data-start]");if(a.length===0)return;let r=[];for(let n of a)n.closest("[data-composition-id]")||r.push(n);r.length!==0&&console.warn(`[hyperframes-player] selectMediaObserverTargets: composition hosts are present, but ${r.length} body-level timed media element(s) sit outside every [data-composition-id] subtree and will not be observed. Move them inside a composition host or the parent-frame proxy will never adopt them.`,r)}function EO(e){let t=e.parentElement;for(;t;){if(t.hasAttribute("data-composition-id"))return!0;t=t.parentElement}return!1}function c0(e){let t=e.ownerDocument?.defaultView;return t&&e instanceof t.Element?!0:e instanceof Element}function In(e){if(!c0(e)||e.tagName!=="AUDIO"&&e.tagName!=="VIDEO")return!1;let t=e.ownerDocument?.defaultView;return t&&e instanceof t.HTMLMediaElement?!0:e instanceof HTMLMediaElement}var ut=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Wq=Object.freeze([ut.start,ut.duration,ut.trackIndex]),jq=Object.freeze([ut.derivedEnd]),qq=Object.freeze([ut.derivedEnd,ut.legacyTrack]);function ys(e){if(e==null||e.trim()==="")return null;let t=Number(e);return Number.isFinite(t)?t:null}var wC=/^[A-Za-z0-9_.:-]+$/;function SC(e,t){let a=e.charCodeAt(t);return a>=48&&a<=57}function xC(e,t){let a=t;for(;a>=0&&SC(e,a);)a--;return a}function TO(e,t){let a=t;for(;a>=0&&(e[a]??"").trim()==="";)a--;return a}function RO(e){let t=e.length-1;if(!SC(e,t))return null;let a=xC(e,t);return e[a]==="."&&(a=xC(e,a-1)),a+1}function PO(e){let t=RO(e);if(t==null)return null;let a=TO(e,t-1),r=e[a];if(r!=="+"&&r!=="-")return null;let n=e.slice(0,a).trim();if(!wC.test(n))return null;let o=Number(e.slice(t));return Number.isFinite(o)?{refId:n,operator:r,magnitude:o}:null}function NO(e){let t=(e??"").trim();if(!t)return null;let a=ys(t);if(a!=null)return{kind:"absolute",value:a};if(wC.test(t))return{kind:"reference",refId:t,offset:0};let r=PO(t);return r?{kind:"reference",refId:r.refId,offset:r.operator==="-"?-r.magnitude:r.magnitude}:null}function Ga(e,t,a,r){e.push({code:t,attribute:a,value:r})}function MO(e,t,a,r){if(t==null||t.trim()==="")return a.defaultStart===void 0?0:a.defaultStart;if(!e)return Ga(r,"invalid-start",ut.start,t),null;if(e.kind==="absolute")return Math.max(0,e.value);let n=a.resolveReferenceEnd?.(e.refId);return n==null||!Number.isFinite(n)?(Ga(r,"unresolved-start-reference",ut.start,t),null):Math.max(0,n+e.offset)}function DO(e,t,a){Ga(a,"deprecated-end",ut.derivedEnd,e);let r=ys(e);r==null?Ga(a,"invalid-end",ut.derivedEnd,e):t!=null&&r!==t&&Ga(a,"conflicting-end",ut.derivedEnd,e)}function OO(e,t,a){let r=ys(e);return r==null||r<0?(Ga(a,"invalid-duration",ut.duration,e),{duration:null,end:null,durationSource:"invalid"}):{duration:r,end:t==null?null:t+r,durationSource:"duration"}}function _O(e,t,a){Ga(a,"deprecated-end",ut.derivedEnd,e);let r=ys(e);return r==null?(Ga(a,"invalid-end",ut.derivedEnd,e),{duration:null,end:null,durationSource:"invalid"}):t==null?{duration:null,end:r,durationSource:"legacy-end"}:r<t?(Ga(a,"end-before-start",ut.derivedEnd,e),{duration:null,end:null,durationSource:"invalid"}):{duration:r-t,end:r,durationSource:"legacy-end"}}function BO(e,t,a){let r=e.getAttribute(ut.duration),n=e.getAttribute(ut.derivedEnd);if(r==null)return n==null?{duration:null,end:null,durationSource:"missing"}:_O(n,t,a);let o=OO(r,t,a);return n!=null&&DO(n,o.end,a),o}function vC(e,t,a,r){let n=ys(e);return n==null||!Number.isInteger(n)?(Ga(r,"invalid-track-index",t,e),{trackIndex:0,trackSource:"invalid"}):{trackIndex:n,trackSource:a}}function FO(e,t){let a=e.getAttribute(ut.trackIndex),r=e.getAttribute(ut.legacyTrack);if(a==null&&r==null)return{trackIndex:0,trackSource:"default"};if(a==null&&r!=null)return Ga(t,"deprecated-layer",ut.legacyTrack,r),vC(r,ut.legacyTrack,"legacy-layer",t);let n=vC(a??"",ut.trackIndex,"track-index",t);if(r==null)return n;Ga(t,"deprecated-layer",ut.legacyTrack,r);let o=ys(r);return o!=null&&o!==n.trackIndex&&Ga(t,"conflicting-layer",ut.legacyTrack,r),n}function yC(e,t={}){let a=[],r=e.getAttribute(ut.start),n=NO(r),o=MO(n,r,t,a),i=BO(e,o,a),s=FO(e,a);return{startExpression:n,start:o,...i,...s,diagnostics:a}}var HO=.05,zO=2,VO=class{constructor(e){te(this,"_entries",[]);te(this,"_mediaObserver");te(this,"_playbackErrorPosted",!1);te(this,"_audioOwner","runtime");te(this,"_urlAudioEntry",null);te(this,"_urlAudioSrc",null);te(this,"_dispatchEvent");te(this,"_getMuted");te(this,"_getVolume");te(this,"_getPlaybackRate");te(this,"_getCurrentTime");te(this,"_isPaused");this._dispatchEvent=e.dispatchEvent,this._getMuted=e.getMuted,this._getVolume=e.getVolume,this._getPlaybackRate=e.getPlaybackRate,this._getCurrentTime=e.getCurrentTime,this._isPaused=e.isPaused}get audioOwner(){return this._audioOwner}get entries(){return this._entries}resetForIframeLoad(){this._playbackErrorPosted=!1;let e=this._audioOwner==="parent";this._audioOwner="runtime",this.pauseAll(),this.teardownObserver(),e&&this._dispatchEvent(new CustomEvent("audioownershipchange",{detail:{owner:"runtime",reason:"iframe-reload"}}))}destroy(){this.teardownObserver();for(let e of this._entries)e.el.pause(),e.el.src="";this._entries=[],this._urlAudioEntry=null,this._urlAudioSrc=null,this._audioOwner="runtime",this._playbackErrorPosted=!1}updateMuted(e){for(let t of this._entries)t.el.muted=e}updateVolume(e){for(let t of this._entries)t.el.volume=e}updatePlaybackRate(e){for(let t of this._entries)t.el.playbackRate=e}_playEntry(e){e.el.src&&e.el.play().catch(t=>this._reportPlaybackError(t))}_playEntryIfActive(e){this._refreshEntryBounds(e);let t=this._getCurrentTime()-e.start;t<0||t>=e.duration||this._playEntry(e)}_refreshEntryBounds(e){if(!e.source?.isConnected)return;let t=yC(e.source);e.start=t.start??0,e.duration=t.duration!=null&&t.duration>0?t.duration:Number.POSITIVE_INFINITY}_gateEntryPlayback(e,t){return t<0||t>=e.duration?(e.el.paused||e.el.pause(),e.driftSamples=0,!1):(this._audioOwner==="parent"&&!this._isPaused()&&e.el.paused&&this._playEntry(e),!0)}playAll(){for(let e of this._entries)this._playEntryIfActive(e)}pauseAll(){for(let e of this._entries)e.el.pause()}stopAdoptedMedia(){for(let e of this._entries)e.source&&e.el.pause()}seekAll(e){for(let t of this._entries){this._refreshEntryBounds(t);let a=e-t.start;a>=0&&a<t.duration&&(t.el.currentTime=a)}}scrubAll(e){for(let t of this._entries){this._refreshEntryBounds(t);let a=e-t.start;a>=0&&a<t.duration?(t.el.currentTime=a,this._playEntry(t)):t.el.paused||t.el.pause()}}mirrorTime(e,t){let a=t?.force===!0;for(let r of this._entries){this._refreshEntryBounds(r);let n=e-r.start;this._gateEntryPlayback(r,n)&&(Math.abs(r.el.currentTime-n)>HO?(r.driftSamples+=1,(a||r.driftSamples>=zO)&&(r.el.currentTime=n,r.driftSamples=0)):r.driftSamples=0)}}promoteToParentProxy(e,t){if(this._audioOwner==="parent")return;if(this._audioOwner="parent",e)for(let r of e.querySelectorAll("video, audio"))In(r)&&(r.muted=!0);let a=this._getCurrentTime();t?t(a,{force:!0}):this.mirrorTime(a,{force:!0}),this._isPaused()||this.playAll(),this._dispatchEvent(new CustomEvent("audioownershipchange",{detail:{owner:"parent",reason:"autoplay-blocked"}}))}setupFromIframe(e){let t=e.querySelectorAll("audio[data-start], video[data-start]");for(let a of t)In(a)&&this._adoptIframeMedia(a);this._observeDynamicMedia(e)}setupFromUrl(e){if(this._urlAudioSrc===e&&this._urlAudioEntry)return;this.teardownUrlAudio();let t=this._createEntry(e,"audio",0,1/0);this._urlAudioEntry=t,this._urlAudioSrc=t?e:null,t&&this._audioOwner==="parent"&&!this._isPaused()&&(this.mirrorTime(this._getCurrentTime(),{force:!0}),this.playAll())}teardownUrlAudio(){let e=this._urlAudioEntry;if(this._urlAudioEntry=null,this._urlAudioSrc=null,!e)return;e.el.pause(),e.el.src="";let t=this._entries.indexOf(e);t!==-1&&this._entries.splice(t,1)}teardownObserver(){this._mediaObserver?.disconnect(),this._mediaObserver=void 0}_reportPlaybackError(e){this._playbackErrorPosted||(this._playbackErrorPosted=!0,this._dispatchEvent(new CustomEvent("playbackerror",{detail:{source:"parent-proxy",error:e}})))}_createEntry(e,t,a,r,n){if(this._entries.some(u=>u.el.src===e))return null;let o=t==="video"?document.createElement("video"):new Audio;o.preload="auto",o.src=e,o.load(),o.muted=this._getMuted(),o.volume=this._getVolume();let i=this._getPlaybackRate();i!==1&&(o.playbackRate=i);let s={el:o,start:a,duration:r,driftSamples:0,source:n};return this._entries.push(s),s}_resolveIframeMediaSrc(e){let t=e.getAttribute("src")||e.querySelector("source")?.getAttribute("src");return t?new URL(t,e.ownerDocument.baseURI).href:null}_adoptIframeMedia(e){if(e.preload==="metadata"||e.preload==="none")return;let t=this._resolveIframeMediaSrc(e);if(!t)return;let a=yC(e),r=a.start??0,n=a.duration??Number.POSITIVE_INFINITY,o=e.tagName==="VIDEO"?"video":"audio",i=this._createEntry(t,o,r,n,e);i&&this._audioOwner==="parent"&&(this.mirrorTime(this._getCurrentTime(),{force:!0}),this._isPaused()||this._playEntryIfActive(i))}_detachIframeMedia(e){let t=this._resolveIframeMediaSrc(e);if(!t)return;let a=this._entries.findIndex(n=>n.el.src===t);if(a===-1)return;let r=this._entries[a];r.el.pause(),r.el.src="",this._entries.splice(a,1)}_observeDynamicMedia(e){if(this.teardownObserver(),typeof MutationObserver>"u"||!e.body)return;let t=new MutationObserver(n=>{for(let o of n){if(o.type==="attributes"&&o.attributeName==="preload"){let i=o.target;In(i)&&i.matches("audio[data-start], video[data-start]")&&i.preload==="auto"&&this._adoptIframeMedia(i);continue}for(let i of o.addedNodes){if(!c0(i))continue;let s=[];In(i)&&i.matches("audio[data-start], video[data-start]")&&s.push(i);let u=i.querySelectorAll("audio[data-start], video[data-start]");for(let l of u)In(l)&&s.push(l);for(let l of s)this._adoptIframeMedia(l)}for(let i of o.removedNodes){if(!c0(i))continue;let s=[];In(i)&&i.matches("audio[data-start], video[data-start]")&&s.push(i);let u=i.querySelectorAll("audio[data-start], video[data-start]");for(let l of u)In(l)&&s.push(l);for(let l of s)this._detachIframeMedia(l)}}}),a={childList:!0,subtree:!0,attributes:!0,attributeFilter:["preload"]},r=kO(e);for(let n of r)t.observe(n,a);this._mediaObserver=t}};function UO(e,t,a,r){let n=(e.frame??0)/t,o=a.duration>0?Math.min(n,a.duration):n,i=!a.paused,s=!e.isPlaying,u=a.duration>0&&o>=a.duration&&(i||e.isPlaying);if(u&&r.getLoop())return r.media.audioOwner==="parent"&&r.media.pauseAll(),r.seek(0),r.play(),{...a,currentTime:o,paused:!1};let l={...a,currentTime:o,paused:s};r.media.audioOwner==="parent"&&(i&&s?r.media.pauseAll():!i&&!s&&r.media.playAll(),r.media.mirrorTime(o));let c=performance.now(),d=s!==a.paused;return(c-a.lastUpdateMs>100||d)&&(l.lastUpdateMs=c,r.updateControlsTime(o,a.duration),r.updateControlsPlaying(!s),r.dispatchEvent(new CustomEvent("timeupdate",{detail:{currentTime:o}}))),u&&(r.media.audioOwner==="parent"&&r.media.pauseAll(),l.paused=!0,r.updateControlsPlaying(!1),r.dispatchEvent(new Event("ended"))),l}var GO=["seconds-time","rational-fps","seek-keep-playing","composition-manifest-v1"];function WO(e,t){let a=Math.abs(e),r=Math.abs(t);for(;r!==0;){let n=a%r;a=r,r=n}return a||1}function jO(e){let t=Number.isFinite(e)&&e>0?e:30,a=Number.isInteger(t)?1:1e6,r=Math.round(t*a),n=WO(r,a);return{numerator:r/n,denominator:a/n}}function qO(e){if(typeof e!="object"||e===null)return null;let t=e;return!Number.isFinite(t.numerator)||!Number.isFinite(t.denominator)||(t.numerator??0)<=0||(t.denominator??0)<=0?null:Number(t.numerator)/Number(t.denominator)}function KO(e){return{protocolVersion:1,capabilities:GO,fps:jO(e)}}function QO(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function YO(e,t=30){if(typeof e!="object"||e===null)return{status:"legacy",fps:t};let a=e;if(a.protocolVersion===void 0)return{status:"legacy",fps:t};if(a.protocolVersion!==1)return{status:"unsupported",code:"unsupported_protocol_version",receivedVersion:a.protocolVersion};let r=qO(a.fps);return r===null||!QO(a.capabilities)?{status:"unsupported",code:"invalid_protocol_metadata",receivedVersion:a.protocolVersion}:{status:"supported",fps:r,metadata:a}}function JO(e){return Array.isArray(e)?e.filter(t=>typeof t=="object"&&t!==null&&typeof t.id=="string"&&typeof t.start=="number"&&typeof t.duration=="number"):[]}function $O(e,t,a){if(e.source!==t)return;let r=e.data;if(!r||r.source!=="hf-preview")return;let n=YO(r);if(n.status==="unsupported"){a.dispatchEvent(new CustomEvent("runtimeprotocolerror",{detail:{code:n.code,receivedVersion:n.receivedVersion}}));return}if(a.setRuntimeFps?.(n.fps),r.type==="shader-transition-state"){let o=r.state&&typeof r.state=="object"?r.state:{};a.shaderLoader.update(o,a.getShaderLoadingMode()),a.dispatchEvent(new CustomEvent("shadertransitionstate",{detail:{compositionId:r.compositionId,state:o}}));return}if(r.type==="ready"){a.onRuntimeReady();return}if(r.type==="state"){a.setPlaybackState(UO({frame:r.frame??0,isPlaying:!!r.isPlaying},n.fps,a.getPlaybackState(),a));return}if(r.type==="media-autoplay-blocked"){if(a.shouldPromoteMediaAutoplayFallback?.()===!1)return;let o=null;try{o=a.getIframeDoc()}catch{}a.media.promoteToParentProxy(o,(i,s)=>a.media.mirrorTime(i,s)),a.sendControl("set-media-output-muted",{muted:!0});return}if(r.type==="timeline"&&r.durationInFrames>0){let o=Number(r.durationSeconds),i=Number(r.durationInFrames),s=Number.isFinite(o)&&o>0?o:i/n.fps;if(Number.isFinite(s)&&s>0){let u=a.getPlaybackState();a.setPlaybackState({...u,duration:s}),a.updateControlsTime(u.currentTime,s),a.onRuntimeTimelineReady(s)}Number.isFinite(r.compositionWidth)&&r.compositionWidth>0&&Number.isFinite(r.compositionHeight)&&r.compositionHeight>0&&a.setCompositionSize(r.compositionWidth,r.compositionHeight),a.setScenes(JO(r.scenes));return}r.type==="stage-size"&&Number.isFinite(r.width)&&r.width>0&&Number.isFinite(r.height)&&r.height>0&&a.setCompositionSize(r.width,r.height)}var vs="shader-capture-scale",rl="shader-loading",ZO="__hf_shader_capture_scale",XO="__hf_shader_loading",Vd=["Preparing scene transitions","Sampling outgoing scene motion","Sampling incoming scene motion","Caching transition frames","Finalizing transition preview"];function d0(e){if(e===null)return null;let t=Number(e);return!Number.isFinite(t)||t<=0?null:String(Math.min(1,Math.max(.25,t)))}function e6(e){if(e===null||e.trim()==="")return"composition";let t=e.trim().toLowerCase();return t==="none"||t==="false"||t==="0"||t==="off"?"none":t==="player"||t==="true"||t==="1"||t==="on"?"player":"composition"}function AC(e,t,a){a===null?e.delete(t):e.set(t,a)}function t6(e,t,a){let r=e.indexOf("#"),n=r>=0?e.slice(0,r):e,o=r>=0?e.slice(r):"",i=n.indexOf("?"),s=i>=0?n.slice(0,i):n,u=i>=0?n.slice(i+1):"",l=new URLSearchParams(u);AC(l,ZO,t),AC(l,XO,a==="composition"?null:a);let c=l.toString();return`${s}${c?`?${c}`:""}${o}`}function a6(e,t,a){if(t===null&&a==="composition")return e;let r=[];t!==null&&r.push(`window.__HF_SHADER_CAPTURE_SCALE=${JSON.stringify(t)};`),a!=="composition"&&r.push(`window.__HF_SHADER_LOADING=${JSON.stringify(a)};`);let n=`<script data-hyperframes-player-shader-options>${r.join("")}<\/script>`;return/<head\b[^>]*>/i.test(e)?e.replace(/<head\b[^>]*>/i,o=>`${o}${n}`):/<html\b[^>]*>/i.test(e)?e.replace(/<html\b[^>]*>/i,o=>`${o}${n}`):`${n}${e}`}function nl(e){return e6(e.getAttribute(rl))}function r6(e){return Number(d0(e.getAttribute(vs))??"1")}function s0(e,t){return t6(t,d0(e.getAttribute(vs)),nl(e))}function u0(e,t){return a6(t,d0(e.getAttribute(vs)),nl(e))}function n6(){let e=document.createElement("div");e.className="hfp-shader-loader",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-label","Preparing scene transitions"),e.setAttribute("data-hyperframes-ignore",""),e.draggable=!1;let t=p=>{p.preventDefault(),p.stopPropagation()};for(let p of["selectstart","dragstart","pointerdown","mousedown","click","dblclick","contextmenu","touchstart"])e.addEventListener(p,t,{capture:!0});let a=document.createElement("div");a.className="hfp-shader-loader-panel",a.draggable=!1;let r=document.createElement("div");r.className="hfp-shader-loader-mark",r.draggable=!1,r.innerHTML=['<svg width="78" height="78" viewBox="0 0 100 100" fill="none" aria-hidden="true" draggable="false">','<path d="M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z" fill="url(#hfp-shader-loader-grad-left)"/>','<path d="M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z" fill="url(#hfp-shader-loader-grad-right)"/>',"<defs>",'<linearGradient id="hfp-shader-loader-grad-left" x1="48.5676" y1="25" x2="44.7804" y2="71.9384" gradientUnits="userSpaceOnUse">','<stop stop-color="#06E3FA"/>','<stop offset="1" stop-color="#4FDB5E"/>',"</linearGradient>",'<linearGradient id="hfp-shader-loader-grad-right" x1="54.8282" y1="73.8392" x2="72.0989" y2="32.8932" gradientUnits="userSpaceOnUse">','<stop stop-color="#06E3FA"/>','<stop offset="1" stop-color="#4FDB5E"/>',"</linearGradient>","</defs>","</svg>"].join("");let n=document.createElement("div");n.className="hfp-shader-loader-title";let o=document.createElement("span");o.className="hfp-shader-loader-title-text",o.textContent=Vd[0]||"Preparing scene transitions",n.appendChild(o);let i=document.createElement("div");i.className="hfp-shader-loader-detail",i.textContent="Rendering animated scene samples for shader transitions.";let s=document.createElement("div");s.className="hfp-shader-loader-track",s.setAttribute("aria-hidden","true");let u=document.createElement("div");u.className="hfp-shader-loader-fill",s.appendChild(u);let l=document.createElement("div");l.className="hfp-shader-loader-progress";let c=p=>{let g=document.createElement("div");g.className="hfp-shader-loader-row";let m=document.createElement("span");m.className="hfp-shader-loader-label",m.textContent=p;let x=document.createElement("span");return x.className="hfp-shader-loader-value",g.appendChild(m),g.appendChild(x),l.appendChild(g),{row:g,label:m,value:x}},d=c("transition"),f=c("transition frame");return a.appendChild(r),a.appendChild(n),a.appendChild(i),a.appendChild(s),a.appendChild(l),e.appendChild(a),{root:e,fill:u,title:o,detail:i,transitionValue:d.value,frameLabel:f.label,frameValue:f.value,frameRow:f.row}}var o6=420,i6=class{constructor(e){te(this,"_el");te(this,"_hideTimeout",null);this._el=e}show(){this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),this._el.root.classList.remove("hfp-hiding"),this._el.root.classList.add("hfp-visible")}hide(){if(this._el.root.classList.contains("hfp-hiding")){this._hideTimeout||this._scheduleCleanup();return}this._el.root.classList.contains("hfp-visible")&&(this._el.root.classList.add("hfp-hiding"),this._el.root.classList.remove("hfp-visible"),this._scheduleCleanup())}reset(){this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),this._el.root.classList.remove("hfp-visible","hfp-hiding"),this._el.fill.style.transform="scaleX(0)",this._el.transitionValue.textContent="",this._el.frameValue.textContent="",this._el.frameRow.style.visibility="hidden"}update(e,t){if(t!=="player"){this.reset();return}if(e.ready||!e.loading){this.hide();return}let a=typeof e.progress=="number"&&Number.isFinite(e.progress)?e.progress:0,r=typeof e.total=="number"&&Number.isFinite(e.total)?e.total:0,n=r>0?Math.min(1,Math.max(0,a/r)):0,o=Math.min(Vd.length-1,Math.floor(n*Vd.length));this._el.title.textContent=Vd[o]||"Preparing scene transitions",this._el.detail.textContent=e.phase==="cached"?"Loading cached transition frames before playback.":e.phase==="finalizing"?"Uploading transition textures for smooth playback.":"Rendering animated scene samples for shader transitions.",this._el.fill.style.transform=`scaleX(${n})`,this._el.transitionValue.textContent=e.currentTransition!==void 0&&e.transitionTotal!==void 0?`${e.currentTransition}/${e.transitionTotal}`:r>0?`${a}/${r}`:"";let i=e.transitionFrame!==void 0&&e.transitionFrames!==void 0?`${e.transitionFrame}/${e.transitionFrames}`:"";this._el.frameLabel.textContent=e.phase==="cached"?"cached transition frames":e.phase==="finalizing"?"finalizing transition frames":"rendering transition frames",this._el.frameValue.textContent=i,this._el.frameRow.style.visibility=i?"visible":"hidden",this._el.root.setAttribute("aria-valuenow",String(Math.round(n*100))),this.show()}get hideTimeout(){return this._hideTimeout}destroy(){this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null)}_scheduleCleanup(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(()=>{this._el.root.classList.remove("hfp-hiding"),this._hideTimeout=null},o6)}},s6=.1,u6=5;function l0(e){return!Number.isFinite(e)||e<=0?1:Math.max(s6,Math.min(u6,e))}var l6=class extends HTMLElement{constructor(){super();te(this,"shadow");te(this,"container");te(this,"iframe");te(this,"posterEl",null);te(this,"controlsApi",null);te(this,"resizeObserver");te(this,"shaderLoader");te(this,"probe");te(this,"_ready",!1);te(this,"_currentTime",0);te(this,"_duration",0);te(this,"_paused",!0);te(this,"_scrubbing",!1);te(this,"_lastUpdateMs",0);te(this,"_volume",1);te(this,"_compositionWidth",1920);te(this,"_compositionHeight",1080);te(this,"_rescaleWarned",!1);te(this,"_directTimelineAdapter",null);te(this,"_directTimelineClock");te(this,"_parentTickRaf",null);te(this,"_media");te(this,"_scenes",[]);te(this,"_runtimeFps",30);this.shadow=this.attachShadow({mode:"open"}),wO(this.shadow,mO),{container:this.container,iframe:this.iframe}=SO(),this.shadow.appendChild(this.container);let t=n6();this.shadow.appendChild(t.root),this.shaderLoader=new i6(t),this._media=new VO({dispatchEvent:a=>this.dispatchEvent(a),getMuted:()=>this.muted,getVolume:()=>this._volume,getPlaybackRate:()=>this.playbackRate,getCurrentTime:()=>this._currentTime,isPaused:()=>this._paused}),this._directTimelineClock=new IO({onTimeUpdate:(a,r)=>{this._currentTime=a,this.controlsApi?.updateTime(a,r),this.dispatchEvent(new CustomEvent("timeupdate",{detail:{currentTime:a}}))},getLoop:()=>this.loop,restart:()=>{this.seek(0),this.play()},onPaused:()=>{this._media.audioOwner==="parent"&&this._media.pauseAll(),this._paused=!0,this.controlsApi?.updatePlaying(!1),this.dispatchEvent(new Event("ended"))},onEnded:()=>this.loop}),this.probe=new pO(this.iframe,{onReady:a=>this._onProbeReady(a),onError:a=>this.dispatchEvent(new CustomEvent("error",{detail:{message:a}}))}),this.addEventListener("click",a=>{AO(a)||(this._paused?this.play():this.pause())}),this.resizeObserver=new ResizeObserver(()=>this._rescale()),this._onMessage=this._onMessage.bind(this),this._onIframeLoad=this._onIframeLoad.bind(this)}static get observedAttributes(){return["src","srcdoc","width","height","controls","muted","audio-locked","volume","poster","playback-rate","audio-src",vs,rl]}connectedCallback(){this.resizeObserver.observe(this),window.addEventListener("message",this._onMessage),this.iframe.addEventListener("load",this._onIframeLoad),this.hasAttribute("controls")&&this._setupControls(),this.hasAttribute("poster")&&(this.posterEl=bC(this.shadow,this.getAttribute("poster"),this.posterEl)),this.hasAttribute("audio-src")&&this._media.setupFromUrl(this.getAttribute("audio-src")),this.hasAttribute("srcdoc")&&(this.iframe.srcdoc=u0(this,this.getAttribute("srcdoc"))),this.hasAttribute("src")&&(this.iframe.src=s0(this,this.getAttribute("src"))),!this.hasAttribute("audio-locked")&&this._isLockedHostEnvironment()&&this._applyAudioLock(!0)}disconnectedCallback(){this._sendControl("pause"),this._stopIframeMedia(),this.resizeObserver.disconnect(),window.removeEventListener("message",this._onMessage),this.iframe.removeEventListener("load",this._onIframeLoad),this.probe.stop(),this._directTimelineClock.stop(),this._stopParentTickClock(),this._directTimelineAdapter=null,this.shaderLoader.destroy(),this._media.destroy(),this.controlsApi?.destroy(),this.controlsApi=null,this._paused=!0,this._ready=!1}attributeChangedCallback(t,a,r){switch(t){case"src":r&&(this._ready=!1,this.iframe.src=s0(this,r));break;case"srcdoc":this._ready=!1,r!==null?this.iframe.srcdoc=u0(this,r):this.iframe.removeAttribute("srcdoc");break;case"width":this._compositionWidth=Gd(r)??1920,this._rescale();break;case"height":this._compositionHeight=Gd(r)??1080,this._rescale();break;case"controls":r!==null?this._setupControls():(this.controlsApi?.destroy(),this.controlsApi=null);break;case"poster":this.posterEl=bC(this.shadow,r,this.posterEl);break;case"playback-rate":{let n=l0(parseFloat(r||"1"));this._media.updatePlaybackRate(n),this._sendControl("set-playback-rate",{playbackRate:n}),this._directTimelineAdapter?.timeScale?.(n),this.controlsApi?.updateSpeed(n),this.dispatchEvent(new Event("ratechange"));break}case"muted":this._handleMutedChange(r);break;case"audio-locked":this._applyAudioLock(r!==null);break;case"volume":{let n=Math.max(0,Math.min(1,parseFloat(r||"1")));this._volume=n,this._media.updateVolume(n),this._sendControl("set-volume",{volume:n}),this.controlsApi?.updateVolume(n),this.dispatchEvent(new Event("volumechange"));break}case"audio-src":r?this._media.setupFromUrl(r):this._media.teardownUrlAudio();break;case vs:case rl:this._reloadShaderOptions();break}}get iframeElement(){return this.iframe}get scenes(){return this._scenes}play(){this.posterEl?.remove(),this.posterEl=null,this._duration>0&&this._currentTime>=this._duration&&this.seek(0),this._paused=!1;let t=this._tryDirectTimelinePlay();t||(this._sendControl("play"),this._ready&&!this._directTimelineAdapter&&this._startParentTickClock()),this._media.audioOwner==="parent"&&this._media.playAll(),this.controlsApi?.updatePlaying(!0),this.dispatchEvent(new Event("play")),t&&this._directTimelineAdapter&&this._directTimelineClock.start(this._directTimelineAdapter,()=>this._currentTime,()=>this._duration,()=>this._paused)}pause(){this._tryDirectTimelinePause()||this._sendControl("pause"),this._directTimelineClock.stop(),this._stopParentTickClock(),this._media.audioOwner==="parent"&&this._media.pauseAll(),this._paused=!0,this.controlsApi?.updatePlaying(!1),this.dispatchEvent(new Event("pause"))}stopMedia(){this._sendControl("stop-media"),this._stopIframeMedia(),this._media.stopAdoptedMedia()}seek(t){!this._trySyncSeek(t)&&!this._tryDirectTimelineSeek(t)&&this._sendControl("seek",{timeSeconds:t,frame:Math.round(t*this._runtimeFps)}),this._directTimelineClock.stop(),this._stopParentTickClock(),this._currentTime=t,this._media.audioOwner==="parent"&&(this._scrubbing?this._media.scrubAll(t):(this._media.pauseAll(),this._media.seekAll(t))),this._paused=!0,this.controlsApi?.updatePlaying(!1),this.controlsApi?.updateTime(this._currentTime,this._duration)}setColorGrading(t,a){this._sendControl("set-color-grading",{target:t,grading:a})}clearColorGrading(t){this._sendControl("set-color-grading",{target:t,grading:null})}setColorGradingCompare(t,a){this._sendControl("set-color-grading-compare",{target:t,compare:a})}clearColorGradingCompare(t){this._sendControl("set-color-grading-compare",{target:t,compare:{enabled:!1}})}get currentTime(){return this._currentTime}set currentTime(t){this.seek(t)}get duration(){return this._duration}get paused(){return this._paused}get ready(){return this._ready}get playbackRate(){return l0(parseFloat(this.getAttribute("playback-rate")||"1"))}set playbackRate(t){this.setAttribute("playback-rate",String(l0(t)))}get shaderCaptureScale(){return r6(this)}set shaderCaptureScale(t){this.setAttribute(vs,String(t))}get shaderLoading(){return nl(this)}set shaderLoading(t){t==="composition"?this.removeAttribute(rl):this.setAttribute(rl,t)}get muted(){return this.hasAttribute("muted")}set muted(t){t?this.setAttribute("muted",""):this.removeAttribute("muted")}get audioLocked(){return this.hasAttribute("audio-locked")}set audioLocked(t){t?this.setAttribute("audio-locked",""):this.removeAttribute("audio-locked")}_isLockedHostEnvironment(){if(typeof navigator>"u")return!1;let t=navigator.userAgent||"";return/\bClaude\/\d/.test(t)&&/\bElectron\b/.test(t)}_isAudioLocked(){return this.hasAttribute("audio-locked")||this._isLockedHostEnvironment()}_isSlideshowPlayer(){return this.closest("hyperframes-slideshow")!==null}_handleMutedChange(t){if(t===null&&this._isAudioLocked()){this.setAttribute("muted","");return}this._media.updateMuted(t!==null),this._setIframeMediaMuted(t!==null),this._sendControl("set-muted",{muted:t!==null}),this.controlsApi?.updateMuted(t!==null),this.dispatchEvent(new Event("volumechange"))}_applyAudioLock(t){t&&(this.muted=!0),this.controlsApi?.setVolumeControlsHidden(t)}get volume(){return this._volume}set volume(t){this.setAttribute("volume",String(Math.max(0,Math.min(1,t))))}get loop(){return this.hasAttribute("loop")}set loop(t){t?this.setAttribute("loop",""):this.removeAttribute("loop")}_sendControl(t,a={}){try{this.iframe.contentWindow?.postMessage({...a,source:"hf-parent",type:"control",action:t,...KO(this._runtimeFps)},"*")}catch{}}_getSameOriginIframeDocument(){try{return this.iframe.contentDocument}catch{return null}}_setIframeMediaMuted(t){let a=this._getSameOriginIframeDocument();if(a)for(let r of a.querySelectorAll("video, audio"))In(r)&&(r.muted=t||r.defaultMuted)}_stopIframeMedia(){let t=this._getSameOriginIframeDocument();if(t)for(let a of t.querySelectorAll("video, audio"))In(a)&&a.pause()}_replayBridgeState(){this._sendControl("set-muted",{muted:this.muted}),this._sendControl("set-volume",{volume:this._volume}),this._sendControl("set-playback-rate",{playbackRate:this.playbackRate}),this._sendControl("set-native-media-sync-disabled",{disabled:this._isSlideshowPlayer()}),this._sendControl("set-web-audio-media-disabled",{disabled:this._isSlideshowPlayer()})}_reloadShaderOptions(){if(nl(this)!=="player"&&this.shaderLoader.reset(),this.hasAttribute("srcdoc")){this.iframe.srcdoc=u0(this,this.getAttribute("srcdoc")||"");return}this.hasAttribute("src")&&(this.iframe.src=s0(this,this.getAttribute("src")||""))}_trySyncSeek(t){try{let a=this.iframe.contentWindow?.__player;return typeof a?.seek!="function"?!1:(a.seek.call(a,t),!0)}catch{return!1}}_withDirectTimeline(t){let a=this._directTimelineAdapter||this.probe.resolveDirectTimelineAdapter();if(!a)return!1;try{return t(a),this._directTimelineAdapter=a,!0}catch{return!1}}_tryDirectTimelineSeek(t){return this._withDirectTimeline(a=>{a.seek(t,!1),a.pause()})}_tryDirectTimelinePlay(){return this._withDirectTimeline(t=>{t.play()})}_tryDirectTimelinePause(){return this._withDirectTimeline(t=>{t.pause()})}_startParentTickClock(){this._stopParentTickClock();let t=()=>{if(this._paused){this._parentTickRaf=null;return}this._sendControl("tick"),this._parentTickRaf=requestAnimationFrame(t)};this._parentTickRaf=requestAnimationFrame(t)}_stopParentTickClock(){this._parentTickRaf!==null&&(cancelAnimationFrame(this._parentTickRaf),this._parentTickRaf=null)}_onMessage(t){$O(t,this.iframe.contentWindow,{getPlaybackState:()=>({currentTime:this._currentTime,duration:this._duration,paused:this._paused,lastUpdateMs:this._lastUpdateMs}),setPlaybackState:({currentTime:a,duration:r,paused:n,lastUpdateMs:o})=>{this._currentTime=a,this._duration=r,this._paused=n,this._lastUpdateMs=o},getShaderLoadingMode:()=>nl(this),shaderLoader:this.shaderLoader,setCompositionSize:(a,r)=>{this._compositionWidth=a,this._compositionHeight=r,this._rescale()},sendControl:(a,r)=>this._sendControl(a,r),getIframeDoc:()=>this.iframe.contentDocument,onRuntimeReady:()=>this._replayBridgeState(),onRuntimeTimelineReady:a=>this._onRuntimeTimelineReady(a),setRuntimeFps:a=>{this._runtimeFps=a},shouldPromoteMediaAutoplayFallback:()=>!this._isSlideshowPlayer(),setScenes:a=>{this._scenes=a,this.dispatchEvent(new CustomEvent("scenes",{detail:{scenes:a}}))},updateControlsTime:(a,r)=>this.controlsApi?.updateTime(a,r),updateControlsPlaying:a=>this.controlsApi?.updatePlaying(a),dispatchEvent:a=>this.dispatchEvent(a),seek:a=>this.seek(a),play:()=>this.play(),getLoop:()=>this.loop,media:this._media})}_onRuntimeTimelineReady(t){if(this._ready)return;this.probe.stop(),this._duration=t,this._directTimelineAdapter=null,this._ready=!0,this.controlsApi?.updateTime(this._currentTime,t),this.dispatchEvent(new CustomEvent("ready",{detail:{duration:t}})),this._rescale();let a=this._getSameOriginIframeDocument();a&&this._media.setupFromIframe(a),this._replayBridgeState(),this._setIframeMediaMuted(this.muted),this.hasAttribute("autoplay")&&this.play()}_onProbeReady({duration:t,adapter:a,compositionSize:r}){this._duration=t,this._directTimelineAdapter=a.kind==="direct-timeline"?a.timeline:null,this._ready=!0,this.controlsApi?.updateTime(0,t),this.dispatchEvent(new CustomEvent("ready",{detail:{duration:t}})),r&&(this._compositionWidth=r.width,this._compositionHeight=r.height,this._rescale());try{let n=this.iframe.contentDocument;n&&this._media.setupFromIframe(n)}catch{}this._setIframeMediaMuted(this.muted),this.hasAttribute("autoplay")&&this.play()}_rescale(){!CO(this,this.iframe,this._compositionWidth,this._compositionHeight)&&this._ready&&!this._rescaleWarned&&(this._rescaleWarned=!0,console.warn("[hyperframes-player] rescale no-op after ready \u2014 zero-size player element",{src:this.getAttribute("src"),offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight,compositionWidth:this._compositionWidth,compositionHeight:this._compositionHeight}))}_onIframeLoad(){this._ready=!1,this._directTimelineAdapter=null,this._directTimelineClock.stop(),this._stopParentTickClock(),this.shaderLoader.reset(),this._media.resetForIframeLoad(),this.probe.start()}_setupControls(){this.controlsApi||(this.controlsApi=yO(this.shadow,this.muted,this._volume,this.getAttribute("speed-presets"),{onPlay:()=>this.play(),onPause:()=>this.pause(),onSeek:t=>this.seek(t*this._duration),onScrubStart:()=>{this._scrubbing=!0},onScrubEnd:()=>{this._scrubbing=!1,this.seek(this._currentTime)},onSpeedChange:t=>{this.playbackRate=t},onMuteToggle:()=>{this.muted=!this.muted},onVolumeChange:t=>{this.volume=t}},this._isAudioLocked()))}get _audioOwner(){return this._media.audioOwner}get _parentMedia(){return this._media.entries}_mirrorParentMediaTime(t,a){this._media.mirrorTime(t,a)}_promoteToParentProxy(){let t=null;try{t=this.iframe.contentDocument}catch{}this._media.promoteToParentProxy(t,(a,r)=>this._mirrorParentMediaTime(a,r)),this._sendControl("set-media-output-muted",{muted:!0})}_observeDynamicMedia(t){this._media.setupFromIframe(t)}};customElements.get("hyperframes-player")||customElements.define("hyperframes-player",l6);var As="@hyperframes/sdk:applyPatches",kn="local";var ws=Symbol("changed"),ao=Symbol("classList"),xa=Symbol("CustomElements"),ol=Symbol("content"),Wd=Symbol("dataset"),ro=Symbol("doctype"),il=Symbol("DOMParser"),ie=Symbol("end"),Ss=Symbol("EventTarget"),Cs=Symbol("globals"),Wa=Symbol("image"),Sr=Symbol("mime"),$r=Symbol("MutationObserver"),Y=Symbol("next"),f0=Symbol("ownerElement"),Je=Symbol("prev"),kt=Symbol("private"),di=Symbol("sheet"),Ht=Symbol("start"),jd=Symbol("style"),no=Symbol("upgrade"),Fe=Symbol("value");var z0={};_r(z0,{DefaultHandler:()=>En,DomHandler:()=>En,DomUtils:()=>H0,ElementType:()=>$d,Parser:()=>oo,QuoteType:()=>ja,Tokenizer:()=>fi,createDocumentStream:()=>f_,createDomStream:()=>p_,getFeed:()=>xl,parseDOM:()=>tI,parseDocument:()=>eI,parseFeed:()=>h_});var p0,c6=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),sl=(p0=String.fromCodePoint)!==null&&p0!==void 0?p0:(e=>{let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t});function m0(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=c6.get(e))!==null&&t!==void 0?t:e}function qd(e){let t=typeof atob=="function"?atob(e):typeof Buffer.from=="function"?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),a=t.length&-2,r=new Uint16Array(a/2);for(let n=0,o=0;n<a;n+=2){let i=t.charCodeAt(n),s=t.charCodeAt(n+1);r[o++]=i|s<<8}return r}var Kd=qd("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");var Qd=qd("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var ia;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ia||(ia={}));var gt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(gt||(gt={}));var CC=32;function h0(e){return e>=gt.ZERO&&e<=gt.NINE}function d6(e){return e>=gt.UPPER_A&&e<=gt.UPPER_F||e>=gt.LOWER_A&&e<=gt.LOWER_F}function f6(e){return e>=gt.UPPER_A&&e<=gt.UPPER_Z||e>=gt.LOWER_A&&e<=gt.LOWER_Z||h0(e)}function p6(e){return e===gt.EQUALS||f6(e)}var zt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(zt||(zt={}));var Cr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Cr||(Cr={}));var Yd=class{constructor(t,a,r){this.decodeTree=t,this.emitCodePoint=a,this.errors=r,this.state=zt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cr.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=zt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,a){switch(this.state){case zt.EntityStart:return t.charCodeAt(a)===gt.NUM?(this.state=zt.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=zt.NamedEntity,this.stateNamedEntity(t,a));case zt.NumericStart:return this.stateNumericStart(t,a);case zt.NumericDecimal:return this.stateNumericDecimal(t,a);case zt.NumericHex:return this.stateNumericHex(t,a);case zt.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|CC)===gt.LOWER_X?(this.state=zt.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=zt.NumericDecimal,this.stateNumericDecimal(t,a))}stateNumericHex(t,a){for(;a<t.length;){let r=t.charCodeAt(a);if(h0(r)||d6(r)){let n=r<=gt.NINE?r-gt.ZERO:(r|CC)-gt.LOWER_A+10;this.result=this.result*16+n,this.consumed++,a++}else return this.emitNumericEntity(r,3)}return-1}stateNumericDecimal(t,a){for(;a<t.length;){let r=t.charCodeAt(a);if(h0(r))this.result=this.result*10+(r-gt.ZERO),this.consumed++,a++;else return this.emitNumericEntity(r,2)}return-1}emitNumericEntity(t,a){var r;if(this.consumed<=a)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===gt.SEMI)this.consumed+=1;else if(this.decodeMode===Cr.Strict)return 0;return this.emitCodePoint(m0(this.result),this.consumed),this.errors&&(t!==gt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,a){let{decodeTree:r}=this,n=r[this.treeIndex],o=(n&ia.VALUE_LENGTH)>>14;for(;a<t.length;){if(o===0&&(n&ia.FLAG13)!==0){let s=(n&ia.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let u=n&ia.JUMP_TABLE;if(t.charCodeAt(a)!==u)return this.result===0?0:this.emitNotTerminatedNamedEntity();a++,this.excess++,this.runConsumed++}for(;this.runConsumed<s;){if(a>=t.length)return-1;let u=this.runConsumed-1,l=r[this.treeIndex+1+(u>>1)],c=u%2===0?l&255:l>>8&255;if(t.charCodeAt(a)!==c)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();a++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(s>>1),n=r[this.treeIndex],o=(n&ia.VALUE_LENGTH)>>14}if(a>=t.length)break;let i=t.charCodeAt(a);if(i===gt.SEMI&&o!==0&&(n&ia.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);if(this.treeIndex=m6(r,n,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===Cr.Attribute&&(o===0||p6(i))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],o=(n&ia.VALUE_LENGTH)>>14,o!==0){if(i===gt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Cr.Strict&&(n&ia.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}a++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var t;let{result:a,decodeTree:r}=this,n=(r[a]&ia.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,a,r){let{decodeTree:n}=this;return this.emitCodePoint(a===1?n[t]&~(ia.VALUE_LENGTH|ia.FLAG13):n[t+1],r),a===3&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case zt.NamedEntity:return this.result!==0&&(this.decodeMode!==Cr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case zt.NumericDecimal:return this.emitNumericEntity(0,2);case zt.NumericHex:return this.emitNumericEntity(0,3);case zt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case zt.EntityStart:return 0}}};function m6(e,t,a,r){let n=(t&ia.BRANCH_LENGTH)>>7,o=t&ia.JUMP_TABLE;if(n===0)return o!==0&&r===o?a:-1;if(o){let l=r-o;return l<0||l>=n?-1:e[a+l]-1}let i=n+1>>1,s=0,u=n-1;for(;s<=u;){let l=s+u>>>1,c=l>>1,f=e[a+c]>>(l&1)*8&255;if(f<r)s=l+1;else if(f>r)u=l-1;else return e[a+i+l]}return-1}var xe;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(xe||(xe={}));var G;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(G||(G={}));function Ln(e){return e===xe.Space||e===xe.NewLine||e===xe.Tab||e===xe.FormFeed||e===xe.CarriageReturn}function Jd(e){return e===xe.Slash||e===xe.Gt||Ln(e)}function h6(e){return e>=xe.LowerA&&e<=xe.LowerZ||e>=xe.UpperA&&e<=xe.UpperZ}var ja;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(ja||(ja={}));var Lt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},fi=class{constructor({xmlMode:t=!1,decodeEntities:a=!0},r){this.cbs=r,this.state=G.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=G.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=a,this.entityDecoder=new Yd(t?Qd:Kd,(n,o)=>this.emitCodePoint(n,o))}reset(){this.state=G.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=G.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===xe.Lt||!this.decodeEntities&&this.fastForwardTo(xe.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=G.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===xe.Amp&&this.startEntity()}stateSpecialStartSequence(t){let a=this.sequenceIndex===this.currentSequence.length;if(!(a?Jd(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!a){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=G.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===xe.Gt||Ln(t)){let a=this.index-this.currentSequence.length;if(this.sectionStart<a){let r=this.index;this.index=a,this.cbs.ontext(this.sectionStart,a),this.index=r}this.isSpecial=!1,this.sectionStart=a+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Lt.TitleEnd?this.decodeEntities&&t===xe.Amp&&this.startEntity():this.fastForwardTo(xe.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===xe.Lt)}stateCDATASequence(t){t===Lt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Lt.Cdata.length&&(this.state=G.InCommentLike,this.currentSequence=Lt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=G.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Lt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=G.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!Jd(t):h6(t)}startSpecial(t,a){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=a,this.state=G.SpecialStartSequence}stateBeforeTagName(t){if(t===xe.ExclamationMark)this.state=G.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===xe.Questionmark)this.state=G.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let a=t|32;this.sectionStart=this.index,this.xmlMode?this.state=G.InTagName:a===Lt.ScriptEnd[2]?this.state=G.BeforeSpecialS:a===Lt.TitleEnd[2]||a===Lt.XmpEnd[2]?this.state=G.BeforeSpecialT:this.state=G.InTagName}else t===xe.Slash?this.state=G.BeforeClosingTagName:(this.state=G.Text,this.stateText(t))}stateInTagName(t){Jd(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=G.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Ln(t)||(t===xe.Gt?this.state=G.Text:(this.state=this.isTagStartChar(t)?G.InClosingTagName:G.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===xe.Gt||Ln(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=G.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===xe.Gt||this.fastForwardTo(xe.Gt))&&(this.state=G.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===xe.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=G.InSpecialTag,this.sequenceIndex=0):this.state=G.Text,this.sectionStart=this.index+1):t===xe.Slash?this.state=G.InSelfClosingTag:Ln(t)||(this.state=G.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===xe.Gt?(this.cbs.onselfclosingtag(this.index),this.state=G.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ln(t)||(this.state=G.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===xe.Eq||Jd(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=G.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===xe.Eq?this.state=G.BeforeAttributeValue:t===xe.Slash||t===xe.Gt?(this.cbs.onattribend(ja.NoValue,this.sectionStart),this.sectionStart=-1,this.state=G.BeforeAttributeName,this.stateBeforeAttributeName(t)):Ln(t)||(this.cbs.onattribend(ja.NoValue,this.sectionStart),this.state=G.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===xe.DoubleQuote?(this.state=G.InAttributeValueDq,this.sectionStart=this.index+1):t===xe.SingleQuote?(this.state=G.InAttributeValueSq,this.sectionStart=this.index+1):Ln(t)||(this.sectionStart=this.index,this.state=G.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,a){t===a||!this.decodeEntities&&this.fastForwardTo(a)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(a===xe.DoubleQuote?ja.Double:ja.Single,this.index+1),this.state=G.BeforeAttributeName):this.decodeEntities&&t===xe.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,xe.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,xe.SingleQuote)}stateInAttributeValueNoQuotes(t){Ln(t)||t===xe.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(ja.Unquoted,this.index),this.state=G.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===xe.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===xe.OpeningSquareBracket?(this.state=G.CDATASequence,this.sequenceIndex=0):this.state=t===xe.Dash?G.BeforeComment:G.InDeclaration}stateInDeclaration(t){(t===xe.Gt||this.fastForwardTo(xe.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=G.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===xe.Gt||this.fastForwardTo(xe.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=G.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===xe.Dash?(this.state=G.InCommentLike,this.currentSequence=Lt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=G.InDeclaration}stateInSpecialComment(t){(t===xe.Gt||this.fastForwardTo(xe.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=G.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let a=t|32;a===Lt.ScriptEnd[3]?this.startSpecial(Lt.ScriptEnd,4):a===Lt.StyleEnd[3]?this.startSpecial(Lt.StyleEnd,4):(this.state=G.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){switch(t|32){case Lt.TitleEnd[3]:{this.startSpecial(Lt.TitleEnd,4);break}case Lt.TextareaEnd[3]:{this.startSpecial(Lt.TextareaEnd,4);break}case Lt.XmpEnd[3]:{this.startSpecial(Lt.XmpEnd,4);break}default:this.state=G.InTagName,this.stateInTagName(t)}}startEntity(){this.baseState=this.state,this.state=G.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Cr.Strict:this.baseState===G.Text||this.baseState===G.InSpecialTag?Cr.Legacy:Cr.Attribute)}stateInEntity(){let t=this.index-this.offset,a=this.entityDecoder.write(this.buffer,t);if(a>=0)this.state=this.baseState,a===0&&(this.index-=1);else{if(t<this.buffer.length&&this.buffer.charCodeAt(t)===xe.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===G.Text||this.state===G.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===G.InAttributeValueDq||this.state===G.InAttributeValueSq||this.state===G.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case G.Text:{this.stateText(t);break}case G.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case G.InSpecialTag:{this.stateInSpecialTag(t);break}case G.CDATASequence:{this.stateCDATASequence(t);break}case G.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case G.InAttributeName:{this.stateInAttributeName(t);break}case G.InCommentLike:{this.stateInCommentLike(t);break}case G.InSpecialComment:{this.stateInSpecialComment(t);break}case G.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case G.InTagName:{this.stateInTagName(t);break}case G.InClosingTagName:{this.stateInClosingTagName(t);break}case G.BeforeTagName:{this.stateBeforeTagName(t);break}case G.AfterAttributeName:{this.stateAfterAttributeName(t);break}case G.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case G.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case G.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case G.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case G.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case G.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case G.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case G.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case G.InDeclaration:{this.stateInDeclaration(t);break}case G.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case G.BeforeComment:{this.stateBeforeComment(t);break}case G.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case G.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===G.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===G.InCommentLike?this.currentSequence===Lt.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===G.InTagName||this.state===G.BeforeAttributeName||this.state===G.BeforeAttributeValue||this.state===G.AfterAttributeName||this.state===G.InAttributeName||this.state===G.InAttributeValueSq||this.state===G.InAttributeValueDq||this.state===G.InAttributeValueNq||this.state===G.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,a){this.baseState!==G.Text&&this.baseState!==G.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+a,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+a,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}};var Is=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Xe=new Set(["p"]),IC=new Set(["thead","tbody"]),kC=new Set(["dd","dt"]),LC=new Set(["rt","rp"]),g6=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Xe],["h1",Xe],["h2",Xe],["h3",Xe],["h4",Xe],["h5",Xe],["h6",Xe],["select",Is],["input",Is],["output",Is],["button",Is],["datalist",Is],["textarea",Is],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",kC],["dt",kC],["address",Xe],["article",Xe],["aside",Xe],["blockquote",Xe],["details",Xe],["div",Xe],["dl",Xe],["fieldset",Xe],["figcaption",Xe],["figure",Xe],["footer",Xe],["form",Xe],["header",Xe],["hr",Xe],["main",Xe],["nav",Xe],["ol",Xe],["pre",Xe],["section",Xe],["table",Xe],["ul",Xe],["rt",LC],["rp",LC],["tbody",IC],["tfoot",IC]]),b6=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),EC=new Set(["math","svg"]),TC=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),x6=/\s|\//,oo=class{constructor(t,a={}){var r,n,o,i,s,u;this.options=a,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=a.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(n=a.lowerCaseAttributeNames)!==null&&n!==void 0?n:this.htmlMode,this.recognizeSelfClosing=(o=a.recognizeSelfClosing)!==null&&o!==void 0?o:!this.htmlMode,this.tokenizer=new((i=a.Tokenizer)!==null&&i!==void 0?i:fi)(this.options,this),this.foreignContext=[!this.htmlMode],(u=(s=this.cbs).onparserinit)===null||u===void 0||u.call(s,this)}ontext(t,a){var r,n;let o=this.getSlice(t,a);this.endIndex=a-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,o),this.startIndex=a}ontextentity(t,a){var r,n;this.endIndex=a-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,sl(t)),this.startIndex=a}isVoidElement(t){return this.htmlMode&&b6.has(t)}onopentagname(t,a){this.endIndex=a;let r=this.getSlice(t,a);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(t){var a,r,n,o;this.openTagStart=this.startIndex,this.tagname=t;let i=this.htmlMode&&g6.get(t);if(i)for(;this.stack.length>0&&i.has(this.stack[0]);){let s=this.stack.shift();(r=(a=this.cbs).onclosetag)===null||r===void 0||r.call(a,s,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(EC.has(t)?this.foreignContext.unshift(!0):TC.has(t)&&this.foreignContext.unshift(!1))),(o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var a,r;this.startIndex=this.openTagStart,this.attribs&&((r=(a=this.cbs).onopentag)===null||r===void 0||r.call(a,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,a){var r,n,o,i,s,u,l,c;this.endIndex=a;let d=this.getSlice(t,a);if(this.lowerCaseTagNames&&(d=d.toLowerCase()),this.htmlMode&&(EC.has(d)||TC.has(d))&&this.foreignContext.shift(),this.isVoidElement(d))this.htmlMode&&d==="br"&&((i=(o=this.cbs).onopentagname)===null||i===void 0||i.call(o,"br"),(u=(s=this.cbs).onopentag)===null||u===void 0||u.call(s,"br",{},!0),(c=(l=this.cbs).onclosetag)===null||c===void 0||c.call(l,"br",!1));else{let f=this.stack.indexOf(d);if(f!==-1)for(let p=0;p<=f;p++){let g=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,g,p!==f)}else this.htmlMode&&d==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=a+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var a,r;let n=this.tagname;this.endOpenTag(t),this.stack[0]===n&&((r=(a=this.cbs).onclosetag)===null||r===void 0||r.call(a,n,!t),this.stack.shift())}onattribname(t,a){this.startIndex=t;let r=this.getSlice(t,a);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,a){this.attribvalue+=this.getSlice(t,a)}onattribentity(t){this.attribvalue+=sl(t)}onattribend(t,a){var r,n;this.endIndex=a,(n=(r=this.cbs).onattribute)===null||n===void 0||n.call(r,this.attribname,this.attribvalue,t===ja.Double?'"':t===ja.Single?"'":t===ja.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){let a=t.search(x6),r=a<0?t:t.substr(0,a);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,a){this.endIndex=a;let r=this.getSlice(t,a);if(this.cbs.onprocessinginstruction){let n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${n}`,`!${r}`)}this.startIndex=a+1}onprocessinginstruction(t,a){this.endIndex=a;let r=this.getSlice(t,a);if(this.cbs.onprocessinginstruction){let n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${n}`,`?${r}`)}this.startIndex=a+1}oncomment(t,a,r){var n,o,i,s;this.endIndex=a,(o=(n=this.cbs).oncomment)===null||o===void 0||o.call(n,this.getSlice(t,a-r)),(s=(i=this.cbs).oncommentend)===null||s===void 0||s.call(i),this.startIndex=a+1}oncdata(t,a,r){var n,o,i,s,u,l,c,d,f,p;this.endIndex=a;let g=this.getSlice(t,a-r);!this.htmlMode||this.options.recognizeCDATA?((o=(n=this.cbs).oncdatastart)===null||o===void 0||o.call(n),(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,g),(l=(u=this.cbs).oncdataend)===null||l===void 0||l.call(u)):((d=(c=this.cbs).oncomment)===null||d===void 0||d.call(c,`[CDATA[${g}]]`),(p=(f=this.cbs).oncommentend)===null||p===void 0||p.call(f)),this.startIndex=a+1}onend(){var t,a;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(a=(t=this.cbs).onend)===null||a===void 0||a.call(t)}reset(){var t,a,r,n;(a=(t=this.cbs).onreset)===null||a===void 0||a.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(r=this.cbs).onparserinit)===null||n===void 0||n.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,a){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,a-this.bufferOffset);for(;a-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,a-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var a,r;if(this.ended){(r=(a=this.cbs).onerror)===null||r===void 0||r.call(a,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var a,r;if(this.ended){(r=(a=this.cbs).onerror)===null||r===void 0||r.call(a,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};var $d={};_r($d,{CDATA:()=>C0,Comment:()=>y0,Directive:()=>v0,Doctype:()=>I0,ElementType:()=>Ve,Root:()=>b0,Script:()=>A0,Style:()=>w0,Tag:()=>S0,Text:()=>x0,isTag:()=>g0});var Ve;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(Ve||(Ve={}));function g0(e){return e.type===Ve.Tag||e.type===Ve.Script||e.type===Ve.Style}var b0=Ve.Root,x0=Ve.Text,v0=Ve.Directive,y0=Ve.Comment,A0=Ve.Script,w0=Ve.Style,S0=Ve.Tag,C0=Ve.CDATA,I0=Ve.Doctype;var Zd=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return RC(this,t)}},ul=class extends Zd{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},ks=class extends ul{constructor(){super(...arguments),this.type=Ve.Text}get nodeType(){return 3}},ll=class extends ul{constructor(){super(...arguments),this.type=Ve.Comment}get nodeType(){return 8}},cl=class extends ul{constructor(t,a){super(a),this.name=t,this.type=Ve.Directive}get nodeType(){return 1}},dl=class extends Zd{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},fl=class extends dl{constructor(){super(...arguments),this.type=Ve.CDATA}get nodeType(){return 4}},Ls=class extends dl{constructor(){super(...arguments),this.type=Ve.Root}get nodeType(){return 9}},pl=class extends dl{constructor(t,a,r=[],n=t==="script"?Ve.Script:t==="style"?Ve.Style:Ve.Tag){super(r),this.name=t,this.attribs=a,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var a,r;return{name:t,value:this.attribs[t],namespace:(a=this["x-attribsNamespace"])===null||a===void 0?void 0:a[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}};function Vt(e){return g0(e)}function Es(e){return e.type===Ve.CDATA}function Zr(e){return e.type===Ve.Text}function ml(e){return e.type===Ve.Comment}function v6(e){return e.type===Ve.Directive}function L0(e){return e.type===Ve.Root}function sa(e){return Object.prototype.hasOwnProperty.call(e,"children")}function RC(e,t=!1){let a;if(Zr(e))a=new ks(e.data);else if(ml(e))a=new ll(e.data);else if(Vt(e)){let r=t?k0(e.children):[],n=new pl(e.name,{...e.attribs},r);r.forEach(o=>o.parent=n),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...e["x-attribsPrefix"]}),a=n}else if(Es(e)){let r=t?k0(e.children):[],n=new fl(r);r.forEach(o=>o.parent=n),a=n}else if(L0(e)){let r=t?k0(e.children):[],n=new Ls(r);r.forEach(o=>o.parent=n),e["x-mode"]&&(n["x-mode"]=e["x-mode"]),a=n}else if(v6(e)){let r=new cl(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),a=r}else throw new Error(`Not implemented yet: ${e.type}`);return a.startIndex=e.startIndex,a.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(a.sourceCodeLocation=e.sourceCodeLocation),a}function k0(e){let t=e.map(a=>RC(a,!0));for(let a=1;a<t.length;a++)t[a].prev=t[a-1],t[a-1].next=t[a];return t}var PC={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},En=class{constructor(t,a,r){this.dom=[],this.root=new Ls(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof a=="function"&&(r=a,a=PC),typeof t=="object"&&(a=t,t=void 0),this.callback=t??null,this.options=a??PC,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new Ls(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;let t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,a){let r=this.options.xmlMode?Ve.Tag:void 0,n=new pl(t,a,void 0,r);this.addNode(n),this.tagStack.push(n)}ontext(t){let{lastNode:a}=this;if(a&&a.type===Ve.Text)a.data+=t,this.options.withEndIndices&&(a.endIndex=this.parser.endIndex);else{let r=new ks(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===Ve.Comment){this.lastNode.data+=t;return}let a=new ll(t);this.addNode(a),this.lastNode=a}oncommentend(){this.lastNode=null}oncdatastart(){let t=new ks(""),a=new fl([t]);this.addNode(a),t.parent=a,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,a){let r=new cl(t,a);this.addNode(r)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let a=this.tagStack[this.tagStack.length-1],r=a.children[a.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),a.children.push(t),r&&(t.prev=r,r.next=t),t.parent=a,this.lastNode=null}};var H0={};_r(H0,{DocumentPosition:()=>tr,append:()=>Q6,appendChild:()=>K6,compareDocumentPosition:()=>ZC,existsOne:()=>JC,filter:()=>Ts,find:()=>YC,findAll:()=>Z6,findOne:()=>nf,findOneChild:()=>$6,getAttributeValue:()=>V6,getChildren:()=>KC,getElementById:()=>a_,getElements:()=>t_,getElementsByClassName:()=>r_,getElementsByTagName:()=>pi,getElementsByTagType:()=>n_,getFeed:()=>xl,getInnerHTML:()=>H6,getName:()=>G6,getOuterHTML:()=>qC,getParent:()=>QC,getSiblings:()=>z6,getText:()=>rf,hasAttrib:()=>U6,hasChildren:()=>sa,innerText:()=>B0,isCDATA:()=>Es,isComment:()=>ml,isDocument:()=>L0,isTag:()=>Vt,isText:()=>Zr,nextElementSibling:()=>W6,prepend:()=>J6,prependChild:()=>Y6,prevElementSibling:()=>j6,removeElement:()=>bl,removeSubsets:()=>o_,replaceElement:()=>q6,testElement:()=>e_,textContent:()=>gl,uniqueSort:()=>i_});var NC=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var MC=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var E0,y6=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),T0=(E0=String.fromCodePoint)!==null&&E0!==void 0?E0:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function R0(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=y6.get(e))!==null&&t!==void 0?t:e}var Gt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Gt||(Gt={}));var A6=32,io;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(io||(io={}));function P0(e){return e>=Gt.ZERO&&e<=Gt.NINE}function w6(e){return e>=Gt.UPPER_A&&e<=Gt.UPPER_F||e>=Gt.LOWER_A&&e<=Gt.LOWER_F}function S6(e){return e>=Gt.UPPER_A&&e<=Gt.UPPER_Z||e>=Gt.LOWER_A&&e<=Gt.LOWER_Z||P0(e)}function C6(e){return e===Gt.EQUALS||S6(e)}var Ut;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ut||(Ut={}));var Tn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Tn||(Tn={}));var Xd=class{constructor(t,a,r){this.decodeTree=t,this.emitCodePoint=a,this.errors=r,this.state=Ut.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Tn.Strict}startEntity(t){this.decodeMode=t,this.state=Ut.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,a){switch(this.state){case Ut.EntityStart:return t.charCodeAt(a)===Gt.NUM?(this.state=Ut.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=Ut.NamedEntity,this.stateNamedEntity(t,a));case Ut.NumericStart:return this.stateNumericStart(t,a);case Ut.NumericDecimal:return this.stateNumericDecimal(t,a);case Ut.NumericHex:return this.stateNumericHex(t,a);case Ut.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|A6)===Gt.LOWER_X?(this.state=Ut.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=Ut.NumericDecimal,this.stateNumericDecimal(t,a))}addToNumericResult(t,a,r,n){if(a!==r){let o=r-a;this.result=this.result*Math.pow(n,o)+parseInt(t.substr(a,o),n),this.consumed+=o}}stateNumericHex(t,a){let r=a;for(;a<t.length;){let n=t.charCodeAt(a);if(P0(n)||w6(n))a+=1;else return this.addToNumericResult(t,r,a,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,r,a,16),-1}stateNumericDecimal(t,a){let r=a;for(;a<t.length;){let n=t.charCodeAt(a);if(P0(n))a+=1;else return this.addToNumericResult(t,r,a,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,r,a,10),-1}emitNumericEntity(t,a){var r;if(this.consumed<=a)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Gt.SEMI)this.consumed+=1;else if(this.decodeMode===Tn.Strict)return 0;return this.emitCodePoint(R0(this.result),this.consumed),this.errors&&(t!==Gt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,a){let{decodeTree:r}=this,n=r[this.treeIndex],o=(n&io.VALUE_LENGTH)>>14;for(;a<t.length;a++,this.excess++){let i=t.charCodeAt(a);if(this.treeIndex=I6(r,n,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===Tn.Attribute&&(o===0||C6(i))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],o=(n&io.VALUE_LENGTH)>>14,o!==0){if(i===Gt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Tn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:a,decodeTree:r}=this,n=(r[a]&io.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,a,r){let{decodeTree:n}=this;return this.emitCodePoint(a===1?n[t]&~io.VALUE_LENGTH:n[t+1],r),a===3&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case Ut.NamedEntity:return this.result!==0&&(this.decodeMode!==Tn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ut.NumericDecimal:return this.emitNumericEntity(0,2);case Ut.NumericHex:return this.emitNumericEntity(0,3);case Ut.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ut.EntityStart:return 0}}};function DC(e){let t="",a=new Xd(e,r=>t+=T0(r));return function(n,o){let i=0,s=0;for(;(s=n.indexOf("&",s))>=0;){t+=n.slice(i,s),a.startEntity(o);let l=a.write(n,s+1);if(l<0){i=s+a.end();break}i=s+l,s=l===0?i+1:i}let u=t+n.slice(i);return t="",u}}function I6(e,t,a,r){let n=(t&io.BRANCH_LENGTH)>>7,o=t&io.JUMP_TABLE;if(n===0)return o!==0&&r===o?a:-1;if(o){let u=r-o;return u<0||u>=n?-1:e[a+u]-1}let i=a,s=i+n-1;for(;i<=s;){let u=i+s>>>1,l=e[u];if(l<r)i=u+1;else if(l>r)s=u-1;else return e[u+n]}return-1}var _K=DC(NC),BK=DC(MC);function ef(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var k6=new Map(ef([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(ef([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(ef([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(ef([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var N0=/["&'<>$\x80-\uFFFF]/g,OC=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),_C=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function hl(e){let t="",a=0,r;for(;(r=N0.exec(e))!==null;){let n=r.index,o=e.charCodeAt(n),i=OC.get(o);i!==void 0?(t+=e.substring(a,n)+i,a=n+1):(t+=`${e.substring(a,n)}&#x${_C(e,n).toString(16)};`,a=N0.lastIndex+=+((o&64512)===55296))}return t+e.substr(a)}function M0(e,t){return function(r){let n,o=0,i="";for(;n=e.exec(r);)o!==n.index&&(i+=r.substring(o,n.index)),i+=t.get(n[0].charCodeAt(0)),o=n.index+1;return i+r.substring(o)}}var BC=M0(/[&<>'"]/g,OC),tf=M0(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),af=M0(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var FC;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(FC||(FC={}));var HC;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(HC||(HC={}));var UC=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),GC=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e]));var E6=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function T6(e){return e.replace(/"/g,"&quot;")}function R6(e,t){var a;if(!e)return;let r=((a=t.encodeEntities)!==null&&a!==void 0?a:t.decodeEntities)===!1?T6:t.xmlMode||t.encodeEntities!=="utf8"?hl:tf;return Object.keys(e).map(n=>{var o,i;let s=(o=e[n])!==null&&o!==void 0?o:"";return t.xmlMode==="foreign"&&(n=(i=GC.get(n))!==null&&i!==void 0?i:n),!t.emptyAttrs&&!t.xmlMode&&s===""?n:`${n}="${r(s)}"`}).join(" ")}var WC=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function _0(e,t={}){let a="length"in e?e:[e],r="";for(let n=0;n<a.length;n++)r+=P6(a[n],t);return r}var jC=_0;function P6(e,t){switch(e.type){case b0:return _0(e.children,t);case I0:case v0:return O6(e);case y0:return F6(e);case C0:return B6(e);case A0:case w0:case S0:return D6(e,t);case x0:return _6(e,t)}}var N6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),M6=new Set(["svg","math"]);function D6(e,t){var a;t.xmlMode==="foreign"&&(e.name=(a=UC.get(e.name))!==null&&a!==void 0?a:e.name,e.parent&&N6.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&M6.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`,n=R6(e.attribs,t);return n&&(r+=` ${n}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&WC.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=_0(e.children,t)),(t.xmlMode||!WC.has(e.name))&&(r+=`</${e.name}>`)),r}function O6(e){return`<${e.data}>`}function _6(e,t){var a;let r=e.data||"";return((a=t.encodeEntities)!==null&&a!==void 0?a:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&E6.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?hl(r):af(r)),r}function B6(e){return`<![CDATA[${e.children[0].data}]]>`}function F6(e){return`<!--${e.data}-->`}function qC(e,t){return jC(e,t)}function H6(e,t){return sa(e)?e.children.map(a=>qC(a,t)).join(""):""}function rf(e){return Array.isArray(e)?e.map(rf).join(""):Vt(e)?e.name==="br"?`
585
+ `:rf(e.children):Es(e)?rf(e.children):Zr(e)?e.data:""}function gl(e){return Array.isArray(e)?e.map(gl).join(""):sa(e)&&!ml(e)?gl(e.children):Zr(e)?e.data:""}function B0(e){return Array.isArray(e)?e.map(B0).join(""):sa(e)&&(e.type===Ve.Tag||Es(e))?B0(e.children):Zr(e)?e.data:""}function KC(e){return sa(e)?e.children:[]}function QC(e){return e.parent||null}function z6(e){let t=QC(e);if(t!=null)return KC(t);let a=[e],{prev:r,next:n}=e;for(;r!=null;)a.unshift(r),{prev:r}=r;for(;n!=null;)a.push(n),{next:n}=n;return a}function V6(e,t){var a;return(a=e.attribs)===null||a===void 0?void 0:a[t]}function U6(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function G6(e){return e.name}function W6(e){let{next:t}=e;for(;t!==null&&!Vt(t);)({next:t}=t);return t}function j6(e){let{prev:t}=e;for(;t!==null&&!Vt(t);)({prev:t}=t);return t}function bl(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,a=t.lastIndexOf(e);a>=0&&t.splice(a,1)}e.next=null,e.prev=null,e.parent=null}function q6(e,t){let a=t.prev=e.prev;a&&(a.next=t);let r=t.next=e.next;r&&(r.prev=t);let n=t.parent=e.parent;if(n){let o=n.children;o[o.lastIndexOf(e)]=t,e.parent=null}}function K6(e,t){if(bl(t),t.next=null,t.parent=e,e.children.push(t)>1){let a=e.children[e.children.length-2];a.next=t,t.prev=a}else t.prev=null}function Q6(e,t){bl(t);let{parent:a}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=a,r){if(r.prev=t,a){let n=a.children;n.splice(n.lastIndexOf(r),0,t)}}else a&&a.children.push(t)}function Y6(e,t){if(bl(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let a=e.children[1];a.prev=t,t.next=a}else t.next=null}function J6(e,t){bl(t);let{parent:a}=e;if(a){let r=a.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=a,t.prev=e.prev,t.next=e,e.prev=t}function Ts(e,t,a=!0,r=1/0){return YC(e,Array.isArray(t)?t:[t],a,r)}function YC(e,t,a,r){let n=[],o=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=o[0].length){if(i.length===1)return n;o.shift(),i.shift();continue}let s=o[0][i[0]++];if(e(s)&&(n.push(s),--r<=0))return n;a&&sa(s)&&s.children.length>0&&(i.unshift(0),o.unshift(s.children))}}function $6(e,t){return t.find(e)}function nf(e,t,a=!0){let r=Array.isArray(t)?t:[t];for(let n=0;n<r.length;n++){let o=r[n];if(Vt(o)&&e(o))return o;if(a&&sa(o)&&o.children.length>0){let i=nf(e,o.children,!0);if(i)return i}}return null}function JC(e,t){return(Array.isArray(t)?t:[t]).some(a=>Vt(a)&&e(a)||sa(a)&&JC(e,a.children))}function Z6(e,t){let a=[],r=[Array.isArray(t)?t:[t]],n=[0];for(;;){if(n[0]>=r[0].length){if(r.length===1)return a;r.shift(),n.shift();continue}let o=r[0][n[0]++];Vt(o)&&e(o)&&a.push(o),sa(o)&&o.children.length>0&&(n.unshift(0),r.unshift(o.children))}}var of={tag_name(e){return typeof e=="function"?t=>Vt(t)&&e(t.name):e==="*"?Vt:t=>Vt(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>Zr(t)&&e(t.data):t=>Zr(t)&&t.data===e}};function F0(e,t){return typeof t=="function"?a=>Vt(a)&&t(a.attribs[e]):a=>Vt(a)&&a.attribs[e]===t}function X6(e,t){return a=>e(a)||t(a)}function $C(e){let t=Object.keys(e).map(a=>{let r=e[a];return Object.prototype.hasOwnProperty.call(of,a)?of[a](r):F0(a,r)});return t.length===0?null:t.reduce(X6)}function e_(e,t){let a=$C(e);return a?a(t):!0}function t_(e,t,a,r=1/0){let n=$C(e);return n?Ts(n,t,a,r):[]}function a_(e,t,a=!0){return Array.isArray(t)||(t=[t]),nf(F0("id",e),t,a)}function pi(e,t,a=!0,r=1/0){return Ts(of.tag_name(e),t,a,r)}function r_(e,t,a=!0,r=1/0){return Ts(F0("class",e),t,a,r)}function n_(e,t,a=!0,r=1/0){return Ts(of.tag_type(e),t,a,r)}function o_(e){let t=e.length;for(;--t>=0;){let a=e[t];if(t>0&&e.lastIndexOf(a,t-1)>=0){e.splice(t,1);continue}for(let r=a.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var tr;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(tr||(tr={}));function ZC(e,t){let a=[],r=[];if(e===t)return 0;let n=sa(e)?e:e.parent;for(;n;)a.unshift(n),n=n.parent;for(n=sa(t)?t:t.parent;n;)r.unshift(n),n=n.parent;let o=Math.min(a.length,r.length),i=0;for(;i<o&&a[i]===r[i];)i++;if(i===0)return tr.DISCONNECTED;let s=a[i-1],u=s.children,l=a[i],c=r[i];return u.indexOf(l)>u.indexOf(c)?s===t?tr.FOLLOWING|tr.CONTAINED_BY:tr.FOLLOWING:s===e?tr.PRECEDING|tr.CONTAINS:tr.PRECEDING}function i_(e){return e=e.filter((t,a,r)=>!r.includes(t,a+1)),e.sort((t,a)=>{let r=ZC(t,a);return r&tr.PRECEDING?-1:r&tr.FOLLOWING?1:0}),e}function xl(e){let t=sf(d_,e);return t?t.name==="feed"?s_(t):u_(t):null}function s_(e){var t;let a=e.children,r={type:"atom",items:pi("entry",a).map(i=>{var s;let{children:u}=i,l={media:XC(u)};Ra(l,"id","id",u),Ra(l,"title","title",u);let c=(s=sf("link",u))===null||s===void 0?void 0:s.attribs.href;c&&(l.link=c);let d=so("summary",u)||so("content",u);d&&(l.description=d);let f=so("updated",u);return f&&(l.pubDate=new Date(f)),l})};Ra(r,"id","id",a),Ra(r,"title","title",a);let n=(t=sf("link",a))===null||t===void 0?void 0:t.attribs.href;n&&(r.link=n),Ra(r,"description","subtitle",a);let o=so("updated",a);return o&&(r.updated=new Date(o)),Ra(r,"author","email",a,!0),r}function u_(e){var t,a;let r=(a=(t=sf("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&a!==void 0?a:[],n={type:e.name.substr(0,3),id:"",items:pi("item",e.children).map(i=>{let{children:s}=i,u={media:XC(s)};Ra(u,"id","guid",s),Ra(u,"title","title",s),Ra(u,"link","link",s),Ra(u,"description","description",s);let l=so("pubDate",s)||so("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};Ra(n,"title","title",r),Ra(n,"link","link",r),Ra(n,"description","description",r);let o=so("lastBuildDate",r);return o&&(n.updated=new Date(o)),Ra(n,"author","managingEditor",r,!0),n}var l_=["url","type","lang"],c_=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function XC(e){return pi("media:content",e).map(t=>{let{attribs:a}=t,r={medium:a.medium,isDefault:!!a.isDefault};for(let n of l_)a[n]&&(r[n]=a[n]);for(let n of c_)a[n]&&(r[n]=parseInt(a[n],10));return a.expression&&(r.expression=a.expression),r})}function sf(e,t){return pi(e,t,!0,1)[0]}function so(e,t,a=!1){return gl(pi(e,t,a,1)).trim()}function Ra(e,t,a,r,n=!1){let o=so(a,r,n);o&&(e[t]=o)}function d_(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function eI(e,t){let a=new En(void 0,t);return new oo(a,t).end(e),a.root}function tI(e,t){return eI(e,t).children}function f_(e,t,a){let r=new En(n=>e(n,r.root),t,a);return new oo(r,t)}function p_(e,t,a){let r=new En(e,t,a);return new oo(r,t)}var m_={xmlMode:!0};function h_(e,t=m_){return xl(tI(e,t))}var aI=new Set(["ARTICLE","ASIDE","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","COL","COLGROUP","DD","DIV","DL","DT","EMBED","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","LI","UL","OL","P"]),V0=-1,U0=1,G0=4,W0=8,j0=128,rI=1,q0=2,K0=4,nI=8,oI=16,iI=32,mi="http://www.w3.org/2000/svg";var{assign:sI,create:uI,defineProperties:lI,entries:cI,getOwnPropertyDescriptors:BQ,keys:dI,setPrototypeOf:Et}=Object;var Ir=String;var Mt=e=>e.nodeType===1?e[ie]:e,ar=({ownerDocument:e})=>e[Sr].ignoreCase,Pa=(e,t)=>{e[Y]=t,t[Je]=e},vl=(e,t,a)=>{Pa(e,t),Pa(Mt(t),a)},Q0=(e,t,a,r)=>{Pa(e,t),Pa(Mt(a),r)},Rn=(e,t,a)=>{Pa(e,t),Pa(t,a)},yl=({localName:e,ownerDocument:t})=>t[Sr].ignoreCase?e.toUpperCase():e,uf=(e,t)=>{e&&(e[Y]=t),t&&(t[Je]=e)},lf=(e,t)=>{let a=e.createDocumentFragment(),r=e.createElement("");r.innerHTML=t;let{firstChild:n,lastChild:o}=r;if(n){Q0(a,n,o,a[ie]);let i=n;do i.parentNode=a;while(i!==o&&(i=Mt(i)[Y]))}return a};var Xr=new WeakMap;var df=!1,hi=new WeakMap,Pn=new WeakMap,gi=(e,t,a,r)=>{df&&Pn.has(e)&&e.attributeChangedCallback&&e.constructor.observedAttributes.includes(t)&&e.attributeChangedCallback(t,a,r)},mI=(e,t)=>a=>{if(Pn.has(a)){let r=Pn.get(a);r.connected!==t&&a.isConnected===t&&(r.connected=t,e in a&&a[e]())}},fI=mI("connectedCallback",!0),Al=e=>{if(df){fI(e),Xr.has(e)&&(e=Xr.get(e).shadowRoot);let{[Y]:t,[ie]:a}=e;for(;t!==a;)t.nodeType===1&&fI(t),t=t[Y]}},pI=mI("disconnectedCallback",!1),hI=e=>{if(df){pI(e),Xr.has(e)&&(e=Xr.get(e).shadowRoot);let{[Y]:t,[ie]:a}=e;for(;t!==a;)t.nodeType===1&&pI(t),t=t[Y]}},cf=class{constructor(t){this.ownerDocument=t,this.registry=new Map,this.waiting=new Map,this.active=!1}define(t,a,r={}){let{ownerDocument:n,registry:o,waiting:i}=this;if(o.has(t))throw new Error("unable to redefine "+t);if(hi.has(a))throw new Error("unable to redefine the same class: "+a);this.active=df=!0;let{extends:s}=r;hi.set(a,{ownerDocument:n,options:{is:s?t:""},localName:s||t});let u=s?l=>l.localName===s&&l.getAttribute("is")===t:l=>l.localName===t;if(o.set(t,{Class:a,check:u}),i.has(t)){for(let l of i.get(t))l(a);i.delete(t)}n.querySelectorAll(s?`${s}[is="${t}"]`:t).forEach(this.upgrade,this)}upgrade(t){if(Pn.has(t))return;let{ownerDocument:a,registry:r}=this,n=t.getAttribute("is")||t.localName;if(r.has(n)){let{Class:o,check:i}=r.get(n);if(i(t)){let{attributes:s,isConnected:u}=t;for(let c of s)t.removeAttributeNode(c);let l=cI(t);for(let[c]of l)delete t[c];Et(t,o.prototype),a[no]={element:t,values:l},new o(a,n),Pn.set(t,{connected:u});for(let c of s)t.setAttributeNode(c);u&&t.connectedCallback&&t.connectedCallback()}}}whenDefined(t){let{registry:a,waiting:r}=this;return new Promise(n=>{a.has(t)?n(a.get(t).Class):(r.has(t)||r.set(t,[]),r.get(t).push(n))})}get(t){let a=this.registry.get(t);return a&&a.Class}getName(t){if(hi.has(t)){let{localName:a}=hi.get(t);return a}return null}};var{Parser:g_}=z0,gI=!0,bi=(e,t,a)=>{let r=e[ie];return t.parentNode=e,vl(r[Je],t,r),a&&t.nodeType===1&&Al(t),t},b_=(e,t,a,r,n)=>{a[Fe]=r,a.ownerElement=e,Rn(t[Je],a,t),a.name==="class"&&(e.className=r),n&&gi(e,a.name,null,r)};var ff=(e,t,a)=>{let{active:r,registry:n}=e[xa],o=e,i=null,s=!1;gI=!1;let u=new g_({onprocessinginstruction(l,c){l.toLowerCase()==="!doctype"&&(e.doctype=c.slice(l.length).trim())},onopentag(l,c){let d=!0;if(t){if(i)o=bi(o,e.createElementNS(mi,l),r),o.ownerSVGElement=i,d=!1;else if(l==="svg"||l==="SVG")i=e.createElementNS(mi,l),o=bi(o,i,r),d=!1;else if(r){let p=l.includes("-")?l:c.is||"";if(p&&n.has(p)){let{Class:g}=n.get(p);o=bi(o,new g,r),delete c.is,d=!1}}}d&&(o=bi(o,e.createElement(l),!1));let f=o[ie];for(let p of dI(c))b_(o,f,e.createAttribute(p),c[p],r)},oncomment(l){bi(o,e.createComment(l),r)},ontext(l){s?bi(o,e.createCDATASection(l),r):bi(o,e.createTextNode(l),r)},oncdatastart(){s=!0},oncdataend(){s=!1},onclosetag(){t&&o===i&&(i=null),o=o.parentNode}},{lowerCaseAttributeNames:!1,decodeEntities:!0,xmlMode:!t});return u.write(a),u.end(),gI=!0,e};var Rs=new Map,De=(e,t)=>{for(let a of[].concat(e))Rs.set(a,t),Rs.set(a.toUpperCase(),t)};var bI=({[Y]:e,[ie]:t},a)=>{for(;e!==t;){switch(e.nodeType){case 2:Y0(e,a);break;case 3:case 8:case 4:J0(e,a);break;case 1:Z0(e,a),e=Mt(e);break;case 10:$0(e,a);break}e=e[Y]}let r=a.length-1,n=a[r];typeof n=="number"&&n<0?a[r]+=-1:a.push(-1)},Y0=(e,t)=>{t.push(2,e.name);let a=e[Fe].trim();a&&t.push(a)},J0=(e,t)=>{let a=e[Fe];a.trim()&&t.push(e.nodeType,a)},xI=(e,t)=>{t.push(e.nodeType),bI(e,t)},$0=({name:e,publicId:t,systemId:a},r)=>{r.push(10,e),t&&r.push(t),a&&r.push(a)},Z0=(e,t)=>{t.push(1,e.localName),bI(e,t)};var yI=(e,t,a,r,n,o,i)=>({type:e,target:t,addedNodes:r,removedNodes:n,attributeName:o,oldValue:i,previousSibling:a?.previousSibling||null,nextSibling:a?.nextSibling||null}),vI=(e,t,a,r,n,o)=>{if(!r||r.includes(a)){let{callback:i,records:s,scheduled:u}=e;s.push(yI("attributes",t,null,[],[],a,n?o:void 0)),u||(e.scheduled=!0,Promise.resolve().then(()=>{e.scheduled=!1,i(s.splice(0),e)}))}},wl=(e,t,a)=>{let{ownerDocument:r}=e,{active:n,observers:o}=r[$r];if(n){for(let i of o)for(let[s,{childList:u,subtree:l,attributes:c,attributeFilter:d,attributeOldValue:f}]of i.nodes)if(u){if(l&&(s===r||s.contains(e))||!l&&s.children.includes(e)){vI(i,e,t,d,f,a);break}}else if(c&&s===e){vI(i,e,t,d,f,a);break}}},uo=(e,t)=>{let{ownerDocument:a}=e,{active:r,observers:n}=a[$r];if(r){for(let o of n)for(let[i,{subtree:s,childList:u,characterData:l}]of o.nodes)if(u&&(t&&(i===t||s&&i.contains(t))||!t&&(s&&(i===a||i.contains(e))||!s&&i[l?"childNodes":"children"].includes(e)))){let{callback:c,records:d,scheduled:f}=o;d.push(yI("childList",i,e,t?[]:[e],t?[e]:[])),f||(o.scheduled=!0,Promise.resolve().then(()=>{o.scheduled=!1,c(d.splice(0),o)}));break}}},pf=class{constructor(t){let a=new Set;this.observers=a,this.active=!1,this.class=class{constructor(n){this.callback=n,this.nodes=new Map,this.records=[],this.scheduled=!1}disconnect(){this.records.splice(0),this.nodes.clear(),a.delete(this),t[$r].active=!!a.size}observe(n,o={subtree:!1,childList:!1,attributes:!1,attributeFilter:null,attributeOldValue:!1,characterData:!1}){("attributeOldValue"in o||"attributeFilter"in o)&&(o.attributes=!0),o.childList=!!o.childList,o.subtree=!!o.subtree,this.nodes.set(n,o),a.add(this),t[$r].active=!0}takeRecords(){return this.records.splice(0)}}}};var AI=new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","class","contenteditable","controls","default","defer","disabled","draggable","formnovalidate","hidden","id","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","style","truespeed"]),Sl=(e,t)=>{let{[Fe]:a,name:r}=t;t.ownerElement=e,Rn(e,t,e[Y]),r==="class"&&(e.className=a),wl(e,r,null),gi(e,r,null,a)},X0=(e,t)=>{let{[Fe]:a,name:r}=t;Pa(t[Je],t[Y]),t.ownerElement=t[Je]=t[Y]=null,r==="class"&&(e[ao]=null),wl(e,r,a),gi(e,r,a,null)},Ne={get(e,t){return e.hasAttribute(t)},set(e,t,a){a?e.setAttribute(t,""):e.removeAttribute(t)}},kr={get(e,t){return parseFloat(e.getAttribute(t)||0)},set(e,t,a){e.setAttribute(t,a)}},U={get(e,t){return e.getAttribute(t)||""},set(e,t,a){e.setAttribute(t,a)}};var mf=new WeakMap;function x_(e,t){return typeof t=="function"?t.call(e.target,e):t.handleEvent(e),e._stopImmediatePropagationFlag}function v_({currentTarget:e,target:t}){let a=mf.get(e);if(a&&a.has(this.type)){let r=a.get(this.type);e===t?this.eventPhase=this.AT_TARGET:this.eventPhase=this.BUBBLING_PHASE,this.currentTarget=e,this.target=t;for(let[n,o]of r)if(o&&o.once&&r.delete(n),x_(this,n))break;return delete this.currentTarget,delete this.target,this.cancelBubble}}var lo=class{constructor(){mf.set(this,new Map)}_getParent(){return null}addEventListener(t,a,r){let n=mf.get(this);n.has(t)||n.set(t,new Map),n.get(t).set(a,r)}removeEventListener(t,a){let r=mf.get(this);if(r.has(t)){let n=r.get(t);n.delete(a)&&!n.size&&r.delete(t)}}dispatchEvent(t){let a=this;for(t.eventPhase=t.CAPTURING_PHASE;a;)a.dispatchEvent&&t._path.push({currentTarget:a,target:this}),a=t.bubbles&&a._getParent&&a._getParent();return t._path.some(v_,t),t._path=[],t.eventPhase=t.NONE,!t.defaultPrevented}};var Dt=class extends Array{item(t){return t<this.length?this[t]:null}};var wI=({parentNode:e})=>{let t=0;for(;e;)t++,e=e.parentNode;return t},Na=class extends lo{static get ELEMENT_NODE(){return 1}static get ATTRIBUTE_NODE(){return 2}static get TEXT_NODE(){return 3}static get CDATA_SECTION_NODE(){return 4}static get COMMENT_NODE(){return 8}static get DOCUMENT_NODE(){return 9}static get DOCUMENT_FRAGMENT_NODE(){return 11}static get DOCUMENT_TYPE_NODE(){return 10}constructor(t,a,r){super(),this.ownerDocument=t,this.localName=a,this.nodeType=r,this.parentNode=null,this[Y]=null,this[Je]=null}get ELEMENT_NODE(){return 1}get ATTRIBUTE_NODE(){return 2}get TEXT_NODE(){return 3}get CDATA_SECTION_NODE(){return 4}get COMMENT_NODE(){return 8}get DOCUMENT_NODE(){return 9}get DOCUMENT_FRAGMENT_NODE(){return 11}get DOCUMENT_TYPE_NODE(){return 10}get baseURI(){let t=this.nodeType===9?this:this.ownerDocument;if(t){let a=t.querySelector("base");if(a)return a.getAttribute("href");let{location:r}=t.defaultView;if(r)return r.href}return null}get isConnected(){return!1}get nodeName(){return this.localName}get parentElement(){return null}get previousSibling(){return null}get previousElementSibling(){return null}get nextSibling(){return null}get nextElementSibling(){return null}get childNodes(){return new Dt}get firstChild(){return null}get lastChild(){return null}get nodeValue(){return null}set nodeValue(t){}get textContent(){return null}set textContent(t){}normalize(){}cloneNode(){return null}contains(){return!1}insertBefore(t,a){return t}appendChild(t){return t}replaceChild(t,a){return a}removeChild(t){return t}toString(){return""}hasChildNodes(){return!!this.lastChild}isSameNode(t){return this===t}compareDocumentPosition(t){let a=0;if(this!==t){let r=wI(this),n=wI(t);if(r<n)a+=K0,this.contains(t)&&(a+=oI);else if(n<r)a+=q0,t.contains(this)&&(a+=nI);else if(r&&n){let{childNodes:o}=this.parentNode;o.indexOf(this)<o.indexOf(t)?a+=K0:a+=q0}(!r||!n)&&(a+=iI,a+=rI)}return a}isEqualNode(t){if(this===t)return!0;if(this.nodeType===t.nodeType){switch(this.nodeType){case 9:case 11:{let a=this.childNodes,r=t.childNodes;return a.length===r.length&&a.every((n,o)=>n.isEqualNode(r[o]))}}return this.toString()===t.toString()}return!1}_getParent(){return this.parentNode}getRootNode(){let t=this;for(;t.parentNode;)t=t.parentNode;return t}};var{replace:y_}="",A_=/[<>&\xA0]/g,w_={"\xA0":"&#160;","&":"&amp;","<":"&lt;",">":"&gt;"},S_=e=>w_[e],Ps=e=>y_.call(e,A_,S_);var C_=/"/g,nr=class e extends Na{constructor(t,a,r=""){super(t,a,2),this.ownerElement=null,this.name=Ir(a),this[Fe]=Ir(r),this[ws]=!1}get value(){return this[Fe]}set value(t){let{[Fe]:a,name:r,ownerElement:n}=this;this[Fe]=Ir(t),this[ws]=!0,n&&(wl(n,r,a),gi(n,r,a,this[Fe]))}cloneNode(){let{ownerDocument:t,name:a,[Fe]:r}=this;return new e(t,a,r)}toString(){let{name:t,[Fe]:a}=this;if(AI.has(t)&&!a)return ar(this)?t:`${t}=""`;let r=(ar(this)?a:Ps(a)).replace(C_,"&quot;");return`${t}="${r}"`}toJSON(){let t=[];return Y0(this,t),t}};var hf=({ownerDocument:e,parentNode:t})=>{for(;t;){if(t===e)return!0;t=t.parentNode||t.host}return!1},gf=({parentNode:e})=>{if(e)switch(e.nodeType){case 9:case 11:return null}return e},Nn=({[Je]:e})=>{switch(e?e.nodeType:0){case-1:return e[Ht];case 3:case 8:case 4:return e}return null},Er=e=>{let t=Mt(e)[Y];return t&&(t.nodeType===-1?null:t)};var Ns=e=>{let t=Er(e);for(;t&&t.nodeType!==1;)t=Er(t);return t},bf=e=>{let t=Nn(e);for(;t&&t.nodeType!==1;)t=Nn(t);return t};var eb=(e,t)=>{let a=e.createDocumentFragment();return a.append(...t),a},xf=(e,t)=>{let{ownerDocument:a,parentNode:r}=e;r&&r.insertBefore(eb(a,t),e)},vf=(e,t)=>{let{ownerDocument:a,parentNode:r}=e;r&&r.insertBefore(eb(a,t),Mt(e)[Y])},Cl=(e,t)=>{let{ownerDocument:a,parentNode:r}=e;r&&(t.includes(e)&&Cl(e,[e=e.cloneNode()]),r.insertBefore(eb(a,t),e),e.remove())},yf=(e,t,a)=>{let{parentNode:r,nodeType:n}=t;(e||a)&&(uf(e,a),t[Je]=null,Mt(t)[Y]=null),r&&(t.parentNode=null,uo(t,r),n===1&&hI(t))};var Tr=class extends Na{constructor(t,a,r,n){super(t,a,r),this[Fe]=Ir(n)}get isConnected(){return hf(this)}get parentElement(){return gf(this)}get previousSibling(){return Nn(this)}get nextSibling(){return Er(this)}get previousElementSibling(){return bf(this)}get nextElementSibling(){return Ns(this)}before(...t){xf(this,t)}after(...t){vf(this,t)}replaceWith(...t){Cl(this,t)}remove(){yf(this[Je],this,this[Y])}get data(){return this[Fe]}set data(t){this[Fe]=Ir(t),uo(this,this.parentNode)}get nodeValue(){return this.data}set nodeValue(t){this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}get length(){return this.data.length}substringData(t,a){return this.data.substr(t,a)}appendData(t){this.data+=t}insertData(t,a){let{data:r}=this;this.data=r.slice(0,t)+a+r.slice(t)}deleteData(t,a){let{data:r}=this;this.data=r.slice(0,t)+r.slice(t+a)}replaceData(t,a,r){let{data:n}=this;this.data=n.slice(0,t)+r+n.slice(t+a)}toJSON(){let t=[];return J0(this,t),t}};var co=class e extends Tr{constructor(t,a=""){super(t,"#cdatasection",4,a)}cloneNode(){let{ownerDocument:t,[Fe]:a}=this;return new e(t,a)}toString(){return`<![CDATA[${this[Fe]}]]>`}};var fo=class e extends Tr{constructor(t,a=""){super(t,"#comment",8,a)}cloneNode(){let{ownerDocument:t,[Fe]:a}=this;return new e(t,a)}toString(){return`<!--${this[Fe]}-->`}};function Rr(){return!0}function $e(){return!1}var fe;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(fe||(fe={}));var vt;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(vt||(vt={}));var SI=/^[^#\\]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\u00B0-\uFFFF-])+/,I_=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,be;(function(e){e[e.LeftParenthesis=40]="LeftParenthesis",e[e.RightParenthesis=41]="RightParenthesis",e[e.LeftSquareBracket=91]="LeftSquareBracket",e[e.RightSquareBracket=93]="RightSquareBracket",e[e.Comma=44]="Comma",e[e.Period=46]="Period",e[e.Colon=58]="Colon",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Plus=43]="Plus",e[e.Tilde=126]="Tilde",e[e.QuestionMark=63]="QuestionMark",e[e.ExclamationMark=33]="ExclamationMark",e[e.Slash=47]="Slash",e[e.Equal=61]="Equal",e[e.Dollar=36]="Dollar",e[e.Pipe=124]="Pipe",e[e.Circumflex=94]="Circumflex",e[e.Asterisk=42]="Asterisk",e[e.GreaterThan=62]="GreaterThan",e[e.LessThan=60]="LessThan",e[e.Hash=35]="Hash",e[e.LowerI=105]="LowerI",e[e.LowerS=115]="LowerS",e[e.BackSlash=92]="BackSlash",e[e.Space=32]="Space",e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn"})(be||(be={}));var k_=new Map([[be.Tilde,vt.Element],[be.Circumflex,vt.Start],[be.Dollar,vt.End],[be.Asterisk,vt.Any],[be.ExclamationMark,vt.Not],[be.Pipe,vt.Hyphen]]),L_=new Set(["has","not","matches","is","where","host","host-context"]),E_=new Set(["before","after","first-line","first-letter"]);function Af(e){switch(e.type){case fe.Adjacent:case fe.Child:case fe.Descendant:case fe.Parent:case fe.Sibling:case fe.ColumnCombinator:return!0;case fe.Attribute:case fe.Pseudo:case fe.PseudoElement:case fe.Tag:case fe.Universal:return!1}}var T_=new Set(["contains","icontains"]);function R_(e,t,a){let r=Number.parseInt(t,16)-65536;return Number.isNaN(r)||a?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Il(e){return e.replace(I_,R_)}function tb(e){return e===be.SingleQuote||e===be.DoubleQuote}function CI(e){return e===be.Space||e===be.Tab||e===be.NewLine||e===be.FormFeed||e===be.CarriageReturn}function xi(e){let t=[],a=II(t,`${e}`,0);if(a<e.length)throw new Error(`Unmatched selector: ${e.slice(a)}`);return t}function II(e,t,a){let r=[];function n(d){let f=t.slice(a+d).match(SI);if(!f)throw new Error(`Expected name, found ${t.slice(a)}`);let[p]=f;return a+=d+p.length,Il(p)}function o(d){for(a+=d;a<t.length&&CI(t.charCodeAt(a));)a++}function i(){a+=1;let d=a;for(let f=1;a<t.length;a++)switch(t.charCodeAt(a)){case be.BackSlash:{a+=1;break}case be.LeftParenthesis:{f+=1;break}case be.RightParenthesis:{if(f-=1,f===0)return Il(t.slice(d,a++));break}}throw new Error("Parenthesis not matched")}function s(){if(r.length>0&&Af(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function u(d){if(r.length>0&&r[r.length-1].type===fe.Descendant){r[r.length-1].type=d;return}s(),r.push({type:d})}function l(d,f){r.push({type:fe.Attribute,name:d,action:f,value:n(1),namespace:null,ignoreCase:"quirks"})}function c(){if(r.length>0&&r[r.length-1].type===fe.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(o(0),t.length===a)return a;e:for(;a<t.length;){let d=t.charCodeAt(a);switch(d){case be.Space:case be.Tab:case be.NewLine:case be.FormFeed:case be.CarriageReturn:{(r.length===0||r[0].type!==fe.Descendant)&&(s(),r.push({type:fe.Descendant})),o(1);break}case be.GreaterThan:{u(fe.Child),o(1);break}case be.LessThan:{u(fe.Parent),o(1);break}case be.Tilde:{u(fe.Sibling),o(1);break}case be.Plus:{u(fe.Adjacent),o(1);break}case be.Period:{l("class",vt.Element);break}case be.Hash:{l("id",vt.Equals);break}case be.LeftSquareBracket:{o(1);let f,p=null;t.charCodeAt(a)===be.Pipe?f=n(1):t.startsWith("*|",a)?(p="*",f=n(2)):(f=n(0),t.charCodeAt(a)===be.Pipe&&t.charCodeAt(a+1)!==be.Equal&&(p=f,f=n(1))),o(0);let g=vt.Exists,m=k_.get(t.charCodeAt(a));if(m){if(g=m,t.charCodeAt(a+1)!==be.Equal)throw new Error("Expected `=`");o(2)}else t.charCodeAt(a)===be.Equal&&(g=vt.Equals,o(1));let x="",v=null;if(g!=="exists"){if(tb(t.charCodeAt(a))){let y=t.charCodeAt(a);a+=1;let S=a;for(;a<t.length&&t.charCodeAt(a)!==y;)a+=t.charCodeAt(a)===be.BackSlash?2:1;if(t.charCodeAt(a)!==y)throw new Error("Attribute value didn't end");x=Il(t.slice(S,a)),a+=1}else{let y=a;for(;a<t.length&&!CI(t.charCodeAt(a))&&t.charCodeAt(a)!==be.RightSquareBracket;)a+=t.charCodeAt(a)===be.BackSlash?2:1;x=Il(t.slice(y,a))}switch(o(0),t.charCodeAt(a)|32){case be.LowerI:{v=!0,o(1);break}case be.LowerS:{v=!1,o(1);break}}}if(t.charCodeAt(a)!==be.RightSquareBracket)throw new Error("Attribute selector didn't terminate");a+=1;let w={type:fe.Attribute,name:f,action:g,value:x,namespace:p,ignoreCase:v};r.push(w);break}case be.Colon:{if(t.charCodeAt(a+1)===be.Colon){r.push({type:fe.PseudoElement,name:n(2).toLowerCase(),data:t.charCodeAt(a)===be.LeftParenthesis?i():null});break}let f=n(1).toLowerCase();if(E_.has(f)){r.push({type:fe.PseudoElement,name:f,data:null});break}let p=null;if(t.charCodeAt(a)===be.LeftParenthesis)if(L_.has(f)){if(tb(t.charCodeAt(a+1)))throw new Error(`Pseudo-selector ${f} cannot be quoted`);if(p=[],a=II(p,t,a+1),t.charCodeAt(a)!==be.RightParenthesis)throw new Error(`Missing closing parenthesis in :${f} (${t})`);a+=1}else{if(p=i(),T_.has(f)){let g=p.charCodeAt(0);g===p.charCodeAt(p.length-1)&&tb(g)&&(p=p.slice(1,-1))}p=Il(p)}r.push({type:fe.Pseudo,name:f,data:p});break}case be.Comma:{c(),r=[],o(1);break}default:{if(t.startsWith("/*",a)){let g=t.indexOf("*/",a+2);if(g===-1)throw new Error("Comment was not terminated");a=g+2,r.length===0&&o(0);break}let f=null,p;if(d===be.Asterisk)a+=1,p="*";else if(d===be.Pipe){if(p="",t.charCodeAt(a+1)===be.Pipe){u(fe.ColumnCombinator),o(2);break}}else if(SI.test(t.slice(a)))p=n(0);else break e;t.charCodeAt(a)===be.Pipe&&t.charCodeAt(a+1)!==be.Pipe&&(f=p,t.charCodeAt(a+1)===be.Asterisk?(p="*",a+=2):p=n(1)),r.push(p==="*"?{type:fe.Universal,namespace:f}:{type:fe.Tag,name:p,namespace:f})}}}return c(),a}var Tt;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(Tt||(Tt={}));function kI(e){return e.type===Tt.Tag||e.type===Tt.Script||e.type===Tt.Style}var LI=Tt.Root,EI=Tt.Text,TI=Tt.Directive,RI=Tt.Comment,PI=Tt.Script,NI=Tt.Style,MI=Tt.Tag,DI=Tt.CDATA,pJ=Tt.Doctype;function $t(e){return kI(e)}function ab(e){return e.type===Tt.CDATA}function vi(e){return e.type===Tt.Text}function OI(e){return e.type===Tt.Comment}function Ma(e){return Object.hasOwn(e,"children")}var sb={};_r(sb,{DocumentPosition:()=>or,append:()=>sB,appendChild:()=>iB,compareDocumentPosition:()=>YI,existsOne:()=>BI,filter:()=>Ds,find:()=>_I,findAll:()=>N_,findOne:()=>wf,getAttributeValue:()=>dB,getChildren:()=>JI,getElementById:()=>__,getElements:()=>O_,getElementsByClassName:()=>B_,getElementsByTagName:()=>yi,getElementsByTagType:()=>F_,getFeed:()=>$_,getInnerHTML:()=>J_,getName:()=>pB,getOuterHTML:()=>KI,getParent:()=>$I,getSiblings:()=>cB,getText:()=>If,hasAttrib:()=>fB,innerText:()=>ib,nextElementSibling:()=>mB,prepend:()=>lB,prependChild:()=>uB,prevElementSibling:()=>hB,removeElement:()=>Ll,removeSubsets:()=>rB,replaceElement:()=>oB,testElement:()=>D_,textContent:()=>kl,uniqueSort:()=>nB});function Ds(e,t,a=!0,r=Number.POSITIVE_INFINITY){return _I(e,Array.isArray(t)?t:[t],a,r)}function _I(e,t,a,r){let n=[],o=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=o[0].length){if(i.length===1)return n;o.shift(),i.shift();continue}let s=o[0][i[0]++];if(e(s)&&(n.push(s),--r<=0))return n;a&&Ma(s)&&s.children.length>0&&(i.unshift(0),o.unshift(s.children))}}function wf(e,t,a=!0){let r=Array.isArray(t)?t:[t];for(let n of r){if($t(n)&&e(n))return n;if(a&&Ma(n)&&n.children.length>0){let o=wf(e,n.children,!0);if(o)return o}}return null}function BI(e,t){return(Array.isArray(t)?t:[t]).some(a=>$t(a)&&e(a)||Ma(a)&&BI(e,a.children))}function N_(e,t){let a=[],r=[Array.isArray(t)?t:[t]],n=[0];for(;;){if(n[0]>=r[0].length){if(r.length===1)return a;r.shift(),n.shift();continue}let o=r[0][n[0]++];$t(o)&&e(o)&&a.push(o),Ma(o)&&o.children.length>0&&(n.unshift(0),r.unshift(o.children))}}var Sf={tag_name(e){return typeof e=="function"?t=>$t(t)&&e(t.name):e==="*"?$t:t=>$t(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>vi(t)&&e(t.data):t=>vi(t)&&t.data===e}};function rb(e,t){return typeof t=="function"?a=>$t(a)&&t(a.attribs[e]):a=>$t(a)&&a.attribs[e]===t}function M_(e,t){return a=>e(a)||t(a)}function FI(e){let t=Object.keys(e).map(a=>{let r=e[a];return Object.hasOwn(Sf,a)?Sf[a](r):rb(a,r)});return t.length===0?null:t.reduce(M_)}function D_(e,t){let a=FI(e);return a?a(t):!0}function O_(e,t,a,r=Number.POSITIVE_INFINITY){let n=FI(e);return n?Ds(n,t,a,r):[]}function __(e,t,a=!0){return Array.isArray(t)||(t=[t]),wf(rb("id",e),t,a)}function yi(e,t,a=!0,r=Number.POSITIVE_INFINITY){return Ds(Sf.tag_name(e),t,a,r)}function B_(e,t,a=!0,r=Number.POSITIVE_INFINITY){return Ds(rb("class",e),t,a,r)}function F_(e,t,a=!0,r=Number.POSITIVE_INFINITY){return Ds(Sf.tag_type(e),t,a,r)}var H_=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),z_=typeof String.prototype.codePointAt=="function"?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t),V_=1342177476;function Cf(e){let t,a=0,{length:r}=e;for(let n=0;n<r;n++){let o=e.charCodeAt(n);if(o<128&&((V_>>>o&1)===0||o>=64||o<32))continue;if(t===void 0?t=e.substring(0,n):a!==n&&(t+=e.substring(a,n)),o<64){t+=H_.get(o),a=n+1;continue}let i=z_(e,n);t+=`&#x${i.toString(16)};`,i!==o&&n++,a=n+1}return t===void 0?e:(a<r&&(t+=e.substr(a)),t)}function HI(e,t){return function(r){let n,o=0,i="";for(;n=e.exec(r);)o!==n.index&&(i+=r.substring(o,n.index)),i+=t.get(n[0].charCodeAt(0)),o=n.index+1;return i+r.substring(o)}}var nb=HI(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),ob=HI(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var zI;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(zI||(zI={}));var VI;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(VI||(VI={}));var UI=new Map("altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath".split(" ").map(e=>[e.toLowerCase(),e])),GI=new Map("definitionURL attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits diffuseConstant edgeMode filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan".split(" ").map(e=>[e.toLowerCase(),e]));var U_=new Set("style script xmp iframe noembed noframes plaintext noscript".split(" ")),G_=new Set("area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr".split(" ")),W_=new Set(["svg","math"]),j_=new Set("mi mo mn ms mtext annotation-xml foreignObject desc title".split(" "));function q_(e,t={}){let a="length"in e?e:[e],r=t.xmlMode??!1,n="";for(let o=0;o<a.length;o++)n+=qI(a[o],t,r);return n}var WI=q_;function jI(e,t,a){let r="";for(let n=0;n<e.length;n++)r+=qI(e[n],t,a);return r}function qI(e,t,a){switch(e.type){case LI:return jI(e.children,t,a);case TI:return`<${e.data}>`;case RI:return`<!--${e.data}-->`;case DI:return`<![CDATA[${e.children[0].data}]]>`;case PI:case NI:case MI:return K_(e,t,a);case EI:{let r=e,n=r.data||"";return(t.encodeEntities??t.decodeEntities)!==!1&&!(!a&&r.parent&&U_.has(r.parent.name))?a||t.encodeEntities!=="utf8"?Cf(n):ob(n):n}}}function K_(e,t,a){a==="foreign"&&(e.name=UI.get(e.name)??e.name,e.parent&&j_.has(e.parent.name)&&(a=!1)),!a&&W_.has(e.name)&&(a="foreign");let{name:r,children:n}=e,o=!a&&G_.has(r),i=`<${r}${Y_(e.attribs,t,a)}`;return n.length===0&&(a?t.selfClosingTags!==!1:t.selfClosingTags&&o)?i+=a?"/>":" />":(i+=">",n.length>0&&(i+=jI(n,t,a)),o||(i+=`</${r}>`)),i}function Q_(e){return e.replaceAll('"',"&quot;")}function Y_(e,t,a){if(!e)return"";let r=(t.encodeEntities??t.decodeEntities)===!1?Q_:a||t.encodeEntities!=="utf8"?Cf:nb,n=a==="foreign",o=!!(t.emptyAttrs??a),i="";for(let s in e){if(!Object.hasOwn(e,s))continue;let u=e[s],l=n?GI.get(s)??s:s;i+=!o&&(u==null||u==="")?` ${l}`:` ${l}="${r(u==null?"":String(u))}"`}return i}function KI(e,t){return WI(e,t)}function J_(e,t){return Ma(e)?e.children.map(a=>KI(a,t)).join(""):""}function If(e){return Array.isArray(e)?e.map(If).join(""):$t(e)?e.name==="br"?`
586
+ `:If(e.children):ab(e)?If(e.children):vi(e)?e.data:""}function kl(e){return Array.isArray(e)?e.map(kl).join(""):Ma(e)&&!OI(e)?kl(e.children):vi(e)?e.data:""}function ib(e){return Array.isArray(e)?e.map(ib).join(""):Ma(e)&&(e.type===Tt.Tag||ab(e))?ib(e.children):vi(e)?e.data:""}function $_(e){let t=kf(aB,e);return t?t.name==="feed"?Z_(t):X_(t):null}function Z_(e){let t=e.children,a={type:"atom",items:yi("entry",t).map(o=>{let{children:i}=o,s={media:QI(i)};Da(s,"id","id",i),Da(s,"title","title",i);let u=kf("link",i)?.attribs.href;u&&(s.link=u);let l=po("summary",i)||po("content",i);l&&(s.description=l);let c=po("updated",i);return c&&(s.pubDate=new Date(c)),s})};Da(a,"id","id",t),Da(a,"title","title",t);let r=kf("link",t)?.attribs.href;r&&(a.link=r),Da(a,"description","subtitle",t);let n=po("updated",t);return n&&(a.updated=new Date(n)),Da(a,"author","email",t,!0),a}function X_(e){let t=kf("channel",e.children)?.children??[],a={type:e.name.substr(0,3),id:"",items:yi("item",e.children).map(n=>{let{children:o}=n,i={media:QI(o)};Da(i,"id","guid",o),Da(i,"title","title",o),Da(i,"link","link",o),Da(i,"description","description",o);let s=po("pubDate",o)||po("dc:date",o);return s&&(i.pubDate=new Date(s)),i})};Da(a,"title","title",t),Da(a,"link","link",t),Da(a,"description","description",t);let r=po("lastBuildDate",t);return r&&(a.updated=new Date(r)),Da(a,"author","managingEditor",t,!0),a}var eB=["url","type","lang"],tB=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function QI(e){return yi("media:content",e).map(t=>{let{attribs:a}=t,r={medium:a.medium,isDefault:!!a.isDefault};for(let n of eB)a[n]&&(r[n]=a[n]);for(let n of tB)a[n]&&(r[n]=Number.parseInt(a[n],10));return a.expression&&(r.expression=a.expression),r})}function kf(e,t){return yi(e,t,!0,1)[0]}function po(e,t,a=!1){return kl(yi(e,t,a,1)).trim()}function Da(e,t,a,r,n=!1){let o=po(a,r,n);o&&(e[t]=o)}function aB(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function rB(e){let t=e.length;for(;--t>=0;){let a=e[t];if(t>0&&e.lastIndexOf(a,t-1)>=0){e.splice(t,1);continue}for(let r=a.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var or;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(or||(or={}));function YI(e,t){let a=[],r=[];if(e===t)return 0;let n=Ma(e)?e:e.parent;for(;n;)a.unshift(n),n=n.parent;for(n=Ma(t)?t:t.parent;n;)r.unshift(n),n=n.parent;let o=Math.min(a.length,r.length),i=0;for(;i<o&&a[i]===r[i];)i++;if(i===0)return or.DISCONNECTED;let s=a[i-1],u=s.children,l=a[i],c=r[i];return u.indexOf(l)>u.indexOf(c)?s===t?or.FOLLOWING|or.CONTAINED_BY:or.FOLLOWING:s===e?or.PRECEDING|or.CONTAINS:or.PRECEDING}function nB(e){return e=e.filter((t,a,r)=>!r.includes(t,a+1)),e.sort((t,a)=>{let r=YI(t,a);return r&or.PRECEDING?-1:r&or.FOLLOWING?1:0}),e}function Ll(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,a=t.lastIndexOf(e);a!==-1&&t.splice(a,1)}e.next=null,e.prev=null,e.parent=null}function oB(e,t){if(t.prev=e.prev,t.prev&&(t.prev.next=t),t.next=e.next,t.next&&(t.next.prev=t),t.parent=e.parent,t.parent){let{children:a}=t.parent,r=a.lastIndexOf(e);if(r===-1)return;a[r]=t,e.parent=null}}function iB(e,t){if(Ll(t),t.next=null,t.parent=e,e.children.push(t)>1){let a=e.children[e.children.length-2];a.next=t,t.prev=a}else t.prev=null}function sB(e,t){Ll(t);let{parent:a}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=a,r){if(r.prev=t,a){let n=a.children;n.splice(n.lastIndexOf(r),0,t)}}else a&&a.children.push(t)}function uB(e,t){if(Ll(t),t.parent=e,t.prev=null,e.children.unshift(t)===1)t.next=null;else{let a=e.children[1];a.prev=t,t.next=a}}function lB(e,t){Ll(t);let{parent:a}=e;if(a){let r=a.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=a,t.prev=e.prev,t.next=e,e.prev=t}function JI(e){return Ma(e)?e.children:[]}function $I(e){return e.parent||null}function cB(e){let t=$I(e);if(t!=null)return JI(t);let a=[e],{prev:r,next:n}=e;for(;r!=null;)a.unshift(r),{prev:r}=r;for(;n!=null;)a.push(n),{next:n}=n;return a}function dB(e,t){let{attribs:a}=e;return a?.[t]}function fB(e,t){let{attribs:a}=e;return a!=null&&Object.hasOwn(a,t)&&a[t]!=null}function pB(e){return e.name}function mB(e){let{next:t}=e;for(;t!==null&&!$t(t);)({next:t}=t);return t}function hB(e){let{prev:t}=e;for(;t!==null&&!$t(t);)({prev:t}=t);return t}var gB=/[-[\]{}()*+?.,\\^$|#\s]/g,bB=/\s/;function ZI(e){return e.replace(gB,"\\$&")}var xB=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Ai(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&xB.has(e.name)}var XI={equals(e,t,a){let{adapter:r}=a,{name:n}=t,{value:o}=t;return Ai(t,a)?(o=o.toLowerCase(),i=>{let s=r.getAttributeValue(i,n);return s!=null&&s.length===o.length&&s.toLowerCase()===o&&e(i)}):i=>r.getAttributeValue(i,n)===o&&e(i)},hyphen(e,t,a){let{adapter:r}=a,{name:n}=t,{value:o}=t,{length:i}=o;return Ai(t,a)?(o=o.toLowerCase(),function(u){let l=r.getAttributeValue(u,n);return l!=null&&(l.length===i||l.charAt(i)==="-")&&l.substr(0,i).toLowerCase()===o&&e(u)}):function(u){let l=r.getAttributeValue(u,n);return l!=null&&(l.length===i||l.charAt(i)==="-")&&l.substr(0,i)===o&&e(u)}},element(e,t,a){let{adapter:r}=a,{name:n,value:o}=t;if(bB.test(o))return $e;let i=new RegExp(`(?:^|\\s)${ZI(o)}(?:$|\\s)`,Ai(t,a)?"i":"");return function(u){let l=r.getAttributeValue(u,n);return l!=null&&l.length>=o.length&&i.test(l)&&e(u)}},exists(e,{name:t},{adapter:a}){return r=>a.hasAttrib(r,t)&&e(r)},start(e,t,a){let{adapter:r}=a,{name:n}=t,{value:o}=t,{length:i}=o;return i===0?$e:Ai(t,a)?(o=o.toLowerCase(),s=>{let u=r.getAttributeValue(s,n);return u!=null&&u.length>=i&&u.substr(0,i).toLowerCase()===o&&e(s)}):s=>!!r.getAttributeValue(s,n)?.startsWith(o)&&e(s)},end(e,t,a){let{adapter:r}=a,{name:n}=t,{value:o}=t,i=-o.length;return i===0?$e:Ai(t,a)?(o=o.toLowerCase(),s=>r.getAttributeValue(s,n)?.substr(i).toLowerCase()===o&&e(s)):s=>!!r.getAttributeValue(s,n)?.endsWith(o)&&e(s)},any(e,t,a){let{adapter:r}=a,{name:n,value:o}=t;if(o==="")return $e;if(Ai(t,a)){let i=new RegExp(ZI(o),"i");return function(u){let l=r.getAttributeValue(u,n);return l!=null&&l.length>=o.length&&i.test(l)&&e(u)}}return i=>!!r.getAttributeValue(i,n)?.includes(o)&&e(i)},not(e,t,a){let{adapter:r}=a,{name:n}=t,{value:o}=t;return o===""?i=>!!r.getAttributeValue(i,n)&&e(i):Ai(t,a)?(o=o.toLowerCase(),i=>{let s=r.getAttributeValue(i,n);return(s==null||s.length!==o.length||s.toLowerCase()!==o)&&e(i)}):i=>r.getAttributeValue(i,n)!==o&&e(i)}};function e2(e,t,a){let{adapter:r,xmlMode:n=!1}=a,o=[],i=[t],s=[0];for(;;){if(s[0]>=i[0].length){if(i.length===1)return o;i.shift(),s.shift();continue}let u=i[0][s[0]++];if(r.isTag(u)&&(e(u)&&o.push(u),n||r.getName(u)!=="template")){let l=r.getChildren(u);l.length>0&&(i.unshift(l),s.unshift(0))}}}function Os(e,t,a){let{adapter:r,xmlMode:n=!1}=a,o=[t],i=[0];for(;;){if(i[0]>=o[0].length){if(o.length===1)return null;o.shift(),i.shift();continue}let s=o[0][i[0]++];if(r.isTag(s)){if(e(s))return s;if(n||r.getName(s)!=="template"){let u=r.getChildren(s);u.length>0&&(o.unshift(u),i.unshift(0))}}}}function Lf(e,t){let a=t.getSiblings(e);if(a.length<=1)return[];let r=a.indexOf(e);return r===-1||r===a.length-1?[]:a.slice(r+1).filter(t.isTag)}function ir(e,t){let a=t.getParent(e);return a!=null&&t.isTag(a)?a:null}var t2="input:is([type=text i],[type=search i],[type=url i],[type=tel i],[type=email i],[type=password i],[type=date i],[type=month i],[type=week i],[type=time i],[type=datetime-local i],[type=number i])",a2={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
587
+ :is(button, input, select, textarea, optgroup, option)[disabled],
588
+ optgroup[disabled] > option,
589
+ fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
590
+ )`,enabled:":is(button, input, select, textarea, optgroup, option, fieldset):not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], :selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])","read-only":`[readonly]:is(textarea, ${t2})`,"read-write":`:not([readonly]):is(textarea, ${t2})`,selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};function r2(e){let t=e[0],a=e[1]-1;if(a<0&&t<=0)return $e;if(t===-1)return o=>o<=a;if(t===0)return o=>o===a;if(t===1)return a<0?Rr:o=>o>=a;let r=Math.abs(t),n=(a%r+r)%r;return t>1?o=>o>=a&&o%r===n:o=>o<=a&&o%r===n}var vB=new Set([9,10,12,13,32]),n2=48,yB=57;function o2(e){switch(e=e.trim().toLowerCase(),e){case"even":return[2,0];case"odd":return[2,1]}let t=0,a=0,r=o(),n=i();if(t<e.length&&e.charAt(t)==="n"&&(t++,a=r*(n??1),s(),t<e.length?(r=o(),s(),n=i()):r=n=0),n===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[a,r*n];function o(){switch(e.charAt(t)){case"-":return t++,-1;case"+":{t++;break}}return 1}function i(){let u=t,l=0;for(;t<e.length&&e.charCodeAt(t)>=n2&&e.charCodeAt(t)<=yB;)l=l*10+(e.charCodeAt(t)-n2),t++;return t===u?null:l}function s(){for(;t<e.length&&vB.has(e.charCodeAt(t));)t++}}function ub(e){return r2(o2(e))}function _s(e,{adapter:t,cacheResults:a},r){if(a===!1||typeof WeakMap>"u")return i=>e(i)&&r(i);let n=new WeakMap;function o(i){let s=r(i);return n.set(i,s),s}return function(s){if(!e(s))return!1;if(n.has(s))return n.get(s)??!1;let u=s;do{let l=ir(u,t);if(l===null)return o(s);u=l}while(!n.has(u));return n.get(u)?o(s):!1}}function Bs(e){let{context:t,rootFunc:a,...r}=e;return r}function AB(e,t){if(t[0]!=="*"&&t[0]!==e[0])return!1;let a=1;for(let r=1;r<t.length;r++)if(t[r]!=="*"){for(;a<e.length&&e[a]!==t[r];)if(e[a++].length<=1)return!1;if(a>=e.length)return!1;a++}return!0}var wB=/^(.+?)\s+of\s+(.+)$/is;function Ef(e,t){return function(r,n,o,i,s){let{adapter:u,equals:l}=o,c=t?null:n.match(wB),d=ub(c?c[1].trim():n);if(d===$e)return $e;let f=c&&s?s(xi(c[2].trim()),Bs(o),i):void 0;if(f===$e)return $e;if(d===Rr&&!f)return g=>ir(g,u)!==null&&r(g);let p=f?(g,m)=>f(m):t?(g,m)=>u.getName(m)===u.getName(g):Rr;return e?function(m){if(f&&!f(m))return!1;let x=u.getSiblings(m),v=0;for(let w=x.length-1;w>=0;w--){let y=x[w];if(l(m,y))break;u.isTag(y)&&p(m,y)&&v++}return d(v)&&r(m)}:function(m){if(f&&!f(m))return!1;let x=u.getSiblings(m),v=0;for(let w of x){if(l(m,w))break;u.isTag(w)&&p(m,w)&&v++}return d(v)&&r(m)}}}var Tf={contains(e,t,a){let{getText:r}=a.adapter;return _s(e,a,n=>r(n).includes(t))},icontains(e,t,a){let r=t.toLowerCase(),{getText:n}=a.adapter;return _s(e,a,o=>n(o).toLowerCase().includes(r))},"nth-child":Ef(!1,!1),"nth-last-child":Ef(!0,!1),"nth-of-type":Ef(!1,!0),"nth-last-of-type":Ef(!0,!0),root(e,t,{adapter:a}){return r=>ir(r,a)===null&&e(r)},scope(e,t,a,r){let{equals:n}=a;return!r||r.length===0?Tf.root(e,t,a):r.length===1?o=>n(r[0],o)&&e(o):o=>r.includes(o)&&e(o)},lang(e,t,{adapter:a}){let r=t.split(",").map(n=>n.trim()).filter(n=>n.length>0).map(n=>n.replace(/^['"]|['"]$/g,"").toLowerCase().split("-"));return function(o){let i=o;for(;i!=null;){let s=a.getAttributeValue(i,"xml:lang")??a.getAttributeValue(i,"lang");if(s!=null){if(!s)return r.some(c=>c[0]==="")&&e(o);let l=s.toLowerCase().split("-");return r.some(c=>AB(l,c))&&e(o)}let u=a.getParent(i);i=u!=null&&a.isTag(u)?u:null}return r.some(s=>s[0]==="")&&e(o)}},hover:lb("isHovered"),visited:lb("isVisited"),active:lb("isActive")};function lb(e){return function(a,r,{adapter:n}){let o=n[e];return typeof o!="function"?$e:function(s){return o(s)&&a(s)}}}var SB=/^[ \t\r\n]*$/,cb={empty(e,{adapter:t}){let a=t.getChildren(e);return a.every(r=>!t.isTag(r))&&a.every(r=>SB.test(t.getText(r)))},"first-child"(e,{adapter:t,equals:a}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let r=t.getSiblings(e).find(n=>t.isTag(n));return r!=null&&a(e,r)},"last-child"(e,{adapter:t,equals:a}){let r=t.getSiblings(e);for(let n=r.length-1;n>=0;n--){if(a(e,r[n]))return!0;if(t.isTag(r[n]))break}return!1},"first-of-type"(e,{adapter:t,equals:a}){let r=t.getSiblings(e),n=t.getName(e);for(let o of r){if(a(e,o))return!0;if(t.isTag(o)&&t.getName(o)===n)break}return!1},"last-of-type"(e,{adapter:t,equals:a}){let r=t.getSiblings(e),n=t.getName(e);for(let o=r.length-1;o>=0;o--){let i=r[o];if(a(e,i))return!0;if(t.isTag(i)&&t.getName(i)===n)break}return!1},"only-of-type"(e,{adapter:t,equals:a}){let r=t.getName(e);return t.getSiblings(e).every(n=>a(e,n)||!t.isTag(n)||t.getName(n)!==r)},"only-child"(e,{adapter:t,equals:a}){return t.getSiblings(e).every(r=>a(e,r)||!t.isTag(r))}};function db(e,t,a,r){if(a===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}function Fs(e){return e.type==="_flexibleDescendant"||Af(e)}function i2(e){let t=e.map(Rf);for(let a=1;a<e.length;a++){let r=t[a];if(!(r<0))for(let n=a;n>0&&r<t[n-1];n--){let o=e[n];e[n]=e[n-1],e[n-1]=o,t[n]=t[n-1],t[n-1]=r}}}function CB(e){switch(e.action){case vt.Exists:return 10;case vt.Equals:return e.name==="id"?9:8;case vt.Not:return 7;case vt.Start:return 6;case vt.End:return 6;case vt.Any:return 5;case vt.Hyphen:return 4;case vt.Element:return 3}}function Rf(e){switch(e.type){case fe.Universal:return 50;case fe.Tag:return 30;case fe.Attribute:return Math.floor(CB(e)/(e.ignoreCase?2:1));case fe.Pseudo:return e.data?e.name==="has"||e.name==="contains"||e.name==="icontains"?0:Array.isArray(e.data)?Math.max(0,Math.min(...e.data.map(t=>Math.min(...t.map(Rf))))):2:3;default:return-1}}function El(e){return e.type===fe.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(El)))}var pb={};function IB(e){return e.some(t=>t.length>0&&(Fs(t[0])||t.some(El)))}var fb=(e,t,a,r,n)=>{let o=n(t,Bs(a),r);return o===Rr?e:o===$e?$e:i=>o(i)&&e(i)},Pf={is:fb,matches:fb,where:fb,not(e,t,a,r,n){let o=n(t,Bs(a),r);return o===$e?e:o===Rr?$e:i=>!o(i)&&e(i)},has(e,t,a,r,n){let{adapter:o}=a,i=Bs(a);i.relativeSelector=!0;let s=t.some(d=>d.some(Fs))?[pb]:void 0,u=IB(t),l=n(t,i,s);if(l===$e)return $e;if(s&&l!==Rr)return u?d=>{if(!e(d))return!1;s[0]=d;let f=o.getChildren(d);return Os(l,l.shouldTestNextSiblings?[...f,...Lf(d,o)]:f,a)!==null}:_s(e,a,d=>(s[0]=d,Os(l,o.getChildren(d),a)!==null));let c=d=>Os(l,o.getChildren(d),a)!==null;return u?d=>e(d)&&c(d):_s(e,a,c)}};function s2(e,t,a,r,n){let{name:o,data:i}=t;if(Array.isArray(i)){if(!(o in Pf))throw new Error(`Unknown pseudo-class :${o}(${i})`);return Pf[o](e,i,a,r,n)}let s=a.pseudos?.[o],u=typeof s=="string"?s:a2[o];if(typeof u=="string"){if(i!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let l=xi(u);return Pf.is(e,l,a,r,n)}if(typeof s=="function")return db(s,o,i,1),l=>s(l,i)&&e(l);if(o in Tf)return Tf[o](e,i,a,r,n);if(o in cb){let l=cb[o];return db(l,o,i,2),c=>l(c,a,i)&&e(c)}throw new Error(`Unknown pseudo-class :${o}`)}function u2(e,t,a,r,n,o){let{adapter:i,equals:s,cacheResults:u}=a;switch(t.type){case fe.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case fe.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case fe.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!a.xmlMode||a.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),XI[t.action](e,t,a)}case fe.Pseudo:return s2(e,t,a,r,n);case fe.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:l}=t;return(!a.xmlMode||a.lowerCaseTags)&&(l=l.toLowerCase()),function(d){return i.getName(d)===l&&e(d)}}case fe.Descendant:{if(!o||u===!1||typeof WeakMap>"u")return function(d){let f=d;for(;f=ir(f,i);)if(e(f))return!0;return!1};let l=new WeakMap;return function(d){let f=d,p;for(;f=ir(f,i);){let g=l.get(f);if(g===void 0){if(p??(p={matches:!1}),p.matches=e(f),l.set(f,p),p.matches)return!0}else return p&&(p.matches=g.matches),g.matches}return!1}}case"_flexibleDescendant":return function(c){let d=c;do{if(e(d))return!0;d=ir(d,i)}while(d);return!1};case fe.Parent:return function(c){return i.getChildren(c).some(d=>i.isTag(d)&&e(d))};case fe.Child:return function(c){let d=ir(c,i);return d!==null&&e(d)};case fe.Sibling:return function(c){let d=i.getSiblings(c);for(let f of d){if(s(c,f))break;if(i.isTag(f)&&e(f))return!0}return!1};case fe.Adjacent:return i.prevElementSibling?function(c){let d=i.prevElementSibling(c);return d!=null&&e(d)}:function(c){let d=i.getSiblings(c),f;for(let p of d){if(s(c,p))break;i.isTag(p)&&(f=p)}return!!f&&e(f)};case fe.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}var kB={type:fe.Descendant},LB={type:"_flexibleDescendant"},EB={type:fe.Pseudo,name:"scope",data:null};function TB(e,{adapter:t},a){let r=!!a?.every(n=>n===pb||t.isTag(n)&&ir(n,t)!==null);for(let n of e){if(!(n.length>0&&Fs(n[0])&&n[0].type!==fe.Descendant))if(r&&!n.some(El))n.unshift(kB);else continue;n.unshift(EB)}}function mb(e,t,a){for(let l of e)i2(l);let{context:r=a,rootFunc:n=Rr}=t,o=Array.isArray(r),i=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)TB(e,t,i);else if(e.some(l=>l.length>0&&Fs(l[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let s=!1,u=$e;e:for(let l of e){if(l.length>=2){let[f,p]=l;f.type!==fe.Pseudo||f.name!=="scope"||(o&&p.type===fe.Descendant?l[1]=LB:(p.type===fe.Adjacent||p.type===fe.Sibling)&&(s=!0))}let c=n,d=!1;for(let f of l)if(c=u2(c,f,t,i,mb,d),Rf(f)===0&&(d=!0),c===$e)continue e;if(c===n)return n;u=u===$e?c:RB(u,c)}return u.shouldTestNextSiblings=s,u}function RB(e,t){return a=>e(a)||t(a)}var c2=(e,t)=>e===t,l2={adapter:{...sb,isTag:$t},equals:c2};function hb(e){let t=e??l2;return t.adapter??(t.adapter=l2.adapter),t.equals??(t.equals=t.adapter?.equals??c2),t}function gb(e,t,a){let r=hb(t),n=d2(e,r,a);return n===$e?$e:o=>r.adapter.isTag(o)&&n(o)}function d2(e,t,a){return mb(typeof e=="string"?xi(e):e,hb(t),a)}function f2(e){return function(a,r,n){let o=hb(n);typeof a!="function"&&(a=d2(a,o,r));let i=PB(r,o.adapter,a.shouldTestNextSiblings);return e(a,i,o)}}function PB(e,t,a=!1){return a&&(e=NB(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function NB(e,t){let a=Array.isArray(e)?[...e]:[e],r=a.length;for(let n=0;n<r;n++){let o=Lf(a[n],t);a.push(...o)}return a}var G$=f2((e,t,a)=>e===$e||!t||t.length===0?[]:e2(e,t,a)),W$=f2((e,t,a)=>e===$e||!t||t.length===0?null:Os(e,t,a));function p2(e,t,a){return(typeof t=="function"?t:gb(t,a))(e)}var{isArray:DB}=Array,Nf=({nodeType:e})=>e===1,m2=(e,t)=>t.some(a=>Nf(a)&&(e(a)||m2(e,Hs(a)))),OB=(e,t)=>t==="class"?e.classList.value:e.getAttribute(t),Hs=({childNodes:e})=>e,_B=e=>{let{localName:t}=e;return ar(e)?t.toLowerCase():t},BB=({parentNode:e})=>e,FB=e=>{let{parentNode:t}=e;return t?Hs(t):e},bb=e=>DB(e)?e.map(bb).join(""):Nf(e)?bb(Hs(e)):e.nodeType===3?e.data:"",HB=(e,t)=>e.hasAttribute(t),zB=e=>{let{length:t}=e;for(;t--;){let a=e[t];if(t&&-1<e.lastIndexOf(a,t-1)){e.splice(t,1);continue}for(let{parentNode:r}=a;r;r=r.parentNode)if(e.includes(r)){e.splice(t,1);break}}return e},h2=(e,t)=>{let a=[];for(let r of t)Nf(r)&&(e(r)&&a.push(r),a.push(...h2(e,Hs(r))));return a},g2=(e,t)=>{for(let a of t)if(e(a)||(a=g2(e,Hs(a))))return a;return null},b2={isTag:Nf,existsOne:m2,getAttributeValue:OB,getChildren:Hs,getName:_B,getParent:BB,getSiblings:FB,getText:bb,hasAttrib:HB,removeSubsets:zB,findAll:h2,findOne:g2},Tl=(e,t)=>gb(t,{context:t.includes(":scope")?e:void 0,xmlMode:!ar(e),adapter:b2}),x2=(e,t)=>p2(e,t,{strict:!0,context:t.includes(":scope")?e:void 0,xmlMode:!ar(e),adapter:b2});var sr=class e extends Tr{constructor(t,a=""){super(t,"#text",3,a)}get wholeText(){let t=[],{previousSibling:a,nextSibling:r}=this;for(;a&&a.nodeType===3;){t.unshift(a[Fe]);a=a.previousSibling}for(t.push(this[Fe]);r&&r.nodeType===3;){t.push(r[Fe]);r=r.nextSibling}return t.join("")}cloneNode(){let{ownerDocument:t,[Fe]:a}=this;return new e(t,a)}toString(){return Ps(this[Fe])}};var VB=e=>e instanceof Na,xb=(e,t,a)=>{let{ownerDocument:r}=e;for(let n of a)e.insertBefore(VB(n)?n:new sr(r,n),t)},zs=class extends Na{constructor(t,a,r){super(t,a,r),this[kt]=null,this[Y]=this[ie]={[Y]:null,[Je]:this,[Ht]:this,nodeType:-1,ownerDocument:this.ownerDocument,parentNode:null}}get childNodes(){let t=new Dt,{firstChild:a}=this;for(;a;)t.push(a),a=Er(a);return t}get children(){let t=new Dt,{firstElementChild:a}=this;for(;a;)t.push(a),a=Ns(a);return t}get firstChild(){let{[Y]:t,[ie]:a}=this;for(;t.nodeType===2;)t=t[Y];return t===a?null:t}get firstElementChild(){let{firstChild:t}=this;for(;t;){if(t.nodeType===1)return t;t=Er(t)}return null}get lastChild(){let t=this[ie][Je];switch(t.nodeType){case-1:return t[Ht];case 2:return null}return t===this?null:t}get lastElementChild(){let{lastChild:t}=this;for(;t;){if(t.nodeType===1)return t;t=Nn(t)}return null}get childElementCount(){return this.children.length}prepend(...t){xb(this,this.firstChild,t)}append(...t){xb(this,this[ie],t)}replaceChildren(...t){let{[Y]:a,[ie]:r}=this;for(;a!==r&&a.nodeType===2;)a=a[Y];for(;a!==r;){let n=Mt(a)[Y];a.remove(),a=n}t.length&&xb(this,r,t)}getElementsByClassName(t){let a=new Dt,{[Y]:r,[ie]:n}=this;for(;r!==n;)r.nodeType===1&&r.hasAttribute("class")&&r.classList.has(t)&&a.push(r),r=r[Y];return a}getElementsByTagName(t){let a=new Dt,{[Y]:r,[ie]:n}=this;for(;r!==n;)r.nodeType===1&&(r.localName===t||yl(r)===t)&&a.push(r),r=r[Y];return a}querySelector(t){let a=Tl(this,t),{[Y]:r,[ie]:n}=this;for(;r!==n;){if(r.nodeType===1&&a(r))return r;r=r.nodeType===1&&r.localName==="template"?r[ie]:r[Y]}return null}querySelectorAll(t){let a=Tl(this,t),r=new Dt,{[Y]:n,[ie]:o}=this;for(;n!==o;)n.nodeType===1&&a(n)&&r.push(n),n=n.nodeType===1&&n.localName==="template"?n[ie]:n[Y];return r}appendChild(t){return this.insertBefore(t,this[ie])}contains(t){let a=t;for(;a&&a!==this;)a=a.parentNode;return a===this}insertBefore(t,a=null){if(t===a)return t;if(t===this)throw new Error("unable to append a node to itself");let r=a||this[ie];switch(t.nodeType){case 1:t.remove(),t.parentNode=this,vl(r[Je],t,r),uo(t,null),Al(t);break;case 11:{let{[kt]:n,firstChild:o,lastChild:i}=t;if(o){Q0(r[Je],o,i,r),Pa(t,t[ie]),n&&n.replaceChildren();do o.parentNode=this,uo(o,null),o.nodeType===1&&Al(o);while(o!==i&&(o=Er(o)))}break}case 3:case 8:case 4:t.remove();default:t.parentNode=this,Rn(r[Je],t,r),uo(t,null);break}return t}normalize(){let{[Y]:t,[ie]:a}=this;for(;t!==a;){let{[Y]:r,[Je]:n,nodeType:o}=t;o===3&&(t[Fe]?n&&n.nodeType===3&&(n.textContent+=t.textContent,t.remove()):t.remove()),t=r}}removeChild(t){if(t.parentNode!==this)throw new Error("node is not a child");return t.remove(),t}replaceChild(t,a){let r=Mt(a)[Y];return a.remove(),this.insertBefore(t,r),a}};var mo=class extends zs{getElementById(t){let{[Y]:a,[ie]:r}=this;for(;a!==r;){if(a.nodeType===1&&a.id===t)return a;a=a[Y]}return null}cloneNode(t){let{ownerDocument:a,constructor:r}=this,n=new r(a);if(t){let{[ie]:o}=n;for(let i of this.childNodes)n.insertBefore(i.cloneNode(t),o)}return n}toString(){let{childNodes:t,localName:a}=this;return`<${a}>${t.join("")}</${a}>`}toJSON(){let t=[];return xI(this,t),t}};var wi=class extends mo{constructor(t){super(t,"#document-fragment",11)}};var Mn=class e extends Na{constructor(t,a,r="",n=""){super(t,"#document-type",10),this.name=a,this.publicId=r,this.systemId=n}cloneNode(){let{ownerDocument:t,name:a,publicId:r,systemId:n}=this;return new e(t,a,r,n)}toString(){let{name:t,publicId:a,systemId:r}=this,n=0<a.length,o=[t];return n&&o.push("PUBLIC",`"${a}"`),r.length&&(n||o.push("SYSTEM"),o.push(`"${r}"`)),`<!DOCTYPE ${o.join(" ")}>`}toJSON(){let t=[];return $0(this,t),t}};var Mf=e=>e.childNodes.join(""),Df=(e,t)=>{let{ownerDocument:a}=e,{constructor:r}=a,n=new r;n[xa]=a[xa];let{childNodes:o}=ff(n,ar(e),t);e.replaceChildren(...o.map(v2,a))};function v2(e){switch(e.ownerDocument=this,e.nodeType){case 1:case 11:e.childNodes.forEach(v2,this);break}return e}var Vs=e=>e.replace(/(([A-Z0-9])([A-Z0-9][a-z]))|(([a-z0-9]+)([A-Z]))/g,"$2$5-$3$6").toLowerCase();var Of=new WeakMap,vb=e=>`data-${Vs(e)}`,UB=e=>e.slice(5).replace(/-([a-z])/g,(t,a)=>a.toUpperCase()),GB={get(e,t){if(t in e)return Of.get(e).getAttribute(vb(t))},set(e,t,a){return e[t]=a,Of.get(e).setAttribute(vb(t),a),!0},deleteProperty(e,t){return t in e&&Of.get(e).removeAttribute(vb(t)),delete e[t]}},Rl=class{constructor(t){for(let{name:a,value:r}of t.attributes)/^data-/.test(a)&&(this[UB(a)]=r);return Of.set(this,t),new Proxy(this,GB)}};Et(Rl.prototype,null);var{add:WB}=Set.prototype,y2=(e,t)=>{for(let a of t)a&&WB.call(e,a)},Pl=({[f0]:e,value:t})=>{let a=e.getAttributeNode("class");a?a.value=t:Sl(e,new nr(e.ownerDocument,"class",t))},_f=class extends Set{constructor(t){super(),this[f0]=t;let a=t.getAttributeNode("class");a&&y2(this,a.value.split(/\s+/))}get length(){return this.size}get value(){return[...this].join(" ")}add(...t){y2(this,t),Pl(this)}contains(t){return this.has(t)}remove(...t){for(let a of t)this.delete(a);Pl(this)}toggle(t,a){if(this.has(t)){if(a)return!0;this.delete(t),Pl(this)}else if(a||arguments.length===1)return super.add(t),Pl(this),!0;return!1}replace(t,a){return this.has(t)?(this.delete(t),super.add(a),Pl(this),!0):!1}supports(){return!0}};var Ff=new WeakMap,yb=e=>[...e.keys()].filter(t=>t!==kt),Hf=e=>{let t=Ff.get(e).getAttributeNode("style");if((!t||t[ws]||e.get(kt)!==t)&&(e.clear(),t)){e.set(kt,t);for(let a of t[Fe].split(/\s*;\s*/)){let[r,...n]=a.split(":");if(n.length>0){r=r.trim();let o=n.join(":").trim();r&&o&&e.set(r,o)}}}return t},Bf={get(e,t){return t in jB?e[t]:(Hf(e),t==="length"?yb(e).length:/^\d+$/.test(t)?yb(e)[t]:e.get(Vs(t))??"")},set(e,t,a){if(t==="cssText")e[t]=a;else{let r=Hf(e);if(a==null?e.delete(Vs(t)):e.set(Vs(t),a),!r){let n=Ff.get(e);r=n.ownerDocument.createAttribute("style"),n.setAttributeNode(r),e.set(kt,r)}r[ws]=!1,r[Fe]=e.toString()}return!0}},Nl=class extends Map{constructor(t){return super(),Ff.set(this,t),new Proxy(this,Bf)}get cssText(){return this.toString()}set cssText(t){Ff.get(this).setAttribute("style",t)}getPropertyValue(t){let a=this[kt];return Bf.get(a,t)}setProperty(t,a){let r=this[kt];Bf.set(r,t,a)}removeProperty(t){let a=this[kt];Bf.set(a,t,null)}[Symbol.iterator](){let t=this[kt];Hf(t);let a=yb(t),{length:r}=a,n=0;return{next(){let o=n===r;return{done:o,value:o?null:a[n++]}}}}get[kt](){return this}toString(){let t=this[kt];Hf(t);let a=[];return t.forEach(qB,a),a.join(";")}},{prototype:jB}=Nl;function qB(e,t){t!==kt&&this.push(`${t}:${e}`)}function KB(e){return e.currentTarget}var va=class{static get BUBBLING_PHASE(){return 3}static get AT_TARGET(){return 2}static get CAPTURING_PHASE(){return 1}static get NONE(){return 0}constructor(t,a={}){this.type=t,this.bubbles=!!a.bubbles,this.cancelBubble=!1,this._stopImmediatePropagationFlag=!1,this.cancelable=!!a.cancelable,this.eventPhase=this.NONE,this.timeStamp=Date.now(),this.defaultPrevented=!1,this.originalTarget=null,this.returnValue=null,this.srcElement=null,this.target=null,this._path=[]}get BUBBLING_PHASE(){return 3}get AT_TARGET(){return 2}get CAPTURING_PHASE(){return 1}get NONE(){return 0}preventDefault(){this.defaultPrevented=!0}composedPath(){return this._path.map(KB)}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.stopPropagation(),this._stopImmediatePropagationFlag=!0}};var Us=class extends Array{constructor(t){super(),this.ownerElement=t}getNamedItem(t){return this.ownerElement.getAttributeNode(t)}setNamedItem(t){this.ownerElement.setAttributeNode(t),this.unshift(t)}removeNamedItem(t){let a=this.getNamedItem(t);this.ownerElement.removeAttribute(t),this.splice(this.indexOf(a),1)}item(t){return t<this.length?this[t]:null}getNamedItemNS(t,a){return this.getNamedItem(a)}setNamedItemNS(t,a){return this.setNamedItem(a)}removeNamedItemNS(t,a){return this.removeNamedItem(a)}};var Si=class extends mo{constructor(t){super(t.ownerDocument,"#shadow-root",11),this.host=t}get innerHTML(){return Mf(this)}set innerHTML(t){Df(this,t)}};var QB={get(e,t){return t in e?e[t]:e.find(({name:a})=>a===t)}},A2=(e,t,a)=>{if("ownerSVGElement"in t){let r=e.createElementNS(mi,a);return r.ownerSVGElement=t.ownerSVGElement,r}return e.createElement(a)},YB=({localName:e,ownerDocument:t})=>t[Sr].voidElements.test(e),Pr=class extends zs{constructor(t,a){super(t,a,1),this[ao]=null,this[Wd]=null,this[jd]=null}get isConnected(){return hf(this)}get parentElement(){return gf(this)}get previousSibling(){return Nn(this)}get nextSibling(){return Er(this)}get namespaceURI(){return"http://www.w3.org/1999/xhtml"}get previousElementSibling(){return bf(this)}get nextElementSibling(){return Ns(this)}before(...t){xf(this,t)}after(...t){vf(this,t)}replaceWith(...t){Cl(this,t)}remove(){yf(this[Je],this,this[ie][Y])}get id(){return U.get(this,"id")}set id(t){U.set(this,"id",t)}get className(){return this.classList.value}set className(t){let{classList:a}=this;a.clear(),a.add(...Ir(t).split(/\s+/))}get nodeName(){return yl(this)}get tagName(){return yl(this)}get classList(){return this[ao]||(this[ao]=new _f(this))}get dataset(){return this[Wd]||(this[Wd]=new Rl(this))}getBoundingClientRect(){return{x:0,y:0,bottom:0,height:0,left:0,right:0,top:0,width:0}}get nonce(){return U.get(this,"nonce")}set nonce(t){U.set(this,"nonce",t)}get style(){return this[jd]||(this[jd]=new Nl(this))}get tabIndex(){return kr.get(this,"tabindex")||-1}set tabIndex(t){kr.set(this,"tabindex",t)}get slot(){return U.get(this,"slot")}set slot(t){U.set(this,"slot",t)}get innerText(){let t=[],{[Y]:a,[ie]:r}=this;for(;a!==r;)a.nodeType===3?t.push(a.textContent.replace(/\s+/g," ")):t.length&&a[Y]!=r&&aI.has(a.tagName)&&t.push(`
591
+ `),a=a[Y];return t.join("")}get textContent(){let t=[],{[Y]:a,[ie]:r}=this;for(;a!==r;){let n=a.nodeType;(n===3||n===4)&&t.push(a.textContent),a=a[Y]}return t.join("")}set textContent(t){this.replaceChildren(),t!=null&&t!==""&&this.appendChild(new sr(this.ownerDocument,t))}get innerHTML(){return Mf(this)}set innerHTML(t){Df(this,t)}get outerHTML(){return this.toString()}set outerHTML(t){let a=this.ownerDocument.createElement("");a.innerHTML=t,this.replaceWith(...a.childNodes)}get attributes(){let t=new Us(this),a=this[Y];for(;a.nodeType===2;)t.push(a),a=a[Y];return new Proxy(t,QB)}focus(){this.dispatchEvent(new va("focus"))}getAttribute(t){if(t==="class")return this.className;let a=this.getAttributeNode(t);return a&&(ar(this)?a.value:Ps(a.value))}getAttributeNode(t){let a=this[Y];for(;a.nodeType===2;){if(a.name===t)return a;a=a[Y]}return null}getAttributeNames(){let t=new Dt,a=this[Y];for(;a.nodeType===2;)t.push(a.name),a=a[Y];return t}hasAttribute(t){return!!this.getAttributeNode(t)}hasAttributes(){return this[Y].nodeType===2}removeAttribute(t){t==="class"&&this[ao]&&this[ao].clear();let a=this[Y];for(;a.nodeType===2;){if(a.name===t){X0(this,a);return}a=a[Y]}}removeAttributeNode(t){let a=this[Y];for(;a.nodeType===2;){if(a===t){X0(this,a);return}a=a[Y]}}setAttribute(t,a){if(t==="class")this.className=a;else{let r=this.getAttributeNode(t);r?r.value=a:Sl(this,new nr(this.ownerDocument,t,a))}}setAttributeNode(t){let{name:a}=t,r=this.getAttributeNode(a);if(r!==t){r&&this.removeAttributeNode(r);let{ownerElement:n}=t;n&&n.removeAttributeNode(t),Sl(this,t)}return r}toggleAttribute(t,a){return this.hasAttribute(t)?a?!0:(this.removeAttribute(t),!1):a||arguments.length===1?(this.setAttribute(t,""),!0):!1}get shadowRoot(){if(Xr.has(this)){let{mode:t,shadowRoot:a}=Xr.get(this);if(t==="open")return a}return null}attachShadow(t){if(Xr.has(this))throw new Error("operation not supported");let a=new Si(this);return Xr.set(this,{mode:t.mode,shadowRoot:a}),a}matches(t){return x2(this,t)}closest(t){let a=this,r=Tl(a,t);for(;a&&!r(a);)a=a.parentElement;return a}insertAdjacentElement(t,a){let{parentElement:r}=this;switch(t){case"beforebegin":if(r){r.insertBefore(a,this);break}return null;case"afterbegin":this.insertBefore(a,this.firstChild);break;case"beforeend":this.insertBefore(a,null);break;case"afterend":if(r){r.insertBefore(a,this.nextSibling);break}return null}return a}insertAdjacentHTML(t,a){this.insertAdjacentElement(t,lf(this.ownerDocument,a))}insertAdjacentText(t,a){let r=this.ownerDocument.createTextNode(a);this.insertAdjacentElement(t,r)}cloneNode(t=!1){let{ownerDocument:a,localName:r}=this,n=c=>{c.parentNode=i,Pa(s,c),s=c},o=A2(a,this,r),i=o,s=o,{[Y]:u,[ie]:l}=this;for(;u!==l&&(t||u.nodeType===2);){switch(u.nodeType){case-1:Pa(s,i[ie]),s=i[ie],i=i.parentNode;break;case 1:{let c=A2(a,u,u.localName);n(c),i=c;break}case 2:{let c=u.cloneNode(t);c.ownerElement=i,n(c);break}case 3:case 8:case 4:n(u.cloneNode(t));break}u=u[Y]}return Pa(s,o[ie]),o}toString(){let t=[],{[ie]:a}=this,r={[Y]:this},n=!1;do switch(r=r[Y],r.nodeType){case 2:{let o=" "+r;switch(o){case" id":case" class":case" style":break;default:t.push(o)}break}case-1:{let o=r[Ht];n?("ownerSVGElement"in o?t.push(" />"):YB(o)?t.push(ar(o)?">":" />"):t.push(`></${o.localName}>`),n=!1):t.push(`</${o.localName}>`);break}case 1:n&&t.push(">"),r.toString!==this.toString?(t.push(r.toString()),r=r[ie],n=!1):(t.push(`<${r.localName}`),n=!0);break;case 3:case 8:case 4:t.push((n?">":"")+r),n=!1;break}while(r!==a);return t.join("")}toJSON(){let t=[];return Z0(this,t),t}getAttributeNS(t,a){return this.getAttribute(a)}getElementsByTagNameNS(t,a){return this.getElementsByTagName(a)}hasAttributeNS(t,a){return this.hasAttribute(a)}removeAttributeNS(t,a){this.removeAttribute(a)}setAttributeNS(t,a,r){this.setAttribute(a,r)}setAttributeNodeNS(t){return this.setAttributeNode(t)}};var Ab=new WeakMap,JB={get(e,t){return e[t]},set(e,t,a){return e[t]=a,!0}},Nr=class extends Pr{constructor(t,a,r=null){super(t,a),this.ownerSVGElement=r}get className(){return Ab.has(this)||Ab.set(this,new Proxy({baseVal:"",animVal:""},JB)),Ab.get(this)}set className(t){let{classList:a}=this;a.clear(),a.add(...Ir(t).split(/\s+/))}get namespaceURI(){return"http://www.w3.org/2000/svg"}getAttribute(t){return t==="class"?[...this.classList].join(" "):super.getAttribute(t)}setAttribute(t,a){if(t==="class")this.className=a;else if(t==="style"){let{className:r}=this;r.baseVal=r.animVal=a}super.setAttribute(t,a)}};var ya=()=>{throw new TypeError("Illegal constructor")};function wb(){ya()}Et(wb,nr);wb.prototype=nr.prototype;function Sb(){ya()}Et(Sb,co);Sb.prototype=co.prototype;function Cb(){ya()}Et(Cb,Tr);Cb.prototype=Tr.prototype;function Ib(){ya()}Et(Ib,fo);Ib.prototype=fo.prototype;function kb(){ya()}Et(kb,wi);kb.prototype=wi.prototype;function Lb(){ya()}Et(Lb,Mn);Lb.prototype=Mn.prototype;function Eb(){ya()}Et(Eb,Pr);Eb.prototype=Pr.prototype;function Tb(){ya()}Et(Tb,Na);Tb.prototype=Na.prototype;function Rb(){ya()}Et(Rb,Si);Rb.prototype=Si.prototype;function Pb(){ya()}Et(Pb,sr);Pb.prototype=sr.prototype;function Nb(){ya()}Et(Nb,Nr);Nb.prototype=Nr.prototype;var w2={Attr:wb,CDATASection:Sb,CharacterData:Cb,Comment:Ib,DocumentFragment:kb,DocumentType:Lb,Element:Eb,Node:Tb,ShadowRoot:Rb,Text:Pb,SVGElement:Nb};var Ml=new WeakMap,R={get(e,t){return Ml.has(e)&&Ml.get(e)[t]||null},set(e,t,a){Ml.has(e)||Ml.set(e,{});let r=Ml.get(e),n=t.slice(2);r[t]&&e.removeEventListener(n,r[t],!1),(r[t]=a)&&e.addEventListener(n,a,!1)}},P=class extends Pr{static get observedAttributes(){return[]}constructor(t=null,a=""){super(t,a);let r=!t,n;if(r){let{constructor:o}=this;if(!hi.has(o))throw new Error("unable to initialize this Custom Element");({ownerDocument:t,localName:a,options:n}=hi.get(o))}if(t[no]){let{element:o,values:i}=t[no];t[no]=null;for(let[s,u]of i)o[s]=u;return o}r&&(this.ownerDocument=this[ie].ownerDocument=t,this.localName=a,Pn.set(this,{connected:!1}),n.is&&this.setAttribute("is",n.is))}blur(){this.dispatchEvent(new va("blur"))}click(){let t=new va("click",{bubbles:!0,cancelable:!0});t.button=0,this.dispatchEvent(t)}get accessKeyLabel(){let{accessKey:t}=this;return t&&`Alt+Shift+${t}`}get isContentEditable(){return this.hasAttribute("contenteditable")}get contentEditable(){return Ne.get(this,"contenteditable")}set contentEditable(t){Ne.set(this,"contenteditable",t)}get draggable(){return Ne.get(this,"draggable")}set draggable(t){Ne.set(this,"draggable",t)}get hidden(){return Ne.get(this,"hidden")}set hidden(t){Ne.set(this,"hidden",t)}get spellcheck(){return Ne.get(this,"spellcheck")}set spellcheck(t){Ne.set(this,"spellcheck",t)}get accessKey(){return U.get(this,"accesskey")}set accessKey(t){U.set(this,"accesskey",t)}get dir(){return U.get(this,"dir")}set dir(t){U.set(this,"dir",t)}get lang(){return U.get(this,"lang")}set lang(t){U.set(this,"lang",t)}get title(){return U.get(this,"title")}set title(t){U.set(this,"title",t)}get onabort(){return R.get(this,"onabort")}set onabort(t){R.set(this,"onabort",t)}get onblur(){return R.get(this,"onblur")}set onblur(t){R.set(this,"onblur",t)}get oncancel(){return R.get(this,"oncancel")}set oncancel(t){R.set(this,"oncancel",t)}get oncanplay(){return R.get(this,"oncanplay")}set oncanplay(t){R.set(this,"oncanplay",t)}get oncanplaythrough(){return R.get(this,"oncanplaythrough")}set oncanplaythrough(t){R.set(this,"oncanplaythrough",t)}get onchange(){return R.get(this,"onchange")}set onchange(t){R.set(this,"onchange",t)}get onclick(){return R.get(this,"onclick")}set onclick(t){R.set(this,"onclick",t)}get onclose(){return R.get(this,"onclose")}set onclose(t){R.set(this,"onclose",t)}get oncontextmenu(){return R.get(this,"oncontextmenu")}set oncontextmenu(t){R.set(this,"oncontextmenu",t)}get oncuechange(){return R.get(this,"oncuechange")}set oncuechange(t){R.set(this,"oncuechange",t)}get ondblclick(){return R.get(this,"ondblclick")}set ondblclick(t){R.set(this,"ondblclick",t)}get ondrag(){return R.get(this,"ondrag")}set ondrag(t){R.set(this,"ondrag",t)}get ondragend(){return R.get(this,"ondragend")}set ondragend(t){R.set(this,"ondragend",t)}get ondragenter(){return R.get(this,"ondragenter")}set ondragenter(t){R.set(this,"ondragenter",t)}get ondragleave(){return R.get(this,"ondragleave")}set ondragleave(t){R.set(this,"ondragleave",t)}get ondragover(){return R.get(this,"ondragover")}set ondragover(t){R.set(this,"ondragover",t)}get ondragstart(){return R.get(this,"ondragstart")}set ondragstart(t){R.set(this,"ondragstart",t)}get ondrop(){return R.get(this,"ondrop")}set ondrop(t){R.set(this,"ondrop",t)}get ondurationchange(){return R.get(this,"ondurationchange")}set ondurationchange(t){R.set(this,"ondurationchange",t)}get onemptied(){return R.get(this,"onemptied")}set onemptied(t){R.set(this,"onemptied",t)}get onended(){return R.get(this,"onended")}set onended(t){R.set(this,"onended",t)}get onerror(){return R.get(this,"onerror")}set onerror(t){R.set(this,"onerror",t)}get onfocus(){return R.get(this,"onfocus")}set onfocus(t){R.set(this,"onfocus",t)}get oninput(){return R.get(this,"oninput")}set oninput(t){R.set(this,"oninput",t)}get oninvalid(){return R.get(this,"oninvalid")}set oninvalid(t){R.set(this,"oninvalid",t)}get onkeydown(){return R.get(this,"onkeydown")}set onkeydown(t){R.set(this,"onkeydown",t)}get onkeypress(){return R.get(this,"onkeypress")}set onkeypress(t){R.set(this,"onkeypress",t)}get onkeyup(){return R.get(this,"onkeyup")}set onkeyup(t){R.set(this,"onkeyup",t)}get onload(){return R.get(this,"onload")}set onload(t){R.set(this,"onload",t)}get onloadeddata(){return R.get(this,"onloadeddata")}set onloadeddata(t){R.set(this,"onloadeddata",t)}get onloadedmetadata(){return R.get(this,"onloadedmetadata")}set onloadedmetadata(t){R.set(this,"onloadedmetadata",t)}get onloadstart(){return R.get(this,"onloadstart")}set onloadstart(t){R.set(this,"onloadstart",t)}get onmousedown(){return R.get(this,"onmousedown")}set onmousedown(t){R.set(this,"onmousedown",t)}get onmouseenter(){return R.get(this,"onmouseenter")}set onmouseenter(t){R.set(this,"onmouseenter",t)}get onmouseleave(){return R.get(this,"onmouseleave")}set onmouseleave(t){R.set(this,"onmouseleave",t)}get onmousemove(){return R.get(this,"onmousemove")}set onmousemove(t){R.set(this,"onmousemove",t)}get onmouseout(){return R.get(this,"onmouseout")}set onmouseout(t){R.set(this,"onmouseout",t)}get onmouseover(){return R.get(this,"onmouseover")}set onmouseover(t){R.set(this,"onmouseover",t)}get onmouseup(){return R.get(this,"onmouseup")}set onmouseup(t){R.set(this,"onmouseup",t)}get onmousewheel(){return R.get(this,"onmousewheel")}set onmousewheel(t){R.set(this,"onmousewheel",t)}get onpause(){return R.get(this,"onpause")}set onpause(t){R.set(this,"onpause",t)}get onplay(){return R.get(this,"onplay")}set onplay(t){R.set(this,"onplay",t)}get onplaying(){return R.get(this,"onplaying")}set onplaying(t){R.set(this,"onplaying",t)}get onprogress(){return R.get(this,"onprogress")}set onprogress(t){R.set(this,"onprogress",t)}get onratechange(){return R.get(this,"onratechange")}set onratechange(t){R.set(this,"onratechange",t)}get onreset(){return R.get(this,"onreset")}set onreset(t){R.set(this,"onreset",t)}get onresize(){return R.get(this,"onresize")}set onresize(t){R.set(this,"onresize",t)}get onscroll(){return R.get(this,"onscroll")}set onscroll(t){R.set(this,"onscroll",t)}get onseeked(){return R.get(this,"onseeked")}set onseeked(t){R.set(this,"onseeked",t)}get onseeking(){return R.get(this,"onseeking")}set onseeking(t){R.set(this,"onseeking",t)}get onselect(){return R.get(this,"onselect")}set onselect(t){R.set(this,"onselect",t)}get onshow(){return R.get(this,"onshow")}set onshow(t){R.set(this,"onshow",t)}get onstalled(){return R.get(this,"onstalled")}set onstalled(t){R.set(this,"onstalled",t)}get onsubmit(){return R.get(this,"onsubmit")}set onsubmit(t){R.set(this,"onsubmit",t)}get onsuspend(){return R.get(this,"onsuspend")}set onsuspend(t){R.set(this,"onsuspend",t)}get ontimeupdate(){return R.get(this,"ontimeupdate")}set ontimeupdate(t){R.set(this,"ontimeupdate",t)}get ontoggle(){return R.get(this,"ontoggle")}set ontoggle(t){R.set(this,"ontoggle",t)}get onvolumechange(){return R.get(this,"onvolumechange")}set onvolumechange(t){R.set(this,"onvolumechange",t)}get onwaiting(){return R.get(this,"onwaiting")}set onwaiting(t){R.set(this,"onwaiting",t)}get onauxclick(){return R.get(this,"onauxclick")}set onauxclick(t){R.set(this,"onauxclick",t)}get ongotpointercapture(){return R.get(this,"ongotpointercapture")}set ongotpointercapture(t){R.set(this,"ongotpointercapture",t)}get onlostpointercapture(){return R.get(this,"onlostpointercapture")}set onlostpointercapture(t){R.set(this,"onlostpointercapture",t)}get onpointercancel(){return R.get(this,"onpointercancel")}set onpointercancel(t){R.set(this,"onpointercancel",t)}get onpointerdown(){return R.get(this,"onpointerdown")}set onpointerdown(t){R.set(this,"onpointerdown",t)}get onpointerenter(){return R.get(this,"onpointerenter")}set onpointerenter(t){R.set(this,"onpointerenter",t)}get onpointerleave(){return R.get(this,"onpointerleave")}set onpointerleave(t){R.set(this,"onpointerleave",t)}get onpointermove(){return R.get(this,"onpointermove")}set onpointermove(t){R.set(this,"onpointermove",t)}get onpointerout(){return R.get(this,"onpointerout")}set onpointerout(t){R.set(this,"onpointerout",t)}get onpointerover(){return R.get(this,"onpointerover")}set onpointerover(t){R.set(this,"onpointerover",t)}get onpointerup(){return R.get(this,"onpointerup")}set onpointerup(t){R.set(this,"onpointerup",t)}};var S2="template",Dl=class extends P{constructor(t){super(t,S2);let a=this.ownerDocument.createDocumentFragment();(this[ol]=a)[kt]=this}get content(){if(this.hasChildNodes()&&!this[ol].hasChildNodes())for(let t of this.childNodes)this[ol].appendChild(t.cloneNode(!0));return this[ol]}};De(S2,Dl);var zf=class extends P{constructor(t,a="html"){super(t,a)}};var{toString:$B}=P.prototype,tn=class extends P{get innerHTML(){return this.textContent}set innerHTML(t){this.textContent=t}toString(){return $B.call(this.cloneNode()).replace("><",()=>`>${this.textContent}<`)}};var C2="script",Ol=class extends tn{constructor(t,a=C2){super(t,a)}get type(){return U.get(this,"type")}set type(t){U.set(this,"type",t)}get src(){return U.get(this,"src")}set src(t){U.set(this,"src",t)}get defer(){return Ne.get(this,"defer")}set defer(t){Ne.set(this,"defer",t)}get crossOrigin(){return U.get(this,"crossorigin")}set crossOrigin(t){U.set(this,"crossorigin",t)}get nomodule(){return Ne.get(this,"nomodule")}set nomodule(t){Ne.set(this,"nomodule",t)}get referrerPolicy(){return U.get(this,"referrerpolicy")}set referrerPolicy(t){U.set(this,"referrerpolicy",t)}get nonce(){return U.get(this,"nonce")}set nonce(t){U.set(this,"nonce",t)}get async(){return Ne.get(this,"async")}set async(t){Ne.set(this,"async",t)}get text(){return this.textContent}set text(t){this.textContent=t}};De(C2,Ol);var Vf=class extends P{constructor(t,a="frame"){super(t,a)}};var I2="iframe",_l=class extends P{constructor(t,a=I2){super(t,a)}get src(){return U.get(this,"src")}set src(t){U.set(this,"src",t)}get srcdoc(){return U.get(this,"srcdoc")}set srcdoc(t){U.set(this,"srcdoc",t)}get name(){return U.get(this,"name")}set name(t){U.set(this,"name",t)}get allow(){return U.get(this,"allow")}set allow(t){U.set(this,"allow",t)}get allowFullscreen(){return Ne.get(this,"allowfullscreen")}set allowFullscreen(t){Ne.set(this,"allowfullscreen",t)}get referrerPolicy(){return U.get(this,"referrerpolicy")}set referrerPolicy(t){U.set(this,"referrerpolicy",t)}get loading(){return U.get(this,"loading")}set loading(t){U.set(this,"loading",t)}};De(I2,_l);var Uf=class extends P{constructor(t,a="object"){super(t,a)}};var Gf=class extends P{constructor(t,a="head"){super(t,a)}};var Wf=class extends P{constructor(t,a="body"){super(t,a)}};var J2=uv(Y2(),1);var $2="style",Hl=class extends tn{constructor(t,a=$2){super(t,a),this[di]=null}get sheet(){let t=this[di];return t!==null?t:this[di]=(0,J2.parse)(this.textContent)}get innerHTML(){return super.innerHTML||""}set innerHTML(t){super.textContent=t,this[di]=null}get innerText(){return super.innerText||""}set innerText(t){super.textContent=t,this[di]=null}get textContent(){return super.textContent||""}set textContent(t){super.textContent=t,this[di]=null}};De($2,Hl);var zl=class extends P{constructor(t,a="time"){super(t,a)}get dateTime(){return U.get(this,"datetime")}set dateTime(t){U.set(this,"datetime",t)}};De("time",zl);var tp=class extends P{constructor(t,a="fieldset"){super(t,a)}};var ap=class extends P{constructor(t,a="embed"){super(t,a)}};var rp=class extends P{constructor(t,a="hr"){super(t,a)}};var np=class extends P{constructor(t,a="progress"){super(t,a)}};var op=class extends P{constructor(t,a="p"){super(t,a)}};var ip=class extends P{constructor(t,a="table"){super(t,a)}};var sp=class extends P{constructor(t,a="frameset"){super(t,a)}};var up=class extends P{constructor(t,a="li"){super(t,a)}};var lp=class extends P{constructor(t,a="base"){super(t,a)}};var cp=class extends P{constructor(t,a="datalist"){super(t,a)}};var Z2="input",Vl=class extends P{constructor(t,a=Z2){super(t,a)}get autofocus(){return Ne.get(this,"autofocus")||-1}set autofocus(t){Ne.set(this,"autofocus",t)}get disabled(){return Ne.get(this,"disabled")}set disabled(t){Ne.set(this,"disabled",t)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")}set placeholder(t){this.setAttribute("placeholder",t)}get type(){return this.getAttribute("type")}set type(t){this.setAttribute("type",t)}get value(){return U.get(this,"value")}set value(t){U.set(this,"value",t)}};De(Z2,Vl);var dp=class extends P{constructor(t,a="param"){super(t,a)}};var fp=class extends P{constructor(t,a="media"){super(t,a)}};var pp=class extends P{constructor(t,a="audio"){super(t,a)}};var X2="h1",Ul=class extends P{constructor(t,a=X2){super(t,a)}};De([X2,"h2","h3","h4","h5","h6"],Ul);var mp=class extends P{constructor(t,a="dir"){super(t,a)}};var hp=class extends P{constructor(t,a="quote"){super(t,a)}};var rk=uv(ak(),1);var{createCanvas:ZB}=rk.default,nk="canvas",Gl=class extends P{constructor(t,a=nk){super(t,a),this[Wa]=ZB(300,150)}get width(){return this[Wa].width}set width(t){kr.set(this,"width",t),this[Wa].width=t}get height(){return this[Wa].height}set height(t){kr.set(this,"height",t),this[Wa].height=t}getContext(t){return this[Wa].getContext(t)}toDataURL(...t){return this[Wa].toDataURL(...t)}};De(nk,Gl);var gp=class extends P{constructor(t,a="legend"){super(t,a)}};var ok="option",Wl=class extends P{constructor(t,a=ok){super(t,a)}get value(){return U.get(this,"value")}set value(t){U.set(this,"value",t)}get selected(){return Ne.get(this,"selected")}set selected(t){let a=this.parentElement?.querySelector("option[selected]");a&&a!==this&&(a.selected=!1),Ne.set(this,"selected",t)}};De(ok,Wl);var bp=class extends P{constructor(t,a="span"){super(t,a)}};var xp=class extends P{constructor(t,a="meter"){super(t,a)}};var vp=class extends P{constructor(t,a="video"){super(t,a)}};var yp=class extends P{constructor(t,a="td"){super(t,a)}};var ik="title",jl=class extends tn{constructor(t,a=ik){super(t,a)}};De(ik,jl);var Ap=class extends P{constructor(t,a="output"){super(t,a)}};var wp=class extends P{constructor(t,a="tr"){super(t,a)}};var Sp=class extends P{constructor(t,a="data"){super(t,a)}};var Cp=class extends P{constructor(t,a="menu"){super(t,a)}};var sk="select",ql=class extends P{constructor(t,a=sk){super(t,a)}get options(){let t=new Dt,{firstElementChild:a}=this;for(;a;)a.tagName==="OPTGROUP"?t.push(...a.children):t.push(a),a=a.nextElementSibling;return t}get disabled(){return Ne.get(this,"disabled")}set disabled(t){Ne.set(this,"disabled",t)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}get value(){return this.querySelector("option[selected]")?.value}};De(sk,ql);var Ip=class extends P{constructor(t,a="br"){super(t,a)}};var uk="button",Kl=class extends P{constructor(t,a=uk){super(t,a)}get disabled(){return Ne.get(this,"disabled")}set disabled(t){Ne.set(this,"disabled",t)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}get type(){return this.getAttribute("type")}set type(t){this.setAttribute("type",t)}};De(uk,Kl);var kp=class extends P{constructor(t,a="map"){super(t,a)}};var Lp=class extends P{constructor(t,a="optgroup"){super(t,a)}};var Ep=class extends P{constructor(t,a="dl"){super(t,a)}};var lk="textarea",Ql=class extends tn{constructor(t,a=lk){super(t,a)}get disabled(){return Ne.get(this,"disabled")}set disabled(t){Ne.set(this,"disabled",t)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}get placeholder(){return this.getAttribute("placeholder")}set placeholder(t){this.setAttribute("placeholder",t)}get type(){return this.getAttribute("type")}set type(t){this.setAttribute("type",t)}get value(){return this.textContent}set value(t){this.textContent=t}};De(lk,Ql);var Tp=class extends P{constructor(t,a="font"){super(t,a)}};var Rp=class extends P{constructor(t,a="div"){super(t,a)}};var ck="link",Yl=class extends P{constructor(t,a=ck){super(t,a)}get disabled(){return Ne.get(this,"disabled")}set disabled(t){Ne.set(this,"disabled",t)}get href(){return U.get(this,"href").trim()}set href(t){U.set(this,"href",t)}get hreflang(){return U.get(this,"hreflang")}set hreflang(t){U.set(this,"hreflang",t)}get media(){return U.get(this,"media")}set media(t){U.set(this,"media",t)}get rel(){return U.get(this,"rel")}set rel(t){U.set(this,"rel",t)}get type(){return U.get(this,"type")}set type(t){U.set(this,"type",t)}};De(ck,Yl);var dk="slot",Jl=class extends P{constructor(t,a=dk){super(t,a)}get name(){return this.getAttribute("name")}set name(t){this.setAttribute("name",t)}assign(){}assignedNodes(t){let a=!!this.name,r=this.getRootNode().host?.childNodes??[],n;if(a?n=[...r].filter(o=>o.slot===this.name):n=[...r].filter(o=>!o.slot),t?.flatten){let o=[];for(let i of n)i.localName==="slot"?o.push(...i.assignedNodes({flatten:!0})):o.push(i);n=o}return n.length?n:[...this.childNodes]}assignedElements(t){let a=this.assignedNodes(t).filter(r=>r.nodeType===1);return a.length?a:[...this.children]}};De(dk,Jl);var Pp=class extends P{constructor(t,a="form"){super(t,a)}};var fk="img",ki=class extends P{constructor(t,a=fk){super(t,a)}get alt(){return U.get(this,"alt")}set alt(t){U.set(this,"alt",t)}get sizes(){return U.get(this,"sizes")}set sizes(t){U.set(this,"sizes",t)}get src(){return U.get(this,"src")}set src(t){U.set(this,"src",t)}get srcset(){return U.get(this,"srcset")}set srcset(t){U.set(this,"srcset",t)}get title(){return U.get(this,"title")}set title(t){U.set(this,"title",t)}get width(){return kr.get(this,"width")}set width(t){kr.set(this,"width",t)}get height(){return kr.get(this,"height")}set height(t){kr.set(this,"height",t)}};De(fk,ki);var Np=class extends P{constructor(t,a="pre"){super(t,a)}};var Mp=class extends P{constructor(t,a="ul"){super(t,a)}};var pk="meta",$l=class extends P{constructor(t,a=pk){super(t,a)}get name(){return U.get(this,"name")}set name(t){U.set(this,"name",t)}get httpEquiv(){return U.get(this,"http-equiv")}set httpEquiv(t){U.set(this,"http-equiv",t)}get content(){return U.get(this,"content")}set content(t){U.set(this,"content",t)}get charset(){return U.get(this,"charset")}set charset(t){U.set(this,"charset",t)}get media(){return U.get(this,"media")}set media(t){U.set(this,"media",t)}};De(pk,$l);var Dp=class extends P{constructor(t,a="picture"){super(t,a)}};var Op=class extends P{constructor(t,a="area"){super(t,a)}};var _p=class extends P{constructor(t,a="ol"){super(t,a)}};var Bp=class extends P{constructor(t,a="caption"){super(t,a)}};var mk="a",Zl=class extends P{constructor(t,a=mk){super(t,a)}get href(){return encodeURI(decodeURI(U.get(this,"href"))).trim()}set href(t){U.set(this,"href",decodeURI(t))}get download(){return encodeURI(decodeURI(U.get(this,"download")))}set download(t){U.set(this,"download",decodeURI(t))}get target(){return U.get(this,"target")}set target(t){U.set(this,"target",t)}get type(){return U.get(this,"type")}set type(t){U.set(this,"type",t)}get rel(){return U.get(this,"rel")}set rel(t){U.set(this,"rel",t)}};De(mk,Zl);var Fp=class extends P{constructor(t,a="label"){super(t,a)}};var Hp=class extends P{constructor(t,a="unknown"){super(t,a)}};var zp=class extends P{constructor(t,a="mod"){super(t,a)}};var Vp=class extends P{constructor(t,a="details"){super(t,a)}};var hk="source",Xl=class extends P{constructor(t,a=hk){super(t,a)}get src(){return U.get(this,"src")}set src(t){U.set(this,"src",t)}get srcset(){return U.get(this,"srcset")}set srcset(t){U.set(this,"srcset",t)}get sizes(){return U.get(this,"sizes")}set sizes(t){U.set(this,"sizes",t)}get type(){return U.get(this,"type")}set type(t){U.set(this,"type",t)}};De(hk,Xl);var Up=class extends P{constructor(t,a="track"){super(t,a)}};var Gp=class extends P{constructor(t,a="marquee"){super(t,a)}};var gk={HTMLElement:P,HTMLTemplateElement:Dl,HTMLHtmlElement:zf,HTMLScriptElement:Ol,HTMLFrameElement:Vf,HTMLIFrameElement:_l,HTMLObjectElement:Uf,HTMLHeadElement:Gf,HTMLBodyElement:Wf,HTMLStyleElement:Hl,HTMLTimeElement:zl,HTMLFieldSetElement:tp,HTMLEmbedElement:ap,HTMLHRElement:rp,HTMLProgressElement:np,HTMLParagraphElement:op,HTMLTableElement:ip,HTMLFrameSetElement:sp,HTMLLIElement:up,HTMLBaseElement:lp,HTMLDataListElement:cp,HTMLInputElement:Vl,HTMLParamElement:dp,HTMLMediaElement:fp,HTMLAudioElement:pp,HTMLHeadingElement:Ul,HTMLDirectoryElement:mp,HTMLQuoteElement:hp,HTMLCanvasElement:Gl,HTMLLegendElement:gp,HTMLOptionElement:Wl,HTMLSpanElement:bp,HTMLMeterElement:xp,HTMLVideoElement:vp,HTMLTableCellElement:yp,HTMLTitleElement:jl,HTMLOutputElement:Ap,HTMLTableRowElement:wp,HTMLDataElement:Sp,HTMLMenuElement:Cp,HTMLSelectElement:ql,HTMLBRElement:Ip,HTMLButtonElement:Kl,HTMLMapElement:kp,HTMLOptGroupElement:Lp,HTMLDListElement:Ep,HTMLTextAreaElement:Ql,HTMLFontElement:Tp,HTMLDivElement:Rp,HTMLLinkElement:Yl,HTMLSlotElement:Jl,HTMLFormElement:Pp,HTMLImageElement:ki,HTMLPreElement:Np,HTMLUListElement:Mp,HTMLMetaElement:$l,HTMLPictureElement:Dp,HTMLAreaElement:Op,HTMLOListElement:_p,HTMLTableCaptionElement:Bp,HTMLAnchorElement:Zl,HTMLLabelElement:Fp,HTMLUnknownElement:Hp,HTMLModElement:zp,HTMLDetailsElement:Vp,HTMLSourceElement:Xl,HTMLTrackElement:Up,HTMLMarqueeElement:Gp};var Wp={test:()=>!0},bk={"text/html":{docType:"<!DOCTYPE html>",ignoreCase:!0,voidElements:/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i},"image/svg+xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Wp},"text/xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Wp},"application/xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Wp},"application/xhtml+xml":{docType:'<?xml version="1.0" encoding="utf-8"?>',ignoreCase:!1,voidElements:Wp}};var js=class extends va{constructor(t,a={}){super(t,a),this.detail=a.detail}};var ec=class extends va{constructor(t,a={}){super(t,a),this.inputType=a.inputType,this.data=a.data,this.dataTransfer=a.dataTransfer,this.isComposing=a.isComposing||!1,this.ranges=a.ranges}};var xk=e=>class extends ki{constructor(a,r){switch(super(e),arguments.length){case 1:this.height=a,this.width=a;break;case 2:this.height=r,this.width=a;break}}};var vk=({[Ht]:e,[ie]:t},a=null)=>{uf(e[Je],t[Y]);do{let r=Mt(e),n=r===t?r:r[Y];a?a.insertBefore(e,a[ie]):e.remove(),e=n}while(e!==t)},jp=class e{constructor(){this[Ht]=null,this[ie]=null,this.commonAncestorContainer=null}insertNode(t){this[ie].parentNode.insertBefore(t,this[Ht])}selectNode(t){this[Ht]=t,this[ie]=Mt(t)}selectNodeContents(t){this.selectNode(t),this.commonAncestorContainer=t}surroundContents(t){t.replaceChildren(this.extractContents())}setStartBefore(t){this[Ht]=t}setStartAfter(t){this[Ht]=t.nextSibling}setEndBefore(t){this[ie]=Mt(t.previousSibling)}setEndAfter(t){this[ie]=Mt(t)}cloneContents(){let{[Ht]:t,[ie]:a}=this,r=t.ownerDocument.createDocumentFragment();for(;t!==a;)r.insertBefore(t.cloneNode(!0),r[ie]),t=Mt(t),t!==a&&(t=t[Y]);return r}deleteContents(){vk(this)}extractContents(){let t=this[Ht].ownerDocument.createDocumentFragment();return vk(this,t),t}createContextualFragment(t){let{commonAncestorContainer:a}=this,r="ownerSVGElement"in a,n=r?a.ownerDocument:a,o=lf(n,t);if(r){let i=[...o.childNodes];o=n.createDocumentFragment(),Object.setPrototypeOf(o,Nr.prototype),o.ownerSVGElement=n;for(let s of i)Object.setPrototypeOf(s,Nr.prototype),s.ownerSVGElement=n,o.appendChild(s)}else this.selectNode(o);return o}cloneRange(){let t=new e;return t[Ht]=this[Ht],t[ie]=this[ie],t}};var XB=({nodeType:e},t)=>{switch(e){case 1:return t&U0;case 3:return t&G0;case 8:return t&j0;case 4:return t&W0}return 0},qp=class{constructor(t,a=V0){this.root=t,this.currentNode=t,this.whatToShow=a;let{[Y]:r,[ie]:n}=t;if(t.nodeType===9){let{documentElement:i}=t;r=i,n=i[ie]}let o=[];for(;r&&r!==n;)XB(r,a)&&o.push(r),r=r[Y];this[kt]={i:0,nodes:o}}nextNode(){let t=this[kt];return this.currentNode=t.i<t.nodes.length?t.nodes[t.i++]:null,this.currentNode}};var yk=(e,t,a)=>{let{[Y]:r,[ie]:n}=t;return e.call({ownerDocument:t,[Y]:r,[ie]:n},a)},Ak=sI({},w2,gk,{CustomEvent:js,Event:va,EventTarget:lo,InputEvent:ec,NamedNodeMap:Us,NodeList:Dt}),Kp=new WeakMap,Ka=class extends mo{constructor(t){super(null,"#document",9),this[xa]={active:!1,registry:null},this[$r]={active:!1,class:null},this[Sr]=bk[t],this[ro]=null,this[il]=null,this[Cs]=null,this[Wa]=null,this[no]=null}get defaultView(){return Kp.has(this)||Kp.set(this,new Proxy(globalThis,{set:(t,a,r)=>{switch(a){case"addEventListener":case"removeEventListener":case"dispatchEvent":this[Ss][a]=r;break;default:t[a]=r;break}return!0},get:(t,a)=>{switch(a){case"addEventListener":case"removeEventListener":case"dispatchEvent":if(!this[Ss]){let r=this[Ss]=new lo;r.dispatchEvent=r.dispatchEvent.bind(r),r.addEventListener=r.addEventListener.bind(r),r.removeEventListener=r.removeEventListener.bind(r)}return this[Ss][a];case"document":return this;case"navigator":return{userAgent:"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"};case"window":return Kp.get(this);case"customElements":return this[xa].registry||(this[xa]=new cf(this)),this[xa];case"performance":return t.performance;case"DOMParser":return this[il];case"Image":return this[Wa]||(this[Wa]=xk(this)),this[Wa];case"MutationObserver":return this[$r].class||(this[$r]=new pf(this)),this[$r].class}return this[Cs]&&this[Cs][a]||Ak[a]||t[a]}})),Kp.get(this)}get doctype(){let t=this[ro];if(t)return t;let{firstChild:a}=this;return a&&a.nodeType===10?this[ro]=a:null}set doctype(t){if(/^([a-z:]+)(\s+system|\s+public(\s+"([^"]+)")?)?(\s+"([^"]+)")?/i.test(t)){let{$1:a,$4:r,$6:n}=RegExp;this[ro]=new Mn(this,a,r,n),Rn(this,this[ro],this[Y])}}get documentElement(){return this.firstElementChild}get isConnected(){return!0}_getParent(){return this[Ss]}createAttribute(t){return new nr(this,t)}createCDATASection(t){return new co(this,t)}createComment(t){return new fo(this,t)}createDocumentFragment(){return new wi(this)}createDocumentType(t,a,r){return new Mn(this,t,a,r)}createElement(t){return new Pr(this,t)}createRange(){let t=new jp;return t.commonAncestorContainer=this,t}createTextNode(t){return new sr(this,t)}createTreeWalker(t,a=-1){return new qp(t,a)}createNodeIterator(t,a=-1){return this.createTreeWalker(t,a)}createEvent(t){let a=uI(t==="Event"?new va(""):new js(""));return a.initEvent=a.initCustomEvent=(r,n=!1,o=!1,i)=>{a.bubbles=!!n,lI(a,{type:{value:r},canBubble:{value:n},cancelable:{value:o},detail:{value:i}})},a}cloneNode(t=!1){let{constructor:a,[xa]:r,[ro]:n}=this,o=new a;if(o[xa]=r,t){let i=o[ie],{childNodes:s}=this;for(let{length:u}=s,l=0;l<u;l++)o.insertBefore(s[l].cloneNode(!0),i);n&&(o[ro]=s[0])}return o}importNode(t){let a=1<arguments.length&&!!arguments[1],r=t.cloneNode(a),{[xa]:n}=this,{active:o}=n,i=s=>{let{ownerDocument:u,nodeType:l}=s;s.ownerDocument=this,o&&u!==this&&l===1&&n.upgrade(s)};if(i(r),a)switch(r.nodeType){case 1:case 11:{let{[Y]:s,[ie]:u}=r;for(;s!==u;)s.nodeType===1&&i(s),s=s[Y];break}}return r}toString(){return this.childNodes.join("")}querySelector(t){return yk(super.querySelector,this,t)}querySelectorAll(t){return yk(super.querySelectorAll,this,t)}getElementsByTagNameNS(t,a){return this.getElementsByTagName(a)}createAttributeNS(t,a){return this.createAttribute(a)}createElementNS(t,a,r){return t===mi?new Nr(this,a,null):this.createElement(a,r)}};Et(Ak.Document=function(){ya()},Ka).prototype=Ka.prototype;var e5=(e,t,a,r)=>{if(!t&&Rs.has(a)){let i=Rs.get(a);return new i(e,a)}let{[xa]:{active:n,registry:o}}=e;if(n){let i=t?r.is:a;if(o.has(i)){let{Class:s}=o.get(i),u=new s(e,a);return Pn.set(u,{connected:!1}),u}}return new P(e,a)},tc=class extends Ka{constructor(){super("text/html")}get all(){let t=new Dt,{[Y]:a,[ie]:r}=this;for(;a!==r;)a.nodeType===1&&t.push(a),a=a[Y];return t}get head(){let{documentElement:t}=this,{firstElementChild:a}=t;return(!a||a.tagName!=="HEAD")&&(a=this.createElement("head"),t.prepend(a)),a}get body(){let{head:t}=this,{nextElementSibling:a}=t;return(!a||a.tagName!=="BODY")&&(a=this.createElement("body"),t.after(a)),a}get title(){let{head:t}=this;return t.getElementsByTagName("title").at(0)?.textContent||""}set title(t){let{head:a}=this,r=a.getElementsByTagName("title").at(0);r?r.textContent=t:a.insertBefore(this.createElement("title"),a.firstChild).textContent=t}createElement(t,a){let r=!!(a&&a.is),n=e5(this,r,t,a);return r&&n.setAttribute("is",a.is),n}};var Qp=class extends Ka{constructor(){super("image/svg+xml")}toString(){return this[Sr].docType+super.toString()}};var Yp=class extends Ka{constructor(){super("text/xml")}toString(){return this[Sr].docType+super.toString()}};var Jp=class e{parseFromString(t,a,r=null){let n=!1,o;return a==="text/html"?(n=!0,o=new tc):a==="image/svg+xml"?o=new Qp:o=new Yp,o[il]=e,r&&(o[Cs]=r),n&&t==="..."&&(t="<!doctype html><html><head></head><body></body></html>"),t?ff(o,n,t):o}};var{parse:Xoe}=JSON;var ho=(e,t=null)=>new Jp().parseFromString(e,"text/html",t).defaultView;function t5(){ya()}Et(t5,Ka).prototype=Ka.prototype;var $p=new Set(["script","style","template","meta","link","noscript","base"]);function Gb(e){let t=2166136261;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function wk(e){let t=(e>>>0).toString(36);return`hf-${t.length>=4?t.slice(-4):t.padStart(4,"0")}`}function a5(e){let t="";return e.childNodes.forEach(a=>{a.nodeType===3&&(t+=a.nodeValue??"")}),t.trim()}function r5(e){let t=Array.from(e.attributes).filter(a=>!a.name.startsWith("data-hf-")).map(a=>`${a.name}\0${a.value}`).sort().join("");return`${e.tagName.toLowerCase()}|${t}|${a5(e)}`}function Zp(e,t){let a=r5(e),r=wk(Gb(a)),n=0;for(;t.has(r);){if(n+=1,n>1e4){r=`hf-${(Gb(a)>>>0).toString(36)}-${n}`;break}r=wk(Gb(`${a}#${n}`))}return t.add(r),r}function Ck(e){let t=Array.from(e.children);if(t.length||e.tagName.toLowerCase()!=="template")return t;let a=e.content;return a?.children.length?Array.from(a.children):t}function ac(e){if(e.tagName.toLowerCase()!=="template")return!1;if(e.getAttribute("data-composition-id")!==null)return!0;for(let t of Ck(e))if(t.getAttribute("data-composition-id")!==null)return!0;return!1}function Wb(e,t){let a=e.nodeType===9?e.documentElement:e;if(!a)return;let r=n=>{for(let o of Ck(n))o.tagName.toLowerCase()==="template"&&!ac(o)||(t(o),r(o))};r(a)}function Sk(e,t){Wb(e,t)}function jb(e){let a=!/<!doctype|<html[\s>]/i.test(e),{document:r}=a?ho(`<!DOCTYPE html><html><head></head><body>${e}</body></html>`):ho(e),n=r.body;if(!n)return e;let o=new Set;return Sk(n,i=>{let s=i.getAttribute("data-hf-id");s&&o.add(s)}),Sk(n,i=>{$p.has(i.tagName.toLowerCase())||i.getAttribute("data-hf-id")||i.setAttribute("data-hf-id",Zp(i,o))}),a?r.body.innerHTML||"":r.toString()}function Ik(e){let t=jb(e),r=!/<!doctype|<html[\s>]/i.test(t),{document:n}=r?ho(`<!DOCTYPE html><html><head></head><body>${t}</body></html>`):ho(t);return{document:n,wrapped:r,stamped:t}}function go(e,t){return Wt(e,t)}function Li(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function qs(e,t){let a=[],r="body"in e?e.body??null:e,n=o=>{for(let i of Array.from(o.children)){if(i.tagName.toLowerCase()==="template"){ac(i)&&n(i);continue}i.matches(t)&&a.push(i),n(i)}};return r&&n(r),a}function n5(e){for(let t=e.parentElement;t;t=t.parentElement)if(qb(t))return!1;return!0}function Wt(e,t){let a=t.split("/");if(a.length===1){let n=Li(t),o=qs(e,`[data-hf-id="${n}"]`);return o.length>0?o.find(i=>n5(i))??o[0]??null:qs(e,`[data-composition-id="${n}"]`)[0]??null}let r=e;for(let n of a){let o=Li(n),i=qs(r,`[data-hf-id="${o}"]`)[0]??null;if(!i)return null;r=i}return r}function qb(e){let t=e.getAttribute("data-composition-file");if(!t)return!1;let a=e.parentElement?.getAttribute("data-composition-file")??null;return t!==a}function Zt(e,t){return t?un(e):e.documentElement??null}function un(e){return e.querySelector("[data-hf-root]")??e.getElementById("stage")??qs(e,"[data-composition-id]")[0]??e.body?.firstElementChild??null}function Xp(e){return e.startsWith("--")?e:e.replace(/-([a-z])/g,(t,a)=>a.toUpperCase())}function o5(e){return e.startsWith("--")?e:e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}function i5(e,t,a){if(e.quote){if(t==="\\"&&a){e.skip=!0;return}t===e.quote&&(e.quote=null);return}if(t==="'"||t==='"'){e.quote=t;return}t==="("?e.depth++:t===")"&&(e.depth=Math.max(0,e.depth-1))}function s5(e){let t=[],a={depth:0,quote:null,skip:!1},r=0;for(let n=0;n<e.length;n++){if(a.skip){a.skip=!1;continue}let o=e[n]??"";o===";"&&a.depth===0&&a.quote===null?(t.push(e.slice(r,n)),r=n+1):i5(a,o,e[n+1]??"")}return t.push(e.slice(r)),t}function u5(e){let t={};for(let a of s5(e)){let r=a.indexOf(":");if(r===-1)continue;let n=a.slice(0,r).trim(),o=a.slice(r+1).trim();n&&(t[Xp(n)]=o)}return t}function l5(e){return Object.entries(e).map(([t,a])=>`${o5(t)}: ${a}`).join("; ")}function bo(e){let t=e.getAttribute("style")??"";return u5(t)}function Qa(e,t){let a=bo(e);for(let[n,o]of Object.entries(t)){let i=Xp(n);o===null?delete a[i]:a[i]=o}let r=l5(a);r?e.setAttribute("style",r):e.removeAttribute("style")}function c5(e){let t=e.ownerDocument.defaultView?.HTMLElement;return t?e instanceof t:"style"in e}function kk(e){let t=e.children.length===1?e.firstElementChild:null;return t&&c5(t)?t:null}function em(e){let t=kk(e);if(t)return t.textContent??"";let a="";return e.childNodes.forEach(r=>{r.nodeType===3&&(a+=r.nodeValue??"")}),a}function rc(e,t){let a=kk(e);if(a){a.textContent=t;return}let r=e.ownerDocument,n=Array.from(e.childNodes),o=-1;for(let i=0;i<n.length;i++)if(n[i]?.nodeType===3){o=i;break}for(let i of n)i.nodeType===3&&e.removeChild(i);if(t){let i=Array.from(e.childNodes),s=o>=0?i[o]??null:null;e.insertBefore(r.createTextNode(t),s)}}function Lk(e){return e.querySelector("style")}function Ek(e){return Lk(e)?.textContent??""}function nc(e,t){let a=Lk(e);if(!t){a?.remove();return}let r=a;r||(r=e.createElement("style"),(e.querySelector("head")??e.body).appendChild(r)),r.textContent=t}function Tk(e){let t=[];return Wb(e,a=>{a.tagName.toLowerCase()==="script"&&t.push(a)}),t}function Rk(e){return e.includes("gsap")||e.includes("__timelines")||e.includes("ScrollTrigger")}function oc(e){return Tk(e).map(t=>t.textContent??"").filter(Rk)}function Pk(e){for(let t of Tk(e)){let a=t.textContent??"";if(Rk(a))return t}return null}function lt(e){let t=Pk(e);return t?t.textContent??"":null}function pt(e,t){let a=Pk(e);if(!t){a?.remove();return}let r=a;r||(r=e.createElement("script"),(e.querySelector("head")??e.body).appendChild(r)),r.textContent=t}function Nk(e){let t=e.parentElement;return t?Array.from(t.children).indexOf(e):0}function Ei(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ks(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function xo(e,t){return`/elements/${Ei(e)}/inlineStyles/${t}`}function Kb(e){return`/elements/${Ei(e)}/text`}function Qb(e,t){let a=t.replace(/~/g,"~0").replace(/\//g,"~1");return`/elements/${Ei(e)}/attributes/${a}`}function Qs(e,t){return`/elements/${Ei(e)}/timing/${t}`}function Yb(e,t){return`/elements/${Ei(e)}/hold/${t}`}function am(e){return`/elements/${Ei(e)}`}function rm(e){return`/variables/${e}`}function ic(e){return`/variableDeclarations/${e}`}function sc(e){return`/metadata/${e}`}function Jb(){return"/script/gsap"}function $b(){return"/style/css"}function Zb(e){let t=/^\/elements\/([^/]+)\/inlineStyles\/(.+)$/.exec(e);if(t)return`${Ks(t[1])}.style.${t[2]}`;let a=/^\/elements\/([^/]+)\/text$/.exec(e);if(a)return`${Ks(a[1])}.text`;let r=/^\/elements\/([^/]+)\/attributes\/(.+)$/.exec(e);if(r)return`${Ks(r[1])}.attr.${r[2]}`;let n=/^\/elements\/([^/]+)\/timing\/(.+)$/.exec(e);if(n)return`${Ks(n[1])}.timing.${n[2]}`;let o=/^\/elements\/([^/]+)\/hold\/(.+)$/.exec(e);if(o)return`${Ks(o[1])}.hold.${o[2]}`;let i=/^\/elements\/([^/]+)$/.exec(e);if(i)return Ks(i[1]);let s=/^\/variableDeclarations\/(.+)$/.exec(e);if(s)return`varDecl.${s[1]}`;let u=/^\/variables\/(.+)$/.exec(e);if(u)return`var.${u[1]}`;let l=/^\/metadata\/(.+)$/.exec(e);return l?`meta.${l[1]}`:e==="/script/gsap"?"script.gsap":e==="/style/css"?"style.css":null}function Mk(e){let t=/^([^.]+)\.style\.(.+)$/.exec(e);if(t?.[1]&&t[2])return xo(t[1],t[2]);let a=/^([^.]+)\.text$/.exec(e);if(a?.[1])return Kb(a[1]);let r=/^([^.]+)\.attr\.(.+)$/.exec(e);if(r?.[1]&&r[2])return`/elements/${Ei(r[1])}/attributes/${r[2]}`;let n=/^([^.]+)\.timing\.(start|end|duration|trackIndex)$/.exec(e);if(n?.[1])return Qs(n[1],n[2]);let o=/^([^.]+)\.hold\.(start|end|fill)$/.exec(e);if(o?.[1])return Yb(o[1],o[2]);let i=/^varDecl\.(.+)$/.exec(e);if(i?.[1])return ic(i[1]);let s=/^var\.(.+)$/.exec(e);if(s?.[1])return rm(s[1]);let u=/^meta\.(width|height|duration)$/.exec(e);return u?sc(u[1]):e==="script.gsap"?Jb():e==="style.css"?$b():e.includes(".")?null:am(e)}function nm(e,t,a,r){return{formatVersion:1,patches:e,inversePatches:t,origin:a,opTypes:r}}function tm(e,t){return{op:"replace",path:e,value:t}}function vo(e,t){return{op:"add",path:e,value:t}}function yo(e){return{op:"remove",path:e}}function ln(e,t,a){let r=t==null?vo(e,a):tm(e,a),n=t==null?yo(e):tm(e,t??null);return{forward:r,inverse:n}}function om(e,t,a){let r=t==null?vo(e,a):tm(e,a),n=t==null?yo(e):tm(e,t);return{forward:r,inverse:n}}function uc(e,t){return{forward:yo(e),inverse:vo(e,t)}}function d5(e){let t=[],a=0,r=e.length;for(;a<r;){let n=e.indexOf("{",a);if(n===-1)break;let o=e.slice(a,n).trim();if(!o){a=n+1;continue}let i=a;for(;i<n&&` \r
592
+ `.includes(e[i]);)i++;let s=n+1,u=null;for(;s<r;){let l=e[s];if(u)l==="\\"&&s+1<r?s++:l===u&&(u=null);else if(l==='"'||l==="'")u=l;else if(l==="}")break;s++}t.push({selector:o,body:e.slice(n+1,s),start:i,end:s+1}),a=s+1}return t}function f5(e){let t={},a=0,r=null,n=0;for(let o=0;o<=e.length;o++){let i=o<e.length?e[o]:";";if(r){if(i==="\\"){o++;continue}i===r&&(r=null);continue}if(i==='"'||i==="'"){r=i;continue}if(i==="(")a++;else if(i===")")a--;else if(i===";"&&a===0){let s=e.slice(n,o),u=s.indexOf(":");if(u!==-1){let l=s.slice(0,u).trim(),c=s.slice(u+1).trim();l&&c&&(t[l]=c)}n=o+1}}return t}function Dk(e){let t=Object.entries(e);return t.length?" "+t.map(([a,r])=>`${a}: ${r}`).join("; ")+"; ":""}function Ok(e){return e.trim().replace(/\s+/g," ")}function _k(e,t,a){let r=Ok(t),n=d5(e),o=n.findIndex(l=>Ok(l.selector)===r);if(o!==-1){let l=n[o],c=f5(l.body);for(let[f,p]of Object.entries(a))p===null?delete c[f]:c[f]=p;let d=`${l.selector} {${Dk(c)}}`;return e.slice(0,l.start)+d+e.slice(l.end)}let i={};for(let[l,c]of Object.entries(a))c!==null&&(i[l]=c);if(!Object.keys(i).length)return e;let s=`${t} {${Dk(i)}}`,u=e.length>0&&!e.endsWith(`
593
+ `)?`
594
+ `:"";return e+u+s+`
595
+ `}var Xb="data-hf-edit-base-x",ex="data-hf-edit-base-y";var Oe=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),Hie=Object.freeze([Oe.start,Oe.duration,Oe.trackIndex]),zie=Object.freeze([Oe.derivedEnd]),Vie=Object.freeze([Oe.derivedEnd,Oe.legacyTrack]),lc=class extends Error{constructor(t,a){super(a);te(this,"code");this.name="ClipTimingWriteError",this.code=t}};function Ys(e){if(e==null||e.trim()==="")return null;let t=Number(e);return Number.isFinite(t)?t:null}var Hk=/^[A-Za-z0-9_.:-]+$/;function zk(e,t){let a=e.charCodeAt(t);return a>=48&&a<=57}function Bk(e,t){let a=t;for(;a>=0&&zk(e,a);)a--;return a}function p5(e,t){let a=t;for(;a>=0&&(e[a]??"").trim()==="";)a--;return a}function m5(e){let t=e.length-1;if(!zk(e,t))return null;let a=Bk(e,t);return e[a]==="."&&(a=Bk(e,a-1)),a+1}function h5(e){let t=m5(e);if(t==null)return null;let a=p5(e,t-1),r=e[a];if(r!=="+"&&r!=="-")return null;let n=e.slice(0,a).trim();if(!Hk.test(n))return null;let o=Number(e.slice(t));return Number.isFinite(o)?{refId:n,operator:r,magnitude:o}:null}function Vk(e){let t=(e??"").trim();if(!t)return null;let a=Ys(t);if(a!=null)return{kind:"absolute",value:a};if(Hk.test(t))return{kind:"reference",refId:t,offset:0};let r=h5(t);return r?{kind:"reference",refId:r.refId,offset:r.operator==="-"?-r.magnitude:r.magnitude}:null}function Ya(e,t,a,r){e.push({code:t,attribute:a,value:r})}function g5(e,t,a,r){if(t==null||t.trim()==="")return a.defaultStart===void 0?0:a.defaultStart;if(!e)return Ya(r,"invalid-start",Oe.start,t),null;if(e.kind==="absolute")return Math.max(0,e.value);let n=a.resolveReferenceEnd?.(e.refId);return n==null||!Number.isFinite(n)?(Ya(r,"unresolved-start-reference",Oe.start,t),null):Math.max(0,n+e.offset)}function b5(e,t,a){Ya(a,"deprecated-end",Oe.derivedEnd,e);let r=Ys(e);r==null?Ya(a,"invalid-end",Oe.derivedEnd,e):t!=null&&r!==t&&Ya(a,"conflicting-end",Oe.derivedEnd,e)}function x5(e,t,a){let r=Ys(e);return r==null||r<0?(Ya(a,"invalid-duration",Oe.duration,e),{duration:null,end:null,durationSource:"invalid"}):{duration:r,end:t==null?null:t+r,durationSource:"duration"}}function v5(e,t,a){Ya(a,"deprecated-end",Oe.derivedEnd,e);let r=Ys(e);return r==null?(Ya(a,"invalid-end",Oe.derivedEnd,e),{duration:null,end:null,durationSource:"invalid"}):t==null?{duration:null,end:r,durationSource:"legacy-end"}:r<t?(Ya(a,"end-before-start",Oe.derivedEnd,e),{duration:null,end:null,durationSource:"invalid"}):{duration:r-t,end:r,durationSource:"legacy-end"}}function y5(e,t,a){let r=e.getAttribute(Oe.duration),n=e.getAttribute(Oe.derivedEnd);if(r==null)return n==null?{duration:null,end:null,durationSource:"missing"}:v5(n,t,a);let o=x5(r,t,a);return n!=null&&b5(n,o.end,a),o}function Fk(e,t,a,r){let n=Ys(e);return n==null||!Number.isInteger(n)?(Ya(r,"invalid-track-index",t,e),{trackIndex:0,trackSource:"invalid"}):{trackIndex:n,trackSource:a}}function A5(e,t){let a=e.getAttribute(Oe.trackIndex),r=e.getAttribute(Oe.legacyTrack);if(a==null&&r==null)return{trackIndex:0,trackSource:"default"};if(a==null&&r!=null)return Ya(t,"deprecated-layer",Oe.legacyTrack,r),Fk(r,Oe.legacyTrack,"legacy-layer",t);let n=Fk(a??"",Oe.trackIndex,"track-index",t);if(r==null)return n;Ya(t,"deprecated-layer",Oe.legacyTrack,r);let o=Ys(r);return o!=null&&o!==n.trackIndex&&Ya(t,"conflicting-layer",Oe.legacyTrack,r),n}function Ti(e,t={}){let a=[],r=e.getAttribute(Oe.start),n=Vk(r),o=g5(n,r,t,a),i=y5(e,o,a),s=A5(e,a);return{startExpression:n,start:o,...i,...s,diagnostics:a}}function Uk(e){if(!Number.isFinite(e))throw new lc("invalid-start","start must be finite");return String(e)}function w5(e){if(e.kind==="absolute")return Uk(e.value);if(!e.refId||!Number.isFinite(e.offset))throw new lc("invalid-start","reference start must have an id and finite offset");return e.offset===0?e.refId:`${e.refId} ${e.offset<0?"-":"+"} ${Math.abs(e.offset)}`}function S5(e){if(typeof e=="number")return Uk(e);if(typeof e=="object"&&e!=null)return w5(e);if(typeof e=="string"&&Vk(e))return e.trim();throw new lc("invalid-start",`invalid start expression: ${e??""}`)}function C5(e,t,a){if(t===null){e.removeAttribute(Oe.duration);return}if(t===void 0){e.getAttribute(Oe.duration)==null&&a.duration!=null&&e.setAttribute(Oe.duration,String(a.duration));return}if(!Number.isFinite(t)||t<0)throw new lc("invalid-duration","duration must be a finite, non-negative number");e.setAttribute(Oe.duration,String(t))}function I5(e,t,a){if(t===null){e.removeAttribute(Oe.trackIndex);return}if(t===void 0){e.getAttribute(Oe.trackIndex)==null&&a.trackSource==="legacy-layer"&&e.setAttribute(Oe.trackIndex,String(a.trackIndex));return}if(!Number.isFinite(t)||!Number.isInteger(t))throw new lc("invalid-track-index","trackIndex must be a finite integer");e.setAttribute(Oe.trackIndex,String(t))}function Gk(e,t){let a=Ti(e);return t.start!==void 0&&e.setAttribute(Oe.start,S5(t.start)),C5(e,t.duration,a),I5(e,t.trackIndex,a),t.duration===void 0&&e.getAttribute(Oe.duration)==null&&e.getAttribute(Oe.derivedEnd)!=null&&a.duration==null||e.removeAttribute(Oe.derivedEnd),e.removeAttribute(Oe.legacyTrack),Ti(e)}var k5=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Yk=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],L5="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Jk="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",tx={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ax="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",E5={5:ax,"5module":ax+" export import",6:ax+" const class extends export import super"},$k=/^in(stanceof)?$/,T5=new RegExp("["+Jk+"]"),R5=new RegExp("["+Jk+L5+"]");function nx(e,t){for(var a=65536,r=0;r<t.length;r+=2){if(a+=t[r],a>e)return!1;if(a+=t[r+1],a>=e)return!0}return!1}function cn(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&T5.test(String.fromCharCode(e)):t===!1?!1:nx(e,Yk)}function wo(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&R5.test(String.fromCharCode(e)):t===!1?!1:nx(e,Yk)||nx(e,k5)}var qe=function(t,a){a===void 0&&(a={}),this.label=t,this.keyword=a.keyword,this.beforeExpr=!!a.beforeExpr,this.startsExpr=!!a.startsExpr,this.isLoop=!!a.isLoop,this.isAssign=!!a.isAssign,this.prefix=!!a.prefix,this.postfix=!!a.postfix,this.binop=a.binop||null,this.updateContext=null};function lr(e,t){return new qe(e,{beforeExpr:!0,binop:t})}var cr={beforeExpr:!0},_a={startsExpr:!0},ux={};function Ue(e,t){return t===void 0&&(t={}),t.keyword=e,ux[e]=new qe(e,t)}var b={num:new qe("num",_a),regexp:new qe("regexp",_a),string:new qe("string",_a),name:new qe("name",_a),privateId:new qe("privateId",_a),eof:new qe("eof"),bracketL:new qe("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new qe("]"),braceL:new qe("{",{beforeExpr:!0,startsExpr:!0}),braceR:new qe("}"),parenL:new qe("(",{beforeExpr:!0,startsExpr:!0}),parenR:new qe(")"),comma:new qe(",",cr),semi:new qe(";",cr),colon:new qe(":",cr),dot:new qe("."),question:new qe("?",cr),questionDot:new qe("?."),arrow:new qe("=>",cr),template:new qe("template"),invalidTemplate:new qe("invalidTemplate"),ellipsis:new qe("...",cr),backQuote:new qe("`",_a),dollarBraceL:new qe("${",{beforeExpr:!0,startsExpr:!0}),eq:new qe("=",{beforeExpr:!0,isAssign:!0}),assign:new qe("_=",{beforeExpr:!0,isAssign:!0}),incDec:new qe("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new qe("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:lr("||",1),logicalAND:lr("&&",2),bitwiseOR:lr("|",3),bitwiseXOR:lr("^",4),bitwiseAND:lr("&",5),equality:lr("==/!=/===/!==",6),relational:lr("</>/<=/>=",7),bitShift:lr("<</>>/>>>",8),plusMin:new qe("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:lr("%",10),star:lr("*",10),slash:lr("/",10),starstar:new qe("**",{beforeExpr:!0}),coalesce:lr("??",1),_break:Ue("break"),_case:Ue("case",cr),_catch:Ue("catch"),_continue:Ue("continue"),_debugger:Ue("debugger"),_default:Ue("default",cr),_do:Ue("do",{isLoop:!0,beforeExpr:!0}),_else:Ue("else",cr),_finally:Ue("finally"),_for:Ue("for",{isLoop:!0}),_function:Ue("function",_a),_if:Ue("if"),_return:Ue("return",cr),_switch:Ue("switch"),_throw:Ue("throw",cr),_try:Ue("try"),_var:Ue("var"),_const:Ue("const"),_while:Ue("while",{isLoop:!0}),_with:Ue("with"),_new:Ue("new",{beforeExpr:!0,startsExpr:!0}),_this:Ue("this",_a),_super:Ue("super",_a),_class:Ue("class",_a),_extends:Ue("extends",cr),_export:Ue("export"),_import:Ue("import",_a),_null:Ue("null",_a),_true:Ue("true",_a),_false:Ue("false",_a),_in:Ue("in",{beforeExpr:!0,binop:7}),_instanceof:Ue("instanceof",{beforeExpr:!0,binop:7}),_typeof:Ue("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Ue("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Ue("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ba=/\r\n?|\n|\u2028|\u2029/,P5=new RegExp(Ba.source,"g");function Js(e){return e===10||e===13||e===8232||e===8233}function Zk(e,t,a){a===void 0&&(a=e.length);for(var r=t;r<a;r++){var n=e.charCodeAt(r);if(Js(n))return r<a-1&&n===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var Xk=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,jt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,eL=Object.prototype,N5=eL.hasOwnProperty,M5=eL.toString,$s=Object.hasOwn||(function(e,t){return N5.call(e,t)}),Wk=Array.isArray||(function(e){return M5.call(e)==="[object Array]"}),jk=Object.create(null);function Ao(e){return jk[e]||(jk[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Fn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var D5=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,dc=function(t,a){this.line=t,this.column=a};dc.prototype.offset=function(t){return new dc(this.line,this.column+t)};var dm=function(t,a,r){this.start=a,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function tL(e,t){for(var a=1,r=0;;){var n=Zk(e,r,t);if(n<0)return new dc(a,t-r);++a,r=n}}var ox={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},qk=!1;function O5(e){var t={};for(var a in ox)t[a]=e&&$s(e,a)?e[a]:ox[a];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!qk&&typeof console=="object"&&console.warn&&(qk=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
596
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),Wk(t.onToken)){var r=t.onToken;t.onToken=function(n){return r.push(n)}}if(Wk(t.onComment)&&(t.onComment=_5(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function _5(e,t){return function(a,r,n,o,i,s){var u={type:a?"Block":"Line",value:r,start:n,end:o};e.locations&&(u.loc=new dm(this,i,s)),e.ranges&&(u.range=[n,o]),t.push(u)}}var Ri=1,Pi=2,lx=4,aL=8,cx=16,rL=32,fm=64,nL=128,Ni=256,fc=512,oL=1024,pm=Ri|Pi|Ni;function dx(e,t){return Pi|(e?lx:0)|(t?aL:0)}var sm=0,fx=1,zn=2,iL=3,sL=4,uL=5,Ot=function(t,a,r){this.options=t=O5(t),this.sourceFile=t.sourceFile,this.keywords=Ao(E5[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=tx[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=Ao(n);var o=(n?n+" ":"")+tx.strict;this.reservedWordsStrict=Ao(o),this.reservedWordsStrictBind=Ao(o+" "+tx.strictBind),this.input=String(a),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
597
+ `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ba).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||t.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Pi:Ri),this.regexpState=null,this.privateNameStack=[]},fr={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ot.prototype.parse=function(){var t=this,a=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(a)})};fr.inFunction.get=function(){return(this.currentVarScope().flags&Pi)>0};fr.inGenerator.get=function(){return(this.currentVarScope().flags&aL)>0};fr.inAsync.get=function(){return(this.currentVarScope().flags&lx)>0};fr.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],a=t.flags;if(a&(Ni|fc))return!1;if(a&Pi)return(a&lx)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};fr.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Ri)};fr.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&fm)>0||this.options.allowSuperOutsideMethod};fr.allowDirectSuper.get=function(){return(this.currentThisScope().flags&nL)>0};fr.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};fr.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],a=t.flags;if(a&(Ni|fc)||a&Pi&&!(a&cx))return!0}return!1};fr.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&oL||!this.inModule&&t&Ri)};fr.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ni)>0};Ot.extend=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];for(var r=this,n=0;n<t.length;n++)r=t[n](r);return r};Ot.parse=function(t,a){return new this(a,t).parse()};Ot.parseExpressionAt=function(t,a,r){var n=new this(r,t,a);return n.nextToken(),n.parseExpression()};Ot.tokenizer=function(t,a){return new this(a,t)};Object.defineProperties(Ot.prototype,fr);var ca=Ot.prototype,B5=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ca.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){jt.lastIndex=e,e+=jt.exec(this.input)[0].length;var t=B5.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){jt.lastIndex=e+t[0].length;var a=jt.exec(this.input),r=a.index+a[0].length,n=this.input.charAt(r);return n===";"||n==="}"||Ba.test(a[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,jt.lastIndex=e,e+=jt.exec(this.input)[0].length,this.input[e]===";"&&e++}};ca.eat=function(e){return this.type===e?(this.next(),!0):!1};ca.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc};ca.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};ca.catchStackOverflow=function(e){try{return e()}catch(t){if(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message)))this.raise(this.start,"Not enough stack space to parse input");else throw t}};ca.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};ca.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||Ba.test(this.input.slice(this.lastTokEnd,this.start))};ca.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};ca.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()};ca.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};ca.expect=function(e){this.eat(e)||this.unexpected()};ca.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var mm=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ca.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var a=t?e.parenthesizedAssign:e.parenthesizedBind;a>-1&&this.raiseRecoverable(a,t?"Assigning to rvalue":"Parenthesized pattern")}};ca.checkExpressionErrors=function(e,t){if(!e)return!1;var a=e.shorthandAssign,r=e.doubleProto;if(!t)return a>=0||r>=0;a>=0&&this.raise(a,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};ca.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};ca.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var le=Ot.prototype;le.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==b.eof;){var a=this.parseStatement(null,!0,t);e.body.push(a)}if(this.inModule)for(var r=0,n=Object.keys(this.undefinedExports);r<n.length;r+=1){var o=n[r];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var px={kind:"loop"},F5={kind:"switch"};le.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;jt.lastIndex=this.pos;var t=jt.exec(this.input),a=this.pos+t[0].length,r=this.fullCharCodeAt(a);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(cn(r)){var n=a;do a+=r<=65535?1:2;while(wo(r=this.fullCharCodeAt(a)));if(r===92)return!0;var o=this.input.slice(n,a);if(!$k.test(o))return!0}return!1};le.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;jt.lastIndex=this.pos;var e=jt.exec(this.input),t=this.pos+e[0].length,a;return!Ba.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(wo(a=this.fullCharCodeAt(t+8))||a===92))};le.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;jt.lastIndex=this.pos;var a=jt.exec(this.input),r=this.pos+a[0].length;if(Ba.test(this.input.slice(this.pos,r)))return!1;if(e){var n=r+5,o;if(this.input.slice(r,n)!=="using"||n===this.input.length||wo(o=this.fullCharCodeAt(n))||o===92)return!1;jt.lastIndex=n;var i=jt.exec(this.input);if(r=n+i[0].length,i&&Ba.test(this.input.slice(n,r)))return!1}var s=this.fullCharCodeAt(r);if(!cn(s)&&s!==92)return!1;var u=r;do r+=s<=65535?1:2;while(wo(s=this.fullCharCodeAt(r)));if(s===92)return!0;var l=this.input.slice(u,r);if($k.test(l))return!1;if(t&&!e&&l==="of"){jt.lastIndex=r;var c=jt.exec(this.input);if(r=r+c[0].length,this.input.charCodeAt(r)!==61||(s=this.input.charCodeAt(r+1))===61||s===62)return!1}return!0};le.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};le.isUsing=function(e){return this.isUsingKeyword(!1,e)};le.parseStatement=function(e,t,a){var r=this.type,n=this.startNode(),o;switch(this.isLet(e)&&(r=b._var,o="let"),r){case b._break:case b._continue:return this.parseBreakContinueStatement(n,r.keyword);case b._debugger:return this.parseDebuggerStatement(n);case b._do:return this.parseDoStatement(n);case b._for:return this.parseForStatement(n);case b._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(n,!0);case b._if:return this.parseIfStatement(n);case b._return:return this.parseReturnStatement(n);case b._switch:return this.parseSwitchStatement(n);case b._throw:return this.parseThrowStatement(n);case b._try:return this.parseTryStatement(n);case b._const:case b._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(n,o);case b._while:return this.parseWhileStatement(n);case b._with:return this.parseWithStatement(n);case b.braceL:return this.parseBlock(!0,n);case b.semi:return this.parseEmptyStatement(n);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){jt.lastIndex=this.pos;var i=jt.exec(this.input),s=this.pos+i[0].length,u=this.input.charCodeAt(s);if(u===40||u===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===b._import?this.parseImport(n):this.parseExport(n,a);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),e&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,l),this.semicolon(),this.finishNode(n,"VariableDeclaration");var c=this.value,d=this.parseExpression();return r===b.name&&d.type==="Identifier"&&this.eat(b.colon)?this.parseLabeledStatement(n,c,d,e):this.parseExpressionStatement(n,d)}};le.parseBreakContinueStatement=function(e,t){var a=t==="break";this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type!==b.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var n=this.labels[r];if((e.label==null||n.name===e.label.name)&&(n.kind!=null&&(a||n.kind==="loop")||e.label&&a))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,a?"BreakStatement":"ContinueStatement")};le.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};le.parseDoStatement=function(e){return this.next(),this.labels.push(px),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};le.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(px),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var a=this.isLet();if(this.type===b._var||this.type===b._const||a){var r=this.startNode(),n=a?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,t)}var o=this.isContextual("let"),i=!1,s=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(s){var u=this.startNode();return this.next(),s==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(u,!0,s),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,t)}var l=this.containsEsc,c=new mm,d=this.start,f=t>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===b._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===b._in&&this.unexpected(t),e.await=!0):i&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type==="Identifier"&&f.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),o&&i&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,c),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(c,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))};le.parseForAfterInit=function(e,t,a){return(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.type===b._in?((t.kind==="using"||t.kind==="await using")&&!t.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&a>-1&&this.unexpected(a)):this.options.ecmaVersion>=9&&(e.await=a>-1),this.parseForIn(e,t)):(a>-1&&this.unexpected(a),this.parseFor(e,t))};le.parseFunctionStatement=function(e,t,a){return this.next(),this.parseFunction(e,cc|(a?0:ix),!1,t)};le.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(b._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};le.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};le.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(F5),this.enterScope(oL);for(var t,a=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(a&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),a=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};le.parseThrowStatement=function(e){return this.next(),Ba.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var H5=[];le.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?rL:0),this.checkLValPattern(e,t?sL:zn),this.expect(b.parenR),e};le.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};le.parseVarStatement=function(e,t,a){return this.next(),this.parseVar(e,!1,t,a),this.semicolon(),this.finishNode(e,"VariableDeclaration")};le.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(px),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};le.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};le.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};le.parseLabeledStatement=function(e,t,a,r){for(var n=0,o=this.labels;n<o.length;n+=1){var i=o[n];i.name===t&&this.raise(a.start,"Label '"+t+"' is already declared")}for(var s=this.type.isLoop?"loop":this.type===b._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var l=this.labels[u];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=s;else break}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=a,this.finishNode(e,"LabeledStatement")};le.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};le.parseBlock=function(e,t,a){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return a&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};le.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};le.parseForIn=function(e,t){var a=this.type===b._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!a||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(a?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=a?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,a?"ForInStatement":"ForOfStatement")};le.parseVar=function(e,t,a,r){for(e.declarations=[],e.kind=a;;){var n=this.startNode();if(this.parseVarId(n,a),this.eat(b.eq)?n.init=this.parseMaybeAssign(t):!r&&a==="const"&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&(a==="using"||a==="await using")&&this.options.ecmaVersion>=17&&this.type!==b._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+a+" declaration"):!r&&n.id.type!=="Identifier"&&!(t&&(this.type===b._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(b.comma))break}return e};le.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?fx:zn,!1)};var cc=1,ix=2,lL=4;le.parseFunction=function(e,t,a,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&ix&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&cc&&(e.id=t&lL&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&ix)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?fx:zn:iL));var o=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(dx(e.async,e.generator)),t&cc||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,a,!1,n),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,t&cc?"FunctionDeclaration":"FunctionExpression")};le.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};le.parseClass=function(e,t){this.next();var a=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),n=this.startNode(),o=!1;for(n.body=[],this.expect(b.braceL);this.type!==b.braceR;){var i=this.parseClassElement(e.superClass!==null);i&&(n.body.push(i),i.type==="MethodDefinition"&&i.kind==="constructor"?(o&&this.raiseRecoverable(i.start,"Duplicate constructor in the same class"),o=!0):i.key&&i.key.type==="PrivateIdentifier"&&z5(r,i)&&this.raiseRecoverable(i.key.start,"Identifier '#"+i.key.name+"' has already been declared"))}return this.strict=a,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};le.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,a=this.startNode(),r="",n=!1,o=!1,i="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(a),a;this.isClassElementNameStart()||this.type===b.star?s=!0:r="static"}if(a.static=s,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?o=!0:r="async"),!r&&(t>=9||!o)&&this.eat(b.star)&&(n=!0),!r&&!o&&!n){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?i=u:r=u)}if(r?(a.computed=!1,a.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),a.key.name=r,this.finishNode(a.key,"Identifier")):this.parseClassElementName(a),t<13||this.type===b.parenL||i!=="method"||n||o){var l=!a.static&&um(a,"constructor"),c=l&&e;l&&i!=="method"&&this.raise(a.key.start,"Constructor can't have get/set modifier"),a.kind=l?"constructor":i,this.parseClassMethod(a,n,o,c)}else this.parseClassField(a);return a};le.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword};le.parseClassElementName=function(e){this.type===b.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};le.parseClassMethod=function(e,t,a,r){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),a&&this.raise(n.start,"Constructor can't be an async method")):e.static&&um(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,a,r);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};le.parseClassField=function(e){return um(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&um(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(b.eq)?(this.enterScope(fc|fm),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};le.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Ni|fm);this.type!==b.braceR;){var a=this.parseStatement(null);e.body.push(a)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};le.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,zn,!1)):(t===!0&&this.unexpected(),e.id=null)};le.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null};le.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};le.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,a=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,n=r===0?null:this.privateNameStack[r-1],o=0;o<a.length;++o){var i=a[o];$s(t,i.name)||(n?n.used.push(i):this.raiseRecoverable(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"))}};function z5(e,t){var a=t.key.name,r=e[a],n="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(n=(t.static?"s":"i")+t.kind),r==="iget"&&n==="iset"||r==="iset"&&n==="iget"||r==="sget"&&n==="sset"||r==="sset"&&n==="sget"?(e[a]="true",!1):r?!0:(e[a]=n,!1)}function um(e,t){var a=e.computed,r=e.key;return!a&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}le.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};le.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var a=0,r=e.specifiers;a<r.length;a+=1){var n=r[a];this.checkUnreserved(n.local),this.checkLocalExport(n.local),n.local.type==="Literal"&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};le.parseExportDeclaration=function(e){return this.parseStatement(null)};le.parseExportDefaultDeclaration=function(){var e;if(this.type===b._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,cc|lL,!1,e)}else if(this.type===b._class){var a=this.startNode();return this.parseClass(a,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};le.checkExport=function(e,t,a){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),$s(e,t)&&this.raiseRecoverable(a,"Duplicate export '"+t+"'"),e[t]=!0)};le.checkPatternExport=function(e,t){var a=t.type;if(a==="Identifier")this.checkExport(e,t,t.start);else if(a==="ObjectPattern")for(var r=0,n=t.properties;r<n.length;r+=1){var o=n[r];this.checkPatternExport(e,o)}else if(a==="ArrayPattern")for(var i=0,s=t.elements;i<s.length;i+=1){var u=s[i];u&&this.checkPatternExport(e,u)}else a==="Property"?this.checkPatternExport(e,t.value):a==="AssignmentPattern"?this.checkPatternExport(e,t.left):a==="RestElement"&&this.checkPatternExport(e,t.argument)};le.checkVariableExport=function(e,t){if(e)for(var a=0,r=t;a<r.length;a+=1){var n=r[a];this.checkPatternExport(e,n.id)}};le.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};le.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};le.parseExportSpecifiers=function(e){var t=[],a=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(a)a=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;t.push(this.parseExportSpecifier(e))}return t};le.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=H5,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};le.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,zn),this.finishNode(e,"ImportSpecifier")};le.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,zn),this.finishNode(e,"ImportDefaultSpecifier")};le.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,zn),this.finishNode(e,"ImportNamespaceSpecifier")};le.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(b.comma)))return e;if(this.type===b.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;e.push(this.parseImportSpecifier())}return e};le.parseWithClause=function(){var e=[];if(!this.eat(b._with))return e;this.expect(b.braceL);for(var t={},a=!0;!this.eat(b.braceR);){if(a)a=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.parseImportAttribute(),n=r.key.type==="Identifier"?r.key.name:r.key.value;$s(t,n)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+n+"'"),t[n]=!0,e.push(r)}return e};le.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(b.colon),this.type!==b.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};le.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return D5.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};le.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};le.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var pr=Ot.prototype;pr.toAssignable=function(e,t,a){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",a&&this.checkPatternErrors(a,!0);for(var r=0,n=e.properties;r<n.length;r+=1){var o=n[r];this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern")&&this.raise(o.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",a&&this.checkPatternErrors(a,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,a);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else a&&this.checkPatternErrors(a,!0);return e};pr.toAssignableList=function(e,t){for(var a=e.length,r=0;r<a;r++){var n=e[r];n&&this.toAssignable(n,t)}if(a){var o=e[a-1];this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return e};pr.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};pr.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};pr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case b.braceL:return this.parseObj(!0)}return this.parseIdent()};pr.parseBindingList=function(e,t,a,r){for(var n=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(b.comma),t&&this.type===b.comma)n.push(null);else{if(a&&this.afterTrailingComma(e))break;if(this.type===b.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),n.push(i),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else n.push(this.parseAssignableListItem(r))}return n};pr.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};pr.parseBindingListItem=function(e){return e};pr.parseMaybeDefault=function(e,t,a){if(a=a||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return a;var r=this.startNodeAt(e,t);return r.left=a,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};pr.checkLValSimple=function(e,t,a){t===void 0&&(t=sm);var r=t!==sm;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===zn&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),a&&($s(a,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),a[e.name]=!0),t!==uL&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,a);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};pr.checkLValPattern=function(e,t,a){switch(t===void 0&&(t=sm),e.type){case"ObjectPattern":for(var r=0,n=e.properties;r<n.length;r+=1){var o=n[r];this.checkLValInnerPattern(o,t,a)}break;case"ArrayPattern":for(var i=0,s=e.elements;i<s.length;i+=1){var u=s[i];u&&this.checkLValInnerPattern(u,t,a)}break;default:this.checkLValSimple(e,t,a)}};pr.checkLValInnerPattern=function(e,t,a){switch(t===void 0&&(t=sm),e.type){case"Property":this.checkLValInnerPattern(e.value,t,a);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,a);break;case"RestElement":this.checkLValPattern(e.argument,t,a);break;default:this.checkLValPattern(e,t,a)}};var Or=function(t,a,r,n,o){this.token=t,this.isExpr=!!a,this.preserveSpace=!!r,this.override=n,this.generator=!!o},mt={b_stat:new Or("{",!1),b_expr:new Or("{",!0),b_tmpl:new Or("${",!1),p_stat:new Or("(",!1),p_expr:new Or("(",!0),q_tmpl:new Or("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Or("function",!1),f_expr:new Or("function",!0),f_expr_gen:new Or("function",!0,!1,null,!0),f_gen:new Or("function",!1,!1,null,!0)},Zs=Ot.prototype;Zs.initialContext=function(){return[mt.b_stat]};Zs.curContext=function(){return this.context[this.context.length-1]};Zs.braceIsBlock=function(e){var t=this.curContext();return t===mt.f_expr||t===mt.f_stat?!0:e===b.colon&&(t===mt.b_stat||t===mt.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?Ba.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===mt.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed};Zs.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Zs.updateContext=function(e){var t,a=this.type;a.keyword&&e===b.dot?this.exprAllowed=!1:(t=a.updateContext)?t.call(this,e):this.exprAllowed=a.beforeExpr};Zs.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===mt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?mt.b_stat:mt.b_expr),this.exprAllowed=!0};b.dollarBraceL.updateContext=function(){this.context.push(mt.b_tmpl),this.exprAllowed=!0};b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?mt.p_stat:mt.p_expr),this.exprAllowed=!0};b.incDec.updateContext=function(){};b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&!(e===b.semi&&this.curContext()!==mt.p_stat)&&!(e===b._return&&Ba.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===b.colon||e===b.braceL)&&this.curContext()===mt.b_stat)?this.context.push(mt.f_expr):this.context.push(mt.f_stat),this.exprAllowed=!1};b.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};b.backQuote.updateContext=function(){this.curContext()===mt.q_tmpl?this.context.pop():this.context.push(mt.q_tmpl),this.exprAllowed=!1};b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===mt.f_expr?this.context[t]=mt.f_expr_gen:this.context[t]=mt.f_gen}this.exprAllowed=!0};b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ke=Ot.prototype;ke.checkPropClash=function(e,t,a){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,n;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){n==="__proto__"&&o==="init"&&(t.proto&&(a?a.doubleProto<0&&(a.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}n="$"+n;var i=t[n];if(i){var s;o==="init"?s=this.strict&&i.init||i.get||i.set:s=i.init||i[o],s&&this.raiseRecoverable(r.start,"Redefinition of property")}else i=t[n]={init:!1,get:!1,set:!1};i[o]=!0}};ke.parseExpression=function(e,t){var a=this;return this.catchStackOverflow(function(){var r=a.start,n=a.startLoc,o=a.parseMaybeAssign(e,t);if(a.type===b.comma){var i=a.startNodeAt(r,n);for(i.expressions=[o];a.eat(b.comma);)i.expressions.push(a.parseMaybeAssign(e,t));return a.finishNode(i,"SequenceExpression")}return o})};ke.parseMaybeAssign=function(e,t,a){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,n=-1,o=-1,i=-1;t?(n=t.parenthesizedAssign,o=t.trailingComma,i=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new mm,r=!0);var s=this.start,u=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(a&&(l=a.call(this,l,s,u)),this.type.isAssign){var c=this.startNodeAt(s,u);return c.operator=this.value,this.type===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(l):this.checkLValSimple(l),c.left=l,this.next(),c.right=this.parseMaybeAssign(e),i>-1&&(t.doubleProto=i),this.finishNode(c,"AssignmentExpression")}else r&&this.checkExpressionErrors(t,!0);return n>-1&&(t.parenthesizedAssign=n),o>-1&&(t.trailingComma=o),l};ke.parseMaybeConditional=function(e,t){var a=this.start,r=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(!(n.type==="ArrowFunctionExpression"&&n.start===a)&&this.eat(b.question)){var o=this.startNodeAt(a,r);return o.test=n,o.consequent=this.parseMaybeAssign(),this.expect(b.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return n};ke.parseExprOps=function(e,t){var a=this.start,r=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===a&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,a,r,-1,e)};ke.parseExprOp=function(e,t,a,r,n){var o=this.type.binop;if(o!=null&&(!n||this.type!==b._in)&&o>r){var i=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(o=b.logicalAND.binop);var u=this.value;this.next();var l=this.start,c=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),l,c,o,n),f=this.buildBinary(t,a,e,d,u,i||s);return(i&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,t,a,r,n)}return e};ke.buildBinary=function(e,t,a,r,n,o){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var i=this.startNodeAt(e,t);return i.left=a,i.operator=n,i.right=r,this.finishNode(i,o?"LogicalExpression":"BinaryExpression")};ke.parseMaybeUnary=function(e,t,a,r){var n=this.start,o=this.startLoc,i;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),u=this.type===b.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,u,r),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(s.argument):this.strict&&s.operator==="delete"&&cL(s.argument)?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):s.operator==="delete"&&sx(s.argument)?this.raiseRecoverable(s.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(s,u?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(n,o);l.operator=this.value,l.prefix=!1,l.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(l,"UpdateExpression")}}if(!a&&this.eat(b.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(n,o,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return i};function cL(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&cL(e.expression)}function sx(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&sx(e.expression)||e.type==="ParenthesizedExpression"&&sx(e.expression)}ke.parseExprSubscripts=function(e,t){var a=this.start,r=this.startLoc,n=this.parseExprAtom(e,t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var o=this.parseSubscripts(n,a,r,!1,t);return e&&o.type==="MemberExpression"&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o};ke.parseSubscripts=function(e,t,a,r,n){for(var o=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,i=!1;;){var s=this.parseSubscript(e,t,a,r,o,i,n);if(s.optional&&(i=!0),s===e||s.type==="ArrowFunctionExpression"){if(i){var u=this.startNodeAt(t,a);u.expression=s,s=this.finishNode(u,"ChainExpression")}return s}e=s}};ke.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)};ke.parseSubscriptAsyncArrow=function(e,t,a,r){return this.parseArrowExpression(this.startNodeAt(e,t),a,!0,r)};ke.parseSubscript=function(e,t,a,r,n,o,i){var s=this.options.ecmaVersion>=11,u=s&&this.eat(b.questionDot);r&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(b.bracketL);if(l||u&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var c=this.startNodeAt(t,a);c.object=e,l?(c.property=this.parseExpression(),this.expect(b.bracketR)):this.type===b.privateId&&e.type!=="Super"?c.property=this.parsePrivateIdent():c.property=this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!l,s&&(c.optional=u),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(b.parenL)){var d=new mm,f=this.yieldPos,p=this.awaitPos,g=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,d);if(n&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=g,this.parseSubscriptAsyncArrow(t,a,m,i);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=g||this.awaitIdentPos;var x=this.startNodeAt(t,a);x.callee=e,x.arguments=m,s&&(x.optional=u),e=this.finishNode(x,"CallExpression")}else if(this.type===b.backQuote){(u||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,a);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e};ke.parseExprAtom=function(e,t,a){this.type===b.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(r,"Super");case b._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case b.name:var o=this.start,i=this.startLoc,s=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(mt.f_expr),this.parseFunction(this.startNodeAt(o,i),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(o,i),[u],!1,t);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===b.name&&!s&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return u=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,i),[u],!0,t)}return u;case b.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return r=this.startNode(),r.value=this.type===b._null?null:this.type===b._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case b.parenL:var c=this.start,d=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),d;case b.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case b.braceL:return this.overrideContext(mt.b_expr),this.parseObj(!1,e);case b._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(a):this.unexpected();default:return this.parseExprAtomDefault()}};ke.parseExprAtomDefault=function(){this.unexpected()};ke.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.dot){var a=this.startNodeAt(t.start,t.loc&&t.loc.start);return a.name="import",t.meta=this.finishNode(a,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};ke.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(b.parenR)?e.options=null:(this.expect(b.comma),this.afterTrailingComma(b.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(b.parenR)||(this.expect(b.comma),this.afterTrailingComma(b.parenR)||this.unexpected())));else if(!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};ke.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};ke.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};ke.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e};ke.shouldParseArrow=function(e){return!this.canInsertSemicolon()};ke.parseParenAndDistinguishExpression=function(e,t){var a=this.start,r=this.startLoc,n,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i=this.start,s=this.startLoc,u=[],l=!0,c=!1,d=new mm,f=this.yieldPos,p=this.awaitPos,g;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;)if(l?l=!1:this.expect(b.comma),o&&this.afterTrailingComma(b.parenR,!0)){c=!0;break}else if(this.type===b.ellipsis){g=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,d,this.parseParenItem));var m=this.lastTokEnd,x=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(u)&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(a,r,u,t);(!u.length||c)&&this.unexpected(this.lastTokStart),g&&this.unexpected(g),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,u.length>1?(n=this.startNodeAt(i,s),n.expressions=u,this.finishNodeAt(n,"SequenceExpression",m,x)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(a,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}else return n};ke.parseParenItem=function(e){return e};ke.parseParenArrowList=function(e,t,a,r){return this.parseArrowExpression(this.startNodeAt(e,t),a,!1,r)};var V5=[];ke.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===b.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var a=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),a&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,n,!0,!1),e.callee.type==="Super"&&this.raiseRecoverable(r,"Invalid use of 'super'"),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=V5,this.finishNode(e,"NewExpression")};ke.parseTemplateElement=function(e){var t=e.isTagged,a=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),a.value={raw:this.value.replace(/\r\n?/g,`
598
+ `),cooked:null}):a.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
599
+ `),cooked:this.value},this.next(),a.tail=this.type===b.backQuote,this.finishNode(a,"TemplateElement")};ke.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var a=this.startNode();this.next(),a.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(a.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(b.dollarBraceL),a.expressions.push(this.parseExpression()),this.expect(b.braceR),a.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(a,"TemplateLiteral")};ke.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!Ba.test(this.input.slice(this.lastTokEnd,this.start))};ke.parseObj=function(e,t){var a=this.startNode(),r=!0,n={};for(a.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,n,t),a.properties.push(o)}return this.finishNode(a,e?"ObjectPattern":"ObjectExpression")};ke.parseProperty=function(e,t){var a=this.startNode(),r,n,o,i;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(o=this.start,i=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(a),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(a)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,e,r,n,o,i,t,s),this.finishNode(a,"Property")};ke.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var a=e.kind==="get"?0:1;if(e.value.params.length!==a){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};ke.parsePropertyValue=function(e,t,a,r,n,o,i,s){(a||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init"):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(a,r),e.kind="init"):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq?((a||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((a||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),t?e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key)):this.type===b.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};ke.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};ke.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};ke.parseMethod=function(e,t,a){var r=this.startNode(),n=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(dx(t,r.generator)|fm|(a?nL:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(r,"FunctionExpression")};ke.parseArrowExpression=function(e,t,a,r){var n=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(dx(a,!1)|cx),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!a),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(e,"ArrowFunctionExpression")};ke.parseFunctionBody=function(e,t,a,r){var n=t&&this.type!==b.braceL,o=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||s)&&(i=this.strictDirective(this.end),i&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var u=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!o&&!i&&!t&&!a&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,uL),e.body=this.parseBlock(!1,void 0,i&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};ke.isSimpleParamList=function(e){for(var t=0,a=e;t<a.length;t+=1){var r=a[t];if(r.type!=="Identifier")return!1}return!0};ke.checkParams=function(e,t){for(var a=Object.create(null),r=0,n=e.params;r<n.length;r+=1){var o=n[r];this.checkLValInnerPattern(o,fx,t?null:a)}};ke.parseExprList=function(e,t,a,r){for(var n=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var i=void 0;a&&this.type===b.comma?i=null:this.type===b.ellipsis?(i=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):i=this.parseMaybeAssign(!1,r),n.push(i)}return n};ke.checkUnreserved=function(e){var t=e.start,a=e.end,r=e.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&pm)&&r==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,a).indexOf("\\")!==-1)){var n=this.strict?this.reservedWordsStrict:this.reservedWords;n.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))}};ke.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};ke.parseIdentNode=function(){var e=this.startNode();return this.type===b.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=b.name):this.unexpected(),e};ke.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};ke.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};ke.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var lm=Ot.prototype;lm.raise=function(e,t){var a=tL(this.input,e);t+=" ("+a.line+":"+a.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var r=new SyntaxError(t);throw r.pos=e,r.loc=a,r.raisedAt=this.pos,r};lm.raiseRecoverable=lm.raise;lm.curPosition=function(){if(this.options.locations)return new dc(this.curLine,this.pos-this.lineStart)};var So=Ot.prototype,U5=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};So.enterScope=function(e){this.scopeStack.push(new U5(e))};So.exitScope=function(){this.scopeStack.pop()};So.treatFunctionsAsVarInScope=function(e){return e.flags&Pi||!this.inModule&&e.flags&Ri};So.declareName=function(e,t,a){var r=!1;if(t===zn){var n=this.currentScope();r=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&Ri&&delete this.undefinedExports[e]}else if(t===sL){var o=this.currentScope();o.lexical.push(e)}else if(t===iL){var i=this.currentScope();this.treatFunctionsAsVar?r=i.lexical.indexOf(e)>-1:r=i.lexical.indexOf(e)>-1||i.var.indexOf(e)>-1,i.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var u=this.scopeStack[s];if(u.lexical.indexOf(e)>-1&&!(u.flags&rL&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){r=!0;break}if(u.var.push(e),this.inModule&&u.flags&Ri&&delete this.undefinedExports[e],u.flags&pm)break}r&&this.raiseRecoverable(a,"Identifier '"+e+"' has already been declared")};So.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};So.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};So.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(pm|fc|Ni))return t}};So.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(pm|fc|Ni)&&!(t.flags&cx))return t}};var hm=function(t,a,r){this.type="",this.start=a,this.end=0,t.options.locations&&(this.loc=new dm(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[a,0])},pc=Ot.prototype;pc.startNode=function(){return new hm(this,this.start,this.startLoc)};pc.startNodeAt=function(e,t){return new hm(this,e,t)};function dL(e,t,a,r){return e.type=t,e.end=a,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=a),e}pc.finishNode=function(e,t){return dL.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};pc.finishNodeAt=function(e,t,a,r){return dL.call(this,e,t,a,r)};pc.copyNode=function(e){var t=new hm(this,e.start,this.startLoc);for(var a in e)t[a]=e[a];return t};var G5="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",fL="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",pL=fL+" Extended_Pictographic",mL=pL,hL=mL+" EBase EComp EMod EPres ExtPict",gL=hL,W5=gL,j5={9:fL,10:pL,11:mL,12:hL,13:gL,14:W5},q5="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",K5={9:"",10:"",11:"",12:"",13:"",14:q5},Kk="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",bL="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",xL=bL+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",vL=xL+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",yL=vL+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",AL=yL+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Q5=AL+" "+G5,Y5={9:bL,10:xL,11:vL,12:yL,13:AL,14:Q5},wL={};function J5(e){var t=wL[e]={binary:Ao(j5[e]+" "+Kk),binaryOfStrings:Ao(K5[e]),nonBinary:{General_Category:Ao(Kk),Script:Ao(Y5[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(im=0,rx=[9,10,11,12,13,14];im<rx.length;im+=1)Qk=rx[im],J5(Qk);var Qk,im,rx,se=Ot.prototype,cm=function(t,a){this.parent=t,this.base=a||this};cm.prototype.separatedFrom=function(t){for(var a=this;a;a=a.parent)for(var r=t;r;r=r.parent)if(a.base===r.base&&a!==r)return!0;return!1};cm.prototype.sibling=function(){return new cm(this.parent,this.base)};var dn=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=wL[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};dn.prototype.reset=function(t,a,r){var n=r.indexOf("v")!==-1,o=r.indexOf("u")!==-1;this.start=t|0,this.source=a+"",this.flags=r,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9)};dn.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};dn.prototype.at=function(t,a){a===void 0&&(a=!1);var r=this.source,n=r.length;if(t>=n)return-1;var o=r.charCodeAt(t);if(!(a||this.switchU)||o<=55295||o>=57344||t+1>=n)return o;var i=r.charCodeAt(t+1);return i>=56320&&i<=57343?(o<<10)+i-56613888:o};dn.prototype.nextIndex=function(t,a){a===void 0&&(a=!1);var r=this.source,n=r.length;if(t>=n)return n;var o=r.charCodeAt(t),i;return!(a||this.switchU)||o<=55295||o>=57344||t+1>=n||(i=r.charCodeAt(t+1))<56320||i>57343?t+1:t+2};dn.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};dn.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};dn.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};dn.prototype.eat=function(t,a){return a===void 0&&(a=!1),this.current(a)===t?(this.advance(a),!0):!1};dn.prototype.eatChars=function(t,a){a===void 0&&(a=!1);for(var r=this.pos,n=0,o=t;n<o.length;n+=1){var i=o[n],s=this.at(r,a);if(s===-1||s!==i)return!1;r=this.nextIndex(r,a)}return this.pos=r,!0};se.validateRegExpFlags=function(e){for(var t=e.validFlags,a=e.flags,r=!1,n=!1,o=0;o<a.length;o++){var i=a.charAt(o);t.indexOf(i)===-1&&this.raise(e.start,"Invalid regular expression flag"),a.indexOf(i,o+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),i==="u"&&(r=!0),i==="v"&&(n=!0)}this.options.ecmaVersion>=15&&r&&n&&this.raise(e.start,"Invalid regular expression flag")};function $5(e){for(var t in e)return!0;return!1}se.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&$5(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};se.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,a=e.backReferenceNames;t<a.length;t+=1){var r=a[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}};se.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new cm(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};se.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};se.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};se.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var a=!1;if(this.options.ecmaVersion>=9&&(a=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!a,!0}return e.pos=t,!1};se.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};se.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};se.regexp_eatBracedQuantifier=function(e,t){var a=e.pos;if(e.eat(123)){var r=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=a}return!1};se.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};se.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};se.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var a=this.regexp_eatModifiers(e),r=e.eat(45);if(a||r){for(var n=0;n<a.length;n++){var o=a.charAt(n);a.indexOf(o,n+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){var i=this.regexp_eatModifiers(e);!a&&!i&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var s=0;s<i.length;s++){var u=i.charAt(s);(i.indexOf(u,s+1)>-1||a.indexOf(u)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};se.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};se.regexp_eatModifiers=function(e){for(var t="",a=0;(a=e.current())!==-1&&Z5(a);)t+=Fn(a),e.advance();return t};function Z5(e){return e===105||e===109||e===115}se.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};se.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};se.regexp_eatSyntaxCharacter=function(e){var t=e.current();return SL(t)?(e.lastIntValue=t,e.advance(),!0):!1};function SL(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}se.regexp_eatPatternCharacters=function(e){for(var t=e.pos,a=0;(a=e.current())!==-1&&!SL(a);)e.advance();return e.pos!==t};se.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};se.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,a=e.groupNames[e.lastStringValue];if(a)if(t)for(var r=0,n=a;r<n.length;r+=1){var o=n[r];o.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(a||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};se.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};se.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Fn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Fn(e.lastIntValue);return!0}return!1};se.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,a=this.options.ecmaVersion>=11,r=e.current(a);return e.advance(a),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,a)&&(r=e.lastIntValue),X5(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function X5(e){return cn(e,!0)||e===36||e===95}se.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,a=this.options.ecmaVersion>=11,r=e.current(a);return e.advance(a),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,a)&&(r=e.lastIntValue),e8(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function e8(e){return wo(e,!0)||e===36||e===95||e===8204||e===8205}se.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};se.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var a=e.lastIntValue;if(e.switchU)return a>e.maxBackReference&&(e.maxBackReference=a),!0;if(a<=e.numCapturingParens)return!0;e.pos=t}return!1};se.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};se.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};se.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};se.regexp_eatZero=function(e){return e.current()===48&&!gm(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};se.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};se.regexp_eatControlLetter=function(e){var t=e.current();return CL(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function CL(e){return e>=65&&e<=90||e>=97&&e<=122}se.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var a=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(i>=56320&&i<=57343)return e.lastIntValue=(n-55296)*1024+(i-56320)+65536,!0}e.pos=o,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&t8(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=a}return!1};function t8(e){return e>=0&&e<=1114111}se.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};se.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var IL=0,Hn=1,dr=2;se.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(a8(t))return e.lastIntValue=-1,e.advance(),Hn;var a=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((a=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return a&&r===dr&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return IL};function a8(e){return e===100||e===68||e===115||e===83||e===119||e===87}se.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var a=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,a,r),Hn}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return IL};se.regexp_validateUnicodePropertyNameAndValue=function(e,t,a){$s(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(a)||e.raise("Invalid property value")};se.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Hn;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return dr;e.raise("Invalid property name")};se.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";kL(t=e.current());)e.lastStringValue+=Fn(t),e.advance();return e.lastStringValue!==""};function kL(e){return CL(e)||e===95}se.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";r8(t=e.current());)e.lastStringValue+=Fn(t),e.advance();return e.lastStringValue!==""};function r8(e){return kL(e)||gm(e)}se.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};se.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),a=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&a===dr&&e.raise("Negated character class may contain strings"),!0}return!1};se.regexp_classContents=function(e){return e.current()===93?Hn:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Hn)};se.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var a=e.lastIntValue;e.switchU&&(t===-1||a===-1)&&e.raise("Invalid character class"),t!==-1&&a!==-1&&t>a&&e.raise("Range out of order in character class")}}};se.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var a=e.current();(a===99||TL(a))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return r!==93?(e.lastIntValue=r,e.advance(),!0):!1};se.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};se.regexp_classSetExpression=function(e){var t=Hn,a;if(!this.regexp_eatClassSetRange(e))if(a=this.regexp_eatClassSetOperand(e)){a===dr&&(t=dr);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(a=this.regexp_eatClassSetOperand(e))){a!==dr&&(t=Hn);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(a=this.regexp_eatClassSetOperand(e),!a)return t;a===dr&&(t=dr)}};se.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var a=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return a!==-1&&r!==-1&&a>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};se.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Hn:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};se.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var a=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return a&&r===dr&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null};se.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var a=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return a}else e.raise("Invalid escape");e.pos=t}return null};se.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===dr&&(t=dr);return t};se.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Hn:dr};se.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var a=e.current();return a<0||a===e.lookahead()&&n8(a)||o8(a)?!1:(e.advance(),e.lastIntValue=a,!0)};function n8(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function o8(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}se.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return i8(t)?(e.lastIntValue=t,e.advance(),!0):!1};function i8(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}se.regexp_eatClassControlLetter=function(e){var t=e.current();return gm(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};se.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};se.regexp_eatDecimalDigits=function(e){var t=e.pos,a=0;for(e.lastIntValue=0;gm(a=e.current());)e.lastIntValue=10*e.lastIntValue+(a-48),e.advance();return e.pos!==t};function gm(e){return e>=48&&e<=57}se.regexp_eatHexDigits=function(e){var t=e.pos,a=0;for(e.lastIntValue=0;LL(a=e.current());)e.lastIntValue=16*e.lastIntValue+EL(a),e.advance();return e.pos!==t};function LL(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function EL(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}se.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var a=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+a*8+e.lastIntValue:e.lastIntValue=t*8+a}else e.lastIntValue=t;return!0}return!1};se.regexp_eatOctalDigit=function(e){var t=e.current();return TL(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function TL(e){return e>=48&&e<=55}se.regexp_eatFixedHexDigits=function(e,t){var a=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var n=e.current();if(!LL(n))return e.pos=a,!1;e.lastIntValue=16*e.lastIntValue+EL(n),e.advance()}return!0};var mx=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new dm(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},He=Ot.prototype;He.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new mx(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};He.getToken=function(){return this.next(),new mx(this)};typeof Symbol<"u"&&(He[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}});He.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};He.readToken=function(e){return cn(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};He.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var a=this.input.charCodeAt(e+1);return a<=56319||a>=57344?t:(t<<10)+a-56613888};He.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};He.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,a=this.input.indexOf("*/",this.pos+=2);if(a===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=a+2,this.options.locations)for(var r=void 0,n=t;(r=Zk(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,a),t,this.pos,e,this.curPosition())};He.skipLineComment=function(e){for(var t=this.pos,a=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Js(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,a,this.curPosition())};He.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Xk.test(String.fromCharCode(e)))++this.pos;else break e}}};He.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var a=this.type;this.type=e,this.value=t,this.updateContext(a)};He.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))};He.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)};He.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),a=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++a,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,a+1):this.finishOp(r,a)};He.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(b.assign,3)}return this.finishOp(e===124?b.logicalOR:b.logicalAND,2)}return t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)};He.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)};He.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Ba.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)};He.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),a=1;return t===e?(a=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+a)===61?this.finishOp(b.assign,a+1):this.finishOp(b.bitShift,a)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(a=2),this.finishOp(b.relational,a))};He.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)};He.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var a=this.input.charCodeAt(this.pos+2);if(a<48||a>57)return this.finishOp(b.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(b.assign,3)}return this.finishOp(b.coalesce,2)}}return this.finishOp(b.question,1)};He.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),cn(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Fn(t)+"'")};He.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Fn(e)+"'")};He.finishOp=function(e,t){var a=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,a)};He.readRegexp=function(){for(var e,t,a=this.pos;;){this.pos>=this.input.length&&this.raise(a,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Ba.test(r)&&this.raise(a,"Unterminated regular expression"),e)e=!1;else{if(r==="[")t=!0;else if(r==="]"&&t)t=!1;else if(r==="/"&&!t)break;e=r==="\\"}++this.pos}var n=this.input.slice(a,this.pos);++this.pos;var o=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(o);var s=this.regexpState||(this.regexpState=new dn(this));s.reset(a,n,i),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var u=null;try{u=new RegExp(n,i)}catch{}return this.finishToken(b.regexp,{pattern:n,flags:i,value:u})};He.readInt=function(e,t,a){for(var r=this.options.ecmaVersion>=12&&t===void 0,n=a&&this.input.charCodeAt(this.pos)===48,o=this.pos,i=0,s=0,u=0,l=t??1/0;u<l;++u,++this.pos){var c=this.input.charCodeAt(this.pos),d=void 0;if(r&&c===95){n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),s===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=c;continue}if(c>=97?d=c-97+10:c>=65?d=c-65+10:c>=48&&c<=57?d=c-48:d=1/0,d>=e)break;s=c,i=i*e+d}return r&&s===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:i};function s8(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function RL(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}He.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var a=this.readInt(e);return a==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(a=RL(this.input.slice(t,this.pos)),++this.pos):cn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,a)};He.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var a=this.pos-t>=2&&this.input.charCodeAt(t)===48;a&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!a&&!e&&this.options.ecmaVersion>=11&&r===110){var n=RL(this.input.slice(t,this.pos));return++this.pos,cn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,n)}a&&/[89]/.test(this.input.slice(t,this.pos))&&(a=!1),r===46&&!a&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!a&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),cn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=s8(this.input.slice(t,this.pos),a);return this.finishToken(b.num,o)};He.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var a=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(a,"Code point out of bounds")}else t=this.readHexChar(4);return t};He.readString=function(e){for(var t="",a=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(a,this.pos),t+=this.readEscapedChar(!1),a=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Js(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(a,this.pos++),this.finishToken(b.string,t)};var PL={};He.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===PL)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};He.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw PL;this.raise(e,t)};He.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var a=this.input.charCodeAt(this.pos);if(a===96||a===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?a===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(a===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Js(a)){switch(e+=this.input.slice(t,this.pos),++this.pos,a){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
600
+ `;break;default:e+=String.fromCharCode(a);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};He.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
601
+ `&&++this.pos;case`
602
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};He.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
603
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Fn(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var a=this.pos-1;this.invalidStringToken(a,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return Js(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};He.readHexChar=function(e){var t=this.pos,a=this.readInt(16,e);return a===null&&this.invalidStringToken(t,"Bad character escape sequence"),a};He.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,a=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(wo(n,r))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(a,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var i=this.readCodePoint();(t?cn:wo)(i,r)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Fn(i),a=this.pos}else break;t=!1}return e+this.input.slice(a,this.pos)};He.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=ux[e]),this.finishToken(t,e)};var u8="8.17.0";Ot.acorn={Parser:Ot,version:u8,defaultOptions:ox,Position:dc,SourceLocation:dm,getLineInfo:tL,Node:hm,TokenType:qe,tokTypes:b,keywordTypes:ux,TokContext:Or,tokContexts:mt,isIdentifierChar:wo,isIdentifierStart:cn,Token:mx,isNewLine:Js,lineBreak:Ba,lineBreakG:P5,nonASCIIwhitespace:Xk};function Mi(e,t){return Ot.parse(e,t)}function mr(e,t,a,r,n){a||(a=$),(function o(i,s,u){var l=u||i.type;bx(a,l,i,s,o),t[l]&&t[l](i,s)})(e,r,n)}function Xt(e,t,a,r,n){var o=[];a||(a=$),(function i(s,u,l){var c=l||s.type,d=s!==o[o.length-1];d&&o.push(s),bx(a,c,s,u,i),t[c]&&t[c](s,u||o,o),d&&o.pop()})(e,r,n)}function NL(e,t,a,r,n){a||(a=$);var o;(function i(s,u,l){var c=l||s.type;bx(a,c,s,u,i),o!==s&&(t(s,u,c),o=s)})(e,r,n)}function gx(e,t,a){a(e,t)}function Di(e,t,a){}function bx(e,t,a,r,n){if(e[t]==null)throw new Error("No walker function defined for node type "+t);e[t](a,r,n)}var $={};$.Program=$.BlockStatement=$.StaticBlock=function(e,t,a){for(var r=0,n=e.body;r<n.length;r+=1){var o=n[r];a(o,t,"Statement")}};$.Statement=gx;$.EmptyStatement=Di;$.ExpressionStatement=$.ParenthesizedExpression=$.ChainExpression=function(e,t,a){return a(e.expression,t,"Expression")};$.IfStatement=function(e,t,a){a(e.test,t,"Expression"),a(e.consequent,t,"Statement"),e.alternate&&a(e.alternate,t,"Statement")};$.LabeledStatement=function(e,t,a){return a(e.body,t,"Statement")};$.BreakStatement=$.ContinueStatement=Di;$.WithStatement=function(e,t,a){a(e.object,t,"Expression"),a(e.body,t,"Statement")};$.SwitchStatement=function(e,t,a){a(e.discriminant,t,"Expression");for(var r=0,n=e.cases;r<n.length;r+=1){var o=n[r];a(o,t)}};$.SwitchCase=function(e,t,a){e.test&&a(e.test,t,"Expression");for(var r=0,n=e.consequent;r<n.length;r+=1){var o=n[r];a(o,t,"Statement")}};$.ReturnStatement=$.YieldExpression=$.AwaitExpression=function(e,t,a){e.argument&&a(e.argument,t,"Expression")};$.ThrowStatement=$.SpreadElement=function(e,t,a){return a(e.argument,t,"Expression")};$.TryStatement=function(e,t,a){a(e.block,t,"Statement"),e.handler&&a(e.handler,t),e.finalizer&&a(e.finalizer,t,"Statement")};$.CatchClause=function(e,t,a){e.param&&a(e.param,t,"Pattern"),a(e.body,t,"Statement")};$.WhileStatement=$.DoWhileStatement=function(e,t,a){a(e.test,t,"Expression"),a(e.body,t,"Statement")};$.ForStatement=function(e,t,a){e.init&&a(e.init,t,"ForInit"),e.test&&a(e.test,t,"Expression"),e.update&&a(e.update,t,"Expression"),a(e.body,t,"Statement")};$.ForInStatement=$.ForOfStatement=function(e,t,a){a(e.left,t,"ForInit"),a(e.right,t,"Expression"),a(e.body,t,"Statement")};$.ForInit=function(e,t,a){e.type==="VariableDeclaration"?a(e,t):a(e,t,"Expression")};$.DebuggerStatement=Di;$.FunctionDeclaration=function(e,t,a){return a(e,t,"Function")};$.VariableDeclaration=function(e,t,a){for(var r=0,n=e.declarations;r<n.length;r+=1){var o=n[r];a(o,t)}};$.VariableDeclarator=function(e,t,a){a(e.id,t,"Pattern"),e.init&&a(e.init,t,"Expression")};$.Function=function(e,t,a){e.id&&a(e.id,t,"Pattern");for(var r=0,n=e.params;r<n.length;r+=1){var o=n[r];a(o,t,"Pattern")}a(e.body,t,e.expression?"Expression":"Statement")};$.Pattern=function(e,t,a){e.type==="Identifier"?a(e,t,"VariablePattern"):e.type==="MemberExpression"?a(e,t,"MemberPattern"):a(e,t)};$.VariablePattern=Di;$.MemberPattern=gx;$.RestElement=function(e,t,a){return a(e.argument,t,"Pattern")};$.ArrayPattern=function(e,t,a){for(var r=0,n=e.elements;r<n.length;r+=1){var o=n[r];o&&a(o,t,"Pattern")}};$.ObjectPattern=function(e,t,a){for(var r=0,n=e.properties;r<n.length;r+=1){var o=n[r];o.type==="Property"?(o.computed&&a(o.key,t,"Expression"),a(o.value,t,"Pattern")):o.type==="RestElement"&&a(o.argument,t,"Pattern")}};$.Expression=gx;$.ThisExpression=$.Super=$.MetaProperty=Di;$.ArrayExpression=function(e,t,a){for(var r=0,n=e.elements;r<n.length;r+=1){var o=n[r];o&&a(o,t,"Expression")}};$.ObjectExpression=function(e,t,a){for(var r=0,n=e.properties;r<n.length;r+=1){var o=n[r];a(o,t)}};$.FunctionExpression=$.ArrowFunctionExpression=$.FunctionDeclaration;$.SequenceExpression=function(e,t,a){for(var r=0,n=e.expressions;r<n.length;r+=1){var o=n[r];a(o,t,"Expression")}};$.TemplateLiteral=function(e,t,a){for(var r=0,n=e.quasis;r<n.length;r+=1){var o=n[r];a(o,t)}for(var i=0,s=e.expressions;i<s.length;i+=1){var u=s[i];a(u,t,"Expression")}};$.TemplateElement=Di;$.UnaryExpression=$.UpdateExpression=function(e,t,a){a(e.argument,t,"Expression")};$.BinaryExpression=$.LogicalExpression=function(e,t,a){a(e.left,t,"Expression"),a(e.right,t,"Expression")};$.AssignmentExpression=$.AssignmentPattern=function(e,t,a){a(e.left,t,"Pattern"),a(e.right,t,"Expression")};$.ConditionalExpression=function(e,t,a){a(e.test,t,"Expression"),a(e.consequent,t,"Expression"),a(e.alternate,t,"Expression")};$.NewExpression=$.CallExpression=function(e,t,a){if(a(e.callee,t,"Expression"),e.arguments)for(var r=0,n=e.arguments;r<n.length;r+=1){var o=n[r];a(o,t,"Expression")}};$.MemberExpression=function(e,t,a){a(e.object,t,"Expression"),e.computed&&a(e.property,t,"Expression")};$.ExportNamedDeclaration=$.ExportDefaultDeclaration=function(e,t,a){if(e.declaration&&a(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&a(e.source,t,"Expression"),e.attributes)for(var r=0,n=e.attributes;r<n.length;r+=1){var o=n[r];a(o,t)}};$.ExportAllDeclaration=function(e,t,a){if(e.exported&&a(e.exported,t),a(e.source,t,"Expression"),e.attributes)for(var r=0,n=e.attributes;r<n.length;r+=1){var o=n[r];a(o,t)}};$.ImportAttribute=function(e,t,a){a(e.value,t,"Expression")};$.ImportDeclaration=function(e,t,a){for(var r=0,n=e.specifiers;r<n.length;r+=1){var o=n[r];a(o,t)}if(a(e.source,t,"Expression"),e.attributes)for(var i=0,s=e.attributes;i<s.length;i+=1){var u=s[i];a(u,t)}};$.ImportExpression=function(e,t,a){a(e.source,t,"Expression"),e.options&&a(e.options,t,"Expression")};$.ImportSpecifier=$.ImportDefaultSpecifier=$.ImportNamespaceSpecifier=$.Identifier=$.PrivateIdentifier=$.Literal=Di;$.TaggedTemplateExpression=function(e,t,a){a(e.tag,t,"Expression"),a(e.quasi,t,"Expression")};$.ClassDeclaration=$.ClassExpression=function(e,t,a){return a(e,t,"Class")};$.Class=function(e,t,a){e.id&&a(e.id,t,"Pattern"),e.superClass&&a(e.superClass,t,"Expression"),a(e.body,t)};$.ClassBody=function(e,t,a){for(var r=0,n=e.body;r<n.length;r+=1){var o=n[r];a(o,t)}};$.MethodDefinition=$.PropertyDefinition=$.Property=function(e,t,a){e.computed&&a(e.key,t,"Expression"),e.value&&a(e.value,t,"Expression")};var l8={position:new Set(["x","y","xPercent","yPercent"]),scale:new Set(["scale","scaleX","scaleY"]),size:new Set(["width","height"]),rotation:new Set(["rotation","skewX","skewY"]),visual:new Set(["opacity","autoAlpha"]),other:new Set},OL=new Map;for(let[e,t]of Object.entries(l8))for(let a of t)OL.set(a,e);function c8(e){return OL.get(e)??"other"}function ML(e){let t=new Set;for(let a of Object.keys(e)){if(a==="transformOrigin"||a==="_auto"||a==="data")continue;let r=c8(a);t.add(r)}if(t.size===1)return t.values().next().value}function d8(e,t,a,r){let n=e[0];if(e.length<2||!n)return;let o=[],i;if(r&&e.length>=4){i=[n];for(let s=1;s+2<e.length;s+=3){let u=e[s],l=e[s+1],c=e[s+2];!u||!l||!c||(i.push(c),o.push({curviness:t,cp1:u,cp2:l}))}}else{i=e;for(let s=0;s<i.length-1;s++)o.push({curviness:t})}return{arcPath:{enabled:!0,autoRotate:a,segments:o},waypoints:i}}function vm(e){return e?.__hfProvenance}var f8=new Set(["set","to","from","fromTo"]),p8=new Set(["querySelector","querySelectorAll"]),m8=new Set(["forEach","map"]),_L=new Set(["Program","BlockStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),BL=Symbol("hf.constNodes");function h8(e){return e[BL]}var g8=new Set(["min","max","round","floor","ceil","abs","sqrt","sign","trunc"]),b8={PI:Math.PI,E:Math.E,SQRT2:Math.SQRT2};function x8(e,t){if(e.object?.type==="Identifier"&&e.object.name==="Math"){let n=e.property?.name;return typeof n=="string"?b8[n]:void 0}let a=vx(e.object,t);if(!a)return;let r;if(e.computed){let n=qt(e.property,t);a.type==="ArrayExpression"&&typeof n=="number"?r=a.elements?.[n]:a.type==="ObjectExpression"&&(typeof n=="string"||typeof n=="number")&&(r=Co(a,String(n)))}else a.type==="ObjectExpression"&&(r=Co(a,e.property?.name??e.property?.value));return r?qt(r,t):void 0}function v8(e,t,a){if(!t.computed)return e.type==="ObjectExpression"?Co(e,t.property?.name??t.property?.value):void 0;let r=qt(t.property,a);if(e.type==="ArrayExpression"&&typeof r=="number")return e.elements?.[r];if(e.type==="ObjectExpression")return Co(e,String(r))}function vx(e,t){if(!e)return;if(e.type==="ArrayExpression"||e.type==="ObjectExpression")return e;if(e.type==="Identifier")return h8(t)?.get(e.name);if(e.type!=="MemberExpression")return;let a=vx(e.object,t);return a?v8(a,e,t):void 0}function qt(e,t){if(e){if(e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"||e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"||e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean")return e.value;if(e.type==="UnaryExpression"&&e.operator==="-"&&e.argument){let a=qt(e.argument,t);return typeof a=="number"?-a:void 0}if(e.type==="BinaryExpression"){let a=qt(e.left,t),r=qt(e.right,t);if(typeof a=="number"&&typeof r=="number")switch(e.operator){case"+":return a+r;case"-":return a-r;case"*":return a*r;case"/":return r!==0?a/r:void 0}if(typeof a=="string"&&e.operator==="+")return a+String(r??"");if(typeof r=="string"&&e.operator==="+")return String(a??"")+r}if(e.type==="Identifier"&&t.has(e.name))return t.get(e.name);if(e.type==="TemplateLiteral"&&e.expressions?.length===0)return e.quasis?.[0]?.value?.cooked??void 0;if(e.type==="MemberExpression")return x8(e,t);if(e.type==="CallExpression"&&e.callee?.type==="MemberExpression"&&e.callee.object?.type==="Identifier"&&e.callee.object.name==="Math"&&g8.has(e.callee.property?.name)){let a=(e.arguments??[]).map(r=>qt(r,t));if(a.every(r=>typeof r=="number"))return Math[e.callee.property.name](...a)}}}function y8(e,t){return qt(e,t)}function wm(e,t){if(e?.type!=="CallExpression")return null;let a=e.callee;if(a?.type!=="MemberExpression"||a.property?.type!=="Identifier")return null;let r=a.property.name,n=qt(e.arguments?.[0],t);return typeof n!="string"||n.length===0?null:p8.has(r)||r==="toArray"?n:r==="getElementById"?`#${n}`:null}function ym(e,t=!0){for(let a=e.length-2;a>=0;a--){let r=e[a];if(r&&_L.has(r.type)&&(t||r.type!=="BlockStatement"))return r}return null}function FL(e){let t=[];for(let a=e.length-1;a>=0;a--){let r=e[a];r&&_L.has(r.type)&&t.push(r)}return t}function yx(e){for(let t=e.length-2;t>=0;t--){let a=e[t];if(a?.type==="BlockStatement"&&vm(a))return a}}function Ax(e,t,a,r=Number.POSITIVE_INFINITY){let n=a.declarationsByName.get(e)??[],o=yx(t);for(let i of FL(t)){let s=n.filter(u=>u.scopeNode===i&&(!u.expandedScopeNode||u.expandedScopeNode===o)&&(u.kind==="var"||u.kind==="param"||u.node.start<r)).sort((u,l)=>l.node.start-u.node.start);if(s[0])return s[0]}}function A8(e){let t=new Map,a=new Set;Xt(e,{VariableDeclarator(o,i,s){let u=o.id?.name;if(!u)return;let l=s.at(-2),c=l?.kind;if(!c)return;let d=l?.type!=="VariableDeclaration"||c!=="var",f=ym(s,d),p=yx(s),g=t.get(u)??[];g.push({node:o,scopeNode:f,expandedScopeNode:p,name:u,kind:c}),t.set(u,g)},FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n});let r={declarationsByName:t,reassignedDeclarations:a};return Xt(e,{AssignmentExpression(o,i,s){let u=o.left?.type==="Identifier"?o.left.name:void 0;if(!u)return;let l=Ax(u,s,r,o.start);l&&a.add(l.node)}}),r;function n(o){for(let i of o.params??[]){if(i?.type!=="Identifier")continue;let s=t.get(i.name)??[];s.push({node:i,scopeNode:o,name:i.name,kind:"param"}),t.set(i.name,s)}}}function xm(e,t,a,r){let n=e.get(t);n||(n=new Map,e.set(t,n)),n.has(a)||n.set(a,r)}function Sm(e,t,a){for(let r of FL(t)){let n=a.get(r)?.get(e);if(n!==void 0)return n}return a.get(null)?.get(e)??null}function w8(e){return e?.type==="ArrowFunctionExpression"||e?.type==="FunctionExpression"||e?.type==="FunctionDeclaration"}function S8(e,t,a,r){return e?.type==="Identifier"?Sm(e.name,t,r):e?.type==="CallExpression"?wm(e,a):null}function HL(e){let t=new Map,a=new Set,r=new Map;return Object.defineProperty(t,BL,{value:r,enumerable:!1}),mr(e,{VariableDeclarator(n){let o=n.id?.name,i=n.init;if(!o||!i)return;if(i.type==="ArrayExpression"||i.type==="ObjectExpression"){r.set(o,i);return}let s=qt(i,t);if(s===void 0||a.has(o))return;let u=t.get(o);u!==void 0&&u!==s?(t.delete(o),a.add(o)):u===void 0&&t.set(o,s)}}),t}function C8(e,t,a){let r=new Map;Xt(e,{VariableDeclarator(o,i,s){let u=o.id?.name,l=wm(o.init,t);if(u&&l!==null){let c=s.at(-2),d=c?.type!=="VariableDeclaration"||c.kind!=="var";xm(r,ym(s,d),u,l)}},AssignmentExpression(o,i,s){let u=o.left,l=wm(o.right,t);if(u?.type==="Identifier"&&l!==null){let c=Ax(u.name,s,a,o.start);xm(r,c?.scopeNode??yx(s)??ym(s),u.name,l)}}}),Xt(e,{CallExpression(o,i,s){let u=o.callee;if(u?.type==="MemberExpression"&&u.property?.type==="Identifier"&&m8.has(u.property.name)){let l=S8(u.object,s,t,r),c=o.arguments?.[0],d=c?.params?.[0];l&&d?.type==="Identifier"&&w8(c)&&xm(r,c,d.name,l)}}});let n=new Set(["slice","filter","concat","reverse"]);return Xt(e,{VariableDeclarator(o,i,s){let u=o.id?.name,l=o.init;if(!u||!l)return;let c;if(l.type==="MemberExpression"&&l.object?.type==="Identifier"?c=l.object.name:l.type==="CallExpression"&&l.callee?.type==="MemberExpression"&&l.callee.object?.type==="Identifier"&&l.callee.property?.type==="Identifier"&&n.has(l.callee.property.name)&&(c=l.callee.object.name),!c)return;let d=Sm(c,s,r);d&&xm(r,ym(s),u,d)}}),r}function zL(e,t,a,r){if(!e)return null;if(e.type==="StringLiteral"||e.type==="Literal")return typeof e.value=="string"?e.value:null;if(e.type==="Identifier")return Sm(e.name,t,r);if(e.type==="CallExpression")return wm(e,a);if(e.type==="ArrayExpression"){let n=e.elements.map(o=>zL(o,t,a,r)).filter(o=>typeof o=="string"&&o.length>0);return n.length>0?n.join(", "):null}return e.type==="MemberExpression"&&e.object?.type==="Identifier"?Sm(e.object.name,t,r):null}function I8(e,t,a){if((e?.type==="ObjectExpression"?e:e?.type==="Identifier"?vx(e,a):void 0)?.type!=="ObjectExpression")return null;let n=Co(t,"onUpdate"),o=n?L8(n):void 0;return o?`proxy \u2192 ${o}`:"dwell/hold"}function k8(e){return e?.type==="MemberExpression"&&e.object?.type==="MemberExpression"&&e.object.property?.name==="style"&&!!e.property?.name}function L8(e){let t;return mr(e,{CallExpression(a){a.callee?.type==="MemberExpression"&&a.callee.property?.name==="setAttribute"&&typeof a.arguments?.[0]?.value=="string"&&(t??(t=a.arguments[0].value))},AssignmentExpression(a){let r=a.left;k8(r)&&(t??(t=`style.${r.property.name}`))}}),t}function mc(e){return e?.type==="ObjectProperty"||e?.type==="Property"}function Cm(e){return e?.key?.name??e?.key?.value}function Co(e,t){if(e?.type==="ObjectExpression"){for(let a of e.properties??[])if(mc(a)&&Cm(a)===t)return a.value}}function E8(e,t,a){let r=Co(e,t);return r?a.slice(r.start,r.end):void 0}function Xs(e,t,a){let r={};if(e?.type!=="ObjectExpression")return r;for(let n of e.properties??[]){if(!mc(n))continue;let o=n.key?.name??n.key?.value;if(!o)continue;let i=qt(n.value,t);i!==void 0?r[o]=i:r[o]=`__raw:${a.slice(n.value.start,n.value.end)}`}return r}function DL(e){return e?.type==="CallExpression"&&e.callee?.type==="MemberExpression"&&e.callee.object?.name==="gsap"&&e.callee.property?.name==="timeline"}function Am(e){if(!e||e.type!=="MemberExpression")return null;if(e.computed){let t=e.property;return t?.type==="Literal"&&typeof t.value=="string"?t.value:null}return e.property?.type==="Identifier"?e.property.name:null}function T8(e){return e?.type==="MemberExpression"&&Am(e)!==null}function wx(e,t){if(e?.type!=="MemberExpression"||t?.type!=="MemberExpression"||Am(e)!==Am(t)||Am(e)===null)return!1;let a=e.object,r=t.object;return a?.type==="Identifier"&&r?.type==="Identifier"?a.name===r.name:a?.type==="MemberExpression"&&r?.type==="MemberExpression"?wx(a,r):!1}function R8(e,t){return e.kind==="identifier"?e.name:t.slice(e.node.start,e.node.end)}function xx(e,t){let a=e.arguments?.[0];if(!a||a.type!=="ObjectExpression")return;let r=a.properties?.find(o=>mc(o)&&Cm(o)==="defaults");if(!r?.value||r.value.type!=="ObjectExpression")return;let n={};for(let o of r.value.properties??[]){if(!mc(o))continue;let i=Cm(o),s=qt(o.value,t);i==="ease"&&typeof s=="string"&&(n.ease=s),i==="duration"&&typeof s=="number"&&(n.duration=s)}return Object.keys(n).length>0?n:void 0}function VL(e,t){let a=null,r=null,n=0,o,i=t??new Map;return mr(e,{VariableDeclarator(s){DL(s.init)&&(n+=1,!r&&s.id?.type==="Identifier"&&(a=s.id.name,r={kind:"identifier",name:s.id.name},o=xx(s.init,i)))},AssignmentExpression(s){if(DL(s.right)&&(n+=1,!r)){let u=s.left;u?.type==="Identifier"?(a=u.name,r={kind:"identifier",name:u.name},o=xx(s.right,i)):T8(u)&&(r={kind:"member",node:u},o=xx(s.right,i))}}}),{timelineVar:a,ref:r,timelineCount:n,defaults:o}}var P8=new Set(["duration","ease","delay"]),N8=new Set(["onComplete","onStart","onUpdate","onRepeat"]),M8=new Set(["stagger","yoyo","repeat","repeatDelay","snap","overwrite","immediateRender"]);function D8(e,t){let a=e.callee?.object;for(;a?.type==="CallExpression";)a=a.callee?.object;return t.kind==="identifier"?a?.type==="Identifier"&&a.name===t.name:wx(a,t.node)}function O8(e,t,a,r){let n=[];function o(i,s){if(!i||typeof i!="object")return;let u=[...s,i];if(i.type==="CallExpression"){let l=i.callee,c=i.arguments?.[0],d=l?.type==="MemberExpression"&&l.object?.type==="Identifier"&&l.object.name==="gsap"&&l.property?.type==="Identifier"&&l.property.name==="set"&&(c?.type==="StringLiteral"||c?.type==="Literal"&&typeof c.value=="string");if(l?.type==="MemberExpression"&&l.property?.type==="Identifier"&&(D8(i,t)||d)&&f8.has(l.property.name)){let f=l.property.name,p=i.arguments,g=p.length>=1?zL(p[0],u,a,r)??"__unresolved__":"__unresolved__";f==="fromTo"&&p.length>=3?n.push({node:i,ancestors:u,method:"fromTo",selector:g,fromArg:p[1],varsArg:p[2],positionArg:p[3]}):f!=="fromTo"&&p.length>=2&&n.push({node:i,ancestors:u,method:f,selector:g,varsArg:p[1],positionArg:p[2],...d?{global:!0}:{}})}}for(let l of Object.keys(i)){if(l==="type"||l==="start"||l==="end"||l==="loc")continue;let c=i[l];if(Array.isArray(c))for(let d of c)d&&typeof d=="object"&&d.type&&o(d,u);else c&&typeof c=="object"&&c.type&&o(c,u)}}return o(e,[]),n}var UL=/^(\d+(?:\.\d+)?)%$/;function Im(e,t){let a=qt(e,t);return typeof a=="string"?a:void 0}function _8(e,t,a){let r=[],n,o;for(let i of e.properties??[]){if(i.type!=="ObjectProperty"&&i.type!=="Property")continue;let s=i.key?.value??i.key?.name;if(typeof s!="string")continue;let u=UL.exec(s);if(u){let l=Number.parseFloat(u[1]??"0"),c=Xs(i.value,t,a),d={},f;for(let[p,g]of Object.entries(c))p==="ease"&&typeof g=="string"?f=g:(typeof g=="number"||typeof g=="string")&&(d[p]=g);r.push({percentage:l,properties:d,...f?{ease:f}:{}})}else s==="ease"?n=Im(i.value,t)??n:s==="easeEach"&&(o=Im(i.value,t)??o)}return r.sort((i,s)=>i.percentage-s.percentage),{format:"percentage",keyframes:r,...n?{ease:n}:{},...o?{easeEach:o}:{}}}function B8(e,t,a){let r=(e.properties??[]).find(o=>(o.key?.name??o.key?.value)==="keyframes")?.value;if(!r||r.type!=="ArrayExpression")return;let n=0;for(let o of r.elements??[]){if(!o||o.type!=="ObjectExpression")continue;let i=Xs(o,t,a);typeof i.duration=="number"&&(n+=i.duration)}return n>0?n:void 0}function F8(e,t,a){let r=e.elements??[],n=[];for(let s of r){if(!s||s.type!=="ObjectExpression")continue;let u=Xs(s,t,a),l={},c,d;for(let[f,p]of Object.entries(u))f==="duration"&&typeof p=="number"?c=p:f==="ease"&&typeof p=="string"?d=p:(typeof p=="number"||typeof p=="string")&&(l[f]=p);n.push({properties:l,duration:c,ease:d})}let o=n.reduce((s,u)=>s+(u.duration??0),0),i=[];if(o>0){let s=0;for(let u of n){s+=u.duration??0;let l=Math.round(s/o*100);i.push({percentage:l,properties:u.properties,...u.ease?{ease:u.ease}:{}})}}else for(let s=0;s<n.length;s++){let u=n[s];if(!u)continue;let l=n.length>1?Math.round(s/(n.length-1)*100):0;i.push({percentage:l,properties:u.properties,...u.ease?{ease:u.ease}:{}})}return{format:"object-array",keyframes:i}}function H8(e,t){let a=new Map,r,n;for(let s of e.properties??[]){if(s.type!=="ObjectProperty"&&s.type!=="Property")continue;let u=s.key?.name??s.key?.value;if(typeof u=="string")if(s.value?.type==="ArrayExpression"){let l=[];for(let c of s.value.elements??[]){let d=qt(c,t);(typeof d=="number"||typeof d=="string")&&l.push(d)}l.length>0&&a.set(u,l)}else u==="ease"?r=Im(s.value,t)??r:u==="easeEach"&&(n=Im(s.value,t)??n)}let o=Math.max(...[...a.values()].map(s=>s.length),0),i=[];for(let s=0;s<o;s++){let u=o>1?Math.round(s/(o-1)*100):0,l={};for(let[c,d]of a)s<d.length&&(l[c]=d[s]);i.push({percentage:u,properties:l})}return{format:"simple-array",keyframes:i,...r?{ease:r}:{},...n?{easeEach:n}:{}}}function z8(e,t,a){if(!e)return;if(e.type==="ArrayExpression")return F8(e,t,a);if(e.type!=="ObjectExpression")return;let r=e.properties??[],n=!1,o=!1;for(let i of r){if(i.type!=="ObjectProperty"&&i.type!=="Property")continue;let s=i.key?.value??i.key?.name;if(typeof s=="string"&&UL.test(s)){n=!0;break}i.value?.type==="ArrayExpression"&&(o=!0)}if(n)return _8(e,t,a);if(o)return H8(e,t)}function V8(e,t,a){if(!e)return;let r,n=!1,o=1,i=!1;if(e.type==="ObjectExpression")for(let l of e.properties??[]){if(!mc(l))continue;let c=Cm(l);if(c==="path")r=l.value;else if(c==="autoRotate"){let d=qt(l.value,t);n=typeof d=="number"?d:d===!0}else if(c==="curviness"){let d=qt(l.value,t);typeof d=="number"&&(o=d)}else c==="type"&&qt(l.value,t)==="cubic"&&(i=!0)}else e.type==="ArrayExpression"&&(r=e);if(!r||r.type!=="ArrayExpression")return;let s=r.elements??[],u=[];for(let l of s){if(!l||l.type!=="ObjectExpression")continue;let c=Xs(l,t,a),d=typeof c.x=="number"?c.x:void 0,f=typeof c.y=="number"?c.y:void 0;d!==void 0&&f!==void 0&&u.push({x:d,y:f})}return d8(u,o,n,i)}function U8(e,t,a,r){let n=vm(e.node),o=Xs(e.varsArg,t,a),i={},s={},u,l=!1,c;for(let[A,L]of Object.entries(o))if(!P8.has(A)&&!N8.has(A)){if(A==="keyframes"){let C=Co(e.varsArg,"keyframes");u=z8(C,t,a),!u&&C&&(l=!0);continue}if(A==="motionPath"){let C=Co(e.varsArg,"motionPath");c=V8(C,t,a);continue}if(A!=="easeEach"){if(M8.has(A)){let C=E8(e.varsArg,A,a);C!==void 0?s[A]=`__raw:${C}`:L!==void 0&&(s[A]=L);continue}(typeof L=="number"||typeof L=="string")&&(i[A]=L)}}if(u&&typeof o.easeEach=="string"&&(u.easeEach=o.easeEach),c){let{waypoints:A}=c;if(!u)u={format:"percentage",keyframes:A.map((C,I)=>({percentage:A.length>1?Math.round(I/(A.length-1)*100):0,properties:{x:C.x,y:C.y}}))};else{let L=u.keyframes;if(L.length===A.length)for(let C=0;C<L.length;C++){let I=L[C],D=A[C];I&&D&&(I.properties.x=D.x,I.properties.y=D.y)}}}let d;if(e.method==="fromTo"&&e.fromArg){d={};let A=Xs(e.fromArg,t,a);for(let[L,C]of Object.entries(A))(typeof C=="number"||typeof C=="string")&&(d[L]=C)}let f=!!e.positionArg,p=f?y8(e.positionArg,t):0,g=typeof p=="number"||typeof p=="string"?p:f?`__raw:${a.slice(e.positionArg.start,e.positionArg.end)}`:0,m=typeof o.duration=="number"?o.duration:void 0,x=typeof o.ease=="string"?o.ease:void 0;m===void 0&&u&&(m=B8(e.varsArg,t,a));let v=e.selector,w;if(v==="__unresolved__"){let A=e.node.arguments?.[0],L=I8(A,e.varsArg,t);if(L&&(v=L,A?.type==="Identifier")){let C=Ax(A.name,e.ancestors,r,e.node.start);if(C?.node.init?.type==="ObjectExpression"&&!r.reassignedDeclarations.has(C.node)){let I=vm(C.scopeNode)??vm(C.expandedScopeNode),D=I&&(I.kind==="helper"||I.kind==="loop")?`:${I.kind}:${I.callSite??""}:${I.iteration??""}`:"";w=`proxy:${A.name}@${C.node.start}${D}`}}}let y={targetSelector:v,method:e.method,position:g,properties:i,fromProperties:d,duration:m,ease:x};w&&(y.targetIdentity=w),f||(y.implicitPosition=!0);let S=ML(i);if(!S&&u){let A={};for(let L of u.keyframes)for(let C of Object.keys(L.properties))A[C]=!0;S=ML(A)}return S&&(y.propertyGroup=S),e.global&&(y.global=!0),Object.keys(s).length>0&&(y.extras=s),u&&(y.keyframes=u),c&&(y.arcPath=c.arcPath),l&&(y.hasUnresolvedKeyframes=!0),v==="__unresolved__"&&(y.hasUnresolvedSelector=!0),n&&(y.provenance=n),y}var G8=.5;function W8(e,t,a){let r=e.trim();if(r==="")return t;if(r.startsWith("+=")){let o=Number.parseFloat(r.slice(2));return Number.isFinite(o)?t+o:null}if(r.startsWith("-=")){let o=Number.parseFloat(r.slice(2));return Number.isFinite(o)?t-o:null}if(r==="<")return a;if(r===">")return t;if(r.startsWith("<")){let o=Number.parseFloat(r.slice(1));return Number.isFinite(o)?a+o:null}if(r.startsWith(">")){let o=Number.parseFloat(r.slice(1));return Number.isFinite(o)?t+o:null}let n=Number.parseFloat(r);return Number.isFinite(n)?n:null}function j8(e,t){if(t)for(let a of e)a.method!=="set"&&(a.duration===void 0&&t.duration!==void 0&&(a.duration=t.duration),a.ease===void 0&&t.ease!==void 0&&(a.ease=t.ease))}function GL(e,t,a){let r=/^([A-Za-z_$][\w$]*)\s*(?:([+-])=\s*([\d.]+))?$/.exec(e.trim());if(!r)return null;let n=r[1],o=t.get(n);if(o===void 0&&(o=a,t.set(n,o)),r[2]&&r[3]){let i=Number.parseFloat(r[3]);if(Number.isFinite(i))return r[2]==="+"?o+i:o-i}return o}function q8(e,t,a,r){return e.implicitPosition?t:typeof e.position=="number"?e.position:typeof e.position=="string"?GL(e.position,r,t)??W8(e.position,t,a):t}function K8(e,t=[]){let a=0,r=0,n=new Map,o=0,i=[...t].sort((u,l)=>u.order-l.order),s=u=>{let l;typeof u.position=="number"?l=u.position:typeof u.position=="string"?l=GL(u.position,n,a)??a:l=a,n.set(u.name,Math.max(0,l))};for(e.forEach((u,l)=>{for(;o<i.length&&i[o].order<=l;)s(i[o]),o++;if(u.method==="set"&&u.global){u.resolvedStart=0;return}let c=u.method==="set"?0:u.duration??G8,d=q8(u,a,r,n);d!=null&&(u.resolvedStart=Math.max(0,d),r=u.resolvedStart,a=Math.max(a,u.resolvedStart+c))});o<i.length;)s(i[o++])}function Q8(e,t){let a=e.node.callee?.property?.loc?.start,r=t.node.callee?.property?.loc?.start;return!a||!r?0:a.line-r.line||a.column-r.column}function Y8(e,t){let a=e.node.__hfOrder,r=t.node.__hfOrder;return a===void 0&&r===void 0?Q8(e,t):a===void 0?-1:r===void 0?1:a-r}function J8(e){e.sort(Y8)}function $8(e){let t=new Map;return e.map(a=>{let r=typeof a.position=="number"?String(Math.round(a.position*1e3)):String(a.position),n=a.propertyGroup?`-${a.propertyGroup}`:"",o=`${a.targetSelector}-${a.method}-${r}${n}`,i=(t.get(o)??0)+1;t.set(o,i);let s=i===1?o:`${o}-${i}`;return{...a,id:s}})}function fn(e){try{let t=Mi(e,{ecmaVersion:"latest",sourceType:"script",locations:!0}),a=HL(t),r=A8(t),n=C8(t,a,r),o=VL(t,a),i=o.ref??{kind:"identifier",name:"tl"},s=R8(i,e),u=O8(t,i,a,n);J8(u);let l=u.map(f=>U8(f,a,e,r));j8(l,o.defaults),K8(l);let c=$8(l),d=u.map((f,p)=>({id:c[p].id,call:f,animation:c[p]}));return{ast:t,timelineVar:s,hasTimeline:o.ref!==null,located:d}}catch{return null}}function WL(e){try{let t=Mi(e,{ecmaVersion:"latest",sourceType:"script",locations:!0}),a=HL(t),n=VL(t,a).ref??{kind:"identifier",name:"tl"},o=[];return mr(t,{ExpressionStatement(i){let s=i.expression;if(!s||s.type!=="CallExpression")return;let u=s.callee,l=n.kind==="identifier"?u.object?.type==="Identifier"&&u.object.name===n.name:wx(u.object,n.node);if(u?.type!=="MemberExpression"||!l||u.property?.name!=="addLabel")return;let c=s.arguments??[],d=c[0],f=c[1];if(d?.type!=="Literal"||typeof d.value!="string"||!f)return;let p=qt(f,a);typeof p!="number"||!Number.isFinite(p)||o.push({name:d.value,position:p})}}),o}catch{return[]}}var Z8=44,X8=59,jL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",QL=new Uint8Array(64),eF=new Uint8Array(128);for(let e=0;e<jL.length;e++){let t=jL.charCodeAt(e);QL[e]=t,eF[t]=e}function hc(e,t,a){let r=t-a;r=r<0?-r<<1|1:r<<1;do{let n=r&31;r>>>=5,r>0&&(n|=32),e.write(QL[n])}while(r>0);return t}var qL=1024*16,KL=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let a=0;a<e.length;a++)t+=String.fromCharCode(e[a]);return t}},tF=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(qL)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===qL&&(this.out+=KL.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:a}=this;return a>0?t+KL.decode(e.subarray(0,a)):t}};function YL(e){let t=new tF,a=0,r=0,n=0,o=0;for(let i=0;i<e.length;i++){let s=e[i];if(i>0&&t.write(X8),s.length===0)continue;let u=0;for(let l=0;l<s.length;l++){let c=s[l];l>0&&t.write(Z8),u=hc(t,c[0],u),c.length!==1&&(a=hc(t,c[1],a),r=hc(t,c[2],r),n=hc(t,c[3],n),c.length!==4&&(o=hc(t,c[4],o)))}}return t.flush()}var km=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},Lm=class e{constructor(t,a,r){this.start=t,this.end=a,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let a=this;for(;a;)t(a),a=a.next}eachPrevious(t){let a=this;for(;a;)t(a),a=a.previous}edit(t,a,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=a,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let a=t-this.start,r=this.original.slice(0,a),n=this.original.slice(a);this.original=r;let o=new e(t,this.end,n);return o.outro=this.outro,this.outro="",this.end=t,this.edited?(o.edit("",!1),this.content=""):this.content=r,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let a=this.content.replace(t,"");if(a.length)return a!==this.content&&(this.split(this.start+a.length).edit("",void 0,!0),this.edited&&this.edit(a,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let a=this.content.replace(t,"");if(a.length){if(a!==this.content){let r=this.split(this.end-a.length);this.edited&&r.edit(a,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function aF(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var rF=aF(),Sx=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=YL(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+rF(this.toString())}};function nF(e){let t=e.split(`
604
+ `),a=t.filter(o=>/^\t+/.test(o)),r=t.filter(o=>/^ {2,}/.test(o));if(a.length===0&&r.length===0)return null;if(a.length>=r.length)return" ";let n=r.reduce((o,i)=>{let s=/^ +/.exec(i)[0].length;return Math.min(s,o)},1/0);return new Array(n+1).join(" ")}function oF(e,t){let a=e.split(/[/\\]/),r=t.split(/[/\\]/);for(a.pop();a[0]===r[0];)a.shift(),r.shift();if(a.length){let n=a.length;for(;n--;)a[n]=".."}return a.concat(r).join("/")}var iF=Object.prototype.toString;function sF(e){return iF.call(e)==="[object Object]"}function JL(e){let t=e.split(`
605
+ `),a=[];for(let r=0,n=0;r<t.length;r++)a.push(n),n+=t[r].length+1;return function(n){let o=0,i=a.length;for(;o<i;){let l=o+i>>1;n<a[l]?i=l:o=l+1}let s=o-1,u=n-a[s];return{line:s,column:u}}}var uF=/\w/,Cx=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,a,r,n){if(a.length){let o=a.length-1,i=a.indexOf(`
606
+ `,0),s=-1;for(;i>=0&&o>i;){let l=[this.generatedCodeColumn,t,r.line,r.column];n>=0&&l.push(n),this.rawSegments.push(l),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,s=i,i=a.indexOf(`
607
+ `,i+1)}let u=[this.generatedCodeColumn,t,r.line,r.column];n>=0&&u.push(n),this.rawSegments.push(u),this.advance(a.slice(s+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(a));this.pending=null}addUneditedChunk(t,a,r,n,o){let i=a.start,s=!0,u=!1;for(;i<a.end;){if(r[i]===`
608
+ `)n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,s=!0,u=!1;else{if(this.hires||s||o.has(i)){let l=[this.generatedCodeColumn,t,n.line,n.column];this.hires==="boundary"?uF.test(r[i])?u||(this.rawSegments.push(l),u=!0):(this.rawSegments.push(l),u=!1):this.rawSegments.push(l)}n.column+=1,this.generatedCodeColumn+=1,s=!1}i+=1}this.pending=null}advance(t){if(!t)return;let a=t.split(`
609
+ `);if(a.length>1){for(let r=0;r<a.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=a[a.length-1].length}},gc=`
610
+ `,eu={insertLeft:!1,insertRight:!1,storeName:!1},ot=class e{constructor(t,a={}){let r=new Lm(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:a.filename},indentExclusionRanges:{writable:!0,value:a.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new km},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:a.ignoreList},offset:{writable:!0,value:a.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,a){if(t=t+this.offset,typeof a!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(a):this.intro+=a,this}appendRight(t,a){if(t=t+this.offset,typeof a!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(a):this.outro+=a,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),a=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=a.clone();for(;a;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let n=a.next,o=n&&n.clone();o&&(r.next=o,o.previous=r,r=o),a=n}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new km(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let a=0,r=Object.keys(this.storedNames),n=new Cx(t.hires),o=JL(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext(i=>{let s=o(i.start);i.intro.length&&n.advance(i.intro),i.edited?n.addEdit(a,i.content,s,i.storeName?r.indexOf(i.original):-1):n.addUneditedChunk(a,i,this.original,s,this.sourcemapLocations),i.outro.length&&n.advance(i.outro)}),this.outro&&n.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?oF(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:n.raw,x_google_ignoreList:this.ignoreList?[a]:void 0}}generateMap(t){return new Sx(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=nF(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,a){let r=/^[^\r\n]/gm;if(sF(t)&&(a=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;a=a||{};let n={};a.exclude&&(typeof a.exclude[0]=="number"?[a.exclude]:a.exclude).forEach(c=>{for(let d=c[0];d<c[1];d+=1)n[d]=!0});let o=a.indentStart!==!1,i=l=>o?`${t}${l}`:(o=!0,l);this.intro=this.intro.replace(r,i);let s=0,u=this.firstChunk;for(;u;){let l=u.end;if(u.edited)n[s]||(u.content=u.content.replace(r,i),u.content.length&&(o=u.content[u.content.length-1]===`
611
+ `));else for(s=u.start;s<l;){if(!n[s]){let c=this.original[s];c===`
612
+ `?o=!0:c!=="\r"&&o&&(o=!1,s===u.start||(this._splitChunk(u,s),u=u.next),u.prependRight(t))}s+=1}s=u.end,u=u.next}return this.outro=this.outro.replace(r,i),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,a){return eu.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),eu.insertLeft=!0),this.appendLeft(t,a)}insertRight(t,a){return eu.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),eu.insertRight=!0),this.prependRight(t,a)}move(t,a,r){if(t=t+this.offset,a=a+this.offset,r=r+this.offset,r>=t&&r<=a)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(a),this._split(r);let n=this.byStart[t],o=this.byEnd[a],i=n.previous,s=o.next,u=this.byStart[r];if(!u&&o===this.lastChunk)return this;let l=u?u.previous:this.lastChunk;return i&&(i.next=s),s&&(s.previous=i),l&&(l.next=n),u&&(u.previous=o),n.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=l,o.next=u||null,l||(this.firstChunk=n),u||(this.lastChunk=o),this}overwrite(t,a,r,n){return n=n||{},this.update(t,a,r,{...n,overwrite:!n.contentOnly})}update(t,a,r,n){if(t=t+this.offset,a=a+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;a<0;)a+=this.original.length}if(a>this.original.length)throw new Error("end is out of bounds");if(t===a)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(a),n===!0&&(eu.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),eu.storeName=!0),n={storeName:!0});let o=n!==void 0?n.storeName:!1,i=n!==void 0?n.overwrite:!1;if(o){let l=this.original.slice(t,a);Object.defineProperty(this.storedNames,l,{writable:!0,value:!0,enumerable:!0})}let s=this.byStart[t],u=this.byEnd[a];if(s){let l=s;for(;l!==u;){if(l.next!==this.byStart[l.end])throw new Error("Cannot overwrite across a split point");l=l.next,l.edit("",!1)}s.edit(r,o,!i)}else{let l=new Lm(t,a,"").edit(r,o);u.next=l,l.previous=u}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,a){if(t=t+this.offset,typeof a!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(a):this.intro=a+this.intro,this}prependRight(t,a){if(t=t+this.offset,typeof a!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(a):this.outro=a+this.outro,this}remove(t,a){if(t=t+this.offset,a=a+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;a<0;)a+=this.original.length}if(t===a)return this;if(t<0||a>this.original.length)throw new Error("Character is out of bounds");if(t>a)throw new Error("end must be greater than start");this._split(t),this._split(a);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=a>r.end?this.byStart[r.end]:null;return this}reset(t,a){if(t=t+this.offset,a=a+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;a<0;)a+=this.original.length}if(t===a)return this;if(t<0||a>this.original.length)throw new Error("Character is out of bounds");if(t>a)throw new Error("end must be greater than start");this._split(t),this._split(a);let r=this.byStart[t];for(;r;)r.reset(),r=a>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(gc);if(t!==-1)return this.outro.substr(t+1);let a=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(gc),t!==-1)return r.outro.substr(t+1)+a;a=r.outro+a}if(r.content.length>0){if(t=r.content.lastIndexOf(gc),t!==-1)return r.content.substr(t+1)+a;a=r.content+a}if(r.intro.length>0){if(t=r.intro.lastIndexOf(gc),t!==-1)return r.intro.substr(t+1)+a;a=r.intro+a}}while(r=r.previous);return t=this.intro.lastIndexOf(gc),t!==-1?this.intro.substr(t+1)+a:this.intro+a}slice(t=0,a=this.original.length-this.offset){if(t=t+this.offset,a=a+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;a<0;)a+=this.original.length}let r="",n=this.firstChunk;for(;n&&(n.start>t||n.end<=t);){if(n.start<a&&n.end>=a)return r;n=n.next}if(n&&n.edited&&n.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let o=n;for(;n;){n.intro&&(o!==n||n.start===t)&&(r+=n.intro);let i=n.start<a&&n.end>=a;if(i&&n.edited&&n.end!==a)throw new Error(`Cannot use replaced character ${a} as slice end anchor.`);let s=o===n?t-n.start:0,u=i?n.content.length+a-n.end:n.content.length;if(r+=n.content.slice(s,u),n.outro&&(!i||n.end===a)&&(r+=n.outro),i)break;n=n.next}return r}snip(t,a){let r=this.clone();return r.remove(0,t),r.remove(a,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let a=this.lastSearchedChunk,r=a,n=t>a.end;for(;a;){if(a.contains(t))return this._splitChunk(a,t);if(a=n?this.byStart[a.end]:this.byEnd[a.start],a===r)return;r=a}}_splitChunk(t,a){if(t.edited&&t.content.length){let n=JL(this.original)(a);throw new Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} \u2013 "${t.original}")`)}let r=t.split(a);return this.byEnd[a]=t,this.byStart[a]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,a=this.firstChunk;for(;a;)t+=a.toString(),a=a.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,a=0;do a+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return a}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let a=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(a,""),this.outro.length)return!0;let r=this.lastChunk;do{let n=r.end,o=r.trimEnd(a);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),o)return!0;r=r.previous}while(r);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let a=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(a,""),this.intro.length)return!0;let r=this.firstChunk;do{let n=r.end,o=r.trimStart(a);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),o)return!0;r=r.next}while(r);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,a){function r(o,i){return typeof a=="string"?a.replace(/\$(\$|&|\d+)/g,(s,u)=>u==="$"?"$":u==="&"?o[0]:+u<o.length?o[+u]:`$${u}`):a(...o,o.index,i,o.groups)}function n(o,i){let s,u=[];for(;s=o.exec(i);)u.push(s);return u}if(t.global)n(t,this.original).forEach(i=>{if(i.index!=null){let s=r(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s)}});else{let o=this.original.match(t);if(o&&o.index!=null){let i=r(o,this.original);i!==o[0]&&this.overwrite(o.index,o.index+o[0].length,i)}}return this}_replaceString(t,a){let{original:r}=this,n=r.indexOf(t);return n!==-1&&(typeof a=="function"&&(a=a(t,n,r)),t!==a&&this.overwrite(n,n+t.length,a)),this}replace(t,a){return typeof t=="string"?this._replaceString(t,a):this._replaceRegexp(t,a)}_replaceAllString(t,a){let{original:r}=this,n=t.length;for(let o=r.indexOf(t);o!==-1;o=r.indexOf(t,o+n)){let i=r.slice(o,o+n),s=a;typeof a=="function"&&(s=a(i,o,r)),i!==s&&this.overwrite(o,o+n,s)}return this}replaceAll(t,a){if(typeof t=="string")return this._replaceAllString(t,a);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,a)}};var lF={position:new Set(["x","y","xPercent","yPercent"]),scale:new Set(["scale","scaleX","scaleY"]),size:new Set(["width","height"]),rotation:new Set(["rotation","skewX","skewY"]),visual:new Set(["opacity","autoAlpha"]),other:new Set},iE=new Map;for(let[e,t]of Object.entries(lF))for(let a of t)iE.set(a,e);function sE(e){return iE.get(e)??"other"}function $L(e){let t=new Set;for(let a of Object.keys(e)){if(a==="transformOrigin"||a==="_auto"||a==="data")continue;let r=sE(a);t.add(r)}if(t.size===1)return t.values().next().value}function cF(e,t,a,r){let n=e[0];if(e.length<2||!n)return;let o=[],i;if(r&&e.length>=4){i=[n];for(let s=1;s+2<e.length;s+=3){let u=e[s],l=e[s+1],c=e[s+2];!u||!l||!c||(i.push(c),o.push({curviness:t,cp1:u,cp2:l}))}}else{i=e;for(let s=0;s<i.length-1;s++)o.push({curviness:t})}return{arcPath:{enabled:!0,autoRotate:a,segments:o},waypoints:i}}var dF={opacity:1,autoAlpha:1,scale:1,scaleX:1,scaleY:1};function fF(e){return dF[e]??0}function ZL(e){let t={};for(let[a,r]of Object.entries(e))r!=null&&(t[a]=typeof r=="number"?fF(a):r);return t}function pF(e,t){if(e.method==="set")return{fromProps:{...e.properties},toProps:{...e.properties}};if(e.method==="to"){let r=ZL(e.properties);return{fromProps:t?{...r,...t}:r,toProps:{...e.properties}}}if(e.method==="from"){let r=ZL(e.properties),n=t?{...r,...t}:r;return{fromProps:{...e.properties},toProps:n}}let a=t?{...e.properties,...t}:{...e.properties};return{fromProps:{...e.fromProperties??{}},toProps:a}}function mF(e){let t=e.x,a=e.y;return typeof t=="number"&&typeof a=="number"?{x:t,y:a}:null}function uE(e){let t=(e.keyframes?.keyframes??[]).map(i=>mF(i.properties)).filter(i=>i!==null);if(t.length>=2)return t;let a=e.properties.x,r=e.properties.y;return typeof a!="number"&&typeof r!="number"?t:[{x:0,y:0},{x:typeof a=="number"?a:0,y:typeof r=="number"?r:0}]}function hF(e){return e===!0?", autoRotate: true":typeof e=="number"?`, autoRotate: ${e}`:""}function gF(e,t,a){if(e.cp1&&e.cp2)return[`{x: ${e.cp1.x}, y: ${e.cp1.y}}`,`{x: ${e.cp2.x}, y: ${e.cp2.y}}`];let r=a.x-t.x,n=a.y-t.y,o=e.curviness??1;return[`{x: ${t.x+r*.33}, y: ${t.y+n*.33-o*Math.abs(r)*.25}}`,`{x: ${t.x+r*.66}, y: ${t.y+n*.66-o*Math.abs(r)*.25}}`]}function bF(e,t){let a=e[0];if(!a)return[];let r=[`{x: ${a.x}, y: ${a.y}}`];for(let n=0;n<t.length;n++){let o=t[n],i=e[n],s=e[n+1];!o||!i||!s||(r.push(...gF(o,i,s)),r.push(`{x: ${s.x}, y: ${s.y}}`))}return r}function lE(e){let{waypoints:t,segments:a,autoRotate:r}=e,n=hF(r),o=a.some(c=>c.cp1&&c.cp2),i=a.some(c=>(c.curviness??1)!==(a[0]?.curviness??1));if((o||i)&&t.length>=2)return`{ path: [${bF(t,a).join(", ")}], type: "cubic"${n} }`;let s=t.map(c=>`{x: ${c.x}, y: ${c.y}}`),u=a[0]?.curviness??1,l=u!==1?`, curviness: ${u}`:"";return`{ path: [${s.join(", ")}]${l}${n} }`}function Tm(e){return e?.__hfProvenance}var xF=new Set(["set","to","from","fromTo"]),vF=new Set(["querySelector","querySelectorAll"]),yF=new Set(["forEach","map"]),cE=new Set(["Program","BlockStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),dE=Symbol("hf.constNodes");function AF(e){return e[dE]}var wF=new Set(["min","max","round","floor","ceil","abs","sqrt","sign","trunc"]),SF={PI:Math.PI,E:Math.E,SQRT2:Math.SQRT2};function CF(e,t){if(e.object?.type==="Identifier"&&e.object.name==="Math"){let n=e.property?.name;return typeof n=="string"?SF[n]:void 0}let a=Lx(e.object,t);if(!a)return;let r;if(e.computed){let n=ea(e.property,t);a.type==="ArrayExpression"&&typeof n=="number"?r=a.elements?.[n]:a.type==="ObjectExpression"&&(typeof n=="string"||typeof n=="number")&&(r=ko(a,String(n)))}else a.type==="ObjectExpression"&&(r=ko(a,e.property?.name??e.property?.value));return r?ea(r,t):void 0}function IF(e,t,a){if(!t.computed)return e.type==="ObjectExpression"?ko(e,t.property?.name??t.property?.value):void 0;let r=ea(t.property,a);if(e.type==="ArrayExpression"&&typeof r=="number")return e.elements?.[r];if(e.type==="ObjectExpression")return ko(e,String(r))}function Lx(e,t){if(!e)return;if(e.type==="ArrayExpression"||e.type==="ObjectExpression")return e;if(e.type==="Identifier")return AF(t)?.get(e.name);if(e.type!=="MemberExpression")return;let a=Lx(e.object,t);return a?IF(a,e,t):void 0}function ea(e,t){if(e){if(e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"||e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"||e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean")return e.value;if(e.type==="UnaryExpression"&&e.operator==="-"&&e.argument){let a=ea(e.argument,t);return typeof a=="number"?-a:void 0}if(e.type==="BinaryExpression"){let a=ea(e.left,t),r=ea(e.right,t);if(typeof a=="number"&&typeof r=="number")switch(e.operator){case"+":return a+r;case"-":return a-r;case"*":return a*r;case"/":return r!==0?a/r:void 0}if(typeof a=="string"&&e.operator==="+")return a+String(r??"");if(typeof r=="string"&&e.operator==="+")return String(a??"")+r}if(e.type==="Identifier"&&t.has(e.name))return t.get(e.name);if(e.type==="TemplateLiteral"&&e.expressions?.length===0)return e.quasis?.[0]?.value?.cooked??void 0;if(e.type==="MemberExpression")return CF(e,t);if(e.type==="CallExpression"&&e.callee?.type==="MemberExpression"&&e.callee.object?.type==="Identifier"&&e.callee.object.name==="Math"&&wF.has(e.callee.property?.name)){let a=(e.arguments??[]).map(r=>ea(r,t));if(a.every(r=>typeof r=="number"))return Math[e.callee.property.name](...a)}}}function kF(e,t){return ea(e,t)}function Nm(e,t){if(e?.type!=="CallExpression")return null;let a=e.callee;if(a?.type!=="MemberExpression"||a.property?.type!=="Identifier")return null;let r=a.property.name,n=ea(e.arguments?.[0],t);return typeof n!="string"||n.length===0?null:vF.has(r)||r==="toArray"?n:r==="getElementById"?`#${n}`:null}function Rm(e,t=!0){for(let a=e.length-2;a>=0;a--){let r=e[a];if(r&&cE.has(r.type)&&(t||r.type!=="BlockStatement"))return r}return null}function fE(e){let t=[];for(let a=e.length-1;a>=0;a--){let r=e[a];r&&cE.has(r.type)&&t.push(r)}return t}function Ex(e){for(let t=e.length-2;t>=0;t--){let a=e[t];if(a?.type==="BlockStatement"&&Tm(a))return a}}function Tx(e,t,a,r=Number.POSITIVE_INFINITY){let n=a.declarationsByName.get(e)??[],o=Ex(t);for(let i of fE(t)){let s=n.filter(u=>u.scopeNode===i&&(!u.expandedScopeNode||u.expandedScopeNode===o)&&(u.kind==="var"||u.kind==="param"||u.node.start<r)).sort((u,l)=>l.node.start-u.node.start);if(s[0])return s[0]}}function LF(e){let t=new Map,a=new Set;Xt(e,{VariableDeclarator(o,i,s){let u=o.id?.name;if(!u)return;let l=s.at(-2),c=l?.kind;if(!c)return;let d=l?.type!=="VariableDeclaration"||c!=="var",f=Rm(s,d),p=Ex(s),g=t.get(u)??[];g.push({node:o,scopeNode:f,expandedScopeNode:p,name:u,kind:c}),t.set(u,g)},FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n});let r={declarationsByName:t,reassignedDeclarations:a};return Xt(e,{AssignmentExpression(o,i,s){let u=o.left?.type==="Identifier"?o.left.name:void 0;if(!u)return;let l=Tx(u,s,r,o.start);l&&a.add(l.node)}}),r;function n(o){for(let i of o.params??[]){if(i?.type!=="Identifier")continue;let s=t.get(i.name)??[];s.push({node:i,scopeNode:o,name:i.name,kind:"param"}),t.set(i.name,s)}}}function Em(e,t,a,r){let n=e.get(t);n||(n=new Map,e.set(t,n)),n.has(a)||n.set(a,r)}function Mm(e,t,a){for(let r of fE(t)){let n=a.get(r)?.get(e);if(n!==void 0)return n}return a.get(null)?.get(e)??null}function EF(e){return e?.type==="ArrowFunctionExpression"||e?.type==="FunctionExpression"||e?.type==="FunctionDeclaration"}function TF(e,t,a,r){return e?.type==="Identifier"?Mm(e.name,t,r):e?.type==="CallExpression"?Nm(e,a):null}function RF(e){let t=new Map,a=new Set,r=new Map;return Object.defineProperty(t,dE,{value:r,enumerable:!1}),mr(e,{VariableDeclarator(n){let o=n.id?.name,i=n.init;if(!o||!i)return;if(i.type==="ArrayExpression"||i.type==="ObjectExpression"){r.set(o,i);return}let s=ea(i,t);if(s===void 0||a.has(o))return;let u=t.get(o);u!==void 0&&u!==s?(t.delete(o),a.add(o)):u===void 0&&t.set(o,s)}}),t}function PF(e,t,a){let r=new Map;Xt(e,{VariableDeclarator(o,i,s){let u=o.id?.name,l=Nm(o.init,t);if(u&&l!==null){let c=s.at(-2),d=c?.type!=="VariableDeclaration"||c.kind!=="var";Em(r,Rm(s,d),u,l)}},AssignmentExpression(o,i,s){let u=o.left,l=Nm(o.right,t);if(u?.type==="Identifier"&&l!==null){let c=Tx(u.name,s,a,o.start);Em(r,c?.scopeNode??Ex(s)??Rm(s),u.name,l)}}}),Xt(e,{CallExpression(o,i,s){let u=o.callee;if(u?.type==="MemberExpression"&&u.property?.type==="Identifier"&&yF.has(u.property.name)){let l=TF(u.object,s,t,r),c=o.arguments?.[0],d=c?.params?.[0];l&&d?.type==="Identifier"&&EF(c)&&Em(r,c,d.name,l)}}});let n=new Set(["slice","filter","concat","reverse"]);return Xt(e,{VariableDeclarator(o,i,s){let u=o.id?.name,l=o.init;if(!u||!l)return;let c;if(l.type==="MemberExpression"&&l.object?.type==="Identifier"?c=l.object.name:l.type==="CallExpression"&&l.callee?.type==="MemberExpression"&&l.callee.object?.type==="Identifier"&&l.callee.property?.type==="Identifier"&&n.has(l.callee.property.name)&&(c=l.callee.object.name),!c)return;let d=Mm(c,s,r);d&&Em(r,Rm(s),u,d)}}),r}function pE(e,t,a,r){if(!e)return null;if(e.type==="StringLiteral"||e.type==="Literal")return typeof e.value=="string"?e.value:null;if(e.type==="Identifier")return Mm(e.name,t,r);if(e.type==="CallExpression")return Nm(e,a);if(e.type==="ArrayExpression"){let n=e.elements.map(o=>pE(o,t,a,r)).filter(o=>typeof o=="string"&&o.length>0);return n.length>0?n.join(", "):null}return e.type==="MemberExpression"&&e.object?.type==="Identifier"?Mm(e.object.name,t,r):null}function NF(e,t,a){if((e?.type==="ObjectExpression"?e:e?.type==="Identifier"?Lx(e,a):void 0)?.type!=="ObjectExpression")return null;let n=ko(t,"onUpdate"),o=n?DF(n):void 0;return o?`proxy \u2192 ${o}`:"dwell/hold"}function MF(e){return e?.type==="MemberExpression"&&e.object?.type==="MemberExpression"&&e.object.property?.name==="style"&&!!e.property?.name}function DF(e){let t;return mr(e,{CallExpression(a){a.callee?.type==="MemberExpression"&&a.callee.property?.name==="setAttribute"&&typeof a.arguments?.[0]?.value=="string"&&(t??(t=a.arguments[0].value))},AssignmentExpression(a){let r=a.left;MF(r)&&(t??(t=`style.${r.property.name}`))}}),t}function bc(e){return e?.type==="ObjectProperty"||e?.type==="Property"}function Dm(e){return e?.key?.name??e?.key?.value}function ko(e,t){if(e?.type==="ObjectExpression"){for(let a of e.properties??[])if(bc(a)&&Dm(a)===t)return a.value}}function OF(e,t,a){let r=ko(e,t);return r?a.slice(r.start,r.end):void 0}function tu(e,t,a){let r={};if(e?.type!=="ObjectExpression")return r;for(let n of e.properties??[]){if(!bc(n))continue;let o=n.key?.name??n.key?.value;if(!o)continue;let i=ea(n.value,t);i!==void 0?r[o]=i:r[o]=`__raw:${a.slice(n.value.start,n.value.end)}`}return r}function XL(e){return e?.type==="CallExpression"&&e.callee?.type==="MemberExpression"&&e.callee.object?.name==="gsap"&&e.callee.property?.name==="timeline"}function Pm(e){if(!e||e.type!=="MemberExpression")return null;if(e.computed){let t=e.property;return t?.type==="Literal"&&typeof t.value=="string"?t.value:null}return e.property?.type==="Identifier"?e.property.name:null}function _F(e){return e?.type==="MemberExpression"&&Pm(e)!==null}function mE(e,t){if(e?.type!=="MemberExpression"||t?.type!=="MemberExpression"||Pm(e)!==Pm(t)||Pm(e)===null)return!1;let a=e.object,r=t.object;return a?.type==="Identifier"&&r?.type==="Identifier"?a.name===r.name:a?.type==="MemberExpression"&&r?.type==="MemberExpression"?mE(a,r):!1}function BF(e,t){return e.kind==="identifier"?e.name:t.slice(e.node.start,e.node.end)}function Ix(e,t){let a=e.arguments?.[0];if(!a||a.type!=="ObjectExpression")return;let r=a.properties?.find(o=>bc(o)&&Dm(o)==="defaults");if(!r?.value||r.value.type!=="ObjectExpression")return;let n={};for(let o of r.value.properties??[]){if(!bc(o))continue;let i=Dm(o),s=ea(o.value,t);i==="ease"&&typeof s=="string"&&(n.ease=s),i==="duration"&&typeof s=="number"&&(n.duration=s)}return Object.keys(n).length>0?n:void 0}function FF(e,t){let a=null,r=null,n=0,o,i=t??new Map;return mr(e,{VariableDeclarator(s){XL(s.init)&&(n+=1,!r&&s.id?.type==="Identifier"&&(a=s.id.name,r={kind:"identifier",name:s.id.name},o=Ix(s.init,i)))},AssignmentExpression(s){if(XL(s.right)&&(n+=1,!r)){let u=s.left;u?.type==="Identifier"?(a=u.name,r={kind:"identifier",name:u.name},o=Ix(s.right,i)):_F(u)&&(r={kind:"member",node:u},o=Ix(s.right,i))}}}),{timelineVar:a,ref:r,timelineCount:n,defaults:o}}var HF=new Set(["duration","ease","delay"]),zF=new Set(["onComplete","onStart","onUpdate","onRepeat"]),VF=new Set(["stagger","yoyo","repeat","repeatDelay","snap","overwrite","immediateRender"]);function UF(e,t){let a=e.callee?.object;for(;a?.type==="CallExpression";)a=a.callee?.object;return t.kind==="identifier"?a?.type==="Identifier"&&a.name===t.name:mE(a,t.node)}function GF(e,t,a,r){let n=[];function o(i,s){if(!i||typeof i!="object")return;let u=[...s,i];if(i.type==="CallExpression"){let l=i.callee,c=i.arguments?.[0],d=l?.type==="MemberExpression"&&l.object?.type==="Identifier"&&l.object.name==="gsap"&&l.property?.type==="Identifier"&&l.property.name==="set"&&(c?.type==="StringLiteral"||c?.type==="Literal"&&typeof c.value=="string");if(l?.type==="MemberExpression"&&l.property?.type==="Identifier"&&(UF(i,t)||d)&&xF.has(l.property.name)){let f=l.property.name,p=i.arguments,g=p.length>=1?pE(p[0],u,a,r)??"__unresolved__":"__unresolved__";f==="fromTo"&&p.length>=3?n.push({node:i,ancestors:u,method:"fromTo",selector:g,fromArg:p[1],varsArg:p[2],positionArg:p[3]}):f!=="fromTo"&&p.length>=2&&n.push({node:i,ancestors:u,method:f,selector:g,varsArg:p[1],positionArg:p[2],...d?{global:!0}:{}})}}for(let l of Object.keys(i)){if(l==="type"||l==="start"||l==="end"||l==="loc")continue;let c=i[l];if(Array.isArray(c))for(let d of c)d&&typeof d=="object"&&d.type&&o(d,u);else c&&typeof c=="object"&&c.type&&o(c,u)}}return o(e,[]),n}var hE=/^(\d+(?:\.\d+)?)%$/;function Om(e,t){let a=ea(e,t);return typeof a=="string"?a:void 0}function WF(e,t,a){let r=[],n,o;for(let i of e.properties??[]){if(i.type!=="ObjectProperty"&&i.type!=="Property")continue;let s=i.key?.value??i.key?.name;if(typeof s!="string")continue;let u=hE.exec(s);if(u){let l=Number.parseFloat(u[1]??"0"),c=tu(i.value,t,a),d={},f;for(let[p,g]of Object.entries(c))p==="ease"&&typeof g=="string"?f=g:(typeof g=="number"||typeof g=="string")&&(d[p]=g);r.push({percentage:l,properties:d,...f?{ease:f}:{}})}else s==="ease"?n=Om(i.value,t)??n:s==="easeEach"&&(o=Om(i.value,t)??o)}return r.sort((i,s)=>i.percentage-s.percentage),{format:"percentage",keyframes:r,...n?{ease:n}:{},...o?{easeEach:o}:{}}}function jF(e,t,a){let r=(e.properties??[]).find(o=>(o.key?.name??o.key?.value)==="keyframes")?.value;if(!r||r.type!=="ArrayExpression")return;let n=0;for(let o of r.elements??[]){if(!o||o.type!=="ObjectExpression")continue;let i=tu(o,t,a);typeof i.duration=="number"&&(n+=i.duration)}return n>0?n:void 0}function qF(e,t,a){let r=e.elements??[],n=[];for(let s of r){if(!s||s.type!=="ObjectExpression")continue;let u=tu(s,t,a),l={},c,d;for(let[f,p]of Object.entries(u))f==="duration"&&typeof p=="number"?c=p:f==="ease"&&typeof p=="string"?d=p:(typeof p=="number"||typeof p=="string")&&(l[f]=p);n.push({properties:l,duration:c,ease:d})}let o=n.reduce((s,u)=>s+(u.duration??0),0),i=[];if(o>0){let s=0;for(let u of n){s+=u.duration??0;let l=Math.round(s/o*100);i.push({percentage:l,properties:u.properties,...u.ease?{ease:u.ease}:{}})}}else for(let s=0;s<n.length;s++){let u=n[s];if(!u)continue;let l=n.length>1?Math.round(s/(n.length-1)*100):0;i.push({percentage:l,properties:u.properties,...u.ease?{ease:u.ease}:{}})}return{format:"object-array",keyframes:i}}function KF(e,t){let a=new Map,r,n;for(let s of e.properties??[]){if(s.type!=="ObjectProperty"&&s.type!=="Property")continue;let u=s.key?.name??s.key?.value;if(typeof u=="string")if(s.value?.type==="ArrayExpression"){let l=[];for(let c of s.value.elements??[]){let d=ea(c,t);(typeof d=="number"||typeof d=="string")&&l.push(d)}l.length>0&&a.set(u,l)}else u==="ease"?r=Om(s.value,t)??r:u==="easeEach"&&(n=Om(s.value,t)??n)}let o=Math.max(...[...a.values()].map(s=>s.length),0),i=[];for(let s=0;s<o;s++){let u=o>1?Math.round(s/(o-1)*100):0,l={};for(let[c,d]of a)s<d.length&&(l[c]=d[s]);i.push({percentage:u,properties:l})}return{format:"simple-array",keyframes:i,...r?{ease:r}:{},...n?{easeEach:n}:{}}}function QF(e,t,a){if(!e)return;if(e.type==="ArrayExpression")return qF(e,t,a);if(e.type!=="ObjectExpression")return;let r=e.properties??[],n=!1,o=!1;for(let i of r){if(i.type!=="ObjectProperty"&&i.type!=="Property")continue;let s=i.key?.value??i.key?.name;if(typeof s=="string"&&hE.test(s)){n=!0;break}i.value?.type==="ArrayExpression"&&(o=!0)}if(n)return WF(e,t,a);if(o)return KF(e,t)}function YF(e,t,a){if(!e)return;let r,n=!1,o=1,i=!1;if(e.type==="ObjectExpression")for(let l of e.properties??[]){if(!bc(l))continue;let c=Dm(l);if(c==="path")r=l.value;else if(c==="autoRotate"){let d=ea(l.value,t);n=typeof d=="number"?d:d===!0}else if(c==="curviness"){let d=ea(l.value,t);typeof d=="number"&&(o=d)}else c==="type"&&ea(l.value,t)==="cubic"&&(i=!0)}else e.type==="ArrayExpression"&&(r=e);if(!r||r.type!=="ArrayExpression")return;let s=r.elements??[],u=[];for(let l of s){if(!l||l.type!=="ObjectExpression")continue;let c=tu(l,t,a),d=typeof c.x=="number"?c.x:void 0,f=typeof c.y=="number"?c.y:void 0;d!==void 0&&f!==void 0&&u.push({x:d,y:f})}return cF(u,o,n,i)}function JF(e,t,a,r){let n=Tm(e.node),o=tu(e.varsArg,t,a),i={},s={},u,l=!1,c;for(let[A,L]of Object.entries(o))if(!HF.has(A)&&!zF.has(A)){if(A==="keyframes"){let C=ko(e.varsArg,"keyframes");u=QF(C,t,a),!u&&C&&(l=!0);continue}if(A==="motionPath"){let C=ko(e.varsArg,"motionPath");c=YF(C,t,a);continue}if(A!=="easeEach"){if(VF.has(A)){let C=OF(e.varsArg,A,a);C!==void 0?s[A]=`__raw:${C}`:L!==void 0&&(s[A]=L);continue}(typeof L=="number"||typeof L=="string")&&(i[A]=L)}}if(u&&typeof o.easeEach=="string"&&(u.easeEach=o.easeEach),c){let{waypoints:A}=c;if(!u)u={format:"percentage",keyframes:A.map((C,I)=>({percentage:A.length>1?Math.round(I/(A.length-1)*100):0,properties:{x:C.x,y:C.y}}))};else{let L=u.keyframes;if(L.length===A.length)for(let C=0;C<L.length;C++){let I=L[C],D=A[C];I&&D&&(I.properties.x=D.x,I.properties.y=D.y)}}}let d;if(e.method==="fromTo"&&e.fromArg){d={};let A=tu(e.fromArg,t,a);for(let[L,C]of Object.entries(A))(typeof C=="number"||typeof C=="string")&&(d[L]=C)}let f=!!e.positionArg,p=f?kF(e.positionArg,t):0,g=typeof p=="number"||typeof p=="string"?p:f?`__raw:${a.slice(e.positionArg.start,e.positionArg.end)}`:0,m=typeof o.duration=="number"?o.duration:void 0,x=typeof o.ease=="string"?o.ease:void 0;m===void 0&&u&&(m=jF(e.varsArg,t,a));let v=e.selector,w;if(v==="__unresolved__"){let A=e.node.arguments?.[0],L=NF(A,e.varsArg,t);if(L&&(v=L,A?.type==="Identifier")){let C=Tx(A.name,e.ancestors,r,e.node.start);if(C?.node.init?.type==="ObjectExpression"&&!r.reassignedDeclarations.has(C.node)){let I=Tm(C.scopeNode)??Tm(C.expandedScopeNode),D=I&&(I.kind==="helper"||I.kind==="loop")?`:${I.kind}:${I.callSite??""}:${I.iteration??""}`:"";w=`proxy:${A.name}@${C.node.start}${D}`}}}let y={targetSelector:v,method:e.method,position:g,properties:i,fromProperties:d,duration:m,ease:x};w&&(y.targetIdentity=w),f||(y.implicitPosition=!0);let S=$L(i);if(!S&&u){let A={};for(let L of u.keyframes)for(let C of Object.keys(L.properties))A[C]=!0;S=$L(A)}return S&&(y.propertyGroup=S),e.global&&(y.global=!0),Object.keys(s).length>0&&(y.extras=s),u&&(y.keyframes=u),c&&(y.arcPath=c.arcPath),l&&(y.hasUnresolvedKeyframes=!0),v==="__unresolved__"&&(y.hasUnresolvedSelector=!0),n&&(y.provenance=n),y}var $F=.5;function ZF(e,t,a){let r=e.trim();if(r==="")return t;if(r.startsWith("+=")){let o=Number.parseFloat(r.slice(2));return Number.isFinite(o)?t+o:null}if(r.startsWith("-=")){let o=Number.parseFloat(r.slice(2));return Number.isFinite(o)?t-o:null}if(r==="<")return a;if(r===">")return t;if(r.startsWith("<")){let o=Number.parseFloat(r.slice(1));return Number.isFinite(o)?a+o:null}if(r.startsWith(">")){let o=Number.parseFloat(r.slice(1));return Number.isFinite(o)?t+o:null}let n=Number.parseFloat(r);return Number.isFinite(n)?n:null}function XF(e,t){if(t)for(let a of e)a.method!=="set"&&(a.duration===void 0&&t.duration!==void 0&&(a.duration=t.duration),a.ease===void 0&&t.ease!==void 0&&(a.ease=t.ease))}function gE(e,t,a){let r=/^([A-Za-z_$][\w$]*)\s*(?:([+-])=\s*([\d.]+))?$/.exec(e.trim());if(!r)return null;let n=r[1],o=t.get(n);if(o===void 0&&(o=a,t.set(n,o)),r[2]&&r[3]){let i=Number.parseFloat(r[3]);if(Number.isFinite(i))return r[2]==="+"?o+i:o-i}return o}function eH(e,t,a,r){return e.implicitPosition?t:typeof e.position=="number"?e.position:typeof e.position=="string"?gE(e.position,r,t)??ZF(e.position,t,a):t}function tH(e,t=[]){let a=0,r=0,n=new Map,o=0,i=[...t].sort((u,l)=>u.order-l.order),s=u=>{let l;typeof u.position=="number"?l=u.position:typeof u.position=="string"?l=gE(u.position,n,a)??a:l=a,n.set(u.name,Math.max(0,l))};for(e.forEach((u,l)=>{for(;o<i.length&&i[o].order<=l;)s(i[o]),o++;if(u.method==="set"&&u.global){u.resolvedStart=0;return}let c=u.method==="set"?0:u.duration??$F,d=eH(u,a,r,n);d!=null&&(u.resolvedStart=Math.max(0,d),r=u.resolvedStart,a=Math.max(a,u.resolvedStart+c))});o<i.length;)s(i[o++])}function aH(e,t){let a=e.node.callee?.property?.loc?.start,r=t.node.callee?.property?.loc?.start;return!a||!r?0:a.line-r.line||a.column-r.column}function rH(e,t){let a=e.node.__hfOrder,r=t.node.__hfOrder;return a===void 0&&r===void 0?aH(e,t):a===void 0?-1:r===void 0?1:a-r}function nH(e){e.sort(rH)}function oH(e){let t=new Map;return e.map(a=>{let r=typeof a.position=="number"?String(Math.round(a.position*1e3)):String(a.position),n=a.propertyGroup?`-${a.propertyGroup}`:"",o=`${a.targetSelector}-${a.method}-${r}${n}`,i=(t.get(o)??0)+1;t.set(o,i);let s=i===1?o:`${o}-${i}`;return{...a,id:s}})}function ht(e){try{let t=Mi(e,{ecmaVersion:"latest",sourceType:"script",locations:!0}),a=RF(t),r=LF(t),n=PF(t,a,r),o=FF(t,a),i=o.ref??{kind:"identifier",name:"tl"},s=BF(i,e),u=GF(t,i,a,n);nH(u);let l=u.map(f=>JF(f,a,e,r));XF(l,o.defaults),tH(l);let c=oH(l),d=u.map((f,p)=>({id:c[p].id,call:f,animation:c[p]}));return{ast:t,timelineVar:s,hasTimeline:o.ref!==null,located:d}}catch{return null}}function bt(e){return typeof e=="string"&&e.startsWith("__raw:")?e.slice(6):typeof e=="string"?JSON.stringify(e):typeof e=="number"?Number.isNaN(e)?"0":String(e):typeof e=="boolean"?String(e):JSON.stringify(e)}function Aa(e){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:JSON.stringify(e)}function iH(e,t){let a=JSON.stringify(t.targetSelector),r={...t.properties};t.method!=="set"&&t.duration!==void 0&&(r.duration=t.duration),t.ease&&(r.ease=t.ease);let n=Object.entries(r).map(([u,l])=>`${Aa(u)}: ${bt(l)}`),o=new Set(Object.keys(r));if(t.extras)for(let[u,l]of Object.entries(t.extras))o.has(u)||(o.add(u),n.push(`${Aa(u)}: ${bt(l)}`));let i=`{ ${n.join(", ")} }`,s=bt(typeof t.position=="number"?t.position:t.position??0);if(t.method==="fromTo"){let u=Object.entries(t.fromProperties??{}).map(([l,c])=>`${Aa(l)}: ${bt(c)}`);return`${e}.fromTo(${a}, { ${u.join(", ")} }, ${i}, ${s});`}return t.method==="set"&&t.global?`gsap.set(${a}, ${i});`:`${e}.${t.method}(${a}, ${i}, ${s});`}function wa(e){return e?.type==="ObjectProperty"||e?.type==="Property"}function Ja(e){return e?.key?.name??e?.key?.value}function ta(e,t){if(e?.type==="ObjectExpression"){for(let a of e.properties??[])if(wa(a)&&Ja(a)===t)return a}}function sH(e){let t=ta(e,"keyframes");return t?.value?.type==="ObjectExpression"?t.value:null}function au(e){for(let t=e.length-2;t>=0;t--)if(e[t]?.type==="ExpressionStatement")return e[t];return null}function Rx(e,t){let a=null;return mr(e,{VariableDeclaration(r){if(!a)for(let n of r.declarations??[])n.id?.name===t&&n.init?.type==="CallExpression"&&n.init.callee?.type==="MemberExpression"&&n.init.callee.object?.name==="gsap"&&n.init.callee.property?.name==="timeline"&&(a=r)}}),a}function ru(e,t,a){let r=a.indexOf(t);r!==-1&&(a.length===1?e.remove(t.start,t.end):r===0?e.remove(a[0].start,a[1].start):e.remove(a[r-1].end,t.end))}function uH(e){let t=Object.entries(e).map(([a,r])=>`${Aa(a)}: ${bt(r)}`);return t.length>0?`{ ${t.join(", ")} }`:"{}"}function bE(e,t,a){t.varsArg&&e.overwrite(t.varsArg.start,t.varsArg.end,a)}function Io(e,t,a,r){if(t?.type!=="ObjectExpression")return;let n=ta(t,a);if(n)e.overwrite(n.value.start,n.value.end,bt(r));else{let o=t.properties.length>0?", ":"";e.appendLeft(t.end-1,`${o}${Aa(a)}: ${bt(r)}`)}}var lH=new Set(["duration","ease","delay","onComplete","onStart","onUpdate","onRepeat","stagger","yoyo","repeat","repeatDelay","snap","overwrite","immediateRender"]);function cH(e){return!lH.has(e)}function xE(e,t,a,r){let n=[],o=new Set;for(let i of e.properties??[]){if(!wa(i))continue;let s=Ja(i);if(typeof s!="string"||a(s))continue;o.add(s);let u=s in r?bt(r[s]):t.slice(i.value.start,i.value.end);n.push(`${Aa(s)}: ${u}`)}return{entries:n,keys:o}}function eE(e,t,a,r,n){if(t?.type!=="ObjectExpression")return;let o=n??{},{entries:i,keys:s}=xE(t,a,cH,o);for(let[u,l]of Object.entries(o))s.has(u)||(s.add(u),i.push(`${Aa(u)}: ${bt(l)}`));for(let[u,l]of Object.entries(r))s.has(u)||i.push(`${Aa(u)}: ${bt(l)}`);e.overwrite(t.start,t.end,`{ ${i.join(", ")} }`)}function vE(e,t,a){return e?.type==="Identifier"?e.name===t:e?.type==="MemberExpression"?a.slice(e.start,e.end)===t:e?.type==="CallExpression"?vE(e.callee?.object,t,a):!1}function Px(e){let t=e.located[e.located.length-1];if(t){let r=t.call;return au(r.ancestors)?.end??r.node.end}return e.hasTimeline?Rx(e.ast,e.timelineVar)?.end??e.ast.end:null}function yE(e,t){let a=Rx(e.ast,e.timelineVar);return a?t.lastIndexOf(`
613
+ `,a.start)+1:null}function Bm(e,t,a){if(!Object.keys(a).length)return e;let r=ht(e);if(!r)return e;let n=r.located.find(s=>s.id===t);if(!n)return e;let o=new ot(e),{call:i}=n;if(a.properties){let s={};a.duration!==void 0&&(s.duration=a.duration),a.ease!==void 0&&(s.ease=a.ease),a.extras&&Object.assign(s,a.extras),eE(o,i.varsArg,e,a.properties,s)}else{a.duration!==void 0&&Io(o,i.varsArg,"duration",a.duration);let s=a.easeEach??a.ease;if(s!==void 0){let u=sH(i.varsArg);if(u){if(Io(o,u,"easeEach",s),a.resetKeyframeEases)for(let l of u.properties??[]){if(!wa(l))continue;let c=l.value;if(c?.type!=="ObjectExpression")continue;let d=ta(c,"ease");d&&ru(o,d,c.properties)}}else Io(o,i.varsArg,"ease",s)}if(a.extras)for(let[u,l]of Object.entries(a.extras))Io(o,i.varsArg,u,l)}if(a.fromProperties&&i.method==="fromTo"&&i.fromArg&&eE(o,i.fromArg,e,a.fromProperties),a.position!==void 0&&dH(o,i,a.position),n.animation.method==="set"&&n.animation.global){let s=yE(r,e),u=au(i.ancestors);if(s!==null&&u&&u.start>s){let l=e.lastIndexOf(`
614
+ `,u.start)+1,c=/^\s*$/.test(e.slice(l,u.start))?l:u.start,d=u.end<e.length&&e[u.end]===`
615
+ `?u.end+1:u.end;o.move(c,d,s)}}return o.toString()}function dH(e,t,a){t.positionArg?e.overwrite(t.positionArg.start,t.positionArg.end,bt(a)):e.appendLeft(t.node.end-1,`, ${bt(a)}`)}function Fm(e,t){let a=ht(e);if(!a)return{script:e,id:""};let r=new ot(e),n=iH(a.timelineVar,t),o=t.method==="set"&&t.global?yE(a,e):null;if(o!==null)r.appendLeft(o,n+`
616
+ `);else{let c=Px(a);if(c===null)return{script:e,id:""};r.appendLeft(c,`
617
+ `+n)}let i=r.toString(),s=ht(i),u=new Map;for(let c of a.located)u.set(c.id,(u.get(c.id)??0)+1);let l="";for(let c of s?.located??[]){let d=u.get(c.id)??0;if(d===0){l=c.id;break}u.set(c.id,d-1)}return{script:i,id:l}}function AE(e,t,a){let r=t.node,n=au(t.ancestors);if(r.callee?.object?.type!=="CallExpression"&&n?.expression===r){let o=n.end<a.length&&a[n.end]===`
618
+ `?n.end+1:n.end;e.remove(n.start,o)}else e.remove(r.callee.object.end,r.end)}function nu(e,t){let a=ht(e);if(!a)return e;let r=a.located.find(o=>o.id===t);if(!r)return e;let n=new ot(e);return AE(n,r.call,e),n.toString()}var fH={opacity:1,autoAlpha:1,scale:1,scaleX:1,scaleY:1};function pH(e){return fH[e]??0}var mH=new Set(["duration","delay","onComplete","onStart","onUpdate","onRepeat","stagger","yoyo","repeat","repeatDelay","snap","overwrite","immediateRender"]);function tE(e){let t={};for(let[a,r]of Object.entries(e))r!=null&&(t[a]=typeof r=="number"?pH(a):r);return t}function hH(e){return e.method==="from"?{fromProps:{...e.properties},toProps:tE(e.properties)}:e.method==="fromTo"?{fromProps:{...e.fromProperties??{}},toProps:{...e.properties}}:{fromProps:tE(e.properties),toProps:{...e.properties}}}function wE(e,t){let a=[];if(e?.type!=="ObjectExpression")return a;for(let r of e.properties??[]){if(!wa(r))continue;let n=Ja(r);typeof n!="string"||!mH.has(n)||a.push(`${Aa(n)}: ${t.slice(r.value.start,r.value.end)}`)}return a}function gH(e,t,a){let{fromProps:r,toProps:n}=hH(e),o=e.ease,i=o?`, easeEach: ${JSON.stringify(o)}`:"",u=[`keyframes: ${`{ "0%": ${Oi(r)}, "100%": ${Oi(n)}${i} }`}`,...wE(t,a)];return o&&u.push('ease: "none"'),`{ ${u.join(", ")} }`}function bH(e,t,a,r){if(t.method!=="from"&&t.method!=="fromTo")return;let n=a.node.callee?.property;n&&e.overwrite(n.start,n.end,"to"),t.method==="fromTo"&&a.fromArg&&e.remove(a.fromArg.start,r.start)}function xH(e,t){let a=t.animation;if(a.keyframes||a.method==="set")return e;let r=t.call,n=r.varsArg;if(n?.type!=="ObjectExpression")return e;let o=new ot(e);return o.overwrite(n.start,n.end,gH(a,n,e)),bH(o,a,r,n),o.toString()}var SE=/^(\d+(?:\.\d+)?)%$/,CE=2;function _m(e){let t=SE.exec(e);return t?Number.parseFloat(t[1]??"0"):Number.NaN}function Oi(e){return`{ ${Object.entries(e).map(([a,r])=>`${Aa(a)}: ${bt(r)}`).join(", ")} }`}function Nx(e){return(e.properties??[]).filter(t=>{if(!wa(t))return!1;let a=Ja(t);return typeof a=="string"&&SE.test(a)})}var IE=new Set(["Literal","NumericLiteral","StringLiteral"]);function vH(e,t){return IE.has(e?.type)&&(typeof e.value=="number"||typeof e.value=="string")?e.value:e?.type==="UnaryExpression"&&e.operator==="-"&&typeof e.argument?.value=="number"?-e.argument.value:`__raw:${t.slice(e.start,e.end)}`}function ou(e,t){let a={};if(e?.type!=="ObjectExpression")return a;for(let r of e.properties??[]){if(!wa(r))continue;let n=Ja(r);typeof n=="string"&&(a[n]=vH(r.value,t))}return a}function yH(e){return"_auto"in e}function AH(e,t,a,r){let n=new Map;if(a<=0||a>=100)return n;let o=Nx(e),i=o.map(l=>_m(Ja(l)??"")).filter(l=>!Number.isNaN(l)&&l!==a).sort((l,c)=>l-c),s=i.filter(l=>l<a).pop(),u=i.find(l=>l>a);for(let l of[0,100]){if(!(l===0?s===0:u===100))continue;let d=o.find(p=>_m(Ja(p)??"")===l);if(!d)continue;let f=ou(d.value,t);yH(f)&&n.set(d,{...r,_auto:1})}return n}function Mx(e,t){let a=e.properties??[],r=null,n=Number.POSITIVE_INFINITY;for(let o=0;o<a.length;o++){let i=a[o];if(!wa(i))continue;let s=Ja(i);if(typeof s!="string")continue;let u=Math.abs(_m(s)-t);u<=CE&&u<n&&(r={prop:i,idx:o},n=u)}return r}function kE(e,t,a,r,n){let o=ht(e);if(!o)return e;let i=o.located.find(c=>c.id===t);if(!i)return e;let s=ta(i.call.varsArg,"keyframes");if(!s)return e;if(s.value?.type==="ArrayExpression")return wH(e,s.value,a,r,n);if(s.value?.type!=="ObjectExpression")return e;let u=Mx(s.value,a);if(!u)return e;let l=new ot(e);if(u.prop.value?.type==="ObjectExpression"){for(let[c,d]of Object.entries(r))Io(l,u.prop.value,c,d);n!==void 0&&Io(l,u.prop.value,"ease",n)}else{let c={...r};n&&(c.ease=n),l.overwrite(u.prop.value.start,u.prop.value.end,Oi(c))}return l.toString()}function wH(e,t,a,r,n){let o=(t.elements??[]).filter(d=>!!d&&d.type==="ObjectExpression"),i=o.length;if(i===0)return e;let s=i>1?Math.round(a/100*(i-1)):0,u=o[Math.max(0,Math.min(i-1,s))];if(!u)return e;let l={...ou(u,e),...r};n&&(l.ease=n);let c=new ot(e);return c.overwrite(u.start,u.end,Oi(l)),c.toString()}function SH(e,t,a,r){if(!e||e.prop.value?.type!=="ObjectExpression"){let u={...a};return r&&(u.ease=r),u}let n=ou(e.prop.value,t),o=typeof n.ease=="string"?n.ease:void 0,i={...n};for(let[u,l]of Object.entries(a))i[u]=l;let s=r??o;return s?i.ease=s:delete i.ease,i}function CH(e,t,a,r){if(e?.type!=="ObjectExpression")return null;let n=ou(e,t),o=!1;for(let i of a){let s=r[i];i in n||s==null||(n[i]=s,o=!0)}return o?n:null}function kx(e,t){let a=ht(e);if(!a)return null;let r=t.replace(/-from-|-fromTo-/,"-to-"),n=a.located.find(i=>i.id===t)??a.located.find(i=>i.id===r);if(!n)return null;let o=ta(n.call.varsArg,"keyframes");return!o||o.value?.type!=="ObjectExpression"?null:{script:e,parsed:a,target:n,kfNode:o.value}}function IH(e,t){let a=ta(t.call.varsArg,"keyframes");if(!a||a.value?.type!=="ArrayExpression")return e;let r=(a.value.elements??[]).filter(s=>!!s&&s.type==="ObjectExpression"),n=r.length;if(n===0)return e;let o=r.map((s,u)=>{let l=n>1?Math.round(u/(n-1)*1e3)/10:0;return`${JSON.stringify(`${l}%`)}: ${e.slice(s.start,s.end)}`}),i=new ot(e);return i.overwrite(a.value.start,a.value.end,`{ ${o.join(", ")} }`),i.toString()}function kH(e,t){let a=kx(e,t);if(a)return a;let n=ht(e)?.located.find(s=>s.id===t);if(!n)return null;if(ta(n.call.varsArg,"keyframes")?.value?.type==="ArrayExpression"){let s=IH(e,n);return s!==e?kx(s,t):null}let i=xH(e,n);return i===e?null:kx(i,t)}function LH(e,t,a,r,n){let o=new Map;if(!r)return o;let i=Object.keys(a);for(let s of Nx(e)){if(s===n.existingProp||n.endpoints.has(s))continue;let u=CH(s.value,t,i,r);u&&o.set(s,u)}return o}function Dx(e,t,a,r,n,o){let i=kH(e,t);if(!i)return e;let{script:s,kfNode:u}=i,l=Mx(u,a),c=SH(l,s,r,n),d=l?new Map:AH(u,s,a,r),f=LH(u,s,r,o,{existingProp:l?.prop,endpoints:d}),p=new ot(s);if(l)if(l.prop.value?.type==="ObjectExpression"){for(let[g,m]of Object.entries(r))Io(p,l.prop.value,g,m);n!==void 0&&Io(p,l.prop.value,"ease",n)}else p.overwrite(l.prop.value.start,l.prop.value.end,Oi(c));else EH(p,u,a,`${a}%`,Oi(c));for(let[g,m]of[...d,...f])p.overwrite(g.value.start,g.value.end,Oi(m));return p.toString()}function EH(e,t,a,r,n){let o=(t.properties??[]).filter(s=>wa(s)),i=null;for(let s of o){let u=Ja(s);if(typeof u=="string"&&_m(u)>a){i=s;break}}if(i)e.appendLeft(i.start,`${JSON.stringify(r)}: ${n}, `);else{let s=o.length>0?", ":"";e.appendLeft(t.end-1,`${s}${JSON.stringify(r)}: ${n}`)}}function LE(e,t,a,r){if(t?.type!=="ObjectExpression")return;let n=i=>i==="keyframes"||i==="easeEach",{entries:o}=xE(t,a,n,{});for(let[i,s]of Object.entries(r))i!=="ease"&&o.push(`${Aa(i)}: ${bt(s)}`);e.overwrite(t.start,t.end,`{ ${o.join(", ")} }`)}function TH(e,t){return t>1?e/(t-1)*100:0}function RH(e,t,a,r,n){let o=(a.elements??[]).filter(c=>!!c&&c.type==="ObjectExpression"),i=o.length;if(i===0)return!1;let s=-1,u=Number.POSITIVE_INFINITY;for(let c=0;c<i;c++){let d=Math.abs(TH(c,i)-n);d<=CE&&d<u&&(s=c,u=d)}if(s===-1)return!1;let l=o.filter((c,d)=>d!==s);if(l.length<2){let c=l[0],d=c?ou(c,r):{};return LE(e,t,r,d),!0}return ru(e,o[s],o),!0}function Ox(e,t,a){let r=ht(e);if(!r)return e;let n=r.located.find(d=>d.id===t);if(!n)return e;let o=ta(n.call.varsArg,"keyframes");if(!o)return e;if(o.value?.type==="ArrayExpression"){let d=new ot(e);return RH(d,n.call.varsArg,o.value,e,a)?d.toString():e}if(o.value?.type!=="ObjectExpression")return e;let i=o.value,s=Mx(i,a);if(!s)return e;let u=new ot(e),l=Nx(i).filter(d=>d!==s.prop);if(l.length<2){let d=l[0],f=d?ou(d.value,e):{};return LE(u,n.call.varsArg,e,f),u.toString()}let c=(i.properties??[]).filter(d=>wa(d));return ru(u,s.prop,c),u.toString()}function EE(e,t,a,r=!1){let n=ht(e);if(!n)return e;let o=n.located.find(d=>d.id===t);if(!o)return e;let{call:i}=o,s=r?i.method==="fromTo"?i.fromArg:null:i.varsArg;if(!s)return e;let u=ta(s,a);if(!u)return e;let l=(s.properties??[]).filter(d=>wa(d)),c=new ot(e);return ru(c,u,l),c.toString()}function TE(e,t){let a=ht(e);if(!a)return e;let r=a.located.find(u=>u.id===t);if(!r)return e;let n=r.animation.keyframes?.keyframes;if(!n||n.length===0)return e;let o=[...n].sort((u,l)=>u.percentage-l.percentage),i=r.call.method==="from"?o[0]:o[o.length-1];if(!i)return e;let s=new ot(e);if(bE(s,r.call,uH(PH(r.animation,i))),r.animation.propertyGroup==="position")for(let u of a.located)u!==r&&u.animation.targetSelector===r.animation.targetSelector&&u.animation.propertyGroup==="position"&&AE(s,u.call,e);return s.toString()}function PH(e,t){let a={...e.properties};for(let[r,n]of Object.entries(t.properties))r!=="ease"&&(a[r]=n);for(let[r,n]of Object.entries(e.extras??{}))(typeof n=="number"||typeof n=="string")&&(a[r]=n);return a.duration=0,a.immediateRender=!0,a}function NH(e,t,a,r,n,o){let i=Object.entries(t).map(([f,p])=>`${Aa(f)}: ${bt(p)}`),s=Object.entries(a).map(([f,p])=>`${Aa(f)}: ${bt(p)}`),u=e.ease?`, easeEach: ${JSON.stringify(e.ease)}`:"",l=`{ "0%": { ${i.join(", ")} }, "100%": { ${s.join(", ")} }${u} }`,c=wE(r,n);o!==void 0&&(c=c.filter(f=>!/^\s*(immediateRender|data|duration)\s*:/.test(f)));let d=[`keyframes: ${l}`,...c];return o!==void 0&&d.push(`duration: ${Math.max(.001,o)}`),e.ease&&d.push('ease: "none"'),`{ ${d.join(", ")} }`}function RE(e,t,a,r=1){let n=ht(e);if(!n)return e;let o=n.located.find(f=>f.id===t);if(!o)return e;let{animation:i,call:s}=o;if(i.keyframes)return e;let u=s.method==="set",{fromProps:l,toProps:c}=pF(i,a),d=new ot(e);if(u&&i.global){let f=s.node.callee.object;f?.type==="Identifier"&&d.overwrite(f.start,f.end,n.timelineVar);let p=s.node.arguments;p.length>0&&p.length<3&&d.appendLeft(p[p.length-1].end,", 0")}return(s.method==="from"||s.method==="fromTo"||u)&&d.overwrite(s.node.callee.property.start,s.node.callee.property.end,"to"),s.method==="fromTo"&&s.fromArg&&d.remove(s.fromArg.start,s.varsArg.start),bE(d,s,NH(i,l,c,s.varsArg,e,u?r:void 0)),d.toString()}function Hm(e,t){let a=e.map(r=>{let n=Object.entries(r.properties).map(([o,i])=>`${Aa(o)}: ${bt(i)}`);return r.ease&&n.push(`ease: ${JSON.stringify(r.ease)}`),r.auto&&n.push("_auto: 1"),`${JSON.stringify(`${r.percentage}%`)}: { ${n.join(", ")} }`});return t&&a.push(`easeEach: ${JSON.stringify(t)}`),`{ ${a.join(", ")} }`}function PE(e,t,a,r,n){if(a.length===0)return e;let o=ht(e);if(!o)return e;let i=o.located.find(p=>p.id===t);if(!i)return e;let{call:s}=i,u=[...a].sort((p,g)=>p.percentage-g.percentage),l=Hm(u,r),c=new ot(e);if(n){let p=s.node.arguments[0];p&&c.overwrite(p.start,p.end,JSON.stringify(n))}let d=ta(s.varsArg,"keyframes");if(d)c.overwrite(d.value.start,d.value.end,l);else if(s.varsArg?.type==="ObjectExpression"){let p=s.varsArg;p.properties.length>0?c.prependLeft(p.properties[0].start,`keyframes: ${l}, `):c.appendLeft(p.end-1,`keyframes: ${l}`)}let f=ta(s.varsArg,"easeEach");if(f){let p=(s.varsArg.properties??[]).filter(g=>wa(g));ru(c,f,p)}return c.toString()}function zm(e,t,a,r,n,o,i){let s=ht(e);if(!s)return{script:e,id:""};let u=Px(s);if(u===null)return{script:e,id:""};let l=[...n].sort((v,w)=>v.percentage-w.percentage),d=[`keyframes: ${Hm(l,i)}`,`duration: ${bt(r)}`];o&&d.push(`ease: ${JSON.stringify(o)}`);let f=`${s.timelineVar}.to(${JSON.stringify(t)}, { ${d.join(", ")} }, ${bt(a)});`,p=new ot(e);p.appendLeft(u,`
619
+ `+f);let g=p.toString(),m=ht(g),x=m?.located[m.located.length-1]?.id??"";return{script:g,id:x}}function MH(e){let t=new Set;if(e.keyframes)for(let a of e.keyframes.keyframes)for(let r of Object.keys(a.properties))t.add(r);else for(let a of Object.keys(e.properties))t.add(a);return t}function DH(e){let t=new Map;for(let a of e){if(a==="transformOrigin")continue;let r=sE(a),n=t.get(r);n||(n=[],t.set(r,n)),n.push(a)}return t}function OH(e){let t,a=0;for(let[n,o]of e)o.length>a&&(a=o.length,t=n);let r=t?e.get(t):void 0;r&&r.push("transformOrigin")}function _H(e,t){let a=[];for(let r of e){let n={};for(let[o,i]of Object.entries(r.properties))t.has(o)&&(n[o]=i);Object.keys(n).length>0&&a.push({percentage:r.percentage,properties:n,...r.ease?{ease:r.ease}:{}})}return a}function aE(e,t){let a={};for(let[r,n]of Object.entries(e))t.has(r)&&(a[r]=n);return a}function BH(e,t,a){if(t.keyframes){let o=_H(t.keyframes.keyframes,a);if(o.length===0)return{script:e,id:""};let i=typeof t.position=="number"?t.position:0;return zm(e,t.targetSelector,i,t.duration??.5,o,t.keyframes.easeEach??t.ease)}let r=aE(t.properties,a);if(Object.keys(r).length===0)return{script:e,id:""};let n=t.method==="fromTo"&&t.fromProperties?aE(t.fromProperties,a):void 0;return Fm(e,{targetSelector:t.targetSelector,method:t.method,position:t.position,duration:t.duration,ease:t.ease,properties:r,fromProperties:n,extras:t.extras})}function NE(e,t){let a=ht(e);if(!a)return{script:e,ids:[t]};let r=a.located.find(c=>c.id===t);if(!r)return{script:e,ids:[t]};let{animation:n}=r,o=MH(n),i=DH(o);if(i.size<=1)return{script:e,ids:[t]};o.has("transformOrigin")&&OH(i);let s=nu(e,t);for(let[,c]of i){let{script:d,id:f}=BH(s,n,new Set(c));f&&(s=d)}let l=(ht(s)?.located??[]).filter(c=>c.animation.targetSelector===n.targetSelector).map(c=>c.id);return{script:s,ids:l}}function FH(e,t,a,r){return e?.type==="CallExpression"&&e.callee?.type==="MemberExpression"&&vE(e.callee.object,t,r)&&e.callee.property?.name===a}function HH(e,t,a,r){let n=e?.arguments?.[0];return FH(e,t,"addLabel",r)&&n?.type==="Literal"&&n.value===a}function ME(e,t,a){let r=[];return mr(e.ast,{ExpressionStatement(n){HH(n.expression,e.timelineVar,t,a)&&r.push(n)}}),r}function DE(e,t,a){let r=ht(e);if(!r)return e;let n=ME(r,t,e)[0];if(n){let u=new ot(e),l=n.expression.arguments?.[1];return l?u.overwrite(l.start,l.end,bt(a)):u.appendLeft(n.expression.end-1,`, ${bt(a)}`),u.toString()}let o=Px(r);if(o===null)return e;let i=new ot(e),s=`${r.timelineVar}.addLabel(${JSON.stringify(t)}, ${bt(a)});`;return i.appendLeft(o,`
620
+ `+s),i.toString()}function OE(e,t){let a=ht(e);if(!a)return e;let r=ME(a,t,e);if(!r.length)return e;let n=new ot(e);for(let o of r){let i=o.end<e.length&&e[o.end]===`
621
+ `?o.end+1:o.end;n.remove(o.start,i)}return n.toString()}function _E(e,t,a){if(t?.type!=="ObjectExpression")return;let r=(t.properties??[]).filter(wa),n=r.map(i=>a.has(Ja(i)??"")),o=0;for(;o<r.length;){if(!n[o]){o++;continue}let i=o;for(;o<r.length&&n[o];)o++;e.remove(...zH(r,i,o))}}function zH(e,t,a){return t===0&&a===e.length?[e[0].start,e[e.length-1].end]:t===0?[e[0].start,e[a].start]:[e[t-1].end,e[a-1].end]}function VH(e){if(e?.type!=="ObjectExpression")return{x:null,y:null};let t=ta(e,"path");if(t?.value?.type!=="ArrayExpression")return{x:null,y:null};let a=t.value.elements??[],r=a[a.length-1];return r?.type!=="ObjectExpression"?{x:null,y:null}:{x:rE(ta(r,"x")?.value),y:rE(ta(r,"y")?.value)}}function rE(e){return IE.has(e?.type)&&typeof e.value=="number"?e.value:e?.type==="UnaryExpression"&&e.operator==="-"&&typeof e.argument?.value=="number"?-e.argument.value:null}function UH(e,t){let a=ta(t.varsArg,"motionPath");if(!a)return!1;let{x:r,y:n}=VH(a.value);if(r===null&&n===null){let i=(t.varsArg.properties??[]).filter(wa);return ru(e,a,i),!0}let o=[];return r!==null&&o.push(`x: ${r}`),n!==null&&o.push(`y: ${n}`),e.overwrite(a.start,a.end,o.join(", ")),!0}function GH(e,t){if(t?.value?.type!=="ObjectExpression")return;let a=new Set(["x","y"]);for(let r of(t.value.properties??[]).filter(wa)){let n=Ja(r);typeof n=="string"&&n.endsWith("%")&&r.value?.type==="ObjectExpression"&&_E(e,r.value,a)}}function WH(e,t,a,r){let n=uE(a);if(n.length<2)return!1;let o=r.segments.length===n.length-1?r.segments:Array.from({length:n.length-1},()=>({curviness:1})),i=lE({waypoints:n,segments:o,autoRotate:r.autoRotate}),s=t.varsArg;if(s?.type!=="ObjectExpression")return!1;let c=(s.properties??[]).filter(wa).some(d=>{let f=Ja(d);return f!=="x"&&f!=="y"})?", ":"";return e.appendRight(s.start+1,` motionPath: ${i}${c}`),GH(e,ta(t.varsArg,"keyframes")),_E(e,t.varsArg,new Set(["x","y"])),!0}function _x(e,t,a){let r=ht(e);if(!r)return e;let n=r.located.find(s=>s.id===t);if(!n)return e;let o=new ot(e);return(a.enabled?WH(o,n.call,n.animation,a):UH(o,n.call))?o.toString():e}function BE(e,t,a,r){let n=ht(e);if(!n)return e;let o=n.located.find(g=>g.id===t);if(!o)return e;let{call:i,animation:s}=o;if(!s.arcPath?.enabled)return e;let u=[...s.arcPath.segments],l=u[a];if(a<0||a>=u.length||!l)return e;u[a]={...l,...r};let c=uE(s);if(c.length<2)return e;let d=lE({waypoints:c,segments:u,autoRotate:s.arcPath.autoRotate}),f=ta(i.varsArg,"motionPath");if(!f)return e;let p=new ot(e);return p.overwrite(f.value.start,f.value.end,d),p.toString()}function FE(e,t){return _x(e,t,{enabled:!1,autoRotate:!1,segments:[]})}function nE(e,t,a){let r=ht(e);if(!r)return e;let n=r.located.find(s=>s.id===t);if(!n)return e;let o=n.call.node.arguments?.[0];if(!o)return e;let i=new ot(e);return i.overwrite(o.start,o.end,JSON.stringify(a)),i.toString()}function jH(e,t,a,r){let n=ht(e);if(!n)return e;let o=Object.entries(r).map(([c,d])=>`${Aa(c)}: ${bt(d)}`).join(", "),i=`${n.timelineVar}.set(${JSON.stringify(t)}, { ${o} }, ${a});`,s=new ot(e),u=Rx(n.ast,n.timelineVar),l=n.located[0];if(u)s.appendLeft(u.end,`
622
+ `+i);else if(l){let c=l.call,f=au(c.ancestors)?.start??c.node.start;s.prependLeft(f,i+`
623
+ `)}else s.append(`
624
+ `+i);return s.toString()}function qH(e,t){let a=[],r={};for(let n of e){a.push({...r});let o=typeof n.position=="number"?n.position:0,i=n.duration??0,s=o+i;if(n.keyframes){let c=n.keyframes.keyframes;if(!(o>=t))if(s>t){for(let d of c)if(o+d.percentage/100*i<=t)for(let[p,g]of Object.entries(d.properties))r[p]=g}else{let d=c[c.length-1];if(d)for(let[f,p]of Object.entries(d.properties))r[f]=p}continue}if(s<=t){for(let[c,d]of Object.entries(n.properties))r[c]=d;continue}if(o>=t)continue;let u=i>0?(t-o)/i:0,l=n.fromProperties??r;for(let[c,d]of Object.entries(n.properties)){if(typeof d!="number"){r[c]=d;continue}let f=typeof l[c]=="number"?l[c]:0;r[c]=f+(d-f)*u}}return{before:a,final:{...r}}}function KH(e,t,a,r,n,o){let i=r>0?(o.splitTime-a)/r:0,s={};for(let[l,c]of Object.entries(t.properties)){if(typeof c!="number"){s[l]=c;continue}let d=typeof n[l]=="number"?n[l]:0;s[l]=d+(c-d)*i}let u=Bm(e,t.id,{duration:o.splitTime-a,properties:s});return Fm(u,{targetSelector:o.newSelector,method:"fromTo",position:o.newElementStart,duration:a+r-o.splitTime,properties:{...t.properties},fromProperties:{...s},ease:t.ease,extras:t.extras}).script}function QH(e,t,a,r,n){let o=typeof t.position=="number"?t.position:0,i=t.duration??0,s=o+i;if(t.keyframes)return o>=r.splitTime?nE(e,t.id,r.newSelector):(s>r.splitTime&&n.push(`${r.originalSelector} (keyframes spanning split)`),e);if(s<=r.splitTime)return e;if(o>=r.splitTime)return nE(e,t.id,r.newSelector);let u=t.fromProperties??a;return KH(e,t,o,i,u,r)}function HE(e,t){let a=ht(e);if(!a)return{script:e,skippedSelectors:[]};let r=`#${t.originalId}`,n=`#${t.newId}`,o=a.located.map(p=>p.animation),i=[];for(let p of o)p.targetSelector!==r&&p.targetSelector.includes(t.originalId)&&i.push(p.targetSelector);let s=o.filter(p=>p.targetSelector===r);if(s.length===0)return{script:e,skippedSelectors:i};let u=e,l=t.splitTime,{before:c,final:d}=qH(s,t.splitTime),f={splitTime:t.splitTime,originalSelector:r,newSelector:n,newElementStart:l};for(let p=s.length-1;p>=0;p--){let g=s[p];g&&(u=QH(u,g,c[p]??{},f,i))}return Object.keys(d).length>0&&(u=jH(u,n,l,d)),{script:u,skippedSelectors:i}}function YH(e){let t=e?.type;return t==="ForStatement"||t==="ForInStatement"||t==="ForOfStatement"||t==="WhileStatement"}function JH(e){return e?.type==="ExpressionStatement"&&e.expression?.type==="CallExpression"&&e.expression.callee?.property?.name==="forEach"}function $H(e){for(let t=e.length-2;t>=0;t--){let a=e[t];if(YH(a)||JH(a))return a}return null}function ZH(e){let t;return e?.type==="ExpressionStatement"?t=e.expression?.arguments?.[0]?.body:t=e?.body,t?.type!=="BlockStatement"?null:(t.body??[]).filter(a=>a?.type==="ExpressionStatement")}function XH(e){if(e?.type==="ForStatement"){let t=e.init?.declarations?.[0];return typeof t?.id?.name=="string"?t.id.name:null}return null}function ez(e,t){return t?.type==="MemberExpression"?t.property===e&&!t.computed:t?.type==="Property"||t?.type==="ObjectProperty"?t.key===e&&!t.computed:!1}function tz(e,t,a,r){let n=e.start,o=r.slice(n,e.end),i=[];if(Xt(e,{Identifier(u,l,c){u.name===t&&(ez(u,c[c.length-2])||i.push([u.start-n,u.end-n]))}}),i.length===0)return o;i.sort((u,l)=>l[0]-u[0]);let s=o;for(let[u,l]of i)s=s.slice(0,u)+String(a)+s.slice(l);return s}function oE(e,t,a){let r=typeof t.duration=="number"?t.duration:8,n=typeof t.ease=="string"?t.ease:"none",o=t.position??0,i=typeof o=="number"?String(o):JSON.stringify(o);return a.map(u=>{let l=[...u.keyframes].sort((d,f)=>d.percentage-f.percentage),c=Hm(l,u.easeEach);return`${e}.to(${JSON.stringify(u.selector)}, { keyframes: ${c}, duration: ${r}, ease: ${JSON.stringify(n)} }, ${i});`}).join(`
625
+ `)}function az(e,t,a){let r=typeof t.duration=="number"?t.duration:8,n=typeof t.ease=="string"?t.ease:"none",o=t.position??0,i=typeof o=="number"?String(o):JSON.stringify(o),s=[...a.keyframes].sort((l,c)=>l.percentage-c.percentage),u=Hm(s,a.easeEach);return`${e}.to(${JSON.stringify(a.selector)}, { keyframes: ${u}, duration: ${r}, ease: ${JSON.stringify(n)} }, ${i});`}var zE=Symbol("refuse-unroll");function rz(e){let t=e?.type==="ExpressionStatement"?e.expression?.arguments?.[0]?.body:e?.body;return t?.type==="BlockStatement"?t.body??[]:[]}function nz(e,t){return e.type==="VariableDeclarator"?e.id?.name===t:e.type==="FunctionExpression"||e.type==="FunctionDeclaration"||e.type==="ArrowFunctionExpression"?(e.params??[]).some(a=>a?.name===t):!1}function oz(e,t){return(e.type==="Property"||e.type==="ObjectProperty")&&e.shorthand===!0&&Ja(e)===t}function iz(e,t){let a=!1;return NL(e,r=>{!a&&(oz(r,t)||nz(r,t))&&(a=!0)}),a}function sz(e,t,a,r){let n=a.filter(i=>i!==t),o=rz(e).some(i=>i!==t&&!a.includes(i));return n.length===0&&!o?"blanket":o||!r||n.some(i=>iz(i,r))?"refuse":"preserve"}function uz(e,t,a,r,n,o,i){let s=[];for(let u=0;u<a.length;u++){let l=a[u];if(l)for(let c of e)s.push(c===t?az(r,n,l):tz(c,o,u,i))}return s.join(`
626
+ `)}function lz(e,t,a,r,n,o){let i=ZH(n);if(!i||!i.includes(o))return null;let s=XH(n),u=sz(n,o,i,s);return u==="blanket"?null:u==="refuse"||!s?zE:uz(i,o,r,t,a,s,e)}function VE(e,t,a){if(a.length===0)return e;let r=ht(e);if(!r)return e;let n=r.located.find(s=>s.id===t);if(!n)return e;let o=new ot(e),i=$H(n.call.ancestors);if(i){let s=au(n.call.ancestors),u=s?lz(e,r.timelineVar,n.animation,a,i,s):null;if(u===zE)return e;let l=u??oE(r.timelineVar,n.animation,a);o.overwrite(i.start,i.end,l)}else{let s=au(n.call.ancestors);if(!s)return e;let u=oE(r.timelineVar,n.animation,a);o.overwrite(s.start,s.end,u)}return o.toString()}var cz={opacity:1,x:0,y:0,scale:1,scaleX:1,scaleY:1,rotation:0,width:100,height:100};function Bx(e){let t={};for(let a of Object.keys(e)){let r=cz[a];r!==void 0&&(t[a]=r)}return t}var dz={landscape:{width:1920,height:1080},portrait:{width:1080,height:1920},"landscape-4k":{width:3840,height:2160},"portrait-4k":{width:2160,height:3840},square:{width:1080,height:1080},"square-4k":{width:2160,height:2160}},ose=Object.keys(dz);var fz={inter:"inter",montserrat:"montserrat",outfit:"outfit",nunito:"nunito",oswald:"oswald","league gothic":"league-gothic","archivo black":"archivo-black","space mono":"space-mono","ibm plex mono":"ibm-plex-mono","jetbrains mono":"jetbrains-mono","eb garamond":"eb-garamond","playfair display":"playfair-display","source code pro":"source-code-pro","noto sans jp":"noto-sans-jp",roboto:"roboto","open sans":"open-sans",lato:"lato",poppins:"poppins","helvetica neue":"inter",helvetica:"inter",arial:"inter","helvetica bold":"inter",futura:"montserrat","din alternate":"montserrat","arial black":"montserrat","bebas neue":"league-gothic","courier new":"jetbrains-mono",courier:"jetbrains-mono",garamond:"eb-garamond","noto sans japanese":"noto-sans-jp","segoe ui":"roboto","sf pro":"inter","sf pro display":"inter","sf pro text":"inter","sf pro rounded":"inter",avenir:"inter","avenir next":"inter","lucida grande":"inter",geneva:"inter",optima:"inter",verdana:"inter",tahoma:"inter","trebuchet ms":"inter",calibri:"inter",candara:"inter",corbel:"inter","lucida sans":"inter","lucida sans unicode":"inter","noto sans":"inter","dejavu sans":"inter","liberation sans":"inter","sf mono":"jetbrains-mono",menlo:"jetbrains-mono",monaco:"jetbrains-mono",consolas:"jetbrains-mono","lucida console":"jetbrains-mono","lucida sans typewriter":"jetbrains-mono","andale mono":"jetbrains-mono","dejavu sans mono":"jetbrains-mono","liberation mono":"jetbrains-mono",georgia:"eb-garamond",palatino:"eb-garamond","palatino linotype":"eb-garamond","book antiqua":"eb-garamond",cambria:"eb-garamond",times:"eb-garamond","times new roman":"eb-garamond","dejavu serif":"eb-garamond","liberation serif":"eb-garamond"},ise=new Set(Object.keys(fz));var GE={string:"string",number:"number",color:"string",boolean:"boolean",enum:"string",font:"string",image:"string"};function Vm(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function pz(e){return typeof e=="object"&&e!==null}function mz(e){return typeof e=="string"&&e in GE}function su(e){return!(!pz(e)||typeof e.id!="string"||typeof e.label!="string"||!mz(e.type)||typeof e.default!==GE[e.type]||e.type==="enum"&&!Array.isArray(e.options))}function Fx(e){let t=e.getAttribute("data-composition-variables");if(!t)return[];try{let a=JSON.parse(t);return Array.isArray(a)?a.filter(su):[]}catch{return[]}}function hz(e){return e?.type==="Identifier"?e.name==="getVariables":e?.type==="MemberExpression"&&!e.computed?e.property?.type==="Identifier"&&e.property.name==="getVariables":!1}function gz(e,t){for(let a of e.properties??[]){if(a?.type==="RestElement"){t.incomplete();continue}a?.type==="Property"&&(a.computed===!0?t.incomplete():a.key?.type==="Identifier"?t.use(String(a.key.name)):a.key?.type==="Literal"&&typeof a.key.value=="string"?t.use(a.key.value):t.incomplete())}}function bz(e,t){e.computed!==!0&&e.property?.type==="Identifier"?t.use(String(e.property.name)):e.computed===!0&&e.property?.type==="Literal"&&typeof e.property.value=="string"?t.use(e.property.value):t.incomplete()}function UE(e,t,a){return!e||e.type==="ExpressionStatement"?null:e.type==="MemberExpression"&&e.object===t?(bz(e,a),null):e.type==="VariableDeclarator"&&e.init===t?e.id?.type==="ObjectPattern"?(gz(e.id,a),null):e.id?.type==="Identifier"?String(e.id.name):(a.incomplete(),null):(a.incomplete(),null)}function Hx(e){let t=[],a=new Set,r=!1,n={use(s){a.has(s)||(a.add(s),t.push(s))},incomplete(){r=!0}},o;try{o=Mi(e,{ecmaVersion:"latest",sourceType:"script"})}catch{return{usedIds:[],scanIncomplete:!0}}let i=new Set;return Xt(o,{CallExpression(s,u,l){if(!hz(s.callee))return;let c=l[l.length-2],d=UE(c,s,n);d&&i.add(d)}}),i.size>0&&Xt(o,{Identifier(s,u,l){if(!i.has(String(s.name)))return;let c=l[l.length-2];c&&(c.type==="VariableDeclarator"&&c.id===s||c.type==="MemberExpression"&&c.property===s||c.type==="Property"&&c.key===s&&c.computed!==!0||UE(c,s,n)&&n.incomplete())}}),{usedIds:t,scanIncomplete:r}}var iu=Object.freeze({start:"data-start",duration:"data-duration",trackIndex:"data-track-index",derivedEnd:"data-end",legacyTrack:"data-layer"}),sse=Object.freeze([iu.start,iu.duration,iu.trackIndex]),use=Object.freeze([iu.derivedEnd]),lse=Object.freeze([iu.derivedEnd,iu.legacyTrack]);function Um(e){if(!e)return{};let t=e.getAttribute("data-composition-variables");if(!t)return{};let a;try{a=JSON.parse(t)}catch{return{}}if(!Array.isArray(a))return{};let r={};for(let n of a){if(!n||typeof n!="object")continue;let o=n;typeof o.id!="string"||!("default"in o)||(r[o.id]=o.default)}return r}function zx(e,t){let a=new Map;for(let n of t)a.set(n.id,n);let r=[];for(let[n,o]of Object.entries(e)){let i=a.get(n);if(!i){r.push({kind:"undeclared",variableId:n});continue}let s=xz(o,i);s&&r.push(s)}return r}function WE(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function xz(e,t){switch(t.type){case"string":case"color":return typeof e!="string"?{kind:"type-mismatch",variableId:t.id,expected:t.type,actual:uu(e)}:null;case"number":return typeof e!="number"||!Number.isFinite(e)?{kind:"type-mismatch",variableId:t.id,expected:"number",actual:uu(e)}:null;case"boolean":return typeof e!="boolean"?{kind:"type-mismatch",variableId:t.id,expected:"boolean",actual:uu(e)}:null;case"enum":{if(typeof e!="string")return{kind:"type-mismatch",variableId:t.id,expected:"enum (string)",actual:uu(e)};let a=t.options.map(r=>r.value);return a.includes(e)?null:{kind:"enum-out-of-range",variableId:t.id,allowed:a,actual:e}}case"font":return typeof e=="string"?null:WE(e)?typeof e.name!="string"||typeof e.source!="string"?{kind:"type-mismatch",variableId:t.id,expected:"font object {name: string, source: string}",actual:"object missing string name/source"}:null:{kind:"type-mismatch",variableId:t.id,expected:"font (object {name, source} or string)",actual:uu(e)};case"image":return typeof e=="string"?null:WE(e)?typeof e.url!="string"?{kind:"type-mismatch",variableId:t.id,expected:"image object {url: string}",actual:"object missing string url"}:null:{kind:"type-mismatch",variableId:t.id,expected:"image (object {url} or string)",actual:uu(e)}}}function uu(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function lu(e){if(!e)return null;let t=e.getAttribute("data-composition-variables");if(!t)return null;let a;try{a=JSON.parse(t)}catch{return null}return Array.isArray(a)?{declEl:e,arr:a}:null}function cu(e,t){return e.findIndex(a=>typeof a=="object"&&a!==null&&a.id===t)}function jE(e){return e?Fx(e):[]}function _i(e,t){let a=lu(e);if(!a)return;let r=cu(a.arr,t);return r<0?void 0:a.arr[r]}function xc(e,t){if(!e)return!1;let r=lu(e)?.arr??[],n=cu(r,t.id),o={...t};return n<0?r.push(o):r[n]=o,e.setAttribute("data-composition-variables",JSON.stringify(r)),!0}function Gm(e,t){let a=lu(e);if(!a)return!1;let r=cu(a.arr,t);return r<0?!1:(a.arr.splice(r,1),a.arr.length===0?a.declEl.removeAttribute("data-composition-variables"):a.declEl.setAttribute("data-composition-variables",JSON.stringify(a.arr)),!0)}function qE(e,t){let a=lu(e);if(!a)return;let r=cu(a.arr,t);return r<0?void 0:a.arr[r]?.default}function Wm(e,t,a){let r=lu(e);if(!r)return!1;let n=cu(r.arr,t);return n<0?!1:(r.arr[n]={...r.arr[n],default:a},r.declEl.setAttribute("data-composition-variables",JSON.stringify(r.arr)),!0)}function KE(e,t){let a=lu(e);if(!a)return!1;let r=cu(a.arr,t);if(r<0||!(a.arr[r]&&"default"in a.arr[r]))return!1;let{default:n,...o}=a.arr[r];return a.arr[r]=o,a.declEl.setAttribute("data-composition-variables",JSON.stringify(a.arr)),!0}var QE=new Set(["src","href","action","formaction","poster","srcset","xlink:href"]),YE=/^(?:javascript|vbscript):/i,JE=/^data\s*:\s*text\/html/i;var ye={forward:[],inverse:[]},vz=new Set(["data-hf-id","data-composition-id","data-width","data-height","data-start","data-end","data-track-index","data-hold-start","data-hold-end","data-hold-fill"]);function yz(e,t){let a=e.toLowerCase();if(vz.has(a))throw new Error(`setAttribute: "${e}" is a reserved composition attribute and cannot be reassigned. Use the appropriate typed method (setTiming, setHold, etc.) instead.`);if(a.startsWith("on"))throw new Error(`setAttribute: event-handler attributes ("${e}") are not permitted \u2014 they produce executable HTML that cannot be safely serialized.`);if(t!==null&&QE.has(a)){let r=t.trim();if(YE.test(r)||JE.test(r))throw new Error(`setAttribute: unsafe URI value for "${e}".`)}}var Vx=class extends Error{constructor(a){super(`Op '${a}' requires the Phase 3b parser-backed engine and is not available yet. Use can(op) to feature-detect before dispatching.`);te(this,"code","E_UNSUPPORTED_OP");this.name="UnsupportedOpError"}};function Lo(e){return Array.isArray(e)?e:[e]}function Az(e,t){return lV(e,t.animationId,t.percentage)}function wz(e,t){switch(t.type){case"setGsapKeyframe":return sV(e,t.animationId,t.keyframeIndex,t.position,t.value,t.ease);case"addGsapKeyframe":return uV(e,t.animationId,t.position,t.value);case"removeGsapKeyframe":return Az(e,t);case"removeAllKeyframes":return eV(e,t.animationId);case"convertToKeyframes":return tV(e,t.animationId,t.resolvedFromValues);case"materializeKeyframes":return aV(e,t.animationId,t.keyframes,t.easeEach,t.resolvedSelector);case"splitIntoPropertyGroups":return rV(e,t.animationId);case"splitAnimations":return nV(e,t);default:return}}function Sz(e,t){let a=lt(e.document)??"";switch(t.type){case"setArcPath":{let r={...t.config,segments:t.config.segments.map(n=>({...n,curviness:n.curviness??1}))};return jm(e,a,_x(a,t.animationId,r))}case"updateArcSegment":return jm(e,a,BE(a,t.animationId,t.segmentIndex,t.update));case"removeArcPath":return jm(e,a,FE(a,t.animationId));case"unrollDynamicAnimations":return jm(e,a,VE(a,t.animationId,t.elements));default:return}}function Cz(e,t){switch(t.type){case"addWithKeyframes":return qz(e,t);case"replaceWithKeyframes":return Kz(e,t);default:return}}function Iz(e,t){let a=wz(e,t);if(a!==void 0)return a;let r=Sz(e,t);if(r!==void 0)return r;let n=Cz(e,t);if(n!==void 0)return n;switch(t.type){case"addGsapTween":return Jz(e,t.target,t.tween);case"setGsapTween":return $z(e,t.animationId,t.properties);case"removeGsapProperty":return Zz(e,t.animationId,t.property,t.from);case"removeGsapTween":return Xz(e,t.animationId);case"deleteAllForSelector":return oV(e,t.selector);default:return}}function XE(e,t){let a=Iz(e,t);if(a!==void 0)return a;switch(t.type){case"setStyle":return eT(e,Lo(t.target),t.styles);case"setText":return Lz(e,Lo(t.target),t.value);case"setAttribute":return yc(e,Lo(t.target),t.name,t.value);case"setTiming":return Ez(e,Lo(t.target),{start:t.start,duration:t.duration,trackIndex:t.trackIndex});case"setHold":return Tz(e,Lo(t.target),t.hold);case"moveElement":return kz(e,Lo(t.target),t.x,t.y);case"removeElement":return Rz(e,Lo(t.target));case"addElement":return Dz(e,t.parent,t.index,t.html);case"reorderElements":return Oz(e,t.entries);case"setCompositionMetadata":return _z(e,t);case"setVariableValue":return Fz(e,t.id,t.value);case"declareVariable":return Uz(e,t.declaration);case"updateVariableDeclaration":return Gz(e,t.id,t.declaration);case"removeVariableDeclaration":return ZE(e,t.id);case"removeVariable":return ZE(e,t.id);case"setClassStyle":return Qz(e,t.selector,t.styles);case"addLabel":return cV(e,t.name,t.position);case"removeLabel":return dV(e,t.name);default:throw new Vx(t.type)}}function eT(e,t,a){let r={forward:[],inverse:[]};for(let n of t){let o=Wt(e.document,n);if(!o)continue;let i=bo(o);Qa(o,a);for(let[s,u]of Object.entries(a)){let l=Xp(s),c=xo(n,l),d=i[l]??null;if(u!==null){let f=ln(c,d,u);r.forward.push(f.forward),r.inverse.push(f.inverse)}else if(d!==null){let f=uc(c,d);r.forward.push(f.forward),r.inverse.push(f.inverse)}}}return r}function kz(e,t,a,r){let n=[];for(let o of t){let i=Wt(e.document,o);i&&(i.getAttribute(Xb)===null&&n.push(yc(e,[o],Xb,i.getAttribute("data-x")??"0")),i.getAttribute(ex)===null&&n.push(yc(e,[o],ex,i.getAttribute("data-y")??"0")))}return n.push(yc(e,t,"data-x",String(a))),n.push(yc(e,t,"data-y",String(r))),{forward:n.flatMap(o=>o.forward),inverse:n.slice().reverse().flatMap(o=>o.inverse)}}function Lz(e,t,a){let r={forward:[],inverse:[]};for(let n of t){let o=Wt(e.document,n);if(!o)continue;let i=em(o);rc(o,a);let s=Kb(n),u=ln(s,i,a);r.forward.push(u.forward),r.inverse.push(u.inverse)}return r}function yc(e,t,a,r){yz(a,r);let n={forward:[],inverse:[]};for(let o of t){let i=Wt(e.document,o);if(!i)continue;let s=i.getAttribute(a),u=Qb(o,a);if(r!==null){i.setAttribute(a,r);let l=ln(u,s,r);n.forward.push(l.forward),n.inverse.push(l.inverse)}else if(s!==null){i.removeAttribute(a);let l=uc(u,s);n.forward.push(l.forward),n.inverse.push(l.inverse)}}return n}function Ez(e,t,a){let r={forward:[],inverse:[]},n=lt(e.document),o=n?fn(n):null,i=n;for(let s of t){let u=Wt(e.document,s);if(!u)continue;let l={start:u.getAttribute("data-start"),duration:u.getAttribute("data-duration"),end:u.getAttribute("data-end"),trackIndex:u.getAttribute("data-track-index"),layer:u.getAttribute("data-layer")},c=Ti(u),d=c.start,f=c.duration,p=a.start??d,g=a.duration??f;Gk(u,a);let m={start:u.getAttribute("data-start"),duration:u.getAttribute("data-duration"),end:u.getAttribute("data-end"),trackIndex:u.getAttribute("data-track-index"),layer:u.getAttribute("data-layer")},x=(y,S,A,L)=>{if(S===A)return;let C=N=>{if(!L)return N;let V=Number(N);return Number.isFinite(V)?V:N};if(A===null){if(S===null)return;let N=uc(y,C(S));r.forward.push(N.forward),r.inverse.push(N.inverse);return}let I=S===null?null:C(S),D=C(A),Z=ln(y,I,D);r.forward.push(Z.forward),r.inverse.push(Z.inverse)};x(Qs(s,"start"),l.start,m.start,!0),x(Qs(s,"duration"),l.duration,m.duration,!0),x(Qs(s,"end"),l.end,m.end,!0),x(Qs(s,"trackIndex"),l.trackIndex,m.trackIndex,!0),x(Qb(s,"data-layer"),l.layer,m.layer,!1);let v=u.getAttribute("data-hf-id")??s,w=u.getAttribute("id");if(o&&i){let y=d!==null&&Number.isFinite(d)?d:0,S=a.start!==void 0&&p!==null,A=a.duration!==void 0&&g!==null,L=A&&f!==null&&f>0&&g!==null?g/f:1,C=S&&p!==null?p:y;for(let{id:I,animation:D}of o.located){if(!(Ux(D.targetSelector,v)||w!==null&&Ux(D.targetSelector,w))||typeof D.position!="number")continue;let N={};if((S||A)&&D.implicitPosition!==!0){let V=C+(D.position-y)*L;N.position=Math.max(0,Math.round(V*1e3)/1e3)}A&&typeof D.duration=="number"&&D.duration>0&&(N.duration=Math.max(.001,Math.round(D.duration*L*1e3)/1e3)),Object.keys(N).length!==0&&(i=Bm(i,I,N))}}}if(n&&i&&i!==n){pt(e.document,i);let s=Rt(n,i);r.forward.push(...s.forward),r.inverse.push(...s.inverse)}return r}function Tz(e,t,a){let r={forward:[],inverse:[]};for(let n of t){let o=Wt(e.document,n);if(!o)continue;let i=[["start",String(a.start)],["end",String(a.end)],["fill",a.fill]];for(let[s,u]of i){let l=`data-hold-${s}`,c=o.getAttribute(l),d=Yb(n,s);o.setAttribute(l,u);let f=ln(d,c,u);r.forward.push(f.forward),r.inverse.push(f.inverse)}}return r}function Rz(e,t){let a={forward:[],inverse:[]},r=lt(e.document),n=r;for(let o of t){let i=Wt(e.document,o);if(!i)continue;let u=i.parentElement?.getAttribute("data-hf-id")??null,l=Nk(i),c=i.outerHTML,d=Wz(i);i.remove();let f=am(o);if(a.forward.push(yo(f)),a.inverse.push(vo(f,{html:c,parentId:u,siblingIndex:l})),n)for(let p of d)n=jz(n,p)}if(r&&n&&n!==r){pt(e.document,n);let o=Rt(r,n);a.forward.push(...o.forward),a.inverse.push(...o.inverse)}return a}function Pz(e){let t=new Set;for(let a of Array.from(e.querySelectorAll("[data-hf-id]"))){let r=a.getAttribute("data-hf-id");r&&t.add(r)}return t}function Nz(e,t){!e.getAttribute("data-hf-id")&&!$p.has(e.tagName.toLowerCase())&&e.setAttribute("data-hf-id",Zp(e,t));for(let a of Array.from(e.querySelectorAll("*")))$p.has(a.tagName.toLowerCase())||a.getAttribute("data-hf-id")||a.setAttribute("data-hf-id",Zp(a,t));return e.getAttribute("data-hf-id")??""}function Mz(e,t){let a=e.createElement("div");if(a.innerHTML=t,a.querySelector("script"))return null;let r=a.firstElementChild;return!r||r.nextElementSibling?null:r}function Dz(e,t,a,r){let n=t===null?e.document.body??null:Wt(e.document,t);if(!n)return ye;let o=Mz(e.document,r);if(!o)return ye;let i=Pz(e.document),s=Nz(o,i),u=o.outerHTML,l=Array.from(n.children)[a]??null;n.insertBefore(o,l);let c=t,d=am(s);return{forward:[vo(d,{html:u,parentId:c,siblingIndex:a})],inverse:[yo(d)],meta:{newId:s}}}function Oz(e,t){let a={forward:[],inverse:[]},r=new Map;for(let{target:n,zIndex:o}of t)r.set(n,o);for(let[n,o]of r){let i=eT(e,[n],{zIndex:String(o)});a.forward.push(...i.forward),a.inverse.push(...i.inverse)}return a}function _z(e,t){let a={forward:[],inverse:[]},r=un(e.document);if(!r)return a;if(t.width!==void 0){let n=bo(r),o=r.getAttribute("data-width"),i=o??n.width??null,s=`${t.width}px`;Qa(r,{width:s}),o!==null&&r.setAttribute("data-width",String(t.width));let u=sc("width"),l=ln(u,i!==null?parseFloat(i):null,t.width);a.forward.push(l.forward),a.inverse.push(l.inverse)}if(t.height!==void 0){let n=bo(r),o=r.getAttribute("data-height"),i=o??n.height??null,s=`${t.height}px`;Qa(r,{height:s}),o!==null&&r.setAttribute("data-height",String(t.height));let u=sc("height"),l=ln(u,i!==null?parseFloat(i):null,t.height);a.forward.push(l.forward),a.inverse.push(l.inverse)}if(t.duration!==void 0){let n=r.getAttribute("data-duration"),o=n!==null?parseFloat(n):null;r.setAttribute("data-duration",String(t.duration));let i=sc("duration"),s=ln(i,o,t.duration);a.forward.push(s.forward),a.inverse.push(s.inverse)}return a}function Bz(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Fz(e,t,a){if(!un(e.document))return ye;let n=Zt(e.document,e.wrapped),o=rm(t),i=qE(n,t);Wm(n,t,a);let s=om(o,i??null,a),u=[s.forward],l=[s.inverse],c=qm(e,t,Bz(a)?null:String(a));return c&&(u.push(c.forward),l.push(c.inverse)),{forward:u,inverse:l}}function qm(e,t,a){let r=un(e.document),n=r?.getAttribute("data-hf-id");if(!r||!n)return null;let o=`--${t}`,i=bo(r)[o]??null;return a!==null?i===a?null:(Qa(r,{[o]:a}),ln(xo(n,o),i,a)):i===null?null:(Qa(r,{[o]:null}),uc(xo(n,o),i))}function tT(e){return Zt(e.document,e.wrapped)?null:tt("E_FRAGMENT_COMPOSITION","Fragment compositions cannot carry variable declarations.","The composition has no root element to hold data-composition-variables \u2014 add a composition root or convert to a full HTML document.")}function Hz(){return tt("E_INVALID_ARGS","Not a valid variable declaration.","Requires id, label, type (string|number|color|boolean|enum|font|image), and a default matching the type; enum also requires options[].")}var zz=/^[A-Za-z_][A-Za-z0-9_-]*$/;function aT(e){return zz.test(e)}function Vz(e){return tt("E_INVALID_VARIABLE_ID",`Variable id ${JSON.stringify(e)} is not a valid identifier.`,"Ids must match /^[A-Za-z_][A-Za-z0-9_-]*$/ \u2014 they become CSS custom-property names (--id), data-var-* attribute values, and CLI --variables keys.")}function $E(e,t){let a=tT(e);return a||(su(t)?aT(t.id)?null:Vz(t.id):Hz())}function Uz(e,t){let a=Zt(e.document,e.wrapped);if(!a||!su(t)||!aT(t.id)||_i(a,t.id)!==void 0||!xc(a,t))return ye;let r=ic(t.id),n={forward:[vo(r,t)],inverse:[yo(r)]};if(Vm(t.default)){let o=qm(e,t.id,String(t.default));o&&(n.forward.push(o.forward),n.inverse.push(o.inverse))}return n}function Gz(e,t,a){let r=Zt(e.document,e.wrapped);if(!r||!su(a)||a.id!==t)return ye;let n=_i(r,t);if(n===void 0)return ye;xc(r,a);let o=om(ic(t),n,a),i={forward:[o.forward],inverse:[o.inverse]},s=n.default,u=a.default;if(JSON.stringify(s)!==JSON.stringify(u)){let l=om(rm(t),s??null,u);i.forward.push(l.forward),i.inverse.push(l.inverse);let c=qm(e,t,Vm(u)?String(u):null);c&&(i.forward.push(c.forward),i.inverse.push(c.inverse))}return i}function ZE(e,t){let a=Zt(e.document,e.wrapped);if(!a)return ye;let r=_i(a,t);if(r===void 0)return ye;Gm(a,t);let n=ic(t),o={forward:[yo(n)],inverse:[vo(n,r)]},i=qm(e,t,null);return i&&(o.forward.push(i.forward),o.inverse.push(i.inverse)),o}function Ux(e,t){return e===`[data-hf-id="${t}"]`||e===`[data-hf-id='${t}']`||e===`#${t}`}function Wz(e){let t=[],a=e.getAttribute("data-hf-id");a&&t.push(a);for(let r of Array.from(e.querySelectorAll("[data-hf-id]"))){let n=r.getAttribute("data-hf-id");n&&t.push(n)}return t}function jz(e,t){let a=e;for(;;){let r=fn(a);if(!r)return a;let n=r.located.find(i=>Ux(i.animation.targetSelector,t));if(!n)return a;let o=nu(a,n.id);if(o===a)return a;a=o}}function qz(e,t){let a=lt(e.document);if(!a)throw new Error("No GSAP script block found in the composition.");if(t.keyframes.length===0)return ye;let{script:r,id:n}=zm(a,t.targetSelector,t.position,t.duration,t.keyframes,t.ease);return n?(pt(e.document,r),{...Rt(a,r),meta:{animationId:n}}):ye}function Kz(e,t){let a=lt(e.document);if(!a)throw new Error("No GSAP script block found in the composition.");if(t.keyframes.length===0)return ye;let r=Gx(e,t.animationId);if(!r||r.animation.targetSelector!==t.targetSelector)return ye;let n=nu(a,t.animationId);if(n===a)return ye;let{script:o,id:i}=zm(n,t.targetSelector,t.position,t.duration,t.keyframes,t.ease);return i?(pt(e.document,o),{...Rt(a,o),meta:{animationId:i}}):ye}function Qz(e,t,a){let r=Ek(e.document),n=_k(r,t,a);if(n===r)return ye;nc(e.document,n);let o=$b();return{forward:[r===""?{op:"add",path:o,value:n}:{op:"replace",path:o,value:n}],inverse:[r===""?{op:"remove",path:o}:{op:"replace",path:o,value:r}]}}function Rt(e,t){let a=Jb();return{forward:[{op:"replace",path:a,value:t}],inverse:[{op:"replace",path:a,value:e}]}}function Yz(e,t){let a=Wt(e,t);if(!a)return`[data-hf-id="${Li(t)}"]`;let r=a.getAttribute("data-hf-id");if(r)return`[data-hf-id="${Li(r)}"]`;let n=a.getAttribute("data-composition-id");return n?`[data-composition-id="${Li(n)}"]`:`[data-hf-id="${Li(t)}"]`}function Jz(e,t,a){let r=lt(e.document);if(!r)throw new Error("No GSAP script block found in the composition.");let n={};a.repeat!==void 0&&(n.repeat=a.repeat),a.yoyo!==void 0&&(n.yoyo=a.yoyo),a.stagger!==void 0&&(n.stagger=a.stagger);let o=a.toProperties??a.properties??{},i=t.includes("/")?t.split("/").at(-1)??t:t,s={targetSelector:Yz(e.document,i),method:a.method,position:a.position??0,...a.duration!==void 0?{duration:a.duration}:{},...a.ease?{ease:a.ease}:{},properties:o,...a.fromProperties?{fromProperties:a.fromProperties}:{},...Object.keys(n).length>0?{extras:n}:{}},{script:u,id:l}=Fm(r,s);return l?(pt(e.document,u),{...Rt(r,u),meta:{animationId:l}}):ye}function $z(e,t,a){let r=lt(e.document);if(!r)throw new Error("No GSAP script block found in the composition.");let n={};a.duration!==void 0&&(n.duration=a.duration),a.ease!==void 0&&(n.ease=a.ease),a.position!==void 0&&(n.position=a.position);let o=a.toProperties??a.properties;o&&(n.properties=o),a.fromProperties&&(n.fromProperties=a.fromProperties);let i={};a.repeat!==void 0&&(i.repeat=a.repeat),a.yoyo!==void 0&&(i.yoyo=a.yoyo),a.stagger!==void 0&&(i.stagger=a.stagger),Object.keys(i).length>0&&(n.extras=i);let s=Bm(r,t,n);return s===r?ye:(pt(e.document,s),Rt(r,s))}function Zz(e,t,a,r){let n=lt(e.document);if(!n)return ye;let o=EE(n,t,a,r??!1);return o===n?ye:(pt(e.document,o),Rt(n,o))}function Xz(e,t){let a=lt(e.document);if(!a)throw new Error("No GSAP script block found in the composition.");let r=nu(a,t);return r===a?ye:(pt(e.document,r),Rt(a,r))}function eV(e,t){let a=lt(e.document);if(!a)return ye;let r=TE(a,t);return r===a?ye:(pt(e.document,r),Rt(a,r))}function tV(e,t,a){let r=lt(e.document);if(!r)return ye;let n=RE(r,t,a);return n===r?ye:(pt(e.document,n),Rt(r,n))}function aV(e,t,a,r,n){let o=lt(e.document);if(!o)return ye;let i=PE(o,t,a,r,n);return i===o?ye:(pt(e.document,i),Rt(o,i))}function rV(e,t){let a=lt(e.document);if(!a)return ye;let{script:r}=NE(a,t);return r===a?ye:(pt(e.document,r),Rt(a,r))}function nV(e,t){let a=lt(e.document);if(!a)return ye;let{script:r}=HE(a,{originalId:t.originalId,newId:t.newId,splitTime:t.splitTime,elementStart:t.elementStart,elementDuration:t.elementDuration});return r===a?ye:(pt(e.document,r),Rt(a,r))}function jm(e,t,a){return a===t?ye:(pt(e.document,a),Rt(t,a))}function oV(e,t){let a=lt(e.document);if(!a)return ye;let r=fn(a);if(!r)return ye;let n=t.replace(/'/g,'"'),o=r.located.filter(s=>s.animation.targetSelector.replace(/'/g,'"')===n);if(o.length===0)return ye;let i=a;for(let s of[...o].reverse())i=nu(i,s.id);return i===a?ye:(pt(e.document,i),Rt(a,i))}function iV(e,t,a){let r=lt(e.document);if(!r)return null;let i=fn(r)?.located.find(u=>u.id===t)?.animation.keyframes?.keyframes,s=i?.[a];return!i||!s||a<0?null:{script:r,kf:s,kfs:i}}function sV(e,t,a,r,n,o){let i=iV(e,t,a);if(!i)return ye;let{script:s,kf:u}=i,l=u.percentage,c=r??l,d=n||{...u.properties},f=o??u.ease,p=s;return c!==l?(p=Ox(p,t,l),p=Dx(p,t,c,d,f,Bx(d))):p=kE(p,t,l,d,f),p===s?ye:(pt(e.document,p),Rt(s,p))}function uV(e,t,a,r){let n=lt(e.document);if(!n)throw new Error("No GSAP script block found in the composition.");let o=r,i=Dx(n,t,a,o,void 0,Bx(o));return i===n?ye:(pt(e.document,i),Rt(n,i))}function lV(e,t,a){let r=lt(e.document);if(!r)return ye;let i=fn(r)?.located.find(f=>f.id===t)?.animation.keyframes?.keyframes;if(!i)return ye;let s=.001,u=i.filter(f=>Math.abs(f.percentage-a)<=s),l=u[0];if(u.length!==1||!l)return ye;let c=l.percentage,d=Ox(r,t,c);return d===r?ye:(pt(e.document,d),Rt(r,d))}function cV(e,t,a){let r=lt(e.document);if(!r)return ye;let n=DE(r,t,a);return n===r?ye:(pt(e.document,n),Rt(r,n))}function dV(e,t){let a=lt(e.document);if(!a)return ye;let r=OE(a,t);return r===a?ye:(pt(e.document,r),Rt(a,r))}var aa={ok:!0};function tt(e,t,a){return a?{ok:!1,code:e,message:t,hint:a}:{ok:!1,code:e,message:t}}function Bi(e){return lt(e.document)===null?tt("E_NO_GSAP_SCRIPT","No GSAP script block found in the composition.","This composition does not use GSAP animations."):null}function Gx(e,t){let a=lt(e.document);if(a)return fn(a)?.located.find(r=>r.id===t)}function vc(e,t){return lt(e.document)===null||Gx(e,t)?null:tt("E_TARGET_NOT_FOUND",`No GSAP animation found with id "${t}".`,"Animation ids are positional and shift after edits \u2014 re-read them from comp before dispatching.")}function fV(e,t){let a=Gx(e,t.animationId)?.animation.arcPath;return a?.enabled?t.segmentIndex<0||t.segmentIndex>=a.segments.length?tt("E_INVALID_ARGS",`Segment index ${t.segmentIndex} is out of range (0..${a.segments.length-1}).`):aa:tt("E_ARC_NOT_ENABLED",`Animation "${t.animationId}" has no enabled arc path.`,"Call setArcPath({ enabled: true }) before updating a segment.")}function rT(e,t){switch(t.type){case"setStyle":case"setText":case"setAttribute":case"setTiming":case"setHold":case"moveElement":case"removeElement":{let a=Lo(t.target);if(a.length===0)return tt("E_TARGET_NOT_FOUND","No target ids provided.");let r=a.filter(n=>Wt(e.document,n)===null);return r.length>0?tt("E_TARGET_NOT_FOUND",`Element(s) not found: ${r.join(", ")}.`,"Verify the id against comp.getElements() or comp.find()."):aa}case"addElement":{if(t.parent!==null&&Wt(e.document,t.parent)===null)return tt("E_TARGET_NOT_FOUND",`Parent element not found: "${t.parent}".`,"Verify the parent id against comp.getElements() or comp.find().");if(t.index<0)return tt("E_INVALID_ARGS",`index must be >= 0 (got ${t.index}).`);if(!t.html||t.html.trim().length===0)return tt("E_INVALID_HTML","html must not be empty.");let a=e.document.createElement("div");return a.innerHTML=t.html,a.firstElementChild===null?tt("E_INVALID_HTML","html parses to zero element nodes."):a.querySelector("script")!==null?tt("E_INVALID_HTML","<script> elements are not permitted in addElement html.","GSAP is managed by the composition's single script block; add tweens via addGsapTween."):aa}case"reorderElements":{if(t.entries.length===0)return aa;let a=t.entries.map(r=>r.target).filter(r=>Wt(e.document,r)===null);return a.length>0?tt("E_TARGET_NOT_FOUND",`Element(s) not found: ${a.join(", ")}.`,"Verify the id against comp.getElements() or comp.find()."):aa}case"setVariableValue":case"removeVariable":return un(e.document)===null?tt("E_NO_ROOT","Composition root element not found."):aa;case"declareVariable":{let a=$E(e,t.declaration);return a||(_i(Zt(e.document,e.wrapped),t.declaration.id)!==void 0?tt("E_DUPLICATE_VARIABLE",`Variable "${t.declaration.id}" is already declared.`,"Use updateVariableDeclaration to change it, or setVariableValue to change its default."):aa)}case"updateVariableDeclaration":{let a=$E(e,t.declaration);return a||(t.declaration.id!==t.id?tt("E_INVALID_ARGS",`declaration.id ("${t.declaration.id}") must match id ("${t.id}").`,"Variable ids are immutable \u2014 rename via removeVariableDeclaration + declareVariable."):_i(Zt(e.document,e.wrapped),t.id)===void 0?tt("E_VARIABLE_NOT_FOUND",`Variable "${t.id}" is not declared.`,"Check comp.getVariableDeclarations(), or add it with declareVariable."):aa)}case"removeVariableDeclaration":{let a=tT(e);return a||(_i(Zt(e.document,e.wrapped),t.id)===void 0?tt("E_VARIABLE_NOT_FOUND",`Variable "${t.id}" is not declared.`,"Check comp.getVariableDeclarations()."):aa)}case"setCompositionMetadata":case"setClassStyle":return aa;case"addGsapTween":case"addLabel":{if(t.type==="addGsapTween"&&Wt(e.document,t.target)===null)return tt("E_TARGET_NOT_FOUND",`Element not found: ${t.target}.`,"Verify the id against comp.getElements() or comp.find().");let a=lt(e.document);if(!a)return tt("E_NO_GSAP_SCRIPT","No GSAP script block found in the composition.","This composition does not use GSAP animations.");let r=fn(a);return!r||!r.hasTimeline?tt("E_NO_GSAP_TIMELINE","No gsap.timeline() declaration found in the GSAP script.","addGsapTween / addLabel require a timeline variable (e.g. var tl = gsap.timeline(...))."):aa}case"setGsapTween":case"setGsapKeyframe":case"addGsapKeyframe":case"removeGsapKeyframe":case"removeGsapProperty":case"removeGsapTween":case"removeAllKeyframes":case"convertToKeyframes":case"splitIntoPropertyGroups":case"setArcPath":case"removeArcPath":return Bi(e)??vc(e,t.animationId)??aa;case"updateArcSegment":return Bi(e)??vc(e,t.animationId)??fV(e,t);case"splitAnimations":case"deleteAllForSelector":case"removeLabel":return Bi(e)??aa;case"addWithKeyframes":return Bi(e)??(t.keyframes.length===0?tt("E_INVALID_ARGS","addWithKeyframes requires at least one keyframe.","An empty keyframe list would create an animation with no keyframes."):aa);case"replaceWithKeyframes":return Bi(e)??vc(e,t.animationId)??(t.keyframes.length===0?tt("E_INVALID_ARGS","replaceWithKeyframes requires at least one keyframe.","An empty keyframe list would create an animation with no keyframes."):aa);case"unrollDynamicAnimations":return Bi(e)??vc(e,t.animationId)??(t.elements.length===0?tt("E_INVALID_ARGS","unrollDynamicAnimations requires at least one element.","An empty element list would delete the animation; pass the resolved element list."):aa);case"materializeKeyframes":return Bi(e)??vc(e,t.animationId)??(t.keyframes.length===0?tt("E_INVALID_ARGS","materializeKeyframes requires at least one keyframe.","An empty keyframe list would empty the animation; pass the resolved keyframes."):aa);default:return tt("E_UNKNOWN_OP",`Unknown op type: "${t.type}".`)}}var pV=new Set(["script","style","template","meta","link","noscript","base","head"]);function mV(e){let t=em(e).trim();return t.length>0?t:null}var nT=null,Wx=[];function oT(e){if(nT===e)return Wx;let t=fn(e);return Wx=t?t.located.map(({id:a,animation:r})=>({id:a,selector:r.targetSelector})):[],nT=e,Wx}function hV(e){let t=new Map;for(let a of oc(e))for(let{id:r,selector:n}of oT(a))gV(t,e,r,n);return t}function gV(e,t,a,r){if(!r)return;let n;try{n=qs(t,r)}catch{return}for(let o of n){let i=o.getAttribute("data-hf-id");if(!i)continue;let s=e.get(i);s?s.push(a):e.set(i,[a])}}function iT(e){return new Set(oT(e).map(({id:t})=>t))}function jx(e,t,a){let r=[];for(let n of Array.from(e.children)){if(n.tagName.toLowerCase()==="template"){ac(n)&&r.push(...jx(n,t,a));continue}let o=bV(n,t,a);o&&r.push(o)}return r}function bV(e,t,a){let r=e.tagName.toLowerCase();if(pV.has(r))return null;let n=e.getAttribute("data-hf-id")??"";if(!n)return null;let o=t?`${t}/${n}`:n,i=qb(e)?o:t,s=bo(e),l=(e.getAttribute("class")??"").split(/\s+/).map(w=>w.trim()).filter(Boolean),c={};for(let w of Array.from(e.attributes))w.name==="style"||w.name==="class"||w.name.startsWith("data-hf-")||(c[w.name]=w.value);let d=e.getAttribute("data-start"),f=e.getAttribute("data-end"),p=e.getAttribute("data-track-index"),g=d!==null?parseFloat(d):null,m=g!==null&&f!==null?Math.max(0,parseFloat(f)-g):null,x=p!==null?parseInt(p,10):null,v=jx(e,i,a);return{id:n,scopedId:o,tag:r,children:v,inlineStyles:s,classNames:l,attributes:c,text:mV(e),start:g,duration:m,trackIndex:x,animationIds:a.get(n)??[]}}function qx(e){let t=e.body;return t?jx(t,"",hV(e)):[]}function sT(e){let t=[];function a(r){t.push(r);for(let n of r.children)a(n)}for(let r of e)a(r);return t}var xV="data-hyperframes-preview-runtime",vV=["hyperframe.runtime.iife.js","hyperframes-runtime.modular.inline.js","hyperframe-runtime.modular-runtime.inline.js",xV],yV=["__hyperframeRuntimeBootstrapped","__hyperframeRuntime","__hyperframeRuntimeTeardown","__HF_EXPORT_RENDER_SEEK_CONFIG","window.__player ="],AV=[/^window\.__playerReady\s*=\s*(?:true|false)\s*;?$/,/^window\.__renderReady\s*=\s*(?:true|false)\s*;?$/];function uT(e){if(!e)return e;let t=e.toLowerCase(),a="",r=0;for(;r<e.length;){let n=wV(t,r);if(n===-1){a+=e.slice(r);break}a+=e.slice(r,n);let o=lT(e,n+1);if(o===-1){a+=e.slice(n);break}let i=SV(t,o+1),s=i===-1?e.length:i,u=e.slice(n,s);IV(u)||(a+=u),r=s}return a}function wV(e,t){let a=e.indexOf("<script",t);for(;a!==-1;){let r=e[a+7]??"";if(LV(r))return a;a=e.indexOf("<script",a+1)}return-1}function lT(e,t){let a;for(let r=t;r<e.length;r+=1){let n=e[r];if(a){n===a&&(a=void 0);continue}if(n==='"'||n==="'"){a=n;continue}if(n===">")return r}return-1}function SV(e,t){let a=e.indexOf("<\/script",t);for(;a!==-1;){let r=CV(e,a+8);if(r!==-1)return r;a=e.indexOf("<\/script",a+1)}return-1}function CV(e,t){let a=t;for(;a<e.length&&cT(e[a]??"");)a+=1;return e[a]===">"?a+1:-1}function IV(e){let t=e.toLowerCase();for(let r of vV)if(t.includes(r.toLowerCase()))return!0;for(let r of yV)if(e.includes(r))return!0;let a=kV(e).trim();for(let r of AV)if(r.test(a))return!0;return!1}function kV(e){let t=lT(e,1);if(t===-1)return"";let r=e.toLowerCase().lastIndexOf("<\/script"),n=r===-1?e.length:r;return e.slice(t+1,n)}function LV(e){return e===""||e===">"||e==="/"||cT(e)}function cT(e){return e===" "||e===`
627
+ `||e===" "||e==="\r"||e==="\f"}function dT(e){let t=e.document;return e.wrapped?t.body.innerHTML??"":`<!DOCTYPE html>
628
+ ${t.documentElement.outerHTML}`}function EV(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.id=="string"}function TV(e){let t=/^\/elements\/([^/]+)\/inlineStyles\/(.+)$/.exec(e);if(t)return{type:"style",id:t[1],prop:t[2]};let a=/^\/elements\/([^/]+)\/text$/.exec(e);if(a)return{type:"text",id:a[1]};let r=/^\/elements\/([^/]+)\/attributes\/(.+)$/.exec(e);if(r)return{type:"attribute",id:r[1],prop:r[2]?.replace(/~1/g,"/").replace(/~0/g,"~")};let n=/^\/elements\/([^/]+)\/timing\/(.+)$/.exec(e);if(n)return{type:"timing",id:n[1],field:n[2]};let o=/^\/elements\/([^/]+)\/hold\/(.+)$/.exec(e);if(o)return{type:"hold",id:o[1],field:o[2]};let i=/^\/elements\/([^/]+)$/.exec(e);if(i)return{type:"element",id:i[1]};let s=/^\/variableDeclarations\/(.+)$/.exec(e);if(s)return{type:"variableDeclaration",id:s[1]};let u=/^\/variables\/(.+)$/.exec(e);if(u)return{type:"variable",id:u[1]};let l=/^\/metadata\/(.+)$/.exec(e);return l?{type:"metadata",field:l[1]}:e==="/script/gsap"?{type:"script"}:e==="/style/css"?{type:"stylesheet"}:null}function RV(e,t,a){a===null?KE(e,t):Wm(e,t,a)}function fT(e,t){let a=[],r=un(e.document)?.getAttribute("data-hf-id")??null,n=Object.entries(t).sort(([o],[i])=>{let s=o.startsWith("var."),u=i.startsWith("var."),l=o.startsWith("varDecl."),c=i.startsWith("varDecl.");return s&&c?1:l&&u?-1:0});for(let[o,i]of n){let s=Mk(o);if(s)if(i===null?a.push({op:"remove",path:s}):a.push({op:"replace",path:s,value:i}),r&&o.startsWith("var.")&&i!==null&&typeof i!="object"){let u=xo(r,`--${o.slice(4)}`);a.push({op:"replace",path:u,value:String(i)})}else r&&o.startsWith("var.")&&i===null&&a.push({op:"remove",path:xo(r,`--${o.slice(4)}`)})}Km(e,a)}function Km(e,t){for(let a of t){let r=TV(a.path);r&&PV(e,a,r)}}function PV(e,t,a){switch(a.type){case"style":{let r=a.id?go(e.document,a.id):null;if(!r||!a.prop)return;t.op==="remove"?Qa(r,{[a.prop]:null}):Qa(r,{[a.prop]:String(t.value)});break}case"text":{let r=a.id?go(e.document,a.id):null;if(!r)return;t.op==="remove"?rc(r,""):rc(r,String(t.value??""));break}case"attribute":{let r=a.id?go(e.document,a.id):null;if(!r||!a.prop)return;t.op==="remove"?r.removeAttribute(a.prop):r.setAttribute(a.prop,String(t.value??""));break}case"timing":{let r=a.id?go(e.document,a.id):null;if(!r||!a.field)return;a.field==="start"?t.op==="remove"?r.removeAttribute("data-start"):r.setAttribute("data-start",String(t.value)):a.field==="duration"?t.op==="remove"?r.removeAttribute("data-duration"):r.setAttribute("data-duration",String(t.value)):a.field==="end"?t.op==="remove"?r.removeAttribute("data-end"):r.setAttribute("data-end",String(t.value)):a.field==="trackIndex"&&(t.op==="remove"?r.removeAttribute("data-track-index"):r.setAttribute("data-track-index",String(t.value)));break}case"hold":{let r=a.id?go(e.document,a.id):null;if(!r||!a.field)return;let n=`data-hold-${a.field}`;t.op==="remove"?r.removeAttribute(n):r.setAttribute(n,String(t.value));break}case"element":{if(!a.id)return;if(t.op==="remove")go(e.document,a.id)?.remove();else if(t.op==="add"&&t.value){let r=t.value,n=r.parentId?go(e.document,r.parentId):e.document.body;if(!n)return;let o=e.document.createElement("div");o.innerHTML=r.html;let i=o.firstElementChild;if(!i)return;let u=Array.from(n.children)[r.siblingIndex]??null;n.insertBefore(i,u)}break}case"variableDeclaration":{if(!a.id)return;t.op==="remove"?Gm(Zt(e.document,e.wrapped),a.id):EV(t.value)&&xc(Zt(e.document,e.wrapped),t.value);break}case"variable":{if(!a.id)return;RV(Zt(e.document,e.wrapped),a.id,t.op==="remove"?null:t.value);break}case"script":{t.op==="remove"?pt(e.document,""):pt(e.document,String(t.value??""));break}case"stylesheet":{t.op==="remove"?nc(e.document,""):nc(e.document,String(t.value??""));break}case"metadata":{let r=un(e.document);if(!r||!a.field)return;a.field==="width"?t.op==="remove"?(Qa(r,{width:null}),r.removeAttribute("data-width")):(Qa(r,{width:`${t.value}px`}),r.hasAttribute("data-width")&&r.setAttribute("data-width",String(t.value))):a.field==="height"?t.op==="remove"?(Qa(r,{height:null}),r.removeAttribute("data-height")):(Qa(r,{height:`${t.value}px`}),r.hasAttribute("data-height")&&r.setAttribute("data-height",String(t.value))):a.field==="duration"&&(t.op==="remove"?r.removeAttribute("data-duration"):r.setAttribute("data-duration",String(t.value)));break}}}function pT(e,t={}){let a=t.coalesceMs??300,r=t.maxEntries??100,{trackedOrigins:n}=t,o=[],i=[];function s(f){return f===As?!1:n?n.includes(f):!0}function u(f){return f.map(p=>p.path).sort().join(`
629
+ `)}function l(f){return[...f].sort().join(",")}function c(f,p){return a<=0||l(f.opTypes)!==l(p.opTypes)||f.origin!==p.origin||u(f.patches)!==u(p.patches)?!1:Date.now()-f.timestamp<=a}let d=e.on("patch",f=>{if(!s(f.origin))return;let p=o[o.length-1];if(p&&c(p,f)){let g={patches:f.patches,inversePatches:p.inversePatches,opTypes:p.opTypes,origin:p.origin,timestamp:Date.now()};o[o.length-1]=g}else o.push({patches:f.patches,inversePatches:f.inversePatches,opTypes:f.opTypes,origin:f.origin,timestamp:Date.now()}),o.length>r&&o.shift();i=[]});return{undo(){let f=o.pop();return f?(e.applyPatches(f.inversePatches,{origin:As}),i.push(f),!0):!1},redo(){let f=i.pop();return f?(e.applyPatches(f.patches,{origin:As}),o.push(f),!0):!1},canUndo(){return o.length>0},canRedo(){return i.length>0},dispose(){d(),o.length=0,i.length=0}}}function mT(e,t,a={}){let r=a.path??"composition.html",n=null,o=Promise.resolve(),i=!1;function s(){n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,u()},0)}function u(){if(i)return Promise.resolve();let c=e.serialize();return o=o.then(async()=>{if(!i)try{await t.write(r,c)}catch(d){let f=d instanceof Error?d.message:String(d);a.onError?.({error:{message:f,cause:d}})}}),o}let l=e.on("change",()=>{s()});return{async flush(){n!==null&&(clearTimeout(n),n=null),await u()},dispose(){i=!0,n!==null&&(clearTimeout(n),n=null),l()}}}function NV(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Kx=class{constructor(t,a,r={}){te(this,"parsed");te(this,"persist");te(this,"preview");te(this,"overrides");te(this,"baseVariableDefaults");te(this,"elementsCache",null);te(this,"rootsCache",null);te(this,"currentSelection",[]);te(this,"changeHandlers",[]);te(this,"selectionHandlers",[]);te(this,"patchHandlers",[]);te(this,"errorHandlers",[]);te(this,"previewSelectionUnsubscribe",null);te(this,"historyModule",null);te(this,"persistQueueModule",null);te(this,"batchDepth",0);te(this,"batchForward",[]);te(this,"batchInverse",[]);te(this,"batchOpTypes",[]);te(this,"batchOrigin",kn);te(this,"batchOverridesSnapshot",{});te(this,"_variableUsageScanCache",new Map);te(this,"_gsapLabelCache",null);this.parsed=t,this.persist=a.persist,this.preview=a.preview,this.overrides={...a.overrides??{}},this.baseVariableDefaults=r,this.previewSelectionUnsubscribe=this.preview?.on("selection",n=>this.updateSelection(n))??null}attachHistory(t){this.historyModule=t}attachPersistQueue(t){this.persistQueueModule=t}_fireError(t){this.errorHandlers.forEach(a=>a(t))}setStyle(t,a){this.dispatch({type:"setStyle",target:t,styles:a})}setText(t,a){this.dispatch({type:"setText",target:t,value:a})}setAttribute(t,a,r){this.dispatch({type:"setAttribute",target:t,name:a,value:r})}setTiming(t,a){this.dispatch({type:"setTiming",target:t,...a})}removeElement(t){this.dispatch({type:"removeElement",target:t})}addElement(t,a,r){return this._dispatch({type:"addElement",parent:t,index:a,html:r},kn).meta?.newId??""}setVariableValue(t,a){this.dispatch({type:"setVariableValue",id:t,value:a})}getVariableValue(t,a){return(a?.base&&t in this.baseVariableDefaults?this.baseVariableDefaults:this.getVariableValues())[t]}listVariables(){return this.getVariableDeclarations()}removeVariable(t){this.dispatch({type:"removeVariable",id:t})}declareVariable(t){this.dispatch({type:"declareVariable",declaration:t})}updateVariableDeclaration(t,a){this.dispatch({type:"updateVariableDeclaration",id:t,declaration:a})}removeVariableDeclaration(t){this.dispatch({type:"removeVariableDeclaration",id:t})}getVariableDeclarations(){return jE(Zt(this.parsed.document,this.parsed.wrapped))}getVariableValues(t){return{...Um(Zt(this.parsed.document,this.parsed.wrapped)),...t??{}}}validateVariableValues(t){return zx(t,this.getVariableDeclarations())}getVariableUsage(){let t=[],a=new Set,r=!1,n=new Map;for(let l of Array.from(this.parsed.document.querySelectorAll("script"))){if(l.getAttribute("src"))continue;let c=l.textContent??"";if(c.includes("__hfVariables")&&(r=!0),!c.includes("getVariables"))continue;let d=this._variableUsageScanCache.get(c)??Hx(c);n.set(c,d),r=r||d.scanIncomplete;for(let f of d.usedIds)a.has(f)||(a.add(f),t.push(f))}for(let l of Array.from(this.parsed.document.querySelectorAll("[data-var-src], [data-var-text]")))for(let c of["data-var-src","data-var-text"]){let d=l.getAttribute(c)?.trim();d&&!a.has(d)&&(a.add(d),t.push(d))}this._variableUsageScanCache=n;let o=this.getVariableDeclarations().map(l=>l.id),i=this._collectCssText(),s=l=>new RegExp(`var\\(\\s*--${NV(l)}[\\s,)]`).test(i),u=new Set(o);return{usedIds:t,unusedDeclarations:o.filter(l=>!a.has(l)&&!s(l)),undeclaredReads:t.filter(l=>!u.has(l)),scanIncomplete:r}}_collectCssText(){let t=[];for(let a of Array.from(this.parsed.document.querySelectorAll("style")))t.push(a.textContent??"");for(let a of Array.from(this.parsed.document.querySelectorAll("[style]")))t.push(a.getAttribute("style")??"");return t.join(`
630
+ `)}setPreviewVariables(t){return this.preview?.setPreviewVariables?(this.preview.setPreviewVariables(t),!0):!1}getElementTimings(){let t=oc(this.parsed.document),a,r=this._gsapLabelCache?.scripts;r?.length===t.length&&r.every((c,d)=>c===t[d])?a=this._gsapLabelCache?.labels??[]:(a=t.flatMap(c=>WL(c)),this._gsapLabelCache=t.length?{scripts:[...t],labels:a}:null);let o=new Map,i=new Set,s=c=>{let d=o.get(c);if(d)return d;if(i.has(c))return Ti(c);i.add(c);try{let f=Ti(c,{resolveReferenceEnd:p=>{let g=Wt(this.parsed.document,p);if(!g)return null;let m=s(g);return m.end??m.start}});return o.set(c,f),f}finally{i.delete(c)}},u={},l=this.getElements();for(let c of l){let d=Wt(this.parsed.document,c.scopedId);if(!d)continue;let f=s(d),p=f.start??0,g=f.duration;if(g===null)continue;let m=p+g,x=a.filter(({position:v})=>v>=p&&v<=m).map(({name:v})=>v);u[c.scopedId]={enterAt:p,exitAt:m,labels:x}}return u}setElementTiming(t){let a=Object.entries(t);a.length!==0&&this.batch(()=>{for(let[r,n]of a)this.dispatch({type:"setTiming",target:r,...n})})}setHold(t,a){this.dispatch({type:"setHold",target:t,hold:a})}addGsapTween(t,a){return this._dispatch({type:"addGsapTween",target:t,tween:a},kn).meta?.animationId??""}setGsapTween(t,a){this.dispatch({type:"setGsapTween",animationId:t,properties:a})}removeGsapTween(t){this.dispatch({type:"removeGsapTween",animationId:t})}addWithKeyframes(t,a,r,n,o){return this._dispatch({type:"addWithKeyframes",targetSelector:t,position:a,duration:r,keyframes:n,ease:o},kn).meta?.animationId??""}replaceWithKeyframes(t,a,r,n,o,i){return this._dispatch({type:"replaceWithKeyframes",animationId:t,targetSelector:a,position:r,duration:n,keyframes:o,ease:i},kn).meta?.animationId??""}undo(){this.historyModule?.undo()}redo(){this.historyModule?.redo()}canUndo(){return this.historyModule?.canUndo()??!1}canRedo(){return this.historyModule?.canRedo()??!1}getElements(){return this.elementsCache??(this.elementsCache=sT(qx(this.parsed.document))),[...this.elementsCache]}getRootElements(){return this.rootsCache??(this.rootsCache=qx(this.parsed.document)),[...this.rootsCache]}getElement(t){return this.getElements().find(a=>a.scopedId===t)??this.getElements().find(a=>a.id===t&&a.scopedId===a.id)??null}find(t){return this.getElements().filter(a=>!(t.tag&&a.tag!==t.tag||t.text&&!a.text?.includes(t.text)||t.name&&a.attributes["data-name"]!==t.name||t.track!==void 0&&a.trackIndex!==t.track||t.composition&&!a.scopedId.startsWith(`${t.composition}/`))).map(a=>a.scopedId)}getAllAnimationIds(){let t=new Set;for(let a of oc(this.parsed.document))for(let r of iT(a))t.add(r);return t}selection(){let t=[...this.currentSelection];return{ids:t,setStyle:a=>this.dispatch({type:"setStyle",target:t,styles:a}),setText:a=>this.dispatch({type:"setText",target:t,value:a}),setAttribute:(a,r)=>this.dispatch({type:"setAttribute",target:t,name:a,value:r}),setTiming:a=>this.dispatch({type:"setTiming",target:t,...a}),removeElement:()=>this.dispatch({type:"removeElement",target:t})}}element(t){return{id:t,setStyle:a=>this.dispatch({type:"setStyle",target:t,styles:a}),setText:a=>this.dispatch({type:"setText",target:t,value:a}),setAttribute:(a,r)=>this.dispatch({type:"setAttribute",target:t,name:a,value:r}),setTiming:a=>this.dispatch({type:"setTiming",target:t,...a}),removeElement:()=>this.dispatch({type:"removeElement",target:t})}}getSelection(){return[...this.currentSelection]}setSelection(t){let a=Array.from(new Set(t));a.length===this.currentSelection.length&&a.every((r,n)=>r===this.currentSelection[n])||this.updateSelection(a)}updateSelection(t){this.currentSelection=[...t];for(let a of this.selectionHandlers)a([...this.currentSelection])}_dispatch(t,a){let r=XE(this.parsed,t),{forward:n,inverse:o}=r;if(n.length===0&&o.length===0)return this.batchDepth===0&&this.changeHandlers.forEach(i=>i()),r;this.elementsCache=null,this.rootsCache=null;for(let i of n){let s=Zb(i.path);s!==null&&(this.overrides[s]=i.op==="remove"?null:i.value)}for(let i of n){let s=/^\/elements\/([^/]+)$/.exec(i.path);if(i.op==="remove"&&s){let u=s[1].replace(/~1/g,"/").replace(/~0/g,"~");for(let l of Object.keys(this.overrides))(l.startsWith(`${u}.`)||l.startsWith(`${u}/`))&&delete this.overrides[l]}}if(this.batchDepth>0)this.batchForward.push(...n),this.batchInverse.push(...o),this.batchOpTypes.includes(t.type)||this.batchOpTypes.push(t.type);else{let i=nm(n,[...o].reverse(),a,[t.type]);this.patchHandlers.forEach(s=>s(i)),this.changeHandlers.forEach(s=>s())}return r}dispatch(t,a){this._dispatch(t,a?.origin??kn)}batch(t,a){let r=a?.origin??kn;this.batchDepth++,this.batchDepth===1&&(this.batchOrigin=r,this.batchOverridesSnapshot={...this.overrides});let n=!1;try{t()}catch(o){throw n=!0,o}finally{if(this.batchDepth--,this.batchDepth===0)if(!n&&this.batchForward.length>0){let o=nm(this.batchForward,[...this.batchInverse].reverse(),this.batchOrigin,this.batchOpTypes);this.patchHandlers.forEach(i=>i(o)),this.changeHandlers.forEach(i=>i()),this.resetBatchState()}else n&&this.batchInverse.length>0&&(Km(this.parsed,[...this.batchInverse].reverse()),this.overrides={...this.batchOverridesSnapshot},this.elementsCache=null,this.rootsCache=null),this.resetBatchState(),n||this.changeHandlers.forEach(o=>o())}}resetBatchState(){this.batchForward=[],this.batchInverse=[],this.batchOpTypes=[],this.batchOrigin=kn,this.batchOverridesSnapshot={}}can(t){return rT(this.parsed,t)}on(t,a){let r=a;if(t==="change")return this.changeHandlers.push(r),()=>{this.changeHandlers=this.changeHandlers.filter(n=>n!==r)};if(t==="selectionchange")return this.selectionHandlers.push(r),()=>{this.selectionHandlers=this.selectionHandlers.filter(n=>n!==r)};if(t==="patch")return this.patchHandlers.push(r),()=>{this.patchHandlers=this.patchHandlers.filter(n=>n!==r)};if(t==="persist:error"){let n=r;this.errorHandlers.push(n);let o=this.persist?.on("persist:error",n);return()=>{this.errorHandlers=this.errorHandlers.filter(i=>i!==n),o?.()}}return()=>{}}serialize(t){let a=dT(this.parsed);return t?.stripRuntime?uT(a):a}getOverrides(){return{...this.overrides}}applyPatches(t,a){let r=a?.origin??As;Km(this.parsed,t),this.elementsCache=null,this.rootsCache=null;for(let i of t){let s=Zb(i.path);s!==null&&(this.overrides[s]=i.op==="remove"?null:i.value)}let o=nm(t,[],r,["applyPatches"]);this.patchHandlers.forEach(i=>i(o)),this.changeHandlers.forEach(i=>i())}async flush(){await this.persistQueueModule?.flush()}dispose(){this.previewSelectionUnsubscribe?.(),this.previewSelectionUnsubscribe=null,this.persistQueueModule?.dispose(),this.historyModule?.dispose(),this.changeHandlers=[],this.selectionHandlers=[],this.patchHandlers=[],this.errorHandlers=[]}};async function Qm(e,t){let a=Ik(e),r=Um(Zt(a.document,a.wrapped));t?.overrides&&fT(a,t.overrides);let n=new Kx(a,t??{},r);if(!(t?.overrides!==void 0)){if(t?.history!==!1){let i=pT(n,{coalesceMs:t?.coalesceMs??300,trackedOrigins:t?.trackedOrigins});n.attachHistory(i)}if(t?.persist){let i=mT(n,t.persist,{path:t.persistPath,onError:s=>n._fireError(s)});n.attachPersistQueue(i)}}return n}async function hT(e){let t=await Qm(e);try{return t.serialize()}finally{t.dispose()}}async function gT(e){let t=await Qm(e);try{return{html:t.serialize(),elementCount:t.getElements().length,animationCount:t.getAllAnimationIds().size}}finally{t.dispose()}}var MV=[{value:"draft",labelKey:"renderQualityDraft"},{value:"standard",labelKey:"renderQualityStandard"},{value:"high",labelKey:"renderQualityHigh"}],DV=[24,30,60];function bT(e){let[t,a]=O("preview"),[r,n]=O("desktop"),[o,i]=O(1),[s,u]=O("standard"),[l,c]=O(30),[d,f]=O(0),[p,g]=O(null),[m,x]=O(null),[v,w]=O("");K(()=>{if(!e.htmlDraft.trim()){w("");return}let C=URL.createObjectURL(new Blob([e.htmlDraft],{type:"text/html"}));return w(C),()=>URL.revokeObjectURL(C)},[d,e.htmlDraft]),K(()=>{let C=!1,I=window.setTimeout(()=>{gT(e.htmlDraft).then(D=>{C||(g({elementCount:D.elementCount,animationCount:D.animationCount}),x(null))}).catch(D=>{C||(g(null),x(D instanceof Error?D.message:String(D)))})},500);return()=>{C=!0,window.clearTimeout(I)}},[e.htmlDraft]);let y=e.renderCapability?.available===!0?e.renderCapability:null,S=!!y,A=e.latestExport,L=MV.map(C=>({value:C.value,label:e.t(C.labelKey)}));return h("section",{className:"motion-workbench-surface video-surface hyperframes-surface"},h(hs,{header:e.header,t:e.t,viewMode:t,device:r,zoom:o,canUndo:!1,saving:e.saving,exportKinds:["mp4"],exportLabel:e.t("productionRender"),onViewModeChange:a,onDeviceChange:n,onZoomChange:i,onReplay:()=>f(C=>C+1),onUndo:()=>{},onSave:e.onSave,onExport:()=>e.onRender(s,l)}),h("div",{className:"hyperframes-engine-row"},h("div",null,h(za,{variant:"secondary"},e.t("hyperframesEngine")),h("span",null,e.t("hyperframesEngineHelp"))),h("div",{className:"hyperframes-validation"},m?h(za,{variant:"outline","data-status":"warning"},e.t("compositionInvalid")):h(za,{variant:"outline","data-status":"success"},e.t("compositionValid")),p?h("span",null,e.t("compositionStats",{elements:p.elementCount,animations:p.animationCount})):null)),t==="code"?h(Qt,{className:"motion-panel motion-code-panel hyperframes-code-panel"},h(An,{className:"motion-code hyperframes-code",value:e.htmlDraft,onChange:C=>e.onDraftChange(C.target.value),spellCheck:!1}),m?h("p",{className:"hyperframes-error"},m):null):h("div",{className:"hyperframes-stage-layout"},h(Qt,{className:`hyperframes-preview ${r}`,style:{transform:`scale(${o})`}},v?it("hyperframes-player",{key:`${v}-${d}`,src:v,controls:!0,"audio-locked":!0,"aria-label":e.t("hyperframesPreview")}):h("div",{className:"motion-empty"},e.t("hyperframesSourceEmpty"))),h(Qt,{className:"motion-panel hyperframes-render-panel"},h("div",null,h("span",{className:"motion-kicker"},e.t("producer")),h("h3",null,e.t("productionRender")),h("p",{className:"muted"},e.t("productionRenderHelp"))),h("label",null,h("span",null,e.t("renderQuality")),h(Ta,{value:s,options:L,onValueChange:C=>u(C)})),h("label",null,h("span",null,e.t("renderFps")),h(Ta,{value:String(l),options:DV.map(C=>({value:String(C),label:`${C} fps`})),onValueChange:C=>c(Number(C))})),h(de,{onClick:()=>e.onRender(s,l),disabled:e.saving||!e.selectedProject||!S||!!m},e.t("queueProductionRender")),S?null:h("p",{className:"hyperframes-error"},e.renderCapability?.available===!1?e.renderCapability.message||e.renderCapability.reason:e.t("runtimeUnavailable")),y?h("p",{className:"muted"},e.t("runtimeReady",{profile:y.runtimeProfile||"browser/video-playwright-1.61/v1",workers:y.workerCount||0})):null,A?h("div",{className:"hyperframes-render-status"},h("strong",null,e.t("latestRender")),h(za,{variant:"outline","data-status":A.status==="succeeded"?"success":A.status==="failed"?"warning":void 0},String(A.status||"queued")),h("span",null,Math.round(A.progress||0),"% \xB7 ",A.stage||A.backend||"hyperframes"),A.errorMessage?h("span",{className:"hyperframes-error"},A.errorMessage):null):null)))}function Qx(e){return e.name.split(/\s+/).filter(Boolean).map(a=>a[0]).join("").slice(0,2).toUpperCase()||"MO"}function Ym(e){return[e.id,e.name,e.category,e.cat,e.desc,e.description,...e.surfaces||[],...e.target||[],...e.runtime||[],...e.export||[],...e.tags||[]].filter(t=>typeof t=="string"&&t.length>0).join(" ").toLowerCase()}function vT(e,t,a){let r=Ym(e),n=OV(r),o=r.includes("subtle")||r.includes("restrained")?18:r.includes("bold")||r.includes("spark")?34:t.distance,i=r.includes("typewriter")?960:r.includes("spark")||r.includes("click")?420:r.includes("slow")?900:t.duration,s=typeof a?.componentId=="string"?a.componentId:"";return{...t,selector:s?`[data-ma-id="${al(s)}"]`:t.selector||"h1",trigger:AT(r,t.trigger),verb:n,duration:i,distance:o,tracksJson:JSON.stringify(_V(n,o,r),null,2)}}function yT(e,t){let r=new DOMParser().parseFromString(e,"text/html"),n=t.trim();return n&&xT(r,n)?n:["[data-ma-id]","h1","h2","h3","button","a","p",'[class*="card"]',"main > *","body > *"].find(i=>xT(r,i))??n??"body > *"}function AT(e,t){return e.includes("hover")?"hover":e.includes("click")||e.includes("spark")?"click":e.includes("scroll")||e.includes("reveal")?"scroll":e.includes("load")||e.includes("entrance")||e.includes("intro")?"load":t}function OV(e){return e.includes("slide left")?"slide-left":e.includes("slide right")?"slide-right":e.includes("slide down")?"slide-down":e.includes("slide")||e.includes("rise")||e.includes("falling")?"slide-up":e.includes("zoom")?"zoom":e.includes("rotate")||e.includes("rotating")?"rotate":e.includes("blur")||e.includes("focus")?"blur":e.includes("pop")||e.includes("spark")||e.includes("bounce")?"pop":e.includes("pulse")||e.includes("heartbeat")?"pulse":e.includes("shake")||e.includes("glitch")?"shake":e.includes("wobble")?"wobble":e.includes("sink")?"sink":"fade"}function _V(e,t,a){let r=Jx();return e==="fade"&&(r.y=[{t:0,v:0},{t:.5,v:0}],r.scale=[{t:0,v:1},{t:.5,v:1}],r.blur=[{t:0,v:0},{t:.5,v:0}]),e==="slide-down"&&(r.y=[{t:0,v:-t},{t:.55,v:0,ease:"ease-out"}]),e==="slide-left"&&(r.x=[{t:0,v:t},{t:.55,v:0,ease:"ease-out"}],r.y=[{t:0,v:0},{t:.55,v:0}]),e==="slide-right"&&(r.x=[{t:0,v:-t},{t:.55,v:0,ease:"ease-out"}],r.y=[{t:0,v:0},{t:.55,v:0}]),e==="zoom"&&(r.scale=[{t:0,v:.82},{t:.5,v:1,ease:"ease-out"}],r.y=[{t:0,v:0},{t:.5,v:0}]),e==="rotate"&&(r.rotate=[{t:0,v:-8},{t:.55,v:0,ease:"ease-out"}]),e==="blur"&&(r.blur=[{t:0,v:16},{t:.6,v:0,ease:"ease-out"}]),e==="pop"&&(r.scale=[{t:0,v:.82},{t:.24,v:1.08},{t:.46,v:1}],r.blur=[{t:0,v:0},{t:.46,v:0}]),e==="pulse"&&(r.opacity=[{t:0,v:1},{t:.35,v:.82},{t:.7,v:1}],r.scale=[{t:0,v:1},{t:.35,v:1.06},{t:.7,v:1}]),e==="shake"&&(r.x=[{t:0,v:0},{t:.15,v:-t/2},{t:.3,v:t/2},{t:.45,v:0}]),e==="wobble"&&(r.rotate=[{t:0,v:0},{t:.18,v:-5},{t:.38,v:4},{t:.6,v:0}]),e==="sink"&&(r.y=[{t:0,v:-t/2},{t:.55,v:0,ease:"ease-out"}]),a.includes("typewriter")&&(r.opacity=[{t:0,v:0},{t:.08,v:1}]),r}function Yx(e){let t=Ym(e);return t.includes("slide left")?"slide-left":t.includes("slide right")?"slide-right":t.includes("slide down")?"slide-down":t.includes("zoom out")?"zoom-out":t.includes("zoom")?"zoom-in":t.includes("rotate")||t.includes("rotating")?"rotate-in":t.includes("pop")||t.includes("spark")?"pop":t.includes("bounce")?"bounce-in":t.includes("pulse")?"pulse":t.includes("float")?"float":t.includes("wobble")?"wobble":t.includes("shake")||t.includes("glitch")?"shake":t.includes("heartbeat")?"heartbeat":t.includes("fade out")?"fade-out":t.includes("fade")?"fade-in":"slide-up"}function wT(e){let t=Ym(e);return t.includes("typewriter")?"typewriter":t.includes("char")||t.includes("letter")?t.includes("pop")?"char-pop":"char-rise":t.includes("word")?"word-rise":null}function ST(e,t,a){let r=(e.surfaces||[]).includes("web")?a("nativeWebRecipe"):a("mappedFromRecipeIntent"),n=typeof t?.label=="string"?t.label:typeof t?.componentId=="string"?t.componentId:a("currentSelector");return`${r}; ${a("appliesToTarget",{target:n})}.`}function CT(e,t,a){let r=(e.surfaces||[]).includes("video")?a("nativeVideoRecipe"):a("convertedToLayerTemplate"),n=typeof t?.layerId=="string"?t.layerId:a("firstAvailableLayer");return`${r}; ${a("appliesToTarget",{target:n})}.`}function IT(e,t,a,r){let n=Rd(AT(Ym(e),"load"),r),o=typeof t?.label=="string"?t.label:r("htmlSelection"),i=typeof a?.layerId=="string"?r("layerWithId",{id:a.layerId}):r("videoLayer");return r("recipeUsageSummary",{trigger:n,htmlTarget:o,template:Yx(e),videoTarget:i})}function xT(e,t){try{return e.querySelector(t)!==null}catch{return!1}}function Jx(){return{opacity:[{t:0,v:0},{t:.5,v:1}],x:[{t:0,v:0},{t:.5,v:0}],y:[{t:0,v:24},{t:.5,v:0,ease:"ease-out"}],scale:[{t:0,v:.96},{t:.5,v:1}],rotate:[{t:0,v:0},{t:.5,v:0}],blur:[{t:0,v:8},{t:.5,v:0}]}}function kT(e){let t=e.selectedRecipe;return h("section",{className:"motion-library"},h("div",{className:"motion-stat-row"},h(tl,{label:e.t("recipes"),value:e.stats?.recipes}),h(tl,{label:e.t("htmlTemplates"),value:e.stats?.htmlTemplates}),h(tl,{label:e.t("videoTemplates"),value:e.stats?.videoTemplates}),h(tl,{label:e.t("icons"),value:e.stats?.icons})),h("div",{className:"motion-library-layout"},h("div",{className:"motion-card-grid"},e.recipes.map(a=>h("button",{key:a.id,type:"button",className:t?.id===a.id?"motion-card motion-recipe-card active":"motion-card motion-recipe-card",onClick:()=>e.onSelectRecipe(a.id)},h("div",{className:"motion-card-preview","data-kind":a.category||a.cat||"motion"},h("span",null,Qx(a))),h("div",null,h("h3",null,a.name),h("p",null,a.desc||a.description||a.id)),h("div",{className:"motion-chip-row"},(a.surfaces||[]).slice(0,2).map(r=>h("span",{key:r,className:"motion-chip"},r)),(a.target||[]).slice(0,1).map(r=>h("span",{key:r,className:"motion-chip"},r)),h("span",{className:"motion-chip"},a.status||e.t("ready"))))),e.recipes.length===0?h("div",{className:"motion-empty"},e.t("noRecipes")):null),h(Qt,{className:"motion-recipe-detail"},t?h(Ha,null,h("div",{className:"recipe-detail-head"},h("div",null,h("span",{className:"section-eyebrow"},e.t("selectedRecipe")),h("h2",null,t.name),h("p",null,t.desc||t.description||t.id)),h("div",{className:"motion-recipe-preview","data-kind":t.category||t.cat||"motion"},Qx(t))),h("div",{className:"motion-chip-row"},h("span",{className:"motion-chip"},t.category||t.cat||"motion"),(t.surfaces||[]).map(a=>h("span",{key:a,className:"motion-chip"},a)),(t.runtime||[]).slice(0,2).map(a=>h("span",{key:a,className:"motion-chip"},a))),h("div",{className:"recipe-fit-grid"},h("div",null,h("strong",null,e.t("htmlFit")),h("span",null,ST(t,e.componentSelection,e.t))),h("div",null,h("strong",null,e.t("videoFit")),h("span",null,CT(t,e.layerSelection,e.t)))),h("div",{className:"recipe-action-grid"},h(de,{onClick:()=>e.onApplyHtml(t)},e.t("applyToHtml")),h(de,{variant:"secondary",onClick:()=>e.onApplyVideo(t)},e.t("applyToVideo"))),h("div",{className:"recipe-usage-note"},h("strong",null,e.selectedProject?.title||e.t("referencedDraft")),h("span",null,IT(t,e.componentSelection,e.layerSelection,e.t)))):h("div",{className:"motion-empty"},e.t("recipeSelectEmpty")))))}var Xx={items:[],total:0,page:1,pageSize:20};function BV(){let[e,t]=O(null),[a,r]=O(()=>PT()),[n,o]=O("html"),[i,s]=O(null),[u,l]=O(!1),[c,d]=O(!1),[f,p]=O(!1),[g,m]=O(""),[x,v]=O(()=>({surface:"all",target:"all",status:"ready"})),[w,y]=O(null),[S,A]=O([]),[L,C]=O(!1),[I,D]=O(!1),[Z,N]=O(!1),[V,J]=O(""),[ee,T]=O("Motion Launch"),[_,Q]=O("Polished motion direction for a product moment."),[q,pe]=O(jV("Motion Launch")),[W,M]=O(""),[j,ce]=O(()=>JSON.stringify(RT("Motion Launch"),null,2)),[Me,Se]=O(.85),[B,F]=O(null),[ge,Le]=O(null),[Re,je]=O(null),[Ye,ra]=O(()=>({selector:"h1",trigger:"load",verb:"slide-up",duration:520,delay:0,distance:24,tracksJson:JSON.stringify(Jx(),null,2)})),St=H(null),Eo=H(!1),To=H(null),Fi=H(null),Ee=_e(()=>c1(e?.locale),[e?.locale]);K(()=>{Eo.current=Z},[Z]),K(()=>{To.current=i},[i]);let Ro=a.detail,ue=Ro?.item??a.projects.items.find(z=>z.id===i)??null,Hi=ue?.surface==="video"?ue.videoEngine??Ro?.workingCopy?.videoEngine??"legacy_canvas":"hyperframes",tv=me(z=>{if(!z)return;let ae=z.workingCopy?.html,Ke=z.workingCopy?.hyperframesHtml,at=z.workingCopy?.videoComposition;typeof ae=="string"&&ae.trim()&&pe(ae),M(typeof Ke=="string"?Ke:""),at&&typeof at=="object"&&ce(JSON.stringify(at,null,2)),Le(z.workingCopy?.componentSelection??null),je(z.workingCopy?.layerSelection??null),A([]),N(!1)},[]),Kt=me(async z=>{C(!0);try{let ae=z?.projectId??To.current??e?.initialQuery?.selectionId,Ke=n==="library"?"recipes":void 0,at=ET({table:Ke,projectId:typeof ae=="string"?ae:void 0,surface:Ke==="recipes"&&x.surface!=="all"?x.surface:void 0,target:Ke==="recipes"&&x.target!=="all"?x.target:void 0,status:Ke==="recipes"&&x.status!=="all"?x.status:void 0}),da=a0(await B1(ET({page:1,pageSize:Ke==="recipes"?36:20,search:n==="library"?g:void 0,parameters:at}))),pn=HV(da);r(pn);let Vn=pn.detail;Vn?.item?.id&&(s(Vn.item.id),(!Eo.current||z?.forceDraftSync)&&tv(Vn)),J(Ee("statusReady"))}catch(ae){let Ke=li(ae);J(Ke),nt("error",Ke)}finally{C(!1),setTimeout(Xu,0)}},[n,e?.initialQuery?.selectionId,x,g,tv,Ee]);K(()=>{Fi.current=Kt},[Kt]),K(()=>{F1({requestTimeout:e?.locale?.startsWith("zh")?"\u8BF7\u6C42\u8D85\u65F6":"Request timed out",remoteRequestFailed:e?.locale?.startsWith("zh")?"\u8FDC\u7A0B\u8BF7\u6C42\u5931\u8D25":"Remote request failed"})},[e?.locale]),K(()=>{H1(t,()=>{if(Eo.current){J(Ee("dirtyWarning")),nt("warning",Ee("dirtyWarning"));return}Fi.current?.({projectId:To.current,forceDraftSync:!0})}),el("ready")},[Ee]),K(()=>{e&&Kt({forceDraftSync:!0})},[e,Kt]),K(()=>{setTimeout(Xu,0)},[n,a,Z,V]),K(()=>{if(n!=="library")return;let z=a.recipes.items;if(z.length===0){y(null);return}z.some(ae=>ae.id===w)||y(z[0].id)},[n,w,a.recipes.items]),K(()=>{if(n!=="video"||Hi!=="legacy_canvas")return;let z=St.current;if(!z)return;let ae=z.getContext("2d");if(ae)try{let Ke=du(j),at=Md(Ke),da=Math.min(1,960/at.w);z.width=Math.max(1,Math.round(at.w*da)),z.height=Math.max(1,Math.round(at.h*da)),ae.save(),ae.scale(da,da),at.renderFrame(ae,Math.min(Me,at.duration()));let pn=typeof Re?.layerId=="string"?Re.layerId:"";if(pn){let Vn=$u(Ke,pn);if(Vn){let mn=e0(Vn);ae.save(),ae.strokeStyle="#8b5cf6",ae.lineWidth=4/da,ae.setLineDash([10/da,7/da]),ae.strokeRect(mn.x-mn.w/2,mn.y-mn.h/2,mn.w,mn.h),ae.restore()}}ae.restore()}catch{z.width=960,z.height=540,ae.fillStyle="#111827",ae.fillRect(0,0,z.width,z.height),ae.fillStyle="#f8fafc",ae.font="600 22px Inter, ui-sans-serif, system-ui, sans-serif",ae.fillText(Ee("invalidCompositionJson"),32,56)}},[n,Re,Ee,j,Hi,Me]);async function Ac(z){D(!0);try{let ae=await Jr("create_project",null,{title:ee,brief:_,surface:z,html:z==="web"?q:void 0,changeSummary:"Created in Motion Workbench"}),Ke=ev(ae),at=VV(Ke);at&&s(at),o(z==="video"?"video":"html"),N(!1),l(!1),await Kt({projectId:at,forceDraftSync:!0}),nt("success",Ee("projectCreated",{title:ee}))}catch(ae){Fa(ae)}finally{D(!1)}}async function NT(){if(!ue?.id){await Ac("web");return}D(!0);try{await Jr("save_web_artifact",ue.id,{projectId:ue.id,html:q,selectedRecipeIds:Jm([...ue.selectedRecipeIds||[],...S]),componentSelection:ge??void 0,changeSummary:"Saved from Motion HTML Workbench"},{projectId:ue.id}),N(!1),await Kt({projectId:ue.id,forceDraftSync:!0}),nt("success",Ee("htmlSaved"))}catch(z){Fa(z)}finally{D(!1)}}async function MT(){if(!ue?.id){await Ac("video");return}D(!0);try{await Jr("save_video_composition",ue.id,{projectId:ue.id,composition:du(j),selectedRecipeIds:Jm([...ue.selectedRecipeIds||[],...S]),layerSelection:Re??void 0,changeSummary:"Saved from Motion Video Composer"},{projectId:ue.id}),N(!1),await Kt({projectId:ue.id,forceDraftSync:!0}),nt("success",Ee("videoSaved"))}catch(z){Fa(z)}finally{D(!1)}}async function av(){if(!ue?.id)return null;let z=await hT(W),ae=await Jr("save_hyperframes_composition",ue.id,{projectId:ue.id,html:z,selectedRecipeIds:Jm([...ue.selectedRecipeIds||[],...S]),changeSummary:"Saved with HyperFrames SDK from Motion Workbench"},{projectId:ue.id});return M(z),N(!1),UV(ev(ae))??ue.artifactChecksum??null}async function DT(){if(!ue?.id){await Ac("video");return}D(!0);try{await av(),await Kt({projectId:ue.id,forceDraftSync:!0}),nt("success",Ee("hyperframesSaved"))}catch(z){Fa(z)}finally{D(!1)}}async function OT(z,ae){if(!(!ue?.id||Hi!=="hyperframes")){D(!0);try{let Ke=Z?await av():ue.artifactChecksum??Ro?.workingCopy?.artifactChecksum??null;await Jr("render_production",ue.id,{projectId:ue.id,kind:"mp4",quality:z,fps:ae,fileName:`${$x(ue.title)}.mp4`,expectedChecksum:Ke??void 0,changeSummary:`Queued ${z} ${ae}fps HyperFrames production render`},{projectId:ue.id}),await Kt({projectId:ue.id,forceDraftSync:!0}),nt("success",Ee("productionRenderQueued")),p(!0)}catch(Ke){Fa(Ke)}finally{D(!1)}}}async function _T(){if(ue?.id){D(!0);try{await Jr("finalize_version",ue.id,{projectId:ue.id,changeSummary:`Workbench version ${new Date().toLocaleString()}`},{projectId:ue.id}),await Kt({projectId:ue.id,forceDraftSync:!0}),nt("success",Ee("versionSaved"))}catch(z){Fa(z)}finally{D(!1)}}}async function BT(z){if(ue?.id){D(!0);try{await Jr("export_artifact",ue.id,{projectId:ue.id,kind:z,content:z==="html"?q:void 0,fileName:`${$x(ue.title)}.${qV(z)}`,changeSummary:`Exported ${z} from Motion Workbench`},{projectId:ue.id}),await Kt({projectId:ue.id}),nt("success",Ee("artifactExported",{kind:z.toUpperCase()}))}catch(ae){Fa(ae)}finally{D(!1)}}}async function FT(){if(ue?.id){if(!Wg()){nt("error",Ee("webCodecsUnavailable"));return}D(!0),F(0);try{let z=du(j),ae=Md(z);await ae.preload();let Ke=await u1(ae,{fps:ae.fps,bitrate:5e6,scale:1},da=>F(da)),at=new File([Ke],`${$x(ue.title)}.mp4`,{type:"video/mp4"});await Bd("save_export_file",ue.id,{projectId:ue.id,kind:"mp4",changeSummary:"Browser MP4 export from Motion Workbench"},{projectId:ue.id},at),await Kt({projectId:ue.id}),nt("success",Ee("mp4Exported"))}catch(z){Fa(z)}finally{D(!1),F(null)}}}async function HT(z){if(ue?.id){D(!0);try{await Jr("restore_version",ue.id,{projectId:ue.id,versionId:z,changeSummary:"Restored in Motion Workbench"},{projectId:ue.id}),N(!1),await Kt({projectId:ue.id,forceDraftSync:!0}),nt("success",Ee("versionRestored"))}catch(ae){Fa(ae)}finally{D(!1)}}}async function $m(z){if(ue?.id){D(!0);try{await Jr(z==="reviewed"?"mark_reviewed":z==="archived"?"archive_project":"mark_draft",ue.id,{projectId:ue.id},{projectId:ue.id}),await Kt({projectId:ue.id}),nt("success",Ee("projectStatusUpdated",{status:z}))}catch(ae){Fa(ae)}finally{D(!1)}}}function rv(z){y(z.id),A(ae=>Jm([...ae,z.id]))}function zT(z){try{let ae=vT(z,Ye,ge),Ke=typeof ge?.componentId=="string"?ge.componentId:"",at=Ke?ae:{...ae,selector:yT(q,ae.selector)},da=Ke?Hd(q,Ke,at):TT(q,at);ra(at),Le(Ke?{...ge||{},componentId:Ke,selectedRecipeId:z.id,selectedRecipeName:z.name}:{selectedRecipeId:z.id,selectedRecipeName:z.name,label:at.selector}),Zm(da),rv(z),o("html"),J(Ee("recipeAppliedToHtml",{name:z.name})),nt("success",Ee("recipeApplied",{name:z.name}))}catch(ae){Fa(ae)}}function VT(z){if(Hi==="hyperframes"){y(z.id),J(Ee("hyperframesRecipeHelp")),nt("warning",Ee("hyperframesRecipeHelp"));return}try{let ae=du(j),Ke=typeof Re?.layerId=="string"?Re.layerId:"",at=typeof Re?.sceneIndex=="number"?Re.sceneIndex:-1,da=[...ae.shared||[],...ps(ae,at)],pn=Ke?$u(ae,Ke,at):da[0]??null;if(!pn?.id)throw new Error(Ee("selectLayerFirst"));let Vn=Yx(z),mn=wT(z),KT=si(ae,at,pn.id,ov=>{let iv=Od(ov,Vn);return mn&&ov.type==="text"?{...iv,kinetic:{type:mn,stagger:.04}}:iv});nv(JSON.stringify(KT,null,2)),je({layerId:pn.id,sceneIndex:at,selectedRecipeId:z.id,selectedRecipeName:z.name}),rv(z),o("video"),J(Ee("recipeAppliedToVideo",{name:z.name})),nt("success",Ee("recipeApplied",{name:z.name}))}catch(ae){Fa(ae)}}function Fa(z){let ae=li(z);J(ae),nt("error",ae)}function Zm(z){pe(z),N(!0)}function nv(z){ce(z),N(!0)}function UT(z){M(z),N(!0)}function GT(){try{Zm(TT(q,Ye)),J(Ee("motionApplied"))}catch(z){Fa(z)}}let WT=_e(()=>{try{return Md(du(j)).duration()}catch{return 5}},[j]),Xm=n==="html"||n==="video",jT=n==="library",qT=a.recipes.items.find(z=>z.id===w)??a.recipes.items[0]??null,wc={title:ue?.title||"Motion Workbench",dirty:Z,statusLabel:ue?.status||"draft",activeTab:n,onTabChange:o,onOpenProjects:()=>l(!0),onOpenVersions:()=>d(!0),onOpenExports:()=>p(!0)};return h("main",{className:Xm?"motion-shell motion-shell-editor":"motion-shell"},h(X1,{open:u,projects:a.projects.items,selectedProjectId:i,title:ee,brief:_,saving:I,t:Ee,onOpenChange:l,onTitleChange:T,onBriefChange:Q,onCreate:Ac,onSelect:z=>{Kt({projectId:z,forceDraftSync:!0})}}),h(eC,{open:c,versions:Ro?.versions||[],currentId:Ro?.currentVersion?.id,saving:I,t:Ee,onOpenChange:d,onCreateVersion:_T,onRestore:HT}),h(tC,{open:f,exports:Ro?.exports||[],selectedProject:ue,t:Ee,onOpenChange:p,onReviewed:()=>{$m("reviewed")},onDraft:()=>{$m("draft")},onArchive:()=>{$m("archived")}}),Xm?null:h(Y1,{header:wc,t:Ee}),jT&&!Xm?h("section",{className:"motion-status-row"},h(ba,{value:g,onChange:z=>m(z.target.value),onKeyDown:z=>{z.key==="Enter"&&Kt()},placeholder:Ee("search")}),h(de,{onClick:()=>{Kt()},disabled:L},Ee("search")),h("span",null,L?Ee("loading"):V)):null,n==="library"?h("section",{className:"motion-library-command"},h("div",null,h("strong",null,Ee("library")),h("span",null,Ee("libraryHelp"))),h("div",{className:"motion-filter-row"},h(Ta,{className:"library-filter-select",value:x.surface,options:Yr(W1,Ee),onValueChange:z=>v(ae=>({...ae,surface:z}))}),h(Ta,{className:"library-filter-select",value:x.target,options:Yr(j1,Ee),onValueChange:z=>v(ae=>({...ae,target:z}))}),h(Ta,{className:"library-filter-select",value:x.status,options:Yr(q1,Ee),onValueChange:z=>v(ae=>({...ae,status:z}))}))):null,n==="library"?h(kT,{recipes:a.recipes.items,stats:a.libraryStats,selectedRecipe:qT,selectedProject:ue,componentSelection:ge,layerSelection:Re,t:Ee,onSelectRecipe:y,onApplyHtml:zT,onApplyVideo:VT}):null,n==="html"?h(dC,{controls:Ye,htmlDraft:q,componentSelection:ge,saving:I,selectedProject:ue,header:wc,t:Ee,onControlsChange:ra,onApply:GT,onDraftChange:Zm,onComponentSelectionChange:Le,onSave:()=>{NT()},onExport:BT}):null,n==="video"&&Hi==="legacy_canvas"?h(pC,{canvasRef:St,videoDraft:j,videoTime:Me,selectedProject:ue,layerSelection:Re,header:wc,t:Ee,duration:WT,saving:I,exportProgress:B,parseVideoComposition:du,defaultComposition:RT,extractMediaPayload:FV,onDraftChange:nv,onTimeChange:Se,onLayerSelectionChange:je,onSave:()=>{MT()},onExportMp4:()=>{FT()}}):null,n==="video"&&Hi==="hyperframes"?h(bT,{htmlDraft:W,selectedProject:ue,header:wc,t:Ee,saving:I,renderCapability:a.renderCapability,latestExport:Ro?.exports?.find(z=>z.backend==="hyperframes")??null,onDraftChange:UT,onSave:()=>{DT()},onRender:(z,ae)=>{OT(z,ae)}}):null)}function Jm(e){return Array.from(new Set(e.filter(t=>typeof t=="string"&&t.trim()).map(t=>t.trim())))}function FV(e){let t=ev(e);if(!dt(t)||!dt(t.media))return null;let a=t.media;return{src:typeof a.src=="string"?a.src:typeof a.fileUrl=="string"?a.fileUrl:typeof a.workspacePath=="string"?a.workspacePath:typeof a.filePath=="string"?a.filePath:"",filePath:typeof a.filePath=="string"?a.filePath:void 0,fileUrl:typeof a.fileUrl=="string"?a.fileUrl:void 0,mimeType:typeof a.mimeType=="string"?a.mimeType:void 0}}function PT(){return{projects:Xx,recipes:Xx,styles:[],detail:null,libraryStats:{},renderCapability:{available:!1,reason:"NOT_LOADED",message:"Production render capability has not loaded."}}}function HV(e){return dt(e)?{projects:LT(e.projects),recipes:LT(e.recipes),styles:Array.isArray(e.styles)?e.styles:[],detail:zV(e.detail),libraryStats:dt(e.libraryStats)?e.libraryStats:{},renderCapability:dt(e.renderCapability)&&typeof e.renderCapability.available=="boolean"?e.renderCapability:{available:!1,reason:"UNAVAILABLE",message:"Production render capability is unavailable."}}:PT()}function LT(e){return dt(e)?{items:Array.isArray(e.items)?e.items:[],total:typeof e.total=="number"?e.total:0,page:typeof e.page=="number"?e.page:1,pageSize:typeof e.pageSize=="number"?e.pageSize:20}:{...Xx,items:[]}}function zV(e){return!dt(e)||!dt(e.item)||typeof e.item.id!="string"?null:e}function ev(e){let t=a0(e);return dt(t)&&t.data!==void 0?t.data:t}function VV(e){return dt(e)&&dt(e.item)&&typeof e.item.id=="string"?e.item.id:dt(e)&&dt(e.project)&&typeof e.project.id=="string"?e.project.id:null}function UV(e){return dt(e)&&dt(e.project)&&typeof e.project.artifactChecksum=="string"?e.project.artifactChecksum:dt(e)&&dt(e.item)&&typeof e.item.artifactChecksum=="string"?e.item.artifactChecksum:null}function ET(e){let t={};for(let[a,r]of Object.entries(e))r!=null&&r!==""&&(t[a]=r);return t}function du(e){let t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))throw new Error("Composition must be a JSON object.");return t}function TT(e,t){let r=new DOMParser().parseFromString(e,"text/html"),n=t.selector.trim()||"body > *",o;try{o=Array.from(r.querySelectorAll(n))}catch{throw new Error("Selector is invalid.")}if(o.length===0)throw new Error("Selector matched no elements.");let i=GV(t.tracksJson);for(let s of o.slice(0,50))s.setAttribute("data-ma-anim",t.verb),s.setAttribute("data-ma-trigger",t.trigger),s.setAttribute("data-ma-dur",String(Zx(t.duration,80,4e3))),s.setAttribute("data-ma-delay",String(Zx(t.delay,0,8e3))),s.setAttribute("data-ma-dist",String(Zx(t.distance,-400,400))),s.setAttribute("data-ma-tracks",JSON.stringify(i));return`<!doctype html>
631
+ ${r.documentElement.outerHTML}`}function GV(e){let t=JSON.parse(e),a={};for(let r of Fd)Array.isArray(t[r])&&(a[r]=t[r]);return a}function WV(e,t=40){return{opacity:[{t:0,v:0},{t:.5,v:1}],y:[{t:0,v:e+t},{t:.5,v:e,ease:"ease-out"}],scale:[{t:0,v:.96},{t:.5,v:1}],blur:[{t:0,v:8},{t:.5,v:0}]}}function jV(e){return`<!doctype html>
117
632
  <html lang="en">
118
633
  <head>
119
634
  <meta charset="utf-8">
120
635
  <meta name="viewport" content="width=device-width, initial-scale=1">
121
- <title>${i0(e)}</title>
636
+ <title>${KV(e)}</title>
122
637
  <style>
123
638
  body{margin:0;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:#f8fafc;color:#111827}
124
639
  main{min-height:100vh;display:grid;place-items:center;padding:56px}
@@ -135,4 +650,4 @@ ${o.documentElement.outerHTML}`}function a0(e){let t=JSON.parse(e),a={};for(let
135
650
  </section>
136
651
  </main>
137
652
  </body>
138
- </html>`}function Im(e){return{w:1280,h:720,fps:30,bg:"#111827",duration:5,shared:[{id:"backplate",type:"rect",x:640,y:360,w:920,h:360,color:"#1f2937",opacity:.86,tracks:{scale:[{t:0,v:.94},{t:.8,v:1,ease:"ease-out"}],opacity:[{t:0,v:0},{t:.6,v:.86}]}}],layers:[{id:"title",type:"text",text:e,x:640,y:330,size:76,weight:800,color:"#ffffff",tracks:o0(330,46)},{id:"subtitle",type:"text",text:"Agent-crafted motion, ready for review.",x:640,y:430,size:34,weight:500,color:"#a7f3d0",tracks:{opacity:[{t:.25,v:0},{t:1.1,v:1}],y:[{t:.25,v:458},{t:1.1,v:430,ease:"ease-out"}]}}]}}function n0(e){return e==="react"?"tsx":e==="lottie"?"lottie.json":e}function km(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)||"motion"}function Qs(e,t,a){return Math.max(t,Math.min(a,Number.isFinite(e)?e:t))}function i0(e){return e.replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t]||t)}dl(document.getElementById("root")||document.body.appendChild(document.createElement("div"))).render(f(Jy,null));})();
653
+ </html>`}function RT(e){return{w:1280,h:720,fps:30,bg:"#111827",duration:5,shared:[{id:"backplate",type:"rect",x:640,y:360,w:920,h:360,color:"#1f2937",opacity:.86,tracks:{scale:[{t:0,v:.94},{t:.8,v:1,ease:"ease-out"}],opacity:[{t:0,v:0},{t:.6,v:.86}]}}],layers:[{id:"title",type:"text",text:e,x:640,y:330,size:76,weight:800,color:"#ffffff",tracks:WV(330,46)},{id:"subtitle",type:"text",text:"Agent-crafted motion, ready for review.",x:640,y:430,size:34,weight:500,color:"#a7f3d0",tracks:{opacity:[{t:.25,v:0},{t:1.1,v:1}],y:[{t:.25,v:458},{t:1.1,v:430,ease:"ease-out"}]}}]}}function qV(e){return e==="react"?"tsx":e==="lottie"?"lottie.json":e}function $x(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)||"motion"}function Zx(e,t,a){return Math.max(t,Math.min(a,Number.isFinite(e)?e:t))}function KV(e){return e.replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t]||t)}dv(document.getElementById("root")||document.body.appendChild(document.createElement("div"))).render(h(BV,null));})();