rails-profiler 0.49.1 → 0.49.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a9d491a395e1e86314520d1ce7ba70e2552cb1f357067554ff45bc7f71fdc19
4
- data.tar.gz: 527ffa9651fc0950557f68b3febc73eb7a080f148f0de11e6c774bc3a7941b9a
3
+ metadata.gz: 4191aa90f550840175f3b6df7c7cf4b43e64c656452bcd8cf2080596152dfb9f
4
+ data.tar.gz: d88a560f1512177ff9bfdf2541c98929af154a3c91fe4d4582306c71c631cab4
5
5
  SHA512:
6
- metadata.gz: 18a64786391b225242835de09b4269a28f96228e31de3de66f32ac1401831833165a76f6328f1235d43aff8ea60514a15f886f78f94f1faabd5d85e8a7be2dc5
7
- data.tar.gz: 2aaa792ffa10291fb8d9a35078a9eaa406c4ff610a8aef62a698f1d8d8dacef21a9039bad79b2ba1dc68835f965a31833925f764e8790dd241a91547e63bd47e
6
+ metadata.gz: 75f91d6b4c78bb3739c114d65bf6a5acd311e2129de746d43e8cca94679266661d15f82d5ef297907fc4293928bdb1451708afdb05b2185eb2ff15efd4df529a
7
+ data.tar.gz: d38b481695235f152e750c21981b12d5ab59fd4fc146912526931b9118b6c4864d280a7e2891b249ae122bc0ffb12d6ec6970d773592c55330a7d87cf3d5888e
data/CHANGELOG.md CHANGED
@@ -19,6 +19,14 @@ every commit of every tag interval is accounted for one way or the other.
19
19
 
20
20
  ## [Unreleased]
21
21
 
22
+ ## [0.49.2] - 2026-12-01
23
+
24
+ <!-- stamped -->
25
+
26
+ ### Fixed
27
+
28
+ - **Toolbar**: the pinned values of the toolbar no longer hide behind the items: when the width runs short (one pin visible at 1280 px, none at 800 px), the pin zone drops to a row of its own under the items and its pins wrap, with no script and no change to a bar without pins. The tab order is now the items, Health, Profiler, then the pins (the pins used to sit between ENV and Health).
29
+
22
30
  ## [0.49.1] - 2026-12-01
23
31
 
24
32
  <!-- stamped -->
@@ -1,2 +1,2 @@
1
1
  "use strict";(()=>{var Yr=e=>{throw TypeError(e)};var ir=(e,t,r)=>t.has(e)||Yr("Cannot "+r);var u=(e,t,r)=>(ir(e,t,"read from private field"),r?r.call(e):t.get(e)),x=(e,t,r)=>t.has(e)?Yr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),T=(e,t,r,o)=>(ir(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),P=(e,t,r)=>(ir(e,t,"access private method"),r);var mt=(e,t,r,o)=>({set _(i){T(e,t,i,r)},get _(){return u(e,t,o)}});var kt,O,rn,us,be,Zr,nn,on,sn,cr,ar,ur,an,Kt={},St=[],ls=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ut=Array.isArray;function de(e,t){for(var r in t)e[r]=t[r];return e}function fr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ps(e,t,r){var o,i,s,a={};for(s in t)s=="key"?o=t[s]:s=="ref"?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?kt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)a[s]===void 0&&(a[s]=e.defaultProps[s]);return Dt(e,a,o,i,null)}function Dt(e,t,r,o,i){var s={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++rn,__i:-1,__u:0};return i==null&&O.vnode!=null&&O.vnode(s),s}function E(e){return e.children}function me(e,t){this.props=e,this.context=t}function ze(e,t){if(t==null)return e.__?ze(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ze(e):null}function cs(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,o=[],i=[],s=de({},t);s.__v=t.__v+1,O.vnode&&O.vnode(s),yr(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,o,r??ze(t),!!(32&t.__u),i),s.__v=t.__v,s.__.__k[s.__i]=s,cn(o,s,i),t.__e=t.__=null,s.__e!=r&&un(s)}}function un(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),un(e)}function lr(e){(!e.__d&&(e.__d=!0)&&be.push(e)&&!Ft.__r++||Zr!=O.debounceRendering)&&((Zr=O.debounceRendering)||nn)(Ft)}function Ft(){try{for(var e,t=1;be.length;)be.length>t&&be.sort(on),e=be.shift(),t=be.length,cs(e)}finally{be.length=Ft.__r=0}}function ln(e,t,r,o,i,s,a,l,f,p,d){var c,h,y,v,_,g,m,b=o&&o.__k||St,R=t.length;for(f=fs(r,t,b,f,R),c=0;c<R;c++)(y=r.__k[c])!=null&&(h=y.__i!=-1&&b[y.__i]||Kt,y.__i=c,g=yr(e,y,h,i,s,a,l,f,p,d),v=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&dr(h.ref,null,y),d.push(y.ref,y.__c||v,y)),_==null&&v!=null&&(_=v),(m=!!(4&y.__u))||h.__k===y.__k?f=pn(y,f,e,m):typeof y.type=="function"&&g!==void 0?f=g:v&&(f=v.nextSibling),y.__u&=-7);return r.__e=_,f}function fs(e,t,r,o,i){var s,a,l,f,p,d=r.length,c=d,h=0;for(e.__k=new Array(i),s=0;s<i;s++)(a=t[s])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[s]=Dt(null,a,null,null,null):Ut(a)?a=e.__k[s]=Dt(E,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[s]=Dt(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[s]=a,f=s+h,a.__=e,a.__b=e.__b+1,l=null,(p=a.__i=ys(a,r,f,c))!=-1&&(c--,(l=r[p])&&(l.__u|=2)),l==null||l.__v==null?(p==-1&&(i>d?h--:i<d&&h++),typeof a.type!="function"&&(a.__u|=4)):p!=f&&(p==f-1?h--:p==f+1?h++:(p>f?h--:h++,a.__u|=4))):e.__k[s]=null;if(c)for(s=0;s<d;s++)(l=r[s])!=null&&(2&l.__u)==0&&(l.__e==o&&(o=ze(l)),yn(l,l));return o}function pn(e,t,r,o){var i,s;if(typeof e.type=="function"){for(i=e.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=e,t=pn(i[s],t,r,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=ze(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ys(e,t,r,o){var i,s,a,l=e.key,f=e.type,p=t[r],d=p!=null&&(2&p.__u)==0;if(p===null&&l==null||d&&l==p.key&&f==p.type)return r;if(o>(d?1:0)){for(i=r-1,s=r+1;i>=0||s<t.length;)if((p=t[a=i>=0?i--:s++])!=null&&(2&p.__u)==0&&l==p.key&&f==p.type)return a}return-1}function en(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||ls.test(t)?r:r+"px"}function Mt(e,t,r,o,i){var s,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)r&&t in r||en(e.style,t,"");if(r)for(t in r)o&&r[t]==o[t]||en(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(sn,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=r,r?o?r.u=o.u:(r.u=cr,e.addEventListener(t,s?ur:ar,s)):e.removeEventListener(t,s?ur:ar,s);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function tn(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=cr++;else if(t.t<r.u)return;return r(O.event?O.event(t):t)}}}function yr(e,t,r,o,i,s,a,l,f,p){var d,c,h,y,v,_,g,m,b,R,w,A,j,ne,S,Q=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(f=!!(32&r.__u),s=[l=t.__e=r.__e]),(d=O.__b)&&d(t);e:if(typeof Q=="function")try{if(m=t.props,b=Q.prototype&&Q.prototype.render,R=(d=Q.contextType)&&o[d.__c],w=d?R?R.props.value:d.__:o,r.__c?g=(c=t.__c=r.__c).__=c.__E:(b?t.__c=c=new Q(m,w):(t.__c=c=new me(m,w),c.constructor=Q,c.render=ms),R&&R.sub(c),c.state||(c.state={}),c.__n=o,h=c.__d=!0,c.__h=[],c._sb=[]),b&&c.__s==null&&(c.__s=c.state),b&&Q.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=de({},c.__s)),de(c.__s,Q.getDerivedStateFromProps(m,c.__s))),y=c.props,v=c.state,c.__v=t,h)b&&Q.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),b&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(b&&Q.getDerivedStateFromProps==null&&m!==y&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,w),t.__v==r.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,w)===!1){t.__v!=r.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function($){$&&($.__=t)}),St.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,w),b&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(y,v,_)})}if(c.context=w,c.props=m,c.__P=e,c.__e=!1,A=O.__r,j=0,b)c.state=c.__s,c.__d=!1,A&&A(t),d=c.render(c.props,c.state,c.context),St.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,A&&A(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++j<25);c.state=c.__s,c.getChildContext!=null&&(o=de(de({},o),c.getChildContext())),b&&!h&&c.getSnapshotBeforeUpdate!=null&&(_=c.getSnapshotBeforeUpdate(y,v)),ne=d!=null&&d.type===E&&d.key==null?fn(d.props.children):d,l=ln(e,Ut(ne)?ne:[ne],t,r,o,i,s,a,l,f,p),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),g&&(c.__E=c.__=null)}catch($){if(t.__v=null,f||s!=null)if($.then){for(t.__u|=f?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,t.__e=l}else{for(S=s.length;S--;)fr(s[S]);pr(t)}else t.__e=r.__e,t.__k=r.__k,$.then||pr(t);O.__e($,t,r)}else s==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=ds(r.__e,t,r,o,i,s,a,f,p);return(d=O.diffed)&&d(t),128&t.__u?void 0:l}function pr(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(pr))}function cn(e,t,r){for(var o=0;o<r.length;o++)dr(r[o],r[++o],r[++o]);O.__c&&O.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){O.__e(s,i.__v)}})}function fn(e){return typeof e!="object"||e==null||e.__b>0?e:Ut(e)?e.map(fn):de({},e)}function ds(e,t,r,o,i,s,a,l,f){var p,d,c,h,y,v,_,g=r.props||Kt,m=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(p=0;p<s.length;p++)if((y=s[p])&&"setAttribute"in y==!!b&&(b?y.localName==b:y.nodeType==3)){e=y,s[p]=null;break}}if(e==null){if(b==null)return document.createTextNode(m);e=document.createElementNS(i,b,m.is&&m),l&&(O.__m&&O.__m(t,s),l=!1),s=null}if(b==null)g===m||l&&e.data==m||(e.data=m);else{if(s=s&&kt.call(e.childNodes),!l&&s!=null)for(g={},p=0;p<e.attributes.length;p++)g[(y=e.attributes[p]).name]=y.value;for(p in g)y=g[p],p=="dangerouslySetInnerHTML"?c=y:p=="children"||p in m||p=="value"&&"defaultValue"in m||p=="checked"&&"defaultChecked"in m||Mt(e,p,null,y,i);for(p in m)y=m[p],p=="children"?h=y:p=="dangerouslySetInnerHTML"?d=y:p=="value"?v=y:p=="checked"?_=y:l&&typeof y!="function"||g[p]===y||Mt(e,p,y,g[p],i);if(d)l||c&&(d.__html==c.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),ln(t.type=="template"?e.content:e,Ut(h)?h:[h],t,r,o,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,a,s?s[0]:r.__k&&ze(r,0),l,f),s!=null)for(p=s.length;p--;)fr(s[p]);l||(p="value",b=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[p]||b=="progress"&&!v||b=="option"&&v!=g[p])&&Mt(e,p,v,g[p],i),p="checked",_!=null&&_!=e[p]&&Mt(e,p,_,g[p],i))}return e}function dr(e,t,r){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(i){O.__e(i,r)}}function yn(e,t,r){var o,i;if(O.unmount&&O.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||dr(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(s){O.__e(s,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&yn(o[i],t,r||typeof e.type!="function");r||fr(e.__e),e.__c=e.__=e.__e=void 0}function ms(e,t,r){return this.constructor(e,r)}function mr(e,t,r){var o,i,s,a;t==document&&(t=document.documentElement),O.__&&O.__(e,t),i=(o=typeof r=="function")?null:r&&r.__k||t.__k,s=[],a=[],yr(t,e=(!o&&r||t).__k=ps(E,null,[e]),i||Kt,Kt,t.namespaceURI,!o&&r?[r]:i?null:t.firstChild?kt.call(t.childNodes):null,s,!o&&r?r:i?i.__e:t.firstChild,o,a),cn(s,e,a)}function xe(e){function t(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&o.forEach(function(a){a.__e=!0,lr(a)})},this.sub=function(s){o.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),a&&a.call(s)}}),r.children}return t.__c="__cC"+an++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,o){return r.children(o)}).contextType=t,t}kt=St.slice,O={__e:function(e,t,r,o){for(var i,s,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,o||{}),a=i.__d),a)return i.__E=i}catch(l){e=l}throw e}},rn=0,us=function(e){return e!=null&&e.constructor===void 0},me.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=de({},this.state),typeof e=="function"&&(e=e(de({},r),this.props)),e&&de(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),lr(this))},me.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),lr(this))},me.prototype.render=E,be=[],nn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,on=function(e,t){return e.__v.__b-t.__v.__b},Ft.__r=0,sn=/(PointerCapture)$|Capture$/i,cr=0,ar=tn(!1),ur=tn(!0),an=0;var ae=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var ke,Ee,Xe,dn,hs=(dn=class extends ae{constructor(){super();x(this,ke);x(this,Ee);x(this,Xe);T(this,Xe,t=>{if(typeof window<"u"&&window.addEventListener){let r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){u(this,Ee)||this.setEventListener(u(this,Xe))}onUnsubscribe(){var t;this.hasListeners()||((t=u(this,Ee))==null||t.call(this),T(this,Ee,void 0))}setEventListener(t){var r;T(this,Xe,t),(r=u(this,Ee))==null||r.call(this),T(this,Ee,t(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(t){u(this,ke)!==t&&(T(this,ke,t),this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof u(this,ke)=="boolean"?u(this,ke):globalThis.document?.visibilityState!=="hidden"}},ke=new WeakMap,Ee=new WeakMap,Xe=new WeakMap,dn),Ye=new hs;var Ts={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Re,hr,mn,vs=(mn=class{constructor(){x(this,Re,Ts);x(this,hr,!1)}setTimeoutProvider(e){T(this,Re,e)}setTimeout(e,t){return u(this,Re).setTimeout(e,t)}clearTimeout(e){u(this,Re).clearTimeout(e)}setInterval(e,t){return u(this,Re).setInterval(e,t)}clearInterval(e){u(this,Re).clearInterval(e)}},Re=new WeakMap,hr=new WeakMap,mn),ue=new vs;function hn(e){setTimeout(e,0)}var vr=typeof window>"u"||"Deno"in globalThis;function U(){}function gn(e,t){return typeof e=="function"?e(t):e}function ht(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oe(e,t){return typeof e=="function"?e(t):e}function J(e,t){return typeof e=="function"?e(t):e}function It(e,t){let{type:r="all",exact:o,fetchStatus:i,predicate:s,queryKey:a,stale:l}=e;if(a){if(o){if(t.queryHash!==Tt(a,t.options))return!1}else if(!Le(t.queryKey,a))return!1}if(r!=="all"){let f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||s&&!s(t))}function Nt(e,t){let{exact:r,status:o,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(Ue(t.options.mutationKey)!==Ue(s))return!1}else if(!Le(t.options.mutationKey,s))return!1}return!(o&&t.state.status!==o||i&&!i(t))}function Tt(e,t){return(t?.queryKeyHashFn||Ue)(e)}function Ue(e){return JSON.stringify(e,(t,r)=>Tr(r)?Object.keys(r).sort().reduce((o,i)=>(o[i]=r[i],o),{}):r)}function Le(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Le(e[r],t[r])):!1}var gs=Object.prototype.hasOwnProperty;function gr(e,t,r=0){if(e===t)return e;if(r>500)return t;let o=Tn(e)&&Tn(t);if(!o&&!(Tr(e)&&Tr(t)))return t;let s=(o?e:Object.keys(e)).length,a=o?t:Object.keys(t),l=a.length,f=o?new Array(l):{},p=0;for(let d=0;d<l;d++){let c=o?d:a[d],h=e[c],y=t[c];if(h===y){f[c]=h,(o?d<s:gs.call(e,c))&&p++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){f[c]=y;continue}let v=gr(h,y,r+1);f[c]=v,v===h&&p++}return s===l&&p===s?e:f}function Vt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function Tn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Tr(e){if(!vn(e))return!1;let t=e.constructor;if(t===void 0)return!0;let r=t.prototype;return!(!vn(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vn(e){return Object.prototype.toString.call(e)==="[object Object]"}function _n(e){return new Promise(t=>{ue.setTimeout(t,e)})}function vt(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?gr(e,t):t}function bn(e,t,r=0){let o=[...e,t];return r&&o.length>r?o.slice(1):o}function xn(e,t,r=0){let o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}var Ze=Symbol();function Gt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ze?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function _r(e,t){return typeof e=="function"?e(...t):!!e}function En(e,t,r){let o=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),o||(o=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var le=(()=>{let e=()=>vr;return{isServer(){return e()},setIsServer(t){e=t}}})();function gt(){let e,t,r=new Promise((i,s)=>{e=i,t=s});r.status="pending",r.catch(()=>{});function o(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{o({status:"fulfilled",value:i}),e(i)},r.reject=i=>{o({status:"rejected",reason:i}),t(i)},r}var Rn=hn;function _s(){let e=[],t=0,r=l=>{l()},o=l=>{l()},i=Rn,s=l=>{t?e.push(l):i(()=>{r(l)})},a=()=>{let l=e;e=[],l.length&&i(()=>{o(()=>{l.forEach(f=>{r(f)})})})};return{batch:l=>{let f;t++;try{f=l()}finally{t--,t||a()}return f},batchCalls:l=>(...f)=>{s(()=>{l(...f)})},schedule:s,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{o=l},setScheduler:l=>{i=l}}}var M=_s();var et,we,tt,wn,bs=(wn=class extends ae{constructor(){super();x(this,et,!0);x(this,we);x(this,tt);T(this,tt,t=>{if(typeof window<"u"&&window.addEventListener){let r=()=>t(!0),o=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",o)}}})}onSubscribe(){u(this,we)||this.setEventListener(u(this,tt))}onUnsubscribe(){var t;this.hasListeners()||((t=u(this,we))==null||t.call(this),T(this,we,void 0))}setEventListener(t){var r;T(this,tt,t),(r=u(this,we))==null||r.call(this),T(this,we,t(this.setOnline.bind(this)))}setOnline(t){u(this,et)!==t&&(T(this,et,t),this.listeners.forEach(o=>{o(t)}))}isOnline(){return u(this,et)}},et=new WeakMap,we=new WeakMap,tt=new WeakMap,wn),rt=new bs;function xs(e){return Math.min(1e3*2**e,3e4)}function br(e){return(e??"online")==="online"?rt.isOnline():!0}var jt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Bt(e){let t=!1,r=0,o,i=gt(),s=()=>i.status!=="pending",a=_=>{if(!s()){let g=new jt(_);h(g),e.onCancel?.(g)}},l=()=>{t=!0},f=()=>{t=!1},p=()=>Ye.isFocused()&&(e.networkMode==="always"||rt.isOnline())&&e.canRun(),d=()=>br(e.networkMode)&&e.canRun(),c=_=>{s()||(o?.(),i.resolve(_))},h=_=>{s()||(o?.(),i.reject(_))},y=()=>new Promise(_=>{o=g=>{(s()||p())&&_(g)},e.onPause?.()}).then(()=>{o=void 0,s()||e.onContinue?.()}),v=()=>{if(s())return;let _,g=r===0?e.initialPromise:void 0;try{_=g??e.fn()}catch(m){_=Promise.reject(m)}Promise.resolve(_).then(c).catch(m=>{if(s())return;let b=e.retry??(le.isServer()?0:3),R=e.retryDelay??xs,w=typeof R=="function"?R(r,m):R,A=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,m);if(t||!A){h(m);return}r++,e.onFail?.(r,m),_n(w).then(()=>p()?void 0:y()).then(()=>{t?h(m):v()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(o?.(),i),cancelRetry:l,continueRetry:f,canStart:d,start:()=>(d()?v():y().then(v),i)}}var Ie,Pn,Ht=(Pn=class{constructor(){x(this,Ie)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ht(this.gcTime)&&T(this,Ie,ue.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(le.isServer()?1/0:300*1e3))}clearGcTimeout(){u(this,Ie)!==void 0&&(ue.clearTimeout(u(this,Ie)),T(this,Ie,void 0))}},Ie=new WeakMap,Pn);function An(e){return{onFetch:(t,r)=>{let o=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],a=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},f=0,p=async()=>{let d=!1,c=v=>{En(v,()=>t.signal,()=>d=!0)},h=Gt(t.options,t.fetchOptions),y=async(v,_,g)=>{if(d)return Promise.reject(t.signal.reason);if(_==null&&v.pages.length)return Promise.resolve(v);let b=(()=>{let j={client:t.client,queryKey:t.queryKey,pageParam:_,direction:g?"backward":"forward",meta:t.options.meta};return c(j),j})(),R=await h(b),{maxPages:w}=t.options,A=g?xn:bn;return{pages:A(v.pages,R,w),pageParams:A(v.pageParams,_,w)}};if(i&&s.length){let v=i==="backward",_=v?Es:Cn,g={pages:s,pageParams:a},m=_(o,g);l=await y(g,m,v)}else{let v=e??s.length;do{let _=f===0?a[0]??o.initialPageParam:Cn(o,l);if(f>0&&_==null)break;l=await y(l,_),f++}while(f<v)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function Cn(e,{pages:t,pageParams:r}){let o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,r[o],r):void 0}function Es(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var nt,Ne,ot,te,Ve,V,_t,Ge,Z,Dn,he,Qn,Mn=(Qn=class extends Ht{constructor(t){super();x(this,Z);x(this,nt);x(this,Ne);x(this,ot);x(this,te);x(this,Ve);x(this,V);x(this,_t);x(this,Ge);T(this,Ge,!1),T(this,_t,t.defaultOptions),this.setOptions(t.options),this.observers=[],T(this,Ve,t.client),T(this,te,u(this,Ve).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,T(this,Ne,On(this.options)),this.state=t.state??u(this,Ne),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return u(this,nt)}get promise(){return u(this,V)?.promise}setOptions(t){if(this.options={...u(this,_t),...t},t?._type&&T(this,nt,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let r=On(this.options);r.data!==void 0&&(this.setState(qn(r.data,r.dataUpdatedAt)),T(this,Ne,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&u(this,te).remove(this)}setData(t,r){let o=vt(this.state.data,t,this.options);return P(this,Z,he).call(this,{data:o,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),o}setState(t){P(this,Z,he).call(this,{type:"setState",state:t})}cancel(t){let r=u(this,V)?.promise;return u(this,V)?.cancel(t),r?r.then(U).catch(U):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return u(this,Ne)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>J(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ze||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>oe(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Lt(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),u(this,V)?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),u(this,V)?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),u(this,te).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(u(this,V)&&(u(this,Ge)||P(this,Z,Dn).call(this)?u(this,V).cancel({revert:!0}):u(this,V).cancelRetry()),this.scheduleGc()),u(this,te).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||P(this,Z,he).call(this,{type:"invalidate"})}async fetch(t,r){if(this.state.fetchStatus!=="idle"&&u(this,V)?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(u(this,V))return u(this,V).continueRetry(),u(this,V).promise}if(t&&this.setOptions(t),!this.options.queryFn){let p=this.observers.find(d=>d.options.queryFn);p&&this.setOptions(p.options)}let o=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(T(this,Ge,!0),o.signal)})},s=()=>{let p=Gt(this.options,r),c=(()=>{let h={client:u(this,Ve),queryKey:this.queryKey,meta:this.meta};return i(h),h})();return T(this,Ge,!1),this.options.persister?this.options.persister(p,c,this):p(c)},l=(()=>{let p={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:u(this,Ve),state:this.state,fetchFn:s};return i(p),p})();(u(this,nt)==="infinite"?An(this.options.pages):this.options.behavior)?.onFetch(l,this),T(this,ot,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&P(this,Z,he).call(this,{type:"fetch",meta:l.fetchOptions?.meta}),T(this,V,Bt({initialPromise:r?.initialPromise,fn:l.fetchFn,onCancel:p=>{p instanceof jt&&p.revert&&this.setState({...u(this,ot),fetchStatus:"idle"}),o.abort()},onFail:(p,d)=>{P(this,Z,he).call(this,{type:"failed",failureCount:p,error:d})},onPause:()=>{P(this,Z,he).call(this,{type:"pause"})},onContinue:()=>{P(this,Z,he).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{let p=await u(this,V).start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),u(this,te).config.onSuccess?.(p,this),u(this,te).config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof jt){if(p.silent)return u(this,V).promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw P(this,Z,he).call(this,{type:"error",error:p}),u(this,te).config.onError?.(p,this),u(this,te).config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}},nt=new WeakMap,Ne=new WeakMap,ot=new WeakMap,te=new WeakMap,Ve=new WeakMap,V=new WeakMap,_t=new WeakMap,Ge=new WeakMap,Z=new WeakSet,Dn=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},he=function(t){let r=o=>{switch(t.type){case"failed":return{...o,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...xr(o.data,this.options),fetchMeta:t.meta??null};case"success":let i={...o,...qn(t.data,t.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return T(this,ot,t.manual?i:void 0),i;case"error":let s=t.error;return{...o,error:s,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...t.state}}};this.state=r(this.state),M.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),u(this,te).notify({query:this,type:"updated",action:t})})},Qn);function xr(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:br(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qn(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function On(e){let t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,o=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var z,C,xt,W,je,st,Te,Pe,Et,it,at,Be,He,Ce,ut,q,bt,Er,Rr,wr,Pr,Cr,Ar,qr,kn,Fn,Qr=(Fn=class extends ae{constructor(t,r){super();x(this,q);x(this,z);x(this,C);x(this,xt);x(this,W);x(this,je);x(this,st);x(this,Te);x(this,Pe);x(this,Et);x(this,it);x(this,at);x(this,Be);x(this,He);x(this,Ce);x(this,ut,new Set);this.options=r,T(this,z,t),T(this,Pe,null),T(this,Te,gt()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(u(this,C).addObserver(this),Kn(u(this,C),this.options)?P(this,q,bt).call(this):this.updateResult(),P(this,q,Pr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Or(u(this,C),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Or(u(this,C),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,P(this,q,Cr).call(this),P(this,q,Ar).call(this),u(this,C).removeObserver(this)}setOptions(t){let r=this.options,o=u(this,C);if(this.options=u(this,z).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof J(this.options.enabled,u(this,C))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");P(this,q,qr).call(this),u(this,C).setOptions(this.options),r._defaulted&&!Vt(this.options,r)&&u(this,z).getQueryCache().notify({type:"observerOptionsUpdated",query:u(this,C),observer:this});let i=this.hasListeners();i&&Sn(u(this,C),o,this.options,r)&&P(this,q,bt).call(this),this.updateResult(),i&&(u(this,C)!==o||J(this.options.enabled,u(this,C))!==J(r.enabled,u(this,C))||oe(this.options.staleTime,u(this,C))!==oe(r.staleTime,u(this,C)))&&P(this,q,Er).call(this);let s=P(this,q,Rr).call(this);i&&(u(this,C)!==o||J(this.options.enabled,u(this,C))!==J(r.enabled,u(this,C))||s!==u(this,Ce))&&P(this,q,wr).call(this,s)}getOptimisticResult(t){let r=u(this,z).getQueryCache().build(u(this,z),t),o=this.createResult(r,t);return ws(this,o)&&(T(this,W,o),T(this,st,this.options),T(this,je,u(this,C).state)),o}getCurrentResult(){return u(this,W)}trackResult(t,r){return new Proxy(t,{get:(o,i)=>(this.trackProp(i),r?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&u(this,Te).status==="pending"&&u(this,Te).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,i))})}trackProp(t){u(this,ut).add(t)}getCurrentQuery(){return u(this,C)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let r=u(this,z).defaultQueryOptions(t),o=u(this,z).getQueryCache().build(u(this,z),r);return o.fetch().then(()=>this.createResult(o,r))}fetch(t){return P(this,q,bt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),u(this,W)))}createResult(t,r){let o=u(this,C),i=this.options,s=u(this,W),a=u(this,je),l=u(this,st),p=t!==o?t.state:u(this,xt),{state:d}=t,c={...d},h=!1,y;if(r._optimisticResults){let Q=this.hasListeners(),$=!Q&&Kn(t,r),Se=Q&&Sn(t,o,r,i);($||Se)&&(c={...c,...xr(d.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:v,errorUpdatedAt:_,status:g}=c;y=c.data;let m=!1;if(r.placeholderData!==void 0&&y===void 0&&g==="pending"){let Q;s?.isPlaceholderData&&r.placeholderData===l?.placeholderData?(Q=s.data,m=!0):Q=typeof r.placeholderData=="function"?r.placeholderData(u(this,at)?.state.data,u(this,at)):r.placeholderData,Q!==void 0&&(g="success",y=vt(s?.data,Q,r),h=!0)}if(r.select&&y!==void 0&&!m)if(s&&y===a?.data&&r.select===u(this,Et))y=u(this,it);else try{T(this,Et,r.select),y=r.select(y),y=vt(s?.data,y,r),T(this,it,y),T(this,Pe,null)}catch(Q){T(this,Pe,Q)}u(this,Pe)&&(v=u(this,Pe),y=u(this,it),_=Date.now(),g="error");let b=c.fetchStatus==="fetching",R=g==="pending",w=g==="error",A=R&&b,j=y!==void 0,S={status:g,fetchStatus:c.fetchStatus,isPending:R,isSuccess:g==="success",isError:w,isInitialLoading:A,isLoading:A,data:y,dataUpdatedAt:c.dataUpdatedAt,error:v,errorUpdatedAt:_,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>p.dataUpdateCount||c.errorUpdateCount>p.errorUpdateCount,isFetching:b,isRefetching:b&&!R,isLoadingError:w&&!j,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&j,isStale:Mr(t,r),refetch:this.refetch,promise:u(this,Te),isEnabled:J(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){let Q=S.data!==void 0,$=S.status==="error"&&!Q,Se=ee=>{$?ee.reject(S.error):Q&&ee.resolve(S.data)},Qt=()=>{let ee=T(this,Te,S.promise=gt());Se(ee)},We=u(this,Te);switch(We.status){case"pending":t.queryHash===o.queryHash&&Se(We);break;case"fulfilled":($||S.data!==We.value)&&Qt();break;case"rejected":(!$||S.error!==We.reason)&&Qt();break}}return S}updateResult(){let t=u(this,W),r=this.createResult(u(this,C),this.options);if(T(this,je,u(this,C).state),T(this,st,this.options),u(this,je).data!==void 0&&T(this,at,u(this,C)),Vt(r,t))return;T(this,W,r);let o=()=>{if(!t)return!0;let{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!u(this,ut).size)return!0;let a=new Set(s??u(this,ut));return this.options.throwOnError&&a.add("error"),Object.keys(u(this,W)).some(l=>{let f=l;return u(this,W)[f]!==t[f]&&a.has(f)})};P(this,q,kn).call(this,{listeners:o()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&P(this,q,Pr).call(this)}},z=new WeakMap,C=new WeakMap,xt=new WeakMap,W=new WeakMap,je=new WeakMap,st=new WeakMap,Te=new WeakMap,Pe=new WeakMap,Et=new WeakMap,it=new WeakMap,at=new WeakMap,Be=new WeakMap,He=new WeakMap,Ce=new WeakMap,ut=new WeakMap,q=new WeakSet,bt=function(t){P(this,q,qr).call(this);let r=u(this,C).fetch(this.options,t);return t?.throwOnError||(r=r.catch(U)),r},Er=function(){P(this,q,Cr).call(this);let t=oe(this.options.staleTime,u(this,C));if(le.isServer()||u(this,W).isStale||!ht(t))return;let o=Lt(u(this,W).dataUpdatedAt,t)+1;T(this,Be,ue.setTimeout(()=>{u(this,W).isStale||this.updateResult()},o))},Rr=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(u(this,C)):this.options.refetchInterval)??!1},wr=function(t){P(this,q,Ar).call(this),T(this,Ce,t),!(le.isServer()||J(this.options.enabled,u(this,C))===!1||!ht(u(this,Ce))||u(this,Ce)===0)&&T(this,He,ue.setInterval(()=>{(this.options.refetchIntervalInBackground||Ye.isFocused())&&P(this,q,bt).call(this)},u(this,Ce)))},Pr=function(){P(this,q,Er).call(this),P(this,q,wr).call(this,P(this,q,Rr).call(this))},Cr=function(){u(this,Be)!==void 0&&(ue.clearTimeout(u(this,Be)),T(this,Be,void 0))},Ar=function(){u(this,He)!==void 0&&(ue.clearInterval(u(this,He)),T(this,He,void 0))},qr=function(){let t=u(this,z).getQueryCache().build(u(this,z),this.options);if(t===u(this,C))return;let r=u(this,C);T(this,C,t),T(this,xt,t.state),this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))},kn=function(t){M.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(u(this,W))}),u(this,z).getQueryCache().notify({query:u(this,C),type:"observerResultsUpdated"})})},Fn);function Rs(e,t){return J(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&J(t.retryOnMount,e)===!1)}function Kn(e,t){return Rs(e,t)||e.state.data!==void 0&&Or(e,t,t.refetchOnMount)}function Or(e,t,r){if(J(t.enabled,e)!==!1&&oe(t.staleTime,e)!=="static"){let o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&Mr(e,t)}return!1}function Sn(e,t,r,o){return(e!==t||J(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Mr(e,r)}function Mr(e,t){return J(t.enabled,e)!==!1&&e.isStaleByTime(oe(t.staleTime,e))}function ws(e,t){return!Vt(e.getCurrentResult(),t)}var Rt,pe,B,$e,ce,Ae,Un,Ln=(Un=class extends Ht{constructor(t){super();x(this,ce);x(this,Rt);x(this,pe);x(this,B);x(this,$e);T(this,Rt,t.client),this.mutationId=t.mutationId,T(this,B,t.mutationCache),T(this,pe,[]),this.state=t.state||Ps(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){u(this,pe).includes(t)||(u(this,pe).push(t),this.clearGcTimeout(),u(this,B).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){T(this,pe,u(this,pe).filter(r=>r!==t)),this.scheduleGc(),u(this,B).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){u(this,pe).length||(this.state.status==="pending"?this.scheduleGc():u(this,B).remove(this))}continue(){return u(this,$e)?.continue()??this.execute(this.state.variables)}async execute(t){let r=()=>{P(this,ce,Ae).call(this,{type:"continue"})},o={client:u(this,Rt),meta:this.options.meta,mutationKey:this.options.mutationKey};T(this,$e,Bt({fn:()=>this.options.mutationFn?this.options.mutationFn(t,o):Promise.reject(new Error("No mutationFn found")),onFail:(a,l)=>{P(this,ce,Ae).call(this,{type:"failed",failureCount:a,error:l})},onPause:()=>{P(this,ce,Ae).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>u(this,B).canRun(this)}));let i=this.state.status==="pending",s=!u(this,$e).canStart();try{if(i)r();else{P(this,ce,Ae).call(this,{type:"pending",variables:t,isPaused:s}),u(this,B).config.onMutate&&await u(this,B).config.onMutate(t,this,o);let l=await this.options.onMutate?.(t,o);l!==this.state.context&&P(this,ce,Ae).call(this,{type:"pending",context:l,variables:t,isPaused:s})}let a=await u(this,$e).start();return await u(this,B).config.onSuccess?.(a,t,this.state.context,this,o),await this.options.onSuccess?.(a,t,this.state.context,o),await u(this,B).config.onSettled?.(a,null,this.state.variables,this.state.context,this,o),await this.options.onSettled?.(a,null,t,this.state.context,o),P(this,ce,Ae).call(this,{type:"success",data:a}),a}catch(a){try{await u(this,B).config.onError?.(a,t,this.state.context,this,o)}catch(l){Promise.reject(l)}try{await this.options.onError?.(a,t,this.state.context,o)}catch(l){Promise.reject(l)}try{await u(this,B).config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,o)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,a,t,this.state.context,o)}catch(l){Promise.reject(l)}throw P(this,ce,Ae).call(this,{type:"error",error:a}),a}finally{u(this,B).runNext(this)}}},Rt=new WeakMap,pe=new WeakMap,B=new WeakMap,$e=new WeakMap,ce=new WeakSet,Ae=function(t){let r=o=>{switch(t.type){case"failed":return{...o,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...o,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:t.error,failureCount:o.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),M.batch(()=>{u(this,pe).forEach(o=>{o.onMutationUpdate(t)}),u(this,B).notify({mutation:this,type:"updated",action:t})})},Un);function Ps(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ve,se,wt,In,Nn=(In=class extends ae{constructor(t={}){super();x(this,ve);x(this,se);x(this,wt);this.config=t,T(this,ve,new Set),T(this,se,new Map),T(this,wt,0)}build(t,r,o){let i=new Ln({client:t,mutationCache:this,mutationId:++mt(this,wt)._,options:t.defaultMutationOptions(r),state:o});return this.add(i),i}add(t){u(this,ve).add(t);let r=$t(t);if(typeof r=="string"){let o=u(this,se).get(r);o?o.push(t):u(this,se).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(u(this,ve).delete(t)){let r=$t(t);if(typeof r=="string"){let o=u(this,se).get(r);if(o)if(o.length>1){let i=o.indexOf(t);i!==-1&&o.splice(i,1)}else o[0]===t&&u(this,se).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){let r=$t(t);if(typeof r=="string"){let i=u(this,se).get(r)?.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){let r=$t(t);return typeof r=="string"?u(this,se).get(r)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){M.batch(()=>{u(this,ve).forEach(t=>{this.notify({type:"removed",mutation:t})}),u(this,ve).clear(),u(this,se).clear()})}getAll(){return Array.from(u(this,ve))}find(t){let r={exact:!0,...t};return this.getAll().find(o=>Nt(r,o))}findAll(t={}){return this.getAll().filter(r=>Nt(t,r))}notify(t){M.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){let t=this.getAll().filter(r=>r.state.isPaused);return M.batch(()=>Promise.all(t.map(r=>r.continue().catch(U))))}},ve=new WeakMap,se=new WeakMap,wt=new WeakMap,In);function $t(e){return e.options.scope?.id}var fe,Vn,Gn=(Vn=class extends ae{constructor(t={}){super();x(this,fe);this.config=t,T(this,fe,new Map)}build(t,r,o){let i=r.queryKey,s=r.queryHash??Tt(i,r),a=this.get(s);return a||(a=new Mn({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(r),state:o,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){u(this,fe).has(t.queryHash)||(u(this,fe).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let r=u(this,fe).get(t.queryHash);r&&(t.destroy(),r===t&&u(this,fe).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){M.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return u(this,fe).get(t)}getAll(){return[...u(this,fe).values()]}find(t){let r={exact:!0,...t};return this.getAll().find(o=>It(r,o))}findAll(t={}){let r=this.getAll();return Object.keys(t).length>0?r.filter(o=>It(t,o)):r}notify(t){M.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){M.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fe=new WeakMap,Vn);var F,qe,Oe,lt,pt,Qe,ct,ft,jn,Dr=(jn=class{constructor(e={}){x(this,F);x(this,qe);x(this,Oe);x(this,lt);x(this,pt);x(this,Qe);x(this,ct);x(this,ft);T(this,F,e.queryCache||new Gn),T(this,qe,e.mutationCache||new Nn),T(this,Oe,e.defaultOptions||{}),T(this,lt,new Map),T(this,pt,new Map),T(this,Qe,0)}mount(){mt(this,Qe)._++,u(this,Qe)===1&&(T(this,ct,Ye.subscribe(async e=>{e&&(await this.resumePausedMutations(),u(this,F).onFocus())})),T(this,ft,rt.subscribe(async e=>{e&&(await this.resumePausedMutations(),u(this,F).onOnline())})))}unmount(){var e,t;mt(this,Qe)._--,u(this,Qe)===0&&((e=u(this,ct))==null||e.call(this),T(this,ct,void 0),(t=u(this,ft))==null||t.call(this),T(this,ft,void 0))}isFetching(e){return u(this,F).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return u(this,qe).findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return u(this,F).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=u(this,F).build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(oe(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return u(this,F).findAll(e).map(({queryKey:t,state:r})=>{let o=r.data;return[t,o]})}setQueryData(e,t,r){let o=this.defaultQueryOptions({queryKey:e}),s=u(this,F).get(o.queryHash)?.state.data,a=gn(t,s);if(a!==void 0)return u(this,F).build(this,o).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return M.batch(()=>u(this,F).findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return u(this,F).get(t.queryHash)?.state}removeQueries(e){let t=u(this,F);M.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){let r=u(this,F);return M.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t},o=M.batch(()=>u(this,F).findAll(e).map(i=>i.cancel(r)));return Promise.all(o).then(U).catch(U)}invalidateQueries(e,t={}){return M.batch(()=>(u(this,F).findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0},o=M.batch(()=>u(this,F).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(U)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(o).then(U)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let r=u(this,F).build(this,t);return r.isStaleByTime(oe(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(U).catch(U)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(U).catch(U)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return rt.isOnline()?u(this,qe).resumePausedMutations():Promise.resolve()}getQueryCache(){return u(this,F)}getMutationCache(){return u(this,qe)}getDefaultOptions(){return u(this,Oe)}setDefaultOptions(e){T(this,Oe,e)}setQueryDefaults(e,t){u(this,lt).set(Ue(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...u(this,lt).values()],r={};return t.forEach(o=>{Le(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){u(this,pt).set(Ue(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...u(this,pt).values()],r={};return t.forEach(o=>{Le(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...u(this,Oe).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Tt(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ze&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...u(this,Oe).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){u(this,F).clear(),u(this,qe).clear()}},F=new WeakMap,qe=new WeakMap,Oe=new WeakMap,lt=new WeakMap,pt=new WeakMap,Qe=new WeakMap,ct=new WeakMap,ft=new WeakMap,jn);var Je,K,Kr,Bn,Pt=0,Zn=[],k=O,Hn=k.__b,$n=k.__r,Jn=k.diffed,Wn=k.__c,zn=k.unmount,Xn=k.__;function Ct(e,t){k.__h&&k.__h(K,e,Pt||t),Pt=0;var r=K.__H||(K.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function L(e){return Pt=1,Cs(eo,e)}function Cs(e,t,r){var o=Ct(Je++,2);if(o.t=e,!o.__c&&(o.__=[r?r(t):eo(void 0,t),function(l){var f=o.__N?o.__N[0]:o.__[0],p=o.t(f,l);f!==p&&(o.__N=[p,o.__[1]],o.__c.setState({}))}],o.__c=K,!K.__f)){var i=function(l,f,p){if(!o.__c.__H)return!0;var d=o.__c.__H.__.filter(function(h){return h.__c});if(d.every(function(h){return!h.__N}))return!s||s.call(this,l,f,p);var c=o.__c.props!==l;return d.some(function(h){if(h.__N){var y=h.__[0];h.__=h.__N,h.__N=void 0,y!==h.__[0]&&(c=!0)}}),s&&s.call(this,l,f,p)||c};K.__f=!0;var s=K.shouldComponentUpdate,a=K.componentWillUpdate;K.componentWillUpdate=function(l,f,p){if(this.__e){var d=s;s=void 0,i(l,f,p),s=d}a&&a.call(this,l,f,p)},K.shouldComponentUpdate=i}return o.__N||o.__}function D(e,t){var r=Ct(Je++,3);!k.__s&&Fr(r.__H,t)&&(r.__=e,r.u=t,K.__H.__h.push(r))}function Wt(e,t){var r=Ct(Je++,4);!k.__s&&Fr(r.__H,t)&&(r.__=e,r.u=t,K.__h.push(r))}function I(e){return Pt=5,zt(function(){return{current:e}},[])}function zt(e,t){var r=Ct(Je++,7);return Fr(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ye(e,t){return Pt=8,zt(function(){return e},t)}function Me(e){var t=K.context[e.__c],r=Ct(Je++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(K)),t.props.value):e.__}function As(){for(var e;e=Zn.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Jt),t.__h.some(Sr),t.__h=[]}catch(r){t.__h=[],k.__e(r,e.__v)}}}k.__b=function(e){K=null,Hn&&Hn(e)},k.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Xn&&Xn(e,t)},k.__r=function(e){$n&&$n(e),Je=0;var t=(K=e.__c).__H;t&&(Kr===K?(t.__h=[],K.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.some(Jt),t.__h.some(Sr),t.__h=[],Je=0)),Kr=K},k.diffed=function(e){Jn&&Jn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Zn.push(t)!==1&&Bn===k.requestAnimationFrame||((Bn=k.requestAnimationFrame)||qs)(As)),t.__H.__.some(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Kr=K=null},k.__c=function(e,t){t.some(function(r){try{r.__h.some(Jt),r.__h=r.__h.filter(function(o){return!o.__||Sr(o)})}catch(o){t.some(function(i){i.__h&&(i.__h=[])}),t=[],k.__e(o,r.__v)}}),Wn&&Wn(e,t)},k.unmount=function(e){zn&&zn(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(o){try{Jt(o)}catch(i){t=i}}),r.__H=void 0,t&&k.__e(t,r.__v))};var Yn=typeof requestAnimationFrame=="function";function qs(e){var t,r=function(){clearTimeout(o),Yn&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(r,35);Yn&&(t=requestAnimationFrame(r))}function Jt(e){var t=K,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),K=t}function Sr(e){var t=K;e.__c=e.__(),K=t}function Fr(e,t){return!e||e.length!==t.length||t.some(function(r,o){return r!==e[o]})}function eo(e,t){return typeof t=="function"?t(e):t}var to=xe(!1),ro=()=>Me(to),du=to.Provider;var Os=0;function n(e,t,r,o,i,s){t||(t={});var a,l,f=t;if("ref"in f)for(l in f={},t)l=="ref"?a=t[l]:f[l]=t[l];var p={type:e,props:f,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Os,__i:-1,__u:0,__source:i,__self:s};if(typeof e=="function"&&(a=e.defaultProps))for(l in a)f[l]===void 0&&(f[l]=a[l]);return O.vnode&&O.vnode(p),p}var kr=xe(void 0),Ur=e=>{let t=Me(kr);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Lr=({client:e,children:t})=>(D(()=>(e.mount(),()=>{e.unmount()}),[e]),n(kr.Provider,{value:e,children:t}));function Qs(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ms=xe(Qs()),no=()=>Me(Ms);var oo=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},so=e=>{D(()=>{e.clearReset()},[e])},io=({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(i&&e.data===void 0||_r(r,[e.error,o]));var ao=e=>{if(e.suspense){let r=i=>i==="static"?i:Math.max(i??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...i)=>r(o(...i)):r(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},uo=(e,t)=>e.isLoading&&e.isFetching&&!t,lo=(e,t)=>e?.suspense&&t.isPending,Ir=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function po(e,t){let r=t(),[{_instance:o},i]=L({_instance:{_value:r,_getSnapshot:t}});return Wt(()=>{o._value=r,o._getSnapshot=t,Nr(o)&&i({_instance:o})},[e,r,t]),D(()=>(Nr(o)&&i({_instance:o}),e(()=>{Nr(o)&&i({_instance:o})})),[e]),r}function Nr(e){let t=e._getSnapshot,r=e._value;try{let o=t();return!Object.is(r,o)}catch{return!0}}function co(e,t,r){let o=ro(),i=no(),s=Ur(r),a=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=o?"isRestoring":"optimistic",ao(a),oo(a,i),so(i);let l=!s.getQueryCache().get(a.queryHash),[f]=L(()=>new t(s,a)),p=f.getOptimisticResult(a),d=!o&&e.subscribed!==!1;if(po(ye(c=>{let h=d?f.subscribe(M.batchCalls(c)):U;return f.updateResult(),h},[f,d]),()=>f.getCurrentResult()),D(()=>{f.setOptions(a)},[a,f]),lo(a,p))throw Ir(a,f,i);if(io({result:p,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw p.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(a,p),a.experimental_prefetchInRender&&!le.isServer()&&uo(p,o)&&(l?Ir(a,f,i):s.getQueryCache().get(a.queryHash)?.promise)?.catch(U).finally(()=>{f.updateResult()}),a.notifyOnChangeProps?p:f.trackResult(p)}function Xt(e,t){return co(e,Qr,t)}function G({children:e,panel:t,href:r,className:o,panelLarge:i,onOpen:s}){let[a,l]=L(!1),f=I(null),p=I(null),d=I(null),c=()=>{d.current&&(clearTimeout(d.current),d.current=null),p.current=setTimeout(()=>l(!0),100)},h=()=>{p.current&&(clearTimeout(p.current),p.current=null),d.current=setTimeout(()=>l(!1),150)};Wt(()=>{if(a&&f.current){let _=f.current;_.style.left="50%",_.style.right="auto",_.style.transform="translateX(-50%)";let g=_.getBoundingClientRect();g.left<8?(_.style.left="0",_.style.transform="none"):g.right>window.innerWidth-8&&(_.style.left="auto",_.style.right="0",_.style.transform="none")}},[a]),D(()=>{a&&s?.()},[a]);let y=["profiler-toolbar-item",t?"profiler-toolbar-hoverable":"",o||""].filter(Boolean).join(" "),v=t?n("div",{ref:f,class:`profiler-toolbar-panel${i?" profiler-toolbar-panel-large":""}${a?" is-visible":""}`,onMouseEnter:c,onMouseLeave:h,children:t}):null;return r?n("a",{href:r,class:y,onMouseEnter:c,onMouseLeave:h,children:[e,v]}):n("span",{class:y,onMouseEnter:c,onMouseLeave:h,children:[e,v]})}function De(e){return e.kind==="env"?`env:${e.name}`:`metric:${e.id}`}function fo(e){return typeof e=="string"&&e.length>0&&e.length<=256}function yt(e){if(!Array.isArray(e))return[];let t=new Set,r=[];for(let o of e){if(r.length>=24)break;if(!o||typeof o!="object")continue;let i=o,s=null;if(i.kind==="env"&&fo(i.name)?s={kind:"env",name:i.name}:i.kind==="metric"&&fo(i.id)&&(s={kind:"metric",id:i.id}),!s)continue;let a=De(s);t.has(a)||(t.add(a),r.push(s))}return r}var Vr="[FILTERED]";function At(e){return e.includes(Vr)}var Gr=new Map;function dt(e){try{return localStorage.getItem(e)}catch{return Gr.has(e)?Gr.get(e):null}}function Yt(e,t){Gr.set(e,t);try{localStorage.setItem(e,t)}catch{}}var Zt="profiler-pins:v1",mo=1;function yo(e){if(!e)return[];try{let t=JSON.parse(e);return!t||typeof t!="object"||t.v!==mo?[]:yt(t.pins)}catch{return[]}}function Ds(){return{load:()=>yo(dt(Zt)),save:e=>Yt(Zt,JSON.stringify({v:mo,pins:e})),subscribe:e=>{let t=r=>{(r.key===Zt||r.key===null)&&e(yo(dt(Zt)))};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}}}function Ks(e){return!!e&&typeof e.load=="function"&&typeof e.save=="function"}function ho(){let e;try{e=window.__PROFILER_PIN_ADAPTER__}catch{e=void 0}return Ks(e)?e:Ds()}function To(e){let t=[],r=!1,o=!1,i=!1,s=new Set,a=!1,l=!1,f=new Set,p,d=()=>f.forEach(m=>m()),c=()=>{if(i||a){l=!0;return}l=!1;let m=()=>{a=!1,l&&!o&&c()};a=!0;try{let b=e.save(t);if(b&&typeof b.then=="function"){b.then(m,m);return}}catch{}m()},h=m=>{t=yt(m),d()},y=m=>{if(i=!1,o)return;let b=yt(m).filter(R=>!s.has(De(R)));h(r?[...b,...t]:b),s.clear(),r&&c()},v=()=>{i=!1,s.clear(),!o&&r&&c()};try{let m=e.load();m&&typeof m.then=="function"?(i=!0,m.then(y,v)):t=yt(m)}catch{t=[]}try{p=e.subscribe?.(m=>{o||h(m)})}catch{p=void 0}let _=m=>t.some(b=>De(b)===De(m)),g={getPins:()=>t,has:_,add(m){let[b]=yt([m]);return!b||_(b)||t.length>=24?!1:(r=!0,t=[...t,b],c(),d(),!0)},remove(m){_(m)&&(r=!0,i&&s.add(De(m)),t=t.filter(b=>De(b)!==De(m)),c(),d())},toggle(m){_(m)?g.remove(m):g.add(m)},subscribe(m){return f.add(m),()=>{f.delete(m)}},destroy(){o=!0,f.clear(),typeof p=="function"&&p()}};return g}function vo(e){let[t,r]=L(e.getPins());return D(()=>(r(e.getPins()),e.subscribe(()=>r(e.getPins()))),[e]),t}var Ss="profiler-active-slave",Fs=(()=>{try{let e=sessionStorage.getItem(Ss);return e?`/slaves/${e}`:""}catch{return""}})();function go(){return Fs}var ks=["/_profiler/api/cluster/","/_profiler/api/toolbar/","/_profiler/api/events/"];function Us(e){return ks.some(t=>e.startsWith(t))}async function Ke(e){let t=Us(e.url)?"":go(),r=t?e.url.replace("/_profiler/api",`/_profiler/api${t}`):e.url,{method:o,params:i,data:s,headers:a={},signal:l}=e,f=r,p=i?"?"+new URLSearchParams(Object.entries(i).map(([y,v])=>[y,String(v)])).toString():"",d={"X-Profiler-Request":"1",...a},c=await fetch(f+p,{method:o,signal:l,headers:s!==void 0?{"Content-Type":"application/json",...d}:d,body:s!==void 0?JSON.stringify(s):void 0});if(c.status===204)return{};if(!c.ok){let y;try{y=await c.json()}catch{y={}}throw Object.assign(new Error(y?.error??`HTTP ${c.status}`),{status:c.status,data:y})}return await c.json()}var _o=(e,t)=>{let r={queryKey:t};for(let o of Object.keys(e))o!=="queryKey"&&Object.defineProperty(r,o,{enumerable:!0,configurable:!0,get:()=>e[o]});return r};var Ls=e=>Ke({url:"/_profiler/api/config",method:"GET",signal:e}),jr=()=>["/_profiler/api/config"],Is=e=>{let{query:t}=e??{};return{queryKey:t?.queryKey??jr(),queryFn:({signal:i})=>Ls(i),...t}};function bo(e){let t=Is(e),r=Xt(t);return _o(r,t.queryKey)}var xo=e=>Ke({url:"/_profiler/api/env_vars",method:"GET",signal:e});var Eo=(e,t)=>Ke({url:"/_profiler/api/env_vars",method:"PATCH",headers:{"Content-Type":"application/json"},data:e,signal:t});var Ro=(e,t)=>Ke({url:"/_profiler/api/env_vars/reset",method:"DELETE",params:e,signal:t});var Ns=(e,t)=>Ke({url:`/_profiler/api/toolbar/${e}`,method:"GET",signal:t}),Vs=e=>[`/_profiler/api/toolbar/${e}`],Gs=(e,t)=>{let{query:r}=t??{};return{queryKey:r?.queryKey??Vs(e),queryFn:({signal:s})=>Ns(e,s),enabled:e!=null,...r}};function wo(e,t){let r=Gs(e,t),o=Xt(r);return _o(o,r.queryKey)}var js=1e4,Br={status:"off",editor:"off",variables:{},overrides:{},writable:[],stale:!1},Po={status:"idle",editor:void 0,variables:{},overrides:{},writable:[],stale:!1};function Bs(e){let t=e;return t?.data?.error?t.data.error:t?.status?`HTTP ${t.status}`:"Network error"}function Co(e){let t=e;return t?.status===403&&t.data?.editor==="off"}function Ao(e,t,r){let[o,i]=L(e==="off"?Br:Po),s=I(e==="off"),a=I(null),l=I(0),f=I(null),p=I(0),d=I(0),c=I(!0);D(()=>(c.current=!0,()=>{c.current=!1}),[]),D(()=>{let R=e==="off";s.current=R,i(w=>R?Br:w.status==="off"?Po:w)},[e,r]);let h=ye(()=>{s.current=!0,c.current&&i(Br)},[]),y=ye(()=>{let R=p.current;l.current=R,i(A=>A.status==="ready"||A.status==="loading"?A:{...A,status:"loading"});let w=xo().then(A=>{if(d.current=Date.now(),!(!c.current||R!==p.current)){if(A.editor==="off")return h();i({status:"ready",editor:A.editor,variables:A.variables??{},overrides:A.overrides??{},writable:A.writable??[],stale:!1})}}).catch(A=>{if(d.current=Date.now(),!(!c.current||R!==p.current)){if(Co(A))return h();i(j=>j.status==="ready"?{...j,stale:!0}:{...j,status:"error"})}}).finally(()=>{a.current===w&&(a.current=null)});return a.current=w,w},[h]),v=ye(()=>s.current?Promise.resolve():a.current?l.current===p.current?a.current:(f.current||(f.current=a.current.then(()=>(f.current=null,a.current??y()))),f.current):y(),[y]),_=ye(()=>s.current||Date.now()-d.current<js&&!a.current?Promise.resolve():v(),[v]),g=ye(async R=>{try{await R()}catch(w){throw Co(w)&&h(),new Error(Bs(w))}p.current+=1,c.current&&i(w=>w.status==="ready"?{...w,stale:!0}:w),await v()},[h,v]),m=ye((R,w)=>At(w)?Promise.reject(new Error("A value containing [FILTERED] cannot be sent")):g(()=>Eo({key:R,value:w})),[g]),b=ye(R=>g(()=>Ro({key:R})),[g]);return D(()=>{if(!t)return;v();let R=()=>{v()};return window.addEventListener("focus",R),()=>window.removeEventListener("focus",R)},[t,v,r,e]),{...o,refresh:v,ensure:_,update:m,reset:b}}var qo={enabled:!1,profile:null,pins:[],store:null,env:null},$r=xe(qo);function ie(){return Me($r)}var Hr=class extends me{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(r){console.error("[Profiler] The pins failed:",r)}render(){return this.state.failed?n($r.Provider,{value:qo,children:this.props.children}):this.props.children}},re=class extends me{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(r){console.error("[Profiler] A pin failed to render:",r)}render(){return this.state.failed?null:this.props.children}};function Hs({profile:e,children:t}){let[r]=L(()=>To(ho()));D(()=>()=>r.destroy(),[r]);let o=vo(r),i=e.collectors_data?.env?.editor,s=o.some(p=>p.kind==="env"),a=Ao(i,s,e.token),l=a.status!=="off",f=zt(()=>({enabled:l,profile:e,pins:o,store:r,env:a}),[l,e,o,r,a]);return n($r.Provider,{value:f,children:t})}function Oo({profile:e,children:t}){return n(Hr,{children:n(Hs,{profile:e,children:t})})}function $s({filled:e}){return n("svg",{viewBox:"0 0 16 16",width:"12",height:"12","aria-hidden":"true",focusable:"false",children:n("path",{d:"M9.5 1.5l5 5-1.6.6-2.4 2.4.3 3-1 1-3-3-4 4-.7-.7 4-4-3-3 1-1 3 .3 2.4-2.4z",fill:e?"currentColor":"none",stroke:"currentColor","stroke-width":"1.2","stroke-linejoin":"round"})})}function Js({pin:e,label:t}){let{enabled:r,store:o,pins:i}=ie();if(!r||!o)return null;let s=i.some(p=>p.kind==="env"?e.kind==="env"&&e.name===p.name:e.kind==="metric"&&e.id===p.id),a=!s&&i.length>=24,l=p=>{p.preventDefault(),p.stopPropagation()},f=p=>{l(p),a||o.toggle(e)};return n("button",{type:"button",class:`profiler-pin-button${s?" is-pinned":""}`,"aria-pressed":s,"aria-label":`${s?"Unpin":"Pin"} ${t}`,title:a?`At most ${24} pins`:`${s?"Unpin":"Pin"} ${t}`,"aria-disabled":a?"true":void 0,tabIndex:a?-1:void 0,onClick:f,onAuxClick:l,children:n($s,{filled:s})})}function ge(e){return n(re,{children:n(Js,{...e})})}function Ws(e){return e>=200&&e<300?"profiler-text--success":e>=300&&e<400?"profiler-text--warning":e>=400?"profiler-text--error":""}function Qo({profile:e,requestData:t}){let r=Ws(e.status),o=t.controller_action,i=t.route_name,s=t.route_pattern,a=t.route_params;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Request & Response",n("span",{class:"profiler-float-right",children:e.path})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n("div",{class:"profiler-section__header",children:"Request"}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Method"}),n("strong",{class:"profiler-text--accent",children:e.method})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Path"}),n("strong",{children:e.path})]}),n("div",{class:"profiler-toolbar-panel-row profiler-pin-row",children:[n("span",{children:"Status"}),n("strong",{class:r,children:e.status}),n(ge,{pin:{kind:"metric",id:"request.status"},label:"Status"})]}),o&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Controller#Action"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:o})]}),i&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Route Name"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:i})]}),s&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Route Pattern"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:s})]}),a&&Object.keys(a).length>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Route Params"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:Object.entries(a).map(([l,f])=>`${l}: ${f}`).join(", ")})]}),e.params&&Object.keys(e.params).length>0&&n(E,{children:[n("div",{class:"profiler-section__header profiler-mt-3",children:"Parameters"}),Object.entries(e.params).map(([l,f])=>n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{class:"profiler-text--xs profiler-text--mono",children:l}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:String(f).substring(0,40)})]},l))]})]})]})}function qt(e){return e.allocated_objects!=null?e.allocated_objects:e.memory!=null?Math.round(e.memory/40):null}function Mo(e){return e==null?"-":`${e.toLocaleString("en")} objects`}var Do="Objects allocated by the whole process while this ran: on a multi-threaded server, it includes what other threads allocated meanwhile.";function Jr(e){return e>=200&&e<300?"profiler-text--success":e>=300&&e<400?"profiler-text--warning":e>=400?"profiler-text--error":""}function Wr(e){return e<100?"profiler-text--success":e<500?"profiler-text--warning":"profiler-text--error"}var X=(e,t)=>(e.collectors_data||{})[t],Y=e=>typeof e=="number"&&Number.isFinite(e)?e:null,tr=e=>t=>`${t.toFixed(e)} ms`,_e=e=>String(e),zs=[{id:"request.status",label:"Status",value:e=>X(e,"request")?Y(e.status):null,format:_e,className:Jr},{id:"request.duration",label:"Duration",value:e=>X(e,"request")?Y(e.duration):null,format:tr(2),className:Wr},{id:"request.allocations",label:"Allocations",value:e=>Y(qt(e)),format:e=>`${e.toLocaleString("en")} obj`},{id:"db.queries",label:"SQL queries",value:e=>Y(X(e,"database")?.total_queries),format:_e},{id:"db.duration",label:"SQL time",value:e=>Y(X(e,"database")?.total_duration),format:tr(1)},{id:"db.slow",label:"Slow queries",value:e=>Y(X(e,"database")?.slow_queries),format:_e,className:e=>e>0?"profiler-text--error":"profiler-text--success"},{id:"ajax.count",label:"XHR",value:e=>Y(X(e,"ajax")?.total_requests),format:_e},{id:"ajax.duration",label:"XHR time",value:e=>Y(X(e,"ajax")?.total_duration),format:tr(1)},{id:"events.count",label:"Events",value:e=>Y(X(e,"performance")?.total_events),format:_e},{id:"views.count",label:"Views",value:e=>Y(X(e,"view")?.total_views),format:_e},{id:"cache.hit_rate",label:"Cache hit rate",value:e=>Y(X(e,"cache")?.hit_rate),format:e=>`${e}%`,className:e=>e>80?"profiler-text--success":"profiler-text--warning"},{id:"http.count",label:"HTTP out",value:e=>Y(X(e,"http")?.total_requests),format:_e},{id:"http.duration",label:"HTTP out time",value:e=>Y(X(e,"http")?.total_duration),format:tr(1)},{id:"logs.count",label:"Logs",value:e=>Y(X(e,"logs")?.count),format:_e,className:(e,t)=>{let r=X(t,"logs");return(r?.errors??0)>0?"profiler-text--error":(r?.warnings??0)>0?"profiler-text--warning":""}},{id:"jobs.count",label:"Jobs",value:e=>(e.child_jobs??[]).length>0?e.child_jobs.length:null,format:_e}],Xs=new Map(zs.map(e=>[e.id,e]));function rr(e){return Xs.get(e)}function nr(e,t){if(!e)return{text:"-",className:"",absent:!0};let r=null;try{r=e.value(t)}catch{r=null}return r===null?{text:"-",className:"",absent:!0}:{text:e.format(r),className:e.className?.(r,t)??"",absent:!1}}function Ys({ids:e}){let{enabled:t,profile:r}=ie();return!t||!r?null:n(E,{children:e.map(o=>{let i=rr(o);if(!i)return null;let s=nr(i,r);return n("div",{class:"profiler-toolbar-panel-row profiler-pin-row",children:[n("span",{children:i.label}),n("strong",{class:s.className,children:s.text}),n(ge,{pin:{kind:"metric",id:o},label:i.label})]},o)})})}function H({ids:e}){return n(re,{children:n(Ys,{ids:e})})}function Ko({dbData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Database",n("span",{class:"profiler-float-right",children:[e.total_queries," queries \xB7 ",e.total_duration.toFixed(2)," ms"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["db.queries","db.duration","db.slow"]}),e.queries.slice(0,10).map((t,r)=>n("div",{class:`profiler-toolbar-panel-query${t.slow?" profiler-toolbar-panel-query-slow":""}`,children:[n("div",{class:"profiler-flex profiler-flex--between profiler-mb-1",children:[n("span",{class:"profiler-text--xs profiler-text--muted",children:["#",r+1," ",t.name]}),n("span",{class:`${t.slow?"profiler-text--error":"profiler-text--success"} profiler-text--xs`,children:[t.duration.toFixed(2)," ms"]})]}),n("code",{children:t.sql})]},r)),e.total_queries>10&&n("div",{class:"profiler-more",children:["+ ",e.total_queries-10," more queries"]})]})]})}function Zs(e){return{GET:"badge-info",POST:"badge-success",PUT:"badge-warning",PATCH:"badge-warning",DELETE:"badge-error"}[e]||""}var ei={frame:"Turbo Frame request",stream:"Turbo Stream response"};function So({ajaxData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["AJAX",n("span",{class:"profiler-float-right",children:[e.total_requests," requests \xB7 ",e.total_duration.toFixed(2)," ms"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["ajax.count","ajax.duration"]}),e.requests.slice(0,10).map((t,r)=>{let o=t.status>=200&&t.status<300?"profiler-ajax-card--success":"profiler-ajax-card--error";return n("div",{class:`profiler-ajax-card ${o}`,children:n("div",{class:"profiler-ajax-card__row",children:[n("div",{class:"profiler-flex profiler-flex--gap-2",children:[n("span",{class:`badge ${Zs(t.method)}`,children:t.method}),t.turbo&&n("span",{class:"badge badge-default",title:ei[t.turbo],children:t.turbo.toUpperCase()}),n("span",{class:"profiler-text--xs profiler-text--truncate",children:t.path})]}),n("div",{class:"profiler-flex profiler-flex--gap-2",children:[n("span",{class:`profiler-text--xs ${t.status>=200&&t.status<300?"profiler-text--success":"profiler-text--error"}`,children:t.status}),n("span",{class:"profiler-text--xs profiler-text--muted",children:[t.duration.toFixed(2)," ms"]})]})]})},r)}),e.total_requests>10&&n("div",{class:"profiler-more",children:["+ ",e.total_requests-10," more"]})]})]})}function Fo({perfData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:"Events"}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["events.count"]}),e.events.slice(0,8).map((t,r)=>n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{class:"profiler-text--xs",children:t.name}),n("strong",{class:"profiler-text--accent",children:[t.duration.toFixed(2)," ms"]})]},r))]})]})}function ko({viewData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Views",n("span",{class:"profiler-float-right",children:[e.total_duration.toFixed(2)," ms"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["views.count"]}),e.views&&e.views.length>0&&n(E,{children:[n("div",{class:"profiler-section__header",children:"Templates"}),e.views.map((t,r)=>n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{class:"profiler-text--xs",children:t.identifier}),n("strong",{class:"profiler-text--success",children:[t.duration.toFixed(2)," ms"]})]},r))]}),e.partials&&e.partials.length>0&&n(E,{children:[n("div",{class:"profiler-section__header profiler-mt-3",children:"Partials"}),e.partials.map((t,r)=>n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{class:"profiler-text--xs",children:t.identifier}),n("strong",{class:"profiler-text--success",children:[t.duration.toFixed(2)," ms"]})]},r))]})]})]})}function Uo({cacheData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Cache",n("span",{class:"profiler-float-right",children:["Hit rate: ",e.hit_rate,"%"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["cache.hit_rate"]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Reads"}),n("strong",{children:e.total_reads})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Writes"}),n("strong",{children:e.total_writes})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Hits"}),n("strong",{class:"profiler-text--success",children:e.hits})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Misses"}),n("strong",{class:"profiler-text--error",children:e.misses})]})]})]})}function Lo(){let{data:e,isError:t}=bo({query:{queryKey:jr(),staleTime:1/0,retry:!1}});return e?{scheme:e.editor_url_scheme,pathMap:e.editor_path_map}:t?{scheme:"vscode",pathMap:{}}:{scheme:null,pathMap:{}}}var ti=["vscode","idea","cursor"];function ri(e){return typeof e=="string"&&ti.includes(e)}var ni=/^[A-Za-z]:\//;function Ot(e){return e.replace(/\\/g,"/")}function oi(e,t){if(!t)return e;let r=null;for(let s of Object.keys(t)){let a=Ot(s).replace(/\/+$/,"");(e===a||e.startsWith(a+"/"))&&(r===null||a.length>Ot(r).replace(/\/+$/,"").length)&&(r=s)}if(r===null)return e;let o=Ot(r).replace(/\/+$/,"");return Ot(String(t[r])).replace(/\/+$/,"")+e.slice(o.length)}function si(e){return e.startsWith("/")||ni.test(e)}function ii(e){return(e.startsWith("/")?e:"/"+e).split("/").map((r,o)=>o===1&&/^[A-Za-z]:$/.test(r)?r:encodeURIComponent(r)).join("/")}function Io(e,t,r){let{scheme:o,pathMap:i}=r;if(!ri(o)||!Number.isInteger(t)||t<1||typeof e!="string"||e===""||e.includes("\0"))return null;let s=oi(Ot(e),i);return si(s)?o==="idea"?`idea://open?file=${encodeURIComponent(s)}&line=${t}`:`${o}://file${ii(s)}:${t}`:null}function No({file:e,line:t,children:r,class:o}){let i=Lo(),s=r??`${e}:${t}`,a=Io(e,t,i);return a?n("a",{href:a,class:o,title:`Open ${e}:${t} in your editor`,rel:"noopener noreferrer","data-source-link":"",onClick:l=>l.stopPropagation(),children:s}):n("span",{class:o,children:s})}function Vo({dumpData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Dumps (",e.count,")"]}),n("div",{class:"profiler-toolbar-panel-content",children:[e.dumps.slice(0,5).map((t,r)=>n("div",{class:"profiler-dump-card",children:[n("div",{class:"profiler-dump-card__header",children:[n("span",{class:"profiler-text--xs profiler-text--muted",children:["#",r+1,t.label&&n(E,{children:[" \xB7 ",n("strong",{class:"profiler-text--warning",children:t.label})]})]}),n("span",{class:"profiler-text--xs profiler-text--muted",children:n(No,{file:t.file,line:t.line,children:[t.file.split("/").pop(),":",t.line]})})]}),n("pre",{class:"profiler-text--xs profiler-text--truncate profiler-text--warning",style:{margin:0,background:"none",border:"none",padding:0},children:(t.formatted.split(`
2
- `)[0]||t.formatted).trim()})]},r)),e.count>5&&n("div",{class:"profiler-more",children:["+ ",e.count-5," more dumps"]})]})]})}function ai(e){return{GET:"badge-info",POST:"badge-success",PUT:"badge-warning",PATCH:"badge-warning",DELETE:"badge-error"}[e]||""}function Go({httpData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Outbound HTTP",n("span",{class:"profiler-float-right",children:[e.total_requests," requests \xB7 ",e.total_duration.toFixed(2)," ms"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["http.count","http.duration"]}),e.requests.slice(0,10).map((r,o)=>{let i=r.status>=400||r.status===0,s=r.duration>=500,a=i?"profiler-ajax-card--error":s?"profiler-ajax-card--warning":"profiler-ajax-card--success",l=(()=>{try{return new URL(r.url).host}catch{return r.url}})();return n("div",{class:`profiler-ajax-card ${a}`,children:n("div",{class:"profiler-ajax-card__row",children:[n("div",{class:"profiler-flex profiler-flex--gap-2",children:[n("span",{class:`badge ${ai(r.method)}`,children:r.method}),n("span",{class:"profiler-text--xs profiler-text--truncate",children:l})]}),n("div",{class:"profiler-flex profiler-flex--gap-2",children:[n("span",{class:`profiler-text--xs ${i?"profiler-text--error":"profiler-text--success"}`,children:r.status===0?"ERR":r.status}),n("span",{class:`profiler-text--xs ${s?"profiler-text--error":"profiler-text--muted"}`,children:[r.duration.toFixed(2)," ms"]})]})]})},o)}),e.total_requests>10&&n("div",{class:"profiler-more",children:["+ ",e.total_requests-10," more"]})]})]})}function ui(e){switch(e){case"ERROR":case"FATAL":return"var(--profiler-error, #ef4444)";case"WARN":return"var(--profiler-warning, #f59e0b)";case"INFO":return"var(--profiler-success, #22c55e)";default:return"var(--profiler-muted, #6b7280)"}}function jo({logData:e}){let t=e.logs.slice(-5).reverse();return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Logs (",e.count,")",e.errors>0&&n("span",{style:"color:var(--profiler-error,#ef4444);margin-left:8px;",children:[e.errors," error",e.errors!==1?"s":""]}),e.warnings>0&&e.errors===0&&n("span",{style:"color:var(--profiler-warning,#f59e0b);margin-left:8px;",children:[e.warnings," warning",e.warnings!==1?"s":""]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["logs.count"]}),t.map((r,o)=>n("div",{class:"profiler-toolbar-panel-row",style:"align-items:flex-start;gap:6px;",children:[n("span",{class:"profiler-text--xs",style:`color:${ui(r.level)};font-weight:600;min-width:40px;`,children:r.level}),n("span",{class:"profiler-text--xs profiler-text--truncate",style:"flex:1;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",children:r.message})]},o)),e.count>5&&n("div",{class:"profiler-more",children:["+ ",e.count-5," more messages"]})]})]})}function Bo({exceptionData:e}){let t=e.backtrace?.find(r=>r.app_frame);return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",style:"color:var(--profiler-error,#ef4444);",children:["\u{1F4A5} ",e.exception_class]}),n("div",{class:"profiler-toolbar-panel-content",children:n("div",{class:"profiler-toolbar-panel-row",style:"flex-direction:column;align-items:flex-start;gap:4px;",children:[n("span",{class:"profiler-text--xs",style:"max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",children:e.message}),t&&n("span",{class:"profiler-text--xs profiler-text--muted",style:"max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",children:t.location})]})})]})}function Ho({routesData:e}){let{total:t,matched:r}=e;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Routes",n("span",{class:"profiler-float-right",children:[t," routes"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:r?n(E,{children:[n("div",{class:"profiler-section__header",children:"Matched Route"}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Pattern"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:r.pattern})]}),r.name&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Name"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:[r.name,"_path"]})]}),r.controller_action&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Controller#Action"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:r.controller_action})]})]}):n("div",{class:"profiler-toolbar-panel-row",children:n("span",{class:"profiler-text--muted",children:"No route matched"})})})]})}function $o({i18nData:e}){let t=e.lookups.filter(s=>s.missing),r=e.lookups.filter(s=>!s.missing),o=[...t,...r].slice(0,5),i=e.total-5;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["I18n",n("span",{style:"margin-left:6px;font-weight:400;color:var(--profiler-muted,#6b7280);",children:["[",e.locale,"]"]}),e.missing_count>0&&n("span",{style:"color:var(--profiler-error,#ef4444);margin-left:8px;",children:[e.missing_count," missing"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[o.map((s,a)=>n("div",{class:"profiler-toolbar-panel-row",style:"align-items:flex-start;gap:6px;",children:[n("span",{class:"profiler-text--xs profiler-text--truncate",style:`flex:1;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;${s.missing?"color:var(--profiler-error,#ef4444);":""}`,children:s.key}),s.missing&&n("span",{class:"profiler-text--xs",style:"color:var(--profiler-error,#ef4444);font-weight:600;",children:"\u26A0"})]},a)),i>0&&n("div",{class:"profiler-more",children:["+ ",i," more keys"]})]})]})}function li({job:e}){if(e.status==="running")return n("strong",{class:"profiler-text--xs profiler-text--mono profiler-text--info",children:[n("span",{class:"profiler-spinner","aria-hidden":"true",children:"\u25D0"})," running"]});let t=e.status==="failed";return n("strong",{class:`profiler-text--xs profiler-text--mono ${t?"profiler-text--error":"profiler-text--success"}`,children:[t?"\u2717":"\u2713"," ",e.duration?.toFixed(0),"ms"]})}function Jo({jobs:e}){let t=e.filter(a=>a.status==="running").length,r=e.filter(a=>a.status==="completed").length,o=e.filter(a=>a.status==="failed").length,i=e.slice(0,5),s=e.length-5;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Background Jobs",n("span",{class:"profiler-float-right",children:[e.length," job",e.length!==1?"s":""]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["jobs.count"]}),n("div",{class:"profiler-section__header",children:"Summary"}),t>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Running"}),n("strong",{class:"profiler-text--info",children:t})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Completed"}),n("strong",{class:r>0?"profiler-text--success":"profiler-text--muted",children:r})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Failed"}),n("strong",{class:o>0?"profiler-text--error":"profiler-text--muted",children:o})]}),n("div",{class:"profiler-section__header profiler-mt-3",children:"Last jobs"}),i.map((a,l)=>n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{class:"profiler-text--xs profiler-text--mono",children:a.job_class}),n(li,{job:a})]},l)),s>0&&n("div",{class:"profiler-more",children:["+ ",s," more"]})]})]})}var pi=50,or=e=>e.stopPropagation(),ci={onpointerdown:or},zr=e=>{e.preventDefault(),e.stopPropagation()};function fi(){let{enabled:e,env:t}=ie(),[r,o]=L("");if(!e||!t)return null;let i=Object.keys(t.variables).sort(),s=r.trim().toLowerCase(),a=s?i.filter(f=>f.toLowerCase().includes(s)):i,l=a.slice(0,pi);return n(E,{children:[n("input",{type:"search",class:"profiler-pin-filter",placeholder:"Filter by name","aria-label":"Filter variables by name",value:r,onInput:f=>o(f.target.value),onClick:zr,onAuxClick:zr,onMouseDown:or,...ci,onDragStart:zr,onKeyDown:or,onKeyUp:or}),t.status==="loading"&&i.length===0&&n("div",{class:"profiler-pin-note",children:"Loading..."}),t.status==="error"&&n("div",{class:"profiler-pin-note",children:"Variables could not be loaded."}),l.map(f=>n("div",{class:"profiler-toolbar-panel-row profiler-pin-row",children:[n("span",{class:"profiler-pin-name",title:f,children:f}),n("strong",{class:"profiler-pin-envvalue",title:t.variables[f],children:t.variables[f]}),n(ge,{pin:{kind:"env",name:f},label:f})]},f)),a.length>l.length&&n("div",{class:"profiler-pin-note",children:[a.length-l.length," more, refine the filter"]}),s&&a.length===0&&i.length>0&&n("div",{class:"profiler-pin-note",children:"No variable matches"})]})}function Wo({envData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:"Environment"}),n("div",{class:"profiler-toolbar-panel-content",children:[n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Variables"}),n("strong",{children:e.editor==="off"?"disabled":e.total})]}),e.editor!=="off"&&n(re,{children:n(fi,{})}),n("div",{class:"profiler-pin-note",children:"Click the panel to open the Env tab"})]})]})}function zo({mailerData:e}){let t=e.failed>0||e.loop_warnings.length>0;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Mailers",n("span",{class:"profiler-float-right",children:[e.total," email",e.total!==1?"s":""]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[e.deliver_now>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"deliver_now"}),n("strong",{children:e.deliver_now})]}),e.deliver_later>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"deliver_later"}),n("strong",{children:e.deliver_later})]}),(e.queued_count??0)>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Queued"}),n("strong",{children:e.queued_count})]}),e.multi_part_count>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Multi-part"}),n("strong",{children:e.multi_part_count})]}),e.failed>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Errors"}),n("strong",{class:"profiler-text--error",children:e.failed})]}),e.loop_warnings.length>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{class:"profiler-text--warning",children:"\u26A0\uFE0F Loop detected"}),n("strong",{class:"profiler-text--warning",children:e.loop_warnings.length})]}),[...e.emails,...e.errors].slice(0,3).map((r,o)=>n("div",{class:"profiler-toolbar-panel-row profiler-text--sm",children:[n("span",{class:"profiler-text--muted",children:[r.mailer_class,"#",r.action]}),n("span",{class:r.error?"profiler-text--error":"profiler-text--success",children:r.error?"\u274C":"\u2705"})]},o)),e.total>3&&n("div",{class:"profiler-toolbar-panel-row profiler-text--muted profiler-text--xs",children:["+",e.total-3," more\u2026"]})]})]})}function Xo({label:e,onRemove:t}){return n("button",{type:"button",class:"profiler-pin-remove","aria-label":`Unpin ${e}`,title:`Unpin ${e}`,onClick:t,children:n("span",{"aria-hidden":"true",children:"\xD7"})})}function yi({id:e,onRemove:t}){let{profile:r}=ie(),o=rr(e),i=nr(o,r),s=o?.label??e;return n("span",{class:`profiler-pin${i.absent?" is-absent":""}`,title:i.absent?`${s}: not in this profile`:s,children:[n("span",{class:"profiler-pin-label",children:s}),n("span",{class:`profiler-pin-value ${i.className}`,children:i.text}),n(Xo,{label:s,onRemove:t})]})}function di(e){return e==="true"||e==="false"}function mi({name:e,env:t,onRemove:r}){let[o,i]=L(!1),[s,a]=L(""),[l,f]=L(!1),[p,d]=L(null),c=I(null),h=I(null),y=I(null);D(()=>{o&&c.current?.focus()},[o]),D(()=>{if(l||!y.current)return;let N=y.current==="input"?c.current:h.current;y.current=null,N?.focus()});let v=t.status==="ready"||Object.keys(t.variables).length>0,_=Object.prototype.hasOwnProperty.call(t.variables,e),g=_?t.variables[e]:void 0,m=g!==void 0&&At(g),b=Object.prototype.hasOwnProperty.call(t.overrides,e),R=t.editor==="write",w=R&&t.writable.includes(e),A=v&&_&&!m&&w&&!t.stale,j=b&&w&&!t.stale,ne=async N=>{f(!0),d(null);try{await t.update(e,N),i(!1),y.current="value"}catch(as){d(as.message),y.current=o?"input":"value"}finally{f(!1)}},S=()=>{if(!l){if(At(s)){d("A value containing [FILTERED] cannot be sent");return}if(s===""){d("Empty value refused here (it would delete the variable)");return}if(s===g){i(!1);return}ne(s)}},Q=N=>{N.stopPropagation(),N.key==="Enter"?(N.preventDefault(),S()):N.key==="Escape"&&(N.preventDefault(),i(!1),d(null),y.current="value")},$=N=>N.stopPropagation(),Se=N=>{N.preventDefault(),N.stopPropagation()},Qt={onpointerdown:$},We=async()=>{f(!0),d(null);try{await t.reset(e)}catch(N){d(N.message),y.current="value"}finally{f(!1)}},ee=e;v?_?m?ee=`${e}: ${g===Vr?"hidden":"partly hidden"}, cannot be edited`:t.stale?ee=`${e}: may be out of date, refresh failed`:R&&!w?ee=`${e}: read only, not in env_write_allowlist`:R||(ee=`${e}: read only`):ee=`${e}: not set`:ee=t.status==="error"?`${e}: could not be loaded`:`${e}: loading`;let Fe;return v?_?o?Fe=n("input",{ref:c,class:"profiler-pin-input",type:"text",value:s,readOnly:l,"aria-label":`New value of ${e}`,onInput:N=>a(N.target.value),onKeyDown:Q,onAuxClick:Se,onMouseDown:$,...Qt,onDragStart:Se,onBlur:()=>{l||(i(!1),d(null))}}):A&&di(g)?Fe=n("button",{ref:h,type:"button",role:"switch","aria-checked":g==="true","aria-disabled":l?"true":void 0,"aria-label":`${e}`,class:`profiler-pin-switch${g==="true"?" is-on":""}`,onClick:()=>{l||ne(g==="true"?"false":"true")},onBlur:()=>{l||d(null)},children:[n("span",{class:"profiler-pin-switch-knob","aria-hidden":"true"}),n("span",{class:"profiler-pin-value",children:g})]}):A?Fe=n("button",{ref:h,type:"button",class:"profiler-pin-value profiler-pin-edit",title:"Edit the value","aria-label":`Edit ${e}`,onClick:()=>{a(g),d(null),i(!0)},onBlur:()=>{l||d(null)},children:g===""?"(empty)":g}):Fe=n("span",{class:"profiler-pin-value",children:g===""?"(empty)":g}):Fe=n("span",{class:"profiler-pin-value",children:"not set"}):Fe=n("span",{class:"profiler-pin-value",children:t.status==="error"?"?":"\u2026"}),n("span",{class:`profiler-pin profiler-pin--env${v&&!_?" is-absent":""}${b?" is-overridden":""}${p?" has-error":""}${t.stale?" is-stale":""}`,title:ee,children:[n("span",{class:"profiler-pin-label",children:e}),Fe,t.stale&&v&&n("button",{type:"button",class:"profiler-pin-refresh","aria-label":`Refresh ${e}`,title:"Out of date, read it again",onClick:()=>{t.refresh()},children:n("span",{"aria-hidden":"true",children:"\u27F3"})}),b&&n("span",{class:"profiler-pin-badge",children:"overridden"}),j&&!o&&n("button",{type:"button",class:"profiler-pin-reset","aria-label":`Reset ${e} to its original value`,title:"Reset to the original value",disabled:l,onClick:We,children:n("span",{"aria-hidden":"true",children:"\u21BA"})}),n(Xo,{label:e,onRemove:r}),p&&n("span",{class:"profiler-pin-error",role:"alert",children:p})]})}function hi(){let{enabled:e,profile:t,pins:r,store:o,env:i}=ie();return!e||!o||!t||!i||r.length===0?null:n("div",{class:"profiler-pinbar",role:"group","aria-label":"Pinned values",children:r.map(s=>s.kind==="env"?n(re,{children:n(mi,{name:s.name,env:i,onRemove:()=>o.remove(s)})},`env:${s.name}`):n(re,{children:n(yi,{id:s.id,onRemove:()=>o.remove(s)})},`metric:${s.id}`))})}function Yo(){return n(re,{children:n(hi,{})})}function Ti(e){return new Date(e).toLocaleTimeString("en",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Zo({profile:e,token:t}){return n(Oo,{profile:e,children:n(vi,{profile:e,token:t})})}function vi({profile:e,token:t}){let{env:r}=ie(),o=e.collectors_data||{},i=o.request,s=o.database,a=o.ajax,l=o.performance,f=o.view,p=o.cache,d=o.dump,c=o.http,h=o.logs,y=o.exception,v=o.routes,_=o.i18n,g=o.env,m=o.mailer,b=e.child_jobs??[],R=Jr(e.status),w=Wr(e.duration),A=(s?.slow_queries??0)>0?"profiler-text--error":"profiler-text--success",j=(a?.total_requests??0)>20?"profiler-text--error":"profiler-text--success",ne=(p?.hit_rate??0)>80?"profiler-text--success":"profiler-text--warning";return n(E,{children:n("div",{class:"profiler-toolbar-container",children:[i&&n(E,{children:[n(G,{href:`/_profiler/profiles/${t}?tab=request`,className:R,panelLarge:!0,panel:n(Qo,{profile:e,requestData:i}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:e.method}),n("span",{children:e.status})]}),n(G,{href:`/_profiler/profiles/${t}?tab=request`,className:w,panel:n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:"Performance"}),n("div",{class:"profiler-toolbar-panel-content",children:[n("div",{class:"profiler-toolbar-panel-row profiler-pin-row",children:[n("span",{children:"Duration"}),n("strong",{class:w,children:[e.duration.toFixed(2)," ms"]}),n(ge,{pin:{kind:"metric",id:"request.duration"},label:"Duration"})]}),qt(e)!=null&&n("div",{class:"profiler-toolbar-panel-row profiler-pin-row",title:Do,children:[n("span",{children:"Allocations"}),n("strong",{children:Mo(qt(e))}),n(ge,{pin:{kind:"metric",id:"request.allocations"},label:"Allocations"})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Started"}),n("strong",{children:Ti(e.started_at)})]})]})]}),children:[n("span",{class:w,children:e.duration.toFixed(2)}),n("span",{class:"profiler-text--muted profiler-text--xs",children:"ms"})]})]}),s?.total_queries!==void 0&&n(G,{href:`/_profiler/profiles/${t}?tab=database`,className:A,panelLarge:!0,panel:n(Ko,{dbData:s}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"DB"}),n("span",{children:s.total_queries}),(s.slow_queries??0)>0&&n("span",{class:"profiler-text--error profiler-text--xs",children:["\u25B2 ",s.slow_queries]}),n("span",{class:"profiler-text--muted profiler-text--xs",children:[s.total_duration.toFixed(1),"ms"]})]}),a&&a.total_requests>0&&n(G,{href:`/_profiler/profiles/${t}?tab=ajax`,className:j,panelLarge:!0,panel:n(So,{ajaxData:a}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"XHR"}),n("span",{children:a.total_requests}),n("span",{class:"profiler-text--muted profiler-text--xs",children:[a.total_duration.toFixed(1),"ms"]})]}),l?.events&&l.total_events>0&&n(G,{href:`/_profiler/profiles/${t}?tab=timeline`,panel:n(Fo,{perfData:l}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"EVT"}),n("span",{children:l.total_events})]}),f?.total_views!==void 0&&n(G,{href:`/_profiler/profiles/${t}?tab=views`,panel:n(ko,{viewData:f}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"VIEW"}),n("span",{children:f.total_views}),f.total_partials>0&&n("span",{class:"profiler-text--muted profiler-text--xs",children:["+",f.total_partials,"p"]})]}),p&&p.total_reads>0&&n(G,{href:`/_profiler/profiles/${t}?tab=cache`,className:ne,panel:n(Uo,{cacheData:p}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"CACHE"}),n("span",{class:ne,children:[p.hit_rate,"%"]})]}),c&&c.total_requests>0&&n(G,{href:`/_profiler/profiles/${t}?tab=http`,className:c.error_requests>0||c.slow_requests>0?"profiler-text--error":"profiler-text--success",panelLarge:!0,panel:n(Go,{httpData:c}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"HTTP"}),n("span",{children:c.total_requests}),c.slow_requests>0&&n("span",{class:"profiler-text--error profiler-text--xs",children:["\u25B2 ",c.slow_requests]}),n("span",{class:"profiler-text--muted profiler-text--xs",children:[c.total_duration.toFixed(1),"ms"]})]}),d&&d.count>0&&n(G,{href:`/_profiler/profiles/${t}?tab=dump`,className:"profiler-text--warning",panelLarge:!0,panel:n(Vo,{dumpData:d}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"DUMP"}),n("span",{class:"profiler-text--warning",children:d.count})]}),h&&h.count>0&&n(G,{href:`/_profiler/profiles/${t}?tab=logs`,className:h.errors>0?"profiler-text--error":h.warnings>0?"profiler-text--warning":"profiler-text--muted",panelLarge:!0,panel:n(jo,{logData:h}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"LOG"}),n("span",{class:h.errors>0?"profiler-text--error":h.warnings>0?"profiler-text--warning":"",children:h.errors>0?h.errors:h.warnings>0?h.warnings:h.count})]}),y&&y.exception_class&&n(G,{href:`/_profiler/profiles/${t}?tab=exception`,className:"profiler-text--error",panelLarge:!0,panel:n(Bo,{exceptionData:y}),children:[n("span",{class:"profiler-text--error profiler-text--xs",children:"\u{1F4A5}"}),n("span",{class:"profiler-text--error profiler-text--xs",children:y.exception_class.split("::").pop()})]}),v&&v.total>0&&n(G,{href:`/_profiler/profiles/${t}?tab=routes`,panelLarge:!0,panel:n(Ho,{routesData:v}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"ROUTE"}),n("span",{class:"profiler-text--xs profiler-text--mono",children:v.matched?.pattern??"-"})]}),_&&_.total>0&&n(G,{href:`/_profiler/profiles/${t}?tab=i18n`,className:_.missing_count>0?"profiler-text--error":"profiler-text--muted",panel:n($o,{i18nData:_}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"I18N"}),n("span",{class:"profiler-text--xs profiler-text--mono",children:_.locale}),_.missing_count>0&&n("span",{class:"profiler-text--error profiler-text--xs",children:["\u26A0 ",_.missing_count]})]}),b.length>0&&n(G,{href:`/_profiler/profiles/${t}?tab=jobs`,className:b.some(S=>S.status==="failed")?"profiler-text--error":b.some(S=>S.status==="running")?"profiler-text--info":"profiler-text--success",panelLarge:!0,panel:n(Jo,{jobs:b}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"JOB"}),n("span",{children:b.length}),b.some(S=>S.status==="failed")&&n("span",{class:"profiler-text--error profiler-text--xs",children:"\u2717"}),b.some(S=>S.status==="running")&&n("span",{class:"profiler-spinner profiler-text--info profiler-text--xs","aria-hidden":"true",children:"\u25D0"})]}),m&&(m.total>0||(m.queued_count??0)>0)&&n(G,{href:`/_profiler/profiles/${t}?tab=mailer`,className:m.failed>0?"profiler-text--error":"profiler-text--success",panelLarge:!0,panel:n(zo,{mailerData:m}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"MAIL"}),m.total>0&&n("span",{children:m.total}),m.total===0&&(m.queued_count??0)>0&&n("span",{class:"profiler-text--muted",children:[m.queued_count,"q"]}),m.total>0&&(m.queued_count??0)>0&&n("span",{class:"profiler-text--muted profiler-text--xs",children:["+",m.queued_count,"q"]}),m.failed>0&&n("span",{class:"profiler-text--error profiler-text--xs",children:["\u25B2 ",m.failed]})]}),g&&g.total>0&&n(G,{href:`/_profiler/profiles/${t}?tab=env`,onOpen:r?.ensure?()=>{r.ensure()}:void 0,panel:n(Wo,{envData:g}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"ENV"}),n("span",{class:"profiler-text--muted",children:g.total})]}),n(Yo,{}),n("a",{href:"/_profiler/health",class:"profiler-toolbar-item",children:"Health"}),n("a",{href:"/_profiler",class:"profiler-toolbar-item profiler-toolbar-logo",children:[n("svg",{class:"profiler-toolbar-logo-mark",viewBox:"24 32 80 64",width:"16",height:"13","aria-hidden":"true",focusable:"false",children:n("g",{fill:"currentColor",children:[n("rect",{x:"24",y:"32",width:"80",height:"16"}),n("rect",{x:"32",y:"56",width:"40",height:"16"}),n("rect",{x:"48",y:"80",width:"48",height:"16"})]})}),"Profiler"]})]})})}var es=[1e3,1e3,2e3,2e3,4e3,4e3,8e3,8e3,15e3,15e3],gi=3e4,_i=10*6e4;function bi(e){return typeof e=="object"&&e!==null&&Number.isFinite(e.cursor)}function ts(e){let t=e.now??(()=>Date.now()),r=e.setTimer??((v,_)=>setTimeout(v,_)),o=e.clearTimer??(v=>clearTimeout(v)),i=e.cursor,s=0,a=t(),l=null,f=!1,p=!1,d=!1,c=()=>{l!==null&&(o(l),l=null)},h=()=>{if(c(),p||f||t()-a>=_i)return;let v=s<es.length?es[s]:gi;s+=1,l=r(()=>{l=null,y()},v)},y=async()=>{if(!(p||d)){d=!0;try{let v=await e.check(i);if(p)return;bi(v)&&(i=Math.max(i,v.cursor),v.updated===!0&&(s=0,a=t(),e.onUpdate()))}catch{}finally{d=!1}h()}};return h(),{pause(){f=!0,c()},resume(){p||(f=!1,c(),y())},stop(){p=!0,c()}}}var xi="/_profiler";function rs(e,t,r){let o=I(r);o.current=r,D(()=>{if(!e||t===void 0)return;let s=ts({cursor:t,check:l=>Ke({url:`${xi}/api/events/${encodeURIComponent(e)}`,method:"GET",params:{since:l}}),onUpdate:()=>o.current()}),a=()=>{document.hidden?s.pause():s.resume()};return document.addEventListener("visibilitychange",a),document.hidden&&s.pause(),()=>{document.removeEventListener("visibilitychange",a),s.stop()}},[e,t!==void 0])}function ns({token:e}){let{data:t,refetch:r,isError:o,isFetching:i}=wo(e,{query:{refetchOnWindowFocus:!1}});D(()=>{window.__PROFILER_REFRESH_TOOLBAR__=()=>{r()}},[r]),rs(e,t?.events_cursor,()=>{r()});let s=t?.profile??null;return s?n(Zo,{profile:s,token:e}):o?n("div",{class:"profiler-toolbar-container",children:n("span",{class:"profiler-toolbar-error",role:"alert",children:[n("span",{class:"profiler-text--error",children:"Profiler data could not be loaded."}),n("button",{type:"button",class:"profiler-toolbar-retry",disabled:i,onClick:()=>{r()},children:i?"Retrying...":"Retry"})]})}):null}var sr=class extends me{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(r){console.error("[Profiler] The toolbar failed to render:",r)}render(){return this.state.failed?n("div",{class:"profiler-toolbar-container",children:n("span",{class:"profiler-toolbar-error",role:"alert",children:[n("span",{class:"profiler-text--error",children:"Profiler toolbar error."}),n("button",{type:"button",class:"profiler-toolbar-retry",onClick:()=>this.setState({failed:!1}),children:"Retry"})]})}):this.props.children}};function os(e){return e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&e.code==="KeyP"}var Xr=280;function ss(e){let t=dt("profiler-theme"),r=t==="light"?"light":t==="dark"?"dark":window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark";e.forEach(o=>o.setAttribute("data-theme",r))}var Ei=new Dr({defaultOptions:{queries:{staleTime:3e4,retry:1}}});function is(){let e=document.getElementById("profiler-toolbar"),t=document.getElementById("profiler-toolbar-toggle");if(!e||!t)return;let r=e.dataset.token;if(!r)return;window.__PROFILER_TOOLBAR_TEARDOWN__?.();let o=new AbortController,{signal:i}=o,s=()=>{o.abort(),mr(null,e),window.__PROFILER_TOOLBAR_TEARDOWN__===s&&delete window.__PROFILER_TOOLBAR_TEARDOWN__};window.__PROFILER_TOOLBAR_TEARDOWN__=s,document.addEventListener("turbo:load",()=>{e.isConnected||s()},{signal:i});let a=[e,t];ss(a),window.addEventListener("storage",p=>{p.key==="profiler-theme"&&ss(a)},{signal:i}),window.addEventListener("profiler:theme-change",(p=>{p.detail?.theme&&a.forEach(d=>d.setAttribute("data-theme",p.detail.theme))}),{signal:i});let l=dt("profiler-toolbar-collapsed")==="true";t.dataset.collapsed=String(l),l&&!e.style.transform&&(e.style.animation="none",e.style.transform="translateX(calc(100% + 44px))"),l||setTimeout(()=>{e.style.animation="none"},400);function f(){let p=!l;l=p,Yt("profiler-toolbar-collapsed",String(p)),t.dataset.collapsed=String(p),p?(e.style.transition=`transform ${Xr}ms cubic-bezier(0.4,0,0.2,1)`,e.style.transform="translateX(calc(100% + 44px))"):(e.style.transition="none",e.style.transform="translateX(calc(100% + 44px))",e.offsetWidth,e.style.transition=`transform ${Xr}ms cubic-bezier(0.4,0,0.2,1)`,e.style.transform="translateX(0)",setTimeout(()=>{e.style.transform="",e.style.transition=""},Xr+50))}t.addEventListener("click",f,{signal:i}),document.addEventListener("keydown",p=>{os(p)&&(p.preventDefault(),f())},{signal:i}),mr(n(Lr,{client:Ei,children:n(sr,{children:n(ns,{token:r})})}),e)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",is):is();})();
2
+ `)[0]||t.formatted).trim()})]},r)),e.count>5&&n("div",{class:"profiler-more",children:["+ ",e.count-5," more dumps"]})]})]})}function ai(e){return{GET:"badge-info",POST:"badge-success",PUT:"badge-warning",PATCH:"badge-warning",DELETE:"badge-error"}[e]||""}function Go({httpData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Outbound HTTP",n("span",{class:"profiler-float-right",children:[e.total_requests," requests \xB7 ",e.total_duration.toFixed(2)," ms"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["http.count","http.duration"]}),e.requests.slice(0,10).map((r,o)=>{let i=r.status>=400||r.status===0,s=r.duration>=500,a=i?"profiler-ajax-card--error":s?"profiler-ajax-card--warning":"profiler-ajax-card--success",l=(()=>{try{return new URL(r.url).host}catch{return r.url}})();return n("div",{class:`profiler-ajax-card ${a}`,children:n("div",{class:"profiler-ajax-card__row",children:[n("div",{class:"profiler-flex profiler-flex--gap-2",children:[n("span",{class:`badge ${ai(r.method)}`,children:r.method}),n("span",{class:"profiler-text--xs profiler-text--truncate",children:l})]}),n("div",{class:"profiler-flex profiler-flex--gap-2",children:[n("span",{class:`profiler-text--xs ${i?"profiler-text--error":"profiler-text--success"}`,children:r.status===0?"ERR":r.status}),n("span",{class:`profiler-text--xs ${s?"profiler-text--error":"profiler-text--muted"}`,children:[r.duration.toFixed(2)," ms"]})]})]})},o)}),e.total_requests>10&&n("div",{class:"profiler-more",children:["+ ",e.total_requests-10," more"]})]})]})}function ui(e){switch(e){case"ERROR":case"FATAL":return"var(--profiler-error, #ef4444)";case"WARN":return"var(--profiler-warning, #f59e0b)";case"INFO":return"var(--profiler-success, #22c55e)";default:return"var(--profiler-muted, #6b7280)"}}function jo({logData:e}){let t=e.logs.slice(-5).reverse();return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Logs (",e.count,")",e.errors>0&&n("span",{style:"color:var(--profiler-error,#ef4444);margin-left:8px;",children:[e.errors," error",e.errors!==1?"s":""]}),e.warnings>0&&e.errors===0&&n("span",{style:"color:var(--profiler-warning,#f59e0b);margin-left:8px;",children:[e.warnings," warning",e.warnings!==1?"s":""]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["logs.count"]}),t.map((r,o)=>n("div",{class:"profiler-toolbar-panel-row",style:"align-items:flex-start;gap:6px;",children:[n("span",{class:"profiler-text--xs",style:`color:${ui(r.level)};font-weight:600;min-width:40px;`,children:r.level}),n("span",{class:"profiler-text--xs profiler-text--truncate",style:"flex:1;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",children:r.message})]},o)),e.count>5&&n("div",{class:"profiler-more",children:["+ ",e.count-5," more messages"]})]})]})}function Bo({exceptionData:e}){let t=e.backtrace?.find(r=>r.app_frame);return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",style:"color:var(--profiler-error,#ef4444);",children:["\u{1F4A5} ",e.exception_class]}),n("div",{class:"profiler-toolbar-panel-content",children:n("div",{class:"profiler-toolbar-panel-row",style:"flex-direction:column;align-items:flex-start;gap:4px;",children:[n("span",{class:"profiler-text--xs",style:"max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",children:e.message}),t&&n("span",{class:"profiler-text--xs profiler-text--muted",style:"max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",children:t.location})]})})]})}function Ho({routesData:e}){let{total:t,matched:r}=e;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Routes",n("span",{class:"profiler-float-right",children:[t," routes"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:r?n(E,{children:[n("div",{class:"profiler-section__header",children:"Matched Route"}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Pattern"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:r.pattern})]}),r.name&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Name"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:[r.name,"_path"]})]}),r.controller_action&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Controller#Action"}),n("strong",{class:"profiler-text--xs profiler-text--mono",children:r.controller_action})]})]}):n("div",{class:"profiler-toolbar-panel-row",children:n("span",{class:"profiler-text--muted",children:"No route matched"})})})]})}function $o({i18nData:e}){let t=e.lookups.filter(s=>s.missing),r=e.lookups.filter(s=>!s.missing),o=[...t,...r].slice(0,5),i=e.total-5;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["I18n",n("span",{style:"margin-left:6px;font-weight:400;color:var(--profiler-muted,#6b7280);",children:["[",e.locale,"]"]}),e.missing_count>0&&n("span",{style:"color:var(--profiler-error,#ef4444);margin-left:8px;",children:[e.missing_count," missing"]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[o.map((s,a)=>n("div",{class:"profiler-toolbar-panel-row",style:"align-items:flex-start;gap:6px;",children:[n("span",{class:"profiler-text--xs profiler-text--truncate",style:`flex:1;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;${s.missing?"color:var(--profiler-error,#ef4444);":""}`,children:s.key}),s.missing&&n("span",{class:"profiler-text--xs",style:"color:var(--profiler-error,#ef4444);font-weight:600;",children:"\u26A0"})]},a)),i>0&&n("div",{class:"profiler-more",children:["+ ",i," more keys"]})]})]})}function li({job:e}){if(e.status==="running")return n("strong",{class:"profiler-text--xs profiler-text--mono profiler-text--info",children:[n("span",{class:"profiler-spinner","aria-hidden":"true",children:"\u25D0"})," running"]});let t=e.status==="failed";return n("strong",{class:`profiler-text--xs profiler-text--mono ${t?"profiler-text--error":"profiler-text--success"}`,children:[t?"\u2717":"\u2713"," ",e.duration?.toFixed(0),"ms"]})}function Jo({jobs:e}){let t=e.filter(a=>a.status==="running").length,r=e.filter(a=>a.status==="completed").length,o=e.filter(a=>a.status==="failed").length,i=e.slice(0,5),s=e.length-5;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Background Jobs",n("span",{class:"profiler-float-right",children:[e.length," job",e.length!==1?"s":""]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[n(H,{ids:["jobs.count"]}),n("div",{class:"profiler-section__header",children:"Summary"}),t>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Running"}),n("strong",{class:"profiler-text--info",children:t})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Completed"}),n("strong",{class:r>0?"profiler-text--success":"profiler-text--muted",children:r})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Failed"}),n("strong",{class:o>0?"profiler-text--error":"profiler-text--muted",children:o})]}),n("div",{class:"profiler-section__header profiler-mt-3",children:"Last jobs"}),i.map((a,l)=>n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{class:"profiler-text--xs profiler-text--mono",children:a.job_class}),n(li,{job:a})]},l)),s>0&&n("div",{class:"profiler-more",children:["+ ",s," more"]})]})]})}var pi=50,or=e=>e.stopPropagation(),ci={onpointerdown:or},zr=e=>{e.preventDefault(),e.stopPropagation()};function fi(){let{enabled:e,env:t}=ie(),[r,o]=L("");if(!e||!t)return null;let i=Object.keys(t.variables).sort(),s=r.trim().toLowerCase(),a=s?i.filter(f=>f.toLowerCase().includes(s)):i,l=a.slice(0,pi);return n(E,{children:[n("input",{type:"search",class:"profiler-pin-filter",placeholder:"Filter by name","aria-label":"Filter variables by name",value:r,onInput:f=>o(f.target.value),onClick:zr,onAuxClick:zr,onMouseDown:or,...ci,onDragStart:zr,onKeyDown:or,onKeyUp:or}),t.status==="loading"&&i.length===0&&n("div",{class:"profiler-pin-note",children:"Loading..."}),t.status==="error"&&n("div",{class:"profiler-pin-note",children:"Variables could not be loaded."}),l.map(f=>n("div",{class:"profiler-toolbar-panel-row profiler-pin-row",children:[n("span",{class:"profiler-pin-name",title:f,children:f}),n("strong",{class:"profiler-pin-envvalue",title:t.variables[f],children:t.variables[f]}),n(ge,{pin:{kind:"env",name:f},label:f})]},f)),a.length>l.length&&n("div",{class:"profiler-pin-note",children:[a.length-l.length," more, refine the filter"]}),s&&a.length===0&&i.length>0&&n("div",{class:"profiler-pin-note",children:"No variable matches"})]})}function Wo({envData:e}){return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:"Environment"}),n("div",{class:"profiler-toolbar-panel-content",children:[n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Variables"}),n("strong",{children:e.editor==="off"?"disabled":e.total})]}),e.editor!=="off"&&n(re,{children:n(fi,{})}),n("div",{class:"profiler-pin-note",children:"Click the panel to open the Env tab"})]})]})}function zo({mailerData:e}){let t=e.failed>0||e.loop_warnings.length>0;return n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:["Mailers",n("span",{class:"profiler-float-right",children:[e.total," email",e.total!==1?"s":""]})]}),n("div",{class:"profiler-toolbar-panel-content",children:[e.deliver_now>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"deliver_now"}),n("strong",{children:e.deliver_now})]}),e.deliver_later>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"deliver_later"}),n("strong",{children:e.deliver_later})]}),(e.queued_count??0)>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Queued"}),n("strong",{children:e.queued_count})]}),e.multi_part_count>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Multi-part"}),n("strong",{children:e.multi_part_count})]}),e.failed>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Errors"}),n("strong",{class:"profiler-text--error",children:e.failed})]}),e.loop_warnings.length>0&&n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{class:"profiler-text--warning",children:"\u26A0\uFE0F Loop detected"}),n("strong",{class:"profiler-text--warning",children:e.loop_warnings.length})]}),[...e.emails,...e.errors].slice(0,3).map((r,o)=>n("div",{class:"profiler-toolbar-panel-row profiler-text--sm",children:[n("span",{class:"profiler-text--muted",children:[r.mailer_class,"#",r.action]}),n("span",{class:r.error?"profiler-text--error":"profiler-text--success",children:r.error?"\u274C":"\u2705"})]},o)),e.total>3&&n("div",{class:"profiler-toolbar-panel-row profiler-text--muted profiler-text--xs",children:["+",e.total-3," more\u2026"]})]})]})}function Xo({label:e,onRemove:t}){return n("button",{type:"button",class:"profiler-pin-remove","aria-label":`Unpin ${e}`,title:`Unpin ${e}`,onClick:t,children:n("span",{"aria-hidden":"true",children:"\xD7"})})}function yi({id:e,onRemove:t}){let{profile:r}=ie(),o=rr(e),i=nr(o,r),s=o?.label??e;return n("span",{class:`profiler-pin${i.absent?" is-absent":""}`,title:i.absent?`${s}: not in this profile`:s,children:[n("span",{class:"profiler-pin-label",children:s}),n("span",{class:`profiler-pin-value ${i.className}`,children:i.text}),n(Xo,{label:s,onRemove:t})]})}function di(e){return e==="true"||e==="false"}function mi({name:e,env:t,onRemove:r}){let[o,i]=L(!1),[s,a]=L(""),[l,f]=L(!1),[p,d]=L(null),c=I(null),h=I(null),y=I(null);D(()=>{o&&c.current?.focus()},[o]),D(()=>{if(l||!y.current)return;let N=y.current==="input"?c.current:h.current;y.current=null,N?.focus()});let v=t.status==="ready"||Object.keys(t.variables).length>0,_=Object.prototype.hasOwnProperty.call(t.variables,e),g=_?t.variables[e]:void 0,m=g!==void 0&&At(g),b=Object.prototype.hasOwnProperty.call(t.overrides,e),R=t.editor==="write",w=R&&t.writable.includes(e),A=v&&_&&!m&&w&&!t.stale,j=b&&w&&!t.stale,ne=async N=>{f(!0),d(null);try{await t.update(e,N),i(!1),y.current="value"}catch(as){d(as.message),y.current=o?"input":"value"}finally{f(!1)}},S=()=>{if(!l){if(At(s)){d("A value containing [FILTERED] cannot be sent");return}if(s===""){d("Empty value refused here (it would delete the variable)");return}if(s===g){i(!1);return}ne(s)}},Q=N=>{N.stopPropagation(),N.key==="Enter"?(N.preventDefault(),S()):N.key==="Escape"&&(N.preventDefault(),i(!1),d(null),y.current="value")},$=N=>N.stopPropagation(),Se=N=>{N.preventDefault(),N.stopPropagation()},Qt={onpointerdown:$},We=async()=>{f(!0),d(null);try{await t.reset(e)}catch(N){d(N.message),y.current="value"}finally{f(!1)}},ee=e;v?_?m?ee=`${e}: ${g===Vr?"hidden":"partly hidden"}, cannot be edited`:t.stale?ee=`${e}: may be out of date, refresh failed`:R&&!w?ee=`${e}: read only, not in env_write_allowlist`:R||(ee=`${e}: read only`):ee=`${e}: not set`:ee=t.status==="error"?`${e}: could not be loaded`:`${e}: loading`;let Fe;return v?_?o?Fe=n("input",{ref:c,class:"profiler-pin-input",type:"text",value:s,readOnly:l,"aria-label":`New value of ${e}`,onInput:N=>a(N.target.value),onKeyDown:Q,onAuxClick:Se,onMouseDown:$,...Qt,onDragStart:Se,onBlur:()=>{l||(i(!1),d(null))}}):A&&di(g)?Fe=n("button",{ref:h,type:"button",role:"switch","aria-checked":g==="true","aria-disabled":l?"true":void 0,"aria-label":`${e}`,class:`profiler-pin-switch${g==="true"?" is-on":""}`,onClick:()=>{l||ne(g==="true"?"false":"true")},onBlur:()=>{l||d(null)},children:[n("span",{class:"profiler-pin-switch-knob","aria-hidden":"true"}),n("span",{class:"profiler-pin-value",children:g})]}):A?Fe=n("button",{ref:h,type:"button",class:"profiler-pin-value profiler-pin-edit",title:"Edit the value","aria-label":`Edit ${e}`,onClick:()=>{a(g),d(null),i(!0)},onBlur:()=>{l||d(null)},children:g===""?"(empty)":g}):Fe=n("span",{class:"profiler-pin-value",children:g===""?"(empty)":g}):Fe=n("span",{class:"profiler-pin-value",children:"not set"}):Fe=n("span",{class:"profiler-pin-value",children:t.status==="error"?"?":"\u2026"}),n("span",{class:`profiler-pin profiler-pin--env${v&&!_?" is-absent":""}${b?" is-overridden":""}${p?" has-error":""}${t.stale?" is-stale":""}`,title:ee,children:[n("span",{class:"profiler-pin-label",children:e}),Fe,t.stale&&v&&n("button",{type:"button",class:"profiler-pin-refresh","aria-label":`Refresh ${e}`,title:"Out of date, read it again",onClick:()=>{t.refresh()},children:n("span",{"aria-hidden":"true",children:"\u27F3"})}),b&&n("span",{class:"profiler-pin-badge",children:"overridden"}),j&&!o&&n("button",{type:"button",class:"profiler-pin-reset","aria-label":`Reset ${e} to its original value`,title:"Reset to the original value",disabled:l,onClick:We,children:n("span",{"aria-hidden":"true",children:"\u21BA"})}),n(Xo,{label:e,onRemove:r}),p&&n("span",{class:"profiler-pin-error",role:"alert",children:p})]})}function hi(){let{enabled:e,profile:t,pins:r,store:o,env:i}=ie();return!e||!o||!t||!i||r.length===0?null:n("div",{class:"profiler-pinbar",role:"group","aria-label":"Pinned values",children:r.map(s=>s.kind==="env"?n(re,{children:n(mi,{name:s.name,env:i,onRemove:()=>o.remove(s)})},`env:${s.name}`):n(re,{children:n(yi,{id:s.id,onRemove:()=>o.remove(s)})},`metric:${s.id}`))})}function Yo(){return n(re,{children:n(hi,{})})}function Ti(e){return new Date(e).toLocaleTimeString("en",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Zo({profile:e,token:t}){return n(Oo,{profile:e,children:n(vi,{profile:e,token:t})})}function vi({profile:e,token:t}){let{env:r}=ie(),o=e.collectors_data||{},i=o.request,s=o.database,a=o.ajax,l=o.performance,f=o.view,p=o.cache,d=o.dump,c=o.http,h=o.logs,y=o.exception,v=o.routes,_=o.i18n,g=o.env,m=o.mailer,b=e.child_jobs??[],R=Jr(e.status),w=Wr(e.duration),A=(s?.slow_queries??0)>0?"profiler-text--error":"profiler-text--success",j=(a?.total_requests??0)>20?"profiler-text--error":"profiler-text--success",ne=(p?.hit_rate??0)>80?"profiler-text--success":"profiler-text--warning";return n(E,{children:n("div",{class:"profiler-toolbar-container",children:[n("div",{class:"profiler-toolbar-main",children:[i&&n(E,{children:[n(G,{href:`/_profiler/profiles/${t}?tab=request`,className:R,panelLarge:!0,panel:n(Qo,{profile:e,requestData:i}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:e.method}),n("span",{children:e.status})]}),n(G,{href:`/_profiler/profiles/${t}?tab=request`,className:w,panel:n(E,{children:[n("div",{class:"profiler-toolbar-panel-header",children:"Performance"}),n("div",{class:"profiler-toolbar-panel-content",children:[n("div",{class:"profiler-toolbar-panel-row profiler-pin-row",children:[n("span",{children:"Duration"}),n("strong",{class:w,children:[e.duration.toFixed(2)," ms"]}),n(ge,{pin:{kind:"metric",id:"request.duration"},label:"Duration"})]}),qt(e)!=null&&n("div",{class:"profiler-toolbar-panel-row profiler-pin-row",title:Do,children:[n("span",{children:"Allocations"}),n("strong",{children:Mo(qt(e))}),n(ge,{pin:{kind:"metric",id:"request.allocations"},label:"Allocations"})]}),n("div",{class:"profiler-toolbar-panel-row",children:[n("span",{children:"Started"}),n("strong",{children:Ti(e.started_at)})]})]})]}),children:[n("span",{class:w,children:e.duration.toFixed(2)}),n("span",{class:"profiler-text--muted profiler-text--xs",children:"ms"})]})]}),s?.total_queries!==void 0&&n(G,{href:`/_profiler/profiles/${t}?tab=database`,className:A,panelLarge:!0,panel:n(Ko,{dbData:s}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"DB"}),n("span",{children:s.total_queries}),(s.slow_queries??0)>0&&n("span",{class:"profiler-text--error profiler-text--xs",children:["\u25B2 ",s.slow_queries]}),n("span",{class:"profiler-text--muted profiler-text--xs",children:[s.total_duration.toFixed(1),"ms"]})]}),a&&a.total_requests>0&&n(G,{href:`/_profiler/profiles/${t}?tab=ajax`,className:j,panelLarge:!0,panel:n(So,{ajaxData:a}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"XHR"}),n("span",{children:a.total_requests}),n("span",{class:"profiler-text--muted profiler-text--xs",children:[a.total_duration.toFixed(1),"ms"]})]}),l?.events&&l.total_events>0&&n(G,{href:`/_profiler/profiles/${t}?tab=timeline`,panel:n(Fo,{perfData:l}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"EVT"}),n("span",{children:l.total_events})]}),f?.total_views!==void 0&&n(G,{href:`/_profiler/profiles/${t}?tab=views`,panel:n(ko,{viewData:f}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"VIEW"}),n("span",{children:f.total_views}),f.total_partials>0&&n("span",{class:"profiler-text--muted profiler-text--xs",children:["+",f.total_partials,"p"]})]}),p&&p.total_reads>0&&n(G,{href:`/_profiler/profiles/${t}?tab=cache`,className:ne,panel:n(Uo,{cacheData:p}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"CACHE"}),n("span",{class:ne,children:[p.hit_rate,"%"]})]}),c&&c.total_requests>0&&n(G,{href:`/_profiler/profiles/${t}?tab=http`,className:c.error_requests>0||c.slow_requests>0?"profiler-text--error":"profiler-text--success",panelLarge:!0,panel:n(Go,{httpData:c}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"HTTP"}),n("span",{children:c.total_requests}),c.slow_requests>0&&n("span",{class:"profiler-text--error profiler-text--xs",children:["\u25B2 ",c.slow_requests]}),n("span",{class:"profiler-text--muted profiler-text--xs",children:[c.total_duration.toFixed(1),"ms"]})]}),d&&d.count>0&&n(G,{href:`/_profiler/profiles/${t}?tab=dump`,className:"profiler-text--warning",panelLarge:!0,panel:n(Vo,{dumpData:d}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"DUMP"}),n("span",{class:"profiler-text--warning",children:d.count})]}),h&&h.count>0&&n(G,{href:`/_profiler/profiles/${t}?tab=logs`,className:h.errors>0?"profiler-text--error":h.warnings>0?"profiler-text--warning":"profiler-text--muted",panelLarge:!0,panel:n(jo,{logData:h}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"LOG"}),n("span",{class:h.errors>0?"profiler-text--error":h.warnings>0?"profiler-text--warning":"",children:h.errors>0?h.errors:h.warnings>0?h.warnings:h.count})]}),y&&y.exception_class&&n(G,{href:`/_profiler/profiles/${t}?tab=exception`,className:"profiler-text--error",panelLarge:!0,panel:n(Bo,{exceptionData:y}),children:[n("span",{class:"profiler-text--error profiler-text--xs",children:"\u{1F4A5}"}),n("span",{class:"profiler-text--error profiler-text--xs",children:y.exception_class.split("::").pop()})]}),v&&v.total>0&&n(G,{href:`/_profiler/profiles/${t}?tab=routes`,panelLarge:!0,panel:n(Ho,{routesData:v}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"ROUTE"}),n("span",{class:"profiler-text--xs profiler-text--mono",children:v.matched?.pattern??"-"})]}),_&&_.total>0&&n(G,{href:`/_profiler/profiles/${t}?tab=i18n`,className:_.missing_count>0?"profiler-text--error":"profiler-text--muted",panel:n($o,{i18nData:_}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"I18N"}),n("span",{class:"profiler-text--xs profiler-text--mono",children:_.locale}),_.missing_count>0&&n("span",{class:"profiler-text--error profiler-text--xs",children:["\u26A0 ",_.missing_count]})]}),b.length>0&&n(G,{href:`/_profiler/profiles/${t}?tab=jobs`,className:b.some(S=>S.status==="failed")?"profiler-text--error":b.some(S=>S.status==="running")?"profiler-text--info":"profiler-text--success",panelLarge:!0,panel:n(Jo,{jobs:b}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"JOB"}),n("span",{children:b.length}),b.some(S=>S.status==="failed")&&n("span",{class:"profiler-text--error profiler-text--xs",children:"\u2717"}),b.some(S=>S.status==="running")&&n("span",{class:"profiler-spinner profiler-text--info profiler-text--xs","aria-hidden":"true",children:"\u25D0"})]}),m&&(m.total>0||(m.queued_count??0)>0)&&n(G,{href:`/_profiler/profiles/${t}?tab=mailer`,className:m.failed>0?"profiler-text--error":"profiler-text--success",panelLarge:!0,panel:n(zo,{mailerData:m}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"MAIL"}),m.total>0&&n("span",{children:m.total}),m.total===0&&(m.queued_count??0)>0&&n("span",{class:"profiler-text--muted",children:[m.queued_count,"q"]}),m.total>0&&(m.queued_count??0)>0&&n("span",{class:"profiler-text--muted profiler-text--xs",children:["+",m.queued_count,"q"]}),m.failed>0&&n("span",{class:"profiler-text--error profiler-text--xs",children:["\u25B2 ",m.failed]})]}),g&&g.total>0&&n(G,{href:`/_profiler/profiles/${t}?tab=env`,onOpen:r?.ensure?()=>{r.ensure()}:void 0,panel:n(Wo,{envData:g}),children:[n("span",{class:"profiler-text--muted profiler-text--xs",children:"ENV"}),n("span",{class:"profiler-text--muted",children:g.total})]}),n("a",{href:"/_profiler/health",class:"profiler-toolbar-item",children:"Health"}),n("a",{href:"/_profiler",class:"profiler-toolbar-item profiler-toolbar-logo",children:[n("svg",{class:"profiler-toolbar-logo-mark",viewBox:"24 32 80 64",width:"16",height:"13","aria-hidden":"true",focusable:"false",children:n("g",{fill:"currentColor",children:[n("rect",{x:"24",y:"32",width:"80",height:"16"}),n("rect",{x:"32",y:"56",width:"40",height:"16"}),n("rect",{x:"48",y:"80",width:"48",height:"16"})]})}),"Profiler"]})]}),n(Yo,{})]})})}var es=[1e3,1e3,2e3,2e3,4e3,4e3,8e3,8e3,15e3,15e3],gi=3e4,_i=10*6e4;function bi(e){return typeof e=="object"&&e!==null&&Number.isFinite(e.cursor)}function ts(e){let t=e.now??(()=>Date.now()),r=e.setTimer??((v,_)=>setTimeout(v,_)),o=e.clearTimer??(v=>clearTimeout(v)),i=e.cursor,s=0,a=t(),l=null,f=!1,p=!1,d=!1,c=()=>{l!==null&&(o(l),l=null)},h=()=>{if(c(),p||f||t()-a>=_i)return;let v=s<es.length?es[s]:gi;s+=1,l=r(()=>{l=null,y()},v)},y=async()=>{if(!(p||d)){d=!0;try{let v=await e.check(i);if(p)return;bi(v)&&(i=Math.max(i,v.cursor),v.updated===!0&&(s=0,a=t(),e.onUpdate()))}catch{}finally{d=!1}h()}};return h(),{pause(){f=!0,c()},resume(){p||(f=!1,c(),y())},stop(){p=!0,c()}}}var xi="/_profiler";function rs(e,t,r){let o=I(r);o.current=r,D(()=>{if(!e||t===void 0)return;let s=ts({cursor:t,check:l=>Ke({url:`${xi}/api/events/${encodeURIComponent(e)}`,method:"GET",params:{since:l}}),onUpdate:()=>o.current()}),a=()=>{document.hidden?s.pause():s.resume()};return document.addEventListener("visibilitychange",a),document.hidden&&s.pause(),()=>{document.removeEventListener("visibilitychange",a),s.stop()}},[e,t!==void 0])}function ns({token:e}){let{data:t,refetch:r,isError:o,isFetching:i}=wo(e,{query:{refetchOnWindowFocus:!1}});D(()=>{window.__PROFILER_REFRESH_TOOLBAR__=()=>{r()}},[r]),rs(e,t?.events_cursor,()=>{r()});let s=t?.profile??null;return s?n(Zo,{profile:s,token:e}):o?n("div",{class:"profiler-toolbar-container",children:n("span",{class:"profiler-toolbar-error",role:"alert",children:[n("span",{class:"profiler-text--error",children:"Profiler data could not be loaded."}),n("button",{type:"button",class:"profiler-toolbar-retry",disabled:i,onClick:()=>{r()},children:i?"Retrying...":"Retry"})]})}):null}var sr=class extends me{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(r){console.error("[Profiler] The toolbar failed to render:",r)}render(){return this.state.failed?n("div",{class:"profiler-toolbar-container",children:n("span",{class:"profiler-toolbar-error",role:"alert",children:[n("span",{class:"profiler-text--error",children:"Profiler toolbar error."}),n("button",{type:"button",class:"profiler-toolbar-retry",onClick:()=>this.setState({failed:!1}),children:"Retry"})]})}):this.props.children}};function os(e){return e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&e.code==="KeyP"}var Xr=280;function ss(e){let t=dt("profiler-theme"),r=t==="light"?"light":t==="dark"?"dark":window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark";e.forEach(o=>o.setAttribute("data-theme",r))}var Ei=new Dr({defaultOptions:{queries:{staleTime:3e4,retry:1}}});function is(){let e=document.getElementById("profiler-toolbar"),t=document.getElementById("profiler-toolbar-toggle");if(!e||!t)return;let r=e.dataset.token;if(!r)return;window.__PROFILER_TOOLBAR_TEARDOWN__?.();let o=new AbortController,{signal:i}=o,s=()=>{o.abort(),mr(null,e),window.__PROFILER_TOOLBAR_TEARDOWN__===s&&delete window.__PROFILER_TOOLBAR_TEARDOWN__};window.__PROFILER_TOOLBAR_TEARDOWN__=s,document.addEventListener("turbo:load",()=>{e.isConnected||s()},{signal:i});let a=[e,t];ss(a),window.addEventListener("storage",p=>{p.key==="profiler-theme"&&ss(a)},{signal:i}),window.addEventListener("profiler:theme-change",(p=>{p.detail?.theme&&a.forEach(d=>d.setAttribute("data-theme",p.detail.theme))}),{signal:i});let l=dt("profiler-toolbar-collapsed")==="true";t.dataset.collapsed=String(l),l&&!e.style.transform&&(e.style.animation="none",e.style.transform="translateX(calc(100% + 44px))"),l||setTimeout(()=>{e.style.animation="none"},400);function f(){let p=!l;l=p,Yt("profiler-toolbar-collapsed",String(p)),t.dataset.collapsed=String(p),p?(e.style.transition=`transform ${Xr}ms cubic-bezier(0.4,0,0.2,1)`,e.style.transform="translateX(calc(100% + 44px))"):(e.style.transition="none",e.style.transform="translateX(calc(100% + 44px))",e.offsetWidth,e.style.transition=`transform ${Xr}ms cubic-bezier(0.4,0,0.2,1)`,e.style.transform="translateX(0)",setTimeout(()=>{e.style.transform="",e.style.transition=""},Xr+50))}t.addEventListener("click",f,{signal:i}),document.addEventListener("keydown",p=>{os(p)&&(p.preventDefault(),f())},{signal:i}),mr(n(Lr,{client:Ei,children:n(sr,{children:n(ns,{token:r})})}),e)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",is):is();})();
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap";:root,[data-theme=dark]{--profiler-terminal-bg: #0a0e15;--profiler-terminal-text: #cdd6e0;--ansi-red: #f87171;--ansi-green: #4ade80;--ansi-yellow: #fbbf24;--ansi-blue: #60a5fa;--ansi-purple: #c084fc;--ansi-cyan: #67e8f9;--profiler-bg: #080b10;--profiler-bg-light: #0d1117;--profiler-bg-lighter: #131920;--profiler-bg-elevated: #1a2030;--profiler-bg-overlay: rgba(8, 11, 16, 0.96);--profiler-text: #eef2f7;--profiler-text-secondary: #a8b4c2;--profiler-text-muted: #5e7080;--profiler-text-subtle: #3d4f5f;--profiler-text-on-accent: #08090c;--profiler-accent: #f59e0b;--profiler-accent-hover: #fbbf24;--profiler-accent-dim: #92600a;--profiler-accent-bg: rgba(245, 158, 11, 0.1);--profiler-accent-glow: rgba(245, 158, 11, 0.35);--profiler-success: #22c55e;--profiler-success-bg: rgba(34, 197, 94, 0.1);--profiler-success-glow: rgba(34, 197, 94, 0.3);--profiler-warning: #fb923c;--profiler-warning-bg: rgba(251, 146, 60, 0.1);--profiler-warning-glow: rgba(251, 146, 60, 0.3);--profiler-error: #f87171;--profiler-error-bg: rgba(248, 113, 113, 0.1);--profiler-error-glow: rgba(248, 113, 113, 0.3);--profiler-info: #60a5fa;--profiler-info-bg: rgba(96, 165, 250, 0.1);--profiler-info-glow: rgba(96, 165, 250, 0.3);--profiler-border: rgba(255, 255, 255, 0.07);--profiler-border-strong: rgba(255, 255, 255, 0.14);--profiler-border-accent: rgba(245, 158, 11, 0.3);--profiler-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4);--profiler-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);--profiler-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);--profiler-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);--profiler-glass-bg: rgba(13, 17, 23, 0.85);--profiler-glass-border: rgba(255, 255, 255, 0.06);--profiler-blur: blur(20px) saturate(180%)}[data-theme=light]{--profiler-terminal-bg: #1c1f26;--profiler-terminal-text: #d4dbe3;--ansi-red: #f87171;--ansi-green: #4ade80;--ansi-yellow: #fbbf24;--ansi-blue: #60a5fa;--ansi-purple: #c084fc;--ansi-cyan: #67e8f9;--profiler-bg: #f5f3ef;--profiler-bg-light: #edeae3;--profiler-bg-lighter: #e3ded5;--profiler-bg-elevated: #ffffff;--profiler-bg-overlay: rgba(245, 243, 239, 0.96);--profiler-text: #1c1410;--profiler-text-secondary: #4a3f35;--profiler-text-muted: #8a7a6e;--profiler-text-subtle: #b5a898;--profiler-text-on-accent: #ffffff;--profiler-accent: #b45309;--profiler-accent-hover: #92400e;--profiler-accent-dim: #d97706;--profiler-accent-bg: rgba(180, 83, 9, 0.08);--profiler-accent-glow: rgba(180, 83, 9, 0.2);--profiler-success: #15803d;--profiler-success-bg: rgba(21, 128, 61, 0.08);--profiler-success-glow: rgba(21, 128, 61, 0.2);--profiler-warning: #c2410c;--profiler-warning-bg: rgba(194, 65, 12, 0.08);--profiler-warning-glow: rgba(194, 65, 12, 0.2);--profiler-error: #dc2626;--profiler-error-bg: rgba(220, 38, 38, 0.08);--profiler-error-glow: rgba(220, 38, 38, 0.2);--profiler-info: #1d4ed8;--profiler-info-bg: rgba(29, 78, 216, 0.08);--profiler-info-glow: rgba(29, 78, 216, 0.2);--profiler-border: rgba(28, 20, 16, 0.1);--profiler-border-strong: rgba(28, 20, 16, 0.2);--profiler-border-accent: rgba(180, 83, 9, 0.3);--profiler-shadow-sm: 0 1px 3px rgba(28, 20, 16, 0.08);--profiler-shadow-md: 0 4px 12px rgba(28, 20, 16, 0.1);--profiler-shadow-lg: 0 8px 24px rgba(28, 20, 16, 0.12);--profiler-shadow-xl: 0 16px 40px rgba(28, 20, 16, 0.15);--profiler-glass-bg: rgba(245, 243, 239, 0.88);--profiler-glass-border: rgba(28, 20, 16, 0.08);--profiler-blur: blur(16px) saturate(140%)}@media(prefers-color-scheme: light){:root:not([data-theme]){--profiler-terminal-bg: #1c1f26;--profiler-terminal-text: #d4dbe3;--ansi-red: #f87171;--ansi-green: #4ade80;--ansi-yellow: #fbbf24;--ansi-blue: #60a5fa;--ansi-purple: #c084fc;--ansi-cyan: #67e8f9;--profiler-bg: #f5f3ef;--profiler-bg-light: #edeae3;--profiler-bg-lighter: #e3ded5;--profiler-bg-elevated: #ffffff;--profiler-bg-overlay: rgba(245, 243, 239, 0.96);--profiler-text: #1c1410;--profiler-text-secondary: #4a3f35;--profiler-text-muted: #8a7a6e;--profiler-text-subtle: #b5a898;--profiler-text-on-accent: #ffffff;--profiler-accent: #b45309;--profiler-accent-hover: #92400e;--profiler-accent-dim: #d97706;--profiler-accent-bg: rgba(180, 83, 9, 0.08);--profiler-accent-glow: rgba(180, 83, 9, 0.2);--profiler-success: #15803d;--profiler-success-bg: rgba(21, 128, 61, 0.08);--profiler-success-glow: rgba(21, 128, 61, 0.2);--profiler-warning: #c2410c;--profiler-warning-bg: rgba(194, 65, 12, 0.08);--profiler-warning-glow: rgba(194, 65, 12, 0.2);--profiler-error: #dc2626;--profiler-error-bg: rgba(220, 38, 38, 0.08);--profiler-error-glow: rgba(220, 38, 38, 0.2);--profiler-info: #1d4ed8;--profiler-info-bg: rgba(29, 78, 216, 0.08);--profiler-info-glow: rgba(29, 78, 216, 0.2);--profiler-border: rgba(28, 20, 16, 0.1);--profiler-border-strong: rgba(28, 20, 16, 0.2);--profiler-border-accent: rgba(180, 83, 9, 0.3);--profiler-shadow-sm: 0 1px 3px rgba(28, 20, 16, 0.08);--profiler-shadow-md: 0 4px 12px rgba(28, 20, 16, 0.1);--profiler-shadow-lg: 0 8px 24px rgba(28, 20, 16, 0.12);--profiler-shadow-xl: 0 16px 40px rgba(28, 20, 16, 0.15);--profiler-glass-bg: rgba(245, 243, 239, 0.88);--profiler-glass-border: rgba(28, 20, 16, 0.08);--profiler-blur: blur(16px) saturate(140%)}}:root{--profiler-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--profiler-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;--profiler-text-xs: 10px;--profiler-text-sm: 11px;--profiler-text-base: 13px;--profiler-text-lg: 15px;--profiler-text-xl: 18px;--profiler-text-2xl: 22px;--profiler-text-3xl: 28px;--profiler-space-1: 4px;--profiler-space-2: 8px;--profiler-space-3: 12px;--profiler-space-4: 16px;--profiler-space-6: 24px;--profiler-space-8: 32px;--profiler-space-12: 48px;--profiler-radius-sm: 4px;--profiler-radius-md: 6px;--profiler-radius-lg: 10px;--profiler-radius-full: 9999px;--profiler-transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);--profiler-transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);--profiler-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);--profiler-transition-elastic: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);--profiler-z-toolbar: 999999;--profiler-z-panel: 1000000;--profiler-z-modal: 1000001}.profiler-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);cursor:pointer;transition:all var(--profiler-transition-base);color:var(--profiler-text-muted);font-size:14px}.profiler-theme-toggle:hover{background:var(--profiler-accent-bg);border-color:var(--profiler-border-accent);color:var(--profiler-accent);transform:scale(1.08)}.profiler-theme-toggle:active{transform:scale(0.94)}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}body{font-family:var(--profiler-font-sans);background:var(--profiler-bg);color:var(--profiler-text);line-height:1.6;font-size:var(--profiler-text-base);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.container{max-width:1400px;margin:0 auto;padding:var(--profiler-space-8) var(--profiler-space-6)}@media(max-width: 768px){.container{padding:var(--profiler-space-6) var(--profiler-space-4)}}.header{margin-bottom:var(--profiler-space-8);padding-bottom:var(--profiler-space-6);border-bottom:1px solid var(--profiler-border);animation:fadeInDown 400ms cubic-bezier(0.4, 0, 0.2, 1) both}.header h1{font-size:var(--profiler-text-3xl);font-weight:700;letter-spacing:-0.03em;line-height:1.15;margin-bottom:var(--profiler-space-2);color:var(--profiler-text);background:linear-gradient(125deg, var(--profiler-accent) 0%, var(--profiler-accent-hover) 60%, var(--profiler-warning) 100%);-webkit-background-clip:text;-webkit-text-fill-color:rgba(0,0,0,0);background-clip:text}.header h1 .h1-emoji{-webkit-text-fill-color:initial}.header h1 .h1-logo{color:var(--profiler-accent);vertical-align:-0.1em}.header h1 a{color:inherit;text-decoration:none;background:inherit;-webkit-background-clip:inherit;-webkit-text-fill-color:inherit;background-clip:inherit}.header h1 a:hover{opacity:.75}@media(max-width: 768px){.header h1{font-size:var(--profiler-text-2xl)}}.header p{font-size:var(--profiler-text-sm);color:var(--profiler-text-muted);font-family:var(--profiler-font-mono);letter-spacing:.03em}a{color:var(--profiler-accent);text-decoration:none;transition:color var(--profiler-transition-fast)}a:hover{color:var(--profiler-accent-hover)}a:focus-visible{outline:2px solid var(--profiler-border-accent);outline-offset:2px;border-radius:var(--profiler-radius-sm)}code,pre{font-family:var(--profiler-font-mono)}code{background:var(--profiler-accent-bg);color:var(--profiler-accent);padding:2px 6px;border-radius:var(--profiler-radius-sm);border:1px solid var(--profiler-border-accent);font-size:var(--profiler-text-sm)}pre{background:rgba(0,0,0,.25);padding:var(--profiler-space-4);border-radius:var(--profiler-radius-md);border:1px solid var(--profiler-border);overflow-x:auto;line-height:1.65;color:var(--profiler-text-secondary)}pre code{background:none;padding:0;border:none;color:inherit;font-size:inherit}[data-theme=light] pre{background:rgba(0,0,0,.03)}table{width:100%;border-collapse:collapse;font-size:var(--profiler-text-base)}table th{text-align:left;font-weight:600;font-size:var(--profiler-text-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--profiler-text-muted);padding:var(--profiler-space-2) var(--profiler-space-3);border-bottom:1px solid var(--profiler-border-strong);background:var(--profiler-bg-light);white-space:nowrap}table td{padding:var(--profiler-space-3);border-bottom:1px solid var(--profiler-border);color:var(--profiler-text);vertical-align:middle;font-size:var(--profiler-text-base)}table tr:last-child td{border-bottom:none}table tr:hover td{background:var(--profiler-bg-lighter)}table a{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:rgba(0,0,0,0)}::-webkit-scrollbar-thumb{background:var(--profiler-border-strong);border-radius:var(--profiler-radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--profiler-text-subtle)}::selection{background:var(--profiler-accent-bg);color:var(--profiler-text)}:focus-visible{outline:2px solid var(--profiler-accent);outline-offset:2px;border-radius:var(--profiler-radius-sm)}.card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg);padding:var(--profiler-space-6);box-shadow:var(--profiler-shadow-md);transition:all var(--profiler-transition-base)}.card:hover{border-color:var(--profiler-border-strong);box-shadow:var(--profiler-shadow-lg);transform:translateY(-2px)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--profiler-space-2);padding:var(--profiler-space-2) var(--profiler-space-4);font-family:var(--profiler-font-sans);font-size:var(--profiler-text-base);font-weight:600;border-radius:var(--profiler-radius-sm);border:1px solid rgba(0,0,0,0);cursor:pointer;transition:all var(--profiler-transition-base);text-decoration:none;white-space:nowrap;letter-spacing:.01em}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.btn-primary{background:var(--profiler-accent-bg);color:var(--profiler-accent);border-color:var(--profiler-border-accent)}.btn.btn-primary:hover:not(:disabled){background:var(--profiler-accent);color:var(--profiler-text-on-accent);transform:translateY(-1px);box-shadow:0 4px 16px var(--profiler-accent-glow)}.btn.btn-secondary{background:var(--profiler-bg-lighter);color:var(--profiler-text-secondary);border-color:var(--profiler-border)}.btn.btn-secondary:hover:not(:disabled){background:var(--profiler-bg-elevated);border-color:var(--profiler-border-strong);color:var(--profiler-text)}.btn.btn-sm{padding:var(--profiler-space-1) var(--profiler-space-3);font-size:var(--profiler-text-sm)}.btn.btn-danger{background:rgba(0,0,0,0);color:var(--profiler-error);border-color:var(--profiler-error)}.btn.btn-danger:hover:not(:disabled){background:var(--profiler-error);color:#fff}.profiler-load-more{display:flex;justify-content:center;padding:var(--profiler-space-4) 0 var(--profiler-space-2)}.token-copy{background:none;border:none;cursor:pointer;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);padding:2px 4px;border-radius:var(--profiler-radius-sm);transition:color var(--profiler-transition-base),background var(--profiler-transition-base)}.token-copy:hover{color:var(--profiler-accent);background:var(--profiler-accent-bg)}.btn-row-delete{background:none;border:none;cursor:pointer;color:var(--profiler-text-muted);font-size:var(--profiler-text-base);line-height:1;padding:2px 6px;border-radius:var(--profiler-radius-sm);transition:color var(--profiler-transition-base),background var(--profiler-transition-base);opacity:0}tr:hover .btn-row-delete{opacity:1}.btn-row-delete:hover{color:var(--profiler-error);background:var(--profiler-error-bg)}.badge,[class*=badge-]{display:inline-flex;align-items:center;padding:2px 7px;border-radius:var(--profiler-radius-sm);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);font-weight:600;letter-spacing:.04em;white-space:nowrap}.badge{background:var(--profiler-bg-lighter);color:var(--profiler-text-secondary);border:1px solid var(--profiler-border)}.badge-success{background:var(--profiler-success-bg);color:var(--profiler-success);border:1px solid rgba(34,197,94,.2)}.badge-warning{background:var(--profiler-warning-bg);color:var(--profiler-warning);border:1px solid rgba(251,146,60,.2)}.badge-error{background:var(--profiler-error-bg);color:var(--profiler-error);border:1px solid rgba(248,113,113,.2)}.badge-info{background:var(--profiler-info-bg);color:var(--profiler-info);border:1px solid rgba(96,165,250,.2)}.badge-default{background:var(--profiler-bg-lighter);color:var(--profiler-text-muted);border:1px solid var(--profiler-border)}.profiler-version-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:var(--profiler-radius-sm);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border)}.profiler-version-warn{margin-left:6px;cursor:help;font-size:var(--profiler-text-xs)}.profiler-version-mismatch{margin-top:var(--profiler-space-2);padding:var(--profiler-space-2) var(--profiler-space-3);border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-sm);background:var(--profiler-warning-bg);color:var(--profiler-warning);border:1px solid rgba(251,146,60,.3)}@keyframes fadeInDown{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeInUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}.profiler-spinner{display:inline-block;animation:spin 1s linear infinite}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}.animate-fade-in{animation:fadeIn 300ms ease both}.animate-fade-in-up{animation:fadeInUp 400ms ease both}.loading-spinner{display:inline-block;width:18px;height:18px;border:2px solid var(--profiler-border-strong);border-top-color:var(--profiler-accent);border-radius:50%;animation:spin 700ms linear infinite}@media(max-width: 768px){.hidden-mobile{display:none !important}}@media(min-width: 769px){.hidden-desktop{display:none !important}}.profiler-flex{display:flex;align-items:center}.profiler-flex--center{justify-content:center}.profiler-flex--between{justify-content:space-between}.profiler-flex--column{flex-direction:column;align-items:flex-start}.profiler-flex--gap-1{gap:var(--profiler-space-1)}.profiler-flex--gap-2{gap:var(--profiler-space-2)}.profiler-flex--gap-3{gap:var(--profiler-space-3)}.profiler-flex--gap-4{gap:var(--profiler-space-4)}.profiler-flex--gap-6{gap:var(--profiler-space-6)}.profiler-grid{display:grid;gap:var(--profiler-space-4)}.profiler-grid--2{grid-template-columns:repeat(2, 1fr)}.profiler-grid--3{grid-template-columns:repeat(3, 1fr)}.profiler-grid--auto{grid-template-columns:repeat(auto-fit, minmax(180px, 1fr))}.profiler-mt-1{margin-top:var(--profiler-space-1)}.profiler-mt-2{margin-top:var(--profiler-space-2)}.profiler-mt-3{margin-top:var(--profiler-space-3)}.profiler-mt-4{margin-top:var(--profiler-space-4)}.profiler-mt-6{margin-top:var(--profiler-space-6)}.profiler-mt-8{margin-top:var(--profiler-space-8)}.profiler-mb-1{margin-bottom:var(--profiler-space-1)}.profiler-mb-2{margin-bottom:var(--profiler-space-2)}.profiler-mb-3{margin-bottom:var(--profiler-space-3)}.profiler-mb-4{margin-bottom:var(--profiler-space-4)}.profiler-mb-6{margin-bottom:var(--profiler-space-6)}.profiler-p-2{padding:var(--profiler-space-2)}.profiler-p-3{padding:var(--profiler-space-3)}.profiler-p-4{padding:var(--profiler-space-4)}.profiler-p-6{padding:var(--profiler-space-6)}.profiler-text--xs{font-size:var(--profiler-text-xs)}.profiler-text--sm{font-size:var(--profiler-text-sm)}.profiler-text--base{font-size:var(--profiler-text-base)}.profiler-text--lg{font-size:var(--profiler-text-lg)}.profiler-text--xl{font-size:var(--profiler-text-xl)}.profiler-text--2xl{font-size:var(--profiler-text-2xl)}.profiler-text--muted{color:var(--profiler-text-muted)}.profiler-text--subtle{color:var(--profiler-text-subtle)}.profiler-text--secondary{color:var(--profiler-text-secondary)}.profiler-text--success{color:var(--profiler-success)}.profiler-text--warning{color:var(--profiler-warning)}.profiler-text--error{color:var(--profiler-error)}.profiler-text--accent{color:var(--profiler-accent)}.profiler-text--uppercase{text-transform:uppercase;letter-spacing:.08em}.profiler-text--mono{font-family:var(--profiler-font-mono)}.profiler-text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-text--break{word-break:break-all}.profiler-panel{background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-4)}.profiler-panel--sm{padding:var(--profiler-space-3)}.profiler-panel--lg{padding:var(--profiler-space-6)}.profiler-stat-card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-4);transition:all var(--profiler-transition-base)}.profiler-stat-card:hover{border-color:var(--profiler-border-accent);box-shadow:var(--profiler-shadow-sm);transform:translateY(-2px)}.profiler-stat-card__label{font-size:var(--profiler-text-xs);text-transform:uppercase;letter-spacing:.1em;color:var(--profiler-text-muted);margin-bottom:var(--profiler-space-2);font-family:var(--profiler-font-mono)}.profiler-stat-card__value{font-size:var(--profiler-text-2xl);font-weight:700;font-family:var(--profiler-font-mono);color:var(--profiler-accent);line-height:1.1}.profiler-stat-card__value small{font-size:var(--profiler-text-sm);color:var(--profiler-text-muted);font-weight:500;margin-left:var(--profiler-space-1)}.profiler-kv-row{display:flex;justify-content:space-between;align-items:center;padding:var(--profiler-space-2) 0;border-bottom:1px solid var(--profiler-border);gap:var(--profiler-space-4)}.profiler-kv-row:last-child{border-bottom:none}.profiler-kv-row>span:first-child{color:var(--profiler-text-muted);font-size:var(--profiler-text-sm);flex-shrink:0}.profiler-kv-row>*:last-child{color:var(--profiler-text);font-weight:600;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);text-align:right}.profiler-query-card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-3);margin-bottom:var(--profiler-space-3);transition:all var(--profiler-transition-base)}.profiler-query-card:hover{border-color:var(--profiler-border-strong);transform:translateX(3px);box-shadow:var(--profiler-shadow-sm)}.profiler-query-card--slow{border-left:3px solid var(--profiler-error);background:var(--profiler-error-bg)}.profiler-query-card--slow:hover{box-shadow:0 0 16px var(--profiler-error-glow)}.profiler-query-card--success{border-left:3px solid var(--profiler-success)}.profiler-query-card__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--profiler-space-2);gap:var(--profiler-space-3)}.profiler-query-card__duration{font-weight:700;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-accent)}.profiler-query-card__duration--slow{color:var(--profiler-error)}.profiler-query-card__duration--fast{color:var(--profiler-success)}.profiler-query-card__code{font-size:var(--profiler-text-sm);color:var(--profiler-info);font-family:var(--profiler-font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;line-height:1.5}.profiler-query-card--n1{border-left:3px solid var(--profiler-warning);background:var(--profiler-warning-bg)}.profiler-n1-group{border:1px solid var(--profiler-warning);border-radius:var(--profiler-radius-md);overflow:hidden}.profiler-n1-group__header{display:flex;align-items:center;gap:var(--profiler-space-3);padding:var(--profiler-space-2) var(--profiler-space-3);background:var(--profiler-warning-bg);cursor:pointer;user-select:none}.profiler-n1-group__header:hover{filter:brightness(0.97)}.profiler-n1-group__count{font-size:var(--profiler-text-xs);font-weight:700;font-family:var(--profiler-font-mono);color:var(--profiler-warning);white-space:nowrap}.profiler-n1-group__pattern{flex:1;font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono);color:var(--profiler-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-n1-group__toggle{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);white-space:nowrap}.profiler-n1-backtrace{background:var(--profiler-bg-lighter);border-top:1px solid var(--profiler-border);padding:var(--profiler-space-2) var(--profiler-space-3)}.profiler-n1-backtrace__frame{font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono);color:var(--profiler-text-muted);line-height:1.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-alert-banner{display:flex;align-items:flex-start;gap:var(--profiler-space-3);padding:var(--profiler-space-3) var(--profiler-space-4);border-radius:var(--profiler-radius-md);border:1px solid;font-size:var(--profiler-text-sm)}.profiler-alert-banner--warning{background:var(--profiler-warning-bg);border-color:var(--profiler-warning);color:var(--profiler-text)}.profiler-alert-banner--error{background:var(--profiler-error-bg);border-color:var(--profiler-error)}.profiler-alert-banner__icon{flex-shrink:0;font-size:var(--profiler-text-base)}.profiler-badge{display:inline-block;padding:1px 6px;border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:600;font-family:var(--profiler-font-mono);line-height:1.6}.profiler-badge--warning{background:var(--profiler-warning-bg);color:var(--profiler-warning);border:1px solid rgba(251,146,60,.3)}.profiler-badge--error{background:var(--profiler-error-bg);color:var(--profiler-error)}.profiler-btn{display:inline-flex;align-items:center;gap:var(--profiler-space-1);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);background:var(--profiler-bg-elevated);color:var(--profiler-text-muted);font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);cursor:pointer;transition:all var(--profiler-transition-base)}.profiler-btn:hover{border-color:var(--profiler-accent);color:var(--profiler-accent)}.profiler-btn--sm{padding:1px 8px;font-size:var(--profiler-text-xs)}.profiler-modal__overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:9000;display:flex;align-items:center;justify-content:center;padding:var(--profiler-space-4)}.profiler-modal{background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg, var(--profiler-radius-md));box-shadow:var(--profiler-shadow-lg, var(--profiler-shadow-sm));width:100%;max-width:760px;max-height:80vh;display:flex;flex-direction:column;overflow:hidden}.profiler-modal__header{display:flex;align-items:center;gap:var(--profiler-space-3);padding:var(--profiler-space-3) var(--profiler-space-4);border-bottom:1px solid var(--profiler-border);background:var(--profiler-bg-light);flex-shrink:0}.profiler-modal__title{font-weight:600;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);flex:1}.profiler-modal__close{background:none;border:none;color:var(--profiler-text-muted);font-size:var(--profiler-text-lg);cursor:pointer;padding:0 var(--profiler-space-1);line-height:1}.profiler-modal__close:hover{color:var(--profiler-text)}.profiler-modal__body{padding:var(--profiler-space-4);overflow-y:auto;flex:1}.profiler-explain-result{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);color:var(--profiler-text);white-space:pre-wrap;word-break:break-all;line-height:1.6;margin:0}.profiler-explain-node{padding:var(--profiler-space-1) var(--profiler-space-2);margin-bottom:2px;border-radius:var(--profiler-radius-sm);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs)}.profiler-explain-node--expensive{background:var(--profiler-error-bg);border-left:2px solid var(--profiler-error)}.profiler-explain-node__type{font-weight:600;color:var(--profiler-accent)}.profiler-explain-node__stats{display:flex;gap:var(--profiler-space-3);margin-top:1px;flex-wrap:wrap}.profiler-dump-card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-left:3px solid var(--profiler-warning);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-4);margin-bottom:var(--profiler-space-4)}.profiler-dump-card__header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--profiler-space-3)}.profiler-dump-card__label{display:inline-block;background:var(--profiler-warning-bg);color:var(--profiler-warning);border:1px solid rgba(251,146,60,.3);padding:2px 8px;border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:600;font-family:var(--profiler-font-mono);margin-left:var(--profiler-space-2)}.profiler-dump-card__location{font-size:var(--profiler-text-xs);color:var(--profiler-info);font-family:var(--profiler-font-mono);text-align:right}.profiler-dump-card__content{background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);padding:var(--profiler-space-3);overflow-x:auto}.profiler-dump-card__content pre{color:var(--profiler-warning);margin:0;font-size:var(--profiler-text-sm);line-height:1.6;background:none;border:none;padding:0}.profiler-ajax-card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-left:3px solid;border-radius:var(--profiler-radius-md);padding:var(--profiler-space-3);margin-bottom:var(--profiler-space-2);transition:all var(--profiler-transition-base)}.profiler-ajax-card--success{border-left-color:var(--profiler-success)}.profiler-ajax-card--error{border-left-color:var(--profiler-error)}.profiler-ajax-card:hover{background:var(--profiler-bg-elevated);transform:translateX(3px);box-shadow:var(--profiler-shadow-sm)}.profiler-ajax-card__row{display:flex;justify-content:space-between;align-items:center;gap:var(--profiler-space-3)}.profiler-ajax-card__row+.profiler-ajax-card__row{margin-top:var(--profiler-space-2)}.profiler-ajax-card__path{color:var(--profiler-text-secondary);font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.profiler-ajax-card__time{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-mono)}.profiler-empty{display:flex;flex-direction:column;align-items:center;padding:var(--profiler-space-12) var(--profiler-space-6);text-align:center;color:var(--profiler-text-muted)}.profiler-empty__icon{font-size:52px;margin-bottom:var(--profiler-space-4);opacity:.4;filter:grayscale(1)}.profiler-empty__title{font-size:var(--profiler-text-lg);font-weight:600;color:var(--profiler-text);margin-bottom:var(--profiler-space-3)}.profiler-empty__description{font-size:var(--profiler-text-base);line-height:1.7;max-width:420px;color:var(--profiler-text-muted)}.profiler-empty__description code{background:var(--profiler-accent-bg);color:var(--profiler-accent);border:1px solid var(--profiler-border-accent)}.profiler-divider{border:none;border-top:1px solid var(--profiler-border);margin:var(--profiler-space-4) 0}.profiler-divider--strong{border-top-color:var(--profiler-border-strong)}.profiler-divider--sm{margin:var(--profiler-space-2) 0}.profiler-divider--lg{margin:var(--profiler-space-6) 0}.profiler-more{text-align:center;padding:var(--profiler-space-3) var(--profiler-space-4);color:var(--profiler-text-muted);font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono);letter-spacing:.05em;border-top:1px dashed var(--profiler-border);margin-top:var(--profiler-space-2)}.profiler-float-right{float:right}.profiler-float-left{float:left}.profiler-clearfix::after{content:"";display:table;clear:both}.profiler-code{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);color:var(--profiler-text);padding:var(--profiler-space-3);margin:0;white-space:pre-wrap;word-break:break-all;overflow-x:auto;line-height:1.6}.profiler-body-csv{width:100%;border-collapse:collapse;font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono)}.profiler-body-csv th{background:var(--profiler-bg-elevated);color:var(--profiler-text-muted);font-weight:600;text-align:left;padding:4px 8px;border:1px solid var(--profiler-border);white-space:nowrap}.profiler-body-csv td{padding:3px 8px;border:1px solid var(--profiler-border);color:var(--profiler-text);word-break:break-all}.profiler-body-csv tbody tr:nth-child(even){background:var(--profiler-bg-elevated)}.profiler-body-binary{display:flex;flex-direction:column;gap:var(--profiler-space-2);padding:var(--profiler-space-3);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md)}.profiler-body-preview-frame{width:100%;height:400px;border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm)}.profiler-body-download-btn{display:inline-flex;align-items:center;gap:var(--profiler-space-1);padding:4px 10px;background:var(--profiler-accent-bg);color:var(--profiler-accent);border:1px solid var(--profiler-border-accent);border-radius:var(--profiler-radius-sm);text-decoration:none;font-family:var(--profiler-font-mono);transition:all var(--profiler-transition-base)}.profiler-body-download-btn:hover{background:var(--profiler-accent);color:#fff}.profiler-flex-table{display:flex;flex-direction:column}.profiler-flex-table__header{display:flex;align-items:center;gap:var(--profiler-space-3);padding:var(--profiler-space-2) var(--profiler-space-3);background:var(--profiler-bg-light);border-bottom:1px solid var(--profiler-border-strong);font-weight:600;font-size:var(--profiler-text-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--profiler-text-muted)}.profiler-flex-table__row{display:flex;align-items:center;gap:var(--profiler-space-3);padding:var(--profiler-space-3);border-bottom:1px solid var(--profiler-border);color:var(--profiler-text)}.profiler-flex-table__row--matched{background:var(--profiler-success-bg);border-left:2px solid var(--profiler-success)}.profiler-flex-table__cell{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-flex-table__cell--fixed{flex:0 0 auto}.profiler-flex-table__cell--muted{color:var(--profiler-text-muted)}@keyframes pfPop{0%{transform:scaleX(1)}15%{transform:scaleX(1.18)}40%{transform:scaleX(0.87)}65%{transform:scaleX(1.08)}85%{transform:scaleX(0.97)}100%{transform:scaleX(1)}}#profiler-toolbar{position:fixed;bottom:0;left:0;right:0;height:44px;background:var(--profiler-glass-bg);backdrop-filter:var(--profiler-blur);-webkit-backdrop-filter:var(--profiler-blur);border-top:1px solid var(--profiler-border-strong);z-index:var(--profiler-z-toolbar);font-family:var(--profiler-font-mono);font-size:11px;animation:toolbarIn 300ms cubic-bezier(0.4, 0, 0.2, 1) both;transition:left 280ms cubic-bezier(0.4, 0, 0.2, 1)}#profiler-toolbar::before{content:"";position:absolute;top:-1px;left:0;right:0;height:1px;background:linear-gradient(90deg, transparent 0%, var(--profiler-accent) 15%, var(--profiler-accent-hover) 50%, var(--profiler-accent) 85%, transparent 100%);opacity:.65}@keyframes toolbarIn{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.profiler-toolbar-container{display:flex;align-items:stretch;height:100%}.profiler-toolbar-item{position:relative;display:inline-flex;align-items:center;gap:5px;padding:0 16px;color:var(--profiler-text-muted);text-decoration:none;white-space:nowrap;font-weight:500;letter-spacing:.01em;cursor:default;background:rgba(0,0,0,0);border:none;border-right:1px solid var(--profiler-border);transition:color var(--profiler-transition-fast),background var(--profiler-transition-fast)}.profiler-toolbar-item::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--profiler-accent);transform:scaleX(0);transform-origin:left;transition:transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1)}.profiler-toolbar-item:last-child{border-right:none}.profiler-toolbar-item:hover{color:var(--profiler-text);background:var(--profiler-accent-bg)}.profiler-toolbar-item:hover::after{transform:scaleX(1)}.profiler-toolbar-collapse-btn{margin-left:auto;padding:0 14px;border-left:1px solid var(--profiler-border);font-size:10px;color:var(--profiler-text-muted);cursor:pointer}.profiler-toolbar-collapse-btn:hover{color:var(--profiler-text);background:var(--profiler-accent-bg);animation:pfPop 380ms ease-out both}a.profiler-toolbar-item{cursor:pointer;font-family:var(--profiler-font-mono);font-size:11px}.profiler-toolbar-logo{border-right:1px solid var(--profiler-border) !important;display:inline-flex;align-items:center;gap:6px}.profiler-toolbar-logo-mark{flex:none;display:block}.profiler-text--success{color:var(--profiler-success) !important}.profiler-text--warning{color:var(--profiler-warning) !important}.profiler-text--error{color:var(--profiler-error) !important}.profiler-text--info{color:var(--profiler-info) !important}.profiler-text--muted{color:var(--profiler-text-muted) !important}.profiler-text--accent{color:var(--profiler-accent) !important}.profiler-toolbar-item.profiler-text--error::after{background:var(--profiler-error)}.profiler-toolbar-item.profiler-text--warning::after{background:var(--profiler-warning)}.profiler-toolbar-item.profiler-text--success::after{background:var(--profiler-success)}.profiler-toolbar-item.profiler-text--info::after{background:var(--profiler-info)}.profiler-toolbar-hoverable{position:relative}.profiler-toolbar-hoverable .profiler-toolbar-panel{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);min-width:320px;max-width:440px;background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border-strong);border-radius:var(--profiler-radius-lg);box-shadow:var(--profiler-shadow-xl),0 0 0 1px var(--profiler-border-accent);z-index:var(--profiler-z-panel);overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 160ms cubic-bezier(0.4, 0, 0.2, 1),visibility 0s linear 160ms}.profiler-toolbar-hoverable .profiler-toolbar-panel.is-visible{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 160ms cubic-bezier(0.4, 0, 0.2, 1),visibility 0s}.profiler-toolbar-hoverable .profiler-toolbar-panel::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg, var(--profiler-accent) 0%, var(--profiler-accent-hover) 100%)}.profiler-toolbar-hoverable .profiler-toolbar-panel::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid rgba(0,0,0,0);border-top-color:var(--profiler-border-strong)}.profiler-toolbar-hoverable .profiler-toolbar-panel.profiler-toolbar-panel-large{min-width:440px;max-width:580px}.profiler-toolbar-panel-header{display:flex;align-items:center;justify-content:space-between;padding:11px 16px 9px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--profiler-accent);background:var(--profiler-accent-bg);border-bottom:1px solid var(--profiler-border);font-family:var(--profiler-font-mono)}.profiler-float-right{color:var(--profiler-text-muted);font-weight:400;text-transform:none;letter-spacing:0;font-size:10px;font-family:var(--profiler-font-mono)}.profiler-toolbar-panel-content{padding:10px 16px 14px;max-height:420px;overflow-y:auto;font-size:11px;font-family:var(--profiler-font-mono);scrollbar-width:thin;scrollbar-color:var(--profiler-border-strong) rgba(0,0,0,0)}.profiler-toolbar-panel-content::-webkit-scrollbar{width:4px}.profiler-toolbar-panel-content::-webkit-scrollbar-thumb{background:var(--profiler-border-strong);border-radius:var(--profiler-radius-full)}.profiler-toolbar-panel-row{display:flex;justify-content:space-between;align-items:baseline;padding:6px 0;border-bottom:1px solid var(--profiler-border);gap:12px}.profiler-toolbar-panel-row:last-child{border-bottom:none}.profiler-toolbar-panel-row span{color:var(--profiler-text-muted);font-size:10px;flex-shrink:0}.profiler-toolbar-panel-row strong{color:var(--profiler-text);font-weight:600;text-align:right;font-variant-numeric:tabular-nums;word-break:break-all}.profiler-section__header{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--profiler-accent);padding:10px 0 4px;border-bottom:1px solid var(--profiler-border-accent);margin-bottom:6px;font-family:var(--profiler-font-mono)}.profiler-section__header:first-child{padding-top:4px}.profiler-toolbar-panel-query{padding:9px 10px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);margin-bottom:6px;transition:all var(--profiler-transition-fast)}.profiler-toolbar-panel-query:last-child{margin-bottom:0}.profiler-toolbar-panel-query:hover{border-color:var(--profiler-border-strong);transform:translateX(2px)}.profiler-toolbar-panel-query.profiler-toolbar-panel-query-slow{border-left:2px solid var(--profiler-error);background:var(--profiler-error-bg)}.profiler-toolbar-panel-query code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--profiler-info);font-size:10px;line-height:1.5;margin-top:4px}.profiler-more{text-align:center;padding:8px;color:var(--profiler-text-muted);font-size:10px;letter-spacing:.05em;border-top:1px dashed var(--profiler-border);margin-top:6px}#profiler-toolbar[data-collapsed=true] .profiler-toolbar-item:not(.profiler-toolbar-collapse-btn){display:none}#profiler-toolbar[data-collapsed=true] .profiler-toolbar-collapse-btn{margin-left:0}#profiler-toolbar[data-collapsed=true]::before{opacity:0}.profiler-pinbar{display:flex;align-items:center;gap:6px;padding:0 10px;margin-left:4px;border-left:1px solid var(--profiler-border-strong);border-right:1px solid var(--profiler-border)}.profiler-pin{position:relative;display:inline-flex;align-items:center;gap:5px;padding:2px 4px 2px 8px;max-width:280px;white-space:nowrap;color:var(--profiler-text);background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-full)}.profiler-pin.is-absent{opacity:.55}.profiler-pin.is-absent .profiler-pin-value{font-style:italic;color:var(--profiler-text-muted)}.profiler-pin.is-overridden{border-color:var(--profiler-border-accent)}.profiler-pin.has-error{border-color:var(--profiler-error)}.profiler-pin.is-stale{border-style:dashed;border-color:var(--profiler-error)}.profiler-pin-label{max-width:120px;overflow:hidden;text-overflow:ellipsis;color:var(--profiler-text-muted);font-size:10px}.profiler-pin-value{max-width:120px;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-family:inherit;font-size:inherit}.profiler-pin-edit,.profiler-pin-switch,.profiler-pin-remove,.profiler-pin-reset,.profiler-pin-refresh,.profiler-pin-button{appearance:none;background:rgba(0,0,0,0);border:none;color:inherit;cursor:pointer;padding:0}.profiler-pin-edit:focus-visible,.profiler-pin-switch:focus-visible,.profiler-pin-remove:focus-visible,.profiler-pin-reset:focus-visible,.profiler-pin-refresh:focus-visible,.profiler-pin-button:focus-visible{outline:2px solid var(--profiler-accent);outline-offset:1px}.profiler-pin-edit:disabled,.profiler-pin-switch:disabled,.profiler-pin-remove:disabled,.profiler-pin-reset:disabled,.profiler-pin-refresh:disabled,.profiler-pin-button:disabled{cursor:not-allowed;opacity:.5}.profiler-pin-edit{border-bottom:1px dashed var(--profiler-border-strong)}.profiler-pin-edit:hover{color:var(--profiler-accent)}.profiler-pin-switch{display:inline-flex;align-items:center;gap:4px}.profiler-pin-switch-knob{position:relative;width:22px;height:12px;border-radius:var(--profiler-radius-full);background:var(--profiler-border-strong);transition:background var(--profiler-transition-fast)}.profiler-pin-switch-knob::after{content:"";position:absolute;top:2px;left:2px;width:8px;height:8px;border-radius:50%;background:var(--profiler-text);transition:transform var(--profiler-transition-fast)}.profiler-pin-switch.is-on .profiler-pin-switch-knob{background:var(--profiler-success)}.profiler-pin-switch.is-on .profiler-pin-switch-knob::after{transform:translateX(10px)}.profiler-pin-input{width:120px;padding:0 4px;font:inherit;color:var(--profiler-text);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-accent);border-radius:var(--profiler-radius-sm)}.profiler-pin-input:focus-visible{outline:2px solid var(--profiler-accent);outline-offset:1px}.profiler-pin-badge{color:var(--profiler-accent);background:var(--profiler-accent-bg);border-radius:var(--profiler-radius-sm);padding:0 4px;font-size:9px;text-transform:uppercase;letter-spacing:.04em}.profiler-pin-remove,.profiler-pin-reset,.profiler-pin-refresh{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;color:var(--profiler-text-muted);line-height:1}.profiler-pin-remove:hover,.profiler-pin-reset:hover,.profiler-pin-refresh:hover{color:var(--profiler-text);background:var(--profiler-border)}.profiler-pin-error{position:absolute;bottom:100%;left:0;z-index:2;margin-bottom:6px;padding:2px 6px;max-width:280px;white-space:normal;font-size:10px;color:var(--profiler-error);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-error);border-radius:var(--profiler-radius-sm);box-shadow:var(--profiler-shadow-sm)}.profiler-pin-row{align-items:center}.profiler-pin-button{display:inline-flex;margin-left:auto;padding:2px;color:var(--profiler-text-muted);border-radius:var(--profiler-radius-sm);flex-shrink:0}.profiler-pin-button:hover{color:var(--profiler-accent)}.profiler-pin-button.is-pinned{color:var(--profiler-accent)}.profiler-pin-name{overflow:hidden;text-overflow:ellipsis;max-width:45%}.profiler-pin-envvalue{min-width:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--profiler-font-mono, monospace);font-size:10px}.profiler-pin-filter{width:100%;box-sizing:border-box;margin:4px 0 6px;padding:3px 6px;font:inherit;color:var(--profiler-text);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border-strong);border-radius:var(--profiler-radius-sm)}.profiler-pin-filter:focus-visible{outline:2px solid var(--profiler-accent);outline-offset:1px}.profiler-pin-note{padding:4px 0;font-size:10px;color:var(--profiler-text-muted)}.container>table{width:100%;border-collapse:collapse;background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg);overflow:hidden;box-shadow:var(--profiler-shadow-md)}.container>table thead{background:var(--profiler-accent-bg);border-bottom:1px solid var(--profiler-border-accent)}.container>table thead th{font-weight:600;font-size:var(--profiler-text-xs);letter-spacing:.1em;text-transform:uppercase;color:var(--profiler-accent);padding:14px 20px;border-bottom:none;background:rgba(0,0,0,0)}.container>table tbody td{padding:14px 20px;font-size:var(--profiler-text-base);color:var(--profiler-text-secondary);border-bottom:1px solid var(--profiler-border);vertical-align:middle}.container>table tbody tr:last-child td{border-bottom:none}.container>table tbody tr:hover td{background:var(--profiler-accent-bg);color:var(--profiler-text)}.container>table tbody tr:hover td:first-child{border-left:2px solid var(--profiler-accent);padding-left:18px}.container>table a{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-accent)}.container>table a:hover{color:var(--profiler-accent-hover)}.tabs{display:flex;align-items:center;border-bottom:1px solid var(--profiler-border);margin-bottom:var(--profiler-space-6);gap:2px;overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.btn-refresh{flex-shrink:0;background:none;border:none;cursor:pointer;color:var(--profiler-text-muted);font-size:1.1rem;line-height:1;padding:4px 8px;border-radius:var(--profiler-radius-sm);transition:color var(--profiler-transition-base),background var(--profiler-transition-base);margin-bottom:-1px}.btn-refresh:hover:not(:disabled){color:var(--profiler-accent);background:var(--profiler-accent-bg)}.btn-refresh:disabled{cursor:not-allowed}.btn-refresh--spinning{animation:profiler-spin .7s linear infinite}@keyframes profiler-spin{to{transform:rotate(360deg)}}.tab{position:relative;display:flex;align-items:center;gap:6px;padding:12px 18px;color:var(--profiler-text-muted);text-decoration:none;font-size:var(--profiler-text-base);font-weight:500;white-space:nowrap;border-bottom:2px solid rgba(0,0,0,0);transition:color var(--profiler-transition-fast),border-color var(--profiler-transition-fast);font-family:var(--profiler-font-sans);cursor:pointer;background:none;border-top:none;border-left:none;border-right:none}.tab:hover{color:var(--profiler-text);background:var(--profiler-accent-bg)}.tab.active{color:var(--profiler-accent);border-bottom-color:var(--profiler-accent);font-weight:600}.tab .tab-icon{font-size:14px;line-height:1}.tab-content{display:none}.tab-content.active{display:block}.tab-content h2{font-size:var(--profiler-text-xl);font-weight:700;color:var(--profiler-text);margin-bottom:var(--profiler-space-4);letter-spacing:-0.02em}.tab-content h3{font-size:var(--profiler-text-lg);font-weight:600;color:var(--profiler-text);margin-bottom:var(--profiler-space-3)}.tab-content table{width:100%;border-collapse:collapse;background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);overflow:hidden}.tab-content table th{width:180px;text-align:left;padding:12px 16px;font-size:var(--profiler-text-xs);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--profiler-accent);background:var(--profiler-accent-bg);border-bottom:1px solid var(--profiler-border);border-right:1px solid var(--profiler-border);vertical-align:top}.tab-content table td{padding:12px 16px;font-size:var(--profiler-text-base);color:var(--profiler-text);border-bottom:1px solid var(--profiler-border);vertical-align:top}.tab-content table tr:last-child th,.tab-content table tr:last-child td{border-bottom:none}.tab-content table pre{margin:0;font-size:var(--profiler-text-sm)}.profiler-panel{background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg);overflow:hidden;box-shadow:var(--profiler-shadow-md)}.profiler-panel--sm{padding:var(--profiler-space-3);border-radius:var(--profiler-radius-md)}.profiler-section__header{font-size:var(--profiler-text-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--profiler-accent);padding-bottom:var(--profiler-space-2);margin-bottom:var(--profiler-space-4);border-bottom:1px solid var(--profiler-border-accent);font-family:var(--profiler-font-mono)}.profiler-action-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--profiler-space-2);flex-wrap:wrap}.profiler-filter-group{display:flex;align-items:center;gap:var(--profiler-space-2);flex-wrap:wrap}.profiler-filter-count{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-mono);white-space:nowrap;opacity:.7}.profiler-filter-input,.profiler-filter-select{height:28px;padding:0 var(--profiler-space-2);background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);color:var(--profiler-text);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);transition:border-color var(--profiler-transition-base)}.profiler-filter-input:focus,.profiler-filter-select:focus{outline:none;border-color:var(--profiler-accent)}.profiler-filter-input{width:160px}.profiler-filter-select{cursor:pointer}.profiler-preset-btn{height:28px;padding:0 10px;background:rgba(0,0,0,0);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-full);color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);font-size:var(--profiler-text-xs);font-weight:500;cursor:pointer;transition:all var(--profiler-transition-base);white-space:nowrap}.profiler-preset-btn:hover{border-color:var(--profiler-accent);color:var(--profiler-accent);background:var(--profiler-accent-bg)}.profiler-preset-btn--active{border-color:var(--profiler-accent);background:var(--profiler-accent);color:var(--profiler-text-on-accent, #fff)}.profiler-preset-btn--active:hover{opacity:.85;color:var(--profiler-text-on-accent, #fff)}.sortable{cursor:pointer;user-select:none;white-space:nowrap;transition:color var(--profiler-transition-base)}.sortable:hover{color:var(--profiler-text) !important}.sortable--active{color:var(--profiler-text) !important}.sort-icon{font-size:10px;margin-left:4px;vertical-align:middle}.sort-icon--idle{opacity:.35}.sort-icon--active{color:var(--profiler-accent);opacity:1}@keyframes profiler-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}.profiler-skeleton__row{display:flex;align-items:center;gap:20px;padding:14px 20px;border-bottom:1px solid var(--profiler-border)}.profiler-skeleton__row:last-child{border-bottom:none}.profiler-skeleton__cell{height:12px;border-radius:3px;background:linear-gradient(90deg, var(--profiler-bg-lighter, #e5e7eb) 25%, var(--profiler-bg-light, #f3f4f6) 50%, var(--profiler-bg-lighter, #e5e7eb) 75%);background-size:200% 100%;animation:profiler-shimmer 1.4s infinite linear}.profiler-skeleton__cell--xs{width:40px;flex-shrink:0}.profiler-skeleton__cell--sm{width:72px;flex-shrink:0}.profiler-skeleton__cell--md{width:120px;flex-shrink:0}.profiler-skeleton__cell--lg{width:180px;flex-shrink:0}.profiler-skeleton__cell--flex{flex:1;min-width:60px}.profiler-timeline{margin:24px 0;padding:24px;background:linear-gradient(135deg, rgba(21, 25, 31, 0.4) 0%, rgba(31, 35, 41, 0.4) 100%);backdrop-filter:blur(12px);border:1px solid var(--profiler-border);border-radius:12px;box-shadow:var(--profiler-shadow-md);animation:fadeIn 500ms cubic-bezier(0.4, 0, 0.2, 1)}.profiler-timeline svg{display:block;width:100%;height:auto;filter:drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2))}.profiler-timeline .timeline-event{cursor:pointer;transition:all var(--profiler-transition-base);transform-origin:center}.profiler-timeline .timeline-event:hover{opacity:.85;transform:scale(1.02);filter:drop-shadow(0 4px 12px rgba(0, 217, 255, 0.3))}.profiler-timeline .timeline-event:active{transform:scale(0.98)}.profiler-timeline .timeline-label{font-size:11px;font-family:var(--profiler-font-mono);font-weight:500;fill:var(--profiler-text-secondary);transition:fill var(--profiler-transition-base)}.profiler-timeline .timeline-label:hover{fill:var(--profiler-text)}.profiler-timeline .timeline-bar{rx:4;transition:all var(--profiler-transition-base);stroke-width:1;stroke:rgba(0,0,0,.3)}.profiler-timeline .timeline-bar.controller{fill:#60a5fa;stroke:rgba(96,165,250,.5)}.profiler-timeline .timeline-bar.controller:hover{fill:#93c5fd;filter:drop-shadow(0 0 8px rgba(96, 165, 250, 0.6))}.profiler-timeline .timeline-bar.view{fill:#34d399;stroke:rgba(52,211,153,.5)}.profiler-timeline .timeline-bar.view:hover{fill:#6ee7b7;filter:drop-shadow(0 0 8px rgba(52, 211, 153, 0.6))}.profiler-timeline .timeline-bar.partial{fill:#f59e0b;stroke:rgba(245,158,11,.5)}.profiler-timeline .timeline-bar.partial:hover{fill:#fbbf24;filter:drop-shadow(0 0 8px rgba(245, 158, 11, 0.6))}.profiler-timeline .timeline-bar.database{fill:#fb923c;stroke:rgba(251,146,60,.5)}.profiler-timeline .timeline-bar.database:hover{fill:#fdba74;filter:drop-shadow(0 0 8px rgba(251, 146, 60, 0.6))}.profiler-timeline .timeline-bar.default{fill:#a78bfa;stroke:rgba(167,139,250,.5)}.profiler-timeline .timeline-bar.default:hover{fill:#c4b5fd;filter:drop-shadow(0 0 8px rgba(167, 139, 250, 0.6))}.profiler-timeline .timeline-axis{stroke:var(--profiler-border-strong);stroke-width:2;stroke-linecap:round}.profiler-timeline .timeline-grid{stroke:var(--profiler-border);stroke-width:1;stroke-dasharray:4 4;opacity:.2;transition:opacity var(--profiler-transition-base)}.profiler-timeline .timeline-grid:hover{opacity:.4}.profiler-timeline .timeline-legend{display:flex;gap:20px;margin-top:20px;padding-top:20px;border-top:1px solid var(--profiler-border);flex-wrap:wrap;justify-content:center}.profiler-timeline .timeline-legend .legend-item{display:flex;align-items:center;gap:8px;font-size:12px;font-family:var(--profiler-font-sans);color:var(--profiler-text-muted);padding:6px 12px;background:hsla(0,0%,100%,.02);border-radius:8px;border:1px solid var(--profiler-border);transition:all var(--profiler-transition-base)}.profiler-timeline .timeline-legend .legend-item:hover{background:hsla(0,0%,100%,.05);color:var(--profiler-text);transform:translateY(-2px)}.profiler-timeline .timeline-legend .legend-item .legend-color{width:16px;height:16px;border-radius:4px;border:1px solid rgba(0,0,0,.3);box-shadow:inset 0 1px 2px rgba(0,0,0,.2)}.profiler-timeline .timeline-legend .legend-item .legend-color.controller{background:var(--profiler-accent);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(0,217,255,.3)}.profiler-timeline .timeline-legend .legend-item .legend-color.view{background:var(--profiler-success);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(0,255,159,.3)}.profiler-timeline .timeline-legend .legend-item .legend-color.partial{background:var(--profiler-warning);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(255,107,53,.3)}.profiler-timeline .timeline-legend .legend-item .legend-color.database{background:var(--profiler-warning);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(255,184,108,.3)}.profiler-timeline .timeline-legend .legend-item .legend-color.default{background:var(--profiler-info);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(189,147,249,.3)}.profiler-timeline .timeline-metrics{display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:16px;margin-bottom:24px}.profiler-timeline .timeline-metrics .metric-card{background:rgba(0,0,0,.2);border:1px solid var(--profiler-border);border-radius:8px;padding:16px;transition:all var(--profiler-transition-base)}.profiler-timeline .timeline-metrics .metric-card:hover{background:rgba(0,0,0,.3);border-color:var(--profiler-border-strong);transform:translateY(-2px);box-shadow:var(--profiler-shadow-sm)}.profiler-timeline .timeline-metrics .metric-card .metric-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--profiler-text-muted);margin-bottom:8px;font-family:var(--profiler-font-sans)}.profiler-timeline .timeline-metrics .metric-card .metric-value{font-size:24px;font-weight:700;font-family:var(--profiler-font-mono);color:var(--profiler-accent);line-height:1}.profiler-timeline .timeline-metrics .metric-card .metric-value small{font-size:14px;color:var(--profiler-text-muted);font-weight:500;margin-left:4px}.profiler-timeline .timeline-metrics .metric-card .metric-change{font-size:11px;margin-top:6px;font-family:var(--profiler-font-mono)}.profiler-timeline .timeline-metrics .metric-card .metric-change.positive{color:var(--profiler-success)}.profiler-timeline .timeline-metrics .metric-card .metric-change.negative{color:var(--profiler-error)}.profiler-timeline .timeline-metrics .metric-card .metric-change.neutral{color:var(--profiler-text-muted)}.profiler-timeline .timeline-tooltip{position:absolute;background:linear-gradient(135deg, rgba(21, 25, 31, 0.98) 0%, rgba(31, 35, 41, 0.98) 100%);backdrop-filter:blur(16px);border:1px solid var(--profiler-border-strong);border-radius:8px;padding:12px 16px;font-family:var(--profiler-font-mono);font-size:12px;color:var(--profiler-text);pointer-events:none;z-index:1000;box-shadow:0 8px 32px rgba(0,0,0,.5),0 0 0 1px hsla(0,0%,100%,.03);opacity:0;transform:translateY(8px);transition:all var(--profiler-transition-base)}.profiler-timeline .timeline-tooltip.visible{opacity:1;transform:translateY(0)}.profiler-timeline .timeline-tooltip .tooltip-header{font-weight:600;color:var(--profiler-accent);margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid var(--profiler-border)}.profiler-timeline .timeline-tooltip .tooltip-row{display:flex;justify-content:space-between;gap:16px;margin:4px 0}.profiler-timeline .timeline-tooltip .tooltip-row .label{color:var(--profiler-text-muted)}.profiler-timeline .timeline-tooltip .tooltip-row .value{color:var(--profiler-text);font-weight:600}@keyframes barSlideIn{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}.profiler-timeline .timeline-bar{animation:barSlideIn 600ms cubic-bezier(0.4, 0, 0.2, 1) backwards}.profiler-timeline .timeline-bar:nth-child(1){animation-delay:30ms}.profiler-timeline .timeline-bar:nth-child(2){animation-delay:60ms}.profiler-timeline .timeline-bar:nth-child(3){animation-delay:90ms}.profiler-timeline .timeline-bar:nth-child(4){animation-delay:120ms}.profiler-timeline .timeline-bar:nth-child(5){animation-delay:150ms}.profiler-timeline .timeline-bar:nth-child(6){animation-delay:180ms}.profiler-timeline .timeline-bar:nth-child(7){animation-delay:210ms}.profiler-timeline .timeline-bar:nth-child(8){animation-delay:240ms}.profiler-timeline .timeline-bar:nth-child(9){animation-delay:270ms}.profiler-timeline .timeline-bar:nth-child(10){animation-delay:300ms}.profiler-timeline .timeline-bar:nth-child(11){animation-delay:330ms}.profiler-timeline .timeline-bar:nth-child(12){animation-delay:360ms}.profiler-timeline .timeline-bar:nth-child(13){animation-delay:390ms}.profiler-timeline .timeline-bar:nth-child(14){animation-delay:420ms}.profiler-timeline .timeline-bar:nth-child(15){animation-delay:450ms}.profiler-timeline .timeline-bar:nth-child(16){animation-delay:480ms}.profiler-timeline .timeline-bar:nth-child(17){animation-delay:510ms}.profiler-timeline .timeline-bar:nth-child(18){animation-delay:540ms}.profiler-timeline .timeline-bar:nth-child(19){animation-delay:570ms}.profiler-timeline .timeline-bar:nth-child(20){animation-delay:600ms}.profiler-flamegraph{animation:fadeIn 500ms cubic-bezier(0.4, 0, 0.2, 1)}.profiler-flamegraph__stats{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.profiler-flamegraph__stats .stat-item{display:flex;flex-direction:column;gap:2px;padding:10px 14px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);min-width:80px;transition:all var(--profiler-transition-base)}.profiler-flamegraph__stats .stat-item:hover{border-color:var(--profiler-border-strong);transform:translateY(-1px);box-shadow:var(--profiler-shadow-sm)}.profiler-flamegraph__stats .stat-label{font-size:var(--profiler-text-xs);text-transform:uppercase;letter-spacing:.06em;color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);display:flex;align-items:center;gap:6px}.profiler-flamegraph__stats .stat-value{font-size:var(--profiler-text-lg);font-weight:700;font-family:var(--profiler-font-mono);color:var(--profiler-accent);line-height:1.2}.profiler-flamegraph__stats .stat-value small{font-size:var(--profiler-text-sm);color:var(--profiler-text-muted);font-weight:500}.profiler-flamegraph__stats .stat-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}.profiler-flamegraph__legend{display:flex;gap:16px;margin-bottom:12px;flex-wrap:wrap}.profiler-flamegraph__legend .legend-item{display:flex;align-items:center;gap:6px;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-sans);color:var(--profiler-text-muted)}.profiler-flamegraph__legend .legend-item .legend-color{width:12px;height:12px;border-radius:3px;flex-shrink:0}.profiler-flamegraph__controls{display:flex;align-items:center;gap:12px;margin-bottom:8px}.profiler-flamegraph__reset{padding:4px 12px;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-sans);font-weight:500;background:var(--profiler-accent-bg);color:var(--profiler-accent);border:1px solid var(--profiler-border-accent);border-radius:var(--profiler-radius-sm);cursor:pointer;transition:all var(--profiler-transition-base)}.profiler-flamegraph__reset:hover{background:var(--profiler-accent);color:var(--profiler-text-on-accent)}.profiler-flamegraph__hint{font-size:var(--profiler-text-xs);color:var(--profiler-text-subtle);font-family:var(--profiler-font-sans)}.profiler-flamegraph__search{display:flex;align-items:center;gap:8px}.profiler-flamegraph__search-input{height:28px;padding:0 8px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);color:var(--profiler-text);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);width:200px;transition:border-color var(--profiler-transition-base)}.profiler-flamegraph__search-input:focus{outline:none;border-color:var(--profiler-accent)}.profiler-flamegraph__match-count{font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono);color:var(--profiler-text-muted);white-space:nowrap}.profiler-flamegraph__canvas-container{position:relative;border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg);overflow:visible;background:var(--profiler-bg-light)}.profiler-flamegraph__canvas{display:block;width:100%;cursor:default}.profiler-flamegraph__breadcrumbs{display:none;align-items:center;gap:4px;padding:8px 12px;background:var(--profiler-bg-lighter);border-bottom:1px solid var(--profiler-border);font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);flex-wrap:wrap;overflow:hidden}.profiler-flamegraph__breadcrumbs .breadcrumb-item{background:none;border:none;padding:2px 6px;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);color:var(--profiler-text-secondary);cursor:pointer;border-radius:var(--profiler-radius-sm);transition:all var(--profiler-transition-fast);white-space:nowrap}.profiler-flamegraph__breadcrumbs .breadcrumb-item:hover{background:var(--profiler-accent-bg);color:var(--profiler-accent)}.profiler-flamegraph__breadcrumbs .breadcrumb-item:last-child{color:var(--profiler-accent);font-weight:600}.profiler-flamegraph__breadcrumbs .breadcrumb-separator{color:var(--profiler-text-subtle);font-size:var(--profiler-text-base);user-select:none}.profiler-flamegraph__tooltip{position:fixed;background:var(--profiler-bg-overlay);backdrop-filter:blur(16px);border:1px solid var(--profiler-border-strong);border-radius:var(--profiler-radius-md);padding:10px 14px;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-text);pointer-events:none;z-index:1000;box-shadow:var(--profiler-shadow-lg);opacity:0;transform:translateY(6px);transition:opacity var(--profiler-transition-fast),transform var(--profiler-transition-fast);max-width:400px;word-break:break-all}.profiler-flamegraph__tooltip.visible{opacity:1;transform:translateY(0)}.profiler-flamegraph__tooltip .tooltip-header{font-weight:600;color:var(--profiler-accent);margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid var(--profiler-border);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:350px}.profiler-flamegraph__tooltip .tooltip-row{display:flex;justify-content:space-between;gap:16px;margin:3px 0}.profiler-flamegraph__tooltip .tooltip-row .label{color:var(--profiler-text-muted)}.profiler-flamegraph__tooltip .tooltip-row .value{color:var(--profiler-text);font-weight:600}.profiler-flamegraph__tooltip .tooltip-badge{display:inline-block;padding:1px 8px;border-radius:var(--profiler-radius-full);font-size:var(--profiler-text-xs);font-weight:600;color:#fff}.profiler-flamegraph__tooltip .tooltip-payload{margin-top:6px;padding-top:6px;border-top:1px solid var(--profiler-border);font-size:var(--profiler-text-xs);color:var(--profiler-text-secondary);white-space:pre-wrap;max-height:80px;overflow:hidden}.profiler-fn-profiling{margin-top:32px;border-top:1px solid var(--profiler-border);padding-top:24px;animation:fadeIn 300ms ease}.profiler-fn-profiling__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}.profiler-fn-profiling__title{font-size:var(--profiler-text-xs);font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);display:flex;align-items:center;gap:8px}.profiler-fn-profiling__title::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#94a3b8;flex-shrink:0}.profiler-fn-profiling__title--active::before{background:var(--profiler-accent);box-shadow:0 0 6px var(--profiler-accent-glow)}.profiler-fn-profiling__controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.profiler-fn-profiling__max-frames-label{display:flex;align-items:center;gap:6px;font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);cursor:default}.profiler-fn-profiling__max-frames-input{width:70px;height:26px;padding:0 8px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);color:var(--profiler-text);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);text-align:center;transition:border-color var(--profiler-transition-base);appearance:textfield}.profiler-fn-profiling__max-frames-input::-webkit-inner-spin-button,.profiler-fn-profiling__max-frames-input::-webkit-outer-spin-button{-webkit-appearance:none}.profiler-fn-profiling__max-frames-input:focus{outline:none;border-color:var(--profiler-accent);box-shadow:0 0 0 2px var(--profiler-accent-glow)}.profiler-fn-profiling__max-frames-input:disabled{opacity:.4;cursor:not-allowed}.profiler-fn-profiling__updating{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-mono);animation:pulse 1s ease-in-out infinite}.profiler-fn-profiling__toggle{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 14px;border-radius:var(--profiler-radius-full);border:1px solid var(--profiler-border-strong);background:var(--profiler-bg-lighter);color:var(--profiler-text-muted);font-size:var(--profiler-text-xs);font-weight:600;font-family:var(--profiler-font-sans);cursor:pointer;transition:all var(--profiler-transition-base);white-space:nowrap}.profiler-fn-profiling__toggle::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--profiler-text-subtle);flex-shrink:0;transition:background var(--profiler-transition-base),box-shadow var(--profiler-transition-base)}.profiler-fn-profiling__toggle:hover{border-color:var(--profiler-border-strong);color:var(--profiler-text);background:var(--profiler-bg-elevated)}.profiler-fn-profiling__toggle:disabled{opacity:.5;cursor:not-allowed}.profiler-fn-profiling__toggle--active{border-color:var(--profiler-border-accent);background:var(--profiler-accent-bg);color:var(--profiler-accent)}.profiler-fn-profiling__toggle--active::before{background:var(--profiler-accent);box-shadow:0 0 6px var(--profiler-accent-glow)}.profiler-fn-profiling__toggle--active:hover{background:rgba(245,158,11,.15)}.profiler-fn-profiling__mode-selector{display:inline-flex;border:1px solid var(--profiler-border-strong);border-radius:var(--profiler-radius-sm);overflow:hidden}.profiler-fn-profiling__mode-btn{height:28px;padding:0 12px;background:var(--profiler-bg-lighter);border:none;border-right:1px solid var(--profiler-border-strong);color:var(--profiler-text-muted);font-size:var(--profiler-text-xs);font-weight:600;font-family:var(--profiler-font-sans);cursor:pointer;transition:all var(--profiler-transition-base);white-space:nowrap}.profiler-fn-profiling__mode-btn:last-child{border-right:none}.profiler-fn-profiling__mode-btn:hover:not(:disabled):not(.profiler-fn-profiling__mode-btn--active){background:var(--profiler-bg-elevated);color:var(--profiler-text)}.profiler-fn-profiling__mode-btn--active{background:var(--profiler-accent-bg);color:var(--profiler-accent);cursor:default}.profiler-fn-profiling__mode-btn:disabled{opacity:.5;cursor:not-allowed}.profiler-fn-profiling__cpu-pct{color:var(--profiler-text-subtle);font-size:.85em}.profiler-fn-profiling__gc--medium{color:#f59e0b}.profiler-fn-profiling__gc--high{color:#ef4444;font-weight:600}.profiler-fn-profiling__hint{margin:12px 0 0;padding:10px 14px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);line-height:1.6}.profiler-fn-profiling__flamegraph{margin:16px 0}.profiler-fn-profiling__flamegraph .profiler-flamegraph__controls{margin-bottom:6px}.profiler-fn-profiling__sort{display:flex;align-items:center;gap:4px;margin:16px 0 8px;padding:3px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);width:fit-content}.profiler-fn-profiling__sort-btn{padding:4px 12px;border:none;border-radius:var(--profiler-radius-sm);background:rgba(0,0,0,0);color:var(--profiler-text-muted);font-size:var(--profiler-text-xs);font-weight:500;font-family:var(--profiler-font-sans);cursor:pointer;transition:all var(--profiler-transition-fast);white-space:nowrap}.profiler-fn-profiling__sort-btn:hover{color:var(--profiler-text);background:var(--profiler-bg-elevated)}.profiler-fn-profiling__sort-btn--active{background:var(--profiler-accent);color:var(--profiler-text-on-accent);font-weight:600;box-shadow:var(--profiler-shadow-sm)}.profiler-fn-profiling__sort-btn--active:hover{background:var(--profiler-accent-hover);color:var(--profiler-text-on-accent)}.profiler-fn-profiling__table{width:100%;border-collapse:collapse;font-size:var(--profiler-text-xs);font-family:var(--profiler-font-sans);margin-top:8px}.profiler-fn-profiling__table thead tr{border-bottom:1px solid var(--profiler-border-strong)}.profiler-fn-profiling__table th{padding:8px 10px;text-align:left;font-size:var(--profiler-text-xs);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--profiler-text-subtle)}.profiler-fn-profiling__table th.profiler-text--right{text-align:right}.profiler-fn-profiling__table tbody tr{border-bottom:1px solid var(--profiler-border);transition:background var(--profiler-transition-fast)}.profiler-fn-profiling__table tbody tr:hover{background:var(--profiler-bg-lighter)}.profiler-fn-profiling__table tbody tr:last-child{border-bottom:none}.profiler-fn-profiling__table tbody tr.profiler-fn-profiling__row--highlighted{background:rgba(251,191,36,.08);outline:1px solid rgba(251,191,36,.35);outline-offset:-1px}.profiler-fn-profiling__table td{padding:7px 10px;vertical-align:middle;line-height:1.4}.profiler-fn-profiling__table td.profiler-text--right{text-align:right}.profiler-fn-profiling__table td.profiler-text--muted{color:var(--profiler-text-muted)}.profiler-fn-profiling__name{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);font-weight:500;color:var(--profiler-text);max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-fn-profiling__recursive{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:3px;background:var(--profiler-warning-bg);color:var(--profiler-warning);font-size:9px;font-weight:700;margin-right:5px;vertical-align:middle;flex-shrink:0;cursor:help}.profiler-fn-profiling__filter-active{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 0;padding:8px 14px;background:var(--profiler-accent-bg);border:1px solid var(--profiler-border-accent);border-radius:var(--profiler-radius-md);font-size:var(--profiler-text-xs);color:var(--profiler-accent);font-family:var(--profiler-font-sans)}.profiler-fn-profiling__filter-active strong{font-family:var(--profiler-font-mono);font-weight:600}.profiler-fn-profiling__filter-clear{padding:2px 8px;border:1px solid var(--profiler-border-accent);border-radius:var(--profiler-radius-sm);background:rgba(0,0,0,0);color:var(--profiler-accent);font-size:var(--profiler-text-xs);font-family:var(--profiler-font-sans);cursor:pointer;transition:all var(--profiler-transition-fast);white-space:nowrap}.profiler-fn-profiling__filter-clear:hover{background:var(--profiler-accent);color:var(--profiler-text-on-accent)}.profiler-fn-profiling__cap-warning{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:10px 14px;background:var(--profiler-warning-bg);border:1px solid rgba(251,146,60,.3);border-radius:var(--profiler-radius-md);font-size:var(--profiler-text-xs);color:var(--profiler-warning);font-family:var(--profiler-font-sans);font-weight:500}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}pre[data-language=sql],.sql-code{background:var(--profiler-bg);padding:15px;border-radius:4px;overflow-x:auto;font-family:"Monaco","Menlo","Ubuntu Mono",monospace;font-size:13px;line-height:1.5}pre[data-language=sql] .sql-keyword,.sql-code .sql-keyword{color:#c586c0;font-weight:600}pre[data-language=sql] .sql-string,.sql-code .sql-string{color:#ce9178}pre[data-language=sql] .sql-number,.sql-code .sql-number{color:#b5cea8}pre[data-language=sql] .sql-comment,.sql-code .sql-comment{color:var(--profiler-text-muted);font-style:italic}pre[data-language=sql] .sql-function,.sql-code .sql-function{color:#dcdcaa}pre[data-language=sql] .sql-operator,.sql-code .sql-operator{color:var(--profiler-info)}.backtrace{font-family:"Monaco","Menlo","Ubuntu Mono",monospace;font-size:11px;color:var(--profiler-text-muted);line-height:1.6}.backtrace .file-path{color:var(--profiler-info)}.backtrace .file-path:hover{text-decoration:underline}.backtrace .line-number{color:var(--profiler-warning)}.backtrace .method-name{color:#dcdcaa}.profile-header{margin-bottom:var(--profiler-space-6);padding-bottom:var(--profiler-space-4);border-bottom:1px solid var(--profiler-border)}.profile-header h2{font-size:var(--profiler-text-xl);margin-bottom:var(--profiler-space-3);color:var(--profiler-text);font-weight:600}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));gap:var(--profiler-space-4);margin-bottom:var(--profiler-space-6)}.stat{background:var(--profiler-bg-lighter);padding:var(--profiler-space-3);border-radius:var(--profiler-radius-md);border:1px solid var(--profiler-border);transition:all var(--profiler-transition-base)}.stat:hover{background:var(--profiler-bg-elevated);border-color:var(--profiler-border-strong);transform:translateY(-2px);box-shadow:var(--profiler-shadow-sm)}.stat-label{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);margin-bottom:var(--profiler-space-1);text-transform:uppercase;letter-spacing:.08em}.stat-value{font-size:var(--profiler-text-xl);font-weight:600;color:var(--profiler-accent);font-family:var(--profiler-font-mono)}.tabs{display:flex;gap:var(--profiler-space-1);border-bottom:1px solid var(--profiler-border);margin-bottom:var(--profiler-space-6)}.tab{padding:var(--profiler-space-3) var(--profiler-space-4);background:rgba(0,0,0,0);border:none;color:var(--profiler-text-muted);cursor:pointer;font-size:var(--profiler-text-base);border-bottom:2px solid rgba(0,0,0,0);display:flex;align-items:center;gap:var(--profiler-space-2);transition:all var(--profiler-transition-fast)}.tab .tab-icon{font-size:var(--profiler-text-lg);line-height:1}.tab:hover{color:var(--profiler-text);background:rgba(0,0,0,.1)}.tab.active{color:var(--profiler-accent);border-bottom-color:var(--profiler-accent)}.tab-content{display:none}.tab-content.active{display:block}.query-item{background:var(--profiler-bg-lighter);padding:var(--profiler-space-3);margin-bottom:var(--profiler-space-3);border-radius:var(--profiler-radius-md);border-left:3px solid var(--profiler-info);transition:all var(--profiler-transition-base)}.query-item:hover{background:var(--profiler-bg-elevated);transform:translateX(4px);box-shadow:var(--profiler-shadow-sm)}.query-item.slow{border-left-color:var(--profiler-error);background:var(--profiler-error-bg)}.query-item.slow:hover{box-shadow:0 0 16px var(--profiler-error-glow)}.query-sql{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-info);margin-bottom:var(--profiler-space-2);white-space:pre-wrap;word-break:break-all;line-height:1.6}.query-meta{display:flex;gap:var(--profiler-space-3);font-size:var(--profiler-text-xs);color:var(--profiler-text-muted)}.badge{display:inline-flex;padding:var(--profiler-space-1) var(--profiler-space-2);border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:600;background:var(--profiler-info);color:var(--profiler-text-on-accent);font-family:var(--profiler-font-mono)}.badge-slow{background:var(--profiler-error)}.badge-cached{background:var(--profiler-success)}.dump-item{background:var(--profiler-bg-lighter);padding:var(--profiler-space-4);margin-bottom:var(--profiler-space-4);border-radius:var(--profiler-radius-md);border-left:3px solid var(--profiler-warning)}.dump-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--profiler-space-3);font-size:var(--profiler-text-sm)}.dump-label{color:var(--profiler-accent);font-weight:600}.dump-location{color:var(--profiler-info);font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono)}.dump-value{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-warning);white-space:pre-wrap;background:rgba(0,0,0,.3);padding:var(--profiler-space-3);border-radius:var(--profiler-radius-sm);max-height:400px;overflow-y:auto;line-height:1.5}.cache-stats{display:grid;grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));gap:var(--profiler-space-3);margin-bottom:var(--profiler-space-6)}.cache-stat{background:var(--profiler-bg-lighter);padding:var(--profiler-space-3);border-radius:var(--profiler-radius-md);text-align:center;border:1px solid var(--profiler-border);transition:all var(--profiler-transition-base)}.cache-stat:hover{background:var(--profiler-bg-elevated);border-color:var(--profiler-border-strong);transform:translateY(-2px);box-shadow:var(--profiler-shadow-sm)}.cache-stat-label{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);margin-bottom:var(--profiler-space-1);text-transform:uppercase;letter-spacing:.08em}.cache-stat-value{font-size:var(--profiler-text-xl);font-weight:600;color:var(--profiler-accent);font-family:var(--profiler-font-mono)}.empty-state{display:flex;align-items:center;justify-content:center;min-height:200px;flex-direction:column;gap:var(--profiler-space-2);color:var(--profiler-text-muted);padding:var(--profiler-space-12) var(--profiler-space-6);text-align:center}.loading{text-align:center;padding:var(--profiler-space-12) var(--profiler-space-6);color:var(--profiler-text-muted);font-size:var(--profiler-text-base)}.error{background:var(--profiler-error-bg);color:var(--profiler-error);padding:var(--profiler-space-3);border-radius:var(--profiler-radius-md);margin-bottom:var(--profiler-space-3);border-left:3px solid var(--profiler-error);font-size:var(--profiler-text-sm)}.generic-tab pre{color:var(--profiler-info);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);line-height:1.6}.ajax-breakdown{margin:var(--profiler-space-6) 0;padding:var(--profiler-space-4);background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md)}.ajax-breakdown h3{margin:0 0 var(--profiler-space-3) 0;font-size:var(--profiler-text-base);color:var(--profiler-text);font-weight:600}.ajax-breakdown-items{display:flex;flex-wrap:wrap;gap:var(--profiler-space-3)}.ajax-breakdown-item{display:flex;align-items:center;gap:var(--profiler-space-2);padding:var(--profiler-space-1) var(--profiler-space-3);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);font-size:var(--profiler-text-base);color:var(--profiler-text);font-family:var(--profiler-font-mono)}.ajax-requests-list{margin-top:var(--profiler-space-6)}.ajax-request-item{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-3) var(--profiler-space-4);margin-bottom:var(--profiler-space-3);transition:all var(--profiler-transition-base)}.ajax-request-item:hover{background:var(--profiler-accent-bg);border-color:var(--profiler-border-accent);transform:translateX(3px);box-shadow:var(--profiler-shadow-sm)}.ajax-request-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--profiler-space-2)}.ajax-request-method{display:flex;align-items:center;gap:var(--profiler-space-3);flex:1;min-width:0}.ajax-request-path{color:var(--profiler-text);font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ajax-request-stats{display:flex;align-items:center;gap:var(--profiler-space-3)}.ajax-request-duration{color:var(--profiler-accent);font-weight:700;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono)}.ajax-request-meta{display:flex;justify-content:space-between;align-items:center;color:var(--profiler-text-muted);font-size:var(--profiler-text-sm)}.ajax-request-time{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs)}.ajax-request-link{color:var(--profiler-accent);text-decoration:none;font-weight:500;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);transition:color var(--profiler-transition-fast)}.ajax-request-link:hover{color:var(--profiler-accent-hover)}.method-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:700;text-transform:uppercase;font-family:var(--profiler-font-mono);letter-spacing:.05em;color:#fff}.method-badge.method-get{background:var(--profiler-info)}.method-badge.method-post{background:var(--profiler-success)}.method-badge.method-put{background:var(--profiler-warning)}.method-badge.method-patch{background:var(--profiler-warning)}.method-badge.method-delete{background:var(--profiler-error)}.method-badge.method-head,.method-badge.method-options{background:var(--profiler-text-muted)}.status-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:700;font-family:var(--profiler-font-mono);color:#fff}.status-badge.status-2xx{background:var(--profiler-success)}.status-badge.status-3xx{background:var(--profiler-info)}.status-badge.status-4xx{background:var(--profiler-warning)}.status-badge.status-5xx{background:var(--profiler-error)}.status-badge.status-other{background:var(--profiler-text-muted)}
1
+ @import"https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap";:root,[data-theme=dark]{--profiler-terminal-bg: #0a0e15;--profiler-terminal-text: #cdd6e0;--ansi-red: #f87171;--ansi-green: #4ade80;--ansi-yellow: #fbbf24;--ansi-blue: #60a5fa;--ansi-purple: #c084fc;--ansi-cyan: #67e8f9;--profiler-bg: #080b10;--profiler-bg-light: #0d1117;--profiler-bg-lighter: #131920;--profiler-bg-elevated: #1a2030;--profiler-bg-overlay: rgba(8, 11, 16, 0.96);--profiler-text: #eef2f7;--profiler-text-secondary: #a8b4c2;--profiler-text-muted: #5e7080;--profiler-text-subtle: #3d4f5f;--profiler-text-on-accent: #08090c;--profiler-accent: #f59e0b;--profiler-accent-hover: #fbbf24;--profiler-accent-dim: #92600a;--profiler-accent-bg: rgba(245, 158, 11, 0.1);--profiler-accent-glow: rgba(245, 158, 11, 0.35);--profiler-success: #22c55e;--profiler-success-bg: rgba(34, 197, 94, 0.1);--profiler-success-glow: rgba(34, 197, 94, 0.3);--profiler-warning: #fb923c;--profiler-warning-bg: rgba(251, 146, 60, 0.1);--profiler-warning-glow: rgba(251, 146, 60, 0.3);--profiler-error: #f87171;--profiler-error-bg: rgba(248, 113, 113, 0.1);--profiler-error-glow: rgba(248, 113, 113, 0.3);--profiler-info: #60a5fa;--profiler-info-bg: rgba(96, 165, 250, 0.1);--profiler-info-glow: rgba(96, 165, 250, 0.3);--profiler-border: rgba(255, 255, 255, 0.07);--profiler-border-strong: rgba(255, 255, 255, 0.14);--profiler-border-accent: rgba(245, 158, 11, 0.3);--profiler-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4);--profiler-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);--profiler-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);--profiler-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);--profiler-glass-bg: rgba(13, 17, 23, 0.85);--profiler-glass-border: rgba(255, 255, 255, 0.06);--profiler-blur: blur(20px) saturate(180%)}[data-theme=light]{--profiler-terminal-bg: #1c1f26;--profiler-terminal-text: #d4dbe3;--ansi-red: #f87171;--ansi-green: #4ade80;--ansi-yellow: #fbbf24;--ansi-blue: #60a5fa;--ansi-purple: #c084fc;--ansi-cyan: #67e8f9;--profiler-bg: #f5f3ef;--profiler-bg-light: #edeae3;--profiler-bg-lighter: #e3ded5;--profiler-bg-elevated: #ffffff;--profiler-bg-overlay: rgba(245, 243, 239, 0.96);--profiler-text: #1c1410;--profiler-text-secondary: #4a3f35;--profiler-text-muted: #8a7a6e;--profiler-text-subtle: #b5a898;--profiler-text-on-accent: #ffffff;--profiler-accent: #b45309;--profiler-accent-hover: #92400e;--profiler-accent-dim: #d97706;--profiler-accent-bg: rgba(180, 83, 9, 0.08);--profiler-accent-glow: rgba(180, 83, 9, 0.2);--profiler-success: #15803d;--profiler-success-bg: rgba(21, 128, 61, 0.08);--profiler-success-glow: rgba(21, 128, 61, 0.2);--profiler-warning: #c2410c;--profiler-warning-bg: rgba(194, 65, 12, 0.08);--profiler-warning-glow: rgba(194, 65, 12, 0.2);--profiler-error: #dc2626;--profiler-error-bg: rgba(220, 38, 38, 0.08);--profiler-error-glow: rgba(220, 38, 38, 0.2);--profiler-info: #1d4ed8;--profiler-info-bg: rgba(29, 78, 216, 0.08);--profiler-info-glow: rgba(29, 78, 216, 0.2);--profiler-border: rgba(28, 20, 16, 0.1);--profiler-border-strong: rgba(28, 20, 16, 0.2);--profiler-border-accent: rgba(180, 83, 9, 0.3);--profiler-shadow-sm: 0 1px 3px rgba(28, 20, 16, 0.08);--profiler-shadow-md: 0 4px 12px rgba(28, 20, 16, 0.1);--profiler-shadow-lg: 0 8px 24px rgba(28, 20, 16, 0.12);--profiler-shadow-xl: 0 16px 40px rgba(28, 20, 16, 0.15);--profiler-glass-bg: rgba(245, 243, 239, 0.88);--profiler-glass-border: rgba(28, 20, 16, 0.08);--profiler-blur: blur(16px) saturate(140%)}@media(prefers-color-scheme: light){:root:not([data-theme]){--profiler-terminal-bg: #1c1f26;--profiler-terminal-text: #d4dbe3;--ansi-red: #f87171;--ansi-green: #4ade80;--ansi-yellow: #fbbf24;--ansi-blue: #60a5fa;--ansi-purple: #c084fc;--ansi-cyan: #67e8f9;--profiler-bg: #f5f3ef;--profiler-bg-light: #edeae3;--profiler-bg-lighter: #e3ded5;--profiler-bg-elevated: #ffffff;--profiler-bg-overlay: rgba(245, 243, 239, 0.96);--profiler-text: #1c1410;--profiler-text-secondary: #4a3f35;--profiler-text-muted: #8a7a6e;--profiler-text-subtle: #b5a898;--profiler-text-on-accent: #ffffff;--profiler-accent: #b45309;--profiler-accent-hover: #92400e;--profiler-accent-dim: #d97706;--profiler-accent-bg: rgba(180, 83, 9, 0.08);--profiler-accent-glow: rgba(180, 83, 9, 0.2);--profiler-success: #15803d;--profiler-success-bg: rgba(21, 128, 61, 0.08);--profiler-success-glow: rgba(21, 128, 61, 0.2);--profiler-warning: #c2410c;--profiler-warning-bg: rgba(194, 65, 12, 0.08);--profiler-warning-glow: rgba(194, 65, 12, 0.2);--profiler-error: #dc2626;--profiler-error-bg: rgba(220, 38, 38, 0.08);--profiler-error-glow: rgba(220, 38, 38, 0.2);--profiler-info: #1d4ed8;--profiler-info-bg: rgba(29, 78, 216, 0.08);--profiler-info-glow: rgba(29, 78, 216, 0.2);--profiler-border: rgba(28, 20, 16, 0.1);--profiler-border-strong: rgba(28, 20, 16, 0.2);--profiler-border-accent: rgba(180, 83, 9, 0.3);--profiler-shadow-sm: 0 1px 3px rgba(28, 20, 16, 0.08);--profiler-shadow-md: 0 4px 12px rgba(28, 20, 16, 0.1);--profiler-shadow-lg: 0 8px 24px rgba(28, 20, 16, 0.12);--profiler-shadow-xl: 0 16px 40px rgba(28, 20, 16, 0.15);--profiler-glass-bg: rgba(245, 243, 239, 0.88);--profiler-glass-border: rgba(28, 20, 16, 0.08);--profiler-blur: blur(16px) saturate(140%)}}:root{--profiler-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--profiler-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;--profiler-text-xs: 10px;--profiler-text-sm: 11px;--profiler-text-base: 13px;--profiler-text-lg: 15px;--profiler-text-xl: 18px;--profiler-text-2xl: 22px;--profiler-text-3xl: 28px;--profiler-space-1: 4px;--profiler-space-2: 8px;--profiler-space-3: 12px;--profiler-space-4: 16px;--profiler-space-6: 24px;--profiler-space-8: 32px;--profiler-space-12: 48px;--profiler-radius-sm: 4px;--profiler-radius-md: 6px;--profiler-radius-lg: 10px;--profiler-radius-full: 9999px;--profiler-transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);--profiler-transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);--profiler-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);--profiler-transition-elastic: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);--profiler-z-toolbar: 999999;--profiler-z-panel: 1000000;--profiler-z-modal: 1000001}.profiler-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);cursor:pointer;transition:all var(--profiler-transition-base);color:var(--profiler-text-muted);font-size:14px}.profiler-theme-toggle:hover{background:var(--profiler-accent-bg);border-color:var(--profiler-border-accent);color:var(--profiler-accent);transform:scale(1.08)}.profiler-theme-toggle:active{transform:scale(0.94)}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}body{font-family:var(--profiler-font-sans);background:var(--profiler-bg);color:var(--profiler-text);line-height:1.6;font-size:var(--profiler-text-base);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.container{max-width:1400px;margin:0 auto;padding:var(--profiler-space-8) var(--profiler-space-6)}@media(max-width: 768px){.container{padding:var(--profiler-space-6) var(--profiler-space-4)}}.header{margin-bottom:var(--profiler-space-8);padding-bottom:var(--profiler-space-6);border-bottom:1px solid var(--profiler-border);animation:fadeInDown 400ms cubic-bezier(0.4, 0, 0.2, 1) both}.header h1{font-size:var(--profiler-text-3xl);font-weight:700;letter-spacing:-0.03em;line-height:1.15;margin-bottom:var(--profiler-space-2);color:var(--profiler-text);background:linear-gradient(125deg, var(--profiler-accent) 0%, var(--profiler-accent-hover) 60%, var(--profiler-warning) 100%);-webkit-background-clip:text;-webkit-text-fill-color:rgba(0,0,0,0);background-clip:text}.header h1 .h1-emoji{-webkit-text-fill-color:initial}.header h1 .h1-logo{color:var(--profiler-accent);vertical-align:-0.1em}.header h1 a{color:inherit;text-decoration:none;background:inherit;-webkit-background-clip:inherit;-webkit-text-fill-color:inherit;background-clip:inherit}.header h1 a:hover{opacity:.75}@media(max-width: 768px){.header h1{font-size:var(--profiler-text-2xl)}}.header p{font-size:var(--profiler-text-sm);color:var(--profiler-text-muted);font-family:var(--profiler-font-mono);letter-spacing:.03em}a{color:var(--profiler-accent);text-decoration:none;transition:color var(--profiler-transition-fast)}a:hover{color:var(--profiler-accent-hover)}a:focus-visible{outline:2px solid var(--profiler-border-accent);outline-offset:2px;border-radius:var(--profiler-radius-sm)}code,pre{font-family:var(--profiler-font-mono)}code{background:var(--profiler-accent-bg);color:var(--profiler-accent);padding:2px 6px;border-radius:var(--profiler-radius-sm);border:1px solid var(--profiler-border-accent);font-size:var(--profiler-text-sm)}pre{background:rgba(0,0,0,.25);padding:var(--profiler-space-4);border-radius:var(--profiler-radius-md);border:1px solid var(--profiler-border);overflow-x:auto;line-height:1.65;color:var(--profiler-text-secondary)}pre code{background:none;padding:0;border:none;color:inherit;font-size:inherit}[data-theme=light] pre{background:rgba(0,0,0,.03)}table{width:100%;border-collapse:collapse;font-size:var(--profiler-text-base)}table th{text-align:left;font-weight:600;font-size:var(--profiler-text-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--profiler-text-muted);padding:var(--profiler-space-2) var(--profiler-space-3);border-bottom:1px solid var(--profiler-border-strong);background:var(--profiler-bg-light);white-space:nowrap}table td{padding:var(--profiler-space-3);border-bottom:1px solid var(--profiler-border);color:var(--profiler-text);vertical-align:middle;font-size:var(--profiler-text-base)}table tr:last-child td{border-bottom:none}table tr:hover td{background:var(--profiler-bg-lighter)}table a{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:rgba(0,0,0,0)}::-webkit-scrollbar-thumb{background:var(--profiler-border-strong);border-radius:var(--profiler-radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--profiler-text-subtle)}::selection{background:var(--profiler-accent-bg);color:var(--profiler-text)}:focus-visible{outline:2px solid var(--profiler-accent);outline-offset:2px;border-radius:var(--profiler-radius-sm)}.card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg);padding:var(--profiler-space-6);box-shadow:var(--profiler-shadow-md);transition:all var(--profiler-transition-base)}.card:hover{border-color:var(--profiler-border-strong);box-shadow:var(--profiler-shadow-lg);transform:translateY(-2px)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--profiler-space-2);padding:var(--profiler-space-2) var(--profiler-space-4);font-family:var(--profiler-font-sans);font-size:var(--profiler-text-base);font-weight:600;border-radius:var(--profiler-radius-sm);border:1px solid rgba(0,0,0,0);cursor:pointer;transition:all var(--profiler-transition-base);text-decoration:none;white-space:nowrap;letter-spacing:.01em}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.btn-primary{background:var(--profiler-accent-bg);color:var(--profiler-accent);border-color:var(--profiler-border-accent)}.btn.btn-primary:hover:not(:disabled){background:var(--profiler-accent);color:var(--profiler-text-on-accent);transform:translateY(-1px);box-shadow:0 4px 16px var(--profiler-accent-glow)}.btn.btn-secondary{background:var(--profiler-bg-lighter);color:var(--profiler-text-secondary);border-color:var(--profiler-border)}.btn.btn-secondary:hover:not(:disabled){background:var(--profiler-bg-elevated);border-color:var(--profiler-border-strong);color:var(--profiler-text)}.btn.btn-sm{padding:var(--profiler-space-1) var(--profiler-space-3);font-size:var(--profiler-text-sm)}.btn.btn-danger{background:rgba(0,0,0,0);color:var(--profiler-error);border-color:var(--profiler-error)}.btn.btn-danger:hover:not(:disabled){background:var(--profiler-error);color:#fff}.profiler-load-more{display:flex;justify-content:center;padding:var(--profiler-space-4) 0 var(--profiler-space-2)}.token-copy{background:none;border:none;cursor:pointer;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);padding:2px 4px;border-radius:var(--profiler-radius-sm);transition:color var(--profiler-transition-base),background var(--profiler-transition-base)}.token-copy:hover{color:var(--profiler-accent);background:var(--profiler-accent-bg)}.btn-row-delete{background:none;border:none;cursor:pointer;color:var(--profiler-text-muted);font-size:var(--profiler-text-base);line-height:1;padding:2px 6px;border-radius:var(--profiler-radius-sm);transition:color var(--profiler-transition-base),background var(--profiler-transition-base);opacity:0}tr:hover .btn-row-delete{opacity:1}.btn-row-delete:hover{color:var(--profiler-error);background:var(--profiler-error-bg)}.badge,[class*=badge-]{display:inline-flex;align-items:center;padding:2px 7px;border-radius:var(--profiler-radius-sm);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);font-weight:600;letter-spacing:.04em;white-space:nowrap}.badge{background:var(--profiler-bg-lighter);color:var(--profiler-text-secondary);border:1px solid var(--profiler-border)}.badge-success{background:var(--profiler-success-bg);color:var(--profiler-success);border:1px solid rgba(34,197,94,.2)}.badge-warning{background:var(--profiler-warning-bg);color:var(--profiler-warning);border:1px solid rgba(251,146,60,.2)}.badge-error{background:var(--profiler-error-bg);color:var(--profiler-error);border:1px solid rgba(248,113,113,.2)}.badge-info{background:var(--profiler-info-bg);color:var(--profiler-info);border:1px solid rgba(96,165,250,.2)}.badge-default{background:var(--profiler-bg-lighter);color:var(--profiler-text-muted);border:1px solid var(--profiler-border)}.profiler-version-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:var(--profiler-radius-sm);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border)}.profiler-version-warn{margin-left:6px;cursor:help;font-size:var(--profiler-text-xs)}.profiler-version-mismatch{margin-top:var(--profiler-space-2);padding:var(--profiler-space-2) var(--profiler-space-3);border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-sm);background:var(--profiler-warning-bg);color:var(--profiler-warning);border:1px solid rgba(251,146,60,.3)}@keyframes fadeInDown{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeInUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{to{transform:rotate(360deg)}}.profiler-spinner{display:inline-block;animation:spin 1s linear infinite}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}.animate-fade-in{animation:fadeIn 300ms ease both}.animate-fade-in-up{animation:fadeInUp 400ms ease both}.loading-spinner{display:inline-block;width:18px;height:18px;border:2px solid var(--profiler-border-strong);border-top-color:var(--profiler-accent);border-radius:50%;animation:spin 700ms linear infinite}@media(max-width: 768px){.hidden-mobile{display:none !important}}@media(min-width: 769px){.hidden-desktop{display:none !important}}.profiler-flex{display:flex;align-items:center}.profiler-flex--center{justify-content:center}.profiler-flex--between{justify-content:space-between}.profiler-flex--column{flex-direction:column;align-items:flex-start}.profiler-flex--gap-1{gap:var(--profiler-space-1)}.profiler-flex--gap-2{gap:var(--profiler-space-2)}.profiler-flex--gap-3{gap:var(--profiler-space-3)}.profiler-flex--gap-4{gap:var(--profiler-space-4)}.profiler-flex--gap-6{gap:var(--profiler-space-6)}.profiler-grid{display:grid;gap:var(--profiler-space-4)}.profiler-grid--2{grid-template-columns:repeat(2, 1fr)}.profiler-grid--3{grid-template-columns:repeat(3, 1fr)}.profiler-grid--auto{grid-template-columns:repeat(auto-fit, minmax(180px, 1fr))}.profiler-mt-1{margin-top:var(--profiler-space-1)}.profiler-mt-2{margin-top:var(--profiler-space-2)}.profiler-mt-3{margin-top:var(--profiler-space-3)}.profiler-mt-4{margin-top:var(--profiler-space-4)}.profiler-mt-6{margin-top:var(--profiler-space-6)}.profiler-mt-8{margin-top:var(--profiler-space-8)}.profiler-mb-1{margin-bottom:var(--profiler-space-1)}.profiler-mb-2{margin-bottom:var(--profiler-space-2)}.profiler-mb-3{margin-bottom:var(--profiler-space-3)}.profiler-mb-4{margin-bottom:var(--profiler-space-4)}.profiler-mb-6{margin-bottom:var(--profiler-space-6)}.profiler-p-2{padding:var(--profiler-space-2)}.profiler-p-3{padding:var(--profiler-space-3)}.profiler-p-4{padding:var(--profiler-space-4)}.profiler-p-6{padding:var(--profiler-space-6)}.profiler-text--xs{font-size:var(--profiler-text-xs)}.profiler-text--sm{font-size:var(--profiler-text-sm)}.profiler-text--base{font-size:var(--profiler-text-base)}.profiler-text--lg{font-size:var(--profiler-text-lg)}.profiler-text--xl{font-size:var(--profiler-text-xl)}.profiler-text--2xl{font-size:var(--profiler-text-2xl)}.profiler-text--muted{color:var(--profiler-text-muted)}.profiler-text--subtle{color:var(--profiler-text-subtle)}.profiler-text--secondary{color:var(--profiler-text-secondary)}.profiler-text--success{color:var(--profiler-success)}.profiler-text--warning{color:var(--profiler-warning)}.profiler-text--error{color:var(--profiler-error)}.profiler-text--accent{color:var(--profiler-accent)}.profiler-text--uppercase{text-transform:uppercase;letter-spacing:.08em}.profiler-text--mono{font-family:var(--profiler-font-mono)}.profiler-text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-text--break{word-break:break-all}.profiler-panel{background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-4)}.profiler-panel--sm{padding:var(--profiler-space-3)}.profiler-panel--lg{padding:var(--profiler-space-6)}.profiler-stat-card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-4);transition:all var(--profiler-transition-base)}.profiler-stat-card:hover{border-color:var(--profiler-border-accent);box-shadow:var(--profiler-shadow-sm);transform:translateY(-2px)}.profiler-stat-card__label{font-size:var(--profiler-text-xs);text-transform:uppercase;letter-spacing:.1em;color:var(--profiler-text-muted);margin-bottom:var(--profiler-space-2);font-family:var(--profiler-font-mono)}.profiler-stat-card__value{font-size:var(--profiler-text-2xl);font-weight:700;font-family:var(--profiler-font-mono);color:var(--profiler-accent);line-height:1.1}.profiler-stat-card__value small{font-size:var(--profiler-text-sm);color:var(--profiler-text-muted);font-weight:500;margin-left:var(--profiler-space-1)}.profiler-kv-row{display:flex;justify-content:space-between;align-items:center;padding:var(--profiler-space-2) 0;border-bottom:1px solid var(--profiler-border);gap:var(--profiler-space-4)}.profiler-kv-row:last-child{border-bottom:none}.profiler-kv-row>span:first-child{color:var(--profiler-text-muted);font-size:var(--profiler-text-sm);flex-shrink:0}.profiler-kv-row>*:last-child{color:var(--profiler-text);font-weight:600;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);text-align:right}.profiler-query-card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-3);margin-bottom:var(--profiler-space-3);transition:all var(--profiler-transition-base)}.profiler-query-card:hover{border-color:var(--profiler-border-strong);transform:translateX(3px);box-shadow:var(--profiler-shadow-sm)}.profiler-query-card--slow{border-left:3px solid var(--profiler-error);background:var(--profiler-error-bg)}.profiler-query-card--slow:hover{box-shadow:0 0 16px var(--profiler-error-glow)}.profiler-query-card--success{border-left:3px solid var(--profiler-success)}.profiler-query-card__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--profiler-space-2);gap:var(--profiler-space-3)}.profiler-query-card__duration{font-weight:700;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-accent)}.profiler-query-card__duration--slow{color:var(--profiler-error)}.profiler-query-card__duration--fast{color:var(--profiler-success)}.profiler-query-card__code{font-size:var(--profiler-text-sm);color:var(--profiler-info);font-family:var(--profiler-font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;line-height:1.5}.profiler-query-card--n1{border-left:3px solid var(--profiler-warning);background:var(--profiler-warning-bg)}.profiler-n1-group{border:1px solid var(--profiler-warning);border-radius:var(--profiler-radius-md);overflow:hidden}.profiler-n1-group__header{display:flex;align-items:center;gap:var(--profiler-space-3);padding:var(--profiler-space-2) var(--profiler-space-3);background:var(--profiler-warning-bg);cursor:pointer;user-select:none}.profiler-n1-group__header:hover{filter:brightness(0.97)}.profiler-n1-group__count{font-size:var(--profiler-text-xs);font-weight:700;font-family:var(--profiler-font-mono);color:var(--profiler-warning);white-space:nowrap}.profiler-n1-group__pattern{flex:1;font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono);color:var(--profiler-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-n1-group__toggle{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);white-space:nowrap}.profiler-n1-backtrace{background:var(--profiler-bg-lighter);border-top:1px solid var(--profiler-border);padding:var(--profiler-space-2) var(--profiler-space-3)}.profiler-n1-backtrace__frame{font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono);color:var(--profiler-text-muted);line-height:1.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-alert-banner{display:flex;align-items:flex-start;gap:var(--profiler-space-3);padding:var(--profiler-space-3) var(--profiler-space-4);border-radius:var(--profiler-radius-md);border:1px solid;font-size:var(--profiler-text-sm)}.profiler-alert-banner--warning{background:var(--profiler-warning-bg);border-color:var(--profiler-warning);color:var(--profiler-text)}.profiler-alert-banner--error{background:var(--profiler-error-bg);border-color:var(--profiler-error)}.profiler-alert-banner__icon{flex-shrink:0;font-size:var(--profiler-text-base)}.profiler-badge{display:inline-block;padding:1px 6px;border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:600;font-family:var(--profiler-font-mono);line-height:1.6}.profiler-badge--warning{background:var(--profiler-warning-bg);color:var(--profiler-warning);border:1px solid rgba(251,146,60,.3)}.profiler-badge--error{background:var(--profiler-error-bg);color:var(--profiler-error)}.profiler-btn{display:inline-flex;align-items:center;gap:var(--profiler-space-1);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);background:var(--profiler-bg-elevated);color:var(--profiler-text-muted);font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);cursor:pointer;transition:all var(--profiler-transition-base)}.profiler-btn:hover{border-color:var(--profiler-accent);color:var(--profiler-accent)}.profiler-btn--sm{padding:1px 8px;font-size:var(--profiler-text-xs)}.profiler-modal__overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:9000;display:flex;align-items:center;justify-content:center;padding:var(--profiler-space-4)}.profiler-modal{background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg, var(--profiler-radius-md));box-shadow:var(--profiler-shadow-lg, var(--profiler-shadow-sm));width:100%;max-width:760px;max-height:80vh;display:flex;flex-direction:column;overflow:hidden}.profiler-modal__header{display:flex;align-items:center;gap:var(--profiler-space-3);padding:var(--profiler-space-3) var(--profiler-space-4);border-bottom:1px solid var(--profiler-border);background:var(--profiler-bg-light);flex-shrink:0}.profiler-modal__title{font-weight:600;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);flex:1}.profiler-modal__close{background:none;border:none;color:var(--profiler-text-muted);font-size:var(--profiler-text-lg);cursor:pointer;padding:0 var(--profiler-space-1);line-height:1}.profiler-modal__close:hover{color:var(--profiler-text)}.profiler-modal__body{padding:var(--profiler-space-4);overflow-y:auto;flex:1}.profiler-explain-result{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);color:var(--profiler-text);white-space:pre-wrap;word-break:break-all;line-height:1.6;margin:0}.profiler-explain-node{padding:var(--profiler-space-1) var(--profiler-space-2);margin-bottom:2px;border-radius:var(--profiler-radius-sm);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs)}.profiler-explain-node--expensive{background:var(--profiler-error-bg);border-left:2px solid var(--profiler-error)}.profiler-explain-node__type{font-weight:600;color:var(--profiler-accent)}.profiler-explain-node__stats{display:flex;gap:var(--profiler-space-3);margin-top:1px;flex-wrap:wrap}.profiler-dump-card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-left:3px solid var(--profiler-warning);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-4);margin-bottom:var(--profiler-space-4)}.profiler-dump-card__header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--profiler-space-3)}.profiler-dump-card__label{display:inline-block;background:var(--profiler-warning-bg);color:var(--profiler-warning);border:1px solid rgba(251,146,60,.3);padding:2px 8px;border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:600;font-family:var(--profiler-font-mono);margin-left:var(--profiler-space-2)}.profiler-dump-card__location{font-size:var(--profiler-text-xs);color:var(--profiler-info);font-family:var(--profiler-font-mono);text-align:right}.profiler-dump-card__content{background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);padding:var(--profiler-space-3);overflow-x:auto}.profiler-dump-card__content pre{color:var(--profiler-warning);margin:0;font-size:var(--profiler-text-sm);line-height:1.6;background:none;border:none;padding:0}.profiler-ajax-card{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-left:3px solid;border-radius:var(--profiler-radius-md);padding:var(--profiler-space-3);margin-bottom:var(--profiler-space-2);transition:all var(--profiler-transition-base)}.profiler-ajax-card--success{border-left-color:var(--profiler-success)}.profiler-ajax-card--error{border-left-color:var(--profiler-error)}.profiler-ajax-card:hover{background:var(--profiler-bg-elevated);transform:translateX(3px);box-shadow:var(--profiler-shadow-sm)}.profiler-ajax-card__row{display:flex;justify-content:space-between;align-items:center;gap:var(--profiler-space-3)}.profiler-ajax-card__row+.profiler-ajax-card__row{margin-top:var(--profiler-space-2)}.profiler-ajax-card__path{color:var(--profiler-text-secondary);font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.profiler-ajax-card__time{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-mono)}.profiler-empty{display:flex;flex-direction:column;align-items:center;padding:var(--profiler-space-12) var(--profiler-space-6);text-align:center;color:var(--profiler-text-muted)}.profiler-empty__icon{font-size:52px;margin-bottom:var(--profiler-space-4);opacity:.4;filter:grayscale(1)}.profiler-empty__title{font-size:var(--profiler-text-lg);font-weight:600;color:var(--profiler-text);margin-bottom:var(--profiler-space-3)}.profiler-empty__description{font-size:var(--profiler-text-base);line-height:1.7;max-width:420px;color:var(--profiler-text-muted)}.profiler-empty__description code{background:var(--profiler-accent-bg);color:var(--profiler-accent);border:1px solid var(--profiler-border-accent)}.profiler-divider{border:none;border-top:1px solid var(--profiler-border);margin:var(--profiler-space-4) 0}.profiler-divider--strong{border-top-color:var(--profiler-border-strong)}.profiler-divider--sm{margin:var(--profiler-space-2) 0}.profiler-divider--lg{margin:var(--profiler-space-6) 0}.profiler-more{text-align:center;padding:var(--profiler-space-3) var(--profiler-space-4);color:var(--profiler-text-muted);font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono);letter-spacing:.05em;border-top:1px dashed var(--profiler-border);margin-top:var(--profiler-space-2)}.profiler-float-right{float:right}.profiler-float-left{float:left}.profiler-clearfix::after{content:"";display:table;clear:both}.profiler-code{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);color:var(--profiler-text);padding:var(--profiler-space-3);margin:0;white-space:pre-wrap;word-break:break-all;overflow-x:auto;line-height:1.6}.profiler-body-csv{width:100%;border-collapse:collapse;font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono)}.profiler-body-csv th{background:var(--profiler-bg-elevated);color:var(--profiler-text-muted);font-weight:600;text-align:left;padding:4px 8px;border:1px solid var(--profiler-border);white-space:nowrap}.profiler-body-csv td{padding:3px 8px;border:1px solid var(--profiler-border);color:var(--profiler-text);word-break:break-all}.profiler-body-csv tbody tr:nth-child(even){background:var(--profiler-bg-elevated)}.profiler-body-binary{display:flex;flex-direction:column;gap:var(--profiler-space-2);padding:var(--profiler-space-3);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md)}.profiler-body-preview-frame{width:100%;height:400px;border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm)}.profiler-body-download-btn{display:inline-flex;align-items:center;gap:var(--profiler-space-1);padding:4px 10px;background:var(--profiler-accent-bg);color:var(--profiler-accent);border:1px solid var(--profiler-border-accent);border-radius:var(--profiler-radius-sm);text-decoration:none;font-family:var(--profiler-font-mono);transition:all var(--profiler-transition-base)}.profiler-body-download-btn:hover{background:var(--profiler-accent);color:#fff}.profiler-flex-table{display:flex;flex-direction:column}.profiler-flex-table__header{display:flex;align-items:center;gap:var(--profiler-space-3);padding:var(--profiler-space-2) var(--profiler-space-3);background:var(--profiler-bg-light);border-bottom:1px solid var(--profiler-border-strong);font-weight:600;font-size:var(--profiler-text-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--profiler-text-muted)}.profiler-flex-table__row{display:flex;align-items:center;gap:var(--profiler-space-3);padding:var(--profiler-space-3);border-bottom:1px solid var(--profiler-border);color:var(--profiler-text)}.profiler-flex-table__row--matched{background:var(--profiler-success-bg);border-left:2px solid var(--profiler-success)}.profiler-flex-table__cell{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-flex-table__cell--fixed{flex:0 0 auto}.profiler-flex-table__cell--muted{color:var(--profiler-text-muted)}@keyframes pfPop{0%{transform:scaleX(1)}15%{transform:scaleX(1.18)}40%{transform:scaleX(0.87)}65%{transform:scaleX(1.08)}85%{transform:scaleX(0.97)}100%{transform:scaleX(1)}}#profiler-toolbar{position:fixed;bottom:0;left:0;right:0;min-height:44px;background:var(--profiler-glass-bg);backdrop-filter:var(--profiler-blur);-webkit-backdrop-filter:var(--profiler-blur);border-top:1px solid var(--profiler-border-strong);z-index:var(--profiler-z-toolbar);font-family:var(--profiler-font-mono);font-size:11px;animation:toolbarIn 300ms cubic-bezier(0.4, 0, 0.2, 1) both;transition:left 280ms cubic-bezier(0.4, 0, 0.2, 1)}#profiler-toolbar::before{content:"";position:absolute;top:-1px;left:0;right:0;height:1px;background:linear-gradient(90deg, transparent 0%, var(--profiler-accent) 15%, var(--profiler-accent-hover) 50%, var(--profiler-accent) 85%, transparent 100%);opacity:.65}@keyframes toolbarIn{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.profiler-toolbar-container{display:flex;flex-wrap:wrap;align-items:stretch;align-content:flex-start;min-height:43px}.profiler-toolbar-main{display:flex;flex:none;align-items:stretch;min-height:43px}.profiler-toolbar-item{position:relative;display:inline-flex;align-items:center;gap:5px;padding:0 16px;color:var(--profiler-text-muted);text-decoration:none;white-space:nowrap;font-weight:500;letter-spacing:.01em;cursor:default;background:rgba(0,0,0,0);border:none;border-right:1px solid var(--profiler-border);transition:color var(--profiler-transition-fast),background var(--profiler-transition-fast)}.profiler-toolbar-item::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--profiler-accent);transform:scaleX(0);transform-origin:left;transition:transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1)}.profiler-toolbar-item:last-child{border-right:none}.profiler-toolbar-item:hover{color:var(--profiler-text);background:var(--profiler-accent-bg)}.profiler-toolbar-item:hover::after{transform:scaleX(1)}.profiler-toolbar-collapse-btn{margin-left:auto;padding:0 14px;border-left:1px solid var(--profiler-border);font-size:10px;color:var(--profiler-text-muted);cursor:pointer}.profiler-toolbar-collapse-btn:hover{color:var(--profiler-text);background:var(--profiler-accent-bg);animation:pfPop 380ms ease-out both}a.profiler-toolbar-item{cursor:pointer;font-family:var(--profiler-font-mono);font-size:11px}.profiler-toolbar-logo{border-right:1px solid var(--profiler-border) !important;display:inline-flex;align-items:center;gap:6px}.profiler-toolbar-logo-mark{flex:none;display:block}.profiler-text--success{color:var(--profiler-success) !important}.profiler-text--warning{color:var(--profiler-warning) !important}.profiler-text--error{color:var(--profiler-error) !important}.profiler-text--info{color:var(--profiler-info) !important}.profiler-text--muted{color:var(--profiler-text-muted) !important}.profiler-text--accent{color:var(--profiler-accent) !important}.profiler-toolbar-item.profiler-text--error::after{background:var(--profiler-error)}.profiler-toolbar-item.profiler-text--warning::after{background:var(--profiler-warning)}.profiler-toolbar-item.profiler-text--success::after{background:var(--profiler-success)}.profiler-toolbar-item.profiler-text--info::after{background:var(--profiler-info)}.profiler-toolbar-hoverable{position:relative}.profiler-toolbar-hoverable .profiler-toolbar-panel{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);min-width:320px;max-width:440px;background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border-strong);border-radius:var(--profiler-radius-lg);box-shadow:var(--profiler-shadow-xl),0 0 0 1px var(--profiler-border-accent);z-index:var(--profiler-z-panel);overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 160ms cubic-bezier(0.4, 0, 0.2, 1),visibility 0s linear 160ms}.profiler-toolbar-hoverable .profiler-toolbar-panel.is-visible{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 160ms cubic-bezier(0.4, 0, 0.2, 1),visibility 0s}.profiler-toolbar-hoverable .profiler-toolbar-panel::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg, var(--profiler-accent) 0%, var(--profiler-accent-hover) 100%)}.profiler-toolbar-hoverable .profiler-toolbar-panel::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid rgba(0,0,0,0);border-top-color:var(--profiler-border-strong)}.profiler-toolbar-hoverable .profiler-toolbar-panel.profiler-toolbar-panel-large{min-width:440px;max-width:580px}.profiler-toolbar-panel-header{display:flex;align-items:center;justify-content:space-between;padding:11px 16px 9px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--profiler-accent);background:var(--profiler-accent-bg);border-bottom:1px solid var(--profiler-border);font-family:var(--profiler-font-mono)}.profiler-float-right{color:var(--profiler-text-muted);font-weight:400;text-transform:none;letter-spacing:0;font-size:10px;font-family:var(--profiler-font-mono)}.profiler-toolbar-panel-content{padding:10px 16px 14px;max-height:420px;overflow-y:auto;font-size:11px;font-family:var(--profiler-font-mono);scrollbar-width:thin;scrollbar-color:var(--profiler-border-strong) rgba(0,0,0,0)}.profiler-toolbar-panel-content::-webkit-scrollbar{width:4px}.profiler-toolbar-panel-content::-webkit-scrollbar-thumb{background:var(--profiler-border-strong);border-radius:var(--profiler-radius-full)}.profiler-toolbar-panel-row{display:flex;justify-content:space-between;align-items:baseline;padding:6px 0;border-bottom:1px solid var(--profiler-border);gap:12px}.profiler-toolbar-panel-row:last-child{border-bottom:none}.profiler-toolbar-panel-row span{color:var(--profiler-text-muted);font-size:10px;flex-shrink:0}.profiler-toolbar-panel-row strong{color:var(--profiler-text);font-weight:600;text-align:right;font-variant-numeric:tabular-nums;word-break:break-all}.profiler-section__header{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--profiler-accent);padding:10px 0 4px;border-bottom:1px solid var(--profiler-border-accent);margin-bottom:6px;font-family:var(--profiler-font-mono)}.profiler-section__header:first-child{padding-top:4px}.profiler-toolbar-panel-query{padding:9px 10px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);margin-bottom:6px;transition:all var(--profiler-transition-fast)}.profiler-toolbar-panel-query:last-child{margin-bottom:0}.profiler-toolbar-panel-query:hover{border-color:var(--profiler-border-strong);transform:translateX(2px)}.profiler-toolbar-panel-query.profiler-toolbar-panel-query-slow{border-left:2px solid var(--profiler-error);background:var(--profiler-error-bg)}.profiler-toolbar-panel-query code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--profiler-info);font-size:10px;line-height:1.5;margin-top:4px}.profiler-more{text-align:center;padding:8px;color:var(--profiler-text-muted);font-size:10px;letter-spacing:.05em;border-top:1px dashed var(--profiler-border);margin-top:6px}#profiler-toolbar[data-collapsed=true] .profiler-toolbar-item:not(.profiler-toolbar-collapse-btn){display:none}#profiler-toolbar[data-collapsed=true] .profiler-toolbar-collapse-btn{margin-left:0}#profiler-toolbar[data-collapsed=true]::before{opacity:0}.profiler-pinbar{display:flex;flex:1 1 320px;flex-wrap:wrap;align-items:center;align-content:center;gap:4px 6px;min-width:0;min-height:43px;box-sizing:border-box;padding:3px 10px;border-left:1px solid var(--profiler-border-strong);border-right:1px solid var(--profiler-border)}.profiler-pin{position:relative;display:inline-flex;align-items:center;gap:5px;padding:2px 4px 2px 8px;max-width:280px;white-space:nowrap;color:var(--profiler-text);background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-full)}.profiler-pin.is-absent{opacity:.55}.profiler-pin.is-absent .profiler-pin-value{font-style:italic;color:var(--profiler-text-muted)}.profiler-pin.is-overridden{border-color:var(--profiler-border-accent)}.profiler-pin.has-error{border-color:var(--profiler-error)}.profiler-pin.is-stale{border-style:dashed;border-color:var(--profiler-error)}.profiler-pin-label{max-width:120px;overflow:hidden;text-overflow:ellipsis;color:var(--profiler-text-muted);font-size:10px}.profiler-pin-value{max-width:120px;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-family:inherit;font-size:inherit}.profiler-pin-edit,.profiler-pin-switch,.profiler-pin-remove,.profiler-pin-reset,.profiler-pin-refresh,.profiler-pin-button{appearance:none;background:rgba(0,0,0,0);border:none;color:inherit;cursor:pointer;padding:0}.profiler-pin-edit:focus-visible,.profiler-pin-switch:focus-visible,.profiler-pin-remove:focus-visible,.profiler-pin-reset:focus-visible,.profiler-pin-refresh:focus-visible,.profiler-pin-button:focus-visible{outline:2px solid var(--profiler-accent);outline-offset:1px}.profiler-pin-edit:disabled,.profiler-pin-switch:disabled,.profiler-pin-remove:disabled,.profiler-pin-reset:disabled,.profiler-pin-refresh:disabled,.profiler-pin-button:disabled{cursor:not-allowed;opacity:.5}.profiler-pin-edit{border-bottom:1px dashed var(--profiler-border-strong)}.profiler-pin-edit:hover{color:var(--profiler-accent)}.profiler-pin-switch{display:inline-flex;align-items:center;gap:4px}.profiler-pin-switch-knob{position:relative;width:22px;height:12px;border-radius:var(--profiler-radius-full);background:var(--profiler-border-strong);transition:background var(--profiler-transition-fast)}.profiler-pin-switch-knob::after{content:"";position:absolute;top:2px;left:2px;width:8px;height:8px;border-radius:50%;background:var(--profiler-text);transition:transform var(--profiler-transition-fast)}.profiler-pin-switch.is-on .profiler-pin-switch-knob{background:var(--profiler-success)}.profiler-pin-switch.is-on .profiler-pin-switch-knob::after{transform:translateX(10px)}.profiler-pin-input{width:120px;padding:0 4px;font:inherit;color:var(--profiler-text);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-accent);border-radius:var(--profiler-radius-sm)}.profiler-pin-input:focus-visible{outline:2px solid var(--profiler-accent);outline-offset:1px}.profiler-pin-badge{color:var(--profiler-accent);background:var(--profiler-accent-bg);border-radius:var(--profiler-radius-sm);padding:0 4px;font-size:9px;text-transform:uppercase;letter-spacing:.04em}.profiler-pin-remove,.profiler-pin-reset,.profiler-pin-refresh{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;color:var(--profiler-text-muted);line-height:1}.profiler-pin-remove:hover,.profiler-pin-reset:hover,.profiler-pin-refresh:hover{color:var(--profiler-text);background:var(--profiler-border)}.profiler-pin-error{position:absolute;bottom:100%;left:0;z-index:2;margin-bottom:6px;padding:2px 6px;max-width:280px;white-space:normal;font-size:10px;color:var(--profiler-error);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-error);border-radius:var(--profiler-radius-sm);box-shadow:var(--profiler-shadow-sm)}.profiler-pin-row{align-items:center}.profiler-pin-button{display:inline-flex;margin-left:auto;padding:2px;color:var(--profiler-text-muted);border-radius:var(--profiler-radius-sm);flex-shrink:0}.profiler-pin-button:hover{color:var(--profiler-accent)}.profiler-pin-button.is-pinned{color:var(--profiler-accent)}.profiler-pin-name{overflow:hidden;text-overflow:ellipsis;max-width:45%}.profiler-pin-envvalue{min-width:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--profiler-font-mono, monospace);font-size:10px}.profiler-pin-filter{width:100%;box-sizing:border-box;margin:4px 0 6px;padding:3px 6px;font:inherit;color:var(--profiler-text);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border-strong);border-radius:var(--profiler-radius-sm)}.profiler-pin-filter:focus-visible{outline:2px solid var(--profiler-accent);outline-offset:1px}.profiler-pin-note{padding:4px 0;font-size:10px;color:var(--profiler-text-muted)}.container>table{width:100%;border-collapse:collapse;background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg);overflow:hidden;box-shadow:var(--profiler-shadow-md)}.container>table thead{background:var(--profiler-accent-bg);border-bottom:1px solid var(--profiler-border-accent)}.container>table thead th{font-weight:600;font-size:var(--profiler-text-xs);letter-spacing:.1em;text-transform:uppercase;color:var(--profiler-accent);padding:14px 20px;border-bottom:none;background:rgba(0,0,0,0)}.container>table tbody td{padding:14px 20px;font-size:var(--profiler-text-base);color:var(--profiler-text-secondary);border-bottom:1px solid var(--profiler-border);vertical-align:middle}.container>table tbody tr:last-child td{border-bottom:none}.container>table tbody tr:hover td{background:var(--profiler-accent-bg);color:var(--profiler-text)}.container>table tbody tr:hover td:first-child{border-left:2px solid var(--profiler-accent);padding-left:18px}.container>table a{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-accent)}.container>table a:hover{color:var(--profiler-accent-hover)}.tabs{display:flex;align-items:center;border-bottom:1px solid var(--profiler-border);margin-bottom:var(--profiler-space-6);gap:2px;overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.btn-refresh{flex-shrink:0;background:none;border:none;cursor:pointer;color:var(--profiler-text-muted);font-size:1.1rem;line-height:1;padding:4px 8px;border-radius:var(--profiler-radius-sm);transition:color var(--profiler-transition-base),background var(--profiler-transition-base);margin-bottom:-1px}.btn-refresh:hover:not(:disabled){color:var(--profiler-accent);background:var(--profiler-accent-bg)}.btn-refresh:disabled{cursor:not-allowed}.btn-refresh--spinning{animation:profiler-spin .7s linear infinite}@keyframes profiler-spin{to{transform:rotate(360deg)}}.tab{position:relative;display:flex;align-items:center;gap:6px;padding:12px 18px;color:var(--profiler-text-muted);text-decoration:none;font-size:var(--profiler-text-base);font-weight:500;white-space:nowrap;border-bottom:2px solid rgba(0,0,0,0);transition:color var(--profiler-transition-fast),border-color var(--profiler-transition-fast);font-family:var(--profiler-font-sans);cursor:pointer;background:none;border-top:none;border-left:none;border-right:none}.tab:hover{color:var(--profiler-text);background:var(--profiler-accent-bg)}.tab.active{color:var(--profiler-accent);border-bottom-color:var(--profiler-accent);font-weight:600}.tab .tab-icon{font-size:14px;line-height:1}.tab-content{display:none}.tab-content.active{display:block}.tab-content h2{font-size:var(--profiler-text-xl);font-weight:700;color:var(--profiler-text);margin-bottom:var(--profiler-space-4);letter-spacing:-0.02em}.tab-content h3{font-size:var(--profiler-text-lg);font-weight:600;color:var(--profiler-text);margin-bottom:var(--profiler-space-3)}.tab-content table{width:100%;border-collapse:collapse;background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);overflow:hidden}.tab-content table th{width:180px;text-align:left;padding:12px 16px;font-size:var(--profiler-text-xs);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--profiler-accent);background:var(--profiler-accent-bg);border-bottom:1px solid var(--profiler-border);border-right:1px solid var(--profiler-border);vertical-align:top}.tab-content table td{padding:12px 16px;font-size:var(--profiler-text-base);color:var(--profiler-text);border-bottom:1px solid var(--profiler-border);vertical-align:top}.tab-content table tr:last-child th,.tab-content table tr:last-child td{border-bottom:none}.tab-content table pre{margin:0;font-size:var(--profiler-text-sm)}.profiler-panel{background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg);overflow:hidden;box-shadow:var(--profiler-shadow-md)}.profiler-panel--sm{padding:var(--profiler-space-3);border-radius:var(--profiler-radius-md)}.profiler-section__header{font-size:var(--profiler-text-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--profiler-accent);padding-bottom:var(--profiler-space-2);margin-bottom:var(--profiler-space-4);border-bottom:1px solid var(--profiler-border-accent);font-family:var(--profiler-font-mono)}.profiler-action-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--profiler-space-2);flex-wrap:wrap}.profiler-filter-group{display:flex;align-items:center;gap:var(--profiler-space-2);flex-wrap:wrap}.profiler-filter-count{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-mono);white-space:nowrap;opacity:.7}.profiler-filter-input,.profiler-filter-select{height:28px;padding:0 var(--profiler-space-2);background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);color:var(--profiler-text);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);transition:border-color var(--profiler-transition-base)}.profiler-filter-input:focus,.profiler-filter-select:focus{outline:none;border-color:var(--profiler-accent)}.profiler-filter-input{width:160px}.profiler-filter-select{cursor:pointer}.profiler-preset-btn{height:28px;padding:0 10px;background:rgba(0,0,0,0);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-full);color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);font-size:var(--profiler-text-xs);font-weight:500;cursor:pointer;transition:all var(--profiler-transition-base);white-space:nowrap}.profiler-preset-btn:hover{border-color:var(--profiler-accent);color:var(--profiler-accent);background:var(--profiler-accent-bg)}.profiler-preset-btn--active{border-color:var(--profiler-accent);background:var(--profiler-accent);color:var(--profiler-text-on-accent, #fff)}.profiler-preset-btn--active:hover{opacity:.85;color:var(--profiler-text-on-accent, #fff)}.sortable{cursor:pointer;user-select:none;white-space:nowrap;transition:color var(--profiler-transition-base)}.sortable:hover{color:var(--profiler-text) !important}.sortable--active{color:var(--profiler-text) !important}.sort-icon{font-size:10px;margin-left:4px;vertical-align:middle}.sort-icon--idle{opacity:.35}.sort-icon--active{color:var(--profiler-accent);opacity:1}@keyframes profiler-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}.profiler-skeleton__row{display:flex;align-items:center;gap:20px;padding:14px 20px;border-bottom:1px solid var(--profiler-border)}.profiler-skeleton__row:last-child{border-bottom:none}.profiler-skeleton__cell{height:12px;border-radius:3px;background:linear-gradient(90deg, var(--profiler-bg-lighter, #e5e7eb) 25%, var(--profiler-bg-light, #f3f4f6) 50%, var(--profiler-bg-lighter, #e5e7eb) 75%);background-size:200% 100%;animation:profiler-shimmer 1.4s infinite linear}.profiler-skeleton__cell--xs{width:40px;flex-shrink:0}.profiler-skeleton__cell--sm{width:72px;flex-shrink:0}.profiler-skeleton__cell--md{width:120px;flex-shrink:0}.profiler-skeleton__cell--lg{width:180px;flex-shrink:0}.profiler-skeleton__cell--flex{flex:1;min-width:60px}.profiler-timeline{margin:24px 0;padding:24px;background:linear-gradient(135deg, rgba(21, 25, 31, 0.4) 0%, rgba(31, 35, 41, 0.4) 100%);backdrop-filter:blur(12px);border:1px solid var(--profiler-border);border-radius:12px;box-shadow:var(--profiler-shadow-md);animation:fadeIn 500ms cubic-bezier(0.4, 0, 0.2, 1)}.profiler-timeline svg{display:block;width:100%;height:auto;filter:drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2))}.profiler-timeline .timeline-event{cursor:pointer;transition:all var(--profiler-transition-base);transform-origin:center}.profiler-timeline .timeline-event:hover{opacity:.85;transform:scale(1.02);filter:drop-shadow(0 4px 12px rgba(0, 217, 255, 0.3))}.profiler-timeline .timeline-event:active{transform:scale(0.98)}.profiler-timeline .timeline-label{font-size:11px;font-family:var(--profiler-font-mono);font-weight:500;fill:var(--profiler-text-secondary);transition:fill var(--profiler-transition-base)}.profiler-timeline .timeline-label:hover{fill:var(--profiler-text)}.profiler-timeline .timeline-bar{rx:4;transition:all var(--profiler-transition-base);stroke-width:1;stroke:rgba(0,0,0,.3)}.profiler-timeline .timeline-bar.controller{fill:#60a5fa;stroke:rgba(96,165,250,.5)}.profiler-timeline .timeline-bar.controller:hover{fill:#93c5fd;filter:drop-shadow(0 0 8px rgba(96, 165, 250, 0.6))}.profiler-timeline .timeline-bar.view{fill:#34d399;stroke:rgba(52,211,153,.5)}.profiler-timeline .timeline-bar.view:hover{fill:#6ee7b7;filter:drop-shadow(0 0 8px rgba(52, 211, 153, 0.6))}.profiler-timeline .timeline-bar.partial{fill:#f59e0b;stroke:rgba(245,158,11,.5)}.profiler-timeline .timeline-bar.partial:hover{fill:#fbbf24;filter:drop-shadow(0 0 8px rgba(245, 158, 11, 0.6))}.profiler-timeline .timeline-bar.database{fill:#fb923c;stroke:rgba(251,146,60,.5)}.profiler-timeline .timeline-bar.database:hover{fill:#fdba74;filter:drop-shadow(0 0 8px rgba(251, 146, 60, 0.6))}.profiler-timeline .timeline-bar.default{fill:#a78bfa;stroke:rgba(167,139,250,.5)}.profiler-timeline .timeline-bar.default:hover{fill:#c4b5fd;filter:drop-shadow(0 0 8px rgba(167, 139, 250, 0.6))}.profiler-timeline .timeline-axis{stroke:var(--profiler-border-strong);stroke-width:2;stroke-linecap:round}.profiler-timeline .timeline-grid{stroke:var(--profiler-border);stroke-width:1;stroke-dasharray:4 4;opacity:.2;transition:opacity var(--profiler-transition-base)}.profiler-timeline .timeline-grid:hover{opacity:.4}.profiler-timeline .timeline-legend{display:flex;gap:20px;margin-top:20px;padding-top:20px;border-top:1px solid var(--profiler-border);flex-wrap:wrap;justify-content:center}.profiler-timeline .timeline-legend .legend-item{display:flex;align-items:center;gap:8px;font-size:12px;font-family:var(--profiler-font-sans);color:var(--profiler-text-muted);padding:6px 12px;background:hsla(0,0%,100%,.02);border-radius:8px;border:1px solid var(--profiler-border);transition:all var(--profiler-transition-base)}.profiler-timeline .timeline-legend .legend-item:hover{background:hsla(0,0%,100%,.05);color:var(--profiler-text);transform:translateY(-2px)}.profiler-timeline .timeline-legend .legend-item .legend-color{width:16px;height:16px;border-radius:4px;border:1px solid rgba(0,0,0,.3);box-shadow:inset 0 1px 2px rgba(0,0,0,.2)}.profiler-timeline .timeline-legend .legend-item .legend-color.controller{background:var(--profiler-accent);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(0,217,255,.3)}.profiler-timeline .timeline-legend .legend-item .legend-color.view{background:var(--profiler-success);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(0,255,159,.3)}.profiler-timeline .timeline-legend .legend-item .legend-color.partial{background:var(--profiler-warning);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(255,107,53,.3)}.profiler-timeline .timeline-legend .legend-item .legend-color.database{background:var(--profiler-warning);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(255,184,108,.3)}.profiler-timeline .timeline-legend .legend-item .legend-color.default{background:var(--profiler-info);box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 0 8px rgba(189,147,249,.3)}.profiler-timeline .timeline-metrics{display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));gap:16px;margin-bottom:24px}.profiler-timeline .timeline-metrics .metric-card{background:rgba(0,0,0,.2);border:1px solid var(--profiler-border);border-radius:8px;padding:16px;transition:all var(--profiler-transition-base)}.profiler-timeline .timeline-metrics .metric-card:hover{background:rgba(0,0,0,.3);border-color:var(--profiler-border-strong);transform:translateY(-2px);box-shadow:var(--profiler-shadow-sm)}.profiler-timeline .timeline-metrics .metric-card .metric-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--profiler-text-muted);margin-bottom:8px;font-family:var(--profiler-font-sans)}.profiler-timeline .timeline-metrics .metric-card .metric-value{font-size:24px;font-weight:700;font-family:var(--profiler-font-mono);color:var(--profiler-accent);line-height:1}.profiler-timeline .timeline-metrics .metric-card .metric-value small{font-size:14px;color:var(--profiler-text-muted);font-weight:500;margin-left:4px}.profiler-timeline .timeline-metrics .metric-card .metric-change{font-size:11px;margin-top:6px;font-family:var(--profiler-font-mono)}.profiler-timeline .timeline-metrics .metric-card .metric-change.positive{color:var(--profiler-success)}.profiler-timeline .timeline-metrics .metric-card .metric-change.negative{color:var(--profiler-error)}.profiler-timeline .timeline-metrics .metric-card .metric-change.neutral{color:var(--profiler-text-muted)}.profiler-timeline .timeline-tooltip{position:absolute;background:linear-gradient(135deg, rgba(21, 25, 31, 0.98) 0%, rgba(31, 35, 41, 0.98) 100%);backdrop-filter:blur(16px);border:1px solid var(--profiler-border-strong);border-radius:8px;padding:12px 16px;font-family:var(--profiler-font-mono);font-size:12px;color:var(--profiler-text);pointer-events:none;z-index:1000;box-shadow:0 8px 32px rgba(0,0,0,.5),0 0 0 1px hsla(0,0%,100%,.03);opacity:0;transform:translateY(8px);transition:all var(--profiler-transition-base)}.profiler-timeline .timeline-tooltip.visible{opacity:1;transform:translateY(0)}.profiler-timeline .timeline-tooltip .tooltip-header{font-weight:600;color:var(--profiler-accent);margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid var(--profiler-border)}.profiler-timeline .timeline-tooltip .tooltip-row{display:flex;justify-content:space-between;gap:16px;margin:4px 0}.profiler-timeline .timeline-tooltip .tooltip-row .label{color:var(--profiler-text-muted)}.profiler-timeline .timeline-tooltip .tooltip-row .value{color:var(--profiler-text);font-weight:600}@keyframes barSlideIn{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}.profiler-timeline .timeline-bar{animation:barSlideIn 600ms cubic-bezier(0.4, 0, 0.2, 1) backwards}.profiler-timeline .timeline-bar:nth-child(1){animation-delay:30ms}.profiler-timeline .timeline-bar:nth-child(2){animation-delay:60ms}.profiler-timeline .timeline-bar:nth-child(3){animation-delay:90ms}.profiler-timeline .timeline-bar:nth-child(4){animation-delay:120ms}.profiler-timeline .timeline-bar:nth-child(5){animation-delay:150ms}.profiler-timeline .timeline-bar:nth-child(6){animation-delay:180ms}.profiler-timeline .timeline-bar:nth-child(7){animation-delay:210ms}.profiler-timeline .timeline-bar:nth-child(8){animation-delay:240ms}.profiler-timeline .timeline-bar:nth-child(9){animation-delay:270ms}.profiler-timeline .timeline-bar:nth-child(10){animation-delay:300ms}.profiler-timeline .timeline-bar:nth-child(11){animation-delay:330ms}.profiler-timeline .timeline-bar:nth-child(12){animation-delay:360ms}.profiler-timeline .timeline-bar:nth-child(13){animation-delay:390ms}.profiler-timeline .timeline-bar:nth-child(14){animation-delay:420ms}.profiler-timeline .timeline-bar:nth-child(15){animation-delay:450ms}.profiler-timeline .timeline-bar:nth-child(16){animation-delay:480ms}.profiler-timeline .timeline-bar:nth-child(17){animation-delay:510ms}.profiler-timeline .timeline-bar:nth-child(18){animation-delay:540ms}.profiler-timeline .timeline-bar:nth-child(19){animation-delay:570ms}.profiler-timeline .timeline-bar:nth-child(20){animation-delay:600ms}.profiler-flamegraph{animation:fadeIn 500ms cubic-bezier(0.4, 0, 0.2, 1)}.profiler-flamegraph__stats{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.profiler-flamegraph__stats .stat-item{display:flex;flex-direction:column;gap:2px;padding:10px 14px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);min-width:80px;transition:all var(--profiler-transition-base)}.profiler-flamegraph__stats .stat-item:hover{border-color:var(--profiler-border-strong);transform:translateY(-1px);box-shadow:var(--profiler-shadow-sm)}.profiler-flamegraph__stats .stat-label{font-size:var(--profiler-text-xs);text-transform:uppercase;letter-spacing:.06em;color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);display:flex;align-items:center;gap:6px}.profiler-flamegraph__stats .stat-value{font-size:var(--profiler-text-lg);font-weight:700;font-family:var(--profiler-font-mono);color:var(--profiler-accent);line-height:1.2}.profiler-flamegraph__stats .stat-value small{font-size:var(--profiler-text-sm);color:var(--profiler-text-muted);font-weight:500}.profiler-flamegraph__stats .stat-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}.profiler-flamegraph__legend{display:flex;gap:16px;margin-bottom:12px;flex-wrap:wrap}.profiler-flamegraph__legend .legend-item{display:flex;align-items:center;gap:6px;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-sans);color:var(--profiler-text-muted)}.profiler-flamegraph__legend .legend-item .legend-color{width:12px;height:12px;border-radius:3px;flex-shrink:0}.profiler-flamegraph__controls{display:flex;align-items:center;gap:12px;margin-bottom:8px}.profiler-flamegraph__reset{padding:4px 12px;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-sans);font-weight:500;background:var(--profiler-accent-bg);color:var(--profiler-accent);border:1px solid var(--profiler-border-accent);border-radius:var(--profiler-radius-sm);cursor:pointer;transition:all var(--profiler-transition-base)}.profiler-flamegraph__reset:hover{background:var(--profiler-accent);color:var(--profiler-text-on-accent)}.profiler-flamegraph__hint{font-size:var(--profiler-text-xs);color:var(--profiler-text-subtle);font-family:var(--profiler-font-sans)}.profiler-flamegraph__search{display:flex;align-items:center;gap:8px}.profiler-flamegraph__search-input{height:28px;padding:0 8px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);color:var(--profiler-text);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);width:200px;transition:border-color var(--profiler-transition-base)}.profiler-flamegraph__search-input:focus{outline:none;border-color:var(--profiler-accent)}.profiler-flamegraph__match-count{font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono);color:var(--profiler-text-muted);white-space:nowrap}.profiler-flamegraph__canvas-container{position:relative;border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-lg);overflow:visible;background:var(--profiler-bg-light)}.profiler-flamegraph__canvas{display:block;width:100%;cursor:default}.profiler-flamegraph__breadcrumbs{display:none;align-items:center;gap:4px;padding:8px 12px;background:var(--profiler-bg-lighter);border-bottom:1px solid var(--profiler-border);font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);flex-wrap:wrap;overflow:hidden}.profiler-flamegraph__breadcrumbs .breadcrumb-item{background:none;border:none;padding:2px 6px;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);color:var(--profiler-text-secondary);cursor:pointer;border-radius:var(--profiler-radius-sm);transition:all var(--profiler-transition-fast);white-space:nowrap}.profiler-flamegraph__breadcrumbs .breadcrumb-item:hover{background:var(--profiler-accent-bg);color:var(--profiler-accent)}.profiler-flamegraph__breadcrumbs .breadcrumb-item:last-child{color:var(--profiler-accent);font-weight:600}.profiler-flamegraph__breadcrumbs .breadcrumb-separator{color:var(--profiler-text-subtle);font-size:var(--profiler-text-base);user-select:none}.profiler-flamegraph__tooltip{position:fixed;background:var(--profiler-bg-overlay);backdrop-filter:blur(16px);border:1px solid var(--profiler-border-strong);border-radius:var(--profiler-radius-md);padding:10px 14px;font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-text);pointer-events:none;z-index:1000;box-shadow:var(--profiler-shadow-lg);opacity:0;transform:translateY(6px);transition:opacity var(--profiler-transition-fast),transform var(--profiler-transition-fast);max-width:400px;word-break:break-all}.profiler-flamegraph__tooltip.visible{opacity:1;transform:translateY(0)}.profiler-flamegraph__tooltip .tooltip-header{font-weight:600;color:var(--profiler-accent);margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid var(--profiler-border);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:350px}.profiler-flamegraph__tooltip .tooltip-row{display:flex;justify-content:space-between;gap:16px;margin:3px 0}.profiler-flamegraph__tooltip .tooltip-row .label{color:var(--profiler-text-muted)}.profiler-flamegraph__tooltip .tooltip-row .value{color:var(--profiler-text);font-weight:600}.profiler-flamegraph__tooltip .tooltip-badge{display:inline-block;padding:1px 8px;border-radius:var(--profiler-radius-full);font-size:var(--profiler-text-xs);font-weight:600;color:#fff}.profiler-flamegraph__tooltip .tooltip-payload{margin-top:6px;padding-top:6px;border-top:1px solid var(--profiler-border);font-size:var(--profiler-text-xs);color:var(--profiler-text-secondary);white-space:pre-wrap;max-height:80px;overflow:hidden}.profiler-fn-profiling{margin-top:32px;border-top:1px solid var(--profiler-border);padding-top:24px;animation:fadeIn 300ms ease}.profiler-fn-profiling__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}.profiler-fn-profiling__title{font-size:var(--profiler-text-xs);font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);display:flex;align-items:center;gap:8px}.profiler-fn-profiling__title::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#94a3b8;flex-shrink:0}.profiler-fn-profiling__title--active::before{background:var(--profiler-accent);box-shadow:0 0 6px var(--profiler-accent-glow)}.profiler-fn-profiling__controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.profiler-fn-profiling__max-frames-label{display:flex;align-items:center;gap:6px;font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);cursor:default}.profiler-fn-profiling__max-frames-input{width:70px;height:26px;padding:0 8px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-sm);color:var(--profiler-text);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);text-align:center;transition:border-color var(--profiler-transition-base);appearance:textfield}.profiler-fn-profiling__max-frames-input::-webkit-inner-spin-button,.profiler-fn-profiling__max-frames-input::-webkit-outer-spin-button{-webkit-appearance:none}.profiler-fn-profiling__max-frames-input:focus{outline:none;border-color:var(--profiler-accent);box-shadow:0 0 0 2px var(--profiler-accent-glow)}.profiler-fn-profiling__max-frames-input:disabled{opacity:.4;cursor:not-allowed}.profiler-fn-profiling__updating{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-mono);animation:pulse 1s ease-in-out infinite}.profiler-fn-profiling__toggle{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 14px;border-radius:var(--profiler-radius-full);border:1px solid var(--profiler-border-strong);background:var(--profiler-bg-lighter);color:var(--profiler-text-muted);font-size:var(--profiler-text-xs);font-weight:600;font-family:var(--profiler-font-sans);cursor:pointer;transition:all var(--profiler-transition-base);white-space:nowrap}.profiler-fn-profiling__toggle::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--profiler-text-subtle);flex-shrink:0;transition:background var(--profiler-transition-base),box-shadow var(--profiler-transition-base)}.profiler-fn-profiling__toggle:hover{border-color:var(--profiler-border-strong);color:var(--profiler-text);background:var(--profiler-bg-elevated)}.profiler-fn-profiling__toggle:disabled{opacity:.5;cursor:not-allowed}.profiler-fn-profiling__toggle--active{border-color:var(--profiler-border-accent);background:var(--profiler-accent-bg);color:var(--profiler-accent)}.profiler-fn-profiling__toggle--active::before{background:var(--profiler-accent);box-shadow:0 0 6px var(--profiler-accent-glow)}.profiler-fn-profiling__toggle--active:hover{background:rgba(245,158,11,.15)}.profiler-fn-profiling__mode-selector{display:inline-flex;border:1px solid var(--profiler-border-strong);border-radius:var(--profiler-radius-sm);overflow:hidden}.profiler-fn-profiling__mode-btn{height:28px;padding:0 12px;background:var(--profiler-bg-lighter);border:none;border-right:1px solid var(--profiler-border-strong);color:var(--profiler-text-muted);font-size:var(--profiler-text-xs);font-weight:600;font-family:var(--profiler-font-sans);cursor:pointer;transition:all var(--profiler-transition-base);white-space:nowrap}.profiler-fn-profiling__mode-btn:last-child{border-right:none}.profiler-fn-profiling__mode-btn:hover:not(:disabled):not(.profiler-fn-profiling__mode-btn--active){background:var(--profiler-bg-elevated);color:var(--profiler-text)}.profiler-fn-profiling__mode-btn--active{background:var(--profiler-accent-bg);color:var(--profiler-accent);cursor:default}.profiler-fn-profiling__mode-btn:disabled{opacity:.5;cursor:not-allowed}.profiler-fn-profiling__cpu-pct{color:var(--profiler-text-subtle);font-size:.85em}.profiler-fn-profiling__gc--medium{color:#f59e0b}.profiler-fn-profiling__gc--high{color:#ef4444;font-weight:600}.profiler-fn-profiling__hint{margin:12px 0 0;padding:10px 14px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);font-family:var(--profiler-font-sans);line-height:1.6}.profiler-fn-profiling__flamegraph{margin:16px 0}.profiler-fn-profiling__flamegraph .profiler-flamegraph__controls{margin-bottom:6px}.profiler-fn-profiling__sort{display:flex;align-items:center;gap:4px;margin:16px 0 8px;padding:3px;background:var(--profiler-bg-lighter);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);width:fit-content}.profiler-fn-profiling__sort-btn{padding:4px 12px;border:none;border-radius:var(--profiler-radius-sm);background:rgba(0,0,0,0);color:var(--profiler-text-muted);font-size:var(--profiler-text-xs);font-weight:500;font-family:var(--profiler-font-sans);cursor:pointer;transition:all var(--profiler-transition-fast);white-space:nowrap}.profiler-fn-profiling__sort-btn:hover{color:var(--profiler-text);background:var(--profiler-bg-elevated)}.profiler-fn-profiling__sort-btn--active{background:var(--profiler-accent);color:var(--profiler-text-on-accent);font-weight:600;box-shadow:var(--profiler-shadow-sm)}.profiler-fn-profiling__sort-btn--active:hover{background:var(--profiler-accent-hover);color:var(--profiler-text-on-accent)}.profiler-fn-profiling__table{width:100%;border-collapse:collapse;font-size:var(--profiler-text-xs);font-family:var(--profiler-font-sans);margin-top:8px}.profiler-fn-profiling__table thead tr{border-bottom:1px solid var(--profiler-border-strong)}.profiler-fn-profiling__table th{padding:8px 10px;text-align:left;font-size:var(--profiler-text-xs);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--profiler-text-subtle)}.profiler-fn-profiling__table th.profiler-text--right{text-align:right}.profiler-fn-profiling__table tbody tr{border-bottom:1px solid var(--profiler-border);transition:background var(--profiler-transition-fast)}.profiler-fn-profiling__table tbody tr:hover{background:var(--profiler-bg-lighter)}.profiler-fn-profiling__table tbody tr:last-child{border-bottom:none}.profiler-fn-profiling__table tbody tr.profiler-fn-profiling__row--highlighted{background:rgba(251,191,36,.08);outline:1px solid rgba(251,191,36,.35);outline-offset:-1px}.profiler-fn-profiling__table td{padding:7px 10px;vertical-align:middle;line-height:1.4}.profiler-fn-profiling__table td.profiler-text--right{text-align:right}.profiler-fn-profiling__table td.profiler-text--muted{color:var(--profiler-text-muted)}.profiler-fn-profiling__name{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs);font-weight:500;color:var(--profiler-text);max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profiler-fn-profiling__recursive{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:3px;background:var(--profiler-warning-bg);color:var(--profiler-warning);font-size:9px;font-weight:700;margin-right:5px;vertical-align:middle;flex-shrink:0;cursor:help}.profiler-fn-profiling__filter-active{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 0;padding:8px 14px;background:var(--profiler-accent-bg);border:1px solid var(--profiler-border-accent);border-radius:var(--profiler-radius-md);font-size:var(--profiler-text-xs);color:var(--profiler-accent);font-family:var(--profiler-font-sans)}.profiler-fn-profiling__filter-active strong{font-family:var(--profiler-font-mono);font-weight:600}.profiler-fn-profiling__filter-clear{padding:2px 8px;border:1px solid var(--profiler-border-accent);border-radius:var(--profiler-radius-sm);background:rgba(0,0,0,0);color:var(--profiler-accent);font-size:var(--profiler-text-xs);font-family:var(--profiler-font-sans);cursor:pointer;transition:all var(--profiler-transition-fast);white-space:nowrap}.profiler-fn-profiling__filter-clear:hover{background:var(--profiler-accent);color:var(--profiler-text-on-accent)}.profiler-fn-profiling__cap-warning{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:10px 14px;background:var(--profiler-warning-bg);border:1px solid rgba(251,146,60,.3);border-radius:var(--profiler-radius-md);font-size:var(--profiler-text-xs);color:var(--profiler-warning);font-family:var(--profiler-font-sans);font-weight:500}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}pre[data-language=sql],.sql-code{background:var(--profiler-bg);padding:15px;border-radius:4px;overflow-x:auto;font-family:"Monaco","Menlo","Ubuntu Mono",monospace;font-size:13px;line-height:1.5}pre[data-language=sql] .sql-keyword,.sql-code .sql-keyword{color:#c586c0;font-weight:600}pre[data-language=sql] .sql-string,.sql-code .sql-string{color:#ce9178}pre[data-language=sql] .sql-number,.sql-code .sql-number{color:#b5cea8}pre[data-language=sql] .sql-comment,.sql-code .sql-comment{color:var(--profiler-text-muted);font-style:italic}pre[data-language=sql] .sql-function,.sql-code .sql-function{color:#dcdcaa}pre[data-language=sql] .sql-operator,.sql-code .sql-operator{color:var(--profiler-info)}.backtrace{font-family:"Monaco","Menlo","Ubuntu Mono",monospace;font-size:11px;color:var(--profiler-text-muted);line-height:1.6}.backtrace .file-path{color:var(--profiler-info)}.backtrace .file-path:hover{text-decoration:underline}.backtrace .line-number{color:var(--profiler-warning)}.backtrace .method-name{color:#dcdcaa}.profile-header{margin-bottom:var(--profiler-space-6);padding-bottom:var(--profiler-space-4);border-bottom:1px solid var(--profiler-border)}.profile-header h2{font-size:var(--profiler-text-xl);margin-bottom:var(--profiler-space-3);color:var(--profiler-text);font-weight:600}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));gap:var(--profiler-space-4);margin-bottom:var(--profiler-space-6)}.stat{background:var(--profiler-bg-lighter);padding:var(--profiler-space-3);border-radius:var(--profiler-radius-md);border:1px solid var(--profiler-border);transition:all var(--profiler-transition-base)}.stat:hover{background:var(--profiler-bg-elevated);border-color:var(--profiler-border-strong);transform:translateY(-2px);box-shadow:var(--profiler-shadow-sm)}.stat-label{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);margin-bottom:var(--profiler-space-1);text-transform:uppercase;letter-spacing:.08em}.stat-value{font-size:var(--profiler-text-xl);font-weight:600;color:var(--profiler-accent);font-family:var(--profiler-font-mono)}.tabs{display:flex;gap:var(--profiler-space-1);border-bottom:1px solid var(--profiler-border);margin-bottom:var(--profiler-space-6)}.tab{padding:var(--profiler-space-3) var(--profiler-space-4);background:rgba(0,0,0,0);border:none;color:var(--profiler-text-muted);cursor:pointer;font-size:var(--profiler-text-base);border-bottom:2px solid rgba(0,0,0,0);display:flex;align-items:center;gap:var(--profiler-space-2);transition:all var(--profiler-transition-fast)}.tab .tab-icon{font-size:var(--profiler-text-lg);line-height:1}.tab:hover{color:var(--profiler-text);background:rgba(0,0,0,.1)}.tab.active{color:var(--profiler-accent);border-bottom-color:var(--profiler-accent)}.tab-content{display:none}.tab-content.active{display:block}.query-item{background:var(--profiler-bg-lighter);padding:var(--profiler-space-3);margin-bottom:var(--profiler-space-3);border-radius:var(--profiler-radius-md);border-left:3px solid var(--profiler-info);transition:all var(--profiler-transition-base)}.query-item:hover{background:var(--profiler-bg-elevated);transform:translateX(4px);box-shadow:var(--profiler-shadow-sm)}.query-item.slow{border-left-color:var(--profiler-error);background:var(--profiler-error-bg)}.query-item.slow:hover{box-shadow:0 0 16px var(--profiler-error-glow)}.query-sql{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-info);margin-bottom:var(--profiler-space-2);white-space:pre-wrap;word-break:break-all;line-height:1.6}.query-meta{display:flex;gap:var(--profiler-space-3);font-size:var(--profiler-text-xs);color:var(--profiler-text-muted)}.badge{display:inline-flex;padding:var(--profiler-space-1) var(--profiler-space-2);border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:600;background:var(--profiler-info);color:var(--profiler-text-on-accent);font-family:var(--profiler-font-mono)}.badge-slow{background:var(--profiler-error)}.badge-cached{background:var(--profiler-success)}.dump-item{background:var(--profiler-bg-lighter);padding:var(--profiler-space-4);margin-bottom:var(--profiler-space-4);border-radius:var(--profiler-radius-md);border-left:3px solid var(--profiler-warning)}.dump-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--profiler-space-3);font-size:var(--profiler-text-sm)}.dump-label{color:var(--profiler-accent);font-weight:600}.dump-location{color:var(--profiler-info);font-size:var(--profiler-text-xs);font-family:var(--profiler-font-mono)}.dump-value{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);color:var(--profiler-warning);white-space:pre-wrap;background:rgba(0,0,0,.3);padding:var(--profiler-space-3);border-radius:var(--profiler-radius-sm);max-height:400px;overflow-y:auto;line-height:1.5}.cache-stats{display:grid;grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));gap:var(--profiler-space-3);margin-bottom:var(--profiler-space-6)}.cache-stat{background:var(--profiler-bg-lighter);padding:var(--profiler-space-3);border-radius:var(--profiler-radius-md);text-align:center;border:1px solid var(--profiler-border);transition:all var(--profiler-transition-base)}.cache-stat:hover{background:var(--profiler-bg-elevated);border-color:var(--profiler-border-strong);transform:translateY(-2px);box-shadow:var(--profiler-shadow-sm)}.cache-stat-label{font-size:var(--profiler-text-xs);color:var(--profiler-text-muted);margin-bottom:var(--profiler-space-1);text-transform:uppercase;letter-spacing:.08em}.cache-stat-value{font-size:var(--profiler-text-xl);font-weight:600;color:var(--profiler-accent);font-family:var(--profiler-font-mono)}.empty-state{display:flex;align-items:center;justify-content:center;min-height:200px;flex-direction:column;gap:var(--profiler-space-2);color:var(--profiler-text-muted);padding:var(--profiler-space-12) var(--profiler-space-6);text-align:center}.loading{text-align:center;padding:var(--profiler-space-12) var(--profiler-space-6);color:var(--profiler-text-muted);font-size:var(--profiler-text-base)}.error{background:var(--profiler-error-bg);color:var(--profiler-error);padding:var(--profiler-space-3);border-radius:var(--profiler-radius-md);margin-bottom:var(--profiler-space-3);border-left:3px solid var(--profiler-error);font-size:var(--profiler-text-sm)}.generic-tab pre{color:var(--profiler-info);font-family:var(--profiler-font-mono);font-size:var(--profiler-text-sm);line-height:1.6}.ajax-breakdown{margin:var(--profiler-space-6) 0;padding:var(--profiler-space-4);background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md)}.ajax-breakdown h3{margin:0 0 var(--profiler-space-3) 0;font-size:var(--profiler-text-base);color:var(--profiler-text);font-weight:600}.ajax-breakdown-items{display:flex;flex-wrap:wrap;gap:var(--profiler-space-3)}.ajax-breakdown-item{display:flex;align-items:center;gap:var(--profiler-space-2);padding:var(--profiler-space-1) var(--profiler-space-3);background:var(--profiler-bg-elevated);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);font-size:var(--profiler-text-base);color:var(--profiler-text);font-family:var(--profiler-font-mono)}.ajax-requests-list{margin-top:var(--profiler-space-6)}.ajax-request-item{background:var(--profiler-bg-light);border:1px solid var(--profiler-border);border-radius:var(--profiler-radius-md);padding:var(--profiler-space-3) var(--profiler-space-4);margin-bottom:var(--profiler-space-3);transition:all var(--profiler-transition-base)}.ajax-request-item:hover{background:var(--profiler-accent-bg);border-color:var(--profiler-border-accent);transform:translateX(3px);box-shadow:var(--profiler-shadow-sm)}.ajax-request-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--profiler-space-2)}.ajax-request-method{display:flex;align-items:center;gap:var(--profiler-space-3);flex:1;min-width:0}.ajax-request-path{color:var(--profiler-text);font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ajax-request-stats{display:flex;align-items:center;gap:var(--profiler-space-3)}.ajax-request-duration{color:var(--profiler-accent);font-weight:700;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono)}.ajax-request-meta{display:flex;justify-content:space-between;align-items:center;color:var(--profiler-text-muted);font-size:var(--profiler-text-sm)}.ajax-request-time{font-family:var(--profiler-font-mono);font-size:var(--profiler-text-xs)}.ajax-request-link{color:var(--profiler-accent);text-decoration:none;font-weight:500;font-size:var(--profiler-text-sm);font-family:var(--profiler-font-mono);transition:color var(--profiler-transition-fast)}.ajax-request-link:hover{color:var(--profiler-accent-hover)}.method-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:700;text-transform:uppercase;font-family:var(--profiler-font-mono);letter-spacing:.05em;color:#fff}.method-badge.method-get{background:var(--profiler-info)}.method-badge.method-post{background:var(--profiler-success)}.method-badge.method-put{background:var(--profiler-warning)}.method-badge.method-patch{background:var(--profiler-warning)}.method-badge.method-delete{background:var(--profiler-error)}.method-badge.method-head,.method-badge.method-options{background:var(--profiler-text-muted)}.status-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:var(--profiler-radius-sm);font-size:var(--profiler-text-xs);font-weight:700;font-family:var(--profiler-font-mono);color:#fff}.status-badge.status-2xx{background:var(--profiler-success)}.status-badge.status-3xx{background:var(--profiler-info)}.status-badge.status-4xx{background:var(--profiler-warning)}.status-badge.status-5xx{background:var(--profiler-error)}.status-badge.status-other{background:var(--profiler-text-muted)}
@@ -231,7 +231,7 @@ module Profiler
231
231
  #profiler-toolbar {
232
232
  position: fixed;
233
233
  bottom: 0; left: 0; right: 44px;
234
- height: 44px;
234
+ min-height: 44px;
235
235
  background: linear-gradient(180deg, var(--pf-surface) 0%, var(--pf-bg) 100%);
236
236
  border-top: 1px solid var(--pf-border-s);
237
237
  z-index: 999999;
@@ -268,8 +268,17 @@ module Profiler
268
268
  /* ── Container ───────────────────────────────────────────────────── */
269
269
  #profiler-toolbar .profiler-toolbar-container {
270
270
  display: flex;
271
+ flex-wrap: wrap;
271
272
  align-items: stretch;
272
- height: 100%;
273
+ align-content: flex-start;
274
+ min-height: 43px;
275
+ }
276
+ /* The items and links: one row that never wraps; the pin zone is its sibling. */
277
+ #profiler-toolbar .profiler-toolbar-main {
278
+ display: flex;
279
+ flex: none;
280
+ align-items: stretch;
281
+ min-height: 43px;
273
282
  }
274
283
  /* ── Items ───────────────────────────────────────────────────────── */
275
284
  #profiler-toolbar .profiler-toolbar-item {
@@ -629,10 +638,15 @@ module Profiler
629
638
  with the --pf-* variables of this stylesheet; a spec keeps the two in step. */
630
639
  #profiler-toolbar .profiler-pinbar {
631
640
  display: flex;
641
+ flex: 1 1 320px;
642
+ flex-wrap: wrap;
632
643
  align-items: center;
633
- gap: 6px;
634
- padding: 0 10px;
635
- margin-left: 4px;
644
+ align-content: center;
645
+ gap: 4px 6px;
646
+ min-width: 0;
647
+ min-height: 43px;
648
+ box-sizing: border-box;
649
+ padding: 3px 10px;
636
650
  border-left: 1px solid var(--pf-border-s);
637
651
  border-right: 1px solid var(--pf-border);
638
652
  }
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Profiler
4
- VERSION = "0.49.1"
4
+ VERSION = "0.49.2"
5
5
 
6
6
  GEM_ROOT = File.expand_path("../..", __dir__)
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.1
4
+ version: 0.49.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Duplessy