diff --git a/main/ui/auth0-docs-ui-1.9.3.umd.js b/main/ui/auth0-docs-ui-1.9.3.umd.js index 3f896fc1be..d43fa72170 100644 --- a/main/ui/auth0-docs-ui-1.9.3.umd.js +++ b/main/ui/auth0-docs-ui-1.9.3.umd.js @@ -56,7 +56,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var A1;function N3(){if(A1)return Xs;A1=1;var n=$r();function l(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var o=typeof Object.is=="function"?Object.is:l,r=n.useState,s=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function m(_,S){var O=S(),L=r({inst:{value:O,getSnapshot:S}}),w=L[0].inst,T=L[1];return f(function(){w.value=O,w.getSnapshot=S,g(w)&&T({inst:w})},[_,O,S]),s(function(){return g(w)&&T({inst:w}),_(function(){g(w)&&T({inst:w})})},[_]),d(O),O}function g(_){var S=_.getSnapshot;_=_.value;try{var O=S();return!o(_,O)}catch{return!0}}function p(_,S){return S()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return Xs.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Xs}var C1;function D3(){return C1||(C1=1,Ys.exports=N3()),Ys.exports}var O1=D3();function M1(n){n.reaction=new En("observer".concat(n.name),function(){var l;n.stateVersion=Symbol(),(l=n.onStoreChange)===null||l===void 0||l.call(n)})}function j3(n,l){l===void 0&&(l="observed");var o=yn.useRef(null);if(!o.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:l,subscribe:function(m){return qs.unregister(r),r.onStoreChange=m,r.reaction||(M1(r),r.stateVersion=Symbol()),function(){var g;r.onStoreChange=null,(g=r.reaction)===null||g===void 0||g.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};o.current=r}var s=o.current;s.reaction||(M1(s),qs.register(o,s,s)),yn.useDebugValue(s.reaction,O3),O1.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot);var f,d;if(s.reaction.track(function(){try{f=n()}catch(m){d=m}}),d)throw d;return f}var Ks,Fs,L1=typeof Symbol=="function"&&Symbol.for,z3=(Fs=(Ks=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Ks===void 0?void 0:Ks.configurable)!==null&&Fs!==void 0?Fs:!1,T1=L1?Symbol.for("react.forward_ref"):typeof v.forwardRef=="function"&&v.forwardRef(function(n){return null}).$$typeof,R1=L1?Symbol.for("react.memo"):typeof v.memo=="function"&&v.memo(function(n){return null}).$$typeof;function Qs(n,l){var o;if(R1&&n.$$typeof===R1)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(o=l?.forwardRef)!==null&&o!==void 0?o:!1,s=n,f=n.displayName||n.name;if(T1&&n.$$typeof===T1&&(r=!0,s=n.render,typeof s!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var d=function(m,g){return j3(function(){return s(m,g)},f)};return d.displayName=n.displayName,z3&&Object.defineProperty(d,"name",{value:n.name,writable:!0,configurable:!0}),n.contextTypes&&(d.contextTypes=n.contextTypes),r&&(d=v.forwardRef(d)),d=v.memo(d),B3(n,d),d}var U3={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function B3(n,l){Object.keys(n).forEach(function(o){U3[o]||Object.defineProperty(l,o,Object.getOwnPropertyDescriptor(n,o))})}var Ps;C3(xo.unstable_batchedUpdates),Ps=qs.finalizeAllImmediately;function N1(n){var l,o,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(l=0;l{const l=V3(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:d=>{const m=d.split(Js);return m[0]===""&&m.length!==1&&m.shift(),j1(m,l)||k3(d)},getConflictingClassGroupIds:(d,m)=>{const g=o[d]||[];return m&&r[d]?[...g,...r[d]]:g}}},j1=(n,l)=>{if(n.length===0)return l.classGroupId;const o=n[0],r=l.nextPart.get(o),s=r?j1(n.slice(1),r):void 0;if(s)return s;if(l.validators.length===0)return;const f=n.join(Js);return l.validators.find(({validator:d})=>d(f))?.classGroupId},z1=/^\[(.+)\]$/,k3=n=>{if(z1.test(n)){const l=z1.exec(n)[1],o=l?.substring(0,l.indexOf(":"));if(o)return"arbitrary.."+o}},V3=n=>{const{theme:l,classGroups:o}=n,r={nextPart:new Map,validators:[]};for(const s in o)$s(o[s],r,s,l);return r},$s=(n,l,o,r)=>{n.forEach(s=>{if(typeof s=="string"){const f=s===""?l:U1(l,s);f.classGroupId=o;return}if(typeof s=="function"){if(G3(s)){$s(s(r),l,o,r);return}l.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([f,d])=>{$s(d,U1(l,f),o,r)})})},U1=(n,l)=>{let o=n;return l.split(Js).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},G3=n=>n.isThemeGetter,Z3=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,o=new Map,r=new Map;const s=(f,d)=>{o.set(f,d),l++,l>n&&(l=0,r=o,o=new Map)};return{get(f){let d=o.get(f);if(d!==void 0)return d;if((d=r.get(f))!==void 0)return s(f,d),d},set(f,d){o.has(f)?o.set(f,d):s(f,d)}}},Is="!",Ws=":",q3=Ws.length,Y3=n=>{const{prefix:l,experimentalParseClassName:o}=n;let r=s=>{const f=[];let d=0,m=0,g=0,p;for(let L=0;Lg?p-g:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:O}};if(l){const s=l+Ws,f=r;r=d=>d.startsWith(s)?f(d.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(o){const s=r;r=f=>o({className:f,parseClassName:s})}return r},X3=n=>n.endsWith(Is)?n.substring(0,n.length-1):n.startsWith(Is)?n.substring(1):n,K3=n=>{const l=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const s=[];let f=[];return r.forEach(d=>{d[0]==="["||l[d]?(s.push(...f.sort(),d),f=[]):f.push(d)}),s.push(...f.sort()),s}},F3=n=>({cache:Z3(n.cacheSize),parseClassName:Y3(n),sortModifiers:K3(n),...H3(n)}),Q3=/\s+/,P3=(n,l)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:f}=l,d=[],m=n.trim().split(Q3);let g="";for(let p=m.length-1;p>=0;p-=1){const y=m[p],{isExternal:_,modifiers:S,hasImportantModifier:O,baseClassName:L,maybePostfixModifierPosition:w}=o(y);if(_){g=y+(g.length>0?" "+g:g);continue}let T=!!w,B=r(T?L.substring(0,w):L);if(!B){if(!T){g=y+(g.length>0?" "+g:g);continue}if(B=r(L),!B){g=y+(g.length>0?" "+g:g);continue}T=!1}const K=f(S).join(":"),V=O?K+Is:K,Z=V+B;if(d.includes(Z))continue;d.push(Z);const P=s(B,T);for(let W=0;W0?" "+g:g)}return g};function J3(){let n=0,l,o,r="";for(;n{if(typeof n=="string")return n;let l,o="";for(let r=0;r_(y),n());return o=F3(p),r=o.cache.get,s=o.cache.set,f=m,m(g)}function m(g){const p=r(g);if(p)return p;const y=P3(g,o);return s(g,y),y}return function(){return f(J3.apply(null,arguments))}}const at=n=>{const l=o=>o[n]||[];return l.isThemeGetter=!0,l},H1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,I3=/^\d+\/\d+$/,W3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,e8=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,t8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,n8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,a8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jl=n=>I3.test(n),ye=n=>!!n&&!Number.isNaN(Number(n)),ma=n=>!!n&&Number.isInteger(Number(n)),ec=n=>n.endsWith("%")&&ye(n.slice(0,-1)),Zn=n=>W3.test(n),l8=()=>!0,i8=n=>e8.test(n)&&!t8.test(n),V1=()=>!1,r8=n=>n8.test(n),o8=n=>a8.test(n),u8=n=>!ne(n)&&!ae(n),s8=n=>zl(n,X1,V1),ne=n=>H1.test(n),el=n=>zl(n,K1,i8),tc=n=>zl(n,m8,ye),G1=n=>zl(n,q1,V1),c8=n=>zl(n,Y1,o8),Ao=n=>zl(n,F1,r8),ae=n=>k1.test(n),Xi=n=>Ul(n,K1),f8=n=>Ul(n,v8),Z1=n=>Ul(n,q1),d8=n=>Ul(n,X1),h8=n=>Ul(n,Y1),Co=n=>Ul(n,F1,!0),zl=(n,l,o)=>{const r=H1.exec(n);return r?r[1]?l(r[1]):o(r[2]):!1},Ul=(n,l,o=!1)=>{const r=k1.exec(n);return r?r[1]?l(r[1]):o:!1},q1=n=>n==="position"||n==="percentage",Y1=n=>n==="image"||n==="url",X1=n=>n==="length"||n==="size"||n==="bg-size",K1=n=>n==="length",m8=n=>n==="number",v8=n=>n==="family-name",F1=n=>n==="shadow",p8=$3(()=>{const n=at("color"),l=at("font"),o=at("text"),r=at("font-weight"),s=at("tracking"),f=at("leading"),d=at("breakpoint"),m=at("container"),g=at("spacing"),p=at("radius"),y=at("shadow"),_=at("inset-shadow"),S=at("text-shadow"),O=at("drop-shadow"),L=at("blur"),w=at("perspective"),T=at("aspect"),B=at("ease"),K=at("animate"),V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...Z(),ae,ne],W=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],F=()=>[ae,ne,g],se=()=>[jl,"full","auto",...F()],pe=()=>[ma,"none","subgrid",ae,ne],xe=()=>["auto",{span:["full",ma,ae,ne]},ma,ae,ne],me=()=>[ma,"auto",ae,ne],Ae=()=>["auto","min","max","fr",ae,ne],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...F()],X=()=>[jl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],U=()=>[n,ae,ne],J=()=>[...Z(),Z1,G1,{position:[ae,ne]}],ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",d8,s8,{size:[ae,ne]}],k=()=>[ec,Xi,el],Q=()=>["","none","full",p,ae,ne],$=()=>["",ye,Xi,el],re=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[ye,ec,Z1,G1],Fe=()=>["","none",L,ae,ne],Ue=()=>["none",ye,ae,ne],Jt=()=>["none",ye,ae,ne],Rn=()=>[ye,ae,ne],Nn=()=>[jl,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zn],breakpoint:[Zn],color:[l8],container:[Zn],"drop-shadow":[Zn],ease:["in","out","in-out"],font:[u8],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zn],shadow:[Zn],spacing:["px",ye],text:[Zn],"text-shadow":[Zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jl,ne,ae,T]}],container:["container"],columns:[{columns:[ye,ne,ae,m]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:se()}],"inset-x":[{"inset-x":se()}],"inset-y":[{"inset-y":se()}],start:[{start:se()}],end:[{end:se()}],top:[{top:se()}],right:[{right:se()}],bottom:[{bottom:se()}],left:[{left:se()}],visibility:["visible","invisible","collapse"],z:[{z:[ma,"auto",ae,ne]}],basis:[{basis:[jl,"full","auto",m,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ye,jl,"auto","initial","none",ne]}],grow:[{grow:["",ye,ae,ne]}],shrink:[{shrink:["",ye,ae,ne]}],order:[{order:[ma,"first","last","none",ae,ne]}],"grid-cols":[{"grid-cols":pe()}],"col-start-end":[{col:xe()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":pe()}],"row-start-end":[{row:xe()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[m,"screen",...X()]}],"min-w":[{"min-w":[m,"screen","none",...X()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",o,Xi,el]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ae,tc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ec,ne]}],"font-family":[{font:[f8,ne,l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ae,ne]}],"line-clamp":[{"line-clamp":[ye,"none",ae,tc]}],leading:[{leading:[f,...F()]}],"list-image":[{"list-image":["none",ae,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[ye,"from-font","auto",ae,el]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[ye,"auto",ae,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ma,ae,ne],radial:["",ae,ne],conic:[ma,ae,ne]},h8,c8]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ye,ae,ne]}],"outline-w":[{outline:["",ye,Xi,el]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",y,Co,Ao]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",_,Co,Ao]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[ye,el]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",S,Co,Ao]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[ye,ae,ne]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ye]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[ae,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Z()}],"mask-image-conic-pos":[{"mask-conic":[ye]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,ne]}],filter:[{filter:["","none",ae,ne]}],blur:[{blur:Fe()}],brightness:[{brightness:[ye,ae,ne]}],contrast:[{contrast:[ye,ae,ne]}],"drop-shadow":[{"drop-shadow":["","none",O,Co,Ao]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",ye,ae,ne]}],"hue-rotate":[{"hue-rotate":[ye,ae,ne]}],invert:[{invert:["",ye,ae,ne]}],saturate:[{saturate:[ye,ae,ne]}],sepia:[{sepia:["",ye,ae,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,ne]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[ye,ae,ne]}],"backdrop-contrast":[{"backdrop-contrast":[ye,ae,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ye,ae,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ye,ae,ne]}],"backdrop-invert":[{"backdrop-invert":["",ye,ae,ne]}],"backdrop-opacity":[{"backdrop-opacity":[ye,ae,ne]}],"backdrop-saturate":[{"backdrop-saturate":[ye,ae,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",ye,ae,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ye,"initial",ae,ne]}],ease:[{ease:["linear","initial",B,ae,ne]}],delay:[{delay:[ye,ae,ne]}],animate:[{animate:["none",K,ae,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ae,ne]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Ue()}],"rotate-x":[{"rotate-x":Ue()}],"rotate-y":[{"rotate-y":Ue()}],"rotate-z":[{"rotate-z":Ue()}],scale:[{scale:Jt()}],"scale-x":[{"scale-x":Jt()}],"scale-y":[{"scale-y":Jt()}],"scale-z":[{"scale-z":Jt()}],"scale-3d":["scale-3d"],skew:[{skew:Rn()}],"skew-x":[{"skew-x":Rn()}],"skew-y":[{"skew-y":Rn()}],transform:[{transform:[ae,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Nn()}],"translate-x":[{"translate-x":Nn()}],"translate-y":[{"translate-y":Nn()}],"translate-z":[{"translate-z":Nn()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae,ne]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[ye,Xi,el,tc]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ke(...n){return p8(D1(n))}function Q1(n){const l=n.trim().split(" ");if(l.length===0)return"";if(l.length===1)return l[0].charAt(0).toUpperCase();const o=l[0].charAt(0).toUpperCase(),r=l[l.length-1].charAt(0).toUpperCase();return o+r}var Oo={exports:{}},g8=Oo.exports,P1;function y8(){return P1||(P1=1,(function(n,l){(function(o,r){r()})(g8,function(){function o(p,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(p.type)?new Blob(["\uFEFF",p],{type:p.type}):p}function r(p,y,_){var S=new XMLHttpRequest;S.open("GET",p),S.responseType="blob",S.onload=function(){g(S.response,y,_)},S.onerror=function(){console.error("could not download file")},S.send()}function s(p){var y=new XMLHttpRequest;y.open("HEAD",p,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function f(p){try{p.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),p.dispatchEvent(y)}}var d=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof globalThis=="object"&&globalThis.global===globalThis?globalThis:void 0,m=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=d.saveAs||(typeof window!="object"||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!m?function(p,y,_){var S=d.URL||d.webkitURL,O=document.createElement("a");y=y||p.name||"download",O.download=y,O.rel="noopener",typeof p=="string"?(O.href=p,O.origin===location.origin?f(O):s(O.href)?r(p,y,_):f(O,O.target="_blank")):(O.href=S.createObjectURL(p),setTimeout(function(){S.revokeObjectURL(O.href)},4e4),setTimeout(function(){f(O)},0))}:"msSaveOrOpenBlob"in navigator?function(p,y,_){if(y=y||p.name||"download",typeof p!="string")navigator.msSaveOrOpenBlob(o(p,_),y);else if(s(p))r(p,y,_);else{var S=document.createElement("a");S.href=p,S.target="_blank",setTimeout(function(){f(S)})}}:function(p,y,_,S){if(S=S||open("","_blank"),S&&(S.document.title=S.document.body.innerText="downloading..."),typeof p=="string")return r(p,y,_);var O=p.type==="application/octet-stream",L=/constructor/i.test(d.HTMLElement)||d.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||O&&L||m)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var V=T.result;V=w?V:V.replace(/^data:[^;]*;/,"data:attachment/file;"),S?S.location.href=V:location=V,S=null},T.readAsDataURL(p)}else{var B=d.URL||d.webkitURL,K=B.createObjectURL(p);S?S.location=K:location.href=K,S=null,setTimeout(function(){B.revokeObjectURL(K)},4e4)}});d.saveAs=g.saveAs=g,n.exports=g})})(Oo)),Oo.exports}var J1=y8();const $1={apiBaseUrl:"https://tus.auth0.com/docs/v2",dashboardBaseUrl:"https://manage.tus.auth0.com",heapAnalytics:{enabled:!0,appId:"2269341915"},sentry:{enabled:!0,dsn:"https://8eae506d264532942aace9ecc223a526@o27592.ingest.us.sentry.io/4510008367972352",release:"docs-v2-tus",environment:"tus",loaderScript:"https://js.sentry-cdn.com/8eae506d264532942aace9ecc223a526.min.js"},oneTrust:{enabled:!0,domainId:"96e22fd8-d619-4cdd-a3c6-d51529d21faf-test"},adobeTagManager:{enabled:!0,loaderScript:"https://assets.adobedtm.com/6bb3f7663515/7006851c9849/launch-b7216a0e70ca-development.min.js"}},b8={prod:{apiBaseUrl:"https://auth0.com/docs/v2",dashboardBaseUrl:"https://manage.auth0.com",heapAnalytics:{enabled:!0,appId:"1279799279"},sentry:{enabled:!0,dsn:"https://d433d747a8af0820757f35be62ee08be@o27592.ingest.us.sentry.io/4509985515241472",release:"docs-v2",environment:"prod",loaderScript:"https://js.sentry-cdn.com/d433d747a8af0820757f35be62ee08be.min.js"},oneTrust:{enabled:!0,domainId:"96e22fd8-d619-4cdd-a3c6-d51529d21faf"},adobeTagManager:{enabled:!0,loaderScript:"https://assets.adobedtm.com/6bb3f7663515/7006851c9849/launch-af624fe9e34f.min.js"}},staging:{apiBaseUrl:"https://sus.auth0.com/docs/v2",dashboardBaseUrl:"https://manage.sus.auth0.com",heapAnalytics:{enabled:!0,appId:"2269341915"},sentry:{enabled:!0,dsn:"https://0fe11b3e3241a0986fc2755ca26fbe79@o27592.ingest.us.sentry.io/4510008371970048",release:"docs-v2-sus",environment:"sus",loaderScript:"https://js.sentry-cdn.com/0fe11b3e3241a0986fc2755ca26fbe79.min.js"},oneTrust:{enabled:!0,domainId:"96e22fd8-d619-4cdd-a3c6-d51529d21faf"},adobeTagManager:{enabled:!0,loaderScript:"https://assets.adobedtm.com/6bb3f7663515/7006851c9849/launch-e2cf6c285fa0-staging.min.js"}},dev:$1,local:{...$1,apiBaseUrl:"http://localhost:7200/docs/v2",dashboardBaseUrl:"https://manage.local.dev.auth0.com"}},_8={"auth0.com":"prod","auth0.auth0-mintlify.app":"prod","sus.auth0.com":"staging","docs-staging.mintlify.app":"staging","docs-staging.mintlify-auth0.app":"staging","tus.auth0.com":"dev","docs-dev.mintlify.app":"dev","docs-dev.mintlify-auth0.app":"dev",localhost:"local","127.0.0.1":"local","manage.local.dev.auth0.com":"local"},Le=(()=>{const n=window.location.hostname,l=_8[n]||"prod";return b8[l]})();async function va(n,l={}){const o=await fetch(n,{credentials:"include",headers:{"Content-Type":"application/json"},...l});if(!o.ok){const r=new Error(o.statusText);throw r.response=o,r}return await o.json()}function nc(n){const l=new URLSearchParams;n&&l.append("returnTo",n);const o=`${Le.apiBaseUrl}/auth/user/login${l.toString()?"?"+l.toString():""}`;window.location.href=o}function I1(n){const l=new URLSearchParams;n&&l.append("returnTo",n);const o=`${Le.apiBaseUrl}/auth/user/logout${l.toString()?"?"+l.toString():""}`;window.location.href=o}async function S8(){return va(`${Le.apiBaseUrl}/tenants`)}async function E8(n=0,l=100){const o=new URLSearchParams;return o.append("page",n.toString()),o.append("per_page",l.toString()),va(`${Le.apiBaseUrl}/clients?${o.toString()}`)}async function w8(n){return va(`${Le.apiBaseUrl}/clients`,{method:"POST",body:JSON.stringify(n)})}async function x8(n=0,l=100){const o=new URLSearchParams;return o.append("page",n.toString()),o.append("per_page",l.toString()),va(`${Le.apiBaseUrl}/resource-servers?${o.toString()}`)}async function A8(){const{profile:n,...l}=await va(`${Le.apiBaseUrl}/users/current`);return n?.sub?{...l,profile:{sub:n.sub,name:n.name,email:n.email,picture:n.picture}}:{...l,profile:null}}async function C8(n){return va(`${Le.apiBaseUrl}/users/session`,{method:"PATCH",body:JSON.stringify(n)})}async function ac(n){return va(`${Le.apiBaseUrl}/feedback`,{method:"POST",body:JSON.stringify(n)})}async function O8(n,l){const o=new URLSearchParams;o.append("repo",n.repo),o.append("branch",n.branch),n.path&&o.append("path",n.path),n.client_id&&o.append("client_id",n.client_id),n.tenant&&o.append("tenant",n.tenant),n.domain&&o.append("domain",n.domain),n.callback_url&&o.append("callback_url",n.callback_url),n.api_id&&o.append("api_id",n.api_id);const r=await fetch(`${Le.apiBaseUrl}/samples?${o.toString()}`,{headers:{Accept:"application/*"},credentials:"include"});if(!r.ok)throw new Error(`Failed to download sample: ${r.statusText}`);const s=await r.blob(),f=`${n.repo.split("/").pop()}-${n.branch}.zip`;J1.saveAs(s,l||f)}async function M8(n,l){const o=await fetch(`${Le.apiBaseUrl}/samples`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/*"},body:JSON.stringify(n),credentials:"include"});if(!o.ok)throw new Error(`Failed to download sample: ${o.statusText}`);const r=await o.blob(),s=`${n.repo.split("/").pop()}-${n.branch}.zip`;J1.saveAs(r,l||s)}const L8={"example-feature":!0,"beta-feature":!1,"new-ui":!0};async function T8(){try{return(await va(`${Le.apiBaseUrl}/feature-flags`)).flags}catch(n){return Le.apiBaseUrl.includes("localhost")||Le.apiBaseUrl.includes("local")?(console.warn("Feature flags endpoint not available, using mock data"),L8):(console.error("Failed to fetch feature flags:",n),{})}}class R8{rootStore;isAuthenticated=!1;selectedTenantName=null;domain=null;#e=null;get selectedTenant(){return this.selectedTenantName?this.rootStore.tenantStore.tenants.find(o=>o.name===this.selectedTenantName)??null:null}get user(){return this.#e?{...this.#e,profileUrl:this.selectedTenant?`${Le.dashboardBaseUrl}/dashboard/${this.selectedTenant.locality}/${this.selectedTenant.name}/profile/general`:"#"}:null}constructor(l){Dl(this,{init:Ge,reset:Ge,setSelectedTenant:Ge,updateSessionData:Ge}),this.rootStore=l}async init(){try{const l=await A8();if(this.isAuthenticated=l.is_authenticated,!l.is_authenticated||!l.profile){this.reset();return}this.domain=l.account.domain,this.selectedTenantName=l.account.tenant,this.#e={id:l.profile.sub??"",email:l.profile.email??"guest@example.com",name:l.profile.name??"Guest",profilePicture:l.profile.picture??"",profileUrl:this.selectedTenant?`${Le.dashboardBaseUrl}/dashboard/${this.selectedTenant.locality}/${this.selectedTenant.name}/profile/general`:"#"},l.account?.client_id&&this.rootStore.clientStore.setSelectedClient(l.account.client_id),l.api_id&&this.rootStore.resourceServerStore.setSelectedApi(l.api_id)}catch(l){console.error("Failed to initialize SessionStore:",l),this.reset()}}reset(){this.isAuthenticated=!1,this.#e=null,this.selectedTenantName=null}setSelectedTenant(l){this.selectedTenantName=l}async updateSessionData(l){try{await C8(l),l.selected_client_id!==void 0&&this.rootStore.clientStore.setSelectedClient(l.selected_client_id),l.selected_api_id!==void 0&&this.rootStore.resourceServerStore.setSelectedApi(l.selected_api_id)}catch(o){throw console.error("Failed to update session data:",o),o}}async login(l){nc(l??window.location.href)}async logout(l){I1(l??window.location.href)}}function N8(n){return{us:"us",sus:"us",tus:"us",local:"us",eu:"eu",teu:"eu",au:"australia",jp:"japan",uk:"uk",ca:"canada"}[n]||"globe"}function D8(n){return{name:n.name,flag:N8(n.locality.id),locality:n.locality.id,loginUrl:n.login_url}}class j8{rootStore;tenants=[];constructor(l){Dl(this,{init:Ge,reset:Ge}),this.rootStore=l}async init(){try{const l=await S8();this.tenants=l.map(o=>D8(o))}catch(l){console.error("Failed to initialize TenantStore:",l),this.reset()}}reset(){this.tenants=[]}}class z8{rootStore;clients=[];selectedClientId=null;selectedClientSecret=void 0;constructor(l){Dl(this,{init:Ge,reset:Ge,setSelectedClient:Ge,createClient:Ge}),this.rootStore=l}async init(){try{this.clients=await E8()}catch(l){console.error("Failed to initialize ClientStore:",l),this.reset()}}async createClient(l){try{const o=await w8(l);return this.clients.push(o),this.setSelectedClient(o.client_id),this.setSelectedClientSecret(o.client_secret),o}catch(o){throw console.error("Failed to create client:",o),o}}reset(){this.clients=[],this.selectedClientId=null,this.selectedClientSecret=void 0}setSelectedClient(l){this.selectedClientId=l;const{variableStore:o}=this.rootStore;l?o.setValue("{yourClientId}",l):o.resetKey("{yourClientId}")}setSelectedClientSecret(l){this.selectedClientSecret=l;const{variableStore:o}=this.rootStore;l?o.setValue("{yourClientSecret}",l):o.resetKey("{yourClientSecret}")}get selectedClient(){return this.clients.find(l=>l.client_id===this.selectedClientId)||null}}class U8{rootStore;resourceServers=[];selectedApiId=null;constructor(l){Dl(this,{init:Ge,reset:Ge,setSelectedApi:Ge}),this.rootStore=l}async init(){try{this.resourceServers=await x8()}catch(l){console.error("Failed to initialize ResourceServerStore:",l),this.reset()}}reset(){this.resourceServers=[],this.selectedApiId=null}setSelectedApi(l){this.selectedApiId=l}get selectedApi(){return this.resourceServers.find(l=>l.id===this.selectedApiId)||null}}const W1=["{yourAppName}","{userName}","{yourTenant}","{yourDomain}","{yourClientId}","{yourClientSecret}","{https://yourApp/callback}","{yourApiIdentifier}","{yourConnectionName}"];class B8{rootStore;values=it.map(W1.map(l=>[l,l]));#e=[];constructor(l){r1(this,{init:Ge,setValue:Ge,reset:Ge}),this.rootStore=l}init(){for(const l of this.#e)l();this.#t(),this.#n(),this.#a()}getValue(l){return this.values.has(l)||console.warn(`${l} is not allowed in VariableStore`),this.values.get(l)??l}setValue(l,o){if(!this.values.has(l)){console.warn(`${l} is not allowed in VariableStore`);return}this.values.set(l,o)}resetKey(l){if(!this.values.has(l)){console.warn(`${l} is not allowed in VariableStore`);return}this.values.set(l,l)}reset(){for(const l of W1)this.values.set(l,l)}#t(){const l=fa(()=>{const{user:o,domain:r,selectedTenant:s}=this.rootStore.sessionStore;o?this.setValue("{userName}",o.name):this.resetKey("{userName}"),r?this.setValue("{yourDomain}",r):this.resetKey("{yourDomain}"),s?this.setValue("{yourTenant}",s.name):this.resetKey("{yourTenant}")});this.#e.push(l)}#n(){const l=fa(()=>{const{selectedClient:o}=this.rootStore.clientStore;if(o){this.setValue("{yourAppName}",o.name),this.setValue("{yourClientId}",o.client_id),this.setValue("{yourClientSecret}",o.client_secret??"{yourClientSecret}"),this.setValue("{https://yourApp/callback}",o.callbacks?.[0]??"{https://yourApp/callback}");return}this.resetKey("{yourAppName}"),this.resetKey("{yourClientId}"),this.resetKey("{yourClientSecret}"),this.resetKey("{https://yourApp/callback}")});this.#e.push(l)}#a(){const l=fa(()=>{const{selectedApi:o}=this.rootStore.resourceServerStore;o?this.setValue("{yourApiIdentifier}",o.identifier):this.resetKey("{yourApiIdentifier}")});this.#e.push(l)}}class H8{rootStore;flags={};#e=null;#t=!1;constructor(l){Dl(this,{init:Ge,reset:Ge,fetchFlags:Ge}),this.rootStore=l}async init(){if(!this.#t)try{await this.fetchFlags(),this.startPolling(),this.#t=!0}catch(l){console.error("Failed to initialize FeatureFlagStore:",l)}}startPolling(){this.#e=window.setInterval(()=>{this.fetchFlags().catch(l=>{console.error("Failed to fetch feature flags:",l)})},3e5)}async fetchFlags(){try{const l=await T8();this.flags=l}catch(l){throw console.error("Feature flags API error:",l),l}}isEnabled(l){return this.flags[l]??!1}getFlag(l){return this.flags[l]}getAllFlags(){return{...this.flags}}async refresh(){await this.fetchFlags()}reset(){this.#e!==null&&(clearInterval(this.#e),this.#e=null),this.flags={},this.#t=!1}}class k8{sessionStore;tenantStore;clientStore;resourceServerStore;variableStore;featureFlagStore;config;#e=null;constructor(){Dl(this),this.sessionStore=new R8(this),this.tenantStore=new j8(this),this.clientStore=new z8(this),this.resourceServerStore=new U8(this),this.variableStore=new B8(this),this.featureFlagStore=new H8(this),this.config=Le}async init(){this.#e?.(),await this.featureFlagStore.init(),await this.sessionStore.init(),this.#e=fa(async()=>{if(!this.sessionStore.isAuthenticated){this.tenantStore.reset(),this.clientStore.reset(),this.resourceServerStore.reset(),this.variableStore.reset();return}await this.tenantStore.init(),await Promise.all([this.clientStore.init(),this.resourceServerStore.init()]),this.variableStore.init()})}reset(){this.sessionStore.reset(),this.tenantStore.reset(),this.clientStore.reset(),this.resourceServerStore.reset(),this.variableStore.reset(),this.featureFlagStore.reset()}}const pa=new k8;async function em(){await pa.init(),typeof window<"u"&&(window.rootStore=pa,window.autorun=fa,window.reaction=Ih,window.flags=pa.featureFlagStore.getAllFlags(),fa(()=>{window.flags=pa.featureFlagStore.getAllFlags()}));const n=new CustomEvent("adu:storeReady",{bubbles:!0,cancelable:!1});return window.dispatchEvent(n),pa}function Oe(n,l,{checkForDefaultPrevented:o=!0}={}){return function(s){if(n?.(s),o===!1||!s.defaultPrevented)return l?.(s)}}function tm(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function Mo(...n){return l=>{let o=!1;const r=n.map(s=>{const f=tm(s,l);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let s=0;s{const{scope:S,children:O,...L}=_,w=S?.[n]?.[g]||m,T=v.useMemo(()=>L,Object.values(L));return x.jsx(w.Provider,{value:T,children:O})};p.displayName=f+"Provider";function y(_,S){const O=S?.[n]?.[g]||m,L=v.useContext(O);if(L)return L;if(d!==void 0)return d;throw new Error(`\`${_}\` must be used within \`${f}\``)}return[p,y]}const s=()=>{const f=o.map(d=>v.createContext(d));return function(m){const g=m?.[n]||f;return v.useMemo(()=>({[`__scope${n}`]:{...m,[n]:g}}),[m,g])}};return s.scopeName=n,[r,V8(s,...l)]}function V8(...n){const l=n[0];if(n.length===1)return l;const o=()=>{const r=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(f){const d=r.reduce((m,{useScope:g,scopeName:p})=>{const _=g(f)[`__scope${p}`];return{...m,..._}},{});return v.useMemo(()=>({[`__scope${l.scopeName}`]:d}),[d])}};return o.scopeName=l.scopeName,o}var dn=globalThis?.document?v.useLayoutEffect:()=>{},G8=ch[" useInsertionEffect ".trim().toString()]||dn;function nm({prop:n,defaultProp:l,onChange:o=()=>{},caller:r}){const[s,f,d]=Z8({defaultProp:l,onChange:o}),m=n!==void 0,g=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const _=y.current;_!==m&&console.warn(`${r} is changing from ${_?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=m},[m,r])}const p=v.useCallback(y=>{if(m){const _=q8(y)?y(n):y;_!==n&&d.current?.(_)}else f(y)},[m,n,f,d]);return[g,p]}function Z8({defaultProp:n,onChange:l}){const[o,r]=v.useState(n),s=v.useRef(o),f=v.useRef(l);return G8(()=>{f.current=l},[l]),v.useEffect(()=>{s.current!==o&&(f.current?.(o),s.current=o)},[o,s]),[o,r,f]}function q8(n){return typeof n=="function"}function Ki(n){const l=Y8(n),o=v.forwardRef((r,s)=>{const{children:f,...d}=r,m=v.Children.toArray(f),g=m.find(K8);if(g){const p=g.props.children,y=m.map(_=>_===g?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:_);return x.jsx(l,{...d,ref:s,children:v.isValidElement(p)?v.cloneElement(p,void 0,y):null})}return x.jsx(l,{...d,ref:s,children:f})});return o.displayName=`${n}.Slot`,o}var Fi=Ki("Slot");function Y8(n){const l=v.forwardRef((o,r)=>{const{children:s,...f}=o;if(v.isValidElement(s)){const d=Q8(s),m=F8(f,s.props);return s.type!==v.Fragment&&(m.ref=r?Mo(r,d):d),v.cloneElement(s,m)}return v.Children.count(s)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var X8=Symbol("radix.slottable");function K8(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===X8}function F8(n,l){const o={...l};for(const r in l){const s=n[r],f=l[r];/^on[A-Z]/.test(r)?s&&f?o[r]=(...m)=>{const g=f(...m);return s(...m),g}:s&&(o[r]=s):r==="style"?o[r]={...s,...f}:r==="className"&&(o[r]=[s,f].filter(Boolean).join(" "))}return{...n,...o}}function Q8(n){let l=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var P8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rt=P8.reduce((n,l)=>{const o=Ki(`Primitive.${l}`),r=v.forwardRef((s,f)=>{const{asChild:d,...m}=s,g=d?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(g,{...m,ref:f})});return r.displayName=`Primitive.${l}`,{...n,[l]:r}},{});function am(n,l){n&&xo.flushSync(()=>n.dispatchEvent(l))}function lm(n){const l=n+"CollectionProvider",[o,r]=Bl(l),[s,f]=o(l,{collectionRef:{current:null},itemMap:new Map}),d=w=>{const{scope:T,children:B}=w,K=yn.useRef(null),V=yn.useRef(new Map).current;return x.jsx(s,{scope:T,itemMap:V,collectionRef:K,children:B})};d.displayName=l;const m=n+"CollectionSlot",g=Ki(m),p=yn.forwardRef((w,T)=>{const{scope:B,children:K}=w,V=f(m,B),Z=gt(T,V.collectionRef);return x.jsx(g,{ref:Z,children:K})});p.displayName=m;const y=n+"CollectionItemSlot",_="data-radix-collection-item",S=Ki(y),O=yn.forwardRef((w,T)=>{const{scope:B,children:K,...V}=w,Z=yn.useRef(null),P=gt(T,Z),W=f(y,B);return yn.useEffect(()=>(W.itemMap.set(Z,{ref:Z,...V}),()=>void W.itemMap.delete(Z))),x.jsx(S,{[_]:"",ref:P,children:K})});O.displayName=y;function L(w){const T=f(n+"CollectionConsumer",w);return yn.useCallback(()=>{const K=T.collectionRef.current;if(!K)return[];const V=Array.from(K.querySelectorAll(`[${_}]`));return Array.from(T.itemMap.values()).sort((W,Y)=>V.indexOf(W.ref.current)-V.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:O},L,r]}var J8=v.createContext(void 0);function im(n){const l=v.useContext(J8);return n||l||"ltr"}function An(n){const l=v.useRef(n);return v.useEffect(()=>{l.current=n}),v.useMemo(()=>(...o)=>l.current?.(...o),[])}function $8(n,l=globalThis?.document){const o=An(n);v.useEffect(()=>{const r=s=>{s.key==="Escape"&&o(s)};return l.addEventListener("keydown",r,{capture:!0}),()=>l.removeEventListener("keydown",r,{capture:!0})},[o,l])}var I8="DismissableLayer",lc="dismissableLayer.update",W8="dismissableLayer.pointerDownOutside",e5="dismissableLayer.focusOutside",rm,om=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),um=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:f,onInteractOutside:d,onDismiss:m,...g}=n,p=v.useContext(om),[y,_]=v.useState(null),S=y?.ownerDocument??globalThis?.document,[,O]=v.useState({}),L=gt(l,Y=>_(Y)),w=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),B=w.indexOf(T),K=y?w.indexOf(y):-1,V=p.layersWithOutsidePointerEventsDisabled.size>0,Z=K>=B,P=a5(Y=>{const F=Y.target,se=[...p.branches].some(pe=>pe.contains(F));!Z||se||(s?.(Y),d?.(Y),Y.defaultPrevented||m?.())},S),W=l5(Y=>{const F=Y.target;[...p.branches].some(pe=>pe.contains(F))||(f?.(Y),d?.(Y),Y.defaultPrevented||m?.())},S);return $8(Y=>{K===p.layers.size-1&&(r?.(Y),!Y.defaultPrevented&&m&&(Y.preventDefault(),m()))},S),v.useEffect(()=>{if(y)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(rm=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(y)),p.layers.add(y),sm(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=rm)}},[y,S,o,p]),v.useEffect(()=>()=>{y&&(p.layers.delete(y),p.layersWithOutsidePointerEventsDisabled.delete(y),sm())},[y,p]),v.useEffect(()=>{const Y=()=>O({});return document.addEventListener(lc,Y),()=>document.removeEventListener(lc,Y)},[]),x.jsx(rt.div,{...g,ref:L,style:{pointerEvents:V?Z?"auto":"none":void 0,...n.style},onFocusCapture:Oe(n.onFocusCapture,W.onFocusCapture),onBlurCapture:Oe(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Oe(n.onPointerDownCapture,P.onPointerDownCapture)})});um.displayName=I8;var t5="DismissableLayerBranch",n5=v.forwardRef((n,l)=>{const o=v.useContext(om),r=v.useRef(null),s=gt(l,r);return v.useEffect(()=>{const f=r.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),x.jsx(rt.div,{...n,ref:s})});n5.displayName=t5;function a5(n,l=globalThis?.document){const o=An(n),r=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const f=m=>{if(m.target&&!r.current){let g=function(){cm(W8,o,p,{discrete:!0})};const p={originalEvent:m};m.pointerType==="touch"?(l.removeEventListener("click",s.current),s.current=g,l.addEventListener("click",s.current,{once:!0})):g()}else l.removeEventListener("click",s.current);r.current=!1},d=window.setTimeout(()=>{l.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),l.removeEventListener("pointerdown",f),l.removeEventListener("click",s.current)}},[l,o]),{onPointerDownCapture:()=>r.current=!0}}function l5(n,l=globalThis?.document){const o=An(n),r=v.useRef(!1);return v.useEffect(()=>{const s=f=>{f.target&&!r.current&&cm(e5,o,{originalEvent:f},{discrete:!1})};return l.addEventListener("focusin",s),()=>l.removeEventListener("focusin",s)},[l,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sm(){const n=new CustomEvent(lc);document.dispatchEvent(n)}function cm(n,l,o,{discrete:r}){const s=o.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});l&&s.addEventListener(n,l,{once:!0}),r?am(s,f):s.dispatchEvent(f)}var ic=0;function i5(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??fm()),document.body.insertAdjacentElement("beforeend",n[1]??fm()),ic++,()=>{ic===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),ic--}},[])}function fm(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var rc="focusScope.autoFocusOnMount",oc="focusScope.autoFocusOnUnmount",dm={bubbles:!1,cancelable:!0},r5="FocusScope",hm=v.forwardRef((n,l)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:f,...d}=n,[m,g]=v.useState(null),p=An(s),y=An(f),_=v.useRef(null),S=gt(l,w=>g(w)),O=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let w=function(V){if(O.paused||!m)return;const Z=V.target;m.contains(Z)?_.current=Z:ga(_.current,{select:!0})},T=function(V){if(O.paused||!m)return;const Z=V.relatedTarget;Z!==null&&(m.contains(Z)||ga(_.current,{select:!0}))},B=function(V){if(document.activeElement===document.body)for(const P of V)P.removedNodes.length>0&&ga(m)};document.addEventListener("focusin",w),document.addEventListener("focusout",T);const K=new MutationObserver(B);return m&&K.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T),K.disconnect()}}},[r,m,O.paused]),v.useEffect(()=>{if(m){pm.add(O);const w=document.activeElement;if(!m.contains(w)){const B=new CustomEvent(rc,dm);m.addEventListener(rc,p),m.dispatchEvent(B),B.defaultPrevented||(o5(d5(mm(m)),{select:!0}),document.activeElement===w&&ga(m))}return()=>{m.removeEventListener(rc,p),setTimeout(()=>{const B=new CustomEvent(oc,dm);m.addEventListener(oc,y),m.dispatchEvent(B),B.defaultPrevented||ga(w??document.body,{select:!0}),m.removeEventListener(oc,y),pm.remove(O)},0)}}},[m,p,y,O]);const L=v.useCallback(w=>{if(!o&&!r||O.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,B=document.activeElement;if(T&&B){const K=w.currentTarget,[V,Z]=u5(K);V&&Z?!w.shiftKey&&B===Z?(w.preventDefault(),o&&ga(V,{select:!0})):w.shiftKey&&B===V&&(w.preventDefault(),o&&ga(Z,{select:!0})):B===K&&w.preventDefault()}},[o,r,O.paused]);return x.jsx(rt.div,{tabIndex:-1,...d,ref:S,onKeyDown:L})});hm.displayName=r5;function o5(n,{select:l=!1}={}){const o=document.activeElement;for(const r of n)if(ga(r,{select:l}),document.activeElement!==o)return}function u5(n){const l=mm(n),o=vm(l,n),r=vm(l.reverse(),n);return[o,r]}function mm(n){const l=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l}function vm(n,l){for(const o of n)if(!s5(o,{upTo:l}))return o}function s5(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function c5(n){return n instanceof HTMLInputElement&&"select"in n}function ga(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&c5(n)&&l&&n.select()}}var pm=f5();function f5(){let n=[];return{add(l){const o=n[0];l!==o&&o?.pause(),n=gm(n,l),n.unshift(l)},remove(l){n=gm(n,l),n[0]?.resume()}}}function gm(n,l){const o=[...n],r=o.indexOf(l);return r!==-1&&o.splice(r,1),o}function d5(n){return n.filter(l=>l.tagName!=="A")}var h5=ch[" useId ".trim().toString()]||(()=>{}),m5=0;function uc(n){const[l,o]=v.useState(h5());return dn(()=>{o(r=>r??String(m5++))},[n]),n||(l?`radix-${l}`:"")}const v5=["top","right","bottom","left"],ya=Math.min,Tt=Math.max,Lo=Math.round,To=Math.floor,Cn=n=>({x:n,y:n}),p5={left:"right",right:"left",bottom:"top",top:"bottom"},g5={start:"end",end:"start"};function sc(n,l,o){return Tt(n,ya(l,o))}function qn(n,l){return typeof n=="function"?n(l):n}function Yn(n){return n.split("-")[0]}function Hl(n){return n.split("-")[1]}function cc(n){return n==="x"?"y":"x"}function fc(n){return n==="y"?"height":"width"}const y5=new Set(["top","bottom"]);function On(n){return y5.has(Yn(n))?"y":"x"}function dc(n){return cc(On(n))}function b5(n,l,o){o===void 0&&(o=!1);const r=Hl(n),s=dc(n),f=fc(s);let d=s==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return l.reference[f]>l.floating[f]&&(d=Ro(d)),[d,Ro(d)]}function _5(n){const l=Ro(n);return[hc(n),l,hc(l)]}function hc(n){return n.replace(/start|end/g,l=>g5[l])}const ym=["left","right"],bm=["right","left"],S5=["top","bottom"],E5=["bottom","top"];function w5(n,l,o){switch(n){case"top":case"bottom":return o?l?bm:ym:l?ym:bm;case"left":case"right":return l?S5:E5;default:return[]}}function x5(n,l,o,r){const s=Hl(n);let f=w5(Yn(n),o==="start",r);return s&&(f=f.map(d=>d+"-"+s),l&&(f=f.concat(f.map(hc)))),f}function Ro(n){return n.replace(/left|right|bottom|top/g,l=>p5[l])}function A5(n){return{top:0,right:0,bottom:0,left:0,...n}}function _m(n){return typeof n!="number"?A5(n):{top:n,right:n,bottom:n,left:n}}function No(n){const{x:l,y:o,width:r,height:s}=n;return{width:r,height:s,top:o,left:l,right:l+r,bottom:o+s,x:l,y:o}}function Sm(n,l,o){let{reference:r,floating:s}=n;const f=On(l),d=dc(l),m=fc(d),g=Yn(l),p=f==="y",y=r.x+r.width/2-s.width/2,_=r.y+r.height/2-s.height/2,S=r[m]/2-s[m]/2;let O;switch(g){case"top":O={x:y,y:r.y-s.height};break;case"bottom":O={x:y,y:r.y+r.height};break;case"right":O={x:r.x+r.width,y:_};break;case"left":O={x:r.x-s.width,y:_};break;default:O={x:r.x,y:r.y}}switch(Hl(l)){case"start":O[d]-=S*(o&&p?-1:1);break;case"end":O[d]+=S*(o&&p?-1:1);break}return O}const C5=async(n,l,o)=>{const{placement:r="bottom",strategy:s="absolute",middleware:f=[],platform:d}=o,m=f.filter(Boolean),g=await(d.isRTL==null?void 0:d.isRTL(l));let p=await d.getElementRects({reference:n,floating:l,strategy:s}),{x:y,y:_}=Sm(p,r,g),S=r,O={},L=0;for(let w=0;w({name:"arrow",options:n,async fn(l){const{x:o,y:r,placement:s,rects:f,platform:d,elements:m,middlewareData:g}=l,{element:p,padding:y=0}=qn(n,l)||{};if(p==null)return{};const _=_m(y),S={x:o,y:r},O=dc(s),L=fc(O),w=await d.getDimensions(p),T=O==="y",B=T?"top":"left",K=T?"bottom":"right",V=T?"clientHeight":"clientWidth",Z=f.reference[L]+f.reference[O]-S[O]-f.floating[L],P=S[O]-f.reference[O],W=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let Y=W?W[V]:0;(!Y||!await(d.isElement==null?void 0:d.isElement(W)))&&(Y=m.floating[V]||f.floating[L]);const F=Z/2-P/2,se=Y/2-w[L]/2-1,pe=ya(_[B],se),xe=ya(_[K],se),me=pe,Ae=Y-w[L]-xe,ge=Y/2-w[L]/2+F,Se=sc(me,ge,Ae),R=!g.arrow&&Hl(s)!=null&&ge!==Se&&f.reference[L]/2-(gege<=0)){var xe,me;const ge=(((xe=f.flip)==null?void 0:xe.index)||0)+1,Se=Y[ge];if(Se&&(!(_==="alignment"?K!==On(Se):!1)||pe.every(U=>On(U.placement)===K?U.overflows[0]>0:!0)))return{data:{index:ge,overflows:pe},reset:{placement:Se}};let R=(me=pe.filter(X=>X.overflows[0]<=0).sort((X,U)=>X.overflows[1]-U.overflows[1])[0])==null?void 0:me.placement;if(!R)switch(O){case"bestFit":{var Ae;const X=(Ae=pe.filter(U=>{if(W){const J=On(U.placement);return J===K||J==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(J=>J>0).reduce((J,ce)=>J+ce,0)]).sort((U,J)=>U[1]-J[1])[0])==null?void 0:Ae[0];X&&(R=X);break}case"initialPlacement":R=m;break}if(s!==R)return{reset:{placement:R}}}return{}}}};function Em(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function wm(n){return v5.some(l=>n[l]>=0)}const L5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o}=l,{strategy:r="referenceHidden",...s}=qn(n,l);switch(r){case"referenceHidden":{const f=await Qi(l,{...s,elementContext:"reference"}),d=Em(f,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:wm(d)}}}case"escaped":{const f=await Qi(l,{...s,altBoundary:!0}),d=Em(f,o.floating);return{data:{escapedOffsets:d,escaped:wm(d)}}}default:return{}}}}},xm=new Set(["left","top"]);async function T5(n,l){const{placement:o,platform:r,elements:s}=n,f=await(r.isRTL==null?void 0:r.isRTL(s.floating)),d=Yn(o),m=Hl(o),g=On(o)==="y",p=xm.has(d)?-1:1,y=f&&g?-1:1,_=qn(l,n);let{mainAxis:S,crossAxis:O,alignmentAxis:L}=typeof _=="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis};return m&&typeof L=="number"&&(O=m==="end"?L*-1:L),g?{x:O*y,y:S*p}:{x:S*p,y:O*y}}const R5=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,r;const{x:s,y:f,placement:d,middlewareData:m}=l,g=await T5(l,n);return d===((o=m.offset)==null?void 0:o.placement)&&(r=m.arrow)!=null&&r.alignmentOffset?{}:{x:s+g.x,y:f+g.y,data:{...g,placement:d}}}}},N5=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:r,placement:s}=l,{mainAxis:f=!0,crossAxis:d=!1,limiter:m={fn:T=>{let{x:B,y:K}=T;return{x:B,y:K}}},...g}=qn(n,l),p={x:o,y:r},y=await Qi(l,g),_=On(Yn(s)),S=cc(_);let O=p[S],L=p[_];if(f){const T=S==="y"?"top":"left",B=S==="y"?"bottom":"right",K=O+y[T],V=O-y[B];O=sc(K,O,V)}if(d){const T=_==="y"?"top":"left",B=_==="y"?"bottom":"right",K=L+y[T],V=L-y[B];L=sc(K,L,V)}const w=m.fn({...l,[S]:O,[_]:L});return{...w,data:{x:w.x-o,y:w.y-r,enabled:{[S]:f,[_]:d}}}}}},D5=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:r,placement:s,rects:f,middlewareData:d}=l,{offset:m=0,mainAxis:g=!0,crossAxis:p=!0}=qn(n,l),y={x:o,y:r},_=On(s),S=cc(_);let O=y[S],L=y[_];const w=qn(m,l),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(g){const V=S==="y"?"height":"width",Z=f.reference[S]-f.floating[V]+T.mainAxis,P=f.reference[S]+f.reference[V]-T.mainAxis;OP&&(O=P)}if(p){var B,K;const V=S==="y"?"width":"height",Z=xm.has(Yn(s)),P=f.reference[_]-f.floating[V]+(Z&&((B=d.offset)==null?void 0:B[_])||0)+(Z?0:T.crossAxis),W=f.reference[_]+f.reference[V]+(Z?0:((K=d.offset)==null?void 0:K[_])||0)-(Z?T.crossAxis:0);LW&&(L=W)}return{[S]:O,[_]:L}}}},j5=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,r;const{placement:s,rects:f,platform:d,elements:m}=l,{apply:g=()=>{},...p}=qn(n,l),y=await Qi(l,p),_=Yn(s),S=Hl(s),O=On(s)==="y",{width:L,height:w}=f.floating;let T,B;_==="top"||_==="bottom"?(T=_,B=S===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(B=_,T=S==="end"?"top":"bottom");const K=w-y.top-y.bottom,V=L-y.left-y.right,Z=ya(w-y[T],K),P=ya(L-y[B],V),W=!l.middlewareData.shift;let Y=Z,F=P;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(F=V),(r=l.middlewareData.shift)!=null&&r.enabled.y&&(Y=K),W&&!S){const pe=Tt(y.left,0),xe=Tt(y.right,0),me=Tt(y.top,0),Ae=Tt(y.bottom,0);O?F=L-2*(pe!==0||xe!==0?pe+xe:Tt(y.left,y.right)):Y=w-2*(me!==0||Ae!==0?me+Ae:Tt(y.top,y.bottom))}await g({...l,availableWidth:F,availableHeight:Y});const se=await d.getDimensions(m.floating);return L!==se.width||w!==se.height?{reset:{rects:!0}}:{}}}};function Do(){return typeof window<"u"}function kl(n){return Am(n)?(n.nodeName||"").toLowerCase():"#document"}function Rt(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Mn(n){var l;return(l=(Am(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Am(n){return Do()?n instanceof Node||n instanceof Rt(n).Node:!1}function hn(n){return Do()?n instanceof Element||n instanceof Rt(n).Element:!1}function Ln(n){return Do()?n instanceof HTMLElement||n instanceof Rt(n).HTMLElement:!1}function Cm(n){return!Do()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Rt(n).ShadowRoot}const z5=new Set(["inline","contents"]);function Pi(n){const{overflow:l,overflowX:o,overflowY:r,display:s}=mn(n);return/auto|scroll|overlay|hidden|clip/.test(l+r+o)&&!z5.has(s)}const U5=new Set(["table","td","th"]);function B5(n){return U5.has(kl(n))}const H5=[":popover-open",":modal"];function jo(n){return H5.some(l=>{try{return n.matches(l)}catch{return!1}})}const k5=["transform","translate","scale","rotate","perspective"],V5=["transform","translate","scale","rotate","perspective","filter"],G5=["paint","layout","strict","content"];function mc(n){const l=vc(),o=hn(n)?mn(n):n;return k5.some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!l&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!l&&(o.filter?o.filter!=="none":!1)||V5.some(r=>(o.willChange||"").includes(r))||G5.some(r=>(o.contain||"").includes(r))}function Z5(n){let l=ba(n);for(;Ln(l)&&!Vl(l);){if(mc(l))return l;if(jo(l))return null;l=ba(l)}return null}function vc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const q5=new Set(["html","body","#document"]);function Vl(n){return q5.has(kl(n))}function mn(n){return Rt(n).getComputedStyle(n)}function zo(n){return hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ba(n){if(kl(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Cm(n)&&n.host||Mn(n);return Cm(l)?l.host:l}function Om(n){const l=ba(n);return Vl(l)?n.ownerDocument?n.ownerDocument.body:n.body:Ln(l)&&Pi(l)?l:Om(l)}function Ji(n,l,o){var r;l===void 0&&(l=[]),o===void 0&&(o=!0);const s=Om(n),f=s===((r=n.ownerDocument)==null?void 0:r.body),d=Rt(s);if(f){const m=pc(d);return l.concat(d,d.visualViewport||[],Pi(s)?s:[],m&&o?Ji(m):[])}return l.concat(s,Ji(s,[],o))}function pc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Mm(n){const l=mn(n);let o=parseFloat(l.width)||0,r=parseFloat(l.height)||0;const s=Ln(n),f=s?n.offsetWidth:o,d=s?n.offsetHeight:r,m=Lo(o)!==f||Lo(r)!==d;return m&&(o=f,r=d),{width:o,height:r,$:m}}function gc(n){return hn(n)?n:n.contextElement}function Gl(n){const l=gc(n);if(!Ln(l))return Cn(1);const o=l.getBoundingClientRect(),{width:r,height:s,$:f}=Mm(l);let d=(f?Lo(o.width):o.width)/r,m=(f?Lo(o.height):o.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const Y5=Cn(0);function Lm(n){const l=Rt(n);return!vc()||!l.visualViewport?Y5:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function X5(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==Rt(n)?!1:l}function tl(n,l,o,r){l===void 0&&(l=!1),o===void 0&&(o=!1);const s=n.getBoundingClientRect(),f=gc(n);let d=Cn(1);l&&(r?hn(r)&&(d=Gl(r)):d=Gl(n));const m=X5(f,o,r)?Lm(f):Cn(0);let g=(s.left+m.x)/d.x,p=(s.top+m.y)/d.y,y=s.width/d.x,_=s.height/d.y;if(f){const S=Rt(f),O=r&&hn(r)?Rt(r):r;let L=S,w=pc(L);for(;w&&r&&O!==L;){const T=Gl(w),B=w.getBoundingClientRect(),K=mn(w),V=B.left+(w.clientLeft+parseFloat(K.paddingLeft))*T.x,Z=B.top+(w.clientTop+parseFloat(K.paddingTop))*T.y;g*=T.x,p*=T.y,y*=T.x,_*=T.y,g+=V,p+=Z,L=Rt(w),w=pc(L)}}return No({width:y,height:_,x:g,y:p})}function Uo(n,l){const o=zo(n).scrollLeft;return l?l.left+o:tl(Mn(n)).left+o}function Tm(n,l){const o=n.getBoundingClientRect(),r=o.left+l.scrollLeft-Uo(n,o),s=o.top+l.scrollTop;return{x:r,y:s}}function K5(n){let{elements:l,rect:o,offsetParent:r,strategy:s}=n;const f=s==="fixed",d=Mn(r),m=l?jo(l.floating):!1;if(r===d||m&&f)return o;let g={scrollLeft:0,scrollTop:0},p=Cn(1);const y=Cn(0),_=Ln(r);if((_||!_&&!f)&&((kl(r)!=="body"||Pi(d))&&(g=zo(r)),Ln(r))){const O=tl(r);p=Gl(r),y.x=O.x+r.clientLeft,y.y=O.y+r.clientTop}const S=d&&!_&&!f?Tm(d,g):Cn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-g.scrollLeft*p.x+y.x+S.x,y:o.y*p.y-g.scrollTop*p.y+y.y+S.y}}function F5(n){return Array.from(n.getClientRects())}function Q5(n){const l=Mn(n),o=zo(n),r=n.ownerDocument.body,s=Tt(l.scrollWidth,l.clientWidth,r.scrollWidth,r.clientWidth),f=Tt(l.scrollHeight,l.clientHeight,r.scrollHeight,r.clientHeight);let d=-o.scrollLeft+Uo(n);const m=-o.scrollTop;return mn(r).direction==="rtl"&&(d+=Tt(l.clientWidth,r.clientWidth)-s),{width:s,height:f,x:d,y:m}}const Rm=25;function P5(n,l){const o=Rt(n),r=Mn(n),s=o.visualViewport;let f=r.clientWidth,d=r.clientHeight,m=0,g=0;if(s){f=s.width,d=s.height;const y=vc();(!y||y&&l==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}const p=Uo(r);if(p<=0){const y=r.ownerDocument,_=y.body,S=getComputedStyle(_),O=y.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,L=Math.abs(r.clientWidth-_.clientWidth-O);L<=Rm&&(f-=L)}else p<=Rm&&(f+=p);return{width:f,height:d,x:m,y:g}}const J5=new Set(["absolute","fixed"]);function $5(n,l){const o=tl(n,!0,l==="fixed"),r=o.top+n.clientTop,s=o.left+n.clientLeft,f=Ln(n)?Gl(n):Cn(1),d=n.clientWidth*f.x,m=n.clientHeight*f.y,g=s*f.x,p=r*f.y;return{width:d,height:m,x:g,y:p}}function Nm(n,l,o){let r;if(l==="viewport")r=P5(n,o);else if(l==="document")r=Q5(Mn(n));else if(hn(l))r=$5(l,o);else{const s=Lm(n);r={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return No(r)}function Dm(n,l){const o=ba(n);return o===l||!hn(o)||Vl(o)?!1:mn(o).position==="fixed"||Dm(o,l)}function I5(n,l){const o=l.get(n);if(o)return o;let r=Ji(n,[],!1).filter(m=>hn(m)&&kl(m)!=="body"),s=null;const f=mn(n).position==="fixed";let d=f?ba(n):n;for(;hn(d)&&!Vl(d);){const m=mn(d),g=mc(d);!g&&m.position==="fixed"&&(s=null),(f?!g&&!s:!g&&m.position==="static"&&!!s&&J5.has(s.position)||Pi(d)&&!g&&Dm(n,d))?r=r.filter(y=>y!==d):s=m,d=ba(d)}return l.set(n,r),r}function W5(n){let{element:l,boundary:o,rootBoundary:r,strategy:s}=n;const d=[...o==="clippingAncestors"?jo(l)?[]:I5(l,this._c):[].concat(o),r],m=d[0],g=d.reduce((p,y)=>{const _=Nm(l,y,s);return p.top=Tt(_.top,p.top),p.right=ya(_.right,p.right),p.bottom=ya(_.bottom,p.bottom),p.left=Tt(_.left,p.left),p},Nm(l,m,s));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function e_(n){const{width:l,height:o}=Mm(n);return{width:l,height:o}}function t_(n,l,o){const r=Ln(l),s=Mn(l),f=o==="fixed",d=tl(n,!0,f,l);let m={scrollLeft:0,scrollTop:0};const g=Cn(0);function p(){g.x=Uo(s)}if(r||!r&&!f)if((kl(l)!=="body"||Pi(s))&&(m=zo(l)),r){const O=tl(l,!0,f,l);g.x=O.x+l.clientLeft,g.y=O.y+l.clientTop}else s&&p();f&&!r&&s&&p();const y=s&&!r&&!f?Tm(s,m):Cn(0),_=d.left+m.scrollLeft-g.x-y.x,S=d.top+m.scrollTop-g.y-y.y;return{x:_,y:S,width:d.width,height:d.height}}function yc(n){return mn(n).position==="static"}function jm(n,l){if(!Ln(n)||mn(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return Mn(n)===o&&(o=o.ownerDocument.body),o}function zm(n,l){const o=Rt(n);if(jo(n))return o;if(!Ln(n)){let s=ba(n);for(;s&&!Vl(s);){if(hn(s)&&!yc(s))return s;s=ba(s)}return o}let r=jm(n,l);for(;r&&B5(r)&&yc(r);)r=jm(r,l);return r&&Vl(r)&&yc(r)&&!mc(r)?o:r||Z5(n)||o}const n_=async function(n){const l=this.getOffsetParent||zm,o=this.getDimensions,r=await o(n.floating);return{reference:t_(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function a_(n){return mn(n).direction==="rtl"}const l_={convertOffsetParentRelativeRectToViewportRelativeRect:K5,getDocumentElement:Mn,getClippingRect:W5,getOffsetParent:zm,getElementRects:n_,getClientRects:F5,getDimensions:e_,getScale:Gl,isElement:hn,isRTL:a_};function Um(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function i_(n,l){let o=null,r;const s=Mn(n);function f(){var m;clearTimeout(r),(m=o)==null||m.disconnect(),o=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),f();const p=n.getBoundingClientRect(),{left:y,top:_,width:S,height:O}=p;if(m||l(),!S||!O)return;const L=To(_),w=To(s.clientWidth-(y+S)),T=To(s.clientHeight-(_+O)),B=To(y),V={rootMargin:-L+"px "+-w+"px "+-T+"px "+-B+"px",threshold:Tt(0,ya(1,g))||1};let Z=!0;function P(W){const Y=W[0].intersectionRatio;if(Y!==g){if(!Z)return d();Y?d(!1,Y):r=setTimeout(()=>{d(!1,1e-7)},1e3)}Y===1&&!Um(p,n.getBoundingClientRect())&&d(),Z=!1}try{o=new IntersectionObserver(P,{...V,root:s.ownerDocument})}catch{o=new IntersectionObserver(P,V)}o.observe(n)}return d(!0),f}function r_(n,l,o,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=r,p=gc(n),y=s||f?[...p?Ji(p):[],...Ji(l)]:[];y.forEach(B=>{s&&B.addEventListener("scroll",o,{passive:!0}),f&&B.addEventListener("resize",o)});const _=p&&m?i_(p,o):null;let S=-1,O=null;d&&(O=new ResizeObserver(B=>{let[K]=B;K&&K.target===p&&O&&(O.unobserve(l),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var V;(V=O)==null||V.observe(l)})),o()}),p&&!g&&O.observe(p),O.observe(l));let L,w=g?tl(n):null;g&&T();function T(){const B=tl(n);w&&!Um(w,B)&&o(),w=B,L=requestAnimationFrame(T)}return o(),()=>{var B;y.forEach(K=>{s&&K.removeEventListener("scroll",o),f&&K.removeEventListener("resize",o)}),_?.(),(B=O)==null||B.disconnect(),O=null,g&&cancelAnimationFrame(L)}}const o_=R5,u_=N5,s_=M5,c_=j5,f_=L5,Bm=O5,d_=D5,h_=(n,l,o)=>{const r=new Map,s={platform:l_,...o},f={...s.platform,_c:r};return C5(n,l,{...s,platform:f})};var m_=typeof document<"u",v_=function(){},Bo=m_?v.useLayoutEffect:v_;function Ho(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let o,r,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==l.length)return!1;for(r=o;r--!==0;)if(!Ho(n[r],l[r]))return!1;return!0}if(s=Object.keys(n),o=s.length,o!==Object.keys(l).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(l,s[r]))return!1;for(r=o;r--!==0;){const f=s[r];if(!(f==="_owner"&&n.$$typeof)&&!Ho(n[f],l[f]))return!1}return!0}return n!==n&&l!==l}function Hm(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function km(n,l){const o=Hm(n);return Math.round(l*o)/o}function bc(n){const l=v.useRef(n);return Bo(()=>{l.current=n}),l}function p_(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:r=[],platform:s,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:g,open:p}=n,[y,_]=v.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[S,O]=v.useState(r);Ho(S,r)||O(r);const[L,w]=v.useState(null),[T,B]=v.useState(null),K=v.useCallback(U=>{U!==W.current&&(W.current=U,w(U))},[]),V=v.useCallback(U=>{U!==Y.current&&(Y.current=U,B(U))},[]),Z=f||L,P=d||T,W=v.useRef(null),Y=v.useRef(null),F=v.useRef(y),se=g!=null,pe=bc(g),xe=bc(s),me=bc(p),Ae=v.useCallback(()=>{if(!W.current||!Y.current)return;const U={placement:l,strategy:o,middleware:S};xe.current&&(U.platform=xe.current),h_(W.current,Y.current,U).then(J=>{const ce={...J,isPositioned:me.current!==!1};ge.current&&!Ho(F.current,ce)&&(F.current=ce,xo.flushSync(()=>{_(ce)}))})},[S,l,o,xe,me]);Bo(()=>{p===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,_(U=>({...U,isPositioned:!1})))},[p]);const ge=v.useRef(!1);Bo(()=>(ge.current=!0,()=>{ge.current=!1}),[]),Bo(()=>{if(Z&&(W.current=Z),P&&(Y.current=P),Z&&P){if(pe.current)return pe.current(Z,P,Ae);Ae()}},[Z,P,Ae,pe,se]);const Se=v.useMemo(()=>({reference:W,floating:Y,setReference:K,setFloating:V}),[K,V]),R=v.useMemo(()=>({reference:Z,floating:P}),[Z,P]),X=v.useMemo(()=>{const U={position:o,left:0,top:0};if(!R.floating)return U;const J=km(R.floating,y.x),ce=km(R.floating,y.y);return m?{...U,transform:"translate("+J+"px, "+ce+"px)",...Hm(R.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:J,top:ce}},[o,m,R.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:Ae,refs:Se,elements:R,floatingStyles:X}),[y,Ae,Se,R,X])}const g_=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:r,padding:s}=typeof n=="function"?n(o):n;return r&&l(r)?r.current!=null?Bm({element:r.current,padding:s}).fn(o):{}:r?Bm({element:r,padding:s}).fn(o):{}}}},y_=(n,l)=>({...o_(n),options:[n,l]}),b_=(n,l)=>({...u_(n),options:[n,l]}),__=(n,l)=>({...d_(n),options:[n,l]}),S_=(n,l)=>({...s_(n),options:[n,l]}),E_=(n,l)=>({...c_(n),options:[n,l]}),w_=(n,l)=>({...f_(n),options:[n,l]}),x_=(n,l)=>({...g_(n),options:[n,l]});var A_="Arrow",Vm=v.forwardRef((n,l)=>{const{children:o,width:r=10,height:s=5,...f}=n;return x.jsx(rt.svg,{...f,ref:l,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vm.displayName=A_;var C_=Vm;function O_(n){const[l,o]=v.useState(void 0);return dn(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const f=s[0];let d,m;if("borderBoxSize"in f){const g=f.borderBoxSize,p=Array.isArray(g)?g[0]:g;d=p.inlineSize,m=p.blockSize}else d=n.offsetWidth,m=n.offsetHeight;o({width:d,height:m})});return r.observe(n,{box:"border-box"}),()=>r.unobserve(n)}else o(void 0)},[n]),l}var _c="Popper",[Gm,Zm]=Bl(_c),[M_,qm]=Gm(_c),Ym=n=>{const{__scopePopper:l,children:o}=n,[r,s]=v.useState(null);return x.jsx(M_,{scope:l,anchor:r,onAnchorChange:s,children:o})};Ym.displayName=_c;var Xm="PopperAnchor",Km=v.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:r,...s}=n,f=qm(Xm,o),d=v.useRef(null),m=gt(l,d),g=v.useRef(null);return v.useEffect(()=>{const p=g.current;g.current=r?.current||d.current,p!==g.current&&f.onAnchorChange(g.current)}),r?null:x.jsx(rt.div,{...s,ref:m})});Km.displayName=Xm;var Sc="PopperContent",[L_,T_]=Gm(Sc),Fm=v.forwardRef((n,l)=>{const{__scopePopper:o,side:r="bottom",sideOffset:s=0,align:f="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:y=0,sticky:_="partial",hideWhenDetached:S=!1,updatePositionStrategy:O="optimized",onPlaced:L,...w}=n,T=qm(Sc,o),[B,K]=v.useState(null),V=gt(l,ee=>K(ee)),[Z,P]=v.useState(null),W=O_(Z),Y=W?.width??0,F=W?.height??0,se=r+(f!=="center"?"-"+f:""),pe=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},xe=Array.isArray(p)?p:[p],me=xe.length>0,Ae={padding:pe,boundary:xe.filter(N_),altBoundary:me},{refs:ge,floatingStyles:Se,placement:R,isPositioned:X,middlewareData:U}=p_({strategy:"fixed",placement:se,whileElementsMounted:(...ee)=>r_(...ee,{animationFrame:O==="always"}),elements:{reference:T.anchor},middleware:[y_({mainAxis:s+F,alignmentAxis:d}),g&&b_({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?__():void 0,...Ae}),g&&S_({...Ae}),E_({...Ae,apply:({elements:ee,rects:Fe,availableWidth:Ue,availableHeight:Jt})=>{const{width:Rn,height:Nn}=Fe.reference,ll=ee.floating.style;ll.setProperty("--radix-popper-available-width",`${Ue}px`),ll.setProperty("--radix-popper-available-height",`${Jt}px`),ll.setProperty("--radix-popper-anchor-width",`${Rn}px`),ll.setProperty("--radix-popper-anchor-height",`${Nn}px`)}}),Z&&x_({element:Z,padding:m}),D_({arrowWidth:Y,arrowHeight:F}),S&&w_({strategy:"referenceHidden",...Ae})]}),[J,ce]=Jm(R),A=An(L);dn(()=>{X&&A?.()},[X,A]);const k=U.arrow?.x,Q=U.arrow?.y,$=U.arrow?.centerOffset!==0,[re,fe]=v.useState();return dn(()=>{B&&fe(window.getComputedStyle(B).zIndex)},[B]),x.jsx("div",{ref:ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:X?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:x.jsx(L_,{scope:o,placedSide:J,onArrowChange:P,arrowX:k,arrowY:Q,shouldHideArrow:$,children:x.jsx(rt.div,{"data-side":J,"data-align":ce,...w,ref:V,style:{...w.style,animation:X?void 0:"none"}})})})});Fm.displayName=Sc;var Qm="PopperArrow",R_={top:"bottom",right:"left",bottom:"top",left:"right"},Pm=v.forwardRef(function(l,o){const{__scopePopper:r,...s}=l,f=T_(Qm,r),d=R_[f.placedSide];return x.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:x.jsx(C_,{...s,ref:o,style:{...s.style,display:"block"}})})});Pm.displayName=Qm;function N_(n){return n!==null}var D_=n=>({name:"transformOrigin",options:n,fn(l){const{placement:o,rects:r,middlewareData:s}=l,d=s.arrow?.centerOffset!==0,m=d?0:n.arrowWidth,g=d?0:n.arrowHeight,[p,y]=Jm(o),_={start:"0%",center:"50%",end:"100%"}[y],S=(s.arrow?.x??0)+m/2,O=(s.arrow?.y??0)+g/2;let L="",w="";return p==="bottom"?(L=d?_:`${S}px`,w=`${-g}px`):p==="top"?(L=d?_:`${S}px`,w=`${r.floating.height+g}px`):p==="right"?(L=`${-g}px`,w=d?_:`${O}px`):p==="left"&&(L=`${r.floating.width+g}px`,w=d?_:`${O}px`),{data:{x:L,y:w}}}});function Jm(n){const[l,o="center"]=n.split("-");return[l,o]}var j_=Ym,z_=Km,U_=Fm,B_=Pm,H_="Portal",$m=v.forwardRef((n,l)=>{const{container:o,...r}=n,[s,f]=v.useState(!1);dn(()=>f(!0),[]);const d=o||s&&globalThis?.document?.body;return d?x3.createPortal(x.jsx(rt.div,{...r,ref:l}),d):null});$m.displayName=H_;function k_(n,l){return v.useReducer((o,r)=>l[o][r]??o,n)}var $i=n=>{const{present:l,children:o}=n,r=V_(l),s=typeof o=="function"?o({present:r.isPresent}):v.Children.only(o),f=gt(r.ref,G_(s));return typeof o=="function"||r.isPresent?v.cloneElement(s,{ref:f}):null};$i.displayName="Presence";function V_(n){const[l,o]=v.useState(),r=v.useRef(null),s=v.useRef(n),f=v.useRef("none"),d=n?"mounted":"unmounted",[m,g]=k_(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=ko(r.current);f.current=m==="mounted"?p:"none"},[m]),dn(()=>{const p=r.current,y=s.current;if(y!==n){const S=f.current,O=ko(p);n?g("MOUNT"):O==="none"||p?.display==="none"?g("UNMOUNT"):g(y&&S!==O?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,g]),dn(()=>{if(l){let p;const y=l.ownerDocument.defaultView??window,_=O=>{const w=ko(r.current).includes(CSS.escape(O.animationName));if(O.target===l&&w&&(g("ANIMATION_END"),!s.current)){const T=l.style.animationFillMode;l.style.animationFillMode="forwards",p=y.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=T)})}},S=O=>{O.target===l&&(f.current=ko(r.current))};return l.addEventListener("animationstart",S),l.addEventListener("animationcancel",_),l.addEventListener("animationend",_),()=>{y.clearTimeout(p),l.removeEventListener("animationstart",S),l.removeEventListener("animationcancel",_),l.removeEventListener("animationend",_)}}else g("ANIMATION_END")},[l,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(p=>{r.current=p?getComputedStyle(p):null,o(p)},[])}}function ko(n){return n?.animationName||"none"}function G_(n){let l=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Ec="rovingFocusGroup.onEntryFocus",Z_={bubbles:!1,cancelable:!0},Ii="RovingFocusGroup",[wc,Im,q_]=lm(Ii),[Y_,Wm]=Bl(Ii,[q_]),[X_,K_]=Y_(Ii),ev=v.forwardRef((n,l)=>x.jsx(wc.Provider,{scope:n.__scopeRovingFocusGroup,children:x.jsx(wc.Slot,{scope:n.__scopeRovingFocusGroup,children:x.jsx(F_,{...n,ref:l})})}));ev.displayName=Ii;var F_=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,orientation:r,loop:s=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:g,onEntryFocus:p,preventScrollOnEntryFocus:y=!1,..._}=n,S=v.useRef(null),O=gt(l,S),L=im(f),[w,T]=nm({prop:d,defaultProp:m??null,onChange:g,caller:Ii}),[B,K]=v.useState(!1),V=An(p),Z=Im(o),P=v.useRef(!1),[W,Y]=v.useState(0);return v.useEffect(()=>{const F=S.current;if(F)return F.addEventListener(Ec,V),()=>F.removeEventListener(Ec,V)},[V]),x.jsx(X_,{scope:o,orientation:r,dir:L,loop:s,currentTabStopId:w,onItemFocus:v.useCallback(F=>T(F),[T]),onItemShiftTab:v.useCallback(()=>K(!0),[]),onFocusableItemAdd:v.useCallback(()=>Y(F=>F+1),[]),onFocusableItemRemove:v.useCallback(()=>Y(F=>F-1),[]),children:x.jsx(rt.div,{tabIndex:B||W===0?-1:0,"data-orientation":r,..._,ref:O,style:{outline:"none",...n.style},onMouseDown:Oe(n.onMouseDown,()=>{P.current=!0}),onFocus:Oe(n.onFocus,F=>{const se=!P.current;if(F.target===F.currentTarget&&se&&!B){const pe=new CustomEvent(Ec,Z_);if(F.currentTarget.dispatchEvent(pe),!pe.defaultPrevented){const xe=Z().filter(R=>R.focusable),me=xe.find(R=>R.active),Ae=xe.find(R=>R.id===w),Se=[me,Ae,...xe].filter(Boolean).map(R=>R.ref.current);av(Se,y)}}P.current=!1}),onBlur:Oe(n.onBlur,()=>K(!1))})})}),tv="RovingFocusGroupItem",nv=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:r=!0,active:s=!1,tabStopId:f,children:d,...m}=n,g=uc(),p=f||g,y=K_(tv,o),_=y.currentTabStopId===p,S=Im(o),{onFocusableItemAdd:O,onFocusableItemRemove:L,currentTabStopId:w}=y;return v.useEffect(()=>{if(r)return O(),()=>L()},[r,O,L]),x.jsx(wc.ItemSlot,{scope:o,id:p,focusable:r,active:s,children:x.jsx(rt.span,{tabIndex:_?0:-1,"data-orientation":y.orientation,...m,ref:l,onMouseDown:Oe(n.onMouseDown,T=>{r?y.onItemFocus(p):T.preventDefault()}),onFocus:Oe(n.onFocus,()=>y.onItemFocus(p)),onKeyDown:Oe(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){y.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const B=J_(T,y.orientation,y.dir);if(B!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let V=S().filter(Z=>Z.focusable).map(Z=>Z.ref.current);if(B==="last")V.reverse();else if(B==="prev"||B==="next"){B==="prev"&&V.reverse();const Z=V.indexOf(T.currentTarget);V=y.loop?$_(V,Z+1):V.slice(Z+1)}setTimeout(()=>av(V))}}),children:typeof d=="function"?d({isCurrentTabStop:_,hasTabStop:w!=null}):d})})});nv.displayName=tv;var Q_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P_(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function J_(n,l,o){const r=P_(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Q_[r]}function av(n,l=!1){const o=document.activeElement;for(const r of n)if(r===o||(r.focus({preventScroll:l}),document.activeElement!==o))return}function $_(n,l){return n.map((o,r)=>n[(l+r)%n.length])}var I_=ev,W_=nv,e4=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Zl=new WeakMap,Vo=new WeakMap,Go={},xc=0,lv=function(n){return n&&(n.host||lv(n.parentNode))},t4=function(n,l){return l.map(function(o){if(n.contains(o))return o;var r=lv(o);return r&&n.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},n4=function(n,l,o,r){var s=t4(l,Array.isArray(n)?n:[n]);Go[o]||(Go[o]=new WeakMap);var f=Go[o],d=[],m=new Set,g=new Set(s),p=function(_){!_||m.has(_)||(m.add(_),p(_.parentNode))};s.forEach(p);var y=function(_){!_||g.has(_)||Array.prototype.forEach.call(_.children,function(S){if(m.has(S))y(S);else try{var O=S.getAttribute(r),L=O!==null&&O!=="false",w=(Zl.get(S)||0)+1,T=(f.get(S)||0)+1;Zl.set(S,w),f.set(S,T),d.push(S),w===1&&L&&Vo.set(S,!0),T===1&&S.setAttribute(o,"true"),L||S.setAttribute(r,"true")}catch(B){console.error("aria-hidden: cannot operate on ",S,B)}})};return y(l),m.clear(),xc++,function(){d.forEach(function(_){var S=Zl.get(_)-1,O=f.get(_)-1;Zl.set(_,S),f.set(_,O),S||(Vo.has(_)||_.removeAttribute(r),Vo.delete(_)),O||_.removeAttribute(o)}),xc--,xc||(Zl=new WeakMap,Zl=new WeakMap,Vo=new WeakMap,Go={})}},a4=function(n,l,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(n)?n:[n]),s=e4(n);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),n4(r,s,o,"aria-hidden")):function(){return null}},Tn=function(){return Tn=Object.assign||function(l){for(var o,r=1,s=arguments.length;r"u")return _4;var l=S4(n),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,r-o+l[2]-l[0])}},w4=sv(),ql="data-scroll-locked",x4=function(n,l,o,r){var s=n.left,f=n.top,d=n.right,m=n.gap;return o===void 0&&(o="margin"),` + */var A1;function N3(){if(A1)return Xs;A1=1;var n=$r();function l(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var o=typeof Object.is=="function"?Object.is:l,r=n.useState,s=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function m(_,S){var O=S(),L=r({inst:{value:O,getSnapshot:S}}),w=L[0].inst,T=L[1];return f(function(){w.value=O,w.getSnapshot=S,g(w)&&T({inst:w})},[_,O,S]),s(function(){return g(w)&&T({inst:w}),_(function(){g(w)&&T({inst:w})})},[_]),d(O),O}function g(_){var S=_.getSnapshot;_=_.value;try{var O=S();return!o(_,O)}catch{return!0}}function p(_,S){return S()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return Xs.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Xs}var C1;function D3(){return C1||(C1=1,Ys.exports=N3()),Ys.exports}var O1=D3();function M1(n){n.reaction=new En("observer".concat(n.name),function(){var l;n.stateVersion=Symbol(),(l=n.onStoreChange)===null||l===void 0||l.call(n)})}function j3(n,l){l===void 0&&(l="observed");var o=yn.useRef(null);if(!o.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:l,subscribe:function(m){return qs.unregister(r),r.onStoreChange=m,r.reaction||(M1(r),r.stateVersion=Symbol()),function(){var g;r.onStoreChange=null,(g=r.reaction)===null||g===void 0||g.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};o.current=r}var s=o.current;s.reaction||(M1(s),qs.register(o,s,s)),yn.useDebugValue(s.reaction,O3),O1.useSyncExternalStore(s.subscribe,s.getSnapshot,s.getSnapshot);var f,d;if(s.reaction.track(function(){try{f=n()}catch(m){d=m}}),d)throw d;return f}var Ks,Fs,L1=typeof Symbol=="function"&&Symbol.for,z3=(Fs=(Ks=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Ks===void 0?void 0:Ks.configurable)!==null&&Fs!==void 0?Fs:!1,T1=L1?Symbol.for("react.forward_ref"):typeof v.forwardRef=="function"&&v.forwardRef(function(n){return null}).$$typeof,R1=L1?Symbol.for("react.memo"):typeof v.memo=="function"&&v.memo(function(n){return null}).$$typeof;function Qs(n,l){var o;if(R1&&n.$$typeof===R1)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(o=l?.forwardRef)!==null&&o!==void 0?o:!1,s=n,f=n.displayName||n.name;if(T1&&n.$$typeof===T1&&(r=!0,s=n.render,typeof s!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var d=function(m,g){return j3(function(){return s(m,g)},f)};return d.displayName=n.displayName,z3&&Object.defineProperty(d,"name",{value:n.name,writable:!0,configurable:!0}),n.contextTypes&&(d.contextTypes=n.contextTypes),r&&(d=v.forwardRef(d)),d=v.memo(d),B3(n,d),d}var U3={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function B3(n,l){Object.keys(n).forEach(function(o){U3[o]||Object.defineProperty(l,o,Object.getOwnPropertyDescriptor(n,o))})}var Ps;C3(xo.unstable_batchedUpdates),Ps=qs.finalizeAllImmediately;function N1(n){var l,o,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(l=0;l{const l=V3(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:d=>{const m=d.split(Js);return m[0]===""&&m.length!==1&&m.shift(),j1(m,l)||k3(d)},getConflictingClassGroupIds:(d,m)=>{const g=o[d]||[];return m&&r[d]?[...g,...r[d]]:g}}},j1=(n,l)=>{if(n.length===0)return l.classGroupId;const o=n[0],r=l.nextPart.get(o),s=r?j1(n.slice(1),r):void 0;if(s)return s;if(l.validators.length===0)return;const f=n.join(Js);return l.validators.find(({validator:d})=>d(f))?.classGroupId},z1=/^\[(.+)\]$/,k3=n=>{if(z1.test(n)){const l=z1.exec(n)[1],o=l?.substring(0,l.indexOf(":"));if(o)return"arbitrary.."+o}},V3=n=>{const{theme:l,classGroups:o}=n,r={nextPart:new Map,validators:[]};for(const s in o)$s(o[s],r,s,l);return r},$s=(n,l,o,r)=>{n.forEach(s=>{if(typeof s=="string"){const f=s===""?l:U1(l,s);f.classGroupId=o;return}if(typeof s=="function"){if(G3(s)){$s(s(r),l,o,r);return}l.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([f,d])=>{$s(d,U1(l,f),o,r)})})},U1=(n,l)=>{let o=n;return l.split(Js).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},G3=n=>n.isThemeGetter,Z3=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,o=new Map,r=new Map;const s=(f,d)=>{o.set(f,d),l++,l>n&&(l=0,r=o,o=new Map)};return{get(f){let d=o.get(f);if(d!==void 0)return d;if((d=r.get(f))!==void 0)return s(f,d),d},set(f,d){o.has(f)?o.set(f,d):s(f,d)}}},Is="!",Ws=":",q3=Ws.length,Y3=n=>{const{prefix:l,experimentalParseClassName:o}=n;let r=s=>{const f=[];let d=0,m=0,g=0,p;for(let L=0;Lg?p-g:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:O}};if(l){const s=l+Ws,f=r;r=d=>d.startsWith(s)?f(d.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(o){const s=r;r=f=>o({className:f,parseClassName:s})}return r},X3=n=>n.endsWith(Is)?n.substring(0,n.length-1):n.startsWith(Is)?n.substring(1):n,K3=n=>{const l=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const s=[];let f=[];return r.forEach(d=>{d[0]==="["||l[d]?(s.push(...f.sort(),d),f=[]):f.push(d)}),s.push(...f.sort()),s}},F3=n=>({cache:Z3(n.cacheSize),parseClassName:Y3(n),sortModifiers:K3(n),...H3(n)}),Q3=/\s+/,P3=(n,l)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:f}=l,d=[],m=n.trim().split(Q3);let g="";for(let p=m.length-1;p>=0;p-=1){const y=m[p],{isExternal:_,modifiers:S,hasImportantModifier:O,baseClassName:L,maybePostfixModifierPosition:w}=o(y);if(_){g=y+(g.length>0?" "+g:g);continue}let T=!!w,B=r(T?L.substring(0,w):L);if(!B){if(!T){g=y+(g.length>0?" "+g:g);continue}if(B=r(L),!B){g=y+(g.length>0?" "+g:g);continue}T=!1}const K=f(S).join(":"),V=O?K+Is:K,Z=V+B;if(d.includes(Z))continue;d.push(Z);const P=s(B,T);for(let W=0;W0?" "+g:g)}return g};function J3(){let n=0,l,o,r="";for(;n{if(typeof n=="string")return n;let l,o="";for(let r=0;r_(y),n());return o=F3(p),r=o.cache.get,s=o.cache.set,f=m,m(g)}function m(g){const p=r(g);if(p)return p;const y=P3(g,o);return s(g,y),y}return function(){return f(J3.apply(null,arguments))}}const at=n=>{const l=o=>o[n]||[];return l.isThemeGetter=!0,l},H1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,I3=/^\d+\/\d+$/,W3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,e8=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,t8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,n8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,a8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jl=n=>I3.test(n),ye=n=>!!n&&!Number.isNaN(Number(n)),ma=n=>!!n&&Number.isInteger(Number(n)),ec=n=>n.endsWith("%")&&ye(n.slice(0,-1)),Zn=n=>W3.test(n),l8=()=>!0,i8=n=>e8.test(n)&&!t8.test(n),V1=()=>!1,r8=n=>n8.test(n),o8=n=>a8.test(n),u8=n=>!ne(n)&&!ae(n),s8=n=>zl(n,X1,V1),ne=n=>H1.test(n),el=n=>zl(n,K1,i8),tc=n=>zl(n,m8,ye),G1=n=>zl(n,q1,V1),c8=n=>zl(n,Y1,o8),Ao=n=>zl(n,F1,r8),ae=n=>k1.test(n),Xi=n=>Ul(n,K1),f8=n=>Ul(n,v8),Z1=n=>Ul(n,q1),d8=n=>Ul(n,X1),h8=n=>Ul(n,Y1),Co=n=>Ul(n,F1,!0),zl=(n,l,o)=>{const r=H1.exec(n);return r?r[1]?l(r[1]):o(r[2]):!1},Ul=(n,l,o=!1)=>{const r=k1.exec(n);return r?r[1]?l(r[1]):o:!1},q1=n=>n==="position"||n==="percentage",Y1=n=>n==="image"||n==="url",X1=n=>n==="length"||n==="size"||n==="bg-size",K1=n=>n==="length",m8=n=>n==="number",v8=n=>n==="family-name",F1=n=>n==="shadow",p8=$3(()=>{const n=at("color"),l=at("font"),o=at("text"),r=at("font-weight"),s=at("tracking"),f=at("leading"),d=at("breakpoint"),m=at("container"),g=at("spacing"),p=at("radius"),y=at("shadow"),_=at("inset-shadow"),S=at("text-shadow"),O=at("drop-shadow"),L=at("blur"),w=at("perspective"),T=at("aspect"),B=at("ease"),K=at("animate"),V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...Z(),ae,ne],W=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],F=()=>[ae,ne,g],se=()=>[jl,"full","auto",...F()],pe=()=>[ma,"none","subgrid",ae,ne],xe=()=>["auto",{span:["full",ma,ae,ne]},ma,ae,ne],me=()=>[ma,"auto",ae,ne],Ae=()=>["auto","min","max","fr",ae,ne],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Se=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...F()],X=()=>[jl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],U=()=>[n,ae,ne],J=()=>[...Z(),Z1,G1,{position:[ae,ne]}],ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",d8,s8,{size:[ae,ne]}],k=()=>[ec,Xi,el],Q=()=>["","none","full",p,ae,ne],$=()=>["",ye,Xi,el],re=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[ye,ec,Z1,G1],Fe=()=>["","none",L,ae,ne],Ue=()=>["none",ye,ae,ne],Jt=()=>["none",ye,ae,ne],Rn=()=>[ye,ae,ne],Nn=()=>[jl,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zn],breakpoint:[Zn],color:[l8],container:[Zn],"drop-shadow":[Zn],ease:["in","out","in-out"],font:[u8],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zn],shadow:[Zn],spacing:["px",ye],text:[Zn],"text-shadow":[Zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jl,ne,ae,T]}],container:["container"],columns:[{columns:[ye,ne,ae,m]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:se()}],"inset-x":[{"inset-x":se()}],"inset-y":[{"inset-y":se()}],start:[{start:se()}],end:[{end:se()}],top:[{top:se()}],right:[{right:se()}],bottom:[{bottom:se()}],left:[{left:se()}],visibility:["visible","invisible","collapse"],z:[{z:[ma,"auto",ae,ne]}],basis:[{basis:[jl,"full","auto",m,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ye,jl,"auto","initial","none",ne]}],grow:[{grow:["",ye,ae,ne]}],shrink:[{shrink:["",ye,ae,ne]}],order:[{order:[ma,"first","last","none",ae,ne]}],"grid-cols":[{"grid-cols":pe()}],"col-start-end":[{col:xe()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":pe()}],"row-start-end":[{row:xe()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ae()}],"auto-rows":[{"auto-rows":Ae()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...Se(),"normal"]}],"justify-self":[{"justify-self":["auto",...Se()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...Se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...Se(),"baseline"]}],"place-self":[{"place-self":["auto",...Se()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[m,"screen",...X()]}],"min-w":[{"min-w":[m,"screen","none",...X()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",o,Xi,el]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ae,tc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ec,ne]}],"font-family":[{font:[f8,ne,l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ae,ne]}],"line-clamp":[{"line-clamp":[ye,"none",ae,tc]}],leading:[{leading:[f,...F()]}],"list-image":[{"list-image":["none",ae,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[ye,"from-font","auto",ae,el]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[ye,"auto",ae,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ma,ae,ne],radial:["",ae,ne],conic:[ma,ae,ne]},h8,c8]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ye,ae,ne]}],"outline-w":[{outline:["",ye,Xi,el]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",y,Co,Ao]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",_,Co,Ao]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[ye,el]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",S,Co,Ao]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[ye,ae,ne]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ye]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[ae,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Z()}],"mask-image-conic-pos":[{"mask-conic":[ye]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,ne]}],filter:[{filter:["","none",ae,ne]}],blur:[{blur:Fe()}],brightness:[{brightness:[ye,ae,ne]}],contrast:[{contrast:[ye,ae,ne]}],"drop-shadow":[{"drop-shadow":["","none",O,Co,Ao]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",ye,ae,ne]}],"hue-rotate":[{"hue-rotate":[ye,ae,ne]}],invert:[{invert:["",ye,ae,ne]}],saturate:[{saturate:[ye,ae,ne]}],sepia:[{sepia:["",ye,ae,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,ne]}],"backdrop-blur":[{"backdrop-blur":Fe()}],"backdrop-brightness":[{"backdrop-brightness":[ye,ae,ne]}],"backdrop-contrast":[{"backdrop-contrast":[ye,ae,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ye,ae,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ye,ae,ne]}],"backdrop-invert":[{"backdrop-invert":["",ye,ae,ne]}],"backdrop-opacity":[{"backdrop-opacity":[ye,ae,ne]}],"backdrop-saturate":[{"backdrop-saturate":[ye,ae,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",ye,ae,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ye,"initial",ae,ne]}],ease:[{ease:["linear","initial",B,ae,ne]}],delay:[{delay:[ye,ae,ne]}],animate:[{animate:["none",K,ae,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ae,ne]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Ue()}],"rotate-x":[{"rotate-x":Ue()}],"rotate-y":[{"rotate-y":Ue()}],"rotate-z":[{"rotate-z":Ue()}],scale:[{scale:Jt()}],"scale-x":[{"scale-x":Jt()}],"scale-y":[{"scale-y":Jt()}],"scale-z":[{"scale-z":Jt()}],"scale-3d":["scale-3d"],skew:[{skew:Rn()}],"skew-x":[{"skew-x":Rn()}],"skew-y":[{"skew-y":Rn()}],transform:[{transform:[ae,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Nn()}],"translate-x":[{"translate-x":Nn()}],"translate-y":[{"translate-y":Nn()}],"translate-z":[{"translate-z":Nn()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae,ne]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[ye,Xi,el,tc]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ke(...n){return p8(D1(n))}function Q1(n){const l=n.trim().split(" ");if(l.length===0)return"";if(l.length===1)return l[0].charAt(0).toUpperCase();const o=l[0].charAt(0).toUpperCase(),r=l[l.length-1].charAt(0).toUpperCase();return o+r}var Oo={exports:{}},g8=Oo.exports,P1;function y8(){return P1||(P1=1,(function(n,l){(function(o,r){r()})(g8,function(){function o(p,y){return typeof y>"u"?y={autoBom:!1}:typeof y!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),y={autoBom:!y}),y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(p.type)?new Blob(["\uFEFF",p],{type:p.type}):p}function r(p,y,_){var S=new XMLHttpRequest;S.open("GET",p),S.responseType="blob",S.onload=function(){g(S.response,y,_)},S.onerror=function(){console.error("could not download file")},S.send()}function s(p){var y=new XMLHttpRequest;y.open("HEAD",p,!1);try{y.send()}catch{}return 200<=y.status&&299>=y.status}function f(p){try{p.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),p.dispatchEvent(y)}}var d=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof globalThis=="object"&&globalThis.global===globalThis?globalThis:void 0,m=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=d.saveAs||(typeof window!="object"||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!m?function(p,y,_){var S=d.URL||d.webkitURL,O=document.createElement("a");y=y||p.name||"download",O.download=y,O.rel="noopener",typeof p=="string"?(O.href=p,O.origin===location.origin?f(O):s(O.href)?r(p,y,_):f(O,O.target="_blank")):(O.href=S.createObjectURL(p),setTimeout(function(){S.revokeObjectURL(O.href)},4e4),setTimeout(function(){f(O)},0))}:"msSaveOrOpenBlob"in navigator?function(p,y,_){if(y=y||p.name||"download",typeof p!="string")navigator.msSaveOrOpenBlob(o(p,_),y);else if(s(p))r(p,y,_);else{var S=document.createElement("a");S.href=p,S.target="_blank",setTimeout(function(){f(S)})}}:function(p,y,_,S){if(S=S||open("","_blank"),S&&(S.document.title=S.document.body.innerText="downloading..."),typeof p=="string")return r(p,y,_);var O=p.type==="application/octet-stream",L=/constructor/i.test(d.HTMLElement)||d.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||O&&L||m)&&typeof FileReader<"u"){var T=new FileReader;T.onloadend=function(){var V=T.result;V=w?V:V.replace(/^data:[^;]*;/,"data:attachment/file;"),S?S.location.href=V:location=V,S=null},T.readAsDataURL(p)}else{var B=d.URL||d.webkitURL,K=B.createObjectURL(p);S?S.location=K:location.href=K,S=null,setTimeout(function(){B.revokeObjectURL(K)},4e4)}});d.saveAs=g.saveAs=g,n.exports=g})})(Oo)),Oo.exports}var J1=y8();const $1={apiBaseUrl:"https://tus.auth0.com/docs/v2",dashboardBaseUrl:"https://manage.tus.auth0.com",heapAnalytics:{enabled:!0,appId:"2269341915"},sentry:{enabled:!0,dsn:"https://8eae506d264532942aace9ecc223a526@o27592.ingest.us.sentry.io/4510008367972352",release:"docs-v2-tus",environment:"tus",loaderScript:"https://js.sentry-cdn.com/8eae506d264532942aace9ecc223a526.min.js"},oneTrust:{enabled:!0,domainId:"96e22fd8-d619-4cdd-a3c6-d51529d21faf-test"},adobeTagManager:{enabled:!0,loaderScript:"https://assets.adobedtm.com/6bb3f7663515/7006851c9849/launch-b7216a0e70ca-development.min.js"}},b8={prod:{apiBaseUrl:"https://auth0.com/docs/v2",dashboardBaseUrl:"https://manage.auth0.com",heapAnalytics:{enabled:!0,appId:"1279799279"},sentry:{enabled:!0,dsn:"https://d433d747a8af0820757f35be62ee08be@o27592.ingest.us.sentry.io/4509985515241472",release:"docs-v2",environment:"prod",loaderScript:"https://js.sentry-cdn.com/d433d747a8af0820757f35be62ee08be.min.js"},oneTrust:{enabled:!0,domainId:"96e22fd8-d619-4cdd-a3c6-d51529d21faf"},adobeTagManager:{enabled:!0,loaderScript:"https://assets.adobedtm.com/6bb3f7663515/7006851c9849/launch-af624fe9e34f.min.js"}},staging:{apiBaseUrl:"https://sus.auth0.com/docs/v2",dashboardBaseUrl:"https://manage.sus.auth0.com",heapAnalytics:{enabled:!0,appId:"2269341915"},sentry:{enabled:!0,dsn:"https://0fe11b3e3241a0986fc2755ca26fbe79@o27592.ingest.us.sentry.io/4510008371970048",release:"docs-v2-sus",environment:"sus",loaderScript:"https://js.sentry-cdn.com/0fe11b3e3241a0986fc2755ca26fbe79.min.js"},oneTrust:{enabled:!0,domainId:"96e22fd8-d619-4cdd-a3c6-d51529d21faf"},adobeTagManager:{enabled:!0,loaderScript:"https://assets.adobedtm.com/6bb3f7663515/7006851c9849/launch-e2cf6c285fa0-staging.min.js"}},dev:$1,local:{...$1,apiBaseUrl:"http://localhost:7200/docs/v2",dashboardBaseUrl:"https://manage.local.dev.auth0.com"}},_8={"auth0.com":"prod","auth0.mintlify.site":"prod","sus.auth0.com":"staging","docs-staging.mintlify.site":"staging","tus.auth0.com":"dev","docs-dev.mintlify.site":"dev",localhost:"local","127.0.0.1":"local","manage.local.dev.auth0.com":"local"},Le=(()=>{const n=window.location.hostname,l=_8[n]||"prod";return b8[l]})();async function va(n,l={}){const o=await fetch(n,{credentials:"include",headers:{"Content-Type":"application/json"},...l});if(!o.ok){const r=new Error(o.statusText);throw r.response=o,r}return await o.json()}function nc(n){const l=new URLSearchParams;n&&l.append("returnTo",n);const o=`${Le.apiBaseUrl}/auth/user/login${l.toString()?"?"+l.toString():""}`;window.location.href=o}function I1(n){const l=new URLSearchParams;n&&l.append("returnTo",n);const o=`${Le.apiBaseUrl}/auth/user/logout${l.toString()?"?"+l.toString():""}`;window.location.href=o}async function S8(){return va(`${Le.apiBaseUrl}/tenants`)}async function E8(n=0,l=100){const o=new URLSearchParams;return o.append("page",n.toString()),o.append("per_page",l.toString()),va(`${Le.apiBaseUrl}/clients?${o.toString()}`)}async function w8(n){return va(`${Le.apiBaseUrl}/clients`,{method:"POST",body:JSON.stringify(n)})}async function x8(n=0,l=100){const o=new URLSearchParams;return o.append("page",n.toString()),o.append("per_page",l.toString()),va(`${Le.apiBaseUrl}/resource-servers?${o.toString()}`)}async function A8(){const{profile:n,...l}=await va(`${Le.apiBaseUrl}/users/current`);return n?.sub?{...l,profile:{sub:n.sub,name:n.name,email:n.email,picture:n.picture}}:{...l,profile:null}}async function C8(n){return va(`${Le.apiBaseUrl}/users/session`,{method:"PATCH",body:JSON.stringify(n)})}async function ac(n){return va(`${Le.apiBaseUrl}/feedback`,{method:"POST",body:JSON.stringify(n)})}async function O8(n,l){const o=new URLSearchParams;o.append("repo",n.repo),o.append("branch",n.branch),n.path&&o.append("path",n.path),n.client_id&&o.append("client_id",n.client_id),n.tenant&&o.append("tenant",n.tenant),n.domain&&o.append("domain",n.domain),n.callback_url&&o.append("callback_url",n.callback_url),n.api_id&&o.append("api_id",n.api_id);const r=await fetch(`${Le.apiBaseUrl}/samples?${o.toString()}`,{headers:{Accept:"application/*"},credentials:"include"});if(!r.ok)throw new Error(`Failed to download sample: ${r.statusText}`);const s=await r.blob(),f=`${n.repo.split("/").pop()}-${n.branch}.zip`;J1.saveAs(s,l||f)}async function M8(n,l){const o=await fetch(`${Le.apiBaseUrl}/samples`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/*"},body:JSON.stringify(n),credentials:"include"});if(!o.ok)throw new Error(`Failed to download sample: ${o.statusText}`);const r=await o.blob(),s=`${n.repo.split("/").pop()}-${n.branch}.zip`;J1.saveAs(r,l||s)}const L8={"example-feature":!0,"beta-feature":!1,"new-ui":!0};async function T8(){try{return(await va(`${Le.apiBaseUrl}/feature-flags`)).flags}catch(n){return Le.apiBaseUrl.includes("localhost")||Le.apiBaseUrl.includes("local")?(console.warn("Feature flags endpoint not available, using mock data"),L8):(console.error("Failed to fetch feature flags:",n),{})}}class R8{rootStore;isAuthenticated=!1;selectedTenantName=null;domain=null;#e=null;get selectedTenant(){return this.selectedTenantName?this.rootStore.tenantStore.tenants.find(o=>o.name===this.selectedTenantName)??null:null}get user(){return this.#e?{...this.#e,profileUrl:this.selectedTenant?`${Le.dashboardBaseUrl}/dashboard/${this.selectedTenant.locality}/${this.selectedTenant.name}/profile/general`:"#"}:null}constructor(l){Dl(this,{init:Ge,reset:Ge,setSelectedTenant:Ge,updateSessionData:Ge}),this.rootStore=l}async init(){try{const l=await A8();if(this.isAuthenticated=l.is_authenticated,!l.is_authenticated||!l.profile){this.reset();return}this.domain=l.account.domain,this.selectedTenantName=l.account.tenant,this.#e={id:l.profile.sub??"",email:l.profile.email??"guest@example.com",name:l.profile.name??"Guest",profilePicture:l.profile.picture??"",profileUrl:this.selectedTenant?`${Le.dashboardBaseUrl}/dashboard/${this.selectedTenant.locality}/${this.selectedTenant.name}/profile/general`:"#"},l.account?.client_id&&this.rootStore.clientStore.setSelectedClient(l.account.client_id),l.api_id&&this.rootStore.resourceServerStore.setSelectedApi(l.api_id)}catch(l){console.error("Failed to initialize SessionStore:",l),this.reset()}}reset(){this.isAuthenticated=!1,this.#e=null,this.selectedTenantName=null}setSelectedTenant(l){this.selectedTenantName=l}async updateSessionData(l){try{await C8(l),l.selected_client_id!==void 0&&this.rootStore.clientStore.setSelectedClient(l.selected_client_id),l.selected_api_id!==void 0&&this.rootStore.resourceServerStore.setSelectedApi(l.selected_api_id)}catch(o){throw console.error("Failed to update session data:",o),o}}async login(l){nc(l??window.location.href)}async logout(l){I1(l??window.location.href)}}function N8(n){return{us:"us",sus:"us",tus:"us",local:"us",eu:"eu",teu:"eu",au:"australia",jp:"japan",uk:"uk",ca:"canada"}[n]||"globe"}function D8(n){return{name:n.name,flag:N8(n.locality.id),locality:n.locality.id,loginUrl:n.login_url}}class j8{rootStore;tenants=[];constructor(l){Dl(this,{init:Ge,reset:Ge}),this.rootStore=l}async init(){try{const l=await S8();this.tenants=l.map(o=>D8(o))}catch(l){console.error("Failed to initialize TenantStore:",l),this.reset()}}reset(){this.tenants=[]}}class z8{rootStore;clients=[];selectedClientId=null;selectedClientSecret=void 0;constructor(l){Dl(this,{init:Ge,reset:Ge,setSelectedClient:Ge,createClient:Ge}),this.rootStore=l}async init(){try{this.clients=await E8()}catch(l){console.error("Failed to initialize ClientStore:",l),this.reset()}}async createClient(l){try{const o=await w8(l);return this.clients.push(o),this.setSelectedClient(o.client_id),this.setSelectedClientSecret(o.client_secret),o}catch(o){throw console.error("Failed to create client:",o),o}}reset(){this.clients=[],this.selectedClientId=null,this.selectedClientSecret=void 0}setSelectedClient(l){this.selectedClientId=l;const{variableStore:o}=this.rootStore;l?o.setValue("{yourClientId}",l):o.resetKey("{yourClientId}")}setSelectedClientSecret(l){this.selectedClientSecret=l;const{variableStore:o}=this.rootStore;l?o.setValue("{yourClientSecret}",l):o.resetKey("{yourClientSecret}")}get selectedClient(){return this.clients.find(l=>l.client_id===this.selectedClientId)||null}}class U8{rootStore;resourceServers=[];selectedApiId=null;constructor(l){Dl(this,{init:Ge,reset:Ge,setSelectedApi:Ge}),this.rootStore=l}async init(){try{this.resourceServers=await x8()}catch(l){console.error("Failed to initialize ResourceServerStore:",l),this.reset()}}reset(){this.resourceServers=[],this.selectedApiId=null}setSelectedApi(l){this.selectedApiId=l}get selectedApi(){return this.resourceServers.find(l=>l.id===this.selectedApiId)||null}}const W1=["{yourAppName}","{userName}","{yourTenant}","{yourDomain}","{yourClientId}","{yourClientSecret}","{https://yourApp/callback}","{yourApiIdentifier}","{yourConnectionName}"];class B8{rootStore;values=it.map(W1.map(l=>[l,l]));#e=[];constructor(l){r1(this,{init:Ge,setValue:Ge,reset:Ge}),this.rootStore=l}init(){for(const l of this.#e)l();this.#t(),this.#n(),this.#a()}getValue(l){return this.values.has(l)||console.warn(`${l} is not allowed in VariableStore`),this.values.get(l)??l}setValue(l,o){if(!this.values.has(l)){console.warn(`${l} is not allowed in VariableStore`);return}this.values.set(l,o)}resetKey(l){if(!this.values.has(l)){console.warn(`${l} is not allowed in VariableStore`);return}this.values.set(l,l)}reset(){for(const l of W1)this.values.set(l,l)}#t(){const l=fa(()=>{const{user:o,domain:r,selectedTenant:s}=this.rootStore.sessionStore;o?this.setValue("{userName}",o.name):this.resetKey("{userName}"),r?this.setValue("{yourDomain}",r):this.resetKey("{yourDomain}"),s?this.setValue("{yourTenant}",s.name):this.resetKey("{yourTenant}")});this.#e.push(l)}#n(){const l=fa(()=>{const{selectedClient:o}=this.rootStore.clientStore;if(o){this.setValue("{yourAppName}",o.name),this.setValue("{yourClientId}",o.client_id),this.setValue("{yourClientSecret}",o.client_secret??"{yourClientSecret}"),this.setValue("{https://yourApp/callback}",o.callbacks?.[0]??"{https://yourApp/callback}");return}this.resetKey("{yourAppName}"),this.resetKey("{yourClientId}"),this.resetKey("{yourClientSecret}"),this.resetKey("{https://yourApp/callback}")});this.#e.push(l)}#a(){const l=fa(()=>{const{selectedApi:o}=this.rootStore.resourceServerStore;o?this.setValue("{yourApiIdentifier}",o.identifier):this.resetKey("{yourApiIdentifier}")});this.#e.push(l)}}class H8{rootStore;flags={};#e=null;#t=!1;constructor(l){Dl(this,{init:Ge,reset:Ge,fetchFlags:Ge}),this.rootStore=l}async init(){if(!this.#t)try{await this.fetchFlags(),this.startPolling(),this.#t=!0}catch(l){console.error("Failed to initialize FeatureFlagStore:",l)}}startPolling(){this.#e=window.setInterval(()=>{this.fetchFlags().catch(l=>{console.error("Failed to fetch feature flags:",l)})},3e5)}async fetchFlags(){try{const l=await T8();this.flags=l}catch(l){throw console.error("Feature flags API error:",l),l}}isEnabled(l){return this.flags[l]??!1}getFlag(l){return this.flags[l]}getAllFlags(){return{...this.flags}}async refresh(){await this.fetchFlags()}reset(){this.#e!==null&&(clearInterval(this.#e),this.#e=null),this.flags={},this.#t=!1}}class k8{sessionStore;tenantStore;clientStore;resourceServerStore;variableStore;featureFlagStore;config;#e=null;constructor(){Dl(this),this.sessionStore=new R8(this),this.tenantStore=new j8(this),this.clientStore=new z8(this),this.resourceServerStore=new U8(this),this.variableStore=new B8(this),this.featureFlagStore=new H8(this),this.config=Le}async init(){this.#e?.(),await this.featureFlagStore.init(),await this.sessionStore.init(),this.#e=fa(async()=>{if(!this.sessionStore.isAuthenticated){this.tenantStore.reset(),this.clientStore.reset(),this.resourceServerStore.reset(),this.variableStore.reset();return}await this.tenantStore.init(),await Promise.all([this.clientStore.init(),this.resourceServerStore.init()]),this.variableStore.init()})}reset(){this.sessionStore.reset(),this.tenantStore.reset(),this.clientStore.reset(),this.resourceServerStore.reset(),this.variableStore.reset(),this.featureFlagStore.reset()}}const pa=new k8;async function em(){await pa.init(),typeof window<"u"&&(window.rootStore=pa,window.autorun=fa,window.reaction=Ih,window.flags=pa.featureFlagStore.getAllFlags(),fa(()=>{window.flags=pa.featureFlagStore.getAllFlags()}));const n=new CustomEvent("adu:storeReady",{bubbles:!0,cancelable:!1});return window.dispatchEvent(n),pa}function Oe(n,l,{checkForDefaultPrevented:o=!0}={}){return function(s){if(n?.(s),o===!1||!s.defaultPrevented)return l?.(s)}}function tm(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function Mo(...n){return l=>{let o=!1;const r=n.map(s=>{const f=tm(s,l);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let s=0;s{const{scope:S,children:O,...L}=_,w=S?.[n]?.[g]||m,T=v.useMemo(()=>L,Object.values(L));return x.jsx(w.Provider,{value:T,children:O})};p.displayName=f+"Provider";function y(_,S){const O=S?.[n]?.[g]||m,L=v.useContext(O);if(L)return L;if(d!==void 0)return d;throw new Error(`\`${_}\` must be used within \`${f}\``)}return[p,y]}const s=()=>{const f=o.map(d=>v.createContext(d));return function(m){const g=m?.[n]||f;return v.useMemo(()=>({[`__scope${n}`]:{...m,[n]:g}}),[m,g])}};return s.scopeName=n,[r,V8(s,...l)]}function V8(...n){const l=n[0];if(n.length===1)return l;const o=()=>{const r=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(f){const d=r.reduce((m,{useScope:g,scopeName:p})=>{const _=g(f)[`__scope${p}`];return{...m,..._}},{});return v.useMemo(()=>({[`__scope${l.scopeName}`]:d}),[d])}};return o.scopeName=l.scopeName,o}var dn=globalThis?.document?v.useLayoutEffect:()=>{},G8=ch[" useInsertionEffect ".trim().toString()]||dn;function nm({prop:n,defaultProp:l,onChange:o=()=>{},caller:r}){const[s,f,d]=Z8({defaultProp:l,onChange:o}),m=n!==void 0,g=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const _=y.current;_!==m&&console.warn(`${r} is changing from ${_?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=m},[m,r])}const p=v.useCallback(y=>{if(m){const _=q8(y)?y(n):y;_!==n&&d.current?.(_)}else f(y)},[m,n,f,d]);return[g,p]}function Z8({defaultProp:n,onChange:l}){const[o,r]=v.useState(n),s=v.useRef(o),f=v.useRef(l);return G8(()=>{f.current=l},[l]),v.useEffect(()=>{s.current!==o&&(f.current?.(o),s.current=o)},[o,s]),[o,r,f]}function q8(n){return typeof n=="function"}function Ki(n){const l=Y8(n),o=v.forwardRef((r,s)=>{const{children:f,...d}=r,m=v.Children.toArray(f),g=m.find(K8);if(g){const p=g.props.children,y=m.map(_=>_===g?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:_);return x.jsx(l,{...d,ref:s,children:v.isValidElement(p)?v.cloneElement(p,void 0,y):null})}return x.jsx(l,{...d,ref:s,children:f})});return o.displayName=`${n}.Slot`,o}var Fi=Ki("Slot");function Y8(n){const l=v.forwardRef((o,r)=>{const{children:s,...f}=o;if(v.isValidElement(s)){const d=Q8(s),m=F8(f,s.props);return s.type!==v.Fragment&&(m.ref=r?Mo(r,d):d),v.cloneElement(s,m)}return v.Children.count(s)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var X8=Symbol("radix.slottable");function K8(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===X8}function F8(n,l){const o={...l};for(const r in l){const s=n[r],f=l[r];/^on[A-Z]/.test(r)?s&&f?o[r]=(...m)=>{const g=f(...m);return s(...m),g}:s&&(o[r]=s):r==="style"?o[r]={...s,...f}:r==="className"&&(o[r]=[s,f].filter(Boolean).join(" "))}return{...n,...o}}function Q8(n){let l=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var P8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rt=P8.reduce((n,l)=>{const o=Ki(`Primitive.${l}`),r=v.forwardRef((s,f)=>{const{asChild:d,...m}=s,g=d?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(g,{...m,ref:f})});return r.displayName=`Primitive.${l}`,{...n,[l]:r}},{});function am(n,l){n&&xo.flushSync(()=>n.dispatchEvent(l))}function lm(n){const l=n+"CollectionProvider",[o,r]=Bl(l),[s,f]=o(l,{collectionRef:{current:null},itemMap:new Map}),d=w=>{const{scope:T,children:B}=w,K=yn.useRef(null),V=yn.useRef(new Map).current;return x.jsx(s,{scope:T,itemMap:V,collectionRef:K,children:B})};d.displayName=l;const m=n+"CollectionSlot",g=Ki(m),p=yn.forwardRef((w,T)=>{const{scope:B,children:K}=w,V=f(m,B),Z=gt(T,V.collectionRef);return x.jsx(g,{ref:Z,children:K})});p.displayName=m;const y=n+"CollectionItemSlot",_="data-radix-collection-item",S=Ki(y),O=yn.forwardRef((w,T)=>{const{scope:B,children:K,...V}=w,Z=yn.useRef(null),P=gt(T,Z),W=f(y,B);return yn.useEffect(()=>(W.itemMap.set(Z,{ref:Z,...V}),()=>void W.itemMap.delete(Z))),x.jsx(S,{[_]:"",ref:P,children:K})});O.displayName=y;function L(w){const T=f(n+"CollectionConsumer",w);return yn.useCallback(()=>{const K=T.collectionRef.current;if(!K)return[];const V=Array.from(K.querySelectorAll(`[${_}]`));return Array.from(T.itemMap.values()).sort((W,Y)=>V.indexOf(W.ref.current)-V.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:O},L,r]}var J8=v.createContext(void 0);function im(n){const l=v.useContext(J8);return n||l||"ltr"}function An(n){const l=v.useRef(n);return v.useEffect(()=>{l.current=n}),v.useMemo(()=>(...o)=>l.current?.(...o),[])}function $8(n,l=globalThis?.document){const o=An(n);v.useEffect(()=>{const r=s=>{s.key==="Escape"&&o(s)};return l.addEventListener("keydown",r,{capture:!0}),()=>l.removeEventListener("keydown",r,{capture:!0})},[o,l])}var I8="DismissableLayer",lc="dismissableLayer.update",W8="dismissableLayer.pointerDownOutside",e5="dismissableLayer.focusOutside",rm,om=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),um=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:f,onInteractOutside:d,onDismiss:m,...g}=n,p=v.useContext(om),[y,_]=v.useState(null),S=y?.ownerDocument??globalThis?.document,[,O]=v.useState({}),L=gt(l,Y=>_(Y)),w=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),B=w.indexOf(T),K=y?w.indexOf(y):-1,V=p.layersWithOutsidePointerEventsDisabled.size>0,Z=K>=B,P=a5(Y=>{const F=Y.target,se=[...p.branches].some(pe=>pe.contains(F));!Z||se||(s?.(Y),d?.(Y),Y.defaultPrevented||m?.())},S),W=l5(Y=>{const F=Y.target;[...p.branches].some(pe=>pe.contains(F))||(f?.(Y),d?.(Y),Y.defaultPrevented||m?.())},S);return $8(Y=>{K===p.layers.size-1&&(r?.(Y),!Y.defaultPrevented&&m&&(Y.preventDefault(),m()))},S),v.useEffect(()=>{if(y)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(rm=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(y)),p.layers.add(y),sm(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=rm)}},[y,S,o,p]),v.useEffect(()=>()=>{y&&(p.layers.delete(y),p.layersWithOutsidePointerEventsDisabled.delete(y),sm())},[y,p]),v.useEffect(()=>{const Y=()=>O({});return document.addEventListener(lc,Y),()=>document.removeEventListener(lc,Y)},[]),x.jsx(rt.div,{...g,ref:L,style:{pointerEvents:V?Z?"auto":"none":void 0,...n.style},onFocusCapture:Oe(n.onFocusCapture,W.onFocusCapture),onBlurCapture:Oe(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Oe(n.onPointerDownCapture,P.onPointerDownCapture)})});um.displayName=I8;var t5="DismissableLayerBranch",n5=v.forwardRef((n,l)=>{const o=v.useContext(om),r=v.useRef(null),s=gt(l,r);return v.useEffect(()=>{const f=r.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),x.jsx(rt.div,{...n,ref:s})});n5.displayName=t5;function a5(n,l=globalThis?.document){const o=An(n),r=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const f=m=>{if(m.target&&!r.current){let g=function(){cm(W8,o,p,{discrete:!0})};const p={originalEvent:m};m.pointerType==="touch"?(l.removeEventListener("click",s.current),s.current=g,l.addEventListener("click",s.current,{once:!0})):g()}else l.removeEventListener("click",s.current);r.current=!1},d=window.setTimeout(()=>{l.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),l.removeEventListener("pointerdown",f),l.removeEventListener("click",s.current)}},[l,o]),{onPointerDownCapture:()=>r.current=!0}}function l5(n,l=globalThis?.document){const o=An(n),r=v.useRef(!1);return v.useEffect(()=>{const s=f=>{f.target&&!r.current&&cm(e5,o,{originalEvent:f},{discrete:!1})};return l.addEventListener("focusin",s),()=>l.removeEventListener("focusin",s)},[l,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sm(){const n=new CustomEvent(lc);document.dispatchEvent(n)}function cm(n,l,o,{discrete:r}){const s=o.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});l&&s.addEventListener(n,l,{once:!0}),r?am(s,f):s.dispatchEvent(f)}var ic=0;function i5(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??fm()),document.body.insertAdjacentElement("beforeend",n[1]??fm()),ic++,()=>{ic===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),ic--}},[])}function fm(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var rc="focusScope.autoFocusOnMount",oc="focusScope.autoFocusOnUnmount",dm={bubbles:!1,cancelable:!0},r5="FocusScope",hm=v.forwardRef((n,l)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:f,...d}=n,[m,g]=v.useState(null),p=An(s),y=An(f),_=v.useRef(null),S=gt(l,w=>g(w)),O=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let w=function(V){if(O.paused||!m)return;const Z=V.target;m.contains(Z)?_.current=Z:ga(_.current,{select:!0})},T=function(V){if(O.paused||!m)return;const Z=V.relatedTarget;Z!==null&&(m.contains(Z)||ga(_.current,{select:!0}))},B=function(V){if(document.activeElement===document.body)for(const P of V)P.removedNodes.length>0&&ga(m)};document.addEventListener("focusin",w),document.addEventListener("focusout",T);const K=new MutationObserver(B);return m&&K.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T),K.disconnect()}}},[r,m,O.paused]),v.useEffect(()=>{if(m){pm.add(O);const w=document.activeElement;if(!m.contains(w)){const B=new CustomEvent(rc,dm);m.addEventListener(rc,p),m.dispatchEvent(B),B.defaultPrevented||(o5(d5(mm(m)),{select:!0}),document.activeElement===w&&ga(m))}return()=>{m.removeEventListener(rc,p),setTimeout(()=>{const B=new CustomEvent(oc,dm);m.addEventListener(oc,y),m.dispatchEvent(B),B.defaultPrevented||ga(w??document.body,{select:!0}),m.removeEventListener(oc,y),pm.remove(O)},0)}}},[m,p,y,O]);const L=v.useCallback(w=>{if(!o&&!r||O.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,B=document.activeElement;if(T&&B){const K=w.currentTarget,[V,Z]=u5(K);V&&Z?!w.shiftKey&&B===Z?(w.preventDefault(),o&&ga(V,{select:!0})):w.shiftKey&&B===V&&(w.preventDefault(),o&&ga(Z,{select:!0})):B===K&&w.preventDefault()}},[o,r,O.paused]);return x.jsx(rt.div,{tabIndex:-1,...d,ref:S,onKeyDown:L})});hm.displayName=r5;function o5(n,{select:l=!1}={}){const o=document.activeElement;for(const r of n)if(ga(r,{select:l}),document.activeElement!==o)return}function u5(n){const l=mm(n),o=vm(l,n),r=vm(l.reverse(),n);return[o,r]}function mm(n){const l=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l}function vm(n,l){for(const o of n)if(!s5(o,{upTo:l}))return o}function s5(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function c5(n){return n instanceof HTMLInputElement&&"select"in n}function ga(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&c5(n)&&l&&n.select()}}var pm=f5();function f5(){let n=[];return{add(l){const o=n[0];l!==o&&o?.pause(),n=gm(n,l),n.unshift(l)},remove(l){n=gm(n,l),n[0]?.resume()}}}function gm(n,l){const o=[...n],r=o.indexOf(l);return r!==-1&&o.splice(r,1),o}function d5(n){return n.filter(l=>l.tagName!=="A")}var h5=ch[" useId ".trim().toString()]||(()=>{}),m5=0;function uc(n){const[l,o]=v.useState(h5());return dn(()=>{o(r=>r??String(m5++))},[n]),n||(l?`radix-${l}`:"")}const v5=["top","right","bottom","left"],ya=Math.min,Tt=Math.max,Lo=Math.round,To=Math.floor,Cn=n=>({x:n,y:n}),p5={left:"right",right:"left",bottom:"top",top:"bottom"},g5={start:"end",end:"start"};function sc(n,l,o){return Tt(n,ya(l,o))}function qn(n,l){return typeof n=="function"?n(l):n}function Yn(n){return n.split("-")[0]}function Hl(n){return n.split("-")[1]}function cc(n){return n==="x"?"y":"x"}function fc(n){return n==="y"?"height":"width"}const y5=new Set(["top","bottom"]);function On(n){return y5.has(Yn(n))?"y":"x"}function dc(n){return cc(On(n))}function b5(n,l,o){o===void 0&&(o=!1);const r=Hl(n),s=dc(n),f=fc(s);let d=s==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return l.reference[f]>l.floating[f]&&(d=Ro(d)),[d,Ro(d)]}function _5(n){const l=Ro(n);return[hc(n),l,hc(l)]}function hc(n){return n.replace(/start|end/g,l=>g5[l])}const ym=["left","right"],bm=["right","left"],S5=["top","bottom"],E5=["bottom","top"];function w5(n,l,o){switch(n){case"top":case"bottom":return o?l?bm:ym:l?ym:bm;case"left":case"right":return l?S5:E5;default:return[]}}function x5(n,l,o,r){const s=Hl(n);let f=w5(Yn(n),o==="start",r);return s&&(f=f.map(d=>d+"-"+s),l&&(f=f.concat(f.map(hc)))),f}function Ro(n){return n.replace(/left|right|bottom|top/g,l=>p5[l])}function A5(n){return{top:0,right:0,bottom:0,left:0,...n}}function _m(n){return typeof n!="number"?A5(n):{top:n,right:n,bottom:n,left:n}}function No(n){const{x:l,y:o,width:r,height:s}=n;return{width:r,height:s,top:o,left:l,right:l+r,bottom:o+s,x:l,y:o}}function Sm(n,l,o){let{reference:r,floating:s}=n;const f=On(l),d=dc(l),m=fc(d),g=Yn(l),p=f==="y",y=r.x+r.width/2-s.width/2,_=r.y+r.height/2-s.height/2,S=r[m]/2-s[m]/2;let O;switch(g){case"top":O={x:y,y:r.y-s.height};break;case"bottom":O={x:y,y:r.y+r.height};break;case"right":O={x:r.x+r.width,y:_};break;case"left":O={x:r.x-s.width,y:_};break;default:O={x:r.x,y:r.y}}switch(Hl(l)){case"start":O[d]-=S*(o&&p?-1:1);break;case"end":O[d]+=S*(o&&p?-1:1);break}return O}const C5=async(n,l,o)=>{const{placement:r="bottom",strategy:s="absolute",middleware:f=[],platform:d}=o,m=f.filter(Boolean),g=await(d.isRTL==null?void 0:d.isRTL(l));let p=await d.getElementRects({reference:n,floating:l,strategy:s}),{x:y,y:_}=Sm(p,r,g),S=r,O={},L=0;for(let w=0;w({name:"arrow",options:n,async fn(l){const{x:o,y:r,placement:s,rects:f,platform:d,elements:m,middlewareData:g}=l,{element:p,padding:y=0}=qn(n,l)||{};if(p==null)return{};const _=_m(y),S={x:o,y:r},O=dc(s),L=fc(O),w=await d.getDimensions(p),T=O==="y",B=T?"top":"left",K=T?"bottom":"right",V=T?"clientHeight":"clientWidth",Z=f.reference[L]+f.reference[O]-S[O]-f.floating[L],P=S[O]-f.reference[O],W=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let Y=W?W[V]:0;(!Y||!await(d.isElement==null?void 0:d.isElement(W)))&&(Y=m.floating[V]||f.floating[L]);const F=Z/2-P/2,se=Y/2-w[L]/2-1,pe=ya(_[B],se),xe=ya(_[K],se),me=pe,Ae=Y-w[L]-xe,ge=Y/2-w[L]/2+F,Se=sc(me,ge,Ae),R=!g.arrow&&Hl(s)!=null&&ge!==Se&&f.reference[L]/2-(gege<=0)){var xe,me;const ge=(((xe=f.flip)==null?void 0:xe.index)||0)+1,Se=Y[ge];if(Se&&(!(_==="alignment"?K!==On(Se):!1)||pe.every(U=>On(U.placement)===K?U.overflows[0]>0:!0)))return{data:{index:ge,overflows:pe},reset:{placement:Se}};let R=(me=pe.filter(X=>X.overflows[0]<=0).sort((X,U)=>X.overflows[1]-U.overflows[1])[0])==null?void 0:me.placement;if(!R)switch(O){case"bestFit":{var Ae;const X=(Ae=pe.filter(U=>{if(W){const J=On(U.placement);return J===K||J==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(J=>J>0).reduce((J,ce)=>J+ce,0)]).sort((U,J)=>U[1]-J[1])[0])==null?void 0:Ae[0];X&&(R=X);break}case"initialPlacement":R=m;break}if(s!==R)return{reset:{placement:R}}}return{}}}};function Em(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function wm(n){return v5.some(l=>n[l]>=0)}const L5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o}=l,{strategy:r="referenceHidden",...s}=qn(n,l);switch(r){case"referenceHidden":{const f=await Qi(l,{...s,elementContext:"reference"}),d=Em(f,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:wm(d)}}}case"escaped":{const f=await Qi(l,{...s,altBoundary:!0}),d=Em(f,o.floating);return{data:{escapedOffsets:d,escaped:wm(d)}}}default:return{}}}}},xm=new Set(["left","top"]);async function T5(n,l){const{placement:o,platform:r,elements:s}=n,f=await(r.isRTL==null?void 0:r.isRTL(s.floating)),d=Yn(o),m=Hl(o),g=On(o)==="y",p=xm.has(d)?-1:1,y=f&&g?-1:1,_=qn(l,n);let{mainAxis:S,crossAxis:O,alignmentAxis:L}=typeof _=="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis};return m&&typeof L=="number"&&(O=m==="end"?L*-1:L),g?{x:O*y,y:S*p}:{x:S*p,y:O*y}}const R5=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,r;const{x:s,y:f,placement:d,middlewareData:m}=l,g=await T5(l,n);return d===((o=m.offset)==null?void 0:o.placement)&&(r=m.arrow)!=null&&r.alignmentOffset?{}:{x:s+g.x,y:f+g.y,data:{...g,placement:d}}}}},N5=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:r,placement:s}=l,{mainAxis:f=!0,crossAxis:d=!1,limiter:m={fn:T=>{let{x:B,y:K}=T;return{x:B,y:K}}},...g}=qn(n,l),p={x:o,y:r},y=await Qi(l,g),_=On(Yn(s)),S=cc(_);let O=p[S],L=p[_];if(f){const T=S==="y"?"top":"left",B=S==="y"?"bottom":"right",K=O+y[T],V=O-y[B];O=sc(K,O,V)}if(d){const T=_==="y"?"top":"left",B=_==="y"?"bottom":"right",K=L+y[T],V=L-y[B];L=sc(K,L,V)}const w=m.fn({...l,[S]:O,[_]:L});return{...w,data:{x:w.x-o,y:w.y-r,enabled:{[S]:f,[_]:d}}}}}},D5=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:r,placement:s,rects:f,middlewareData:d}=l,{offset:m=0,mainAxis:g=!0,crossAxis:p=!0}=qn(n,l),y={x:o,y:r},_=On(s),S=cc(_);let O=y[S],L=y[_];const w=qn(m,l),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(g){const V=S==="y"?"height":"width",Z=f.reference[S]-f.floating[V]+T.mainAxis,P=f.reference[S]+f.reference[V]-T.mainAxis;OP&&(O=P)}if(p){var B,K;const V=S==="y"?"width":"height",Z=xm.has(Yn(s)),P=f.reference[_]-f.floating[V]+(Z&&((B=d.offset)==null?void 0:B[_])||0)+(Z?0:T.crossAxis),W=f.reference[_]+f.reference[V]+(Z?0:((K=d.offset)==null?void 0:K[_])||0)-(Z?T.crossAxis:0);LW&&(L=W)}return{[S]:O,[_]:L}}}},j5=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,r;const{placement:s,rects:f,platform:d,elements:m}=l,{apply:g=()=>{},...p}=qn(n,l),y=await Qi(l,p),_=Yn(s),S=Hl(s),O=On(s)==="y",{width:L,height:w}=f.floating;let T,B;_==="top"||_==="bottom"?(T=_,B=S===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(B=_,T=S==="end"?"top":"bottom");const K=w-y.top-y.bottom,V=L-y.left-y.right,Z=ya(w-y[T],K),P=ya(L-y[B],V),W=!l.middlewareData.shift;let Y=Z,F=P;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(F=V),(r=l.middlewareData.shift)!=null&&r.enabled.y&&(Y=K),W&&!S){const pe=Tt(y.left,0),xe=Tt(y.right,0),me=Tt(y.top,0),Ae=Tt(y.bottom,0);O?F=L-2*(pe!==0||xe!==0?pe+xe:Tt(y.left,y.right)):Y=w-2*(me!==0||Ae!==0?me+Ae:Tt(y.top,y.bottom))}await g({...l,availableWidth:F,availableHeight:Y});const se=await d.getDimensions(m.floating);return L!==se.width||w!==se.height?{reset:{rects:!0}}:{}}}};function Do(){return typeof window<"u"}function kl(n){return Am(n)?(n.nodeName||"").toLowerCase():"#document"}function Rt(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Mn(n){var l;return(l=(Am(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Am(n){return Do()?n instanceof Node||n instanceof Rt(n).Node:!1}function hn(n){return Do()?n instanceof Element||n instanceof Rt(n).Element:!1}function Ln(n){return Do()?n instanceof HTMLElement||n instanceof Rt(n).HTMLElement:!1}function Cm(n){return!Do()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Rt(n).ShadowRoot}const z5=new Set(["inline","contents"]);function Pi(n){const{overflow:l,overflowX:o,overflowY:r,display:s}=mn(n);return/auto|scroll|overlay|hidden|clip/.test(l+r+o)&&!z5.has(s)}const U5=new Set(["table","td","th"]);function B5(n){return U5.has(kl(n))}const H5=[":popover-open",":modal"];function jo(n){return H5.some(l=>{try{return n.matches(l)}catch{return!1}})}const k5=["transform","translate","scale","rotate","perspective"],V5=["transform","translate","scale","rotate","perspective","filter"],G5=["paint","layout","strict","content"];function mc(n){const l=vc(),o=hn(n)?mn(n):n;return k5.some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!l&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!l&&(o.filter?o.filter!=="none":!1)||V5.some(r=>(o.willChange||"").includes(r))||G5.some(r=>(o.contain||"").includes(r))}function Z5(n){let l=ba(n);for(;Ln(l)&&!Vl(l);){if(mc(l))return l;if(jo(l))return null;l=ba(l)}return null}function vc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const q5=new Set(["html","body","#document"]);function Vl(n){return q5.has(kl(n))}function mn(n){return Rt(n).getComputedStyle(n)}function zo(n){return hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ba(n){if(kl(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Cm(n)&&n.host||Mn(n);return Cm(l)?l.host:l}function Om(n){const l=ba(n);return Vl(l)?n.ownerDocument?n.ownerDocument.body:n.body:Ln(l)&&Pi(l)?l:Om(l)}function Ji(n,l,o){var r;l===void 0&&(l=[]),o===void 0&&(o=!0);const s=Om(n),f=s===((r=n.ownerDocument)==null?void 0:r.body),d=Rt(s);if(f){const m=pc(d);return l.concat(d,d.visualViewport||[],Pi(s)?s:[],m&&o?Ji(m):[])}return l.concat(s,Ji(s,[],o))}function pc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Mm(n){const l=mn(n);let o=parseFloat(l.width)||0,r=parseFloat(l.height)||0;const s=Ln(n),f=s?n.offsetWidth:o,d=s?n.offsetHeight:r,m=Lo(o)!==f||Lo(r)!==d;return m&&(o=f,r=d),{width:o,height:r,$:m}}function gc(n){return hn(n)?n:n.contextElement}function Gl(n){const l=gc(n);if(!Ln(l))return Cn(1);const o=l.getBoundingClientRect(),{width:r,height:s,$:f}=Mm(l);let d=(f?Lo(o.width):o.width)/r,m=(f?Lo(o.height):o.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const Y5=Cn(0);function Lm(n){const l=Rt(n);return!vc()||!l.visualViewport?Y5:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function X5(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==Rt(n)?!1:l}function tl(n,l,o,r){l===void 0&&(l=!1),o===void 0&&(o=!1);const s=n.getBoundingClientRect(),f=gc(n);let d=Cn(1);l&&(r?hn(r)&&(d=Gl(r)):d=Gl(n));const m=X5(f,o,r)?Lm(f):Cn(0);let g=(s.left+m.x)/d.x,p=(s.top+m.y)/d.y,y=s.width/d.x,_=s.height/d.y;if(f){const S=Rt(f),O=r&&hn(r)?Rt(r):r;let L=S,w=pc(L);for(;w&&r&&O!==L;){const T=Gl(w),B=w.getBoundingClientRect(),K=mn(w),V=B.left+(w.clientLeft+parseFloat(K.paddingLeft))*T.x,Z=B.top+(w.clientTop+parseFloat(K.paddingTop))*T.y;g*=T.x,p*=T.y,y*=T.x,_*=T.y,g+=V,p+=Z,L=Rt(w),w=pc(L)}}return No({width:y,height:_,x:g,y:p})}function Uo(n,l){const o=zo(n).scrollLeft;return l?l.left+o:tl(Mn(n)).left+o}function Tm(n,l){const o=n.getBoundingClientRect(),r=o.left+l.scrollLeft-Uo(n,o),s=o.top+l.scrollTop;return{x:r,y:s}}function K5(n){let{elements:l,rect:o,offsetParent:r,strategy:s}=n;const f=s==="fixed",d=Mn(r),m=l?jo(l.floating):!1;if(r===d||m&&f)return o;let g={scrollLeft:0,scrollTop:0},p=Cn(1);const y=Cn(0),_=Ln(r);if((_||!_&&!f)&&((kl(r)!=="body"||Pi(d))&&(g=zo(r)),Ln(r))){const O=tl(r);p=Gl(r),y.x=O.x+r.clientLeft,y.y=O.y+r.clientTop}const S=d&&!_&&!f?Tm(d,g):Cn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-g.scrollLeft*p.x+y.x+S.x,y:o.y*p.y-g.scrollTop*p.y+y.y+S.y}}function F5(n){return Array.from(n.getClientRects())}function Q5(n){const l=Mn(n),o=zo(n),r=n.ownerDocument.body,s=Tt(l.scrollWidth,l.clientWidth,r.scrollWidth,r.clientWidth),f=Tt(l.scrollHeight,l.clientHeight,r.scrollHeight,r.clientHeight);let d=-o.scrollLeft+Uo(n);const m=-o.scrollTop;return mn(r).direction==="rtl"&&(d+=Tt(l.clientWidth,r.clientWidth)-s),{width:s,height:f,x:d,y:m}}const Rm=25;function P5(n,l){const o=Rt(n),r=Mn(n),s=o.visualViewport;let f=r.clientWidth,d=r.clientHeight,m=0,g=0;if(s){f=s.width,d=s.height;const y=vc();(!y||y&&l==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}const p=Uo(r);if(p<=0){const y=r.ownerDocument,_=y.body,S=getComputedStyle(_),O=y.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,L=Math.abs(r.clientWidth-_.clientWidth-O);L<=Rm&&(f-=L)}else p<=Rm&&(f+=p);return{width:f,height:d,x:m,y:g}}const J5=new Set(["absolute","fixed"]);function $5(n,l){const o=tl(n,!0,l==="fixed"),r=o.top+n.clientTop,s=o.left+n.clientLeft,f=Ln(n)?Gl(n):Cn(1),d=n.clientWidth*f.x,m=n.clientHeight*f.y,g=s*f.x,p=r*f.y;return{width:d,height:m,x:g,y:p}}function Nm(n,l,o){let r;if(l==="viewport")r=P5(n,o);else if(l==="document")r=Q5(Mn(n));else if(hn(l))r=$5(l,o);else{const s=Lm(n);r={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return No(r)}function Dm(n,l){const o=ba(n);return o===l||!hn(o)||Vl(o)?!1:mn(o).position==="fixed"||Dm(o,l)}function I5(n,l){const o=l.get(n);if(o)return o;let r=Ji(n,[],!1).filter(m=>hn(m)&&kl(m)!=="body"),s=null;const f=mn(n).position==="fixed";let d=f?ba(n):n;for(;hn(d)&&!Vl(d);){const m=mn(d),g=mc(d);!g&&m.position==="fixed"&&(s=null),(f?!g&&!s:!g&&m.position==="static"&&!!s&&J5.has(s.position)||Pi(d)&&!g&&Dm(n,d))?r=r.filter(y=>y!==d):s=m,d=ba(d)}return l.set(n,r),r}function W5(n){let{element:l,boundary:o,rootBoundary:r,strategy:s}=n;const d=[...o==="clippingAncestors"?jo(l)?[]:I5(l,this._c):[].concat(o),r],m=d[0],g=d.reduce((p,y)=>{const _=Nm(l,y,s);return p.top=Tt(_.top,p.top),p.right=ya(_.right,p.right),p.bottom=ya(_.bottom,p.bottom),p.left=Tt(_.left,p.left),p},Nm(l,m,s));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function e_(n){const{width:l,height:o}=Mm(n);return{width:l,height:o}}function t_(n,l,o){const r=Ln(l),s=Mn(l),f=o==="fixed",d=tl(n,!0,f,l);let m={scrollLeft:0,scrollTop:0};const g=Cn(0);function p(){g.x=Uo(s)}if(r||!r&&!f)if((kl(l)!=="body"||Pi(s))&&(m=zo(l)),r){const O=tl(l,!0,f,l);g.x=O.x+l.clientLeft,g.y=O.y+l.clientTop}else s&&p();f&&!r&&s&&p();const y=s&&!r&&!f?Tm(s,m):Cn(0),_=d.left+m.scrollLeft-g.x-y.x,S=d.top+m.scrollTop-g.y-y.y;return{x:_,y:S,width:d.width,height:d.height}}function yc(n){return mn(n).position==="static"}function jm(n,l){if(!Ln(n)||mn(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return Mn(n)===o&&(o=o.ownerDocument.body),o}function zm(n,l){const o=Rt(n);if(jo(n))return o;if(!Ln(n)){let s=ba(n);for(;s&&!Vl(s);){if(hn(s)&&!yc(s))return s;s=ba(s)}return o}let r=jm(n,l);for(;r&&B5(r)&&yc(r);)r=jm(r,l);return r&&Vl(r)&&yc(r)&&!mc(r)?o:r||Z5(n)||o}const n_=async function(n){const l=this.getOffsetParent||zm,o=this.getDimensions,r=await o(n.floating);return{reference:t_(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function a_(n){return mn(n).direction==="rtl"}const l_={convertOffsetParentRelativeRectToViewportRelativeRect:K5,getDocumentElement:Mn,getClippingRect:W5,getOffsetParent:zm,getElementRects:n_,getClientRects:F5,getDimensions:e_,getScale:Gl,isElement:hn,isRTL:a_};function Um(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function i_(n,l){let o=null,r;const s=Mn(n);function f(){var m;clearTimeout(r),(m=o)==null||m.disconnect(),o=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),f();const p=n.getBoundingClientRect(),{left:y,top:_,width:S,height:O}=p;if(m||l(),!S||!O)return;const L=To(_),w=To(s.clientWidth-(y+S)),T=To(s.clientHeight-(_+O)),B=To(y),V={rootMargin:-L+"px "+-w+"px "+-T+"px "+-B+"px",threshold:Tt(0,ya(1,g))||1};let Z=!0;function P(W){const Y=W[0].intersectionRatio;if(Y!==g){if(!Z)return d();Y?d(!1,Y):r=setTimeout(()=>{d(!1,1e-7)},1e3)}Y===1&&!Um(p,n.getBoundingClientRect())&&d(),Z=!1}try{o=new IntersectionObserver(P,{...V,root:s.ownerDocument})}catch{o=new IntersectionObserver(P,V)}o.observe(n)}return d(!0),f}function r_(n,l,o,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=r,p=gc(n),y=s||f?[...p?Ji(p):[],...Ji(l)]:[];y.forEach(B=>{s&&B.addEventListener("scroll",o,{passive:!0}),f&&B.addEventListener("resize",o)});const _=p&&m?i_(p,o):null;let S=-1,O=null;d&&(O=new ResizeObserver(B=>{let[K]=B;K&&K.target===p&&O&&(O.unobserve(l),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var V;(V=O)==null||V.observe(l)})),o()}),p&&!g&&O.observe(p),O.observe(l));let L,w=g?tl(n):null;g&&T();function T(){const B=tl(n);w&&!Um(w,B)&&o(),w=B,L=requestAnimationFrame(T)}return o(),()=>{var B;y.forEach(K=>{s&&K.removeEventListener("scroll",o),f&&K.removeEventListener("resize",o)}),_?.(),(B=O)==null||B.disconnect(),O=null,g&&cancelAnimationFrame(L)}}const o_=R5,u_=N5,s_=M5,c_=j5,f_=L5,Bm=O5,d_=D5,h_=(n,l,o)=>{const r=new Map,s={platform:l_,...o},f={...s.platform,_c:r};return C5(n,l,{...s,platform:f})};var m_=typeof document<"u",v_=function(){},Bo=m_?v.useLayoutEffect:v_;function Ho(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let o,r,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==l.length)return!1;for(r=o;r--!==0;)if(!Ho(n[r],l[r]))return!1;return!0}if(s=Object.keys(n),o=s.length,o!==Object.keys(l).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(l,s[r]))return!1;for(r=o;r--!==0;){const f=s[r];if(!(f==="_owner"&&n.$$typeof)&&!Ho(n[f],l[f]))return!1}return!0}return n!==n&&l!==l}function Hm(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function km(n,l){const o=Hm(n);return Math.round(l*o)/o}function bc(n){const l=v.useRef(n);return Bo(()=>{l.current=n}),l}function p_(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:r=[],platform:s,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:g,open:p}=n,[y,_]=v.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[S,O]=v.useState(r);Ho(S,r)||O(r);const[L,w]=v.useState(null),[T,B]=v.useState(null),K=v.useCallback(U=>{U!==W.current&&(W.current=U,w(U))},[]),V=v.useCallback(U=>{U!==Y.current&&(Y.current=U,B(U))},[]),Z=f||L,P=d||T,W=v.useRef(null),Y=v.useRef(null),F=v.useRef(y),se=g!=null,pe=bc(g),xe=bc(s),me=bc(p),Ae=v.useCallback(()=>{if(!W.current||!Y.current)return;const U={placement:l,strategy:o,middleware:S};xe.current&&(U.platform=xe.current),h_(W.current,Y.current,U).then(J=>{const ce={...J,isPositioned:me.current!==!1};ge.current&&!Ho(F.current,ce)&&(F.current=ce,xo.flushSync(()=>{_(ce)}))})},[S,l,o,xe,me]);Bo(()=>{p===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,_(U=>({...U,isPositioned:!1})))},[p]);const ge=v.useRef(!1);Bo(()=>(ge.current=!0,()=>{ge.current=!1}),[]),Bo(()=>{if(Z&&(W.current=Z),P&&(Y.current=P),Z&&P){if(pe.current)return pe.current(Z,P,Ae);Ae()}},[Z,P,Ae,pe,se]);const Se=v.useMemo(()=>({reference:W,floating:Y,setReference:K,setFloating:V}),[K,V]),R=v.useMemo(()=>({reference:Z,floating:P}),[Z,P]),X=v.useMemo(()=>{const U={position:o,left:0,top:0};if(!R.floating)return U;const J=km(R.floating,y.x),ce=km(R.floating,y.y);return m?{...U,transform:"translate("+J+"px, "+ce+"px)",...Hm(R.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:J,top:ce}},[o,m,R.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:Ae,refs:Se,elements:R,floatingStyles:X}),[y,Ae,Se,R,X])}const g_=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:r,padding:s}=typeof n=="function"?n(o):n;return r&&l(r)?r.current!=null?Bm({element:r.current,padding:s}).fn(o):{}:r?Bm({element:r,padding:s}).fn(o):{}}}},y_=(n,l)=>({...o_(n),options:[n,l]}),b_=(n,l)=>({...u_(n),options:[n,l]}),__=(n,l)=>({...d_(n),options:[n,l]}),S_=(n,l)=>({...s_(n),options:[n,l]}),E_=(n,l)=>({...c_(n),options:[n,l]}),w_=(n,l)=>({...f_(n),options:[n,l]}),x_=(n,l)=>({...g_(n),options:[n,l]});var A_="Arrow",Vm=v.forwardRef((n,l)=>{const{children:o,width:r=10,height:s=5,...f}=n;return x.jsx(rt.svg,{...f,ref:l,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vm.displayName=A_;var C_=Vm;function O_(n){const[l,o]=v.useState(void 0);return dn(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const f=s[0];let d,m;if("borderBoxSize"in f){const g=f.borderBoxSize,p=Array.isArray(g)?g[0]:g;d=p.inlineSize,m=p.blockSize}else d=n.offsetWidth,m=n.offsetHeight;o({width:d,height:m})});return r.observe(n,{box:"border-box"}),()=>r.unobserve(n)}else o(void 0)},[n]),l}var _c="Popper",[Gm,Zm]=Bl(_c),[M_,qm]=Gm(_c),Ym=n=>{const{__scopePopper:l,children:o}=n,[r,s]=v.useState(null);return x.jsx(M_,{scope:l,anchor:r,onAnchorChange:s,children:o})};Ym.displayName=_c;var Xm="PopperAnchor",Km=v.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:r,...s}=n,f=qm(Xm,o),d=v.useRef(null),m=gt(l,d),g=v.useRef(null);return v.useEffect(()=>{const p=g.current;g.current=r?.current||d.current,p!==g.current&&f.onAnchorChange(g.current)}),r?null:x.jsx(rt.div,{...s,ref:m})});Km.displayName=Xm;var Sc="PopperContent",[L_,T_]=Gm(Sc),Fm=v.forwardRef((n,l)=>{const{__scopePopper:o,side:r="bottom",sideOffset:s=0,align:f="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:y=0,sticky:_="partial",hideWhenDetached:S=!1,updatePositionStrategy:O="optimized",onPlaced:L,...w}=n,T=qm(Sc,o),[B,K]=v.useState(null),V=gt(l,ee=>K(ee)),[Z,P]=v.useState(null),W=O_(Z),Y=W?.width??0,F=W?.height??0,se=r+(f!=="center"?"-"+f:""),pe=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},xe=Array.isArray(p)?p:[p],me=xe.length>0,Ae={padding:pe,boundary:xe.filter(N_),altBoundary:me},{refs:ge,floatingStyles:Se,placement:R,isPositioned:X,middlewareData:U}=p_({strategy:"fixed",placement:se,whileElementsMounted:(...ee)=>r_(...ee,{animationFrame:O==="always"}),elements:{reference:T.anchor},middleware:[y_({mainAxis:s+F,alignmentAxis:d}),g&&b_({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?__():void 0,...Ae}),g&&S_({...Ae}),E_({...Ae,apply:({elements:ee,rects:Fe,availableWidth:Ue,availableHeight:Jt})=>{const{width:Rn,height:Nn}=Fe.reference,ll=ee.floating.style;ll.setProperty("--radix-popper-available-width",`${Ue}px`),ll.setProperty("--radix-popper-available-height",`${Jt}px`),ll.setProperty("--radix-popper-anchor-width",`${Rn}px`),ll.setProperty("--radix-popper-anchor-height",`${Nn}px`)}}),Z&&x_({element:Z,padding:m}),D_({arrowWidth:Y,arrowHeight:F}),S&&w_({strategy:"referenceHidden",...Ae})]}),[J,ce]=Jm(R),A=An(L);dn(()=>{X&&A?.()},[X,A]);const k=U.arrow?.x,Q=U.arrow?.y,$=U.arrow?.centerOffset!==0,[re,fe]=v.useState();return dn(()=>{B&&fe(window.getComputedStyle(B).zIndex)},[B]),x.jsx("div",{ref:ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:X?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:x.jsx(L_,{scope:o,placedSide:J,onArrowChange:P,arrowX:k,arrowY:Q,shouldHideArrow:$,children:x.jsx(rt.div,{"data-side":J,"data-align":ce,...w,ref:V,style:{...w.style,animation:X?void 0:"none"}})})})});Fm.displayName=Sc;var Qm="PopperArrow",R_={top:"bottom",right:"left",bottom:"top",left:"right"},Pm=v.forwardRef(function(l,o){const{__scopePopper:r,...s}=l,f=T_(Qm,r),d=R_[f.placedSide];return x.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:x.jsx(C_,{...s,ref:o,style:{...s.style,display:"block"}})})});Pm.displayName=Qm;function N_(n){return n!==null}var D_=n=>({name:"transformOrigin",options:n,fn(l){const{placement:o,rects:r,middlewareData:s}=l,d=s.arrow?.centerOffset!==0,m=d?0:n.arrowWidth,g=d?0:n.arrowHeight,[p,y]=Jm(o),_={start:"0%",center:"50%",end:"100%"}[y],S=(s.arrow?.x??0)+m/2,O=(s.arrow?.y??0)+g/2;let L="",w="";return p==="bottom"?(L=d?_:`${S}px`,w=`${-g}px`):p==="top"?(L=d?_:`${S}px`,w=`${r.floating.height+g}px`):p==="right"?(L=`${-g}px`,w=d?_:`${O}px`):p==="left"&&(L=`${r.floating.width+g}px`,w=d?_:`${O}px`),{data:{x:L,y:w}}}});function Jm(n){const[l,o="center"]=n.split("-");return[l,o]}var j_=Ym,z_=Km,U_=Fm,B_=Pm,H_="Portal",$m=v.forwardRef((n,l)=>{const{container:o,...r}=n,[s,f]=v.useState(!1);dn(()=>f(!0),[]);const d=o||s&&globalThis?.document?.body;return d?x3.createPortal(x.jsx(rt.div,{...r,ref:l}),d):null});$m.displayName=H_;function k_(n,l){return v.useReducer((o,r)=>l[o][r]??o,n)}var $i=n=>{const{present:l,children:o}=n,r=V_(l),s=typeof o=="function"?o({present:r.isPresent}):v.Children.only(o),f=gt(r.ref,G_(s));return typeof o=="function"||r.isPresent?v.cloneElement(s,{ref:f}):null};$i.displayName="Presence";function V_(n){const[l,o]=v.useState(),r=v.useRef(null),s=v.useRef(n),f=v.useRef("none"),d=n?"mounted":"unmounted",[m,g]=k_(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=ko(r.current);f.current=m==="mounted"?p:"none"},[m]),dn(()=>{const p=r.current,y=s.current;if(y!==n){const S=f.current,O=ko(p);n?g("MOUNT"):O==="none"||p?.display==="none"?g("UNMOUNT"):g(y&&S!==O?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,g]),dn(()=>{if(l){let p;const y=l.ownerDocument.defaultView??window,_=O=>{const w=ko(r.current).includes(CSS.escape(O.animationName));if(O.target===l&&w&&(g("ANIMATION_END"),!s.current)){const T=l.style.animationFillMode;l.style.animationFillMode="forwards",p=y.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=T)})}},S=O=>{O.target===l&&(f.current=ko(r.current))};return l.addEventListener("animationstart",S),l.addEventListener("animationcancel",_),l.addEventListener("animationend",_),()=>{y.clearTimeout(p),l.removeEventListener("animationstart",S),l.removeEventListener("animationcancel",_),l.removeEventListener("animationend",_)}}else g("ANIMATION_END")},[l,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(p=>{r.current=p?getComputedStyle(p):null,o(p)},[])}}function ko(n){return n?.animationName||"none"}function G_(n){let l=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=Object.getOwnPropertyDescriptor(n,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Ec="rovingFocusGroup.onEntryFocus",Z_={bubbles:!1,cancelable:!0},Ii="RovingFocusGroup",[wc,Im,q_]=lm(Ii),[Y_,Wm]=Bl(Ii,[q_]),[X_,K_]=Y_(Ii),ev=v.forwardRef((n,l)=>x.jsx(wc.Provider,{scope:n.__scopeRovingFocusGroup,children:x.jsx(wc.Slot,{scope:n.__scopeRovingFocusGroup,children:x.jsx(F_,{...n,ref:l})})}));ev.displayName=Ii;var F_=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,orientation:r,loop:s=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:g,onEntryFocus:p,preventScrollOnEntryFocus:y=!1,..._}=n,S=v.useRef(null),O=gt(l,S),L=im(f),[w,T]=nm({prop:d,defaultProp:m??null,onChange:g,caller:Ii}),[B,K]=v.useState(!1),V=An(p),Z=Im(o),P=v.useRef(!1),[W,Y]=v.useState(0);return v.useEffect(()=>{const F=S.current;if(F)return F.addEventListener(Ec,V),()=>F.removeEventListener(Ec,V)},[V]),x.jsx(X_,{scope:o,orientation:r,dir:L,loop:s,currentTabStopId:w,onItemFocus:v.useCallback(F=>T(F),[T]),onItemShiftTab:v.useCallback(()=>K(!0),[]),onFocusableItemAdd:v.useCallback(()=>Y(F=>F+1),[]),onFocusableItemRemove:v.useCallback(()=>Y(F=>F-1),[]),children:x.jsx(rt.div,{tabIndex:B||W===0?-1:0,"data-orientation":r,..._,ref:O,style:{outline:"none",...n.style},onMouseDown:Oe(n.onMouseDown,()=>{P.current=!0}),onFocus:Oe(n.onFocus,F=>{const se=!P.current;if(F.target===F.currentTarget&&se&&!B){const pe=new CustomEvent(Ec,Z_);if(F.currentTarget.dispatchEvent(pe),!pe.defaultPrevented){const xe=Z().filter(R=>R.focusable),me=xe.find(R=>R.active),Ae=xe.find(R=>R.id===w),Se=[me,Ae,...xe].filter(Boolean).map(R=>R.ref.current);av(Se,y)}}P.current=!1}),onBlur:Oe(n.onBlur,()=>K(!1))})})}),tv="RovingFocusGroupItem",nv=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:r=!0,active:s=!1,tabStopId:f,children:d,...m}=n,g=uc(),p=f||g,y=K_(tv,o),_=y.currentTabStopId===p,S=Im(o),{onFocusableItemAdd:O,onFocusableItemRemove:L,currentTabStopId:w}=y;return v.useEffect(()=>{if(r)return O(),()=>L()},[r,O,L]),x.jsx(wc.ItemSlot,{scope:o,id:p,focusable:r,active:s,children:x.jsx(rt.span,{tabIndex:_?0:-1,"data-orientation":y.orientation,...m,ref:l,onMouseDown:Oe(n.onMouseDown,T=>{r?y.onItemFocus(p):T.preventDefault()}),onFocus:Oe(n.onFocus,()=>y.onItemFocus(p)),onKeyDown:Oe(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){y.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const B=J_(T,y.orientation,y.dir);if(B!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let V=S().filter(Z=>Z.focusable).map(Z=>Z.ref.current);if(B==="last")V.reverse();else if(B==="prev"||B==="next"){B==="prev"&&V.reverse();const Z=V.indexOf(T.currentTarget);V=y.loop?$_(V,Z+1):V.slice(Z+1)}setTimeout(()=>av(V))}}),children:typeof d=="function"?d({isCurrentTabStop:_,hasTabStop:w!=null}):d})})});nv.displayName=tv;var Q_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P_(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function J_(n,l,o){const r=P_(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Q_[r]}function av(n,l=!1){const o=document.activeElement;for(const r of n)if(r===o||(r.focus({preventScroll:l}),document.activeElement!==o))return}function $_(n,l){return n.map((o,r)=>n[(l+r)%n.length])}var I_=ev,W_=nv,e4=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Zl=new WeakMap,Vo=new WeakMap,Go={},xc=0,lv=function(n){return n&&(n.host||lv(n.parentNode))},t4=function(n,l){return l.map(function(o){if(n.contains(o))return o;var r=lv(o);return r&&n.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},n4=function(n,l,o,r){var s=t4(l,Array.isArray(n)?n:[n]);Go[o]||(Go[o]=new WeakMap);var f=Go[o],d=[],m=new Set,g=new Set(s),p=function(_){!_||m.has(_)||(m.add(_),p(_.parentNode))};s.forEach(p);var y=function(_){!_||g.has(_)||Array.prototype.forEach.call(_.children,function(S){if(m.has(S))y(S);else try{var O=S.getAttribute(r),L=O!==null&&O!=="false",w=(Zl.get(S)||0)+1,T=(f.get(S)||0)+1;Zl.set(S,w),f.set(S,T),d.push(S),w===1&&L&&Vo.set(S,!0),T===1&&S.setAttribute(o,"true"),L||S.setAttribute(r,"true")}catch(B){console.error("aria-hidden: cannot operate on ",S,B)}})};return y(l),m.clear(),xc++,function(){d.forEach(function(_){var S=Zl.get(_)-1,O=f.get(_)-1;Zl.set(_,S),f.set(_,O),S||(Vo.has(_)||_.removeAttribute(r),Vo.delete(_)),O||_.removeAttribute(o)}),xc--,xc||(Zl=new WeakMap,Zl=new WeakMap,Vo=new WeakMap,Go={})}},a4=function(n,l,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(n)?n:[n]),s=e4(n);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),n4(r,s,o,"aria-hidden")):function(){return null}},Tn=function(){return Tn=Object.assign||function(l){for(var o,r=1,s=arguments.length;r"u")return _4;var l=S4(n),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,r-o+l[2]-l[0])}},w4=sv(),ql="data-scroll-locked",x4=function(n,l,o,r){var s=n.left,f=n.top,d=n.right,m=n.gap;return o===void 0&&(o="margin"),` .`.concat(i4,` { overflow: hidden `).concat(r,`; padding-right: `).concat(m,"px ").concat(r,`; diff --git a/ui/src/lib/config.ts b/ui/src/lib/config.ts index b3267f4dc0..258ef92cbe 100644 --- a/ui/src/lib/config.ts +++ b/ui/src/lib/config.ts @@ -108,15 +108,13 @@ const env: { [key in Env]: EnvConfig } = { const hostEnvMap: { [key: string]: Env } = { 'auth0.com': 'prod', - 'auth0.auth0-mintlify.app': 'prod', + 'auth0.mintlify.site': 'prod', 'sus.auth0.com': 'staging', - 'docs-staging.mintlify.app': 'staging', - 'docs-staging.mintlify-auth0.app': 'staging', + 'docs-staging.mintlify.site': 'staging', 'tus.auth0.com': 'dev', - 'docs-dev.mintlify.app': 'dev', - 'docs-dev.mintlify-auth0.app': 'dev', + 'docs-dev.mintlify.site': 'dev', localhost: 'local', '127.0.0.1': 'local',