leedab 0.7.1 → 0.7.2

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 (140) hide show
  1. package/README.md +4 -7
  2. package/apps/console/.next/standalone/.next/BUILD_ID +1 -1
  3. package/apps/console/.next/standalone/.next/app-build-manifest.json +151 -151
  4. package/apps/console/.next/standalone/.next/app-path-routes-manifest.json +51 -51
  5. package/apps/console/.next/standalone/.next/build-manifest.json +2 -2
  6. package/apps/console/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  7. package/apps/console/.next/standalone/.next/server/app/_not-found.html +1 -1
  8. package/apps/console/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  9. package/apps/console/.next/standalone/.next/server/app/api/agent/route_client-reference-manifest.js +1 -1
  10. package/apps/console/.next/standalone/.next/server/app/api/approvals/route_client-reference-manifest.js +1 -1
  11. package/apps/console/.next/standalone/.next/server/app/api/approvals/stream/route_client-reference-manifest.js +1 -1
  12. package/apps/console/.next/standalone/.next/server/app/api/automation/workflow-blueprint/route_client-reference-manifest.js +1 -1
  13. package/apps/console/.next/standalone/.next/server/app/api/backend/endpoint-spec/route_client-reference-manifest.js +1 -1
  14. package/apps/console/.next/standalone/.next/server/app/api/bootstrap-admin-token/route_client-reference-manifest.js +1 -1
  15. package/apps/console/.next/standalone/.next/server/app/api/brand/brand-audit/route_client-reference-manifest.js +1 -1
  16. package/apps/console/.next/standalone/.next/server/app/api/campaigns/campaign-brief/route_client-reference-manifest.js +1 -1
  17. package/apps/console/.next/standalone/.next/server/app/api/champion/confidence/route_client-reference-manifest.js +1 -1
  18. package/apps/console/.next/standalone/.next/server/app/api/champion/customer/route_client-reference-manifest.js +1 -1
  19. package/apps/console/.next/standalone/.next/server/app/api/champion/dispatches/route_client-reference-manifest.js +1 -1
  20. package/apps/console/.next/standalone/.next/server/app/api/champion/engagement/route_client-reference-manifest.js +1 -1
  21. package/apps/console/.next/standalone/.next/server/app/api/champion/escalate/route_client-reference-manifest.js +1 -1
  22. package/apps/console/.next/standalone/.next/server/app/api/champion/profile/route_client-reference-manifest.js +1 -1
  23. package/apps/console/.next/standalone/.next/server/app/api/champion/screenshare/route_client-reference-manifest.js +1 -1
  24. package/apps/console/.next/standalone/.next/server/app/api/champion/track-question/route_client-reference-manifest.js +1 -1
  25. package/apps/console/.next/standalone/.next/server/app/api/champion/use-case-wiki/route_client-reference-manifest.js +1 -1
  26. package/apps/console/.next/standalone/.next/server/app/api/chat/route_client-reference-manifest.js +1 -1
  27. package/apps/console/.next/standalone/.next/server/app/api/compliance/risk-register-seed/route_client-reference-manifest.js +1 -1
  28. package/apps/console/.next/standalone/.next/server/app/api/computer-use/[id]/route_client-reference-manifest.js +1 -1
  29. package/apps/console/.next/standalone/.next/server/app/api/computer-use/route_client-reference-manifest.js +1 -1
  30. package/apps/console/.next/standalone/.next/server/app/api/concierge/morning-brief/route_client-reference-manifest.js +1 -1
  31. package/apps/console/.next/standalone/.next/server/app/api/contacts/route_client-reference-manifest.js +1 -1
  32. package/apps/console/.next/standalone/.next/server/app/api/content/seo-brief/route_client-reference-manifest.js +1 -1
  33. package/apps/console/.next/standalone/.next/server/app/api/conversations/route_client-reference-manifest.js +1 -1
  34. package/apps/console/.next/standalone/.next/server/app/api/coo/route_client-reference-manifest.js +1 -1
  35. package/apps/console/.next/standalone/.next/server/app/api/cx/escalation-triage/route_client-reference-manifest.js +1 -1
  36. package/apps/console/.next/standalone/.next/server/app/api/cx/health-score/route_client-reference-manifest.js +1 -1
  37. package/apps/console/.next/standalone/.next/server/app/api/data/cohort-brief/route_client-reference-manifest.js +1 -1
  38. package/apps/console/.next/standalone/.next/server/app/api/delivery/qbr-brief/route_client-reference-manifest.js +1 -1
  39. package/apps/console/.next/standalone/.next/server/app/api/delivery/weekly-brief/route_client-reference-manifest.js +1 -1
  40. package/apps/console/.next/standalone/.next/server/app/api/dev/invalidate-cache/route_client-reference-manifest.js +1 -1
  41. package/apps/console/.next/standalone/.next/server/app/api/devops/runbook/route_client-reference-manifest.js +1 -1
  42. package/apps/console/.next/standalone/.next/server/app/api/email/sequence-brief/route_client-reference-manifest.js +1 -1
  43. package/apps/console/.next/standalone/.next/server/app/api/engineering/adr-draft/route_client-reference-manifest.js +1 -1
  44. package/apps/console/.next/standalone/.next/server/app/api/finance/runway-snapshot/route_client-reference-manifest.js +1 -1
  45. package/apps/console/.next/standalone/.next/server/app/api/frontend/component-spec/route_client-reference-manifest.js +1 -1
  46. package/apps/console/.next/standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  47. package/apps/console/.next/standalone/.next/server/app/api/implementation/brief/route_client-reference-manifest.js +1 -1
  48. package/apps/console/.next/standalone/.next/server/app/api/implementation/scaffold-migration-script/route_client-reference-manifest.js +1 -1
  49. package/apps/console/.next/standalone/.next/server/app/api/implementation/scaffold-n8n-workflow/route_client-reference-manifest.js +1 -1
  50. package/apps/console/.next/standalone/.next/server/app/api/implementation/scaffold-skill-override/route_client-reference-manifest.js +1 -1
  51. package/apps/console/.next/standalone/.next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  52. package/apps/console/.next/standalone/.next/server/app/api/inbox/stream/route_client-reference-manifest.js +1 -1
  53. package/apps/console/.next/standalone/.next/server/app/api/investor/kpi-tracker/route_client-reference-manifest.js +1 -1
  54. package/apps/console/.next/standalone/.next/server/app/api/leedab/channels/status/route_client-reference-manifest.js +1 -1
  55. package/apps/console/.next/standalone/.next/server/app/api/leedab/channels/telegram/connect/route_client-reference-manifest.js +1 -1
  56. package/apps/console/.next/standalone/.next/server/app/api/leedab/channels/whatsapp/connect/route_client-reference-manifest.js +1 -1
  57. package/apps/console/.next/standalone/.next/server/app/api/leedab/gtm/leads/[id]/route_client-reference-manifest.js +1 -1
  58. package/apps/console/.next/standalone/.next/server/app/api/leedab/gtm/leads/[id]/status/route_client-reference-manifest.js +1 -1
  59. package/apps/console/.next/standalone/.next/server/app/api/leedab/gtm/templates/[name]/route_client-reference-manifest.js +1 -1
  60. package/apps/console/.next/standalone/.next/server/app/api/leedab/license/route.js +1 -1
  61. package/apps/console/.next/standalone/.next/server/app/api/leedab/license/route_client-reference-manifest.js +1 -1
  62. package/apps/console/.next/standalone/.next/server/app/api/leedab/models/route_client-reference-manifest.js +1 -1
  63. package/apps/console/.next/standalone/.next/server/app/api/leedab/providers/route_client-reference-manifest.js +1 -1
  64. package/apps/console/.next/standalone/.next/server/app/api/leedab/sessions/[id]/route_client-reference-manifest.js +1 -1
  65. package/apps/console/.next/standalone/.next/server/app/api/leedab/sessions/route_client-reference-manifest.js +1 -1
  66. package/apps/console/.next/standalone/.next/server/app/api/leedab/team/[id]/route_client-reference-manifest.js +1 -1
  67. package/apps/console/.next/standalone/.next/server/app/api/leedab/team/route_client-reference-manifest.js +1 -1
  68. package/apps/console/.next/standalone/.next/server/app/api/leedab/vault/route_client-reference-manifest.js +1 -1
  69. package/apps/console/.next/standalone/.next/server/app/api/leedab/workflows/route_client-reference-manifest.js +1 -1
  70. package/apps/console/.next/standalone/.next/server/app/api/legal/clause-template/route_client-reference-manifest.js +1 -1
  71. package/apps/console/.next/standalone/.next/server/app/api/manifest/agents/custom/draft/route_client-reference-manifest.js +1 -1
  72. package/apps/console/.next/standalone/.next/server/app/api/manifest/agents/custom/route.js +1 -1
  73. package/apps/console/.next/standalone/.next/server/app/api/manifest/agents/custom/route_client-reference-manifest.js +1 -1
  74. package/apps/console/.next/standalone/.next/server/app/api/manifest/agents/route.js +1 -1
  75. package/apps/console/.next/standalone/.next/server/app/api/manifest/agents/route_client-reference-manifest.js +1 -1
  76. package/apps/console/.next/standalone/.next/server/app/api/marketing/cadence-planner/route_client-reference-manifest.js +1 -1
  77. package/apps/console/.next/standalone/.next/server/app/api/marketing/competitive-snapshot/route_client-reference-manifest.js +1 -1
  78. package/apps/console/.next/standalone/.next/server/app/api/marketplace/catalogue/route_client-reference-manifest.js +1 -1
  79. package/apps/console/.next/standalone/.next/server/app/api/onboarding/engagement-plan/route_client-reference-manifest.js +1 -1
  80. package/apps/console/.next/standalone/.next/server/app/api/onboarding/kickoff-brief/route_client-reference-manifest.js +1 -1
  81. package/apps/console/.next/standalone/.next/server/app/api/openclaw/status/route_client-reference-manifest.js +1 -1
  82. package/apps/console/.next/standalone/.next/server/app/api/ops/dispatch-brief/route_client-reference-manifest.js +1 -1
  83. package/apps/console/.next/standalone/.next/server/app/api/pack/route_client-reference-manifest.js +1 -1
  84. package/apps/console/.next/standalone/.next/server/app/api/people/job-brief/route_client-reference-manifest.js +1 -1
  85. package/apps/console/.next/standalone/.next/server/app/api/preferences/route_client-reference-manifest.js +1 -1
  86. package/apps/console/.next/standalone/.next/server/app/api/procurement/po-brief/route_client-reference-manifest.js +1 -1
  87. package/apps/console/.next/standalone/.next/server/app/api/product/prd-draft/route_client-reference-manifest.js +1 -1
  88. package/apps/console/.next/standalone/.next/server/app/api/research/prospect-intel/route_client-reference-manifest.js +1 -1
  89. package/apps/console/.next/standalone/.next/server/app/api/research/search/route_client-reference-manifest.js +1 -1
  90. package/apps/console/.next/standalone/.next/server/app/api/routing/route_client-reference-manifest.js +1 -1
  91. package/apps/console/.next/standalone/.next/server/app/api/runs/route_client-reference-manifest.js +1 -1
  92. package/apps/console/.next/standalone/.next/server/app/api/sales/pipeline-summary/route_client-reference-manifest.js +1 -1
  93. package/apps/console/.next/standalone/.next/server/app/api/sales/prospect-brief/route_client-reference-manifest.js +1 -1
  94. package/apps/console/.next/standalone/.next/server/app/api/solutions/build/route_client-reference-manifest.js +1 -1
  95. package/apps/console/.next/standalone/.next/server/app/api/solutions/quickstart-regenerate/route_client-reference-manifest.js +1 -1
  96. package/apps/console/.next/standalone/.next/server/app/api/solutions/refine/route_client-reference-manifest.js +1 -1
  97. package/apps/console/.next/standalone/.next/server/app/api/strategy/market-pulse/route_client-reference-manifest.js +1 -1
  98. package/apps/console/.next/standalone/.next/server/app/api/telegram/[customerId]/route_client-reference-manifest.js +1 -1
  99. package/apps/console/.next/standalone/.next/server/app/api/templates/regenerate/route_client-reference-manifest.js +1 -1
  100. package/apps/console/.next/standalone/.next/server/app/api/templates/route_client-reference-manifest.js +1 -1
  101. package/apps/console/.next/standalone/.next/server/app/api/uploads/[id]/route_client-reference-manifest.js +1 -1
  102. package/apps/console/.next/standalone/.next/server/app/api/uploads/route_client-reference-manifest.js +1 -1
  103. package/apps/console/.next/standalone/.next/server/app/api/usage/route_client-reference-manifest.js +1 -1
  104. package/apps/console/.next/standalone/.next/server/app/api/video/video-script/route_client-reference-manifest.js +1 -1
  105. package/apps/console/.next/standalone/.next/server/app/api/webhooks/workflow/[id]/route_client-reference-manifest.js +1 -1
  106. package/apps/console/.next/standalone/.next/server/app/api/workflows/[id]/history/[runId]/route_client-reference-manifest.js +1 -1
  107. package/apps/console/.next/standalone/.next/server/app/api/workflows/[id]/history/route_client-reference-manifest.js +1 -1
  108. package/apps/console/.next/standalone/.next/server/app/api/workflows/[id]/route_client-reference-manifest.js +1 -1
  109. package/apps/console/.next/standalone/.next/server/app/api/workflows/[id]/run/route_client-reference-manifest.js +1 -1
  110. package/apps/console/.next/standalone/.next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  111. package/apps/console/.next/standalone/.next/server/app/gtm/page_client-reference-manifest.js +1 -1
  112. package/apps/console/.next/standalone/.next/server/app/index.html +1 -1
  113. package/apps/console/.next/standalone/.next/server/app/index.rsc +2 -2
  114. package/apps/console/.next/standalone/.next/server/app/page.js +10 -2
  115. package/apps/console/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  116. package/apps/console/.next/standalone/.next/server/app-paths-manifest.json +51 -51
  117. package/apps/console/.next/standalone/.next/server/chunks/381.js +1 -1
  118. package/apps/console/.next/standalone/.next/server/chunks/4768.js +1 -1
  119. package/apps/console/.next/standalone/.next/server/chunks/7907.js +1 -1
  120. package/apps/console/.next/standalone/.next/server/functions-config-manifest.json +42 -42
  121. package/apps/console/.next/standalone/.next/server/pages/404.html +1 -1
  122. package/apps/console/.next/standalone/.next/server/pages/500.html +1 -1
  123. package/apps/console/.next/standalone/.next/server/pages-manifest.json +1 -1
  124. package/apps/console/.next/standalone/.next/static/chunks/3395-dff1a405a54e72f2.js +1 -0
  125. package/apps/console/.next/standalone/.next/static/chunks/app/page-efaf5b25f1b4bcdf.js +1 -0
  126. package/apps/console/.next/static/chunks/3395-dff1a405a54e72f2.js +1 -0
  127. package/apps/console/.next/static/chunks/app/page-efaf5b25f1b4bcdf.js +1 -0
  128. package/bin/leedab.js +23 -8
  129. package/dist/first-run/ensure.d.ts +1 -0
  130. package/dist/first-run/ensure.js +132 -0
  131. package/dist/onboard/index.js +11 -64
  132. package/package.json +1 -1
  133. package/apps/console/.next/standalone/.next/static/chunks/7973-072db1a3857a8fe9.js +0 -1
  134. package/apps/console/.next/standalone/.next/static/chunks/app/page-bdfdbf7b657f4722.js +0 -1
  135. package/apps/console/.next/static/chunks/7973-072db1a3857a8fe9.js +0 -1
  136. package/apps/console/.next/static/chunks/app/page-bdfdbf7b657f4722.js +0 -1
  137. /package/apps/console/.next/standalone/.next/static/{B4g4e91OJP29sEqgIs76V → CLtH7rcbrrXTBpzawMULl}/_buildManifest.js +0 -0
  138. /package/apps/console/.next/standalone/.next/static/{B4g4e91OJP29sEqgIs76V → CLtH7rcbrrXTBpzawMULl}/_ssgManifest.js +0 -0
  139. /package/apps/console/.next/static/{B4g4e91OJP29sEqgIs76V → CLtH7rcbrrXTBpzawMULl}/_buildManifest.js +0 -0
  140. /package/apps/console/.next/static/{B4g4e91OJP29sEqgIs76V → CLtH7rcbrrXTBpzawMULl}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3395],{11:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var i,r=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(i in e);return void 0===i||t.call(e,i)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(r)return r(e,n).value}return e[n]};e.exports=function e(){var t,n,i,r,u,c,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<p;++d)if(t=arguments[d],null!=t)for(n in t)i=a(h,n),h!==(r=a(t,n))&&(f&&r&&(s(r)||(u=o(r)))?(u?(u=!1,c=i&&o(i)?i:[]):c=i&&s(i)?i:{},l(h,{name:n,newValue:e(f,c,r)})):void 0!==r&&l(h,{name:n,newValue:r}));return h}},296:(e,t,n)=>{n.d(t,{L:()=>i});let i=(0,n(2115).createContext)({})},856:(e,t,n)=>{n.d(t,{oz:()=>nM});var i={};n.r(i),n.d(i,{boolean:()=>g,booleanish:()=>y,commaOrSpaceSeparated:()=>k,commaSeparated:()=>w,number:()=>x,overloadedBoolean:()=>v,spaceSeparated:()=>b});var r={};n.r(r),n.d(r,{attentionMarkers:()=>tP,contentInitial:()=>tw,disable:()=>tM,document:()=>tb,flow:()=>tS,flowInitial:()=>tk,insideSpan:()=>tC,string:()=>tT,text:()=>tE});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function a(e,t){return((t||l).jsx?s:o).test(e)}let u=/[ \t\n\f\r]/g;function c(e){return""===e.replace(u,"")}class h{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function d(e,t){let n={},i={};for(let t of e)Object.assign(n,t.property),Object.assign(i,t.normal);return new h(n,i,t)}function p(e){return e.toLowerCase()}h.prototype.normal={},h.prototype.property={},h.prototype.space=void 0;class f{constructor(e,t){this.attribute=t,this.property=e}}f.prototype.attribute="",f.prototype.booleanish=!1,f.prototype.boolean=!1,f.prototype.commaOrSpaceSeparated=!1,f.prototype.commaSeparated=!1,f.prototype.defined=!1,f.prototype.mustUseProperty=!1,f.prototype.number=!1,f.prototype.overloadedBoolean=!1,f.prototype.property="",f.prototype.spaceSeparated=!1,f.prototype.space=void 0;let m=0,g=S(),y=S(),v=S(),x=S(),b=S(),w=S(),k=S();function S(){return 2**++m}let T=Object.keys(i);class E extends f{constructor(e,t,n,r){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++o<T.length;){let e=T[o];!function(e,t,n){n&&(e[t]=n)}(this,T[o],(n&i[e])===i[e])}}}function C(e){let t={},n={};for(let[i,r]of Object.entries(e.properties)){let o=new E(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[p(i)]=i,n[p(o.attribute)]=i}return new h(t,n,e.space)}E.prototype.defined=!0;let P=C({properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:b,ariaCurrent:null,ariaDescribedBy:b,ariaDetails:null,ariaDisabled:y,ariaDropEffect:b,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:b,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:b,ariaLevel:x,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:b,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:b,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:y,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function M(e,t){return t in e?e[t]:t}function A(e,t){return M(e,t.toLowerCase())}let D=C({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:b,accessKey:b,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:b,autoFocus:g,autoPlay:g,blocking:b,capture:null,charSet:null,checked:g,cite:null,className:b,cols:x,colSpan:null,content:null,contentEditable:y,controls:g,controlsList:b,coords:x|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:b,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:b,httpEquiv:b,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:b,itemRef:b,itemScope:g,itemType:b,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:x,pattern:null,ping:b,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:b,required:g,reversed:g,rows:x,rowSpan:x,sandbox:b,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:b,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:A}),R=C({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:k,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:b,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:b,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:k,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:k,rev:k,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:k,requiredFeatures:k,requiredFonts:k,requiredFormats:k,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:k,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:M}),L=C({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),I=C({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:A}),O=C({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),V=d([P,D,L,I,O],"html"),F=d([P,R,L,I,O],"svg"),j=/[A-Z]/g,B=/-[a-z]/g,z=/^data[-\w.:]+$/i;function N(e){return"-"+e.toLowerCase()}function U(e){return e.charAt(1).toUpperCase()}let _={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var H=n(4185);let W=$("end"),Y=$("start");function $(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function q(e){return e&&"object"==typeof e?"position"in e||"type"in e?X(e.position):"start"in e||"end"in e?X(e):"line"in e||"column"in e?K(e):"":""}function K(e){return G(e&&e.line)+":"+G(e&&e.column)}function X(e){return K(e&&e.start)+"-"+K(e&&e.end)}function G(e){return e&&"number"==typeof e?e:1}class Z extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",r={},o=!1;if(t&&(r="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!r.cause&&e&&(o=!0,i=e.message,r.cause=e),!r.ruleId&&!r.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?r.ruleId=n:(r.source=n.slice(0,e),r.ruleId=n.slice(e+1))}if(!r.place&&r.ancestors&&r.ancestors){let e=r.ancestors[r.ancestors.length-1];e&&(r.place=e.position)}let s=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=q(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=o&&r.cause&&"string"==typeof r.cause.stack?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Z.prototype.file="",Z.prototype.name="",Z.prototype.reason="",Z.prototype.message="",Z.prototype.stack="",Z.prototype.column=void 0,Z.prototype.line=void 0,Z.prototype.ancestors=void 0,Z.prototype.cause=void 0,Z.prototype.fatal=void 0,Z.prototype.place=void 0,Z.prototype.ruleId=void 0,Z.prototype.source=void 0;let Q={}.hasOwnProperty,J=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),ei="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function er(e,t,n){return"element"===t.type?function(e,t,n){let i=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===i.space&&(e.schema=F),e.ancestors.push(t);let r=ea(e,t.tagName,!1),o=function(e,t){let n,i,r={};for(i in t.properties)if("children"!==i&&Q.call(t.properties,i)){let o=function(e,t,n){let i=function(e,t){let n=p(t),i=t,r=f;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&z.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(B,U);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!B.test(e)){let n=e.replace(j,N);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=E}return new r(i,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===i.property){let t="object"==typeof n?n:function(e,t){try{return H(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Z("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=ei+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)Q.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&i.space?_[i.property]||i.property:i.attribute,n]}}(e,i,t.properties[i]);if(o){let[i,s]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof s&&en.has(t.tagName)?n=s:r[i]=s}}return n&&((r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),r}(e,t),s=el(e,t);return et.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),eo(e,o,r,t),es(o,s),e.ancestors.pop(),e.schema=i,e.create(t,r,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eu(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let i=e.schema;"svg"===t.name&&"html"===i.space&&(e.schema=F),e.ancestors.push(t);let r=null===t.name?e.Fragment:ea(e,t.name,!0),o=function(e,t){let n={};for(let i of t.attributes)if("mdxJsxExpressionAttribute"===i.type)if(i.data&&i.data.estree&&e.evaluater){let t=i.data.estree.body[0];t.type;let r=t.expression;r.type;let o=r.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else eu(e,t.position);else{let r,o=i.name;if(i.value&&"object"==typeof i.value)if(i.value.data&&i.value.data.estree&&e.evaluater){let t=i.value.data.estree.body[0];t.type,r=e.evaluater.evaluateExpression(t.expression)}else eu(e,t.position);else r=null===i.value||i.value;n[o]=r}return n}(e,t),s=el(e,t);return eo(e,o,r,t),es(o,s),e.ancestors.pop(),e.schema=i,e.create(t,r,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eu(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let i={};return es(i,el(e,t)),e.create(t,e.Fragment,i,n)}(e,t,n):"text"===t.type?t.value:void 0}function eo(e,t,n,i){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=i)}function es(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function el(e,t){let n=[],i=-1,r=e.passKeys?new Map:J;for(;++i<t.children.length;){let o,s=t.children[i];if(e.passKeys){let e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){let t=r.get(e)||0;o=e+"-"+t,r.set(e,t+1)}}let l=er(e,s,o);void 0!==l&&n.push(l)}return n}function ea(e,t,n){let i;if(n)if(t.includes(".")){let e,n=t.split("."),r=-1;for(;++r<n.length;){let t=a(n[r])?{type:"Identifier",name:n[r]}:{type:"Literal",value:n[r]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(r&&"Literal"===t.type),optional:!1}:t}i=e}else i=a(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else i={type:"Literal",value:t};if("Literal"===i.type){let t=i.value;return Q.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(i);eu(e)}function eu(e,t){let n=new Z("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ei+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ec(e){return"-"+e.toLowerCase()}let eh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var ed=n(5155);n(2115);let ep={};function ef(e,t,n){var i;if((i=e)&&"object"==typeof i){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return em(e.children,t,n)}return Array.isArray(e)?em(e,t,n):""}function em(e,t,n){let i=[],r=-1;for(;++r<e.length;)i[r]=ef(e[r],t,n);return i.join("")}function eg(e,t,n,i){let r,o=e.length,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,i.length<1e4)(r=Array.from(i)).unshift(t,n),e.splice(...r);else for(n&&e.splice(t,n);s<i.length;)(r=i.slice(s,s+1e4)).unshift(t,0),e.splice(...r),s+=1e4,t+=1e4}function ey(e,t){return e.length>0?(eg(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-(t||0),1/0);return n&&ex(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ex(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ex(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);ex(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ex(this.left,t.reverse())}}}function ex(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function eb(e){let t,n,i,r,o,s,l,a={},u=-1,c=new ev(e);for(;++u<c.length;){for(;u in a;)u=a[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((i=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===t[0])t[1].contentType&&(Object.assign(a,function(e,t){let n,i,r=e.get(t)[1],o=e.get(t)[2],s=t-1,l=[],a=r._tokenizer;!a&&(a=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let u=a.events,c=[],h={},d=-1,p=r,f=0,m=0,g=[0];for(;p;){for(;e.get(++s)[1]!==p;);l.push(s),!p._tokenizer&&(n=o.sliceStream(p),p.next||n.push(null),i&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(n),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),i=p,p=p.next}for(p=r;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(m=d+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),d=g.length;d--;){let t=u.slice(g[d],g[d+1]),n=l.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)h[f+c[d][0]]=f+c[d][1],f+=c[d][1]-c[d][0]-1;return h}(c,u)),u=a[u],l=!0);else if(t[1]._container){for(i=u,n=void 0;i--;)if("lineEnding"===(r=c.get(i))[1].type||"lineEndingBlank"===r[1].type)"enter"===r[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),r[1].type="lineEnding",n=i);else if("linePrefix"===r[1].type||"listItemIndent"===r[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return eg(e,0,1/0,c.slice(0)),!l}let ew={}.hasOwnProperty,ek=eO(/[A-Za-z]/),eS=eO(/[\dA-Za-z]/),eT=eO(/[#-'*+\--9=?A-Z^-~]/);function eE(e){return null!==e&&(e<32||127===e)}let eC=eO(/\d/),eP=eO(/[\dA-Fa-f]/),eM=eO(/[!-/:-@[-`{-~]/);function eA(e){return null!==e&&e<-2}function eD(e){return null!==e&&(e<0||32===e)}function eR(e){return -2===e||-1===e||32===e}let eL=eO(/\p{P}|\p{S}/u),eI=eO(/\s/);function eO(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eV(e,t,n,i){let r=i?i-1:1/0,o=0;return function(i){return eR(i)?(e.enter(n),function i(s){return eR(s)&&o++<r?(e.consume(s),i):(e.exit(n),t(s))}(i)):t(i)}}let eF={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eV(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(i){let r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,function t(i){if(null===i){e.exit("chunkText"),e.exit("paragraph"),e.consume(i);return}return eA(i)?(e.consume(i),e.exit("chunkText"),n):(e.consume(i),t)}(i)}(n)});return n}},ej={tokenize:function(e){let t,n,i,r=this,o=[],s=0;return l;function l(t){if(s<o.length){let n=o[s];return r.containerState=n[1],e.attempt(n[0].continuation,a,u)(t)}return u(t)}function a(e){if(s++,r.containerState._closeFlow){let n;r.containerState._closeFlow=void 0,t&&y();let i=r.events.length,o=i;for(;o--;)if("exit"===r.events[o][0]&&"chunkFlow"===r.events[o][1].type){n=r.events[o][1].end;break}g(s);let l=i;for(;l<r.events.length;)r.events[l][1].end={...n},l++;return eg(r.events,o+1,0,r.events.slice(i)),r.events.length=l,u(e)}return l(e)}function u(n){if(s===o.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);r.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(eB,c,h)(n)}function c(e){return t&&y(),g(s),d(e)}function h(e){return r.parser.lazy[r.now().line]=s!==o.length,i=r.now().offset,f(e)}function d(t){return r.containerState={},e.attempt(eB,p,f)(t)}function p(e){return s++,o.push([r.currentConstruct,r.containerState]),d(e)}function f(i){if(null===i){t&&y(),g(0),e.consume(i);return}return t=t||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eA(n)?(e.consume(n),m(e.exit("chunkFlow")),s=0,r.interrupt=void 0,l):(e.consume(n),t)}(i)}function m(e,o){let l=r.sliceStream(e);if(o&&l.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(l),r.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<i&&(!t.events[o][1].end||t.events[o][1].end.offset>i))return;let l=r.events.length,a=l;for(;a--;)if("exit"===r.events[a][0]&&"chunkFlow"===r.events[a][1].type){if(e){n=r.events[a][1].end;break}e=!0}for(g(s),o=l;o<r.events.length;)r.events[o][1].end={...n},o++;eg(r.events,a+1,0,r.events.slice(l)),r.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];r.containerState=t[1],t[0].exit.call(r,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,r.containerState._closeFlow=void 0}}},eB={tokenize:function(e,t,n){return eV(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},ez={partial:!0,tokenize:function(e,t,n){return function(t){return eR(t)?eV(e,i,"linePrefix")(t):i(t)};function i(e){return null===e||eA(e)?t(e):n(e)}}},eN={resolve:function(e){return eb(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?r(t):eA(t)?e.check(eU,o,r)(t):(e.consume(t),i)}function r(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}},eU={partial:!0,tokenize:function(e,t,n){let i=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eV(e,r,"linePrefix")};function r(r){if(null===r||eA(r))return n(r);let o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(r):e.interrupt(i.parser.constructs.flow,n,t)(r)}}},e_={tokenize:function(e){let t=this,n=e.attempt(ez,function(i){return null===i?void e.consume(i):(e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,i,eV(e,e.attempt(this.parser.constructs.flow,i,e.attempt(eN,i)),"linePrefix")));return n;function i(i){return null===i?void e.consume(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eH={resolveAll:eq()},eW=e$("string"),eY=e$("text");function e$(e){return{resolveAll:eq("text"===e?eK:void 0),tokenize:function(t){let n=this,i=this.parser.constructs[e],r=t.attempt(i,o,s);return o;function o(e){return a(e)?r(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),l)}function l(e){return a(e)?(t.exit("data"),r(e)):(t.consume(e),l)}function a(e){if(null===e)return!0;let t=i[e],r=-1;if(t)for(;++r<t.length;){let e=t[r];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eq(e){return function(t,n){let i,r=-1;for(;++r<=t.length;)void 0===i?t[r]&&"data"===t[r][1].type&&(i=r,r++):t[r]&&"data"===t[r][1].type||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function eK(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let i,r=e[n-1][1],o=t.sliceStream(r),s=o.length,l=-1,a=0;for(;s--;){let e=o[s];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)a++,l--;if(l)break;l=-1}else if(-2===e)i=!0,a++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){let o={type:n===e.length||i||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?l:r.start._bufferIndex+l,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}let eX={name:"thematicBreak",tokenize:function(e,t,n){let i,r=0;return function(o){var s;return e.enter("thematicBreak"),i=s=o,function o(s){return s===i?(e.enter("thematicBreakSequence"),function t(n){return n===i?(e.consume(n),r++,t):(e.exit("thematicBreakSequence"),eR(n)?eV(e,o,"whitespace")(n):o(n))}(s)):r>=3&&(null===s||eA(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},eG={continuation:{tokenize:function(e,t,n){let i=this;return i.containerState._closeFlow=void 0,e.check(ez,function(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,eV(e,t,"listItemIndent",i.containerState.size+1)(n)},function(n){return i.containerState.furtherBlankLines||!eR(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,r(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(eQ,t,r)(n))});function r(r){return i.containerState._closeFlow=!0,i.interrupt=void 0,eV(e,e.attempt(eG,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let i=this,r=i.events[i.events.length-1],o=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,s=0;return function(t){let r=i.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===r?!i.containerState.marker||t===i.containerState.marker:eC(t)){if(i.containerState.type||(i.containerState.type=r,e.enter(r,{_container:!0})),"listUnordered"===r)return e.enter("listItemPrefix"),42===t||45===t?e.check(eX,n,l)(t):l(t);if(!i.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(r){return eC(r)&&++s<10?(e.consume(r),t):(!i.interrupt||s<2)&&(i.containerState.marker?r===i.containerState.marker:41===r||46===r)?(e.exit("listItemValue"),l(r)):n(r)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||t,e.check(ez,i.interrupt?n:a,e.attempt(eZ,c,u))}function a(e){return i.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eR(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eZ={partial:!0,tokenize:function(e,t,n){let i=this;return eV(e,function(e){let r=i.events[i.events.length-1];return!eR(e)&&r&&"listItemPrefixWhitespace"===r[1].type?t(e):n(e)},"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eQ={partial:!0,tokenize:function(e,t,n){let i=this;return eV(e,function(e){let r=i.events[i.events.length-1];return r&&"listItemIndent"===r[1].type&&r[2].sliceSerialize(r[1],!0).length===i.containerState.size?t(e):n(e)},"listItemIndent",i.containerState.size+1)}},eJ={continuation:{tokenize:function(e,t,n){let i=this;return function(t){return eR(t)?eV(e,r,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):r(t)};function r(i){return e.attempt(eJ,t,n)(i)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let i=this;return function(t){if(62===t){let n=i.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),r}return n(t)};function r(n){return eR(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e0(e,t,n,i,r,o,s,l,a){let u=a||1/0,c=0;return function(t){return 60===t?(e.enter(i),e.enter(r),e.enter(o),e.consume(t),e.exit(o),h):null===t||32===t||41===t||eE(t)?n(t):(e.enter(i),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),f(t))};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(l),h(t)):null===t||60===t||eA(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(r){return!c&&(null===r||41===r||eD(r))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(i),t(r)):c<u&&40===r?(e.consume(r),c++,f):41===r?(e.consume(r),c--,f):null===r||32===r||40===r||eE(r)?n(r):(e.consume(r),92===r?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function e1(e,t,n,i,r,o){let s,l=this,a=0;return function(t){return e.enter(i),e.enter(r),e.consume(t),e.exit(r),e.enter(o),u};function u(h){return a>999||null===h||91===h||93===h&&!s||94===h&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):93===h?(e.exit(o),e.enter(r),e.consume(h),e.exit(r),e.exit(i),t):eA(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(t){return null===t||91===t||93===t||eA(t)||a++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!eR(t)),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function e2(e,t,n,i,r,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(i),e.enter(r),e.consume(t),e.exit(r),s=40===t?41:t,l):n(t)};function l(n){return n===s?(e.enter(r),e.consume(n),e.exit(r),e.exit(i),t):(e.enter(o),a(n))}function a(t){return t===s?(e.exit(o),l(s)):null===t?n(t):eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eV(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||eA(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?c:u)}function c(t){return t===s||92===t?(e.consume(t),u):u(t)}}function e5(e,t){let n;return function i(r){return eA(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):eR(r)?eV(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}function e4(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e3={partial:!0,tokenize:function(e,t,n){return function(t){return eD(t)?e5(e,i)(t):n(t)};function i(t){return e2(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function r(t){return eR(t)?eV(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eA(e)?t(e):n(e)}}},e6={name:"codeIndented",tokenize:function(e,t,n){let i=this;return function(t){return e.enter("codeIndented"),eV(e,r,"linePrefix",5)(t)};function r(t){let r=i.events[i.events.length-1];return r&&"linePrefix"===r[1].type&&r[2].sliceSerialize(r[1],!0).length>=4?function t(n){return null===n?o(n):eA(n)?e.attempt(e9,t,o)(n):(e.enter("codeFlowValue"),function n(i){return null===i||eA(i)?(e.exit("codeFlowValue"),t(i)):(e.consume(i),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e9={partial:!0,tokenize:function(e,t,n){let i=this;return r;function r(t){return i.parser.lazy[i.now().line]?n(t):eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):eV(e,o,"linePrefix",5)(t)}function o(e){let o=i.events[i.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eA(e)?r(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,i,r,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(i=o)}else"content"===e[o][1].type&&e.splice(o,1),r||"definition"!==e[o][1].type||(r=o);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",r?(e.splice(i,0,["enter",s,t]),e.splice(r+1,0,["exit",e[n][1],t]),e[n][1].end={...e[r][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let i,r=this;return function(t){var s;let l,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){l="paragraph"===r.events[a][1].type;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||l)?(e.enter("setextHeadingLine"),i=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===i?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eR(n)?eV(e,o,"lineSuffix")(n):o(n))}(s)):n(t)};function o(i){return null===i||eA(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}}},e8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ez,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let i=this;return function(t){return eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):n(t)};function r(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}},ti={partial:!0,tokenize:function(e,t,n){let i=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r)};function r(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}},tr={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let i,r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),eR(t)?eV(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===i?(e.enter("codeFencedFenceSequence"),function t(r){return r===i?(o++,e.consume(r),t):o>=l?(e.exit("codeFencedFenceSequence"),eR(r)?eV(e,u,"whitespace")(r):u(r)):n(r)}(t)):n(t)}function u(i){return null===i||eA(i)?(e.exit("codeFencedFence"),t(i)):n(i)}}},s=0,l=0;return function(t){var o=t;let u=r.events[r.events.length-1];return s=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,i=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(r){return r===i?(l++,e.consume(r),t):l<3?n(r):(e.exit("codeFencedFenceSequence"),eR(r)?eV(e,a,"whitespace")(r):a(r))}(o)};function a(o){return null===o||eA(o)?(e.exit("codeFencedFence"),r.interrupt?t(o):e.check(ti,c,f)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||eA(r)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(r)):eR(r)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eV(e,u,"whitespace")(r)):96===r&&r===i?n(r):(e.consume(r),t)}(o))}function u(t){return null===t||eA(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||eA(r)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(r)):96===r&&r===i?n(r):(e.consume(r),t)}(t))}function c(t){return e.attempt(o,f,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return s>0&&eR(t)?eV(e,p,"linePrefix",s+1)(t):p(t)}function p(t){return null===t||eA(t)?e.check(ti,c,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eA(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},to=document.createElement("i");function ts(e){let t="&"+e+";";to.innerHTML=t;let n=to.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let tl={name:"characterReference",tokenize:function(e,t,n){let i,r,o=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),i=31,r=eS,u(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,r=eP,u):(e.enter("characterReferenceValue"),i=7,r=eC,u(t))}function u(l){if(59===l&&s){let i=e.exit("characterReferenceValue");return r!==eS||ts(o.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return r(l)&&s++<i?(e.consume(l),u):n(l)}}},ta={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return eM(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}},tu={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eV(e,t,"linePrefix")}}};function tc(e,t,n){let i=[],r=-1;for(;++r<e.length;){let o=e[r].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}let th={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let i=e[t][1];if(n.push(e[t]),"labelImage"===i.type||"labelLink"===i.type||"labelEnd"===i.type){let e="labelImage"===i.type?4:2;i.type="data",t+=e}}return e.length!==n.length&&eg(e,0,e.length,n),e},resolveTo:function(e,t){let n,i,r,o,s=e.length,l=0;for(;s--;)if(n=e[s][1],i){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(r){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(i=s,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(r=s);let a={type:"labelLink"===e[i][1].type?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[r][1].end}},c={type:"labelText",start:{...e[i+l+2][1].end},end:{...e[r-2][1].start}};return o=ey(o=[["enter",a,t],["enter",u,t]],e.slice(i+1,i+l+3)),o=ey(o,[["enter",c,t]]),o=ey(o,tc(t.parser.constructs.insideSpan.null,e.slice(i+l+4,r-3),t)),o=ey(o,[["exit",c,t],e[r-2],e[r-1],["exit",u,t]]),o=ey(o,e.slice(r+1)),o=ey(o,[["exit",a,t]]),eg(e,i,e.length,o),e},tokenize:function(e,t,n){let i,r,o=this,s=o.events.length;for(;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){i=o.events[s][1];break}return function(t){return i?i._inactive?c(t):(r=o.parser.defined.includes(e4(o.sliceSerialize({start:i.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(td,u,r?u:c)(t):91===t?e.attempt(tp,u,r?a:c)(t):r?u(t):c(t)}function a(t){return e.attempt(tf,u,c)(t)}function u(e){return t(e)}function c(e){return i._balanced=!0,n(e)}}},td={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),i};function i(t){return eD(t)?e5(e,r)(t):r(t)}function r(t){return 41===t?u(t):e0(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eD(t)?e5(e,l)(t):u(t)}function s(e){return n(e)}function l(t){return 34===t||39===t||40===t?e2(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function a(t){return eD(t)?e5(e,u)(t):u(t)}function u(i){return 41===i?(e.enter("resourceMarker"),e.consume(i),e.exit("resourceMarker"),e.exit("resource"),t):n(i)}}},tp={tokenize:function(e,t,n){let i=this;return function(t){return e1.call(i,e,r,o,"reference","referenceMarker","referenceString")(t)};function r(e){return i.parser.defined.includes(e4(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tf={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),i};function i(i){return 93===i?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}},tm={name:"labelStartImage",resolveAll:th.resolveAll,tokenize:function(e,t,n){let i=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),r};function r(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}}};function tg(e){return null===e||eD(e)||eI(e)?1:eL(e)?2:void 0}let ty={name:"attention",resolveAll:function(e,t){let n,i,r,o,s,l,a,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let h={...e[n][1].end},d={...e[c][1].start};tv(h,-l),tv(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},r={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[c][1].start={...s.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=ey(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=ey(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",r,t]]),a=ey(a,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=ey(a,[["exit",r,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,a=ey(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,eg(e,n-1,c-n+3,a),c=n+a.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,i=this.parser.constructs.attentionMarkers.null,r=this.previous,o=tg(r);return function(s){return n=s,e.enter("attentionSequence"),function s(l){if(l===n)return e.consume(l),s;let a=e.exit("attentionSequence"),u=tg(l),c=!u||2===u&&o||i.includes(l),h=!o||2===o&&u||i.includes(r);return a._open=!!(42===n?c:c&&(o||!h)),a._close=!!(42===n?h:h&&(u||!c)),t(l)}(s)}}};function tv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tx={name:"labelStartLink",resolveAll:th.resolveAll,tokenize:function(e,t,n){let i=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),r};function r(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}}},tb={42:eG,43:eG,45:eG,48:eG,49:eG,50:eG,51:eG,52:eG,53:eG,54:eG,55:eG,56:eG,57:eG,62:eJ},tw={91:{name:"definition",tokenize:function(e,t,n){let i,r=this;return function(t){var i;return e.enter("definition"),i=t,e1.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(i)};function o(t){return(i=e4(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return eD(t)?e5(e,l)(t):l(t)}function l(t){return e0(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function a(t){return e.attempt(e3,u,u)(t)}function u(t){return eR(t)?eV(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eA(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}}},tk={[-2]:e6,[-1]:e6,32:e6},tS={35:{name:"headingAtx",resolve:function(e,t){let n,i,r=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),r-2>o&&"whitespace"===e[r][1].type&&(r-=2),"atxHeadingSequence"===e[r][1].type&&(o===r-1||r-4>o&&"whitespace"===e[r-2][1].type)&&(r-=o+1===r?2:4),r>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},i={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},eg(e,o,r-o+1,[["enter",n,t],["enter",i,t],["exit",i,t],["exit",n,t]])),e},tokenize:function(e,t,n){let i=0;return function(r){var o;return e.enter("atxHeading"),o=r,e.enter("atxHeadingSequence"),function r(o){return 35===o&&i++<6?(e.consume(o),r):null===o||eD(o)?(e.exit("atxHeadingSequence"),function n(i){return 35===i?(e.enter("atxHeadingSequence"),function t(i){return 35===i?(e.consume(i),t):(e.exit("atxHeadingSequence"),n(i))}(i)):null===i||eA(i)?(e.exit("atxHeading"),t(i)):eR(i)?eV(e,n,"whitespace")(i):(e.enter("atxHeadingText"),function t(i){return null===i||35===i||eD(i)?(e.exit("atxHeadingText"),n(i)):(e.consume(i),t)}(i))}(o)):n(o)}(o)}}},42:eX,45:[e7,eX],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let i,r,o,s,l,a=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),r=!0,p):63===s?(e.consume(s),i=3,a.interrupt?t:L):ek(s)?(e.consume(s),o=String.fromCharCode(s),f):n(s)}function c(r){return 45===r?(e.consume(r),i=2,h):91===r?(e.consume(r),i=5,s=0,d):ek(r)?(e.consume(r),i=4,a.interrupt?t:L):n(r)}function h(i){return 45===i?(e.consume(i),a.interrupt?t:L):n(i)}function d(i){let r="CDATA[";return i===r.charCodeAt(s++)?(e.consume(i),s===r.length)?a.interrupt?t:T:d:n(i)}function p(t){return ek(t)?(e.consume(t),o=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||eD(s)){let l=47===s,u=o.toLowerCase();return!l&&!r&&te.includes(u)?(i=1,a.interrupt?t(s):T(s)):e8.includes(o.toLowerCase())?(i=6,l)?(e.consume(s),m):a.interrupt?t(s):T(s):(i=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(s):r?function t(n){return eR(n)?(e.consume(n),t):k(n)}(s):g(s))}return 45===s||eS(s)?(e.consume(s),o+=String.fromCharCode(s),f):n(s)}function m(i){return 62===i?(e.consume(i),a.interrupt?t:T):n(i)}function g(t){return 47===t?(e.consume(t),k):58===t||95===t||ek(t)?(e.consume(t),y):eR(t)?(e.consume(t),g):k(t)}function y(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),x):eR(t)?(e.consume(t),v):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,b):eR(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eD(n)?v(n):(e.consume(n),t)}(t)}function b(t){return t===l?(e.consume(t),l=null,w):null===t||eA(t)?n(t):(e.consume(t),b)}function w(e){return 47===e||62===e||eR(e)?g(e):n(e)}function k(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eA(t)?T(t):eR(t)?(e.consume(t),S):n(t)}function T(t){return 45===t&&2===i?(e.consume(t),M):60===t&&1===i?(e.consume(t),A):62===t&&4===i?(e.consume(t),I):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),R):eA(t)&&(6===i||7===i)?(e.exit("htmlFlowData"),e.check(tt,O,E)(t)):null===t||eA(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),T)}function E(t){return e.check(tn,C,O)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||eA(t)?E(t):(e.enter("htmlFlowData"),T(t))}function M(t){return 45===t?(e.consume(t),L):T(t)}function A(t){return 47===t?(e.consume(t),o="",D):T(t)}function D(t){if(62===t){let n=o.toLowerCase();return te.includes(n)?(e.consume(t),I):T(t)}return ek(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),D):T(t)}function R(t){return 93===t?(e.consume(t),L):T(t)}function L(t){return 62===t?(e.consume(t),I):45===t&&2===i?(e.consume(t),L):T(t)}function I(t){return null===t||eA(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),I)}function O(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:eX,96:tr,126:tr},tT={38:tl,92:ta},tE={[-5]:tu,[-4]:tu,[-3]:tu,33:tm,38:tl,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let i=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r};function r(t){return ek(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(t){return 43===t||45===t||46===t||eS(t)?(i=1,function t(n){return 58===n?(e.consume(n),i=0,s):(43===n||45===n||46===n||eS(n))&&i++<32?(e.consume(n),t):(i=0,l(n))}(t)):l(t)}function s(i){return 62===i?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):null===i||32===i||60===i||eE(i)?n(i):(e.consume(i),s)}function l(t){return 64===t?(e.consume(t),a):eT(t)?(e.consume(t),l):n(t)}function a(r){return eS(r)?function r(o){return 46===o?(e.consume(o),i=0,a):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eS(o))&&i++<63){let n=45===o?t:r;return e.consume(o),n}return n(o)}(o)}(r):n(r)}}},{name:"htmlText",tokenize:function(e,t,n){let i,r,o,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),b):63===t?(e.consume(t),v):ek(t)?(e.consume(t),k):n(t)}function a(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),r=0,p):ek(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),h):eA(t)?(o=c,D(t)):(e.consume(t),c)}function h(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?A(e):45===e?h(e):c(e)}function p(t){let i="CDATA[";return t===i.charCodeAt(r++)?(e.consume(t),r===i.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):eA(t)?(o=f,D(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?A(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?A(t):eA(t)?(o=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):eA(t)?(o=v,D(t)):(e.consume(t),v)}function x(e){return 62===e?A(e):v(e)}function b(t){return ek(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):function t(n){return eA(n)?(o=t,D(n)):eR(n)?(e.consume(n),t):A(n)}(t)}function k(t){return 45===t||eS(t)?(e.consume(t),k):47===t||62===t||eD(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),A):58===t||95===t||ek(t)?(e.consume(t),T):eA(t)?(o=S,D(t)):eR(t)?(e.consume(t),S):A(t)}function T(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),T):function t(n){return 61===n?(e.consume(n),E):eA(n)?(o=t,D(n)):eR(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,C):eA(t)?(o=E,D(t)):eR(t)?(e.consume(t),E):(e.consume(t),P)}function C(t){return t===i?(e.consume(t),i=void 0,M):null===t?n(t):eA(t)?(o=C,D(t)):(e.consume(t),C)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eD(t)?S(t):(e.consume(t),P)}function M(e){return 47===e||62===e||eD(e)?S(e):n(e)}function A(i){return 62===i?(e.consume(i),e.exit("htmlTextData"),e.exit("htmlText"),t):n(i)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return eR(t)?eV(e,L,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),o(t)}}}],91:tx,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),i};function i(i){return eA(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}},ta],93:th,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,i=e.length-4,r=3;if(("lineEnding"===e[3][1].type||"space"===e[r][1].type)&&("lineEnding"===e[i][1].type||"space"===e[i][1].type)){for(t=r;++t<i;)if("codeTextData"===e[t][1].type){e[r][1].type="codeTextPadding",e[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(t=r-1,i++;++t<=i;)void 0===n?t!==i&&"lineEnding"!==e[t][1].type&&(n=t):(t===i||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),i-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let i,r,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(a){return null===a?n(a):32===a?(e.enter("space"),e.consume(a),e.exit("space"),s):96===a?(r=e.enter("codeTextSequence"),i=0,function n(s){return 96===s?(e.consume(s),i++,n):i===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(r.type="codeTextData",l(s))}(a)):eA(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(a))}function l(t){return null===t||32===t||96===t||eA(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}}}},tC={null:[ty,eH]},tP={null:[42,95]},tM={null:[]},tA=/[\0\t\n\r]/g;function tD(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tL(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tD(n.slice(t?2:1),t?16:10)}return ts(n)||e}let tI={}.hasOwnProperty;function tO(e){return{line:e.line,column:e.column,offset:e.offset}}function tV(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+q({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+q({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+q({start:t.start,end:t.end})+") is still open")}function tF(e){let t=this;t.parser=function(n){var i,o;let s,l,a,u;return"object"==typeof(i={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=i,i=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(f),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:i(p),codeFencedFenceInfo:r,codeFencedFenceMeta:r,codeIndented:i(p,r),codeText:i(function(){return{type:"inlineCode",value:""}},r),codeTextData:u,data:u,codeFlowValue:u,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:r,definitionLabelString:r,definitionTitleString:r,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(m),hardBreakTrailing:i(m),htmlFlow:i(g,r),htmlFlowData:u,htmlText:i(g,r),htmlTextData:u,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:r,link:i(y),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(v),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:r,resourceDestinationString:r,resourceTitleString:r,setextHeading:i(f),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),i=this.data.characterReferenceType;i?(t=tD(n,"characterReferenceMarkerNumeric"===i?10:16),this.data.characterReferenceType=void 0):t=ts(n);let r=this.stack[this.stack.length-1];r.value+=t},characterReference:function(e){this.stack.pop().position.end=tO(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e4(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(h),hardBreakTrailing:s(h),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tR,tL),n.identifier=e4(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tO(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e4(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,n){let i=-1;for(;++i<n.length;){let r=n[i];Array.isArray(r)?e(t,r):function(e,t){let n;for(n in t)if(tI.call(t,n))switch(n){case"canContainEols":{let i=t[n];i&&e[n].push(...i);break}case"transforms":{let i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{let i=t[n];i&&Object.assign(e[n],i)}}}(t,r)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let i={type:"root",children:[]},s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:r,resume:a,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let i,r,o,s,l=t-1,a=-1,u=!1;for(;++l<=n;){let t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!i||s||a||o||(o=l),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(i){let s=l;for(r=void 0;s--;){let t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;r&&(e[r][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",r=s}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!r||o<r)&&(i._spread=!0),i.end=Object.assign({},r?e[r][1].start:t[1].end),e.splice(r||l,0,["exit",i,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){let r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};i=r,e.splice(l,0,["enter",r,t[2]]),l++,n++,o=void 0,s=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tI.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},s),e[c][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||tV).call(s,void 0,e[0])}for(i.position={start:tO(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tO(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)i=t.transforms[c](i)||i;return i};function i(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function r(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tO(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),i=this.tokenStack.pop();if(i)i[0].type!==e.type&&(t?t.call(this,e,i[0]):(i[1]||tV).call(this,e,i[0]));else throw Error("Cannot close `"+e.type+"` ("+q({start:e.start,end:e.end})+"): it’s not open");n.position.end=tO(e.end)}function a(){return ef(this.stack.pop(),"boolean"!=typeof ep.includeImageAlt||ep.includeImageAlt,"boolean"!=typeof ep.includeHtml||ep.includeHtml)}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tO(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tO(e.end)}function h(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!eb(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let i,r=(ew.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(i in o){ew.call(r,i)||(r[i]=[]);let e=o[i];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);eg(e,0,0,i)}(r[i],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([r,...(e||{}).extensions||[]]),content:n(eF),defined:[],document:n(ej),flow:n(e_),lazy:{},string:n(eW),text:n(eY)};return t;function n(e){return function(n){return function(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},r={},o=[],s=[],l=[],a={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){eA(e)?(i.line++,i.column=1,i.offset+=-3===e?2:1,g()):-1!==e&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){let t=l.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:f(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){r[e.line]=e.column,g()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,i=-1,r=[];for(;++i<e.length;){let o,s=e[i];if("string"==typeof s)o=s;else switch(s){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(s)}n=-2===s,r.push(o)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){return(s=ey(s,e),function(){let e;for(;i._index<s.length;){let n=s[i._index];if("string"==typeof n)for(e=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===e&&i._bufferIndex<n.length;){var t;t=n.charCodeAt(i._bufferIndex),c=c(t)}else c=c(n)}}(),null!==s[s.length-1])?[]:(m(t,0),u.events=tc(o,u.events,u),u.events)}},c=t.tokenize.call(u,a);return t.resolveAll&&o.push(t),u;function h(e){return function(e,t){let n,i=t.start._index,r=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;if(i===o)n=[e[i].slice(r,s)];else{if(n=e.slice(i,o),r>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(r):n.shift()}s>0&&n.push(e[o].slice(0,s))}return n}(s,e)}function d(){let{_bufferIndex:e,_index:t,line:n,column:r,offset:o}=i;return{_bufferIndex:e,_index:t,line:n,column:r,offset:o}}function p(e,t){t.restore()}function f(e,t){return function(n,r,o){var s;let c,h,p,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,h=0,0===e.length)?o:y(e[h])}function y(e){return function(n){return(f=function(){let e=d(),t=u.previous,n=u.currentConstruct,r=u.events.length,o=Array.from(l);return{from:r,restore:function(){i=e,u.previous=t,u.currentConstruct=n,u.events.length=r,l=o,g()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,a,v,x)(n)}}function v(t){return e(p,f),r}function x(e){return(f.restore(),++h<c.length)?y(c[h]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&eg(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}(t,e,n)}}})(o).document().write((l=1,a="",u=!0,function(e,t,n){let i,r,o,c,h,d=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,a="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tA.lastIndex=o,c=(i=tA.exec(e))&&void 0!==i.index?i.index:e.length,h=e.charCodeAt(c),!i){a=e.slice(o);break}if(10===h&&o===c&&s)d.push(-3),s=void 0;else switch(s&&(d.push(-5),s=void 0),o<c&&(d.push(e.slice(o,c)),l+=c-o),h){case 0:d.push(65533),l++;break;case 9:for(r=4*Math.ceil(l/4),d.push(-2);l++<r;)d.push(-1);break;case 10:d.push(-4),l=1;break;default:s=!0,l=1}o=c+1}return n&&(s&&d.push(-5),a&&d.push(a),d.push(null)),d})(n,i,!0))))}}let tj="object"==typeof self?self:globalThis,tB=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),i=r=>{if(e.has(r))return e.get(r);let[o,s]=t[r];switch(o){case 0:case -1:return n(s,r);case 1:{let e=n([],r);for(let t of s)e.push(i(t));return e}case 2:{let e=n({},r);for(let[t,n]of s)e[i(t)]=i(n);return e}case 3:return n(new Date(s),r);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),r)}case 5:{let e=n(new Map,r);for(let[t,n]of s)e.set(i(t),i(n));return e}case 6:{let e=n(new Set,r);for(let t of s)e.add(i(t));return e}case 7:{let{name:e,message:t}=s;return n(new tj[e](t),r)}case 8:return n(BigInt(s),r);case"BigInt":return n(Object(BigInt(s)),r);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new tj[o](s),r)};return i})(new Map,e)(0),{toString:tz}={},{keys:tN}=Object,tU=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tz.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},t_=([e,t])=>0===e&&("function"===t||"symbol"===t),tH=(e,{json:t,lossy:n}={})=>{let i=[];return((e,t,n,i)=>{let r=(e,t)=>{let r=i.push(e)-1;return n.set(t,r),r},o=i=>{if(n.has(i))return n.get(i);let[s,l]=tU(i);switch(s){case 0:{let t=i;switch(l){case"bigint":s=8,t=i.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+l);t=null;break;case"undefined":return r([-1],i)}return r([s,t],i)}case 1:{if(l){let e=i;return"DataView"===l?e=new Uint8Array(i.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(i)),r([l,[...e]],i)}let e=[],t=r([s,e],i);for(let t of i)e.push(o(t));return t}case 2:{if(l)switch(l){case"BigInt":return r([l,i.toString()],i);case"Boolean":case"Number":case"String":return r([l,i.valueOf()],i)}if(t&&"toJSON"in i)return o(i.toJSON());let n=[],a=r([s,n],i);for(let t of tN(i))(e||!t_(tU(i[t])))&&n.push([o(t),o(i[t])]);return a}case 3:return r([s,i.toISOString()],i);case 4:{let{source:e,flags:t}=i;return r([s,{source:e,flags:t}],i)}case 5:{let t=[],n=r([s,t],i);for(let[n,r]of i)(e||!(t_(tU(n))||t_(tU(r))))&&t.push([o(n),o(r)]);return n}case 6:{let t=[],n=r([s,t],i);for(let n of i)(e||!t_(tU(n)))&&t.push(o(n));return n}}let{message:a}=i;return r([s,{name:l,message:a}],i)};return o})(!(t||n),!!t,new Map,i)(e),i},tW="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tB(tH(e,t)):structuredClone(e):(e,t)=>tB(tH(e,t));function tY(e){let t=[],n=-1,i=0,r=0;for(;++n<e.length;){let o=e.charCodeAt(n),s="";if(37===o&&eS(e.charCodeAt(n+1))&&eS(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),r=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+r+1,s=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function t$(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tq(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tK=function(e){var t,n;if(null==e)return tG;if("function"==typeof e)return tX(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tK(e[n]);return tX(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,tX(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,tX(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function tX(e){return function(t,n,i){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,i||void 0))}}function tG(){return!0}let tZ=[];function tQ(e,t,n,i){let r,o,s,l;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,r=n):(o=t,s=n,r=i);var a=o,u=function(e,t){let n=t[t.length-1],i=n?n.children.indexOf(e):void 0;return s(e,i,n)},c=r;"function"==typeof a&&"function"!=typeof u?(c=u,u=a):l=a;let h=tK(l),d=c?-1:1;(function e(t,n,i){let r=t&&"object"==typeof t?t:{};if("string"==typeof r.type){let e="string"==typeof r.tagName?r.tagName:"string"==typeof r.name?r.name:void 0;Object.defineProperty(o,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return o;function o(){var r;let o,s,l,p=tZ;if((!a||h(t,n,i[i.length-1]||void 0))&&!1===(p=Array.isArray(r=u(t,i))?r:"number"==typeof r?[!0,r]:null==r?tZ:[r])[0])return p;if("children"in t&&t.children&&t.children&&"skip"!==p[0])for(s=(c?t.children.length:-1)+d,l=i.concat(t);s>-1&&s<t.children.length;){if(!1===(o=e(t.children[s],s,l)())[0])return o;s="number"==typeof o[1]?o[1]:s+d}return p}})(e,void 0,[])()}function tJ(e,t){let n=t.referenceType,i="]";if("collapsed"===n?i+="[]":"full"===n&&(i+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+i}];let r=e.all(t),o=r[0];o&&"text"===o.type?o.value="["+o.value:r.unshift({type:"text",value:"["});let s=r[r.length-1];return s&&"text"===s.type?s.value+=i:r.push({type:"text",value:i}),r}function t0(e){let t=e.spread;return null==t?e.children.length>1:t}function t1(e,t,n){let i=0,r=e.length;if(t){let t=e.codePointAt(i);for(;9===t||32===t;)i++,t=e.codePointAt(i)}if(n){let t=e.codePointAt(r-1);for(;9===t||32===t;)r--,t=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}let t2={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",i={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,i="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=tY(r.toLowerCase()),s=e.footnoteOrder.indexOf(r),l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),n=e.footnoteOrder.length):n=s+1,l+=1,e.footnoteCounts.set(r,l);let a={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,a);let u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return tJ(e,t);let r={src:tY(i.url||""),alt:t.alt};null!==i.title&&void 0!==i.title&&(r.title=i.title);let o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tY(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return tJ(e,t);let r={href:tY(i.url||"")};null!==i.title&&void 0!==i.title&&(r.title=i.title);let o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tY(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},listItem:function(e,t,n){let i=e.all(t),r=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,i=-1;for(;!t&&++i<n.length;)t=t0(n[i])}return t}(n):t0(t),o={},s=[];if("boolean"==typeof t.checked){let e,n=i[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},i.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<i.length;){let e=i[l];(r||0!==l||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||r?s.push(e):s.push(...e.children)}let a=i[i.length-1];a&&(r||"element"!==a.type||"p"!==a.tagName)&&s.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},i=e.all(t),r=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++r<i.length;){let e=i[r];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),i=n.shift(),r=[];if(i){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],n),r.push(n)}if(n.length>0){let i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Y(t.children[1]),s=W(t.children[t.children.length-1]);o&&s&&(i.position={start:o,end:s}),r.push(i)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let i=n?n.children:void 0,r=0===(i?i.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length,l=-1,a=[];for(;++l<s;){let n=t.children[l],i={},s=o?o[l]:void 0;s&&(i.align=s);let u={type:"element",tagName:r,properties:i,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),a.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,i=n.exec(t),r=0,o=[];for(;i;)o.push(t1(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return o.push(t1(t.slice(r),r>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t5,yaml:t5,definition:t5,footnoteDefinition:t5};function t5(){}let t4={}.hasOwnProperty,t3={};function t6(e,t){e.position&&(t.position=function(e){let t=Y(e),n=W(e);if(t&&n)return{start:t,end:n}}(e))}function t9(e,t){let n=t;if(e&&e.data){let t=e.data.hName,i=e.data.hChildren,r=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&r&&Object.assign(n.properties,tW(r)),"children"in n&&n.children&&null!=i&&(n.children=i)}return n}function t7(e,t){let n=[],i=-1;for(t&&n.push({type:"text",value:"\n"});++i<e.length;)i&&n.push({type:"text",value:"\n"}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function t8(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ne(e,t){let n=function(e,t){let n=t||t3,i=new Map,r=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,i=-1;for(;++i<n.length;){let r=o.one(n[i],e);if(r){if(i&&"break"===n[i-1].type&&(Array.isArray(r)||"text"!==r.type||(r.value=t8(r.value)),!Array.isArray(r)&&"element"===r.type)){let e=r.children[0];e&&"text"===e.type&&(e.value=t8(e.value))}Array.isArray(r)?t.push(...r):t.push(r)}}}return t},applyData:t9,definitionById:i,footnoteById:r,footnoteCounts:new Map,footnoteOrder:[],handlers:{...t2,...n.handlers},one:function(e,t){let n=e.type,i=o.handlers[n];if(t4.call(o.handlers,n)&&i)return i(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,i=tW(n);return i.children=o.all(e),i}return tW(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},i="value"in t&&!(t4.call(n,"hProperties")||t4.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)})(o,e,t)},options:n,patch:t6,wrap:t7};return tQ(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?i:r,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),i=n.one(e,void 0),r=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||t$,i=e.options.footnoteBackLabel||tq,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],a=-1;for(;++a<e.footnoteOrder.length;){let r=e.footnoteById.get(e.footnoteOrder[a]);if(!r)continue;let o=e.all(r),s=String(r.identifier).toUpperCase(),u=tY(s.toLowerCase()),c=0,h=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++c<=d;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,c);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof i?i:i(a,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...h)}else o.push(...h);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(r,f),l.push(f)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tW(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:"\n"},r),o}function nt(e,t){return e&&"run"in e?async function(n,i){let r=ne(n,{file:i,...t});await e.run(r,i)}:function(n,i){return ne(n,{file:i,...e||t})}}function nn(e){if(e)throw e}var ni=n(11);function nr(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let no={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ns(e);let i=0,r=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){i=o+1;break}}else r<0&&(n=!0,r=o+1);return r<0?"":e.slice(i,r)}if(t===e)return"";let s=-1,l=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){i=o+1;break}}else s<0&&(n=!0,s=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(r=o):(l=-1,r=s));return i===r?r=s:r<0&&(r=e.length),e.slice(i,r)},dirname:function(e){let t;if(ns(e),0===e.length)return".";let n=-1,i=e.length;for(;--i;)if(47===e.codePointAt(i)){if(t){n=i;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;ns(e);let n=e.length,i=-1,r=0,o=-1,s=0;for(;n--;){let l=e.codePointAt(n);if(47===l){if(t){r=n+1;break}continue}i<0&&(t=!0,i=n+1),46===l?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1)}return o<0||i<0||0===s||1===s&&o===i-1&&o===r+1?"":e.slice(o,i)},join:function(...e){let t,n=-1;for(;++n<e.length;)ns(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ns(e);let t=47===e.codePointAt(0),n=function(e,t){let n,i,r="",o=0,s=-1,l=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else if(47===n)break;else n=47;if(47===n){if(s===a-1||1===l);else if(s!==a-1&&2===l){if(r.length<2||2!==o||46!==r.codePointAt(r.length-1)||46!==r.codePointAt(r.length-2)){if(r.length>2){if((i=r.lastIndexOf("/"))!==r.length-1){i<0?(r="",o=0):o=(r=r.slice(0,i)).length-1-r.lastIndexOf("/"),s=a,l=0;continue}}else if(r.length>0){r="",o=0,s=a,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),o=a-s-1;s=a,l=0}else 46===n&&l>-1?l++:l=-1}return r}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function ns(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let nl={cwd:function(){return"/"}};function na(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nu=["history","path","basename","stem","extname","dirname"];class nc{constructor(e){let t,n;t=e?na(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<nu.length;){let e=nu[i];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nu.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?no.basename(this.path):void 0}set basename(e){nd(e,"basename"),nh(e,"basename"),this.path=no.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?no.dirname(this.path):void 0}set dirname(e){np(this.basename,"dirname"),this.path=no.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?no.extname(this.path):void 0}set extname(e){if(nh(e,"extname"),np(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=no.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){na(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!na(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nd(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?no.basename(this.path,this.extname):void 0}set stem(e){nd(e,"stem"),nh(e,"stem"),this.path=no.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let i=this.message(e,t,n);throw i.fatal=!0,i}info(e,t,n){let i=this.message(e,t,n);return i.fatal=void 0,i}message(e,t,n){let i=new Z(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nh(e,t){if(e&&e.includes(no.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+no.sep+"`")}function nd(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function np(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nf=function(e){let t=this.constructor.prototype,n=t[e],i=function(){return n.apply(i,arguments)};return Object.setPrototypeOf(i,t),i},nm={}.hasOwnProperty;class ng extends nf{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,i=t.pop();if("function"!=typeof i)throw TypeError("Expected function as last argument, not "+i);!function r(o,...s){let l=e[++n],a=-1;if(o)return void i(o);for(;++a<t.length;)(null===s[a]||void 0===s[a])&&(s[a]=t[a]);t=s,l?(function(e,t){let n;return function(...t){let o,s=e.length>t.length;s&&t.push(i);try{o=e.apply(this,t)}catch(e){if(s&&n)throw e;return i(e)}s||(o&&o.then&&"function"==typeof o.then?o.then(r,i):o instanceof Error?i(o):r(o))};function i(e,...r){n||(n=!0,t(e,...r))}function r(e){i(null,e)}})(l,r)(...s):i(null,...s)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new ng,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(ni(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nb("data",this.frozen),this.namespace[e]=t,this):nm.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nb("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=nS(e),n=this.parser||this.Parser;return nv("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nv("process",this.parser||this.Parser),nx("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(i,r){let o=nS(e),s=n.parse(o);function l(e,n){e||!n?r(e):i?i(n):t(void 0,n)}n.run(s,o,function(e,t,i){var r,o;if(e||!t||!i)return l(e);let s=n.stringify(t,i);"string"==typeof(r=s)||(o=r)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?i.value=s:i.result=s,l(e,i)})}}processSync(e){let t,n=!1;return this.freeze(),nv("processSync",this.parser||this.Parser),nx("processSync",this.compiler||this.Compiler),this.process(e,function(e,i){n=!0,nn(e),t=i}),nk("processSync","process",n),t}run(e,t,n){nw(e),this.freeze();let i=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?r(void 0,n):new Promise(r);function r(r,o){let s=nS(t);i.run(e,s,function(t,i,s){let l=i||e;t?o(t):r?r(l):n(void 0,l,s)})}}runSync(e,t){let n,i=!1;return this.run(e,t,function(e,t){nn(e),n=t,i=!0}),nk("runSync","run",i),n}stringify(e,t){this.freeze();let n=nS(t),i=this.compiler||this.Compiler;return nx("stringify",i),nw(e),i(e,n)}use(e,...t){let n=this.attachers,i=this.namespace;if(nb("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):r(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function r(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(i.settings=ni(!0,i.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)s(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;s(e,t)}else r(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let i=-1,r=-1;for(;++i<n.length;)if(n[i][0]===e){r=i;break}if(-1===r)n.push([e,...t]);else if(t.length>0){let[i,...o]=t,s=n[r][1];nr(s)&&nr(i)&&(i=ni(!0,s,i)),n[r]=[e,i,...o]}}}}let ny=new ng().freeze();function nv(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nx(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nb(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nw(e){if(!nr(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nk(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nS(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nc(e)}let nT=[],nE={allowDangerousHtml:!0},nC=/^(https?|ircs?|mailto|xmpp)$/i,nP=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nM(e){let t=function(e){let t=e.rehypePlugins||nT,n=e.remarkPlugins||nT,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nE}:nE;return ny().use(tF).use(n).use(nt,i).use(t)}(e),n=function(e){let t=e.children||"",n=new nc;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,i=t.allowElement,r=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,a=t.urlTransform||nA;for(let e of nP)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]}),tQ(e,function(e,t,r){if("raw"===e.type&&r&&"number"==typeof t)return s?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eh)if(Object.hasOwn(eh,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],i=eh[t];(null===i||i.includes(e.tagName))&&(e.properties[t]=a(String(n||""),t,e))}}if("element"===e.type){let s=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!s&&i&&"number"==typeof t&&(s=!i(e,t,r)),s&&r&&"number"==typeof t)return l&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),function(e,t){var n,i,r,o;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=l,i=t.jsxDEV,s=function(e,t,r,o){let s=Array.isArray(r.children),l=Y(e);return i(t,r,o,s,{columnNumber:l?l.column-1:void 0,fileName:n,lineNumber:l?l.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,o=t.jsxs,s=function(e,t,n,i){let s=Array.isArray(n.children)?o:r;return i?s(t,n,i):s(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?F:V,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=er(a,e,void 0);return u&&"string"!=typeof u?u:a.create(e,a.Fragment,{children:u||void 0},void 0)}(e,{Fragment:ed.Fragment,components:r,ignoreInvalidStyle:!0,jsx:ed.jsx,jsxs:ed.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nA(e){let t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return -1===t||-1!==r&&t>r||-1!==n&&t>n||-1!==i&&t>i||nC.test(e.slice(0,t))?e:""}},1402:(e,t,n)=>{n.d(t,{s:()=>r});var i=n(3142);function r(e){return(0,i.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},1729:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let i=(0,r.default)(e),o="function"==typeof t;return i.forEach(e=>{if("declaration"!==e.type)return;let{property:i,value:r}=e;o?t(i,r,e):r&&((n=n||{})[i]=r)}),n};let r=i(n(6997))},3127:(e,t,n)=>{n.d(t,{Q:()=>i});let i=(0,n(2115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},3142:(e,t,n)=>{n.d(t,{G:()=>i});function i(e){return"object"==typeof e&&null!==e}},4185:function(e,t,n){var i=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1729)),r=n(9677);function o(e,t){var n={};return e&&"string"==typeof e&&(0,i.default)(e,function(e,i){e&&i&&(n[(0,r.camelCase)(e,t)]=i)}),n}o.default=o,e.exports=o},4416:(e,t,n)=>{n.d(t,{M:()=>r});var i=n(2115);function r(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},5601:(e,t,n)=>{n.d(t,{xQ:()=>o});var i=n(2115),r=n(9686);function o(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useContext)(r.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:o,register:s}=t,l=(0,i.useId)();(0,i.useEffect)(()=>{if(e)return s(l)},[e]);let a=(0,i.useCallback)(()=>e&&o&&o(l),[l,o,e]);return!n&&o?[!1,a]:[!0]}},6436:(e,t,n)=>{n.d(t,{E:()=>r});var i=n(2115);let r="undefined"!=typeof window?i.useLayoutEffect:i.useEffect},6497:(e,t,n)=>{n.d(t,{N:()=>x});var i=n(5155),r=n(2115),o=n(296),s=n(4416),l=n(6436),a=n(9686),u=n(1402),c=n(3127);function h(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,u.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,i=(0,u.s)(e)&&e.offsetHeight||0,r=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(r.height),o.width=parseFloat(r.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=i-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function p(e){var t,n;let{children:o,isPresent:s,anchorX:l,anchorY:a,root:u,pop:p}=e,f=(0,r.useId)(),m=(0,r.useRef)(null),g=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:y}=(0,r.useContext)(c.Q),v=function(...e){return r.useCallback(function(...e){return t=>{let n=!1,i=e.map(e=>{let i=h(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():h(e[t],null)}}}}(...e),e)}(m,null!=(n=null==(t=o.props)?void 0:t.ref)?n:null==o?void 0:o.ref);return(0,r.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:i,right:r,bottom:o}=g.current;if(s||!1===p||!m.current||!e||!t)return;m.current.dataset.motionPopId=f;let c=document.createElement("style");y&&(c.nonce=y);let h=null!=u?u:document.head;return h.appendChild(c),c.sheet&&c.sheet.insertRule('\n [data-motion-pop-id="'.concat(f,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===l?"left: ".concat(i):"right: ".concat(r),"px !important;\n ").concat("bottom"===a?"bottom: ".concat(o):"top: ".concat(n),"px !important;\n }\n ")),()=>{var e;null==(e=m.current)||e.removeAttribute("data-motion-pop-id"),h.contains(c)&&h.removeChild(c)}},[s]),(0,i.jsx)(d,{isPresent:s,childRef:m,sizeRef:g,pop:p,children:!1===p?o:r.cloneElement(o,{ref:v})})}let f=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:l,custom:u,presenceAffectsLayout:c,mode:h,anchorX:d,anchorY:f,root:g}=e,y=(0,s.M)(m),v=(0,r.useId)(),x=!0,b=(0,r.useMemo)(()=>(x=!1,{id:v,initial:n,isPresent:o,custom:u,onExitComplete:e=>{for(let t of(y.set(e,!0),y.values()))if(!t)return;l&&l()},register:e=>(y.set(e,!1),()=>y.delete(e))}),[o,y,l]);return c&&x&&(b={...b}),(0,r.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[o]),r.useEffect(()=>{o||y.size||!l||l()},[o]),t=(0,i.jsx)(p,{pop:"popLayout"===h,isPresent:o,anchorX:d,anchorY:f,root:g,children:t}),(0,i.jsx)(a.t.Provider,{value:b,children:t})};function m(){return new Map}var g=n(5601);let y=e=>e.key||"";function v(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let x=e=>{let{children:t,custom:n,initial:a=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:p="left",anchorY:m="top",root:x}=e,[b,w]=(0,g.xQ)(d),k=(0,r.useMemo)(()=>v(t),[t]),S=d&&!b?[]:k.map(y),T=(0,r.useRef)(!0),E=(0,r.useRef)(k),C=(0,s.M)(()=>new Map),P=(0,r.useRef)(new Set),[M,A]=(0,r.useState)(k),[D,R]=(0,r.useState)(k);(0,l.E)(()=>{T.current=!1,E.current=k;for(let e=0;e<D.length;e++){let t=y(D[e]);S.includes(t)?(C.delete(t),P.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[D,S.length,S.join("-")]);let L=[];if(k!==M){let e=[...k];for(let t=0;t<D.length;t++){let n=D[t],i=y(n);S.includes(i)||(e.splice(t,0,n),L.push(n))}return"wait"===h&&L.length&&(e=L),R(v(e)),A(k),null}let{forceRender:I}=(0,r.useContext)(o.L);return(0,i.jsx)(i.Fragment,{children:D.map(e=>{let t=y(e),r=(!d||!!b)&&(k===D||S.includes(t));return(0,i.jsx)(f,{isPresent:r,initial:(!T.current||!!a)&&void 0,custom:n,presenceAffectsLayout:c,mode:h,root:x,onExitComplete:r?void 0:()=>{if(P.current.has(t)||!C.has(t))return;P.current.add(t),C.set(t,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(null==I||I(),R(E.current),d&&(null==w||w()),u&&u())},anchorX:p,anchorY:m,children:e},t)})})}},6997:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g;function u(e){return e?e.replace(a,""):""}e.exports=function(e,a){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];a=a||{};var c=1,h=1;function d(e){var t=e.match(n);t&&(c+=t.length);var i=e.lastIndexOf("\n");h=~i?e.length-i:h+e.length}function p(){var e={line:c,column:h};return function(t){return t.position=new f(e),g(i),t}}function f(e){this.start=e,this.end={line:c,column:h},this.source=a.source}function m(t){var n=Error(a.source+":"+c+":"+h+": "+t);if(n.reason=t,n.filename=a.source,n.line=c,n.column=h,n.source=e,a.silent);else throw n}function g(t){var n=t.exec(e);if(n){var i=n[0];return d(i),e=e.slice(i.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var i=e.slice(2,n-2);return h+=2,d(i),e=e.slice(n),h+=2,t({type:"comment",comment:i})}}f.prototype.content=e,g(i);var x,b=[];for(y(b);x=function(){var e=p(),n=g(r);if(n){if(v(),!g(o))return m("property missing ':'");var i=g(s),a=e({type:"declaration",property:u(n[0].replace(t,"")),value:i?u(i[0].replace(t,"")):""});return g(l),a}}();)!1!==x&&(b.push(x),y(b));return b}},7587:(e,t,n)=>{n.d(t,{$$:()=>m,Es:()=>p,KG:()=>y,Ks:()=>P,Ll:()=>l,Re:()=>T,Sw:()=>o,TW:()=>d,WQ:()=>S,YG:()=>w,YN:()=>g,ZC:()=>x,_q:()=>f,ag:()=>A,e_:()=>C,jn:()=>r,kx:()=>E,l6:()=>s,lk:()=>v,sb:()=>c,wz:()=>u,xZ:()=>h,zk:()=>a});var i=n(2115);function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function s(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function a(e){var t,n;return e?s(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){let{Document:t}=a(e);return e instanceof t}function c(e){return!s(e)&&e instanceof a(e).HTMLElement}function h(e){return e instanceof a(e).SVGElement}function d(e){return e?s(e)?e.document:l(e)?u(e)?e:c(e)||h(e)?e.ownerDocument:document:document:document}let p=o?i.useLayoutEffect:i.useEffect;function f(e){let t=(0,i.useRef)(e);return p(()=>{t.current=e}),(0,i.useCallback)(function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return null==t.current?void 0:t.current(...n)},[])}function m(){let e=(0,i.useRef)(null);return[(0,i.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,i.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);let n=(0,i.useRef)(e);return p(()=>{n.current!==e&&(n.current=e)},t),n}function y(e,t){let n=(0,i.useRef)();return(0,i.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function v(e){let t=f(e),n=(0,i.useRef)(null),r=(0,i.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function x(e){let t=(0,i.useRef)();return(0,i.useEffect)(()=>{t.current=e},[e]),t.current}let b={};function w(e,t){return(0,i.useMemo)(()=>{if(t)return t;let n=null==b[e]?0:b[e]+1;return b[e]=n,e+"-"+n},[e,t])}function k(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.reduce((t,n)=>{for(let[i,r]of Object.entries(n)){let n=t[i];null!=n&&(t[i]=n+e*r)}return t},{...t})}}let S=k(1),T=k(-1);function E(e){if(!e)return!1;let{KeyboardEvent:t}=a(e.target);return t&&e instanceof t}function C(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=a(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let P=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[P.Translate.toString(e),P.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),M="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function A(e){return e.matches(M)?e:e.querySelector(M)}},7787:(e,t,n)=>{n.d(t,{Mp:()=>ej,vL:()=>s,uN:()=>eo,AN:()=>ec,fp:()=>I,y$:()=>O,Sj:()=>z,Vy:()=>R,sl:()=>U,fF:()=>eU,PM:()=>eN,zM:()=>eH,MS:()=>T,FR:()=>E});var i,r,o,s,l,a,u,c,h,d,p=n(2115),f=n(7650),m=n(7587);let g={display:"none"};function y(e){let{id:t,value:n}=e;return p.createElement("div",{id:t,style:g},n)}function v(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;return p.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},n)}let x=(0,p.createContext)(null),b={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},w={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function k(e){let{announcements:t=w,container:n,hiddenTextDescribedById:i,screenReaderInstructions:r=b}=e,{announce:o,announcement:s}=function(){let[e,t]=(0,p.useState)("");return{announce:(0,p.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=(0,m.YG)("DndLiveRegion"),[a,u]=(0,p.useState)(!1);(0,p.useEffect)(()=>{u(!0)},[]);var c=(0,p.useMemo)(()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:i}=e;t.onDragMove&&o(t.onDragMove({active:n,over:i}))},onDragOver(e){let{active:n,over:i}=e;o(t.onDragOver({active:n,over:i}))},onDragEnd(e){let{active:n,over:i}=e;o(t.onDragEnd({active:n,over:i}))},onDragCancel(e){let{active:n,over:i}=e;o(t.onDragCancel({active:n,over:i}))}}),[o,t]);let h=(0,p.useContext)(x);if((0,p.useEffect)(()=>{if(!h)throw Error("useDndMonitor must be used within a children of <DndContext>");return h(c)},[c,h]),!a)return null;let d=p.createElement(p.Fragment,null,p.createElement(y,{id:i,value:r.draggable}),p.createElement(v,{id:l,announcement:s}));return n?(0,f.createPortal)(d,n):d}function S(){}function T(e,t){return(0,p.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function E(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,p.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(i||(i={}));let C=Object.freeze({x:0,y:0});function P(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function M(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function A(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function D(e){let{left:t,top:n,height:i,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+i},{x:t+r,y:n+i}]}function R(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function L(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e,r=L(t,t.left,t.top),o=[];for(let e of i){let{id:t}=e,i=n.get(t);if(i){let n=P(L(i),r);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(M)},O=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e,r=D(t),o=[];for(let e of i){let{id:t}=e,i=n.get(t);if(i){let n=D(i),s=Number((r.reduce((e,t,i)=>e+P(n[i],t),0)/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(M)},V=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e,r=[];for(let e of i){let{id:i}=e,o=n.get(i);if(o){let n=function(e,t){let n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(i<r&&n<o){let s=t.width*t.height,l=e.width*e.height,a=(r-i)*(o-n);return Number((a/(s+l-a)).toFixed(4))}return 0}(o,t);n>0&&r.push({id:i,data:{droppableContainer:e,value:n}})}}return r.sort(A)};function F(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:C}let j=function(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1),B={ignoreTransform:!1};function z(e,t){void 0===t&&(t=B);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:i}=(0,m.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let i=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!i)return e;let{scaleX:r,scaleY:o,x:s,y:l}=i,a=e.left-s-(1-r)*parseFloat(n),u=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,h=o?e.height/o:e.height;return{width:c,height:h,top:u,right:a+c,bottom:u+h,left:a}}(n,t,i))}let{top:i,left:r,width:o,height:s,bottom:l,right:a}=n;return{top:i,left:r,width:o,height:s,bottom:l,right:a}}function N(e){return z(e,{ignoreTransform:!0})}function U(e,t){let n=[];return e?function i(r){var o;if(null!=t&&n.length>=t||!r)return n;if((0,m.wz)(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!(0,m.sb)(r)||(0,m.xZ)(r)||n.includes(r))return n;let s=(0,m.zk)(e).getComputedStyle(r);return(r!==e&&function(e,t){void 0===t&&(t=(0,m.zk)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let i=t[e];return"string"==typeof i&&n.test(i)})}(r,s)&&n.push(r),void 0===(o=s)&&(o=(0,m.zk)(r).getComputedStyle(r)),"fixed"===o.position)?n:i(r.parentNode)}(e):n}function _(e){let[t]=U(e,1);return null!=t?t:null}function H(e){return m.Sw&&e?(0,m.l6)(e)?e:(0,m.Ll)(e)?(0,m.wz)(e)||e===(0,m.TW)(e).scrollingElement?window:(0,m.sb)(e)?e:null:null:null}function W(e){return(0,m.l6)(e)?e.scrollX:e.scrollLeft}function Y(e){return(0,m.l6)(e)?e.scrollY:e.scrollTop}function $(e){return{x:W(e),y:Y(e)}}function q(e){return!!m.Sw&&!!e&&e===document.scrollingElement}function K(e){let t={x:0,y:0},n=q(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,o=e.scrollLeft<=t.x;return{isTop:r,isLeft:o,isBottom:e.scrollTop>=i.y,isRight:e.scrollLeft>=i.x,maxScroll:i,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(r||(r={}));let X={x:.2,y:.2};function G(e){return e.reduce((e,t)=>(0,m.WQ)(e,$(t)),C)}let Z=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+W(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Y(t),0)}]];class Q{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=U(t),i=G(n);for(let[t,r,o]of(this.rect={...e},this.width=e.width,this.height=e.height,Z))for(let e of r)Object.defineProperty(this,e,{get:()=>{let r=o(n),s=i[t]-r;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class J{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var i;null==(i=this.target)||i.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ee(e,t){let n=Math.abs(e.x),i=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t&&i>t.y}function et(e){e.preventDefault()}function en(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(o||(o={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(s||(s={}));let ei={start:[s.Space,s.Enter],cancel:[s.Esc],end:[s.Space,s.Enter,s.Tab]},er=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case s.Right:return{...n,x:n.x+25};case s.Left:return{...n,x:n.x-25};case s.Down:return{...n,y:n.y+25};case s.Up:return{...n,y:n.y-25}}};class eo{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new J((0,m.TW)(t)),this.windowListeners=new J((0,m.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(o.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=z),!e)return;let{top:n,left:i,bottom:r,right:o}=t(e);_(e)&&(r<=0||o<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(C)}handleKeyDown(e){if((0,m.kx)(e)){let{active:t,context:n,options:i}=this.props,{keyboardCodes:r=ei,coordinateGetter:o=er,scrollBehavior:l="smooth"}=i,{code:a}=e;if(r.end.includes(a))return void this.handleEnd(e);if(r.cancel.includes(a))return void this.handleCancel(e);let{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:C;this.referenceCoordinates||(this.referenceCoordinates=c);let h=o(e,{active:t,context:n.current,currentCoordinates:c});if(h){let t=(0,m.Re)(h,c),i={x:0,y:0},{scrollableAncestors:r}=n.current;for(let n of r){let r=e.code,{isTop:o,isRight:a,isLeft:u,isBottom:c,maxScroll:d,minScroll:p}=K(n),f=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:i,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:r,width:e.clientWidth,height:e.clientHeight}}(n),m={x:Math.min(r===s.Right?f.right-f.width/2:f.right,Math.max(r===s.Right?f.left:f.left+f.width/2,h.x)),y:Math.min(r===s.Down?f.bottom-f.height/2:f.bottom,Math.max(r===s.Down?f.top:f.top+f.height/2,h.y))},g=r===s.Right&&!a||r===s.Left&&!u,y=r===s.Down&&!c||r===s.Up&&!o;if(g&&m.x!==h.x){let e=n.scrollLeft+t.x,o=r===s.Right&&e<=d.x||r===s.Left&&e>=p.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:l});o?i.x=n.scrollLeft-e:i.x=r===s.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,i.x&&n.scrollBy({left:-i.x,behavior:l});break}if(y&&m.y!==h.y){let e=n.scrollTop+t.y,o=r===s.Down&&e<=d.y||r===s.Up&&e>=p.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:l});o?i.y=n.scrollTop-e:i.y=r===s.Down?n.scrollTop-d.y:n.scrollTop-p.y,i.y&&n.scrollBy({top:-i.y,behavior:l});break}}this.handleMove(e,(0,m.WQ)((0,m.Re)(h,this.referenceCoordinates),i))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function es(e){return!!(e&&"distance"in e)}function el(e){return!!(e&&"delay"in e)}eo.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=ei,onActivation:r}=t,{active:o}=n,{code:s}=e.nativeEvent;if(i.start.includes(s)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==r||r({event:e.nativeEvent}),!0)}return!1}}];class ea{constructor(e,t,n){var i;void 0===n&&(n=function(e){let{EventTarget:t}=(0,m.zk)(e);return e instanceof t?e:(0,m.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:o}=r;this.props=e,this.events=t,this.document=(0,m.TW)(o),this.documentListeners=new J(this.document),this.listeners=new J(n),this.windowListeners=new J((0,m.zk)(o)),this.initialCoordinates=null!=(i=(0,m.e_)(r))?i:C,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.DragStart,et),this.windowListeners.add(o.VisibilityChange,this.handleCancel),this.windowListeners.add(o.ContextMenu,et),this.documentListeners.add(o.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(el(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(es(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:i}=this.props;i(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(o.Click,en,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(o.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:i,props:r}=this,{onMove:o,options:{activationConstraint:s}}=r;if(!i)return;let l=null!=(t=(0,m.e_)(e))?t:C,a=(0,m.Re)(i,l);if(!n&&s){if(es(s)){if(null!=s.tolerance&&ee(a,s.tolerance))return this.handleCancel();if(ee(a,s.distance))return this.handleStart()}return el(s)&&ee(a,s.tolerance)?this.handleCancel():void this.handlePending(s,a)}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===s.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eu={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ec extends ea{constructor(e){let{event:t}=e;super(e,eu,(0,m.TW)(t.target))}}ec.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!!n.isPrimary&&0===n.button&&(null==i||i({event:n}),!0)}}];let eh={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(l||(l={}));class ed extends ea{constructor(e){super(e,eh,(0,m.TW)(e.event.target))}}ed.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button!==l.RightClick&&(null==i||i({event:n}),!0)}}];let ep={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ef extends ea{constructor(e){super(e,ep)}static setup(){return window.addEventListener(ep.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ep.move.name,e)};function e(){}}}ef.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t,{touches:r}=n;return!(r.length>1)&&(null==i||i({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(a||(a={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(u||(u={}));let em={x:{[r.Backward]:!1,[r.Forward]:!1},y:{[r.Backward]:!1,[r.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(c||(c={})),(h||(h={})).Optimized="optimized";let eg=new Map;function ey(e,t){return(0,m.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function ev(e){let{callback:t,disabled:n}=e,i=(0,m._q)(t),r=(0,p.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(i)},[n]);return(0,p.useEffect)(()=>()=>null==r?void 0:r.disconnect(),[r]),r}function ex(e){return new Q(z(e),e)}function eb(e,t,n){void 0===t&&(t=ex);let[i,r]=(0,p.useState)(null);function o(){r(i=>{if(!e)return null;if(!1===e.isConnected){var r;return null!=(r=null!=i?i:n)?r:null}let o=t(e);return JSON.stringify(i)===JSON.stringify(o)?i:o})}let s=function(e){let{callback:t,disabled:n}=e,i=(0,m._q)(t),r=(0,p.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(i)},[i,n]);return(0,p.useEffect)(()=>()=>null==r?void 0:r.disconnect(),[r]),r}({callback(t){if(e)for(let n of t){let{type:t,target:i}=n;if("childList"===t&&i instanceof HTMLElement&&i.contains(e)){o();break}}}}),l=ev({callback:o});return(0,m.Es)(()=>{o(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())},[e]),i}let ew=[];function ek(e,t){void 0===t&&(t=[]);let n=(0,p.useRef)(null);return(0,p.useEffect)(()=>{n.current=null},t),(0,p.useEffect)(()=>{let t=e!==C;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,m.Re)(e,n.current):C}function eS(e){return(0,p.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let eT=[],eE=[{sensor:ec,options:{}},{sensor:eo,options:{}}],eC={current:{}},eP={draggable:{measure:N},droppable:{measure:N,strategy:c.WhileDragging,frequency:h.Optimized},dragOverlay:{measure:z}};class eM extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eA={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eM,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:S},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eP,measureDroppableContainers:S,windowRect:null,measuringScheduled:!1},eD={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:S,draggableNodes:new Map,over:null,measureDroppableContainers:S},eR=(0,p.createContext)(eD),eL=(0,p.createContext)(eA);function eI(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eM}}}function eO(e,t){switch(t.type){case i.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case i.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case i.DragEnd:case i.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case i.RegisterDroppable:{let{element:n}=t,{id:i}=n,r=new eM(e.droppable.containers);return r.set(i,n),{...e,droppable:{...e.droppable,containers:r}}}case i.SetDroppableDisabled:{let{id:n,key:i,disabled:r}=t,o=e.droppable.containers.get(n);if(!o||i!==o.key)return e;let s=new eM(e.droppable.containers);return s.set(n,{...o,disabled:r}),{...e,droppable:{...e.droppable,containers:s}}}case i.UnregisterDroppable:{let{id:n,key:i}=t,r=e.droppable.containers.get(n);if(!r||i!==r.key)return e;let o=new eM(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function eV(e){let{disabled:t}=e,{active:n,activatorEvent:i,draggableNodes:r}=(0,p.useContext)(eR),o=(0,m.ZC)(i),s=(0,m.ZC)(null==n?void 0:n.id);return(0,p.useEffect)(()=>{if(!t&&!i&&o&&null!=s){if(!(0,m.kx)(o)||document.activeElement===o.target)return;let e=r.get(s);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,m.ag)(e);if(t){t.focus();break}}})}},[i,t,r,s,o]),null}let eF=(0,p.createContext)({...C,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(d||(d={}));let ej=(0,p.memo)(function(e){var t,n,o,s,l,h;let{id:g,accessibility:y,autoScroll:v=!0,children:b,sensors:w=eE,collisionDetection:S=V,measuring:T,modifiers:E,...P}=e,[M,A]=(0,p.useReducer)(eO,void 0,eI),[D,L]=function(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,p.useCallback)(t=>{let{type:n,event:i}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,i)})},[e]),t]}(),[I,O]=(0,p.useState)(d.Uninitialized),B=I===d.Initialized,{draggable:{active:N,nodes:W,translate:Y},droppable:{containers:Z}}=M,J=null!=N?W.get(N):null,ee=(0,p.useRef)({initial:null,translated:null}),et=(0,p.useMemo)(()=>{var e;return null!=N?{id:N,data:null!=(e=null==J?void 0:J.data)?e:eC,rect:ee}:null},[N,J]),en=(0,p.useRef)(null),[ei,er]=(0,p.useState)(null),[eo,es]=(0,p.useState)(null),el=(0,m.YN)(P,Object.values(P)),ea=(0,m.YG)("DndDescribedBy",g),eu=(0,p.useMemo)(()=>Z.getEnabled(),[Z]),ec=(0,p.useMemo)(()=>({draggable:{...eP.draggable,...null==T?void 0:T.draggable},droppable:{...eP.droppable,...null==T?void 0:T.droppable},dragOverlay:{...eP.dragOverlay,...null==T?void 0:T.dragOverlay}}),[null==T?void 0:T.draggable,null==T?void 0:T.droppable,null==T?void 0:T.dragOverlay]),{droppableRects:eh,measureDroppableContainers:ed,measuringScheduled:ep}=function(e,t){let{dragging:n,dependencies:i,config:r}=t,[o,s]=(0,p.useState)(null),{frequency:l,measure:a,strategy:u}=r,h=(0,p.useRef)(e),d=function(){switch(u){case c.Always:return!1;case c.BeforeDragging:return n;default:return!n}}(),f=(0,m.YN)(d),g=(0,p.useCallback)(function(e){void 0===e&&(e=[]),f.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),y=(0,p.useRef)(null),v=(0,m.KG)(t=>{if(d&&!n)return eg;if(!t||t===eg||h.current!==e||null!=o){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,i=e?new Q(a(e),e):null;n.rect.current=i,i&&t.set(n.id,i)}return t}return t},[e,o,n,d,a]);return(0,p.useEffect)(()=>{h.current=e},[e]),(0,p.useEffect)(()=>{d||g()},[n,d]),(0,p.useEffect)(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),(0,p.useEffect)(()=>{d||"number"!=typeof l||null!==y.current||(y.current=setTimeout(()=>{g(),y.current=null},l))},[l,d,g,...i]),{droppableRects:v,measureDroppableContainers:g,measuringScheduled:null!=o}}(eu,{dragging:B,dependencies:[Y.x,Y.y],config:ec.droppable}),ef=function(e,t){let n=null!=t?e.get(t):void 0,i=n?n.node.current:null;return(0,m.KG)(e=>{var n;return null==t?null:null!=(n=null!=i?i:e)?n:null},[i,t])}(W,N),ex=(0,p.useMemo)(()=>eo?(0,m.e_)(eo):null,[eo]),eM=function(){let e=(null==ei?void 0:ei.autoScrollEnabled)===!1,t="object"==typeof v?!1===v.enabled:!1===v,n=B&&!e&&!t;return"object"==typeof v?{...v,enabled:n}:{enabled:n}}(),eA=ey(ef,ec.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:r=!0}=e,o=(0,p.useRef)(!1),{x:s,y:l}="boolean"==typeof r?{x:r,y:r}:r;(0,m.Es)(()=>{if(!s&&!l||!t){o.current=!1;return}if(o.current||!i)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let r=F(n(e),i);if(s||(r.x=0),l||(r.y=0),o.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){let t=_(e);t&&t.scrollBy({top:r.y,left:r.x})}},[t,s,l,i,n])}({activeNode:null!=N?W.get(N):null,config:eM.layoutShiftCompensation,initialRect:eA,measure:ec.draggable.measure});let eD=eb(ef,ec.draggable.measure,eA),ej=eb(ef?ef.parentElement:null),eB=(0,p.useRef)({activatorEvent:null,active:null,activeNode:ef,collisionRect:null,collisions:null,droppableRects:eh,draggableNodes:W,draggingNode:null,draggingNodeRect:null,droppableContainers:Z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ez=Z.getNodeFor(null==(t=eB.current.over)?void 0:t.id),eN=function(e){let{measure:t}=e,[n,i]=(0,p.useState)(null),r=ev({callback:(0,p.useCallback)(e=>{for(let{target:n}of e)if((0,m.sb)(n)){i(e=>{let i=t(n);return e?{...e,width:i.width,height:i.height}:i});break}},[t])}),o=(0,p.useCallback)(e=>{let n=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,m.sb)(t)?t:e}(e);null==r||r.disconnect(),n&&(null==r||r.observe(n)),i(n?t(n):null)},[t,r]),[s,l]=(0,m.lk)(o);return(0,p.useMemo)(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}({measure:ec.dragOverlay.measure}),eU=null!=(n=eN.nodeRef.current)?n:ef,e_=B?null!=(o=eN.rect)?o:eD:null,eH=!!(eN.nodeRef.current&&eN.rect),eW=function(e){let t=ey(e);return F(e,t)}(eH?null:eD),eY=eS(eU?(0,m.zk)(eU):null),e$=function(e){let t=(0,p.useRef)(e),n=(0,m.KG)(n=>e?n&&n!==ew&&e&&t.current&&e.parentNode===t.current.parentNode?n:U(e):ew,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),n}(B?null!=ez?ez:ef:null),eq=function(e,t){void 0===t&&(t=z);let[n]=e,i=eS(n?(0,m.zk)(n):null),[r,o]=(0,p.useState)(eT);function s(){o(()=>e.length?e.map(e=>q(e)?i:new Q(t(e),e)):eT)}let l=ev({callback:s});return(0,m.Es)(()=>{null==l||l.disconnect(),s(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),r}(e$),eK=function(e,t){let{transform:n,...i}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...i}),n):n}(E,{transform:{x:Y.x-eW.x,y:Y.y-eW.y,scaleX:1,scaleY:1},activatorEvent:eo,active:et,activeNodeRect:eD,containerNodeRect:ej,draggingNodeRect:e_,over:eB.current.over,overlayNodeRect:eN.rect,scrollableAncestors:e$,scrollableAncestorRects:eq,windowRect:eY}),eX=ex?(0,m.WQ)(ex,Y):null,eG=function(e){let[t,n]=(0,p.useState)(null),i=(0,p.useRef)(e),r=(0,p.useCallback)(e=>{let t=H(e.target);t&&n(e=>e?(e.set(t,$(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=i.current;if(e!==t){o(t);let s=e.map(e=>{let t=H(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,$(t)]):null}).filter(e=>null!=e);n(s.length?new Map(s):null),i.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=H(e);null==t||t.removeEventListener("scroll",r)})}},[r,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,m.WQ)(e,t),C):G(e):C,[e,t])}(e$),eZ=ek(eG),eQ=ek(eG,[eD]),eJ=(0,m.WQ)(eK,eZ),e0=e_?j(e_,eK):null,e1=et&&e0?S({active:et,collisionRect:e0,droppableRects:eh,droppableContainers:eu,pointerCoordinates:eX}):null,e2=R(e1,"id"),[e5,e4]=(0,p.useState)(null),e3=(l=eH?eK:(0,m.WQ)(eK,eQ),h=null!=(s=null==e5?void 0:e5.rect)?s:null,{...l,scaleX:h&&eD?h.width/eD.width:1,scaleY:h&&eD?h.height/eD.height:1}),e6=(0,p.useRef)(null),e9=(0,p.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==en.current)return;let o=W.get(en.current);if(!o)return;let s=e.nativeEvent,l=new n({active:en.current,activeNode:o,event:s,options:r,context:eB,onAbort(e){if(!W.get(e))return;let{onDragAbort:t}=el.current,n={id:e};null==t||t(n),D({type:"onDragAbort",event:n})},onPending(e,t,n,i){if(!W.get(e))return;let{onDragPending:r}=el.current,o={id:e,constraint:t,initialCoordinates:n,offset:i};null==r||r(o),D({type:"onDragPending",event:o})},onStart(e){let t=en.current;if(null==t)return;let n=W.get(t);if(!n)return;let{onDragStart:r}=el.current,o={activatorEvent:s,active:{id:t,data:n.data,rect:ee}};(0,f.unstable_batchedUpdates)(()=>{null==r||r(o),O(d.Initializing),A({type:i.DragStart,initialCoordinates:e,active:t}),D({type:"onDragStart",event:o}),er(e6.current),es(s)})},onMove(e){A({type:i.DragMove,coordinates:e})},onEnd:a(i.DragEnd),onCancel:a(i.DragCancel)});function a(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=eB.current,l=null;if(t&&o){let{cancelDrop:a}=el.current;l={activatorEvent:s,active:t,collisions:n,delta:o,over:r},e===i.DragEnd&&"function"==typeof a&&await Promise.resolve(a(l))&&(e=i.DragCancel)}en.current=null,(0,f.unstable_batchedUpdates)(()=>{A({type:e}),O(d.Uninitialized),e4(null),er(null),es(null),e6.current=null;let t=e===i.DragEnd?"onDragEnd":"onDragCancel";if(l){let e=el.current[t];null==e||e(l),D({type:t,event:l})}})}}e6.current=l},[W]),e7=(0,p.useCallback)((e,t)=>(n,i)=>{let r=n.nativeEvent,o=W.get(i);null!==en.current||!o||r.dndKit||r.defaultPrevented||!0===e(n,t.options,{active:o})&&(r.dndKit={capturedBy:t.sensor},en.current=i,e9(n,t))},[W,e9]),e8=(0,p.useMemo)(()=>w.reduce((e,t)=>{let{sensor:n}=t;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:e7(e.handler,t)}))]},[]),[w,e7]);(0,p.useEffect)(()=>{if(!m.Sw)return;let e=w.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},w.map(e=>{let{sensor:t}=e;return t})),(0,m.Es)(()=>{eD&&I===d.Initializing&&O(d.Initialized)},[eD,I]),(0,p.useEffect)(()=>{let{onDragMove:e}=el.current,{active:t,activatorEvent:n,collisions:i,over:r}=eB.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:i,delta:{x:eJ.x,y:eJ.y},over:r};(0,f.unstable_batchedUpdates)(()=>{null==e||e(o),D({type:"onDragMove",event:o})})},[eJ.x,eJ.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:i,scrollAdjustedTranslate:r}=eB.current;if(!e||null==en.current||!t||!r)return;let{onDragOver:o}=el.current,s=i.get(e2),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,a={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:l};(0,f.unstable_batchedUpdates)(()=>{e4(l),null==o||o(a),D({type:"onDragOver",event:a})})},[e2]),(0,m.Es)(()=>{eB.current={activatorEvent:eo,active:et,activeNode:ef,collisionRect:e0,collisions:e1,droppableRects:eh,draggableNodes:W,draggingNode:eU,draggingNodeRect:e_,droppableContainers:Z,over:e5,scrollableAncestors:e$,scrollAdjustedTranslate:eJ},ee.current={initial:e_,translated:e0}},[et,ef,e1,e0,W,eU,e_,eh,Z,e5,e$,eJ]),function(e){let{acceleration:t,activator:n=a.Pointer,canScroll:i,draggingRect:o,enabled:s,interval:l=5,order:c=u.TreeOrder,pointerCoordinates:h,scrollableAncestors:d,scrollableAncestorRects:f,delta:g,threshold:y}=e,v=function(e){let{delta:t,disabled:n}=e,i=(0,m.ZC)(t);return(0,m.KG)(e=>{if(n||!i||!e)return em;let o={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[r.Backward]:e.x[r.Backward]||-1===o.x,[r.Forward]:e.x[r.Forward]||1===o.x},y:{[r.Backward]:e.y[r.Backward]||-1===o.y,[r.Forward]:e.y[r.Forward]||1===o.y}}},[n,t,i])}({delta:g,disabled:!s}),[x,b]=(0,m.$$)(),w=(0,p.useRef)({x:0,y:0}),k=(0,p.useRef)({x:0,y:0}),S=(0,p.useMemo)(()=>{switch(n){case a.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case a.DraggableRect:return o}},[n,o,h]),T=(0,p.useRef)(null),E=(0,p.useCallback)(()=>{let e=T.current;if(!e)return;let t=w.current.x*k.current.x,n=w.current.y*k.current.y;e.scrollBy(t,n)},[]),C=(0,p.useMemo)(()=>c===u.TreeOrder?[...d].reverse():d,[c,d]);(0,p.useEffect)(()=>{if(!s||!d.length||!S)return void b();for(let e of C){if((null==i?void 0:i(e))===!1)continue;let n=f[d.indexOf(e)];if(!n)continue;let{direction:o,speed:s}=function(e,t,n,i,o){let{top:s,left:l,right:a,bottom:u}=n;void 0===i&&(i=10),void 0===o&&(o=X);let{isTop:c,isBottom:h,isLeft:d,isRight:p}=K(e),f={x:0,y:0},m={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!c&&s<=t.top+g.height?(f.y=r.Backward,m.y=i*Math.abs((t.top+g.height-s)/g.height)):!h&&u>=t.bottom-g.height&&(f.y=r.Forward,m.y=i*Math.abs((t.bottom-g.height-u)/g.height)),!p&&a>=t.right-g.width?(f.x=r.Forward,m.x=i*Math.abs((t.right-g.width-a)/g.width)):!d&&l<=t.left+g.width&&(f.x=r.Backward,m.x=i*Math.abs((t.left+g.width-l)/g.width)),{direction:f,speed:m}}(e,n,S,t,y);for(let e of["x","y"])v[e][o[e]]||(s[e]=0,o[e]=0);if(s.x>0||s.y>0){b(),T.current=e,x(E,l),w.current=s,k.current=o;return}}w.current={x:0,y:0},k.current={x:0,y:0},b()},[t,E,i,b,s,l,JSON.stringify(S),JSON.stringify(v),x,d,C,f,JSON.stringify(y)])}({...eM,delta:Y,draggingRect:e0,pointerCoordinates:eX,scrollableAncestors:e$,scrollableAncestorRects:eq});let te=(0,p.useMemo)(()=>({active:et,activeNode:ef,activeNodeRect:eD,activatorEvent:eo,collisions:e1,containerNodeRect:ej,dragOverlay:eN,draggableNodes:W,droppableContainers:Z,droppableRects:eh,over:e5,measureDroppableContainers:ed,scrollableAncestors:e$,scrollableAncestorRects:eq,measuringConfiguration:ec,measuringScheduled:ep,windowRect:eY}),[et,ef,eD,eo,e1,ej,eN,W,Z,eh,e5,ed,e$,eq,ec,ep,eY]),tt=(0,p.useMemo)(()=>({activatorEvent:eo,activators:e8,active:et,activeNodeRect:eD,ariaDescribedById:{draggable:ea},dispatch:A,draggableNodes:W,over:e5,measureDroppableContainers:ed}),[eo,e8,et,eD,A,ea,W,e5,ed]);return p.createElement(x.Provider,{value:L},p.createElement(eR.Provider,{value:tt},p.createElement(eL.Provider,{value:te},p.createElement(eF.Provider,{value:e3},b)),p.createElement(eV,{disabled:(null==y?void 0:y.restoreFocus)===!1})),p.createElement(k,{...y,hiddenTextDescribedById:ea}))}),eB=(0,p.createContext)(null),ez="button";function eN(e){let{id:t,data:n,disabled:i=!1,attributes:r}=e,o=(0,m.YG)("Draggable"),{activators:s,activatorEvent:l,active:a,activeNodeRect:u,ariaDescribedById:c,draggableNodes:h,over:d}=(0,p.useContext)(eR),{role:f=ez,roleDescription:g="draggable",tabIndex:y=0}=null!=r?r:{},v=(null==a?void 0:a.id)===t,x=(0,p.useContext)(v?eF:eB),[b,w]=(0,m.lk)(),[k,S]=(0,m.lk)(),T=(0,p.useMemo)(()=>s.reduce((e,n)=>{let{eventName:i,handler:r}=n;return e[i]=e=>{r(e,t)},e},{}),[s,t]),E=(0,m.YN)(n);return(0,m.Es)(()=>(h.set(t,{id:t,key:o,node:b,activatorNode:k,data:E}),()=>{let e=h.get(t);e&&e.key===o&&h.delete(t)}),[h,t]),{active:a,activatorEvent:l,activeNodeRect:u,attributes:(0,p.useMemo)(()=>({role:f,tabIndex:y,"aria-disabled":i,"aria-pressed":!!v&&f===ez||void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[i,f,y,v,g,c.draggable]),isDragging:v,listeners:i?void 0:T,node:b,over:d,setNodeRef:w,setActivatorNodeRef:S,transform:x}}function eU(){return(0,p.useContext)(eL)}let e_={timeout:25};function eH(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,s=(0,m.YG)("Droppable"),{active:l,dispatch:a,over:u,measureDroppableContainers:c}=(0,p.useContext)(eR),h=(0,p.useRef)({disabled:n}),d=(0,p.useRef)(!1),f=(0,p.useRef)(null),g=(0,p.useRef)(null),{disabled:y,updateMeasurementsFor:v,timeout:x}={...e_,...o},b=(0,m.YN)(null!=v?v:r),w=ev({callback:(0,p.useCallback)(()=>{if(!d.current){d.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),g.current=null},x)},[x]),disabled:y||!l}),k=(0,p.useCallback)((e,t)=>{w&&(t&&(w.unobserve(t),d.current=!1),e&&w.observe(e))},[w]),[S,T]=(0,m.lk)(k),E=(0,m.YN)(t);return(0,p.useEffect)(()=>{w&&S.current&&(w.disconnect(),d.current=!1,w.observe(S.current))},[S,w]),(0,p.useEffect)(()=>(a({type:i.RegisterDroppable,element:{id:r,key:s,disabled:n,node:S,rect:f,data:E}}),()=>a({type:i.UnregisterDroppable,key:s,id:r})),[r]),(0,p.useEffect)(()=>{n!==h.current.disabled&&(a({type:i.SetDroppableDisabled,id:r,key:s,disabled:n}),h.current.disabled=n)},[r,s,n,a]),{active:l,rect:f,isOver:(null==u?void 0:u.id)===r,node:S,over:u,setNodeRef:T}}},9027:(e,t,n)=>{n.d(t,{JR:()=>w,gB:()=>h,gl:()=>v,kL:()=>a});var i=n(2115),r=n(7787),o=n(7587);function s(e,t,n){let i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function l(e){return null!==e&&e>=0}let a=e=>{let{rects:t,activeIndex:n,overIndex:i,index:r}=e,o=s(t,i,n),l=t[r],a=o[r];return a&&l?{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}:null},u="Sortable",c=i.createContext({activeIndex:-1,containerId:u,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:a,disabled:{draggable:!1,droppable:!1}});function h(e){let{children:t,id:n,items:s,strategy:l=a,disabled:h=!1}=e,{active:d,dragOverlay:p,droppableRects:f,over:m,measureDroppableContainers:g}=(0,r.fF)(),y=(0,o.YG)(u,n),v=null!==p.rect,x=(0,i.useMemo)(()=>s.map(e=>"object"==typeof e&&"id"in e?e.id:e),[s]),b=null!=d,w=d?x.indexOf(d.id):-1,k=m?x.indexOf(m.id):-1,S=(0,i.useRef)(x),T=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(x,S.current),E=-1!==k&&-1===w||T,C="boolean"==typeof h?{draggable:h,droppable:h}:h;(0,o.Es)(()=>{T&&b&&g(x)},[T,x,b,g]),(0,i.useEffect)(()=>{S.current=x},[x]);let P=(0,i.useMemo)(()=>({activeIndex:w,containerId:y,disabled:C,disableTransforms:E,items:x,overIndex:k,useDragOverlay:v,sortedRects:x.reduce((e,t,n)=>{let i=f.get(t);return i&&(e[n]=i),e},Array(x.length)),strategy:l}),[w,y,C.draggable,C.droppable,E,x,k,f,v,l]);return i.createElement(c.Provider,{value:P},t)}let d=e=>{let{id:t,items:n,activeIndex:i,overIndex:r}=e;return s(n,i,r).indexOf(t)},p=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:r,items:o,newIndex:s,previousItems:l,previousContainerId:a,transition:u}=e;return!!u&&!!i&&(l===o||r!==s)&&(!!n||s!==r&&t===a)},f={duration:200,easing:"ease"},m="transform",g=o.Ks.Transition.toString({property:m,duration:0,easing:"linear"}),y={roleDescription:"sortable"};function v(e){var t,n,s,a;let{animateLayoutChanges:u=p,attributes:h,disabled:v,data:x,getNewIndex:b=d,id:w,strategy:k,resizeObserverConfig:S,transition:T=f}=e,{items:E,containerId:C,activeIndex:P,disabled:M,disableTransforms:A,sortedRects:D,overIndex:R,useDragOverlay:L,strategy:I}=(0,i.useContext)(c),O=(t=v,n=M,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(s=null==t?void 0:t.draggable)?s:n.draggable,droppable:null!=(a=null==t?void 0:t.droppable)?a:n.droppable}),V=E.indexOf(w),F=(0,i.useMemo)(()=>({sortable:{containerId:C,index:V,items:E},...x}),[C,x,V,E]),j=(0,i.useMemo)(()=>E.slice(E.indexOf(w)),[E,w]),{rect:B,node:z,isOver:N,setNodeRef:U}=(0,r.zM)({id:w,data:F,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:j,...S}}),{active:_,activatorEvent:H,activeNodeRect:W,attributes:Y,setNodeRef:$,listeners:q,isDragging:K,over:X,setActivatorNodeRef:G,transform:Z}=(0,r.PM)({id:w,data:F,attributes:{...y,...h},disabled:O.draggable}),Q=(0,o.jn)(U,$),J=!!_,ee=J&&!A&&l(P)&&l(R),et=!L&&K,en=et&&ee?Z:null,ei=ee?null!=en?en:(null!=k?k:I)({rects:D,activeNodeRect:W,activeIndex:P,overIndex:R,index:V}):null,er=l(P)&&l(R)?b({id:w,items:E,activeIndex:P,overIndex:R}):V,eo=null==_?void 0:_.id,es=(0,i.useRef)({activeId:eo,items:E,newIndex:er,containerId:C}),el=E!==es.current.items,ea=u({active:_,containerId:C,isDragging:K,isSorting:J,id:w,index:V,items:E,newIndex:es.current.newIndex,previousItems:es.current.items,previousContainerId:es.current.containerId,transition:T,wasDragging:null!=es.current.activeId}),eu=function(e){let{disabled:t,index:n,node:s,rect:l}=e,[a,u]=(0,i.useState)(null),c=(0,i.useRef)(n);return(0,o.Es)(()=>{if(!t&&n!==c.current&&s.current){let e=l.current;if(e){let t=(0,r.Sj)(s.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)},[t,n,s,l]),(0,i.useEffect)(()=>{a&&u(null)},[a]),a}({disabled:!ea,index:V,node:z,rect:B});return(0,i.useEffect)(()=>{J&&es.current.newIndex!==er&&(es.current.newIndex=er),C!==es.current.containerId&&(es.current.containerId=C),E!==es.current.items&&(es.current.items=E)},[J,er,C,E]),(0,i.useEffect)(()=>{if(eo===es.current.activeId)return;if(null!=eo&&null==es.current.activeId){es.current.activeId=eo;return}let e=setTimeout(()=>{es.current.activeId=eo},50);return()=>clearTimeout(e)},[eo]),{active:_,activeIndex:P,attributes:Y,data:F,rect:B,index:V,newIndex:er,items:E,isOver:N,isSorting:J,isDragging:K,listeners:q,node:z,overIndex:R,over:X,setNodeRef:Q,setActivatorNodeRef:G,setDroppableNodeRef:U,setDraggableNodeRef:$,transform:null!=eu?eu:ei,transition:eu||el&&es.current.newIndex===V?g:(!et||(0,o.kx)(H))&&T&&(J||ea)?o.Ks.Transition.toString({...T,property:m}):void 0}}function x(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let b=[r.vL.Down,r.vL.Right,r.vL.Up,r.vL.Left],w=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:s,droppableContainers:l,over:a,scrollableAncestors:u}}=t;if(b.includes(e.code)){if(e.preventDefault(),!n||!i)return;let t=[];l.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let o=s.get(n.id);if(o)switch(e.code){case r.vL.Down:i.top<o.top&&t.push(n);break;case r.vL.Up:i.top>o.top&&t.push(n);break;case r.vL.Left:i.left>o.left&&t.push(n);break;case r.vL.Right:i.left<o.left&&t.push(n)}});let c=(0,r.y$)({active:n,collisionRect:i,droppableRects:s,droppableContainers:t,pointerCoordinates:null}),h=(0,r.Vy)(c,"id");if(h===(null==a?void 0:a.id)&&c.length>1&&(h=c[1].id),null!=h){let e=l.get(n.id),t=l.get(h),a=t?s.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&a&&e&&t){let n=(0,r.sl)(c).some((e,t)=>u[t]!==e),s=k(e,t),l=function(e,t){return!!x(e)&&!!x(t)&&!!k(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),h=n||!s?{x:0,y:0}:{x:l?i.width-a.width:0,y:l?i.height-a.height:0},d={x:a.left,y:a.top};return h.x&&h.y?d:(0,o.Re)(d,h)}}}};function k(e,t){return!!x(e)&&!!x(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},9677:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},a=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||r.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,a):e.replace(o,a)).replace(i,l))}},9686:(e,t,n)=>{n.d(t,{t:()=>i});let i=(0,n(2115).createContext)(null)},9924:(e,t,n)=>{let i,r,o;n.d(t,{P:()=>oz});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set(s),a=(e,t,n)=>n>t?t:n<e?e:n,u={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},c={...u,transform:e=>a(0,1,e)},h={...u,default:1},d=e=>Math.round(1e5*e)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(e,t)=>n=>!!("string"==typeof n&&f.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),g=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[r,o,s,l]=i.match(p);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}},y={...u,transform:e=>Math.round(a(0,255,e))},v={test:m("rgb","red"),parse:g("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+y.transform(e)+", "+y.transform(t)+", "+y.transform(n)+", "+d(c.transform(i))+")"},x={test:m("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:v.transform},b=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),w=b("deg"),k=b("%"),S=b("px"),T=b("vh"),E=b("vw"),C={...k,parse:e=>k.parse(e)/100,transform:e=>k.transform(100*e)},P={test:m("hsl","hue"),parse:g("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+k.transform(d(t))+", "+k.transform(d(n))+", "+d(c.transform(i))+")"},M={test:e=>v.test(e)||x.test(e)||P.test(e),parse:e=>v.test(e)?v.parse(e):P.test(e)?P.parse(e):x.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?v.transform(e):P.transform(e),getAnimatableNone:e=>{let t=M.parse(e);return t.alpha=0,M.transform(t)}},A=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,D="number",R="color",L=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function I(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,s=t.replace(L,e=>(M.test(e)?(i.color.push(o),r.push(R),n.push(M.parse(e))):e.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(e)):(i.number.push(o),r.push(D),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function O({split:e,types:t}){let n=e.length;return i=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],void 0!==i[o]){let e=t[o];e===D?r+=d(i[o]):e===R?r+=M.transform(i[o]):r+=i[o]}return r}}let V={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(p)?.length||0)+(e.match(A)?.length||0)>0},parse:function(e){return I(e).values},createTransformer:function(e){return O(I(e))},getAnimatableNone:function(e){let t=I(e);return O(t)(t.values.map((e,n)=>{var i;let r;return i=t.split[n],"number"==typeof e?i?.trim().endsWith("/")?e:0:"number"==typeof(r=e)?0:M.test(r)?M.getAnimatableNone(r):r}))}},F=new Set(["brightness","contrast","saturate","opacity"]);function j(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(p)||[];if(!i)return e;let r=n.replace(i,""),o=+!!F.has(t);return i!==n&&(o*=100),t+"("+o+r+")"}let B=/\b([a-z-]*)\(.*?\)/gu,z={...V,getAnimatableNone:e=>{let t=e.match(B);return t?t.map(j).join(" "):e}},N={...V,getAnimatableNone:e=>{let t=V.parse(e);return V.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},U={...u,transform:Math.round},_={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:w,rotateX:w,rotateY:w,rotateZ:w,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:w,skewX:w,skewY:w,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:c,originX:C,originY:C,originZ:S,zIndex:U,fillOpacity:c,strokeOpacity:c,numOctaves:U},H={..._,color:M,backgroundColor:M,outlineColor:M,fill:M,stroke:M,borderColor:M,borderTopColor:M,borderRightColor:M,borderBottomColor:M,borderLeftColor:M,filter:z,WebkitFilter:z,mask:N,WebkitMask:N},W=e=>H[e],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),$=()=>({x:Y(),y:Y()}),q=()=>({min:0,max:0}),K=()=>({x:q(),y:q()}),X=e=>!!(e&&e.getVelocity),G=new Set(["width","height","top","left","right","bottom",...s]),Z=e=>t=>t.test(e),Q=[u,S,k,w,E,T,{test:e=>"auto"===e,parse:e=>e}],J=e=>Q.find(Z(e));n(5704);let ee=()=>{},et=()=>{},en=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ei=e=>t=>"string"==typeof t&&t.startsWith(e),er=ei("--"),eo=ei("var(--"),es=e=>!!eo(e)&&el.test(e.split("/*")[0].trim()),el=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ea(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ec=e=>180*e/Math.PI,eh=e=>ep(ec(Math.atan2(e[1],e[0]))),ed={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eh,rotateZ:eh,skewX:e=>ec(Math.atan(e[1])),skewY:e=>ec(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ep=e=>((e%=360)<0&&(e+=360),e),ef=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),em=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ef,scaleY:em,scale:e=>(ef(e)+em(e))/2,rotateX:e=>ep(ec(Math.atan2(e[6],e[5]))),rotateY:e=>ep(ec(Math.atan2(-e[2],e[0]))),rotateZ:eh,rotate:eh,skewX:e=>ec(Math.atan(e[4])),skewY:e=>ec(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ey(e){return+!!e.includes("scale")}function ev(e,t){let n,i;if(!e||"none"===e)return ey(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=eg,i=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ed,i=t}if(!i)return ey(t);let o=n[t],s=i[1].split(",").map(ex);return"function"==typeof o?o(s):s[o]}function ex(e){return parseFloat(e.trim())}let eb=e=>e===u||e===S,ew=new Set(["x","y","z"]),ek=s.filter(e=>!ew.has(e)),eS={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{let r=e.max-e.min;return"border-box"===i?r:r-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ev(t,"x"),y:(e,{transform:t})=>ev(t,"y")};eS.translateX=eS.x,eS.translateY=eS.y;let eT=e=>e,eE={},eC=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],eP={value:null,addProjectionMetrics:null};function eM(e,t){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=eC.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,i=new Set,r=!1,o=!1,s=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},a=0;function u(t){s.has(t)&&(c.schedule(t),e()),a++,t(l)}let c={schedule:(e,t=!1,o=!1)=>{let l=o&&r?n:i;return t&&s.add(e),l.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(l=e,r){o=!0;return}r=!0;let s=n;n=i,i=s,n.forEach(u),t&&eP.value&&eP.value.frameloop[t].push(a),a=0,n.clear(),r=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:l,read:a,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:p,postRender:f}=s,m=()=>{let o=eE.useManualTiming,s=o?r.timestamp:performance.now();n=!1,o||(r.delta=i?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,l.process(r),a.process(r),u.process(r),c.process(r),h.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(m))};return{schedule:eC.reduce((t,o)=>{let l=s[o];return t[o]=(t,o=!1,s=!1)=>(!n&&(n=!0,i=!0,r.isProcessing||e(m)),l.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<eC.length;t++)s[eC[t]].cancel(e)},state:r,steps:s}}let{schedule:eA,cancel:eD,state:eR,steps:eL}=eM("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:eT,!0),eI=new Set,eO=!1,eV=!1,eF=!1;function ej(){if(eV){let e=Array.from(eI).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return ek.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eV=!1,eO=!1,eI.forEach(e=>e.complete(eF)),eI.clear()}function eB(){eI.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eV=!0)})}class ez{constructor(e,t,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(eI.add(this),eO||(eO=!0,eA.read(eB),eA.resolveKeyframes(ej))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(null===e[0]){let r=i?.get(),o=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let i=n.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===r&&i.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eI.delete(this)}cancel(){"scheduled"===this.state&&(eI.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eN=e=>/^0[^.\s]+$/u.test(e),eU=new Set([z,N]);function e_(e,t){let n=W(e);return eU.has(n)||(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eH=new Set(["auto","none","0"]);class eW extends ez{constructor(e,t,n,i,r){super(e,t,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&es(i=i.trim())){let r=function e(t,n,i=1){et(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,o]=function(e){let t=eu.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${n??i}`,r]}(t);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let e=s.trim();return en(e)?parseFloat(e):e}return es(o)?e(o,n,i+1):o}(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!G.has(n)||2!==e.length)return;let[i,r]=e,o=J(i),s=J(r);if(ea(i)!==ea(r)&&eS[n]){this.needsMeasurement=!0;return}if(o!==s)if(eb(o)&&eb(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eS[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var i;(null===e[t]||("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||eN(i)))&&n.push(t)}n.length&&function(e,t,n){let i,r=0;for(;r<e.length&&!i;){let t=e[r];"string"==typeof t&&!eH.has(t)&&I(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=e_(n,i)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eS[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(t);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=eS[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eY=e=>1e3*e;function e$(e,t){-1===e.indexOf(t)&&e.push(t)}function eq(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eK{constructor(){this.subscriptions=[]}add(e){return e$(this.subscriptions,e),()=>eq(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eX(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function eG(e){let t;return()=>(void 0===t&&(t=e()),t)}let eZ={};function eQ(e,t){let n=eG(e);return()=>eZ[t]??n()}let eJ=eQ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),e0=e=>null!==e;function e1(e,{repeat:t,repeatType:n="loop"},i,r=1){let o=e.filter(e0),s=r<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}class e2{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e5={layout:0,mainThread:0,waapi:0},e4=e=>Array.isArray(e)&&"number"==typeof e[0],e3=eQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e6=(e,t,n=10)=>{let i="",r=Math.max(Math.round(t/n),2);for(let t=0;t<r;t++)i+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},e9=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,e7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e9([0,.65,.55,1]),circOut:e9([.55,0,1,.45]),backIn:e9([.31,.01,.66,-.59]),backOut:e9([.33,1.53,.69,.99])};function e8(e){return"function"==typeof e&&"applyToOptions"in e}class te extends e2{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,et("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let a=function({type:e,...t}){return e8(e)&&e3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:l="easeOut",times:a}={},u){let c={[t]:n};a&&(c.offset=a);let h=function e(t,n){if(t)return"function"==typeof t?e3()?e6(t,n):"ease-out":e4(t)?e9(t):Array.isArray(t)?t.map(t=>e(t,n)||e7.easeOut):e7[t]}(l,r);Array.isArray(h)&&(c.easing=h),eP.value&&e5.waapi++;let d={delay:i,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(d.pseudoElement=u);let p=e.animate(c,d);return eP.value&&p.finished.finally(()=>{e5.waapi--}),p}(t,n,i,a,r),!1===a.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=e1(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eX(t,n,e),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eY(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eJ())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),eT):i(this)}}let tt=new Set(["opacity","clipPath","filter","transform"]),{schedule:tn}=eM(queueMicrotask,!1);function ti(){i=void 0}let tr={now:()=>(void 0===i&&tr.set(eR.isProcessing||eE.useManualTiming?eR.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(ti)}},to={current:void 0};class ts{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tr.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tr.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eK);let n=this.events[e].add(t);return"change"===e?()=>{n(),eA.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return to.current&&to.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tl(e,t){return new ts(e,t)}let ta=[...Q,M,V],tu=new WeakMap;function tc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function th(e){return"string"==typeof e||Array.isArray(e)}let td=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tp=["initial",...td];function tf(e){return tc(e.animate)||tp.some(t=>th(e[t]))}function tm(e){return!!(tf(e)||e.variants)}let tg={current:null},ty={current:!1},tv="undefined"!=typeof window;function tx(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tb(e,t,n,i){if("function"==typeof t){let[r,o]=tx(i);t=t(void 0!==n?n:e.custom,r,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,o]=tx(i);t=t(void 0!==n?n:e.custom,r,o)}return t}let tw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tk={};class tS{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ez,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eA.render(this.render,!1,!0))};let{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=tf(t),this.isVariantNode=tm(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==a[e]&&X(t)&&t.set(a[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ty.current||function(){if(ty.current=!0,tv)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tg.current=e.matches;e.addEventListener("change",t),t()}else tg.current=!1}(),this.shouldReduceMotion=tg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eD(this.notifyUpdate),eD(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tt.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:i,times:r,ease:o,duration:s}=t.accelerate,l=new te({element:this.current,name:e,keyframes:i,times:r,ease:o,duration:eY(s)}),a=n(l);this.valueSubscriptions.set(e,()=>{a(),l.cancel()});return}let i=l.has(e);i&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eA.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tk){let t=tk[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tw.length;t++){let n=tw[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){for(let i in t){let r=t[i],o=n[i];if(X(r))e.addValue(i,r);else if(X(o))e.addValue(i,tl(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(i);e.addValue(i,tl(void 0!==t?t:r,{owner:e}))}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tl(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){if("string"==typeof n&&(en(n)||eN(n)))n=parseFloat(n);else{let i;i=n,!ta.find(Z(i))&&V.test(t)&&(n=e_(e,t))}this.setBaseTarget(e,X(n)?n.get():n)}return X(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=tb(this.props,n,this.presenceContext?.custom);i&&(t=i[e])}if(n&&void 0!==t)return t;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||X(i)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new eK),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tn.render(this.render)}}class tT extends tS{constructor(){super(...arguments),this.KeyframeResolver=eW}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;X(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tE(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tC=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tM=s.length;function tA(e,t,n){let{style:i,vars:r,transformOrigin:o}=e,a=!1,u=!1;for(let e in t){let n=t[e];if(l.has(e)){a=!0;continue}if(er(e)){r[e]=n;continue}{let t=tC(n,_[e]);e.startsWith("origin")?(u=!0,o[e]=t):i[e]=t}}if(!t.transform&&(a||n?i.transform=function(e,t,n){let i="",r=!0;for(let o=0;o<tM;o++){let l=s[o],a=e[l];if(void 0===a)continue;let u=!0;if("number"==typeof a)u=a===+!!l.startsWith("scale");else{let e=parseFloat(a);u=l.startsWith("scale")?1===e:0===e}if(!u||n){let e=tC(a,_[l]);if(!u){r=!1;let t=tP[l]||l;i+=`${t}(${e}) `}n&&(t[l]=e)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}(t,e.transform,n):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;i.transformOrigin=`${e} ${t} ${n}`}}let tD={offset:"stroke-dashoffset",array:"stroke-dasharray"},tR={offset:"strokeDashoffset",array:"strokeDasharray"},tL=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tI(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...l},a,u,c){if(tA(e,l,u),a){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:d}=e;for(let e of(h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),tL))void 0!==h[e]&&(d[e]=h[e],delete h[e]);void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==i&&(h.scale=i),void 0!==r&&function(e,t,n=1,i=0,r=!0){e.pathLength=1;let o=r?tD:tR;e[o.offset]=`${-i}`,e[o.array]=`${t} ${n}`}(h,r,o,s,!1)}let tO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tV=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tF(e,{style:t,vars:n},i,r){let o,s=e.style;for(o in t)s[o]=t[o];for(o in r?.applyProjectionStyles(s,i),n)s.setProperty(o,n[o])}function tj(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tB={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!S.test(e))return e;else e=parseFloat(e);let n=tj(e,t.target.x),i=tj(e,t.target.y);return`${n}% ${i}%`}},tz=(e,t,n)=>e+(t-e)*n,tN={borderRadius:{...tB,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tB,borderTopRightRadius:tB,borderBottomLeftRadius:tB,borderBottomRightRadius:tB,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=V.parse(e);if(i.length>5)return e;let r=V.createTransformer(e),o=+("number"!=typeof i[0]),s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;let a=tz(s,l,.5);return"number"==typeof i[2+o]&&(i[2+o]/=a),"number"==typeof i[3+o]&&(i[3+o]/=a),r(i)}}};function tU(e,{layout:t,layoutId:n}){return l.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tN[e]||"opacity"===e)}function t_(e,t,n){let i=e.style,r=t?.style,o={};if(!i)return o;for(let t in i)(X(i[t])||r&&X(r[t])||tU(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=i[t]);return o}function tH(e,t,n){let i=t_(e,t,n);for(let n in e)(X(e[n])||X(t[n]))&&(i[-1!==s.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}class tW extends tT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l.has(t)){let e=W(t);return e&&e.default||0}return t=tO.has(t)?t:tE(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tH(e,t,n)}build(e,t,n){tI(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){for(let n in tF(e,t,void 0,i),t.attrs)e.setAttribute(tO.has(n)?n:tE(n),t.attrs[n])}mount(e){this.isSVGTag=tV(e.tagName),super.mount(e)}}function tY({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function t$(e){return void 0===e||1===e}function tq({scale:e,scaleX:t,scaleY:n}){return!t$(e)||!t$(t)||!t$(n)}function tK(e){return tq(e)||tX(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tX(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tG(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function tZ(e,t=0,n=1,i,r){e.min=tG(e.min,t,n,i,r),e.max=tG(e.max,t,n,i,r)}function tQ(e,{x:t,y:n}){tZ(e.x,t.translate,t.scale,t.originPoint),tZ(e.y,n.translate,n.scale,n.originPoint)}function tJ(e,t){e.min+=t,e.max+=t}function t0(e,t,n,i,r=.5){let o=tz(e.min,e.max,r);tZ(e,t,n,o,i)}function t1(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t2(e,t,n){let i=n??e;t0(e.x,t1(t.x,i.x),t.scaleX,t.scale,t.originX),t0(e.y,t1(t.y,i.y),t.scaleY,t.scale,t.originY)}function t5(e,t){return tY(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}class t4 extends tT{constructor(){super(...arguments),this.type="html",this.renderInstance=tF}readValueFromInstance(e,t){if(l.has(t))return this.projection?.isProjecting?ey(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ev(n,t)})(e,t);{let n=window.getComputedStyle(e),i=(er(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t5(e,t)}build(e,t,n){tA(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return t_(e,t,n)}}var t3=n(2115);let t6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t9(e){if("string"!=typeof e||e.includes("-"));else if(t6.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var t7=n(5155),t8=n(296);let ne=(0,t3.createContext)({strict:!1});var nt=n(3127);let nn=(0,t3.createContext)({});function ni(e){return Array.isArray(e)?e.join(" "):e}let nr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function no(e,t,n){for(let i in t)X(t[i])||tU(i,n)||(e[i]=t[i])}let ns=()=>({...nr(),attrs:{}}),nl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function na(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nl.has(e)}let nu=e=>!na(e);try{!function(e){"function"==typeof e&&(nu=t=>t.startsWith("on")?!na(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}function nc(e){return X(e)?e.get():e}var nh=n(9686),nd=n(4416);let np=e=>(t,n)=>{let i=(0,t3.useContext)(nn),r=(0,t3.useContext)(nh.t),o=()=>(function(e,t,n,i){let{scrapeMotionValuesFromProps:r,createRenderState:o}=e;return{latestValues:function(e,t,n,i){let r={},o=i(e,{});for(let e in o)r[e]=nc(o[e]);let{initial:s,animate:l}=e,a=tf(e),u=tm(e);t&&u&&!a&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===l&&(l=t.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?l:s;if(h&&"boolean"!=typeof h&&!tc(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let i=tb(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(t,n,i,r),renderState:o()}})(e,t,i,r);return n?o():(0,nd.M)(o)},nf=np({scrapeMotionValuesFromProps:t_,createRenderState:nr}),nm=np({scrapeMotionValuesFromProps:tH,createRenderState:ns}),ng={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ny=!1;function nv(){return!function(){if(ny)return;let e={};for(let t in ng)e[t]={isEnabled:e=>ng[t].some(t=>!!e[t])};tk=e,ny=!0}(),tk}let nx=Symbol.for("motionComponentSymbol"),nb="data-"+tE("framerAppearId"),nw=(0,t3.createContext)({});function nk(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var nS=n(6436);function nT(e){var t,n;let{forwardMotionProps:i=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;o&&function(e){let t=nv();for(let n in e)t[n]={...t[n],...e[n]};tk=t}(o);let l=r?"svg"===r:t9(e),a=l?nm:nf;function u(t,n){let r,o={...(0,t3.useContext)(nt.Q),...t,layoutId:function(e){let{layoutId:t}=e,n=(0,t3.useContext)(t8.L).id;return n&&void 0!==t?n+"-"+t:t}(t)},{isStatic:u}=o,c=function(e){let{initial:t,animate:n}=function(e,t){if(tf(e)){let{initial:t,animate:n}=e;return{initial:!1===t||th(t)?t:void 0,animate:th(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t3.useContext)(nn));return(0,t3.useMemo)(()=>({initial:t,animate:n}),[ni(t),ni(n)])}(t),h=a(t,u);if(!u&&"undefined"!=typeof window){(0,t3.useContext)(ne).strict;let t=function(e){let{drag:t,layout:n}=nv();if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(o);r=t.MeasureLayout,c.visualElement=function(e,t,n,i,r,o){var s,l,a,u;let{visualElement:c}=(0,t3.useContext)(nn),h=(0,t3.useContext)(ne),d=(0,t3.useContext)(nh.t),p=(0,t3.useContext)(nt.Q),f=p.reducedMotion,m=p.skipAnimations,g=(0,t3.useRef)(null),y=(0,t3.useRef)(!1);i=i||h.renderer,!g.current&&i&&(g.current=i(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:f,skipAnimations:m,isSVG:o}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,x=(0,t3.useContext)(nw);v&&!v.projection&&r&&("html"===v.type||"svg"===v.type)&&function(e,t,n,i){let{layoutId:r,layout:o,drag:s,dragConstraints:l,layoutScroll:a,layoutRoot:u,layoutAnchor:c,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||l&&nk(l),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:a,layoutRoot:u,layoutAnchor:c})}(g.current,n,r,x);let b=(0,t3.useRef)(!1);(0,t3.useInsertionEffect)(()=>{v&&b.current&&v.update(n,d)});let w=n[nb],k=(0,t3.useRef)(!!w&&"undefined"!=typeof window&&!(null==(s=(l=window).MotionHandoffIsComplete)?void 0:s.call(l,w))&&(null==(a=(u=window).MotionHasOptimisedAnimation)?void 0:a.call(u,w)));return(0,nS.E)(()=>{y.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),k.current&&v.animationState&&v.animationState.animateChanges())}),(0,t3.useEffect)(()=>{v&&(!k.current&&v.animationState&&v.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var e,t;null==(e=(t=window).MotionHandoffMarkAsComplete)||e.call(t,w)}),k.current=!1),v.enteringChildren=void 0)}),v}(e,h,o,s,t.ProjectionNode,l)}return(0,t7.jsxs)(nn.Provider,{value:c,children:[r&&c.visualElement?(0,t7.jsx)(r,{visualElement:c.visualElement,...o}):null,function(e,t,n,i,r){let{latestValues:o}=i,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,a=((null!=l?l:t9(e))?function(e,t,n,i){let r=(0,t3.useMemo)(()=>{let n=ns();return tI(n,t,tV(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};no(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let n={},i=function(e,t){let n=e.style||{},i={};return no(i,n,e),Object.assign(i,function(e,t){let{transformTemplate:n}=e;return(0,t3.useMemo)(()=>{let e=nr();return tA(e,t,n),Object.assign({},e.vars,e.style)},[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n})(t,o,r,e),u=function(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!X(e[r])&&(nu(r)||!0===n&&na(r)||!t&&!na(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(t,"string"==typeof e,s),c=e!==t3.Fragment?{...u,...a,ref:n}:{},{children:h}=t,d=(0,t3.useMemo)(()=>X(h)?h.get():h,[h]);return(0,t3.createElement)(e,{...c,children:d})}(e,t,function(e,t,n){let i=(0,t3.useRef)(n);(0,t3.useInsertionEffect)(()=>{i.current=n});let r=(0,t3.useRef)(null);return(0,t3.useCallback)(n=>{if(n){var o;null==(o=e.onMount)||o.call(e,n)}let s=i.current;if("function"==typeof s)if(n){let e=s(n);"function"==typeof e&&(r.current=e)}else r.current?(r.current(),r.current=null):s(n);else s&&(s.current=n);t&&(n?t.mount(n):t.unmount())},[t])}(h,c.visualElement,n),h,u,i,l)]})}u.displayName="motion.".concat("string"==typeof e?e:"create(".concat(null!=(n=null!=(t=e.displayName)?t:e.name)?n:"",")"));let c=(0,t3.forwardRef)(u);return c[nx]=e,c}class nE{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nC(e,t,n){let i=e.getProps();return tb(i,t,void 0!==n?n:i.custom,e)}function nP(e,t){if(e?.inherit&&t){let{inherit:n,...i}=e;return{...t,...i}}return e}function nM(e,t){let n=e?.[t]??e?.default??e;return n!==e?nP(n,e):n}let nA=e=>Array.isArray(e);function nD(e,t){let n=e.getValue("willChange");if(X(n)&&n.add)return n.add(t);if(!n&&eE.WillChange){let n=new eE.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nR=(e,t)=>n=>t(e(n)),nL=(...e)=>e.reduce(nR);function nI(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nO(e,t){return n=>n>0?t:e}let nV=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},nF=[x,v,P];function nj(e){let t=nF.find(t=>t.test(e));if(ee(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===P&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let r=0,o=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=nI(l,i,e+1/3),o=nI(l,i,e),s=nI(l,i,e-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let nB=(e,t)=>{let n=nj(e),i=nj(t);if(!n||!i)return nO(e,t);let r={...n};return e=>(r.red=nV(n.red,i.red,e),r.green=nV(n.green,i.green,e),r.blue=nV(n.blue,i.blue,e),r.alpha=tz(n.alpha,i.alpha,e),v.transform(r))},nz=new Set(["none","hidden"]);function nN(e,t){return n=>tz(e,t,n)}function nU(e){return"number"==typeof e?nN:"string"==typeof e?es(e)?nO:M.test(e)?nB:nW:Array.isArray(e)?n_:"object"==typeof e?M.test(e)?nB:nH:nO}function n_(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>nU(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function nH(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=nU(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let nW=(e,t)=>{let n=V.createTransformer(t),i=I(e),r=I(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?nz.has(e)&&!r.values.length||nz.has(t)&&!i.values.length?function(e,t){return nz.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):nL(n_(function(e,t){let n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],s=e.indexes[o][i[o]],l=e.values[s]??0;n[r]=l,i[o]++}return n}(i,r),r.values),n):(ee(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nO(e,t))};function nY(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tz(e,t,n):nU(e)(e,t)}let n$=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eA.update(t,e),stop:()=>eD(t),now:()=>eR.isProcessing?eR.timestamp:tr.now()}};function nq(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let nK={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function nX(e,t){return e*Math.sqrt(1-t*t)}let nG=["duration","bounce"],nZ=["stiffness","damping","mass"];function nQ(e,t){return t.some(t=>void 0!==e[t])}function nJ(e=nK.visualDuration,t=nK.bounce){let n,i,r,o,s,l,u="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:c,restDelta:h}=u,d=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],f={done:!1,value:d},{stiffness:m,damping:g,mass:y,duration:v,velocity:x,isResolvedFromDuration:b}=function(e){let t={velocity:nK.velocity,stiffness:nK.stiffness,damping:nK.damping,mass:nK.mass,isResolvedFromDuration:!1,...e};if(!nQ(e,nZ)&&nQ(e,nG))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,r=2*a(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nK.mass,stiffness:i,damping:r}}else{let n=function({duration:e=nK.duration,bounce:t=nK.bounce,velocity:n=nK.velocity,mass:i=nK.mass}){let r,o;ee(e<=eY(nK.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=a(nK.minDamping,nK.maxDamping,s),e=a(nK.minDuration,nK.maxDuration,e/1e3),s<1?(r=t=>{let i=t*s,r=i*e;return .001-(i-n)/nX(t,s)*Math.exp(-r)},o=t=>{let i=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-i),a=nX(Math.pow(t,2),s);return(i*n+n-o)*l*(-r(t)+.001>0?-1:1)/a}):(r=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(r,o,5/e);if(e=eY(e),isNaN(l))return{stiffness:nK.stiffness,damping:nK.damping,duration:e};{let t=Math.pow(l,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:nK.mass}).isResolvedFromDuration=!0}return t}({...u,velocity:-((u.velocity||0)/1e3)}),w=x||0,k=g/(2*Math.sqrt(m*y)),S=p-d,T=Math.sqrt(m/y)/1e3,E=5>Math.abs(S);if(c||(c=E?nK.restSpeed.granular:nK.restSpeed.default),h||(h=E?nK.restDelta.granular:nK.restDelta.default),k<1)r=nX(T,k),o=(w+k*T*S)/r,n=e=>p-Math.exp(-k*T*e)*(o*Math.sin(r*e)+S*Math.cos(r*e)),s=k*T*o+S*r,l=k*T*S-o*r,i=e=>Math.exp(-k*T*e)*(s*Math.sin(r*e)+l*Math.cos(r*e));else if(1===k){n=e=>p-Math.exp(-T*e)*(S+(w+T*S)*e);let e=w+T*S;i=t=>Math.exp(-T*t)*(T*e*t-w)}else{let e=T*Math.sqrt(k*k-1);n=t=>{let n=Math.exp(-k*T*t),i=Math.min(e*t,300);return p-n*((w+k*T*S)*Math.sinh(i)+e*S*Math.cosh(i))/e};let t=(w+k*T*S)/e,r=k*T*t-S*e,o=k*T*S-t*e;i=t=>{let n=Math.exp(-k*T*t),i=Math.min(e*t,300);return n*(r*Math.sinh(i)+o*Math.cosh(i))}}let C={calculatedDuration:b&&v||null,velocity:e=>eY(i(e)),next:e=>{if(!b&&k<1){let t=Math.exp(-k*T*e),n=Math.sin(r*e),i=Math.cos(r*e),a=p-t*(o*n+S*i);return f.done=Math.abs(eY(t*(s*n+l*i)))<=c&&Math.abs(p-a)<=h,f.value=f.done?p:a,f}let t=n(e);return b?f.done=e>=v:f.done=Math.abs(eY(i(e)))<=c&&Math.abs(p-t)<=h,f.value=f.done?p:t,f},toString:()=>{let e=Math.min(nq(C),2e4),t=e6(t=>C.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return C}function n0(e,t,n){var i,r;let o=Math.max(t-5,0);return i=n-e(o),(r=t-o)?1e3/r*i:0}function n1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){let h,d,p=e[0],f={done:!1,value:p},m=n*t,g=p+m,y=void 0===s?g:s(g);y!==g&&(m=y-p);let v=e=>-m*Math.exp(-e/i),x=e=>y+v(e),b=e=>{let t=v(e),n=x(e);f.done=Math.abs(t)<=u,f.value=f.done?y:n},w=e=>{let t;if(t=f.value,void 0!==l&&t<l||void 0!==a&&t>a){var n;h=e,d=nJ({keyframes:[f.value,(n=f.value,void 0===l?a:void 0===a||Math.abs(l-n)<Math.abs(a-n)?l:a)],velocity:n0(x,e,f.value),damping:r,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,b(e),w(e)),void 0!==h&&e>=h)?d.next(e-h):(t||b(e),f)}}}nJ.applyToOptions=e=>{let t=function(e,t=100,n){let i=n({...e,keyframes:[0,t]}),r=Math.min(nq(i),2e4);return{type:"keyframes",ease:e=>i.next(r*e).value/t,duration:r/1e3}}(e,100,nJ);return e.ease=t.ease,e.duration=eY(t.duration),e.type="keyframes",e};let n2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function n5(e,t,n,i){return e===t&&n===i?eT:r=>0===r||1===r?r:n2(function(e,t,n,i,r){let o,s,l=0;do(o=n2(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++l<12);return s}(r,0,1,e,n),t,i)}let n4=n5(.42,0,1,1),n3=n5(0,0,.58,1),n6=n5(.42,0,.58,1),n9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n7=e=>t=>1-e(1-t),n8=n5(.33,1.53,.69,.99),ie=n7(n8),it=n9(ie),ii=e=>e>=1?1:(e*=2)<1?.5*ie(e):.5*(2-Math.pow(2,-10*(e-1))),ir=e=>1-Math.sin(Math.acos(e)),io=n7(ir),is=n9(ir),il={linear:eT,easeIn:n4,easeInOut:n6,easeOut:n3,circIn:ir,circInOut:is,circOut:io,backIn:ie,backInOut:it,backOut:n8,anticipate:ii},ia=e=>{if(e4(e)){et(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,i,r]=e;return n5(t,n,i,r)}return"string"==typeof e?(et(void 0!==il[e],`Invalid easing type '${e}'`,"invalid-easing-type"),il[e]):e},iu=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i};function ic({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){var r;let o=Array.isArray(i)&&"number"!=typeof i[0]?i.map(ia):ia(i),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let o=e.length;if(et(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,n){let i=[],r=n||eE.mix||nY,o=e.length-1;for(let n=0;n<o;n++){let o=r(e[n],e[n+1]);t&&(o=nL(Array.isArray(t)?t[n]||eT:t,o)),i.push(o)}return i}(t,i,r),u=l.length,c=n=>{if(s&&n<e[0])return t[0];let i=0;if(u>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let r=iu(e[i],e[i+1],n);return l[i](r)};return n?t=>c(a(e[0],e[o-1],t)):c}((r=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=iu(0,t,i);e.push(tz(n,1,r))}}(t,e.length-1),t}(t),r.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||n6).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let ih={decay:n1,inertia:n1,tween:ic,keyframes:ic,spring:nJ};function id(e){"string"==typeof e.type&&(e.type=ih[e.type])}let ip=e=>e/100;class im extends e2{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tr.now()&&this.tick(tr.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e5.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;id(e);let{type:t=ic,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e,{keyframes:s}=e,l=t||ic;l!==ic&&"number"!=typeof s[0]&&(this.mixKeyframes=nL(ip,nY(s[0],s[1])),s=[0,100]);let a=l({...e,keyframes:s});"mirror"===r&&(this.mirroredGenerator=l({...e,keyframes:[...s].reverse(),velocity:-o})),null===a.calculatedDuration&&(a.calculatedDuration=nq(a));let{calculatedDuration:u}=a;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=a}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:i,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return i.next(0);let{delay:c=0,keyframes:h,repeat:d,repeatType:p,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,w=i;if(d){let e=Math.min(this.currentTime,r)/l,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===p?(n=1-n,f&&(n-=f/l)):"mirror"===p&&(w=s)),b=a(0,1,n)*l}x?(this.delayState.value=h[0],n=this.delayState):n=w.next(b),o&&!x&&(n.value=o(n.value));let{done:k}=n;x||null===u||(k=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return S&&m!==n1&&(n.value=e1(h,this.options,y,this.speed)),g&&g(n.value),S&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=eY(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return n0(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tr.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=n$,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tr.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,e5.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let ig={anticipate:ii,backInOut:it,circInOut:is};class iy extends te{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in ig&&(e.ease=ig[e.ease])}(e),id(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new im({...o,autoplay:!1}),l=Math.max(10,tr.now()-this.startTime),u=a(0,10,l-10),c=s.sample(l).value,{name:h}=this.options;r&&h&&eX(r,h,c),t.setWithVelocity(s.sample(Math.max(0,l-u)).value,c,u),s.stop()}}let iv=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(V.test(e)||"0"===e)&&!e.startsWith("url("));function ix(e){e.duration=0,e.type="keyframes"}let ib=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,iw=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ik=eG(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iS extends e2{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:s,name:l,motionValue:a,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tr.now();let h={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:a,element:u,...c},d=u?.KeyframeResolver||ez;this.keyframeResolver=new d(s,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),l,a,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,i){let r;this.keyframeResolver=void 0;let{name:o,type:s,velocity:l,delay:a,isHandoff:u,onUpdate:c}=n;this.resolvedAt=tr.now();let h=!0;!function(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=iv(r,t),l=iv(o,t);return ee(s===l,`You are trying to animate ${t} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||e8(n))&&i)}(e,o,s,l)&&(h=!1,(eE.instantAnimations||!a)&&c?.(e1(e,n,t)),e[0]=e[e.length-1],ix(n),n.repeat=0);let d={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=h&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:s,keyframes:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:u}=t.owner.getProps();return ik()&&n&&(tt.has(n)||iw.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&ib.test(e[t]))return!0;return!1}(l))&&("transform"!==n||!u)&&!a&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}(d),f=d.motionValue?.owner?.current;if(p)try{r=new iy({...d,element:f})}catch{r=new im(d)}else r=new im(d);r.finished.then(()=>{this.notifyFinished()}).catch(eT),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eF=!0,eB(),ej(),eF=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let iT={type:"spring",stiffness:500,damping:25,restSpeed:10},iE={type:"keyframes",duration:.8},iC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iP=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iM=(e,t,n,i={},r,o)=>s=>{let a=nM(i,e)||{},u=a.delay||i.delay||0,{elapsed:c=0}=i;c-=eY(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};!function(e){for(let t in e)if(!iP.has(t))return!0;return!1}(a)&&Object.assign(h,((e,{keyframes:t})=>t.length>2?iE:l.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:iT:iC)(e,h)),h.duration&&(h.duration=eY(h.duration)),h.repeatDelay&&(h.repeatDelay=eY(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(ix(h),0===h.delay&&(d=!0)),(eE.instantAnimations||eE.skipAnimations||r?.shouldSkipAnimations)&&(d=!0,ix(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!o&&void 0!==t.get()){let e=e1(h.keyframes,a);if(void 0!==e)return void eA.update(()=>{h.onUpdate(e),h.onComplete()})}return a.isSync?new im(h):new iS(h)};function iA(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o,transitionEnd:s,...l}=t,a=e.getDefaultTransition();o=o?nP(o,a):a;let u=o?.reduceMotion;i&&(o=i);let c=[],h=r&&e.animationState&&e.animationState.getState()[r];for(let t in l){let i=e.getValue(t,e.latestValues[t]??null),r=l[t];if(void 0===r||h&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(h,t))continue;let s={delay:n,...nM(o||{},t)},a=i.get();if(void 0!==a&&!i.isAnimating()&&!Array.isArray(r)&&r===a&&!s.velocity){eA.update(()=>i.set(r));continue}let d=!1;if(window.MotionHandoffAnimation){let n=e.props[nb];if(n){let e=window.MotionHandoffAnimation(n,t,eA);null!==e&&(s.startTime=e,d=!0)}}nD(e,t);let p=u??e.shouldReduceMotion;i.start(iM(t,i,r,p&&G.has(t)?{type:!1}:s,e,d));let f=i.animation;f&&c.push(f)}if(s){let t=()=>eA.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:i={},...r}=nC(e,t)||{};for(let t in r={...r,...n}){var o;let n=nA(o=r[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tl(n))}}(e,s)});c.length?Promise.all(c).then(t):t()}return c}function iD(e,t,n,i=0,r=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,l=(s-1)*i;return"function"==typeof n?n(o,s):1===r?o*i:l-o*i}function iR(e,t,n={}){let i=nC(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all(iA(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:l}=r;return function(e,t,n=0,i=0,r=0,o=1,s){let l=[];for(let a of e.variantChildren)a.notify("AnimationStart",t),l.push(iR(a,t,{...s,delay:n+("function"==typeof i?0:i)+iD(e.variantChildren,a,i,r,o)}).then(()=>a.notify("AnimationComplete",t)));return Promise.all(l)}(e,t,i,o,s,l,n)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[o,s]:[s,o];return e().then(()=>t())}}let iL=tp.length;function iI(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}let iO=[...td].reverse(),iV=td.length;function iF(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ij(){return{animate:iF(!0),whileInView:iF(),whileHover:iF(),whileTap:iF(),whileDrag:iF(),whileFocus:iF(),exit:iF()}}class iB extends nE{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>iR(e,t,n)));else if("string"==typeof t)i=iR(e,t,n);else{let r="function"==typeof t?nC(e,t,n.custom):t;i=Promise.all(iA(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=ij(),i=!0,r=!1,o=t=>(n,i)=>{let r=nC(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...i}=r;n={...n,...i,...t}}return n};function s(s){let{props:l}=e,a=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<iL;e++){let i=tp[e],r=t.props[i];(th(r)||!1===r)&&(n[i]=r)}return n}(e.parent)||{},u=[],c=new Set,h={},d=1/0;for(let t=0;t<iV;t++){var p,f;let m=iO[t],g=n[m],y=void 0!==l[m]?l[m]:a[m],v=th(y),x=m===s?g.isActive:null;!1===x&&(d=t);let b=y===a[m]&&y!==l[m]&&v;if(b&&(i||r)&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...h},!g.isActive&&null===x||!y&&!g.prevProp||tc(y)||"boolean"==typeof y)continue;if("exit"===m&&g.isActive&&!0!==x){g.prevResolvedValues&&(h={...h,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(f=y)?f!==p:!!Array.isArray(f)&&!iI(f,p)),k=w||m===s&&g.isActive&&!b&&v||t>d&&v,S=!1,T=Array.isArray(y)?y:[y],E=T.reduce(o(m),{});!1===x&&(E={});let{prevResolvedValues:C={}}=g,P={...C,...E},M=t=>{k=!0,c.has(t)&&(S=!0,c.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in P){let t=E[e],n=C[e];if(!h.hasOwnProperty(e))(nA(t)&&nA(n)?iI(t,n):t===n)?void 0!==t&&c.has(e)?M(e):g.protectedKeys[e]=!0:null!=t?M(e):c.add(e)}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(h={...h,...E}),(i||r)&&e.blockInitialAnimation&&(k=!1);let A=b&&w,D=!A||S;k&&D&&u.push(...T.map(t=>{let n={type:m};if("string"==typeof t&&(i||r)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,r=nC(i,t);if(i.enteringChildren&&r){let{delayChildren:t}=r.transition||{};n.delay=iD(i.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof l.initial){let n=nC(e,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=i??null}),u.push({animation:t})}let m=!!u.length;return i&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,r=!1,m?t(u):Promise.resolve()}return{animateChanges:s,setActive:function(t,i){if(n[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,i)),n[t].isActive=i;let r=s(t);for(let e in n)n[e].protectedKeys={};return r},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ij(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iz=0;class iN extends nE{constructor(){super(...arguments),this.id=iz++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){let n=nC(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...i}=n;for(let e in i)this.node.getValue(e)?.jump(i[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let iU={x:!1,y:!1};function i_(e){return[e("x"),e("y")]}function iH(e){return e.max-e.min}function iW(e,t,n,i=.5){e.origin=i,e.originPoint=tz(t.min,t.max,e.origin),e.scale=iH(n)/iH(t),e.translate=tz(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function iY(e,t,n,i){iW(e.x,t.x,n.x,i?i.originX:void 0),iW(e.y,t.y,n.y,i?i.originY:void 0)}function i$(e,t,n,i=0){e.min=(i?tz(n.min,n.max,i):n.min)+t.min,e.max=e.min+iH(t)}function iq(e,t,n,i=0){let r=i?tz(n.min,n.max,i):n.min;e.min=t.min-r,e.max=e.min+iH(t)}function iK(e,t,n,i){iq(e.x,t.x,n.x,i?.x),iq(e.y,t.y,n.y,i?.y)}let iX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iG=new Set(["INPUT","SELECT","TEXTAREA"]);function iZ(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}var iQ=n(3142);function iJ(e){return(0,iQ.G)(e)&&"ownerSVGElement"in e}function i0(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let r=n?.[e]??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}let i1=new WeakMap,i2=(e,t,n)=>(i,r)=>r&&r[0]?r[0][e+"Size"]:iJ(i)&&"getBBox"in i?i.getBBox()[t]:i[n],i5=i2("inline","width","offsetWidth"),i4=i2("block","height","offsetHeight");function i3({target:e,borderBoxSize:t}){i1.get(e)?.forEach(n=>{n(e,{get width(){return i5(e,t)},get height(){return i4(e,t)}})})}function i6(e){e.forEach(i3)}let i9=new Set;function i7(e,t){return"function"==typeof e?(i9.add(e),o||(o=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};i9.forEach(t=>t(e))},window.addEventListener("resize",o)),()=>{i9.delete(e),i9.size||"function"!=typeof o||(window.removeEventListener("resize",o),o=void 0)}):function(e,t){r||"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(i6));let n=i0(e);return n.forEach(e=>{let n=i1.get(e);n||(n=new Set,i1.set(e,n)),n.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let n=i1.get(e);n?.delete(t),n?.size||r?.unobserve(e)})}}(e,t)}let i8=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function re(e){return{point:{x:e.pageX,y:e.pageY}}}function rt(e,t,n,i){return iZ(e,t,e=>i8(e)&&n(e,re(e)),i)}let rn=({current:e})=>e?e.ownerDocument.defaultView:null,ri=(e,t)=>Math.abs(e-t),rr=new Set(["auto","scroll"]);class ro{constructor(e,t,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rs(this.lastRawMoveEventInfo,this.transformPagePoint));let e=ra(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(ri(e.x,t.x)**2+ri(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:i}=e,{timestamp:r}=eR;this.history.push({...i,timestamp:r});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=rs(t,this.transformPagePoint),eA.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=ra("pointercancel"===e.type?this.lastMoveEventInfo:rs(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!i8(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;let l=rs(re(e),this.transformPagePoint),{point:a}=l,{timestamp:u}=eR;this.history=[{...a,timestamp:u}];let{onSessionStart:c}=t;c&&c(e,ra(l,this.history)),this.removeListeners=nL(rt(this.contextWindow,"pointermove",this.handlePointerMove),rt(this.contextWindow,"pointerup",this.handlePointerUp),rt(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(rr.has(e.overflowX)||rr.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-t.x,y:i.y-t.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),eA.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eD(this.updatePoint)}}function rs(e,t){return t?{point:t(e.point)}:e}function rl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ra({point:e},t){return{point:e,delta:rl(e,ru(t)),offset:rl(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,r=ru(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>eY(.1)));)n--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&r.timestamp-i.timestamp>2*eY(t)&&(i=e[1]);let o=(r.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function ru(e){return e[e.length-1]}function rc(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function rh(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function rd(e,t,n){return{min:rp(e,t),max:rp(e,n)}}function rp(e,t){return"number"==typeof e?e:e[t]||0}let rf=new WeakMap;class rm{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=e=>{t&&this.snapToCursor(re(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(iU[e])return null;else return iU[e]=!0,()=>{iU[e]=!1};return iU.x||iU.y?null:(iU.x=iU.y=!0,()=>{iU.x=iU.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(k.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];i&&(t=iH(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&eA.update(()=>r(e,t),!1,!0),nD(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&eA.update(()=>o(e,t),!1,!0)},l=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},a=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ro(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:rn(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,i=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&eA.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!ry(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?tz(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?tz(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&nk(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:rc(e.x,n,r),y:rc(e.y,t,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rd(e,"left","right"),y:rd(e,"top","bottom")}}(t),i!==this.constraints&&!nk(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&i_(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nk(t))return!1;let i=t.current;et(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(e,t,n){let i=t5(e,n),{scroll:r}=t;return r&&(tJ(i.x,r.offset.x),tJ(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s=(e=r.layout.layoutBox,{x:rh(e.x,o.x),y:rh(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=tY(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{};return Promise.all(i_(s=>{if(!ry(s,t,this.currentDirection))return;let a=l&&l[s]||{};(!0===o||o===s)&&(a={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...a};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nD(this.visualElement,e),n.start(iM(e,n,0,t,this.visualElement,!1))}stopAnimation(){i_(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){i_(t=>{let{drag:n}=this.getProps();if(!ry(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t],s=r.get()||0;r.set(e[t]-tz(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nk(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};i_(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=function(e,t){let n=.5,i=iH(e),r=iH(t);return r>i?n=iu(t.min,t.max-i,e.min):i>r&&(n=iu(e.min,e.max-r,t.min)),a(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),i_(t=>{if(!ry(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(tz(r,o,i[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;rf.set(this.visualElement,this);let t=this.visualElement.current,n=rt(t,"pointerdown",e=>{let{drag:n,dragListener:i=!0}=this.getProps(),r=e.target,o=r!==t&&(iG.has(r.tagName)||!0===r.isContentEditable);n&&i&&!o&&this.start(e)}),i=()=>{let{dragConstraints:n}=this.getProps();nk(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,n){let i=i7(e,rg(n)),r=i7(t,rg(n));return()=>{i(),r()}}(t,n.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),eA.read(i);let s=iZ(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(i_(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function rg(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function ry(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class rv extends nE{constructor(e){super(e),this.removeGroupControls=eT,this.removeListeners=eT,this.controls=new rm(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eT}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let rx=e=>(t,n)=>{e&&eA.update(()=>e(t,n),!1,!0)};class rb extends nE{constructor(){super(...arguments),this.removePointerDownListener=eT}onPointerDown(e){this.session=new ro(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rn(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:rx(e),onStart:rx(t),onMove:rx(n),onEnd:(e,t)=>{delete this.session,i&&eA.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=rt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rk=n(5601);let rS=!1;class rT extends t3.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),rS&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rw.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,{projection:o}=n;return o&&(o.isPresent=r,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),rS=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||eA.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),tn.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;rS=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rE(e){let[t,n]=(0,rk.xQ)(),i=(0,t3.useContext)(t8.L);return(0,t7.jsx)(rT,{...e,layoutGroup:i,switchLayoutGroup:(0,t3.useContext)(nw),isPresent:t,safeToRemove:n})}let rC=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rP=rC.length,rM=e=>"string"==typeof e?parseFloat(e):e,rA=e=>"number"==typeof e||S.test(e);function rD(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rR=rI(0,.5,io),rL=rI(.5,.95,eT);function rI(e,t,n){return i=>i<e?0:i>t?1:n(iu(e,t,i))}function rO(e,t){e.min=t.min,e.max=t.max}function rV(e,t){rO(e.x,t.x),rO(e.y,t.y)}function rF(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rj(e,t,n,i,r){return e-=t,e=i+1/n*(e-i),void 0!==r&&(e=i+1/r*(e-i)),e}function rB(e,t,[n,i,r],o,s){!function(e,t=0,n=1,i=.5,r,o=e,s=e){if(k.test(t)&&(t=parseFloat(t),t=tz(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let l=tz(o.min,o.max,i);e===o&&(l-=t),e.min=rj(e.min,t,n,l,r),e.max=rj(e.max,t,n,l,r)}(e,t[n],t[i],t[r],t.scale,o,s)}let rz=["x","scaleX","originX"],rN=["y","scaleY","originY"];function rU(e,t,n,i){rB(e.x,t,rz,n?n.x:void 0,i?i.x:void 0),rB(e.y,t,rN,n?n.y:void 0,i?i.y:void 0)}function r_(e){return 0===e.translate&&1===e.scale}function rH(e){return r_(e.x)&&r_(e.y)}function rW(e,t){return e.min===t.min&&e.max===t.max}function rY(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function r$(e,t){return rY(e.x,t.x)&&rY(e.y,t.y)}function rq(e){return iH(e.x)/iH(e.y)}function rK(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rX{constructor(){this.members=[]}add(e){e$(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let i=n.instance;i&&!1!==i.isConnected||n.snapshot||(eq(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(eq(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:i}=n.options,{layoutDependency:r}=e.options;(void 0===i||i!==r)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rG=(e,t)=>e.depth-t.depth;class rZ{constructor(){this.children=[],this.isDirty=!1}add(e){e$(this.children,e),this.isDirty=!0}remove(e){eq(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rG),this.isDirty=!1,this.children.forEach(e)}}let rQ={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rJ=["","X","Y","Z"],r0=0;function r1(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function r2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=t?.()){this.id=r0++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eP.value&&(rQ.nodes=rQ.calculatedTargetDeltas=rQ.calculatedProjections=0),this.nodes.forEach(r3),this.nodes.forEach(or),this.nodes.forEach(oo),this.nodes.forEach(r6),eP.addProjectionMetrics&&eP.addProjectionMetrics(rQ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rZ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eK),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=iJ(t)&&!(iJ(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),e){let n,i=0,r=()=>this.root.updateBlockedByResize=!1;eA.read(()=>{i=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==i&&(i=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=tr.now(),i=({timestamp:t})=>{let r=t-n;r>=250&&(eD(i),e(r-250))};return eA.setup(i,!0),()=>eD(i)}(r,250),rw.hasAnimatedSinceResize&&(rw.hasAnimatedSinceResize=!1,this.nodes.forEach(oi)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||oh,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=r.getProps(),a=!this.targetLayout||!r$(this.targetLayout,i),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(a||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nM(o,"layout"),onPlay:s,onComplete:l};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||oi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eD(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(os),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let i=n.props[nb];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",eA,!(e||n))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(r8),this.nodes.forEach(r7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(oe);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ot),this.nodes.forEach(on),this.nodes.forEach(r5),this.nodes.forEach(r4)):this.nodes.forEach(oe),this.clearAllSnapshots();let e=tr.now();eR.delta=a(0,1e3/60,e-eR.timestamp),eR.timestamp=e,eR.isProcessing=!0,eL.update.process(eR),eL.preRender.process(eR),eL.render.process(eR),eR.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r9),this.sharedNodes.forEach(ol)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eA.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eA.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iH(this.snapshot.measuredBox.x)||iH(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=K()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rH(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||tK(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),of((t=i).x),of(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return K();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(og))){let{scroll:e}=this.root;e&&(tJ(t.x,e.offset.x),tJ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=K();if(rV(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&rV(t,e),tJ(t.x,r.offset.x),tJ(t.y,r.offset.y))}return t}applyTransform(e,t=!1,n){let i=n||K();rV(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tJ(i.x,-n.scroll.offset.x),tJ(i.y,-n.scroll.offset.y)),tK(n.latestValues)&&t2(i,n.latestValues,n.layout?.layoutBox)}return tK(this.latestValues)&&t2(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=K();rV(t,e);for(let e=0;e<this.path.length;e++){let n,i=this.path[e];tK(i.latestValues)&&(i.instance&&(tq(i.latestValues)&&i.updateSnapshot(),rV(n=K(),i.measurePageBox())),rU(t,i.latestValues,i.snapshot?.layoutBox,n))}return tK(this.latestValues)&&rU(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eR.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(!this.layout||!(i||r))return;this.resolvedRelativeTargetAt=eR.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,l,a,u;this.forceRelativeParentToResolveTarget(),s=this.target,l=this.relativeTarget,a=this.relativeParent.target,u=this.options.layoutAnchor||void 0,i$(s.x,l.x,a.x,u?.x),i$(s.y,l.y,a.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rV(this.target,this.layout.layoutBox),tQ(this.target,this.targetDelta)):rV(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),eP.value&&rQ.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||tq(this.parent.latestValues)||tX(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),iK(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),rV(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eR.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;rV(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,i=!1){let r,o,s=n.length;if(s){t.x=t.y=1;for(let l=0;l<s;l++){o=(r=n[l]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(tJ(e.x,-r.scroll.offset.x),tJ(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tQ(e,o)),i&&tK(r.latestValues)&&t2(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=K());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rF(this.prevProjectionDelta.x,this.projectionDelta.x),rF(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iY(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&rK(this.projectionDelta.x,this.prevProjectionDelta.x)&&rK(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),eP.value&&rQ.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$(),this.projectionDelta=$(),this.projectionDeltaWithTransform=$()}setAnimationOrigin(e,t=!1){let n,i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},s=$();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=K(),a=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(a&&!c&&!0===this.options.crossfade&&!this.path.some(oc));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(oa(s.x,e.x,i),oa(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,m,g;iK(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,f=this.relativeTargetOrigin,m=l,g=i,ou(p.x,f.x,m.x,g),ou(p.y,f.y,m.y,g),n&&(u=this.relativeTarget,d=n,rW(u.x,d.x)&&rW(u.y,d.y))&&(this.isProjectionDirty=!1),n||(n=K()),rV(n,this.relativeTarget)}a&&(this.animationValues=o,function(e,t,n,i,r,o){r?(e.opacity=tz(0,n.opacity??1,rR(i)),e.opacityExit=tz(t.opacity??1,0,rL(i))):o&&(e.opacity=tz(t.opacity??1,n.opacity??1,i));for(let r=0;r<rP;r++){let o=rC[r],s=rD(t,o),l=rD(n,o);(void 0!==s||void 0!==l)&&(s||(s=0),l||(l=0),0===s||0===l||rA(s)===rA(l)?(e[o]=Math.max(tz(rM(s),rM(l),i),0),(k.test(l)||k.test(s))&&(e[o]+="%")):e[o]=l)}(t.rotate||n.rotate)&&(e.rotate=tz(t.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eD(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eA.update(()=>{rw.hasAnimatedSinceResize=!0,e5.layout++,this.motionValue||(this.motionValue=tl(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){let i=X(e)?e:tl(e);return i.start(iM("",i,t,n)),i.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e5.layout--},onComplete:()=>{e5.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&om(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||K();let t=iH(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=iH(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}rV(t,n),t2(t,r),iY(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rX),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&r1("z",e,i,this.animationValues);for(let t=0;t<rJ.length;t++)r1(`rotate${rJ[t]}`,e,i,this.animationValues),r1(`skew${rJ[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=nc(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nc(t?.pointerEvents)||""),this.hasProjected&&!tK(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(e,t,n){let i="",r=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:o,skewX:s,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),l&&(i+=`skewY(${l}deg) `)}let l=e.x.scale*t.x,a=e.y.scale*t.y;return(1!==l||1!==a)&&(i+=`scale(${l}, ${a})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),e.transform=o;let{x:s,y:l}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?e.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tN){if(void 0===r[t])continue;let{correct:n,applyTo:s,isCSSVariable:l}=tN[t],a="none"===o?r[t]:n(r[t],i);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=a}else l?this.options.visualElement.renderState.vars[t]=a:e[t]=a}this.options.layoutId&&(e.pointerEvents=i===this?nc(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(r7),this.root.sharedNodes.clear()}}}function r5(e){e.updateLayout()}function r4(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;if("size"===r)i_(e=>{let i=o?t.measuredBox[e]:t.layoutBox[e],r=iH(i);i.min=n[e].min,i.max=i.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";rO(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else om(r,t.layoutBox,n)&&i_(i=>{let r=o?t.measuredBox[i]:t.layoutBox[i],s=iH(n[i]);r.max=r.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=$();iY(s,n,t.layoutBox);let l=$();o?iY(l,e.applyTransform(i,!0),t.measuredBox):iY(l,n,t.layoutBox);let a=!rH(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=e.options.layoutAnchor||void 0,l=K();iK(l,t.layoutBox,r.layoutBox,s);let a=K();iK(a,n,o.layoutBox,s),r$(l,a)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=l,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:a,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r3(e){eP.value&&rQ.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r9(e){e.clearSnapshot()}function r7(e){e.clearMeasurements()}function r8(e){e.isLayoutDirty=!0,e.updateLayout()}function oe(e){e.isLayoutDirty=!1}function ot(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function on(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function oi(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function or(e){e.resolveTargetDelta()}function oo(e){e.calcProjection()}function os(e){e.resetSkewAndRotation()}function ol(e){e.removeLeadSnapshot()}function oa(e,t,n){e.translate=tz(t.translate,0,n),e.scale=tz(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ou(e,t,n,i){e.min=tz(t.min,n.min,i),e.max=tz(t.max,n.max,i)}function oc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let oh={duration:.45,ease:[.4,0,.1,1]},od=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),op=od("applewebkit/")&&!od("chrome/")?Math.round:eT;function of(e){e.min=op(e.min),e.max=op(e.max)}function om(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rq(t)-rq(n)))}function og(e){return e!==e.root&&e.scroll?.wasRoot}let oy=r2({attachResizeListener:(e,t)=>iZ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ov={current:void 0},ox=r2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ov.current){let e=new oy({});e.mount(window),e.setOptions({layoutScroll:!0}),ov.current=e}return ov.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ob(e,t){let n=i0(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function ow(e,t,n){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&eA.postRender(()=>r(t,re(t)))}class ok extends nE{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[i,r,o]=ob(e,n);return i.forEach(e=>{let n,i=!1,o=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",a)},l=e=>{i=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),o&&(o=!1,s(e))},a=e=>{if("touch"!==e.pointerType){if(i){o=!0;return}s(e)}};e.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||iU.x||iU.y)return;o=!1;let s=t(e,i);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",a,r))},r),e.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),o}(e,(e,t)=>(ow(this.node,t,"Start"),e=>ow(this.node,e,"End"))))}unmount(){}}class oS extends nE{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nL(iZ(this.node.current,"focus",()=>this.onFocus()),iZ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var oT=n(1402);let oE=(e,t)=>!!t&&(e===t||oE(e,t.parentElement)),oC=new WeakSet;function oP(e){return t=>{"Enter"===t.key&&e(t)}}function oM(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function oA(e){return i8(e)&&!(iU.x||iU.y)}let oD=new WeakSet;function oR(e,t,n){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&eA.postRender(()=>r(t,re(t)))}class oL extends nE{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[i,r,o]=ob(e,n),s=e=>{let i=e.currentTarget;if(!oA(e)||oD.has(e))return;oC.add(i),n.stopPropagation&&oD.add(e);let o=t(i,e),s=(e,t)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",a),oC.has(i)&&oC.delete(i),oA(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{s(e,i===window||i===document||n.useGlobalTarget||oE(i,e.target))},a=e=>{s(e,!1)};window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",a,r)};return i.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",s,r),(0,oT.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let i=oP(()=>{if(oC.has(n))return;oM(n,"down");let e=oP(()=>{oM(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>oM(n,"cancel"),t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)})(e,r)),iX.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(oR(this.node,t,"Start"),(e,{success:t})=>oR(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let oI=new WeakMap,oO=new WeakMap,oV=e=>{let t=oI.get(e.target);t&&t(e)},oF=e=>{e.forEach(oV)},oj={some:0,all:1};class oB extends nE{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:oj[i]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=t?n:i;o&&o(e)};this.stopObserver=function(e,t,n){let i=function({root:e,...t}){let n=e||document;oO.has(n)||oO.set(n,{});let i=oO.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(oF,{root:e,...t})),i[r]}(t);return oI.set(e,n),i.observe(e),()=>{oI.delete(e),i.unobserve(e)}}(this.node.current,o,s)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let oz=function(e,t){if("undefined"==typeof Proxy)return nT;let n=new Map,i=(n,i)=>nT(n,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,nT(o,void 0,e,t)),n.get(o))})}({animation:{Feature:iB},exit:{Feature:iN},inView:{Feature:oB},tap:{Feature:oL},focus:{Feature:oS},hover:{Feature:ok},pan:{Feature:rb},drag:{Feature:rv,ProjectionNode:ox,MeasureLayout:rE},layout:{ProjectionNode:ox,MeasureLayout:rE}},(e,t)=>t.isSVG??t9(e)?new tW(t):new t4(t,{allowProjection:e!==t3.Fragment}))}}]);