@jxsuite/studio 8.0.1 → 8.1.0
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.
- package/dist/chunks/{2020-5wtzce5g.js → 2020-dg097k3e.js} +3 -3
- package/dist/chunks/adapter-tck81zft.js +4 -0
- package/dist/chunks/{add-new-flow-psym14sn.js → add-new-flow-a1w0bnm6.js} +3 -3
- package/dist/chunks/{cf-account-picker-haqazq5r.js → cf-account-picker-ce3kp3x1.js} +3 -3
- package/dist/chunks/cf-settings-7ye6x7g2.js +4 -0
- package/dist/chunks/color-4gj49xq6.js +4 -0
- package/dist/chunks/{color-area-6rbra5dy.js → color-area-vh9cew51.js} +2 -2
- package/dist/chunks/{color-field-gy56c94g.js → color-field-e78f16bs.js} +3 -3
- package/dist/chunks/{color-slider-sqqdyf6c.js → color-slider-fg4yhvk6.js} +2 -2
- package/dist/chunks/{combobox-72h32ejk.js → combobox-6hs00996.js} +2 -2
- package/dist/chunks/components-qce0v93f.js +4 -0
- package/dist/chunks/content-source-jjx8kgzr.js +4 -0
- package/dist/chunks/{convert-to-repeater-he70fc2b.js → convert-to-repeater-grnmea6c.js} +3 -3
- package/dist/chunks/editor-bkja5dbv.js +4 -0
- package/dist/chunks/entry-commands-1wh0btvg.js +4 -0
- package/dist/chunks/{extension-sections-0egb88dm.js → extension-sections-rp7fkega.js} +3 -3
- package/dist/chunks/file-ops-6pe4z7an.js +4 -0
- package/dist/chunks/files-ybpp3j38.js +4 -0
- package/dist/chunks/format-host-3mtbhxk1.js +4 -0
- package/dist/chunks/fs-events-xfanfxds.js +4 -0
- package/dist/chunks/grid-open-dg5qmnaj.js +4 -0
- package/dist/chunks/{grid-view-qg1b5eqx.js → grid-view-x26rfpz1.js} +16 -15
- package/dist/chunks/{icons-63bjtbs7.js → icons-853n6qt3.js} +2 -2
- package/dist/chunks/{iframe-entry-2zggzajv.js → iframe-entry-02wzcyvy.js} +4 -4
- package/dist/chunks/{iframe-entry-99nr5zfb.js → iframe-entry-42hpmwz5.js} +4 -4
- package/dist/chunks/{iframe-entry-76j8vwwx.js → iframe-entry-b5qgggyp.js} +2 -2
- package/dist/chunks/iframe-host-j2bk2xkc.js +4 -0
- package/dist/chunks/{index-32eqzv1k.js → index-203h71wy.js} +3 -3
- package/dist/chunks/index-fkrm7pdk.js +4 -0
- package/dist/chunks/{javascript-pjp734q4.js → javascript-ww5pv5ae.js} +2 -2
- package/dist/chunks/{jsonMode-njkvsa02.js → jsonMode-vwbdwwq3.js} +6 -6
- package/dist/chunks/jx-validate-w7v32f6a.js +4 -0
- package/dist/chunks/layers-g7j732cm.js +4 -0
- package/dist/chunks/layers-panel-gjrsxcck.js +4 -0
- package/dist/chunks/{listbox-c421cf8c.js → listbox-7gka1h86.js} +2 -2
- package/dist/chunks/lit-html-jdfz9rhc.js +4 -0
- package/dist/chunks/media-library-9j0v4wmk.js +4 -0
- package/dist/chunks/media-picker-cpyyt2m0.js +4 -0
- package/dist/chunks/{menu-bdpzbfvs.js → menu-d2jxpgma.js} +2 -2
- package/dist/chunks/{monaco-binding-vq1hgnn0.js → monaco-binding-63tqze27.js} +3 -3
- package/dist/chunks/monaco-buffer-9wcme176.js +4 -0
- package/dist/chunks/{monaco-setup-xrd2cbkp.js → monaco-setup-zyyynnj8.js} +3 -3
- package/dist/chunks/notify-rahnnnv4.js +4 -0
- package/dist/chunks/platform-b2aqv7v5.js +4 -0
- package/dist/chunks/{popover-b89sfej7.js → popover-9tf4cjrk.js} +2 -2
- package/dist/chunks/publish-panel-4yk2461b.js +4 -0
- package/dist/chunks/{publish-quick-qx2455cj.js → publish-quick-ajzdhhs6.js} +3 -3
- package/dist/chunks/publish-workspace-mxestzcf.js +4 -0
- package/dist/chunks/quick-search-9g6z65b0.js +4 -0
- package/dist/chunks/references-c26enpxs.js +4 -0
- package/dist/chunks/right-panel-9d0e0yg7.js +4 -0
- package/dist/chunks/source-control-xyn3a8ds.js +4 -0
- package/dist/chunks/{split-c9zfdgxf.js → split-m5rwn31z.js} +2 -2
- package/dist/chunks/{studio-x9hsze61.js → studio-02phtmqn.js} +4 -4
- package/dist/chunks/{studio-4hp8pkyt.js → studio-0khd0xdw.js} +4 -4
- package/dist/chunks/studio-1fvzq9vs.js +5 -0
- package/dist/chunks/studio-1gdfsr49.js +12 -0
- package/dist/chunks/{studio-3q40e3rj.js → studio-1meqbxns.js} +4 -4
- package/dist/chunks/{studio-q0tccd43.js → studio-1yhz0s8p.js} +4 -4
- package/dist/chunks/studio-25a5by3h.js +5 -0
- package/dist/chunks/{studio-k3xxbagr.js → studio-2b8443ms.js} +3 -3
- package/dist/chunks/{studio-3qqjeep5.js → studio-2c2mjyzj.js} +5 -5
- package/dist/chunks/studio-2dtc90zs.js +10 -0
- package/dist/chunks/{studio-9tmebf0s.js → studio-332hesdk.js} +4 -4
- package/dist/chunks/{studio-03ct6yfv.js → studio-3pndhat0.js} +8 -8
- package/dist/chunks/{studio-s32578pn.js → studio-3q6n9qvq.js} +4 -4
- package/dist/chunks/studio-4dsdnan2.js +9 -0
- package/dist/chunks/{studio-ed1hp6zf.js → studio-4fjqdzrb.js} +5 -5
- package/dist/chunks/{studio-jcnsdaep.js → studio-533py3yy.js} +4 -4
- package/dist/chunks/studio-5abge3wy.js +5 -0
- package/dist/chunks/{studio-8tr6cfrc.js → studio-6vrxzkba.js} +4 -4
- package/dist/chunks/{studio-jaaz8ce9.js → studio-73wz63nn.js} +4 -4
- package/dist/chunks/{studio-bavb31r0.js → studio-74nzv280.js} +4 -4
- package/dist/chunks/{studio-q7rtx6zq.js → studio-7cg75gtj.js} +7 -7
- package/dist/chunks/studio-89cwmnae.js +5 -0
- package/dist/chunks/studio-8m1t83kn.js +7 -0
- package/dist/chunks/{studio-q0mvbaq6.js → studio-8nyw10dp.js} +4 -4
- package/dist/chunks/{studio-83mk4bgg.js → studio-94ppxeqy.js} +8 -8
- package/dist/chunks/{studio-qmn1xc24.js → studio-957jg8g3.js} +4 -4
- package/dist/chunks/{studio-r5qy30vx.js → studio-9wyqyfqy.js} +4 -4
- package/dist/chunks/studio-a3evp7f6.js +6 -0
- package/dist/chunks/{studio-n0c5h6mf.js → studio-a6x058ew.js} +4 -4
- package/dist/chunks/studio-ana67wax.js +5 -0
- package/dist/chunks/studio-b4xhpcwy.js +4 -0
- package/dist/chunks/studio-bf0rgyf7.js +5 -0
- package/dist/chunks/{studio-x1x167jh.js → studio-bqgs90r8.js} +4 -4
- package/dist/chunks/{studio-qwdqwkj0.js → studio-c4rcaftm.js} +4 -4
- package/dist/chunks/{studio-mn0476ag.js → studio-c5dj3dzk.js} +4 -4
- package/dist/chunks/studio-cgjt1zce.js +5 -0
- package/dist/chunks/{studio-bbe4c90a.js → studio-cpdzrdgp.js} +4 -4
- package/dist/chunks/studio-cq87hree.js +5 -0
- package/dist/chunks/studio-d140sy8e.js +5 -0
- package/dist/chunks/{studio-jsgf2q5k.js → studio-dmn7gpba.js} +5 -5
- package/dist/chunks/studio-e8pzjjhf.js +5 -0
- package/dist/chunks/{studio-dgk4dqtx.js → studio-f8kz3krj.js} +5 -5
- package/dist/chunks/{studio-qgh13jtz.js → studio-fqs1a22a.js} +4 -4
- package/dist/chunks/{studio-syreb644.js → studio-fw3jp9m7.js} +4 -4
- package/dist/chunks/{studio-ed3xx40h.js → studio-g6ysm05p.js} +6 -6
- package/dist/chunks/studio-gmhd0j3f.js +5 -0
- package/dist/chunks/{studio-p4nrkvqr.js → studio-gqpty626.js} +4 -4
- package/dist/chunks/{studio-kt3pjkwd.js → studio-grp684wx.js} +4 -4
- package/dist/chunks/{studio-df0baea9.js → studio-h98520qr.js} +4 -4
- package/dist/chunks/{studio-8m0y2qe7.js → studio-hnx1h1pr.js} +4 -4
- package/dist/chunks/studio-hvxt8z79.js +5 -0
- package/dist/chunks/{studio-43sd2mam.js → studio-hw60n5dh.js} +3 -3
- package/dist/chunks/{studio-wbcjbhy1.js → studio-hxq1ebp0.js} +6 -6
- package/dist/chunks/{studio-wys23mxz.js → studio-j4e627w1.js} +4 -4
- package/dist/chunks/{studio-ccv2svc6.js → studio-j5jqvyn3.js} +4 -4
- package/dist/chunks/{studio-881z1xrx.js → studio-jqrg9xxg.js} +4 -4
- package/dist/chunks/{studio-b7y5mr30.js → studio-kdseew9m.js} +4 -4
- package/dist/chunks/studio-kt2j51sa.js +5 -0
- package/dist/chunks/{studio-d5grtb9e.js → studio-m4w6sygj.js} +9 -9
- package/dist/chunks/{studio-zz9qe3rw.js → studio-mmqr9awv.js} +37 -37
- package/dist/chunks/{studio-5g0rprdt.js → studio-nm9qev4p.js} +5 -5
- package/dist/chunks/{studio-tft6r105.js → studio-nsv7g1qn.js} +4 -4
- package/dist/chunks/{studio-3e54qh39.js → studio-p89w12s2.js} +5 -5
- package/dist/chunks/{studio-y3ahhdpx.js → studio-pbagym4j.js} +4 -4
- package/dist/chunks/{studio-w4rz9hdk.js → studio-pr23qhrw.js} +4 -4
- package/dist/chunks/{studio-6m380wp7.js → studio-r4ya3sb2.js} +4 -4
- package/dist/chunks/studio-rdnezzkd.js +6 -0
- package/dist/chunks/{studio-f14e1zdj.js → studio-rm9m3z60.js} +4 -4
- package/dist/chunks/studio-tpmnbgmt.js +5 -0
- package/dist/chunks/studio-ttxhq5yt.js +5 -0
- package/dist/chunks/{studio-nh6d342n.js → studio-txkx6586.js} +6 -6
- package/dist/chunks/{studio-a2bvaptz.js → studio-v0gsjav0.js} +4 -4
- package/dist/chunks/{studio-fbhxxc5f.js → studio-v2ek69cb.js} +4 -4
- package/dist/chunks/{studio-y0n7yxea.js → studio-wcakp5bt.js} +7 -7
- package/dist/chunks/{studio-k7evxqh4.js → studio-x3ge4rts.js} +4 -4
- package/dist/chunks/{studio-pbxa5fpc.js → studio-xddgbwhe.js} +3 -3
- package/dist/chunks/{studio-c05wdnt3.js → studio-y1x65h5r.js} +4 -4
- package/dist/chunks/{studio-rthyg42z.js → studio-z42kysg7.js} +169 -169
- package/dist/chunks/studio-zf188hnd.js +5 -0
- package/dist/chunks/{studio-tfkznv39.js → studio-zht0x0v3.js} +4 -4
- package/dist/chunks/{studio-svb7yyve.js → studio-zm7dnr9g.js} +4 -4
- package/dist/chunks/{tooltip-yypz28gq.js → tooltip-dj1pvgz7.js} +2 -2
- package/dist/chunks/{tree-9xa4hm7n.js → tree-j0ebwr5s.js} +2 -2
- package/dist/chunks/{tsMode-epyfz1hv.js → tsMode-vra2hh7y.js} +5 -5
- package/dist/chunks/workspace-3nt93k48.js +4 -0
- package/dist/chunks/workspace-home-zbgyqqws.js +4 -0
- package/dist/chunks/{ws-client-bv552sfx.js → ws-client-72x5n99j.js} +3 -3
- package/dist/iframe-entry.js +14 -14
- package/dist/manifest.json +75 -75
- package/dist/studio.js +80 -80
- package/package.json +11 -11
- package/src/browse/component-examples.ts +15 -224
- package/src/browse/library-preview.ts +6 -13
- package/src/browse/preview-root.ts +7 -4
- package/src/canvas/canvas-utils.ts +18 -4
- package/src/canvas/iframe-editable-root.ts +13 -4
- package/src/canvas/iframe-entry.ts +3 -1
- package/src/canvas/iframe-interaction.ts +11 -2
- package/src/canvas/iframe-render.ts +25 -3
- package/src/canvas/preview-placeholder.ts +120 -0
- package/src/editor/shortcuts.ts +3 -0
- package/src/panels/component-preview.ts +5 -0
- package/src/panels/pane-context.ts +43 -18
- package/src/panels/site-model.ts +7 -19
- package/src/panels/site-panel.ts +2 -25
- package/src/panels/stylebook-doc.ts +2 -53
- package/src/services/references.ts +0 -0
- package/src/style/stylebook-specimens.ts +11 -15
- package/src/surfaces/pane-context.json +286 -265
- package/src/surfaces/pane-context.ts +17 -8
- package/src/tabs/tab.ts +5 -6
- package/src/utils/geometry.ts +49 -2
- package/dist/chunks/adapter-5tphg7xe.js +0 -4
- package/dist/chunks/cf-settings-h2wrh6hq.js +0 -4
- package/dist/chunks/color-m7r1vk54.js +0 -4
- package/dist/chunks/components-r22xca09.js +0 -4
- package/dist/chunks/content-source-mmppmcyg.js +0 -4
- package/dist/chunks/editor-ccd9jwsa.js +0 -4
- package/dist/chunks/entry-commands-6qxz9e8p.js +0 -4
- package/dist/chunks/file-ops-qnab36ek.js +0 -4
- package/dist/chunks/files-rcn56qvm.js +0 -4
- package/dist/chunks/format-host-yxz0kjjs.js +0 -4
- package/dist/chunks/fs-events-d1qxq4z4.js +0 -4
- package/dist/chunks/grid-open-4z1g062t.js +0 -4
- package/dist/chunks/iframe-host-ssv7kyj0.js +0 -4
- package/dist/chunks/index-f0jn7nnp.js +0 -4
- package/dist/chunks/jx-validate-ttasrbh7.js +0 -4
- package/dist/chunks/layers-bgyr11tr.js +0 -4
- package/dist/chunks/layers-panel-7ez66zeq.js +0 -4
- package/dist/chunks/lit-html-v9gh687x.js +0 -4
- package/dist/chunks/media-library-sq468wts.js +0 -4
- package/dist/chunks/media-picker-shfe59pt.js +0 -4
- package/dist/chunks/monaco-buffer-3afgwvbp.js +0 -4
- package/dist/chunks/notify-kzrjr3fv.js +0 -4
- package/dist/chunks/platform-7v4rtd7m.js +0 -4
- package/dist/chunks/publish-panel-2z9gw8ee.js +0 -4
- package/dist/chunks/publish-workspace-wrc1dgwx.js +0 -4
- package/dist/chunks/quick-search-n0t0eqxb.js +0 -4
- package/dist/chunks/references-9547rg5s.js +0 -4
- package/dist/chunks/right-panel-wsgnr9pn.js +0 -4
- package/dist/chunks/source-control-kwktr9y6.js +0 -4
- package/dist/chunks/studio-07rcfje3.js +0 -5
- package/dist/chunks/studio-3exxhz5g.js +0 -5
- package/dist/chunks/studio-3qeh9t0h.js +0 -6
- package/dist/chunks/studio-58xg6j2q.js +0 -9
- package/dist/chunks/studio-80jyh1xh.js +0 -4
- package/dist/chunks/studio-8vcvfs7r.js +0 -6
- package/dist/chunks/studio-fyh0jc96.js +0 -5
- package/dist/chunks/studio-gcxk20n7.js +0 -5
- package/dist/chunks/studio-m8g16bgz.js +0 -5
- package/dist/chunks/studio-mx1smyq0.js +0 -5
- package/dist/chunks/studio-pgmvdv7z.js +0 -7
- package/dist/chunks/studio-ph84avkf.js +0 -5
- package/dist/chunks/studio-rj9eamf8.js +0 -5
- package/dist/chunks/studio-rptgsk96.js +0 -5
- package/dist/chunks/studio-s19tp1xr.js +0 -5
- package/dist/chunks/studio-tf9jryb1.js +0 -10
- package/dist/chunks/studio-txf2kysx.js +0 -5
- package/dist/chunks/studio-v8867ddv.js +0 -12
- package/dist/chunks/studio-vxq7fcvv.js +0 -5
- package/dist/chunks/studio-wc649wss.js +0 -5
- package/dist/chunks/studio-z97c48fk.js +0 -5
- package/dist/chunks/studio-zat62m0c.js +0 -5
- package/dist/chunks/studio-zcd2e7yz.js +0 -5
- package/dist/chunks/workspace-dz7nxfhv.js +0 -4
- package/dist/chunks/workspace-home-xsd7hkjw.js +0 -4
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
function n(e){return typeof e==="string"}function Z(e){return typeof e==="number"}function Xe(e){return typeof e==="boolean"}function eM(e){return typeof e==="bigint"}function kv(e){return typeof e==="symbol"}function te(e){return typeof e==="function"}function _(e){return typeof e==="object"&&e!==null}function rf(e){return e===null||n(e)||Z(e)||Xe(e)}function v(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function Oe(e){return v(e)&&typeof e.$ref==="string"}function Ma(e){return v(e)&&e.$prototype==="Function"}function nc(e){return v(e)&&v(e.$expression)}function Jx(e){return nc(e)&&Array.isArray(e.parameters)&&e.parameters.length>0}function sI(e){return Ma(e)&&Array.isArray(e.body)}function Ev(e){return v(e)&&typeof e.$prototype==="string"&&e.$prototype!=="Function"}function aI(e){return v(e)&&e.timing==="server"&&typeof e.$src==="string"&&typeof e.$export==="string"&&!e.$prototype}function Yo(e){return v(e)&&e.$prototype==="Array"}function qn(e){return v(e)}function Pa(e){return typeof e==="string"&&e.includes("${")}function lI(e){return/\breturn\b[^\S\n]*(?![;}\s]|$)/.test(e)}function hl(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function Di(e,t){let r=e?.[t];return hl(r)?r:void 0}function nd(e,t){let r=e[t];if(hl(r))return r;let o={};return e[t]=o,o}function sf(e){return Oe(e)||Ma(e)||nc(e)}function qm(e,t){let r=e[t];return sf(r)?r:void 0}function Yx(e){if(!e)return[];return e.map((t)=>n(t)?t:t.name)}function i(e){return typeof e==="string"}function Ih(e){if(typeof e!=="object"||e===null||Array.isArray(e)||!v(e.$expression))return!1;let t=e.$expression;if(t.operator==="?:")return typeof t.value==="string"&&typeof t.initial==="string";if(t.operator==="switch")return v(t.cases)&&Object.values(t.cases).every((r)=>n(r))&&typeof t.default==="string";return!1}function cI(e){if(i(e))return[e];if(!Ih(e))return[];let t=e.$expression;if(t.operator==="?:")return[...new Set([t.value,t.initial])];return[...new Set([...Object.values(t.cases),t.default])]}function it(e){return i(e)?e:cI(e).join("|")}function id(e){return e.startsWith("#")}
|
|
2
|
+
export{n,Z,Xe,eM,kv,te,_,rf,v,Oe,Ma,nc,Jx,sI,Ev,aI,Yo,qn,Pa,lI,hl,Di,nd,sf,qm,Yx,Ih,cI,it,id};
|
|
3
|
+
|
|
4
|
+
//# debugId=EA95CD0F80B0053264756E2164756E21
|
|
5
|
+
//# sourceMappingURL=studio-kt2j51sa.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{Q}from"./studio-nqxqf8p2.js";import{p}from"./studio-
|
|
1
|
+
import{Q}from"./studio-nqxqf8p2.js";import{p}from"./studio-pr23qhrw.js";import{ge,ne,Kr,Jr,g,he,YO,C}from"./studio-hw60n5dh.js";import{Pn,mx,ln,go,gC,bx,Xb,L$,an,iv,Am,Y,Bi,Wn,Se,di,$o,ui,Fm,m,Er,Ql,Ht}from"./studio-y1x65h5r.js";import{nf}from"./studio-tpmnbgmt.js";import{pt,Go,_r}from"./studio-3q6n9qvq.js";import{S,ed,wn}from"./studio-ana67wax.js";import{n,Z,Xe,kv,te,_,v}from"./studio-kt2j51sa.js";import{le}from"./studio-fqs1a22a.js";function F(e){return e.replaceAll("~","~0").replaceAll("/","~1")}var Ue=100;function H(e){let t={blankAfter:new Set,escaped:new Map,inline:new Map},o=0,r=()=>{let l=0;while(o<e.length&&(e[o]===" "||e[o]==="\t"||e[o]==="\r"||e[o]===`
|
|
2
2
|
`)){if(e[o]===`
|
|
3
3
|
`)l+=1;o+=1}return l},s=()=>{let l=o,u=new Set;o+=1;while(o<e.length&&e[o]!=='"')if(e[o]==="\\")if(e[o+1]==="u"){let d=Number.parseInt(e.slice(o+2,o+6),16);if(d>=128)u.add(d);o+=6}else o+=2;else o+=1;return o+=1,{escaped:u,raw:e.slice(l,o)}},i=(l,u)=>{let d=r();if(e[o]===u)return o+=1,!0;if(o+=1,d+=r(),d>=2)t.blankAfter.add(l);return!1},a=(l)=>{r();let u=e[o];if(u==="{"){o+=1;let d=r()>0;if(e[o]==="}"){o+=1;return}t.inline.set(l,!d);while(o<e.length){let c=JSON.parse(s().raw);r(),o+=1;let f=`${l}/${F(c)}`;if(a(f),i(f,"}"))return}}else if(u==="["){if(o+=1,r(),e[o]==="]"){o+=1;return}for(let d=0;o<e.length;d+=1){let c=`${l}/${d}`;if(a(c),i(c,"]"))return}}else if(u==='"'){let{escaped:d}=s();if(d.size>0)t.escaped.set(l,d)}else while(o<e.length&&!`,]} \r
|
|
4
|
-
`.includes(e[o]))o+=1};return a(""),t}function
|
|
4
|
+
`.includes(e[o]))o+=1};return a(""),t}function ks(e){return{document:JSON.parse(e),layout:H(e)}}var Ve=/[^\u0020-\u007E]/,He=/^[\p{Mn}\p{Me}\p{Cf}]$/u,Ge=/^\p{Emoji_Presentation}$/u;function Ke(e){return e>=4352&&(e<=4447||e===9001||e===9002||e>=11904&&e<=12871&&e!==12351||e>=12880&&e<=19903||e>=19968&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510||e>=110592&&e<=110593||e>=127488&&e<=127569||e>=131072&&e<=262141)}function de(e){if(!Ve.test(e))return e.length;let t=0;for(let o of e){if(He.test(o))continue;t+=Ke(o.codePointAt(0))||Ge.test(o)?2:1}return t}function me(e){return e===void 0||te(e)||kv(e)}function U(e){return Object.entries(e).filter(([,t])=>!me(t))}function M(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function Ze(e){if(e.length<2)return!1;let t=Array.isArray(e[0])?"array":M(e[0])?"object":null;if(t===null)return!1;return e.every((o)=>t==="array"?Array.isArray(o)&&o.length>1:M(o)&&U(o).length>1)}function qe(e){return e.length>1&&e.every((t)=>Z(t))}function V(e,t){let o=me(e)?"null":JSON.stringify(e);return t===void 0?o:o.replaceAll(/[\u0080-\uFFFF]/g,(r)=>{let s=r.codePointAt(0);return t.has(s)?`\\u${s.toString(16).padStart(4,"0")}`:r})}function ko(e,t,o=Ue){let r=t?.inline??new Map,s=t?.blankAfter??new Set,i=t?.escaped??new Map,a=(c,f)=>r.get(c)??f,l=(c,f,b)=>{if(Array.isArray(c)){if(c.length===0)return"[]";if(Ze(c))return null;let y=[];for(let[x,P]of c.entries()){let T=`${f}/${x}`,w=s.has(T)?null:l(P,T,b);if(w===null)return null;y.push(w)}return`[${y.join(", ")}]`}if(M(c)){let y=U(c);if(y.length===0)return"{}";if(!a(f,b))return null;let x=[];for(let[P,T]of y){let w=`${f}/${F(P)}`,E=s.has(w)?null:l(T,w,!0);if(E===null)return null;x.push(`${JSON.stringify(P)}: ${E}`)}return`{ ${x.join(", ")} }`}return V(c,i.get(f))},u=(c)=>c.map(({path:f,text:b},y)=>y===c.length-1?b:`${b},
|
|
5
5
|
${s.has(f)?`
|
|
6
|
-
`:""}`).join(""),d=(c,f,b,y,P
|
|
6
|
+
`:""}`).join(""),d=(c,f,b,y,x,P)=>{if(!Array.isArray(c)&&!M(c))return V(c,i.get(f));let T=l(c,f,x);if(T!==null&&y+de(T)+P<=o)return T;let w=" ".repeat(b+2),E=`
|
|
7
7
|
${" ".repeat(b)}`;if(Array.isArray(c)){if(qe(c))return`[
|
|
8
|
-
${Ye(c,w,o,(A)=>s.has(`${f}/${A}`))}${E}]`;let L=c.map((R,A)=>{let O=`${f}/${A}`,J=A===c.length-1,z=d(R,O,b+2,w.length,
|
|
9
|
-
${u(L)}${E}]`}let pe=U(c),Be=a(f,
|
|
8
|
+
${Ye(c,w,o,(A)=>s.has(`${f}/${A}`))}${E}]`;let L=c.map((R,A)=>{let O=`${f}/${A}`,J=A===c.length-1,z=d(R,O,b+2,w.length,x,J?0:1);return{path:O,text:`${w}${z}`}});return`[
|
|
9
|
+
${u(L)}${E}]`}let pe=U(c),Be=a(f,x),We=pe.map(([L,R],A)=>{let O=`${f}/${F(L)}`,J=`${JSON.stringify(L)}: `,z=A===pe.length-1,ze=w.length+de(J),Fe=d(R,O,b+2,ze,Be,z?0:1);return{path:O,text:`${w}${J}${Fe}`}});return`{
|
|
10
10
|
${u(We)}${E}}`};return`${d(e,"",0,0,!1,0)}
|
|
11
11
|
`}function Ye(e,t,o,r){let s=[],i="";for(let[a,l]of e.entries()){let u=`${V(l)}${a===e.length-1?"":","}`;if(i==="")i=`${t}${u}`;else if(i.length+1+u.length<=o)i=`${i} ${u}`;else s.push(i),i=`${t}${u}`;if(r(a)&&a<e.length-1)s.push(i,""),i=""}return s.push(i),s.join(`
|
|
12
|
-
`)}function wm(e){return ko(e,we())}var I=null,j=null,N=null,_=null;function we(){return ve()?.doc.layout??_}var G=null;function ve(){let e=m.tabs.get(ln);return e?he(e):null}function Qe(){if(j)Om(j),j=null;I=null,N=null,_=null,G=null}function xe(){return G??=(async()=>{try{let e=await p().readFile(ln),{document:t,layout:o}=Es(e);_=o,N=ko(t,we())}catch{N=null}})(),G}async function WL(e){if(await xe(),e.doc.layout===null&&_!==null)e.doc.layout=_}function et(e){let t=wn();if(t.projectConfig===e)return;id({...t,projectConfig:e}),tc(m.projectRoot,e)}function tt(){let e=x?.projectConfig;return e?he(e):null}function K(e){return he(e)}function Pe(e,t){for(let o of Object.keys(e))delete e[o];Object.assign(e,t)}function be(e){return I=e,e.scope.run(()=>{ne(()=>{let t=e.doc.document;if(I!==e||!x)return;et(K(t))})}),e}function eC(){let e=wn(),t=ve();if(I&&(I!==(t??j)||he(I.doc.document)!==e.projectConfig))Qe();if(I)return I;if(t)return be(t);return j=sv({document:e.projectConfig??{},documentPath:ln,id:ln}),be(j)}function ye(e){return JSON.stringify(e.extensions??null)}async function ot(){let{loadFormats:e,refreshExtensionUi:t,refreshFormats:o}=await (le("yxz0kjjs"),import("./format-host-yxz0kjjs.js"));o(),e(),t(p())}async function Kl(e){let t=tt(),o=eC();await WL(o);let r=K(o.doc.document),s=wm(r),i=t&&t!==r&&wm(t)!==s?t:null;if(i&&o.doc.dirty){let b=Error(`${ln} has unsaved changes in its editor tab`);return C.error(`Could not save ${ln} — the file is open with unsaved changes. Save or `+"revert that tab, then make the settings change again.",{key:`save:${ln}`,path:ln,source:"Settings"}),{error:b,ok:!1}}let a=i??r,l=e?{...a,...e}:a,u=wm(l);if(!i&&!o.doc.dirty&&u===N)return{ok:!0};let d=ye(r);Y(o,(b)=>{let y=b.doc.document;if(i)Pe(y,i);for(let[P,T]of Object.entries(e??{}))y[P]=T});let c=K(o.doc.document),f=wm(c);try{await p().writeFile(ln,f)}catch(b){return C.error(`Could not save ${ln} — ${Q(b)}`,{key:`save:${ln}`,path:ln,source:"Settings"}),{error:b,ok:!1}}if(N=f,o.doc.dirty=!1,ye(c)!==d)await ot();return{ok:!0}}async function XN(e,t){if(!x){tc(m.projectRoot,e);return}let o=eC();Y(o,(r)=>Pe(r.doc.document,e),{skipHistory:!0}),o.doc.dirty=!1,await xe(),_=H(t),o.doc.layout=_,N=wm(e)}function to(e){let t=x?.projectConfig?.$media;if(!t)return e||{};if(!e)return{...t};return{...t,...e}}function Sr(e){let t=x?.projectConfig?.style;if(!t)return e||{};if(!e)return{...t};let o={...t};for(let[r,s]of Object.entries(e)){let i=o[r];o[r]=S(s)&&S(i)?{...i,...s}:s}return o}function QN(e,t=[]){return{...VL(t),...x?.projectConfig?.imports,...e}}function VL(e){let t=e.flatMap((o)=>(o.classes??[]).filter((r)=>r.path.endsWith(".class.json")).map((r)=>[r.name,r.path]));return Object.fromEntries(t.toReversed())}function Zw(e){let t=x?.projectConfig?.$elements;if(!t?.length)return e||[];if(!e?.length)return[...t];let o=new Set,r=[];for(let s of[...t,...e]){let i=n(s)?s:S(s)?s.$ref:void 0;if(i&&!o.has(i))o.add(i),r.push(s)}return r}function Xw(e){let t=x?.projectConfig?.$head;if(!t?.length)return e||[];if(!e?.length)return[...t];let o=new Set,r=[];for(let s of[...t,...e]){let i=S(s)?s.attributes:void 0,a=String(i?.href||i?.src||"")||JSON.stringify(s);if(!o.has(a))o.add(a),r.push(s)}return r}function Ts(){let e=x?.projectConfig;return e?Qt(e).i18n:null}function Rp(e,t){let o=Ts();if(o===null)return null;let r=Fn(e);if(r!==null&&o.locales.includes(r))return r;return Hi(t??"",o)??o.defaultLocale}var q=new Map;function eA(){q.clear()}function ol(e){if(e===!1)return null;let t=x?.projectConfig?.defaults?.layout;return e||t||null}async function Qw(e){let t=e.replace(/^\.\//,""),o=q.get(t);if(o!==void 0)return structuredClone(o);try{let s=await p().readFile(t),i=JSON.parse(s);return q.set(t,i),structuredClone(i)}catch{return null}}function UL(e,t){let o=t.children??[],r=Array.isArray(o)?o:[],s=new Map,i=[];for(let a of r){let l=n(a)?void 0:a.attributes?.slot;if(!n(a)&&n(l)&&l){if(!s.has(l))s.set(l,[]);s.get(l).push(a)}else i.push(a)}if(Te(e,s,i),t.state)e.state={...e.state,...t.state};if(t.$media)e.$media={...e.$media,...t.$media};if(t.style)e.style={...e.style,...t.style};if(t.attributes)e.attributes={...e.attributes,...t.attributes};return e}function Te(e,t,o){if(!Array.isArray(e.children))return;let r=[];for(let s of e.children)if(S(s)&&s.tagName==="slot"){let i=s.attributes?.name;if(n(i)&&i&&t.has(i))r.push(...t.get(i)),t.delete(i);else if(!i&&o.length>0)r.push(...o);else if(Array.isArray(s.children))r.push(...s.children)}else{if(S(s))Te(s,t,o);r.push(s)}e.children=r}async function no(e){let t=await Kl(e);if(!t.ok)throw t.error}var ke=new Set([ui,jm]),nt=new Set(["auto","light","dark"]);function rt(e){return n(e)&&nt.has(e)}function it(e){let{ui:t}=e.session;return{activeMedia:t.activeMedia,canvasMode:t.canvasMode,editZoom:t.editZoom,preview:t.preview,previewColorScheme:t.previewColorScheme,previewLocale:t.previewLocale,showLayout:t.showLayout,zoom:t.zoom}}function Ie(){let e={},t=[];for(let o of m.panes){if(o.derived)continue;let r=[];for(let i of o.tabOrder){let a=m.tabs.get(i);if(!a?.documentPath)continue;r.push(a.documentPath),e[a.documentPath]=it(a)}if(r.length===0)continue;let s=o.activeTabId?m.tabs.get(o.activeTabId):null;t.push({activeFile:s?.documentPath??null,files:r,id:o.id})}return{focusedPane:m.activePaneId,panes:t,ui:e}}function st(e){if(!v(e))return{};let t={};if(n(e.canvasMode))t.canvasMode=e.canvasMode;if(Xe(e.preview))t.preview=e.preview;if(Z(e.zoom)&&Number.isFinite(e.zoom))t.zoom=e.zoom;if(Z(e.editZoom)&&Number.isFinite(e.editZoom))t.editZoom=e.editZoom;if(e.activeMedia===null||n(e.activeMedia))t.activeMedia=e.activeMedia;if(rt(e.previewColorScheme))t.previewColorScheme=e.previewColorScheme;if(e.previewLocale===null||n(e.previewLocale)&&vx(e.previewLocale))t.previewLocale=e.previewLocale;if(Xe(e.showLayout))t.showLayout=e.showLayout;return t}function _e(e){if(!v(e)||!Array.isArray(e.panes))return null;let t=[];for(let r of e.panes){if(!v(r)||!n(r.id)||!ke.has(r.id))continue;let s=Array.isArray(r.files)?r.files.filter((i)=>n(i)&&i!==""):[];if(s.length===0)continue;t.push({activeFile:n(r.activeFile)&&s.includes(r.activeFile)?r.activeFile:null,files:s,id:r.id})}if(t.length===0)return null;let o={};if(S(e.ui))for(let[r,s]of Object.entries(e.ui))o[r]=st(s);return{focusedPane:n(e.focusedPane)&&ke.has(e.focusedPane)?e.focusedPane:ui,panes:t,ui:o}}async function tA(e,t){let o=0;if(e.panes.some((i)=>i.id===jm))t.ensureSecondPane();for(let i of e.panes)for(let a of i.files){try{await t.openFile(a,i.id)}catch{}if([...m.tabs.values()].some((l)=>l.documentPath===a))o+=1}if(o===0)return 0;for(let i of m.tabs.values()){let a=i.documentPath?e.ui[i.documentPath]:void 0;if(!a)continue;let{ui:l}=i.session;if(a.canvasMode&&i.capabilities.modes.includes(a.canvasMode))l.canvasMode=a.canvasMode;if(a.preview!==void 0)l.preview=a.preview;if(a.zoom!==void 0)l.zoom=a.zoom;if(a.editZoom!==void 0)l.editZoom=a.editZoom;if(a.activeMedia!==void 0)l.activeMedia=a.activeMedia;if(a.previewColorScheme!==void 0)l.previewColorScheme=a.previewColorScheme;if(a.previewLocale!==void 0)l.previewLocale=a.previewLocale;if(a.showLayout!==void 0)l.showLayout=a.showLayout}let r=m.panes.some((i)=>i.id===e.focusedPane)?e.focusedPane:null,s=null;for(let i of e.panes){let a=m.panes.find((u)=>u.id===i.id);if(!a||!i.activeFile)continue;let l=a.tabOrder.find((u)=>m.tabs.get(u)?.documentPath===i.activeFile);if(!l)continue;if(a.id===r)s=l;else Bt(l,{focus:!1})}if(s)Bt(s);else if(r)Lr(r);return o}var xm=["review","deploys","branches","hosting"],tC={branches:"Branches",deploys:"Deploys",hosting:"Hosting",review:"Review changes"},at=["live","review"],Ee="review",Ce="live",lt=new Set(xm),ct=new Set(at);function nA(e){return typeof e==="string"&<.has(e)}function ex(e){return typeof e==="string"&&ct.has(e)}var ut={default:{description:"Resume whatever was persisted — layout, recents, settings, chat history.",id:"default",reset:"none"},fresh:{description:"A first-run app: no layout, no recents, no settings, no history.",id:"fresh",reset:"app-state"}},Ae=new Map(Object.entries(ut)),ft="default",dt=/^jx[-._:]/;function mt(e){return dt.test(e)}function gt(){let e=typeof localStorage>"u"?void 0:localStorage;if(!e)return[];let t=[];try{for(let o=0;o<e.length;o++){let r=e.key(o);if(r&&mt(r))t.push(r)}for(let o of t)e.removeItem(o)}catch{}return t}function bt(e){let t=Ae.get(e);if(!t)throw RangeError(`unknown startup profile "${e}"; declared: ${[...Ae.keys()].join(", ")}`);if(t.reset==="app-state")gt();return t}var B=null;function je(e){if(B)return B;let t=new URLSearchParams(e??(typeof location>"u"?"":location.search)),o=bt(t.get("profile")??ft),r=t.get("clock");return B={clock:r===null?null:tM(r),profile:o},B}var W=["site","collections","styles","files","search","i18n","layers","data","packages","insert"],ht=new Set(["collections","styles"]);function Oe(e){return e&&!ht.has(e)?e:yt}var St=new Map([["blocks","insert"],["head","site"],["page","site"],["imports","packages"],["git","site"],["state","data"]]),yt="site";function nC(e,t){let o=W.find((r)=>r===e);if(o===void 0)throw Error(`${t}: "${e}" is not a declared Navigator panel id.`);return o}function se(e){if(!n(e))return null;let t=St.get(e);if(t)return t;return W.find((o)=>o===e)??null}var oe=["page","properties","style","events","assistant"],tx="page",wt=["properties","style","events"],iC="properties";function nx(e){return typeof e==="string"&&wt.some((t)=>t===e)}function qL(e){return typeof e==="string"&&oe.some((t)=>t===e)}var ix=["problems","logic","activity"],GL="problems";function KL(e){return typeof e==="string"&&ix.some((t)=>t===e)}var ox=["light","dark"],Vc={content:{id:"content",inspector:{open:!1,whileWriting:!0},navigator:{open:!0,panel:"collections"},rail:!1,tabStrip:!0},design:{id:"design",inspector:{open:!0},navigator:{initial:"site",open:!0},rail:!0,tabStrip:!0},media:{id:"media",inspector:{open:!1},navigator:{open:!1},rail:!1,tabStrip:!1},publish:{id:"publish",inspector:{open:!1},navigator:{open:!1},rail:!1,tabStrip:!1},styles:{id:"styles",inspector:{open:!1,tab:"style",whileWriting:!0},navigator:{open:!0,panel:"styles"},rail:!1,tabStrip:!1}},De="jx-studio-panel-widths",Le="jx-studio-project::",vt="dark";function JL(e){return typeof e==="string"&&ox.some((t)=>t===e)}function xt(){let e=Go(pt.theme);return JL(e)?e:vt}var rx=["left","right","bottom"],D={bottom:{collapsed:!0,size:220},left:{collapsed:!1,size:240},right:{collapsed:!1,size:280}},iA={bottom:D.bottom.size,left:D.left.size,right:D.right.size},Pt={bottom:"--dock-h-bottom",left:"--panel-w-left",right:"--panel-w-right"},Tt={bottom:"bottom-collapsed",left:"left-collapsed",right:"right-collapsed"},YL=0.5,oC=0.2,rC=0.8;function kt(e){return Z(e)&&e>=oC&&e<=rC?e:YL}function oA(e){h.paneSplit=Math.min(rC,Math.max(oC,e))}function It(){try{let e=JSON.parse(localStorage.getItem(De)||"{}");return v(e)?e:{}}catch{return{}}}function _t(e){return{left:e("left"),right:e("right"),bottom:e("bottom")}}function Re(){return{branches:null,commitMessage:"",diffState:null,error:null,lastUpdated:null,loading:!1,logEntries:null,rev:0,status:null}}function $e(){return{build:{for:"",state:"idle",text:""},deploys:{error:"",project:"",rows:[],state:"idle"},destination:Ce,review:{number:0,url:""},tab:Ee}}var Et="tokens";function Je(){return{customizedOnly:!1,filter:"",selection:null,variable:null,view:Et}}function Ct(){let e=It(),t=_t((o)=>{let r=e[o],s=e[`${o}Collapsed`];return{collapsed:Xe(s)?s:D[o].collapsed,size:Z(r)&&r>0?r:D[o].size}});return{bottomTab:KL(e.bottomTab)?e.bottomTab:GL,docks:t,focusRegion:"pane",paneSplit:kt(e.paneSplit),git:Re(),publish:$e(),layoutSelection:null,leftTab:Oe(se(e.leftTab)),stylebook:Je(),theme:xt(),workspace:wx}}je();var At=["jx-studio-doc-header-expanded"];function jt(){try{for(let e of At)localStorage.removeItem(e)}catch{}}jt();var h=g(Ct());function Fd(){try{localStorage.setItem(De,JSON.stringify({bottom:h.docks.bottom.size,bottomCollapsed:h.docks.bottom.collapsed,bottomTab:h.bottomTab,left:h.docks.left.size,leftCollapsed:h.docks.left.collapsed,leftTab:h.leftTab,paneSplit:h.paneSplit,right:h.docks.right.size,rightCollapsed:h.docks.right.collapsed}))}catch{}}var re,ae={};function ce(e){if(!e)return{};try{let t=JSON.parse(localStorage.getItem(`${Le}${e}`)||"{}");return v(t)?t:{}}catch{return{}}}function ZL(e){let t=ce(e).workspace;return N$(t)?t:wx}function rA(e){return _e(ce(e).session)}var ue=null;function sx(e){ue=e}function sA(){fe()}function fe(){let e=m.projectRoot;if(!e)return;try{localStorage.setItem(`${Le}${e}`,JSON.stringify({session:e===ue?Ie():ce(e).session,workspace:h.workspace}))}catch{}}function Nt(e){if(e===re)return;if(re=e,ae={},h.workspace=ZL(e),e===null){h.leftTab=Oe(se(h.leftTab));return}Jr();try{Me(h.workspace),Fd()}finally{Yr()}}function XL(e,t){let{inspector:o}=Vc[e];return o.open||o.whileWriting===!0&&t}function Me(e,t){let o=Vc[e],r=se(o.navigator.panel??ae[e]??o.navigator.initial??h.leftTab);if(r)h.leftTab=r;if(h.docks.left.collapsed=!o.navigator.open,h.docks.right.collapsed=!XL(e,t?.writingOnCanvas?.()===!0),o.inspector.tab&&t)t.setInspectorTab(o.inspector.tab)}function sC(e,t){if(h.workspace===e)return!1;if(!Vc[h.workspace].navigator.panel)ae[h.workspace]=h.leftTab;return h.workspace=e,Me(e,t),Fd(),fe(),!0}function _m(e=h.theme){return e==="light"?"vs":"vs-dark"}function Ot(){document.documentElement.dataset.theme=h.theme,tf()?.editor.setTheme(_m())}var Dt="rail-hidden",Lt="tabs-hidden";function Ob(e=h.workspace){return Vc[e].tabStrip}function Rt(){let e=document.documentElement;for(let o of rx)e.style.setProperty(Pt[o],`${h.docks[o].size}px`);let t=document.querySelector("#app");if(!t)return;for(let o of rx)t.classList.toggle(Tt[o],h.docks[o].collapsed);t.classList.toggle(Dt,!Vc[h.workspace].rail),t.classList.toggle(Lt,!Vc[h.workspace].tabStrip)}var X=null,ie=[];function Mb(e){if(!ie.includes(e))ie.push(e)}function aA(){if(X)return;for(let e of ie)e.mount();X=ge(),X.run(()=>{ne(()=>{Rt()}),ne(()=>{Ot()}),ne(()=>{Nt(m.projectRoot)}),ne(()=>{let e=m.projectRoot;m.activePaneId;for(let t of m.panes)t.id,t.activeTabId,t.tabOrder.join("\x00");if(e)fe()})})}function Eo(e,t){if(h.docks[e].collapsed===t){Fd();return}h.docks[e].collapsed=t,Fd()}function $t(e){Eo(e,!h.docks[e].collapsed)}function lA(e,t){h.docks[e].size=t}function Uc(e){h.leftTab=e,Eo("left",!1),Fd()}function sh(e){h.bottomTab=e,Eo("bottom",!1),Fd()}function QL(e){if(h.theme===e)return;h.theme=e,Cr(pt.theme,e)}function cA(e){if(e===h.leftTab&&!h.docks.left.collapsed){Eo("left",!0);return}Uc(e)}function e$(e){h.layoutSelection=e}function ax(){Object.assign(h.git,Re()),Object.assign(h.publish,$e()),Object.assign(h.stylebook,Je()),h.layoutSelection=null,ue=null,re=void 0}function Ne(e,t){if(t.showWorkspace){t.showWorkspace(e);return}sC(e,t)}var ee=(e)=>e.project.open;function Jt(e){return[{args:Se({tab:di(W,"Which Navigator panel to show.")}),category:"View",id:"view.setActivity",level:"application",menus:["commandbar/overflow","palette"],group:"4_docks",requires:"an open project",when:ee,run:(t,o)=>{let r=Vn("view.setActivity",o,"tab",W);if(e.panelAvailable&&!e.panelAvailable(r))throw RangeError(`command "view.setActivity" argument "tab": "${r}" names a panel that is registered but not available right now, so showing it would persist a Navigator tab nothing can draw`);Uc(r)},title:"Show Navigator Panel"},{args:Se({tab:di(oe,"Which Inspector tab to show.")}),category:"View",id:"view.setRightTab",level:"document",menus:["palette"],group:"4_docks",requires:"an open document",when:(t)=>t.document.open,run:(t,o)=>{e.setInspectorTab(Vn("view.setRightTab",o,"tab",oe))},title:"Show Inspector Tab"},{args:Se({open:$o("True to show the Navigator dock, false to collapse it.")}),category:"View",id:"view.setNavigator",level:"application",menus:["palette"],group:"4_docks",run:(t,o)=>{Eo("left",!zi("view.setNavigator",o,"open"))},title:"Show Navigator Dock"},{args:Se({open:$o("True to show the Inspector dock, false to collapse it.")}),category:"View",id:"view.setRightPanel",level:"application",menus:["palette"],group:"4_docks",run:(t,o)=>{Eo("right",!zi("view.setRightPanel",o,"open"))},title:"Show Inspector Dock"},{args:Se({open:$o("True to show the Bottom dock, false to collapse it.")}),category:"View",id:"view.setBottomDock",level:"application",menus:["palette"],group:"4_docks",run:(t,o)=>{Eo("bottom",!zi("view.setBottomDock",o,"open"))},title:"Show Bottom Dock"},{category:"View",id:"view.toggleBottomDock",keybinding:"mod+j",level:"application",menus:["commandbar/overflow","palette"],group:"4_docks",run:()=>{$t("bottom")},title:"Toggle Bottom Dock"},{args:Se({tab:di(ix,"Which Bottom dock tab to show.")}),category:"View",id:"view.setBottomTab",level:"application",menus:["palette"],group:"4_docks",run:(t,o)=>{let r=Vn("view.setBottomTab",o,"tab",ix);if(e.panelAvailable&&!e.panelAvailable(r))throw RangeError(`command "view.setBottomTab" argument "tab": "${r}" names a panel that is registered but not available right now, so showing it would persist a Bottom dock tab nothing can draw`);sh(r)},title:"Show Bottom Dock Tab"},{args:Se({open:$o("True to show the Assistant tab, false to step off it.")}),category:"View",id:"view.setAssistant",level:"application",menus:["never"],group:"4_docks",run:(t,o)=>{if(zi("view.setAssistant",o,"open")){Eo("right",!1),e.setInspectorTab("assistant");return}if(e.inspectorTab()==="assistant")e.setInspectorTab(e.restingInspectorTab?.()??tx)},title:"Show Assistant"},{args:Se({workspace:di(_C,"Which workspace to show.")}),category:"View",id:"view.setWorkspace",level:"application",menus:["never"],group:"4_workspaces",requires:"an open project",when:ee,run:(t,o)=>{Ne(Vn("view.setWorkspace",o,"workspace",_C),e)},title:"Switch Workspace"},...tv.map((t,o)=>({category:"View",id:`workspace.focus.${t.id}`,keybinding:`mod+${o+1}`,level:"application",menus:["palette"],group:"4_workspaces",requires:"an open project",when:ee,run:()=>{Ne(t.id,e)},title:`Go to ${t.title}`})),{args:Se({color:di(ox,"The Studio chrome's theme.")}),category:"View",id:"view.setTheme",level:"application",menus:["palette"],group:"6_appearance",run:(t,o)=>{QL(Vn("view.setTheme",o,"color",ox))},title:"Set Theme"}]}function dA(e,t){e.registerAll(Jt(t))}
|
|
13
|
-
export{
|
|
12
|
+
`)}function xm(e){return ko(e,we())}var k=null,j=null,N=null,I=null;function we(){return ve()?.doc.layout??I}var G=null;function ve(){let e=m.tabs.get(an);return e?he(e):null}function Qe(){if(j)Am(j),j=null;k=null,N=null,I=null,G=null}function xe(){return G??=(async()=>{try{let e=await p().readFile(an),{document:t,layout:o}=ks(e);I=o,N=ko(t,we())}catch{N=null}})(),G}async function PL(e){if(await xe(),e.doc.layout===null&&I!==null)e.doc.layout=I}function et(e){let t=wn();if(t.projectConfig===e)return;ed({...t,projectConfig:e}),Ql(m.projectRoot,e)}function tt(){let e=S?.projectConfig;return e?he(e):null}function K(e){return he(e)}function Pe(e,t){for(let o of Object.keys(e))delete e[o];Object.assign(e,t)}function be(e){return k=e,e.scope.run(()=>{ne(()=>{let t=e.doc.document;if(k!==e||!S)return;et(K(t))})}),e}function JS(){let e=wn(),t=ve();if(k&&(k!==(t??j)||he(k.doc.document)!==e.projectConfig))Qe();if(k)return k;if(t)return be(t);return j=iv({document:e.projectConfig??{},documentPath:an,id:an}),be(j)}function ye(e){return JSON.stringify(e.extensions??null)}async function ot(){let{loadFormats:e,refreshExtensionUi:t,refreshFormats:o}=await (le("3mtbhxk1"),import("./format-host-3mtbhxk1.js"));o(),e(),t(p())}async function Gl(e){let t=tt(),o=JS();await PL(o);let r=K(o.doc.document),s=xm(r),i=t&&t!==r&&xm(t)!==s?t:null;if(i&&o.doc.dirty){let b=Error(`${an} has unsaved changes in its editor tab`);return C.error(`Could not save ${an} — the file is open with unsaved changes. Save or `+"revert that tab, then make the settings change again.",{key:`save:${an}`,path:an,source:"Settings"}),{error:b,ok:!1}}let a=i??r,l=e?{...a,...e}:a,u=xm(l);if(!i&&!o.doc.dirty&&u===N)return{ok:!0};let d=ye(r);Y(o,(b)=>{let y=b.doc.document;if(i)Pe(y,i);for(let[x,P]of Object.entries(e??{}))y[x]=P});let c=K(o.doc.document),f=xm(c);try{await p().writeFile(an,f)}catch(b){return C.error(`Could not save ${an} — ${Q(b)}`,{key:`save:${an}`,path:an,source:"Settings"}),{error:b,ok:!1}}if(N=f,o.doc.dirty=!1,ye(c)!==d)await ot();return{ok:!0}}async function GN(e,t){if(!S){Ql(m.projectRoot,e);return}let o=JS();Y(o,(r)=>Pe(r.doc.document,e),{skipHistory:!0}),o.doc.dirty=!1,await xe(),I=H(t),o.doc.layout=I,N=xm(e)}function eo(e){let t=S?.projectConfig?.$media;if(!t)return e||{};if(!e)return{...t};return{...t,...e}}function xr(e){let t=S?.projectConfig?.style;if(!t)return e||{};if(!e)return{...t};let o={...t};for(let[r,s]of Object.entries(e)){let i=o[r];o[r]=_(s)&&_(i)?{...i,...s}:s}return o}function KN(e,t=[]){return{...FL(t),...S?.projectConfig?.imports,...e}}function FL(e){let t=e.flatMap((o)=>(o.classes??[]).filter((r)=>r.path.endsWith(".class.json")).map((r)=>[r.name,r.path]));return Object.fromEntries(t.toReversed())}function Kw(e){let t=S?.projectConfig?.$elements;if(!t?.length)return e||[];if(!e?.length)return[...t];let o=new Set,r=[];for(let s of[...t,...e]){let i=n(s)?s:_(s)?s.$ref:void 0;if(i&&!o.has(i))o.add(i),r.push(s)}return r}function Jw(e){let t=S?.projectConfig?.$head;if(!t?.length)return e||[];if(!e?.length)return[...t];let o=new Set,r=[];for(let s of[...t,...e]){let i=_(s)?s.attributes:void 0,a=String(i?.href||i?.src||"")||JSON.stringify(s);if(!o.has(a))o.add(a),r.push(s)}return r}function Es(){let e=S?.projectConfig;return e?ln(e).i18n:null}function Rp(e,t){let o=Es();if(o===null)return null;let r=Pn(e);if(r!==null&&o.locales.includes(r))return r;return go(t??"",o)??o.defaultLocale}var q=new Map;function JN(){q.clear()}function ol(e){if(e===!1)return null;let t=S?.projectConfig?.defaults?.layout;return e||t||null}async function Yw(e){let t=e.replace(/^\.\//,""),o=q.get(t);if(o!==void 0)return structuredClone(o);try{let s=await p().readFile(t),i=JSON.parse(s);return q.set(t,i),structuredClone(i)}catch{return null}}function jL(e,t){let o=t.children??[],r=Array.isArray(o)?o:[],s=new Map,i=[];for(let a of r){let l=n(a)?void 0:a.attributes?.slot;if(!n(a)&&n(l)&&l){if(!s.has(l))s.set(l,[]);s.get(l).push(a)}else i.push(a)}if(Te(e,s,i),t.state)e.state={...e.state,...t.state};if(t.$media)e.$media={...e.$media,...t.$media};if(t.style)e.style={...e.style,...t.style};if(t.attributes)e.attributes={...e.attributes,...t.attributes};return e}function Te(e,t,o){if(!Array.isArray(e.children))return;let r=[];for(let s of e.children)if(_(s)&&s.tagName==="slot"){let i=s.attributes?.name;if(n(i)&&i&&t.has(i))r.push(...t.get(i)),t.delete(i);else if(!i&&o.length>0)r.push(...o);else if(Array.isArray(s.children))r.push(...s.children)}else{if(_(s))Te(s,t,o);r.push(s)}e.children=r}async function to(e){let t=await Gl(e);if(!t.ok)throw t.error}var ke=new Set([ui,Fm]),nt=new Set(["auto","light","dark"]);function rt(e){return n(e)&&nt.has(e)}function it(e){let{ui:t}=e.session;return{activeMedia:t.activeMedia,canvasMode:t.canvasMode,editZoom:t.editZoom,preview:t.preview,previewColorScheme:t.previewColorScheme,previewLocale:t.previewLocale,showLayout:t.showLayout,zoom:t.zoom}}function Ie(){let e={},t=[];for(let o of m.panes){if(o.derived)continue;let r=[];for(let i of o.tabOrder){let a=m.tabs.get(i);if(!a?.documentPath)continue;r.push(a.documentPath),e[a.documentPath]=it(a)}if(r.length===0)continue;let s=o.activeTabId?m.tabs.get(o.activeTabId):null;t.push({activeFile:s?.documentPath??null,files:r,id:o.id})}return{focusedPane:m.activePaneId,panes:t,ui:e}}function st(e){if(!v(e))return{};let t={};if(n(e.canvasMode))t.canvasMode=e.canvasMode;if(Xe(e.preview))t.preview=e.preview;if(Z(e.zoom)&&Number.isFinite(e.zoom))t.zoom=e.zoom;if(Z(e.editZoom)&&Number.isFinite(e.editZoom))t.editZoom=e.editZoom;if(e.activeMedia===null||n(e.activeMedia))t.activeMedia=e.activeMedia;if(rt(e.previewColorScheme))t.previewColorScheme=e.previewColorScheme;if(e.previewLocale===null||n(e.previewLocale)&&mx(e.previewLocale))t.previewLocale=e.previewLocale;if(Xe(e.showLayout))t.showLayout=e.showLayout;return t}function _e(e){if(!v(e)||!Array.isArray(e.panes))return null;let t=[];for(let r of e.panes){if(!v(r)||!n(r.id)||!ke.has(r.id))continue;let s=Array.isArray(r.files)?r.files.filter((i)=>n(i)&&i!==""):[];if(s.length===0)continue;t.push({activeFile:n(r.activeFile)&&s.includes(r.activeFile)?r.activeFile:null,files:s,id:r.id})}if(t.length===0)return null;let o={};if(_(e.ui))for(let[r,s]of Object.entries(e.ui))o[r]=st(s);return{focusedPane:n(e.focusedPane)&&ke.has(e.focusedPane)?e.focusedPane:ui,panes:t,ui:o}}async function YN(e,t){let o=0;if(e.panes.some((i)=>i.id===Fm))t.ensureSecondPane();for(let i of e.panes)for(let a of i.files){try{await t.openFile(a,i.id)}catch{}if([...m.tabs.values()].some((l)=>l.documentPath===a))o+=1}if(o===0)return 0;for(let i of m.tabs.values()){let a=i.documentPath?e.ui[i.documentPath]:void 0;if(!a)continue;let{ui:l}=i.session;if(a.canvasMode&&i.capabilities.modes.includes(a.canvasMode))l.canvasMode=a.canvasMode;if(a.preview!==void 0)l.preview=a.preview;if(a.zoom!==void 0)l.zoom=a.zoom;if(a.editZoom!==void 0)l.editZoom=a.editZoom;if(a.activeMedia!==void 0)l.activeMedia=a.activeMedia;if(a.previewColorScheme!==void 0)l.previewColorScheme=a.previewColorScheme;if(a.previewLocale!==void 0)l.previewLocale=a.previewLocale;if(a.showLayout!==void 0)l.showLayout=a.showLayout}let r=m.panes.some((i)=>i.id===e.focusedPane)?e.focusedPane:null,s=null;for(let i of e.panes){let a=m.panes.find((u)=>u.id===i.id);if(!a||!i.activeFile)continue;let l=a.tabOrder.find((u)=>m.tabs.get(u)?.documentPath===i.activeFile);if(!l)continue;if(a.id===r)s=l;else Ht(l,{focus:!1})}if(s)Ht(s);else if(r)Er(r);return o}var _m=["review","deploys","branches","hosting"],YS={branches:"Branches",deploys:"Deploys",hosting:"Hosting",review:"Review changes"},at=["live","review"],Ee="review",Ce="live",lt=new Set(_m),ct=new Set(at);function ZN(e){return typeof e==="string"&<.has(e)}function Zw(e){return typeof e==="string"&&ct.has(e)}var ut={default:{description:"Resume whatever was persisted — layout, recents, settings, chat history.",id:"default",reset:"none"},fresh:{description:"A first-run app: no layout, no recents, no settings, no history.",id:"fresh",reset:"app-state"}},Ae=new Map(Object.entries(ut)),ft="default",dt=/^jx[-._:]/;function mt(e){return dt.test(e)}function gt(){let e=typeof localStorage>"u"?void 0:localStorage;if(!e)return[];let t=[];try{for(let o=0;o<e.length;o++){let r=e.key(o);if(r&&mt(r))t.push(r)}for(let o of t)e.removeItem(o)}catch{}return t}function bt(e){let t=Ae.get(e);if(!t)throw RangeError(`unknown startup profile "${e}"; declared: ${[...Ae.keys()].join(", ")}`);if(t.reset==="app-state")gt();return t}var B=null;function je(e){if(B)return B;let t=new URLSearchParams(e??(typeof location>"u"?"":location.search)),o=bt(t.get("profile")??ft),r=t.get("clock");return B={clock:r===null?null:YO(r),profile:o},B}var W=["site","collections","styles","files","search","i18n","layers","data","packages","insert"],ht=new Set(["collections","styles"]);function Oe(e){return e&&!ht.has(e)?e:yt}var St=new Map([["blocks","insert"],["head","site"],["page","site"],["imports","packages"],["git","site"],["state","data"]]),yt="site";function ZS(e,t){let o=W.find((r)=>r===e);if(o===void 0)throw Error(`${t}: "${e}" is not a declared Navigator panel id.`);return o}function se(e){if(!n(e))return null;let t=St.get(e);if(t)return t;return W.find((o)=>o===e)??null}var oe=["page","properties","style","events","assistant"],Xw="page",wt=["properties","style","events"],XS="properties";function Qw(e){return typeof e==="string"&&wt.some((t)=>t===e)}function HL(e){return typeof e==="string"&&oe.some((t)=>t===e)}var ex=["problems","logic","activity"],BL="problems";function zL(e){return typeof e==="string"&&ex.some((t)=>t===e)}var tx=["light","dark"],Bc={content:{id:"content",inspector:{open:!1,whileWriting:!0},navigator:{open:!0,panel:"collections"},rail:!1,tabStrip:!0},design:{id:"design",inspector:{open:!0},navigator:{initial:"site",open:!0},rail:!0,tabStrip:!0},media:{id:"media",inspector:{open:!1},navigator:{open:!1},rail:!1,tabStrip:!1},publish:{id:"publish",inspector:{open:!1},navigator:{open:!1},rail:!1,tabStrip:!1},styles:{id:"styles",inspector:{open:!1,tab:"style",whileWriting:!0},navigator:{open:!0,panel:"styles"},rail:!1,tabStrip:!1}},De="jx-studio-panel-widths",Le="jx-studio-project::",vt="dark";function WL(e){return typeof e==="string"&&tx.some((t)=>t===e)}function xt(){let e=Go(pt.theme);return WL(e)?e:vt}var nx=["left","right","bottom"],D={bottom:{collapsed:!0,size:220},left:{collapsed:!1,size:240},right:{collapsed:!1,size:280}},XN={bottom:D.bottom.size,left:D.left.size,right:D.right.size},Pt={bottom:"--dock-h-bottom",left:"--panel-w-left",right:"--panel-w-right"},Tt={bottom:"bottom-collapsed",left:"left-collapsed",right:"right-collapsed"},VL=0.5,QS=0.2,eC=0.8;function kt(e){return Z(e)&&e>=QS&&e<=eC?e:VL}function QN(e){h.paneSplit=Math.min(eC,Math.max(QS,e))}function It(){try{let e=JSON.parse(localStorage.getItem(De)||"{}");return v(e)?e:{}}catch{return{}}}function _t(e){return{left:e("left"),right:e("right"),bottom:e("bottom")}}function Re(){return{branches:null,commitMessage:"",diffState:null,error:null,lastUpdated:null,loading:!1,logEntries:null,rev:0,status:null}}function $e(){return{build:{for:"",state:"idle",text:""},deploys:{error:"",project:"",rows:[],state:"idle"},destination:Ce,review:{number:0,url:""},tab:Ee}}var Et="tokens";function Je(){return{customizedOnly:!1,filter:"",selection:null,variable:null,view:Et}}function Ct(){let e=It(),t=_t((o)=>{let r=e[o],s=e[`${o}Collapsed`];return{collapsed:Xe(s)?s:D[o].collapsed,size:Z(r)&&r>0?r:D[o].size}});return{bottomTab:zL(e.bottomTab)?e.bottomTab:BL,docks:t,focusRegion:"pane",paneSplit:kt(e.paneSplit),git:Re(),publish:$e(),layoutSelection:null,leftTab:Oe(se(e.leftTab)),stylebook:Je(),theme:xt(),workspace:bx}}je();var At=["jx-studio-doc-header-expanded"];function jt(){try{for(let e of At)localStorage.removeItem(e)}catch{}}jt();var h=g(Ct());function Md(){try{localStorage.setItem(De,JSON.stringify({bottom:h.docks.bottom.size,bottomCollapsed:h.docks.bottom.collapsed,bottomTab:h.bottomTab,left:h.docks.left.size,leftCollapsed:h.docks.left.collapsed,leftTab:h.leftTab,paneSplit:h.paneSplit,right:h.docks.right.size,rightCollapsed:h.docks.right.collapsed}))}catch{}}var re,ae={};function ce(e){if(!e)return{};try{let t=JSON.parse(localStorage.getItem(`${Le}${e}`)||"{}");return v(t)?t:{}}catch{return{}}}function UL(e){let t=ce(e).workspace;return L$(t)?t:bx}function eA(e){return _e(ce(e).session)}var ue=null;function ix(e){ue=e}function tA(){fe()}function fe(){let e=m.projectRoot;if(!e)return;try{localStorage.setItem(`${Le}${e}`,JSON.stringify({session:e===ue?Ie():ce(e).session,workspace:h.workspace}))}catch{}}function Nt(e){if(e===re)return;if(re=e,ae={},h.workspace=UL(e),e===null){h.leftTab=Oe(se(h.leftTab));return}Kr();try{Me(h.workspace),Md()}finally{Jr()}}function qL(e,t){let{inspector:o}=Bc[e];return o.open||o.whileWriting===!0&&t}function Me(e,t){let o=Bc[e],r=se(o.navigator.panel??ae[e]??o.navigator.initial??h.leftTab);if(r)h.leftTab=r;if(h.docks.left.collapsed=!o.navigator.open,h.docks.right.collapsed=!qL(e,t?.writingOnCanvas?.()===!0),o.inspector.tab&&t)t.setInspectorTab(o.inspector.tab)}function tC(e,t){if(h.workspace===e)return!1;if(!Bc[h.workspace].navigator.panel)ae[h.workspace]=h.leftTab;return h.workspace=e,Me(e,t),Md(),fe(),!0}function Sm(e=h.theme){return e==="light"?"vs":"vs-dark"}function Ot(){document.documentElement.dataset.theme=h.theme,nf()?.editor.setTheme(Sm())}var Dt="rail-hidden",Lt="tabs-hidden";function Db(e=h.workspace){return Bc[e].tabStrip}function Rt(){let e=document.documentElement;for(let o of nx)e.style.setProperty(Pt[o],`${h.docks[o].size}px`);let t=document.querySelector("#app");if(!t)return;for(let o of nx)t.classList.toggle(Tt[o],h.docks[o].collapsed);t.classList.toggle(Dt,!Bc[h.workspace].rail),t.classList.toggle(Lt,!Bc[h.workspace].tabStrip)}var X=null,ie=[];function Nb(e){if(!ie.includes(e))ie.push(e)}function nA(){if(X)return;for(let e of ie)e.mount();X=ge(),X.run(()=>{ne(()=>{Rt()}),ne(()=>{Ot()}),ne(()=>{Nt(m.projectRoot)}),ne(()=>{let e=m.projectRoot;m.activePaneId;for(let t of m.panes)t.id,t.activeTabId,t.tabOrder.join("\x00");if(e)fe()})})}function Eo(e,t){if(h.docks[e].collapsed===t){Md();return}h.docks[e].collapsed=t,Md()}function $t(e){Eo(e,!h.docks[e].collapsed)}function iA(e,t){h.docks[e].size=t}function zc(e){h.leftTab=e,Eo("left",!1),Md()}function rh(e){h.bottomTab=e,Eo("bottom",!1),Md()}function GL(e){if(h.theme===e)return;h.theme=e,_r(pt.theme,e)}function oA(e){if(e===h.leftTab&&!h.docks.left.collapsed){Eo("left",!0);return}zc(e)}function KL(e){h.layoutSelection=e}function ox(){Object.assign(h.git,Re()),Object.assign(h.publish,$e()),Object.assign(h.stylebook,Je()),h.layoutSelection=null,ue=null,re=void 0}function Ne(e,t){if(t.showWorkspace){t.showWorkspace(e);return}tC(e,t)}var ee=(e)=>e.project.open;function Jt(e){return[{args:Se({tab:di(W,"Which Navigator panel to show.")}),category:"View",id:"view.setActivity",level:"application",menus:["commandbar/overflow","palette"],group:"4_docks",requires:"an open project",when:ee,run:(t,o)=>{let r=Wn("view.setActivity",o,"tab",W);if(e.panelAvailable&&!e.panelAvailable(r))throw RangeError(`command "view.setActivity" argument "tab": "${r}" names a panel that is registered but not available right now, so showing it would persist a Navigator tab nothing can draw`);zc(r)},title:"Show Navigator Panel"},{args:Se({tab:di(oe,"Which Inspector tab to show.")}),category:"View",id:"view.setRightTab",level:"document",menus:["palette"],group:"4_docks",requires:"an open document",when:(t)=>t.document.open,run:(t,o)=>{e.setInspectorTab(Wn("view.setRightTab",o,"tab",oe))},title:"Show Inspector Tab"},{args:Se({open:$o("True to show the Navigator dock, false to collapse it.")}),category:"View",id:"view.setNavigator",level:"application",menus:["palette"],group:"4_docks",run:(t,o)=>{Eo("left",!Bi("view.setNavigator",o,"open"))},title:"Show Navigator Dock"},{args:Se({open:$o("True to show the Inspector dock, false to collapse it.")}),category:"View",id:"view.setRightPanel",level:"application",menus:["palette"],group:"4_docks",run:(t,o)=>{Eo("right",!Bi("view.setRightPanel",o,"open"))},title:"Show Inspector Dock"},{args:Se({open:$o("True to show the Bottom dock, false to collapse it.")}),category:"View",id:"view.setBottomDock",level:"application",menus:["palette"],group:"4_docks",run:(t,o)=>{Eo("bottom",!Bi("view.setBottomDock",o,"open"))},title:"Show Bottom Dock"},{category:"View",id:"view.toggleBottomDock",keybinding:"mod+j",level:"application",menus:["commandbar/overflow","palette"],group:"4_docks",run:()=>{$t("bottom")},title:"Toggle Bottom Dock"},{args:Se({tab:di(ex,"Which Bottom dock tab to show.")}),category:"View",id:"view.setBottomTab",level:"application",menus:["palette"],group:"4_docks",run:(t,o)=>{let r=Wn("view.setBottomTab",o,"tab",ex);if(e.panelAvailable&&!e.panelAvailable(r))throw RangeError(`command "view.setBottomTab" argument "tab": "${r}" names a panel that is registered but not available right now, so showing it would persist a Bottom dock tab nothing can draw`);rh(r)},title:"Show Bottom Dock Tab"},{args:Se({open:$o("True to show the Assistant tab, false to step off it.")}),category:"View",id:"view.setAssistant",level:"application",menus:["never"],group:"4_docks",run:(t,o)=>{if(Bi("view.setAssistant",o,"open")){Eo("right",!1),e.setInspectorTab("assistant");return}if(e.inspectorTab()==="assistant")e.setInspectorTab(e.restingInspectorTab?.()??Xw)},title:"Show Assistant"},{args:Se({workspace:di(gC,"Which workspace to show.")}),category:"View",id:"view.setWorkspace",level:"application",menus:["never"],group:"4_workspaces",requires:"an open project",when:ee,run:(t,o)=>{Ne(Wn("view.setWorkspace",o,"workspace",gC),e)},title:"Switch Workspace"},...Xb.map((t,o)=>({category:"View",id:`workspace.focus.${t.id}`,keybinding:`mod+${o+1}`,level:"application",menus:["palette"],group:"4_workspaces",requires:"an open project",when:ee,run:()=>{Ne(t.id,e)},title:`Go to ${t.title}`})),{args:Se({color:di(tx,"The Studio chrome's theme.")}),category:"View",id:"view.setTheme",level:"application",menus:["palette"],group:"6_appearance",run:(t,o)=>{GL(Wn("view.setTheme",o,"color",tx))},title:"Set Theme"}]}function rA(e,t){e.registerAll(Jt(t))}
|
|
13
|
+
export{ks,ko,xm,PL,JS,Gl,GN,eo,xr,KN,FL,Kw,Jw,Es,Rp,JN,ol,Yw,jL,to,YN,_m,YS,ZN,Zw,ZS,Xw,XS,Qw,HL,ex,BL,zL,tx,Bc,WL,nx,XN,VL,QS,eC,QN,h,Md,UL,eA,ix,tA,qL,tC,Sm,Db,Nb,nA,Eo,iA,zc,rh,GL,oA,KL,ox,rA};
|
|
14
14
|
|
|
15
|
-
//# debugId=
|
|
16
|
-
//# sourceMappingURL=studio-
|
|
15
|
+
//# debugId=8408C225C4EFE90D64756E2164756E21
|
|
16
|
+
//# sourceMappingURL=studio-m4w6sygj.js.map
|