@vinena/knobs 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/early.global.js +5 -5
  3. package/dist/{elementsview-05qybwpn.js → elementsview-s5vj51vh.js} +11 -11
  4. package/dist/{elementsview-gjaqje2k.js → elementsview-swft4xar.js} +11 -11
  5. package/dist/engine/media.d.ts +3 -2
  6. package/dist/engine/shotmedia.d.ts +50 -0
  7. package/dist/{framekit-3bmkm34m.js → framekit-q97zeg1d.js} +149 -9
  8. package/dist/{framekit-h0jrc5gs.js → framekit-rjk9fs3v.js} +149 -9
  9. package/dist/grab/overlay.d.ts +10 -1
  10. package/dist/{index-fp1h37b3.js → index-20bc9yrj.js} +1 -1
  11. package/dist/{index-0yn3rnza.js → index-69fvtkcm.js} +6 -6
  12. package/dist/{index-zd6adby9.js → index-a8ffw5ft.js} +1 -1
  13. package/dist/{index-gm51cthv.js → index-ajs4na3f.js} +1 -1
  14. package/dist/{index-4192t60e.js → index-df35z48z.js} +2 -2
  15. package/dist/{index-6xsvcjnc.js → index-dxga6h10.js} +4 -4
  16. package/dist/{index-dzm8ywq0.js → index-jfv7vavj.js} +3 -20
  17. package/dist/{index-kpsrkzmf.js → index-pwqfmbqm.js} +4 -4
  18. package/dist/{index-509g0pa8.js → index-s252g4k2.js} +5 -5
  19. package/dist/{index-7cb4x1vj.js → index-s6yzsvs4.js} +1 -1
  20. package/dist/{index-aj1z83rt.js → index-sy63y6r7.js} +9 -9
  21. package/dist/{index-0mav2k60.js → index-whbpf3kg.js} +9 -9
  22. package/dist/{index-rdssc7sz.js → index-whehz74d.js} +1 -1
  23. package/dist/{index-h93t2tc5.js → index-yc2m7nce.js} +6 -6
  24. package/dist/{index-xh39jtkq.js → index-ymqm185m.js} +1 -1
  25. package/dist/{index-ftjdt358.js → index-za4ppxay.js} +1 -1
  26. package/dist/index.global.js +125 -119
  27. package/dist/index.js +15 -15
  28. package/dist/{react-wqn4sx0n.js → react-0r5418av.js} +3 -20
  29. package/dist/{react-r3zf2djn.js → react-2b7725je.js} +4 -4
  30. package/dist/{react-ethftdxp.js → react-4phtr2nd.js} +1 -1
  31. package/dist/{react-pvmjybgw.js → react-5ekfj7g3.js} +2 -2
  32. package/dist/{react-ttj8f9qp.js → react-5h7pxnax.js} +1 -1
  33. package/dist/{react-6fnxxs30.js → react-73reavv4.js} +1 -1
  34. package/dist/{react-me102s1a.js → react-k4pkm1p5.js} +1 -1
  35. package/dist/{react-anqpcaqm.js → react-msn10fjb.js} +6 -6
  36. package/dist/{react-gkzn5n3v.js → react-nc8fzgmc.js} +5 -5
  37. package/dist/{react-x1ndxf29.js → react-p1m2eadn.js} +6 -6
  38. package/dist/{react-2381cr3w.js → react-smtqyzx0.js} +4 -4
  39. package/dist/{react-4ykd817s.js → react-vbk58f9m.js} +1 -1
  40. package/dist/{react-4rbjw9af.js → react-wtgvkf6g.js} +1 -1
  41. package/dist/{react-ptamex0p.js → react-y9gr8yt2.js} +1 -1
  42. package/dist/react.js +15 -15
  43. package/dist/{replay-39ssrcqp.js → replay-461gcdh1.js} +7 -7
  44. package/dist/{replay-xacjqqt5.js → replay-ehgxp9py.js} +7 -7
  45. package/dist/{storageview-3gnncmmv.js → storageview-vtvt76ze.js} +6 -6
  46. package/dist/{storageview-dwsnvz36.js → storageview-yyd57vzw.js} +6 -6
  47. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # changelog
2
2
 
3
+ ## 0.6.5
4
+
5
+ - in light mode on a computer set to dark, the page under Safari's bottom bar on an iPhone or iPad is light too. the picture of the page there, and in a foldable's fold, now uses the scheme and other settings the page reads, not the computer's. it keeps `@namespace` rules and a style sheet's own `media`
6
+ - a media query with `not (...)` or `or` reads right while a knob sets its feature, such as `(not (prefers-color-scheme: dark))` with the scheme knob on light
7
+ - the grab box's top and bottom lines end at its corners on a phone. before, they ran a little past the right corner on 3x devices
8
+
3
9
  ## 0.6.4
4
10
 
5
11
  - the chrome extension has a clearer store name and description that say what it tests: dark mode, mobile view, reduced motion, text size, locale, time zone, geolocation and user agent. the toolbar and menus still show the short name `knobs`. no change to the panel or the npm package
@@ -1,8 +1,8 @@
1
- (()=>{var Y1=(j,$)=>()=>(j&&($=j(j=0)),$);var o0,N0=()=>{},gj=(j)=>j.__REACT_DEVTOOLS_GLOBAL_HOOK__,P$=(j)=>{let $=j.current.memoizedState;return $===null||$!==void 0&&($.element===null||$.element===void 0)},vj=(j)=>{try{Function.prototype.toString.call(j).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build")})}catch{}},hj=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(j&&("getFiberRoots"in j)&&j._isBippyHook!==!0),C$=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!j||typeof j.inject!="function"||hj(j))return!1;try{return Function.prototype.toString.call(j.inject).includes("(injected)")}catch{return!1}},yj,e0,a0,H$,pj,kj,uj=(j,$)=>{yj.add(j);let J=a0.get(j)??new Set;J.add($),a0.set(j,J)},r0=(j)=>{for(let $ of yj)a0.get($)?.has(j)&&$()},z$=(j,$)=>{for(let J of H$)J.target===j&&J.listener($)},M$=(j,$)=>{for(let J of pj)J(j,$)},I$=(j)=>Object.prototype.toString.call(j)==="[object Map]",cj=(j)=>(I$(j.renderers)||(j.renderers=new Map),j.renderers),dj=(j,$,J,X,Z)=>{J.set(X,Z),e0.add(Z),j._instrumentationIsActive||(j._instrumentationIsActive=!0,r0($));let Q=kj.get($)??new WeakSet;kj.set($,Q),!Q.has(Z)&&(Q.add(Z),z$($,Z))},mj=(j,$=globalThis)=>{j&&uj(j,$);let J=new Map,X=new Map,Z=(G)=>{let V=X.get(G)??new Set;return X.set(G,V),V},Q=0,B={_instrumentationIsActive:!1,_instrumentationSource:"bippy-0.7.3",_isBippyHook:!0,checkDCE:vj,getFiberRoots:Z,hasUnsupportedRendererAttached:!1,inject:(G)=>{let V=++Q;return dj(B,$,J,V,G),V},on:N0,onCommitFiberRoot:(G,V)=>{let K=Z(G);P$(V)?K.delete(V):K.add(V)},onCommitFiberUnmount:N0,onPostCommitFiberRoot:N0,renderers:J,supportsFiber:!0,supportsFlight:!0};try{if(o0($,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get:()=>B,set:(G)=>{if(G&&typeof G=="object"){let V=B.renderers;B=G;let K=cj(B);V.forEach((Y,H)=>{e0.add(Y),K.set(H,Y)}),(V.size>0||pj.size>0)&&t0(j,$),M$(B,$)}}}),$===globalThis&&typeof window<"u"){let G=window.hasOwnProperty.bind(window),V=Object.getOwnPropertyDescriptor(window,"hasOwnProperty"),K=!1,Y=()=>{V?o0(window,"hasOwnProperty",V):Reflect.deleteProperty(window,"hasOwnProperty")};o0(window,"hasOwnProperty",{configurable:!0,value:(H)=>!K&&H==="__REACT_DEVTOOLS_GLOBAL_HOOK__"?(K=!0,Y(),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,!1):G(H),writable:!0})}}catch{t0(j,$)}return B},t0=(j,$=globalThis)=>{j&&uj(j,$);let J=!1,X=gj($);if(!X)return;let Z=cj(X);if(!X._instrumentationSource){X.checkDCE=vj,X.supportsFiber=!0,X.supportsFlight=!0,X.hasUnsupportedRendererAttached=!1,X._instrumentationSource="bippy-0.7.3",X._instrumentationIsActive=!1;let Q=hj(X);Q||(X.on=N0),Z.size?(Z.forEach((G)=>e0.add(G)),X._instrumentationIsActive=!0,r0($),J=!0):!Q&&C$(X)&&(X._instrumentationIsActive=!0,r0($),J=!0);let B=X.inject;X.inject=(G)=>{let V=B.call(X,G);return dj(X,$,Z,V,G),V}}!J&&(Z.size||X._instrumentationIsActive)&&j?.()},U$=(j=globalThis)=>Object.hasOwn(j,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),ij=(j,$=globalThis)=>U$($)?(t0(j,$),gj($)??mj(j,$)):mj(j,$);var lj=Y1(()=>{o0=Object.defineProperty,yj=new Set,e0=new Set,a0=new WeakMap,H$=new Set,pj=new Set,kj=new WeakMap});var _$={};var nj=Y1(()=>{lj();try{ij()}catch{}});var q3=Symbol.for("devknobs.clock"),g=globalThis[q3]??={Date,clock:null},Y0=g.Date;function q(){return Y0.now()}function D3(j,$){if(j.mode==="frozen")return j.at;if(j.mode==="offset")return Math.floor(j.at+($-j.since)*j.speed);return $}function O3(j){g.clock=j&&j.mode!=="system"?{...j}:null}function W0(){return g.clock?D3(g.clock,q()):q()}function R3(j,$){return new Proxy(j,{construct(J,X,Z){if(X.length===0&&g.clock)return Reflect.construct(J,[W0()],Z);return Reflect.construct(J,$?$.args(X):X,Z)},apply(J,X,Z){if(!g.clock&&!$?.on())return Reflect.apply(J,X,Z);return String(new Y0(W0()))},get(J,X,Z){if(X==="now")return W0;if(X==="parse"&&$)return $.parse;return Reflect.get(J,X,Z)}})}var C1={instant:(j)=>j,zonedDateTimeISO:(j,$)=>j.toZonedDateTimeISO($),plainDateTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDateTime(),plainDateISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDate(),plainTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainTime()},x3=Object.keys(C1);function A3(){return globalThis.Temporal?.Now}function S3(j,$,J){return function(X){let Z=J(X),Q=globalThis.Temporal;if(!g.clock||!Q?.Instant)return $.call(this,Z);let B=Q.Instant.fromEpochMilliseconds(W0()),G=Q.Now?.timeZoneId,V=typeof G==="function"?G.call(Q.Now):void 0;return C1[j](B,Z??V)}}var P1=Symbol.for("devknobs.early.clock");function H1(j){let $=globalThis;if(P1 in $||j.mode==="system")return;O3(j);let J=[],X=(Q,B,G)=>{let V=Reflect.get(Q,B);if(!Reflect.set(Q,B,G))return;J.push(()=>{if(Reflect.get(Q,B)===G)Reflect.set(Q,B,V)})};X(globalThis,"Date",R3(Y0)),X(Y0.prototype,"constructor",globalThis.Date);let Z=A3();for(let Q of x3){let B=Z?.[Q];if(Z&&typeof B==="function"){let G=S3(Q,B,(V)=>V);X(Z,Q,G)}}$[P1]={release:()=>{for(let Q of J.reverse())Q()}}}var P0=["closed","open"];var R0=[{id:"iphone-18-pro",label:"iPhone 18 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-18-pro-max",label:"iPhone 18 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-duo",label:"iPhone Duo",width:466,height:678,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone",postures:{closed:{id:"iphone-duo-closed",label:"iPhone Duo (closed)",clockwise:!0},open:{id:"iphone-duo-open",label:"iPhone Duo (open)",width:669,height:951,usual:"landscape",clockwise:!0}}},{id:"iphone-air",label:"iPhone Air",width:420,height:912,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17",label:"iPhone 17",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17-pro",label:"iPhone 17 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17-pro-max",label:"iPhone 17 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16",label:"iPhone 16",width:393,height:852,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-plus",label:"iPhone 16 Plus",width:430,height:932,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-pro",label:"iPhone 16 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-se",label:"iPhone SE",width:375,height:667,dpr:2,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"pixel-10",label:"Pixel 10",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10-pro",label:"Pixel 10 Pro",width:427,height:952,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10-pro-xl",label:"Pixel 10 Pro XL",width:448,height:998,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10a",label:"Pixel 10a",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9",label:"Pixel 9",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9-pro",label:"Pixel 9 Pro",width:427,height:952,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9-pro-xl",label:"Pixel 9 Pro XL",width:448,height:998,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"ipad-mini",label:"iPad mini",width:744,height:1133,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"ipad-air-11",label:"iPad Air 11",width:820,height:1180,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"ipad-pro-13",label:"iPad Pro 13",width:1032,height:1376,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"macbook-air-13",label:"MacBook Air 13",width:1470,height:956,dpr:2,ua:"mac-safari",touch:!1,kind:"laptop"},{id:"laptop",label:"laptop",width:1366,height:768,dpr:1,ua:"windows-chrome",touch:!1,kind:"laptop"},{id:"desktop",label:"desktop",width:1920,height:1080,dpr:1,ua:"windows-chrome",touch:!1,kind:"desktop"}];function x0(j){return R0.find(($)=>$.id===j)}function z1(j){for(let $ of R0){let J=P0.find((X)=>$.postures?.[X].id===j);if(J)return{device:$.id,posture:J}}return}var X2=R0.flatMap((j)=>{let{postures:$}=j;return $?P0.map((J)=>({...j,...$[J]})):[j]});function M1(j){return x0(j)?.touch===!0}function C0(j){return typeof j==="string"&&/^#[0-9a-f]{6}$/.test(j)}function I1(j){let J=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(j.trim())?.[1];if(!J)return null;let X=J.length===3?Array.from(J,(G)=>G+G):J.match(/../g),[Z=0,Q=0,B=0]=(X??[]).map((G)=>Number.parseInt(G,16));return{red:Z,green:Q,blue:B,alpha:1}}function T3(j){if(typeof j!=="object"||j===null)return 0;let $=Reflect.get(j,"v");return typeof $==="number"&&Number.isInteger($)&&$>=0?$:0}function O(j,$){return T3(j)>$}function n(j,$){return{v:$,...j}}var A0="devknobs",w3="fresh",f3="data-devknobs-fresh",S0="devknobs:fresh-reload",E3=1,b3=1e4,k3="devknobs:locale-",U1=Symbol.for("devknobs.fresh");function F1(j){try{return new URLSearchParams(j).getAll(A0).includes(w3)}catch{return!1}}function m3(j){if(j===A0)return!0;return j.startsWith(`${A0}:`)&&!j.startsWith(k3)}function g3(j){if(!j)return 0;try{let $=JSON.parse(j);if(typeof $!=="object"||$===null||O($,E3))return 0;let J=Reflect.get($,"at");return typeof J==="number"?J:0}catch{return 0}}function v3(){try{let j=window.sessionStorage,$=q()-g3(j.getItem(S0));if(j.removeItem(S0),$>=0&&$<b3)return;let J=[];for(let X=0;X<j.length;X++){let Z=j.key(X);if(Z!==null&&m3(Z))J.push(Z)}for(let X of J)j.removeItem(X)}catch{}}function h3(){try{window.sessionStorage.removeItem(S0)}catch{}}function y3(){try{let j=window.frameElement;if(j)return j.hasAttribute(f3)}catch{}return window.name===T0&&F1(window.location?.search??"")}function _1(){if(typeof window>"u")return!1;let j=Reflect.get(window,U1);if(typeof j==="boolean")return j;let $=!1;try{if(R())$=y3();else if($=F1(window.location?.search??""),$)v3();else h3()}catch{$=!1}return Reflect.set(window,U1,$),$}function T(j){try{if(typeof window>"u")return null;if(j==="session")return _1(),window.sessionStorage??null;return _1()?null:window.localStorage??null}catch{return null}}var L1=20,N1=40;function q1(j){return Math.min(Math.max(j,0.25),4)}var p3="devknobs",u3=2,c3="devknobs:place",d3=2,w1=["device","scheme","text","locale"],D1=128,i3=new Map([["speed","motion"],["pseudo","locale"],["timeZone","clock"],["ua","device"],["grabColor","debug"]]),W={scheme:"system",motion:"system",speed:1,contrast:"system",transparency:"system",locale:{lang:"system",dir:"system"},pseudo:!1,geo:{preset:"system",lat:0,lng:0,accuracy:L1,timeZone:"",error:"none",route:"",speed:N1},timeZone:"geo",clock:{mode:"system",at:0,since:0,speed:1,header:!1},network:{online:"system",type:"system",saveData:"system"},text:"system",spacing:!1,width:"full",height:"full",device:"none",orientation:"portrait",posture:"closed",mock:!0,touchPointer:!0,browser:"auto",bars:"auto",edgeToEdge:!0,frame:!1,dpr:"system",zoom:"fit",mat:"blue",vision:"none",ua:{preset:"system",custom:""},overflow:!1,outlines:!1,grabColor:"auto",panel:{open:!1,side:"right",y:D1,top:D1,edge:"none",tab:"top",docked:!1,handle:!0,devIcon:"auto",realPhone:!1,pinned:[...w1]}},l3=["light","dark","system"],n3=["reduce","system"],s3=["more","system"],o3=["reduce","system"],a3=["ltr","rtl","system"],r3=["none","denied","unavailable","timeout"],t3=["system","offset","frozen"],e3=["offline","system"],j7=["slow-2g","2g","3g","4g","system"],$7=["on","off","system"],J7=["auto","expanded","minimized"],X7=["auto","compact","bottom","top","off"],Z7=["portrait","landscape"],O1=["top","bottom","none"],Q7=["left","right"],B7=["auto","on","off"],G7=["none","protanopia","deuteranopia","tritanopia","achromatopsia","blur"],V7=["blue","green","magenta","purple","red","graphite"],K7=["auto","blue","green","pink","orange","purple","cyan"];function f(j){return typeof j==="object"&&j!==null?j:{}}function _(j,$,J){return $.includes(j)?j:J}function R1(j,$,J){return C0(j)?j:_(j,$,J)}function w(j,$){return typeof j==="string"?j:$}function D(j,$){return typeof j==="number"&&Number.isFinite(j)?j:$}function L(j,$){return typeof j==="boolean"?j:$}function s(j,$,J){if(j===$)return $;if(typeof j==="number"&&Number.isFinite(j)&&j>0)return j;return J}function x1(j,$){return typeof j==="number"&&Number.isFinite(j)&&j>=0?j:$}function W7(j){if(!Array.isArray(j))return[];let $=j.filter((J)=>typeof J==="string");return Array.from(new Set($.map((J)=>i3.get(J)??J)))}function A1(j,$){if(!j)return null;try{let J=JSON.parse(j);return O(J,$)?null:J}catch{return null}}function S1(j,$){let J=f(j),X=Number.isFinite(D(J.y,D(J.top,Number.NaN)));return{side:_(J.side,Q7,$.side),y:D(J.y,$.y),top:D(J.top,D(J.y,$.top)),edge:_(J.edge,O1,X?"none":$.edge),tab:_(J.tab,O1,X?"none":$.tab),docked:L(J.docked,$.docked)}}function f1(j,$){let J=S1(A1($,d3),W.panel),X=f(A1(j,u3)),Z=f(X.locale),Q=f(X.geo),B=f(X.clock),G=f(X.network),V=f(X.ua),K=f(X.panel),Y=w(X.device,W.device),H=z1(Y),C=s(X.zoom,"fit",W.zoom);return{scheme:_(X.scheme,l3,W.scheme),motion:_(X.motion,n3,W.motion),speed:x1(X.speed,W.speed),contrast:_(X.contrast,s3,W.contrast),transparency:_(X.transparency,o3,W.transparency),locale:{lang:w(Z.lang,W.locale.lang),dir:_(Z.dir,a3,W.locale.dir)},pseudo:L(X.pseudo,W.pseudo),geo:{preset:w(Q.preset,W.geo.preset),lat:D(Q.lat,W.geo.lat),lng:D(Q.lng,W.geo.lng),accuracy:D(Q.accuracy,W.geo.accuracy),timeZone:w(Q.timeZone,W.geo.timeZone),error:_(Q.error,r3,W.geo.error),route:w(Q.route,W.geo.route),speed:D(Q.speed,W.geo.speed)},timeZone:w(X.timeZone,"")||W.timeZone,clock:{mode:_(B.mode,t3,W.clock.mode),at:D(B.at,W.clock.at),since:D(B.since,W.clock.since),speed:x1(B.speed,W.clock.speed),header:L(B.header,W.clock.header)},network:{online:_(G.online,e3,W.network.online),type:_(G.type,j7,W.network.type),saveData:_(G.saveData,$7,W.network.saveData)},text:s(X.text,"system",W.text),spacing:L(X.spacing,W.spacing),width:s(X.width,"full",W.width),height:s(X.height,"full",W.height),device:H?.device??(x0(Y)?Y:W.device),orientation:_(X.orientation,Z7,W.orientation),posture:H?.posture??_(X.posture,[...P0],W.posture),mock:L(X.mock,W.mock),touchPointer:L(X.touchPointer,W.touchPointer),browser:_(X.browser,X7,W.browser),bars:X.browserMin===!0?"minimized":_(X.bars,J7,W.bars),edgeToEdge:L(X.edgeToEdge,W.edgeToEdge),frame:L(X.frame,W.frame),dpr:s(X.dpr,"system",W.dpr),zoom:C==="fit"?C:q1(C),mat:R1(X.mat,V7,"blue"),vision:_(X.vision,G7,W.vision),ua:{preset:w(V.preset,W.ua.preset),custom:w(V.custom,W.ua.custom)},overflow:L(X.overflow,W.overflow),outlines:L(X.outlines,W.outlines),grabColor:R1(X.grabColor,K7,"auto"),panel:{open:L(K.open,W.panel.open),...S1(K,J),handle:L(K.handle,W.panel.handle),devIcon:_(K.devIcon,B7,W.panel.devIcon),realPhone:L(K.realPhone,W.panel.realPhone),pinned:X.panel===void 0?[...w1]:W7(K.pinned)}}}function T1(j,$){try{return T(j)?.getItem($)??null}catch{return null}}function E1(){let j=f1(T1("session",p3),T1("local",c3));return{...j,panel:{...j.panel,realPhone:W.panel.realPhone}}}var Y7="data-devknobs-frame",T0="devknobs-frame";function R(){try{if(window.frameElement?.hasAttribute(Y7))return!0}catch{}return window.name===T0}function b1(j){if(j==="system")return!1;try{return window.frameElement?.style.getPropertyValue("color-scheme")===j}catch{return!1}}var P7={width:"full",height:"full",frame:!1,dpr:"system",vision:"none"},S2={...P7,device:"none",panel:{docked:!1}};function w0(j){return typeof j==="number"&&j>0}function k1(j){return w0(j.width)||w0(j.height)||j.frame||w0(j.dpr)||j.vision!=="none"}function m1(j){return k1(j)||j.panel?.docked===!0}function g1(j){return j.panel?.docked===!0&&!k1(j)}var v1=["text","media"],H0=new Map,o=null,d=null;function h1(j,$,J){for(let X=j;X<v1.length;X++){let Z=H0.get(v1[X]);if(Z)return Z($,(Q)=>h1(X+1,Q,J))}return J.call(window,$)}function y1(j){return(o??window.matchMedia).call(window,j)}function f0(j,$){if(H0.set(j,$),d)return;let J=window.matchMedia,X=function(Q){let B=String(Q);return d===X?h1(0,B,J):J.call(window,B)};o=J,d=X,window.matchMedia=X}function E0(j){if(H0.delete(j),H0.size>0||!d)return;if(window.matchMedia===d&&o)window.matchMedia=o;d=null,o=null}var p1=Symbol.for("devknobs.inline");function C7(j){let $=Reflect.get(j,p1);return typeof $==="object"&&$!==null?$:null}function b0(j,$,J){let X=C7(j);if(J===null||J===""){if(X)Reflect.deleteProperty(X,$);return}if(X)Reflect.set(X,$,J);else Reflect.set(j,p1,{[$]:J})}var H7=new WeakMap;function u1(j){let $=H7.get(j);return $&&j.media.mediaText===$.written?$.original:void 0}var l1={scheme:"system",motion:"system",contrast:"system",transparency:"system",touch:!1},z7="(min-width: 0px)",M7="all",I7="not all",v0={scheme:"prefers-color-scheme",motion:"prefers-reduced-motion",contrast:"prefers-contrast",transparency:"prefers-reduced-transparency"},n1=Object.keys(v0),s1=[["pointer","coarse"],["any-pointer","coarse"],["hover","none"],["any-hover","none"]],U7=[...n1.map((j)=>v0[j]),...s1.map(([j])=>j)];function o1(j){return[...n1.map(($)=>[v0[$],j[$]]),...s1.map(([$,J])=>[$,j.touch?J:"system"])]}function _7(j){return new RegExp(`\\(\\s*${j}\\s*(?::\\s*([a-z-]+)\\s*)?\\)`,"gi")}function F7(j,$){if(j===void 0||j==="")return $!=="no-preference"&&$!=="none";return j.toLowerCase()===$}function L7(j){let $=[],J=0,X=0;for(let Z=0;Z<j.length;Z++){let Q=j[Z];if(Q==="(")J++;else if(Q===")")J--;else if(Q===","&&J===0)$.push(j.slice(X,Z)),X=Z+1}return $.push(j.slice(X)),$.map((Z)=>Z.trim()).filter((Z)=>Z.length>0)}function N7(j,$,J,X){if(!$)return j;let Z=/^not\s/i.test(j);if(Z?J:!J)return I7;return Z?M7:X}function q7(j,$,J){let X=!1,Z=!0,Q=j.replace(_7($),(B,G)=>{if(X=!0,!F7(G,J))Z=!1;return z7});return N7(j,X,Z,Q)}function D7(j,$,J){if(J==="system")return j;if(!j.toLowerCase().includes($))return j;let X=L7(j);if(X.length===0)return j;return X.map((Z)=>q7(Z,$,J)).join(", ")}function a1(j,$){let J=j;for(let[X,Z]of o1($))J=D7(J,X,Z);return J}function h0(j){let $=j.toLowerCase();return U7.some((J)=>$.includes(J))}var M0=Symbol.for("devknobs.early"),c1=new WeakMap,x=new Set,v=new WeakMap,e=new WeakMap,I0=new WeakSet,r1=256,d1=r1,E=l1,z0=null,U0=null,r=null,y0=null,_0=!1,k0=!1,g0=null,t=null,i=0,a=null;function t1(j,$,J){for(let X=0;X<j.length;X++){let Z=j[X];if(!Z)continue;let Q=Z.styleSheet;if(Q)e1(Q,$,J);let B=Z.media;if(B&&typeof B.mediaText==="string")$(Z);let G=Z.cssRules;if(G&&G!==j)t1(G,$,J)}}function e1(j,$,J){if(J.has(j))return;J.add(j);let X=null;try{X=j.cssRules}catch{return}if(X)t1(X,$,J)}function p0(){let j=new Set,$=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let J of $)e1(J,(X)=>{let Z=X.media.mediaText,Q=c1.get(X);if(Q===void 0){if(Q=u1(X)??Z,!h0(Q))return;c1.set(X,Q)}let B=a1(Q,E);if(B===Z)return;try{X.media.mediaText=B}catch{}},j)}function i1(){if(i)return;i=requestAnimationFrame(()=>{i=0,p0()})}function O7(){if(t||typeof MutationObserver>"u")return;t=new MutationObserver((j)=>{for(let $ of j)for(let J of Array.from($.addedNodes)){let X=J.nodeName;if(X!=="STYLE"&&X!=="LINK")continue;if(J.hasAttribute?.("data-devknobs"))continue;if(X==="LINK")J.addEventListener("load",i1,{once:!0});i1()}}),t.observe(document.documentElement,{childList:!0,subtree:!0})}function jj(){return o1(E).some(([,j])=>j!=="system")}function R7(j){try{let $=y1(a1(j,E));return U0?U0.call($):$.matches}catch{return!1}}function $j(){for(let j of Array.from(x)){let $=j.deref();if(!$){x.delete(j);continue}let J=$.matches;if(J===v.get($))continue;v.set($,J),$.dispatchEvent(new MediaQueryListEvent("change",{media:$.media,matches:J}))}}function Jj(j){if(g0){g0(j);return}if(!j.isTrusted)return;let $=j.currentTarget;if(!jj()){v.set($,j.matches);return}if(j.stopImmediatePropagation(),k0)return;k0=!0,queueMicrotask(()=>{k0=!1,$j()})}function m0(j){if(I0.has(j)||!e.has(j))return;I0.add(j),v.set(j,j.matches),(y0??j.addEventListener).call(j,"change",Jj)}function x7(j,$){if(e.set(j,$),v.set(j,j.matches),x.add(new WeakRef(j)),x.size<d1)return;for(let J of x)if(!J.deref())x.delete(J);d1=Math.max(r1,x.size*2)}var A7=["addEventListener","addListener","onchange"];function S7(){let j=MediaQueryList.prototype;r=new Map(A7.map((Q)=>[Q,Object.getOwnPropertyDescriptor(j,Q)]));let $=j.addEventListener;y0=$,Object.defineProperty(j,"addEventListener",{configurable:!0,writable:!0,value:function(...B){if(B[1]&&String(B[0])==="change")m0(this);$.apply(this,B)}});let J=j.addListener;if(typeof J==="function")Object.defineProperty(j,"addListener",{configurable:!0,writable:!0,value:function(...B){if(B[0])m0(this);J.apply(this,B)}});let X=r.get("onchange"),Z=X?.set;if(X&&Z)Object.defineProperty(j,"onchange",{...X,set(Q){if(Q!==null&&Q!==void 0)m0(this);Z.call(this,Q)}})}function T7(){if(!r)return;let j=MediaQueryList.prototype;for(let[$,J]of r)if(J)Object.defineProperty(j,$,J);else Reflect.deleteProperty(j,$);r=null,y0=null}function w7(j,$){let J=$(j);if(h0(j))x7(J,j);return J}function f7(){if(_0)return;let j=window,$=j[M0];j[M0]=null;let J=$?.release(Jj)??[];_0=!0;for(let{list:Q,query:B,heard:G,guarded:V}of J)if(e.set(Q,B),v.set(Q,G),x.add(new WeakRef(Q)),V!==!1)I0.add(Q);f0("media",w7),S7();let X=Object.getOwnPropertyDescriptor(MediaQueryList.prototype,"matches"),Z=X?.get;if(!X||!Z)return;z0=X,U0=Z,Object.defineProperty(MediaQueryList.prototype,"matches",{configurable:!0,enumerable:X.enumerable,get(){if(!jj())return Z.call(this);let Q=e.get(this)??this.media;return h0(Q)?R7(Q):Z.call(this)}})}function Xj(){let j=document.documentElement;if(a===null)a=j.style.getPropertyValue("color-scheme");let $=E.scheme==="system"?a:E.scheme;if($)j.style.setProperty("color-scheme",$);else j.style.removeProperty("color-scheme");let J=E.scheme!=="system"&&$!==a;b0(j,"color-scheme",J?j.style.getPropertyValue("color-scheme"):null)}function E7(j){E=j,f7(),O7(),Xj(),p0(),$j()}function b7(){if(t?.disconnect(),t=null,i)cancelAnimationFrame(i),i=0;if(_0){if(E0("media"),T7(),z0)Object.defineProperty(MediaQueryList.prototype,"matches",z0);z0=null,U0=null,_0=!1}a=null}function k7(j){let $=[];for(let J of x){let X=J.deref();if(!X)continue;$.push({list:X,query:e.get(X)??X.media,heard:v.get(X)??X.matches,guarded:I0.has(X)})}return g0=j,x.clear(),E=l1,Xj(),p0(),b7(),$}function Zj(j){let $=window;if(M0 in $)return;E7(j),$[M0]={release:k7}}var Qj={blue:{srgb:["rgb(20, 70, 152)","rgb(12, 48, 114)","rgb(7, 31, 80)"],p3:["color(display-p3 0.1 0.27 0.61)","color(display-p3 0.06 0.19 0.46)","color(display-p3 0.035 0.12 0.32)"],line:"rgb(170, 205, 255)"},green:{srgb:["rgb(26, 96, 71)","rgb(14, 71, 51)","rgb(8, 49, 35)"],p3:["color(display-p3 0.159 0.377 0.279)","color(display-p3 0.102 0.277 0.2)","color(display-p3 0.065 0.194 0.136)"],line:"rgb(160, 218, 191)"},magenta:{srgb:["rgb(123, 37, 88)","rgb(90, 22, 63)","rgb(62, 12, 42)"],p3:["color(display-p3 0.462 0.14 0.342)","color(display-p3 0.34 0.081 0.246)","color(display-p3 0.234 0.043 0.165)"],line:"rgb(238, 185, 211)"},purple:{srgb:["rgb(86, 56, 130)","rgb(62, 38, 96)","rgb(42, 24, 67)"],p3:["color(display-p3 0.326 0.209 0.521)","color(display-p3 0.233 0.138 0.387)","color(display-p3 0.156 0.086 0.269)"],line:"rgb(209, 193, 242)"},red:{srgb:["rgb(132, 36, 36)","rgb(97, 21, 22)","rgb(68, 11, 12)"],p3:["color(display-p3 0.499 0.139 0.133)","color(display-p3 0.369 0.079 0.078)","color(display-p3 0.256 0.041 0.042)"],line:"rgb(239, 188, 183)"},graphite:{srgb:["rgb(64, 68, 74)","rgb(43, 46, 51)","rgb(26, 28, 32)"],p3:["color(display-p3 0.25 0.264 0.291)","color(display-p3 0.169 0.179 0.2)","color(display-p3 0.102 0.11 0.126)"],line:"rgb(198, 203, 211)"}},m7=["blue","green","magenta","purple","red","graphite"];function d0(j){return`radial-gradient(140% 100% at 50% 0%, ${j[0]}, ${j[1]} 60%, ${j[2]})`}function g7(j){return m7.some(($)=>$===j)}var u0=[1,0.82,0.64];function c0(j){return`rgb(${Math.round(j.red)}, ${Math.round(j.green)}, ${Math.round(j.blue)})`}function v7(j){let $=(J)=>({red:j.red*J,green:j.green*J,blue:j.blue*J,alpha:1});return[$(u0[0]),$(u0[1]),$(u0[2])]}function h7(j){return C0(j)?I1(j):null}function Bj(j){if(g7(j))return Qj[j];let $=h7(j);if(!$)return Qj.blue;let[J,X,Z]=v7($),Q=[c0(J),c0(X),c0(Z)];return{srgb:Q,p3:Q}}var y7=Symbol.for("devknobs.own"),Kj=Symbol.for("devknobs.name"),Gj=Symbol.for("devknobs.text"),Vj=new WeakMap;function i0(j){return j.nodeType===9}function p7(j){return i0(j)?j:j.ownerDocument??document}function Wj(j){let J=(i0(j)?j:j.ownerDocument)?.defaultView?.CSSStyleSheet;if(typeof J!=="function"||typeof J.prototype.replaceSync!=="function")return null;return"adoptedStyleSheets"in j?J:null}function Yj(j,$){let J=Vj.get($);if(J)return J;let X={get textContent(){let Z=Reflect.get($,Gj);return typeof Z==="string"?Z:""},set textContent(Z){Reflect.set($,Gj,Z??""),$.replaceSync(Z??"")},sheet:$,remove(){j.adoptedStyleSheets=j.adoptedStyleSheets.filter((Z)=>Z!==$)}};return Vj.set($,X),X}function Pj(j,$,J){let X=new $;if(Reflect.set(X,y7,!0),J!==void 0)Reflect.set(X,Kj,J);return j.adoptedStyleSheets=[...j.adoptedStyleSheets,X],Yj(j,X)}function Cj(j,$){let J=Wj(j);if(J){let Z=Pj(j,J);return Z.textContent=$,Z}let X=p7(j).createElement("style");if(X.textContent=$,i0(j))(j.head??j.documentElement).appendChild(X);else j.append(X);return X}function F0(j,$=document){let J="adoptedStyleSheets"in $?$.adoptedStyleSheets.find((X)=>Reflect.get(X,Kj)===j):void 0;return J?Yj($,J):$.querySelector(`style[data-devknobs="${j}"]`)}function Hj(j,$=document){let J=F0(j,$);if(J)return J;let X=Wj($);if(X)return Pj($,X,j);let Z=$.createElement("style");return Z.setAttribute("data-devknobs",j),($.head??$.documentElement).appendChild(Z),Z}function zj(j,$=document){F0(j,$)?.remove()}var Ij=2147483645,j0="early",u7="devknobs:snapshot",c7=1,d7=3000;function i7(j){if(!j)return`html{overflow:hidden!important}
1
+ (()=>{var Y1=(j,$)=>()=>(j&&($=j(j=0)),$);var o0,N0=()=>{},gj=(j)=>j.__REACT_DEVTOOLS_GLOBAL_HOOK__,W$=(j)=>{let $=j.current.memoizedState;return $===null||$!==void 0&&($.element===null||$.element===void 0)},vj=(j)=>{try{Function.prototype.toString.call(j).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://react.dev/link/perf-use-production-build")})}catch{}},hj=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>!!(j&&("getFiberRoots"in j)&&j._isBippyHook!==!0),Y$=(j=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__)=>{if(!j||typeof j.inject!="function"||hj(j))return!1;try{return Function.prototype.toString.call(j.inject).includes("(injected)")}catch{return!1}},yj,e0,a0,P$,pj,kj,uj=(j,$)=>{yj.add(j);let J=a0.get(j)??new Set;J.add($),a0.set(j,J)},r0=(j)=>{for(let $ of yj)a0.get($)?.has(j)&&$()},C$=(j,$)=>{for(let J of P$)J.target===j&&J.listener($)},H$=(j,$)=>{for(let J of pj)J(j,$)},z$=(j)=>Object.prototype.toString.call(j)==="[object Map]",cj=(j)=>(z$(j.renderers)||(j.renderers=new Map),j.renderers),dj=(j,$,J,X,Z)=>{J.set(X,Z),e0.add(Z),j._instrumentationIsActive||(j._instrumentationIsActive=!0,r0($));let Q=kj.get($)??new WeakSet;kj.set($,Q),!Q.has(Z)&&(Q.add(Z),C$($,Z))},mj=(j,$=globalThis)=>{j&&uj(j,$);let J=new Map,X=new Map,Z=(G)=>{let V=X.get(G)??new Set;return X.set(G,V),V},Q=0,B={_instrumentationIsActive:!1,_instrumentationSource:"bippy-0.7.3",_isBippyHook:!0,checkDCE:vj,getFiberRoots:Z,hasUnsupportedRendererAttached:!1,inject:(G)=>{let V=++Q;return dj(B,$,J,V,G),V},on:N0,onCommitFiberRoot:(G,V)=>{let K=Z(G);W$(V)?K.delete(V):K.add(V)},onCommitFiberUnmount:N0,onPostCommitFiberRoot:N0,renderers:J,supportsFiber:!0,supportsFlight:!0};try{if(o0($,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get:()=>B,set:(G)=>{if(G&&typeof G=="object"){let V=B.renderers;B=G;let K=cj(B);V.forEach((Y,H)=>{e0.add(Y),K.set(H,Y)}),(V.size>0||pj.size>0)&&t0(j,$),H$(B,$)}}}),$===globalThis&&typeof window<"u"){let G=window.hasOwnProperty.bind(window),V=Object.getOwnPropertyDescriptor(window,"hasOwnProperty"),K=!1,Y=()=>{V?o0(window,"hasOwnProperty",V):Reflect.deleteProperty(window,"hasOwnProperty")};o0(window,"hasOwnProperty",{configurable:!0,value:(H)=>!K&&H==="__REACT_DEVTOOLS_GLOBAL_HOOK__"?(K=!0,Y(),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,!1):G(H),writable:!0})}}catch{t0(j,$)}return B},t0=(j,$=globalThis)=>{j&&uj(j,$);let J=!1,X=gj($);if(!X)return;let Z=cj(X);if(!X._instrumentationSource){X.checkDCE=vj,X.supportsFiber=!0,X.supportsFlight=!0,X.hasUnsupportedRendererAttached=!1,X._instrumentationSource="bippy-0.7.3",X._instrumentationIsActive=!1;let Q=hj(X);Q||(X.on=N0),Z.size?(Z.forEach((G)=>e0.add(G)),X._instrumentationIsActive=!0,r0($),J=!0):!Q&&Y$(X)&&(X._instrumentationIsActive=!0,r0($),J=!0);let B=X.inject;X.inject=(G)=>{let V=B.call(X,G);return dj(X,$,Z,V,G),V}}!J&&(Z.size||X._instrumentationIsActive)&&j?.()},M$=(j=globalThis)=>Object.hasOwn(j,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),ij=(j,$=globalThis)=>M$($)?(t0(j,$),gj($)??mj(j,$)):mj(j,$);var lj=Y1(()=>{o0=Object.defineProperty,yj=new Set,e0=new Set,a0=new WeakMap,P$=new Set,pj=new Set,kj=new WeakMap});var I$={};var nj=Y1(()=>{lj();try{ij()}catch{}});var q3=Symbol.for("devknobs.clock"),g=globalThis[q3]??={Date,clock:null},Y0=g.Date;function q(){return Y0.now()}function D3(j,$){if(j.mode==="frozen")return j.at;if(j.mode==="offset")return Math.floor(j.at+($-j.since)*j.speed);return $}function O3(j){g.clock=j&&j.mode!=="system"?{...j}:null}function W0(){return g.clock?D3(g.clock,q()):q()}function R3(j,$){return new Proxy(j,{construct(J,X,Z){if(X.length===0&&g.clock)return Reflect.construct(J,[W0()],Z);return Reflect.construct(J,$?$.args(X):X,Z)},apply(J,X,Z){if(!g.clock&&!$?.on())return Reflect.apply(J,X,Z);return String(new Y0(W0()))},get(J,X,Z){if(X==="now")return W0;if(X==="parse"&&$)return $.parse;return Reflect.get(J,X,Z)}})}var C1={instant:(j)=>j,zonedDateTimeISO:(j,$)=>j.toZonedDateTimeISO($),plainDateTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDateTime(),plainDateISO:(j,$)=>j.toZonedDateTimeISO($).toPlainDate(),plainTimeISO:(j,$)=>j.toZonedDateTimeISO($).toPlainTime()},x3=Object.keys(C1);function A3(){return globalThis.Temporal?.Now}function S3(j,$,J){return function(X){let Z=J(X),Q=globalThis.Temporal;if(!g.clock||!Q?.Instant)return $.call(this,Z);let B=Q.Instant.fromEpochMilliseconds(W0()),G=Q.Now?.timeZoneId,V=typeof G==="function"?G.call(Q.Now):void 0;return C1[j](B,Z??V)}}var P1=Symbol.for("devknobs.early.clock");function H1(j){let $=globalThis;if(P1 in $||j.mode==="system")return;O3(j);let J=[],X=(Q,B,G)=>{let V=Reflect.get(Q,B);if(!Reflect.set(Q,B,G))return;J.push(()=>{if(Reflect.get(Q,B)===G)Reflect.set(Q,B,V)})};X(globalThis,"Date",R3(Y0)),X(Y0.prototype,"constructor",globalThis.Date);let Z=A3();for(let Q of x3){let B=Z?.[Q];if(Z&&typeof B==="function"){let G=S3(Q,B,(V)=>V);X(Z,Q,G)}}$[P1]={release:()=>{for(let Q of J.reverse())Q()}}}var P0=["closed","open"];var R0=[{id:"iphone-18-pro",label:"iPhone 18 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-18-pro-max",label:"iPhone 18 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-duo",label:"iPhone Duo",width:466,height:678,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone",postures:{closed:{id:"iphone-duo-closed",label:"iPhone Duo (closed)",clockwise:!0},open:{id:"iphone-duo-open",label:"iPhone Duo (open)",width:669,height:951,usual:"landscape",clockwise:!0}}},{id:"iphone-air",label:"iPhone Air",width:420,height:912,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17",label:"iPhone 17",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17-pro",label:"iPhone 17 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-17-pro-max",label:"iPhone 17 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16",label:"iPhone 16",width:393,height:852,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-plus",label:"iPhone 16 Plus",width:430,height:932,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-pro",label:"iPhone 16 Pro",width:402,height:874,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",width:440,height:956,dpr:3,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"iphone-se",label:"iPhone SE",width:375,height:667,dpr:2,ua:"iphone-safari",touch:!0,kind:"phone"},{id:"pixel-10",label:"Pixel 10",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10-pro",label:"Pixel 10 Pro",width:427,height:952,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10-pro-xl",label:"Pixel 10 Pro XL",width:448,height:998,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-10a",label:"Pixel 10a",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9",label:"Pixel 9",width:412,height:924,dpr:2.625,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9-pro",label:"Pixel 9 Pro",width:427,height:952,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"pixel-9-pro-xl",label:"Pixel 9 Pro XL",width:448,height:998,dpr:3,ua:"android-chrome",touch:!0,kind:"phone"},{id:"ipad-mini",label:"iPad mini",width:744,height:1133,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"ipad-air-11",label:"iPad Air 11",width:820,height:1180,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"ipad-pro-13",label:"iPad Pro 13",width:1032,height:1376,dpr:2,ua:"ipad-safari",touch:!0,kind:"tablet"},{id:"macbook-air-13",label:"MacBook Air 13",width:1470,height:956,dpr:2,ua:"mac-safari",touch:!1,kind:"laptop"},{id:"laptop",label:"laptop",width:1366,height:768,dpr:1,ua:"windows-chrome",touch:!1,kind:"laptop"},{id:"desktop",label:"desktop",width:1920,height:1080,dpr:1,ua:"windows-chrome",touch:!1,kind:"desktop"}];function x0(j){return R0.find(($)=>$.id===j)}function z1(j){for(let $ of R0){let J=P0.find((X)=>$.postures?.[X].id===j);if(J)return{device:$.id,posture:J}}return}var $2=R0.flatMap((j)=>{let{postures:$}=j;return $?P0.map((J)=>({...j,...$[J]})):[j]});function M1(j){return x0(j)?.touch===!0}function C0(j){return typeof j==="string"&&/^#[0-9a-f]{6}$/.test(j)}function I1(j){let J=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(j.trim())?.[1];if(!J)return null;let X=J.length===3?Array.from(J,(G)=>G+G):J.match(/../g),[Z=0,Q=0,B=0]=(X??[]).map((G)=>Number.parseInt(G,16));return{red:Z,green:Q,blue:B,alpha:1}}function T3(j){if(typeof j!=="object"||j===null)return 0;let $=Reflect.get(j,"v");return typeof $==="number"&&Number.isInteger($)&&$>=0?$:0}function O(j,$){return T3(j)>$}function n(j,$){return{v:$,...j}}var A0="devknobs",w3="fresh",f3="data-devknobs-fresh",S0="devknobs:fresh-reload",E3=1,b3=1e4,k3="devknobs:locale-",U1=Symbol.for("devknobs.fresh");function F1(j){try{return new URLSearchParams(j).getAll(A0).includes(w3)}catch{return!1}}function m3(j){if(j===A0)return!0;return j.startsWith(`${A0}:`)&&!j.startsWith(k3)}function g3(j){if(!j)return 0;try{let $=JSON.parse(j);if(typeof $!=="object"||$===null||O($,E3))return 0;let J=Reflect.get($,"at");return typeof J==="number"?J:0}catch{return 0}}function v3(){try{let j=window.sessionStorage,$=q()-g3(j.getItem(S0));if(j.removeItem(S0),$>=0&&$<b3)return;let J=[];for(let X=0;X<j.length;X++){let Z=j.key(X);if(Z!==null&&m3(Z))J.push(Z)}for(let X of J)j.removeItem(X)}catch{}}function h3(){try{window.sessionStorage.removeItem(S0)}catch{}}function y3(){try{let j=window.frameElement;if(j)return j.hasAttribute(f3)}catch{}return window.name===T0&&F1(window.location?.search??"")}function _1(){if(typeof window>"u")return!1;let j=Reflect.get(window,U1);if(typeof j==="boolean")return j;let $=!1;try{if(R())$=y3();else if($=F1(window.location?.search??""),$)v3();else h3()}catch{$=!1}return Reflect.set(window,U1,$),$}function T(j){try{if(typeof window>"u")return null;if(j==="session")return _1(),window.sessionStorage??null;return _1()?null:window.localStorage??null}catch{return null}}var L1=20,N1=40;function q1(j){return Math.min(Math.max(j,0.25),4)}var p3="devknobs",u3=2,c3="devknobs:place",d3=2,w1=["device","scheme","text","locale"],D1=128,i3=new Map([["speed","motion"],["pseudo","locale"],["timeZone","clock"],["ua","device"],["grabColor","debug"]]),W={scheme:"system",motion:"system",speed:1,contrast:"system",transparency:"system",locale:{lang:"system",dir:"system"},pseudo:!1,geo:{preset:"system",lat:0,lng:0,accuracy:L1,timeZone:"",error:"none",route:"",speed:N1},timeZone:"geo",clock:{mode:"system",at:0,since:0,speed:1,header:!1},network:{online:"system",type:"system",saveData:"system"},text:"system",spacing:!1,width:"full",height:"full",device:"none",orientation:"portrait",posture:"closed",mock:!0,touchPointer:!0,browser:"auto",bars:"auto",edgeToEdge:!0,frame:!1,dpr:"system",zoom:"fit",mat:"blue",vision:"none",ua:{preset:"system",custom:""},overflow:!1,outlines:!1,grabColor:"auto",panel:{open:!1,side:"right",y:D1,top:D1,edge:"none",tab:"top",docked:!1,handle:!0,devIcon:"auto",realPhone:!1,pinned:[...w1]}},l3=["light","dark","system"],n3=["reduce","system"],s3=["more","system"],o3=["reduce","system"],a3=["ltr","rtl","system"],r3=["none","denied","unavailable","timeout"],t3=["system","offset","frozen"],e3=["offline","system"],j7=["slow-2g","2g","3g","4g","system"],$7=["on","off","system"],J7=["auto","expanded","minimized"],X7=["auto","compact","bottom","top","off"],Z7=["portrait","landscape"],O1=["top","bottom","none"],Q7=["left","right"],B7=["auto","on","off"],G7=["none","protanopia","deuteranopia","tritanopia","achromatopsia","blur"],V7=["blue","green","magenta","purple","red","graphite"],K7=["auto","blue","green","pink","orange","purple","cyan"];function f(j){return typeof j==="object"&&j!==null?j:{}}function _(j,$,J){return $.includes(j)?j:J}function R1(j,$,J){return C0(j)?j:_(j,$,J)}function w(j,$){return typeof j==="string"?j:$}function D(j,$){return typeof j==="number"&&Number.isFinite(j)?j:$}function L(j,$){return typeof j==="boolean"?j:$}function s(j,$,J){if(j===$)return $;if(typeof j==="number"&&Number.isFinite(j)&&j>0)return j;return J}function x1(j,$){return typeof j==="number"&&Number.isFinite(j)&&j>=0?j:$}function W7(j){if(!Array.isArray(j))return[];let $=j.filter((J)=>typeof J==="string");return Array.from(new Set($.map((J)=>i3.get(J)??J)))}function A1(j,$){if(!j)return null;try{let J=JSON.parse(j);return O(J,$)?null:J}catch{return null}}function S1(j,$){let J=f(j),X=Number.isFinite(D(J.y,D(J.top,Number.NaN)));return{side:_(J.side,Q7,$.side),y:D(J.y,$.y),top:D(J.top,D(J.y,$.top)),edge:_(J.edge,O1,X?"none":$.edge),tab:_(J.tab,O1,X?"none":$.tab),docked:L(J.docked,$.docked)}}function f1(j,$){let J=S1(A1($,d3),W.panel),X=f(A1(j,u3)),Z=f(X.locale),Q=f(X.geo),B=f(X.clock),G=f(X.network),V=f(X.ua),K=f(X.panel),Y=w(X.device,W.device),H=z1(Y),C=s(X.zoom,"fit",W.zoom);return{scheme:_(X.scheme,l3,W.scheme),motion:_(X.motion,n3,W.motion),speed:x1(X.speed,W.speed),contrast:_(X.contrast,s3,W.contrast),transparency:_(X.transparency,o3,W.transparency),locale:{lang:w(Z.lang,W.locale.lang),dir:_(Z.dir,a3,W.locale.dir)},pseudo:L(X.pseudo,W.pseudo),geo:{preset:w(Q.preset,W.geo.preset),lat:D(Q.lat,W.geo.lat),lng:D(Q.lng,W.geo.lng),accuracy:D(Q.accuracy,W.geo.accuracy),timeZone:w(Q.timeZone,W.geo.timeZone),error:_(Q.error,r3,W.geo.error),route:w(Q.route,W.geo.route),speed:D(Q.speed,W.geo.speed)},timeZone:w(X.timeZone,"")||W.timeZone,clock:{mode:_(B.mode,t3,W.clock.mode),at:D(B.at,W.clock.at),since:D(B.since,W.clock.since),speed:x1(B.speed,W.clock.speed),header:L(B.header,W.clock.header)},network:{online:_(G.online,e3,W.network.online),type:_(G.type,j7,W.network.type),saveData:_(G.saveData,$7,W.network.saveData)},text:s(X.text,"system",W.text),spacing:L(X.spacing,W.spacing),width:s(X.width,"full",W.width),height:s(X.height,"full",W.height),device:H?.device??(x0(Y)?Y:W.device),orientation:_(X.orientation,Z7,W.orientation),posture:H?.posture??_(X.posture,[...P0],W.posture),mock:L(X.mock,W.mock),touchPointer:L(X.touchPointer,W.touchPointer),browser:_(X.browser,X7,W.browser),bars:X.browserMin===!0?"minimized":_(X.bars,J7,W.bars),edgeToEdge:L(X.edgeToEdge,W.edgeToEdge),frame:L(X.frame,W.frame),dpr:s(X.dpr,"system",W.dpr),zoom:C==="fit"?C:q1(C),mat:R1(X.mat,V7,"blue"),vision:_(X.vision,G7,W.vision),ua:{preset:w(V.preset,W.ua.preset),custom:w(V.custom,W.ua.custom)},overflow:L(X.overflow,W.overflow),outlines:L(X.outlines,W.outlines),grabColor:R1(X.grabColor,K7,"auto"),panel:{open:L(K.open,W.panel.open),...S1(K,J),handle:L(K.handle,W.panel.handle),devIcon:_(K.devIcon,B7,W.panel.devIcon),realPhone:L(K.realPhone,W.panel.realPhone),pinned:X.panel===void 0?[...w1]:W7(K.pinned)}}}function T1(j,$){try{return T(j)?.getItem($)??null}catch{return null}}function E1(){let j=f1(T1("session",p3),T1("local",c3));return{...j,panel:{...j.panel,realPhone:W.panel.realPhone}}}var Y7="data-devknobs-frame",T0="devknobs-frame";function R(){try{if(window.frameElement?.hasAttribute(Y7))return!0}catch{}return window.name===T0}function b1(j){if(j==="system")return!1;try{return window.frameElement?.style.getPropertyValue("color-scheme")===j}catch{return!1}}var P7={width:"full",height:"full",frame:!1,dpr:"system",vision:"none"},x2={...P7,device:"none",panel:{docked:!1}};function w0(j){return typeof j==="number"&&j>0}function k1(j){return w0(j.width)||w0(j.height)||j.frame||w0(j.dpr)||j.vision!=="none"}function m1(j){return k1(j)||j.panel?.docked===!0}function g1(j){return j.panel?.docked===!0&&!k1(j)}var v1=["text","media"],H0=new Map,o=null,d=null;function h1(j,$,J){for(let X=j;X<v1.length;X++){let Z=H0.get(v1[X]);if(Z)return Z($,(Q)=>h1(X+1,Q,J))}return J.call(window,$)}function y1(j){return(o??window.matchMedia).call(window,j)}function f0(j,$){if(H0.set(j,$),d)return;let J=window.matchMedia,X=function(Q){let B=String(Q);return d===X?h1(0,B,J):J.call(window,B)};o=J,d=X,window.matchMedia=X}function E0(j){if(H0.delete(j),H0.size>0||!d)return;if(window.matchMedia===d&&o)window.matchMedia=o;d=null,o=null}var p1=Symbol.for("devknobs.inline");function C7(j){let $=Reflect.get(j,p1);return typeof $==="object"&&$!==null?$:null}function b0(j,$,J){let X=C7(j);if(J===null||J===""){if(X)Reflect.deleteProperty(X,$);return}if(X)Reflect.set(X,$,J);else Reflect.set(j,p1,{[$]:J})}var H7=new WeakMap;function u1(j){let $=H7.get(j);return $&&j.media.mediaText===$.written?$.original:void 0}var l1={scheme:"system",motion:"system",contrast:"system",transparency:"system",touch:!1},z7="(min-width: 0px)",M7="(not (min-width: 0px))",v0={scheme:"prefers-color-scheme",motion:"prefers-reduced-motion",contrast:"prefers-contrast",transparency:"prefers-reduced-transparency"},n1=Object.keys(v0),s1=[["pointer","coarse"],["any-pointer","coarse"],["hover","none"],["any-hover","none"]],I7=[...n1.map((j)=>v0[j]),...s1.map(([j])=>j)];function o1(j){return[...n1.map(($)=>[v0[$],j[$]]),...s1.map(([$,J])=>[$,j.touch?J:"system"])]}function U7(j){return new RegExp(`\\(\\s*${j}\\s*(?::\\s*([a-z-]+)\\s*)?\\)`,"gi")}function _7(j,$){if(j===void 0||j==="")return $!=="no-preference"&&$!=="none";return j.toLowerCase()===$}function F7(j){let $=[],J=0,X=0;for(let Z=0;Z<j.length;Z++){let Q=j[Z];if(Q==="(")J++;else if(Q===")")J--;else if(Q===","&&J===0)$.push(j.slice(X,Z)),X=Z+1}return $.push(j.slice(X)),$.map((Z)=>Z.trim()).filter((Z)=>Z.length>0)}function L7(j,$,J){return j.replace(U7($),(X,Z)=>_7(Z,J)?z7:M7)}function N7(j,$,J){if(J==="system")return j;if(!j.toLowerCase().includes($))return j;let X=F7(j);if(X.length===0)return j;return X.map((Z)=>L7(Z,$,J)).join(", ")}function a1(j,$){let J=j;for(let[X,Z]of o1($))J=N7(J,X,Z);return J}function h0(j){let $=j.toLowerCase();return I7.some((J)=>$.includes(J))}var M0=Symbol.for("devknobs.early"),c1=new WeakMap,x=new Set,v=new WeakMap,e=new WeakMap,I0=new WeakSet,r1=256,d1=r1,E=l1,z0=null,U0=null,r=null,y0=null,_0=!1,k0=!1,g0=null,t=null,i=0,a=null;function t1(j,$,J){for(let X=0;X<j.length;X++){let Z=j[X];if(!Z)continue;let Q=Z.styleSheet;if(Q)e1(Q,$,J);let B=Z.media;if(B&&typeof B.mediaText==="string")$(Z);let G=Z.cssRules;if(G&&G!==j)t1(G,$,J)}}function e1(j,$,J){if(J.has(j))return;J.add(j);let X=null;try{X=j.cssRules}catch{return}if(X)t1(X,$,J)}function p0(){let j=new Set,$=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let J of $)e1(J,(X)=>{let Z=X.media.mediaText,Q=c1.get(X);if(Q===void 0){if(Q=u1(X)??Z,!h0(Q))return;c1.set(X,Q)}let B=a1(Q,E);if(B===Z)return;try{X.media.mediaText=B}catch{}},j)}function i1(){if(i)return;i=requestAnimationFrame(()=>{i=0,p0()})}function q7(){if(t||typeof MutationObserver>"u")return;t=new MutationObserver((j)=>{for(let $ of j)for(let J of Array.from($.addedNodes)){let X=J.nodeName;if(X!=="STYLE"&&X!=="LINK")continue;if(J.hasAttribute?.("data-devknobs"))continue;if(X==="LINK")J.addEventListener("load",i1,{once:!0});i1()}}),t.observe(document.documentElement,{childList:!0,subtree:!0})}function jj(){return o1(E).some(([,j])=>j!=="system")}function D7(j){try{let $=y1(a1(j,E));return U0?U0.call($):$.matches}catch{return!1}}function $j(){for(let j of Array.from(x)){let $=j.deref();if(!$){x.delete(j);continue}let J=$.matches;if(J===v.get($))continue;v.set($,J),$.dispatchEvent(new MediaQueryListEvent("change",{media:$.media,matches:J}))}}function Jj(j){if(g0){g0(j);return}if(!j.isTrusted)return;let $=j.currentTarget;if(!jj()){v.set($,j.matches);return}if(j.stopImmediatePropagation(),k0)return;k0=!0,queueMicrotask(()=>{k0=!1,$j()})}function m0(j){if(I0.has(j)||!e.has(j))return;I0.add(j),v.set(j,j.matches),(y0??j.addEventListener).call(j,"change",Jj)}function O7(j,$){if(e.set(j,$),v.set(j,j.matches),x.add(new WeakRef(j)),x.size<d1)return;for(let J of x)if(!J.deref())x.delete(J);d1=Math.max(r1,x.size*2)}var R7=["addEventListener","addListener","onchange"];function x7(){let j=MediaQueryList.prototype;r=new Map(R7.map((Q)=>[Q,Object.getOwnPropertyDescriptor(j,Q)]));let $=j.addEventListener;y0=$,Object.defineProperty(j,"addEventListener",{configurable:!0,writable:!0,value:function(...B){if(B[1]&&String(B[0])==="change")m0(this);$.apply(this,B)}});let J=j.addListener;if(typeof J==="function")Object.defineProperty(j,"addListener",{configurable:!0,writable:!0,value:function(...B){if(B[0])m0(this);J.apply(this,B)}});let X=r.get("onchange"),Z=X?.set;if(X&&Z)Object.defineProperty(j,"onchange",{...X,set(Q){if(Q!==null&&Q!==void 0)m0(this);Z.call(this,Q)}})}function A7(){if(!r)return;let j=MediaQueryList.prototype;for(let[$,J]of r)if(J)Object.defineProperty(j,$,J);else Reflect.deleteProperty(j,$);r=null,y0=null}function S7(j,$){let J=$(j);if(h0(j))O7(J,j);return J}function T7(){if(_0)return;let j=window,$=j[M0];j[M0]=null;let J=$?.release(Jj)??[];_0=!0;for(let{list:Q,query:B,heard:G,guarded:V}of J)if(e.set(Q,B),v.set(Q,G),x.add(new WeakRef(Q)),V!==!1)I0.add(Q);f0("media",S7),x7();let X=Object.getOwnPropertyDescriptor(MediaQueryList.prototype,"matches"),Z=X?.get;if(!X||!Z)return;z0=X,U0=Z,Object.defineProperty(MediaQueryList.prototype,"matches",{configurable:!0,enumerable:X.enumerable,get(){if(!jj())return Z.call(this);let Q=e.get(this)??this.media;return h0(Q)?D7(Q):Z.call(this)}})}function Xj(){let j=document.documentElement;if(a===null)a=j.style.getPropertyValue("color-scheme");let $=E.scheme==="system"?a:E.scheme;if($)j.style.setProperty("color-scheme",$);else j.style.removeProperty("color-scheme");let J=E.scheme!=="system"&&$!==a;b0(j,"color-scheme",J?j.style.getPropertyValue("color-scheme"):null)}function w7(j){E=j,T7(),q7(),Xj(),p0(),$j()}function f7(){if(t?.disconnect(),t=null,i)cancelAnimationFrame(i),i=0;if(_0){if(E0("media"),A7(),z0)Object.defineProperty(MediaQueryList.prototype,"matches",z0);z0=null,U0=null,_0=!1}a=null}function E7(j){let $=[];for(let J of x){let X=J.deref();if(!X)continue;$.push({list:X,query:e.get(X)??X.media,heard:v.get(X)??X.matches,guarded:I0.has(X)})}return g0=j,x.clear(),E=l1,Xj(),p0(),f7(),$}function Zj(j){let $=window;if(M0 in $)return;w7(j),$[M0]={release:E7}}var Qj={blue:{srgb:["rgb(20, 70, 152)","rgb(12, 48, 114)","rgb(7, 31, 80)"],p3:["color(display-p3 0.1 0.27 0.61)","color(display-p3 0.06 0.19 0.46)","color(display-p3 0.035 0.12 0.32)"],line:"rgb(170, 205, 255)"},green:{srgb:["rgb(26, 96, 71)","rgb(14, 71, 51)","rgb(8, 49, 35)"],p3:["color(display-p3 0.159 0.377 0.279)","color(display-p3 0.102 0.277 0.2)","color(display-p3 0.065 0.194 0.136)"],line:"rgb(160, 218, 191)"},magenta:{srgb:["rgb(123, 37, 88)","rgb(90, 22, 63)","rgb(62, 12, 42)"],p3:["color(display-p3 0.462 0.14 0.342)","color(display-p3 0.34 0.081 0.246)","color(display-p3 0.234 0.043 0.165)"],line:"rgb(238, 185, 211)"},purple:{srgb:["rgb(86, 56, 130)","rgb(62, 38, 96)","rgb(42, 24, 67)"],p3:["color(display-p3 0.326 0.209 0.521)","color(display-p3 0.233 0.138 0.387)","color(display-p3 0.156 0.086 0.269)"],line:"rgb(209, 193, 242)"},red:{srgb:["rgb(132, 36, 36)","rgb(97, 21, 22)","rgb(68, 11, 12)"],p3:["color(display-p3 0.499 0.139 0.133)","color(display-p3 0.369 0.079 0.078)","color(display-p3 0.256 0.041 0.042)"],line:"rgb(239, 188, 183)"},graphite:{srgb:["rgb(64, 68, 74)","rgb(43, 46, 51)","rgb(26, 28, 32)"],p3:["color(display-p3 0.25 0.264 0.291)","color(display-p3 0.169 0.179 0.2)","color(display-p3 0.102 0.11 0.126)"],line:"rgb(198, 203, 211)"}},b7=["blue","green","magenta","purple","red","graphite"];function d0(j){return`radial-gradient(140% 100% at 50% 0%, ${j[0]}, ${j[1]} 60%, ${j[2]})`}function k7(j){return b7.some(($)=>$===j)}var u0=[1,0.82,0.64];function c0(j){return`rgb(${Math.round(j.red)}, ${Math.round(j.green)}, ${Math.round(j.blue)})`}function m7(j){let $=(J)=>({red:j.red*J,green:j.green*J,blue:j.blue*J,alpha:1});return[$(u0[0]),$(u0[1]),$(u0[2])]}function g7(j){return C0(j)?I1(j):null}function Bj(j){if(k7(j))return Qj[j];let $=g7(j);if(!$)return Qj.blue;let[J,X,Z]=m7($),Q=[c0(J),c0(X),c0(Z)];return{srgb:Q,p3:Q}}var v7=Symbol.for("devknobs.own"),Kj=Symbol.for("devknobs.name"),Gj=Symbol.for("devknobs.text"),Vj=new WeakMap;function i0(j){return j.nodeType===9}function h7(j){return i0(j)?j:j.ownerDocument??document}function Wj(j){let J=(i0(j)?j:j.ownerDocument)?.defaultView?.CSSStyleSheet;if(typeof J!=="function"||typeof J.prototype.replaceSync!=="function")return null;return"adoptedStyleSheets"in j?J:null}function Yj(j,$){let J=Vj.get($);if(J)return J;let X={get textContent(){let Z=Reflect.get($,Gj);return typeof Z==="string"?Z:""},set textContent(Z){Reflect.set($,Gj,Z??""),$.replaceSync(Z??"")},sheet:$,remove(){j.adoptedStyleSheets=j.adoptedStyleSheets.filter((Z)=>Z!==$)}};return Vj.set($,X),X}function Pj(j,$,J){let X=new $;if(Reflect.set(X,v7,!0),J!==void 0)Reflect.set(X,Kj,J);return j.adoptedStyleSheets=[...j.adoptedStyleSheets,X],Yj(j,X)}function Cj(j,$){let J=Wj(j);if(J){let Z=Pj(j,J);return Z.textContent=$,Z}let X=h7(j).createElement("style");if(X.textContent=$,i0(j))(j.head??j.documentElement).appendChild(X);else j.append(X);return X}function F0(j,$=document){let J="adoptedStyleSheets"in $?$.adoptedStyleSheets.find((X)=>Reflect.get(X,Kj)===j):void 0;return J?Yj($,J):$.querySelector(`style[data-devknobs="${j}"]`)}function Hj(j,$=document){let J=F0(j,$);if(J)return J;let X=Wj($);if(X)return Pj($,X,j);let Z=$.createElement("style");return Z.setAttribute("data-devknobs",j),($.head??$.documentElement).appendChild(Z),Z}function zj(j,$=document){F0(j,$)?.remove()}var Ij=2147483645,j0="early",y7="devknobs:snapshot",p7=1,u7=3000;function c7(j){if(!j)return`html{overflow:hidden!important}
2
2
  body>:not([data-devknobs]){content-visibility:hidden!important}`;let J=Bj(j);return`html{overflow:hidden!important}
3
3
  body>:not([data-devknobs]){content-visibility:hidden!important}
4
4
  html::after{content:"";position:fixed;inset:0;z-index:${Ij-1};background:${d0(J.srgb)};pointer-events:none}
5
- @media (color-gamut:p3){html::after{background:${d0(J.p3)}}}`}function l7(j,$){return JSON.stringify([j.width,j.height,j.frame,j.dpr,j.vision,j.scheme,j.device,j.orientation,j.posture,j.mock,j.browser,j.bars,j.edgeToEdge,j.zoom,j.mat,j.panel.open,j.panel.side,j.panel.docked,$.innerWidth,$.innerHeight,$.devicePixelRatio])}var Mj=/^rgb\(\d{1,3}, \d{1,3}, \d{1,3}\)$/;function n7(j){if(typeof j!=="object"||j===null)return null;let $=(P)=>Reflect.get(j,P),J=$("background"),X=$("scheme"),Z=$("host"),Q=[$("dark"),$("canBack"),$("canForward")];if(typeof J!=="string"||!Mj.test(J))return null;if(X!=="light"&&X!=="dark"||typeof Z!=="string")return null;let[B,G,V]=Q;if(typeof B!=="boolean"||typeof G!=="boolean")return null;if(typeof V!=="boolean")return null;let K=(P)=>{let z=$(P);return typeof z==="string"&&Mj.test(z)?z:J},Y=K("top"),H=K("bottom"),C=$("header");if(typeof C!=="boolean")return null;return{background:J,top:Y,bottom:H,header:C,footer:$("footer")===!0,under:[],dark:B,scheme:X,host:Z,canBack:G,canForward:V}}function s7(j,$){try{let J=T("session")?.getItem(u7);if(!J)return null;let X=JSON.parse(J);if(typeof X!=="object"||X===null||O(X,c7))return null;let Z=Reflect.get(X,"key"),Q=Reflect.get(X,"css"),B=Reflect.get(X,"html"),G=n7(Reflect.get(X,"look"));if(Z!==l7(j,$)||typeof Q!=="string")return null;if(typeof B!=="string"||!G)return null;return{key:Z,css:Q,html:B,look:G}}catch{return null}}function o7(){for(let j of Array.from(document.querySelectorAll(`[data-devknobs="${j0}"]`)))j.remove();zj(j0)}function Uj(j){if(!m1(j)||!document.head)return;let $=Hj(j0);$.textContent=i7(g1(j)?null:j.mat),window.setTimeout(o7,d7);let J=s7(j,window);if(!J)return;let X=document.createElement("div");X.setAttribute("data-devknobs",j0),X.style.cssText=`position:fixed;inset:0;z-index:${Ij}`;let Z=X.attachShadow({mode:"open"});Z.innerHTML=J.html;for(let G of Array.from(Z.querySelectorAll("[style]")))G.style.cssText=G.getAttribute("style")??"";Cj(Z,J.css);let Q=()=>{if(F0(j0)!==$)return!0;if(!document.body)return!1;return document.body.append(X),!0};if(Q())return;let B=new MutationObserver(()=>{if(Q())B.disconnect()});B.observe(document.documentElement,{childList:!0})}var l0="devknobs:scroll",Lj=1,a7=1e4,r7=2000,t7=1e4,e7=20,_j=["wheel","touchstart","keydown","mousedown"];function Fj(j){if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"path"),J=Reflect.get(j,"x"),X=Reflect.get(j,"y");if(typeof $!=="string"||typeof J!=="number"||typeof X!=="number")return;return Number.isFinite(J)&&Number.isFinite(X)?{path:$,x:J,y:X}:void 0}function j$(j){if(!j)return null;let $;try{$=JSON.parse(j)}catch{return null}if(typeof $!=="object"||$===null||O($,Lj))return null;let J=Reflect.get($,"at");if(typeof J!=="number")return null;let X={at:J},Z=Fj(Reflect.get($,"page")),Q=Fj(Reflect.get($,"frame"));if(Z)X.page=Z;if(Q)X.frame=Q;return X}function $$(j,$){let J=$-j;return!(J>=0&&J<a7)}function J$(j,$,J,X){if(!j||$$(j.at,X))return{place:null,rest:null};let Z=j[$],Q=$==="page"?"frame":"page",B=j[Q],G=B?{at:j.at,[Q]:B}:null;if(!Z||Z.path!==J)return{place:null,rest:G};return{place:{x:Z.x,y:Z.y},rest:G}}function X$(j,$){let{target:J}=j,X=Math.abs($.x-J.x)<=1&&Math.abs($.y-J.y)<=1,Z=j.puts>=e7;if($.now-j.start>=t7||j.loadedAt!==null&&$.now-j.loadedAt>=r7)return X||Z?"done":"last";if(Z)return"done";if(X)return"wait";return $.maxX>=J.x-1&&$.maxY>=J.y-1?"put":"wait"}function Z$(j,$,J=q){let X={target:$,start:J(),loadedAt:null,puts:0},Z=!1,Q=()=>{Z=!0;for(let G of _j)j.removeEventListener(G,Q,!0)},B=()=>{if(Z)return;let G=J();if(X.loadedAt===null&&j.document.readyState==="complete")X.loadedAt=G;let V=j.document.documentElement,K=X$(X,{x:j.scrollX,y:j.scrollY,maxX:V?V.scrollWidth-V.clientWidth:0,maxY:V?V.scrollHeight-V.clientHeight:0,now:G});if(K==="put"||K==="last")X.puts++,j.scrollTo({left:$.x,top:$.y,behavior:"instant"});if(K==="last"||K==="done")Q();else j.requestAnimationFrame(B)};for(let G of _j)j.addEventListener(G,Q,!0);B()}function Nj(){if(typeof window>"u")return;let j=null;try{let $=T("session"),J=$?.getItem(l0)??null;if(!$||J===null)return;let X=R()?"frame":"page",{place:Z,rest:Q}=J$(j$(J),X,window.location.pathname,q());if(Q)$.setItem(l0,JSON.stringify(n(Q,Lj)));else $.removeItem(l0);j=Z}catch{return}if(j)Z$(window,j)}var Q$={brand:"Not/A)Brand",version:"24.0.0.0"};function Aj(j){return j.split(".")[0]??j}function L0(j,$=!1){let J=`Chrome/${Aj("154.0.8037.98")}.0.0.0 ${$?"Mobile ":""}Safari/537.36`;return`Mozilla/5.0 (${j}) AppleWebKit/537.36 (KHTML, like Gecko) ${J}`}function $0(j,$){let J=[{brand:"Chromium",version:"154.0.8037.98"},Q$,...j?[j]:[]];return{brands:J.map(({brand:X,version:Z})=>({brand:X,version:Aj(Z)})),hints:{...$,fullVersionList:J,uaFullVersion:j?.version??"154.0.8037.98"}}}var n0={brand:"Google Chrome",version:"154.0.8037.98"},Sj={model:"",bitness:"64"},qj={...Sj,platformVersion:"19.0.0",architecture:"x86"},Dj="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Safari/605.1.15",B$=[{id:"iphone-safari",label:"iPhone Safari",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1",platform:"iPhone",vendor:"Apple Computer, Inc.",mobile:!0,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"android-chrome",label:"Android Chrome",userAgent:L0("Linux; Android 10; K",!0),platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:5,...$0(n0,{platformVersion:"16.0.0",model:"Pixel 10",architecture:"",bitness:""})},{id:"ipad-safari",label:"iPad Safari",userAgent:Dj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"mac-safari",label:"Mac Safari",userAgent:Dj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"macOS",maxTouchPoints:0},{id:"mac-chrome",label:"Mac Chrome",userAgent:L0("Macintosh; Intel Mac OS X 10_15_7"),platform:"MacIntel",vendor:"Google Inc.",mobile:!1,uaPlatform:"macOS",maxTouchPoints:0,...$0(n0,{...Sj,platformVersion:"26.7.1",architecture:"arm"})},{id:"windows-chrome",label:"Windows Chrome",userAgent:L0("Windows NT 10.0; Win64; x64"),platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...$0(n0,qj)},{id:"windows-edge",label:"Windows Edge",userAgent:`${L0("Windows NT 10.0; Win64; x64")} Edg/154.0.4258.53`,platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...$0({brand:"Microsoft Edge",version:"154.0.4258.53"},qj)},{id:"linux-firefox",label:"Linux Firefox",userAgent:"Mozilla/5.0 (X11; Linux x86_64; rv:157.0) Gecko/20100101 Firefox/157.0",platform:"Linux x86_64",vendor:"",mobile:!1,brands:[],uaPlatform:"Linux",maxTouchPoints:0,appVersion:"5.0 (X11)"},{id:"googlebot",label:"Googlebot",userAgent:"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.8037.98 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:1,...$0(null,{platformVersion:"6.0.1",model:"Nexus 5X",architecture:"",bitness:""})}];function Tj(j){return B$.find(($)=>$.id===j)}function G$(j){if(j.preset==="custom")return j.custom.trim();return Tj(j.preset)?.userAgent??""}function V$(j){return j.replace(/^Mozilla\//,"")}var wj=["userAgent","appVersion","platform","vendor","maxTouchPoints","userAgentData"],Oj=Symbol.for("devknobs.ua");function K$(j){return typeof j==="object"&&j!==null&&"originals"in j}function fj(j){let $=Reflect.get(j,Oj);if(K$($))return $;let J={originals:null};return Reflect.set(j,Oj,J),J}function Ej(j){let $=Reflect.get(j,"Navigator");return typeof $==="function"?$.prototype:null}function h(j,$,J){Object.defineProperty(j,$,{configurable:!0,enumerable:!0,get:()=>J})}function s0(j,$,J){let X=j.originals?.get(J);if(X)Object.defineProperty($,J,X);else Reflect.deleteProperty($,J)}function Rj(j){return j.map(({brand:$,version:J})=>({brand:$,version:J}))}var W$={brands:[],mobile:!1,uaPlatform:""};function xj(j,$){let J=Object.freeze(j.brands.map((V)=>Object.freeze({...V}))),X=()=>({brands:Rj(J),mobile:j.mobile,platform:j.uaPlatform}),Z=j.hints,Q=()=>({architecture:Z?.architecture??"",bitness:Z?.bitness??"",fullVersionList:Rj(Z?.fullVersionList??[]),model:Z?.model??"",platformVersion:Z?.platformVersion??"",uaFullVersion:Z?.uaFullVersion??""}),B=Reflect.get($,"NavigatorUAData"),G=typeof B==="function"?B.prototype:Object.prototype;return Object.create(G,{brands:{enumerable:!0,get:()=>J},mobile:{enumerable:!0,get:()=>j.mobile},platform:{enumerable:!0,get:()=>j.uaPlatform},getHighEntropyValues:{value:(V)=>{try{let K=X(),Y=Q();for(let H of Array.from(V,String))if(Object.hasOwn(Y,H))K[H]=Y[H];return Promise.resolve(K)}catch(K){return Promise.reject(K)}}},toJSON:{value:X}})}function bj(j,$=globalThis){let J=Ej($),X=j.preset==="custom"?void 0:Tj(j.preset),Z=G$(j);if(!J||Z===""){Y$($);return}let Q=fj($);if(Q.originals??=new Map(wj.map((B)=>[B,Object.getOwnPropertyDescriptor(J,B)])),h(J,"userAgent",Z),h(J,"appVersion",X?.appVersion??V$(Z)),!X){for(let B of["platform","vendor","maxTouchPoints"])s0(Q,J,B);if(Q.originals.get("userAgentData"))h(J,"userAgentData",xj(W$,$));else s0(Q,J,"userAgentData");return}if(h(J,"platform",X.platform),h(J,"vendor",X.vendor),h(J,"maxTouchPoints",X.maxTouchPoints),X.brands.length>0)h(J,"userAgentData",xj(X,$));else Reflect.deleteProperty(J,"userAgentData")}function Y$(j=globalThis){let $=fj(j),J=Ej(j);if(!$.originals)return;if(J)for(let X of wj)s0($,J,X);$.originals=null}function j1(){if(Object.hasOwn(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"))return;Promise.resolve().then(() => nj())}var F$=Symbol.for("devknobs.owner");function sj(j){return typeof Reflect.get(j,F$)==="function"}function L$(j,$){for(let J of["name","length",...Object.keys($)]){let X=Object.getOwnPropertyDescriptor($,J);if(X)Object.defineProperty(j,J,X)}Object.defineProperty(j,"toString",{configurable:!0,writable:!0,value:()=>Function.prototype.toString.call($)})}function A(j,$,J,X){let Z=Reflect.get($,J);if(typeof Z!=="function")return;let Q=Object.hasOwn($,J),B=X(Z);if(L$(B,Z),Reflect.set($,J,B))j.push({target:$,key:J,original:Z,value:B,own:Q})}function oj(j){for(let{target:$,key:J,original:X,value:Z,own:Q}of j.reverse()){if(Reflect.get($,J)!==Z)continue;if(Q)Reflect.set($,J,X);else Reflect.deleteProperty($,J)}j.length=0}var $1=300,y=65536,J1=200,aj=4096;var N$=/^text\/|[/+](json|xml|javascript|ecmascript|x-www-form-urlencoded|graphql|yaml)\b|\/svg/i;function X1(j){return N$.test(j)}var X0=/�+$/;function b(j,$,J=y){if(j.length<=J){let Q=new TextEncoder().encode(j);if(Q.length<=J)return{kind:"text",text:j,size:Q.length,truncated:!1,type:$};return{kind:"text",text:new TextDecoder().decode(Q.subarray(0,J)).replace(X0,""),size:Q.length,truncated:!0,type:$}}let X=new TextEncoder().encode(j.slice(0,J)),Z=new TextDecoder().decode(X.subarray(0,J));return{kind:"text",text:X.length>J?Z.replace(X0,""):Z,size:null,truncated:!0,type:$}}function J0(j,$,J){return{kind:j,text:"",size:$,truncated:!1,type:J}}function q$(j,$){let J=[],X=0;for(let[Z,Q]of j){let B=typeof Q==="string"?`${Z}=${Q}`:`${Z}=(file ${Q.name}, ${Q.type||"no type"}, ${Q.size} bytes)`;if(J.push(B),X+=B.length+1,X>$)break}return J.join(`
6
- `)}function p(j,$){return typeof j==="function"&&$ instanceof j}function q0(j,$,J=y){if(j===void 0||j===null)return null;if(typeof j==="string")return b(j,$||"text/plain;charset=UTF-8",J);if(p(globalThis.URLSearchParams,j))return b(String(j),$||"application/x-www-form-urlencoded;charset=UTF-8",J);if(p(globalThis.FormData,j))return{...b(q$(j,J),$||"multipart/form-data",J),kind:"form",size:null};if(p(globalThis.Blob,j))return J0("binary",j.size,$||j.type||"Blob");if(p(globalThis.ArrayBuffer,j))return J0("binary",j.byteLength,$||"ArrayBuffer");if(ArrayBuffer.isView(j))return J0("binary",j.byteLength,$||"ArrayBufferView");if(p(globalThis.ReadableStream,j))return J0("stream",null,$);return null}function u(j,$,J){return J0(j,$,J)}var Z1=2000;async function rj(j,$,J=y,X=Z1){if(!j.body){let Y=await j.blob(),H=await Y.slice(0,J).text(),C=Y.size>J;return{record:{kind:"text",text:C?H.replace(X0,""):H,size:Y.size,truncated:C,type:$},complete:!0}}let Z=j.body.getReader(),Q=new TextDecoder,B="",G=0,V=!1,K=setTimeout(()=>{V=!0,Z.cancel().catch(()=>{})},X);try{for(;;){let{done:Y,value:H}=await Z.read();if(Y)break;let C=J-G;if(H.byteLength>C)return B+=Q.decode(H.subarray(0,C)),Z.cancel().catch(()=>{}),{record:{kind:"text",text:B.replace(X0,""),size:null,truncated:!0,type:$},complete:!1};B+=Q.decode(H,{stream:!0}),G+=H.byteLength}}finally{clearTimeout(K)}if(B+=Q.decode(),V)return{record:{kind:"text",text:B.replace(X0,""),size:null,truncated:!0,timedOut:!0,type:$},complete:!1};return{record:{kind:"text",text:B,size:G,truncated:!1,type:$},complete:!0}}function k(j){try{return new URL(j,typeof document>"u"?void 0:document.baseURI).href}catch{return j}}function m(j,$){return j.find(([J])=>J.toLowerCase()===$)?.[1]??""}function Q1(j,$,J,X,Z){return{id:j,kind:$,detail:$==="resource"||$==="navigation"?"light":"full",source:J,method:"",url:"",finalUrl:null,redirected:!1,state:"pending",status:null,statusText:"",error:null,requestHeaders:[],responseHeaders:[],requestBody:null,responseBody:null,contentType:"",sizes:null,timing:{start:X.origin+Z,at:Z,response:null,end:null,duration:null},phases:null,messages:[],initiator:"",initiatorType:"",protocol:"",referrerPolicy:""}}function tj(j,$,J,X){return{active:X,start(Z,Q){let B=j.nextId();return j.put({...Q1(B,Z,J,$,$.now()),method:Q.method,url:Q.url,requestHeaders:Q.headers,requestBody:Q.body,initiator:Q.initiator,referrerPolicy:Q.referrerPolicy??""}),B},set:(Z,Q)=>j.update(Z,Q),responded(Z,Q){let B=j.get(Z)?.timing;if(!B)return;let G=B.response??$.now()-B.at;j.update(Z,{...Q,timing:{...B,response:G}})},ended(Z,Q){let B=j.get(Z)?.timing;if(!B)return;let G=B.duration??$.now()-B.at;j.update(Z,{...Q,timing:{...B,end:B.start+G,duration:G}})},message(Z,Q){let B=j.get(Z)?.messages;if(!B)return;let{text:G,truncated:V}=b(Q.data,"",aj),K={...Q,data:G,truncated:V,time:$.origin+$.now()};j.update(Z,{messages:[...B.slice(1-J1),K]})}}}var D$=/^at |@/;function l(j,$){if(typeof j!=="string")return"";let J=j.split(`
7
- `).map((X)=>X.trim()).filter((X)=>X!=="");if(J[0]!==void 0&&!D$.test(J[0]))J.shift();return J.slice($,$+12).join(`
8
- `)}var O$=new Set(["open","error"]);function ej(j,$){let J=Reflect.get(globalThis,"EventSource");if(typeof J!=="function")return;let X=new WeakMap,Z=EventTarget.prototype.addEventListener;function Q(G,V){let K=k(G.url),Y=()=>$.start("eventsource",{method:"GET",url:K,headers:[],body:null,initiator:V}),H=(P,z)=>{Z.call(G,P,(M)=>{try{z(M)}catch{}})},C={id:Y(),open:!1,types:new Set,listen(P){if(C.types.has(P)||O$.has(P))return;C.types.add(P),H(P,(z)=>{if(C.id===null)return;let M=Reflect.get(z,"data"),N=Reflect.get(z,"lastEventId");$.message(C.id,{type:z.type,data:String(M??""),id:typeof N==="string"?N:""})})}};X.set(G,C),C.listen("message"),H("open",()=>{if(C.id===null){if(!$.active())return;C.id=Y()}C.open=!0,$.responded(C.id,{status:200,state:"ok",contentType:"text/event-stream"})}),H("error",()=>{if(C.id===null)return;$.ended(C.id,C.open?{}:{state:"failed",error:"EventSource failed to connect"}),C.id=null,C.open=!1})}A(j,globalThis,"EventSource",(G)=>{function V(...K){if(!new.target)return Reflect.apply(G,this,K);let Y=Reflect.construct(G,K,new.target);try{if($.active())Q(Y,l(Error().stack,1))}catch{}return Y}return V.prototype=G.prototype,V});let B=Reflect.get(J,"prototype");if(typeof B!=="object"||B===null)return;A(j,B,"addEventListener",()=>function(...G){try{if(typeof G[0]==="string")X.get(this)?.listen(G[0])}catch{}return Reflect.apply(Reflect.get(Object.getPrototypeOf(B),"addEventListener"),this,G)}),A(j,B,"close",(G)=>function(...V){try{let K=X.get(this);if(K&&K.id!==null)$.ended(K.id,K.open?{}:{state:"aborted"}),K.id=null}catch{}return G.apply(this,V)})}var j3=2,Z0=Symbol.for("devknobs.requests"),$3=Symbol.for("devknobs.quiet");function R$(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"version")===2}function D0(j=globalThis){try{let $=Reflect.get(j,Z0);return R$($)?$:null}catch{return null}}function B1(j){if(j)Reflect.set(globalThis,Z0,j);else Reflect.deleteProperty(globalThis,Z0)}function J3(){let j=Reflect.get(globalThis,Z0);if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"uninstall");try{if(typeof $==="function")$.call(j)}catch{}Reflect.deleteProperty(globalThis,Z0)}function x$(j){return typeof j==="object"&&j!==null&&"url"in j&&"method"in j&&"headers"in j&&"clone"in j}function Q0(j,$){return typeof j==="object"&&j!==null?Reflect.get(j,$):void 0}function A$(j){try{return typeof j==="object"&&j!==null&&Reflect.get(j,$3)===!0}catch{return!1}}function X3(j){let $=[];if(typeof j!=="object"||j===null)return $;if(p(globalThis.Headers,j))j.forEach((J,X)=>$.push([X,J]));else if(Array.isArray(j)){for(let J of j)if(Array.isArray(J)&&J.length>1)$.push([String(J[0]),String(J[1])])}else for(let[J,X]of Object.entries(j))$.push([J,String(X)]);return $}function Z3(j){return j instanceof Error?`${j.name}: ${j.message}`:String(j)}function Q3(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"aborted")===!0}function S$(j,$,J){if($==="GET"||$==="HEAD")return null;if(j.body===null||j.bodyUsed)return null;return u(X1(J)?"stream":"binary",null,J)}function T$(j,$){let J=x$(j)?j:null,X=String(Q0($,"method")??J?.method??"GET").toUpperCase(),Z=Q0($,"headers"),Q=X3(Z===void 0?J?.headers:Z),B=m(Q,"content-type"),G=Q0($,"body"),V=J&&(G===void 0||G===null)?S$(J,X,B):null,K=q0(G,B)??V,Y=String(Q0($,"referrerPolicy")??J?.referrerPolicy??"");return{request:{method:X,url:k(J?J.url:String(j)),headers:Q,body:K,referrerPolicy:Y},signal:Q0($,"signal")??J?.signal}}function w$(j){let $=Number.parseInt(m(j,"content-length"),10);return Number.isFinite($)?$:null}function f$(j){return/^text\/event-stream\b/i.test(j.trim())}function E$(j,$,J,X,Z){let Q=X3(J.headers),B=m(Q,"content-type"),G=J.type==="opaque"||J.type==="opaqueredirect";if(j.responded($,{status:J.status,statusText:J.statusText,state:J.ok||G?"ok":"failed",responseHeaders:Q,contentType:B,redirected:J.redirected,finalUrl:J.url||null}),G)j.set($,{responseBody:u("opaque",null,"")});else if(J.body===null)j.ended($,{});else if(f$(B))j.set($,{responseBody:u("stream",null,B)});else if(!X1(B))j.set($,{responseBody:u("binary",w$(Q),B)});else rj(J.clone(),B,void 0,Z).then(({record:V,complete:K})=>{let Y=V.size===0?null:V;if(K)j.ended($,{responseBody:Y});else j.set($,{responseBody:Y})},(V)=>{j.ended($,{state:Q3(X)?"aborted":"failed",error:Z3(V)})})}function B3(j,$,J=Z1){return function(){let Z=arguments;if(!$.active()||A$(Z[1]))return Reflect.apply(j,this,Z);let Q=null,B;try{let K=T$(Z[0],Z[1]);B=K.signal,Q=$.start("fetch",{...K.request,initiator:l(Error().stack,1)})}catch{}let G=Reflect.apply(j,this,Z);if(Q===null)return G;let V=Q;return G.then((K)=>{try{E$($,V,K,B,J)}catch{}return K},(K)=>{try{$.ended(V,{state:Q3(B)?"aborted":"failed",error:Z3(K)})}catch{}throw K})}}var G1=250,B0=5;function F(j,$){let J=Reflect.get(j,$);return typeof J==="number"&&Number.isFinite(J)?J:0}function c(j,$){let J=Reflect.get(j,$);return typeof J==="string"?J:""}function G3(j){return j.split("#",1)[0]??j}function b$(j){try{return new URL(j).origin}catch{return""}}function V3(j,$){let J=F(j,"transferSize"),X=F(j,"encodedBodySize"),Z=F(j,"decodedBodySize"),Q=J+X+Z===0&&b$(j.name)!==$;return{transfer:J,encoded:X,decoded:Z,hidden:Q}}function K3(j){return{startTime:j.startTime,workerStart:F(j,"workerStart"),redirectStart:F(j,"redirectStart"),redirectEnd:F(j,"redirectEnd"),fetchStart:F(j,"fetchStart"),domainLookupStart:F(j,"domainLookupStart"),domainLookupEnd:F(j,"domainLookupEnd"),connectStart:F(j,"connectStart"),secureConnectionStart:F(j,"secureConnectionStart"),connectEnd:F(j,"connectEnd"),requestStart:F(j,"requestStart"),responseStart:F(j,"responseStart"),responseEnd:F(j,"responseEnd")||j.startTime+j.duration}}function W3(j){return F(j,"responseStatus")||null}function Y3(j,$,J,X,Z){let Q=Q1($,j.entryType==="navigation"?"navigation":"resource",J,X,j.startTime),B=W3(j),G=F(j,"responseEnd")||j.startTime+j.duration,V=F(j,"responseStart"),K=Math.max(0,G-j.startTime);return{...Q,url:j.name,state:B!==null&&B>=400?"failed":"ok",status:B,contentType:c(j,"contentType"),sizes:V3(j,Z),timing:{...Q.timing,response:V>0?Math.max(0,V-j.startTime):null,end:Q.timing.start+K,duration:K},phases:K3(j),initiatorType:c(j,"initiatorType")||j.entryType,protocol:c(j,"nextHopProtocol")}}var k$={fetch:"fetch",xmlhttprequest:"xhr",other:"eventsource"};function P3(j,$,J){let X=k$[c($,"initiatorType")];if(!X)return null;let Z=G3($.name),Q=F($,"responseEnd")||$.startTime+$.duration,B=null;for(let G of j){if(G.kind!==X||G.source!==J||G.sizes!==null)continue;let V=$.startTime-G.timing.at;if(!(X==="eventsource"&&V<=B0&&G.timing.at<=Q+B0)&&(V<-B0||V>G1)||G3(G.url)!==Z)continue;if(!B||Math.abs(V)<Math.abs($.startTime-B.timing.at))B=G}return B}function C3(j,$,J){let X=F($,"responseEnd")||$.startTime+$.duration,Z=Math.max(0,X-j.timing.at);return{sizes:V3($,J),phases:K3($),protocol:c($,"nextHopProtocol"),initiatorType:c($,"initiatorType"),status:j.status||W3($),contentType:j.contentType||c($,"contentType"),timing:{...j.timing,end:j.timing.start+Z,duration:Z}}}var m$=50;function g$(j){let $=setTimeout(j,m$);return()=>clearTimeout($)}function H3(j){let $=j.schedule??g$,J=[],X=new Map,Z=new Set,Q=new Set,B=null,G=!1,V=Number.NEGATIVE_INFINITY,K=0;function Y(){if(B?.(),B=null,Q.size===0&&!G)return;let P=[];for(let z of Q){let M=X.get(z);if(M)P.push(M)}Q.clear(),G=!1;for(let z of Array.from(Z))z(P)}function H(P){if(Z.size===0)return;if(P===null)G=!0;else Q.add(P);B??=$(Y)}function C(P){if(P.timing.start<V)return;let z=X.get(P.id);if(X.set(P.id,P),z)J[J.lastIndexOf(z)]=P;else{let M=J.length;while(M>0&&(J[M-1]?.timing.start??0)>P.timing.start)M--;if(J.splice(M,0,P),J.length>$1){let N=J.shift();if(N)X.delete(N.id);if(N===P)return}}H(P.id)}return{entries:()=>J,get:(P)=>X.get(P),nextId:()=>`${j.seed}-${++K}`,put:C,update(P,z){let M=X.get(P);if(M)C({...M,...z,id:P})},clear(){J=[],X.clear(),Q.clear(),V=j.now(),H(null)},subscribe(P){return Z.add(P),()=>{Z.delete(P)}},flush:Y,close(){B?.(),B=null,J=[],X.clear(),Q.clear(),Z.clear()}}}var v$=4*y;function h$(j){let $=[];for(let J of j.split(/\r?\n/)){let X=J.indexOf(":");if(X>0)$.push([J.slice(0,X).trim(),J.slice(X+1).trim()])}return $}function z3(j,$){let J=h$(j.getAllResponseHeaders()??""),X=j.responseURL||null;return{status:j.status,statusText:j.statusText,responseHeaders:J,contentType:m(J,"content-type"),finalUrl:X,redirected:X!==null&&X!==$.split("#",1)[0]}}function y$(j){if(typeof j!=="object"||j===null)return null;let $=Reflect.get(j,"byteLength")??Reflect.get(j,"size");return typeof $==="number"?$:null}function p$(j,$,J){let X=j.responseType,Z;if(X===""||X==="text")Z=b(j.responseText,$);else if(X!=="json")Z=u("binary",y$(j.response)??J,$||X);else if(J!==null&&J>v$)Z={kind:"text",text:"",size:J,truncated:!0,type:$};else Z=b(JSON.stringify(j.response)??"",$);return Z.size===0?null:Z}var M3=["error","abort","timeout"];function u$(j,$,J,X){let Z=null,Q=null,B=!1,G=null,V=()=>{j.removeEventListener("readystatechange",Y,!0),j.removeEventListener("progress",H,!0);for(let z of M3)j.removeEventListener(z,C,!0);j.removeEventListener("loadend",P,!0)};function K(){B=!0,V();try{let z=z3(j,J),M=j.status,N=Z??(M===0||M>=400?"failed":"ok"),V0=Number.parseInt(m(z.responseHeaders??[],"content-length"),10),K0=G??(Number.isFinite(V0)?V0:null),O0=Z?null:p$(j,z.contentType??"",K0);X.ended($,{...z,status:M===0?null:M,state:N,error:Q,responseBody:O0})}catch{X.ended($,{state:Z??"failed",error:Q})}}function Y(){try{if(j.readyState===2)X.responded($,z3(j,J))}catch{}if(j.readyState===4&&j.status!==0)K()}function H(z){let M=Reflect.get(z,"loaded");if(typeof M==="number")G=M}function C(z){Z=z.type==="abort"?"aborted":"failed",Q=z.type==="abort"?null:z.type}function P(z){if(j.readyState!==4)return;H(z),K()}j.addEventListener("readystatechange",Y,!0),j.addEventListener("progress",H,!0);for(let z of M3)j.addEventListener(z,C,!0);return j.addEventListener("loadend",P,!0),()=>{if(B)return;B=!0,V(),X.ended($,{state:"aborted"})}}function I3(j,$){if(typeof XMLHttpRequest!=="function")return;let J=new WeakMap,X=XMLHttpRequest.prototype;A(j,X,"open",(Z)=>function(...Q){let B=Z.apply(this,Q);try{if(J.get(this)?.drop?.(),J.delete(this),$.active()){let G=String(Q[0]).toUpperCase();J.set(this,{method:G,url:k(String(Q[1])),headers:[],drop:null})}}catch{}return B}),A(j,X,"setRequestHeader",(Z)=>function(...Q){let B=Z.apply(this,Q);return J.get(this)?.headers.push([String(Q[0]),String(Q[1])]),B}),A(j,X,"send",(Z)=>function(...Q){let B=J.get(this);if(!B||!$.active())return Z.apply(this,Q);let G=null;try{let{method:V,url:K,headers:Y}=B,H=q0(Q[0],m(Y,"content-type")),C=l(Error().stack,1);G=$.start("xhr",{method:V,url:K,headers:[...Y],body:H,initiator:C}),B.drop=u$(this,G,K,$)}catch{}try{return Z.apply(this,Q)}catch(V){if(B.drop?.(),B.drop=null,G!==null)$.set(G,{state:"failed",error:String(V)});throw V}})}var c$=100,G0=typeof performance>"u"?null:performance,U3=G0?G0.now.bind(G0):q;function d$(){let j=G0?G0.timeOrigin??q()-U3():0;return{now:U3,origin:j}}function i$(j){return k(j).split("#",1)[0]??j}function l$(j){return{...j,source:"frame",requestHeaders:j.requestHeaders.map(([$,J])=>[$,J]),responseHeaders:j.responseHeaders.map(([$,J])=>[$,J]),requestBody:j.requestBody&&{...j.requestBody},responseBody:j.responseBody&&{...j.responseBody},sizes:j.sizes&&{...j.sizes},timing:{...j.timing},phases:j.phases&&{...j.phases},messages:j.messages.map(($)=>({...$}))}}function n$(j){let{source:$,clock:J,origin:X}=j,Z=`${$.charAt(0)}${Math.floor(J.origin).toString(36)}${Math.floor(Math.random()*46656).toString(36)}`,Q=H3({seed:Z,now:()=>J.origin+J.now(),schedule:j.schedule}),B=[],G=!0,V=0,K=new Set,Y=[],H=tj(Q,J,$,()=>G&&V===0);function C(U,I){let S=i$(U);if(S.startsWith("data:"))return;if(!I)K.add(S);else Y=[...Y.slice(1-c$),{url:S,at:J.now()}]}function P(U){if(K.has(U.name))return!0;let I=Y.findIndex((S)=>{let W1=U.startTime-S.at;return S.url===U.name&&W1>=-B0&&W1<=G1});if(I<0)return!1;return Y.splice(I,1),!0}function z(U){try{if(P(U))return;let I=P3(Q.entries(),U,$);if(I)Q.update(I.id,C3(I,U,X));else Q.put(Y3(U,Q.nextId(),$,J,X))}catch{}}function M(){if(typeof PerformanceObserver!=="function")return()=>{};let U=new PerformanceObserver((I)=>{if(G)for(let S of I.getEntries())z(S)});for(let I of["navigation","resource"])try{U.observe({type:I,buffered:!0})}catch{}return()=>U.disconnect()}let N=null;function V0(U){let I=j.above?.()??null;if(I)I.adopt(I===N?U:Q.entries());N=I}function K0(U){if(Reflect.get(U,"persisted")===!0)return;for(let I of[...Q.entries()])if(I.state==="pending")Q.update(I.id,{state:"aborted"});Q.flush()}A(B,globalThis,"fetch",(U)=>B3(U,H,j.readFor)),I3(B,H),ej(B,H);let O0=M();if(j.above)Q.subscribe(V0),globalThis.addEventListener?.("pagehide",K0);let K1={version:j3,store:Q,quietly(U,I){C(U,!0),V++;try{return I()}finally{V--}},hush:C,adopt(U){for(let I of U)Q.put(l$(I))},uninstall(){if(G=!1,oj(B),O0(),globalThis.removeEventListener?.("pagehide",K0),Q.close(),D0()===K1)B1(null)}};return K1}function s$(){try{return window.parent===window?null:D0(window.parent)}catch{return null}}function _3(){if(D0())return;J3();let j=typeof window<"u"&&R(),$=typeof location>"u"?"":location.origin;B1(n$({source:j?"frame":"top",clock:d$(),origin:$,above:j?s$:void 0}))}var o$="devknobs:storage-presets",a$=1,F3=Symbol.for("devknobs.presets");function L3(j){return typeof j==="object"&&j!==null&&!Array.isArray(j)?Object.fromEntries(Object.entries(j)):{}}function V1(j){return Array.isArray(j)?j.map(L3):[]}function r$(){try{let j=JSON.parse(T("local")?.getItem(o$)??"null");return O(j,a$)?[]:V1(L3(j).presets)}catch{return[]}}function t$(j){let $=`${String(j.name)}=${String(j.value)}`;if($+=`; path=${typeof j.path==="string"?j.path:"/"}`,typeof j.domain==="string")$+=`; domain=${j.domain}`;if(typeof j.maxAge==="number")$+=`; max-age=${j.maxAge}`;if(typeof j.expires==="string")$+=`; expires=${j.expires}`;if(typeof j.sameSite==="string")$+=`; samesite=${j.sameSite}`;if(j.secure===!0)$+="; secure";return $}function e$(j){let $=[];for(let J=0;J<j.length;J++){let X=j.key(J);if(X!==null&&X!=="devknobs"&&!X.startsWith("devknobs:"))$.push(X)}for(let J of $)j.removeItem(J)}function j2(j,$,J){let X=[];for(let Z of["local","session"])try{let Q=Z==="local"?j.localStorage:j.sessionStorage;if(J)e$(Q);for(let B of V1($[Z]))try{if(typeof B.name==="string"&&typeof B.value==="string")Q.setItem(B.name,B.value)}catch{X.push(String(B.name))}}catch{X.push(`${Z}Storage`)}for(let Z of V1($.cookies))try{if(typeof Z.name==="string"&&typeof Z.value==="string")j.document.cookie=t$(Z)}catch{X.push(String(Z.name))}return X}function N3(){if(typeof window>"u")return 0;let j=Reflect.get(window,F3);if(typeof j==="number")return j;let $=0;try{if(!R())for(let J of r$()){if(J.onLoad!==!0)continue;j2(window,J,J.clearFirst===!0),$++}}catch{}return Reflect.set(window,F3,$),$}N3();if(sj(window))j1();else{let j=E1(),$=R(),J=$&&b1(j.scheme)?"system":j.scheme,{motion:X,contrast:Z,transparency:Q}=j;if(Zj({scheme:J,motion:X,contrast:Z,transparency:Q,touch:$&&M1(j.device)}),H1(j.clock),bj(j.ua),_3(),j1(),!$)Uj(j);Nj()}})();
5
+ @media (color-gamut:p3){html::after{background:${d0(J.p3)}}}`}function d7(j,$){return JSON.stringify([j.width,j.height,j.frame,j.dpr,j.vision,j.scheme,j.device,j.orientation,j.posture,j.mock,j.browser,j.bars,j.edgeToEdge,j.zoom,j.mat,j.panel.open,j.panel.side,j.panel.docked,$.innerWidth,$.innerHeight,$.devicePixelRatio])}var Mj=/^rgb\(\d{1,3}, \d{1,3}, \d{1,3}\)$/;function i7(j){if(typeof j!=="object"||j===null)return null;let $=(P)=>Reflect.get(j,P),J=$("background"),X=$("scheme"),Z=$("host"),Q=[$("dark"),$("canBack"),$("canForward")];if(typeof J!=="string"||!Mj.test(J))return null;if(X!=="light"&&X!=="dark"||typeof Z!=="string")return null;let[B,G,V]=Q;if(typeof B!=="boolean"||typeof G!=="boolean")return null;if(typeof V!=="boolean")return null;let K=(P)=>{let z=$(P);return typeof z==="string"&&Mj.test(z)?z:J},Y=K("top"),H=K("bottom"),C=$("header");if(typeof C!=="boolean")return null;return{background:J,top:Y,bottom:H,header:C,footer:$("footer")===!0,under:[],dark:B,scheme:X,host:Z,canBack:G,canForward:V}}function l7(j,$){try{let J=T("session")?.getItem(y7);if(!J)return null;let X=JSON.parse(J);if(typeof X!=="object"||X===null||O(X,p7))return null;let Z=Reflect.get(X,"key"),Q=Reflect.get(X,"css"),B=Reflect.get(X,"html"),G=i7(Reflect.get(X,"look"));if(Z!==d7(j,$)||typeof Q!=="string")return null;if(typeof B!=="string"||!G)return null;return{key:Z,css:Q,html:B,look:G}}catch{return null}}function n7(){for(let j of Array.from(document.querySelectorAll(`[data-devknobs="${j0}"]`)))j.remove();zj(j0)}function Uj(j){if(!m1(j)||!document.head)return;let $=Hj(j0);$.textContent=c7(g1(j)?null:j.mat),window.setTimeout(n7,u7);let J=l7(j,window);if(!J)return;let X=document.createElement("div");X.setAttribute("data-devknobs",j0),X.style.cssText=`position:fixed;inset:0;z-index:${Ij}`;let Z=X.attachShadow({mode:"open"});Z.innerHTML=J.html;for(let G of Array.from(Z.querySelectorAll("[style]")))G.style.cssText=G.getAttribute("style")??"";Cj(Z,J.css);let Q=()=>{if(F0(j0)!==$)return!0;if(!document.body)return!1;return document.body.append(X),!0};if(Q())return;let B=new MutationObserver(()=>{if(Q())B.disconnect()});B.observe(document.documentElement,{childList:!0})}var l0="devknobs:scroll",Lj=1,s7=1e4,o7=2000,a7=1e4,r7=20,_j=["wheel","touchstart","keydown","mousedown"];function Fj(j){if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"path"),J=Reflect.get(j,"x"),X=Reflect.get(j,"y");if(typeof $!=="string"||typeof J!=="number"||typeof X!=="number")return;return Number.isFinite(J)&&Number.isFinite(X)?{path:$,x:J,y:X}:void 0}function t7(j){if(!j)return null;let $;try{$=JSON.parse(j)}catch{return null}if(typeof $!=="object"||$===null||O($,Lj))return null;let J=Reflect.get($,"at");if(typeof J!=="number")return null;let X={at:J},Z=Fj(Reflect.get($,"page")),Q=Fj(Reflect.get($,"frame"));if(Z)X.page=Z;if(Q)X.frame=Q;return X}function e7(j,$){let J=$-j;return!(J>=0&&J<s7)}function j$(j,$,J,X){if(!j||e7(j.at,X))return{place:null,rest:null};let Z=j[$],Q=$==="page"?"frame":"page",B=j[Q],G=B?{at:j.at,[Q]:B}:null;if(!Z||Z.path!==J)return{place:null,rest:G};return{place:{x:Z.x,y:Z.y},rest:G}}function $$(j,$){let{target:J}=j,X=Math.abs($.x-J.x)<=1&&Math.abs($.y-J.y)<=1,Z=j.puts>=r7;if($.now-j.start>=a7||j.loadedAt!==null&&$.now-j.loadedAt>=o7)return X||Z?"done":"last";if(Z)return"done";if(X)return"wait";return $.maxX>=J.x-1&&$.maxY>=J.y-1?"put":"wait"}function J$(j,$,J=q){let X={target:$,start:J(),loadedAt:null,puts:0},Z=!1,Q=()=>{Z=!0;for(let G of _j)j.removeEventListener(G,Q,!0)},B=()=>{if(Z)return;let G=J();if(X.loadedAt===null&&j.document.readyState==="complete")X.loadedAt=G;let V=j.document.documentElement,K=$$(X,{x:j.scrollX,y:j.scrollY,maxX:V?V.scrollWidth-V.clientWidth:0,maxY:V?V.scrollHeight-V.clientHeight:0,now:G});if(K==="put"||K==="last")X.puts++,j.scrollTo({left:$.x,top:$.y,behavior:"instant"});if(K==="last"||K==="done")Q();else j.requestAnimationFrame(B)};for(let G of _j)j.addEventListener(G,Q,!0);B()}function Nj(){if(typeof window>"u")return;let j=null;try{let $=T("session"),J=$?.getItem(l0)??null;if(!$||J===null)return;let X=R()?"frame":"page",{place:Z,rest:Q}=j$(t7(J),X,window.location.pathname,q());if(Q)$.setItem(l0,JSON.stringify(n(Q,Lj)));else $.removeItem(l0);j=Z}catch{return}if(j)J$(window,j)}var X$={brand:"Not/A)Brand",version:"24.0.0.0"};function Aj(j){return j.split(".")[0]??j}function L0(j,$=!1){let J=`Chrome/${Aj("154.0.8037.98")}.0.0.0 ${$?"Mobile ":""}Safari/537.36`;return`Mozilla/5.0 (${j}) AppleWebKit/537.36 (KHTML, like Gecko) ${J}`}function $0(j,$){let J=[{brand:"Chromium",version:"154.0.8037.98"},X$,...j?[j]:[]];return{brands:J.map(({brand:X,version:Z})=>({brand:X,version:Aj(Z)})),hints:{...$,fullVersionList:J,uaFullVersion:j?.version??"154.0.8037.98"}}}var n0={brand:"Google Chrome",version:"154.0.8037.98"},Sj={model:"",bitness:"64"},qj={...Sj,platformVersion:"19.0.0",architecture:"x86"},Dj="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Safari/605.1.15",Z$=[{id:"iphone-safari",label:"iPhone Safari",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1",platform:"iPhone",vendor:"Apple Computer, Inc.",mobile:!0,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"android-chrome",label:"Android Chrome",userAgent:L0("Linux; Android 10; K",!0),platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:5,...$0(n0,{platformVersion:"16.0.0",model:"Pixel 10",architecture:"",bitness:""})},{id:"ipad-safari",label:"iPad Safari",userAgent:Dj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"iOS",maxTouchPoints:5},{id:"mac-safari",label:"Mac Safari",userAgent:Dj,platform:"MacIntel",vendor:"Apple Computer, Inc.",mobile:!1,brands:[],uaPlatform:"macOS",maxTouchPoints:0},{id:"mac-chrome",label:"Mac Chrome",userAgent:L0("Macintosh; Intel Mac OS X 10_15_7"),platform:"MacIntel",vendor:"Google Inc.",mobile:!1,uaPlatform:"macOS",maxTouchPoints:0,...$0(n0,{...Sj,platformVersion:"26.7.1",architecture:"arm"})},{id:"windows-chrome",label:"Windows Chrome",userAgent:L0("Windows NT 10.0; Win64; x64"),platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...$0(n0,qj)},{id:"windows-edge",label:"Windows Edge",userAgent:`${L0("Windows NT 10.0; Win64; x64")} Edg/154.0.4258.53`,platform:"Win32",vendor:"Google Inc.",mobile:!1,uaPlatform:"Windows",maxTouchPoints:0,...$0({brand:"Microsoft Edge",version:"154.0.4258.53"},qj)},{id:"linux-firefox",label:"Linux Firefox",userAgent:"Mozilla/5.0 (X11; Linux x86_64; rv:157.0) Gecko/20100101 Firefox/157.0",platform:"Linux x86_64",vendor:"",mobile:!1,brands:[],uaPlatform:"Linux",maxTouchPoints:0,appVersion:"5.0 (X11)"},{id:"googlebot",label:"Googlebot",userAgent:"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.8037.98 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",platform:"Linux armv81",vendor:"Google Inc.",mobile:!0,uaPlatform:"Android",maxTouchPoints:1,...$0(null,{platformVersion:"6.0.1",model:"Nexus 5X",architecture:"",bitness:""})}];function Tj(j){return Z$.find(($)=>$.id===j)}function Q$(j){if(j.preset==="custom")return j.custom.trim();return Tj(j.preset)?.userAgent??""}function B$(j){return j.replace(/^Mozilla\//,"")}var wj=["userAgent","appVersion","platform","vendor","maxTouchPoints","userAgentData"],Oj=Symbol.for("devknobs.ua");function G$(j){return typeof j==="object"&&j!==null&&"originals"in j}function fj(j){let $=Reflect.get(j,Oj);if(G$($))return $;let J={originals:null};return Reflect.set(j,Oj,J),J}function Ej(j){let $=Reflect.get(j,"Navigator");return typeof $==="function"?$.prototype:null}function h(j,$,J){Object.defineProperty(j,$,{configurable:!0,enumerable:!0,get:()=>J})}function s0(j,$,J){let X=j.originals?.get(J);if(X)Object.defineProperty($,J,X);else Reflect.deleteProperty($,J)}function Rj(j){return j.map(({brand:$,version:J})=>({brand:$,version:J}))}var V$={brands:[],mobile:!1,uaPlatform:""};function xj(j,$){let J=Object.freeze(j.brands.map((V)=>Object.freeze({...V}))),X=()=>({brands:Rj(J),mobile:j.mobile,platform:j.uaPlatform}),Z=j.hints,Q=()=>({architecture:Z?.architecture??"",bitness:Z?.bitness??"",fullVersionList:Rj(Z?.fullVersionList??[]),model:Z?.model??"",platformVersion:Z?.platformVersion??"",uaFullVersion:Z?.uaFullVersion??""}),B=Reflect.get($,"NavigatorUAData"),G=typeof B==="function"?B.prototype:Object.prototype;return Object.create(G,{brands:{enumerable:!0,get:()=>J},mobile:{enumerable:!0,get:()=>j.mobile},platform:{enumerable:!0,get:()=>j.uaPlatform},getHighEntropyValues:{value:(V)=>{try{let K=X(),Y=Q();for(let H of Array.from(V,String))if(Object.hasOwn(Y,H))K[H]=Y[H];return Promise.resolve(K)}catch(K){return Promise.reject(K)}}},toJSON:{value:X}})}function bj(j,$=globalThis){let J=Ej($),X=j.preset==="custom"?void 0:Tj(j.preset),Z=Q$(j);if(!J||Z===""){K$($);return}let Q=fj($);if(Q.originals??=new Map(wj.map((B)=>[B,Object.getOwnPropertyDescriptor(J,B)])),h(J,"userAgent",Z),h(J,"appVersion",X?.appVersion??B$(Z)),!X){for(let B of["platform","vendor","maxTouchPoints"])s0(Q,J,B);if(Q.originals.get("userAgentData"))h(J,"userAgentData",xj(V$,$));else s0(Q,J,"userAgentData");return}if(h(J,"platform",X.platform),h(J,"vendor",X.vendor),h(J,"maxTouchPoints",X.maxTouchPoints),X.brands.length>0)h(J,"userAgentData",xj(X,$));else Reflect.deleteProperty(J,"userAgentData")}function K$(j=globalThis){let $=fj(j),J=Ej(j);if(!$.originals)return;if(J)for(let X of wj)s0($,J,X);$.originals=null}function j1(){if(Object.hasOwn(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"))return;Promise.resolve().then(() => nj())}var U$=Symbol.for("devknobs.owner");function sj(j){return typeof Reflect.get(j,U$)==="function"}function _$(j,$){for(let J of["name","length",...Object.keys($)]){let X=Object.getOwnPropertyDescriptor($,J);if(X)Object.defineProperty(j,J,X)}Object.defineProperty(j,"toString",{configurable:!0,writable:!0,value:()=>Function.prototype.toString.call($)})}function A(j,$,J,X){let Z=Reflect.get($,J);if(typeof Z!=="function")return;let Q=Object.hasOwn($,J),B=X(Z);if(_$(B,Z),Reflect.set($,J,B))j.push({target:$,key:J,original:Z,value:B,own:Q})}function oj(j){for(let{target:$,key:J,original:X,value:Z,own:Q}of j.reverse()){if(Reflect.get($,J)!==Z)continue;if(Q)Reflect.set($,J,X);else Reflect.deleteProperty($,J)}j.length=0}var $1=300,y=65536,J1=200,aj=4096;var F$=/^text\/|[/+](json|xml|javascript|ecmascript|x-www-form-urlencoded|graphql|yaml)\b|\/svg/i;function X1(j){return F$.test(j)}var X0=/�+$/;function b(j,$,J=y){if(j.length<=J){let Q=new TextEncoder().encode(j);if(Q.length<=J)return{kind:"text",text:j,size:Q.length,truncated:!1,type:$};return{kind:"text",text:new TextDecoder().decode(Q.subarray(0,J)).replace(X0,""),size:Q.length,truncated:!0,type:$}}let X=new TextEncoder().encode(j.slice(0,J)),Z=new TextDecoder().decode(X.subarray(0,J));return{kind:"text",text:X.length>J?Z.replace(X0,""):Z,size:null,truncated:!0,type:$}}function J0(j,$,J){return{kind:j,text:"",size:$,truncated:!1,type:J}}function L$(j,$){let J=[],X=0;for(let[Z,Q]of j){let B=typeof Q==="string"?`${Z}=${Q}`:`${Z}=(file ${Q.name}, ${Q.type||"no type"}, ${Q.size} bytes)`;if(J.push(B),X+=B.length+1,X>$)break}return J.join(`
6
+ `)}function p(j,$){return typeof j==="function"&&$ instanceof j}function q0(j,$,J=y){if(j===void 0||j===null)return null;if(typeof j==="string")return b(j,$||"text/plain;charset=UTF-8",J);if(p(globalThis.URLSearchParams,j))return b(String(j),$||"application/x-www-form-urlencoded;charset=UTF-8",J);if(p(globalThis.FormData,j))return{...b(L$(j,J),$||"multipart/form-data",J),kind:"form",size:null};if(p(globalThis.Blob,j))return J0("binary",j.size,$||j.type||"Blob");if(p(globalThis.ArrayBuffer,j))return J0("binary",j.byteLength,$||"ArrayBuffer");if(ArrayBuffer.isView(j))return J0("binary",j.byteLength,$||"ArrayBufferView");if(p(globalThis.ReadableStream,j))return J0("stream",null,$);return null}function u(j,$,J){return J0(j,$,J)}var Z1=2000;async function rj(j,$,J=y,X=Z1){if(!j.body){let Y=await j.blob(),H=await Y.slice(0,J).text(),C=Y.size>J;return{record:{kind:"text",text:C?H.replace(X0,""):H,size:Y.size,truncated:C,type:$},complete:!0}}let Z=j.body.getReader(),Q=new TextDecoder,B="",G=0,V=!1,K=setTimeout(()=>{V=!0,Z.cancel().catch(()=>{})},X);try{for(;;){let{done:Y,value:H}=await Z.read();if(Y)break;let C=J-G;if(H.byteLength>C)return B+=Q.decode(H.subarray(0,C)),Z.cancel().catch(()=>{}),{record:{kind:"text",text:B.replace(X0,""),size:null,truncated:!0,type:$},complete:!1};B+=Q.decode(H,{stream:!0}),G+=H.byteLength}}finally{clearTimeout(K)}if(B+=Q.decode(),V)return{record:{kind:"text",text:B.replace(X0,""),size:null,truncated:!0,timedOut:!0,type:$},complete:!1};return{record:{kind:"text",text:B,size:G,truncated:!1,type:$},complete:!0}}function k(j){try{return new URL(j,typeof document>"u"?void 0:document.baseURI).href}catch{return j}}function m(j,$){return j.find(([J])=>J.toLowerCase()===$)?.[1]??""}function Q1(j,$,J,X,Z){return{id:j,kind:$,detail:$==="resource"||$==="navigation"?"light":"full",source:J,method:"",url:"",finalUrl:null,redirected:!1,state:"pending",status:null,statusText:"",error:null,requestHeaders:[],responseHeaders:[],requestBody:null,responseBody:null,contentType:"",sizes:null,timing:{start:X.origin+Z,at:Z,response:null,end:null,duration:null},phases:null,messages:[],initiator:"",initiatorType:"",protocol:"",referrerPolicy:""}}function tj(j,$,J,X){return{active:X,start(Z,Q){let B=j.nextId();return j.put({...Q1(B,Z,J,$,$.now()),method:Q.method,url:Q.url,requestHeaders:Q.headers,requestBody:Q.body,initiator:Q.initiator,referrerPolicy:Q.referrerPolicy??""}),B},set:(Z,Q)=>j.update(Z,Q),responded(Z,Q){let B=j.get(Z)?.timing;if(!B)return;let G=B.response??$.now()-B.at;j.update(Z,{...Q,timing:{...B,response:G}})},ended(Z,Q){let B=j.get(Z)?.timing;if(!B)return;let G=B.duration??$.now()-B.at;j.update(Z,{...Q,timing:{...B,end:B.start+G,duration:G}})},message(Z,Q){let B=j.get(Z)?.messages;if(!B)return;let{text:G,truncated:V}=b(Q.data,"",aj),K={...Q,data:G,truncated:V,time:$.origin+$.now()};j.update(Z,{messages:[...B.slice(1-J1),K]})}}}var N$=/^at |@/;function l(j,$){if(typeof j!=="string")return"";let J=j.split(`
7
+ `).map((X)=>X.trim()).filter((X)=>X!=="");if(J[0]!==void 0&&!N$.test(J[0]))J.shift();return J.slice($,$+12).join(`
8
+ `)}var q$=new Set(["open","error"]);function ej(j,$){let J=Reflect.get(globalThis,"EventSource");if(typeof J!=="function")return;let X=new WeakMap,Z=EventTarget.prototype.addEventListener;function Q(G,V){let K=k(G.url),Y=()=>$.start("eventsource",{method:"GET",url:K,headers:[],body:null,initiator:V}),H=(P,z)=>{Z.call(G,P,(M)=>{try{z(M)}catch{}})},C={id:Y(),open:!1,types:new Set,listen(P){if(C.types.has(P)||q$.has(P))return;C.types.add(P),H(P,(z)=>{if(C.id===null)return;let M=Reflect.get(z,"data"),N=Reflect.get(z,"lastEventId");$.message(C.id,{type:z.type,data:String(M??""),id:typeof N==="string"?N:""})})}};X.set(G,C),C.listen("message"),H("open",()=>{if(C.id===null){if(!$.active())return;C.id=Y()}C.open=!0,$.responded(C.id,{status:200,state:"ok",contentType:"text/event-stream"})}),H("error",()=>{if(C.id===null)return;$.ended(C.id,C.open?{}:{state:"failed",error:"EventSource failed to connect"}),C.id=null,C.open=!1})}A(j,globalThis,"EventSource",(G)=>{function V(...K){if(!new.target)return Reflect.apply(G,this,K);let Y=Reflect.construct(G,K,new.target);try{if($.active())Q(Y,l(Error().stack,1))}catch{}return Y}return V.prototype=G.prototype,V});let B=Reflect.get(J,"prototype");if(typeof B!=="object"||B===null)return;A(j,B,"addEventListener",()=>function(...G){try{if(typeof G[0]==="string")X.get(this)?.listen(G[0])}catch{}return Reflect.apply(Reflect.get(Object.getPrototypeOf(B),"addEventListener"),this,G)}),A(j,B,"close",(G)=>function(...V){try{let K=X.get(this);if(K&&K.id!==null)$.ended(K.id,K.open?{}:{state:"aborted"}),K.id=null}catch{}return G.apply(this,V)})}var j3=2,Z0=Symbol.for("devknobs.requests"),$3=Symbol.for("devknobs.quiet");function D$(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"version")===2}function D0(j=globalThis){try{let $=Reflect.get(j,Z0);return D$($)?$:null}catch{return null}}function B1(j){if(j)Reflect.set(globalThis,Z0,j);else Reflect.deleteProperty(globalThis,Z0)}function J3(){let j=Reflect.get(globalThis,Z0);if(typeof j!=="object"||j===null)return;let $=Reflect.get(j,"uninstall");try{if(typeof $==="function")$.call(j)}catch{}Reflect.deleteProperty(globalThis,Z0)}function O$(j){return typeof j==="object"&&j!==null&&"url"in j&&"method"in j&&"headers"in j&&"clone"in j}function Q0(j,$){return typeof j==="object"&&j!==null?Reflect.get(j,$):void 0}function R$(j){try{return typeof j==="object"&&j!==null&&Reflect.get(j,$3)===!0}catch{return!1}}function X3(j){let $=[];if(typeof j!=="object"||j===null)return $;if(p(globalThis.Headers,j))j.forEach((J,X)=>$.push([X,J]));else if(Array.isArray(j)){for(let J of j)if(Array.isArray(J)&&J.length>1)$.push([String(J[0]),String(J[1])])}else for(let[J,X]of Object.entries(j))$.push([J,String(X)]);return $}function Z3(j){return j instanceof Error?`${j.name}: ${j.message}`:String(j)}function Q3(j){return typeof j==="object"&&j!==null&&Reflect.get(j,"aborted")===!0}function x$(j,$,J){if($==="GET"||$==="HEAD")return null;if(j.body===null||j.bodyUsed)return null;return u(X1(J)?"stream":"binary",null,J)}function A$(j,$){let J=O$(j)?j:null,X=String(Q0($,"method")??J?.method??"GET").toUpperCase(),Z=Q0($,"headers"),Q=X3(Z===void 0?J?.headers:Z),B=m(Q,"content-type"),G=Q0($,"body"),V=J&&(G===void 0||G===null)?x$(J,X,B):null,K=q0(G,B)??V,Y=String(Q0($,"referrerPolicy")??J?.referrerPolicy??"");return{request:{method:X,url:k(J?J.url:String(j)),headers:Q,body:K,referrerPolicy:Y},signal:Q0($,"signal")??J?.signal}}function S$(j){let $=Number.parseInt(m(j,"content-length"),10);return Number.isFinite($)?$:null}function T$(j){return/^text\/event-stream\b/i.test(j.trim())}function w$(j,$,J,X,Z){let Q=X3(J.headers),B=m(Q,"content-type"),G=J.type==="opaque"||J.type==="opaqueredirect";if(j.responded($,{status:J.status,statusText:J.statusText,state:J.ok||G?"ok":"failed",responseHeaders:Q,contentType:B,redirected:J.redirected,finalUrl:J.url||null}),G)j.set($,{responseBody:u("opaque",null,"")});else if(J.body===null)j.ended($,{});else if(T$(B))j.set($,{responseBody:u("stream",null,B)});else if(!X1(B))j.set($,{responseBody:u("binary",S$(Q),B)});else rj(J.clone(),B,void 0,Z).then(({record:V,complete:K})=>{let Y=V.size===0?null:V;if(K)j.ended($,{responseBody:Y});else j.set($,{responseBody:Y})},(V)=>{j.ended($,{state:Q3(X)?"aborted":"failed",error:Z3(V)})})}function B3(j,$,J=Z1){return function(){let Z=arguments;if(!$.active()||R$(Z[1]))return Reflect.apply(j,this,Z);let Q=null,B;try{let K=A$(Z[0],Z[1]);B=K.signal,Q=$.start("fetch",{...K.request,initiator:l(Error().stack,1)})}catch{}let G=Reflect.apply(j,this,Z);if(Q===null)return G;let V=Q;return G.then((K)=>{try{w$($,V,K,B,J)}catch{}return K},(K)=>{try{$.ended(V,{state:Q3(B)?"aborted":"failed",error:Z3(K)})}catch{}throw K})}}var G1=250,B0=5;function F(j,$){let J=Reflect.get(j,$);return typeof J==="number"&&Number.isFinite(J)?J:0}function c(j,$){let J=Reflect.get(j,$);return typeof J==="string"?J:""}function G3(j){return j.split("#",1)[0]??j}function f$(j){try{return new URL(j).origin}catch{return""}}function V3(j,$){let J=F(j,"transferSize"),X=F(j,"encodedBodySize"),Z=F(j,"decodedBodySize"),Q=J+X+Z===0&&f$(j.name)!==$;return{transfer:J,encoded:X,decoded:Z,hidden:Q}}function K3(j){return{startTime:j.startTime,workerStart:F(j,"workerStart"),redirectStart:F(j,"redirectStart"),redirectEnd:F(j,"redirectEnd"),fetchStart:F(j,"fetchStart"),domainLookupStart:F(j,"domainLookupStart"),domainLookupEnd:F(j,"domainLookupEnd"),connectStart:F(j,"connectStart"),secureConnectionStart:F(j,"secureConnectionStart"),connectEnd:F(j,"connectEnd"),requestStart:F(j,"requestStart"),responseStart:F(j,"responseStart"),responseEnd:F(j,"responseEnd")||j.startTime+j.duration}}function W3(j){return F(j,"responseStatus")||null}function Y3(j,$,J,X,Z){let Q=Q1($,j.entryType==="navigation"?"navigation":"resource",J,X,j.startTime),B=W3(j),G=F(j,"responseEnd")||j.startTime+j.duration,V=F(j,"responseStart"),K=Math.max(0,G-j.startTime);return{...Q,url:j.name,state:B!==null&&B>=400?"failed":"ok",status:B,contentType:c(j,"contentType"),sizes:V3(j,Z),timing:{...Q.timing,response:V>0?Math.max(0,V-j.startTime):null,end:Q.timing.start+K,duration:K},phases:K3(j),initiatorType:c(j,"initiatorType")||j.entryType,protocol:c(j,"nextHopProtocol")}}var E$={fetch:"fetch",xmlhttprequest:"xhr",other:"eventsource"};function P3(j,$,J){let X=E$[c($,"initiatorType")];if(!X)return null;let Z=G3($.name),Q=F($,"responseEnd")||$.startTime+$.duration,B=null;for(let G of j){if(G.kind!==X||G.source!==J||G.sizes!==null)continue;let V=$.startTime-G.timing.at;if(!(X==="eventsource"&&V<=B0&&G.timing.at<=Q+B0)&&(V<-B0||V>G1)||G3(G.url)!==Z)continue;if(!B||Math.abs(V)<Math.abs($.startTime-B.timing.at))B=G}return B}function C3(j,$,J){let X=F($,"responseEnd")||$.startTime+$.duration,Z=Math.max(0,X-j.timing.at);return{sizes:V3($,J),phases:K3($),protocol:c($,"nextHopProtocol"),initiatorType:c($,"initiatorType"),status:j.status||W3($),contentType:j.contentType||c($,"contentType"),timing:{...j.timing,end:j.timing.start+Z,duration:Z}}}var b$=50;function k$(j){let $=setTimeout(j,b$);return()=>clearTimeout($)}function H3(j){let $=j.schedule??k$,J=[],X=new Map,Z=new Set,Q=new Set,B=null,G=!1,V=Number.NEGATIVE_INFINITY,K=0;function Y(){if(B?.(),B=null,Q.size===0&&!G)return;let P=[];for(let z of Q){let M=X.get(z);if(M)P.push(M)}Q.clear(),G=!1;for(let z of Array.from(Z))z(P)}function H(P){if(Z.size===0)return;if(P===null)G=!0;else Q.add(P);B??=$(Y)}function C(P){if(P.timing.start<V)return;let z=X.get(P.id);if(X.set(P.id,P),z)J[J.lastIndexOf(z)]=P;else{let M=J.length;while(M>0&&(J[M-1]?.timing.start??0)>P.timing.start)M--;if(J.splice(M,0,P),J.length>$1){let N=J.shift();if(N)X.delete(N.id);if(N===P)return}}H(P.id)}return{entries:()=>J,get:(P)=>X.get(P),nextId:()=>`${j.seed}-${++K}`,put:C,update(P,z){let M=X.get(P);if(M)C({...M,...z,id:P})},clear(){J=[],X.clear(),Q.clear(),V=j.now(),H(null)},subscribe(P){return Z.add(P),()=>{Z.delete(P)}},flush:Y,close(){B?.(),B=null,J=[],X.clear(),Q.clear(),Z.clear()}}}var m$=4*y;function g$(j){let $=[];for(let J of j.split(/\r?\n/)){let X=J.indexOf(":");if(X>0)$.push([J.slice(0,X).trim(),J.slice(X+1).trim()])}return $}function z3(j,$){let J=g$(j.getAllResponseHeaders()??""),X=j.responseURL||null;return{status:j.status,statusText:j.statusText,responseHeaders:J,contentType:m(J,"content-type"),finalUrl:X,redirected:X!==null&&X!==$.split("#",1)[0]}}function v$(j){if(typeof j!=="object"||j===null)return null;let $=Reflect.get(j,"byteLength")??Reflect.get(j,"size");return typeof $==="number"?$:null}function h$(j,$,J){let X=j.responseType,Z;if(X===""||X==="text")Z=b(j.responseText,$);else if(X!=="json")Z=u("binary",v$(j.response)??J,$||X);else if(J!==null&&J>m$)Z={kind:"text",text:"",size:J,truncated:!0,type:$};else Z=b(JSON.stringify(j.response)??"",$);return Z.size===0?null:Z}var M3=["error","abort","timeout"];function y$(j,$,J,X){let Z=null,Q=null,B=!1,G=null,V=()=>{j.removeEventListener("readystatechange",Y,!0),j.removeEventListener("progress",H,!0);for(let z of M3)j.removeEventListener(z,C,!0);j.removeEventListener("loadend",P,!0)};function K(){B=!0,V();try{let z=z3(j,J),M=j.status,N=Z??(M===0||M>=400?"failed":"ok"),V0=Number.parseInt(m(z.responseHeaders??[],"content-length"),10),K0=G??(Number.isFinite(V0)?V0:null),O0=Z?null:h$(j,z.contentType??"",K0);X.ended($,{...z,status:M===0?null:M,state:N,error:Q,responseBody:O0})}catch{X.ended($,{state:Z??"failed",error:Q})}}function Y(){try{if(j.readyState===2)X.responded($,z3(j,J))}catch{}if(j.readyState===4&&j.status!==0)K()}function H(z){let M=Reflect.get(z,"loaded");if(typeof M==="number")G=M}function C(z){Z=z.type==="abort"?"aborted":"failed",Q=z.type==="abort"?null:z.type}function P(z){if(j.readyState!==4)return;H(z),K()}j.addEventListener("readystatechange",Y,!0),j.addEventListener("progress",H,!0);for(let z of M3)j.addEventListener(z,C,!0);return j.addEventListener("loadend",P,!0),()=>{if(B)return;B=!0,V(),X.ended($,{state:"aborted"})}}function I3(j,$){if(typeof XMLHttpRequest!=="function")return;let J=new WeakMap,X=XMLHttpRequest.prototype;A(j,X,"open",(Z)=>function(...Q){let B=Z.apply(this,Q);try{if(J.get(this)?.drop?.(),J.delete(this),$.active()){let G=String(Q[0]).toUpperCase();J.set(this,{method:G,url:k(String(Q[1])),headers:[],drop:null})}}catch{}return B}),A(j,X,"setRequestHeader",(Z)=>function(...Q){let B=Z.apply(this,Q);return J.get(this)?.headers.push([String(Q[0]),String(Q[1])]),B}),A(j,X,"send",(Z)=>function(...Q){let B=J.get(this);if(!B||!$.active())return Z.apply(this,Q);let G=null;try{let{method:V,url:K,headers:Y}=B,H=q0(Q[0],m(Y,"content-type")),C=l(Error().stack,1);G=$.start("xhr",{method:V,url:K,headers:[...Y],body:H,initiator:C}),B.drop=y$(this,G,K,$)}catch{}try{return Z.apply(this,Q)}catch(V){if(B.drop?.(),B.drop=null,G!==null)$.set(G,{state:"failed",error:String(V)});throw V}})}var p$=100,G0=typeof performance>"u"?null:performance,U3=G0?G0.now.bind(G0):q;function u$(){let j=G0?G0.timeOrigin??q()-U3():0;return{now:U3,origin:j}}function c$(j){return k(j).split("#",1)[0]??j}function d$(j){return{...j,source:"frame",requestHeaders:j.requestHeaders.map(([$,J])=>[$,J]),responseHeaders:j.responseHeaders.map(([$,J])=>[$,J]),requestBody:j.requestBody&&{...j.requestBody},responseBody:j.responseBody&&{...j.responseBody},sizes:j.sizes&&{...j.sizes},timing:{...j.timing},phases:j.phases&&{...j.phases},messages:j.messages.map(($)=>({...$}))}}function i$(j){let{source:$,clock:J,origin:X}=j,Z=`${$.charAt(0)}${Math.floor(J.origin).toString(36)}${Math.floor(Math.random()*46656).toString(36)}`,Q=H3({seed:Z,now:()=>J.origin+J.now(),schedule:j.schedule}),B=[],G=!0,V=0,K=new Set,Y=[],H=tj(Q,J,$,()=>G&&V===0);function C(U,I){let S=c$(U);if(S.startsWith("data:"))return;if(!I)K.add(S);else Y=[...Y.slice(1-p$),{url:S,at:J.now()}]}function P(U){if(K.has(U.name))return!0;let I=Y.findIndex((S)=>{let W1=U.startTime-S.at;return S.url===U.name&&W1>=-B0&&W1<=G1});if(I<0)return!1;return Y.splice(I,1),!0}function z(U){try{if(P(U))return;let I=P3(Q.entries(),U,$);if(I)Q.update(I.id,C3(I,U,X));else Q.put(Y3(U,Q.nextId(),$,J,X))}catch{}}function M(){if(typeof PerformanceObserver!=="function")return()=>{};let U=new PerformanceObserver((I)=>{if(G)for(let S of I.getEntries())z(S)});for(let I of["navigation","resource"])try{U.observe({type:I,buffered:!0})}catch{}return()=>U.disconnect()}let N=null;function V0(U){let I=j.above?.()??null;if(I)I.adopt(I===N?U:Q.entries());N=I}function K0(U){if(Reflect.get(U,"persisted")===!0)return;for(let I of[...Q.entries()])if(I.state==="pending")Q.update(I.id,{state:"aborted"});Q.flush()}A(B,globalThis,"fetch",(U)=>B3(U,H,j.readFor)),I3(B,H),ej(B,H);let O0=M();if(j.above)Q.subscribe(V0),globalThis.addEventListener?.("pagehide",K0);let K1={version:j3,store:Q,quietly(U,I){C(U,!0),V++;try{return I()}finally{V--}},hush:C,adopt(U){for(let I of U)Q.put(d$(I))},uninstall(){if(G=!1,oj(B),O0(),globalThis.removeEventListener?.("pagehide",K0),Q.close(),D0()===K1)B1(null)}};return K1}function l$(){try{return window.parent===window?null:D0(window.parent)}catch{return null}}function _3(){if(D0())return;J3();let j=typeof window<"u"&&R(),$=typeof location>"u"?"":location.origin;B1(i$({source:j?"frame":"top",clock:u$(),origin:$,above:j?l$:void 0}))}var n$="devknobs:storage-presets",s$=1,F3=Symbol.for("devknobs.presets");function L3(j){return typeof j==="object"&&j!==null&&!Array.isArray(j)?Object.fromEntries(Object.entries(j)):{}}function V1(j){return Array.isArray(j)?j.map(L3):[]}function o$(){try{let j=JSON.parse(T("local")?.getItem(n$)??"null");return O(j,s$)?[]:V1(L3(j).presets)}catch{return[]}}function a$(j){let $=`${String(j.name)}=${String(j.value)}`;if($+=`; path=${typeof j.path==="string"?j.path:"/"}`,typeof j.domain==="string")$+=`; domain=${j.domain}`;if(typeof j.maxAge==="number")$+=`; max-age=${j.maxAge}`;if(typeof j.expires==="string")$+=`; expires=${j.expires}`;if(typeof j.sameSite==="string")$+=`; samesite=${j.sameSite}`;if(j.secure===!0)$+="; secure";return $}function r$(j){let $=[];for(let J=0;J<j.length;J++){let X=j.key(J);if(X!==null&&X!=="devknobs"&&!X.startsWith("devknobs:"))$.push(X)}for(let J of $)j.removeItem(J)}function t$(j,$,J){let X=[];for(let Z of["local","session"])try{let Q=Z==="local"?j.localStorage:j.sessionStorage;if(J)r$(Q);for(let B of V1($[Z]))try{if(typeof B.name==="string"&&typeof B.value==="string")Q.setItem(B.name,B.value)}catch{X.push(String(B.name))}}catch{X.push(`${Z}Storage`)}for(let Z of V1($.cookies))try{if(typeof Z.name==="string"&&typeof Z.value==="string")j.document.cookie=a$(Z)}catch{X.push(String(Z.name))}return X}function N3(){if(typeof window>"u")return 0;let j=Reflect.get(window,F3);if(typeof j==="number")return j;let $=0;try{if(!R())for(let J of o$()){if(J.onLoad!==!0)continue;t$(window,J,J.clearFirst===!0),$++}}catch{}return Reflect.set(window,F3,$),$}N3();if(sj(window))j1();else{let j=E1(),$=R(),J=$&&b1(j.scheme)?"system":j.scheme,{motion:X,contrast:Z,transparency:Q}=j;if(Zj({scheme:J,motion:X,contrast:Z,transparency:Q,touch:$&&M1(j.device)}),H1(j.clock),bj(j.ua),_3(),j1(),!$)Uj(j);Nj()}})();
@@ -4,7 +4,7 @@ import {
4
4
  HTML_MIN,
5
5
  forcedSelector,
6
6
  forcing
7
- } from "./index-6xsvcjnc.js";
7
+ } from "./index-dxga6h10.js";
8
8
  import"./index-58jdczmj.js";
9
9
  import {
10
10
  HIDE_ATTRIBUTE,
@@ -29,7 +29,7 @@ import {
29
29
  rulesOf,
30
30
  successor,
31
31
  textEdit
32
- } from "./index-0yn3rnza.js";
32
+ } from "./index-69fvtkcm.js";
33
33
  import {
34
34
  compareSpecificity,
35
35
  edits,
@@ -38,11 +38,11 @@ import {
38
38
  readSavedEdit,
39
39
  specificity,
40
40
  splitList
41
- } from "./index-4192t60e.js";
41
+ } from "./index-df35z48z.js";
42
42
  import {
43
43
  boxValue,
44
44
  sizeText
45
- } from "./index-xh39jtkq.js";
45
+ } from "./index-ymqm185m.js";
46
46
  import {
47
47
  TITLE_MAX,
48
48
  crumbText,
@@ -54,7 +54,7 @@ import {
54
54
  swatchOf,
55
55
  valueParts,
56
56
  variableTip
57
- } from "./index-ftjdt358.js";
57
+ } from "./index-za4ppxay.js";
58
58
  import {
59
59
  NEW_RULE_SHEET,
60
60
  cssOff,
@@ -76,7 +76,7 @@ import {
76
76
  valueText,
77
77
  varReferences,
78
78
  variableNames
79
- } from "./index-zd6adby9.js";
79
+ } from "./index-a8ffw5ft.js";
80
80
  import {
81
81
  elementSelector
82
82
  } from "./index-t4kssacm.js";
@@ -93,27 +93,27 @@ import {
93
93
  segments,
94
94
  toolToggle,
95
95
  toolbar
96
- } from "./index-fp1h37b3.js";
96
+ } from "./index-20bc9yrj.js";
97
97
  import {
98
98
  getState,
99
99
  subscribe
100
- } from "./index-kpsrkzmf.js";
100
+ } from "./index-pwqfmbqm.js";
101
101
  import {
102
102
  isMac
103
- } from "./index-7cb4x1vj.js";
103
+ } from "./index-s6yzsvs4.js";
104
104
  import {
105
105
  comboLabel,
106
106
  isDevknobs,
107
107
  letterMatches,
108
108
  typesInField,
109
109
  withShift
110
- } from "./index-rdssc7sz.js";
110
+ } from "./index-whehz74d.js";
111
111
  import {
112
112
  SIDES,
113
113
  boxModel,
114
114
  contentSize,
115
115
  ownInline
116
- } from "./index-dzm8ywq0.js";
116
+ } from "./index-jfv7vavj.js";
117
117
  import"./index-a974q3aa.js";
118
118
  import {
119
119
  __require
@@ -5,7 +5,7 @@ import {
5
5
  HTML_MIN,
6
6
  forcedSelector,
7
7
  forcing
8
- } from "./react-r3zf2djn.js";
8
+ } from "./react-2b7725je.js";
9
9
  import"./react-97b5b8j4.js";
10
10
  import {
11
11
  HIDE_ATTRIBUTE,
@@ -30,7 +30,7 @@ import {
30
30
  rulesOf,
31
31
  successor,
32
32
  textEdit
33
- } from "./react-anqpcaqm.js";
33
+ } from "./react-msn10fjb.js";
34
34
  import {
35
35
  compareSpecificity,
36
36
  edits,
@@ -39,11 +39,11 @@ import {
39
39
  readSavedEdit,
40
40
  specificity,
41
41
  splitList
42
- } from "./react-pvmjybgw.js";
42
+ } from "./react-5ekfj7g3.js";
43
43
  import {
44
44
  boxValue,
45
45
  sizeText
46
- } from "./react-4rbjw9af.js";
46
+ } from "./react-wtgvkf6g.js";
47
47
  import {
48
48
  TITLE_MAX,
49
49
  crumbText,
@@ -55,7 +55,7 @@ import {
55
55
  swatchOf,
56
56
  valueParts,
57
57
  variableTip
58
- } from "./react-6fnxxs30.js";
58
+ } from "./react-73reavv4.js";
59
59
  import {
60
60
  NEW_RULE_SHEET,
61
61
  cssOff,
@@ -77,7 +77,7 @@ import {
77
77
  valueText,
78
78
  varReferences,
79
79
  variableNames
80
- } from "./react-ethftdxp.js";
80
+ } from "./react-4phtr2nd.js";
81
81
  import {
82
82
  elementSelector
83
83
  } from "./react-5rq7bnsy.js";
@@ -94,27 +94,27 @@ import {
94
94
  segments,
95
95
  toolToggle,
96
96
  toolbar
97
- } from "./react-ptamex0p.js";
97
+ } from "./react-y9gr8yt2.js";
98
98
  import {
99
99
  getState,
100
100
  subscribe
101
- } from "./react-2381cr3w.js";
101
+ } from "./react-smtqyzx0.js";
102
102
  import {
103
103
  isMac
104
- } from "./react-ttj8f9qp.js";
104
+ } from "./react-5h7pxnax.js";
105
105
  import {
106
106
  comboLabel,
107
107
  isDevknobs,
108
108
  letterMatches,
109
109
  typesInField,
110
110
  withShift
111
- } from "./react-4ykd817s.js";
111
+ } from "./react-vbk58f9m.js";
112
112
  import {
113
113
  SIDES,
114
114
  boxModel,
115
115
  contentSize,
116
116
  ownInline
117
- } from "./react-wqn4sx0n.js";
117
+ } from "./react-0r5418av.js";
118
118
  import"./react-fp73vhyd.js";
119
119
  import {
120
120
  __require
@@ -21,7 +21,7 @@ export declare function rewriteMediaText(text: string, feature: MediaFeature, va
21
21
  /** Rewrite for every emulated feature at once. */
22
22
  export declare function rewriteAll(text: string, value: MediaValue): string;
23
23
  export declare function mentionsFeature(text: string): boolean;
24
- type MediaBearingRule = CSSRule & {
24
+ export type MediaBearingRule = CSSRule & {
25
25
  media: MediaList;
26
26
  };
27
27
  /**
@@ -30,6 +30,8 @@ type MediaBearingRule = CSSRule & {
30
30
  * this is what the styles pane shows.
31
31
  */
32
32
  export declare function authoredQuery(rule: MediaBearingRule): string;
33
+ /** Visit each rule in `rules` with a media list, those nested and those of imported sheets too. */
34
+ export declare function walkRules(rules: CSSRuleList, visit: (rule: MediaBearingRule) => void, seen: Set<CSSStyleSheet>): void;
33
35
  /**
34
36
  * Make another window on this origin's `matchMedia` answer as a touch screen
35
37
  * with no mouse, from the page above its frame before the window's own
@@ -52,4 +54,3 @@ export declare function destroy(): void;
52
54
  * a media query, and leave the patches for the full script to take over.
53
55
  */
54
56
  export declare function early(value: MediaValue): void;
55
- export {};
@@ -0,0 +1,50 @@
1
+ import { type MediaFeature } from "./media";
2
+ /**
3
+ * What `view` reads for each feature. One it reads no value of, as the
4
+ * browser does not know it, or more than one of, as a device with a mouse
5
+ * and a touch screen has two `any-pointer`s, is left out.
6
+ */
7
+ export declare function frameMedia(view: Window): [MediaFeature, string][];
8
+ /**
9
+ * Is `text` a namespace rule with a prefix? Only those move to the top of
10
+ * the copy's one sheet: a default one, with no prefix, would hold for every
11
+ * sheet of the page there, not only its own, and an html element would stop
12
+ * matching a plain type selector. A default one is left out of the copy.
13
+ */
14
+ export declare function prefixedNamespace(text: string): boolean;
15
+ /** Does a `color-scheme` let the browser pick light or dark, by the system's? */
16
+ export declare function eitherScheme(value: string): boolean;
17
+ /** The copy's rules, made to read what the frame reads. */
18
+ export interface Frozen {
19
+ rules: string[];
20
+ /**
21
+ * A rule sets a scheme the rules alone do not tell, through a variable, or
22
+ * one that could not be parsed, so each element that picks light or dark
23
+ * by its computed scheme is pinned in the copy itself.
24
+ */
25
+ computed: boolean;
26
+ }
27
+ /**
28
+ * The copy's rules, one by one, made to read `read`: each media query, and
29
+ * each `color-scheme` that lets the browser pick light or dark set to the
30
+ * frame's scheme, its priority kept. A rule that has either is parsed in a
31
+ * sheet of its own, made by `Sheet`, rewritten, and written out again; the
32
+ * rest stay as they are, so nothing else is lost. Each rule stands alone,
33
+ * so their order, and the order of their layers, stays the page's. The
34
+ * page's prefixed `@namespace` rules go in front of each, so a namespaced selector
35
+ * parses, and are left out of what is written. Without a way to parse them,
36
+ * the rules stay as they are.
37
+ */
38
+ export declare function freezeMedia(rules: string[], read: [MediaFeature, string][], Sheet: typeof CSSStyleSheet | undefined): Frozen;
39
+ /**
40
+ * What to pin each element of the page in `doc` to in its copy, where it
41
+ * lets the browser pick light or dark, or null to leave it: the root, whose
42
+ * scheme comes from its `color-scheme` meta too where its own is `normal`,
43
+ * and each with a scheme in its inline style, which no rule rewritten
44
+ * reaches. Every element, where `computed` says the rules leave some
45
+ * unknown. Null where none would be pinned, so most pages cost one look at
46
+ * the root.
47
+ */
48
+ export declare function schemePins(doc: Document, view: Window, scheme: string, computed: boolean): ((node: Element) => string | null) | null;
49
+ /** Pin `node` of a copy to `scheme`, over whatever the copy's rules say. */
50
+ export declare function pinScheme(node: Element, scheme: string): void;