@zuplo/editor 1.0.43320404169 → 1.0.43521133441

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 (38) hide show
  1. package/dist/client/index.html +2 -2
  2. package/dist/client/static/css/main-dlBOUM0m.css +1 -0
  3. package/dist/client/static/js/{GraphiQLConsole-BjMQ_-rN.js → GraphiQLConsole-CgO1FQ9T.js} +4 -4
  4. package/dist/client/static/js/{McpCapabilityFilterDesigner-DyCha6HZ.js → McpCapabilityFilterDesigner-IwdyPDyf.js} +1 -1
  5. package/dist/client/static/js/{SchemaReference-C1S1bwsa.js → SchemaReference-QySzULSi.js} +1 -1
  6. package/dist/client/static/js/{cssMode-YrEe1ilo.js → cssMode-vDjc4TwW.js} +1 -1
  7. package/dist/client/static/js/de-DVsDj2de.js +1 -0
  8. package/dist/client/static/js/{editor.api-C0oEtntz.js → editor.api-BgVkQJEF.js} +1 -1
  9. package/dist/client/static/js/{freemarker2-zcFdSleM.js → freemarker2-Bni6ZXpb.js} +1 -1
  10. package/dist/client/static/js/{handlebars-QusPU50Z.js → handlebars-BspEHMHd.js} +1 -1
  11. package/dist/client/static/js/{hint-Crd_HBe9.js → hint-BDhSERFU.js} +1 -1
  12. package/dist/client/static/js/{hint-shPmtVvx.js → hint-DJdkzpNk.js} +1 -1
  13. package/dist/client/static/js/{html-Cc-X_UGA.js → html-CEUL8l7m.js} +1 -1
  14. package/dist/client/static/js/{htmlMode-CkGyaOhE.js → htmlMode-D--2ZroI.js} +1 -1
  15. package/dist/client/static/js/{info-BF6Y0kkd.js → info-BBcjy2y9.js} +1 -1
  16. package/dist/client/static/js/{javascript-Iha7vkvw.js → javascript-CpCTBd_6.js} +1 -1
  17. package/dist/client/static/js/{jsonMode-DrWur3En.js → jsonMode-DASy_Yjy.js} +1 -1
  18. package/dist/client/static/js/{jump-C8BKE0P7.js → jump-Ct0GBy62.js} +1 -1
  19. package/dist/client/static/js/{lint-DJYGzAAx.js → lint-Cy4k-qWA.js} +1 -1
  20. package/dist/client/static/js/{lint-DQLLf7Nf.js → lint-WejI-4T8.js} +1 -1
  21. package/dist/client/static/js/{liquid-BQ8hzcoj.js → liquid-DnKMjBTY.js} +1 -1
  22. package/dist/client/static/js/{lspLanguageFeatures-BpNc0KMP.js → lspLanguageFeatures-BxzOCr1G.js} +1 -1
  23. package/dist/client/static/js/{main-C20FSx_q.js → main-D9baq76S.js} +148 -148
  24. package/dist/client/static/js/{mdx-DPJ6MMEl.js → mdx-CXt_SjEm.js} +1 -1
  25. package/dist/client/static/js/{mode-8P3lyMw6.js → mode-BZKl6qdl.js} +1 -1
  26. package/dist/client/static/js/{mode-B5lCjo6z.js → mode-D2yBrGVT.js} +1 -1
  27. package/dist/client/static/js/{mode-DYjg-Nnd.js → mode-DD4OZOpP.js} +1 -1
  28. package/dist/client/static/js/{python-CzpPuyyl.js → python-Du1yL3q-.js} +1 -1
  29. package/dist/client/static/js/{razor-Dx5wTcg2.js → razor-BkmGpWSe.js} +1 -1
  30. package/dist/client/static/js/{tsMode-BTwhwEbq.js → tsMode-CUWyQVip.js} +1 -1
  31. package/dist/client/static/js/{typescript-Db8R3sWp.js → typescript-f0O24ISF.js} +1 -1
  32. package/dist/client/static/js/{vs-xCpVaxkY.js → vs-DZqpATyE.js} +3 -3
  33. package/dist/client/static/js/{workers-D2rPCysM.js → workers-gdUYeiSc.js} +1 -1
  34. package/dist/client/static/js/{xml-DIR11OSf.js → xml-C69dGF1P.js} +1 -1
  35. package/dist/client/static/js/{yaml-ZmxSgJV5.js → yaml-BU0B4RsC.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/client/static/css/main-D1cAr-TX.css +0 -1
  38. package/dist/client/static/js/de-D8gil0ae.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/codemirror-DualXd8q.js","static/js/rolldown-runtime-BCiCTKAo.js","static/js/show-hint-tH5B1ikp.js","static/js/matchbrackets-wNlFvShq.js","static/js/closebrackets-RaCp3LOI.js","static/js/brace-fold-CvGVZqlg.js","static/js/foldgutter-DMDmmXBR.js","static/js/lint-quylttKd.js","static/js/searchcursor-BVQcGYNk.js","static/js/jump-to-line-Dh-zRt5Y.js","static/js/dialog-CJ-8k4qu.js","static/js/sublime-CKNGwGRF.js","static/js/javascript-C5m9swjn.js","static/js/comment-CYtfOWQV.js","static/js/search-dN6Hktna.js","static/js/hint-shPmtVvx.js","static/js/lint-DQLLf7Nf.js","static/js/info-BF6Y0kkd.js","static/js/main-C20FSx_q.js","static/css/main-D1cAr-TX.css","static/js/SchemaReference-C1S1bwsa.js","static/js/forEachState-C2rvUFya.js","static/js/info-addon-qxLJlsXZ.js","static/js/jump-C8BKE0P7.js","static/js/mode-B5lCjo6z.js","static/js/mode-indent-DFEvo-nt.js","static/js/hint-Crd_HBe9.js","static/js/lint-DJYGzAAx.js","static/js/mode-8P3lyMw6.js","static/js/mode-DYjg-Nnd.js"])))=>i.map(i=>d[i]);
2
- import{a as e,o as t,r as n,t as r}from"./rolldown-runtime-BCiCTKAo.js";import{$ as i,$t as a,A as o,At as s,B as c,Bt as l,C as u,Ct as d,D as f,Dt as p,Et as m,F as h,Ft as g,G as _,Gt as v,H as y,Ht as b,I as x,It as S,J as C,Jt as w,K as T,Kt as E,L as D,Lt as O,M as k,Mt as A,N as j,Nt as M,O as N,Ot as ee,P,Pt as te,Q as ne,Qt as re,R as ie,Rt as ae,S as oe,St as se,T as ce,Tt as le,U as ue,Ut as de,V as F,Vt as fe,W as pe,Wt as me,X as he,Xt as ge,Y as _e,Yt as ve,Z as ye,Zt as be,_ as xe,a as Se,an as Ce,at as I,b as we,bt as Te,c as Ee,ct as De,d as Oe,dt as L,en as ke,et as Ae,f as je,ft as Me,g as Ne,h as Pe,i as Fe,in as R,it as Ie,j as Le,jt as Re,k as ze,kt as Be,l as Ve,lt as He,m as Ue,n as We,nn as Ge,nt as Ke,o as qe,on as Je,ot as z,p as Ye,pt as Xe,q as Ze,qt as Qe,r as $e,rn as et,rt as tt,s as nt,sn as rt,st as B,t as it,tn as at,tt as ot,u as st,ut as ct,v as lt,w as ut,wt as dt,x as ft,xt as pt,y as mt,yt as ht,z as gt,zt as _t}from"./main-C20FSx_q.js";function vt(e,t){return e===t?!0:gt(e)&&gt(t)||D(e)&&D(t)?vt(e.ofType,t.ofType):!1}function yt(e,t,n){return t===n?!0:gt(n)?gt(t)?yt(e,t.ofType,n.ofType):!1:gt(t)?yt(e,t.ofType,n):D(n)?D(t)?yt(e,t.ofType,n.ofType):!1:!D(t)&&o(n)&&(h(t)||F(t))&&e.isSubType(n,t)}function bt(e,t,n){return t===n?!0:o(t)?o(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):o(n)?e.isSubType(n,t):!1}function xt(e){if(Fe(e),e.__validationErrors)return e.__validationErrors;let t=new Ct(e);wt(t),Et(t),Ot(t);let n=t.getErrors();return e.__validationErrors=n,n}function St(e){let t=xt(e);if(t.length!==0)throw Error(t.map(e=>e.message).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/codemirror-DualXd8q.js","static/js/rolldown-runtime-BCiCTKAo.js","static/js/show-hint-tH5B1ikp.js","static/js/matchbrackets-wNlFvShq.js","static/js/closebrackets-RaCp3LOI.js","static/js/brace-fold-CvGVZqlg.js","static/js/foldgutter-DMDmmXBR.js","static/js/lint-quylttKd.js","static/js/searchcursor-BVQcGYNk.js","static/js/jump-to-line-Dh-zRt5Y.js","static/js/dialog-CJ-8k4qu.js","static/js/sublime-CKNGwGRF.js","static/js/javascript-C5m9swjn.js","static/js/comment-CYtfOWQV.js","static/js/search-dN6Hktna.js","static/js/hint-DJdkzpNk.js","static/js/lint-WejI-4T8.js","static/js/info-BBcjy2y9.js","static/js/main-D9baq76S.js","static/css/main-dlBOUM0m.css","static/js/SchemaReference-QySzULSi.js","static/js/forEachState-C2rvUFya.js","static/js/info-addon-qxLJlsXZ.js","static/js/jump-Ct0GBy62.js","static/js/mode-D2yBrGVT.js","static/js/mode-indent-DFEvo-nt.js","static/js/hint-BDhSERFU.js","static/js/lint-Cy4k-qWA.js","static/js/mode-BZKl6qdl.js","static/js/mode-DD4OZOpP.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,o as t,r as n,t as r}from"./rolldown-runtime-BCiCTKAo.js";import{$ as i,$t as a,A as o,At as s,B as c,Bt as l,C as u,Ct as d,D as f,Dt as p,Et as m,F as h,Ft as g,G as _,Gt as v,H as y,Ht as b,I as x,It as S,J as C,Jt as w,K as T,Kt as E,L as D,Lt as O,M as k,Mt as A,N as j,Nt as M,O as N,Ot as ee,P,Pt as te,Q as ne,Qt as re,R as ie,Rt as ae,S as oe,St as se,T as ce,Tt as le,U as ue,Ut as de,V as F,Vt as fe,W as pe,Wt as me,X as he,Xt as ge,Y as _e,Yt as ve,Z as ye,Zt as be,_ as xe,a as Se,an as Ce,at as I,b as we,bt as Te,c as Ee,ct as De,d as Oe,dt as L,en as ke,et as Ae,f as je,ft as Me,g as Ne,h as Pe,i as Fe,in as R,it as Ie,j as Le,jt as Re,k as ze,kt as Be,l as Ve,lt as He,m as Ue,n as We,nn as Ge,nt as Ke,o as qe,on as Je,ot as z,p as Ye,pt as Xe,q as Ze,qt as Qe,r as $e,rn as et,rt as tt,s as nt,sn as rt,st as B,t as it,tn as at,tt as ot,u as st,ut as ct,v as lt,w as ut,wt as dt,x as ft,xt as pt,y as mt,yt as ht,z as gt,zt as _t}from"./main-D9baq76S.js";function vt(e,t){return e===t?!0:gt(e)&&gt(t)||D(e)&&D(t)?vt(e.ofType,t.ofType):!1}function yt(e,t,n){return t===n?!0:gt(n)?gt(t)?yt(e,t.ofType,n.ofType):!1:gt(t)?yt(e,t.ofType,n):D(n)?D(t)?yt(e,t.ofType,n.ofType):!1:!D(t)&&o(n)&&(h(t)||F(t))&&e.isSubType(n,t)}function bt(e,t,n){return t===n?!0:o(t)?o(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):o(n)?e.isSubType(n,t):!1}function xt(e){if(Fe(e),e.__validationErrors)return e.__validationErrors;let t=new Ct(e);wt(t),Et(t),Ot(t);let n=t.getErrors();return e.__validationErrors=n,n}function St(e){let t=xt(e);if(t.length!==0)throw Error(t.map(e=>e.message).join(`
3
3
 
4
4
  `))}var Ct=class{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new L(e,{nodes:n}))}getErrors(){return this._errors}};function wt(e){let t=e.schema,n=t.getQueryType();n?F(n)||e.reportError(`Query root type must be Object type, it cannot be ${I(n)}.`,Tt(t,De.QUERY)??n.astNode):e.reportError(`Query root type must be provided.`,t.astNode);let r=t.getMutationType();r&&!F(r)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${I(r)}.`,Tt(t,De.MUTATION)??r.astNode);let i=t.getSubscriptionType();i&&!F(i)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${I(i)}.`,Tt(t,De.SUBSCRIPTION)??i.astNode)}function Tt(e,t){return[e.astNode,...e.extensionASTNodes].flatMap(e=>e?.operationTypes??[]).find(e=>e.operation===t)?.type}function Et(e){for(let t of e.schema.getDirectives())if(!Pe(t))e.reportError(`Expected directive but got: ${I(t)}.`,t?.astNode);else{Dt(e,t),t.locations.length===0&&e.reportError(`Directive @${t.name} must include 1 or more locations.`,t.astNode);for(let n of t.args)Dt(e,n),P(n.type)||e.reportError(`The type of @${t.name}(${n.name}:) must be Input Type but got: ${I(n.type)}.`,n.astNode),ue(n)&&n.deprecationReason!=null&&e.reportError(`Required argument @${t.name}(${n.name}:) cannot be deprecated.`,[Bt(n.astNode),n.astNode?.type])}}function Dt(e,t){t.name.startsWith(`__`)&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Ot(e){let t=Lt(e),n=e.schema.getTypeMap();for(let r of Object.values(n))ie(r)?(st(r)||Dt(e,r),F(r)||h(r)?(kt(e,r),At(e,r)):Ze(r)?Nt(e,r):k(r)?Pt(e,r):j(r)&&(Ft(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${I(r)}.`,r.astNode)}function kt(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let r of n){Dt(e,r),y(r.type)||e.reportError(`The type of ${t.name}.${r.name} must be Output Type but got: ${I(r.type)}.`,r.astNode?.type);for(let n of r.args){let i=n.name;Dt(e,n),P(n.type)||e.reportError(`The type of ${t.name}.${r.name}(${i}:) must be Input Type but got: ${I(n.type)}.`,n.astNode?.type),ue(n)&&n.deprecationReason!=null&&e.reportError(`Required argument ${t.name}.${r.name}(${i}:) cannot be deprecated.`,[Bt(n.astNode),n.astNode?.type])}}}function At(e,t){let n=Object.create(null);for(let r of t.getInterfaces())h(r)?t===r?e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Rt(t,r)):n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Rt(t,r)):(n[r.name]=!0,Mt(e,t,r),jt(e,t,r)):e.reportError(`Type ${I(t)} must only implement Interface types, it cannot implement ${I(r)}.`,Rt(t,r))}function jt(e,t,n){let r=t.getFields();for(let i of Object.values(n.getFields())){let a=i.name,o=r[a];if(!o)e.reportError(`Interface field ${n.name}.${a} expected but ${t.name} does not provide it.`,[i.astNode,t.astNode,...t.extensionASTNodes]);else{yt(e.schema,o.type,i.type)||e.reportError(`Interface field ${n.name}.${a} expects type ${I(i.type)} but ${t.name}.${a} is type ${I(o.type)}.`,[i.astNode?.type,o.astNode?.type]);for(let r of i.args){let i=r.name,s=o.args.find(e=>e.name===i);s?vt(r.type,s.type)||e.reportError(`Interface field argument ${n.name}.${a}(${i}:) expects type ${I(r.type)} but ${t.name}.${a}(${i}:) is type ${I(s.type)}.`,[r.astNode?.type,s.astNode?.type]):e.reportError(`Interface field argument ${n.name}.${a}(${i}:) expected but ${t.name}.${a} does not provide it.`,[r.astNode,o.astNode])}for(let r of o.args){let o=r.name;!i.args.find(e=>e.name===o)&&ue(r)&&e.reportError(`Object field ${t.name}.${a} includes required argument ${o} that is missing from the Interface field ${n.name}.${a}.`,[r.astNode,i.astNode])}}}}function Mt(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Rt(n,i),...Rt(t,n)])}function Nt(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,zt(t,i.name)):(r[i.name]=!0,F(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${I(i)}.`,zt(t,String(i))))}function Pt(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let t of n)Dt(e,t)}function Ft(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Dt(e,r),P(r.type)||e.reportError(`The type of ${t.name}.${r.name} must be Input Type but got: ${I(r.type)}.`,r.astNode?.type),pe(r)&&r.deprecationReason!=null&&e.reportError(`Required input field ${t.name}.${r.name} cannot be deprecated.`,[Bt(r.astNode),r.astNode?.type]),t.isOneOf&&It(t,r,e)}function It(e,t,n){gt(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,t.astNode?.type),t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Lt(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let t of o)if(gt(t.type)&&j(t.type.ofType)){let a=t.type.ofType,o=r[a.name];if(n.push(t),o===void 0)i(a);else{let t=n.slice(o),r=t.map(e=>e.name).join(`.`);e.reportError(`Cannot reference Input Object "${a.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[a.name]=void 0}}function Rt(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n==null?r:[n,...r]).flatMap(e=>e.interfaces??[]).filter(e=>e.name.value===t.name)}function zt(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n==null?r:[n,...r]).flatMap(e=>e.types??[]).filter(e=>e.name.value===t)}function Bt(e){return e?.directives?.find(e=>e.name.value===je.name)}function Vt(e,t){switch(t.kind){case z.LIST_TYPE:{let n=Vt(e,t.type);return n&&new u(n)}case z.NON_NULL_TYPE:{let n=Vt(e,t.type);return n&&new ut(n)}case z.NAMED_TYPE:return e.getType(t.name.value)}}var Ht=class{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??Ut,t&&(P(t)&&this._inputTypeStack.push(t),Le(t)&&this._parentTypeStack.push(t),y(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return`TypeInfo`}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case z.SELECTION_SET:{let e=N(this.getType());this._parentTypeStack.push(Le(e)?e:void 0);break}case z.FIELD:{let n=this.getParentType(),r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(y(i)?i:void 0);break}case z.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case z.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(F(n)?n:void 0);break}case z.INLINE_FRAGMENT:case z.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?Vt(t,n):N(this.getType());this._typeStack.push(y(r)?r:void 0);break}case z.VARIABLE_DEFINITION:{let n=Vt(t,e.type);this._inputTypeStack.push(P(n)?n:void 0);break}case z.ARGUMENT:{let t,n,r=this.getDirective()??this.getFieldDef();r&&(t=r.args.find(t=>t.name===e.name.value),t&&(n=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(P(n)?n:void 0);break}case z.LIST:{let e=ze(this.getInputType()),t=D(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(P(t)?t:void 0);break}case z.OBJECT_FIELD:{let t=N(this.getInputType()),n,r;j(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(P(n)?n:void 0);break}case z.ENUM:{let t=N(this.getInputType()),n;k(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case z.SELECTION_SET:this._parentTypeStack.pop();break;case z.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case z.DIRECTIVE:this._directive=null;break;case z.OPERATION_DEFINITION:case z.INLINE_FRAGMENT:case z.FRAGMENT_DEFINITION:this._typeStack.pop();break;case z.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case z.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case z.LIST:case z.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case z.ENUM:this._enumValue=null}}};function Ut(e,t,n){let r=n.name.value;if(r===qe.name&&e.getQueryType()===t)return qe;if(r===nt.name&&e.getQueryType()===t)return nt;if(r===Ee.name&&Le(t))return Ee;if(F(t)||h(t))return t.getFields()[r]}function Wt(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=he(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),ct(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=he(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}function Gt(e){return e.kind===z.OPERATION_DEFINITION||e.kind===z.FRAGMENT_DEFINITION}function Kt(e){return e.kind===z.SCHEMA_DEFINITION||qt(e)||e.kind===z.DIRECTIVE_DEFINITION}function qt(e){return e.kind===z.SCALAR_TYPE_DEFINITION||e.kind===z.OBJECT_TYPE_DEFINITION||e.kind===z.INTERFACE_TYPE_DEFINITION||e.kind===z.UNION_TYPE_DEFINITION||e.kind===z.ENUM_TYPE_DEFINITION||e.kind===z.INPUT_OBJECT_TYPE_DEFINITION}function Jt(e){return e.kind===z.SCHEMA_EXTENSION||e.kind===z.DIRECTIVE_EXTENSION||Yt(e)}function Yt(e){return e.kind===z.SCALAR_TYPE_EXTENSION||e.kind===z.OBJECT_TYPE_EXTENSION||e.kind===z.INTERFACE_TYPE_EXTENSION||e.kind===z.UNION_TYPE_EXTENSION||e.kind===z.ENUM_TYPE_EXTENSION||e.kind===z.INPUT_OBJECT_TYPE_EXTENSION}function Xt(e){return{Document(t){for(let n of t.definitions)if(!Gt(n)){let t=n.kind===z.SCHEMA_DEFINITION||n.kind===z.SCHEMA_EXTENSION?`schema`:`"`+n.name.value+`"`;e.reportError(new L(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function Zt(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let r=e.getSchema(),i=t.name.value,a=tt(`to use an inline fragment on`,Qt(r,n,i));a===``&&(a=tt($t(n,i))),e.reportError(new L(`Cannot query field "${i}" on type "${n.name}".`+a,{nodes:t}))}}}}function Qt(e,t,n){if(!o(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(let e of a.getInterfaces())e.getFields()[n]&&(r.add(e),i[e.name]=(i[e.name]??0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return r===0?h(t)&&e.isSubType(t,n)?-1:h(n)&&e.isSubType(n,t)?1:Ae(t.name,n.name):r}).map(e=>e.name)}function $t(e,t){if(F(e)||h(e)){let n=Object.keys(e.getFields());return i(t,n)}return[]}function en(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=Vt(e.getSchema(),n);if(t&&!Le(t)){let t=C(n);e.reportError(new L(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=Vt(e.getSchema(),t.typeCondition);if(n&&!Le(n)){let n=C(t.typeCondition);e.reportError(new L(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function tn(e){return{...nn(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),a=e.getParentType();if(!n&&r&&a){let n=t.name.value,o=r.args.map(e=>e.name),s=i(n,o);e.reportError(new L(`Unknown argument "${n}" on field "${a.name}.${r.name}".`+tt(s),{nodes:t}))}}}}function nn(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let e of r)t[e.name]=e.args.map(e=>e.name);let a=e.getDocument().definitions;for(let e of a)if(e.kind===z.DIRECTIVE_DEFINITION){let n=e.arguments??[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,a=t[r];if(n.arguments&&a)for(let t of n.arguments){let n=t.name.value;if(!a.includes(n)){let o=i(n,a);e.reportError(new L(`Unknown argument "${n}" on directive "@${r}".`+tt(o),{nodes:t}))}}return!1}}}function rn(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let e of r)t[e.name]=e.locations;let i=e.getDocument().definitions;for(let e of i)e.kind===z.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,r,i,a,o){let s=n.name.value,c=t[s];if(!c){e.reportError(new L(`Unknown directive "@${s}".`,{nodes:n}));return}let l=an(o);l&&!c.includes(l)&&e.reportError(new L(`Directive "@${s}" may not be used on ${l}.`,{nodes:n}))}}}function an(e){let t=e[e.length-1];switch(`kind`in t||Me(!1),t.kind){case z.OPERATION_DEFINITION:return on(t.operation);case z.FIELD:return B.FIELD;case z.FRAGMENT_SPREAD:return B.FRAGMENT_SPREAD;case z.INLINE_FRAGMENT:return B.INLINE_FRAGMENT;case z.FRAGMENT_DEFINITION:return B.FRAGMENT_DEFINITION;case z.VARIABLE_DEFINITION:return B.VARIABLE_DEFINITION;case z.SCHEMA_DEFINITION:case z.SCHEMA_EXTENSION:return B.SCHEMA;case z.SCALAR_TYPE_DEFINITION:case z.SCALAR_TYPE_EXTENSION:return B.SCALAR;case z.OBJECT_TYPE_DEFINITION:case z.OBJECT_TYPE_EXTENSION:return B.OBJECT;case z.FIELD_DEFINITION:return B.FIELD_DEFINITION;case z.INTERFACE_TYPE_DEFINITION:case z.INTERFACE_TYPE_EXTENSION:return B.INTERFACE;case z.UNION_TYPE_DEFINITION:case z.UNION_TYPE_EXTENSION:return B.UNION;case z.ENUM_TYPE_DEFINITION:case z.ENUM_TYPE_EXTENSION:return B.ENUM;case z.ENUM_VALUE_DEFINITION:return B.ENUM_VALUE;case z.INPUT_OBJECT_TYPE_DEFINITION:case z.INPUT_OBJECT_TYPE_EXTENSION:return B.INPUT_OBJECT;case z.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return`kind`in t||Me(!1),t.kind===z.INPUT_OBJECT_TYPE_DEFINITION?B.INPUT_FIELD_DEFINITION:B.ARGUMENT_DEFINITION}case z.DIRECTIVE_DEFINITION:case z.DIRECTIVE_EXTENSION:return B.DIRECTIVE_DEFINITION;default:Me(!1,`Unexpected kind: `+I(t.kind))}}function on(e){switch(e){case De.QUERY:return B.QUERY;case De.MUTATION:return B.MUTATION;case De.SUBSCRIPTION:return B.SUBSCRIPTION}}function sn(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new L(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function cn(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)qt(t)&&(r[t.name.value]=!0);let a=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,s,c,l){let u=t.name.value;if(!n[u]&&!r[u]){let n=l[2]??s,r=n!=null&&un(n);if(r&&ln.includes(u))return;let o=i(u,r?ln.concat(a):a);e.reportError(new L(`Unknown type "${u}".`+tt(o),{nodes:t}))}}}}var ln=[...mt,...Ve].map(e=>e.name);function un(e){return`kind`in e&&(Kt(e)||Jt(e))}function dn(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===z.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new L(`This anonymous operation must be the only defined operation.`,{nodes:n}))}}}function fn(e){let t=e.getSchema(),n=t?.astNode??t?.getQueryType()??t?.getMutationType()??t?.getSubscriptionType(),r=0;return{SchemaDefinition(t){n?e.reportError(new L(`Cannot define a new schema within a schema extension.`,{nodes:t})):(r>0&&e.reportError(new L(`Must provide only one schema definition.`,{nodes:t})),++r)}}}var pn=3;function mn(e){function t(n,r=Object.create(null),i=0){if(n.kind===z.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===z.FIELD&&(n.name.value===`fields`||n.name.value===`interfaces`||n.name.value===`possibleTypes`||n.name.value===`inputFields`)&&(i++,i>=pn))return!0;if(`selectionSet`in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}return{Field(n){if((n.name.value===`__schema`||n.name.value===`__type`)&&t(n))return e.reportError(new L(`Maximum introspection depth exceeded`,{nodes:[n]})),!1}}}function hn(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(e){return i(e),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let s=e.getFragmentSpreads(a.selectionSet);if(s.length!==0){r[o]=n.length;for(let t of s){let a=t.name.value,o=r[a];if(n.push(t),o===void 0){let t=e.getFragment(a);t&&i(t)}else{let t=n.slice(o),r=t.slice(0,-1).map(e=>`"`+e.name.value+`"`).join(`, `);e.reportError(new L(`Cannot spread fragment "${a}" within itself`+(r===``?`.`:` via ${r}.`),{nodes:t}))}n.pop()}r[o]=void 0}}}function gn(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let r=i.name.value;t[r]!==!0&&e.reportError(new L(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function _n(e){let t=[],n=[];return{OperationDefinition(e){return t.push(e),!1},FragmentDefinition(e){return n.push(e),!1},Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;r[n]!==!0&&e.reportError(new L(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function vn(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:e}of i)r[e.name.value]=!0;for(let i of t){let t=i.variable.name.value;r[t]!==!0&&e.reportError(new L(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function yn(e){switch(e.kind){case z.OBJECT:return{...e,fields:bn(e.fields)};case z.LIST:return{...e,values:e.values.map(yn)};case z.INT:case z.FLOAT:case z.STRING:case z.BOOLEAN:case z.NULL:case z.ENUM:case z.VARIABLE:return e}}function bn(e){return e.map(e=>({...e,value:yn(e.value)})).sort((e,t)=>Ae(e.name.value,t.name.value))}function xn(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+xn(t)).join(` and `):e}function Sn(e){let t=new Ln,n=new Rn,r=new Map;return{SelectionSet(i){let a=Cn(e,r,t,n,e.getParentType(),i);for(let[[t,n],r,i]of a){let a=xn(n);e.reportError(new L(`Fields "${t}" conflict because ${a}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(i)}))}}}}function Cn(e,t,n,r,i,a){let o=[],[s,c]=Nn(e,t,i,a);if(Dn(e,o,t,n,r,s),c.length!==0)for(let i=0;i<c.length;i++){wn(e,o,t,n,r,!1,s,c[i]);for(let a=i+1;a<c.length;a++)Tn(e,o,t,n,r,!1,c[i],c[a])}return o}function wn(e,t,n,r,i,a,o,s){if(r.has(o,s,a))return;r.add(o,s,a);let c=e.getFragment(s);if(!c)return;let[l,u]=Pn(e,n,c);if(o!==l){On(e,t,n,r,i,a,o,l);for(let s of u)wn(e,t,n,r,i,a,o,s)}}function Tn(e,t,n,r,i,a,o,s){if(o===s||i.has(o,s,a))return;i.add(o,s,a);let c=e.getFragment(o),l=e.getFragment(s);if(!c||!l)return;let[u,d]=Pn(e,n,c),[f,p]=Pn(e,n,l);On(e,t,n,r,i,a,u,f);for(let s of p)Tn(e,t,n,r,i,a,o,s);for(let o of d)Tn(e,t,n,r,i,a,o,s)}function En(e,t,n,r,i,a,o,s,c){let l=[],[u,d]=Nn(e,t,a,o),[f,p]=Nn(e,t,s,c);On(e,l,t,n,r,i,u,f);for(let a of p)wn(e,l,t,n,r,i,u,a);for(let a of d)wn(e,l,t,n,r,i,f,a);for(let a of d)for(let o of p)Tn(e,l,t,n,r,i,a,o);return l}function Dn(e,t,n,r,i,a){for(let[o,s]of Object.entries(a))if(s.length>1)for(let a=0;a<s.length;a++)for(let c=a+1;c<s.length;c++){let l=kn(e,n,r,i,!1,o,s[a],s[c]);l&&t.push(l)}}function On(e,t,n,r,i,a,o,s){for(let[c,l]of Object.entries(o)){let o=s[c];if(o)for(let s of l)for(let l of o){let o=kn(e,n,r,i,a,c,s,l);o&&t.push(o)}}}function kn(e,t,n,r,i,a,o,s){let[c,l,u]=o,[d,f,p]=s,m=i||c!==d&&F(c)&&F(d);if(!m){let e=l.name.value,t=f.name.value;if(e!==t)return[[a,`"${e}" and "${t}" are different fields`],[l],[f]];if(!An(l,f))return[[a,`they have differing arguments`],[l],[f]]}let h=u?.type,g=p?.type;if(h&&g&&Mn(h,g))return[[a,`they return conflicting types "${I(h)}" and "${I(g)}"`],[l],[f]];let _=l.selectionSet,v=f.selectionSet;if(_&&v)return In(En(e,t,n,r,m,N(h),_,N(g),v),a,l,f)}function An(e,t){let n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return n!==void 0&&jn(t)===jn(n)})}function jn(e){return C(yn(e))}function Mn(e,t){return D(e)?!D(t)||Mn(e.ofType,t.ofType):D(t)?!0:gt(e)?!gt(t)||Mn(e.ofType,t.ofType):gt(t)?!0:x(e)||x(t)?e!==t:!1}function Nn(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);Fn(e,n,r,a,o);let s=[a,Object.keys(o)];return t.set(r,s),s}function Pn(e,t,n){return t.get(n.selectionSet)||Nn(e,t,Vt(e.getSchema(),n.typeCondition),n.selectionSet)}function Fn(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case z.FIELD:{let e=a.name.value,n;(F(t)||h(t))&&(n=t.getFields()[e]);let i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case z.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case z.INLINE_FRAGMENT:{let n=a.typeCondition;Fn(e,n?Vt(e.getSchema(),n):t,a.selectionSet,r,i);break}}}function In(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}var Ln=class{constructor(){this._data=new Map}has(e,t,n){let r=this._data.get(e)?.get(t);return r===void 0?!1:n?!0:n===r}add(e,t,n){let r=this._data.get(e);r===void 0?this._data.set(e,new Map([[t,n]])):r.set(t,n)}},Rn=class{constructor(){this._orderedPairSet=new Ln}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}};function zn(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(Le(n)&&Le(r)&&!bt(e.getSchema(),n,r)){let i=I(r),a=I(n);e.reportError(new L(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=Bn(e,n),i=e.getParentType();if(r&&i&&!bt(e.getSchema(),r,i)){let a=I(i),o=I(r);e.reportError(new L(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function Bn(e,t){let n=e.getFragment(t);if(n){let t=Vt(e.getSchema(),n.typeCondition);if(Le(t))return t}}function Vn(e){let t=e.getSchema(),n=Object.create(null);for(let t of e.getDocument().definitions)qt(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){let a=r.name.value,o=n[a],s=t?.getType(a),c;if(o?c=Hn[o.kind]:s&&(c=Un(s)),c){if(c!==r.kind){let t=Wn(r.kind);e.reportError(new L(`Cannot extend non-${t} type "${a}".`,{nodes:o?[o,r]:r}))}}else{let o=Object.keys({...n,...t?.getTypeMap()}),s=i(a,o);e.reportError(new L(`Cannot extend type "${a}" because it is not defined.`+tt(s),{nodes:r.name}))}}}var Hn={[z.SCALAR_TYPE_DEFINITION]:z.SCALAR_TYPE_EXTENSION,[z.OBJECT_TYPE_DEFINITION]:z.OBJECT_TYPE_EXTENSION,[z.INTERFACE_TYPE_DEFINITION]:z.INTERFACE_TYPE_EXTENSION,[z.UNION_TYPE_DEFINITION]:z.UNION_TYPE_EXTENSION,[z.ENUM_TYPE_DEFINITION]:z.ENUM_TYPE_EXTENSION,[z.INPUT_OBJECT_TYPE_DEFINITION]:z.INPUT_OBJECT_TYPE_EXTENSION};function Un(e){if(_(e))return z.SCALAR_TYPE_EXTENSION;if(F(e))return z.OBJECT_TYPE_EXTENSION;if(h(e))return z.INTERFACE_TYPE_EXTENSION;if(Ze(e))return z.UNION_TYPE_EXTENSION;if(k(e))return z.ENUM_TYPE_EXTENSION;if(j(e))return z.INPUT_OBJECT_TYPE_EXTENSION;Me(!1,`Unexpected type: `+I(e))}function Wn(e){switch(e){case z.SCALAR_TYPE_EXTENSION:return`scalar`;case z.OBJECT_TYPE_EXTENSION:return`object`;case z.INTERFACE_TYPE_EXTENSION:return`interface`;case z.UNION_TYPE_EXTENSION:return`union`;case z.ENUM_TYPE_EXTENSION:return`enum`;case z.INPUT_OBJECT_TYPE_EXTENSION:return`input object`;default:Me(!1,`Unexpected kind: `+I(e))}}function Gn(e){return{...Kn(e),Field:{leave(t){let n=e.getFieldDef();if(!n)return!1;let r=new Set(t.arguments?.map(e=>e.name.value));for(let i of n.args)if(!r.has(i.name)&&ue(i)){let r=I(i.type);e.reportError(new L(`Field "${n.name}" argument "${i.name}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}function Kn(e){let t=Object.create(null),n=e.getSchema()?.getDirectives()??Ne;for(let e of n)t[e.name]=Ke(e.args.filter(ue),e=>e.name);let r=e.getDocument().definitions;for(let e of r)if(e.kind===z.DIRECTIVE_DEFINITION){let n=e.arguments??[];t[e.name.value]=Ke(n.filter(qn),e=>e.name.value)}return{Directive:{leave(n){let r=n.name.value,i=t[r];if(i){let t=n.arguments??[],a=new Set(t.map(e=>e.name.value));for(let[t,o]of Object.entries(i))if(!a.has(t)){let i=T(o.type)?I(o.type):C(o.type);e.reportError(new L(`Directive "@${r}" argument "${t}" of type "${i}" is required, but it was not provided.`,{nodes:n}))}}}}}}function qn(e){return e.type.kind===z.NON_NULL_TYPE&&e.defaultValue==null}function Jn(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(x(N(n))){if(r){let i=t.name.value,a=I(n);e.reportError(new L(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let r=t.name.value,i=I(n);e.reportError(new L(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}else if(r.selections.length===0){let r=t.name.value,i=I(n);e.reportError(new L(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}}}}function Yn(e,t,n){let r=Object.create(null),i=t.arguments??[],a=Ke(i,e=>e.name.value);for(let i of e.args){let e=i.name,o=i.type,s=a[e];if(!s){if(i.defaultValue!==void 0)r[e]=i.defaultValue;else if(gt(o))throw new L(`Argument "${e}" of required type "${I(o)}" was not provided.`,{nodes:t});continue}let c=s.value,l=c.kind===z.NULL;if(c.kind===z.VARIABLE){let t=c.name.value;if(n==null||!Zn(n,t)){if(i.defaultValue!==void 0)r[e]=i.defaultValue;else if(gt(o))throw new L(`Argument "${e}" of required type "${I(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:c});continue}l=n[t]==null}if(l&&gt(o))throw new L(`Argument "${e}" of non-null type "${I(o)}" must not be null.`,{nodes:c});let u=$e(c,o,n);if(u===void 0)throw new L(`Argument "${e}" has invalid value ${C(c)}.`,{nodes:c});r[e]=u}return{...r}}function Xn(e,t,n){let r=t.directives?.find(t=>t.name.value===e.name);if(r)return Yn(e,r,n)}function Zn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qn(e,t,n,r,i){let a=new Map;return $n(e,t,n,r,i,a,new Set),a}function $n(e,t,n,r,i,a,o){for(let s of i.selections)switch(s.kind){case z.FIELD:{if(!er(n,s))continue;let e=nr(s),t=a.get(e);t===void 0?a.set(e,[s]):t.push(s);break}case z.INLINE_FRAGMENT:if(!er(n,s)||!tr(e,s,r))continue;$n(e,t,n,r,s.selectionSet,a,o);break;case z.FRAGMENT_SPREAD:{let i=s.name.value;if(o.has(i)||!er(n,s))continue;o.add(i);let c=t[i];if(!c||!tr(e,c,r))continue;$n(e,t,n,r,c.selectionSet,a,o);break}}}function er(e,t){return Xn(Ue,t,e)?.if!==!0&&Xn(Ye,t,e)?.if!==!1}function tr(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=Vt(e,r);return i===n?!0:o(i)?e.isSubType(i,n):!1}function nr(e){return e.alias?e.alias.value:e.name.value}function rr(e){return{OperationDefinition(t){if(t.operation===`subscription`){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),s=Object.create(null);for(let e of o.definitions)e.kind===z.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let c=Qn(n,s,a,r,t.selectionSet);if(c.size>1){let t=[...c.values()].slice(1).flat();e.reportError(new L(i==null?`Anonymous Subscription must select only one top level field.`:`Subscription "${i}" must select only one top level field.`,{nodes:t}))}for(let t of c.values())t[0].name.value.startsWith(`__`)&&e.reportError(new L(i==null?`Anonymous Subscription must not select an introspection top level field.`:`Subscription "${i}" must not select an introspection top level field.`,{nodes:t}))}}}}}function ir(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);i===void 0?n.set(e,[r]):i.push(r)}return n}function ar(e){return{DirectiveDefinition(e){let t=e.arguments??[];return n(`@${e.name.value}`,t)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){let t=e.name.value,r=e.fields??[];for(let e of r){let r=e.name.value,i=e.arguments??[];n(`${t}.${r}`,i)}return!1}function n(t,n){let r=ir(n,e=>e.name.value);for(let[n,i]of r)i.length>1&&e.reportError(new L(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function or(e){return{Field:t,Directive:t};function t(t){let n=ir(t.arguments??[],e=>e.name.value);for(let[t,r]of n)r.length>1&&e.reportError(new L(`There can be only one argument named "${t}".`,{nodes:r.map(e=>e.name)}))}}function sr(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i))e.reportError(new L(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));else return t[i]?e.reportError(new L(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function cr(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Ne;for(let e of r)t[e.name]=!e.isRepeatable;let i=e.getDocument().definitions;for(let e of i)e.kind===z.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);let a=Object.create(null),o=Object.create(null),s=Object.create(null);return{enter(n){if(!(`directives`in n)||!n.directives)return;let r;if(n.kind===z.SCHEMA_DEFINITION||n.kind===z.SCHEMA_EXTENSION)r=a;else if(qt(n)||Yt(n)){let e=n.name.value;r=o[e],r===void 0&&(o[e]=r=Object.create(null))}else if(n.kind===z.DIRECTIVE_DEFINITION||n.kind===z.DIRECTIVE_EXTENSION){let e=n.name.value;r=s[e],r===void 0&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(let i of n.directives){let n=i.name.value;t[n]&&(r[n]?e.reportError(new L(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function lr(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){let i=t.name.value;r[i]||(r[i]=Object.create(null));let a=t.values??[],o=r[i];for(let t of a){let r=t.name.value,a=n[i];k(a)&&a.getValue(r)?e.reportError(new L(`Enum value "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):o[r]?e.reportError(new L(`Enum value "${i}.${r}" can only be defined once.`,{nodes:[o[r],t.name]})):o[r]=t.name}return!1}}function ur(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){let i=t.name.value;r[i]||(r[i]=Object.create(null));let a=t.fields??[],o=r[i];for(let t of a){let r=t.name.value;dr(n[i],r)?e.reportError(new L(`Field "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):o[r]?e.reportError(new L(`Field "${i}.${r}" can only be defined once.`,{nodes:[o[r],t.name]})):o[r]=t.name}return!1}}function dr(e,t){return F(e)||h(e)||j(e)?e.getFields()[t]!=null:!1}function fr(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new L(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function pr(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||Me(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new L(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function mr(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new L(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function hr(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){let i=t.operationTypes??[];for(let t of i){let i=t.operation,a=n[i];r[i]?e.reportError(new L(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):a?e.reportError(new L(`There can be only one ${i} type in schema.`,{nodes:[a,t]})):n[i]=t}return!1}}function gr(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;if(n!=null&&n.getType(i))e.reportError(new L(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}));else return t[i]?e.reportError(new L(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}function _r(e){return{OperationDefinition(t){let n=ir(t.variableDefinitions??[],e=>e.variable.name.value);for(let[t,r]of n)r.length>1&&e.reportError(new L(`There can be only one variable named "$${t}".`,{nodes:r.map(e=>e.variable.name)}))}}}function vr(e){return{ListValue(t){let n=ze(e.getParentInputType());if(!D(n))return yr(e,t),!1},ObjectValue(t){let n=N(e.getInputType());if(!j(n))return yr(e,t),!1;let r=Ke(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&pe(i)){let r=I(i.type);e.reportError(new L(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&br(e,t,n,r)},ObjectField(t){let n=N(e.getParentInputType());if(!e.getInputType()&&j(n)){let r=i(t.name.value,Object.keys(n.getFields()));e.reportError(new L(`Field "${t.name.value}" is not defined by type "${n.name}".`+tt(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();gt(n)&&e.reportError(new L(`Expected value of type "${I(n)}", found ${C(t)}.`,{nodes:t}))},EnumValue:t=>yr(e,t),IntValue:t=>yr(e,t),FloatValue:t=>yr(e,t),StringValue:t=>yr(e,t),BooleanValue:t=>yr(e,t)}}function yr(e,t){let n=e.getInputType();if(!n)return;let r=N(n);if(x(r))try{if(r.parseLiteral(t,void 0)===void 0){let r=I(n);e.reportError(new L(`Expected value of type "${r}", found ${C(t)}.`,{nodes:t}))}}catch(r){let i=I(n);r instanceof L?e.reportError(r):e.reportError(new L(`Expected value of type "${i}", found ${C(t)}; `+r.message,{nodes:t,originalError:r}))}else{let r=I(n);e.reportError(new L(`Expected value of type "${r}", found ${C(t)}.`,{nodes:t}))}}function br(e,t,n,r){let i=Object.keys(r);if(i.length!==1){e.reportError(new L(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let a=r[i[0]]?.value;a&&a.kind!==z.NULL||e.reportError(new L(`Field "${n.name}.${i[0]}" must be non-null.`,{nodes:[t]}))}function xr(e){return{VariableDefinition(t){let n=Vt(e.getSchema(),t.type);if(n!==void 0&&!P(n)){let n=t.variable.name.value,r=C(t.type);e.reportError(new L(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function Sr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:n,type:i,defaultValue:a,parentType:o}of r){let r=n.name.value,s=t[r];if(s&&i){let t=e.getSchema(),l=Vt(t,s.type);if(l&&!Cr(t,l,s.defaultValue,i,a)){let t=I(l),a=I(i);e.reportError(new L(`Variable "$${r}" of type "${t}" used in position expecting type "${a}".`,{nodes:[s,n]}))}j(o)&&o.isOneOf&&c(l)&&e.reportError(new L(`Variable "$${r}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${o}".`,{nodes:[s,n]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Cr(e,t,n,r,i){if(gt(r)&&!gt(t)){if((n==null||n.kind===z.NULL)&&i===void 0)return!1;let a=r.ofType;return yt(e,t,a)}return yt(e,t,r)}var wr=Object.freeze([mn]),Tr=Object.freeze([Xt,mr,dn,rr,cn,en,xr,Jn,Zt,fr,sn,_n,zn,hn,_r,gn,vn,rn,cr,tn,or,vr,Gn,Sr,Sn,pr,...wr]);Object.freeze([fn,hr,gr,lr,ur,ar,sr,cn,rn,cr,Vn,nn,or,pr,Kn]);var Er=class{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return`ASTValidationContext`}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(let e of this.getDocument().definitions)e.kind===z.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];let n=[e],r;for(;r=n.pop();)for(let e of r.selections)e.kind===z.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];let n=Object.create(null),r=[e.selectionSet],i;for(;i=r.pop();)for(let e of this.getFragmentSpreads(i)){let i=e.name.value;if(n[i]!==!0){n[i]=!0;let e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}},Dr=class extends Er{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return`ValidationContext`}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new Ht(this._schema);ye(e,Wt(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(let n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}},Or=ot(He,e=>e.filter(e=>e!==`description`));function kr(e,t,n=Tr,r,i=new Ht(e)){let a=r?.maxErrors??100;t||Xe(!1,`Must provide document.`),St(e);let o=Object.freeze({}),s=[],c=new Dr(e,t,i,e=>{if(s.length>=a)throw s.push(new L(`Too many validation errors, error limit reached. Validation aborted.`)),o;s.push(e)}),l=ne(n.map(e=>e(c)));try{ye(t,Wt(i,l),Or)}catch(e){if(e!==o)throw e}return s}function Ar(e){return{Field(t){let n=e.getFieldDef(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getParentType();i??Me(!1),e.reportError(new L(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n?.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new L(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),a=e.getFieldDef();i!=null&&a!=null||Me(!1),e.reportError(new L(`Field "${i.name}.${a.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=N(e.getParentInputType());if(j(n)){let r=n.getFields()[t.name.value],i=r?.deprecationReason;i!=null&&e.reportError(new L(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n?.deprecationReason;if(n&&r!=null){let i=N(e.getInputType());i??Me(!1),e.reportError(new L(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function jr(e){let t=Object.keys(e),n=t.length,r=Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function Mr(e,t){return Nr(t,Fr(e.string))}function Nr(e,t){return!t||t.trim()===``||t.trim()===`:`||t.trim()===`{`?Pr(e,e=>!e.isDeprecated):Pr(Pr(e.map(e=>({proximity:Ir(Fr(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>+!!e.entry.isDeprecated-!!t.entry.isDeprecated||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry)}function Pr(e,t){let n=e.filter(t);return n.length===0?e:n}function Fr(e){return e.toLowerCase().replaceAll(/\W/g,``)}function Ir(e,t){let n=Lr(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function Lr(e,t){let n,r,i=[],a=e.length,o=t.length;for(n=0;n<=a;n++)i[n]=[n];for(r=1;r<=o;r++)i[0][r]=r;for(n=1;n<=a;n++)for(r=1;r<=o;r++){let a=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+a),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+a))}return i[a][o]}var Rr=e=>` {\n $${e??1}\n}`,zr=(e,t,n)=>{if(!t)return n??e;let r=N(t);return F(r)||j(r)||D(r)||o(r)?e+Rr():n??e},Br=(e,t,n)=>D(t)?e+`[${zr(``,N(t.ofType),`$1`)}]`:zr(e,t,n),Vr=e=>{let t=e.args.filter(e=>e.type.toString().endsWith(`!`));if(t.length)return e.name+`(${t.map((e,t)=>`${e.name}: $${t+1}`)}) ${zr(``,e.type,`
5
5
  `)}`},Hr;(function(e){function t(e){return typeof e==`string`}e.is=t})(Hr||={});var Ur;(function(e){function t(e){return typeof e==`string`}e.is=t})(Ur||={});var Wr;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Wr||={});var Gr;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Gr||={});var Kr;(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=Gr.MAX_VALUE),t===Number.MAX_VALUE&&(t=Gr.MAX_VALUE),{line:e,character:t}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.uinteger(t.line)&&V.uinteger(t.character)}e.is=n})(Kr||={});var qr;(function(e){function t(e,t,n,r){if(V.uinteger(e)&&V.uinteger(t)&&V.uinteger(n)&&V.uinteger(r))return{start:Kr.create(e,t),end:Kr.create(n,r)};if(Kr.is(e)&&Kr.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&Kr.is(t.start)&&Kr.is(t.end)}e.is=n})(qr||={});var Jr;(function(e){function t(e,t){return{uri:e,range:t}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&qr.is(t.range)&&(V.string(t.uri)||V.undefined(t.uri))}e.is=n})(Jr||={});var Yr;(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&qr.is(t.targetRange)&&V.string(t.targetUri)&&qr.is(t.targetSelectionRange)&&(qr.is(t.originSelectionRange)||V.undefined(t.originSelectionRange))}e.is=n})(Yr||={});var Xr;(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.numberRange(t.red,0,1)&&V.numberRange(t.green,0,1)&&V.numberRange(t.blue,0,1)&&V.numberRange(t.alpha,0,1)}e.is=n})(Xr||={});var Zr;(function(e){function t(e,t){return{range:e,color:t}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&qr.is(t.range)&&Xr.is(t.color)}e.is=n})(Zr||={});var Qr;(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.string(t.label)&&(V.undefined(t.textEdit)||si.is(t.textEdit))&&(V.undefined(t.additionalTextEdits)||V.typedArray(t.additionalTextEdits,si.is))}e.is=n})(Qr||={});var $r;(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})($r||={});var ei;(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return V.defined(n)&&(o.startCharacter=n),V.defined(r)&&(o.endCharacter=r),V.defined(i)&&(o.kind=i),V.defined(a)&&(o.collapsedText=a),o}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.uinteger(t.startLine)&&V.uinteger(t.endLine)&&(V.undefined(t.startCharacter)||V.uinteger(t.startCharacter))&&(V.undefined(t.endCharacter)||V.uinteger(t.endCharacter))&&(V.undefined(t.kind)||V.string(t.kind))}e.is=n})(ei||={});var ti;(function(e){function t(e,t){return{location:e,message:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&Jr.is(t.location)&&V.string(t.message)}e.is=n})(ti||={});var ni;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ni||={});var ri;(function(e){e.Unnecessary=1,e.Deprecated=2})(ri||={});var ii;(function(e){function t(e){let t=e;return V.objectLiteral(t)&&V.string(t.href)}e.is=t})(ii||={});var ai;(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return V.defined(n)&&(o.severity=n),V.defined(r)&&(o.code=r),V.defined(i)&&(o.source=i),V.defined(a)&&(o.relatedInformation=a),o}e.create=t;function n(e){let t=e;return V.defined(t)&&qr.is(t.range)&&(V.string(t.message)||Ci.is(t.message))&&(V.number(t.severity)||V.undefined(t.severity))&&(V.integer(t.code)||V.string(t.code)||V.undefined(t.code))&&(V.undefined(t.codeDescription)||V.string(t.codeDescription?.href))&&(V.string(t.source)||V.undefined(t.source))&&(V.undefined(t.relatedInformation)||V.typedArray(t.relatedInformation,ti.is))}e.is=n;function r(e){return V.string(e.message)}e.is3_17=r;function i(e){if(V.string(e.message))return e.message;if(Ci.is(e.message))return e.message.value;throw Error(`Unknown message type ${typeof e.message}`)}e.getMessageString=i})(ai||={});var oi;(function(e){function t(e,t,...n){let r={title:e,command:t};return V.defined(n)&&n.length>0&&(r.arguments=n),r}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.title)&&(t.tooltip===void 0||V.string(t.tooltip))&&V.string(t.command)}e.is=n})(oi||={});var si;(function(e){function t(e,t){return{range:e,newText:t}}e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}e.insert=n;function r(e){return{range:e,newText:``}}e.del=r;function i(e){let t=e;return V.objectLiteral(t)&&V.string(t.newText)&&qr.is(t.range)}e.is=i})(si||={});var ci;(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&V.string(t.label)&&(V.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(V.string(t.description)||t.description===void 0)}e.is=n})(ci||={});var li;(function(e){function t(e){let t=e;return V.string(t)}e.is=t})(li||={});var ui;(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}e.del=r;function i(e){let t=e;return si.is(t)&&(ci.is(t.annotationId)||li.is(t.annotationId))}e.is=i})(ui||={});var di;(function(e){function t(e,t){return{textDocument:e,edits:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&yi.is(t.textDocument)&&Array.isArray(t.edits)}e.is=n})(di||={});var fi;(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&V.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||V.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||V.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||li.is(t.annotationId))}e.is=n})(fi||={});var pi;(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&V.string(t.oldUri)&&V.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||V.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||V.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||li.is(t.annotationId))}e.is=n})(pi||={});var mi;(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&V.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||V.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||V.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||li.is(t.annotationId))}e.is=n})(mi||={});var hi;(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>V.string(e.kind)?fi.is(e)||pi.is(e)||mi.is(e):di.is(e)))}e.is=t})(hi||={});var gi;(function(e){function t(e){let t=e;return V.objectLiteral(t)&&qr.is(t.range)&&la.isSnippet(t.snippet)&&(t.annotationId===void 0||ci.is(t.annotationId)||li.is(t.annotationId))}e.is=t})(gi||={});var _i;(function(e){function t(e){return{uri:e}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.uri)}e.is=n})(_i||={});var vi;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.uri)&&V.integer(t.version)}e.is=n})(vi||={});var yi;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.uri)&&(t.version===null||V.integer(t.version))}e.is=n})(yi||={});var bi;(function(e){e.ABAP=`abap`,e.WindowsBat=`bat`,e.BibTeX=`bibtex`,e.Clojure=`clojure`,e.Coffeescript=`coffeescript`,e.C=`c`,e.CPP=`cpp`,e.CSharp=`csharp`,e.CSS=`css`,e.D=`d`,e.Delphi=`pascal`,e.Diff=`diff`,e.Dart=`dart`,e.Dockerfile=`dockerfile`,e.Elixir=`elixir`,e.Erlang=`erlang`,e.FSharp=`fsharp`,e.GitCommit=`git-commit`,e.GitRebase=`git-rebase`,e.Go=`go`,e.Groovy=`groovy`,e.Handlebars=`handlebars`,e.Haskell=`haskell`,e.HTML=`html`,e.Ini=`ini`,e.Java=`java`,e.JavaScript=`javascript`,e.JavaScriptReact=`javascriptreact`,e.JSON=`json`,e.LaTeX=`latex`,e.Less=`less`,e.Lua=`lua`,e.Makefile=`makefile`,e.Markdown=`markdown`,e.ObjectiveC=`objective-c`,e.ObjectiveCPP=`objective-cpp`,e.Pascal=`pascal`,e.Perl=`perl`,e.Perl6=`perl6`,e.PHP=`php`,e.Plaintext=`plaintext`,e.Powershell=`powershell`,e.Pug=`jade`,e.Python=`python`,e.R=`r`,e.Razor=`razor`,e.Ruby=`ruby`,e.Rust=`rust`,e.SCSS=`scss`,e.SASS=`sass`,e.Scala=`scala`,e.ShaderLab=`shaderlab`,e.ShellScript=`shellscript`,e.SQL=`sql`,e.Swift=`swift`,e.TypeScript=`typescript`,e.TypeScriptReact=`typescriptreact`,e.TeX=`tex`,e.VisualBasic=`vb`,e.XML=`xml`,e.XSL=`xsl`,e.YAML=`yaml`})(bi||={});var xi;(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.string(t.uri)&&V.string(t.languageId)&&V.integer(t.version)&&V.string(t.text)}e.is=n})(xi||={});var Si;(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}e.is=t})(Si||={});var Ci;(function(e){function t(e){let t=e;return V.objectLiteral(e)&&Si.is(t.kind)&&V.string(t.value)}e.is=t})(Ci||={});var wi;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(wi||={});var Ti;(function(e){e.PlainText=1,e.Snippet=2})(Ti||={});var Ei;(function(e){e.Deprecated=1})(Ei||={});var Di;(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}e.create=t;function n(e){let t=e;return t&&V.string(t.newText)&&qr.is(t.insert)&&qr.is(t.replace)}e.is=n})(Di||={});var Oi;(function(e){e.asIs=1,e.adjustIndentation=2})(Oi||={});var ki;(function(e){e.Replace=1,e.Merge=2})(ki||={});var Ai;(function(e){function t(e){let t=e;return t&&(V.string(t.detail)||t.detail===void 0)&&(V.string(t.description)||t.description===void 0)}e.is=t})(Ai||={});var ji;(function(e){function t(e){return{label:e}}e.create=t})(ji||={});var Mi;(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}e.create=t})(Mi||={});var Ni;(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}e.fromPlainText=t;function n(e){let t=e;return V.string(t)||V.objectLiteral(t)&&V.string(t.language)&&V.string(t.value)}e.is=n})(Ni||={});var Pi;(function(e){function t(e){let t=e;return!!t&&V.objectLiteral(t)&&(Ci.is(t.contents)||Ni.is(t.contents)||V.typedArray(t.contents,Ni.is))&&(e.range===void 0||qr.is(e.range))}e.is=t})(Pi||={});var Fi;(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}e.create=t})(Fi||={});var Ii;(function(e){function t(e,t,...n){let r={label:e};return V.defined(t)&&(r.documentation=t),r.parameters=V.defined(n)?n:[],r}e.create=t})(Ii||={});var Li;(function(e){e.Text=1,e.Read=2,e.Write=3})(Li||={});var Ri;(function(e){function t(e,t){let n={range:e};return V.number(t)&&(n.kind=t),n}e.create=t})(Ri||={});var zi;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(zi||={});var Bi;(function(e){e.Deprecated=1})(Bi||={});var Vi;(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}e.create=t})(Vi||={});var Hi;(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}e.create=t})(Hi||={});var Ui;(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}e.create=t;function n(e){let t=e;return t&&V.string(t.name)&&V.number(t.kind)&&qr.is(t.range)&&qr.is(t.selectionRange)&&(t.detail===void 0||V.string(t.detail))&&(t.deprecated===void 0||V.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=n})(Ui||={});var Wi;(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorMove=`refactor.move`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`,e.Notebook=`notebook`})(Wi||={});var Gi;(function(e){e.Invoked=1,e.Automatic=2})(Gi||={});var Ki;(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}e.create=t;function n(e){let t=e;return V.defined(t)&&V.typedArray(t.diagnostics,ai.is)&&(t.only===void 0||V.typedArray(t.only,V.string))&&(t.triggerKind===void 0||t.triggerKind===Gi.Invoked||t.triggerKind===Gi.Automatic)}e.is=n})(Ki||={});var qi;(function(e){e.LLMGenerated=1;function t(t){return V.defined(t)&&t===e.LLMGenerated}e.is=t})(qi||={});var Ji;(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):oi.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return t&&V.string(t.title)&&(t.diagnostics===void 0||V.typedArray(t.diagnostics,ai.is))&&(t.kind===void 0||V.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||oi.is(t.command))&&(t.isPreferred===void 0||V.boolean(t.isPreferred))&&(t.edit===void 0||hi.is(t.edit))&&(t.tags===void 0||V.typedArray(t.tags,qi.is))}e.is=n})(Ji||={});var Yi;(function(e){function t(e,t){let n={range:e};return V.defined(t)&&(n.data=t),n}e.create=t;function n(e){let t=e;return V.defined(t)&&qr.is(t.range)&&(V.undefined(t.command)||oi.is(t.command))}e.is=n})(Yi||={});var Xi;(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&V.uinteger(t.tabSize)&&V.boolean(t.insertSpaces)}e.is=n})(Xi||={});var Zi;(function(e){function t(e,t,n){return{range:e,target:t,data:n}}e.create=t;function n(e){let t=e;return V.defined(t)&&qr.is(t.range)&&(V.undefined(t.target)||V.string(t.target))}e.is=n})(Zi||={});var Qi;(function(e){function t(e,t){return{range:e,parent:t}}e.create=t;function n(t){let n=t;return V.objectLiteral(n)&&qr.is(n.range)&&(n.parent===void 0||e.is(n.parent))}e.is=n})(Qi||={});var $i;(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`,e.label=`label`})($i||={});var ea;(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(ea||={});var ta;(function(e){function t(e){let t=e;return V.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}e.is=t})(ta||={});var na;(function(e){function t(e,t){return{range:e,text:t}}e.create=t;function n(e){let t=e;return t!=null&&qr.is(t.range)&&V.string(t.text)}e.is=n})(na||={});var ra;(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}e.create=t;function n(e){let t=e;return t!=null&&qr.is(t.range)&&V.boolean(t.caseSensitiveLookup)&&(V.string(t.variableName)||t.variableName===void 0)}e.is=n})(ra||={});var ia;(function(e){function t(e,t){return{range:e,expression:t}}e.create=t;function n(e){let t=e;return t!=null&&qr.is(t.range)&&(V.string(t.expression)||t.expression===void 0)}e.is=n})(ia||={});var aa;(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}e.create=t;function n(e){let t=e;return V.defined(t)&&qr.is(e.stoppedLocation)}e.is=n})(aa||={});var oa;(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}e.is=t})(oa||={});var sa;(function(e){function t(e){return{value:e}}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&(t.tooltip===void 0||V.string(t.tooltip)||Ci.is(t.tooltip))&&(t.location===void 0||Jr.is(t.location))&&(t.command===void 0||oi.is(t.command))}e.is=n})(sa||={});var ca;(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}e.create=t;function n(e){let t=e;return V.objectLiteral(t)&&Kr.is(t.position)&&(V.string(t.label)||V.typedArray(t.label,sa.is))&&(t.kind===void 0||oa.is(t.kind))&&t.textEdits===void 0||V.typedArray(t.textEdits,si.is)&&(t.tooltip===void 0||V.string(t.tooltip)||Ci.is(t.tooltip))&&(t.paddingLeft===void 0||V.boolean(t.paddingLeft))&&(t.paddingRight===void 0||V.boolean(t.paddingRight))}e.is=n})(ca||={});var la;(function(e){function t(e){return{kind:`snippet`,value:e}}e.createSnippet=t;function n(e){let t=e;return V.objectLiteral(t)&&t.kind===`snippet`&&V.string(t.value)}e.isSnippet=n})(la||={});var ua;(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}e.create=t})(ua||={});var da;(function(e){function t(e){return{items:e}}e.create=t})(da||={});var fa;(function(e){e.Invoked=1,e.Automatic=2})(fa||={});var pa;(function(e){function t(e,t){return{range:e,text:t}}e.create=t})(pa||={});var ma;(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}e.create=t})(ma||={});var ha;(function(e){function t(e){let t=e;return V.objectLiteral(t)&&Ur.is(t.uri)&&V.string(t.name)}e.is=t})(ha||={});var ga;(function(e){function t(e,t,n,r){return new _a(e,t,n,r)}e.create=t;function n(e){let t=e;return!!(V.defined(t)&&V.string(t.uri)&&(V.undefined(t.languageId)||V.string(t.languageId))&&V.uinteger(t.lineCount)&&V.func(t.getText)&&V.func(t.positionAt)&&V.func(t.offsetAt))}e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,c=0;for(;o<r.length&&s<a.length;)t(r[o],a[s])<=0?e[c++]=r[o++]:e[c++]=a[s++];for(;o<r.length;)e[c++]=r[o++];for(;s<a.length;)e[c++]=a[s++];return e}})(ga||={});var _a=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&=(e.push(r),!1);let i=t.charAt(r);n=i===`\r`||i===`
@@ -28,7 +28,7 @@ $1`:e.name,insertTextMode:Oi.adjustIndentation,insertTextFormat:Ti.Snippet}))):m
28
28
  `:`>`,i},Ol.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r},Ol.prototype.renderInlineAsText=function(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
29
29
  `}return r},Ol.prototype.render=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t,n):r+=i[o](e,a,t,n,this)}return r};function kl(){this.__rules__=[],this.__cache__=null}kl.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},kl.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},kl.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},kl.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},kl.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},kl.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},kl.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},kl.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},kl.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},kl.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Al(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}Al.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},Al.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Al.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},Al.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},Al.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function jl(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}jl.prototype.Token=Al;var Ml=/\r\n?|\n/g,Nl=/\0/g;function Pl(e){let t;t=e.src.replace(Ml,`
30
30
  `),t=t.replace(Nl,`�`),e.src=t}function Fl(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Il(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Ll(e){return/^<a[>\s]/i.test(e)}function Rl(e){return/^<\/a\s*>/i.test(e)}function zl(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=[],a=0;for(let t=r.length-1;t>=0;t--){let n=r[t];if(n.type===`link_close`)for(t--;r[t].level!==n.level&&r[t].type!==`link_open`;)t--;else if(n.type===`html_inline`&&(Ll(n.content)&&a>0&&a--,Rl(n.content)&&a++),!(a>0)&&n.type===`text`&&e.md.linkify.test(n.content)){let a=n.content,o=e.md.linkify.match(a),s=[],c=n.level,l=0;o.length>0&&o[0].index===0&&t>0&&r[t-1].type===`text_special`&&(o=o.slice(1));for(let t=0;t<o.length;t++){let n=o[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let i=o[t].text;i=o[t].schema?o[t].schema===`mailto:`&&!/^mailto:/i.test(i)?e.md.normalizeLinkText(`mailto:`+i).replace(/^mailto:/,``):e.md.normalizeLinkText(i):e.md.normalizeLinkText(`http://`+i).replace(/^http:\/\//,``);let u=o[t].index;if(u>l){let t=new e.Token(`text`,``,0);t.content=a.slice(l,u),t.level=c,s.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=c++,d.markup=`linkify`,d.info=`auto`,s.push(d);let f=new e.Token(`text`,``,0);f.content=i,f.level=c,s.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--c,p.markup=`linkify`,p.info=`auto`,s.push(p),l=o[t].lastIndex}if(l<a.length){let t=new e.Token(`text`,``,0);t.content=a.slice(l),t.level=c,s.push(t)}i.push({index:t,nodes:s})}}if(i.length>0){let e=r.length;for(let t of i)e+=t.nodes.length-1;let a=Array(e),o=0,s=0;i.reverse();for(let e=0;e<r.length;e++){let t=i[o];if(t?.index===e){for(let e of t.nodes)a[s++]=e;o++}else a[s++]=r[e]}t[n].children=a}}}var Bl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Vl=/\((c|tm|r)\)/i,Hl=/\((c|tm|r)\)/gi,Ul={c:`©`,r:`®`,tm:`™`};function Wl(e,t){return Ul[t.toLowerCase()]}function Gl(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(Hl,Wl)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Kl(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&Bl.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function ql(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(Vl.test(e.tokens[t].content)&&Gl(e.tokens[t].children),Bl.test(e.tokens[t].content)&&Kl(e.tokens[t].children))}var Jl=/['"]/,Yl=/['"]/g,Xl=`’`,Zl=1e3;function Ql(e,t,n){for(;e.length>n;){let n=e.pop();n.isSingleQuote?t.single=n.prevSameQuoteIdx:t.double=n.prevSameQuoteIdx}}function $l(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function eu(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let a=t[i];n+=e.slice(r,a.pos)+a.ch,r=a.pos+1}return n+e.slice(r)}function tu(e,t){let n,r=[],i={single:-1,double:-1},a={};for(let o=0;o<e.length;o++){let s=e[o],c=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=c);n--);if(Ql(r,i,n+1),s.type!==`text`)continue;let l=s.content,u=0,d=l.length;OUTER:for(;u<d;){Yl.lastIndex=u;let s=Yl.exec(l);if(!s)break;let f=!0,p=!0;u=s.index+1;let m=s[0]===`'`,h=32;if(s.index-1>=0)h=l.charCodeAt(s.index-1);else for(n=o-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(u<d)g=l.charCodeAt(u);else for(n=o+1;n<e.length&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n++)if(e[n].content){g=e[n].content.charCodeAt(0);break}let _=vl(h)||_l(h),v=vl(g)||_l(g),y=hl(h),b=hl(g);if(b?f=!1:v&&(y||_||(f=!1)),y?p=!1:_&&(b||v||(p=!1)),g===34&&s[0]===`"`&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=_,p=v),!f&&!p)m&&$l(a,o,s.index,Xl);else{if(p&&(n=m?i.single:i.double,n>=0&&r[n].level===c)){let e=r[n],c,l;m?(c=t.md.options.quotes[2],l=t.md.options.quotes[3]):(c=t.md.options.quotes[0],l=t.md.options.quotes[1]),$l(a,o,s.index,l),$l(a,e.tokenIdx,e.contentPos,c),Ql(r,i,n);continue OUTER}if(f){if(r.length>=Zl)return;r.push({tokenIdx:o,contentPos:s.index,isSingleQuote:m,level:c,prevSameQuoteIdx:m?i.single:i.double}),m?i.single=r.length-1:i.double=r.length-1}else p&&m&&$l(a,o,s.index,Xl)}}}Object.keys(a).forEach(function(t){e[t].content=eu(e[t].content,a[t])})}function nu(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&Jl.test(e.tokens[t].content)&&tu(e.tokens[t].children,e)}function ru(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var iu=[[`normalize`,Pl],[`block`,Fl],[`inline`,Il],[`linkify`,zl],[`replacements`,ql],[`smartquotes`,nu],[`text_join`,ru]];function au(){this.ruler=new kl;for(let e=0;e<iu.length;e++)this.ruler.push(iu[e][0],iu[e][1])}au.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)},au.prototype.State=jl;function ou(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o){if(ml(s)){n++,s===9?r+=4-r%4:r++;continue}o=!0}(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ou.prototype.push=function(e,t,n){let r=new Al(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ou.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ou.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ou.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&ml(this.src.charCodeAt(e));e++);return e},ou.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!ml(this.src.charCodeAt(--e)))return e+1;return e},ou.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},ou.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},ou.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(ml(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},ou.prototype.Token=Al;var su=65536;function cu(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function lu(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function uu(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!ml(s)||o===45&&ml(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!ml(t))return!1;a++}let c=cu(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=cu(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=lu(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=cu(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=lu(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>su))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function du(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;)if(e.isEmpty(r))r++;else if(e.sCount[r]-e.blkIndent>=4)r++,i=r;else break;e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
31
- `,a.map=[t,e.line],!0}function fu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function pu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(ml(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function mu(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!ml(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function hu(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!ml(e.src.charCodeAt(r))?-1:r}function gu(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!ml(a))?-1:i}function _u(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function vu(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=gu(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=hu(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=gu(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=hu(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&_u(e,h),!0}var yu=999;function bu(e){let t=e.length;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n);if(r<55296||r>56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function xu(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function Su(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return-1}return e.bMarks[t]+e.tShift[t]}function Cu(e,t,n,r){let i=e.src,a=e.bMarks[t]+e.tShift[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||i.charCodeAt(a)!==91)return!1;let s=xu(e,t),c=``,l=-1,u=++a;for(;a<s;){if(c.length+a-u>yu*2)return!1;let t=i.charCodeAt(a);if(t===91)return!1;if(t===93){l=a;break}if(t===92&&(t=i.charCodeAt(++a)),t===10&&a<s){let t=Su(e,o);if(t<0)return!1;c+=i.slice(u,s),a=u=t,s=xu(e,o++)}else a++}if(l<0||i.charCodeAt(l+1)!==58||(c+=i.slice(u,l),c.length>yu&&bu(c)>yu))return!1;for(a=l+2;a<s;){let t=i.charCodeAt(a);if(t===10){let t=Su(e,o);if(t<0)break;a=t,s=xu(e,o++)}else if(ml(t))a++;else break}let d=e.md.helpers.parseLinkDestination(i,a,s);if(!d.ok)return!1;let f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;a=d.pos;let p=a,m=s,h=o;for(;a<s;){let t=i.charCodeAt(a);if(t===10){let t=Su(e,o);if(t<0)break;a=t,s=xu(e,o++)}else if(ml(t))a++;else break}let g=a,_=e.md.helpers.parseLinkTitle(i,a,s);for(;_.can_continue;){let t=Su(e,o);if(t<0)break;a=t,s=xu(e,o++),_=e.md.helpers.parseLinkTitle(i,a,s,_)}let v;for(g!==p&&_.ok?(v=_.str,a=_.pos):(v=``,a=p,s=m,o=h);a<s&&ml(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10&&v)for(v=``,a=p,s=m,o=h;a<s&&ml(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10)return!1;let y=yl(c);return y?(r||(e.env.references===void 0&&(e.env.references={}),e.env.references[y]===void 0&&(e.env.references[y]={title:v,href:f}),e.line=o),!0):!1}var wu=`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`.split(`.`),Tu=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Eu=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`;RegExp(`^(?:`+Tu+`|`+Eu+`|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);var Du=RegExp(`^(?:`+Tu+`|`+Eu+`)`),Ou=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+wu.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Du.source+`\\s*$`),/^$/,!1]];function ku(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Ou.length&&!Ou[s][0].test(o);s++);if(s===Ou.length)return!1;if(r)return Ou[s][2];let c=t+1,l=Ou[s][1].test(``);if(!Ou[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Ou[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Au(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!ml(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&ml(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=xl(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function ju(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=xl(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function Mu(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=xl(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var Nu=[[`table`,uu,[`paragraph`,`reference`]],[`code`,du],[`fence`,fu,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,pu,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,mu,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,vu,[`paragraph`,`reference`,`blockquote`]],[`reference`,Cu],[`html_block`,ku,[`paragraph`,`reference`,`blockquote`]],[`heading`,Au,[`paragraph`,`reference`,`blockquote`]],[`lheading`,ju],[`paragraph`,Mu]];function Pu(){this.ruler=new kl;for(let e=0;e<Nu.length;e++)this.ruler.push(Nu[e][0],Nu[e][1],{alt:(Nu[e][2]||[]).slice()})}Pu.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Pu.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Pu.prototype.State=ou;function Fu(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.skipHtmlSpecial=!1,this.linkLevel=0}Fu.prototype.pushPending=function(){let e=new Al(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},Fu.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new Al(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Fu.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=vl(i)||_l(i),l=vl(s)||_l(s),u=hl(i),d=hl(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},Fu.prototype.Token=Al;function Iu(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Lu(e,t){let n=e.pos;for(;n<e.posMax&&!Iu(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function Ru(e){return e>=65&&e<=90||e>=97&&e<=122}function zu(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function Bu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&zu(e.src.charCodeAt(a-1));)a--;if(a===n||!Ru(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function Vu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&ml(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Hu=[];for(let e=0;e<256;e++)Hu.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){Hu[e.charCodeAt(0)]=1});function Uu(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),ml(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&Hu[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function Wu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function Gu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Ku(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function qu(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ku(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ku(e,t[r].delimiters)}var Ju={tokenize:Gu,postProcess:qu};function Yu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Xu(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Zu(e){let t=e.tokens_meta,n=e.tokens_meta.length;Xu(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Xu(e,t[r].delimiters)}var Qu={tokenize:Yu,postProcess:Zu};function $u(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),ml(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),ml(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),ml(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[yl(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function ed(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),ml(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),ml(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),ml(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[yl(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var td=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,nd=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function rd(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(nd.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(td.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function id(e){return/^<a[>\s]/i.test(e)}function ad(e){return/^<\/a\s*>/i.test(e)}function od(e){let t=e|32;return t>=97&&t<=122}function sd(e,t){let n=e.src,r,i;if(n.startsWith(`<!--`,t)){if(n.startsWith(`>`,t+4))return t+5;if(n.startsWith(`->`,t+4))return t+6;r=t+4,i=`-->`}else if(n.startsWith(`<![CDATA[`,t))r=t+9,i=`]]>`;else if(n.charCodeAt(t+1)===63)r=t+2,i=`?>`;else if(od(n.charCodeAt(t+2)))r=t+3,i=`>`;else return-1;if(e.skipHtmlSpecial)return-1;let a=n.indexOf(i,r);return a<0?(e.skipHtmlSpecial=!0,-1):a+i.length}function cd(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,a=e.src.charCodeAt(r+1);if(a===33||a===63)i=sd(e,r);else if(a===47||od(a)){let t=e.src.slice(r).match(Du);i=t?r+t[0].length:-1}else return!1;if(i<0)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=e.src.slice(r,i),id(t.content)&&e.linkLevel++,ad(t.content)&&e.linkLevel--}return e.pos=i,!0}var ld=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ud=/^&([a-z][a-z0-9]{1,31});/i;function dd(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(ld);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=$c(t)?el(t):el(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(ud);if(r){let n=Gc(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function fd(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function pd(e){let t=e.tokens_meta,n=e.tokens_meta.length;fd(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&fd(t[e].delimiters)}function md(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var hd=[[`text`,Lu],[`linkify`,Bu],[`newline`,Vu],[`escape`,Uu],[`backticks`,Wu],[`strikethrough`,Ju.tokenize],[`emphasis`,Qu.tokenize],[`link`,$u],[`image`,ed],[`autolink`,rd],[`html_inline`,cd],[`entity`,dd]],gd=[[`balance_pairs`,pd],[`strikethrough`,Ju.postProcess],[`emphasis`,Qu.postProcess],[`fragments_join`,md]];function _d(){this.ruler=new kl;for(let e=0;e<hd.length;e++)this.ruler.push(hd[e][0],hd[e][1]);this.ruler2=new kl;for(let e=0;e<gd.length;e++)this.ruler2.push(gd[e][0],gd[e][1])}_d.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},_d.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},_d.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},_d.prototype.State=Fu;function vd(e){let t={};e||={},t.src_Any=yc.source,t.src_Cc=bc.source,t.src_Z=wc.source,t.src_P=Sc.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function yd(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function bd(e){return Object.prototype.toString.call(e)}function xd(e){return bd(e)===`[object String]`}function Sd(e){return bd(e)===`[object Object]`}function Cd(e){return bd(e)===`[object RegExp]`}function wd(e){return bd(e)===`[object Function]`}function Td(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Ed={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Dd(e){return Object.keys(e||{}).reduce(function(e,t){return e||Ed.hasOwnProperty(t)},!1)}var Od={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},kd=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Ad=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function jd(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Md(){return function(e,t){t.normalize(e)}}function Nd(e){let t=e.re=vd(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(kd),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};e.__compiled__[t]=r,Sd(n)?(Cd(n.validate)?r.validate=jd(n.validate):wd(n.validate)?r.validate=n.validate:a(t,n),wd(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=Md()):xd(n)?i.push(t):a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:Md()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Td).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function Pd(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function Fd(e,t){if(!(this instanceof Fd))return new Fd(e,t);t||Dd(e)&&(t=e,e={}),this.__opts__=yd({},Ed,t),this.__schemas__=yd({},Od,e),this.__compiled__={},this.__tlds__=Ad,this.__tlds_replaced__=!1,this.re={},Nd(this)}Fd.prototype.add=function(e,t){return this.__schemas__[e]=t,Nd(this),this},Fd.prototype.set=function(e){return this.__opts__=yd(this.__opts__,e),this},Fd.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},Fd.prototype.pretest=function(e){return this.re.pretest.test(e)},Fd.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Fd.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new Pd(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},Fd.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Pd(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},Fd.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Nd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Nd(this),this)},Fd.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},Fd.prototype.onCompile=function(){};var Id=2147483647,Ld=36,Rd=1,zd=26,Bd=38,Vd=700,Hd=72,Ud=128,Wd=`-`,Gd=/^xn--/,Kd=/[^\0-\x7F]/,qd=/[\x2E\u3002\uFF0E\uFF61]/g,Jd={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},Yd=35,Xd=Math.floor,Zd=String.fromCharCode;function Qd(e){throw RangeError(Jd[e])}function $d(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function ef(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(qd,`.`);let i=$d(e.split(`.`),t).join(`.`);return r+i}function tf(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var nf=e=>String.fromCodePoint(...e),rf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ld},af=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},of=function(e,t,n){let r=0;for(e=n?Xd(e/Vd):e>>1,e+=Xd(e/t);e>455;r+=Ld)e=Xd(e/Yd);return Xd(r+36*e/(e+Bd))},sf=function(e){let t=[],n=e.length,r=0,i=Ud,a=Hd,o=e.lastIndexOf(Wd);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Qd(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Ld;;i+=Ld){s>=n&&Qd(`invalid-input`);let o=rf(e.charCodeAt(s++));o>=Ld&&Qd(`invalid-input`),o>Xd((Id-r)/t)&&Qd(`overflow`),r+=o*t;let c=i<=a?Rd:i>=a+zd?zd:i-a;if(o<c)break;let l=Ld-c;t>Xd(Id/l)&&Qd(`overflow`),t*=l}let c=t.length+1;a=of(r-o,c,o==0),Xd(r/c)>Id-i&&Qd(`overflow`),i+=Xd(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},cf=function(e){let t=[];e=tf(e);let n=e.length,r=Ud,i=0,a=Hd;for(let n of e)n<128&&t.push(Zd(n));let o=t.length,s=o;for(o&&t.push(Wd);s<n;){let n=Id;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>Xd((Id-i)/c)&&Qd(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Id&&Qd(`overflow`),n===r){let e=i;for(let n=Ld;;n+=Ld){let r=n<=a?Rd:n>=a+zd?zd:n-a;if(e<r)break;let i=e-r,o=Ld-r;t.push(Zd(af(r+i%o,0))),e=Xd(i/o)}t.push(Zd(af(e,0))),a=of(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},lf={version:`2.3.1`,ucs2:{decode:tf,encode:nf},decode:sf,encode:cf,toASCII:function(e){return ef(e,function(e){return Kd.test(e)?`xn--`+cf(e):e})},toUnicode:function(e){return ef(e,function(e){return Gd.test(e)?sf(e.slice(4).toLowerCase()):e})}},uf={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},df=/^(vbscript|javascript|file|data):/,ff=/^data:image\/(gif|png|jpeg|webp);/;function pf(e){let t=e.trim().toLowerCase();return!df.test(t)||ff.test(t)}var mf=[`http:`,`https:`,`mailto:`];function hf(e){let t=_c(e,!0);if(t.hostname&&(!t.protocol||mf.indexOf(t.protocol)>=0))try{t.hostname=lf.toASCII(t.hostname)}catch{}return ic(ac(t))}function gf(e){let t=_c(e,!0);if(t.hostname&&(!t.protocol||mf.indexOf(t.protocol)>=0))try{t.hostname=lf.toUnicode(t.hostname)}catch{}return tc(ac(t),tc.defaultChars+`%`)}function _f(e,t){if(!(this instanceof _f))return new _f(e,t);t||Jc(e)||(t=e||{},e=`default`),this.inline=new _d,this.block=new Pu,this.core=new au,this.renderer=new Ol,this.linkify=new Fd,this.validateLink=pf,this.normalizeLink=hf,this.normalizeLinkText=gf,this.utils=Kc,this.helpers=Zc({},El),this.options={},this.configure(e),t&&this.set(t)}_f.prototype.set=function(e){return Zc(this.options,e),this},_f.prototype.configure=function(e){let t=this;if(Jc(e)){let t=e;if(e=uf[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},_f.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},_f.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},_f.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},_f.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},_f.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},_f.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},_f.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var vf=new _f({breaks:!1,linkify:!0});function yf(e,t,{schema:n,setSchemaReference:r},i,a){Vs([],{useCommonAddons:!1}).then(e=>{let n,r,i,a,s,c,l,u,d;e.on(t,`select`,(e,t)=>{if(!n){let e=t.parentNode;n=document.createElement(`div`),n.className=`CodeMirror-hint-information`,e.append(n);let f=document.createElement(`header`);f.className=`CodeMirror-hint-information-header`,n.append(f),r=document.createElement(`span`),r.className=`CodeMirror-hint-information-field-name`,f.append(r),i=document.createElement(`span`),i.className=`CodeMirror-hint-information-type-name-pill`,f.append(i),a=document.createElement(`span`),i.append(a),s=document.createElement(`a`),s.className=`CodeMirror-hint-information-type-name`,s.href=`javascript:void 0`,s.addEventListener(`click`,o),i.append(s),c=document.createElement(`span`),i.append(c),l=document.createElement(`div`),l.className=`CodeMirror-hint-information-description`,n.append(l),u=document.createElement(`div`),u.className=`CodeMirror-hint-information-deprecation`,n.append(u);let p=document.createElement(`span`);p.className=`CodeMirror-hint-information-deprecation-label`,p.textContent=`Deprecated`,u.append(p),d=document.createElement(`div`),d.className=`CodeMirror-hint-information-deprecation-reason`,u.append(d);let m=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,``),10)||0,h=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,``),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+m+`px`,n.style.maxHeight=e.scrollTop+h+`px`)};e.addEventListener(`scroll`,g);let _;e.addEventListener(`DOMNodeRemoved`,_=t=>{t.target===e&&(e.removeEventListener(`scroll`,g),e.removeEventListener(`DOMNodeRemoved`,_),n?.removeEventListener(`click`,o),n=null,r=null,i=null,a=null,s=null,c=null,l=null,u=null,d=null,_=null)})}if(r&&(r.textContent=e.text),i&&a&&s&&c){if(e.type){i.style.display=`inline`;let t=e=>{gt(e)?(c.textContent=`!`+c.textContent,t(e.ofType)):D(e)?(a.textContent+=`[`,c.textContent=`]`+c.textContent,t(e.ofType)):s.textContent=e.name};a.textContent=``,c.textContent=``,t(e.type)}else a.textContent=``,s.textContent=``,c.textContent=``,i.style.display=`none`}l&&(e.description?(l.style.display=`block`,l.innerHTML=vf.render(e.description)):(l.style.display=`none`,l.innerHTML=``)),u&&d&&(e.deprecationReason?(u.style.display=`block`,d.innerHTML=vf.render(e.deprecationReason)):(u.style.display=`none`,d.innerHTML=``))})});function o(e){let t=i?.referencePlugin;if(!n||!t||!(e.currentTarget instanceof HTMLElement))return;let o=e.currentTarget.textContent||``,s=n.getType(o);s&&(i.setVisiblePlugin(t),r({kind:`Type`,type:s}),a?.(s))}}function bf(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}var xf=t(Us());function Sf(e,t){let n=(0,J.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&typeof t==`string`&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,q.useEffect)(r,i)}function Cf(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e?.setOption(t,n)},a=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function wf(e,t,n,r,i){let a=(0,J.c)(9),o;a[0]===i?o=a[1]:(o={nonNull:!0,caller:i},a[0]=i,a[1]=o);let{updateActiveTabValues:s}=Np(o),c,l;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==r||a[6]!==s?(c=()=>{if(!e)return;let{storage:i}=js.getState(),a=bf(500,e=>{n!==null&&i.set(n,e)}),o=bf(100,e=>{s({[r]:e})}),c=(e,n)=>{if(!n)return;let r=e.getValue();a(r),o(r),t?.(r)};return e.on(`change`,c),()=>e.off(`change`,c)},l=[t,e,n,r,s],a[2]=t,a[3]=e,a[4]=n,a[5]=r,a[6]=s,a[7]=c,a[8]=l):(c=a[7],l=a[8]),(0,q.useEffect)(c,l)}function Tf(e,t){let n=(0,J.c)(7),{schema:r,setSchemaReference:i}=Ys(),a=Ks(),o,s;n[0]!==t||n[1]!==e||n[2]!==a||n[3]!==r||n[4]!==i?(o=()=>{if(!e)return;let n=(e,n)=>{yf(e,n,{schema:r,setSchemaReference:i},a,e=>{t?.({kind:`Type`,type:e,schema:r||void 0})})};return e.on(`hasCompletion`,n),()=>e.off(`hasCompletion`,n)},s=[t,e,a,r,i],n[0]=t,n[1]=e,n[2]=a,n[3]=r,n[4]=i,n[5]=o,n[6]=s):(o=n[5],s=n[6]),(0,q.useEffect)(o,s)}function Ef(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(let n of t)e.removeKeyMap(n);if(n){let r={};for(let e of t)r[e]=()=>n();e.addKeyMap(r)}}},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}var Df=jf,Of=Mf,kf=Pf,Af=Ff;function jf(e){let t=(0,J.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onCopyQuery:i}=n,a=r||Df,o;t[2]===a?o=t[3]:(o={nonNull:!0,caller:a},t[2]=a,t[3]=o);let{queryEditor:s}=Np(o),c;return t[4]!==i||t[5]!==s?(c=()=>{if(!s)return;let e=s.getValue();(0,xf.default)(e),i?.(e)},t[4]=i,t[5]=s,t[6]=c):c=t[6],c}function Mf(e){let t=(0,J.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r}=n,i=r||Of,a;t[2]===i?a=t[3]:(a={nonNull:!0,caller:i},t[2]=i,t[3]=a);let{queryEditor:o}=Np(a),{schema:s}=Ys(),c;return t[4]!==o||t[5]!==s?(c=()=>{let e=o?.documentAST,t=o?.getValue();e&&t&&o.setValue(C(hs(e,s)))},t[4]=o,t[5]=s,t[6]=c):c=t[6],c}function Nf(e){return C(Ie(e))}function Pf(e){let t=(0,J.c)(9),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onPrettifyQuery:i}=n,a=i===void 0?Nf:i,o=r||kf,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c,headerEditor:l,variableEditor:u}=Np(s),d;return t[4]!==l||t[5]!==a||t[6]!==c||t[7]!==u?(d=async()=>{if(u){let e=u.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch{}}if(l){let e=l.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&l.setValue(t)}catch{}}if(c){let e=c.getValue();try{let t=await a(e);t!==e&&c.setValue(t)}catch{}}},t[4]=l,t[5]=a,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}function Ff(e){let t=(0,J.c)(8),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{getDefaultFieldNames:r,caller:i}=n,{schema:a}=Ys(),o=i||Af,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c}=Np(s),l;return t[4]!==r||t[5]!==c||t[6]!==a?(l=()=>{if(!c)return;let e=c.getValue(),{insertions:t,result:n}=ss(a,e,r);return t&&t.length>0&&c.operation(()=>{let e=c.getCursor(),r=c.indexFromPos(e);c.setValue(n||``);let i=0,a=t.map(e=>{let{index:t,string:n}=e;return i+=n.length,c.markText(c.posFromIndex(t+i),c.posFromIndex(t+i),{className:`auto-inserted-leaf`,clearOnEnter:!0,title:`Automatically added leaf fields`})});setTimeout(()=>{for(let e of a)e.clear()},7e3);let o=r;for(let{index:e,string:n}of t)e<r&&(o+=n.length);c.setCursor(c.posFromIndex(o))}),n},t[4]=r,t[5]=c,t[6]=a,t[7]=l):l=t[7],l}function If(){return Vs([R(()=>import(`./javascript-C5m9swjn.js`).then(e=>t(e.default)),__vite__mapDeps([12,1,0]))])}var Lf=Rf;function Rf(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onEdit:o,readOnly:s}=r,c=i===void 0?Rs:i,l=a===void 0?zs:a,u=s!==void 0&&s,d=t||Lf,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialHeaders:p,headerEditor:m,setHeaderEditor:h,shouldPersistHeaders:g}=Np(f),_=Bp(),v=t||Lf,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=Mf(y),x=t||Lf,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=Pf(S),w=(0,q.useRef)(null),T,E;n[8]!==c||n[9]!==p||n[10]!==u||n[11]!==h?(T=()=>{let e=!0;return If().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:p,lineNumbers:!0,tabSize:2,mode:{name:`javascript`,json:!0},theme:c,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:u?`nocursor`:!1,foldGutter:!0,gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:Bs});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,zf),h(r)}),()=>{e=!1}},E=[c,p,u,h],n[8]=c,n[9]=p,n[10]=u,n[11]=h,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,q.useEffect)(T,E),Cf(m,`keyMap`,l),wf(m,o,g?Bf:null,`headers`,Lf);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Ef(m,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Ef(m,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Ef(m,k,b),w}function zf(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var Bf=`headers`,Vf=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([`\u2028`,`\u2029`,` `,`\xA0`]),Hf=RegExp(`[`+Vf.join(``)+`]`,`g`);function Uf(e){return e.replace(Hf,` `)}function Wf(){return Vs([R(()=>import(`./comment-CYtfOWQV.js`).then(e=>t(e.default)),__vite__mapDeps([13,1,0])),R(()=>import(`./search-dN6Hktna.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,0,8,10])),R(()=>import(`./hint-shPmtVvx.js`),__vite__mapDeps([15,1,0,2])),R(()=>import(`./lint-DQLLf7Nf.js`),__vite__mapDeps([16,1,0])),R(()=>import(`./info-BF6Y0kkd.js`),__vite__mapDeps([17,1,18,19,0,20,21,22])),R(()=>import(`./jump-C8BKE0P7.js`),__vite__mapDeps([23,1,0,20,18,19,21])),R(()=>import(`./mode-B5lCjo6z.js`),__vite__mapDeps([24,1,0,25]))])}var Gf=Xf;function Kf(e,t){e.state.lint.linterOptions.variableToType=t?.variableToType,e.options.lint.variableToType=t?.variableToType,e.options.hintOptions.variableToType=t?.variableToType}function qf(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function Jf(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function Yf(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function Xf(e,t){let n=(0,J.c)(40),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onCopyQuery:s,onEdit:c,onPrettifyQuery:l,readOnly:u}=r,d=i===void 0?Rs:i,f=a===void 0?zs:a,p=u!==void 0&&u,{schema:m,setSchemaReference:h}=Ys(),g=t||Gf,_;n[2]===g?_=n[3]:(_={nonNull:!0,caller:g},n[2]=g,n[3]=_);let{externalFragments:v,initialQuery:y,queryEditor:b,setOperationName:x,setQueryEditor:S,validationRules:C,variableEditor:w,updateActiveTabValues:T}=Np(_),E=Bp(),D=Ps(),O=Ks(),k=t||Gf,A;n[4]!==s||n[5]!==k?(A={caller:k,onCopyQuery:s},n[4]=s,n[5]=k,n[6]=A):A=n[6];let j=jf(A),M=t||Gf,N;n[7]===M?N=n[8]:(N={caller:M},n[7]=M,n[8]=N);let ee=Mf(N),P=t||Gf,te;n[9]!==l||n[10]!==P?(te={caller:P,onPrettifyQuery:l},n[9]=l,n[10]=P,n[11]=te):te=n[11];let ne=Pf(te),re=(0,q.useRef)(null),ie=(0,q.useRef)(void 0),ae=(0,q.useRef)(ep),oe,se;n[12]!==o||n[13]!==O||n[14]!==h?(oe=()=>{ae.current=e=>{let t=O?.referencePlugin;t&&(O.setVisiblePlugin(t),h(e),o?.(e))}},se=[o,O,h],n[12]=o,n[13]=O,n[14]=h,n[15]=oe,n[16]=se):(oe=n[15],se=n[16]),(0,q.useEffect)(oe,se);let ce,le;n[17]!==d||n[18]!==y||n[19]!==p||n[20]!==S?(ce=()=>{let e=!0;return Wf().then(t=>{if(!e)return;ie.current=t;let n=re.current;if(!n)return;let r=t(n,{value:y,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:`graphql`,theme:d,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?`nocursor`:!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:za.EXECUTABLE}},info:{schema:void 0,renderDescription:$f,onClick(e){ae.current(e)}},jump:{schema:void 0,onClick(e){ae.current(e)}},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:{...Bs,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on(`keyup`,Qf);let a=!1;r.on(`startCompletion`,()=>{a=!0}),r.on(`endCompletion`,()=>{a=!1}),r.on(`keydown`,(e,t)=>{t.key===`Escape`&&a&&t.stopPropagation()}),r.on(`beforeChange`,Zf),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,S(r)}),()=>{e=!1}},le=[d,y,p,S],n[17]=d,n[18]=y,n[19]=p,n[20]=S,n[21]=ce,n[22]=le):(ce=n[21],le=n[22]),(0,q.useEffect)(ce,le),Cf(b,`keyMap`,f);let ue,de;n[23]!==c||n[24]!==b||n[25]!==m||n[26]!==x||n[27]!==D||n[28]!==T||n[29]!==w?(ue=()=>{if(!b)return;let e=function(e){var t;let n=jo(m,e.getValue()),r=gs(e.operations??void 0,e.operationName??void 0,n?.operations);return e.documentAST=n?.documentAST??null,e.operationName=r??null,e.operations=n?.operations??null,w&&(Kf(w,n),(t=ie.current)==null||t.signal(w,`change`,w)),n?{...n,operationName:r}:null},t=bf(100,t=>{let n=t.getValue();D.set(ap,n);let r=t.operationName,i=e(t);i?.operationName!==void 0&&D.set(op,i.operationName),c?.(n,i?.documentAST),i?.operationName&&r!==i.operationName&&x(i.operationName),T({query:n,operationName:i?.operationName??null})});return e(b),b.on(`change`,t),()=>b.off(`change`,t)},de=[c,b,m,x,D,w,T],n[23]=c,n[24]=b,n[25]=m,n[26]=x,n[27]=D,n[28]=T,n[29]=w,n[30]=ue,n[31]=de):(ue=n[30],de=n[31]),(0,q.useEffect)(ue,de),tp(b,m??null,ie),np(b,C??null,ie),rp(b,v,ie),Tf(b,o);let F=E?.run,fe;n[32]!==b||n[33]!==F||n[34]!==x?(fe=()=>{if(!F||!b||!b.operations||!b.hasFocus()){F?.();return}let e=b.indexFromPos(b.getCursor()),t;for(let n of b.operations)n.loc&&n.loc.start<=e&&n.loc.end>=e&&(t=n.name?.value);t&&t!==b.operationName&&x(t),F()},n[32]=b,n[33]=F,n[34]=x,n[35]=fe):fe=n[35];let pe=fe,me;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(me=[`Cmd-Enter`,`Ctrl-Enter`],n[36]=me):me=n[36],Ef(b,me,pe);let he;n[37]===Symbol.for(`react.memo_cache_sentinel`)?(he=[`Shift-Ctrl-C`],n[37]=he):he=n[37],Ef(b,he,j);let ge;n[38]===Symbol.for(`react.memo_cache_sentinel`)?(ge=[`Shift-Ctrl-P`,`Shift-Ctrl-F`],n[38]=ge):ge=n[38],Ef(b,ge,ne);let _e;return n[39]===Symbol.for(`react.memo_cache_sentinel`)?(_e=[`Shift-Ctrl-M`],n[39]=_e):_e=n[39],Ef(b,_e,ee),re}function Zf(e,t){var n;if(t.origin===`paste`){let e=t.text.map(Uf);(n=t.update)==null||n.call(t,t.from,t.to,e)}}function Qf(e,t){ip.test(t.key)&&e.execCommand(`autocomplete`)}function $f(e){return vf.render(e)}function ep(){}function tp(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.schema!==t;qf(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function np(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.validationRules!==t;Jf(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function rp(e,t,n){let r=(0,J.c)(7),i;r[0]===t?i=r[1]:(i=[...t.values()],r[0]=t,r[1]=i);let a=i,o,s;r[2]!==n||r[3]!==e||r[4]!==a?(o=()=>{if(!e)return;let t=e.options.lint.externalFragments!==a;Yf(e,a),t&&n.current&&n.current.signal(e,`change`,e)},s=[e,a,n],r[2]=n,r[3]=e,r[4]=a,r[5]=o,r[6]=s):(o=r[5],s=r[6]),(0,q.useEffect)(o,s)}var ip=/^[a-zA-Z0-9_@(]$/,ap=`query`,op=`operationName`;function sp({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:a,shouldPersistHeaders:o}){let{storage:s}=js.getState(),c=s.get(wp);try{if(!c)throw Error(`Storage for tabs is empty`);let e=JSON.parse(c),t=o?n:void 0;if(cp(e)){let r=bp({query:i,variables:a,headers:t}),o=-1;for(let t=0;t<e.tabs.length;t++){let n=e.tabs[t];n.hash=bp({query:n.query,variables:n.variables,headers:n.headers}),n.hash===r&&(o=t)}if(o>=0)e.activeTabIndex=o;else{let t=i?xp(i):null;e.tabs.push({id:yp(),hash:r,title:t||Cp,query:i,variables:a,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw Error(`Storage for tabs is invalid`)}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:a,headers:n??t}]).map(_p)}}}function cp(e){return e&&typeof e==`object`&&!Array.isArray(e)&&up(e,`activeTabIndex`)&&`tabs`in e&&Array.isArray(e.tabs)&&e.tabs.every(lp)}function lp(e){return e&&typeof e==`object`&&!Array.isArray(e)&&dp(e,`id`)&&dp(e,`title`)&&fp(e,`query`)&&fp(e,`variables`)&&fp(e,`headers`)&&fp(e,`operationName`)&&fp(e,`response`)}function up(e,t){return t in e&&typeof e[t]==`number`}function dp(e,t){return t in e&&typeof e[t]==`string`}function fp(e,t){return t in e&&(typeof e[t]==`string`||e[t]===null)}function pp({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,q.useCallback)(i=>{let a=e?.getValue()??null,o=t?.getValue()??null,s=n?.getValue()??null,c=e?.operationName??null;return vp(i,{query:a,variables:o,headers:s,response:r?.getValue()??null,operationName:c})},[e,t,n,r])}function mp(e,t=!1){return JSON.stringify(e,(e,n)=>e===`hash`||e===`response`||!t&&e===`headers`?null:n)}function hp({shouldPersistHeaders:e}){return(0,q.useCallback)(t=>{let{storage:n}=js.getState();bf(500,e=>{n.set(wp,e)})(mp(t,e))},[e])}function gp({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,q.useCallback)(({query:a,variables:o,headers:s,response:c})=>{e?.setValue(a??``),t?.setValue(o??``),n?.setValue(s??i??``),r?.setValue(c??``)},[n,e,r,t,i])}function _p({query:e=null,variables:t=null,headers:n=null}={}){let r=e?xp(e):null;return{id:yp(),hash:bp({query:e,variables:t,headers:n}),title:r||Cp,query:e,variables:t,headers:n,operationName:r,response:null}}function vp(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;let i={...n,...t};return{...i,hash:bp(i),title:i.operationName||(i.query?xp(i.query):void 0)||Cp}})}}function yp(){let e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function bp(e){return[e.query??``,e.variables??``,e.headers??``].join(`|`)}function xp(e){return/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e)?.[2]??null}function Sp(){let{storage:e}=js.getState(),t=e.get(wp);if(t){let n=JSON.parse(t);e.set(wp,JSON.stringify(n,(e,t)=>e===`headers`?null:t))}}var Cp=`<untitled>`,wp=`tabState`;function Tp(){return Vs([R(()=>import(`./hint-Crd_HBe9.js`),__vite__mapDeps([26,1,0,18,19,21])),R(()=>import(`./lint-DJYGzAAx.js`),__vite__mapDeps([27,1,0,18,19])),R(()=>import(`./mode-8P3lyMw6.js`),__vite__mapDeps([28,1,0,25]))])}var Ep=Dp;function Dp(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onEdit:s,readOnly:c}=r,l=i===void 0?Rs:i,u=a===void 0?zs:a,d=c!==void 0&&c,f=t||Ep,p;n[2]===f?p=n[3]:(p={nonNull:!0,caller:f},n[2]=f,n[3]=p);let{initialVariables:m,variableEditor:h,setVariableEditor:g}=Np(p),_=Bp(),v=t||Ep,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=Mf(y),x=t||Ep,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=Pf(S),w=(0,q.useRef)(null),T,E;n[8]!==l||n[9]!==m||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return Tp().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:m,lineNumbers:!0,tabSize:2,mode:`graphql-variables`,theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:d?`nocursor`:!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:Bs});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,Op),g(r)}),()=>{e=!1}},E=[l,m,d,g],n[8]=l,n[9]=m,n[10]=d,n[11]=g,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,q.useEffect)(T,E),Cf(h,`keyMap`,u),wf(h,s,kp,`variables`,Ep),Tf(h,o);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Ef(h,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Ef(h,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Ef(h,k,b),w}function Op(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var kp=`variables`,Y=at(),Ap=Os(`EditorContext`),jp=e=>{let t=(0,J.c)(88),n=Ps(),[r,i]=(0,q.useState)(null),[a,o]=(0,q.useState)(null),[s,c]=(0,q.useState)(null),[l,u]=(0,q.useState)(null),d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{let t=n.get(Pp)!==null;return e.shouldPersistHeaders!==!1&&t?n.get(Pp)===`true`:!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];let[f,p]=(0,q.useState)(d);Sf(r,e.headers),Sf(a,e.query),Sf(s,e.response),Sf(l,e.variables);let m;t[3]===f?m=t[4]:(m={shouldPersistHeaders:f},t[3]=f,t[4]=m);let h=hp(m),g;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==f||t[13]!==n||t[14]!==h?(g=()=>{let t=e.query??n.get(`query`)??null,r=e.variables??n.get(`variables`)??null,i=e.headers??n.get(`headers`)??null,a=e.response??``,o=sp({query:t,variables:r,headers:i,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||`# Welcome to GraphiQL
31
+ `,a.map=[t,e.line],!0}function fu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+ +!!f;let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function pu(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(ml(t))t===9?o+=4-(o+e.bsCount[m]+ +!!r)%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+ +!!n,l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function mu(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!ml(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function hu(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!ml(e.src.charCodeAt(r))?-1:r}function gu(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1}else{if(a===41||a===46)break;return-1}}return i<r&&(a=e.src.charCodeAt(i),!ml(a))?-1:i}function _u(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function vu(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=gu(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=hu(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,b=e.tShift[c],x=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=b,e.sCount[c]=x,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){C=!0;break}if(C)break;if(d){if(p=gu(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=hu(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&_u(e,h),!0}var yu=999;function bu(e){let t=e.length;for(let n=0;n<e.length-1;n++){let r=e.charCodeAt(n);if(r<55296||r>56319)continue;let i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(t--,n++)}return t}function xu(e,t){return Math.min(e.eMarks[t]+1,e.src.length)}function Su(e,t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return-1;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return-1}return e.bMarks[t]+e.tShift[t]}function Cu(e,t,n,r){let i=e.src,a=e.bMarks[t]+e.tShift[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||i.charCodeAt(a)!==91)return!1;let s=xu(e,t),c=``,l=-1,u=++a;for(;a<s;){if(c.length+a-u>yu*2)return!1;let t=i.charCodeAt(a);if(t===91)return!1;if(t===93){l=a;break}if(t===92&&(t=i.charCodeAt(++a)),t===10&&a<s){let t=Su(e,o);if(t<0)return!1;c+=i.slice(u,s),a=u=t,s=xu(e,o++)}else a++}if(l<0||i.charCodeAt(l+1)!==58||(c+=i.slice(u,l),c.length>yu&&bu(c)>yu))return!1;for(a=l+2;a<s;){let t=i.charCodeAt(a);if(t===10){let t=Su(e,o);if(t<0)break;a=t,s=xu(e,o++)}else if(ml(t))a++;else break}let d=e.md.helpers.parseLinkDestination(i,a,s);if(!d.ok)return!1;let f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;a=d.pos;let p=a,m=s,h=o;for(;a<s;){let t=i.charCodeAt(a);if(t===10){let t=Su(e,o);if(t<0)break;a=t,s=xu(e,o++)}else if(ml(t))a++;else break}let g=a,_=e.md.helpers.parseLinkTitle(i,a,s);for(;_.can_continue;){let t=Su(e,o);if(t<0)break;a=t,s=xu(e,o++),_=e.md.helpers.parseLinkTitle(i,a,s,_)}let v;for(g!==p&&_.ok?(v=_.str,a=_.pos):(v=``,a=p,s=m,o=h);a<s&&ml(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10&&v)for(v=``,a=p,s=m,o=h;a<s&&ml(i.charCodeAt(a));)a++;if(a<s&&i.charCodeAt(a)!==10)return!1;let y=yl(c);return y?(r||(e.env.references===void 0&&(e.env.references={}),e.env.references[y]===void 0&&(e.env.references[y]={title:v,href:f}),e.line=o),!0):!1}var wu=`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`.split(`.`),Tu=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Eu=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`;RegExp(`^(?:`+Tu+`|`+Eu+`|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);var Du=RegExp(`^(?:`+Tu+`|`+Eu+`)`),Ou=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+wu.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Du.source+`\\s*$`),/^$/,!1]];function ku(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Ou.length&&!Ou[s][0].test(o);s++);if(s===Ou.length)return!1;if(r)return Ou[s][2];let c=t+1,l=Ou[s][1].test(``);if(!Ou[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Ou[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let u=e.push(`html_block`,``,0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}function Au(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!ml(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&ml(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=xl(e.src.slice(i,a)),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function ju(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=i,!1;let c=xl(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function Mu(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=xl(e.getLines(t,a,e.blkIndent,!1));e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var Nu=[[`table`,uu,[`paragraph`,`reference`]],[`code`,du],[`fence`,fu,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,pu,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,mu,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,vu,[`paragraph`,`reference`,`blockquote`]],[`reference`,Cu],[`html_block`,ku,[`paragraph`,`reference`,`blockquote`]],[`heading`,Au,[`paragraph`,`reference`,`blockquote`]],[`lheading`,ju],[`paragraph`,Mu]];function Pu(){this.ruler=new kl;for(let e=0;e<Nu.length;e++)this.ruler.push(Nu[e][0],Nu[e][1],{alt:(Nu[e][2]||[]).slice()})}Pu.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},Pu.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Pu.prototype.State=ou;function Fu(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.skipHtmlSpecial=!1,this.linkLevel=0}Fu.prototype.pushPending=function(){let e=new Al(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},Fu.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new Al(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Fu.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32;if((s&64512)==55296){let e=this.src.charCodeAt(a+1);s=(e&64512)==56320?65536+(s-55296<<10)+(e-56320):65533}else(s&64512)==56320&&(s=65533);let c=vl(i)||_l(i),l=vl(s)||_l(s),u=hl(i),d=hl(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},Fu.prototype.Token=Al;function Iu(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Lu(e,t){let n=e.pos;for(;n<e.posMax&&!Iu(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function Ru(e){return e>=65&&e<=90||e>=97&&e<=122}function zu(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function Bu(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=n-Math.min(10,e.pending.length,n),a=n;for(;a>i&&zu(e.src.charCodeAt(a-1));)a--;if(a===n||!Ru(e.src.charCodeAt(a)))return!1;let o=n-a,s=e.md.linkify.matchAtStart(e.src.slice(a));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));let u=e.md.normalizeLink(c);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-o);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(c);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=c.length-o,!0}function Vu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n<i&&ml(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Hu=[];for(let e=0;e<256;e++)Hu.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){Hu[e.charCodeAt(0)]=1});function Uu(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),ml(i));)n++;return e.pos=n,!0}if(i===32){if(!t){let t=e.push(`text_special`,``,0);t.content=`\\`,t.markup=`\\`,t.info=`escape`}return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&Hu[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function Wu(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function Gu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Ku(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function qu(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ku(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ku(e,t[r].delimiters)}var Ju={tokenize:Gu,postProcess:qu};function Yu(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Xu(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Zu(e){let t=e.tokens_meta,n=e.tokens_meta.length;Xu(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Xu(e,t[r].delimiters)}var Qu={tokenize:Yu,postProcess:Zu};function $u(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),ml(n)||n===10);m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),ml(n)||n===10);m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),ml(n)||n===10);m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[yl(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function ed(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),ml(n)||n===10);a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),ml(n)||n===10);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),ml(n)||n===10);a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[yl(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var td=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,nd=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function rd(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(nd.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(td.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function id(e){return/^<a[>\s]/i.test(e)}function ad(e){return/^<\/a\s*>/i.test(e)}function od(e){let t=e|32;return t>=97&&t<=122}function sd(e,t){let n=e.src,r,i;if(n.startsWith(`<!--`,t)){if(n.startsWith(`>`,t+4))return t+5;if(n.startsWith(`->`,t+4))return t+6;r=t+4,i=`-->`}else if(n.startsWith(`<![CDATA[`,t))r=t+9,i=`]]>`;else if(n.charCodeAt(t+1)===63)r=t+2,i=`?>`;else if(od(n.charCodeAt(t+2)))r=t+3,i=`>`;else return-1;if(e.skipHtmlSpecial)return-1;let a=n.indexOf(i,r);return a<0?(e.skipHtmlSpecial=!0,-1):a+i.length}function cd(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i,a=e.src.charCodeAt(r+1);if(a===33||a===63)i=sd(e,r);else if(a===47||od(a)){let t=e.src.slice(r).match(Du);i=t?r+t[0].length:-1}else return!1;if(i<0)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=e.src.slice(r,i),id(t.content)&&e.linkLevel++,ad(t.content)&&e.linkLevel--}return e.pos=i,!0}var ld=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ud=/^&([a-z][a-z0-9]{1,31});/i;function dd(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(ld);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=$c(t)?el(t):el(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(ud);if(r){let n=Gc(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function fd(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function pd(e){let t=e.tokens_meta,n=e.tokens_meta.length;fd(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&fd(t[e].delimiters)}function md(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var hd=[[`text`,Lu],[`linkify`,Bu],[`newline`,Vu],[`escape`,Uu],[`backticks`,Wu],[`strikethrough`,Ju.tokenize],[`emphasis`,Qu.tokenize],[`link`,$u],[`image`,ed],[`autolink`,rd],[`html_inline`,cd],[`entity`,dd]],gd=[[`balance_pairs`,pd],[`strikethrough`,Ju.postProcess],[`emphasis`,Qu.postProcess],[`fragments_join`,md]];function _d(){this.ruler=new kl;for(let e=0;e<hd.length;e++)this.ruler.push(hd[e][0],hd[e][1]);this.ruler2=new kl;for(let e=0;e<gd.length;e++)this.ruler2.push(gd[e][0],gd[e][1])}_d.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},_d.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},_d.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},_d.prototype.State=Fu;function vd(e){let t={};e||={},t.src_Any=yc.source,t.src_Cc=bc.source,t.src_Z=wc.source,t.src_P=Sc.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function yd(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function bd(e){return Object.prototype.toString.call(e)}function xd(e){return bd(e)===`[object String]`}function Sd(e){return bd(e)===`[object Object]`}function Cd(e){return bd(e)===`[object RegExp]`}function wd(e){return bd(e)===`[object Function]`}function Td(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var Ed={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Dd(e){return Object.keys(e||{}).reduce(function(e,t){return e||Ed.hasOwnProperty(t)},!1)}var Od={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},kd=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Ad=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function jd(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Md(){return function(e,t){t.normalize(e)}}function Nd(e){let t=e.re=vd(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(kd),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};e.__compiled__[t]=r,Sd(n)?(Cd(n.validate)?r.validate=jd(n.validate):wd(n.validate)?r.validate=n.validate:a(t,n),wd(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=Md()):xd(n)?i.push(t):a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:Md()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Td).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function Pd(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function Fd(e,t){if(!(this instanceof Fd))return new Fd(e,t);t||Dd(e)&&(t=e,e={}),this.__opts__=yd({},Ed,t),this.__schemas__=yd({},Od,e),this.__compiled__={},this.__tlds__=Ad,this.__tlds_replaced__=!1,this.re={},Nd(this)}Fd.prototype.add=function(e,t){return this.__schemas__[e]=t,Nd(this),this},Fd.prototype.set=function(e){return this.__opts__=yd(this.__opts__,e),this},Fd.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},Fd.prototype.pretest=function(e){return this.re.pretest.test(e)},Fd.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Fd.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function c(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index<t.index?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;(a=s.exec(e))!==null;)o=this.testSchemaAt(e,a[2],s.lastIndex),o&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__[`http:`])for(s=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)r.push({schema:``,index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`])for(s=this.re.email_fuzzy_global,s.lastIndex=0;(a=s.exec(e))!==null;)i.push({schema:`mailto:`,index:a.index+a[1].length,lastIndex:a.index+a[0].length});let l=[0,0,0],u=0;for(;;){let a=[n[l[0]],i[l[1]],r[l[2]]],o=c(c(a[0],a[1]),a[2]);if(!o)break;if(o===a[0]?l[0]++:o===a[1]?l[1]++:l[2]++,o.index<u)continue;let s=new Pd(e,o.schema,o.index,o.lastIndex);this.__compiled__[s.schema].normalize(s,this),t.push(s),u=o.lastIndex}return t.length?t:null},Fd.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;let r=new Pd(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},Fd.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Nd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Nd(this),this)},Fd.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)},Fd.prototype.onCompile=function(){};var Id=2147483647,Ld=36,Rd=1,zd=26,Bd=38,Vd=700,Hd=72,Ud=128,Wd=`-`,Gd=/^xn--/,Kd=/[^\0-\x7F]/,qd=/[\x2E\u3002\uFF0E\uFF61]/g,Jd={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},Yd=35,Xd=Math.floor,Zd=String.fromCharCode;function Qd(e){throw RangeError(Jd[e])}function $d(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function ef(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(qd,`.`);let i=$d(e.split(`.`),t).join(`.`);return r+i}function tf(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var nf=e=>String.fromCodePoint(...e),rf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ld},af=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},of=function(e,t,n){let r=0;for(e=n?Xd(e/Vd):e>>1,e+=Xd(e/t);e>455;r+=Ld)e=Xd(e/Yd);return Xd(r+36*e/(e+Bd))},sf=function(e){let t=[],n=e.length,r=0,i=Ud,a=Hd,o=e.lastIndexOf(Wd);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Qd(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Ld;;i+=Ld){s>=n&&Qd(`invalid-input`);let o=rf(e.charCodeAt(s++));o>=Ld&&Qd(`invalid-input`),o>Xd((Id-r)/t)&&Qd(`overflow`),r+=o*t;let c=i<=a?Rd:i>=a+zd?zd:i-a;if(o<c)break;let l=Ld-c;t>Xd(Id/l)&&Qd(`overflow`),t*=l}let c=t.length+1;a=of(r-o,c,o==0),Xd(r/c)>Id-i&&Qd(`overflow`),i+=Xd(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},cf=function(e){let t=[];e=tf(e);let n=e.length,r=Ud,i=0,a=Hd;for(let n of e)n<128&&t.push(Zd(n));let o=t.length,s=o;for(o&&t.push(Wd);s<n;){let n=Id;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>Xd((Id-i)/c)&&Qd(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>Id&&Qd(`overflow`),n===r){let e=i;for(let n=Ld;;n+=Ld){let r=n<=a?Rd:n>=a+zd?zd:n-a;if(e<r)break;let i=e-r,o=Ld-r;t.push(Zd(af(r+i%o,0))),e=Xd(i/o)}t.push(Zd(af(e,0))),a=of(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},lf={version:`2.3.1`,ucs2:{decode:tf,encode:nf},decode:sf,encode:cf,toASCII:function(e){return ef(e,function(e){return Kd.test(e)?`xn--`+cf(e):e})},toUnicode:function(e){return ef(e,function(e){return Gd.test(e)?sf(e.slice(4).toLowerCase()):e})}},uf={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},df=/^(vbscript|javascript|file|data):/,ff=/^data:image\/(gif|png|jpeg|webp);/;function pf(e){let t=e.trim().toLowerCase();return!df.test(t)||ff.test(t)}var mf=[`http:`,`https:`,`mailto:`];function hf(e){let t=_c(e,!0);if(t.hostname&&(!t.protocol||mf.indexOf(t.protocol)>=0))try{t.hostname=lf.toASCII(t.hostname)}catch{}return ic(ac(t))}function gf(e){let t=_c(e,!0);if(t.hostname&&(!t.protocol||mf.indexOf(t.protocol)>=0))try{t.hostname=lf.toUnicode(t.hostname)}catch{}return tc(ac(t),tc.defaultChars+`%`)}function _f(e,t){if(!(this instanceof _f))return new _f(e,t);t||Jc(e)||(t=e||{},e=`default`),this.inline=new _d,this.block=new Pu,this.core=new au,this.renderer=new Ol,this.linkify=new Fd,this.validateLink=pf,this.normalizeLink=hf,this.normalizeLinkText=gf,this.utils=Kc,this.helpers=Zc({},El),this.options={},this.configure(e),t&&this.set(t)}_f.prototype.set=function(e){return Zc(this.options,e),this},_f.prototype.configure=function(e){let t=this;if(Jc(e)){let t=e;if(e=uf[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},_f.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},_f.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},_f.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},_f.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},_f.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},_f.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},_f.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var vf=new _f({breaks:!1,linkify:!0});function yf(e,t,{schema:n,setSchemaReference:r},i,a){Vs([],{useCommonAddons:!1}).then(e=>{let n,r,i,a,s,c,l,u,d;e.on(t,`select`,(e,t)=>{if(!n){let e=t.parentNode;n=document.createElement(`div`),n.className=`CodeMirror-hint-information`,e.append(n);let f=document.createElement(`header`);f.className=`CodeMirror-hint-information-header`,n.append(f),r=document.createElement(`span`),r.className=`CodeMirror-hint-information-field-name`,f.append(r),i=document.createElement(`span`),i.className=`CodeMirror-hint-information-type-name-pill`,f.append(i),a=document.createElement(`span`),i.append(a),s=document.createElement(`a`),s.className=`CodeMirror-hint-information-type-name`,s.href=`javascript:void 0`,s.addEventListener(`click`,o),i.append(s),c=document.createElement(`span`),i.append(c),l=document.createElement(`div`),l.className=`CodeMirror-hint-information-description`,n.append(l),u=document.createElement(`div`),u.className=`CodeMirror-hint-information-deprecation`,n.append(u);let p=document.createElement(`span`);p.className=`CodeMirror-hint-information-deprecation-label`,p.textContent=`Deprecated`,u.append(p),d=document.createElement(`div`),d.className=`CodeMirror-hint-information-deprecation-reason`,u.append(d);let m=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,``),10)||0,h=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,``),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+m+`px`,n.style.maxHeight=e.scrollTop+h+`px`)};e.addEventListener(`scroll`,g);let _;e.addEventListener(`DOMNodeRemoved`,_=t=>{t.target===e&&(e.removeEventListener(`scroll`,g),e.removeEventListener(`DOMNodeRemoved`,_),n?.removeEventListener(`click`,o),n=null,r=null,i=null,a=null,s=null,c=null,l=null,u=null,d=null,_=null)})}if(r&&(r.textContent=e.text),i&&a&&s&&c){if(e.type){i.style.display=`inline`;let t=e=>{gt(e)?(c.textContent=`!`+c.textContent,t(e.ofType)):D(e)?(a.textContent+=`[`,c.textContent=`]`+c.textContent,t(e.ofType)):s.textContent=e.name};a.textContent=``,c.textContent=``,t(e.type)}else a.textContent=``,s.textContent=``,c.textContent=``,i.style.display=`none`}l&&(e.description?(l.style.display=`block`,l.innerHTML=vf.render(e.description)):(l.style.display=`none`,l.innerHTML=``)),u&&d&&(e.deprecationReason?(u.style.display=`block`,d.innerHTML=vf.render(e.deprecationReason)):(u.style.display=`none`,d.innerHTML=``))})});function o(e){let t=i?.referencePlugin;if(!n||!t||!(e.currentTarget instanceof HTMLElement))return;let o=e.currentTarget.textContent||``,s=n.getType(o);s&&(i.setVisiblePlugin(t),r({kind:`Type`,type:s}),a?.(s))}}function bf(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}var xf=t(Us());function Sf(e,t){let n=(0,J.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&typeof t==`string`&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,q.useEffect)(r,i)}function Cf(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e?.setOption(t,n)},a=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function wf(e,t,n,r,i){let a=(0,J.c)(9),o;a[0]===i?o=a[1]:(o={nonNull:!0,caller:i},a[0]=i,a[1]=o);let{updateActiveTabValues:s}=Np(o),c,l;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==r||a[6]!==s?(c=()=>{if(!e)return;let{storage:i}=js.getState(),a=bf(500,e=>{n!==null&&i.set(n,e)}),o=bf(100,e=>{s({[r]:e})}),c=(e,n)=>{if(!n)return;let r=e.getValue();a(r),o(r),t?.(r)};return e.on(`change`,c),()=>e.off(`change`,c)},l=[t,e,n,r,s],a[2]=t,a[3]=e,a[4]=n,a[5]=r,a[6]=s,a[7]=c,a[8]=l):(c=a[7],l=a[8]),(0,q.useEffect)(c,l)}function Tf(e,t){let n=(0,J.c)(7),{schema:r,setSchemaReference:i}=Ys(),a=Ks(),o,s;n[0]!==t||n[1]!==e||n[2]!==a||n[3]!==r||n[4]!==i?(o=()=>{if(!e)return;let n=(e,n)=>{yf(e,n,{schema:r,setSchemaReference:i},a,e=>{t?.({kind:`Type`,type:e,schema:r||void 0})})};return e.on(`hasCompletion`,n),()=>e.off(`hasCompletion`,n)},s=[t,e,a,r,i],n[0]=t,n[1]=e,n[2]=a,n[3]=r,n[4]=i,n[5]=o,n[6]=s):(o=n[5],s=n[6]),(0,q.useEffect)(o,s)}function Ef(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(let n of t)e.removeKeyMap(n);if(n){let r={};for(let e of t)r[e]=()=>n();e.addKeyMap(r)}}},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}var Df=jf,Of=Mf,kf=Pf,Af=Ff;function jf(e){let t=(0,J.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onCopyQuery:i}=n,a=r||Df,o;t[2]===a?o=t[3]:(o={nonNull:!0,caller:a},t[2]=a,t[3]=o);let{queryEditor:s}=Np(o),c;return t[4]!==i||t[5]!==s?(c=()=>{if(!s)return;let e=s.getValue();(0,xf.default)(e),i?.(e)},t[4]=i,t[5]=s,t[6]=c):c=t[6],c}function Mf(e){let t=(0,J.c)(7),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r}=n,i=r||Of,a;t[2]===i?a=t[3]:(a={nonNull:!0,caller:i},t[2]=i,t[3]=a);let{queryEditor:o}=Np(a),{schema:s}=Ys(),c;return t[4]!==o||t[5]!==s?(c=()=>{let e=o?.documentAST,t=o?.getValue();e&&t&&o.setValue(C(hs(e,s)))},t[4]=o,t[5]=s,t[6]=c):c=t[6],c}function Nf(e){return C(Ie(e))}function Pf(e){let t=(0,J.c)(9),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{caller:r,onPrettifyQuery:i}=n,a=i===void 0?Nf:i,o=r||kf,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c,headerEditor:l,variableEditor:u}=Np(s),d;return t[4]!==l||t[5]!==a||t[6]!==c||t[7]!==u?(d=async()=>{if(u){let e=u.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch{}}if(l){let e=l.getValue();try{let t=JSON.stringify(JSON.parse(e),null,2);t!==e&&l.setValue(t)}catch{}}if(c){let e=c.getValue();try{let t=await a(e);t!==e&&c.setValue(t)}catch{}}},t[4]=l,t[5]=a,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}function Ff(e){let t=(0,J.c)(8),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{getDefaultFieldNames:r,caller:i}=n,{schema:a}=Ys(),o=i||Af,s;t[2]===o?s=t[3]:(s={nonNull:!0,caller:o},t[2]=o,t[3]=s);let{queryEditor:c}=Np(s),l;return t[4]!==r||t[5]!==c||t[6]!==a?(l=()=>{if(!c)return;let e=c.getValue(),{insertions:t,result:n}=ss(a,e,r);return t&&t.length>0&&c.operation(()=>{let e=c.getCursor(),r=c.indexFromPos(e);c.setValue(n||``);let i=0,a=t.map(e=>{let{index:t,string:n}=e;return i+=n.length,c.markText(c.posFromIndex(t+i),c.posFromIndex(t+i),{className:`auto-inserted-leaf`,clearOnEnter:!0,title:`Automatically added leaf fields`})});setTimeout(()=>{for(let e of a)e.clear()},7e3);let o=r;for(let{index:e,string:n}of t)e<r&&(o+=n.length);c.setCursor(c.posFromIndex(o))}),n},t[4]=r,t[5]=c,t[6]=a,t[7]=l):l=t[7],l}function If(){return Vs([R(()=>import(`./javascript-C5m9swjn.js`).then(e=>t(e.default)),__vite__mapDeps([12,1,0]))])}var Lf=Rf;function Rf(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onEdit:o,readOnly:s}=r,c=i===void 0?Rs:i,l=a===void 0?zs:a,u=s!==void 0&&s,d=t||Lf,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialHeaders:p,headerEditor:m,setHeaderEditor:h,shouldPersistHeaders:g}=Np(f),_=Bp(),v=t||Lf,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=Mf(y),x=t||Lf,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=Pf(S),w=(0,q.useRef)(null),T,E;n[8]!==c||n[9]!==p||n[10]!==u||n[11]!==h?(T=()=>{let e=!0;return If().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:p,lineNumbers:!0,tabSize:2,mode:{name:`javascript`,json:!0},theme:c,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:u?`nocursor`:!1,foldGutter:!0,gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:Bs});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,zf),h(r)}),()=>{e=!1}},E=[c,p,u,h],n[8]=c,n[9]=p,n[10]=u,n[11]=h,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,q.useEffect)(T,E),Cf(m,`keyMap`,l),wf(m,o,g?Bf:null,`headers`,Lf);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Ef(m,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Ef(m,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Ef(m,k,b),w}function zf(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var Bf=`headers`,Vf=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([`\u2028`,`\u2029`,` `,`\xA0`]),Hf=RegExp(`[`+Vf.join(``)+`]`,`g`);function Uf(e){return e.replace(Hf,` `)}function Wf(){return Vs([R(()=>import(`./comment-CYtfOWQV.js`).then(e=>t(e.default)),__vite__mapDeps([13,1,0])),R(()=>import(`./search-dN6Hktna.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,0,8,10])),R(()=>import(`./hint-DJdkzpNk.js`),__vite__mapDeps([15,1,0,2])),R(()=>import(`./lint-WejI-4T8.js`),__vite__mapDeps([16,1,0])),R(()=>import(`./info-BBcjy2y9.js`),__vite__mapDeps([17,1,18,19,0,20,21,22])),R(()=>import(`./jump-Ct0GBy62.js`),__vite__mapDeps([23,1,0,20,18,19,21])),R(()=>import(`./mode-D2yBrGVT.js`),__vite__mapDeps([24,1,0,25]))])}var Gf=Xf;function Kf(e,t){e.state.lint.linterOptions.variableToType=t?.variableToType,e.options.lint.variableToType=t?.variableToType,e.options.hintOptions.variableToType=t?.variableToType}function qf(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function Jf(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function Yf(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function Xf(e,t){let n=(0,J.c)(40),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onCopyQuery:s,onEdit:c,onPrettifyQuery:l,readOnly:u}=r,d=i===void 0?Rs:i,f=a===void 0?zs:a,p=u!==void 0&&u,{schema:m,setSchemaReference:h}=Ys(),g=t||Gf,_;n[2]===g?_=n[3]:(_={nonNull:!0,caller:g},n[2]=g,n[3]=_);let{externalFragments:v,initialQuery:y,queryEditor:b,setOperationName:x,setQueryEditor:S,validationRules:C,variableEditor:w,updateActiveTabValues:T}=Np(_),E=Bp(),D=Ps(),O=Ks(),k=t||Gf,A;n[4]!==s||n[5]!==k?(A={caller:k,onCopyQuery:s},n[4]=s,n[5]=k,n[6]=A):A=n[6];let j=jf(A),M=t||Gf,N;n[7]===M?N=n[8]:(N={caller:M},n[7]=M,n[8]=N);let ee=Mf(N),P=t||Gf,te;n[9]!==l||n[10]!==P?(te={caller:P,onPrettifyQuery:l},n[9]=l,n[10]=P,n[11]=te):te=n[11];let ne=Pf(te),re=(0,q.useRef)(null),ie=(0,q.useRef)(void 0),ae=(0,q.useRef)(ep),oe,se;n[12]!==o||n[13]!==O||n[14]!==h?(oe=()=>{ae.current=e=>{let t=O?.referencePlugin;t&&(O.setVisiblePlugin(t),h(e),o?.(e))}},se=[o,O,h],n[12]=o,n[13]=O,n[14]=h,n[15]=oe,n[16]=se):(oe=n[15],se=n[16]),(0,q.useEffect)(oe,se);let ce,le;n[17]!==d||n[18]!==y||n[19]!==p||n[20]!==S?(ce=()=>{let e=!0;return Wf().then(t=>{if(!e)return;ie.current=t;let n=re.current;if(!n)return;let r=t(n,{value:y,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:`graphql`,theme:d,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?`nocursor`:!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:za.EXECUTABLE}},info:{schema:void 0,renderDescription:$f,onClick(e){ae.current(e)}},jump:{schema:void 0,onClick(e){ae.current(e)}},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:{...Bs,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on(`keyup`,Qf);let a=!1;r.on(`startCompletion`,()=>{a=!0}),r.on(`endCompletion`,()=>{a=!1}),r.on(`keydown`,(e,t)=>{t.key===`Escape`&&a&&t.stopPropagation()}),r.on(`beforeChange`,Zf),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,S(r)}),()=>{e=!1}},le=[d,y,p,S],n[17]=d,n[18]=y,n[19]=p,n[20]=S,n[21]=ce,n[22]=le):(ce=n[21],le=n[22]),(0,q.useEffect)(ce,le),Cf(b,`keyMap`,f);let ue,de;n[23]!==c||n[24]!==b||n[25]!==m||n[26]!==x||n[27]!==D||n[28]!==T||n[29]!==w?(ue=()=>{if(!b)return;let e=function(e){var t;let n=jo(m,e.getValue()),r=gs(e.operations??void 0,e.operationName??void 0,n?.operations);return e.documentAST=n?.documentAST??null,e.operationName=r??null,e.operations=n?.operations??null,w&&(Kf(w,n),(t=ie.current)==null||t.signal(w,`change`,w)),n?{...n,operationName:r}:null},t=bf(100,t=>{let n=t.getValue();D.set(ap,n);let r=t.operationName,i=e(t);i?.operationName!==void 0&&D.set(op,i.operationName),c?.(n,i?.documentAST),i?.operationName&&r!==i.operationName&&x(i.operationName),T({query:n,operationName:i?.operationName??null})});return e(b),b.on(`change`,t),()=>b.off(`change`,t)},de=[c,b,m,x,D,w,T],n[23]=c,n[24]=b,n[25]=m,n[26]=x,n[27]=D,n[28]=T,n[29]=w,n[30]=ue,n[31]=de):(ue=n[30],de=n[31]),(0,q.useEffect)(ue,de),tp(b,m??null,ie),np(b,C??null,ie),rp(b,v,ie),Tf(b,o);let F=E?.run,fe;n[32]!==b||n[33]!==F||n[34]!==x?(fe=()=>{if(!F||!b||!b.operations||!b.hasFocus()){F?.();return}let e=b.indexFromPos(b.getCursor()),t;for(let n of b.operations)n.loc&&n.loc.start<=e&&n.loc.end>=e&&(t=n.name?.value);t&&t!==b.operationName&&x(t),F()},n[32]=b,n[33]=F,n[34]=x,n[35]=fe):fe=n[35];let pe=fe,me;n[36]===Symbol.for(`react.memo_cache_sentinel`)?(me=[`Cmd-Enter`,`Ctrl-Enter`],n[36]=me):me=n[36],Ef(b,me,pe);let he;n[37]===Symbol.for(`react.memo_cache_sentinel`)?(he=[`Shift-Ctrl-C`],n[37]=he):he=n[37],Ef(b,he,j);let ge;n[38]===Symbol.for(`react.memo_cache_sentinel`)?(ge=[`Shift-Ctrl-P`,`Shift-Ctrl-F`],n[38]=ge):ge=n[38],Ef(b,ge,ne);let _e;return n[39]===Symbol.for(`react.memo_cache_sentinel`)?(_e=[`Shift-Ctrl-M`],n[39]=_e):_e=n[39],Ef(b,_e,ee),re}function Zf(e,t){var n;if(t.origin===`paste`){let e=t.text.map(Uf);(n=t.update)==null||n.call(t,t.from,t.to,e)}}function Qf(e,t){ip.test(t.key)&&e.execCommand(`autocomplete`)}function $f(e){return vf.render(e)}function ep(){}function tp(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.schema!==t;qf(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function np(e,t,n){let r=(0,J.c)(5),i,a;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;let r=e.options.lint.validationRules!==t;Jf(e,t),r&&n.current&&n.current.signal(e,`change`,e)},a=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=a):(i=r[3],a=r[4]),(0,q.useEffect)(i,a)}function rp(e,t,n){let r=(0,J.c)(7),i;r[0]===t?i=r[1]:(i=[...t.values()],r[0]=t,r[1]=i);let a=i,o,s;r[2]!==n||r[3]!==e||r[4]!==a?(o=()=>{if(!e)return;let t=e.options.lint.externalFragments!==a;Yf(e,a),t&&n.current&&n.current.signal(e,`change`,e)},s=[e,a,n],r[2]=n,r[3]=e,r[4]=a,r[5]=o,r[6]=s):(o=r[5],s=r[6]),(0,q.useEffect)(o,s)}var ip=/^[a-zA-Z0-9_@(]$/,ap=`query`,op=`operationName`;function sp({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:a,shouldPersistHeaders:o}){let{storage:s}=js.getState(),c=s.get(wp);try{if(!c)throw Error(`Storage for tabs is empty`);let e=JSON.parse(c),t=o?n:void 0;if(cp(e)){let r=bp({query:i,variables:a,headers:t}),o=-1;for(let t=0;t<e.tabs.length;t++){let n=e.tabs[t];n.hash=bp({query:n.query,variables:n.variables,headers:n.headers}),n.hash===r&&(o=t)}if(o>=0)e.activeTabIndex=o;else{let t=i?xp(i):null;e.tabs.push({id:yp(),hash:r,title:t||Cp,query:i,variables:a,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw Error(`Storage for tabs is invalid`)}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:a,headers:n??t}]).map(_p)}}}function cp(e){return e&&typeof e==`object`&&!Array.isArray(e)&&up(e,`activeTabIndex`)&&`tabs`in e&&Array.isArray(e.tabs)&&e.tabs.every(lp)}function lp(e){return e&&typeof e==`object`&&!Array.isArray(e)&&dp(e,`id`)&&dp(e,`title`)&&fp(e,`query`)&&fp(e,`variables`)&&fp(e,`headers`)&&fp(e,`operationName`)&&fp(e,`response`)}function up(e,t){return t in e&&typeof e[t]==`number`}function dp(e,t){return t in e&&typeof e[t]==`string`}function fp(e,t){return t in e&&(typeof e[t]==`string`||e[t]===null)}function pp({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,q.useCallback)(i=>{let a=e?.getValue()??null,o=t?.getValue()??null,s=n?.getValue()??null,c=e?.operationName??null;return vp(i,{query:a,variables:o,headers:s,response:r?.getValue()??null,operationName:c})},[e,t,n,r])}function mp(e,t=!1){return JSON.stringify(e,(e,n)=>e===`hash`||e===`response`||!t&&e===`headers`?null:n)}function hp({shouldPersistHeaders:e}){return(0,q.useCallback)(t=>{let{storage:n}=js.getState();bf(500,e=>{n.set(wp,e)})(mp(t,e))},[e])}function gp({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,q.useCallback)(({query:a,variables:o,headers:s,response:c})=>{e?.setValue(a??``),t?.setValue(o??``),n?.setValue(s??i??``),r?.setValue(c??``)},[n,e,r,t,i])}function _p({query:e=null,variables:t=null,headers:n=null}={}){let r=e?xp(e):null;return{id:yp(),hash:bp({query:e,variables:t,headers:n}),title:r||Cp,query:e,variables:t,headers:n,operationName:r,response:null}}function vp(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;let i={...n,...t};return{...i,hash:bp(i),title:i.operationName||(i.query?xp(i.query):void 0)||Cp}})}}function yp(){let e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function bp(e){return[e.query??``,e.variables??``,e.headers??``].join(`|`)}function xp(e){return/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e)?.[2]??null}function Sp(){let{storage:e}=js.getState(),t=e.get(wp);if(t){let n=JSON.parse(t);e.set(wp,JSON.stringify(n,(e,t)=>e===`headers`?null:t))}}var Cp=`<untitled>`,wp=`tabState`;function Tp(){return Vs([R(()=>import(`./hint-BDhSERFU.js`),__vite__mapDeps([26,1,0,18,19,21])),R(()=>import(`./lint-Cy4k-qWA.js`),__vite__mapDeps([27,1,0,18,19])),R(()=>import(`./mode-BZKl6qdl.js`),__vite__mapDeps([28,1,0,25]))])}var Ep=Dp;function Dp(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{editorTheme:i,keyMap:a,onClickReference:o,onEdit:s,readOnly:c}=r,l=i===void 0?Rs:i,u=a===void 0?zs:a,d=c!==void 0&&c,f=t||Ep,p;n[2]===f?p=n[3]:(p={nonNull:!0,caller:f},n[2]=f,n[3]=p);let{initialVariables:m,variableEditor:h,setVariableEditor:g}=Np(p),_=Bp(),v=t||Ep,y;n[4]===v?y=n[5]:(y={caller:v},n[4]=v,n[5]=y);let b=Mf(y),x=t||Ep,S;n[6]===x?S=n[7]:(S={caller:x},n[6]=x,n[7]=S);let C=Pf(S),w=(0,q.useRef)(null),T,E;n[8]!==l||n[9]!==m||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return Tp().then(t=>{if(!e)return;let n=w.current;if(!n)return;let r=t(n,{value:m,lineNumbers:!0,tabSize:2,mode:`graphql-variables`,theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:d?`nocursor`:!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:[`CodeMirror-linenumbers`,`CodeMirror-foldgutter`],extraKeys:Bs});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on(`keyup`,Op),g(r)}),()=>{e=!1}},E=[l,m,d,g],n[8]=l,n[9]=m,n[10]=d,n[11]=g,n[12]=T,n[13]=E):(T=n[12],E=n[13]),(0,q.useEffect)(T,E),Cf(h,`keyMap`,u),wf(h,s,kp,`variables`,Ep),Tf(h,o);let D;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(D=[`Cmd-Enter`,`Ctrl-Enter`],n[14]=D):D=n[14],Ef(h,D,_?.run);let O;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`Shift-Ctrl-P`],n[15]=O):O=n[15],Ef(h,O,C);let k;return n[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=[`Shift-Ctrl-M`],n[16]=k):k=n[16],Ef(h,k,b),w}function Op(e,t){let{code:n,key:r,shiftKey:i}=t,a=n.startsWith(`Key`),o=!i&&n.startsWith(`Digit`);(a||o||r===`_`||r===`"`)&&e.execCommand(`autocomplete`)}var kp=`variables`,Y=at(),Ap=Os(`EditorContext`),jp=e=>{let t=(0,J.c)(88),n=Ps(),[r,i]=(0,q.useState)(null),[a,o]=(0,q.useState)(null),[s,c]=(0,q.useState)(null),[l,u]=(0,q.useState)(null),d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{let t=n.get(Pp)!==null;return e.shouldPersistHeaders!==!1&&t?n.get(Pp)===`true`:!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];let[f,p]=(0,q.useState)(d);Sf(r,e.headers),Sf(a,e.query),Sf(s,e.response),Sf(l,e.variables);let m;t[3]===f?m=t[4]:(m={shouldPersistHeaders:f},t[3]=f,t[4]=m);let h=hp(m),g;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==f||t[13]!==n||t[14]!==h?(g=()=>{let t=e.query??n.get(`query`)??null,r=e.variables??n.get(`variables`)??null,i=e.headers??n.get(`headers`)??null,a=e.response??``,o=sp({query:t,variables:r,headers:i,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||`# Welcome to GraphiQL
32
32
  #
33
33
  # GraphiQL is an in-browser tool for writing, validating, and
34
34
  # testing GraphQL queries.
@@ -92,7 +92,7 @@ $1`:e.name,insertTextMode:Oi.adjustIndentation,insertTextFormat:Ti.Snippet}))):m
92
92
 
93
93
  `})],activeTabIndex:t.tabs.length};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[35]=O,t[36]=k,t[37]=D,t[38]=M,t[39]=h,t[40]=E,t[41]=N):N=t[41];let ee=N,P;t[42]!==D||t[43]!==M||t[44]!==h?(P=e=>{y(t=>{let n={...t,activeTabIndex:e};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[42]=D,t[43]=M,t[44]=h,t[45]=P):P=t[45];let te=P,ne;t[46]!==D||t[47]!==M||t[48]!==h?(ne=e=>{y(t=>{let n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return h(r),M(r.tabs[r.activeTabIndex]),D?.(r),r})},t[46]=D,t[47]=M,t[48]=h,t[49]=ne):ne=t[49];let re=ne,ie;t[50]!==D||t[51]!==M||t[52]!==h?(ie=e=>{y(t=>{let n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return h(n),M(n.tabs[n.activeTabIndex]),D?.(n),n})},t[50]=D,t[51]=M,t[52]=h,t[53]=ie):ie=t[53];let ae=ie,oe;t[54]!==D||t[55]!==h?(oe=e=>{y(t=>{let n=vp(t,e);return h(n),D?.(n),n})},t[54]=D,t[55]=h,t[56]=oe):oe=t[56];let se=oe,{onEditOperationName:ce}=e,le;t[57]!==ce||t[58]!==a||t[59]!==se?(le=e=>{a&&(Mp(a,e),se({operationName:e}),ce?.(e))},t[57]=ce,t[58]=a,t[59]=se,t[60]=le):le=t[60];let ue=le,de,F;if(t[61]!==e.externalFragments){if(F=new Map,Array.isArray(e.externalFragments))for(let t of e.externalFragments)F.set(t.name.value,t);else if(typeof e.externalFragments==`string`)ye(Ie(e.externalFragments,{}),{FragmentDefinition(e){F.set(e.name.value,e)}});else if(e.externalFragments)throw Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=F}else F=t[62];de=F;let fe=de,pe;t[63]===e.validationRules?pe=t[64]:(pe=e.validationRules||[],t[63]=e.validationRules,t[64]=pe);let me=pe,he;t[65]!==ee||t[66]!==te||t[67]!==ae||t[68]!==fe||t[69]!==r||t[70]!==_.headers||t[71]!==_.query||t[72]!==_.response||t[73]!==_.variables||t[74]!==re||t[75]!==a||t[76]!==s||t[77]!==ue||t[78]!==x||t[79]!==f||t[80]!==v||t[81]!==se||t[82]!==me||t[83]!==l?(he={...v,addTab:ee,changeTab:te,moveTab:re,closeTab:ae,updateActiveTabValues:se,headerEditor:r,queryEditor:a,responseEditor:s,variableEditor:l,setHeaderEditor:i,setQueryEditor:o,setResponseEditor:c,setVariableEditor:u,setOperationName:ue,initialQuery:_.query,initialVariables:_.variables,initialHeaders:_.headers,initialResponse:_.response,externalFragments:fe,validationRules:me,shouldPersistHeaders:f,setShouldPersistHeaders:x},t[65]=ee,t[66]=te,t[67]=ae,t[68]=fe,t[69]=r,t[70]=_.headers,t[71]=_.query,t[72]=_.response,t[73]=_.variables,t[74]=re,t[75]=a,t[76]=s,t[77]=ue,t[78]=x,t[79]=f,t[80]=v,t[81]=se,t[82]=me,t[83]=l,t[84]=he):he=t[84];let ge=he,_e;return t[85]!==A||t[86]!==ge?(_e=(0,Y.jsx)(Ap.Provider,{value:ge,children:A}),t[85]=A,t[86]=ge,t[87]=_e):_e=t[87],_e};function Mp(e,t){e.operationName=t}var Np=ks(Ap),Pp=`shouldPersistHeaders`,Fp=t(Es()),Ip=t(Ds()),Lp=Os(`ExecutionContext`),Rp=e=>{let t=(0,J.c)(26),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:a}=e;if(typeof n!=`function`)throw TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:Rp},t[0]=o):o=t[0];let{externalFragments:s,headerEditor:c,queryEditor:l,responseEditor:u,variableEditor:d,updateActiveTabValues:f}=Np(o),p;t[1]===r?p=t[2]:(p={getDefaultFieldNames:r,caller:Rp},t[1]=r,t[2]=p);let m=Ff(p),[h,g]=(0,q.useState)(!1),[_,v]=(0,q.useState)(null),y=(0,q.useRef)(0),b;t[3]===_?b=t[4]:(b=()=>{_?.unsubscribe(),g(!1),v(null)},t[3]=_,t[4]=b);let x=b,S;t[5]!==m||t[6]!==s||t[7]!==n||t[8]!==c||t[9]!==a||t[10]!==l||t[11]!==u||t[12]!==x||t[13]!==_||t[14]!==f||t[15]!==d?(S=async()=>{if(!l||!u)return;if(_){x();return}let e=e=>{u.setValue(e),f({response:e})};y.current+=1;let t=y.current,r=m()||l.getValue(),i=d?.getValue(),o;try{o=Vp({json:i,errorMessageParse:`Variables are invalid JSON`,errorMessageType:`Variables are not a JSON object.`})}catch(t){let n=t;e(n instanceof Error?n.message:`${n}`);return}let p=c?.getValue(),h;try{h=Vp({json:p,errorMessageParse:`Headers are invalid JSON`,errorMessageType:`Headers are not a JSON object.`})}catch(t){let n=t;e(n instanceof Error?n.message:`${n}`);return}if(s){let e=l.documentAST?wo(l.documentAST,s):[];e.length>0&&(r+=`
94
94
  `+e.map(Wp).join(`
95
- `))}e(``),g(!0);let b=a??l.operationName??void 0,S=h??void 0,C=l.documentAST??void 0;try{let i={},a=n=>{if(t!==y.current)return;let r=Array.isArray(n)?n:!1;if(!r&&typeof n==`object`&&n&&`hasNext`in n&&(r=[n]),r){for(let e of r)Up(i,e);g(!1),e(os(i))}else{let t=os(n);g(!1),e(t)}},s=await n({query:r,variables:o,operationName:b},{headers:S,documentAST:C});Qo(s)?v(s.subscribe({next(e){a(e)},error(t){g(!1),t&&e(as(t)),v(null)},complete(){g(!1),v(null)}})):$o(s)?(v({unsubscribe:()=>{var e;return(e=s[Symbol.asyncIterator]()).return?.call(e)}}),await zp(a,s),g(!1),v(null)):a(s)}catch(t){let n=t;g(!1),e(as(n)),v(null)}},t[5]=m,t[6]=s,t[7]=n,t[8]=c,t[9]=a,t[10]=l,t[11]=u,t[12]=x,t[13]=_,t[14]=f,t[15]=d,t[16]=S):S=t[16];let C=S,w=!!_,T=a??null,E;t[17]!==h||t[18]!==C||t[19]!==x||t[20]!==w||t[21]!==T?(E={isFetching:h,isSubscribed:w,operationName:T,run:C,stop:x},t[17]=h,t[18]=C,t[19]=x,t[20]=w,t[21]=T,t[22]=E):E=t[22];let D=E,O;return t[23]!==i||t[24]!==D?(O=(0,Y.jsx)(Lp.Provider,{value:D,children:i}),t[23]=i,t[24]=D,t[25]=O):O=t[25],O};async function zp(e,t){for await(let n of t)e(n)}var Bp=ks(Lp);function Vp({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==``?JSON.parse(e):void 0}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:e}.`)}if(r!==void 0&&(typeof r!=`object`||!r||Array.isArray(r)))throw Error(n);return r}var Hp=new WeakMap;function Up(e,t){var n;let r=[`data`,...t.path??[]];for(let n of[e,t])if(n.pending){let t=Hp.get(e);t===void 0&&(t=new Map,Hp.set(e,t));for(let{id:e,path:r}of n.pending)t.set(e,[`data`,...r])}let{items:i}=t;if(i){let{id:n}=t;if(n){if(r=Hp.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);(0,Ip.default)(e,r.join(`.`)).push(...i)}else{r=[`data`,...t.path??[]];for(let t of i)(0,Fp.default)(e,r.join(`.`),t),r[r.length-1]++}}let{data:a}=t;if(a){let{id:n}=t;if(n){if(r=Hp.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);let{subPath:i}=t;i!==void 0&&(r=[...r,...i])}(0,Fp.default)(e,r.join(`.`),a,{merge:!0})}if(t.errors&&(e.errors||=[],e.errors.push(...t.errors)),t.extensions&&(0,Fp.default)(e,`extensions`,t.extensions,{merge:!0}),t.incremental)for(let n of t.incremental)Up(e,n);if(t.completed)for(let{id:r,errors:i}of t.completed)(n=Hp.get(e))==null||n.delete(r),i&&(e.errors||=[],e.errors.push(...i))}function Wp(e){return C(e)}var Gp=e=>{let t=(0,J.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,fetcher:c,getDefaultFieldNames:l,headers:u,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:m,onTabChange:h,onTogglePluginVisibility:g,operationName:_,plugins:v,referencePlugin:y,query:b,response:x,schema:S,schemaDescription:C,shouldPersistHeaders:w,storage:T,validationRules:E,variables:D,visiblePlugin:O}=e,k;t[0]!==a||t[1]!==i||t[2]!==o||t[3]!==s||t[4]!==u||t[5]!==p||t[6]!==h||t[7]!==b||t[8]!==x||t[9]!==w||t[10]!==E||t[11]!==D?(k={defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,headers:u,onEditOperationName:p,onTabChange:h,query:b,response:x,shouldPersistHeaders:w,validationRules:E,variables:D},t[0]=a,t[1]=i,t[2]=o,t[3]=s,t[4]=u,t[5]=p,t[6]=h,t[7]=b,t[8]=x,t[9]=w,t[10]=E,t[11]=D,t[12]=k):k=t[12];let A=k,j;t[13]!==r||t[14]!==c||t[15]!==d||t[16]!==f||t[17]!==m||t[18]!==S||t[19]!==C?(j={dangerouslyAssumeSchemaIsValid:r,fetcher:c,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:m,schema:S,schemaDescription:C},t[13]=r,t[14]=c,t[15]=d,t[16]=f,t[17]=m,t[18]=S,t[19]=C,t[20]=j):j=t[20];let M=j,N;t[21]!==c||t[22]!==l||t[23]!==_?(N={getDefaultFieldNames:l,fetcher:c,operationName:_},t[21]=c,t[22]=l,t[23]=_,t[24]=N):N=t[24];let ee=N,P;t[25]!==g||t[26]!==v||t[27]!==y||t[28]!==O?(P={onTogglePluginVisibility:g,plugins:v,visiblePlugin:O,referencePlugin:y},t[25]=g,t[26]=v,t[27]=y,t[28]=O,t[29]=P):P=t[29];let te=P,ne;t[30]!==n||t[31]!==te?(ne=(0,Y.jsx)(Gs,{...te,children:n}),t[30]=n,t[31]=te,t[32]=ne):ne=t[32];let re;t[33]!==ee||t[34]!==ne?(re=(0,Y.jsx)(Rp,{...ee,children:ne}),t[33]=ee,t[34]=ne,t[35]=re):re=t[35];let ie;t[36]!==M||t[37]!==re?(ie=(0,Y.jsx)(Js,{...M,children:re}),t[36]=M,t[37]=re,t[38]=ie):ie=t[38];let ae;t[39]!==A||t[40]!==ie?(ae=(0,Y.jsx)(jp,{...A,children:ie}),t[39]=A,t[40]=ie,t[41]=ae):ae=t[41];let oe;return t[42]!==T||t[43]!==ae?(oe=(0,Y.jsx)(Ms,{storage:T,children:ae}),t[42]=T,t[43]=ae,t[44]=oe):oe=t[44],oe};function Kp(e){let t=(0,J.c)(11),n=e===void 0?null:e,r=Ps(),i;t[0]!==n||t[1]!==r?(i=()=>{let e=r.get(qp);switch(e){case`light`:return`light`;case`dark`:return`dark`;default:return typeof e==`string`&&r.set(qp,``),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];let[a,o]=(0,q.useState)(i),s,c;t[3]===a?(s=t[4],c=t[5]):(s=()=>{document.body.classList.remove(`graphiql-light`,`graphiql-dark`),a&&document.body.classList.add(`graphiql-${a}`)},c=[a],t[3]=a,t[4]=s,t[5]=c),(0,q.useEffect)(s,c);let l;t[6]===r?l=t[7]:(l=e=>{r.set(qp,e||``),o(e)},t[6]=r,t[7]=l);let u=l,d;return t[8]!==u||t[9]!==a?(d={theme:a,setTheme:u},t[8]=u,t[9]=a,t[10]=d):d=t[10],d}var qp=`theme`,Jp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:6,y:6,width:2,height:2,rx:1,fill:`currentColor`})),Yp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1 1L7 7L13 1`,stroke:`currentColor`,strokeWidth:1.5})),Xp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 7 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6 1.04819L2 5.04819L6 9.04819`,stroke:`currentColor`,strokeWidth:1.75})),Zp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M13 8L7 2L1 8`,stroke:`currentColor`,strokeWidth:1.5})),Qp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,stroke:`currentColor`,strokeWidth:3,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1 1L12.9998 12.9997`}),q.createElement(`path`,{d:`M13 1L1.00079 13.0003`})),$p=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`rect`,{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:`currentColor`,strokeWidth:1.5})),em=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M5 9L9 5`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M5 5L9 9`,stroke:`currentColor`,strokeWidth:1.2})),tm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z`,fill:`currentColor`})),nm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2})),rm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0.5 12 12`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:7,y:5.5,width:2,height:2,rx:1,transform:`rotate(90 7 5.5)`,fill:`currentColor`}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z`,fill:`currentColor`})),im=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z`,fill:`currentColor`})),am=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`line`,{x1:13,y1:11.75,x2:6,y2:11.75,stroke:`currentColor`,strokeWidth:1.5})),om=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:5,y:5,width:2,height:2,rx:1,fill:`currentColor`}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z`,fill:`currentColor`})),sm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),cm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 24 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),q.createElement(`path`,{d:`M13.75 5.25V10.75H18.75`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),q.createElement(`path`,{d:`M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25`,stroke:`currentColor`,strokeWidth:1.5})),lm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`circle`,{cx:6,cy:6,r:5.4,stroke:`currentColor`,strokeWidth:1.2,strokeDasharray:`4.241025 4.241025`,transform:`rotate(22.5 6 6)`}),q.createElement(`circle`,{cx:6,cy:6,r:1,fill:`currentColor`})),um=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 19 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`})),dm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`circle`,{cx:5,cy:5,r:4.35,stroke:`currentColor`,strokeWidth:1.3}),q.createElement(`line`,{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:`currentColor`,strokeWidth:1.3})),fm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M6 4.5L9 7.5L12 4.5`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M12 13.5L9 10.5L6 13.5`,stroke:`currentColor`,strokeWidth:1.5})),pm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z`,fill:`currentColor`}),q.createElement(`path`,{d:`M11.5 4.5L9.5 2.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M5.5 10.5L3.5 8.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`})),mm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z`,fill:`currentColor`})),hm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 10 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z`})),gm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{width:25,height:25,viewBox:`0 0 25 25`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M10.2852 24.0745L13.7139 18.0742`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M14.5742 24.0749L17.1457 19.7891`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`})),_m=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M4.75 9.25H1.25V12.75`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),q.createElement(`path`,{d:`M11.25 6.75H14.75V3.25`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),q.createElement(`path`,{d:`M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513`,stroke:`currentColor`,strokeWidth:1}),q.createElement(`path`,{d:`M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487`,stroke:`currentColor`,strokeWidth:1})),vm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5`,stroke:`currentColor`,strokeWidth:1.2})),ym=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z`,fill:`currentColor`})),bm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z`,fill:`currentColor`,stroke:`currentColor`})),xm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z`,stroke:`currentColor`,strokeWidth:1.5})),Sm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{width:16,height:16,rx:2,fill:`currentColor`})),Cm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{width:`1em`,height:`5em`,xmlns:`http://www.w3.org/2000/svg`,fillRule:`evenodd`,"aria-hidden":`true`,viewBox:`0 0 23 23`,style:{height:`1.5em`},clipRule:`evenodd`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z`,fill:`currentColor`,strokeWidth:.25,stroke:`currentColor`})),wm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:5.5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),Tm=X(Jp),Em=X(Yp),Dm=X(Xp),Om=X(Zp),km=X(Qp),Am=X($p),jm=X(em),Mm=X(tm),Nm=X(nm),Pm=X(rm),Fm=X(im),Im=X(am),Lm=X(om),Rm=X(sm),zm=X(cm),Bm=X(lm),Vm=X(um),Hm=X(dm),Um=X(fm),Wm=X(pm),Gm=X(mm),Km=X(hm),qm=X(gm),Jm=X(_m),Ym=X(vm),Xm=X(ym),Zm=X(bm),Qm=X(xm),$m=X(Sm),eh=X(Cm),th=X(wm);function X(e){let t=e.name.replace(`Svg`,``).replaceAll(/([A-Z])/g,` $1`).trimStart().toLowerCase()+` icon`,n=n=>{let r=(0,J.c)(2),i;return r[0]===n?i=r[1]:(i=(0,Y.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i),i};return n.displayName=e.name,n}function nh(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=nh(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t)}return r}function rh(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=nh(e))&&(r&&(r+=` `),r+=t);return r}var ih=e=>{let t=(0,J.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:ih},t[3]=i):i=t[3];let{headerEditor:a}=Np(i),o=Rf(n,ih),s,c;t[4]!==a||t[5]!==r?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=a,t[5]=r,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,q.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=rh(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,Y.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d},ah=Object.assign(e=>{let t=(0,J.c)(14),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={width:null,height:null},t[0]=n):n=t[0];let[r,i]=(0,q.useState)(n),[a,o]=(0,q.useState)(null),s=(0,q.useRef)(null),c=oh(e.token)?.href,l,u;t[1]===c?(l=t[2],u=t[3]):(l=()=>{s.current&&(c?fetch(c,{method:`HEAD`}).then(e=>{o(e.headers.get(`Content-Type`))}).catch(()=>{o(null)}):(i({width:null,height:null}),o(null)))},u=[c],t[1]=c,t[2]=l,t[3]=u),(0,q.useEffect)(l,u);let d;t[4]!==r.height||t[5]!==r.width||t[6]!==a?(d=r.width!==null&&r.height!==null?(0,Y.jsxs)(`div`,{children:[r.width,`x`,r.height,a===null?null:` `+a]}):null,t[4]=r.height,t[5]=r.width,t[6]=a,t[7]=d):d=t[7];let f=d,p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{i({width:s.current?.naturalWidth??null,height:s.current?.naturalHeight??null})},t[8]=p):p=t[8];let m;t[9]===c?m=t[10]:(m=(0,Y.jsx)(`img`,{onLoad:p,ref:s,src:c}),t[9]=c,t[10]=m);let h;return t[11]!==f||t[12]!==m?(h=(0,Y.jsxs)(`div`,{children:[m,f]}),t[11]=f,t[12]=m,t[13]=h):h=t[13],h},{shouldRender(e){let t=oh(e);return t?sh(t):!1}});function oh(e){if(e.type!==`string`)return;let t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+`//`+location.host)}catch{}}function sh(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}var ch=e=>{let t=(0,J.c)(2),n=Xf(e,ch),r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`div`,{className:`graphiql-editor`,ref:n}),t[0]=n,t[1]=r),r},lh=Ce();function uh(){return Vs([R(()=>import(`./foldgutter-DMDmmXBR.js`).then(e=>t(e.default)),__vite__mapDeps([6,1,0])),R(()=>import(`./brace-fold-CvGVZqlg.js`).then(e=>t(e.default)),__vite__mapDeps([5,1,0])),R(()=>import(`./dialog-CJ-8k4qu.js`).then(e=>t(e.default)),__vite__mapDeps([10,1,0])),R(()=>import(`./search-dN6Hktna.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,0,8,10])),R(()=>import(`./searchcursor-BVQcGYNk.js`).then(e=>t(e.default)),__vite__mapDeps([8,1,0])),R(()=>import(`./jump-to-line-Dh-zRt5Y.js`).then(e=>t(e.default)),__vite__mapDeps([9,1,0,10])),R(()=>import(`./sublime-CKNGwGRF.js`).then(e=>t(e.default)),__vite__mapDeps([11,1,0,8,3])),R(()=>import(`./mode-DYjg-Nnd.js`),__vite__mapDeps([29,1,0,25])),R(()=>import(`./info-addon-qxLJlsXZ.js`),__vite__mapDeps([22,1,0]))],{useCommonAddons:!1})}var dh=fh;function fh(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{responseTooltip:i,editorTheme:a,keyMap:o}=r,s=a===void 0?Rs:a,c=o===void 0?zs:o,{fetchError:l,validationErrors:u}=Ys(),d=t||dh,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialResponse:p,responseEditor:m,setResponseEditor:h}=Np(f),g=(0,q.useRef)(null),_=(0,q.useRef)(i),v,y;n[4]===i?(v=n[5],y=n[6]):(v=()=>{_.current=i},y=[i],n[4]=i,n[5]=v,n[6]=y),(0,q.useEffect)(v,y);let b,x;n[7]!==s||n[8]!==p||n[9]!==h?(b=()=>{let e=!0;return uh().then(t=>{if(!e)return;let n=document.createElement(`div`),r=(0,lh.createRoot)(n);t.registerHelper(`info`,`graphql-results`,(e,t,i,a)=>{let o=_.current,s=[o&&(0,Y.jsx)(o,{pos:a,token:e}),ah.shouldRender(e)&&(0,Y.jsx)(ah,{token:e},`image-preview`)].filter(ph);if(s.length)return r.render(s),n;r.unmount()});let i=g.current;if(!i)return;let a=t(i,{value:p,lineWrapping:!0,readOnly:!0,theme:s,mode:`graphql-results`,foldGutter:!0,gutters:[`CodeMirror-foldgutter`],info:!0,extraKeys:Bs});h(a)}),()=>{e=!1}},x=[s,p,h],n[7]=s,n[8]=p,n[9]=h,n[10]=b,n[11]=x):(b=n[10],x=n[11]),(0,q.useEffect)(b,x),Cf(m,`keyMap`,c);let S,C;return n[12]!==l||n[13]!==m||n[14]!==u?(S=()=>{l&&m?.setValue(l),u.length&&m?.setValue(as(u))},C=[m,l,u],n[12]=l,n[13]=m,n[14]=u,n[15]=S,n[16]=C):(S=n[15],C=n[16]),(0,q.useEffect)(S,C),g}function ph(e){return!!e}var mh=e=>{let t=(0,J.c)(2),n=fh(e,mh),r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`section`,{className:`result-window`,"aria-label":`Result Window`,"aria-live":`polite`,"aria-atomic":`true`,ref:n}),t[0]=n,t[1]=r),r},hh=e=>{let t=(0,J.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:hh},t[3]=i):i=t[3];let{variableEditor:a}=Np(i),o=Dp(n,hh),s,c;t[4]!==r||t[5]!==a?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=r,t[5]=a,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,q.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=rh(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,Y.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d};function gh(e){let t=(0,J.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:a,sizeThresholdFirst:o,sizeThresholdSecond:s,storageKey:c}=e,l=n===void 0?1:n,u=o===void 0?100:o,d=s===void 0?100:s,f=Ps(),p;t[0]!==f||t[1]!==c?(p=bf(500,e=>{c&&f.set(c,e)}),t[0]=f,t[1]=c,t[2]=p):p=t[2];let m=p,h;t[3]!==i||t[4]!==f||t[5]!==c?(h=()=>{let e=c&&f.get(c);return e===_h||i===`first`?`first`:e===vh||i===`second`?`second`:null},t[3]=i,t[4]=f,t[5]=c,t[6]=h):h=t[6];let[g,_]=(0,q.useState)(h),v;t[7]!==g||t[8]!==a?(v=e=>{e!==g&&(_(e),a?.(e))},t[7]=g,t[8]=a,t[9]=v):v=t[9];let y=v,b=(0,q.useRef)(null),x=(0,q.useRef)(null),S=(0,q.useRef)(null),C=(0,q.useRef)(`${l}`),w;t[10]!==f||t[11]!==c?(w=()=>{let e=c&&f.get(c)||C.current;b.current&&(b.current.style.flex=e===_h||e===vh?C.current:e),S.current&&(S.current.style.flex=`1`)},t[10]=f,t[11]=c,t[12]=w):w=t[12];let T;t[13]!==r||t[14]!==f||t[15]!==c?(T=[r,f,c],t[13]=r,t[14]=f,t[15]=c,t[16]=T):T=t[16],(0,q.useEffect)(w,T);let E,D;t[17]!==g||t[18]!==f||t[19]!==c?(D=()=>{let e=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.left=`-1000px`,t.style.position=`absolute`,t.style.opacity=`0`,t.style.height=`500px`,t.style.width=`500px`,b.current)){let e=parseFloat(b.current.style.flex);(!Number.isFinite(e)||e<1)&&(b.current.style.flex=`1`)}},t=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.width=``,t.style.height=``,t.style.opacity=``,t.style.position=``,t.style.left=``,c)){let e=f.get(c);b.current&&e!==_h&&e!==vh&&(b.current.style.flex=e||C.current)}};g===`first`?e(`first`):t(`first`),g===`second`?e(`second`):t(`second`)},E=[g,f,c],t[17]=g,t[18]=f,t[19]=c,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,q.useEffect)(D,E);let O,k;t[22]!==r||t[23]!==y||t[24]!==u||t[25]!==d||t[26]!==m?(O=()=>{if(!x.current||!b.current||!S.current)return;let e=x.current,t=b.current,n=t.parentElement,i=r===`horizontal`?`clientX`:`clientY`,a=r===`horizontal`?`left`:`top`,o=r===`horizontal`?`right`:`bottom`,s=r===`horizontal`?`clientWidth`:`clientHeight`,c=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();let c=r[i]-e.getBoundingClientRect()[a],l=function(r){if(r.buttons===0)return f();let l=r[i]-n.getBoundingClientRect()[a]-c,p=n.getBoundingClientRect()[o]-r[i]+c-e[s];if(l<u)y(`first`),m(_h);else if(p<d)y(`second`),m(vh);else{y(null);let e=`${l/p}`;t.style.flex=e,m(e)}};function f(){document.removeEventListener(`mousemove`,l),document.removeEventListener(`mouseup`,f)}document.addEventListener(`mousemove`,l),document.addEventListener(`mouseup`,f)};e.addEventListener(`mousedown`,c);let l=function(){b.current&&(b.current.style.flex=C.current),m(C.current),y(null)};return e.addEventListener(`dblclick`,l),()=>{e.removeEventListener(`mousedown`,c),e.removeEventListener(`dblclick`,l)}},k=[r,y,u,d,m],t[22]=r,t[23]=y,t[24]=u,t[25]=d,t[26]=m,t[27]=O,t[28]=k):(O=t[27],k=t[28]),(0,q.useEffect)(O,k);let A;return t[29]===g?A=t[30]:(A={dragBarRef:x,hiddenElement:g,firstRef:b,setHiddenElement:_,secondRef:S},t[29]=g,t[30]=A),A}var _h=`hide-first`,vh=`hide-second`,yh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`button`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});yh.displayName=`UnStyledButton`;var bh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(7),r;n[0]!==e.className||n[1]!==e.state?(r=rh(`graphiql-button`,{success:`graphiql-button-success`,error:`graphiql-button-error`}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,Y.jsx)(`button`,{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});bh.displayName=`Button`;var xh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-button-group`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});xh.displayName=`ButtonGroup`;var Sh=Object.defineProperty,Ch=(e,t)=>Sh(e,`name`,{value:t,configurable:!0}),wh=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Th=q.forwardRef(Ch(function(e,t){return(0,Y.jsx)(Be.span,{...e,ref:t,style:{...wh,...e.style}})},`VisuallyHidden`)),Eh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(8),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-dialog-close`,e.className),n[0]=e.className,n[1]=r);let i,a;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(Th,{children:`Close dialog`}),a=(0,Y.jsx)(km,{}),n[2]=i,n[3]=a):(i=n[2],a=n[3]);let o;return n[4]!==e||n[5]!==t||n[6]!==r?(o=(0,Y.jsx)(s,{asChild:!0,children:(0,Y.jsxs)(yh,{...e,ref:t,type:`button`,className:r,children:[i,a]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=o):o=n[7],o});Eh.displayName=`Dialog.Close`;var Dh=Object.assign(e=>{let t=(0,J.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(M,{className:`graphiql-dialog-overlay`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=(0,Y.jsxs)(te,{children:[i,(0,Y.jsx)(Re,{className:`graphiql-dialog`,children:n})]}),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a?(o=(0,Y.jsx)(g,{...r,children:a}),t[6]=r,t[7]=a,t[8]=o):o=t[8],o},{Close:Eh,Title:S,Trigger:O,Description:A}),Oh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(d,{asChild:!0,children:(0,Y.jsx)(`button`,{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Oh.displayName=`DropdownMenuButton`;var kh=Object.assign(se,{Button:Oh,Item:e=>{let t=(0,J.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=rh(`graphiql-dropdown-item`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,Y.jsx)(Te,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},Content:e=>{let t=(0,J.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({children:n,align:a,sideOffset:o,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`start`:a,c=o===void 0?5:o,l;t[6]===r?l=t[7]:(l=rh(`graphiql-dropdown-content`,r),t[6]=r,t[7]=l);let u;return t[8]!==s||t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,Y.jsx)(pt,{children:(0,Y.jsx)(ht,{align:s,sideOffset:c,className:l,...i,children:n})}),t[8]=s,t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}}),Ah=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(18),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({children:r,onlyShowFirstChild:i,type:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=`graphiql-markdown-${o}`,c=i&&`graphiql-markdown-preview`,l;n[5]!==a.className||n[6]!==s||n[7]!==c?(l=rh(s,c,a.className),n[5]=a.className,n[6]=s,n[7]=c,n[8]=l):l=n[8];let u;n[9]===r?u=n[10]:(u=vf.render(r),n[9]=r,n[10]=u);let d;n[11]===u?d=n[12]:(d={__html:u},n[11]=u,n[12]=d);let f;return n[13]!==a||n[14]!==t||n[15]!==l||n[16]!==d?(f=(0,Y.jsx)(`div`,{...a,ref:t,className:l,dangerouslySetInnerHTML:d}),n[13]=a,n[14]=t,n[15]=l,n[16]=d,n[17]=f):f=n[17],f});Ah.displayName=`MarkdownContent`;var jh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-spinner`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});jh.displayName=`Spinner`;var Mh=(0,q.createContext)({});function Nh(e){let t=(0,q.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Ph=typeof window<`u`?q.useLayoutEffect:q.useEffect,Fh=(0,q.createContext)(null);function Ih(e,t){e.indexOf(t)===-1&&e.push(t)}function Lh(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Rh([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var zh=(e,t,n)=>n>t?t:n<e?e:n,Bh={},Vh=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Hh=e=>typeof e==`object`&&!!e,Uh=e=>/^0[^.\s]+$/u.test(e);function Wh(e){let t;return()=>(t===void 0&&(t=e()),t)}var Gh=e=>e,Kh=(...e)=>e.reduce((e,t)=>n=>t(e(n))),qh=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Jh=class{constructor(){this.subscriptions=[]}add(e){return Ih(this.subscriptions,e),()=>Lh(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Yh=e=>e*1e3,Xh=e=>e/1e3,Zh=(e,t)=>t?1e3/t*e:0,Qh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$h=1e-7,eg=12;function tg(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Qh(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>$h&&++s<eg);return o}function ng(e,t,n,r){if(e===t&&n===r)return Gh;let i=t=>tg(t,0,1,e,n);return e=>e===0||e===1?e:Qh(i(e),t,r)}var rg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ig=e=>t=>1-e(1-t),ag=ng(.33,1.53,.69,.99),og=ig(ag),sg=rg(og),cg=e=>e>=1?1:(e*=2)<1?.5*og(e):.5*(2-2**(-10*(e-1))),lg=e=>1-Math.sin(Math.acos(e)),ug=ig(lg),dg=rg(lg),fg=ng(.42,0,1,1),pg=ng(0,0,.58,1),mg=ng(.42,0,.58,1),hg=e=>Array.isArray(e)&&typeof e[0]!=`number`,gg=e=>Array.isArray(e)&&typeof e[0]==`number`,_g={linear:Gh,easeIn:fg,easeInOut:mg,easeOut:pg,circIn:lg,circInOut:dg,circOut:ug,backIn:og,backInOut:sg,backOut:ag,anticipate:cg},vg=e=>typeof e==`string`,yg=e=>{if(gg(e)){e.length;let[t,n,r,i]=e;return ng(t,n,r,i)}return vg(e)?(_g[e],`${e}`,_g[e]):e},bg=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function xg(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Sg=40;function Cg(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=bg.reduce((e,t)=>(e[t]=xg(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Bh.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Sg),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:bg.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<bg.length;t++)o[bg[t]].cancel(e)},state:i,steps:o}}var{schedule:wg,cancel:Tg,state:Eg,steps:Dg}=Cg(typeof requestAnimationFrame<`u`?requestAnimationFrame:Gh,!0),Og;function kg(){Og=void 0}var Ag={now:()=>(Og===void 0&&Ag.set(Eg.isProcessing||Bh.useManualTiming?Eg.timestamp:performance.now()),Og),set:e=>{Og=e,queueMicrotask(kg)}},jg=e=>t=>typeof t==`string`&&t.startsWith(e),Mg=jg(`--`),Ng=jg(`var(--`),Pg=e=>Ng(e)?Fg.test(e.split(`/*`)[0].trim()):!1,Fg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ig(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Lg={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Rg={...Lg,transform:e=>zh(0,1,e)},zg={...Lg,default:1},Bg=e=>Math.round(e*1e5)/1e5,Vg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hg(e){return e==null}var Ug=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wg=(e,t)=>n=>!!(typeof n==`string`&&Ug.test(n)&&n.startsWith(e)||t&&!Hg(n)&&Object.prototype.hasOwnProperty.call(n,t)),Gg=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Vg);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Kg=e=>zh(0,255,e),qg={...Lg,transform:e=>Math.round(Kg(e))},Jg={test:Wg(`rgb`,`red`),parse:Gg(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+qg.transform(e)+`, `+qg.transform(t)+`, `+qg.transform(n)+`, `+Bg(Rg.transform(r))+`)`};function Yg(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Xg={test:Wg(`#`),parse:Yg,transform:Jg.transform},Zg=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qg=Zg(`deg`),$g=Zg(`%`),Z=Zg(`px`),e_=Zg(`vh`),t_=Zg(`vw`),n_={...$g,parse:e=>$g.parse(e)/100,transform:e=>$g.transform(e*100)},r_={test:Wg(`hsl`,`hue`),parse:Gg(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+$g.transform(Bg(t))+`, `+$g.transform(Bg(n))+`, `+Bg(Rg.transform(r))+`)`},i_={test:e=>Jg.test(e)||Xg.test(e)||r_.test(e),parse:e=>Jg.test(e)?Jg.parse(e):r_.test(e)?r_.parse(e):Xg.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Jg.transform(e):r_.transform(e),getAnimatableNone:e=>{let t=i_.parse(e);return t.alpha=0,i_.transform(t)}},a_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o_(e){return isNaN(e)&&typeof e==`string`&&(e.match(Vg)?.length||0)+(e.match(a_)?.length||0)>0}var s_=`number`,c_=`color`,l_=`var`,u_=`var(`,d_="${}",f_=/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 p_(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(f_,e=>(i_.test(e)?(r.color.push(a),i.push(c_),n.push(i_.parse(e))):e.startsWith(u_)?(r.var.push(a),i.push(l_),n.push(e)):(r.number.push(a),i.push(s_),n.push(parseFloat(e))),++a,d_)).split(d_),indexes:r,types:i}}function m_(e){return p_(e).values}function h_({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===s_?Bg(r[a]):e===c_?i_.transform(r[a]):r[a]}return i}}function g_(e){return h_(p_(e))}var __=e=>typeof e==`number`?0:i_.test(e)?i_.getAnimatableNone(e):e,v_=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:__(e);function y_(e){let t=p_(e);return h_(t)(t.values.map((e,n)=>v_(e,t.split[n])))}var b_={test:o_,parse:m_,createTransformer:g_,getAnimatableNone:y_};function x_(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function S_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=x_(s,r,e+1/3),a=x_(s,r,e),o=x_(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function C_(e,t){return n=>n>0?t:e}var w_=(e,t,n)=>e+(t-e)*n,T_=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},E_=[Xg,Jg,r_],D_=e=>E_.find(t=>t.test(e));function O_(e){let t=D_(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===r_&&(n=S_(n)),n}var k_=(e,t)=>{let n=O_(e),r=O_(t);if(!n||!r)return C_(e,t);let i={...n};return e=>(i.red=T_(n.red,r.red,e),i.green=T_(n.green,r.green,e),i.blue=T_(n.blue,r.blue,e),i.alpha=w_(n.alpha,r.alpha,e),Jg.transform(i))},A_=new Set([`none`,`hidden`]);function j_(e,t){return A_.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function M_(e,t){return n=>w_(e,t,n)}function N_(e){return typeof e==`number`?M_:typeof e==`string`?Pg(e)?C_:i_.test(e)?k_:L_:Array.isArray(e)?P_:typeof e==`object`?i_.test(e)?k_:F_:C_}function P_(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>N_(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function F_(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=N_(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function I_(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var L_=(e,t)=>{let n=b_.createTransformer(t),r=p_(e),i=p_(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?A_.has(e)&&!i.values.length||A_.has(t)&&!r.values.length?j_(e,t):Kh(P_(I_(r,i),i.values),n):(`${e}${t}`,C_(e,t))};function R_(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?w_(e,t,n):N_(e)(e,t)}var z_=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>wg.update(t,e),stop:()=>Tg(t),now:()=>Eg.isProcessing?Eg.timestamp:Ag.now()}},B_=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},V_=2e4;function H_(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}function U_(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(H_(r),V_);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Xh(i)}}var W_={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 G_(e,t){return e*Math.sqrt(1-t*t)}var K_=12;function q_(e,t,n){let r=n;for(let n=1;n<K_;n++)r-=e(r)/t(r);return r}var J_=.001;function Y_({duration:e=W_.duration,bounce:t=W_.bounce,velocity:n=W_.velocity,mass:r=W_.mass}){let i,a;W_.maxDuration;let o=1-t;o=zh(W_.minDamping,W_.maxDamping,o),e=zh(W_.minDuration,W_.maxDuration,Xh(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=G_(t,o),c=Math.exp(-i);return J_-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=G_(t**2,o);return(-i(t)+J_>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=q_(i,a,s);if(e=Yh(e),isNaN(c))return{stiffness:W_.stiffness,damping:W_.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var X_=[`duration`,`bounce`],Z_=[`stiffness`,`damping`,`mass`];function Q_(e,t){return t.some(t=>e[t]!==void 0)}function $_(e){let t={velocity:W_.velocity,stiffness:W_.stiffness,damping:W_.damping,mass:W_.mass,isResolvedFromDuration:!1,...e};if(!Q_(e,Z_)&&Q_(e,X_)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*zh(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:W_.mass,stiffness:i,damping:a}}else{let n=Y_({...e,velocity:0});t={...t,...n,mass:W_.mass},t.isResolvedFromDuration=!0}}return t}function ev(e=W_.visualDuration,t=W_.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=$_({...n,velocity:-Xh(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Xh(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?W_.restSpeed.granular:W_.restSpeed.default,i||=v?W_.restDelta.granular:W_.restDelta.default;let y,b,x,S,C,w;if(h<1)x=G_(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Yh(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Yh(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Yh(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(H_(T),V_),t=B_(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}ev.applyToOptions=e=>{let t=U_(e,100,ev);return e.ease=t.ease,e.duration=Yh(t.duration),e.type=`keyframes`,e};var tv=5;function nv(e,t,n){let r=Math.max(t-tv,0);return Zh(n-e(r),t-r)}function rv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=ev({keyframes:[f.value,m(f.value)],velocity:nv(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function iv(e,t,n){let r=[],i=n||Bh.mix||R_,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Kh(Array.isArray(t)?t[n]||Gh:t,a)),r.push(a)}return r}function av(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=iv(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=qh(e[r],e[r+1],n);return s[r](i)};return n?t=>l(zh(e[0],e[a-1],t)):l}function ov(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=qh(0,t,r);e.push(w_(n,1,i))}}function sv(e){let t=[0];return ov(t,e.length-1),t}function cv(e,t){return e.map(e=>e*t)}function lv(e,t){return e.map(()=>t||mg).splice(0,e.length-1)}function uv({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=hg(r)?r.map(yg):yg(r),a={done:!1,value:t[0]},o=av(cv(n&&n.length===t.length?n:sv(t),e),t,{ease:Array.isArray(i)?i:lv(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var dv=e=>e!==null;function fv(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(dv),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var pv={decay:rv,inertia:rv,tween:uv,keyframes:uv,spring:ev};function mv(e){typeof e.type==`string`&&(e.type=pv[e.type])}var hv=class{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)}},gv=e=>e/100,_v=class extends hv{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!==Ag.now()&&this.tick(Ag.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;mv(e);let{type:t=uv,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||uv;s!==uv&&typeof o[0]!=`number`&&(this.mixKeyframes=Kh(gv,R_(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=H_(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=zh(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==rv&&(b.value=fv(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Xh(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Xh(e)}get time(){return Xh(this.currentTime)}set time(e){e=Yh(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?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 nv(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(Ag.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Xh(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=z_,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Ag.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&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}stopDriver(){this.driver&&=(this.driver.stop(),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)}};function vv(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var yv=e=>e*180/Math.PI,bv=e=>Sv(yv(Math.atan2(e[1],e[0]))),xv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:bv,rotateZ:bv,skewX:e=>yv(Math.atan(e[1])),skewY:e=>yv(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Sv=e=>(e%=360,e<0&&(e+=360),e),Cv=bv,wv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Tv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ev={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:wv,scaleY:Tv,scale:e=>(wv(e)+Tv(e))/2,rotateX:e=>Sv(yv(Math.atan2(e[6],e[5]))),rotateY:e=>Sv(yv(Math.atan2(-e[2],e[0]))),rotateZ:Cv,rotate:Cv,skewX:e=>yv(Math.atan(e[4])),skewY:e=>yv(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Dv(e){return+!!e.includes(`scale`)}function Ov(e,t){if(!e||e===`none`)return Dv(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ev,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xv,i=t}if(!i)return Dv(t);let a=r[t],o=i[1].split(`,`).map(Av);return typeof a==`function`?a(o):o[a]}var kv=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ov(n,t)};function Av(e){return parseFloat(e.trim())}var jv=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Mv=new Set([...jv,`pathRotation`]),Nv=e=>e===Lg||e===Z,Pv=new Set([`x`,`y`,`z`]),Fv=jv.filter(e=>!Pv.has(e));function Iv(e){let t=[];return Fv.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Lv={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-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})=>Ov(t,`x`),y:(e,{transform:t})=>Ov(t,`y`)};Lv.translateX=Lv.x,Lv.translateY=Lv.y;var Rv=new Set,zv=!1,Bv=!1,Vv=!1;function Hv(){if(Bv){let e=Array.from(Rv).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Iv(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=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Bv=!1,zv=!1,Rv.forEach(e=>e.complete(Vv)),Rv.clear()}function Uv(){Rv.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bv=!0)})}function Wv(){Vv=!0,Uv(),Hv(),Vv=!1}var Gv=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Rv.add(this),zv||(zv=!0,wg.read(Uv),wg.resolveKeyframes(Hv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}vv(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Rv.delete(this)}cancel(){this.state===`scheduled`&&(Rv.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Kv=e=>e.startsWith(`--`);function qv(e,t,n){Kv(t)?e.style.setProperty(t,n):e.style[t]=n}var Jv={};function Yv(e,t){let n=Wh(e);return()=>Jv[t]??n()}var Xv=Yv(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Zv=Yv(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Qv=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$v={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Qv([0,.65,.55,1]),circOut:Qv([.55,0,1,.45]),backIn:Qv([.31,.01,.66,-.59]),backOut:Qv([.33,1.53,.69,.99])};function ey(e,t){if(e)return typeof e==`function`?Zv()?B_(e,t):`ease-out`:gg(e)?Qv(e):Array.isArray(e)?e.map(e=>ey(e,t)||$v.easeOut):$v[e]}function ty(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ey(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function ny(e){return typeof e==`function`&&`applyToOptions`in e}function ry({type:e,...t}){return ny(e)&&Zv()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var iy=class extends hv{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=ry(e);this.animation=ty(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=fv(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),qv(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(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(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Xh(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Xh(e)}get time(){return Xh(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Yh(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 this.finishedTime===null?this.animation.playState:`finished`}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:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Xv()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Gh):r(this)}},ay={anticipate:cg,backInOut:sg,circInOut:dg};function oy(e){return e in ay}function sy(e){typeof e.ease==`string`&&oy(e.ease)&&(e.ease=ay[e.ease])}var cy=10,ly=class extends iy{constructor(e){sy(e),mv(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new _v({...a,autoplay:!1}),s=Math.max(cy,Ag.now()-this.startTime),c=zh(0,cy,s-cy),l=o.sample(s).value,{name:u}=this.options;i&&u&&qv(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},uy=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(b_.test(e)||e===`0`)&&!e.startsWith(`url(`));function dy(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function fy(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=uy(i,t),s=uy(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:dy(e)||(n===`spring`||ny(n))&&r}function py(e){e.duration=0,e.type=`keyframes`}var my=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),hy=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function gy(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&hy.test(e[t]))return!0;return!1}var _y=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),vy=Wh(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function yy(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return vy()&&n&&(my.has(n)||_y.has(n)&&gy(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var by=40,xy=class extends hv{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ag.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Gv;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Ag.now();let u=!0;fy(e,i,a,o)||(u=!1,(Bh.instantAnimations||!s)&&l?.(fv(e,n,t)),e[0]=e[e.length-1],py(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>by?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&yy(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new ly({...d,element:p})}catch{m=new _v(d)}else m=new _v(d);m.finished.then(()=>{this.notifyFinished()}).catch(Gh),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}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(),Wv()),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()}};function Sy(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Cy=30,wy=e=>!isNaN(parseFloat(e)),Ty={current:void 0},Ey=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Ag.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=Ag.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wy(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 Jh);let n=this.events[e].add(t);return e===`change`?()=>{n(),wg.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||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ty.current&&Ty.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Ag.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Cy)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Cy);return Zh(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}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 Dy(e,t){return new Ey(e,t)}function Oy(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ky(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Oy(n,e)}var Ay={type:`spring`,stiffness:500,damping:25,restSpeed:10},jy=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),My={type:`keyframes`,duration:.8},Ny={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Py=(e,{keyframes:t})=>t.length>2?My:Mv.has(e)?e.startsWith(`scale`)?jy(t[1]):Ay:Ny,Fy=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Iy(e){for(let t in e)if(!Fy.has(t))return!0;return!1}var Ly=(e,t,n,r={},i,a)=>o=>{let s=ky(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Yh(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Iy(s)||Object.assign(u,Py(e,u)),u.duration&&=Yh(u.duration),u.repeatDelay&&=Yh(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(py(u),u.delay===0&&(d=!0)),(Bh.instantAnimations||Bh.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,py(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=fv(u.keyframes,s);if(e!==void 0){wg.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new _v(u):new xy(u)},Ry=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zy(e){let t=Ry.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function By(e,t,n=1){`${e}`;let[r,i]=zy(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Vh(e)?parseFloat(e):e}return Pg(i)?By(i,t,n+1):i}function Vy(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Hy(e,t,n,r){if(typeof t==`function`){let[i,a]=Vy(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Vy(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Uy(e,t,n){let r=e.getProps();return Hy(r,t,n===void 0?r.custom:n,e)}var Wy=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...jv]),Gy=e=>Array.isArray(e);function Ky(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dy(n))}function qy(e){return Gy(e)?e[e.length-1]||0:e}function Jy(e,t){let{transitionEnd:n={},transition:r={},...i}=Uy(e,t)||{};i={...i,...n};for(let t in i)Ky(e,t,qy(i[t]))}var Yy=e=>!!(e&&e.getVelocity);function Xy(e){return!!(Yy(e)&&e.add)}function Zy(e,t){let n=e.getValue(`willChange`);if(Xy(n))return n.add(t);if(!n&&Bh.WillChange){let n=new Bh.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Qy(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var $y=`data-`+Qy(`framerAppearId`);function eb(e){return e.props[$y]}function tb({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function nb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Oy(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&tb(f,t))continue;let o={delay:n,...ky(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){wg.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=eb(e);if(n){let e=window.MotionHandoffAnimation(n,t,wg);e!==null&&(o.startTime=e,p=!0)}}Zy(e,t);let m=l??e.shouldReduceMotion;r.start(Ly(t,r,i,m&&Wy.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>wg.update(()=>{o&&Jy(e,o)});d.length?Promise.all(d).then(t):t()}return d}function rb(e,t,n={}){let r=Uy(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(nb(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ib(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function ib(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(rb(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Sy(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ab(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>rb(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=rb(e,t,n);else{let i=typeof t==`function`?Uy(e,t,n.custom):t;r=Promise.all(nb(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ob={test:e=>e===`auto`,parse:e=>e},sb=e=>t=>t.test(e),cb=[Lg,Z,$g,Qg,t_,e_,ob],lb=e=>cb.find(sb(e));function ub(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Uh(e)}var db=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function fb(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Vg)||[];if(!r)return e;let i=n.replace(r,``),a=+!!db.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var pb=/\b([a-z-]*)\(.*?\)/gu,mb={...b_,getAnimatableNone:e=>{let t=e.match(pb);return t?t.map(fb).join(` `):e}},hb={...b_,getAnimatableNone:e=>{let t=b_.parse(e);return b_.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},gb={...Lg,transform:Math.round},_b={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,inset:Z,insetBlock:Z,insetBlockStart:Z,insetBlockEnd:Z,insetInline:Z,insetInlineStart:Z,insetInlineEnd:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,paddingBlock:Z,paddingBlockStart:Z,paddingBlockEnd:Z,paddingInline:Z,paddingInlineStart:Z,paddingInlineEnd:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,marginBlock:Z,marginBlockStart:Z,marginBlockEnd:Z,marginInline:Z,marginInlineStart:Z,marginInlineEnd:Z,fontSize:Z,backgroundPositionX:Z,backgroundPositionY:Z,rotate:Qg,pathRotation:Qg,rotateX:Qg,rotateY:Qg,rotateZ:Qg,scale:zg,scaleX:zg,scaleY:zg,scaleZ:zg,skew:Qg,skewX:Qg,skewY:Qg,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:Rg,originX:n_,originY:n_,originZ:Z,zIndex:gb,fillOpacity:Rg,strokeOpacity:Rg,numOctaves:gb},vb={..._b,color:i_,backgroundColor:i_,outlineColor:i_,fill:i_,stroke:i_,borderColor:i_,borderTopColor:i_,borderRightColor:i_,borderBottomColor:i_,borderLeftColor:i_,filter:mb,WebkitFilter:mb,mask:hb,WebkitMask:hb},yb=e=>vb[e],bb=new Set([mb,hb]);function xb(e,t){let n=yb(e);return bb.has(n)||(n=b_),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Sb=new Set([`auto`,`none`,`0`]);function Cb(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Sb.has(t)&&p_(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=xb(n,i)}var wb=class extends Gv{constructor(e,t,n,r,i){super(e,t,n,r,i,!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 r=e[n];if(typeof r==`string`&&(r=r.trim(),Pg(r))){let i=By(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Wy.has(n)||e.length!==2)return;let[r,i]=e,a=lb(r),o=lb(i);if(Ig(r)!==Ig(i)&&Lv[n])this.needsMeasurement=!0;else if(a!==o){if(Nv(a)&&Nv(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Lv[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ub(e[t]))&&n.push(t);n.length&&Cb(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lv[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Lv[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Tb=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Eb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Db=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ob(e){return Hh(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:kb,cancel:Ab}=Cg(queueMicrotask,!1),jb={x:!1,y:!1};function Mb(){return jb.x||jb.y}function Nb(e){return e===`x`||e===`y`?jb[e]?null:(jb[e]=!0,()=>{jb[e]=!1}):jb.x||jb.y?null:(jb.x=jb.y=!0,()=>{jb.x=jb.y=!1})}function Pb(e,t){let n=Eb(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Fb(e){return!(e.pointerType===`touch`||Mb())}function Ib(e,t,n={}){let[r,i,a]=Pb(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Fb(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Lb=(e,t)=>t?e===t||Lb(e,t.parentElement):!1,Rb=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,zb=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Bb(e){return zb.has(e.tagName)||e.isContentEditable===!0}var Vb=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Hb(e){return Vb.has(e.tagName)||e.isContentEditable===!0}var Ub=new WeakSet;function Wb(e){return t=>{t.key===`Enter`&&e(t)}}function Gb(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Kb=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Wb(()=>{if(Ub.has(n))return;Gb(n,`down`);let e=Wb(()=>{Gb(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Gb(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function qb(e){return Rb(e)&&!Mb()}var Jb=new WeakSet;function Yb(e,t,n={}){let[r,i,a]=Pb(e,n),o=e=>{let r=e.currentTarget;if(!qb(e)||Jb.has(e))return;Ub.add(r),n.stopPropagation&&Jb.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Ub.has(r)&&Ub.delete(r),qb(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Lb(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ob(e)&&(e.addEventListener(`focus`,e=>Kb(e,i)),!Bb(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Xb(e){return Hh(e)&&`ownerSVGElement`in e}var Zb=new WeakMap,Qb,$b=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Xb(r)&&`getBBox`in r?r.getBBox()[t]:r[n],ex=$b(`inline`,`width`,`offsetWidth`),tx=$b(`block`,`height`,`offsetHeight`);function nx({target:e,borderBoxSize:t}){Zb.get(e)?.forEach(n=>{n(e,{get width(){return ex(e,t)},get height(){return tx(e,t)}})})}function rx(e){e.forEach(nx)}function ix(){typeof ResizeObserver<`u`&&(Qb=new ResizeObserver(rx))}function ax(e,t){Qb||ix();let n=Eb(e);return n.forEach(e=>{let n=Zb.get(e);n||(n=new Set,Zb.set(e,n)),n.add(t),Qb?.observe(e)}),()=>{n.forEach(e=>{let n=Zb.get(e);n?.delete(t),n?.size||Qb?.unobserve(e)})}}var ox=new Set,sx;function cx(){sx=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ox.forEach(t=>t(e))},window.addEventListener(`resize`,sx)}function lx(e){return ox.add(e),sx||cx(),()=>{ox.delete(e),!ox.size&&typeof sx==`function`&&(window.removeEventListener(`resize`,sx),sx=void 0)}}function ux(e,t){return typeof e==`function`?lx(e):ax(e,t)}var dx={value:null,addProjectionMetrics:null};function fx(e){return Xb(e)&&e.tagName===`svg`}function px(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=av(i,a,o);return t?s(r):s}var mx=[...cb,i_,b_],hx=e=>mx.find(sb(e)),gx=()=>({translate:0,scale:1,origin:0,originPoint:0}),_x=()=>({x:gx(),y:gx()}),vx=()=>({min:0,max:0}),yx=()=>({x:vx(),y:vx()}),bx=new WeakMap;function xx(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Sx(e){return typeof e==`string`||Array.isArray(e)}var Cx=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],wx=[`initial`,...Cx];function Tx(e){return xx(e.animate)||wx.some(t=>Sx(e[t]))}function Ex(e){return!!(Tx(e)||e.variants)}function Dx(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Yy(i))e.addValue(r,i);else if(Yy(a))e.addValue(r,Dy(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Dy(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ox={current:null},kx={current:!1},Ax=typeof window<`u`;function jx(){if(kx.current=!0,Ax){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ox.current=e.matches;e.addEventListener(`change`,t),t()}else Ox.current=!1}}var Mx=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Nx={};function Px(e){Nx=e}function Fx(){return Nx}var Ix=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Gv,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=Ag.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,wg.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Tx(t),this.isVariantNode=Ex(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Yy(t)&&t.set(c[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,bx.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(kx.current||jx(),this.shouldReduceMotion=Ox.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Tg(this.notifyUpdate),Tg(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&my.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new iy({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Yh(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Mv.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&wg.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Nx){let t=Nx[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(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):yx()}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<Mx.length;t++){let n=Mx[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Dx(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 n===void 0&&t!==void 0&&(n=Dy(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Vh(n)||Uh(n))?n=parseFloat(n):!hx(n)&&b_.test(t)&&(n=xb(e,t)),this.setBaseTarget(e,Yy(n)?n.get():n)),Yy(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Hy(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Yy(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Jh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){kb.render(this.render)}},Lx=class extends Ix{constructor(){super(...arguments),this.KeyframeResolver=wb}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?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;Yy(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Rx=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function zx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vx(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hx(e){return e===void 0||e===1}function Ux({scale:e,scaleX:t,scaleY:n}){return!Hx(e)||!Hx(t)||!Hx(n)}function Wx(e){return Ux(e)||Gx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Gx(e){return Kx(e.x)||Kx(e.y)}function Kx(e){return e&&e!==`0%`}function qx(e,t,n){return n+t*(e-n)}function Jx(e,t,n,r,i){return i!==void 0&&(e=qx(e,i,r)),qx(e,n,r)+t}function Yx(e,t=0,n=1,r,i){e.min=Jx(e.min,t,n,r,i),e.max=Jx(e.max,t,n,r,i)}function Xx(e,{x:t,y:n}){Yx(e.x,t.translate,t.scale,t.originPoint),Yx(e.y,n.translate,n.scale,n.originPoint)}var Zx=.999999999999,Qx=1.0000000000001;function $x(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(eS(e.x,-a.scroll.offset.x),eS(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Xx(e,o)),r&&Wx(a.latestValues)&&rS(e,a.latestValues,a.layout?.layoutBox))}t.x<Qx&&t.x>Zx&&(t.x=1),t.y<Qx&&t.y>Zx&&(t.y=1)}function eS(e,t){e.min+=t,e.max+=t}function tS(e,t,n,r,i=.5){Yx(e,t,n,w_(e.min,e.max,i),r)}function nS(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function rS(e,t,n){let r=n??e;tS(e.x,nS(t.x,r.x),t.scaleX,t.scale,t.originX),tS(e.y,nS(t.y,r.y),t.scaleY,t.scale,t.originY)}function iS(e,t){return zx(Vx(e.getBoundingClientRect(),t))}function aS(e,t,n){let r=iS(e,n),{scroll:i}=t;return i&&(eS(r.x,i.offset.x),eS(r.y,i.offset.y)),r}var oS={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},sS=jv.length;function cS(e,t,n){let r=``,i=!0;for(let a=0;a<sS;a++){let o=jv[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Db(s,_b[o]);if(!c){i=!1;let t=oS[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Db(a,_b.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function lS(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Mv.has(e))o=!0;else if(Mg(e))i[e]=n;else{let t=Db(n,_b[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=cS(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function uS(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function dS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var fS={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(Z.test(e))e=parseFloat(e);else return e}return`${dS(e,t.target.x)}% ${dS(e,t.target.y)}%`}},pS={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=b_.parse(e);if(i.length>5)return r;let a=b_.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=w_(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},mS={borderRadius:{...fS,applyTo:[...Tb]},borderTopLeftRadius:fS,borderTopRightRadius:fS,borderBottomLeftRadius:fS,borderBottomRightRadius:fS,boxShadow:pS};function hS(e,{layout:t,layoutId:n}){return Mv.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!mS[e]||e===`opacity`)}function gS(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Yy(r[t])||i&&Yy(i[t])||hS(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function _S(e){return window.getComputedStyle(e)}var vS=class extends Lx{constructor(){super(...arguments),this.type=`html`,this.renderInstance=uS}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Mv.has(t))return this.projection?.isProjecting?Dv(t):kv(e,t);{let n=_S(e),r=(Mg(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return iS(e,t)}build(e,t,n){lS(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return gS(e,t,n)}},yS={offset:`stroke-dashoffset`,array:`stroke-dasharray`},bS={offset:`strokeDashoffset`,array:`strokeDasharray`};function xS(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?yS:bS;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var SS=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function CS(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(lS(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of SS)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&xS(d,i,a,o,!1)}var wS=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`]),TS=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ES(e,t,n,r){uS(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(wS.has(n)?n:Qy(n),t.attrs[n])}function DS(e,t,n){let r=gS(e,t,n);for(let n in e)if(Yy(e[n])||Yy(t[n])){let t=jv.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var OS=class extends Lx{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=yx}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Mv.has(t)){let e=yb(t);return e&&e.default||0}return t=wS.has(t)?t:Qy(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return DS(e,t,n)}build(e,t,n){CS(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ES(e,t,n,r)}mount(e){this.isSVGTag=TS(e.tagName),super.mount(e)}},kS=wx.length;function AS(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&AS(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<kS;n++){let r=wx[n],i=e.props[r];(Sx(i)||i===!1)&&(t[r]=i)}return t}function jS(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var MS=[...Cx].reverse(),NS=Cx.length;function PS(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ab(e,t,n)))}function FS(e){let t=PS(e),n=RS(),r=!0,i=!1,a=t=>(n,r)=>{let i=Uy(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=AS(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<NS;t++){let p=MS[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Sx(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||xx(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=IS(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Gy(t)&&Gy(n)?!jS(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Uy(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Sy(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Uy(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=RS(),i=!0}}}function IS(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!jS(t,e):!1}function LS(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function RS(){return{animate:LS(!0),whileInView:LS(),whileHover:LS(),whileTap:LS(),whileDrag:LS(),whileFocus:LS(),exit:LS()}}function zS(e,t){e.min=t.min,e.max=t.max}function BS(e,t){zS(e.x,t.x),zS(e.y,t.y)}function VS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var HS=.9999,US=1.0001,WS=-.01,GS=.01;function KS(e){return e.max-e.min}function qS(e,t,n){return Math.abs(e-t)<=n}function JS(e,t,n,r=.5){e.origin=r,e.originPoint=w_(t.min,t.max,e.origin),e.scale=KS(n)/KS(t),e.translate=w_(n.min,n.max,e.origin)-e.originPoint,(e.scale>=HS&&e.scale<=US||isNaN(e.scale))&&(e.scale=1),(e.translate>=WS&&e.translate<=GS||isNaN(e.translate))&&(e.translate=0)}function YS(e,t,n,r){JS(e.x,t.x,n.x,r?r.originX:void 0),JS(e.y,t.y,n.y,r?r.originY:void 0)}function XS(e,t,n,r=0){e.min=(r?w_(n.min,n.max,r):n.min)+t.min,e.max=e.min+KS(t)}function ZS(e,t,n,r){XS(e.x,t.x,n.x,r?.x),XS(e.y,t.y,n.y,r?.y)}function QS(e,t,n,r=0){let i=r?w_(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+KS(t)}function $S(e,t,n,r){QS(e.x,t.x,n.x,r?.x),QS(e.y,t.y,n.y,r?.y)}function eC(e,t,n,r,i){return e-=t,e=qx(e,1/n,r),i!==void 0&&(e=qx(e,1/i,r)),e}function tC(e,t=0,n=1,r=.5,i,a=e,o=e){if($g.test(t)&&(t=parseFloat(t),t=w_(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=w_(a.min,a.max,r);e===a&&(s-=t),e.min=eC(e.min,t,n,s,i),e.max=eC(e.max,t,n,s,i)}function nC(e,t,[n,r,i],a,o){tC(e,t[n],t[r],t[i],t.scale,a,o)}var rC=[`x`,`scaleX`,`originX`],iC=[`y`,`scaleY`,`originY`];function aC(e,t,n,r){nC(e.x,t,rC,n?n.x:void 0,r?r.x:void 0),nC(e.y,t,iC,n?n.y:void 0,r?r.y:void 0)}function oC(e){return e.translate===0&&e.scale===1}function sC(e){return oC(e.x)&&oC(e.y)}function cC(e,t){return e.min===t.min&&e.max===t.max}function lC(e,t){return cC(e.x,t.x)&&cC(e.y,t.y)}function uC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dC(e,t){return uC(e.x,t.x)&&uC(e.y,t.y)}function fC(e){return KS(e.x)/KS(e.y)}function pC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function mC(e){return[e(`x`),e(`y`)]}function hC(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var gC=Tb.length,_C=e=>typeof e==`string`?parseFloat(e):e,vC=e=>typeof e==`number`||Z.test(e);function yC(e,t,n,r,i,a){i?(e.opacity=w_(0,n.opacity??1,xC(r)),e.opacityExit=w_(t.opacity??1,0,SC(r))):a&&(e.opacity=w_(t.opacity??1,n.opacity??1,r));for(let i=0;i<gC;i++){let a=Tb[i],o=bC(t,a),s=bC(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||vC(o)===vC(s)?(e[a]=Math.max(w_(_C(o),_C(s),r),0),($g.test(s)||$g.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=w_(t.rotate||0,n.rotate||0,r))}function bC(e,t){return e[t]===void 0?e.borderRadius:e[t]}var xC=CC(0,.5,ug),SC=CC(.5,.95,Gh);function CC(e,t,n){return r=>r<e?0:r>t?1:n(qh(e,t,r))}function wC(e,t,n){let r=Yy(e)?e:Dy(e);return r.start(Ly(``,r,t,n)),r.animation}function TC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var EC=(e,t)=>e.depth-t.depth,DC=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ih(this.children,e),this.isDirty=!0}remove(e){Lh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(EC),this.isDirty=!1,this.children.forEach(e)}};function OC(e,t){let n=Ag.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Tg(r),e(a-t))};return wg.setup(r,!0),()=>Tg(r)}function kC(e){return Yy(e)?e.get():e}var AC=class{constructor(){this.members=[]}add(e){Ih(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 r=n.instance;r&&r.isConnected!==!1||n.snapshot||(Lh(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Lh(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(e.isPresent!==!1&&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:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(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)),e.options.crossfade===!1&&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)}},jC={hasAnimatedSinceResize:!0,hasEverUpdated:!1},MC={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},NC=[``,`X`,`Y`,`Z`],PC=1e3,FC=0;function IC(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function LC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=eb(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,wg,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&LC(r)}function RC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=FC++,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,dx.value&&(MC.nodes=MC.calculatedTargetDeltas=MC.calculatedProjections=0),this.nodes.forEach(VC),this.nodes.forEach(XC),this.nodes.forEach(ZC),this.nodes.forEach(HC),dx.addProjectionMetrics&&dx.addProjectionMetrics(MC)},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 DC)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Jh),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=Xb(t)&&!fx(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;wg.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=OC(i,250),jC.hasAnimatedSinceResize&&(jC.hasAnimatedSinceResize=!1,this.nodes.forEach(YC)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||iw,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!dC(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ky(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||YC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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(),Tg(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(QC),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&&LC(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,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(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(GC),this.nodes.forEach(WC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(KC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qC),this.nodes.forEach(JC),this.nodes.forEach(zC),this.nodes.forEach(BC)):this.nodes.forEach(KC),this.clearAllSnapshots();let e=Ag.now();Eg.delta=zh(0,1e3/60,e-Eg.timestamp),Eg.timestamp=e,Eg.isProcessing=!0,Dg.update.process(Eg),Dg.preRender.process(Eg),Dg.render.process(Eg),Eg.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UC),this.sharedNodes.forEach($C)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wg.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wg.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!KS(this.snapshot.measuredBox.x)&&!KS(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||=yx(),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=r(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(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!sC(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Wx(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),cw(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return yx();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(uw))){let{scroll:e}=this.root;e&&(eS(t.x,e.offset.x),eS(t.y,e.offset.y))}return t}removeElementScroll(e){let t=yx();if(BS(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&BS(t,e),eS(t.x,i.offset.x),eS(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||yx();BS(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(eS(r.x,-n.scroll.offset.x),eS(r.y,-n.scroll.offset.y)),Wx(n.latestValues)&&rS(r,n.latestValues,n.layout?.layoutBox)}return Wx(this.latestValues)&&rS(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=yx();BS(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Wx(n.latestValues))continue;let r;n.instance&&(Ux(n.latestValues)&&n.updateSnapshot(),r=yx(),BS(r,n.measurePageBox())),aC(t,n.latestValues,n.snapshot?.layoutBox,r)}return Wx(this.latestValues)&&aC(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||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!==Eg.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,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:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Eg.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=yx(),this.targetWithTransforms=yx()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZS(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):BS(this.target,this.layout.layoutBox),Xx(this.target,this.targetDelta)):BS(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),dx.value&&MC.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ux(this.parent.latestValues)||Gx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent: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=yx(),this.relativeTargetOrigin=yx(),$S(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),BS(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===Eg.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;BS(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;$x(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=yx());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(VS(this.prevProjectionDelta.x,this.projectionDelta.x),VS(this.prevProjectionDelta.y,this.projectionDelta.y)),YS(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&pC(this.projectionDelta.x,this.prevProjectionDelta.x)&&pC(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),dx.value&&MC.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}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=_x(),this.projectionDelta=_x(),this.projectionDeltaWithTransform=_x()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=_x();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=yx(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(rw));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=w_(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=w_(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(ew(o.x,e.x,n),ew(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($S(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),nw(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&lC(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=yx(),BS(f,this.relativeTarget)),c&&(this.animationValues=a,yC(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Tg(this.pendingAnimation),void 0),this.pendingAnimation=wg.update(()=>{jC.hasAnimatedSinceResize=!0,this.motionValue||=Dy(0),this.motionValue.jump(0,!1),this.currentAnimation=wC(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{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(PC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&lw(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||yx();let t=KS(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=KS(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}BS(t,n),rS(t,i),YS(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new AC),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 r=this.getStack();r&&r.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):!1}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 r={};n.z&&IC(`z`,e,r,this.animationValues);for(let t=0;t<NC.length;t++)IC(`rotate${NC[t]}`,e,r,this.animationValues),IC(`skew${NC[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[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=kC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=kC(t?.pointerEvents)||``),this.hasProjected&&!Wx(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=hC(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in mS){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=mS[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?kC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(WC),this.root.sharedNodes.clear()}}}function zC(e){e.updateLayout()}function BC(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)mC(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=KS(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;zS(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else lw(i,t.layoutBox,n)&&mC(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=KS(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=_x();YS(o,n,t.layoutBox);let s=_x();a?YS(s,e.applyTransform(r,!0),t.measuredBox):YS(s,n,t.layoutBox);let c=!sC(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=yx();$S(s,t.layoutBox,i.layoutBox,o);let c=yx();$S(c,n,a.layoutBox,o),dC(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function VC(e){dx.value&&MC.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function HC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function UC(e){e.clearSnapshot()}function WC(e){e.clearMeasurements()}function GC(e){e.isLayoutDirty=!0,e.updateLayout()}function KC(e){e.isLayoutDirty=!1}function qC(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function JC(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function YC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function XC(e){e.resolveTargetDelta()}function ZC(e){e.calcProjection()}function QC(e){e.resetSkewAndRotation()}function $C(e){e.removeLeadSnapshot()}function ew(e,t,n){e.translate=w_(t.translate,0,n),e.scale=w_(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tw(e,t,n,r){e.min=w_(t.min,n.min,r),e.max=w_(t.max,n.max,r)}function nw(e,t,n,r){tw(e.x,t.x,n.x,r),tw(e.y,t.y,n.y,r)}function rw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var iw={duration:.45,ease:[.4,0,.1,1]},aw=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ow=aw(`applewebkit/`)&&!aw(`chrome/`)?Math.round:Gh;function sw(e){e.min=ow(e.min),e.max=ow(e.max)}function cw(e){sw(e.x),sw(e.y)}function lw(e,t,n){return e===`position`||e===`preserve-aspect`&&!qS(fC(t),fC(n),.2)}function uw(e){return e!==e.root&&e.scroll?.wasRoot}var dw=RC({attachResizeListener:(e,t)=>TC(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fw={current:void 0},pw=RC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fw.current){let e=new dw({});e.mount(window),e.setOptions({layoutScroll:!0}),fw.current=e}return fw.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),mw=(0,q.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function hw(e=!0){let t=(0,q.useContext)(Fh);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,q.useId)();(0,q.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,q.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var gw=(0,q.createContext)({strict:!1}),_w={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`]},vw=!1;function yw(){if(vw)return;let e={};for(let t in _w)e[t]={isEnabled:e=>_w[t].some(t=>!!e[t])};Px(e),vw=!0}function bw(){return yw(),Fx()}function xw(e){let t=bw();for(let n in e)t[n]={...t[n],...e[n]};Px(t)}var Sw=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`.split(`.`));function Cw(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Sw.has(e)}var ww=e=>!Cw(e);function Tw(e){typeof e==`function`&&(ww=t=>t.startsWith(`on`)?!Cw(t):e(t))}try{Tw((ee(),e(p)).default)}catch{}function Ew(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Yy(e[i])||(ww(i)||n===!0&&Cw(i)||!t&&!Cw(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Dw=(0,q.createContext)({});function Ow(e,t){if(Tx(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Sx(t)?t:void 0,animate:Sx(n)?n:void 0}}return e.inherit===!1?{}:t}function kw(e){let{initial:t,animate:n}=Ow(e,(0,q.useContext)(Dw));return(0,q.useMemo)(()=>({initial:t,animate:n}),[Aw(t),Aw(n)])}function Aw(e){return Array.isArray(e)?e.join(` `):e}var jw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mw(e,t,n){for(let r in t)!Yy(t[r])&&!hS(r,n)&&(e[r]=t[r])}function Nw({transformTemplate:e},t){return(0,q.useMemo)(()=>{let n=jw();return lS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Pw(e,t){let n=e.style||{},r={};return Mw(r,n,e),Object.assign(r,Nw(e,t)),r}function Fw(e,t){let n={},r=Pw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Iw=()=>({...jw(),attrs:{}});function Lw(e,t,n,r){let i=(0,q.useMemo)(()=>{let n=Iw();return CS(n,t,TS(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Mw(t,e.style,e),i.style={...t,...i.style}}return i}var Rw=[`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 zw(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Rw.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bw(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??zw(e)?Lw:Fw)(t,r,i,e),c=Ew(t,typeof e==`string`,a),l=e===q.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,q.useMemo)(()=>Yy(u)?u.get():u,[u]);return(0,q.createElement)(e,{...l,children:d})}function Vw({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Hw(n,r,i,e),renderState:t()}}function Hw(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=kC(a[e]);let{initial:o,animate:s}=e,c=Tx(e),l=Ex(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!xx(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Hy(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Uw=e=>(t,n)=>{let r=(0,q.useContext)(Dw),i=(0,q.useContext)(Fh),a=()=>Vw(e,t,r,i);return n?a():Nh(a)},Ww=Uw({scrapeMotionValuesFromProps:gS,createRenderState:jw}),Gw=Uw({scrapeMotionValuesFromProps:DS,createRenderState:Iw}),Kw=Symbol.for(`motionComponentSymbol`);function qw(e,t,n){let r=(0,q.useRef)(n);(0,q.useInsertionEffect)(()=>{r.current=n});let i=(0,q.useRef)(null);return(0,q.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Jw=(0,q.createContext)({});function Yw(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Xw(e,t,n,r,i,a){let{visualElement:o}=(0,q.useContext)(Dw),s=(0,q.useContext)(gw),c=(0,q.useContext)(Fh),l=(0,q.useContext)(mw),u=l.reducedMotion,d=l.skipAnimations,f=(0,q.useRef)(null),p=(0,q.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,q.useContext)(Jw);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Zw(f.current,n,i,h);let g=(0,q.useRef)(!1);(0,q.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[$y],v=(0,q.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Ph(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,q.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Zw(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Qw(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Yw(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Qw(e){if(e)return e.options.allowProjection===!1?Qw(e.parent):e.projection}function $w(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&xw(r);let a=n?n===`svg`:zw(e),o=a?Gw:Ww;function s(n,s){let c,l={...(0,q.useContext)(mw),...n,layoutId:eT(n)},{isStatic:u}=l,d=kw(n),f=o(n,u);if(!u&&typeof window<`u`){tT(l,r);let t=nT(l);c=t.MeasureLayout,d.visualElement=Xw(e,f,l,i,t.ProjectionNode,a)}return(0,Y.jsxs)(Dw.Provider,{value:d,children:[c&&d.visualElement?(0,Y.jsx)(c,{visualElement:d.visualElement,...l}):null,Bw(e,n,qw(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,q.forwardRef)(s);return c[Kw]=e,c}function eT({layoutId:e}){let t=(0,q.useContext)(Mh).id;return t&&e!==void 0?t+`-`+e:e}function tT(e,t){(0,q.useContext)(gw).strict}function nT(e){let{drag:t,layout:n}=bw();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function rT(e,t){if(typeof Proxy>`u`)return $w;let n=new Map,r=(n,r)=>$w(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,$w(a,void 0,e,t)),n.get(a))})}var iT=(e,t)=>t.isSVG??zw(e)?new OS(t):new vS(t,{allowProjection:e!==q.Fragment}),aT=class extends Rx{constructor(e){super(e),e.animationState||=FS(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();xx(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?.()}},oT=0,sT={animation:{Feature:aT},exit:{Feature:class extends Rx{constructor(){super(...arguments),this.id=oT++,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&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Uy(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.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(){}}}};function cT(e){return{point:{x:e.pageX,y:e.pageY}}}var lT=e=>t=>Rb(t)&&e(t,cT(t));function uT(e,t,n,r){return TC(e,t,lT(n),r)}var dT=({current:e})=>e?e.ownerDocument.defaultView:null,fT=(e,t)=>Math.abs(e-t);function pT(e,t){let n=fT(e.x,t.x),r=fT(e.y,t.y);return Math.sqrt(n**2+r**2)}var mT=new Set([`auto`,`scroll`]),hT=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){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=gT(this.lastRawMoveEventInfo,this.transformPagePoint));let e=vT(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=pT(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Eg;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=gT(t,this.transformPagePoint),wg.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=vT(e.type===`pointercancel`?this.lastMoveEventInfo:gT(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Rb(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=gT(cT(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Eg;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,vT(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Kh(uT(this.contextWindow,`pointermove`,this.handlePointerMove,d),uT(this.contextWindow,`pointerup`,this.handlePointerUp,d),uT(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(mT.has(e.overflowX)||mT.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,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),wg.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Tg(this.updatePoint)}};function gT(e,t){return t?{point:t(e.point)}:e}function _T(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vT({point:e},t){return{point:e,delta:_T(e,bT(t)),offset:_T(e,yT(t)),velocity:xT(t,.1)}}function yT(e){return e[0]}function bT(e){return e[e.length-1]}function xT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=bT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Yh(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Yh(t)*2&&(r=e[1]);let a=Xh(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ST(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?w_(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?w_(n,e,r.max):Math.min(e,n)),e}function CT(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function wT(e,{top:t,left:n,bottom:r,right:i}){return{x:CT(e.x,n,i),y:CT(e.y,t,r)}}function TT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ET(e,t){return{x:TT(e.x,t.x),y:TT(e.y,t.y)}}function DT(e,t){let n=.5,r=KS(e),i=KS(t);return i>r?n=qh(t.min,t.max-r,e.min):r>i&&(n=qh(e.min,e.max-i,t.min)),zh(0,1,n)}function OT(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var kT=.35;function AT(e=kT){return e===!1?e=0:e===!0&&(e=kT),{x:jT(e,`left`,`right`),y:jT(e,`top`,`bottom`)}}function jT(e,t,n){return{min:MT(e,t),max:MT(e,n)}}function MT(e,t){return typeof e==`number`?e:e[t]||0}var NT=new WeakMap,PT=class{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=yx(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(cT(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Nb(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),mC(e=>{let t=this.getAxisMotionValue(e).get()||0;if($g.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=KS(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&wg.update(()=>i(e,t),!1,!0),Zy(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=RT(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&wg.update(()=>a(e,t),!1,!0))},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new hT(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:dT(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&wg.postRender(()=>o(n,r))}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:r}=this.getProps();if(!n||!LT(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ST(a,this.constraints[e],this.elastic[e])),i.set(a)}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,r=this.constraints;e&&Yw(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?wT(n.layoutBox,e):!1,this.elastic=AT(t),r!==this.constraints&&!Yw(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&mC(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=OT(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Yw(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=aS(n,r.root,this.visualElement.getTransformPagePoint()),a=ET(r.layout.layoutBox,i);if(t){let e=t(Bx(a));this.hasMutatedConstraints=!!e,e&&(a=zx(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=mC(o=>{if(!LT(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Zy(this.visualElement,e),n.start(Ly(e,n,0,t,this.visualElement,!1))}stopAnimation(){mC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){mC(t=>{let{drag:n}=this.getProps();if(!LT(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-w_(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Yw(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};mC(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=DT({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),mC(t=>{if(!LT(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(w_(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;NT.set(this.visualElement,this);let e=this.visualElement.current,t=uT(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Hb(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Yw(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=IT(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),wg.read(r);let o=TC(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(mC(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=kT,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function FT(e){let t=!0;return()=>{t?t=!1:e()}}function IT(e,t,n){let r=ux(e,FT(n)),i=ux(t,FT(n));return()=>{r(),i()}}function LT(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RT(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var zT=class extends Rx{constructor(e){super(e),this.removeGroupControls=Gh,this.removeListeners=Gh,this.controls=new PT(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gh}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()}},BT=e=>(t,n)=>{e&&wg.update(()=>e(t,n),!1,!0)},VT=class extends Rx{constructor(){super(...arguments),this.removePointerDownListener=Gh}onPointerDown(e){this.session=new hT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:BT(e),onStart:BT(t),onMove:BT(n),onEnd:(e,t)=>{delete this.session,r&&wg.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=uT(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},HT=!1,UT=class extends q.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),HT&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),jC.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),HT=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||wg.postRender(()=>{let e=a.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(),kb.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;HT=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function WT(e){let[t,n]=hw(),r=(0,q.useContext)(Mh);return(0,Y.jsx)(UT,{...e,layoutGroup:r,switchLayoutGroup:(0,q.useContext)(Jw),isPresent:t,safeToRemove:n})}var GT={pan:{Feature:VT},drag:{Feature:zT,ProjectionNode:pw,MeasureLayout:WT}};function KT(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&wg.postRender(()=>i(t,cT(t)))}var qT=class extends Rx{mount(){let{current:e}=this.node;e&&(this.unmount=Ib(e,(e,t)=>(KT(this.node,t,`Start`),e=>KT(this.node,e,`End`))))}unmount(){}},JT=class extends Rx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{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=Kh(TC(this.node.current,`focus`,()=>this.onFocus()),TC(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function YT(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&wg.postRender(()=>i(t,cT(t)))}var XT=class extends Rx{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Yb(e,(e,t)=>(YT(this.node,t,`Start`),(e,{success:t})=>YT(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},ZT=new WeakMap,QT=new WeakMap,$T=e=>{let t=ZT.get(e.target);t&&t(e)},eE=e=>{e.forEach($T)};function tE({root:e,...t}){let n=e||document;QT.has(n)||QT.set(n,{});let r=QT.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(eE,{root:e,...t})),r[i]}function nE(e,t,n){let r=tE(t);return ZT.set(e,n),r.observe(e),()=>{ZT.delete(e),r.unobserve(e)}}var rE={some:0,all:1},iE=class extends Rx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:rE[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=nE(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(aE(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function aE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var oE={inView:{Feature:iE},tap:{Feature:XT},focus:{Feature:JT},hover:{Feature:qT}},sE={layout:{ProjectionNode:pw,MeasureLayout:WT}},cE=rT({...sT,...oE,...GT,...sE},iT);function lE(e){let t=Nh(()=>Dy(e)),{isStatic:n}=(0,q.useContext)(mw);if(n){let[,n]=(0,q.useState)(e);(0,q.useEffect)(()=>t.on(`change`,n),[])}return t}function uE(e,t){let n=lE(t()),r=()=>n.set(t());return r(),Ph(()=>{let t=()=>wg.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),Tg(r)}}),n}function dE(e){Ty.current=[],e();let t=uE(Ty.current,e);return Ty.current=void 0,t}function fE(e,t,n,r){if(typeof e==`function`)return dE(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return mE(e,t,n,r);let i=typeof t==`function`?t:px(t,n,r),a=Array.isArray(e)?pE(e,i):pE([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function pE(e,t){let n=Nh(()=>[]);return uE(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function mE(e,t,n,r){let i=Nh(()=>Object.keys(n)),a=Nh(()=>({}));for(let o of i)a[o]=fE(e,t,n[o],r);return a}var hE=(0,q.createContext)(null);function gE(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(i===-1)return e;let a=r>0?1:-1,o=e[i+a];if(!o)return e;let s=e[i],c=o.layout,l=w_(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+n<l?Rh(e,i,i+a):e}function _E({children:e,as:t=`ul`,axis:n=`y`,onReorder:r,values:i,...a},o){let s=Nh(()=>cE[t]),c=[],l=(0,q.useRef)(!1),u=(0,q.useRef)(null),d={axis:n,groupRef:u,registerItem:(e,t)=>{let r=c.findIndex(t=>e===t.value);r===-1?c.push({value:e,layout:t[n]}):c[r].layout=t[n],c.sort(yE)},updateOrder:(e,t,n)=>{if(l.current)return;let a=gE(c,e,t,n);if(c!==a){l.current=!0;let e=[...i];for(let t=0;t<a.length;t++)if(c[t].value!==a[t].value){let n=i.indexOf(c[t].value),r=i.indexOf(a[t].value);n!==-1&&r!==-1&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};(0,q.useEffect)(()=>{l.current=!1});let f=e=>{u.current=e,typeof o==`function`?o(e):o&&(o.current=e)},p={overflowAnchor:`none`,...a.style};return(0,Y.jsx)(s,{...a,style:p,ref:f,ignoreStrict:!0,children:(0,Y.jsx)(hE.Provider,{value:d,children:e})})}var vE=(0,q.forwardRef)(_E);function yE(e,t){return e.layout.min-t.layout.min}var bE=50,xE=25,SE=new Set([`auto`,`scroll`]),CE=new WeakMap,wE=new WeakMap,TE=null;function EE(){if(TE){let e=OE(TE,`y`);e&&(wE.delete(e),CE.delete(e));let t=OE(TE,`x`);t&&t!==e&&(wE.delete(t),CE.delete(t)),TE=null}}function DE(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return SE.has(r)||i}function OE(e,t){let n=e?.parentElement;for(;n;){if(DE(n,t))return n;n=n.parentElement}return null}function kE(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<bE){let e=1-o/bE;return{amount:-25*e*e,edge:`start`}}if(s<bE){let e=1-s/bE;return{amount:xE*e*e,edge:`end`}}return{amount:0,edge:null}}function AE(e,t,n,r){if(!e)return;TE=e;let i=OE(e,n);if(!i)return;let{amount:a,edge:o}=kE(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){wE.delete(i),CE.delete(i);return}let s=wE.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;wE.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);CE.set(i,e)}if(a>0){let e=CE.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function jE(e,t=0){return Yy(e)?e:lE(t)}function ME({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Nh(()=>cE[r]),u=(0,q.useContext)(hE),d={x:jE(t.x),y:jE(t.y)},f=fE([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g}=u;return(0,Y.jsx)(l,{drag:p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o=d[p].get();h(n,o,r[p]),AE(g.current,a[p],p,r[p]),i&&i(e,t)},onDragEnd:(e,t)=>{EE(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var NE=(0,q.forwardRef)(ME),PE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(16),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({isActive:a,value:s,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=a&&`graphiql-tab-active`,l;n[6]!==i||n[7]!==c?(l=rh(`graphiql-tab`,c,i),n[6]=i,n[7]=c,n[8]=l):l=n[8];let u;return n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==t||n[13]!==l||n[14]!==s?(u=(0,Y.jsx)(NE,{...o,ref:t,value:s,"aria-selected":a,role:`tab`,className:l,children:r}),n[9]=r,n[10]=a,n[11]=o,n[12]=t,n[13]=l,n[14]=s,n[15]=u):u=n[15],u});PE.displayName=`Tab`;var FE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({children:r,className:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=rh(`graphiql-tab-button`,i),n[4]=i,n[5]=o);let s;return n[6]!==r||n[7]!==a||n[8]!==t||n[9]!==o?(s=(0,Y.jsx)(yh,{...a,ref:t,type:`button`,className:o,children:r}),n[6]=r,n[7]=a,n[8]=t,n[9]=o,n[10]=s):s=n[10],s});FE.displayName=`Tab.Button`;var IE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(7),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-tab-close`,e.className),n[0]=e.className,n[1]=r);let i;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(km,{}),n[2]=i):i=n[2];let a;return n[3]!==e||n[4]!==t||n[5]!==r?(a=(0,Y.jsx)(yh,{"aria-label":`Close Tab`,...e,ref:t,type:`button`,className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=a):a=n[6],a});IE.displayName=`Tab.Close`;var LE=Object.assign(PE,{Button:FE,Close:IE}),RE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(15),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({values:s,onReorder:a,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c;n[6]===i?c=n[7]:(c=rh(`graphiql-tabs`,i),n[6]=i,n[7]=c);let l;return n[8]!==r||n[9]!==a||n[10]!==o||n[11]!==t||n[12]!==c||n[13]!==s?(l=(0,Y.jsx)(vE,{...o,ref:t,values:s,onReorder:a,axis:`x`,role:`tablist`,className:c,children:r}),n[8]=r,n[9]=a,n[10]=o,n[11]=t,n[12]=c,n[13]=s,n[14]=l):l=n[14],l});RE.displayName=`Tabs`;var zE=Object.assign(e=>{let t=(0,J.c)(10),{children:n,align:r,side:i,sideOffset:a,label:o}=e,s=r===void 0?`start`:r,c=i===void 0?`bottom`:i,l=a===void 0?5:a,u;t[0]===n?u=t[1]:(u=(0,Y.jsx)(b,{asChild:!0,children:n}),t[0]=n,t[1]=u);let d;t[2]!==s||t[3]!==o||t[4]!==c||t[5]!==l?(d=(0,Y.jsx)(_t,{children:(0,Y.jsx)(ae,{className:`graphiql-tooltip`,align:s,side:c,sideOffset:l,children:o})}),t[2]=s,t[3]=o,t[4]=c,t[5]=l,t[6]=d):d=t[6];let f;return t[7]!==u||t[8]!==d?(f=(0,Y.jsxs)(fe,{children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9],f},{Provider:l}),BE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(19),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({label:r,onClick:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let[o,s]=(0,q.useState)(null),c;n[4]===i?c=n[5]:(c=e=>{try{i&&i(e),s(null)}catch(e){let t=e;s(t instanceof Error?t:Error(`Toolbar button click failed: ${t}`))}},n[4]=i,n[5]=c);let l=c,u=o&&`error`,d;n[6]!==a.className||n[7]!==u?(d=rh(`graphiql-toolbar-button`,u,a.className),n[6]=a.className,n[7]=u,n[8]=d):d=n[8];let f=o?o.message:r,p=o?`true`:a[`aria-invalid`],m;n[9]!==l||n[10]!==a||n[11]!==t||n[12]!==d||n[13]!==f||n[14]!==p?(m=(0,Y.jsx)(yh,{...a,ref:t,type:`button`,className:d,onClick:l,"aria-label":f,"aria-invalid":p}),n[9]=l,n[10]=a,n[11]=t,n[12]=d,n[13]=f,n[14]=p,n[15]=m):m=n[15];let h;return n[16]!==r||n[17]!==m?(h=(0,Y.jsx)(zE,{label:r,children:m}),n[16]=r,n[17]=m,n[18]=h):h=n[18],h});BE.displayName=`ToolbarButton`;var VE=()=>{let e=(0,J.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={nonNull:!0,caller:VE},e[0]=t):t=e[0];let{queryEditor:n,setOperationName:r}=Np(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:VE},e[1]=i):i=e[1];let{isFetching:a,isSubscribed:o,operationName:s,run:c,stop:l}=Bp(i),u;e[2]===n?.operations?u=e[3]:(u=n?.operations||[],e[2]=n?.operations,e[3]=u);let d=u,f=d.length>1&&typeof s!=`string`,p=a||o,m=`${p?`Stop`:`Execute`} query (Ctrl-Enter)`,h;e[4]===p?h=e[5]:(h=p?(0,Y.jsx)($m,{}):(0,Y.jsx)(Gm,{}),e[4]=p,e[5]=h);let g;e[6]!==m||e[7]!==h?(g={type:`button`,className:`graphiql-execute-button`,children:h,"aria-label":m},e[6]=m,e[7]=h,e[8]=g):g=e[8];let _=g,v;return e[9]!==_||e[10]!==f||e[11]!==p||e[12]!==m||e[13]!==d||e[14]!==n||e[15]!==c||e[16]!==r||e[17]!==l?(v=f&&!p?(0,Y.jsxs)(kh,{children:[(0,Y.jsx)(zE,{label:m,children:(0,Y.jsx)(kh.Button,{..._})}),(0,Y.jsx)(kh.Content,{children:d.map((e,t)=>{let i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,Y.jsx)(kh.Item,{onSelect:()=>{let t=e.name?.value;n&&t&&t!==n.operationName&&r(t),c()},children:i},`${i}-${t}`)})})]}):(0,Y.jsx)(zE,{label:m,children:(0,Y.jsx)(`button`,{..._,onClick:()=>{p?l():c()}})}),e[9]=_,e[10]=f,e[11]=p,e[12]=m,e[13]=d,e[14]=n,e[15]=c,e[16]=r,e[17]=l,e[18]=v):v=e[18],v},HE=et((e,t)=>({historyStorage:null,actions:{addToHistory(n){let{historyStorage:r}=t();r.updateHistory(n),e({})},editLabel(n,r){let{historyStorage:i}=t();i.editLabel(n,r),e({})},toggleFavorite(n){let{historyStorage:r}=t();r.toggleFavorite(n),e({})},setActive:e=>e,deleteFromHistory(n,r){let{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),UE=e=>{let t=(0,J.c)(12),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={nonNull:!0},t[0]=a):a=t[0];let{isFetching:o}=Bp(a),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={nonNull:!0},t[1]=s):s=t[1];let{tabs:c,activeTabIndex:l}=Np(s),u=c[l],d=Ps(),f;t[2]!==i||t[3]!==d?(f=new Ss(d,i),t[2]=i,t[3]=d,t[4]=f):f=t[4];let p=f,m,h;t[5]===p?(m=t[6],h=t[7]):(m=()=>{HE.setState({historyStorage:p})},h=[p],t[5]=p,t[6]=m,t[7]=h),(0,q.useEffect)(m,h);let g,_;return t[8]!==u||t[9]!==o?(g=()=>{if(!o)return;let{addToHistory:e}=HE.getState().actions;e({query:u.query??void 0,variables:u.variables??void 0,headers:u.headers??void 0,operationName:u.operationName??void 0})},_=[o,u],t[8]=u,t[9]=o,t[10]=g,t[11]=_):(g=t[10],_=t[11]),(0,q.useEffect)(g,_),r},WE=As(HE),GE=()=>WE(qE),KE=()=>WE(JE);function qE(e){return e.historyStorage.queries}function JE(e){return e.actions}function YE(e,t){for(let n of e)t(n,!0)}var XE=()=>{let e=(0,J.c)(13),t=GE(),{deleteFromHistory:n}=KE(),r;r=t.slice().map($E).reverse();let i=r.filter(eD);i.length&&(r=r.filter(tD));let[a,o]=(0,q.useState)(null),s,c;e[0]===a?(s=e[1],c=e[2]):(s=()=>{a&&setTimeout(()=>{o(null)},2e3)},c=[a],e[0]=a,e[1]=s,e[2]=c),(0,q.useEffect)(s,c);let l=()=>{try{YE(r,n),o(`success`)}catch{o(`error`)}},u=!!i.length,d=!!r.length,f=(a||d)&&(0,Y.jsx)(bh,{type:`button`,state:a||void 0,disabled:!r.length,onClick:l,children:{success:`Cleared`,error:`Failed to Clear`}[a]||`Clear`}),p;e[3]===f?p=e[4]:(p=(0,Y.jsxs)(`div`,{className:`graphiql-history-header`,children:[`History`,f]}),e[3]=f,e[4]=p);let m=u&&(0,Y.jsx)(`ul`,{className:`graphiql-history-items`,children:i.map(nD)}),h;e[5]!==u||e[6]!==d?(h=u&&d&&(0,Y.jsx)(`div`,{className:`graphiql-history-item-spacer`}),e[5]=u,e[6]=d,e[7]=h):h=e[7];let g=d&&(0,Y.jsx)(`ul`,{className:`graphiql-history-items`,children:r.map(rD)}),_;return e[8]!==p||e[9]!==m||e[10]!==h||e[11]!==g?(_=(0,Y.jsxs)(`section`,{"aria-label":`History`,className:`graphiql-history`,children:[p,m,h,g]}),e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_):_=e[12],_},ZE=e=>{let t=(0,J.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:a}=KE(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:ZE},t[0]=o):o=t[0];let{headerEditor:s,queryEditor:c,variableEditor:l}=Np(o),u=(0,q.useRef)(null),d=(0,q.useRef)(null),[f,p]=(0,q.useState)(!1),m,h;t[1]===f?(m=t[2],h=t[3]):(m=()=>{var e;f&&((e=u.current)==null||e.focus())},h=[f],t[1]=f,t[2]=m,t[3]=h),(0,q.useEffect)(m,h);let g;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(g=e.item.label||e.item.operationName||QE(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=g):g=t[7];let _=g,v;t[8]!==n||t[9]!==e.item?(v=()=>{p(!1);let{index:t,...r}=e.item;n({...r,label:u.current?.value},t)},t[8]=n,t[9]=e.item,t[10]=v):v=t[10];let y=v,b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>{p(!1)},t[11]=b):b=t[11];let x=b,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{e.stopPropagation(),p(!0)},t[12]=S):S=t[12];let C=S,w;t[13]!==s||t[14]!==e.item||t[15]!==c||t[16]!==a||t[17]!==l?(w=()=>{let{query:t,variables:n,headers:r}=e.item;c?.setValue(t??``),l?.setValue(n??``),s?.setValue(r??``),a(e.item)},t[13]=s,t[14]=e.item,t[15]=c,t[16]=a,t[17]=l,t[18]=w):w=t[18];let T=w,E;t[19]!==i||t[20]!==e.item?(E=t=>{t.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=E):E=t[21];let D=E,O;t[22]!==e.item||t[23]!==r?(O=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=O):O=t[24];let k=O,A=f&&`editable`,j;t[25]===A?j=t[26]:(j=rh(`graphiql-history-item`,A),t[25]=A,t[26]=j);let M;t[27]!==_||t[28]!==n||t[29]!==D||t[30]!==T||t[31]!==y||t[32]!==k||t[33]!==f||t[34]!==e.item?(M=f?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`input`,{type:`text`,defaultValue:e.item.label,ref:u,onKeyDown:t=>{t.key===`Esc`?p(!1):t.key===`Enter`&&(p(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:`Type a label`}),(0,Y.jsx)(yh,{type:`button`,ref:d,onClick:y,children:`Save`}),(0,Y.jsx)(yh,{type:`button`,ref:d,onClick:x,children:(0,Y.jsx)(km,{})})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(zE,{label:`Set active`,children:(0,Y.jsx)(yh,{type:`button`,className:`graphiql-history-item-label`,onClick:T,"aria-label":`Set active`,children:_})}),(0,Y.jsx)(zE,{label:`Edit label`,children:(0,Y.jsx)(yh,{type:`button`,className:`graphiql-history-item-action`,onClick:C,"aria-label":`Edit label`,children:(0,Y.jsx)(Wm,{"aria-hidden":`true`})})}),(0,Y.jsx)(zE,{label:e.item.favorite?`Remove favorite`:`Add favorite`,children:(0,Y.jsx)(yh,{type:`button`,className:`graphiql-history-item-action`,onClick:k,"aria-label":e.item.favorite?`Remove favorite`:`Add favorite`,children:e.item.favorite?(0,Y.jsx)(Zm,{"aria-hidden":`true`}):(0,Y.jsx)(Qm,{"aria-hidden":`true`})})}),(0,Y.jsx)(zE,{label:`Delete from history`,children:(0,Y.jsx)(yh,{type:`button`,className:`graphiql-history-item-action`,onClick:D,"aria-label":`Delete from history`,children:(0,Y.jsx)(eh,{"aria-hidden":`true`})})})]}),t[27]=_,t[28]=n,t[29]=D,t[30]=T,t[31]=y,t[32]=k,t[33]=f,t[34]=e.item,t[35]=M):M=t[35];let N;return t[36]!==j||t[37]!==M?(N=(0,Y.jsx)(`li`,{className:j,children:M}),t[36]=j,t[37]=M,t[38]=N):N=t[38],N};function QE(e){return e?.split(`
95
+ `))}e(``),g(!0);let b=a??l.operationName??void 0,S=h??void 0,C=l.documentAST??void 0;try{let i={},a=n=>{if(t!==y.current)return;let r=Array.isArray(n)?n:!1;if(!r&&typeof n==`object`&&n&&`hasNext`in n&&(r=[n]),r){for(let e of r)Up(i,e);g(!1),e(os(i))}else{let t=os(n);g(!1),e(t)}},s=await n({query:r,variables:o,operationName:b},{headers:S,documentAST:C});Qo(s)?v(s.subscribe({next(e){a(e)},error(t){g(!1),t&&e(as(t)),v(null)},complete(){g(!1),v(null)}})):$o(s)?(v({unsubscribe:()=>{var e;return(e=s[Symbol.asyncIterator]()).return?.call(e)}}),await zp(a,s),g(!1),v(null)):a(s)}catch(t){let n=t;g(!1),e(as(n)),v(null)}},t[5]=m,t[6]=s,t[7]=n,t[8]=c,t[9]=a,t[10]=l,t[11]=u,t[12]=x,t[13]=_,t[14]=f,t[15]=d,t[16]=S):S=t[16];let C=S,w=!!_,T=a??null,E;t[17]!==h||t[18]!==C||t[19]!==x||t[20]!==w||t[21]!==T?(E={isFetching:h,isSubscribed:w,operationName:T,run:C,stop:x},t[17]=h,t[18]=C,t[19]=x,t[20]=w,t[21]=T,t[22]=E):E=t[22];let D=E,O;return t[23]!==i||t[24]!==D?(O=(0,Y.jsx)(Lp.Provider,{value:D,children:i}),t[23]=i,t[24]=D,t[25]=O):O=t[25],O};async function zp(e,t){for await(let n of t)e(n)}var Bp=ks(Lp);function Vp({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==``?JSON.parse(e):void 0}catch(e){throw Error(`${t}: ${e instanceof Error?e.message:e}.`)}if(r!==void 0&&(typeof r!=`object`||!r||Array.isArray(r)))throw Error(n);return r}var Hp=new WeakMap;function Up(e,t){var n;let r=[`data`,...t.path??[]];for(let n of[e,t])if(n.pending){let t=Hp.get(e);t===void 0&&(t=new Map,Hp.set(e,t));for(let{id:e,path:r}of n.pending)t.set(e,[`data`,...r])}let{items:i}=t;if(i){let{id:n}=t;if(n){if(r=Hp.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);(0,Ip.default)(e,r.join(`.`)).push(...i)}else{r=[`data`,...t.path??[]];for(let t of i)(0,Fp.default)(e,r.join(`.`),t),r[r.length-1]++}}let{data:a}=t;if(a){let{id:n}=t;if(n){if(r=Hp.get(e)?.get(n),r===void 0)throw Error(`Invalid incremental delivery format.`);let{subPath:i}=t;i!==void 0&&(r=[...r,...i])}(0,Fp.default)(e,r.join(`.`),a,{merge:!0})}if(t.errors&&(e.errors||=[],e.errors.push(...t.errors)),t.extensions&&(0,Fp.default)(e,`extensions`,t.extensions,{merge:!0}),t.incremental)for(let n of t.incremental)Up(e,n);if(t.completed)for(let{id:r,errors:i}of t.completed)(n=Hp.get(e))==null||n.delete(r),i&&(e.errors||=[],e.errors.push(...i))}function Wp(e){return C(e)}var Gp=e=>{let t=(0,J.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,fetcher:c,getDefaultFieldNames:l,headers:u,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:m,onTabChange:h,onTogglePluginVisibility:g,operationName:_,plugins:v,referencePlugin:y,query:b,response:x,schema:S,schemaDescription:C,shouldPersistHeaders:w,storage:T,validationRules:E,variables:D,visiblePlugin:O}=e,k;t[0]!==a||t[1]!==i||t[2]!==o||t[3]!==s||t[4]!==u||t[5]!==p||t[6]!==h||t[7]!==b||t[8]!==x||t[9]!==w||t[10]!==E||t[11]!==D?(k={defaultQuery:i,defaultHeaders:a,defaultTabs:o,externalFragments:s,headers:u,onEditOperationName:p,onTabChange:h,query:b,response:x,shouldPersistHeaders:w,validationRules:E,variables:D},t[0]=a,t[1]=i,t[2]=o,t[3]=s,t[4]=u,t[5]=p,t[6]=h,t[7]=b,t[8]=x,t[9]=w,t[10]=E,t[11]=D,t[12]=k):k=t[12];let A=k,j;t[13]!==r||t[14]!==c||t[15]!==d||t[16]!==f||t[17]!==m||t[18]!==S||t[19]!==C?(j={dangerouslyAssumeSchemaIsValid:r,fetcher:c,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:m,schema:S,schemaDescription:C},t[13]=r,t[14]=c,t[15]=d,t[16]=f,t[17]=m,t[18]=S,t[19]=C,t[20]=j):j=t[20];let M=j,N;t[21]!==c||t[22]!==l||t[23]!==_?(N={getDefaultFieldNames:l,fetcher:c,operationName:_},t[21]=c,t[22]=l,t[23]=_,t[24]=N):N=t[24];let ee=N,P;t[25]!==g||t[26]!==v||t[27]!==y||t[28]!==O?(P={onTogglePluginVisibility:g,plugins:v,visiblePlugin:O,referencePlugin:y},t[25]=g,t[26]=v,t[27]=y,t[28]=O,t[29]=P):P=t[29];let te=P,ne;t[30]!==n||t[31]!==te?(ne=(0,Y.jsx)(Gs,{...te,children:n}),t[30]=n,t[31]=te,t[32]=ne):ne=t[32];let re;t[33]!==ee||t[34]!==ne?(re=(0,Y.jsx)(Rp,{...ee,children:ne}),t[33]=ee,t[34]=ne,t[35]=re):re=t[35];let ie;t[36]!==M||t[37]!==re?(ie=(0,Y.jsx)(Js,{...M,children:re}),t[36]=M,t[37]=re,t[38]=ie):ie=t[38];let ae;t[39]!==A||t[40]!==ie?(ae=(0,Y.jsx)(jp,{...A,children:ie}),t[39]=A,t[40]=ie,t[41]=ae):ae=t[41];let oe;return t[42]!==T||t[43]!==ae?(oe=(0,Y.jsx)(Ms,{storage:T,children:ae}),t[42]=T,t[43]=ae,t[44]=oe):oe=t[44],oe};function Kp(e){let t=(0,J.c)(11),n=e===void 0?null:e,r=Ps(),i;t[0]!==n||t[1]!==r?(i=()=>{let e=r.get(qp);switch(e){case`light`:return`light`;case`dark`:return`dark`;default:return typeof e==`string`&&r.set(qp,``),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];let[a,o]=(0,q.useState)(i),s,c;t[3]===a?(s=t[4],c=t[5]):(s=()=>{document.body.classList.remove(`graphiql-light`,`graphiql-dark`),a&&document.body.classList.add(`graphiql-${a}`)},c=[a],t[3]=a,t[4]=s,t[5]=c),(0,q.useEffect)(s,c);let l;t[6]===r?l=t[7]:(l=e=>{r.set(qp,e||``),o(e)},t[6]=r,t[7]=l);let u=l,d;return t[8]!==u||t[9]!==a?(d={theme:a,setTheme:u},t[8]=u,t[9]=a,t[10]=d):d=t[10],d}var qp=`theme`,Jp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:6,y:6,width:2,height:2,rx:1,fill:`currentColor`})),Yp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1 1L7 7L13 1`,stroke:`currentColor`,strokeWidth:1.5})),Xp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 7 10`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6 1.04819L2 5.04819L6 9.04819`,stroke:`currentColor`,strokeWidth:1.75})),Zp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 9`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M13 8L7 2L1 8`,stroke:`currentColor`,strokeWidth:1.5})),Qp=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,stroke:`currentColor`,strokeWidth:3,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1 1L12.9998 12.9997`}),q.createElement(`path`,{d:`M13 1L1.00079 13.0003`})),$p=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`rect`,{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:`currentColor`,strokeWidth:1.5})),em=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M5 9L9 5`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M5 5L9 9`,stroke:`currentColor`,strokeWidth:1.2})),tm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z`,fill:`currentColor`})),nm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 8L8 4`,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4 4L8 8`,stroke:`currentColor`,strokeWidth:1.2})),rm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0.5 12 12`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:7,y:5.5,width:2,height:2,rx:1,transform:`rotate(90 7 5.5)`,fill:`currentColor`}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z`,fill:`currentColor`})),im=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z`,fill:`currentColor`})),am=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`line`,{x1:13,y1:11.75,x2:6,y2:11.75,stroke:`currentColor`,strokeWidth:1.5})),om=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:5,y:5,width:2,height:2,rx:1,fill:`currentColor`}),q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z`,fill:`currentColor`})),sm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),cm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 24 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),q.createElement(`path`,{d:`M13.75 5.25V10.75H18.75`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`square`}),q.createElement(`path`,{d:`M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25`,stroke:`currentColor`,strokeWidth:1.5})),lm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`circle`,{cx:6,cy:6,r:5.4,stroke:`currentColor`,strokeWidth:1.2,strokeDasharray:`4.241025 4.241025`,transform:`rotate(22.5 6 6)`}),q.createElement(`circle`,{cx:6,cy:6,r:1,fill:`currentColor`})),um=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 19 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z`,stroke:`currentColor`,strokeWidth:1.125,strokeLinecap:`round`,strokeLinejoin:`round`})),dm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`circle`,{cx:5,cy:5,r:4.35,stroke:`currentColor`,strokeWidth:1.3}),q.createElement(`line`,{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:`currentColor`,strokeWidth:1.3})),fm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`-2 -2 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M6 4.5L9 7.5L12 4.5`,stroke:`currentColor`,strokeWidth:1.5}),q.createElement(`path`,{d:`M12 13.5L9 10.5L6 13.5`,stroke:`currentColor`,strokeWidth:1.5})),pm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z`,fill:`currentColor`}),q.createElement(`path`,{d:`M11.5 4.5L9.5 2.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M5.5 10.5L3.5 8.5`,stroke:`currentColor`,strokeWidth:1.4026,strokeLinecap:`round`,strokeLinejoin:`round`})),mm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z`,fill:`currentColor`})),hm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 10 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z`})),gm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{width:25,height:25,viewBox:`0 0 25 25`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M10.2852 24.0745L13.7139 18.0742`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M14.5742 24.0749L17.1457 19.7891`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735`,stroke:`currentColor`,strokeWidth:1.5625}),q.createElement(`path`,{d:`M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`}),q.createElement(`path`,{d:`M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z`,stroke:`currentColor`,strokeWidth:1.5625,strokeLinejoin:`round`})),_m=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M4.75 9.25H1.25V12.75`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),q.createElement(`path`,{d:`M11.25 6.75H14.75V3.25`,stroke:`currentColor`,strokeWidth:1,strokeLinecap:`square`}),q.createElement(`path`,{d:`M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513`,stroke:`currentColor`,strokeWidth:1}),q.createElement(`path`,{d:`M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487`,stroke:`currentColor`,strokeWidth:1})),vm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`path`,{d:`M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5`,stroke:`currentColor`,strokeWidth:1.2})),ym=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 21 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z`,fill:`currentColor`})),bm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z`,fill:`currentColor`,stroke:`currentColor`})),xm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z`,stroke:`currentColor`,strokeWidth:1.5})),Sm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{width:16,height:16,rx:2,fill:`currentColor`})),Cm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{width:`1em`,height:`5em`,xmlns:`http://www.w3.org/2000/svg`,fillRule:`evenodd`,"aria-hidden":`true`,viewBox:`0 0 23 23`,style:{height:`1.5em`},clipRule:`evenodd`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`path`,{d:`M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z`,fill:`currentColor`,strokeWidth:.25,stroke:`currentColor`})),wm=({title:e,titleId:t,...n})=>q.createElement(`svg`,{height:`1em`,viewBox:`0 0 13 13`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-labelledby":t,...n},e?q.createElement(`title`,{id:t},e):null,q.createElement(`rect`,{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:`currentColor`,strokeWidth:1.2}),q.createElement(`rect`,{x:5.5,y:5.5,width:2,height:2,rx:1,fill:`currentColor`})),Tm=X(Jp),Em=X(Yp),Dm=X(Xp),Om=X(Zp),km=X(Qp),Am=X($p),jm=X(em),Mm=X(tm),Nm=X(nm),Pm=X(rm),Fm=X(im),Im=X(am),Lm=X(om),Rm=X(sm),zm=X(cm),Bm=X(lm),Vm=X(um),Hm=X(dm),Um=X(fm),Wm=X(pm),Gm=X(mm),Km=X(hm),qm=X(gm),Jm=X(_m),Ym=X(vm),Xm=X(ym),Zm=X(bm),Qm=X(xm),$m=X(Sm),eh=X(Cm),th=X(wm);function X(e){let t=e.name.replace(`Svg`,``).replaceAll(/([A-Z])/g,` $1`).trimStart().toLowerCase()+` icon`,n=n=>{let r=(0,J.c)(2),i;return r[0]===n?i=r[1]:(i=(0,Y.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i),i};return n.displayName=e.name,n}function nh(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=nh(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t)}return r}function rh(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=nh(e))&&(r&&(r+=` `),r+=t);return r}var ih=e=>{let t=(0,J.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:ih},t[3]=i):i=t[3];let{headerEditor:a}=Np(i),o=Rf(n,ih),s,c;t[4]!==a||t[5]!==r?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=a,t[5]=r,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,q.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=rh(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,Y.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d},ah=Object.assign(e=>{let t=(0,J.c)(14),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={width:null,height:null},t[0]=n):n=t[0];let[r,i]=(0,q.useState)(n),[a,o]=(0,q.useState)(null),s=(0,q.useRef)(null),c=oh(e.token)?.href,l,u;t[1]===c?(l=t[2],u=t[3]):(l=()=>{s.current&&(c?fetch(c,{method:`HEAD`}).then(e=>{o(e.headers.get(`Content-Type`))}).catch(()=>{o(null)}):(i({width:null,height:null}),o(null)))},u=[c],t[1]=c,t[2]=l,t[3]=u),(0,q.useEffect)(l,u);let d;t[4]!==r.height||t[5]!==r.width||t[6]!==a?(d=r.width!==null&&r.height!==null?(0,Y.jsxs)(`div`,{children:[r.width,`x`,r.height,a===null?null:` `+a]}):null,t[4]=r.height,t[5]=r.width,t[6]=a,t[7]=d):d=t[7];let f=d,p;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{i({width:s.current?.naturalWidth??null,height:s.current?.naturalHeight??null})},t[8]=p):p=t[8];let m;t[9]===c?m=t[10]:(m=(0,Y.jsx)(`img`,{onLoad:p,ref:s,src:c}),t[9]=c,t[10]=m);let h;return t[11]!==f||t[12]!==m?(h=(0,Y.jsxs)(`div`,{children:[m,f]}),t[11]=f,t[12]=m,t[13]=h):h=t[13],h},{shouldRender(e){let t=oh(e);return t?sh(t):!1}});function oh(e){if(e.type!==`string`)return;let t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+`//`+location.host)}catch{}}function sh(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}var ch=e=>{let t=(0,J.c)(2),n=Xf(e,ch),r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`div`,{className:`graphiql-editor`,ref:n}),t[0]=n,t[1]=r),r},lh=Ce();function uh(){return Vs([R(()=>import(`./foldgutter-DMDmmXBR.js`).then(e=>t(e.default)),__vite__mapDeps([6,1,0])),R(()=>import(`./brace-fold-CvGVZqlg.js`).then(e=>t(e.default)),__vite__mapDeps([5,1,0])),R(()=>import(`./dialog-CJ-8k4qu.js`).then(e=>t(e.default)),__vite__mapDeps([10,1,0])),R(()=>import(`./search-dN6Hktna.js`).then(e=>t(e.default)),__vite__mapDeps([14,1,0,8,10])),R(()=>import(`./searchcursor-BVQcGYNk.js`).then(e=>t(e.default)),__vite__mapDeps([8,1,0])),R(()=>import(`./jump-to-line-Dh-zRt5Y.js`).then(e=>t(e.default)),__vite__mapDeps([9,1,0,10])),R(()=>import(`./sublime-CKNGwGRF.js`).then(e=>t(e.default)),__vite__mapDeps([11,1,0,8,3])),R(()=>import(`./mode-DD4OZOpP.js`),__vite__mapDeps([29,1,0,25])),R(()=>import(`./info-addon-qxLJlsXZ.js`),__vite__mapDeps([22,1,0]))],{useCommonAddons:!1})}var dh=fh;function fh(e,t){let n=(0,J.c)(17),r;n[0]===e?r=n[1]:(r=e===void 0?{}:e,n[0]=e,n[1]=r);let{responseTooltip:i,editorTheme:a,keyMap:o}=r,s=a===void 0?Rs:a,c=o===void 0?zs:o,{fetchError:l,validationErrors:u}=Ys(),d=t||dh,f;n[2]===d?f=n[3]:(f={nonNull:!0,caller:d},n[2]=d,n[3]=f);let{initialResponse:p,responseEditor:m,setResponseEditor:h}=Np(f),g=(0,q.useRef)(null),_=(0,q.useRef)(i),v,y;n[4]===i?(v=n[5],y=n[6]):(v=()=>{_.current=i},y=[i],n[4]=i,n[5]=v,n[6]=y),(0,q.useEffect)(v,y);let b,x;n[7]!==s||n[8]!==p||n[9]!==h?(b=()=>{let e=!0;return uh().then(t=>{if(!e)return;let n=document.createElement(`div`),r=(0,lh.createRoot)(n);t.registerHelper(`info`,`graphql-results`,(e,t,i,a)=>{let o=_.current,s=[o&&(0,Y.jsx)(o,{pos:a,token:e}),ah.shouldRender(e)&&(0,Y.jsx)(ah,{token:e},`image-preview`)].filter(ph);if(s.length)return r.render(s),n;r.unmount()});let i=g.current;if(!i)return;let a=t(i,{value:p,lineWrapping:!0,readOnly:!0,theme:s,mode:`graphql-results`,foldGutter:!0,gutters:[`CodeMirror-foldgutter`],info:!0,extraKeys:Bs});h(a)}),()=>{e=!1}},x=[s,p,h],n[7]=s,n[8]=p,n[9]=h,n[10]=b,n[11]=x):(b=n[10],x=n[11]),(0,q.useEffect)(b,x),Cf(m,`keyMap`,c);let S,C;return n[12]!==l||n[13]!==m||n[14]!==u?(S=()=>{l&&m?.setValue(l),u.length&&m?.setValue(as(u))},C=[m,l,u],n[12]=l,n[13]=m,n[14]=u,n[15]=S,n[16]=C):(S=n[15],C=n[16]),(0,q.useEffect)(S,C),g}function ph(e){return!!e}var mh=e=>{let t=(0,J.c)(2),n=fh(e,mh),r;return t[0]===n?r=t[1]:(r=(0,Y.jsx)(`section`,{className:`result-window`,"aria-label":`Result Window`,"aria-live":`polite`,"aria-atomic":`true`,ref:n}),t[0]=n,t[1]=r),r},hh=e=>{let t=(0,J.c)(13),n,r;t[0]===e?(n=t[1],r=t[2]):({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:hh},t[3]=i):i=t[3];let{variableEditor:a}=Np(i),o=Dp(n,hh),s,c;t[4]!==r||t[5]!==a?(s=()=>{r||a?.refresh()},c=[a,r],t[4]=r,t[5]=a,t[6]=s,t[7]=c):(s=t[6],c=t[7]),(0,q.useEffect)(s,c);let l=r&&`hidden`,u;t[8]===l?u=t[9]:(u=rh(`graphiql-editor`,l),t[8]=l,t[9]=u);let d;return t[10]!==o||t[11]!==u?(d=(0,Y.jsx)(`div`,{className:u,ref:o}),t[10]=o,t[11]=u,t[12]=d):d=t[12],d};function gh(e){let t=(0,J.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:a,sizeThresholdFirst:o,sizeThresholdSecond:s,storageKey:c}=e,l=n===void 0?1:n,u=o===void 0?100:o,d=s===void 0?100:s,f=Ps(),p;t[0]!==f||t[1]!==c?(p=bf(500,e=>{c&&f.set(c,e)}),t[0]=f,t[1]=c,t[2]=p):p=t[2];let m=p,h;t[3]!==i||t[4]!==f||t[5]!==c?(h=()=>{let e=c&&f.get(c);return e===_h||i===`first`?`first`:e===vh||i===`second`?`second`:null},t[3]=i,t[4]=f,t[5]=c,t[6]=h):h=t[6];let[g,_]=(0,q.useState)(h),v;t[7]!==g||t[8]!==a?(v=e=>{e!==g&&(_(e),a?.(e))},t[7]=g,t[8]=a,t[9]=v):v=t[9];let y=v,b=(0,q.useRef)(null),x=(0,q.useRef)(null),S=(0,q.useRef)(null),C=(0,q.useRef)(`${l}`),w;t[10]!==f||t[11]!==c?(w=()=>{let e=c&&f.get(c)||C.current;b.current&&(b.current.style.flex=e===_h||e===vh?C.current:e),S.current&&(S.current.style.flex=`1`)},t[10]=f,t[11]=c,t[12]=w):w=t[12];let T;t[13]!==r||t[14]!==f||t[15]!==c?(T=[r,f,c],t[13]=r,t[14]=f,t[15]=c,t[16]=T):T=t[16],(0,q.useEffect)(w,T);let E,D;t[17]!==g||t[18]!==f||t[19]!==c?(D=()=>{let e=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.left=`-1000px`,t.style.position=`absolute`,t.style.opacity=`0`,t.style.height=`500px`,t.style.width=`500px`,b.current)){let e=parseFloat(b.current.style.flex);(!Number.isFinite(e)||e<1)&&(b.current.style.flex=`1`)}},t=e=>{let t=e===`first`?b.current:S.current;if(t&&(t.style.width=``,t.style.height=``,t.style.opacity=``,t.style.position=``,t.style.left=``,c)){let e=f.get(c);b.current&&e!==_h&&e!==vh&&(b.current.style.flex=e||C.current)}};g===`first`?e(`first`):t(`first`),g===`second`?e(`second`):t(`second`)},E=[g,f,c],t[17]=g,t[18]=f,t[19]=c,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,q.useEffect)(D,E);let O,k;t[22]!==r||t[23]!==y||t[24]!==u||t[25]!==d||t[26]!==m?(O=()=>{if(!x.current||!b.current||!S.current)return;let e=x.current,t=b.current,n=t.parentElement,i=r===`horizontal`?`clientX`:`clientY`,a=r===`horizontal`?`left`:`top`,o=r===`horizontal`?`right`:`bottom`,s=r===`horizontal`?`clientWidth`:`clientHeight`,c=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();let c=r[i]-e.getBoundingClientRect()[a],l=function(r){if(r.buttons===0)return f();let l=r[i]-n.getBoundingClientRect()[a]-c,p=n.getBoundingClientRect()[o]-r[i]+c-e[s];if(l<u)y(`first`),m(_h);else if(p<d)y(`second`),m(vh);else{y(null);let e=`${l/p}`;t.style.flex=e,m(e)}};function f(){document.removeEventListener(`mousemove`,l),document.removeEventListener(`mouseup`,f)}document.addEventListener(`mousemove`,l),document.addEventListener(`mouseup`,f)};e.addEventListener(`mousedown`,c);let l=function(){b.current&&(b.current.style.flex=C.current),m(C.current),y(null)};return e.addEventListener(`dblclick`,l),()=>{e.removeEventListener(`mousedown`,c),e.removeEventListener(`dblclick`,l)}},k=[r,y,u,d,m],t[22]=r,t[23]=y,t[24]=u,t[25]=d,t[26]=m,t[27]=O,t[28]=k):(O=t[27],k=t[28]),(0,q.useEffect)(O,k);let A;return t[29]===g?A=t[30]:(A={dragBarRef:x,hiddenElement:g,firstRef:b,setHiddenElement:_,secondRef:S},t[29]=g,t[30]=A),A}var _h=`hide-first`,vh=`hide-second`,yh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`button`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});yh.displayName=`UnStyledButton`;var bh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(7),r;n[0]!==e.className||n[1]!==e.state?(r=rh(`graphiql-button`,{success:`graphiql-button-success`,error:`graphiql-button-error`}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,Y.jsx)(`button`,{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});bh.displayName=`Button`;var xh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-button-group`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});xh.displayName=`ButtonGroup`;var Sh=Object.defineProperty,Ch=(e,t)=>Sh(e,`name`,{value:t,configurable:!0}),wh=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Th=q.forwardRef(Ch(function(e,t){return(0,Y.jsx)(Be.span,{...e,ref:t,style:{...wh,...e.style}})},`VisuallyHidden`)),Eh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(8),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-dialog-close`,e.className),n[0]=e.className,n[1]=r);let i,a;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(Th,{children:`Close dialog`}),a=(0,Y.jsx)(km,{}),n[2]=i,n[3]=a):(i=n[2],a=n[3]);let o;return n[4]!==e||n[5]!==t||n[6]!==r?(o=(0,Y.jsx)(s,{asChild:!0,children:(0,Y.jsxs)(yh,{...e,ref:t,type:`button`,className:r,children:[i,a]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=o):o=n[7],o});Eh.displayName=`Dialog.Close`;var Dh=Object.assign(e=>{let t=(0,J.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(M,{className:`graphiql-dialog-overlay`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=(0,Y.jsxs)(te,{children:[i,(0,Y.jsx)(Re,{className:`graphiql-dialog`,children:n})]}),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a?(o=(0,Y.jsx)(g,{...r,children:a}),t[6]=r,t[7]=a,t[8]=o):o=t[8],o},{Close:Eh,Title:S,Trigger:O,Description:A}),Oh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-un-styled`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(d,{asChild:!0,children:(0,Y.jsx)(`button`,{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Oh.displayName=`DropdownMenuButton`;var kh=Object.assign(se,{Button:Oh,Item:e=>{let t=(0,J.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=rh(`graphiql-dropdown-item`,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,Y.jsx)(Te,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o},Content:e=>{let t=(0,J.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({children:n,align:a,sideOffset:o,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`start`:a,c=o===void 0?5:o,l;t[6]===r?l=t[7]:(l=rh(`graphiql-dropdown-content`,r),t[6]=r,t[7]=l);let u;return t[8]!==s||t[9]!==n||t[10]!==i||t[11]!==c||t[12]!==l?(u=(0,Y.jsx)(pt,{children:(0,Y.jsx)(ht,{align:s,sideOffset:c,className:l,...i,children:n})}),t[8]=s,t[9]=n,t[10]=i,t[11]=c,t[12]=l,t[13]=u):u=t[13],u}}),Ah=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(18),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({children:r,onlyShowFirstChild:i,type:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=`graphiql-markdown-${o}`,c=i&&`graphiql-markdown-preview`,l;n[5]!==a.className||n[6]!==s||n[7]!==c?(l=rh(s,c,a.className),n[5]=a.className,n[6]=s,n[7]=c,n[8]=l):l=n[8];let u;n[9]===r?u=n[10]:(u=vf.render(r),n[9]=r,n[10]=u);let d;n[11]===u?d=n[12]:(d={__html:u},n[11]=u,n[12]=d);let f;return n[13]!==a||n[14]!==t||n[15]!==l||n[16]!==d?(f=(0,Y.jsx)(`div`,{...a,ref:t,className:l,dangerouslySetInnerHTML:d}),n[13]=a,n[14]=t,n[15]=l,n[16]=d,n[17]=f):f=n[17],f});Ah.displayName=`MarkdownContent`;var jh=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(6),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-spinner`,e.className),n[0]=e.className,n[1]=r);let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Y.jsx)(`div`,{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});jh.displayName=`Spinner`;var Mh=(0,q.createContext)({});function Nh(e){let t=(0,q.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Ph=typeof window<`u`?q.useLayoutEffect:q.useEffect,Fh=(0,q.createContext)(null);function Ih(e,t){e.indexOf(t)===-1&&e.push(t)}function Lh(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Rh([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var zh=(e,t,n)=>n>t?t:n<e?e:n,Bh={},Vh=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Hh=e=>typeof e==`object`&&!!e,Uh=e=>/^0[^.\s]+$/u.test(e);function Wh(e){let t;return()=>(t===void 0&&(t=e()),t)}var Gh=e=>e,Kh=(...e)=>e.reduce((e,t)=>n=>t(e(n))),qh=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Jh=class{constructor(){this.subscriptions=[]}add(e){return Ih(this.subscriptions,e),()=>Lh(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Yh=e=>e*1e3,Xh=e=>e/1e3,Zh=(e,t)=>t?1e3/t*e:0,Qh=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$h=1e-7,eg=12;function tg(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Qh(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>$h&&++s<eg);return o}function ng(e,t,n,r){if(e===t&&n===r)return Gh;let i=t=>tg(t,0,1,e,n);return e=>e===0||e===1?e:Qh(i(e),t,r)}var rg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ig=e=>t=>1-e(1-t),ag=ng(.33,1.53,.69,.99),og=ig(ag),sg=rg(og),cg=e=>e>=1?1:(e*=2)<1?.5*og(e):.5*(2-2**(-10*(e-1))),lg=e=>1-Math.sin(Math.acos(e)),ug=ig(lg),dg=rg(lg),fg=ng(.42,0,1,1),pg=ng(0,0,.58,1),mg=ng(.42,0,.58,1),hg=e=>Array.isArray(e)&&typeof e[0]!=`number`,gg=e=>Array.isArray(e)&&typeof e[0]==`number`,_g={linear:Gh,easeIn:fg,easeInOut:mg,easeOut:pg,circIn:lg,circInOut:dg,circOut:ug,backIn:og,backInOut:sg,backOut:ag,anticipate:cg},vg=e=>typeof e==`string`,yg=e=>{if(gg(e)){e.length;let[t,n,r,i]=e;return ng(t,n,r,i)}return vg(e)?(_g[e],`${e}`,_g[e]):e},bg=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function xg(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Sg=40;function Cg(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=bg.reduce((e,t)=>(e[t]=xg(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Bh.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Sg),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:bg.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<bg.length;t++)o[bg[t]].cancel(e)},state:i,steps:o}}var{schedule:wg,cancel:Tg,state:Eg,steps:Dg}=Cg(typeof requestAnimationFrame<`u`?requestAnimationFrame:Gh,!0),Og;function kg(){Og=void 0}var Ag={now:()=>(Og===void 0&&Ag.set(Eg.isProcessing||Bh.useManualTiming?Eg.timestamp:performance.now()),Og),set:e=>{Og=e,queueMicrotask(kg)}},jg=e=>t=>typeof t==`string`&&t.startsWith(e),Mg=jg(`--`),Ng=jg(`var(--`),Pg=e=>Ng(e)?Fg.test(e.split(`/*`)[0].trim()):!1,Fg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ig(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Lg={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Rg={...Lg,transform:e=>zh(0,1,e)},zg={...Lg,default:1},Bg=e=>Math.round(e*1e5)/1e5,Vg=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hg(e){return e==null}var Ug=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wg=(e,t)=>n=>!!(typeof n==`string`&&Ug.test(n)&&n.startsWith(e)||t&&!Hg(n)&&Object.prototype.hasOwnProperty.call(n,t)),Gg=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Vg);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Kg=e=>zh(0,255,e),qg={...Lg,transform:e=>Math.round(Kg(e))},Jg={test:Wg(`rgb`,`red`),parse:Gg(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+qg.transform(e)+`, `+qg.transform(t)+`, `+qg.transform(n)+`, `+Bg(Rg.transform(r))+`)`};function Yg(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Xg={test:Wg(`#`),parse:Yg,transform:Jg.transform},Zg=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qg=Zg(`deg`),$g=Zg(`%`),Z=Zg(`px`),e_=Zg(`vh`),t_=Zg(`vw`),n_={...$g,parse:e=>$g.parse(e)/100,transform:e=>$g.transform(e*100)},r_={test:Wg(`hsl`,`hue`),parse:Gg(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+$g.transform(Bg(t))+`, `+$g.transform(Bg(n))+`, `+Bg(Rg.transform(r))+`)`},i_={test:e=>Jg.test(e)||Xg.test(e)||r_.test(e),parse:e=>Jg.test(e)?Jg.parse(e):r_.test(e)?r_.parse(e):Xg.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Jg.transform(e):r_.transform(e),getAnimatableNone:e=>{let t=i_.parse(e);return t.alpha=0,i_.transform(t)}},a_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o_(e){return isNaN(e)&&typeof e==`string`&&(e.match(Vg)?.length||0)+(e.match(a_)?.length||0)>0}var s_=`number`,c_=`color`,l_=`var`,u_=`var(`,d_="${}",f_=/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 p_(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(f_,e=>(i_.test(e)?(r.color.push(a),i.push(c_),n.push(i_.parse(e))):e.startsWith(u_)?(r.var.push(a),i.push(l_),n.push(e)):(r.number.push(a),i.push(s_),n.push(parseFloat(e))),++a,d_)).split(d_),indexes:r,types:i}}function m_(e){return p_(e).values}function h_({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===s_?Bg(r[a]):e===c_?i_.transform(r[a]):r[a]}return i}}function g_(e){return h_(p_(e))}var __=e=>typeof e==`number`?0:i_.test(e)?i_.getAnimatableNone(e):e,v_=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:__(e);function y_(e){let t=p_(e);return h_(t)(t.values.map((e,n)=>v_(e,t.split[n])))}var b_={test:o_,parse:m_,createTransformer:g_,getAnimatableNone:y_};function x_(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function S_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=x_(s,r,e+1/3),a=x_(s,r,e),o=x_(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function C_(e,t){return n=>n>0?t:e}var w_=(e,t,n)=>e+(t-e)*n,T_=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},E_=[Xg,Jg,r_],D_=e=>E_.find(t=>t.test(e));function O_(e){let t=D_(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===r_&&(n=S_(n)),n}var k_=(e,t)=>{let n=O_(e),r=O_(t);if(!n||!r)return C_(e,t);let i={...n};return e=>(i.red=T_(n.red,r.red,e),i.green=T_(n.green,r.green,e),i.blue=T_(n.blue,r.blue,e),i.alpha=w_(n.alpha,r.alpha,e),Jg.transform(i))},A_=new Set([`none`,`hidden`]);function j_(e,t){return A_.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function M_(e,t){return n=>w_(e,t,n)}function N_(e){return typeof e==`number`?M_:typeof e==`string`?Pg(e)?C_:i_.test(e)?k_:L_:Array.isArray(e)?P_:typeof e==`object`?i_.test(e)?k_:F_:C_}function P_(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>N_(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function F_(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=N_(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function I_(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var L_=(e,t)=>{let n=b_.createTransformer(t),r=p_(e),i=p_(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?A_.has(e)&&!i.values.length||A_.has(t)&&!r.values.length?j_(e,t):Kh(P_(I_(r,i),i.values),n):(`${e}${t}`,C_(e,t))};function R_(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?w_(e,t,n):N_(e)(e,t)}var z_=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>wg.update(t,e),stop:()=>Tg(t),now:()=>Eg.isProcessing?Eg.timestamp:Ag.now()}},B_=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},V_=2e4;function H_(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}function U_(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(H_(r),V_);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Xh(i)}}var W_={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 G_(e,t){return e*Math.sqrt(1-t*t)}var K_=12;function q_(e,t,n){let r=n;for(let n=1;n<K_;n++)r-=e(r)/t(r);return r}var J_=.001;function Y_({duration:e=W_.duration,bounce:t=W_.bounce,velocity:n=W_.velocity,mass:r=W_.mass}){let i,a;W_.maxDuration;let o=1-t;o=zh(W_.minDamping,W_.maxDamping,o),e=zh(W_.minDuration,W_.maxDuration,Xh(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=G_(t,o),c=Math.exp(-i);return J_-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=G_(t**2,o);return(-i(t)+J_>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=q_(i,a,s);if(e=Yh(e),isNaN(c))return{stiffness:W_.stiffness,damping:W_.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var X_=[`duration`,`bounce`],Z_=[`stiffness`,`damping`,`mass`];function Q_(e,t){return t.some(t=>e[t]!==void 0)}function $_(e){let t={velocity:W_.velocity,stiffness:W_.stiffness,damping:W_.damping,mass:W_.mass,isResolvedFromDuration:!1,...e};if(!Q_(e,Z_)&&Q_(e,X_)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*zh(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:W_.mass,stiffness:i,damping:a}}else{let n=Y_({...e,velocity:0});t={...t,...n,mass:W_.mass},t.isResolvedFromDuration=!0}}return t}function ev(e=W_.visualDuration,t=W_.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=$_({...n,velocity:-Xh(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Xh(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?W_.restSpeed.granular:W_.restSpeed.default,i||=v?W_.restDelta.granular:W_.restDelta.default;let y,b,x,S,C,w;if(h<1)x=G_(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Yh(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Yh(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Yh(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(H_(T),V_),t=B_(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}ev.applyToOptions=e=>{let t=U_(e,100,ev);return e.ease=t.ease,e.duration=Yh(t.duration),e.type=`keyframes`,e};var tv=5;function nv(e,t,n){let r=Math.max(t-tv,0);return Zh(n-e(r),t-r)}function rv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=ev({keyframes:[f.value,m(f.value)],velocity:nv(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function iv(e,t,n){let r=[],i=n||Bh.mix||R_,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Kh(Array.isArray(t)?t[n]||Gh:t,a)),r.push(a)}return r}function av(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=iv(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=qh(e[r],e[r+1],n);return s[r](i)};return n?t=>l(zh(e[0],e[a-1],t)):l}function ov(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=qh(0,t,r);e.push(w_(n,1,i))}}function sv(e){let t=[0];return ov(t,e.length-1),t}function cv(e,t){return e.map(e=>e*t)}function lv(e,t){return e.map(()=>t||mg).splice(0,e.length-1)}function uv({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=hg(r)?r.map(yg):yg(r),a={done:!1,value:t[0]},o=av(cv(n&&n.length===t.length?n:sv(t),e),t,{ease:Array.isArray(i)?i:lv(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var dv=e=>e!==null;function fv(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(dv),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var pv={decay:rv,inertia:rv,tween:uv,keyframes:uv,spring:ev};function mv(e){typeof e.type==`string`&&(e.type=pv[e.type])}var hv=class{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)}},gv=e=>e/100,_v=class extends hv{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!==Ag.now()&&this.tick(Ag.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;mv(e);let{type:t=uv,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||uv;s!==uv&&typeof o[0]!=`number`&&(this.mixKeyframes=Kh(gv,R_(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=H_(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=zh(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==rv&&(b.value=fv(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Xh(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Xh(e)}get time(){return Xh(this.currentTime)}set time(e){e=Yh(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?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 nv(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(Ag.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Xh(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=z_,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Ag.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&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}stopDriver(){this.driver&&=(this.driver.stop(),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)}};function vv(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var yv=e=>e*180/Math.PI,bv=e=>Sv(yv(Math.atan2(e[1],e[0]))),xv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:bv,rotateZ:bv,skewX:e=>yv(Math.atan(e[1])),skewY:e=>yv(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Sv=e=>(e%=360,e<0&&(e+=360),e),Cv=bv,wv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Tv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ev={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:wv,scaleY:Tv,scale:e=>(wv(e)+Tv(e))/2,rotateX:e=>Sv(yv(Math.atan2(e[6],e[5]))),rotateY:e=>Sv(yv(Math.atan2(-e[2],e[0]))),rotateZ:Cv,rotate:Cv,skewX:e=>yv(Math.atan(e[4])),skewY:e=>yv(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Dv(e){return+!!e.includes(`scale`)}function Ov(e,t){if(!e||e===`none`)return Dv(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ev,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xv,i=t}if(!i)return Dv(t);let a=r[t],o=i[1].split(`,`).map(Av);return typeof a==`function`?a(o):o[a]}var kv=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ov(n,t)};function Av(e){return parseFloat(e.trim())}var jv=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Mv=new Set([...jv,`pathRotation`]),Nv=e=>e===Lg||e===Z,Pv=new Set([`x`,`y`,`z`]),Fv=jv.filter(e=>!Pv.has(e));function Iv(e){let t=[];return Fv.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Lv={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-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})=>Ov(t,`x`),y:(e,{transform:t})=>Ov(t,`y`)};Lv.translateX=Lv.x,Lv.translateY=Lv.y;var Rv=new Set,zv=!1,Bv=!1,Vv=!1;function Hv(){if(Bv){let e=Array.from(Rv).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Iv(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=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Bv=!1,zv=!1,Rv.forEach(e=>e.complete(Vv)),Rv.clear()}function Uv(){Rv.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bv=!0)})}function Wv(){Vv=!0,Uv(),Hv(),Vv=!1}var Gv=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Rv.add(this),zv||(zv=!0,wg.read(Uv),wg.resolveKeyframes(Hv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}vv(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Rv.delete(this)}cancel(){this.state===`scheduled`&&(Rv.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Kv=e=>e.startsWith(`--`);function qv(e,t,n){Kv(t)?e.style.setProperty(t,n):e.style[t]=n}var Jv={};function Yv(e,t){let n=Wh(e);return()=>Jv[t]??n()}var Xv=Yv(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Zv=Yv(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Qv=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$v={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Qv([0,.65,.55,1]),circOut:Qv([.55,0,1,.45]),backIn:Qv([.31,.01,.66,-.59]),backOut:Qv([.33,1.53,.69,.99])};function ey(e,t){if(e)return typeof e==`function`?Zv()?B_(e,t):`ease-out`:gg(e)?Qv(e):Array.isArray(e)?e.map(e=>ey(e,t)||$v.easeOut):$v[e]}function ty(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ey(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function ny(e){return typeof e==`function`&&`applyToOptions`in e}function ry({type:e,...t}){return ny(e)&&Zv()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var iy=class extends hv{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=ry(e);this.animation=ty(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=fv(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),qv(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(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(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Xh(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Xh(e)}get time(){return Xh(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Yh(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 this.finishedTime===null?this.animation.playState:`finished`}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:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Xv()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Gh):r(this)}},ay={anticipate:cg,backInOut:sg,circInOut:dg};function oy(e){return e in ay}function sy(e){typeof e.ease==`string`&&oy(e.ease)&&(e.ease=ay[e.ease])}var cy=10,ly=class extends iy{constructor(e){sy(e),mv(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new _v({...a,autoplay:!1}),s=Math.max(cy,Ag.now()-this.startTime),c=zh(0,cy,s-cy),l=o.sample(s).value,{name:u}=this.options;i&&u&&qv(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},uy=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(b_.test(e)||e===`0`)&&!e.startsWith(`url(`));function dy(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function fy(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=uy(i,t),s=uy(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:dy(e)||(n===`spring`||ny(n))&&r}function py(e){e.duration=0,e.type=`keyframes`}var my=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),hy=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function gy(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&hy.test(e[t]))return!0;return!1}var _y=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),vy=Wh(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function yy(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return vy()&&n&&(my.has(n)||_y.has(n)&&gy(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var by=40,xy=class extends hv{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ag.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Gv;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Ag.now();let u=!0;fy(e,i,a,o)||(u=!1,(Bh.instantAnimations||!s)&&l?.(fv(e,n,t)),e[0]=e[e.length-1],py(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>by?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&yy(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new ly({...d,element:p})}catch{m=new _v(d)}else m=new _v(d);m.finished.then(()=>{this.notifyFinished()}).catch(Gh),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}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(),Wv()),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()}};function Sy(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Cy=30,wy=e=>!isNaN(parseFloat(e)),Ty={current:void 0},Ey=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Ag.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=Ag.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wy(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 Jh);let n=this.events[e].add(t);return e===`change`?()=>{n(),wg.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||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ty.current&&Ty.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Ag.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Cy)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Cy);return Zh(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}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 Dy(e,t){return new Ey(e,t)}function Oy(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ky(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Oy(n,e)}var Ay={type:`spring`,stiffness:500,damping:25,restSpeed:10},jy=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),My={type:`keyframes`,duration:.8},Ny={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Py=(e,{keyframes:t})=>t.length>2?My:Mv.has(e)?e.startsWith(`scale`)?jy(t[1]):Ay:Ny,Fy=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Iy(e){for(let t in e)if(!Fy.has(t))return!0;return!1}var Ly=(e,t,n,r={},i,a)=>o=>{let s=ky(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Yh(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Iy(s)||Object.assign(u,Py(e,u)),u.duration&&=Yh(u.duration),u.repeatDelay&&=Yh(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(py(u),u.delay===0&&(d=!0)),(Bh.instantAnimations||Bh.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,py(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=fv(u.keyframes,s);if(e!==void 0){wg.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new _v(u):new xy(u)},Ry=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zy(e){let t=Ry.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function By(e,t,n=1){`${e}`;let[r,i]=zy(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Vh(e)?parseFloat(e):e}return Pg(i)?By(i,t,n+1):i}function Vy(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Hy(e,t,n,r){if(typeof t==`function`){let[i,a]=Vy(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Vy(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Uy(e,t,n){let r=e.getProps();return Hy(r,t,n===void 0?r.custom:n,e)}var Wy=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...jv]),Gy=e=>Array.isArray(e);function Ky(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dy(n))}function qy(e){return Gy(e)?e[e.length-1]||0:e}function Jy(e,t){let{transitionEnd:n={},transition:r={},...i}=Uy(e,t)||{};i={...i,...n};for(let t in i)Ky(e,t,qy(i[t]))}var Yy=e=>!!(e&&e.getVelocity);function Xy(e){return!!(Yy(e)&&e.add)}function Zy(e,t){let n=e.getValue(`willChange`);if(Xy(n))return n.add(t);if(!n&&Bh.WillChange){let n=new Bh.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Qy(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var $y=`data-`+Qy(`framerAppearId`);function eb(e){return e.props[$y]}function tb({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function nb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Oy(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&tb(f,t))continue;let o={delay:n,...ky(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){wg.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=eb(e);if(n){let e=window.MotionHandoffAnimation(n,t,wg);e!==null&&(o.startTime=e,p=!0)}}Zy(e,t);let m=l??e.shouldReduceMotion;r.start(Ly(t,r,i,m&&Wy.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>wg.update(()=>{o&&Jy(e,o)});d.length?Promise.all(d).then(t):t()}return d}function rb(e,t,n={}){let r=Uy(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(nb(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ib(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function ib(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(rb(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Sy(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ab(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>rb(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=rb(e,t,n);else{let i=typeof t==`function`?Uy(e,t,n.custom):t;r=Promise.all(nb(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ob={test:e=>e===`auto`,parse:e=>e},sb=e=>t=>t.test(e),cb=[Lg,Z,$g,Qg,t_,e_,ob],lb=e=>cb.find(sb(e));function ub(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Uh(e)}var db=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function fb(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Vg)||[];if(!r)return e;let i=n.replace(r,``),a=+!!db.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var pb=/\b([a-z-]*)\(.*?\)/gu,mb={...b_,getAnimatableNone:e=>{let t=e.match(pb);return t?t.map(fb).join(` `):e}},hb={...b_,getAnimatableNone:e=>{let t=b_.parse(e);return b_.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},gb={...Lg,transform:Math.round},_b={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,inset:Z,insetBlock:Z,insetBlockStart:Z,insetBlockEnd:Z,insetInline:Z,insetInlineStart:Z,insetInlineEnd:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,paddingBlock:Z,paddingBlockStart:Z,paddingBlockEnd:Z,paddingInline:Z,paddingInlineStart:Z,paddingInlineEnd:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,marginBlock:Z,marginBlockStart:Z,marginBlockEnd:Z,marginInline:Z,marginInlineStart:Z,marginInlineEnd:Z,fontSize:Z,backgroundPositionX:Z,backgroundPositionY:Z,rotate:Qg,pathRotation:Qg,rotateX:Qg,rotateY:Qg,rotateZ:Qg,scale:zg,scaleX:zg,scaleY:zg,scaleZ:zg,skew:Qg,skewX:Qg,skewY:Qg,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:Rg,originX:n_,originY:n_,originZ:Z,zIndex:gb,fillOpacity:Rg,strokeOpacity:Rg,numOctaves:gb},vb={..._b,color:i_,backgroundColor:i_,outlineColor:i_,fill:i_,stroke:i_,borderColor:i_,borderTopColor:i_,borderRightColor:i_,borderBottomColor:i_,borderLeftColor:i_,filter:mb,WebkitFilter:mb,mask:hb,WebkitMask:hb},yb=e=>vb[e],bb=new Set([mb,hb]);function xb(e,t){let n=yb(e);return bb.has(n)||(n=b_),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Sb=new Set([`auto`,`none`,`0`]);function Cb(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Sb.has(t)&&p_(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=xb(n,i)}var wb=class extends Gv{constructor(e,t,n,r,i){super(e,t,n,r,i,!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 r=e[n];if(typeof r==`string`&&(r=r.trim(),Pg(r))){let i=By(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Wy.has(n)||e.length!==2)return;let[r,i]=e,a=lb(r),o=lb(i);if(Ig(r)!==Ig(i)&&Lv[n])this.needsMeasurement=!0;else if(a!==o){if(Nv(a)&&Nv(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Lv[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ub(e[t]))&&n.push(t);n.length&&Cb(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lv[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Lv[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Tb=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Eb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Db=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ob(e){return Hh(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:kb,cancel:Ab}=Cg(queueMicrotask,!1),jb={x:!1,y:!1};function Mb(){return jb.x||jb.y}function Nb(e){return e===`x`||e===`y`?jb[e]?null:(jb[e]=!0,()=>{jb[e]=!1}):jb.x||jb.y?null:(jb.x=jb.y=!0,()=>{jb.x=jb.y=!1})}function Pb(e,t){let n=Eb(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Fb(e){return!(e.pointerType===`touch`||Mb())}function Ib(e,t,n={}){let[r,i,a]=Pb(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Fb(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Lb=(e,t)=>t?e===t||Lb(e,t.parentElement):!1,Rb=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,zb=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Bb(e){return zb.has(e.tagName)||e.isContentEditable===!0}var Vb=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Hb(e){return Vb.has(e.tagName)||e.isContentEditable===!0}var Ub=new WeakSet;function Wb(e){return t=>{t.key===`Enter`&&e(t)}}function Gb(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Kb=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Wb(()=>{if(Ub.has(n))return;Gb(n,`down`);let e=Wb(()=>{Gb(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Gb(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function qb(e){return Rb(e)&&!Mb()}var Jb=new WeakSet;function Yb(e,t,n={}){let[r,i,a]=Pb(e,n),o=e=>{let r=e.currentTarget;if(!qb(e)||Jb.has(e))return;Ub.add(r),n.stopPropagation&&Jb.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Ub.has(r)&&Ub.delete(r),qb(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Lb(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ob(e)&&(e.addEventListener(`focus`,e=>Kb(e,i)),!Bb(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Xb(e){return Hh(e)&&`ownerSVGElement`in e}var Zb=new WeakMap,Qb,$b=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Xb(r)&&`getBBox`in r?r.getBBox()[t]:r[n],ex=$b(`inline`,`width`,`offsetWidth`),tx=$b(`block`,`height`,`offsetHeight`);function nx({target:e,borderBoxSize:t}){Zb.get(e)?.forEach(n=>{n(e,{get width(){return ex(e,t)},get height(){return tx(e,t)}})})}function rx(e){e.forEach(nx)}function ix(){typeof ResizeObserver<`u`&&(Qb=new ResizeObserver(rx))}function ax(e,t){Qb||ix();let n=Eb(e);return n.forEach(e=>{let n=Zb.get(e);n||(n=new Set,Zb.set(e,n)),n.add(t),Qb?.observe(e)}),()=>{n.forEach(e=>{let n=Zb.get(e);n?.delete(t),n?.size||Qb?.unobserve(e)})}}var ox=new Set,sx;function cx(){sx=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ox.forEach(t=>t(e))},window.addEventListener(`resize`,sx)}function lx(e){return ox.add(e),sx||cx(),()=>{ox.delete(e),!ox.size&&typeof sx==`function`&&(window.removeEventListener(`resize`,sx),sx=void 0)}}function ux(e,t){return typeof e==`function`?lx(e):ax(e,t)}var dx={value:null,addProjectionMetrics:null};function fx(e){return Xb(e)&&e.tagName===`svg`}function px(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=av(i,a,o);return t?s(r):s}var mx=[...cb,i_,b_],hx=e=>mx.find(sb(e)),gx=()=>({translate:0,scale:1,origin:0,originPoint:0}),_x=()=>({x:gx(),y:gx()}),vx=()=>({min:0,max:0}),yx=()=>({x:vx(),y:vx()}),bx=new WeakMap;function xx(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Sx(e){return typeof e==`string`||Array.isArray(e)}var Cx=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],wx=[`initial`,...Cx];function Tx(e){return xx(e.animate)||wx.some(t=>Sx(e[t]))}function Ex(e){return!!(Tx(e)||e.variants)}function Dx(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Yy(i))e.addValue(r,i);else if(Yy(a))e.addValue(r,Dy(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Dy(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ox={current:null},kx={current:!1},Ax=typeof window<`u`;function jx(){if(kx.current=!0,Ax){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ox.current=e.matches;e.addEventListener(`change`,t),t()}else Ox.current=!1}}var Mx=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Nx={};function Px(e){Nx=e}function Fx(){return Nx}var Ix=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Gv,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=Ag.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,wg.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Tx(t),this.isVariantNode=Ex(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Yy(t)&&t.set(c[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,bx.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(kx.current||jx(),this.shouldReduceMotion=Ox.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Tg(this.notifyUpdate),Tg(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&my.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new iy({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Yh(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Mv.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&wg.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Nx){let t=Nx[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(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):yx()}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<Mx.length;t++){let n=Mx[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Dx(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 n===void 0&&t!==void 0&&(n=Dy(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Vh(n)||Uh(n))?n=parseFloat(n):!hx(n)&&b_.test(t)&&(n=xb(e,t)),this.setBaseTarget(e,Yy(n)?n.get():n)),Yy(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Hy(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Yy(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Jh),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){kb.render(this.render)}},Lx=class extends Ix{constructor(){super(...arguments),this.KeyframeResolver=wb}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?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;Yy(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Rx=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function zx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bx({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Vx(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hx(e){return e===void 0||e===1}function Ux({scale:e,scaleX:t,scaleY:n}){return!Hx(e)||!Hx(t)||!Hx(n)}function Wx(e){return Ux(e)||Gx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Gx(e){return Kx(e.x)||Kx(e.y)}function Kx(e){return e&&e!==`0%`}function qx(e,t,n){return n+t*(e-n)}function Jx(e,t,n,r,i){return i!==void 0&&(e=qx(e,i,r)),qx(e,n,r)+t}function Yx(e,t=0,n=1,r,i){e.min=Jx(e.min,t,n,r,i),e.max=Jx(e.max,t,n,r,i)}function Xx(e,{x:t,y:n}){Yx(e.x,t.translate,t.scale,t.originPoint),Yx(e.y,n.translate,n.scale,n.originPoint)}var Zx=.999999999999,Qx=1.0000000000001;function $x(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(eS(e.x,-a.scroll.offset.x),eS(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Xx(e,o)),r&&Wx(a.latestValues)&&rS(e,a.latestValues,a.layout?.layoutBox))}t.x<Qx&&t.x>Zx&&(t.x=1),t.y<Qx&&t.y>Zx&&(t.y=1)}function eS(e,t){e.min+=t,e.max+=t}function tS(e,t,n,r,i=.5){Yx(e,t,n,w_(e.min,e.max,i),r)}function nS(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function rS(e,t,n){let r=n??e;tS(e.x,nS(t.x,r.x),t.scaleX,t.scale,t.originX),tS(e.y,nS(t.y,r.y),t.scaleY,t.scale,t.originY)}function iS(e,t){return zx(Vx(e.getBoundingClientRect(),t))}function aS(e,t,n){let r=iS(e,n),{scroll:i}=t;return i&&(eS(r.x,i.offset.x),eS(r.y,i.offset.y)),r}var oS={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},sS=jv.length;function cS(e,t,n){let r=``,i=!0;for(let a=0;a<sS;a++){let o=jv[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Db(s,_b[o]);if(!c){i=!1;let t=oS[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Db(a,_b.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function lS(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Mv.has(e))o=!0;else if(Mg(e))i[e]=n;else{let t=Db(n,_b[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=cS(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function uS(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function dS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var fS={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(Z.test(e))e=parseFloat(e);else return e}return`${dS(e,t.target.x)}% ${dS(e,t.target.y)}%`}},pS={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=b_.parse(e);if(i.length>5)return r;let a=b_.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=w_(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},mS={borderRadius:{...fS,applyTo:[...Tb]},borderTopLeftRadius:fS,borderTopRightRadius:fS,borderBottomLeftRadius:fS,borderBottomRightRadius:fS,boxShadow:pS};function hS(e,{layout:t,layoutId:n}){return Mv.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!mS[e]||e===`opacity`)}function gS(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Yy(r[t])||i&&Yy(i[t])||hS(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function _S(e){return window.getComputedStyle(e)}var vS=class extends Lx{constructor(){super(...arguments),this.type=`html`,this.renderInstance=uS}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Mv.has(t))return this.projection?.isProjecting?Dv(t):kv(e,t);{let n=_S(e),r=(Mg(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return iS(e,t)}build(e,t,n){lS(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return gS(e,t,n)}},yS={offset:`stroke-dashoffset`,array:`stroke-dasharray`},bS={offset:`strokeDashoffset`,array:`strokeDasharray`};function xS(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?yS:bS;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var SS=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function CS(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(lS(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of SS)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&xS(d,i,a,o,!1)}var wS=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`]),TS=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ES(e,t,n,r){uS(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(wS.has(n)?n:Qy(n),t.attrs[n])}function DS(e,t,n){let r=gS(e,t,n);for(let n in e)if(Yy(e[n])||Yy(t[n])){let t=jv.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var OS=class extends Lx{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=yx}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Mv.has(t)){let e=yb(t);return e&&e.default||0}return t=wS.has(t)?t:Qy(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return DS(e,t,n)}build(e,t,n){CS(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ES(e,t,n,r)}mount(e){this.isSVGTag=TS(e.tagName),super.mount(e)}},kS=wx.length;function AS(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&AS(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<kS;n++){let r=wx[n],i=e.props[r];(Sx(i)||i===!1)&&(t[r]=i)}return t}function jS(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var MS=[...Cx].reverse(),NS=Cx.length;function PS(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ab(e,t,n)))}function FS(e){let t=PS(e),n=RS(),r=!0,i=!1,a=t=>(n,r)=>{let i=Uy(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=AS(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<NS;t++){let p=MS[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Sx(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||xx(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=IS(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Gy(t)&&Gy(n)?!jS(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Uy(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Sy(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Uy(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=RS(),i=!0}}}function IS(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!jS(t,e):!1}function LS(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function RS(){return{animate:LS(!0),whileInView:LS(),whileHover:LS(),whileTap:LS(),whileDrag:LS(),whileFocus:LS(),exit:LS()}}function zS(e,t){e.min=t.min,e.max=t.max}function BS(e,t){zS(e.x,t.x),zS(e.y,t.y)}function VS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var HS=.9999,US=1.0001,WS=-.01,GS=.01;function KS(e){return e.max-e.min}function qS(e,t,n){return Math.abs(e-t)<=n}function JS(e,t,n,r=.5){e.origin=r,e.originPoint=w_(t.min,t.max,e.origin),e.scale=KS(n)/KS(t),e.translate=w_(n.min,n.max,e.origin)-e.originPoint,(e.scale>=HS&&e.scale<=US||isNaN(e.scale))&&(e.scale=1),(e.translate>=WS&&e.translate<=GS||isNaN(e.translate))&&(e.translate=0)}function YS(e,t,n,r){JS(e.x,t.x,n.x,r?r.originX:void 0),JS(e.y,t.y,n.y,r?r.originY:void 0)}function XS(e,t,n,r=0){e.min=(r?w_(n.min,n.max,r):n.min)+t.min,e.max=e.min+KS(t)}function ZS(e,t,n,r){XS(e.x,t.x,n.x,r?.x),XS(e.y,t.y,n.y,r?.y)}function QS(e,t,n,r=0){let i=r?w_(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+KS(t)}function $S(e,t,n,r){QS(e.x,t.x,n.x,r?.x),QS(e.y,t.y,n.y,r?.y)}function eC(e,t,n,r,i){return e-=t,e=qx(e,1/n,r),i!==void 0&&(e=qx(e,1/i,r)),e}function tC(e,t=0,n=1,r=.5,i,a=e,o=e){if($g.test(t)&&(t=parseFloat(t),t=w_(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=w_(a.min,a.max,r);e===a&&(s-=t),e.min=eC(e.min,t,n,s,i),e.max=eC(e.max,t,n,s,i)}function nC(e,t,[n,r,i],a,o){tC(e,t[n],t[r],t[i],t.scale,a,o)}var rC=[`x`,`scaleX`,`originX`],iC=[`y`,`scaleY`,`originY`];function aC(e,t,n,r){nC(e.x,t,rC,n?n.x:void 0,r?r.x:void 0),nC(e.y,t,iC,n?n.y:void 0,r?r.y:void 0)}function oC(e){return e.translate===0&&e.scale===1}function sC(e){return oC(e.x)&&oC(e.y)}function cC(e,t){return e.min===t.min&&e.max===t.max}function lC(e,t){return cC(e.x,t.x)&&cC(e.y,t.y)}function uC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dC(e,t){return uC(e.x,t.x)&&uC(e.y,t.y)}function fC(e){return KS(e.x)/KS(e.y)}function pC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function mC(e){return[e(`x`),e(`y`)]}function hC(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var gC=Tb.length,_C=e=>typeof e==`string`?parseFloat(e):e,vC=e=>typeof e==`number`||Z.test(e);function yC(e,t,n,r,i,a){i?(e.opacity=w_(0,n.opacity??1,xC(r)),e.opacityExit=w_(t.opacity??1,0,SC(r))):a&&(e.opacity=w_(t.opacity??1,n.opacity??1,r));for(let i=0;i<gC;i++){let a=Tb[i],o=bC(t,a),s=bC(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||vC(o)===vC(s)?(e[a]=Math.max(w_(_C(o),_C(s),r),0),($g.test(s)||$g.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=w_(t.rotate||0,n.rotate||0,r))}function bC(e,t){return e[t]===void 0?e.borderRadius:e[t]}var xC=CC(0,.5,ug),SC=CC(.5,.95,Gh);function CC(e,t,n){return r=>r<e?0:r>t?1:n(qh(e,t,r))}function wC(e,t,n){let r=Yy(e)?e:Dy(e);return r.start(Ly(``,r,t,n)),r.animation}function TC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var EC=(e,t)=>e.depth-t.depth,DC=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ih(this.children,e),this.isDirty=!0}remove(e){Lh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(EC),this.isDirty=!1,this.children.forEach(e)}};function OC(e,t){let n=Ag.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Tg(r),e(a-t))};return wg.setup(r,!0),()=>Tg(r)}function kC(e){return Yy(e)?e.get():e}var AC=class{constructor(){this.members=[]}add(e){Ih(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 r=n.instance;r&&r.isConnected!==!1||n.snapshot||(Lh(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Lh(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(e.isPresent!==!1&&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:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(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)),e.options.crossfade===!1&&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)}},jC={hasAnimatedSinceResize:!0,hasEverUpdated:!1},MC={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},NC=[``,`X`,`Y`,`Z`],PC=1e3,FC=0;function IC(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function LC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=eb(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,wg,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&LC(r)}function RC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=FC++,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,dx.value&&(MC.nodes=MC.calculatedTargetDeltas=MC.calculatedProjections=0),this.nodes.forEach(VC),this.nodes.forEach(XC),this.nodes.forEach(ZC),this.nodes.forEach(HC),dx.addProjectionMetrics&&dx.addProjectionMetrics(MC)},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 DC)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Jh),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=Xb(t)&&!fx(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;wg.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=OC(i,250),jC.hasAnimatedSinceResize&&(jC.hasAnimatedSinceResize=!1,this.nodes.forEach(YC)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||iw,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!dC(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ky(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||YC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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(),Tg(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(QC),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&&LC(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,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(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(GC),this.nodes.forEach(WC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(KC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qC),this.nodes.forEach(JC),this.nodes.forEach(zC),this.nodes.forEach(BC)):this.nodes.forEach(KC),this.clearAllSnapshots();let e=Ag.now();Eg.delta=zh(0,1e3/60,e-Eg.timestamp),Eg.timestamp=e,Eg.isProcessing=!0,Dg.update.process(Eg),Dg.preRender.process(Eg),Dg.render.process(Eg),Eg.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UC),this.sharedNodes.forEach($C)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wg.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wg.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!KS(this.snapshot.measuredBox.x)&&!KS(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||=yx(),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=r(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(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!sC(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Wx(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),cw(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return yx();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(uw))){let{scroll:e}=this.root;e&&(eS(t.x,e.offset.x),eS(t.y,e.offset.y))}return t}removeElementScroll(e){let t=yx();if(BS(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&BS(t,e),eS(t.x,i.offset.x),eS(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||yx();BS(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(eS(r.x,-n.scroll.offset.x),eS(r.y,-n.scroll.offset.y)),Wx(n.latestValues)&&rS(r,n.latestValues,n.layout?.layoutBox)}return Wx(this.latestValues)&&rS(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=yx();BS(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Wx(n.latestValues))continue;let r;n.instance&&(Ux(n.latestValues)&&n.updateSnapshot(),r=yx(),BS(r,n.measurePageBox())),aC(t,n.latestValues,n.snapshot?.layoutBox,r)}return Wx(this.latestValues)&&aC(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||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!==Eg.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,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:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Eg.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=yx(),this.targetWithTransforms=yx()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZS(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):BS(this.target,this.layout.layoutBox),Xx(this.target,this.targetDelta)):BS(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),dx.value&&MC.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ux(this.parent.latestValues)||Gx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent: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=yx(),this.relativeTargetOrigin=yx(),$S(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),BS(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===Eg.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;BS(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;$x(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=yx());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(VS(this.prevProjectionDelta.x,this.projectionDelta.x),VS(this.prevProjectionDelta.y,this.projectionDelta.y)),YS(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&pC(this.projectionDelta.x,this.prevProjectionDelta.x)&&pC(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),dx.value&&MC.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}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=_x(),this.projectionDelta=_x(),this.projectionDeltaWithTransform=_x()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=_x();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=yx(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(rw));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=w_(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=w_(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(ew(o.x,e.x,n),ew(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($S(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),nw(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&lC(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=yx(),BS(f,this.relativeTarget)),c&&(this.animationValues=a,yC(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Tg(this.pendingAnimation),void 0),this.pendingAnimation=wg.update(()=>{jC.hasAnimatedSinceResize=!0,this.motionValue||=Dy(0),this.motionValue.jump(0,!1),this.currentAnimation=wC(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{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(PC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&lw(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||yx();let t=KS(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=KS(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}BS(t,n),rS(t,i),YS(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new AC),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 r=this.getStack();r&&r.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):!1}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 r={};n.z&&IC(`z`,e,r,this.animationValues);for(let t=0;t<NC.length;t++)IC(`rotate${NC[t]}`,e,r,this.animationValues),IC(`skew${NC[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[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=kC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=kC(t?.pointerEvents)||``),this.hasProjected&&!Wx(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=hC(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in mS){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=mS[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?kC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(WC),this.root.sharedNodes.clear()}}}function zC(e){e.updateLayout()}function BC(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)mC(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=KS(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;zS(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else lw(i,t.layoutBox,n)&&mC(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=KS(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=_x();YS(o,n,t.layoutBox);let s=_x();a?YS(s,e.applyTransform(r,!0),t.measuredBox):YS(s,n,t.layoutBox);let c=!sC(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=yx();$S(s,t.layoutBox,i.layoutBox,o);let c=yx();$S(c,n,a.layoutBox,o),dC(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function VC(e){dx.value&&MC.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function HC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function UC(e){e.clearSnapshot()}function WC(e){e.clearMeasurements()}function GC(e){e.isLayoutDirty=!0,e.updateLayout()}function KC(e){e.isLayoutDirty=!1}function qC(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function JC(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function YC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function XC(e){e.resolveTargetDelta()}function ZC(e){e.calcProjection()}function QC(e){e.resetSkewAndRotation()}function $C(e){e.removeLeadSnapshot()}function ew(e,t,n){e.translate=w_(t.translate,0,n),e.scale=w_(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tw(e,t,n,r){e.min=w_(t.min,n.min,r),e.max=w_(t.max,n.max,r)}function nw(e,t,n,r){tw(e.x,t.x,n.x,r),tw(e.y,t.y,n.y,r)}function rw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var iw={duration:.45,ease:[.4,0,.1,1]},aw=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ow=aw(`applewebkit/`)&&!aw(`chrome/`)?Math.round:Gh;function sw(e){e.min=ow(e.min),e.max=ow(e.max)}function cw(e){sw(e.x),sw(e.y)}function lw(e,t,n){return e===`position`||e===`preserve-aspect`&&!qS(fC(t),fC(n),.2)}function uw(e){return e!==e.root&&e.scroll?.wasRoot}var dw=RC({attachResizeListener:(e,t)=>TC(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fw={current:void 0},pw=RC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fw.current){let e=new dw({});e.mount(window),e.setOptions({layoutScroll:!0}),fw.current=e}return fw.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),mw=(0,q.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function hw(e=!0){let t=(0,q.useContext)(Fh);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,q.useId)();(0,q.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,q.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var gw=(0,q.createContext)({strict:!1}),_w={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`]},vw=!1;function yw(){if(vw)return;let e={};for(let t in _w)e[t]={isEnabled:e=>_w[t].some(t=>!!e[t])};Px(e),vw=!0}function bw(){return yw(),Fx()}function xw(e){let t=bw();for(let n in e)t[n]={...t[n],...e[n]};Px(t)}var Sw=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`.split(`.`));function Cw(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Sw.has(e)}var ww=e=>!Cw(e);function Tw(e){typeof e==`function`&&(ww=t=>t.startsWith(`on`)?!Cw(t):e(t))}try{Tw((ee(),e(p)).default)}catch{}function Ew(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Yy(e[i])||(ww(i)||n===!0&&Cw(i)||!t&&!Cw(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Dw=(0,q.createContext)({});function Ow(e,t){if(Tx(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Sx(t)?t:void 0,animate:Sx(n)?n:void 0}}return e.inherit===!1?{}:t}function kw(e){let{initial:t,animate:n}=Ow(e,(0,q.useContext)(Dw));return(0,q.useMemo)(()=>({initial:t,animate:n}),[Aw(t),Aw(n)])}function Aw(e){return Array.isArray(e)?e.join(` `):e}var jw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mw(e,t,n){for(let r in t)!Yy(t[r])&&!hS(r,n)&&(e[r]=t[r])}function Nw({transformTemplate:e},t){return(0,q.useMemo)(()=>{let n=jw();return lS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Pw(e,t){let n=e.style||{},r={};return Mw(r,n,e),Object.assign(r,Nw(e,t)),r}function Fw(e,t){let n={},r=Pw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Iw=()=>({...jw(),attrs:{}});function Lw(e,t,n,r){let i=(0,q.useMemo)(()=>{let n=Iw();return CS(n,t,TS(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Mw(t,e.style,e),i.style={...t,...i.style}}return i}var Rw=[`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 zw(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Rw.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bw(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??zw(e)?Lw:Fw)(t,r,i,e),c=Ew(t,typeof e==`string`,a),l=e===q.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,q.useMemo)(()=>Yy(u)?u.get():u,[u]);return(0,q.createElement)(e,{...l,children:d})}function Vw({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Hw(n,r,i,e),renderState:t()}}function Hw(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=kC(a[e]);let{initial:o,animate:s}=e,c=Tx(e),l=Ex(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!xx(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Hy(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Uw=e=>(t,n)=>{let r=(0,q.useContext)(Dw),i=(0,q.useContext)(Fh),a=()=>Vw(e,t,r,i);return n?a():Nh(a)},Ww=Uw({scrapeMotionValuesFromProps:gS,createRenderState:jw}),Gw=Uw({scrapeMotionValuesFromProps:DS,createRenderState:Iw}),Kw=Symbol.for(`motionComponentSymbol`);function qw(e,t,n){let r=(0,q.useRef)(n);(0,q.useInsertionEffect)(()=>{r.current=n});let i=(0,q.useRef)(null);return(0,q.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Jw=(0,q.createContext)({});function Yw(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Xw(e,t,n,r,i,a){let{visualElement:o}=(0,q.useContext)(Dw),s=(0,q.useContext)(gw),c=(0,q.useContext)(Fh),l=(0,q.useContext)(mw),u=l.reducedMotion,d=l.skipAnimations,f=(0,q.useRef)(null),p=(0,q.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,q.useContext)(Jw);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Zw(f.current,n,i,h);let g=(0,q.useRef)(!1);(0,q.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[$y],v=(0,q.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Ph(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,q.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Zw(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Qw(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Yw(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Qw(e){if(e)return e.options.allowProjection===!1?Qw(e.parent):e.projection}function $w(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&xw(r);let a=n?n===`svg`:zw(e),o=a?Gw:Ww;function s(n,s){let c,l={...(0,q.useContext)(mw),...n,layoutId:eT(n)},{isStatic:u}=l,d=kw(n),f=o(n,u);if(!u&&typeof window<`u`){tT(l,r);let t=nT(l);c=t.MeasureLayout,d.visualElement=Xw(e,f,l,i,t.ProjectionNode,a)}return(0,Y.jsxs)(Dw.Provider,{value:d,children:[c&&d.visualElement?(0,Y.jsx)(c,{visualElement:d.visualElement,...l}):null,Bw(e,n,qw(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,q.forwardRef)(s);return c[Kw]=e,c}function eT({layoutId:e}){let t=(0,q.useContext)(Mh).id;return t&&e!==void 0?t+`-`+e:e}function tT(e,t){(0,q.useContext)(gw).strict}function nT(e){let{drag:t,layout:n}=bw();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function rT(e,t){if(typeof Proxy>`u`)return $w;let n=new Map,r=(n,r)=>$w(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,$w(a,void 0,e,t)),n.get(a))})}var iT=(e,t)=>t.isSVG??zw(e)?new OS(t):new vS(t,{allowProjection:e!==q.Fragment}),aT=class extends Rx{constructor(e){super(e),e.animationState||=FS(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();xx(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?.()}},oT=0,sT={animation:{Feature:aT},exit:{Feature:class extends Rx{constructor(){super(...arguments),this.id=oT++,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&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Uy(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.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(){}}}};function cT(e){return{point:{x:e.pageX,y:e.pageY}}}var lT=e=>t=>Rb(t)&&e(t,cT(t));function uT(e,t,n,r){return TC(e,t,lT(n),r)}var dT=({current:e})=>e?e.ownerDocument.defaultView:null,fT=(e,t)=>Math.abs(e-t);function pT(e,t){let n=fT(e.x,t.x),r=fT(e.y,t.y);return Math.sqrt(n**2+r**2)}var mT=new Set([`auto`,`scroll`]),hT=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){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=gT(this.lastRawMoveEventInfo,this.transformPagePoint));let e=vT(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=pT(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Eg;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=gT(t,this.transformPagePoint),wg.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=vT(e.type===`pointercancel`?this.lastMoveEventInfo:gT(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Rb(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=gT(cT(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Eg;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,vT(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Kh(uT(this.contextWindow,`pointermove`,this.handlePointerMove,d),uT(this.contextWindow,`pointerup`,this.handlePointerUp,d),uT(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(mT.has(e.overflowX)||mT.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,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),wg.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Tg(this.updatePoint)}};function gT(e,t){return t?{point:t(e.point)}:e}function _T(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vT({point:e},t){return{point:e,delta:_T(e,bT(t)),offset:_T(e,yT(t)),velocity:xT(t,.1)}}function yT(e){return e[0]}function bT(e){return e[e.length-1]}function xT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=bT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Yh(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Yh(t)*2&&(r=e[1]);let a=Xh(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ST(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?w_(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?w_(n,e,r.max):Math.min(e,n)),e}function CT(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function wT(e,{top:t,left:n,bottom:r,right:i}){return{x:CT(e.x,n,i),y:CT(e.y,t,r)}}function TT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ET(e,t){return{x:TT(e.x,t.x),y:TT(e.y,t.y)}}function DT(e,t){let n=.5,r=KS(e),i=KS(t);return i>r?n=qh(t.min,t.max-r,e.min):r>i&&(n=qh(e.min,e.max-i,t.min)),zh(0,1,n)}function OT(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var kT=.35;function AT(e=kT){return e===!1?e=0:e===!0&&(e=kT),{x:jT(e,`left`,`right`),y:jT(e,`top`,`bottom`)}}function jT(e,t,n){return{min:MT(e,t),max:MT(e,n)}}function MT(e,t){return typeof e==`number`?e:e[t]||0}var NT=new WeakMap,PT=class{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=yx(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(cT(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Nb(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),mC(e=>{let t=this.getAxisMotionValue(e).get()||0;if($g.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=KS(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&wg.update(()=>i(e,t),!1,!0),Zy(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=RT(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&wg.update(()=>a(e,t),!1,!0))},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new hT(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:dT(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&wg.postRender(()=>o(n,r))}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:r}=this.getProps();if(!n||!LT(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ST(a,this.constraints[e],this.elastic[e])),i.set(a)}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,r=this.constraints;e&&Yw(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?wT(n.layoutBox,e):!1,this.elastic=AT(t),r!==this.constraints&&!Yw(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&mC(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=OT(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Yw(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=aS(n,r.root,this.visualElement.getTransformPagePoint()),a=ET(r.layout.layoutBox,i);if(t){let e=t(Bx(a));this.hasMutatedConstraints=!!e,e&&(a=zx(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=mC(o=>{if(!LT(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Zy(this.visualElement,e),n.start(Ly(e,n,0,t,this.visualElement,!1))}stopAnimation(){mC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){mC(t=>{let{drag:n}=this.getProps();if(!LT(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-w_(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Yw(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};mC(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=DT({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),mC(t=>{if(!LT(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(w_(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;NT.set(this.visualElement,this);let e=this.visualElement.current,t=uT(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Hb(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Yw(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=IT(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),wg.read(r);let o=TC(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(mC(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=kT,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function FT(e){let t=!0;return()=>{t?t=!1:e()}}function IT(e,t,n){let r=ux(e,FT(n)),i=ux(t,FT(n));return()=>{r(),i()}}function LT(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RT(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var zT=class extends Rx{constructor(e){super(e),this.removeGroupControls=Gh,this.removeListeners=Gh,this.controls=new PT(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gh}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()}},BT=e=>(t,n)=>{e&&wg.update(()=>e(t,n),!1,!0)},VT=class extends Rx{constructor(){super(...arguments),this.removePointerDownListener=Gh}onPointerDown(e){this.session=new hT(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:dT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:BT(e),onStart:BT(t),onMove:BT(n),onEnd:(e,t)=>{delete this.session,r&&wg.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=uT(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},HT=!1,UT=class extends q.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),HT&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),jC.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),HT=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||wg.postRender(()=>{let e=a.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(),kb.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;HT=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function WT(e){let[t,n]=hw(),r=(0,q.useContext)(Mh);return(0,Y.jsx)(UT,{...e,layoutGroup:r,switchLayoutGroup:(0,q.useContext)(Jw),isPresent:t,safeToRemove:n})}var GT={pan:{Feature:VT},drag:{Feature:zT,ProjectionNode:pw,MeasureLayout:WT}};function KT(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&wg.postRender(()=>i(t,cT(t)))}var qT=class extends Rx{mount(){let{current:e}=this.node;e&&(this.unmount=Ib(e,(e,t)=>(KT(this.node,t,`Start`),e=>KT(this.node,e,`End`))))}unmount(){}},JT=class extends Rx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{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=Kh(TC(this.node.current,`focus`,()=>this.onFocus()),TC(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function YT(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&wg.postRender(()=>i(t,cT(t)))}var XT=class extends Rx{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Yb(e,(e,t)=>(YT(this.node,t,`Start`),(e,{success:t})=>YT(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},ZT=new WeakMap,QT=new WeakMap,$T=e=>{let t=ZT.get(e.target);t&&t(e)},eE=e=>{e.forEach($T)};function tE({root:e,...t}){let n=e||document;QT.has(n)||QT.set(n,{});let r=QT.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(eE,{root:e,...t})),r[i]}function nE(e,t,n){let r=tE(t);return ZT.set(e,n),r.observe(e),()=>{ZT.delete(e),r.unobserve(e)}}var rE={some:0,all:1},iE=class extends Rx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:rE[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=nE(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(aE(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function aE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var oE={inView:{Feature:iE},tap:{Feature:XT},focus:{Feature:JT},hover:{Feature:qT}},sE={layout:{ProjectionNode:pw,MeasureLayout:WT}},cE=rT({...sT,...oE,...GT,...sE},iT);function lE(e){let t=Nh(()=>Dy(e)),{isStatic:n}=(0,q.useContext)(mw);if(n){let[,n]=(0,q.useState)(e);(0,q.useEffect)(()=>t.on(`change`,n),[])}return t}function uE(e,t){let n=lE(t()),r=()=>n.set(t());return r(),Ph(()=>{let t=()=>wg.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),Tg(r)}}),n}function dE(e){Ty.current=[],e();let t=uE(Ty.current,e);return Ty.current=void 0,t}function fE(e,t,n,r){if(typeof e==`function`)return dE(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return mE(e,t,n,r);let i=typeof t==`function`?t:px(t,n,r),a=Array.isArray(e)?pE(e,i):pE([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function pE(e,t){let n=Nh(()=>[]);return uE(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function mE(e,t,n,r){let i=Nh(()=>Object.keys(n)),a=Nh(()=>({}));for(let o of i)a[o]=fE(e,t,n[o],r);return a}var hE=(0,q.createContext)(null);function gE(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(i===-1)return e;let a=r>0?1:-1,o=e[i+a];if(!o)return e;let s=e[i],c=o.layout,l=w_(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+n<l?Rh(e,i,i+a):e}function _E({children:e,as:t=`ul`,axis:n=`y`,onReorder:r,values:i,...a},o){let s=Nh(()=>cE[t]),c=[],l=(0,q.useRef)(!1),u=(0,q.useRef)(null),d={axis:n,groupRef:u,registerItem:(e,t)=>{let r=c.findIndex(t=>e===t.value);r===-1?c.push({value:e,layout:t[n]}):c[r].layout=t[n],c.sort(yE)},updateOrder:(e,t,n)=>{if(l.current)return;let a=gE(c,e,t,n);if(c!==a){l.current=!0;let e=[...i];for(let t=0;t<a.length;t++)if(c[t].value!==a[t].value){let n=i.indexOf(c[t].value),r=i.indexOf(a[t].value);n!==-1&&r!==-1&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};(0,q.useEffect)(()=>{l.current=!1});let f=e=>{u.current=e,typeof o==`function`?o(e):o&&(o.current=e)},p={overflowAnchor:`none`,...a.style};return(0,Y.jsx)(s,{...a,style:p,ref:f,ignoreStrict:!0,children:(0,Y.jsx)(hE.Provider,{value:d,children:e})})}var vE=(0,q.forwardRef)(_E);function yE(e,t){return e.layout.min-t.layout.min}var bE=50,xE=25,SE=new Set([`auto`,`scroll`]),CE=new WeakMap,wE=new WeakMap,TE=null;function EE(){if(TE){let e=OE(TE,`y`);e&&(wE.delete(e),CE.delete(e));let t=OE(TE,`x`);t&&t!==e&&(wE.delete(t),CE.delete(t)),TE=null}}function DE(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return SE.has(r)||i}function OE(e,t){let n=e?.parentElement;for(;n;){if(DE(n,t))return n;n=n.parentElement}return null}function kE(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<bE){let e=1-o/bE;return{amount:-25*e*e,edge:`start`}}if(s<bE){let e=1-s/bE;return{amount:xE*e*e,edge:`end`}}return{amount:0,edge:null}}function AE(e,t,n,r){if(!e)return;TE=e;let i=OE(e,n);if(!i)return;let{amount:a,edge:o}=kE(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){wE.delete(i),CE.delete(i);return}let s=wE.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;wE.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);CE.set(i,e)}if(a>0){let e=CE.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function jE(e,t=0){return Yy(e)?e:lE(t)}function ME({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Nh(()=>cE[r]),u=(0,q.useContext)(hE),d={x:jE(t.x),y:jE(t.y)},f=fE([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g}=u;return(0,Y.jsx)(l,{drag:p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o=d[p].get();h(n,o,r[p]),AE(g.current,a[p],p,r[p]),i&&i(e,t)},onDragEnd:(e,t)=>{EE(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var NE=(0,q.forwardRef)(ME),PE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(16),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({isActive:a,value:s,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=a&&`graphiql-tab-active`,l;n[6]!==i||n[7]!==c?(l=rh(`graphiql-tab`,c,i),n[6]=i,n[7]=c,n[8]=l):l=n[8];let u;return n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==t||n[13]!==l||n[14]!==s?(u=(0,Y.jsx)(NE,{...o,ref:t,value:s,"aria-selected":a,role:`tab`,className:l,children:r}),n[9]=r,n[10]=a,n[11]=o,n[12]=t,n[13]=l,n[14]=s,n[15]=u):u=n[15],u});PE.displayName=`Tab`;var FE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({children:r,className:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=rh(`graphiql-tab-button`,i),n[4]=i,n[5]=o);let s;return n[6]!==r||n[7]!==a||n[8]!==t||n[9]!==o?(s=(0,Y.jsx)(yh,{...a,ref:t,type:`button`,className:o,children:r}),n[6]=r,n[7]=a,n[8]=t,n[9]=o,n[10]=s):s=n[10],s});FE.displayName=`Tab.Button`;var IE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(7),r;n[0]===e.className?r=n[1]:(r=rh(`graphiql-tab-close`,e.className),n[0]=e.className,n[1]=r);let i;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(km,{}),n[2]=i):i=n[2];let a;return n[3]!==e||n[4]!==t||n[5]!==r?(a=(0,Y.jsx)(yh,{"aria-label":`Close Tab`,...e,ref:t,type:`button`,className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=a):a=n[6],a});IE.displayName=`Tab.Close`;var LE=Object.assign(PE,{Button:FE,Close:IE}),RE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(15),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({values:s,onReorder:a,children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c;n[6]===i?c=n[7]:(c=rh(`graphiql-tabs`,i),n[6]=i,n[7]=c);let l;return n[8]!==r||n[9]!==a||n[10]!==o||n[11]!==t||n[12]!==c||n[13]!==s?(l=(0,Y.jsx)(vE,{...o,ref:t,values:s,onReorder:a,axis:`x`,role:`tablist`,className:c,children:r}),n[8]=r,n[9]=a,n[10]=o,n[11]=t,n[12]=c,n[13]=s,n[14]=l):l=n[14],l});RE.displayName=`Tabs`;var zE=Object.assign(e=>{let t=(0,J.c)(10),{children:n,align:r,side:i,sideOffset:a,label:o}=e,s=r===void 0?`start`:r,c=i===void 0?`bottom`:i,l=a===void 0?5:a,u;t[0]===n?u=t[1]:(u=(0,Y.jsx)(b,{asChild:!0,children:n}),t[0]=n,t[1]=u);let d;t[2]!==s||t[3]!==o||t[4]!==c||t[5]!==l?(d=(0,Y.jsx)(_t,{children:(0,Y.jsx)(ae,{className:`graphiql-tooltip`,align:s,side:c,sideOffset:l,children:o})}),t[2]=s,t[3]=o,t[4]=c,t[5]=l,t[6]=d):d=t[6];let f;return t[7]!==u||t[8]!==d?(f=(0,Y.jsxs)(fe,{children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9],f},{Provider:l}),BE=(0,q.forwardRef)((e,t)=>{let n=(0,J.c)(19),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({label:r,onClick:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let[o,s]=(0,q.useState)(null),c;n[4]===i?c=n[5]:(c=e=>{try{i&&i(e),s(null)}catch(e){let t=e;s(t instanceof Error?t:Error(`Toolbar button click failed: ${t}`))}},n[4]=i,n[5]=c);let l=c,u=o&&`error`,d;n[6]!==a.className||n[7]!==u?(d=rh(`graphiql-toolbar-button`,u,a.className),n[6]=a.className,n[7]=u,n[8]=d):d=n[8];let f=o?o.message:r,p=o?`true`:a[`aria-invalid`],m;n[9]!==l||n[10]!==a||n[11]!==t||n[12]!==d||n[13]!==f||n[14]!==p?(m=(0,Y.jsx)(yh,{...a,ref:t,type:`button`,className:d,onClick:l,"aria-label":f,"aria-invalid":p}),n[9]=l,n[10]=a,n[11]=t,n[12]=d,n[13]=f,n[14]=p,n[15]=m):m=n[15];let h;return n[16]!==r||n[17]!==m?(h=(0,Y.jsx)(zE,{label:r,children:m}),n[16]=r,n[17]=m,n[18]=h):h=n[18],h});BE.displayName=`ToolbarButton`;var VE=()=>{let e=(0,J.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={nonNull:!0,caller:VE},e[0]=t):t=e[0];let{queryEditor:n,setOperationName:r}=Np(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={nonNull:!0,caller:VE},e[1]=i):i=e[1];let{isFetching:a,isSubscribed:o,operationName:s,run:c,stop:l}=Bp(i),u;e[2]===n?.operations?u=e[3]:(u=n?.operations||[],e[2]=n?.operations,e[3]=u);let d=u,f=d.length>1&&typeof s!=`string`,p=a||o,m=`${p?`Stop`:`Execute`} query (Ctrl-Enter)`,h;e[4]===p?h=e[5]:(h=p?(0,Y.jsx)($m,{}):(0,Y.jsx)(Gm,{}),e[4]=p,e[5]=h);let g;e[6]!==m||e[7]!==h?(g={type:`button`,className:`graphiql-execute-button`,children:h,"aria-label":m},e[6]=m,e[7]=h,e[8]=g):g=e[8];let _=g,v;return e[9]!==_||e[10]!==f||e[11]!==p||e[12]!==m||e[13]!==d||e[14]!==n||e[15]!==c||e[16]!==r||e[17]!==l?(v=f&&!p?(0,Y.jsxs)(kh,{children:[(0,Y.jsx)(zE,{label:m,children:(0,Y.jsx)(kh.Button,{..._})}),(0,Y.jsx)(kh.Content,{children:d.map((e,t)=>{let i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,Y.jsx)(kh.Item,{onSelect:()=>{let t=e.name?.value;n&&t&&t!==n.operationName&&r(t),c()},children:i},`${i}-${t}`)})})]}):(0,Y.jsx)(zE,{label:m,children:(0,Y.jsx)(`button`,{..._,onClick:()=>{p?l():c()}})}),e[9]=_,e[10]=f,e[11]=p,e[12]=m,e[13]=d,e[14]=n,e[15]=c,e[16]=r,e[17]=l,e[18]=v):v=e[18],v},HE=et((e,t)=>({historyStorage:null,actions:{addToHistory(n){let{historyStorage:r}=t();r.updateHistory(n),e({})},editLabel(n,r){let{historyStorage:i}=t();i.editLabel(n,r),e({})},toggleFavorite(n){let{historyStorage:r}=t();r.toggleFavorite(n),e({})},setActive:e=>e,deleteFromHistory(n,r){let{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),UE=e=>{let t=(0,J.c)(12),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={nonNull:!0},t[0]=a):a=t[0];let{isFetching:o}=Bp(a),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s={nonNull:!0},t[1]=s):s=t[1];let{tabs:c,activeTabIndex:l}=Np(s),u=c[l],d=Ps(),f;t[2]!==i||t[3]!==d?(f=new Ss(d,i),t[2]=i,t[3]=d,t[4]=f):f=t[4];let p=f,m,h;t[5]===p?(m=t[6],h=t[7]):(m=()=>{HE.setState({historyStorage:p})},h=[p],t[5]=p,t[6]=m,t[7]=h),(0,q.useEffect)(m,h);let g,_;return t[8]!==u||t[9]!==o?(g=()=>{if(!o)return;let{addToHistory:e}=HE.getState().actions;e({query:u.query??void 0,variables:u.variables??void 0,headers:u.headers??void 0,operationName:u.operationName??void 0})},_=[o,u],t[8]=u,t[9]=o,t[10]=g,t[11]=_):(g=t[10],_=t[11]),(0,q.useEffect)(g,_),r},WE=As(HE),GE=()=>WE(qE),KE=()=>WE(JE);function qE(e){return e.historyStorage.queries}function JE(e){return e.actions}function YE(e,t){for(let n of e)t(n,!0)}var XE=()=>{let e=(0,J.c)(13),t=GE(),{deleteFromHistory:n}=KE(),r;r=t.slice().map($E).reverse();let i=r.filter(eD);i.length&&(r=r.filter(tD));let[a,o]=(0,q.useState)(null),s,c;e[0]===a?(s=e[1],c=e[2]):(s=()=>{a&&setTimeout(()=>{o(null)},2e3)},c=[a],e[0]=a,e[1]=s,e[2]=c),(0,q.useEffect)(s,c);let l=()=>{try{YE(r,n),o(`success`)}catch{o(`error`)}},u=!!i.length,d=!!r.length,f=(a||d)&&(0,Y.jsx)(bh,{type:`button`,state:a||void 0,disabled:!r.length,onClick:l,children:{success:`Cleared`,error:`Failed to Clear`}[a]||`Clear`}),p;e[3]===f?p=e[4]:(p=(0,Y.jsxs)(`div`,{className:`graphiql-history-header`,children:[`History`,f]}),e[3]=f,e[4]=p);let m=u&&(0,Y.jsx)(`ul`,{className:`graphiql-history-items`,children:i.map(nD)}),h;e[5]!==u||e[6]!==d?(h=u&&d&&(0,Y.jsx)(`div`,{className:`graphiql-history-item-spacer`}),e[5]=u,e[6]=d,e[7]=h):h=e[7];let g=d&&(0,Y.jsx)(`ul`,{className:`graphiql-history-items`,children:r.map(rD)}),_;return e[8]!==p||e[9]!==m||e[10]!==h||e[11]!==g?(_=(0,Y.jsxs)(`section`,{"aria-label":`History`,className:`graphiql-history`,children:[p,m,h,g]}),e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_):_=e[12],_},ZE=e=>{let t=(0,J.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:a}=KE(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={nonNull:!0,caller:ZE},t[0]=o):o=t[0];let{headerEditor:s,queryEditor:c,variableEditor:l}=Np(o),u=(0,q.useRef)(null),d=(0,q.useRef)(null),[f,p]=(0,q.useState)(!1),m,h;t[1]===f?(m=t[2],h=t[3]):(m=()=>{var e;f&&((e=u.current)==null||e.focus())},h=[f],t[1]=f,t[2]=m,t[3]=h),(0,q.useEffect)(m,h);let g;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(g=e.item.label||e.item.operationName||QE(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=g):g=t[7];let _=g,v;t[8]!==n||t[9]!==e.item?(v=()=>{p(!1);let{index:t,...r}=e.item;n({...r,label:u.current?.value},t)},t[8]=n,t[9]=e.item,t[10]=v):v=t[10];let y=v,b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=()=>{p(!1)},t[11]=b):b=t[11];let x=b,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>{e.stopPropagation(),p(!0)},t[12]=S):S=t[12];let C=S,w;t[13]!==s||t[14]!==e.item||t[15]!==c||t[16]!==a||t[17]!==l?(w=()=>{let{query:t,variables:n,headers:r}=e.item;c?.setValue(t??``),l?.setValue(n??``),s?.setValue(r??``),a(e.item)},t[13]=s,t[14]=e.item,t[15]=c,t[16]=a,t[17]=l,t[18]=w):w=t[18];let T=w,E;t[19]!==i||t[20]!==e.item?(E=t=>{t.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=E):E=t[21];let D=E,O;t[22]!==e.item||t[23]!==r?(O=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=O):O=t[24];let k=O,A=f&&`editable`,j;t[25]===A?j=t[26]:(j=rh(`graphiql-history-item`,A),t[25]=A,t[26]=j);let M;t[27]!==_||t[28]!==n||t[29]!==D||t[30]!==T||t[31]!==y||t[32]!==k||t[33]!==f||t[34]!==e.item?(M=f?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`input`,{type:`text`,defaultValue:e.item.label,ref:u,onKeyDown:t=>{t.key===`Esc`?p(!1):t.key===`Enter`&&(p(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:`Type a label`}),(0,Y.jsx)(yh,{type:`button`,ref:d,onClick:y,children:`Save`}),(0,Y.jsx)(yh,{type:`button`,ref:d,onClick:x,children:(0,Y.jsx)(km,{})})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(zE,{label:`Set active`,children:(0,Y.jsx)(yh,{type:`button`,className:`graphiql-history-item-label`,onClick:T,"aria-label":`Set active`,children:_})}),(0,Y.jsx)(zE,{label:`Edit label`,children:(0,Y.jsx)(yh,{type:`button`,className:`graphiql-history-item-action`,onClick:C,"aria-label":`Edit label`,children:(0,Y.jsx)(Wm,{"aria-hidden":`true`})})}),(0,Y.jsx)(zE,{label:e.item.favorite?`Remove favorite`:`Add favorite`,children:(0,Y.jsx)(yh,{type:`button`,className:`graphiql-history-item-action`,onClick:k,"aria-label":e.item.favorite?`Remove favorite`:`Add favorite`,children:e.item.favorite?(0,Y.jsx)(Zm,{"aria-hidden":`true`}):(0,Y.jsx)(Qm,{"aria-hidden":`true`})})}),(0,Y.jsx)(zE,{label:`Delete from history`,children:(0,Y.jsx)(yh,{type:`button`,className:`graphiql-history-item-action`,onClick:D,"aria-label":`Delete from history`,children:(0,Y.jsx)(eh,{"aria-hidden":`true`})})})]}),t[27]=_,t[28]=n,t[29]=D,t[30]=T,t[31]=y,t[32]=k,t[33]=f,t[34]=e.item,t[35]=M):M=t[35];let N;return t[36]!==j||t[37]!==M?(N=(0,Y.jsx)(`li`,{className:j,children:M}),t[36]=j,t[37]=M,t[38]=N):N=t[38],N};function QE(e){return e?.split(`
96
96
  `).map(e=>e.replace(/#(.*)/,``)).join(` `).replaceAll(`{`,` { `).replaceAll(`}`,` } `).replaceAll(/[\s]{2,}/g,` `)}function $E(e,t){return{...e,index:t}}function eD(e){return e.favorite}function tD(e){return!e.favorite}function nD(e){return(0,Y.jsx)(ZE,{item:e},e.index)}function rD(e){return(0,Y.jsx)(ZE,{item:e},e.index)}var iD={title:`History`,icon:zm,content:XE},aD=[{name:`Docs`}],oD=et((e,t)=>({explorerNavStack:aD,actions:{push(t){e(e=>{let n=e.explorerNavStack;return{explorerNavStack:n.at(-1).def===t.def?n:[...n,t]}})},pop(){e(e=>{let t=e.explorerNavStack;return{explorerNavStack:t.length>1?t.slice(0,-1):t}})},reset(){e(e=>{let t=e.explorerNavStack;return{explorerNavStack:t.length===1?t:aD}})},resolveSchemaReferenceToNavItem(e){if(!e)return;let{push:n}=t().actions;switch(e.kind){case`Type`:n({name:e.type.name,def:e.type});break;case`Field`:n({name:e.field.name,def:e.field});break;case`Argument`:e.field&&n({name:e.field.name,def:e.field});break;case`EnumValue`:e.type&&n({name:e.type.name,def:e.type})}},rebuildNavStackWithSchema(t){e(e=>{let n=e.explorerNavStack;if(n.length===1)return e;let r=[...aD],i=null;for(let e of n)if(e!==aD[0]){if(e.def){if(ie(e.def)){let n=t.getType(e.def.name);if(n)r.push({name:e.name,def:n}),i=n;else break}else if(i===null)break;else if(F(i)||j(i)){let t=i.getFields()[e.name];if(t)r.push({name:e.name,def:t});else break}else if(_(i)||k(i)||h(i)||Ze(i))break;else{let t=i;if(t.args.some(t=>t.name===e.name))r.push({name:e.name,def:t});else break}}else i=null,r.push(e)}return{explorerNavStack:r}})}}})),sD=e=>{let t=(0,J.c)(7),{children:n}=e,{schema:r,validationErrors:i,schemaReference:a}=Ys(),o,s;t[0]===a?(o=t[1],s=t[2]):(o=()=>{let{resolveSchemaReferenceToNavItem:e}=oD.getState().actions;e(a)},s=[a],t[0]=a,t[1]=o,t[2]=s),(0,q.useEffect)(o,s);let c,l;return t[3]!==r||t[4]!==i?(c=()=>{let{reset:e,rebuildNavStackWithSchema:t}=oD.getState().actions;r==null||i.length>0?e():t(r)},l=[r,i],t[3]=r,t[4]=i,t[5]=c,t[6]=l):(c=t[5],l=t[6]),(0,q.useEffect)(c,l),n},cD=As(oD),lD=()=>cD(dD),uD=()=>cD(fD);function dD(e){return e.explorerNavStack}function fD(e){return e.actions}var pD=e=>e?C(e):``,mD=e=>{let t=(0,J.c)(12),{field:n}=e;if(!(`defaultValue`in n)||n.defaultValue===void 0)return null;let r=n.defaultValue,i=n.type,a,o,s,c;if(t[0]!==n.defaultValue||t[1]!==n.type){c=Symbol.for(`react.early_return_sentinel`);bb0:{let e=Oe(r,i);if(!e){c=null;break bb0}s=` = `,a=`graphiql-doc-explorer-default-value`,o=pD(e)}t[0]=n.defaultValue,t[1]=n.type,t[2]=a,t[3]=o,t[4]=s,t[5]=c}else a=t[2],o=t[3],s=t[4],c=t[5];if(c!==Symbol.for(`react.early_return_sentinel`))return c;let l;t[6]!==a||t[7]!==o?(l=(0,Y.jsx)(`span`,{className:a,children:o}),t[6]=a,t[7]=o,t[8]=l):l=t[8];let u;return t[9]!==s||t[10]!==l?(u=(0,Y.jsxs)(Y.Fragment,{children:[s,l]}),t[9]=s,t[10]=l,t[11]=u):u=t[11],u};function hD(e,t){return gt(e)?(0,Y.jsxs)(Y.Fragment,{children:[hD(e.ofType,t),`!`]}):D(e)?(0,Y.jsxs)(Y.Fragment,{children:[`[`,hD(e.ofType,t),`]`]}):t(e)}var gD=e=>{let t=(0,J.c)(5),{type:n}=e,{push:r}=uD();if(!n)return null;let i;t[0]===r?i=t[1]:(i=e=>(0,Y.jsx)(`a`,{className:`graphiql-doc-explorer-type-name`,onClick:t=>{t.preventDefault(),r({name:e.name,def:e})},href:`#`,children:e.name}),t[0]=r,t[1]=i);let a;return t[2]!==i||t[3]!==n?(a=hD(n,i),t[2]=i,t[3]=n,t[4]=a):a=t[4],a},_D=e=>{let t=(0,J.c)(19),{arg:n,showDefaultValue:r,inline:i}=e,a;t[0]===n.name?a=t[1]:(a=(0,Y.jsx)(`span`,{className:`graphiql-doc-explorer-argument-name`,children:n.name}),t[0]=n.name,t[1]=a);let o;t[2]===n.type?o=t[3]:(o=(0,Y.jsx)(gD,{type:n.type}),t[2]=n.type,t[3]=o);let s;t[4]!==n||t[5]!==r?(s=r!==!1&&(0,Y.jsx)(mD,{field:n}),t[4]=n,t[5]=r,t[6]=s):s=t[6];let c;t[7]!==a||t[8]!==o||t[9]!==s?(c=(0,Y.jsxs)(`span`,{children:[a,`: `,o,s]}),t[7]=a,t[8]=o,t[9]=s,t[10]=c):c=t[10];let l=c;if(i)return l;let u;t[11]===n.description?u=t[12]:(u=n.description?(0,Y.jsx)(Ah,{type:`description`,children:n.description}):null,t[11]=n.description,t[12]=u);let d;t[13]===n.deprecationReason?d=t[14]:(d=n.deprecationReason?(0,Y.jsxs)(`div`,{className:`graphiql-doc-explorer-argument-deprecation`,children:[(0,Y.jsx)(`div`,{className:`graphiql-doc-explorer-argument-deprecation-label`,children:`Deprecated`}),(0,Y.jsx)(Ah,{type:`deprecation`,children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=d);let f;return t[15]!==l||t[16]!==u||t[17]!==d?(f=(0,Y.jsxs)(`div`,{className:`graphiql-doc-explorer-argument`,children:[l,u,d]}),t[15]=l,t[16]=u,t[17]=d,t[18]=f):f=t[18],f},vD=e=>{let t=(0,J.c)(3),n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?(0,Y.jsxs)(`div`,{className:`graphiql-doc-explorer-deprecation`,children:[(0,Y.jsx)(`div`,{className:`graphiql-doc-explorer-deprecation-label`,children:`Deprecated`}),(0,Y.jsx)(Ah,{type:`deprecation`,onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},yD=e=>{let t=(0,J.c)(2),{directive:n}=e,r;return t[0]===n.name.value?r=t[1]:(r=(0,Y.jsxs)(`span`,{className:`graphiql-doc-explorer-directive`,children:[`@`,n.name.value]}),t[0]=n.name.value,t[1]=r),r},bD=e=>{let t=(0,J.c)(10),{title:n,children:r}=e,i=xD[n],a;t[0]===i?a=t[1]:(a=(0,Y.jsx)(i,{}),t[0]=i,t[1]=a);let o;t[2]!==a||t[3]!==n?(o=(0,Y.jsxs)(`div`,{className:`graphiql-doc-explorer-section-title`,children:[a,n]}),t[2]=a,t[3]=n,t[4]=o):o=t[4];let s;t[5]===r?s=t[6]:(s=(0,Y.jsx)(`div`,{className:`graphiql-doc-explorer-section-content`,children:r}),t[5]=r,t[6]=s);let c;return t[7]!==o||t[8]!==s?(c=(0,Y.jsxs)(`div`,{children:[o,s]}),t[7]=o,t[8]=s,t[9]=c):c=t[9],c},xD={Arguments:Tm,"Deprecated Arguments":jm,"Deprecated Enum Values":Mm,"Deprecated Fields":Nm,Directives:Pm,"Enum Values":Lm,Fields:Rm,Implements:Bm,Implementations:th,"Possible Types":th,"Root Types":Ym,Type:th,"All Schema Types":th},SD=e=>{let t=(0,J.c)(15),{field:n}=e,r;t[0]===n.description?r=t[1]:(r=n.description?(0,Y.jsx)(Ah,{type:`description`,children:n.description}):null,t[0]=n.description,t[1]=r);let i;t[2]===n.deprecationReason?i=t[3]:(i=(0,Y.jsx)(vD,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=i);let a;t[4]===n.type?a=t[5]:(a=(0,Y.jsx)(bD,{title:`Type`,children:(0,Y.jsx)(gD,{type:n.type})}),t[4]=n.type,t[5]=a);let o,s;t[6]===n?(o=t[7],s=t[8]):(o=(0,Y.jsx)(CD,{field:n}),s=(0,Y.jsx)(wD,{field:n}),t[6]=n,t[7]=o,t[8]=s);let c;return t[9]!==r||t[10]!==i||t[11]!==a||t[12]!==o||t[13]!==s?(c=(0,Y.jsxs)(Y.Fragment,{children:[r,i,a,o,s]}),t[9]=r,t[10]=i,t[11]=a,t[12]=o,t[13]=s,t[14]=c):c=t[14],c},CD=e=>{let t=(0,J.c)(12),{field:n}=e,[r,i]=(0,q.useState)(!1),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{i(!0)},t[0]=a):a=t[0];let o=a;if(!(`args`in n))return null;let s,c,l;if(t[1]!==n.args){s=[],c=[];for(let e of n.args)e.deprecationReason?c.push(e):s.push(e);l=s.length>0?(0,Y.jsx)(bD,{title:`Arguments`,children:s.map(TD)}):null,t[1]=n.args,t[2]=s,t[3]=c,t[4]=l}else s=t[2],c=t[3],l=t[4];let u;t[5]!==s.length||t[6]!==c||t[7]!==r?(u=c.length>0?r||s.length===0?(0,Y.jsx)(bD,{title:`Deprecated Arguments`,children:c.map(ED)}):(0,Y.jsx)(bh,{type:`button`,onClick:o,children:`Show Deprecated Arguments`}):null,t[5]=s.length,t[6]=c,t[7]=r,t[8]=u):u=t[8];let d;return t[9]!==l||t[10]!==u?(d=(0,Y.jsxs)(Y.Fragment,{children:[l,u]}),t[9]=l,t[10]=u,t[11]=d):d=t[11],d},wD=e=>{let t=(0,J.c)(4),{field:n}=e,r=n.astNode?.directives;if(!r?.length)return null;let i;t[0]===r?i=t[1]:(i=r.map(DD),t[0]=r,t[1]=i);let a;return t[2]===i?a=t[3]:(a=(0,Y.jsx)(bD,{title:`Directives`,children:i}),t[2]=i,t[3]=a),a};function TD(e){return(0,Y.jsx)(_D,{arg:e},e.name)}function ED(e){return(0,Y.jsx)(_D,{arg:e},e.name)}function DD(e){return(0,Y.jsx)(`div`,{children:(0,Y.jsx)(yD,{directive:e})},e.name.value)}var OD=e=>{let t=(0,J.c)(39),{schema:n}=e,r;t[0]===n?r=t[1]:(r=n.getQueryType(),t[0]=n,t[1]=r);let i=r,a;t[2]===n?a=t[3]:(a=n.getMutationType?.call(n),t[2]=n,t[3]=a);let o=a,s;t[4]===n?s=t[5]:(s=n.getSubscriptionType?.call(n),t[4]=n,t[5]=s);let c=s,l,u,d,f,p;if(t[6]!==o||t[7]!==i||t[8]!==n||t[9]!==c){let e=n.getTypeMap(),r=i?.name,a=o?.name,s=c?.name,m;t[15]!==s||t[16]!==r||t[17]!==a?(m=[r,a,s],t[15]=s,t[16]=r,t[17]=a,t[18]=m):m=t[18];let h=m,g=n.description||`A GraphQL schema provides a root type for each kind of operation.`;t[19]===g?f=t[20]:(f=(0,Y.jsx)(Ah,{type:`description`,children:g}),t[19]=g,t[20]=f);let _;t[21]===i?_=t[22]:(_=i?(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`query`}),`: `,(0,Y.jsx)(gD,{type:i})]}):null,t[21]=i,t[22]=_);let v;t[23]===o?v=t[24]:(v=o&&(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`mutation`}),`: `,(0,Y.jsx)(gD,{type:o})]}),t[23]=o,t[24]=v);let y;t[25]===c?y=t[26]:(y=c&&(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`span`,{className:`graphiql-doc-explorer-root-type`,children:`subscription`}),`: `,(0,Y.jsx)(gD,{type:c})]}),t[25]=c,t[26]=y),t[27]!==_||t[28]!==v||t[29]!==y?(p=(0,Y.jsxs)(bD,{title:`Root Types`,children:[_,v,y]}),t[27]=_,t[28]=v,t[29]=y,t[30]=p):p=t[30],l=bD,u=`All Schema Types`,d=e&&(0,Y.jsx)(`div`,{children:Object.values(e).map(e=>h.includes(e.name)||e.name.startsWith(`__`)?null:(0,Y.jsx)(`div`,{children:(0,Y.jsx)(gD,{type:e})},e.name))}),t[6]=o,t[7]=i,t[8]=n,t[9]=c,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=p}else l=t[10],u=t[11],d=t[12],f=t[13],p=t[14];let m;t[31]!==l||t[32]!==u||t[33]!==d?(m=(0,Y.jsx)(l,{title:u,children:d}),t[31]=l,t[32]=u,t[33]=d,t[34]=m):m=t[34];let h;return t[35]!==f||t[36]!==p||t[37]!==m?(h=(0,Y.jsxs)(Y.Fragment,{children:[f,p,m]}),t[35]=f,t[36]=p,t[37]=m,t[38]=h):h=t[38],h},kD=e=>MD(e)?e.document:ND(e)?e:e?.ownerDocument??(typeof document<`u`?document:void 0),AD=e=>kD(e)?.defaultView??(typeof window<`u`?window:void 0);function jD(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function MD(e){return typeof e==`object`&&!!e&&`window`in e&&e.window===e}function ND(e){return jD(e)&&e.nodeType===9}function PD(e){return jD(e)&&e.nodeType===11&&`host`in e}var FD=!1;function ID(){return FD}function LD(e,t){if(!ID())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!=null;){if(n===e)return!0;n=typeof n.assignedElements!=`function`&&n.assignedSlot?.parentNode?n.assignedSlot.parentNode:PD(n)?n.host:n.parentNode}return!1}var RD=(e=document)=>{if(!ID())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function zD(e){if(ID()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function BD(e){e.focus({preventScroll:!0})}var VD=typeof document<`u`?q.useLayoutEffect:()=>{};function HD(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function UD(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function WD(e){let t=(0,q.useRef)({isFocused:!1,observer:null});return VD(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,q.useCallback)(n=>{let r=zD(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=HD(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===RD()?null:RD();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}function GD(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function KD(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function qD(e){let t=null;return()=>(t??=e(),t)}var JD=qD(function(){return KD(/^Mac/i)}),YD=qD(function(){return KD(/^iPhone/i)}),XD=qD(function(){return KD(/^iPad/i)||JD()&&navigator.maxTouchPoints>1}),ZD=qD(function(){return YD()||XD()}),QD=qD(function(){return GD(/AppleWebKit/i)&&(ZD()||!$D())}),$D=qD(function(){return GD(/Chrome|CriOS|CrMo/i)}),eO=qD(function(){return GD(/Android/i)});function tO(e){return e.pointerType===``&&e.isTrusted?!0:eO()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function nO(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t,s=QD()&&JD()&&!XD()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});nO.isOpening=n,BD(e),e.dispatchEvent(s),nO.isOpening=!1}nO.isOpening=!1;var rO=null,iO=new Set,aO=new Map,oO=!1,sO=!1,cO={Tab:!0,Escape:!0};function lO(e,t){for(let n of iO)n(e,t)}function uO(e){return!(e.metaKey||!JD()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function dO(e){oO=!0,!nO.isOpening&&uO(e)&&(rO=`keyboard`,lO(`keyboard`,e))}function fO(e){rO=`pointer`,`pointerType`in e&&e.pointerType,(e.type===`mousedown`||e.type===`pointerdown`)&&(oO=!0,lO(`pointer`,e))}function pO(e){!nO.isOpening&&tO(e)&&(oO=!0,rO=`virtual`)}function mO(e){let t=zD(e),n=AD(t),r=kD(t);t===n?sO=!0:t!==r&&e.isTrusted&&(!oO&&!sO&&(rO=`virtual`,lO(`virtual`,e)),oO=!1,sO=!1)}function hO(){oO=!1,sO=!0}function gO(e){let t=RD(kD(zD(e)));queueMicrotask(()=>{RD(kD(zD(e)))!==t&&xO(`keyboard`)})}function _O(e){if(typeof window>`u`||typeof document>`u`)return;let t=AD(e),n=kD(e);if(aO.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){oO=!0,r.apply(this,arguments)}}),n.addEventListener(`keydown`,dO,!0),n.addEventListener(`keyup`,dO,!0),n.addEventListener(`click`,pO,!0),n.addEventListener(`invalid`,gO,!0),t.addEventListener(`focus`,mO,!0),t.addEventListener(`blur`,hO,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,fO,!0),n.addEventListener(`pointermove`,fO,!0),n.addEventListener(`pointerup`,fO,!0)),t.addEventListener(`beforeunload`,()=>{vO(e)},{once:!0}),aO.set(t,{focus:r})}var vO=(e,t)=>{let n=AD(e),r=kD(e);t&&r.removeEventListener(`DOMContentLoaded`,t),aO.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:aO.get(n).focus}),r.removeEventListener(`keydown`,dO,!0),r.removeEventListener(`keyup`,dO,!0),r.removeEventListener(`click`,pO,!0),r.removeEventListener(`invalid`,gO,!0),n.removeEventListener(`focus`,mO,!0),n.removeEventListener(`blur`,hO,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,fO,!0),r.removeEventListener(`pointermove`,fO,!0),r.removeEventListener(`pointerup`,fO,!0)),aO.delete(n))};function yO(e){let t=kD(e),n;return t.readyState===`loading`?(n=()=>{_O(e)},t.addEventListener(`DOMContentLoaded`,n)):_O(e),()=>vO(e,n)}typeof document<`u`&&yO();function bO(){return rO!==`pointer`}function xO(e){rO=e,lO(e,null)}var SO=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function CO(e,t,n){let r=n?zD(n):void 0,i=kD(r),a=AD(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=RD(i);return e=e||u instanceof o&&!SO.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!cO[n.key])}function wO(e,t,n){_O(),(0,q.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{CO(!!n?.isTextInput,t,r)&&e(bO())};return iO.add(t),()=>{iO.delete(t)}},t)}function TO(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,q.useCallback)(e=>{if(zD(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=WD(a),s=(0,q.useCallback)(e=>{let t=zD(e),r=kD(t),a=r?RD(r):RD();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function EO(){let e=(0,q.useRef)(new Map),t=(0,q.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,q.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,q.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,q.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function DO(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,q.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=EO(),c=(0,q.useCallback)(e=>{LD(e.currentTarget,zD(e))&&a.current.isFocusWithin&&!LD(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=WD(c),u=(0,q.useCallback)(e=>{if(!LD(e.currentTarget,zD(e)))return;let t=zD(e),n=kD(t),s=RD(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=zD(e);if(a.current.isFocusWithin&&!LD(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});UD(e,t);let i=HD(e);c(i)}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}function OO(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,q.useRef)({isFocused:!1,isFocusVisible:t||bO()}),[a,o]=(0,q.useState)(!1),[s,c]=(0,q.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,q.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,q.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=bO(),o(e),l()},[l]);wO(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=TO({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=DO({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var kO=!1,AO=0;function jO(){kO=!0,setTimeout(()=>{kO=!1},500)}function MO(e){e.pointerType===`touch`&&jO()}function NO(){let e=kD(null);if(e!==void 0)return AO===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,MO),AO++,()=>{AO--,AO>0||typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,MO)}}function PO(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,q.useState)(!1),s=(0,q.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,q.useEffect)(NO,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=EO(),{hoverProps:u,triggerHoverEnd:d}=(0,q.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!LD(e.currentTarget,zD(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(kD(zD(e)),`pointerover`,e=>{s.isHovered&&s.target&&!LD(s.target,zD(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,t!==`touch`&&s.isHovered&&i&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{kO&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&LD(e.currentTarget,zD(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,q.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var FO=Object.defineProperty,IO=(e,t,n)=>t in e?FO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,LO=(e,t,n)=>(IO(e,typeof t==`symbol`?t:t+``,n),n),RO=new class{constructor(){LO(this,`current`,this.detect()),LO(this,`handoffState`,`pending`),LO(this,`currentId`,0)}set(e){this.current!==e&&(this.handoffState=`pending`,this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current===`server`}get isClient(){return this.current===`client`}detect(){return typeof window>`u`||typeof document>`u`?`server`:`client`}handoff(){this.handoffState===`pending`&&(this.handoffState=`complete`)}get isHandoffComplete(){return this.handoffState===`complete`}};function zO(e){return RO.isServer?null:e==null?document:e?.ownerDocument??document}function BO(e){return RO.isServer?null:e==null?document:(e?.getRootNode)?.call(e)??document}function VO(e){return BO(e)?.activeElement??null}function HO(e){return VO(e)===e}function UO(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function WO(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return UO(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=WO();return e(t),this.add(()=>t.dispose())},add(t){return e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function GO(){let[e]=(0,q.useState)(WO);return(0,q.useEffect)(()=>()=>e.dispose(),[e]),e}var KO=(e,t)=>{RO.isServer?(0,q.useEffect)(e,t):(0,q.useLayoutEffect)(e,t)};function qO(e){let t=(0,q.useRef)(e);return KO(()=>{t.current=e},[e]),t}var Q=function(e){let t=qO(e);return q.useCallback((...e)=>t.current(...e),[t])};function JO(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function YO(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function XO({disabled:e=!1}={}){let t=(0,q.useRef)(null),[n,r]=(0,q.useState)(!1),i=GO(),a=Q(()=>{t.current=null,r(!1),i.dispose()}),o=Q(e=>{if(i.dispose(),t.current===null){t.current=e.currentTarget,r(!0);{let n=zO(e.currentTarget);i.addEventListener(n,`pointerup`,a,!1),i.addEventListener(n,`pointermove`,e=>{if(t.current){let n=JO(e);r(YO(n,t.current.getBoundingClientRect()))}},!1),i.addEventListener(n,`pointercancel`,a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:o,onPointerUp:a,onClick:a}}}function ZO(e){return(0,q.useMemo)(()=>e,Object.values(e))}var QO=(0,q.createContext)(void 0);function $O(){return(0,q.useContext)(QO)}function ek(...e){return Array.from(new Set(e.flatMap(e=>typeof e==`string`?e.split(` `):[]))).filter(Boolean).join(` `)}function tk(e,t,...n){if(e in t){let r=t[e];return typeof r==`function`?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(`, `)}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,tk),r}var nk=(e=>(e[e.None=0]=`None`,e[e.RenderStrategy=1]=`RenderStrategy`,e[e.Static=2]=`Static`,e))(nk||{}),rk=(e=>(e[e.Unmount=0]=`Unmount`,e[e.Hidden=1]=`Hidden`,e))(rk||{});function ik(){let e=sk();return(0,q.useCallback)(t=>ak({mergeRefs:e,...t}),[e])}function ak({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:s}){s??=ck;let c=lk(t,e);if(a)return ok(c,n,r,o,s);let l=i??0;if(l&2){let{static:e=!1,...t}=c;if(e)return ok(t,n,r,o,s)}if(l&1){let{unmount:e=!0,...t}=c;return tk(+!e,{0(){return null},1(){return ok({...t,hidden:!0,style:{display:`none`}},n,r,o,s)}})}return ok(c,n,r,o,s)}function ok(e,t={},n,r,i){let{as:a=n,children:o,refName:s=`ref`,...c}=pk(e,[`unmount`,`static`]),l=e.ref===void 0?{}:{[s]:e.ref},u=typeof o==`function`?o(t):o;u=hk(u),`className`in c&&c.className&&typeof c.className==`function`&&(c.className=c.className(t)),c[`aria-labelledby`]&&c[`aria-labelledby`]===c.id&&(c[`aria-labelledby`]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))typeof i==`boolean`&&(e=!0),i===!0&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){d[`data-headlessui-state`]=n.join(` `);for(let e of n)d[`data-${e}`]=``}}if(gk(a)&&(Object.keys(fk(c)).length>0||Object.keys(fk(d)).length>0)){if(!(0,q.isValidElement)(u)||Array.isArray(u)&&u.length>1||_k(u)){if(Object.keys(fk(c)).length>0)throw Error([`Passing props on "Fragment"!`,``,`The current component <${r} /> is rendering a "Fragment".`,`However we need to passthrough the following props:`,Object.keys(fk(c)).concat(Object.keys(fk(d))).map(e=>` - ${e}`).join(`
97
97
  `),``,`You can apply a few solutions:`,['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',`Render a single element as the child so that we can forward the props onto that element.`].map(e=>` - ${e}`).join(`
98
98
  `)].join(`