@jxsuite/studio 10.3.0 → 10.5.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-7sx2vexa.js +4 -0
- package/dist/chunks/adapter-12dxr3z7.js +4 -0
- package/dist/chunks/{add-new-flow-3tkn72ey.js → add-new-flow-any4pw2q.js} +3 -3
- package/dist/chunks/{cf-account-picker-xb8vvt2h.js → cf-account-picker-ajh60k54.js} +3 -3
- package/dist/chunks/cf-settings-hbj16kh3.js +4 -0
- package/dist/chunks/{color-area-h8dbasp1.js → color-area-gbcftzh3.js} +2 -2
- package/dist/chunks/{color-field-qv5r2b16.js → color-field-85136598.js} +3 -3
- package/dist/chunks/{color-slider-nz2mrzky.js → color-slider-w1s3ndd8.js} +2 -2
- package/dist/chunks/color-thzpppyc.js +4 -0
- package/dist/chunks/{combobox-6hs00996.js → combobox-dk98wc5x.js} +3 -3
- package/dist/chunks/components-a98hzqw9.js +4 -0
- package/dist/chunks/content-source-jq3fjs3w.js +4 -0
- package/dist/chunks/{convert-to-repeater-gwzh9gar.js → convert-to-repeater-g66r6qp1.js} +3 -3
- package/dist/chunks/editor-rth1rzj8.js +4 -0
- package/dist/chunks/entry-commands-02j0s19w.js +4 -0
- package/dist/chunks/{extension-sections-338ee35t.js → extension-sections-rqrs7dr0.js} +3 -3
- package/dist/chunks/file-ops-6a49er4c.js +4 -0
- package/dist/chunks/files-b2p9y0yz.js +4 -0
- package/dist/chunks/format-host-7xe57k1s.js +4 -0
- package/dist/chunks/fs-events-0xsy168g.js +4 -0
- package/dist/chunks/grid-open-h3q4fjy5.js +4 -0
- package/dist/chunks/{grid-view-w9nfy203.js → grid-view-0v4hjspb.js} +17 -17
- package/dist/chunks/{icons-gb967qc8.js → icons-j9eksgew.js} +2 -2
- package/dist/chunks/{iframe-entry-btck0e9s.js → iframe-entry-4zqtn3ry.js} +4 -4
- package/dist/chunks/{iframe-entry-b5qgggyp.js → iframe-entry-54kwwhmg.js} +4 -4
- package/dist/chunks/{iframe-entry-42hpmwz5.js → iframe-entry-m24fza30.js} +4 -4
- package/dist/chunks/iframe-host-8jcmaktg.js +4 -0
- package/dist/chunks/{image-bake-4afr4y6a.js → image-bake-m8gzaan9.js} +3 -3
- package/dist/chunks/{image-editor-x7t8jbjn.js → image-editor-0afyws7c.js} +3 -3
- package/dist/chunks/{index-yjrfeks8.js → index-2q88g57p.js} +3 -3
- package/dist/chunks/index-7nj2375a.js +4 -0
- package/dist/chunks/{javascript-hy2mws8v.js → javascript-5sxtr1g7.js} +3 -3
- package/dist/chunks/jsonMode-m6sf47hq.js +13 -0
- package/dist/chunks/jx-validate-808zgbgy.js +4 -0
- package/dist/chunks/layers-0ffdtqjn.js +4 -0
- package/dist/chunks/layers-panel-rw62wtvf.js +4 -0
- package/dist/chunks/{listbox-7gka1h86.js → listbox-k5p41049.js} +2 -2
- package/dist/chunks/lit-html-9bz9rcfv.js +4 -0
- package/dist/chunks/media-library-2a5hdbek.js +4 -0
- package/dist/chunks/media-open-069kzhj4.js +4 -0
- package/dist/chunks/media-picker-4p4pd28y.js +4 -0
- package/dist/chunks/menu-26nez152.js +4 -0
- package/dist/chunks/{monaco-binding-a51py33c.js → monaco-binding-1s2b8snq.js} +3 -3
- package/dist/chunks/monaco-buffer-m9fd2dka.js +4 -0
- package/dist/chunks/monaco-setup-e0crh3v6.js +4 -0
- package/dist/chunks/notify-re3js157.js +4 -0
- package/dist/chunks/platform-rywy3tkg.js +4 -0
- package/dist/chunks/popover-fhdnt4be.js +4 -0
- package/dist/chunks/publish-panel-czkpg8m4.js +4 -0
- package/dist/chunks/{publish-quick-w3nxd7q4.js → publish-quick-b9wbhqj6.js} +3 -3
- package/dist/chunks/publish-workspace-yy6d23b7.js +4 -0
- package/dist/chunks/quick-search-tp7pjnmv.js +4 -0
- package/dist/chunks/references-wd2yj8s1.js +4 -0
- package/dist/chunks/right-panel-x971k0zc.js +4 -0
- package/dist/chunks/source-control-k4p00hpe.js +4 -0
- package/dist/chunks/{split-m5rwn31z.js → split-qh21j2b0.js} +2 -2
- package/dist/chunks/{studio-v5wktj6f.js → studio-151kgn69.js} +4 -4
- package/dist/chunks/studio-15mfah02.js +10 -0
- package/dist/chunks/studio-1a7zshnv.js +5 -0
- package/dist/chunks/studio-1d8m5s38.js +16 -0
- package/dist/chunks/studio-35pmfjtx.js +5 -0
- package/dist/chunks/{studio-3na1r48j.js → studio-3yr1zdp9.js} +8 -8
- package/dist/chunks/studio-43pynnhz.js +5 -0
- package/dist/chunks/studio-44xqe0b7.js +4 -0
- package/dist/chunks/{studio-hh394phe.js → studio-48yzqzqr.js} +4 -4
- package/dist/chunks/{studio-nskxe9q1.js → studio-4jy967rj.js} +5 -5
- package/dist/chunks/{studio-waekn290.js → studio-4ncxzw5m.js} +4 -4
- package/dist/chunks/{studio-pm17wdc4.js → studio-4s5bka8t.js} +4 -4
- package/dist/chunks/{studio-5tet77de.js → studio-4z0cdh16.js} +3 -3
- package/dist/chunks/studio-5rq3e4q5.js +5 -0
- package/dist/chunks/{studio-2ggfzrrd.js → studio-69g6a0jn.js} +4 -4
- package/dist/chunks/studio-6hcfm9q3.js +5 -0
- package/dist/chunks/studio-6mf31e16.js +5 -0
- package/dist/chunks/studio-6sxnqqw8.js +5 -0
- package/dist/chunks/{studio-0939t1q1.js → studio-7qqb7hb8.js} +4 -4
- package/dist/chunks/{studio-5n193zqd.js → studio-7qr8k0v2.js} +4 -4
- package/dist/chunks/{studio-0x6f3nk9.js → studio-8ncm9zwx.js} +4 -4
- package/dist/chunks/studio-8w5pa88p.js +7 -0
- package/dist/chunks/{studio-3qr08sxq.js → studio-9f5vcb4w.js} +3 -3
- package/dist/chunks/studio-aaw7wxv8.js +5 -0
- package/dist/chunks/studio-afx9brsc.js +5 -0
- package/dist/chunks/studio-ajfq4fmr.js +5 -0
- package/dist/chunks/{studio-nn4f9m9c.js → studio-ber1dgte.js} +4 -4
- package/dist/chunks/{studio-sce30r7b.js → studio-bk0anq3b.js} +3 -3
- package/dist/chunks/{studio-0gvvqj3h.js → studio-bmwgj8ez.js} +4 -4
- package/dist/chunks/{studio-321ym1tt.js → studio-bpzwhn88.js} +4 -4
- package/dist/chunks/{studio-g9brbewz.js → studio-c72v1kwc.js} +4 -4
- package/dist/chunks/{studio-tpxcryf2.js → studio-cv6gnjqd.js} +4 -4
- package/dist/chunks/{studio-90zkgne5.js → studio-czpmzs9r.js} +7 -7
- package/dist/chunks/{studio-3c10v2q1.js → studio-d5f7sskn.js} +4 -4
- package/dist/chunks/studio-dmgh2rrj.js +5 -0
- package/dist/chunks/{studio-b68k0z00.js → studio-dst8y8vh.js} +4 -4
- package/dist/chunks/studio-ehj3csbm.js +6 -0
- package/dist/chunks/{studio-thz5t120.js → studio-ek4fb4eb.js} +4 -4
- package/dist/chunks/studio-ep1384t9.js +5 -0
- package/dist/chunks/{studio-abh9kfdh.js → studio-eq5vqn1q.js} +4 -4
- package/dist/chunks/studio-erjccagy.js +5 -0
- package/dist/chunks/studio-ex1644g2.js +5 -0
- package/dist/chunks/studio-f3awr5nc.js +12 -0
- package/dist/chunks/studio-f69wcajk.js +9 -0
- package/dist/chunks/{studio-p2a03pgm.js → studio-g65t6svn.js} +4 -4
- package/dist/chunks/{studio-3q7mhbgx.js → studio-gw83z798.js} +5 -5
- package/dist/chunks/{studio-nwynxqtb.js → studio-hy936516.js} +4 -4
- package/dist/chunks/studio-j3bq30yz.js +5 -0
- package/dist/chunks/studio-j52ks8q7.js +5 -0
- package/dist/chunks/{studio-g0hxtcga.js → studio-jqvke4ac.js} +4 -4
- package/dist/chunks/{studio-bct64zmj.js → studio-k05g7efh.js} +4 -4
- package/dist/chunks/studio-kefs4sz4.js +5 -0
- package/dist/chunks/{studio-s7t4vp1d.js → studio-ketrgtph.js} +5 -5
- package/dist/chunks/studio-m3jrjfhy.js +14 -0
- package/dist/chunks/{studio-45mj4jqe.js → studio-m8hesdrw.js} +4 -4
- package/dist/chunks/{studio-k0xzrse2.js → studio-n271vdsg.js} +36 -36
- package/dist/chunks/studio-n4pnf0sw.js +5 -0
- package/dist/chunks/{studio-wfct4h6n.js → studio-ncwx602y.js} +4 -4
- package/dist/chunks/{studio-423tfdte.js → studio-nngc45ct.js} +4 -4
- package/dist/chunks/{studio-eqcddvc2.js → studio-nv5eq0f7.js} +173 -173
- package/dist/chunks/{studio-ea6r1zyr.js → studio-nzp0sqjg.js} +4 -4
- package/dist/chunks/{studio-k2evngrj.js → studio-pgze9p34.js} +5 -5
- package/dist/chunks/studio-ph17an19.js +5 -0
- package/dist/chunks/studio-pte5w7rf.js +9 -0
- package/dist/chunks/studio-pv1ts08p.js +6 -0
- package/dist/chunks/studio-q509sqt8.js +5 -0
- package/dist/chunks/{studio-stahswgb.js → studio-qarg1xf9.js} +6 -6
- package/dist/chunks/studio-r5g7fx7q.js +9 -0
- package/dist/chunks/studio-s49y6m5b.js +5 -0
- package/dist/chunks/studio-s4k1v7dt.js +7 -0
- package/dist/chunks/studio-t46rt6gx.js +5 -0
- package/dist/chunks/{studio-y1b86ast.js → studio-td3h1644.js} +4 -4
- package/dist/chunks/{studio-a65kbs2e.js → studio-thgexj3w.js} +7 -7
- package/dist/chunks/{studio-vpevkfxw.js → studio-veh91hjv.js} +4 -4
- package/dist/chunks/studio-vswmz40d.js +6 -0
- package/dist/chunks/{studio-daksw8kh.js → studio-w3aafbpk.js} +4 -4
- package/dist/chunks/studio-w4mfaaam.js +5 -0
- package/dist/chunks/{studio-4zd6an2b.js → studio-wn2cmf9q.js} +4 -4
- package/dist/chunks/studio-x5ffyssw.js +5 -0
- package/dist/chunks/{studio-swedpd82.js → studio-x5py815g.js} +4 -4
- package/dist/chunks/{studio-4fnb5648.js → studio-xh6rf05g.js} +4 -4
- package/dist/chunks/studio-z6s56dzz.js +5 -0
- package/dist/chunks/{studio-nvcn2ykc.js → studio-zav9hgb3.js} +4 -4
- package/dist/chunks/{studio-wse1rs8t.js → studio-ze1sm147.js} +6 -6
- package/dist/chunks/{studio-hfxttkyr.js → studio-zkkt13qd.js} +4 -4
- package/dist/chunks/studio-zn7ysyzb.js +5 -0
- package/dist/chunks/{studio-nf8esxxc.js → studio-ztzf8mce.js} +4 -4
- package/dist/chunks/{studio-1410q5dw.js → studio-zzgp5yka.js} +4 -4
- package/dist/chunks/{tooltip-dj1pvgz7.js → tooltip-gtx40bjg.js} +3 -3
- package/dist/chunks/{tree-j0ebwr5s.js → tree-a19s1c05.js} +2 -2
- package/dist/chunks/tsMode-3f116hth.js +14 -0
- package/dist/chunks/workspace-home-61n1jz3q.js +4 -0
- package/dist/chunks/workspace-sheek6zw.js +4 -0
- package/dist/chunks/{ws-client-arz2qsy9.js → ws-client-cb49m87s.js} +3 -3
- package/dist/iframe-entry.js +14 -14
- package/dist/manifest.json +82 -82
- package/dist/studio.js +97 -96
- package/dist/workers/ts.worker.js +3 -3
- package/package.json +11 -11
- package/src/browse/library-layouts.ts +9 -12
- package/src/browse/library-pane.ts +22 -16
- package/src/browse/library-source.ts +3 -4
- package/src/canvas/canvas-live-render.ts +2 -5
- package/src/canvas/canvas-page-context.ts +5 -0
- package/src/content/entry-commands.ts +32 -27
- package/src/content/entry-editor.ts +46 -44
- package/src/content/entry-inspector.ts +15 -12
- package/src/content/entry-model.ts +3 -3
- package/src/content/entry-summaries.ts +5 -5
- package/src/content/hold-state.ts +172 -0
- package/src/content/page-summaries.ts +10 -14
- package/src/editor/inline-edit.ts +6 -1
- package/src/editor/repeater-scope.ts +333 -74
- package/src/grid/sources/content-source.ts +42 -66
- package/src/panels/block-action-bar.ts +3 -4
- package/src/panels/events-panel.ts +6 -2
- package/src/panels/formula-workspace.ts +9 -0
- package/src/panels/properties-panel.ts +127 -35
- package/src/panels/statement-editor.ts +4 -0
- package/src/panels/tab-strip.ts +29 -26
- package/src/services/ai-project-tools.ts +3 -3
- package/src/services/ai-tools.ts +5 -5
- package/src/services/ai-write-report.ts +22 -4
- package/src/services/context-manager.ts +110 -2
- package/src/services/document-assistant.ts +2 -2
- package/src/services/harness/chat-reducer.ts +9 -4
- package/src/services/render-critic.ts +234 -12
- package/src/services/tool-executor.ts +16 -8
- package/src/surfaces/collections-panel.json +1 -1
- package/src/surfaces/collections-panel.ts +1 -1
- package/src/surfaces/entry-editor.json +10 -10
- package/src/surfaces/entry-editor.ts +22 -19
- package/src/surfaces/entry-inspector.json +11 -11
- package/src/surfaces/entry-inspector.ts +17 -10
- package/src/surfaces/inspector-dock.json +3 -3
- package/src/surfaces/tab-strip.json +5 -5
- package/src/surfaces/tab-strip.ts +2 -2
- package/src/types.ts +2 -0
- package/src/ui/expression-editor.ts +10 -5
- package/src/ui/schema-form.ts +18 -1
- package/src/utils/edit-display.ts +27 -1
- package/dist/chunks/2020-906vx2dq.js +0 -4
- package/dist/chunks/adapter-hnvad61x.js +0 -4
- package/dist/chunks/cf-settings-mkbcz4z2.js +0 -4
- package/dist/chunks/color-04361ttk.js +0 -4
- package/dist/chunks/components-w5zqwva1.js +0 -4
- package/dist/chunks/content-source-1vzxq1ba.js +0 -4
- package/dist/chunks/editor-wvf5e6j9.js +0 -4
- package/dist/chunks/entry-commands-mx2whrjx.js +0 -4
- package/dist/chunks/file-ops-9bxvk59j.js +0 -4
- package/dist/chunks/files-t07yqqej.js +0 -4
- package/dist/chunks/format-host-5ja5gxyk.js +0 -4
- package/dist/chunks/fs-events-3424ezp3.js +0 -4
- package/dist/chunks/grid-open-1mpq9mzb.js +0 -4
- package/dist/chunks/iframe-host-wsg0bn73.js +0 -4
- package/dist/chunks/index-f9qr7kzh.js +0 -4
- package/dist/chunks/jsonMode-vj30te2h.js +0 -13
- package/dist/chunks/jx-validate-ttr5ewf0.js +0 -4
- package/dist/chunks/layers-m49nmwvx.js +0 -4
- package/dist/chunks/layers-panel-hvy2e549.js +0 -4
- package/dist/chunks/lit-html-k2mb9k0r.js +0 -4
- package/dist/chunks/media-library-ae67q4at.js +0 -4
- package/dist/chunks/media-open-yp9jm834.js +0 -4
- package/dist/chunks/media-picker-s41ngdfr.js +0 -4
- package/dist/chunks/menu-d2jxpgma.js +0 -4
- package/dist/chunks/monaco-buffer-pa0g6ax7.js +0 -4
- package/dist/chunks/monaco-setup-g9kterhx.js +0 -4
- package/dist/chunks/notify-bwehrp7q.js +0 -4
- package/dist/chunks/platform-kv0k65cy.js +0 -4
- package/dist/chunks/popover-9tf4cjrk.js +0 -4
- package/dist/chunks/publish-panel-gzfxcm0t.js +0 -4
- package/dist/chunks/publish-workspace-dppd82tc.js +0 -4
- package/dist/chunks/quick-search-tdxaam55.js +0 -4
- package/dist/chunks/references-vqyr5s9x.js +0 -4
- package/dist/chunks/right-panel-0yrw4cgz.js +0 -4
- package/dist/chunks/source-control-6fk72me2.js +0 -4
- package/dist/chunks/studio-0khd8xtx.js +0 -4
- package/dist/chunks/studio-0w3541dg.js +0 -7
- package/dist/chunks/studio-15hwqgd8.js +0 -5
- package/dist/chunks/studio-1ks5d9y4.js +0 -5
- package/dist/chunks/studio-3xk9zdgb.js +0 -5
- package/dist/chunks/studio-4f7thq0p.js +0 -5
- package/dist/chunks/studio-53wy9ek3.js +0 -5
- package/dist/chunks/studio-7rrdbvex.js +0 -5
- package/dist/chunks/studio-8kx6m0rg.js +0 -5
- package/dist/chunks/studio-9dq7rwc7.js +0 -5
- package/dist/chunks/studio-9qx1ywbv.js +0 -9
- package/dist/chunks/studio-aam8zt8z.js +0 -5
- package/dist/chunks/studio-b4e0ftkt.js +0 -5
- package/dist/chunks/studio-bz0b5brj.js +0 -6
- package/dist/chunks/studio-cfnn70h1.js +0 -5
- package/dist/chunks/studio-e7vjyp04.js +0 -10
- package/dist/chunks/studio-egnjpyde.js +0 -9
- package/dist/chunks/studio-ejrypvmq.js +0 -5
- package/dist/chunks/studio-f8tyeyzt.js +0 -5
- package/dist/chunks/studio-fj6c905s.js +0 -5
- package/dist/chunks/studio-fkrr7kgg.js +0 -9
- package/dist/chunks/studio-fspe7m9t.js +0 -5
- package/dist/chunks/studio-ggx3j7nd.js +0 -5
- package/dist/chunks/studio-j0zf5x2x.js +0 -5
- package/dist/chunks/studio-jeb7hth3.js +0 -5
- package/dist/chunks/studio-k1xqrgm5.js +0 -5
- package/dist/chunks/studio-k3we3kqb.js +0 -5
- package/dist/chunks/studio-n9qba0gx.js +0 -5
- package/dist/chunks/studio-nzemfbkk.js +0 -14
- package/dist/chunks/studio-q80fg1d6.js +0 -12
- package/dist/chunks/studio-r050sez0.js +0 -6
- package/dist/chunks/studio-s9fng7m8.js +0 -7
- package/dist/chunks/studio-wgc54sxf.js +0 -5
- package/dist/chunks/studio-wqfaqw4m.js +0 -5
- package/dist/chunks/studio-x0gsfr1d.js +0 -16
- package/dist/chunks/studio-xpx91fby.js +0 -6
- package/dist/chunks/studio-yrcrncev.js +0 -5
- package/dist/chunks/studio-yzpskb0j.js +0 -5
- package/dist/chunks/studio-zfdbmhp3.js +0 -5
- package/dist/chunks/tsMode-jg1dtphj.js +0 -14
- package/dist/chunks/workspace-9btkc8tk.js +0 -4
- package/dist/chunks/workspace-home-qcc4z5ag.js +0 -4
- package/src/content/draft-state.ts +0 -108
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{hp,wa,Ed,Un,xe}from"./studio-eqcddvc2.js";import{_0}from"./studio-egnjpyde.js";import"./studio-k0xzrse2.js";var Ve=120000;class G{constructor(o){this._defaults=o,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30000),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){if(this._worker)this._worker.dispose(),this._worker=null;this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;if(Date.now()-this._lastUsedTime>Ve)this._stopWorker()}_getClient(){if(this._lastUsedTime=Date.now(),!this._client)this._worker=_0({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("json.worker.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy();return this._client}getLanguageServiceWorker(...o){let t;return this._getClient().then((n)=>{t=n}).then((n)=>{if(this._worker)return this._worker.withSyncedResources(o)}).then((n)=>t)}}var yo;(function(o){function t(n){return typeof n==="string"}o.is=t})(yo||(yo={}));var Z;(function(o){function t(n){return typeof n==="string"}o.is=t})(Z||(Z={}));var Mo;(function(o){o.MIN_VALUE=-2147483648,o.MAX_VALUE=2147483647;function t(n){return typeof n==="number"&&o.MIN_VALUE<=n&&n<=o.MAX_VALUE}o.is=t})(Mo||(Mo={}));var R;(function(o){o.MIN_VALUE=0,o.MAX_VALUE=2147483647;function t(n){return typeof n==="number"&&o.MIN_VALUE<=n&&n<=o.MAX_VALUE}o.is=t})(R||(R={}));var A;(function(o){function t(i,e){if(i===Number.MAX_VALUE)i=R.MAX_VALUE;if(e===Number.MAX_VALUE)e=R.MAX_VALUE;return{line:i,character:e}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.uinteger(e.line)&&c.uinteger(e.character)}o.is=n})(A||(A={}));var h;(function(o){function t(i,e,r,a){if(c.uinteger(i)&&c.uinteger(e)&&c.uinteger(r)&&c.uinteger(a))return{start:A.create(i,e),end:A.create(r,a)};else if(A.is(i)&&A.is(e))return{start:i,end:e};else throw Error(`Range#create called with invalid arguments[${i}, ${e}, ${r}, ${a}]`)}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&A.is(e.start)&&A.is(e.end)}o.is=n})(h||(h={}));var W;(function(o){function t(i,e){return{uri:i,range:e}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&h.is(e.range)&&(c.string(e.uri)||c.undefined(e.uri))}o.is=n})(W||(W={}));var Lo;(function(o){function t(i,e,r,a){return{targetUri:i,targetRange:e,targetSelectionRange:r,originSelectionRange:a}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&h.is(e.targetRange)&&c.string(e.targetUri)&&h.is(e.targetSelectionRange)&&(h.is(e.originSelectionRange)||c.undefined(e.originSelectionRange))}o.is=n})(Lo||(Lo={}));var X;(function(o){function t(i,e,r,a){return{red:i,green:e,blue:r,alpha:a}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.numberRange(e.red,0,1)&&c.numberRange(e.green,0,1)&&c.numberRange(e.blue,0,1)&&c.numberRange(e.alpha,0,1)}o.is=n})(X||(X={}));var Ao;(function(o){function t(i,e){return{range:i,color:e}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&h.is(e.range)&&X.is(e.color)}o.is=n})(Ao||(Ao={}));var zo;(function(o){function t(i,e,r){return{label:i,textEdit:e,additionalTextEdits:r}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.string(e.label)&&(c.undefined(e.textEdit)||B.is(e))&&(c.undefined(e.additionalTextEdits)||c.typedArray(e.additionalTextEdits,B.is))}o.is=n})(zo||(zo={}));var S;(function(o){o.Comment="comment",o.Imports="imports",o.Region="region"})(S||(S={}));var Io;(function(o){function t(i,e,r,a,d,p){let s={startLine:i,endLine:e};if(c.defined(r))s.startCharacter=r;if(c.defined(a))s.endCharacter=a;if(c.defined(d))s.kind=d;if(c.defined(p))s.collapsedText=p;return s}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.uinteger(e.startLine)&&c.uinteger(e.startLine)&&(c.undefined(e.startCharacter)||c.uinteger(e.startCharacter))&&(c.undefined(e.endCharacter)||c.uinteger(e.endCharacter))&&(c.undefined(e.kind)||c.string(e.kind))}o.is=n})(Io||(Io={}));var J;(function(o){function t(i,e){return{location:i,message:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&W.is(e.location)&&c.string(e.message)}o.is=n})(J||(J={}));var T;(function(o){o.Error=1,o.Warning=2,o.Information=3,o.Hint=4})(T||(T={}));var To;(function(o){o.Unnecessary=1,o.Deprecated=2})(To||(To={}));var jo;(function(o){function t(n){let i=n;return c.objectLiteral(i)&&c.string(i.href)}o.is=t})(jo||(jo={}));var H;(function(o){function t(i,e,r,a,d,p){let s={range:i,message:e};if(c.defined(r))s.severity=r;if(c.defined(a))s.code=a;if(c.defined(d))s.source=d;if(c.defined(p))s.relatedInformation=p;return s}o.create=t;function n(i){var e;let r=i;return c.defined(r)&&h.is(r.range)&&c.string(r.message)&&(c.number(r.severity)||c.undefined(r.severity))&&(c.integer(r.code)||c.string(r.code)||c.undefined(r.code))&&(c.undefined(r.codeDescription)||c.string((e=r.codeDescription)===null||e===void 0?void 0:e.href))&&(c.string(r.source)||c.undefined(r.source))&&(c.undefined(r.relatedInformation)||c.typedArray(r.relatedInformation,J.is))}o.is=n})(H||(H={}));var D;(function(o){function t(i,e,...r){let a={title:i,command:e};if(c.defined(r)&&r.length>0)a.arguments=r;return a}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.title)&&c.string(e.command)}o.is=n})(D||(D={}));var B;(function(o){function t(r,a){return{range:r,newText:a}}o.replace=t;function n(r,a){return{range:{start:r,end:r},newText:a}}o.insert=n;function i(r){return{range:r,newText:""}}o.del=i;function e(r){let a=r;return c.objectLiteral(a)&&c.string(a.newText)&&h.is(a.range)}o.is=e})(B||(B={}));var K;(function(o){function t(i,e,r){let a={label:i};if(e!==void 0)a.needsConfirmation=e;if(r!==void 0)a.description=r;return a}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.string(e.label)&&(c.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(c.string(e.description)||e.description===void 0)}o.is=n})(K||(K={}));var E;(function(o){function t(n){let i=n;return c.string(i)}o.is=t})(E||(E={}));var So;(function(o){function t(r,a,d){return{range:r,newText:a,annotationId:d}}o.replace=t;function n(r,a,d){return{range:{start:r,end:r},newText:a,annotationId:d}}o.insert=n;function i(r,a){return{range:r,newText:"",annotationId:a}}o.del=i;function e(r){let a=r;return B.is(a)&&(K.is(a.annotationId)||E.is(a.annotationId))}o.is=e})(So||(So={}));var oo;(function(o){function t(i,e){return{textDocument:i,edits:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&ro.is(e.textDocument)&&Array.isArray(e.edits)}o.is=n})(oo||(oo={}));var eo;(function(o){function t(i,e,r){let a={kind:"create",uri:i};if(e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0))a.options=e;if(r!==void 0)a.annotationId=r;return a}o.create=t;function n(i){let e=i;return e&&e.kind==="create"&&c.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||c.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||c.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}o.is=n})(eo||(eo={}));var io;(function(o){function t(i,e,r,a){let d={kind:"rename",oldUri:i,newUri:e};if(r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0))d.options=r;if(a!==void 0)d.annotationId=a;return d}o.create=t;function n(i){let e=i;return e&&e.kind==="rename"&&c.string(e.oldUri)&&c.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||c.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||c.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}o.is=n})(io||(io={}));var to;(function(o){function t(i,e,r){let a={kind:"delete",uri:i};if(e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0))a.options=e;if(r!==void 0)a.annotationId=r;return a}o.create=t;function n(i){let e=i;return e&&e.kind==="delete"&&c.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||c.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||c.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}o.is=n})(to||(to={}));var no;(function(o){function t(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every((e)=>{if(c.string(e.kind))return eo.is(e)||io.is(e)||to.is(e);else return oo.is(e)}))}o.is=t})(no||(no={}));var Do;(function(o){function t(i){return{uri:i}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.uri)}o.is=n})(Do||(Do={}));var Bo;(function(o){function t(i,e){return{uri:i,version:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.uri)&&c.integer(e.version)}o.is=n})(Bo||(Bo={}));var ro;(function(o){function t(i,e){return{uri:i,version:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.uri)&&(e.version===null||c.integer(e.version))}o.is=n})(ro||(ro={}));var Eo;(function(o){function t(i,e,r,a){return{uri:i,languageId:e,version:r,text:a}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.uri)&&c.string(e.languageId)&&c.integer(e.version)&&c.string(e.text)}o.is=n})(Eo||(Eo={}));var ao;(function(o){o.PlainText="plaintext",o.Markdown="markdown";function t(n){let i=n;return i===o.PlainText||i===o.Markdown}o.is=t})(ao||(ao={}));var C;(function(o){function t(n){let i=n;return c.objectLiteral(n)&&ao.is(i.kind)&&c.string(i.value)}o.is=t})(C||(C={}));var f;(function(o){o.Text=1,o.Method=2,o.Function=3,o.Constructor=4,o.Field=5,o.Variable=6,o.Class=7,o.Interface=8,o.Module=9,o.Property=10,o.Unit=11,o.Value=12,o.Enum=13,o.Keyword=14,o.Snippet=15,o.Color=16,o.File=17,o.Reference=18,o.Folder=19,o.EnumMember=20,o.Constant=21,o.Struct=22,o.Event=23,o.Operator=24,o.TypeParameter=25})(f||(f={}));var V;(function(o){o.PlainText=1,o.Snippet=2})(V||(V={}));var qo;(function(o){o.Deprecated=1})(qo||(qo={}));var No;(function(o){function t(i,e,r){return{newText:i,insert:e,replace:r}}o.create=t;function n(i){let e=i;return e&&c.string(e.newText)&&h.is(e.insert)&&h.is(e.replace)}o.is=n})(No||(No={}));var Fo;(function(o){o.asIs=1,o.adjustIndentation=2})(Fo||(Fo={}));var Co;(function(o){function t(n){let i=n;return i&&(c.string(i.detail)||i.detail===void 0)&&(c.string(i.description)||i.description===void 0)}o.is=t})(Co||(Co={}));var Oo;(function(o){function t(n){return{label:n}}o.create=t})(Oo||(Oo={}));var _o;(function(o){function t(n,i){return{items:n?n:[],isIncomplete:!!i}}o.create=t})(_o||(_o={}));var U;(function(o){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}o.fromPlainText=t;function n(i){let e=i;return c.string(e)||c.objectLiteral(e)&&c.string(e.language)&&c.string(e.value)}o.is=n})(U||(U={}));var Ro;(function(o){function t(n){let i=n;return!!i&&c.objectLiteral(i)&&(C.is(i.contents)||U.is(i.contents)||c.typedArray(i.contents,U.is))&&(n.range===void 0||h.is(n.range))}o.is=t})(Ro||(Ro={}));var Wo;(function(o){function t(n,i){return i?{label:n,documentation:i}:{label:n}}o.create=t})(Wo||(Wo={}));var Ho;(function(o){function t(n,i,...e){let r={label:n};if(c.defined(i))r.documentation=i;if(c.defined(e))r.parameters=e;else r.parameters=[];return r}o.create=t})(Ho||(Ho={}));var q;(function(o){o.Text=1,o.Read=2,o.Write=3})(q||(q={}));var Vo;(function(o){function t(n,i){let e={range:n};if(c.number(i))e.kind=i;return e}o.create=t})(Vo||(Vo={}));var b;(function(o){o.File=1,o.Module=2,o.Namespace=3,o.Package=4,o.Class=5,o.Method=6,o.Property=7,o.Field=8,o.Constructor=9,o.Enum=10,o.Interface=11,o.Function=12,o.Variable=13,o.Constant=14,o.String=15,o.Number=16,o.Boolean=17,o.Array=18,o.Object=19,o.Key=20,o.Null=21,o.EnumMember=22,o.Struct=23,o.Event=24,o.Operator=25,o.TypeParameter=26})(b||(b={}));var Uo;(function(o){o.Deprecated=1})(Uo||(Uo={}));var Po;(function(o){function t(n,i,e,r,a){let d={name:n,kind:i,location:{uri:r,range:e}};if(a)d.containerName=a;return d}o.create=t})(Po||(Po={}));var Yo;(function(o){function t(n,i,e,r){return r!==void 0?{name:n,kind:i,location:{uri:e,range:r}}:{name:n,kind:i,location:{uri:e}}}o.create=t})(Yo||(Yo={}));var Qo;(function(o){function t(i,e,r,a,d,p){let s={name:i,detail:e,kind:r,range:a,selectionRange:d};if(p!==void 0)s.children=p;return s}o.create=t;function n(i){let e=i;return e&&c.string(e.name)&&c.number(e.kind)&&h.is(e.range)&&h.is(e.selectionRange)&&(e.detail===void 0||c.string(e.detail))&&(e.deprecated===void 0||c.boolean(e.deprecated))&&(e.children===void 0||Array.isArray(e.children))&&(e.tags===void 0||Array.isArray(e.tags))}o.is=n})(Qo||(Qo={}));var Go;(function(o){o.Empty="",o.QuickFix="quickfix",o.Refactor="refactor",o.RefactorExtract="refactor.extract",o.RefactorInline="refactor.inline",o.RefactorRewrite="refactor.rewrite",o.Source="source",o.SourceOrganizeImports="source.organizeImports",o.SourceFixAll="source.fixAll"})(Go||(Go={}));var P;(function(o){o.Invoked=1,o.Automatic=2})(P||(P={}));var Zo;(function(o){function t(i,e,r){let a={diagnostics:i};if(e!==void 0&&e!==null)a.only=e;if(r!==void 0&&r!==null)a.triggerKind=r;return a}o.create=t;function n(i){let e=i;return c.defined(e)&&c.typedArray(e.diagnostics,H.is)&&(e.only===void 0||c.typedArray(e.only,c.string))&&(e.triggerKind===void 0||e.triggerKind===P.Invoked||e.triggerKind===P.Automatic)}o.is=n})(Zo||(Zo={}));var Xo;(function(o){function t(i,e,r){let a={title:i},d=!0;if(typeof e==="string")d=!1,a.kind=e;else if(D.is(e))a.command=e;else a.edit=e;if(d&&r!==void 0)a.kind=r;return a}o.create=t;function n(i){let e=i;return e&&c.string(e.title)&&(e.diagnostics===void 0||c.typedArray(e.diagnostics,H.is))&&(e.kind===void 0||c.string(e.kind))&&(e.edit!==void 0||e.command!==void 0)&&(e.command===void 0||D.is(e.command))&&(e.isPreferred===void 0||c.boolean(e.isPreferred))&&(e.edit===void 0||no.is(e.edit))}o.is=n})(Xo||(Xo={}));var Jo;(function(o){function t(i,e){let r={range:i};if(c.defined(e))r.data=e;return r}o.create=t;function n(i){let e=i;return c.defined(e)&&h.is(e.range)&&(c.undefined(e.command)||D.is(e.command))}o.is=n})(Jo||(Jo={}));var $o;(function(o){function t(i,e){return{tabSize:i,insertSpaces:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.uinteger(e.tabSize)&&c.boolean(e.insertSpaces)}o.is=n})($o||($o={}));var Ko;(function(o){function t(i,e,r){return{range:i,target:e,data:r}}o.create=t;function n(i){let e=i;return c.defined(e)&&h.is(e.range)&&(c.undefined(e.target)||c.string(e.target))}o.is=n})(Ko||(Ko={}));var oe;(function(o){function t(i,e){return{range:i,parent:e}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&h.is(e.range)&&(e.parent===void 0||o.is(e.parent))}o.is=n})(oe||(oe={}));var ee;(function(o){o.namespace="namespace",o.type="type",o.class="class",o.enum="enum",o.interface="interface",o.struct="struct",o.typeParameter="typeParameter",o.parameter="parameter",o.variable="variable",o.property="property",o.enumMember="enumMember",o.event="event",o.function="function",o.method="method",o.macro="macro",o.keyword="keyword",o.modifier="modifier",o.comment="comment",o.string="string",o.number="number",o.regexp="regexp",o.operator="operator",o.decorator="decorator"})(ee||(ee={}));var ie;(function(o){o.declaration="declaration",o.definition="definition",o.readonly="readonly",o.static="static",o.deprecated="deprecated",o.abstract="abstract",o.async="async",o.modification="modification",o.documentation="documentation",o.defaultLibrary="defaultLibrary"})(ie||(ie={}));var te;(function(o){function t(n){let i=n;return c.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId==="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]==="number")}o.is=t})(te||(te={}));var ne;(function(o){function t(i,e){return{range:i,text:e}}o.create=t;function n(i){let e=i;return e!==void 0&&e!==null&&h.is(e.range)&&c.string(e.text)}o.is=n})(ne||(ne={}));var re;(function(o){function t(i,e,r){return{range:i,variableName:e,caseSensitiveLookup:r}}o.create=t;function n(i){let e=i;return e!==void 0&&e!==null&&h.is(e.range)&&c.boolean(e.caseSensitiveLookup)&&(c.string(e.variableName)||e.variableName===void 0)}o.is=n})(re||(re={}));var ae;(function(o){function t(i,e){return{range:i,expression:e}}o.create=t;function n(i){let e=i;return e!==void 0&&e!==null&&h.is(e.range)&&(c.string(e.expression)||e.expression===void 0)}o.is=n})(ae||(ae={}));var ce;(function(o){function t(i,e){return{frameId:i,stoppedLocation:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&h.is(i.stoppedLocation)}o.is=n})(ce||(ce={}));var co;(function(o){o.Type=1,o.Parameter=2;function t(n){return n===1||n===2}o.is=t})(co||(co={}));var so;(function(o){function t(i){return{value:i}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&(e.tooltip===void 0||c.string(e.tooltip)||C.is(e.tooltip))&&(e.location===void 0||W.is(e.location))&&(e.command===void 0||D.is(e.command))}o.is=n})(so||(so={}));var de;(function(o){function t(i,e,r){let a={position:i,label:e};if(r!==void 0)a.kind=r;return a}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&A.is(e.position)&&(c.string(e.label)||c.typedArray(e.label,so.is))&&(e.kind===void 0||co.is(e.kind))&&e.textEdits===void 0||c.typedArray(e.textEdits,B.is)&&(e.tooltip===void 0||c.string(e.tooltip)||C.is(e.tooltip))&&(e.paddingLeft===void 0||c.boolean(e.paddingLeft))&&(e.paddingRight===void 0||c.boolean(e.paddingRight))}o.is=n})(de||(de={}));var se;(function(o){function t(n){return{kind:"snippet",value:n}}o.createSnippet=t})(se||(se={}));var le;(function(o){function t(n,i,e,r){return{insertText:n,filterText:i,range:e,command:r}}o.create=t})(le||(le={}));var ue;(function(o){function t(n){return{items:n}}o.create=t})(ue||(ue={}));var pe;(function(o){o.Invoked=0,o.Automatic=1})(pe||(pe={}));var ge;(function(o){function t(n,i){return{range:n,text:i}}o.create=t})(ge||(ge={}));var me;(function(o){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}o.create=t})(me||(me={}));var he;(function(o){function t(n){let i=n;return c.objectLiteral(i)&&Z.is(i.uri)&&c.string(i.name)}o.is=t})(he||(he={}));var fe;(function(o){function t(r,a,d,p){return new be(r,a,d,p)}o.create=t;function n(r){let a=r;return c.defined(a)&&c.string(a.uri)&&(c.undefined(a.languageId)||c.string(a.languageId))&&c.uinteger(a.lineCount)&&c.func(a.getText)&&c.func(a.positionAt)&&c.func(a.offsetAt)?!0:!1}o.is=n;function i(r,a){let d=r.getText(),p=e(a,(m,u)=>{let v=m.range.start.line-u.range.start.line;if(v===0)return m.range.start.character-u.range.start.character;return v}),s=d.length;for(let m=p.length-1;m>=0;m--){let u=p[m],v=r.offsetAt(u.range.start),g=r.offsetAt(u.range.end);if(g<=s)d=d.substring(0,v)+u.newText+d.substring(g,d.length);else throw Error("Overlapping edit");s=v}return d}o.applyEdits=i;function e(r,a){if(r.length<=1)return r;let d=r.length/2|0,p=r.slice(0,d),s=r.slice(d);e(p,a),e(s,a);let m=0,u=0,v=0;while(m<p.length&&u<s.length)if(a(p[m],s[u])<=0)r[v++]=p[m++];else r[v++]=s[u++];while(m<p.length)r[v++]=p[m++];while(u<s.length)r[v++]=s[u++];return r}})(fe||(fe={}));class be{constructor(o,t,n,i){this._uri=o,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(o){if(o){let t=this.offsetAt(o.start),n=this.offsetAt(o.end);return this._content.substring(t,n)}return this._content}update(o,t){this._content=o.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let o=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){if(n)o.push(i),n=!1;let e=t.charAt(i);if(n=e==="\r"||e===`
|
|
2
|
-
`,e==="\r"&&i+1<t.length&&t.charAt(i+1)===`
|
|
3
|
-
`)i++}if(n&&t.length>0)o.push(t.length);this._lineOffsets=o}return this._lineOffsets}positionAt(o){o=Math.max(Math.min(o,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(i===0)return A.create(0,o);while(n<i){let r=Math.floor((n+i)/2);if(t[r]>o)i=r;else n=r+1}let e=n-1;return A.create(e,o-t[e])}offsetAt(o){let t=this.getLineOffsets();if(o.line>=t.length)return this._content.length;else if(o.line<0)return 0;let n=t[o.line],i=o.line+1<t.length?t[o.line+1]:this._content.length;return Math.max(Math.min(n+o.character,i),n)}get lineCount(){return this.getLineOffsets().length}}var c;(function(o){let t=Object.prototype.toString;function n(g){return typeof g<"u"}o.defined=n;function i(g){return typeof g>"u"}o.undefined=i;function e(g){return g===!0||g===!1}o.boolean=e;function r(g){return t.call(g)==="[object String]"}o.string=r;function a(g){return t.call(g)==="[object Number]"}o.number=a;function d(g,I,Q){return t.call(g)==="[object Number]"&&I<=g&&g<=Q}o.numberRange=d;function p(g){return t.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}o.integer=p;function s(g){return t.call(g)==="[object Number]"&&0<=g&&g<=2147483647}o.uinteger=s;function m(g){return t.call(g)==="[object Function]"}o.func=m;function u(g){return g!==null&&typeof g==="object"}o.objectLiteral=u;function v(g,I){return Array.isArray(g)&&g.every(I)}o.typedArray=v})(c||(c={}));class lo{constructor(o,t,n){this._languageId=o,this._worker=t,this._disposables=[],this._listener=Object.create(null);let i=(r)=>{let a=r.getLanguageId();if(a!==this._languageId)return;let d;this._listener[r.uri.toString()]=r.onDidChangeContent(()=>{window.clearTimeout(d),d=window.setTimeout(()=>this._doValidate(r.uri,a),500)}),this._doValidate(r.uri,a)},e=(r)=>{Un.setModelMarkers(r,this._languageId,[]);let a=r.uri.toString(),d=this._listener[a];if(d)d.dispose(),delete this._listener[a]};this._disposables.push(Un.onDidCreateModel(i)),this._disposables.push(Un.onWillDisposeModel(e)),this._disposables.push(Un.onDidChangeModelLanguage((r)=>{e(r.model),i(r.model)})),this._disposables.push(n((r)=>{Un.getModels().forEach((a)=>{if(a.getLanguageId()===this._languageId)e(a),i(a)})})),this._disposables.push({dispose:()=>{Un.getModels().forEach(e);for(let r in this._listener)this._listener[r].dispose()}}),Un.getModels().forEach(i)}dispose(){this._disposables.forEach((o)=>o&&o.dispose()),this._disposables.length=0}_doValidate(o,t){this._worker(o).then((n)=>n.doValidation(o.toString())).then((n)=>{let i=n.map((r)=>Pe(o,r)),e=Un.getModel(o);if(e&&e.getLanguageId()===t)Un.setModelMarkers(e,t,i)}).then(void 0,(n)=>{console.error(n)})}}function Ue(o){switch(o){case T.Error:return wa.Error;case T.Warning:return wa.Warning;case T.Information:return wa.Info;case T.Hint:return wa.Hint;default:return wa.Info}}function Pe(o,t){let n=typeof t.code==="number"?String(t.code):t.code;return{severity:Ue(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}class uo{constructor(o,t){this._worker=o,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(o,t,n,i){let e=o.uri;return this._worker(e).then((r)=>r.doComplete(e.toString(),z(t))).then((r)=>{if(!r)return;let a=o.getWordUntilPosition(t),d=new hp(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn),p=r.items.map((s)=>{let m={label:s.label,insertText:s.insertText||s.label,sortText:s.sortText,filterText:s.filterText,documentation:s.documentation,detail:s.detail,command:Ge(s.command),range:d,kind:Qe(s.kind)};if(s.textEdit){if(Ye(s.textEdit))m.range={insert:x(s.textEdit.insert),replace:x(s.textEdit.replace)};else m.range=x(s.textEdit.range);m.insertText=s.textEdit.newText}if(s.additionalTextEdits)m.additionalTextEdits=s.additionalTextEdits.map(N);if(s.insertTextFormat===V.Snippet)m.insertTextRules=xe.CompletionItemInsertTextRule.InsertAsSnippet;return m});return{isIncomplete:r.isIncomplete,suggestions:p}})}}function z(o){if(!o)return;return{character:o.column-1,line:o.lineNumber-1}}function po(o){if(!o)return;return{start:{line:o.startLineNumber-1,character:o.startColumn-1},end:{line:o.endLineNumber-1,character:o.endColumn-1}}}function x(o){if(!o)return;return new hp(o.start.line+1,o.start.character+1,o.end.line+1,o.end.character+1)}function Ye(o){return typeof o.insert<"u"&&typeof o.replace<"u"}function Qe(o){let t=xe.CompletionItemKind;switch(o){case f.Text:return t.Text;case f.Method:return t.Method;case f.Function:return t.Function;case f.Constructor:return t.Constructor;case f.Field:return t.Field;case f.Variable:return t.Variable;case f.Class:return t.Class;case f.Interface:return t.Interface;case f.Module:return t.Module;case f.Property:return t.Property;case f.Unit:return t.Unit;case f.Value:return t.Value;case f.Enum:return t.Enum;case f.Keyword:return t.Keyword;case f.Snippet:return t.Snippet;case f.Color:return t.Color;case f.File:return t.File;case f.Reference:return t.Reference}return t.Property}function N(o){if(!o)return;return{range:x(o.range),text:o.newText}}function Ge(o){return o&&o.command==="editor.action.triggerSuggest"?{id:o.command,title:o.title,arguments:o.arguments}:void 0}class go{constructor(o){this._worker=o}provideHover(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.doHover(i.toString(),z(t))).then((e)=>{if(!e)return;return{range:x(e.range),contents:Xe(e.contents)}})}}function Ze(o){return o&&typeof o==="object"&&typeof o.kind==="string"}function ve(o){if(typeof o==="string")return{value:o};if(Ze(o)){if(o.kind==="plaintext")return{value:o.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")};return{value:o.value}}return{value:"```"+o.language+`
|
|
4
|
-
`+o.value+"\n```\n"}}function Xe(o){if(!o)return;if(Array.isArray(o))return o.map(ve);return[ve(o)]}class we{constructor(o){this._worker=o}provideDocumentHighlights(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.findDocumentHighlights(i.toString(),z(t))).then((e)=>{if(!e)return;return e.map((r)=>({range:x(r.range),kind:Je(r.kind)}))})}}function Je(o){switch(o){case q.Read:return xe.DocumentHighlightKind.Read;case q.Write:return xe.DocumentHighlightKind.Write;case q.Text:return xe.DocumentHighlightKind.Text}return xe.DocumentHighlightKind.Text}class ke{constructor(o){this._worker=o}provideDefinition(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.findDefinition(i.toString(),z(t))).then((e)=>{if(!e)return;return[ye(e)]})}}function ye(o){return{uri:Ed.parse(o.uri),range:x(o.range)}}class Me{constructor(o){this._worker=o}provideReferences(o,t,n,i){let e=o.uri;return this._worker(e).then((r)=>r.findReferences(e.toString(),z(t))).then((r)=>{if(!r)return;return r.map(ye)})}}class Le{constructor(o){this._worker=o}provideRenameEdits(o,t,n,i){let e=o.uri;return this._worker(e).then((r)=>r.doRename(e.toString(),z(t),n)).then((r)=>$e(r))}}function $e(o){if(!o||!o.changes)return;let t=[];for(let n in o.changes){let i=Ed.parse(n);for(let e of o.changes[n])t.push({resource:i,versionId:void 0,textEdit:{range:x(e.range),text:e.newText}})}return{edits:t}}class mo{constructor(o){this._worker=o}provideDocumentSymbols(o,t){let n=o.uri;return this._worker(n).then((i)=>i.findDocumentSymbols(n.toString())).then((i)=>{if(!i)return;return i.map((e)=>{if(Ke(e))return Ae(e);return{name:e.name,detail:"",containerName:e.containerName,kind:ze(e.kind),range:x(e.location.range),selectionRange:x(e.location.range),tags:[]}})})}}function Ke(o){return"children"in o}function Ae(o){return{name:o.name,detail:o.detail??"",kind:ze(o.kind),range:x(o.range),selectionRange:x(o.selectionRange),tags:o.tags??[],children:(o.children??[]).map((t)=>Ae(t))}}function ze(o){let t=xe.SymbolKind;switch(o){case b.File:return t.File;case b.Module:return t.Module;case b.Namespace:return t.Namespace;case b.Package:return t.Package;case b.Class:return t.Class;case b.Method:return t.Method;case b.Property:return t.Property;case b.Field:return t.Field;case b.Constructor:return t.Constructor;case b.Enum:return t.Enum;case b.Interface:return t.Interface;case b.Function:return t.Function;case b.Variable:return t.Variable;case b.Constant:return t.Constant;case b.String:return t.String;case b.Number:return t.Number;case b.Boolean:return t.Boolean;case b.Array:return t.Array}return t.Function}class Ie{constructor(o){this._worker=o}provideLinks(o,t){let n=o.uri;return this._worker(n).then((i)=>i.findDocumentLinks(n.toString())).then((i)=>{if(!i)return;return{links:i.map((e)=>({range:x(e.range),url:e.target}))}})}}class ho{constructor(o){this._worker=o}provideDocumentFormattingEdits(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.format(i.toString(),null,Te(t)).then((r)=>{if(!r||r.length===0)return;return r.map(N)}))}}class fo{constructor(o){this._worker=o,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(o,t,n,i){let e=o.uri;return this._worker(e).then((r)=>r.format(e.toString(),po(t),Te(n)).then((a)=>{if(!a||a.length===0)return;return a.map(N)}))}}function Te(o){return{tabSize:o.tabSize,insertSpaces:o.insertSpaces}}class bo{constructor(o){this._worker=o}provideDocumentColors(o,t){let n=o.uri;return this._worker(n).then((i)=>i.findDocumentColors(n.toString())).then((i)=>{if(!i)return;return i.map((e)=>({color:e.color,range:x(e.range)}))})}provideColorPresentations(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.getColorPresentations(i.toString(),t.color,po(t.range))).then((e)=>{if(!e)return;return e.map((r)=>{let a={label:r.label};if(r.textEdit)a.textEdit=N(r.textEdit);if(r.additionalTextEdits)a.additionalTextEdits=r.additionalTextEdits.map(N);return a})})}}class vo{constructor(o){this._worker=o}provideFoldingRanges(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.getFoldingRanges(i.toString(),t)).then((e)=>{if(!e)return;return e.map((r)=>{let a={start:r.startLine+1,end:r.endLine+1};if(typeof r.kind<"u")a.kind=oi(r.kind);return a})})}}function oi(o){switch(o){case S.Comment:return xe.FoldingRangeKind.Comment;case S.Imports:return xe.FoldingRangeKind.Imports;case S.Region:return xe.FoldingRangeKind.Region}return}class wo{constructor(o){this._worker=o}provideSelectionRanges(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.getSelectionRanges(i.toString(),t.map(z))).then((e)=>{if(!e)return;return e.map((r)=>{let a=[];while(r)a.push({range:x(r.range)}),r=r.parent;return a})})}}function Y(o,t=!1){let n=o.length,i=0,e="",r=0,a=16,d=0,p=0,s=0,m=0,u=0;function v(l,k){let L=0,y=0;while(L<l){let w=o.charCodeAt(i);if(w>=48&&w<=57)y=y*16+w-48;else if(w>=65&&w<=70)y=y*16+w-65+10;else if(w>=97&&w<=102)y=y*16+w-97+10;else break;i++,L++}if(L<l)y=-1;return y}function g(l){i=l,e="",r=0,a=16,u=0}function I(){let l=i;if(o.charCodeAt(i)===48)i++;else{i++;while(i<o.length&&F(o.charCodeAt(i)))i++}if(i<o.length&&o.charCodeAt(i)===46)if(i++,i<o.length&&F(o.charCodeAt(i))){i++;while(i<o.length&&F(o.charCodeAt(i)))i++}else return u=3,o.substring(l,i);let k=i;if(i<o.length&&(o.charCodeAt(i)===69||o.charCodeAt(i)===101)){if(i++,i<o.length&&o.charCodeAt(i)===43||o.charCodeAt(i)===45)i++;if(i<o.length&&F(o.charCodeAt(i))){i++;while(i<o.length&&F(o.charCodeAt(i)))i++;k=i}else u=3}return o.substring(l,k)}function Q(){let l="",k=i;while(!0){if(i>=n){l+=o.substring(k,i),u=2;break}let L=o.charCodeAt(i);if(L===34){l+=o.substring(k,i),i++;break}if(L===92){if(l+=o.substring(k,i),i++,i>=n){u=2;break}switch(o.charCodeAt(i++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
|
|
5
|
-
`;break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:let w=v(4);if(w>=0)l+=String.fromCharCode(w);else u=4;break;default:u=5}k=i;continue}if(L>=0&&L<=31)if(O(L)){l+=o.substring(k,i),u=2;break}else u=6;i++}return l}function ko(){if(e="",u=0,r=i,p=d,m=s,i>=n)return r=n,a=17;let l=o.charCodeAt(i);if(xo(l)){do i++,e+=String.fromCharCode(l),l=o.charCodeAt(i);while(xo(l));return a=15}if(O(l)){if(i++,e+=String.fromCharCode(l),l===13&&o.charCodeAt(i)===10)i++,e+=`
|
|
6
|
-
`;return d++,s=i,a=14}switch(l){case 123:return i++,a=1;case 125:return i++,a=2;case 91:return i++,a=3;case 93:return i++,a=4;case 58:return i++,a=6;case 44:return i++,a=5;case 34:return i++,e=Q(),a=10;case 47:let k=i-1;if(o.charCodeAt(i+1)===47){i+=2;while(i<n){if(O(o.charCodeAt(i)))break;i++}return e=o.substring(k,i),a=12}if(o.charCodeAt(i+1)===42){i+=2;let L=n-1,y=!1;while(i<L){let w=o.charCodeAt(i);if(w===42&&o.charCodeAt(i+1)===47){i+=2,y=!0;break}if(i++,O(w)){if(w===13&&o.charCodeAt(i)===10)i++;d++,s=i}}if(!y)i++,u=1;return e=o.substring(k,i),a=13}return e+=String.fromCharCode(l),i++,a=16;case 45:if(e+=String.fromCharCode(l),i++,i===n||!F(o.charCodeAt(i)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e+=I(),a=11;default:while(i<n&&We(l))i++,l=o.charCodeAt(i);if(r!==i){switch(e=o.substring(r,i),e){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return e+=String.fromCharCode(l),i++,a=16}}function We(l){if(xo(l)||O(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function He(){let l;do l=ko();while(l>=12&&l<=15);return l}return{setPosition:g,getPosition:()=>i,scan:t?He:ko,getToken:()=>a,getTokenValue:()=>e,getTokenOffset:()=>r,getTokenLength:()=>i-r,getTokenStartLine:()=>p,getTokenStartCharacter:()=>r-m,getTokenError:()=>u}}function xo(o){return o===32||o===9}function O(o){return o===10||o===13}function F(o){return o>=48&&o<=57}var je;(function(o){o[o.lineFeed=10]="lineFeed",o[o.carriageReturn=13]="carriageReturn",o[o.space=32]="space",o[o._0=48]="_0",o[o._1=49]="_1",o[o._2=50]="_2",o[o._3=51]="_3",o[o._4=52]="_4",o[o._5=53]="_5",o[o._6=54]="_6",o[o._7=55]="_7",o[o._8=56]="_8",o[o._9=57]="_9",o[o.a=97]="a",o[o.b=98]="b",o[o.c=99]="c",o[o.d=100]="d",o[o.e=101]="e",o[o.f=102]="f",o[o.g=103]="g",o[o.h=104]="h",o[o.i=105]="i",o[o.j=106]="j",o[o.k=107]="k",o[o.l=108]="l",o[o.m=109]="m",o[o.n=110]="n",o[o.o=111]="o",o[o.p=112]="p",o[o.q=113]="q",o[o.r=114]="r",o[o.s=115]="s",o[o.t=116]="t",o[o.u=117]="u",o[o.v=118]="v",o[o.w=119]="w",o[o.x=120]="x",o[o.y=121]="y",o[o.z=122]="z",o[o.A=65]="A",o[o.B=66]="B",o[o.C=67]="C",o[o.D=68]="D",o[o.E=69]="E",o[o.F=70]="F",o[o.G=71]="G",o[o.H=72]="H",o[o.I=73]="I",o[o.J=74]="J",o[o.K=75]="K",o[o.L=76]="L",o[o.M=77]="M",o[o.N=78]="N",o[o.O=79]="O",o[o.P=80]="P",o[o.Q=81]="Q",o[o.R=82]="R",o[o.S=83]="S",o[o.T=84]="T",o[o.U=85]="U",o[o.V=86]="V",o[o.W=87]="W",o[o.X=88]="X",o[o.Y=89]="Y",o[o.Z=90]="Z",o[o.asterisk=42]="asterisk",o[o.backslash=92]="backslash",o[o.closeBrace=125]="closeBrace",o[o.closeBracket=93]="closeBracket",o[o.colon=58]="colon",o[o.comma=44]="comma",o[o.dot=46]="dot",o[o.doubleQuote=34]="doubleQuote",o[o.minus=45]="minus",o[o.openBrace=123]="openBrace",o[o.openBracket=91]="openBracket",o[o.plus=43]="plus",o[o.slash=47]="slash",o[o.formFeed=12]="formFeed",o[o.tab=9]="tab"})(je||(je={}));var ei=Array(20).fill(0).map((o,t)=>" ".repeat(t));var ii={" ":{"\n":Array(200).fill(0).map((o,t)=>`
|
|
7
|
-
`+" ".repeat(t)),"\r":Array(200).fill(0).map((o,t)=>"\r"+" ".repeat(t)),"\r\n":Array(200).fill(0).map((o,t)=>`\r
|
|
8
|
-
`+" ".repeat(t))},"\t":{"\n":Array(200).fill(0).map((o,t)=>`
|
|
9
|
-
`+"\t".repeat(t)),"\r":Array(200).fill(0).map((o,t)=>"\r"+"\t".repeat(t)),"\r\n":Array(200).fill(0).map((o,t)=>`\r
|
|
10
|
-
`+"\t".repeat(t))}};var Se;(function(o){o.DEFAULT={allowTrailingComma:!1}})(Se||(Se={}));var qe=Y,De;(function(o){o[o.None=0]="None",o[o.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=2]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",o[o.InvalidUnicode=4]="InvalidUnicode",o[o.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",o[o.InvalidCharacter=6]="InvalidCharacter"})(De||(De={}));var Be;(function(o){o[o.OpenBraceToken=1]="OpenBraceToken",o[o.CloseBraceToken=2]="CloseBraceToken",o[o.OpenBracketToken=3]="OpenBracketToken",o[o.CloseBracketToken=4]="CloseBracketToken",o[o.CommaToken=5]="CommaToken",o[o.ColonToken=6]="ColonToken",o[o.NullKeyword=7]="NullKeyword",o[o.TrueKeyword=8]="TrueKeyword",o[o.FalseKeyword=9]="FalseKeyword",o[o.StringLiteral=10]="StringLiteral",o[o.NumericLiteral=11]="NumericLiteral",o[o.LineCommentTrivia=12]="LineCommentTrivia",o[o.BlockCommentTrivia=13]="BlockCommentTrivia",o[o.LineBreakTrivia=14]="LineBreakTrivia",o[o.Trivia=15]="Trivia",o[o.Unknown=16]="Unknown",o[o.EOF=17]="EOF"})(Be||(Be={}));var Ee;(function(o){o[o.InvalidSymbol=1]="InvalidSymbol",o[o.InvalidNumberFormat=2]="InvalidNumberFormat",o[o.PropertyNameExpected=3]="PropertyNameExpected",o[o.ValueExpected=4]="ValueExpected",o[o.ColonExpected=5]="ColonExpected",o[o.CommaExpected=6]="CommaExpected",o[o.CloseBraceExpected=7]="CloseBraceExpected",o[o.CloseBracketExpected=8]="CloseBracketExpected",o[o.EndOfFileExpected=9]="EndOfFileExpected",o[o.InvalidCommentToken=10]="InvalidCommentToken",o[o.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=12]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",o[o.InvalidUnicode=14]="InvalidUnicode",o[o.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",o[o.InvalidCharacter=16]="InvalidCharacter"})(Ee||(Ee={}));function Ce(o){return{getInitialState:()=>new _(null,null,!1,null),tokenize:(t,n)=>pi(o,t,n)}}var Ne="delimiter.bracket.json",Fe="delimiter.array.json",ti="delimiter.colon.json",ni="delimiter.comma.json",ri="keyword.json",ai="keyword.json",ci="string.value.json",di="number.json",si="string.key.json",li="comment.block.json",ui="comment.line.json";class j{constructor(o,t){this.parent=o,this.type=t}static pop(o){if(o)return o.parent;return null}static push(o,t){return new j(o,t)}static equals(o,t){if(!o&&!t)return!0;if(!o||!t)return!1;while(o&&t){if(o===t)return!0;if(o.type!==t.type)return!1;o=o.parent,t=t.parent}return!0}}class _{constructor(o,t,n,i){this._state=o,this.scanError=t,this.lastWasColon=n,this.parents=i}clone(){return new _(this._state,this.scanError,this.lastWasColon,this.parents)}equals(o){if(o===this)return!0;if(!o||!(o instanceof _))return!1;return this.scanError===o.scanError&&this.lastWasColon===o.lastWasColon&&j.equals(this.parents,o.parents)}getStateData(){return this._state}setStateData(o){this._state=o}}function pi(o,t,n,i=0){let e=0,r=!1;switch(n.scanError){case 2:t='"'+t,e=1;break;case 1:t="/*"+t,e=2;break}let a=qe(t),{lastWasColon:d,parents:p}=n,s={tokens:[],endState:n.clone()};while(!0){let m=i+a.getPosition(),u="",v=a.scan();if(v===17)break;if(m===i+a.getPosition())throw Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));if(r)m-=e;switch(r=e>0,v){case 1:p=j.push(p,0),u=Ne,d=!1;break;case 2:p=j.pop(p),u=Ne,d=!1;break;case 3:p=j.push(p,1),u=Fe,d=!1;break;case 4:p=j.pop(p),u=Fe,d=!1;break;case 6:u=ti,d=!0;break;case 5:u=ni,d=!1;break;case 8:case 9:u=ri,d=!1;break;case 7:u=ai,d=!1;break;case 10:let I=(p?p.type:0)===1;u=d||I?ci:si,d=!1;break;case 11:u=di,d=!1;break}switch(v){case 12:u=ui;break;case 13:u=li;break}s.endState=new _(n.getStateData(),a.getTokenError(),d,p),s.tokens.push({startIndex:m,scopes:u})}return s}var M;function Sa(){return new Promise((o,t)=>{if(!M)return t("JSON not registered!");o(M)})}class _e extends lo{constructor(o,t,n){super(o,t,n.onDidChange);this._disposables.push(Un.onWillDisposeModel((i)=>{this._resetSchema(i.uri)})),this._disposables.push(Un.onDidChangeModelLanguage((i)=>{this._resetSchema(i.model.uri)}))}_resetSchema(o){this._worker().then((t)=>{t.resetSchema(o.toString())})}}function Da(o){let t=[],n=[],i=new G(o);t.push(i),M=(...a)=>i.getLanguageServiceWorker(...a);function e(){let{languageId:a,modeConfiguration:d}=o;if(Re(n),d.documentFormattingEdits)n.push(xe.registerDocumentFormattingEditProvider(a,new ho(M)));if(d.documentRangeFormattingEdits)n.push(xe.registerDocumentRangeFormattingEditProvider(a,new fo(M)));if(d.completionItems)n.push(xe.registerCompletionItemProvider(a,new uo(M,[" ",":",'"'])));if(d.hovers)n.push(xe.registerHoverProvider(a,new go(M)));if(d.documentSymbols)n.push(xe.registerDocumentSymbolProvider(a,new mo(M)));if(d.tokens)n.push(xe.setTokensProvider(a,Ce(!0)));if(d.colors)n.push(xe.registerColorProvider(a,new bo(M)));if(d.foldingRanges)n.push(xe.registerFoldingRangeProvider(a,new vo(M)));if(d.diagnostics)n.push(new _e(a,M,o));if(d.selectionRanges)n.push(xe.registerSelectionRangeProvider(a,new wo(M)))}e(),t.push(xe.setLanguageConfiguration(o.languageId,gi));let r=o.modeConfiguration;return o.onDidChange((a)=>{if(a.modeConfiguration!==r)r=a.modeConfiguration,e()}),t.push(Oe(n)),Oe(t)}function Oe(o){return{dispose:()=>Re(o)}}function Re(o){while(o.length)o.pop().dispose()}var gi={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{uo as CompletionAdapter,ke as DefinitionAdapter,lo as DiagnosticsAdapter,bo as DocumentColorAdapter,ho as DocumentFormattingEditProvider,we as DocumentHighlightAdapter,Ie as DocumentLinkAdapter,fo as DocumentRangeFormattingEditProvider,mo as DocumentSymbolAdapter,vo as FoldingRangeAdapter,go as HoverAdapter,Me as ReferenceAdapter,Le as RenameAdapter,wo as SelectionRangeAdapter,G as WorkerManager,z as fromPosition,po as fromRange,Sa as getWorker,Da as setupMode,x as toRange,N as toTextEdit};
|
|
11
|
-
|
|
12
|
-
//# debugId=47E1D0049F70175C64756E2164756E21
|
|
13
|
-
//# sourceMappingURL=jsonMode-vj30te2h.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{dt,Z$,sv,X$,qo,qC,Fn,Xs,av,Q$}from"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-wqfaqw4m.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";export{av as clearLayerSlot,Xs as getLayerSlot,Z$ as initLayers,sv as isModalOpen,X$ as isPopoverOpen,dt as layerHost,Q$ as overlayIdleBlockers,qo as showConfirmDialog,Fn as showPromptDialog,qC as showSaveDiscardDialog};
|
|
2
|
-
|
|
3
|
-
//# debugId=3A2D2E15C323255164756E2164756E21
|
|
4
|
-
//# sourceMappingURL=layers-m49nmwvx.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{FP,aE}from"./studio-s7t4vp1d.js";import"./studio-fkrr7kgg.js";import"./studio-3xk9zdgb.js";import"./studio-bz0b5brj.js";import"./studio-hfxttkyr.js";import"./studio-r050sez0.js";import"./studio-321ym1tt.js";import"./studio-yzpskb0j.js";import"./studio-waekn290.js";import"./studio-daksw8kh.js";import"./studio-thz5t120.js";import"./studio-nskxe9q1.js";import"./studio-a65kbs2e.js";import"./studio-ggx3j7nd.js";import"./studio-stahswgb.js";import"./studio-xpx91fby.js";import"./studio-3q7mhbgx.js";import"./studio-53wy9ek3.js";import"./studio-n9qba0gx.js";import"./studio-x0gsfr1d.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-y1b86ast.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bct64zmj.js";import"./studio-4zd6an2b.js";import"./studio-zfdbmhp3.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";import"./studio-k1wvtp03.js";export{aE as registerLayersPanel,FP as startLayerTitleEdit};
|
|
2
|
-
|
|
3
|
-
//# debugId=1DEF1039169B2F4664756E2164756E21
|
|
4
|
-
//# sourceMappingURL=layers-panel-hvy2e549.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{uF,wb,eN,tN,nN,cS,vw,JE,YE,HP,hF,BP,dS,pF,ZE}from"./studio-nwynxqtb.js";import"./studio-r050sez0.js";import"./studio-waekn290.js";import"./studio-daksw8kh.js";import"./studio-thz5t120.js";import"./studio-nskxe9q1.js";import"./studio-p2a03pgm.js";import"./studio-a65kbs2e.js";import"./studio-ggx3j7nd.js";import"./studio-stahswgb.js";import"./studio-xpx91fby.js";import"./studio-3q7mhbgx.js";import"./studio-53wy9ek3.js";import"./studio-n9qba0gx.js";import"./studio-x0gsfr1d.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-y1b86ast.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bct64zmj.js";import"./studio-4zd6an2b.js";import"./studio-zfdbmhp3.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{uF as MEDIA_HOME_MODE,HP as applyMediaBrowse,dS as closeMediaPickDialog,eN as deleteMediaFile,vw as detachMediaLibrary,nN as duplicateMediaFile,YE as focusMediaHome,cS as mediaLibraryMounted,pF as openMediaPickDialog,tN as renameMediaFile,JE as renderMediaLibrary,BP as requestMediaReplace,hF as requestMediaUpload,ZE as resetMediaLibrary,wb as selectedEntry};
|
|
2
|
-
|
|
3
|
-
//# debugId=A648DC532C10E52F64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=media-library-ae67q4at.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{jb,EL,Zu,XS,QS,eC,tC}from"./studio-p2a03pgm.js";import"./studio-ggx3j7nd.js";import"./studio-y1b86ast.js";import"./studio-bct64zmj.js";import"./studio-4zd6an2b.js";import"./studio-zfdbmhp3.js";import"./studio-hh394phe.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{QS as canDuplicateMedia,XS as canEditImage,jb as isViewableMedia,EL as mediaTabModes,eC as mediaWriteRefused,tC as openImageEditor,Zu as openMediaTab};
|
|
2
|
-
|
|
3
|
-
//# debugId=0A4822103275CB6764756E2164756E21
|
|
4
|
-
//# sourceMappingURL=media-open-yp9jm834.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{kT,ET,Gu,Dw,zP,ES,WP,TS,Kl,Cm}from"./studio-waekn290.js";import"./studio-y1b86ast.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bct64zmj.js";import"./studio-4zd6an2b.js";import"./studio-zfdbmhp3.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1ks5d9y4.js";export{Dw as invalidateMediaCache,kT as isMediaScanPath,Kl as mountMediaPicker,ET as onProjectMediaChange,zP as openFullMediaPicker,TS as pickAndUpload,Gu as projectMediaFiles,ES as showMediaPickerPopover,Cm as unmountMediaPicker,WP as uploadAndAssign};
|
|
2
|
-
|
|
3
|
-
//# debugId=B84851BAAA8670E864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=media-picker-s41ngdfr.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{p,y,a,E}from"./iframe-entry-b5qgggyp.js";import{t}from"./iframe-entry-42hpmwz5.js";var M="jx-menu-item",s="jx-menu",L="inline-end span-block-end";function g(e){let n=e.currentTarget;return n instanceof HTMLElement&&n.localName===s?n:null}function H(e,n){return n instanceof Element&&n.closest(s)===e}function c(e,n={}){let o=[...e.querySelectorAll(M)].filter((r)=>r.closest(s)===e);return n.includeDisabled?o:o.filter((r)=>r.getAttribute("aria-disabled")!=="true")}function b(e){for(let n of e.querySelectorAll(s))if(n.parentElement?.closest(M)===e)return n;return null}function f(e){return e.parentElement?.closest(M)??null}function h(e){let n=e;for(;;){let o=f(n),r=o?.closest(s);if(!o||!(r instanceof HTMLElement))return n;n=r}}function w(e){return e.open===!0}function R(e,n){if(!w(e))a(e,n??null)}function m(e){if(w(e)&&t(e.hidePopover))e.hidePopover()}function i(e,n){if(e.length===0)return null;let o=(n%e.length+e.length)%e.length;for(let[l,u]of e.entries())u.tabIndex=l===o?0:-1;let r=e[o];return r.focus(),r}function S(e,n){return e.findIndex((o)=>o===n||n instanceof Node&&o.contains(n))}function T(e,n={}){let o=b(e);if(!o)return null;let r=e.getBoundingClientRect();if(o.x=Math.round(r.right)-2,o.y=Math.round(r.top)-4,e.expanded=!0,R(o,e),n.focus)i(c(o),0);return o}function x(e,n=null){for(let o of c(e,{includeDisabled:!0})){if(o===n)continue;let r=b(o);if(r)m(r)}}function k(e){return e.querySelector('[part="label"]')?.textContent??e.textContent}function A(e,n,o){let r=e.map((l)=>k(l).trim().toLowerCase());for(let l=1;l<=r.length;l++){let u=(n+l)%r.length;if(r[u].startsWith(o))return u}return-1}function O(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey?e.key.toLowerCase():null}function K(e,n){let o=g(n);if(!o||!H(o,n.target))return;let r=c(o),l=S(r,n.target);switch(n.key){case"ArrowDown":{i(r,l+1);break}case"ArrowUp":{i(r,l===-1?-1:l-1);break}case"Home":{i(r,0);break}case"End":{i(r,-1);break}case"Enter":case" ":{r[l]?.click();break}case"ArrowRight":{let u=r[l];if(!u||!b(u))return;x(o,u),T(u,{focus:!0});break}case"ArrowLeft":{let u=f(o);if(!u)return;m(o),u.focus();break}case"Escape":{let u=f(o);m(o),u?.focus();break}case"Tab":{m(h(o));break}default:{let u=O(n);if(u===null)return;let d=A(r,l,u);if(d===-1)return;i(r,d)}}n.preventDefault(),n.stopPropagation()}function P(e,n){let o=g(n);if(!o)return;let r="newState"in n&&n.newState==="open",l=String(e.placement??"")||(f(o)?L:"");e.area=l;let u="source"in n?n.source:null,d=u instanceof Element?u:y(o);e.anchored=r&&l!==""&&d!==null&&!C(o)}function I(e,n){let o=g(n);if(!o)return;let r="newState"in n&&n.newState==="open";e.open=r;let l=f(o);if(!r){if(x(o),l)l.expanded=!1;return}if(!(e.anchored===!0&&p()))E(e,o,{flipAgainst:l?.closest(s)??null,floor:N(o)});if(!o.contains(document.activeElement))i(c(o),0)}function C(e){return Number(h(e).floor??0)>0}function N(e){let n=Number(h(e).floor??0);return n>0?n:window.innerHeight}function U(e){if(e.contains(document.activeElement))return;let n=e;for(;;){let r=c(n,{includeDisabled:!0}).map((l)=>b(l)).find((l)=>l!==null&&w(l));if(!r)break;n=r}let o=f(n);if(c(n).length===0&&o){m(n),o.focus();return}i(c(n),0)}function q(e,n){let o=g(n);if(!o||!(n.target instanceof Element))return;let r=n.target.closest(M);if(!r||r.closest(s)!==o)return;let l=b(r);if(x(o,r),l&&!w(l)&&r.getAttribute("aria-disabled")!=="true")T(r)}export{L as SUBMENU_PLACEMENT,E as clampIntoViewport,U as ensureCaret,i as focusRow,m as hideMenu,P as onMenuBeforeToggle,K as onMenuKeydown,q as onMenuPointerOver,I as onMenuToggle,T as openSubmenu,f as parentRowOf,h as rootMenuOf,c as rowsOf,R as showMenu,b as submenuOf};
|
|
2
|
-
|
|
3
|
-
//# debugId=75513AE9CBFF72A264756E2164756E21
|
|
4
|
-
//# sourceMappingURL=menu-d2jxpgma.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Xp,Ev,Tv,TI,tu,Qp,nu,ef}from"./studio-swedpd82.js";import"./studio-sce30r7b.js";export{Xp as BUFFER_COMMIT,tu as bufferIsLive,Qp as bufferMovedOn,Ev as bufferWrites,TI as cancelBufferWrites,Tv as commitBufferWrites,nu as commitTabBuffers,ef as tabBufferUnsaved};
|
|
2
|
-
|
|
3
|
-
//# debugId=B96956989D3A87F864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=monaco-buffer-pa0g6ax7.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{tm,xe}from"./studio-eqcddvc2.js";import{ud}from"./studio-k0xzrse2.js";import"./studio-k1wvtp03.js";import{S0,C0}from"./studio-2ggfzrrd.js";import{k0}from"./studio-abh9kfdh.js";import{n,v}from"./studio-k3we3kqb.js";import{ce}from"./studio-0939t1q1.js";var y="__monacoFindWidgetTabIndexPatchApplied",m="__monacoFindWidgetOriginalTabIndex";function z(o,e){let i=o?._domNode;if(!i)return;let a=i.querySelectorAll('input, textarea, [tabindex], [role="button"], [role="checkbox"]');for(let r of a){if(!(r instanceof HTMLElement))continue;if(e){if(!(m in r.dataset))continue;let t=r.dataset[m];if(t==="")r.removeAttribute("tabindex");else r.tabIndex=Number(t);delete r.dataset[m]}else{if(!(m in r.dataset))r.dataset[m]=r.getAttribute("tabindex")??"";r.tabIndex=-1}}}if(!ud[y]){let o=ud.prototype._reveal,e=ud.prototype._hide;ud.prototype._reveal=function(...i){o.apply(this,i),z(this,!0)},ud.prototype._hide=function(...i){e.apply(this,i),z(this,!1)},ud[y]=!0}class L{constructor(o,e,i){this._onDidChange=new tm,this._languageId=o,this.setDiagnosticsOptions(e),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}}var T={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},E={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},b=new L("json",T,E);function F(){return ce("vj30te2h"),import("./jsonMode-vj30te2h.js")}xe.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});xe.onLanguage("json",()=>{F().then((o)=>o.setupMode(b))});var C={},f={};class x{static getOrCreate(o){if(!f[o])f[o]=new x(o);return f[o]}constructor(o){this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,i)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=i})}load(){if(!this._loadingTriggered)this._loadingTriggered=!0,C[this._languageId].loader().then((o)=>this._lazyLoadPromiseResolve(o),(o)=>this._lazyLoadPromiseReject(o));return this._lazyLoadPromise}}function M(o){let e=o.id;C[e]=o,xe.register(o);let i=x.getOrCreate(e);xe.registerTokensProviderFactory(e,{create:async()=>(await i.load()).language}),xe.onLanguageEncountered(e,async()=>{let a=await i.load();xe.setLanguageConfiguration(e,a.conf)})}M({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>(ce("hy2mws8v"),import("./javascript-hy2mws8v.js"))});var W=["additionalItems","additionalProperties","contains","contentSchema","else","if","items","not","propertyNames","then","unevaluatedItems","unevaluatedProperties"],O=["$defs","definitions","dependencies","dependentSchemas","patternProperties","properties"],D=["allOf","anyOf","oneOf","prefixItems"];function P(o){return o.replaceAll("~","~0").replaceAll("/","~1")}function*S(o,e){for(let i of W){let a=o[i];if(Array.isArray(a)){for(let[r,t]of a.entries())if(v(t))yield[t,`${e}/${i}/${r}`]}else if(v(a))yield[a,`${e}/${i}`]}for(let i of O){let a=o[i];if(!v(a))continue;for(let[r,t]of Object.entries(a))if(v(t))yield[t,`${e}/${i}/${P(r)}`]}for(let i of D){let a=o[i];if(!Array.isArray(a))continue;for(let[r,t]of a.entries())if(v(t))yield[t,`${e}/${i}/${r}`]}}function _(o,e){let i=o.replace(/^[a-zA-Z][a-zA-Z\d+.-]*:/,"");if(i.startsWith("//")){let t=i.indexOf("/",2);i=t===-1?"":i.slice(t+1)}i=i.replace(/^schema\//,"");let a=i.split(/[^a-zA-Z0-9]+/).filter(Boolean).join("-")||"resource",r=a;for(let t=2;e.has(r);t+=1)r=`${a}-${t}`;return e.add(r),r}function w(o){let e=structuredClone(o);if(v(e.$defs)){let t=new Set(Object.keys(e.$defs).filter((c)=>!h(c))),l={};for(let[c,d]of Object.entries(e.$defs)){let s=v(d)&&n(d.$id)?d.$id:c;l[h(c)?_(s,t):c]=d}e.$defs=l}let i=new Map,a=(t,l)=>{let{$id:c}=t;if(n(c)&&h(c)&&!i.has(c))i.set(c,l);for(let[d,s]of S(t,l))a(d,s)};a(e,"#");let r=(t,l)=>{let c=l,{$id:d}=t;if(n(d)&&h(d)){if(c=i.get(d)??l,c!=="#")delete t.$id}let s=t.$ref;if(n(s)){let p=s.indexOf("#"),k=p===-1?s:s.slice(0,p),g=p===-1?"":s.slice(p+1);if(k===""){if(g.startsWith("/"))t.$ref=`${c}${g}`}else{let u=i.get(k);if(u!==void 0)t.$ref=g?`${u}${g}`:u}}for(let[p]of S(t,c))r(p,c)};return r(e,"#"),e}function h(o){return/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(o)}var q="editor.worker.js",J=new Map([["editorWorkerService",q],["javascript","ts.worker.js"],["json","json.worker.js"],["typescript","ts.worker.js"]]);function U(o){let e=J.get(o)??q;return k0(`workers/${e}`)}self.MonacoEnvironment={getWorker(o,e){return new Worker(U(e),{type:"module"})}};var A=typeof document>"u"?void 0:document.fonts;if(A?.ready)A.ready.then(async()=>{let o=await (ce("wvf5e6j9"),import("./editor-wvf5e6j9.js"));o.editor.remeasureFonts()});var V=["pages/*.json","pages/**/*.json","layouts/*.json","layouts/**/*.json","components/*.json","components/**/*.json","elements/*.json","elements/**/*.json"],N="file:///project.schema.json",G="file:///document.schema.json";function j(o,e){b.setDiagnosticsOptions({allowComments:!1,schemas:[{fileMatch:V,schema:o,uri:"https://jxsuite.com/schema/v1"},{fileMatch:["project.json"],schema:e,uri:"https://jxsuite.com/schema/project/v1"},{schema:e,uri:N},{schema:o,uri:G}],validate:!0})}var B=w(S0),I=w(C0);j(B,I);function Nn(o){let{document:e,project:i}=o??{};if(!e&&!i)return!1;return j(e??B,i??I),!0}export{Nn as applyProjectSchemas};
|
|
2
|
-
|
|
3
|
-
//# debugId=12DC824246E4FA3864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=monaco-setup-g9kterhx.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{cf,MI,Av,PI,p,ye}from"./studio-4fnb5648.js";export{cf as canOpenProject,p as getPlatform,ye as hasPlatform,Av as launcherSignal,PI as platformInFlight,MI as registerPlatform};
|
|
2
|
-
|
|
3
|
-
//# debugId=509DCA5761680E4064756E2164756E21
|
|
4
|
-
//# sourceMappingURL=platform-kv0k65cy.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{p,y,a,f,U,te,ne,re,E}from"./iframe-entry-b5qgggyp.js";export{y as anchorOf,E as clampIntoViewport,f as close,U as measureAnchor,te as onBeforeToggle,ne as onToggle,re as onTransitionEnd,a as openAt,p as supportsAnchorPositioning};
|
|
2
|
-
|
|
3
|
-
//# debugId=F14E8DF808BCB21164756E2164756E21
|
|
4
|
-
//# sourceMappingURL=popover-9tf4cjrk.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{NE,cF}from"./studio-nn4f9m9c.js";import"./studio-k1xqrgm5.js";import"./studio-stahswgb.js";import"./studio-xpx91fby.js";import"./studio-x0gsfr1d.js";import"./studio-g9brbewz.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-wqfaqw4m.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";export{cF as openPublishPanel,NE as seedPublishConnected};
|
|
2
|
-
|
|
3
|
-
//# debugId=6D2766BA78F44CA364756E2164756E21
|
|
4
|
-
//# sourceMappingURL=publish-panel-gzfxcm0t.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{PD,PE,Y_,Z_,FE}from"./studio-3c10v2q1.js";import"./studio-nf8esxxc.js";import"./studio-8kx6m0rg.js";import"./studio-k2evngrj.js";import"./studio-p2a03pgm.js";import"./studio-a65kbs2e.js";import"./studio-ggx3j7nd.js";import"./studio-stahswgb.js";import"./studio-xpx91fby.js";import"./studio-3q7mhbgx.js";import"./studio-53wy9ek3.js";import"./studio-n9qba0gx.js";import"./studio-x0gsfr1d.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-y1b86ast.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bct64zmj.js";import"./studio-4zd6an2b.js";import"./studio-zfdbmhp3.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{Z_ as detachPublishWorkspace,PE as focusPublishHome,Y_ as publishWorkspaceMounted,FE as renderPublishWorkspace,PD as showPublishTab};
|
|
2
|
-
|
|
3
|
-
//# debugId=FB46B75856CED2BD64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=publish-workspace-dppd82tc.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{jE,mb}from"./studio-5n193zqd.js";import"./studio-wse1rs8t.js";import"./studio-wgc54sxf.js";import"./studio-fspe7m9t.js";import"./studio-daksw8kh.js";import"./studio-e7vjyp04.js";import"./studio-thz5t120.js";import"./studio-nskxe9q1.js";import"./studio-8kx6m0rg.js";import"./studio-k2evngrj.js";import"./studio-p2a03pgm.js";import"./studio-a65kbs2e.js";import"./studio-ggx3j7nd.js";import"./studio-stahswgb.js";import"./studio-xpx91fby.js";import"./studio-3q7mhbgx.js";import"./studio-53wy9ek3.js";import"./studio-n9qba0gx.js";import"./studio-x0gsfr1d.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-y1b86ast.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bct64zmj.js";import"./studio-4zd6an2b.js";import"./studio-zfdbmhp3.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{jE as initQuickSearch,mb as openQuickSearch};
|
|
2
|
-
|
|
3
|
-
//# debugId=CFA87DDA4107811C64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=quick-search-tdxaam55.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{ph,qd,La,nI,us,iI,lv,oI,cv}from"./studio-4zd6an2b.js";import"./studio-9c6cbq2c.js";import"./studio-4fnb5648.js";export{us as invalidateUsages,La as loadUsages,iI as onUsagesInvalidated,qd as peekUsages,nI as retryUsages,cv as usageFiles,lv as usageHeadline,oI as usageWarning,ph as usagesSupported};
|
|
2
|
-
|
|
3
|
-
//# debugId=8CA6856AFEEA139064756E2164756E21
|
|
4
|
-
//# sourceMappingURL=references-vqyr5s9x.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{XR,eE,lF,tE,tb,Hl,Iu}from"./studio-f8tyeyzt.js";import"./studio-fkrr7kgg.js";import"./studio-s9fng7m8.js";import"./studio-bz0b5brj.js";import"./studio-hfxttkyr.js";import"./studio-r050sez0.js";import"./studio-423tfdte.js";import"./studio-9qx1ywbv.js";import"./studio-yzpskb0j.js";import"./studio-waekn290.js";import"./studio-wse1rs8t.js";import"./studio-wgc54sxf.js";import"./studio-fspe7m9t.js";import"./studio-daksw8kh.js";import"./studio-e7vjyp04.js";import"./studio-thz5t120.js";import"./studio-nskxe9q1.js";import"./studio-8kx6m0rg.js";import"./studio-k2evngrj.js";import"./studio-p2a03pgm.js";import"./studio-a65kbs2e.js";import"./studio-ggx3j7nd.js";import"./studio-stahswgb.js";import"./studio-xpx91fby.js";import"./studio-3q7mhbgx.js";import"./studio-53wy9ek3.js";import"./studio-n9qba0gx.js";import"./studio-x0gsfr1d.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-y1b86ast.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bct64zmj.js";import"./studio-4zd6an2b.js";import"./studio-zfdbmhp3.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";import"./studio-k1wvtp03.js";export{Hl as inspectorTab,eE as mount,tb as render,tE as restingInspectorTab,Iu as setInspectorTab,XR as stripOf,lF as unmount};
|
|
2
|
-
|
|
3
|
-
//# debugId=95FFFC615B7AE2BD64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=right-panel-0yrw4cgz.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{ks,XT,KS,JS,Pb,Us,QT,eL,tL,nL,iL,oL,rL,sL,aL,lL,cL,dL,uL,hL,YS,pL,fL,Yw,mL,gL,Fb,bL}from"./studio-8kx6m0rg.js";import"./studio-k2evngrj.js";import"./studio-p2a03pgm.js";import"./studio-a65kbs2e.js";import"./studio-ggx3j7nd.js";import"./studio-stahswgb.js";import"./studio-xpx91fby.js";import"./studio-3q7mhbgx.js";import"./studio-53wy9ek3.js";import"./studio-n9qba0gx.js";import"./studio-x0gsfr1d.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-y1b86ast.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bct64zmj.js";import"./studio-4zd6an2b.js";import"./studio-zfdbmhp3.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-yrcrncev.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-aam8zt8z.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{gL as armGitPoll,YS as changeRow,hL as checkoutBranch,Fb as cleanupSourceControl,JS as cloneRepository,fL as commitRow,uL as createBranch,dL as discardFile,KS as fetchGitLog,rL as fetchRemote,pL as groupFilesByComponent,cL as includeNewChanges,mL as lastUpdatedLabel,tL as loadDiffForLens,XT as noteFileSaved,oL as openFileComparison,Us as platformHostsGit,QT as platformOpensPullRequests,Pb as platformSupportsClone,sL as pullRemote,ks as refreshGitStatus,bL as registerSourceControlCommands,Yw as relativeDate,iL as runCloneRepository,lL as setAllIncluded,aL as setIncluded,nL as setSourceControlDeps,eL as statusTag};
|
|
2
|
-
|
|
3
|
-
//# debugId=0F764DB110E551E064756E2164756E21
|
|
4
|
-
//# sourceMappingURL=source-control-6fk72me2.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{zy,xa,L_,os,$_,rs}from"./studio-3na1r48j.js";import{Ce}from"./studio-v5wktj6f.js";import{n,Y,v}from"./studio-k3we3kqb.js";var OR="meta",MR="frontmatter",PR="structure",FR="source",jR=2;function m(e){return v(e)}function Tu(e){return e.getMap(OR)}function HR(e){return e.getMap(MR)}function Xg(e){return e.getMap(PR)}function BR(e){return e.getText(FR)}var h=new Set(["textContent"]),y=new Set(["style","attributes","$props"]);function g(e,t){let o=e.toString();if(o===t)return!1;let r=0,s=Math.min(o.length,t.length);while(r<s&&o[r]===t[r])r+=1;let a=o.length,i=t.length;while(a>r&&i>r&&o[a-1]===t[i-1])a-=1,i-=1;if(a>r)e.delete(r,a-r);if(i>r)e.insert(r,t.slice(r,i));return!0}function f(e){let t=new os;for(let[o,r]of Object.entries(e)){if(r===void 0)continue;t.set(o,m(r)?f(r):Ce(r))}return t}function S(e,t){for(let o of[...e.keys()])if(!(o in t)||t[o]===void 0)e.delete(o);for(let[o,r]of Object.entries(t)){if(r===void 0)continue;let s=e.get(o);if(m(r))if(s instanceof os)S(s,r);else e.set(o,f(r));else if(!J(s,r))e.set(o,Ce(r))}}function J(e,t){if(e===t)return!0;if(e instanceof os||e instanceof xa||e instanceof rs)return!1;return JSON.stringify(e??null)===JSON.stringify(t??null)}function d(e){return n(e)?new rs(e):zR(e)}function nm(e){let t=new xa;return t.insert(0,e.map((o)=>d(o))),t}function zR(e){if(!m(e))throw TypeError("collab-schema: a document node must be a plain object");let t=new os;for(let[o,r]of Object.entries(e)){if(r===void 0)continue;if(o==="children"&&Array.isArray(r))t.set(o,nm(r));else if(h.has(o)&&n(r))t.set(o,new rs(r));else if(y.has(o)&&m(r))t.set(o,f(r));else t.set(o,Ce(r))}return t}function D(e){return Object.fromEntries(Array.from(e.entries(),([t,o])=>[t,im(o)]))}function O(e){if(n(e))return e;return e instanceof rs?e.toString():D(e)}function im(e){if(e instanceof os)return D(e);if(e instanceof xa)return e.toArray().map((t)=>im(t));if(e instanceof rs)return e.toString();return e}function CP(e){return D(Xg(e))}function E_(e,t){let o=Xg(e);for(let r of t)if(o instanceof os)o=o.get(String(r));else if(o instanceof xa){let s=Number(r);if(!Number.isInteger(s)||s<0||s>=o.length)return;o=o.get(s)}else return;return o}function qk(e,t,o){let r=BR(e);if(r.toString()===t)return!1;return e.transact(()=>{g(r,t)},o),!0}function kP(e,t,o={}){let r=Tu(e);if(r.get("structureSeeded")===!0)return!1;return e.transact(()=>{let s=Xg(e);for(let[i,c]of Object.entries(t)){if(c===void 0)continue;if(i==="children"&&Array.isArray(c))s.set(i,nm(c));else s.set(i,Ce(c))}let a=HR(e);for(let[i,c]of Object.entries(o.frontmatter??{}))if(c!==void 0)a.set(i,Ce(c));r.set("schemaVersion",jR),r.set("canonical","structure"),r.set("canonicalRev",0),r.set("sourceFormat",o.sourceFormat??null),r.set("structureSeeded",!0)},o.origin),!0}var EP="jx-local",TP="jx-mirror",LP="jx-seed";class Lu extends Error{constructor(e){super(`collab-path-unresolved:${e.join("/")}`);this.name="CollabPathError"}}function T(e,t){let o=E_(e,t);if(!(o instanceof os))throw new Lu(t);return o}function p(e,t,o){let r=T(e,t),s=r.get("children");if(s instanceof xa)return s;if(o&&s===void 0){let a=new xa;return r.set("children",a),a}throw new Lu([...t,"children"])}function V(e,t,o){let r=e.get(t);if(t==="children"&&Array.isArray(o)){e.set(t,nm(o));return}if(h.has(t)&&n(o)){if(r instanceof rs)g(r,o);else e.set(t,new rs(o));return}if(y.has(t)&&v(o)){if(r instanceof os)S(r,o);else e.set(t,f(o));return}e.set(t,Ce(o))}function w(e,t){let{op:o}=t;switch(t.op){case"set-key":{let r=T(e,t.path);if(t.value===void 0)r.delete(t.key);else V(r,t.key,t.value);return}case"insert-child":{let r=p(e,t.parentPath,!0);if(t.index<0||t.index>r.length)throw new Lu([...t.parentPath,"children",t.index]);r.insert(t.index,[d(t.node)]);return}case"remove-child":{let r=p(e,t.parentPath,!1);if(t.index<0||t.index>=r.length)throw new Lu([...t.parentPath,"children",t.index]);r.delete(t.index,1);return}case"set-child":{let r=p(e,t.parentPath,!1);if(t.index<0||t.index>=r.length)throw new Lu([...t.parentPath,"children",t.index]);let s=r.get(t.index);if(s instanceof rs&&n(t.node)){g(s,t.node);return}r.delete(t.index,1),r.insert(t.index,[d(t.node)]);return}case"move-child":{let r=p(e,t.fromParentPath,!1),s=p(e,t.toParentPath,!0);if(t.fromIndex<0||t.fromIndex>=r.length)throw new Lu([...t.fromParentPath,"children",t.fromIndex]);let a=im(r.get(t.fromIndex));if(r.delete(t.fromIndex,1),t.toIndex<0||t.toIndex>s.length)throw new Lu([...t.toParentPath,"children",t.toIndex]);s.insert(t.toIndex,[d(a)]);return}default:throw Error(`unknown-doc-op:${o}`)}}function $P(e,t,o){e.transact(()=>{for(let r of t)w(e,r)},o)}function P(e){for(let t=0;t<e.length;t++){let o=e[t];if(!n(o))continue;if(y.has(o))return{key:o,nodePath:e.slice(0,t)};if(h.has(o))return{key:o,nodePath:e.slice(0,t)}}return null}function C(e){return e instanceof rs||e instanceof os||n(e)}function N(e){return e.every((t)=>n(t)||Y(t))}function IP(e){if(e.length===0)return[];let t=e.map((s)=>s.path);if(!t.every((s)=>N(s)))return null;for(let s=0;s<t.length;s++)for(let a=0;a<t.length;a++){if(s===a)continue;let i=t[s],c=t[a];if(i.length<=c.length&&i.every((u,l)=>u===c[l]))return null}if(e.filter((s)=>s instanceof zy).length>1)return null;let r=[];for(let s of e){let{path:a}=s,i=P(a);if(i){let{doc:c}=s.target;if(!c)return null;let u=E_(c,[...i.nodePath,i.key]);if(u===void 0)return null;r.push({key:i.key,op:"set-key",path:i.nodePath,value:im(u)});continue}if(s instanceof $_){let c=a.at(-1);if(a.at(-2)==="children"&&Y(c)){r.push({index:c,node:s.target.toString(),op:"set-child",parentPath:a.slice(0,-2)});continue}return null}if(s instanceof L_){let c=s.target;for(let[u,l]of s.changes.keys)if(l.action==="delete")r.push({key:u,op:"set-key",path:a});else r.push({key:u,op:"set-key",path:a,value:im(c.get(u))})}else if(s instanceof zy){if(a.at(-1)!=="children")return null;let c=a.slice(0,-1),u=0;for(let l of s.changes.delta)if(l.retain!==void 0)u+=l.retain;else if(l.delete!==void 0)for(let x=0;x<l.delete;x++)r.push({index:u,op:"remove-child",parentPath:c});else if(l.insert!==void 0){let x=Array.isArray(l.insert)?l.insert:[l.insert];for(let E of x){if(!C(E))return null;r.push({index:u,node:O(E),op:"insert-child",parentPath:c}),u+=1}}}else return null}return r}function RP(e,t,o){e.transact(()=>{let r=Xg(e),s=[...r.keys()];for(let i of s)if(!(i in t)||t[i]===void 0)r.delete(i);for(let[i,c]of Object.entries(t)){if(c===void 0)continue;if(i==="children"&&Array.isArray(c))r.set(i,nm(c));else r.set(i,Ce(c))}let a=Tu(e);a.set("canonicalRev",Number(a.get("canonicalRev")??0)+1)},o)}function Gk(e){return Tu(e).get("canonical")==="source"?"source":"structure"}function Kk(e){return Number(Tu(e).get("canonicalRev")??0)}function DP(e,t,o){if(Gk(e)==="source")return!1;return e.transact(()=>{qk(e,t,o);let r=Tu(e);r.set("canonical","source"),r.set("canonicalRev",Kk(e)+1)},o),!0}function NP(e,t){if(Gk(e)!=="source")return!1;return e.transact(()=>{let o=Tu(e);o.set("canonical","structure"),o.set("canonicalRev",Kk(e)+1)},t),!0}function AP(e,t,o){let r=[];for(let[s,a]of e.getStates()){let i=a;if(s!==o&&i.mode==="source"&&i.focusedPath===t)r.push(s)}return r}function OP(e,t){let o=e.clientID,r=e.getStates().get(o);if(r?.mode!=="source"||r.focusedPath!==t)return!1;let s=o;for(let[a,i]of e.getStates()){let c=i;if(c.mode==="source"&&c.focusedPath===t&&c.canWrite!==!1&&a<s)s=a}return s===o}var Jk=["#4f9cf9","#e5484d","#30a46c","#f5a524","#8e4ec6","#00a2c7","#e93d82","#a8845c"];function MP(e){let t=5381;for(let r=0;r<e.length;r++)t=Math.imul(t,33)+(e.codePointAt(r)??0);let o=Math.abs(t)%Jk.length;return Jk[o]}export{OR,MR,PR,FR,jR,Tu,HR,Xg,BR,nm,zR,im,CP,E_,qk,kP,EP,TP,LP,Lu,$P,IP,RP,Gk,Kk,DP,NP,AP,OP,Jk,MP};
|
|
2
|
-
|
|
3
|
-
//# debugId=BEBC77324A443C6564756E2164756E21
|
|
4
|
-
//# sourceMappingURL=studio-0khd8xtx.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{p,ye}from"./studio-4fnb5648.js";import{Cs}from"./studio-e7vjyp04.js";import{X}from"./studio-9c6cbq2c.js";import{w}from"./studio-sce30r7b.js";import{nt,Fn}from"./studio-tpxcryf2.js";import{Wt,ln,go,mv}from"./studio-yrcrncev.js";import{qs}from"./studio-a65kbs2e.js";import{zt}from"./studio-daksw8kh.js";import{us}from"./studio-4zd6an2b.js";import{yf}from"./studio-1ks5d9y4.js";import{Wm,Ax,nr}from"./studio-y1b86ast.js";import{yr,ih,hC,NA,qb,hi,ax,PA,Ql,gC,sh,jA,Ap}from"./studio-53wy9ek3.js";import{Ab,Ob}from"./studio-thz5t120.js";import{AS,Mw,Tm,Pw,OS,_i}from"./studio-wse1rs8t.js";import{Sp,wS,sT,kb,aT,Cw,kw,lN,cT,_m,Ew,uN,dT,Eb,hN,pN,fN,mN,gN,uT,bN}from"./studio-9qx1ywbv.js";import{iN,yw,ww,_p}from"./studio-r050sez0.js";import{Vl}from"./studio-jeb7hth3.js";import{PS}from"./studio-g0hxtcga.js";import{Sa}from"./studio-wgc54sxf.js";import{Rp}from"./studio-cfnn70h1.js";import{C,wn}from"./studio-4f7thq0p.js";import{Ln,E,R}from"./studio-9dq7rwc7.js";import{me,te,g}from"./studio-3qr08sxq.js";import{n,Q,_,v}from"./studio-k3we3kqb.js";import{ce}from"./studio-0939t1q1.js";function ae(e){return{contentType:null,draft:!1,layout:void 0,path:e}}function ue(e,t,a){let{contentType:r,layout:o}=gC(t,a),i=a?.[Cs]===!0||t?.[Cs]===!0;return{contentType:r,draft:i,layout:o,path:e}}async function Ie(e){try{let t=await p().readFile(e);if(e.endsWith(".json")){let o=JSON.parse(t);return _(o)&&!Array.isArray(o)?ue(e,o,null):ae(e)}let{parseSourceForPath:a}=await (ce("9bxvk59j"),import("./file-ops-9bxvk59j.js")),r=await a(e,t);return ue(e,r.document,r.frontmatter)}catch{return ae(e)}}var Ve=300,q=null,V=null,re=0,ne=new Set;function fe(e){let t=e.join(`
|
|
2
|
-
`);if(q?.key===t)return q.pages;if(!ye())return new Map(e.map((a)=>[a,ae(a)]));if(V?.key!==t){let a=re,r=Promise.all(e.slice(0,Ve).map((o)=>Ie(o))).then((o)=>{if(a!==re||V?.read!==r)return;V=null,q={key:t,pages:new Map(o.map((i)=>[i.path,i]))};for(let i of ne)i()});V={key:t,read:r}}return null}function cb(){re+=1,q=null,V=null}function ge(e){return ne.add(e),()=>{ne.delete(e)}}function lw(e){return e?"true":"false"}function ED(e){return e.trim().toLowerCase()}function db(e,...t){return e===""||t.some((a)=>a.toLowerCase().includes(e))}function Id(e){let t=e.replaceAll(/[-_]+/g," ").trim();return t===""?e:t.charAt(0).toUpperCase()+t.slice(1)}function ie(e){let t=Id(e);if(/ies$/i.test(t))return`${t.slice(0,-3)}y`;if(/[^s]s$/i.test(t))return t.slice(0,-1);return t}function oe(e){let t=e.slice(e.lastIndexOf("/")+1),a=t.lastIndexOf(".");return a>0?t.slice(0,a):t}function Y(e,t,a){let r=go(t,a);return r===null?e:`${e} (${r})`}function U(e,t,a=null){if(go(t,a)!==null){let c=mv(t,a);return Y(U(yr(c),c),t,a)}if(e.urlPattern==="/")return"Home";let r=e.urlPattern.split("/").filter((c)=>c!==""),o=(c)=>c==="*"||c.startsWith(":"),i=r.at(-1)??oe(t);if(!o(i))return Id(i);let l=r.findLast((c)=>!o(c));return Id(l??oe(t).replaceAll(/[[\].]/g,""))}function TD(e,t,a,r={}){let o=r.i18n??null,i=e.flatMap((u)=>ih(u.path,r.extensions)?[{fact:u,route:yr(u.path)}]:[]).toSorted((u,m)=>hC(u.route,m.route)||u.fact.path.localeCompare(m.fact.path)),l=[],c=(u,m,f,S)=>({detail:m.urlPattern,key:u.path,kind:f,label:S,path:u.path,selected:lw(u.path===a)}),d=new Map;for(let u of i){let m=u.fact.contentType;if(m!==null&&t.has(m))d.set(m,[...d.get(m)??[],u])}let s=new Set;for(let{fact:u,route:m}of i){let f=u.contentType,S=f===null?void 0:d.get(f);if(f===null||S===void 0){l.push(c(u,m,"page",U(m,u.path,o)));continue}if(s.has(f))continue;s.add(f),l.push({detail:ze(t.get(f)??null),key:`collection:${f}`,kind:"collection",label:Id(f),path:"",selected:"false"});let H=`${ie(f)} page`;for(let O of S){let P=Y(H,O.fact.path,o);l.push(c(O.fact,O.route,"entry-page",P))}}return l}function ze(e){if(e===null)return"";return`${e} ${e===1?"entry":"entries"}`}function LD(e,t){if(t==="")return[...e];let a=[],r=null,o=!1;for(let i of e){if(i.kind==="collection"){if(r=i,o=db(t,i.label),o)a.push(i);continue}if(i.kind==="page")r=null;if(i.kind==="entry-page"&&o||db(t,i.label,i.detail,i.path)){if(r&&!o)a.push(r),o=!0;a.push(i)}}return a}function EE(e,t,a,r=null){return e.filter((o)=>o.endsWith(".json")).toSorted((o,i)=>o.localeCompare(i)).flatMap((o)=>{let i=Id(oe(o));if(!db(a,i,o))return[];return[{detail:o===r?"default layout":"",key:o,label:i,path:o,selected:lw(o===t)}]})}var Be='img:not([src]), img[src=""] { visibility: hidden; }',he=new WeakMap;function _e(e){let t=he.get(e);if(t)return t;let a=e.defaultView?.CSSStyleSheet;if(!Q(a))return null;let r=new a;return r.replaceSync(Be),he.set(e,r),r}function cw(e,t){let a=e.shadowRoot??e.attachShadow({mode:"open"}),r=_e(e.ownerDocument);a.adoptedStyleSheets=[...iN(),...e.ownerDocument.adoptedStyleSheets,...r?[r]:[]],a.replaceChildren(t)}function dw(e){return e.shadowRoot?.firstElementChild??null}function z(e,t){if(e===void 0||e.trim()==="")return[];if(!t)return[e];return e.split(",").map((a)=>a.trim()).filter((a)=>a!=="")}var We=12;function we(e,t,a){let r=e.find((o)=>t.has(o.name));if(r)return{...r,order:t.get(r.name)};for(let o of e){if(o.measure)continue;let i=a.flatMap((c)=>z(c?.fields?.[o.name],o.list)),l=new Set(i).size;if(l>=2&&l<i.length&&l<=We)return{...o,order:[]}}return null}function N(e){return(t)=>e.get(t.path)}var ve=N(new Map),de={board:{itemWidth:0,rowHeight:0,windowed:!1},calendar:{itemWidth:0,rowHeight:0,windowed:!1},cards:{itemWidth:200,rowHeight:194,windowed:!0},table:{itemWidth:0,rowHeight:32,windowed:!0}},He=60,le=25;function xe(e,t){let a=de[e];if(a.itemWidth<=0||t<=0)return 1;return Math.max(1,Math.floor(t/a.itemWidth))}function Ge(e){if(e===void 0||!Number.isFinite(e))return"";if(e<1024)return`${e} B`;let t=["KB","MB","GB"],a=e/1024,r=0;while(a>=1024&&r<t.length-1)a/=1024,r+=1;return`${a<10?a.toFixed(1):Math.round(a)} ${t[r]}`}function qe(e){return e?Rp(new Date(e)):""}function Ye(e,t,a){switch(t){case"date":return a?.date??"";case"status":return a?.status??"";case"template":return a?.template??"";case"title":return a?.title??e.name;case"locale":return e.locale?Wt(e.locale):"";case"modified":return qe(e.modified);case"name":return e.name;case"path":return e.record?.source??e.path;case"size":return Ge(e.size);case"type":return e.type;case"url":return e.collection===hi?yr(e.path).urlPattern:"";default:{let r=mN(t);return r===null?"":a?.fields?.[r]??""}}}function $e(e,t,a,r){let o=yf(e.ext),i=r?.thumb??"";return{art:o||i!==""?"image":a&&e.collection!==null&&!e.record?"doc":"glyph",cells:t.map((l)=>({field:l.field,text:Ye(e,l.field,r)})),meta:e.type,name:r?.title??e.name,path:e.path,src:o?nr(e.path):i}}function se(e,t){return{art:"glyph",cells:[],meta:e.type,name:t?.title??e.name,path:e.path,src:""}}function Se(e,t=ve){let{days:a,undated:r}=pN(e,(c)=>t(c)?.date||dT(c)),o=a.slice(0,He),i=a.length-o.length,l=o.map((c)=>({count:"",files:c.files.map((d)=>se(d,t(d))),id:c.date,note:"",noteState:"hidden",title:c.date,undated:"false"}));if(r.length>0)l.push({count:"",files:r.slice(0,le).map((c)=>se(c,t(c))),id:"__undated",note:`${r.length} file${r.length===1?"":"s"} with no dated name and no modification time.`,noteState:"shown",title:"No date",undated:"true"});return{groups:l,truncated:i>0?`${i} older ${i===1?"day is":"days are"} not shown — filter, or switch to Table.`:""}}var be=["Draft","Published"];function Ue(e,t){let a=new Map;for(let o of e){let i=t(o)?.status||"No status",l=a.get(i);if(l)l.push(o);else a.set(i,[o])}let r=(o)=>{let i=be.indexOf(o);return i===-1?be.length:i};return[...a.entries()].map(([o,i])=>({files:i,group:o})).toSorted((o,i)=>r(o.group)-r(i.group)||o.group.localeCompare(i.group))}function Je(e,t,a){let r=`No ${a.title.toLowerCase()}`,o=new Map;for(let l of e){let c=z(t(l)?.fields?.[a.name],a.list);for(let d of c.length===0?[r]:new Set(c)){let s=o.get(d);if(s)s.push(l);else o.set(d,[l])}}let i=(l)=>{if(l===r)return Number.MAX_SAFE_INTEGER;let c=a.order.indexOf(l);return c===-1?a.order.length:c};return[...o.entries()].map(([l,c])=>({files:c,group:l})).toSorted((l,c)=>i(l.group)-i(c.group)||l.group.localeCompare(c.group))}function Le(e,t=ve,a=null){return(e.some((i)=>(t(i)?.status??"")!=="")?Ue(e,t):a?Je(e,t,a):fN(e)).map((i)=>{let l=i.files.length-le;return{count:String(i.files.length),files:i.files.slice(0,le).map((c)=>se(c,t(c))),id:i.group,note:l>0?`${l} more — switch to Table to see them.`:"",noteState:l>0?"shown":"hidden",title:i.group,undated:"false"}})}var Fe={$schema:"https://jxsuite.com/schema/v1",$id:"StudioLibraryPane",$description:"The Content home (studio.md §22.5): one collection, browsed, as a Jx document over the kit. The adapter (`browse/library-pane.ts`) keeps every decision — which collection is shown, which of its files the filter kept, which of them the window renders, where the collection is published, and what a row's context menu offers — and hands this document one projection: a discriminant naming which of eight things to draw, the view switch already marked, a header line that is one of four states, and rows that are already strings. Nothing here asks what a file is, how big the viewport is, or whether the scan finished. The eight cases of `view` are the four honest empty states the Manage view collapsed into “No files found” — a scan still running, a scan that could not finish, a collection with nothing in it, and a filter that matched nothing — followed by the four views, so “what is on screen” has exactly one source. A card's live preview is an ISLAND: the document renders `doc-preview` and nothing inside it, and the adapter fills it through `onNodeCreated` when the card comes into view.",tagName:"div",attributes:{part:"library","data-jx-region":"${state.region}"},style:{$description:"What the fifty-two `.library*` rules in `styles/overlays.css` said, keyed on `part` and re-pointed at the studio token layer. Every one of them was this surface's alone, so the block goes with the conversion rather than being copied. Three sets of names could not come with the declarations. Ten `var(--spectrum-font-size-50 | -75, …)` reads are the kit's `--jx-text-sm` and `--jx-text-md`, which are the same 11px and 12px: a `--spectrum-*` name is declared by `<sp-theme>` and by nothing else in this package, and `styles/spectrum.css` is deleted whole with the last Spectrum component, so a document that reads one is a document whose colours change when a component it does not use is removed. `--spectrum-gray-100` and `--spectrum-gray-200` are the studio's own `--bg-input` and `--hover-bg`; `--spectrum-blue-600` — the card's hover border and the drop outline — is `--accent`, which is what a Spectrum blue was standing in for; and `--spectrum-orange-100`, the incomplete-scan banner's ground, is mixed from `--warning` so the banner follows the chrome theme instead of being a dark-only hex. Nine names that were handles rather than styling stop being names at all: `.library-grid-cards`, `.library-grid-media`, `.library-day-undated`, `.library-drop-active`, `.library-upload-input` and the four `data-field` widths are `data-` attributes on a part here, because a part is the handle now.",display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"hidden",fontFamily:"var(--jx-font-sans)",fontSize:"var(--jx-text-md)",color:"var(--fg)",'& [part="banner-slot"], & [part="locale-slot"], & [part="filter-slot"], & [part="fields-slot"], & [part="new-slot"], & [part="page-slot"], & [part="view-slot"], & [part="art-slot"], & [part="note-slot"], & [part="truncated-slot"]':{$description:"A `$switch` renders its own container, and none of these six is a box: each stands exactly where its case does, so the case's own rule is the only one that lays anything out.",display:"contents"},'& [part="head"]':{$description:"The collection's title over its toolbar: the Content-Collection and Content-Pages boards' heading row. It does not scroll with the list.",display:"flex",flexDirection:"column",gap:"var(--jx-space-3)",padding:"var(--jx-space-4) var(--jx-space-5) var(--jx-space-3)",background:"var(--bg-panel)",borderBottom:"1px solid var(--border)",flexShrink:"0"},'& [part="heading"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-1)"},'& [part="title"]':{margin:"0",fontSize:"var(--jx-text-lg)",fontWeight:"600",color:"var(--fg)"},'& [part="subtitle"]':{margin:"0",fontSize:"var(--jx-text-md)",color:"var(--fg-dim)"},'& [part="subtitle"]:empty':{$description:"Only Pages carries a line under its title; a collection's own line is the header bar below the toolbar.",display:"none"},'& [part="toolbar"]':{$description:"It wraps rather than scrolls: the view switch, the search, the language facet, Fields and New are all equally reachable, and a toolbar that hid half of them behind an overflow would put the collection's own state somewhere the reader has to go looking for it.",display:"flex",alignItems:"center",gap:"var(--jx-space-3)",padding:"0",flexShrink:"0",flexWrap:"wrap"},'& [part="search"]':{width:"220px"},'& [part="locale"]':{$description:"Narrow on purpose: it holds one language name, and the toolbar wraps before it grows.",width:"160px"},'& [part="filter"]':{$description:"Narrow like the language facet: it holds one value of one field.",width:"160px"},'& [part="spacer"]':{flex:"1"},'& [part="layouts"]':{flexShrink:"0"},'& [part="banner"]':{$description:"The banner an INCOMPLETE listing carries. The Problem in the dock is the durable record; this is the same fact on the surface it is about, because a reader looking at a short list needs to know it is short for a reason without going anywhere to find out.",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--jx-space-4)",padding:"var(--jx-space-3) var(--jx-space-5)",background:"color-mix(in srgb, var(--warning) 18%, var(--bg-panel))",borderBottom:"1px solid var(--border)",color:"var(--fg)",fontSize:"var(--jx-text-md)"},'& [part="body"]':{flex:"1",minHeight:"0",overflow:"auto",position:"relative"},'& [part="empty"]':{padding:"48px var(--jx-space-6)",textAlign:"center",color:"var(--fg-dim)",display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--jx-space-3)"},'& [part="empty"] p':{margin:"0"},'& [part="empty-detail"]':{fontSize:"var(--jx-text-md)",color:"var(--fg-dim)"},'& [part="truncated"]':{$description:"What a capped layout did not draw, stated. A grouped list cannot window — a window over one either breaks the groups or needs variable-height measurement — so Calendar and Board cap instead, and a layout that truncated in silence would be the same class of lie as “No files found”.",margin:"var(--jx-space-3) 0 0",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="grid"]':{$description:"Cards and Media, the two windowed grids. The item sizes here are the ones `library-layouts.ts`'s LAYOUT_METRICS counts rows in; change one and change both.",display:"grid",gap:"var(--jx-space-4)",padding:"var(--jx-space-4) var(--jx-space-5)",alignItems:"start"},'& [part="grid"][data-layout="cards"]':{gridTemplateColumns:"repeat(auto-fill, minmax(188px, 1fr))"},'& [part="card"], & [part="tile"]':{cursor:"pointer",overflow:"hidden",border:"1px solid var(--border)",borderRadius:"var(--radius)",background:"var(--bg-panel)"},'& [part="card"]:hover, & [part="tile"]:hover':{borderColor:"var(--accent)"},'& [part="card-art"], & [part="tile-art"]':{aspectRatio:"4 / 3",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",background:"var(--bg-input)",pointerEvents:"none"},'& [part="file-glyph"]':{"--jx-icon-size":"32px",color:"var(--fg-dim)"},'& [part="doc-preview"]':{$description:"The island. The document renders this box and nothing inside it; the adapter mounts a real runtime render of the file into a shadow root of the island's own when the card comes into view (`mountPreview` in `browse/library-preview.ts`, which keeps the document's ids out of Studio's), and the zoom is what makes a page-sized document readable as a thumbnail without rendering it at thumbnail size: the render is laid out in a box two and a half times as wide and drawn at 0.4. It is `inert`, so a page's own links and buttons are neither focusable nor named inside the card.",width:"100%",height:"100%",zoom:"0.4",overflow:"hidden"},'& [part="thumb"]':{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"},'& [part="card-label"], & [part="tile-label"]':{padding:"6px var(--jx-space-3) 0",fontSize:"var(--jx-text-md)",color:"var(--fg)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},'& [part="card-meta"]':{padding:"0 var(--jx-space-3) 6px",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="table"]':{$description:"A windowed list rather than a table component: the rows have to be sliceable, and every table widget wants the whole set.",display:"flex",flexDirection:"column",minWidth:"min-content",padding:"0 var(--jx-space-5) var(--jx-space-5)"},'& [part="table-head"], & [part="table-row"]':{display:"flex",alignItems:"center",gap:"var(--jx-space-3)",height:"32px",borderBottom:"1px solid var(--border)"},'& [part="table-head"]':{position:"sticky",top:"0",zIndex:"1",background:"var(--bg-panel)",fontWeight:"600",fontSize:"var(--jx-text-md)"},'& [part="table-row"]':{cursor:"pointer"},'& [part="table-row"]:hover':{background:"var(--hover-bg)"},'& [part="cell"]':{$description:"Every column keeps a floor: with a collection's six field columns beside the file facts, a cell that may shrink to nothing is a column of ellipses. When the floors outgrow the pane, the table scrolls sideways instead. Each cell's text is kept out of its intrinsic width (`contain: inline-size`), so the table's `min-content` is the sum of those floors rather than of every full title.",flex:"1",minWidth:"80px",contain:"inline-size",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"var(--jx-text-md)"},'& [part="cell"][data-field="name"], & [part="cell"][data-field="title"]':{$description:"What a row is called keeps a readable width however many field columns stand beside it.",flex:"3",minWidth:"220px",fontWeight:"500"},'& [part="cell"][data-field="path"]':{flex:"2",color:"var(--fg-dim)",fontFamily:"var(--font-mono)",fontSize:"var(--jx-text-sm)"},'& [part="cell"][data-field="size"], & [part="cell"][data-field="modified"]':{flex:"0 0 96px"},'& [part="cell"][data-field="locale"]':{$description:"Fixed, like size and modified: a language name is short and never earns width from Name. Without this it inherits the `flex: 1` above and the Name column loses a quarter of itself in every multilingual project.",flex:"0 0 90px",color:"var(--fg-dim)"},'& [part="calendar"]':{padding:"var(--jx-space-4) var(--jx-space-5)"},'& [part="day"]':{marginBottom:"var(--jx-space-5)"},'& [part="day-date"]':{margin:"0 0 var(--jx-space-2)",fontSize:"var(--jx-text-md)",fontWeight:"600",color:"var(--fg)"},'& [part="day"][data-undated="true"] [part="day-date"]':{$description:"A file with no dated name and no modification time is set apart rather than parked on today. A calendar that invents dates is worse than one that says which files it could not place.",color:"var(--fg-dim)"},'& [part="note"]':{margin:"0 0 var(--jx-space-2)",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="board"]':{display:"flex",gap:"var(--jx-space-4)",padding:"var(--jx-space-4) var(--jx-space-5)",alignItems:"flex-start",overflowX:"auto"},'& [part="column"]':{flex:"0 0 220px",border:"1px solid var(--border)",borderRadius:"var(--radius)",padding:"var(--jx-space-3)",background:"var(--bg-panel)"},'& [part="column-title"]':{margin:"0 0 6px",fontSize:"var(--jx-text-md)",fontWeight:"600",display:"flex",justifyContent:"space-between"},'& [part="count"]':{color:"var(--fg-dim)",fontWeight:"400"},'& [part="list"]':{listStyle:"none",margin:"0",padding:"0"},'& [part="list-item"]':{padding:"3px var(--jx-space-2)",borderRadius:"var(--radius)",cursor:"pointer",fontSize:"var(--jx-text-md)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},'& [part="list-item"]:hover':{background:"var(--hover-bg)"},'& [part="page-line"]':{$description:"One line saying where the collection's entries are published, the Content-Collection board's bar under the toolbar. Its action is quiet: it opens another workspace, and it must not compete with New.",display:"flex",alignItems:"center",flexWrap:"wrap",gap:"var(--jx-space-2)",padding:"var(--jx-space-2) var(--jx-space-5)",background:"var(--bg-panel)",borderBottom:"1px solid var(--border)",fontSize:"var(--jx-text-md)",color:"var(--fg-dim)",flexShrink:"0"},'& [part="page-pattern"]':{fontFamily:"var(--font-mono)",fontSize:"var(--jx-text-sm)",color:"var(--fg)"},'& [part="design-page"], & [part="add-page"]':{marginLeft:"auto"},'& [part="card"]:focus-visible, & [part="table-row"]:focus-visible, & [part="list-item"]:focus-visible':{$description:"Rows and cards open on Enter or Space as well as a click, so the keyboard reaches an entry; the ring says which one it is on.",outline:"var(--jx-focus-ring)",outlineOffset:"-2px"}},children:[{tagName:"div",attributes:{part:"head"},children:[{tagName:"div",attributes:{part:"heading"},children:[{tagName:"h2",attributes:{part:"title"},textContent:"${state.title}"},{tagName:"p",attributes:{part:"subtitle"},textContent:"${state.subtitle}"}]},{tagName:"div",attributes:{part:"toolbar"},children:[{tagName:"jx-action-group",attributes:{part:"layouts"},$props:{selects:"single",compact:!0,label:"View"},children:[{$prototype:"Array",items:{$ref:"#/state/layouts"},key:{$ref:"$map/item/key"},map:{tagName:"jx-action-button",attributes:{part:"layout","data-layout":"${$map.item.key}"},$props:{size:"sm",hint:"${$map.item.label}",checked:{$ref:"$map/item/checked"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setLayout"},value:[{$ref:"$map/item/key"}]}]},children:[{tagName:"span",textContent:"${$map.item.label}"}]}}]},{tagName:"jx-textfield",attributes:{part:"search"},$props:{label:"${state.searchLabel}",placeholder:"${state.searchLabel}…",size:"sm",value:{$ref:"#/state/query"},type:"search"},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/search"},value:[{$ref:"event#/target/value"}]}]}},{tagName:"div",attributes:{part:"locale-slot",role:"none"},$switch:{$ref:"#/state/localeState"},cases:{shown:{tagName:"jx-select",attributes:{part:"locale"},$props:{label:"Language",size:"sm",options:{$ref:"#/state/localeOptions"},value:{$ref:"#/state/localeValue"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setLocale"},value:[{$ref:"event#/target/value"}]}],description:"The facet's options come from ALL scanned files, never from the filtered ones: a picker whose choices collapse to the choice just made cannot be used to make another."}}}},{tagName:"div",attributes:{part:"filter-slot",role:"none"},$switch:{$ref:"#/state/filterState"},cases:{shown:{$description:"The Filter: one value of what groups the entries, their status or the field the Board groups by, so it offers exactly the Board's columns.",tagName:"jx-select",attributes:{part:"filter"},$props:{label:"Filter",size:"sm",options:{$ref:"#/state/filterOptions"},value:{$ref:"#/state/filterValue"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setFilter"},value:[{$ref:"event#/target/value"}]}]}}}},{tagName:"span",attributes:{part:"spacer"}},{tagName:"div",attributes:{part:"grid-slot",role:"none"},$switch:{$ref:"#/state/fieldsState"},cases:{shown:{tagName:"jx-action-button",attributes:{part:"edit-grid"},$props:{size:"sm",icon:"rows",hint:"Edit every entry of this collection in a grid"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openGrid"},value:[]}],description:"The collection's grid (`collection.editInGrid { name }`): the one visible door to it, since the palette cannot prompt for a free-text name."},children:[{tagName:"span",textContent:"Edit in grid"}]}}},{tagName:"div",attributes:{part:"fields-slot",role:"none"},$switch:{$ref:"#/state/fieldsState"},cases:{shown:{tagName:"jx-action-button",attributes:{part:"fields"},$props:{size:"sm",icon:"sliders-horizontal",hint:"Edit this collection's fields in Project Settings",haspopup:"dialog"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openFields"},value:[]}],description:'Project Settings › Content types, on this collection (`settings.open { section: "content", entry }`).'},children:[{tagName:"span",textContent:"Fields"}]}}},{tagName:"div",attributes:{part:"new-slot",role:"none"},$switch:{$ref:"#/state/newState"},cases:{shown:{tagName:"jx-button",attributes:{part:"new"},$props:{size:"sm",variant:"accent"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openNew"},value:[]}],description:"Creation is somebody else's flow: `file.new` opens Add new on this collection's kind, a page for Pages and an entry for a collection."},children:[{tagName:"span",textContent:"${state.newLabel}"}]}}}]}]},{$description:"The header line: where this collection's entries are published, derived from the page whose `$paths.contentType` names it. Pages draw nothing here.",tagName:"div",attributes:{part:"page-slot",role:"none"},$switch:{$ref:"#/state/page/state"},cases:{loading:{tagName:"div",attributes:{part:"page-line"},children:[{tagName:"span",attributes:{part:"page-text"},textContent:"${state.page.text}"}]},page:{tagName:"div",attributes:{part:"page-line","data-state":"page"},children:[{tagName:"span",attributes:{part:"page-text"},textContent:"${state.page.text}"},{tagName:"code",attributes:{part:"page-pattern"},textContent:"${state.page.pattern}"},{tagName:"span",attributes:{part:"page-template"},textContent:"${state.page.template}"},{tagName:"jx-action-button",attributes:{part:"design-page"},$props:{size:"sm",quiet:!0},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/designPage"},value:[]}],description:"Opening the page is activating it, which enters Design (studio.md §22.1)."},children:[{tagName:"span",textContent:"${state.page.designLabel}"}]}]},none:{tagName:"div",attributes:{part:"page-line","data-state":"none"},children:[{tagName:"span",attributes:{part:"page-text"},textContent:"${state.page.text}"},{tagName:"jx-action-button",attributes:{part:"add-page"},$props:{size:"sm",quiet:!0},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/addPage"},value:[]}],description:"Writes the collection's page exactly as Add new's own-page option does."},children:[{tagName:"span",textContent:"Add one"}]}]}}},{tagName:"div",attributes:{part:"banner-slot",role:"none"},$switch:{$ref:"#/state/bannerState"},cases:{shown:{tagName:"div",attributes:{part:"banner",role:"status"},children:[{tagName:"span",textContent:"${state.bannerText}"},{tagName:"jx-button",attributes:{part:"retry"},$props:{size:"sm",variant:"secondary"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/retry"}}]},children:[{tagName:"span",textContent:"Retry"}]}]}}},{tagName:"div",attributes:{part:"body"},onscroll:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/scrolled"}}],description:"The rendered item count is proportional to the VIEWPORT, not to the project: a scroll recomputes the window from the box the adapter measures here, and never re-reads the scan."},children:[{tagName:"div",attributes:{part:"view-slot",role:"none"},$switch:{$ref:"#/state/view"},cases:{loading:{tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",textContent:"Scanning the project…"}]},incomplete:{tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",textContent:"Nothing to show, and the scan did not finish."},{tagName:"p",attributes:{part:"empty-detail"},textContent:"${state.emptyDetail}"},{tagName:"jx-button",attributes:{part:"retry"},$props:{size:"sm",variant:"primary"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/retry"}}]},children:[{tagName:"span",textContent:"Retry"}]}]},empty:{tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",textContent:"${state.emptyMessage}"},{tagName:"p",attributes:{part:"empty-detail"},textContent:"${state.emptyDetail}"}]},nomatch:{tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",children:[{tagName:"span",textContent:"${state.emptyMessage}"},{tagName:"span",attributes:{part:"empty-detail"},textContent:" ${state.emptyDetail}"}]},{tagName:"jx-button",attributes:{part:"reset"},$props:{size:"sm",variant:"secondary"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/reset"}}],description:"Both facets in one clause and one button, so a reader who filtered twice is told about both rather than sent to clear one and find the list still empty."},children:[{tagName:"span",textContent:"Clear filters"}]}]},cards:{tagName:"div",attributes:{part:"grid","data-layout":"cards",style:"${state.pad}"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/path"},map:{tagName:"div",attributes:{part:"card","data-path":"${$map.item.path}",tabindex:"0",role:"button"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]," ":[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]}}]},oncontextmenu:{$prototype:"Function",body:[{preventDefault:!0},{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/contextMenu"},value:[{$ref:"$map/item/path"},{$ref:"event#/clientX"},{$ref:"event#/clientY"}]}]},children:[{tagName:"div",attributes:{part:"card-art"},children:[{tagName:"div",attributes:{part:"art-slot",role:"none"},$switch:{$ref:"$map/item/art"},cases:{image:{tagName:"img",attributes:{part:"thumb",loading:"lazy",src:"${$map.item.src}",alt:""}},doc:{tagName:"div",attributes:{part:"doc-preview","data-path":"${$map.item.path}",inert:""}},glyph:{tagName:"jx-icon",attributes:{part:"file-glyph"},$props:{name:"file-text"}}}}]},{tagName:"div",attributes:{part:"card-label",title:"${$map.item.path}"},textContent:"${$map.item.name}"},{tagName:"div",attributes:{part:"card-meta"},textContent:"${$map.item.meta}"}]}}]},table:{tagName:"div",attributes:{part:"table",role:"table","aria-label":"${state.title}"},children:[{tagName:"div",attributes:{part:"table-head",role:"row"},children:[{$prototype:"Array",items:{$ref:"#/state/columns"},key:{$ref:"$map/item/field"},map:{tagName:"div",attributes:{part:"cell",role:"columnheader","data-field":"${$map.item.field}"},textContent:"${$map.item.title}"}}]},{tagName:"div",attributes:{part:"pad",style:"${state.padTop}"}},{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/path"},map:{tagName:"div",attributes:{part:"table-row",role:"row","data-path":"${$map.item.path}",tabindex:"0"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]," ":[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]}}]},oncontextmenu:{$prototype:"Function",body:[{preventDefault:!0},{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/contextMenu"},value:[{$ref:"$map/item/path"},{$ref:"event#/clientX"},{$ref:"event#/clientY"}]}]},children:[{$prototype:"Array",items:{$ref:"$map/item/cells"},key:{$ref:"$map/item/field"},map:{tagName:"div",attributes:{part:"cell",role:"cell","data-field":"${$map.item.field}"},textContent:"${$map.item.text}"}}]}},{tagName:"div",attributes:{part:"pad",style:"${state.padBottom}"}}]},calendar:{tagName:"div",attributes:{part:"calendar"},children:[{$prototype:"Array",items:{$ref:"#/state/groups"},key:{$ref:"$map/item/id"},map:{tagName:"section",attributes:{part:"day","data-undated":"${$map.item.undated}"},children:[{tagName:"h3",attributes:{part:"day-date"},textContent:"${$map.item.title}"},{tagName:"div",attributes:{part:"note-slot",role:"none"},$switch:{$ref:"$map/item/noteState"},cases:{shown:{tagName:"p",attributes:{part:"note"},textContent:"${$map.item.note}"}}},{tagName:"ul",attributes:{part:"list"},children:[{$prototype:"Array",items:{$ref:"$map/item/files"},key:{$ref:"$map/item/path"},map:{tagName:"li",attributes:{part:"list-item","data-path":"${$map.item.path}",title:"${$map.item.path}",tabindex:"0"},textContent:"${$map.item.name}",onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]," ":[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]}}]},oncontextmenu:{$prototype:"Function",body:[{preventDefault:!0},{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/contextMenu"},value:[{$ref:"$map/item/path"},{$ref:"event#/clientX"},{$ref:"event#/clientY"}]}]}}}]}]}},{tagName:"div",attributes:{part:"truncated-slot",role:"none"},$switch:{$ref:"#/state/truncatedState"},cases:{shown:{tagName:"p",attributes:{part:"truncated"},textContent:"${state.truncated}"}}}]},board:{tagName:"div",attributes:{part:"board"},children:[{$prototype:"Array",items:{$ref:"#/state/groups"},key:{$ref:"$map/item/id"},map:{tagName:"section",attributes:{part:"column"},children:[{tagName:"h3",attributes:{part:"column-title"},children:[{tagName:"span",textContent:"${$map.item.title}"},{tagName:"span",attributes:{part:"count"},textContent:"${$map.item.count}"}]},{tagName:"ul",attributes:{part:"list"},children:[{$prototype:"Array",items:{$ref:"$map/item/files"},key:{$ref:"$map/item/path"},map:{tagName:"li",attributes:{part:"list-item","data-path":"${$map.item.path}",title:"${$map.item.path}",tabindex:"0"},textContent:"${$map.item.name}",onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]," ":[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/openFile"},value:[{$ref:"$map/item/path"}]}]}}]},oncontextmenu:{$prototype:"Function",body:[{preventDefault:!0},{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/contextMenu"},value:[{$ref:"$map/item/path"},{$ref:"event#/clientX"},{$ref:"event#/clientY"}]}]}}}]},{tagName:"div",attributes:{part:"note-slot",role:"none"},$switch:{$ref:"$map/item/noteState"},cases:{shown:{tagName:"p",attributes:{part:"truncated"},textContent:"${$map.item.note}"}}}]}}]}}}]}]};E("library-pane",Fe);function Ce(e,t){e.region=t.region,e.view=t.view,e.title=t.title,e.subtitle=t.subtitle,e.searchLabel=t.searchLabel,e.newLabel=t.newLabel,e.newState=t.newState,e.fieldsState=t.fieldsState,e.page=t.page,e.layouts=t.layouts,e.filterState=t.filterState,e.filterOptions=t.filterOptions,e.filterValue=t.filterValue,e.localeState=t.localeState,e.localeOptions=t.localeOptions,e.localeValue=t.localeValue,e.query=t.query,e.bannerState=t.bannerState,e.bannerText=t.bannerText,e.emptyMessage=t.emptyMessage,e.emptyDetail=t.emptyDetail,e.pad=t.pad,e.padTop=t.padTop,e.padBottom=t.padBottom,e.rows=t.rows,e.columns=t.columns,e.groups=t.groups,e.truncated=t.truncated,e.truncatedState=t.truncatedState}function Xe(e){let t=n(e)?void 0:e.attributes?.part;return n(t)?t:""}function Qe(e){let t=e?.$map,a=v(t)?t.item:void 0,r=v(a)?a.path:void 0;return n(r)?r:""}function ke(e,t,a){e.replaceChildren();let r=new AbortController;NA(e,r.signal);let o=g({addPage:a.addPage,bannerState:"hidden",bannerText:"",columns:[],contextMenu:a.contextMenu,designPage:a.designPage,emptyDetail:"",emptyMessage:"",fieldsState:"hidden",groups:[],layouts:[],filterOptions:[],filterState:"hidden",filterValue:"",localeOptions:[],localeState:"hidden",localeValue:"",newLabel:"",newState:"hidden",openFields:a.openFields,openGrid:a.openGrid,openFile:a.openFile,openNew:a.openNew,pad:"",padBottom:"",padTop:"",previewSlot:a.previewSlot,query:"",region:"",reset:a.reset,retry:a.retry,page:{designLabel:"",pattern:"",state:"hidden",template:"",text:""},rows:[],scrolled:a.scrolled,scroller:a.scroller,search:a.search,searchLabel:"",setLayout:a.setLayout,setFilter:a.setFilter,setLocale:a.setLocale,subtitle:"",title:"",truncated:"",truncatedState:"hidden",view:"loading"});Ce(o,t);let i=null,l=!1,c=R("library-pane",o,e,{onNodeCreated:(d,s,u,m)=>{let f=Xe(u);if(f===""||!(d instanceof HTMLElement))return;if(f==="body"){a.scroller(d);return}if(f==="doc-preview"){let S=Qe(m);if(S)a.previewSlot(d,S)}}}).then((d)=>{let s=d.root;if(l)return d.dispose(),s;return i=d,s});return{attached:()=>{if(l)return!1;let d=i?.root;return d===void 0?!0:d instanceof HTMLElement&&e.contains(d)},dispose(){l=!0,r.abort(),i?.dispose(),i=null},ready:c,update:(d)=>Ce(o,d)}}var Ze="table",y=g({collection:hi,loading:!1,revision:0,views:{}});function il(e=Fu()){let t=y.views[e];if(t)return t;let a={filter:"",layout:Ze,locale:"",query:""};return y.views[e]=a,y.views[e]??a}function T(){return Ql(y.collection)??{fileBacked:!1,item:"page",key:hi,kind:"pages",title:"Pages"}}function Fu(){return T().key}var j=null,A=!1;function k(){if(j?.stale()===!0){j=null,A=!1;for(let e of M.values())e.cache.clear()}return j??=bN(),j}function x(){y.revision+=1}function $D(e){y.collection=e,il(e),x(),wn("leftPanel")}function TE(e,t=Fu()){il(t).layout=e,x()}function G_(e,t=Fu()){il(t).query=e,x()}function et(e,t=Fu()){il(t).filter=e,x()}function K_(e,t=Fu()){il(t).locale=e,x()}function Rd(){j=null,A=!1;for(let e of M.values())e.cache.clear();x()}function LE(){let e=k();if(!A&&!y.loading)I();if(!e.scanned())return null;let t=new Map;for(let a of e.files())if(a.collection!==null)t.set(a.collection,(t.get(a.collection)??0)+1);return t}var tt=600,Pe="content.scan",L="Content";async function I(){let e=k();A=!0,y.loading=!0,x();let t={handle:null},a=setTimeout(()=>{t.handle=qs({source:L,status:"Reading the project's directories…",title:"Scan project files"})},tt);try{await e.rows();let r=e.failures();if(r.length>0){let o=r.map((l)=>`${l.dir} — ${l.error}`).join(`
|
|
3
|
-
`),i=`Could not read ${r.length} project ${r.length===1?"directory":"directories"} — this list is incomplete.`;w.error(i,{action:"content.refresh",detail:o,key:Pe,path:r[0].dir,source:L,tier:"problem"}),t.handle?.setStatus(i)}t.handle?.done(`${e.files().length} file(s)`)}catch(r){if(t.handle)t.handle.fail("Could not scan the project's files.");else w.error("Could not scan the project's files.",{action:"content.refresh",detail:X(r),key:Pe,source:L,tier:"problem"})}finally{clearTimeout(a),y.loading=!1,x(),wn("leftPanel")}}async function $E(){j=null,A=!1;for(let e of M.values())e.cache.clear();await I()}var M=new Map;function W(e){return M.get(e)??null}function IE(e,t){let a=W(e);return a!==null&&a.tabId===t.id&&a.wrap.isConnected&&a.surface.attached()}function RE(e){let t=M.get(e);if(!t)return;if(t.settleTimer!==null)clearTimeout(t.settleTimer),t.settleTimer=null;t.unlisten(),t.observer.destroy(),t.cache.clear(),t.slots.clear(),t.pendingPaths.clear(),t.scope.stop(),t.surface.dispose(),M.delete(e)}function at(e,t,a){let r=de[t],o=e?.scroller??null;if(!r.windowed||!o)return{end:a,padBottom:0,padTop:0,start:0,totalRows:a};return PS({columns:xe(t,o.clientWidth),count:a,rowHeight:r.rowHeight,scrollTop:o.scrollTop,viewportHeight:o.clientHeight})}async function rt(e,t){e.pendingPaths.add(t);try{let a=await ww(t,e.cache);if(!a||W(e.paneId)!==e)return;let r=e.slots.get(t);if(r?.isConnected&&!dw(r))cw(r,a)}finally{e.pendingPaths.delete(t)}}function je(e,t,a){let r=e.cache.get(a);if(dw(t))return;if(r){cw(t,r);return}if(e.pendingPaths.has(a))return;e.pending.set(t,a),e.observer.observe(t)}function ot(e,t,a){e.slots.set(a,t),je(e,t,a)}function it(e){if(e.settleTimer!==null)return;e.settleTimer=setTimeout(()=>{if(e.settleTimer=null,W(e.paneId)!==e)return;e.observer.releaseDetached();let t=uN.has(il().layout);for(let[a,r]of e.slots){if(!r.isConnected){e.slots.delete(a);continue}if(t)je(e,r,a)}},0)}function Re(e){if(e.record)lN(e.record.source,e.record.row);else if(e.collection===null||e.collection===hi)_i(e.path);else Vl(e.path)}var B=null;function lt(){B?.close(),B=null}function Me(e){return k().files().find((t)=>t.path===e)??null}function st(e,t,a){let r=Me(e);if(!r||r.record)return;lt();let o=(i,l,c,d={})=>({destructive:!1,disabled:!1,dividerAbove:!1,id:i,run:c,title:l,...d});B=zt({label:"File actions",onClosed:(i)=>{if(B===i)B=null},origin:{x:t,y:a},region:"content",rows:[o("open","Open",()=>{Re(r)}),o("rename","Rename…",()=>{ct(r)},{dividerAbove:!0}),...p().readFileBytes!==void 0?[o("duplicate","Duplicate",()=>{dt(r)})]:[],o("delete","Delete",()=>{pt(r)},{destructive:!0,dividerAbove:!0})]})}async function ct(e){let t=e.path.replaceAll("\\","/"),a=await OS(t,L);if(a===null)return;let r=await Ob(e.path),o={confirmLabel:"Rename",select:"stem",validate:(d)=>Wm(t,d,a),value:e.name};if(r!==void 0)o.message=r;let i=await Fn("Rename",o);if(!i||i===e.name)return;let l=Tm(t),c=l==="."?i:`${l}/${i}`;try{let d=await Pw(t,c);Rd(),await I(),Mw(AS(i,d),d,c)}catch(d){w.error(`Could not rename ${e.name}.`,{detail:X(d),path:e.path,source:L})}}async function dt(e){if(await Ax(e.path.replaceAll("\\","/"),{document:!0,source:L})!==null)Rd(),await I()}async function pt(e){if(!await Ab(e))return;try{await p().deleteFile(e.path),us(),Rd(),await I(),w.success(`Deleted ${e.name}`)}catch(a){w.error(`Could not delete ${e.name}.`,{detail:X(a),path:e.path,source:L})}}function Ne(e,t){if(e.layout===!1)return"with no template";let a=e.layout??t;return a?`using ${qb(a)}`:"with no template"}function ut(e,t,a,r=[]){let o={designLabel:"",pattern:"",state:"hidden",template:"",text:""};if(e.kind==="pages")return o;if(t===void 0)return{...o,state:"loading",text:"Finding where these entries are published…"};if(t===null)return{...o,state:"none",text:"Entries have no page of their own"};let i=Eb(),l=(d)=>{let s=d===null?-1:i.indexOf(d);return s===-1?i.length:s},c=r.filter((d)=>d.locale!==null).toSorted((d,s)=>l(d.locale)-l(s.locale));if(c.length>1){let d=new Set(c.map((s)=>Ne(s,a)));return{designLabel:`Design the ${e.item} page`,pattern:c.map((s)=>`${s.pattern} (${s.locale})`).join(", "),state:"page",template:d.size===1?[...d][0]:"using a template per language",text:`Each ${e.item} has a page in each language at`}}return{designLabel:`Design the ${e.item} page`,pattern:t.pattern,state:"page",template:Ne(t,a),text:`Each ${e.item} has a page at`}}function mt(e){let t=sh(e,il(e).locale);if(t)_i(t.path)}async function ft(e){let{addCollectionPage:t}=await (ce("3tkn72ey"),import("./add-new-flow-3tkn72ey.js"));await t(e)}function gt(e,t,a){return{checked:a?"true":"false",key:e,label:t}}function ht(e,t){let a=`${t.locale===""?"":` in ${Wt(t.locale)}`}${t.filter===""?"":` filtered to ${t.filter}`}`,r=t.query.trim();return`No ${e.kind==="pages"?"pages":e.title.toLowerCase()} match${r?` “${r}”`:""}${a}.`}function yt(e,t,a,r){if(a>0)return t;if(y.loading||!e.scanned())return"loading";if(e.failures().length>0)return"incomplete";return r===0?"empty":"nomatch"}function J_(e){return k().files().filter((t)=>t.collection===e).map((t)=>t.path)}function bt(e,t){if(e.kind==="pages")return k().scanned()?wt(t==="table"):N(new Map);if(e.fileBacked){let o=Ee(e.key),i=k().files().filter((l)=>l.collection===e.key&&l.record);return N(new Map(i.map((l)=>{let{fields:c}=l.record,d=wS(o,c),s=d===null?"":kb(c[d]??""),u=aT(l.record.source,c,o);return[l.path,{date:s,fields:c,status:"",thumb:u,title:l.name}]})))}if(!k().scanned())return N(new Map);let a=Cw(e.key,J_(e.key)),r=new Map((a??[]).map((o)=>[o.path,{date:o.date,fields:o.fields,status:o.status,thumb:o.thumb,title:o.title}]));return N(r)}function wt(e){let t=J_(hi),a=e?fe(t):null,r=new Set(Object.keys(C?.projectConfig?.content??{})),o=Ae(),{i18n:i}=ln(C?.projectConfig??{}),l=[...a?.values()??[]].some((d)=>d.draft),c=new Map(t.map((d)=>{let s=a?.get(d),u=s?.contentType??null,m=s===void 0?void 0:s.layout??o??!1;return[d,{date:"",status:s===void 0||!l?"":s.draft?"Draft":"Published",template:m===void 0?"":m===!1?"None":qb(m),title:u!==null&&r.has(u)?Y(`${ie(u)} page`,d,i):U(yr(d),d,i)}]}));return N(c)}function vt(e){return e.map((t)=>({file:t,route:yr(t.path)})).toSorted((t,a)=>hC(t.route,a.route)||t.file.path.localeCompare(a.file.path)).map(({file:t})=>t)}function Ee(e){return Sa(e)?.schema??PA(e)}function xt(e){let t=new Set,a=Sp(e),r=sT(e);for(let o of[a,r])if(o!==null)t.add(o);return t}function $t(e){let t=new Map;for(let[a,r]of Object.entries(e?.properties??{}))if(Array.isArray(r.enum))t.set(a,r.enum.filter((o)=>n(o)));return t}function St(e,t){let a=[...new Set(e.flatMap((i)=>i?.status?[i.status]:[]))];if(a.length>0)return{matches:(i,l)=>(i?.status??"")===l,title:"Status",values:a.toSorted((i,l)=>i==="Draft"?-1:l==="Draft"?1:i.localeCompare(l))};if(!t)return null;let r=new Set(e.flatMap((i)=>z(i?.fields?.[t.name],t.list))),o=t.order.length>0?[...t.order,...[...r].filter((i)=>!t.order.includes(i)).toSorted()]:[...r].toSorted((i,l)=>i.localeCompare(l));return{matches:(i,l)=>z(i?.fields?.[t.name],t.list).includes(l),title:t.title,values:o}}function Te(e,t){let a=k(),r=T(),o=il(r.key),{layout:i}=o,l=cT(a.files(),{collection:r.key,query:""}),c=bt(r,i),d=l.map((h)=>c(h)),s=r.kind==="collection"?Ee(r.key):null,u=gN(s,xt(s)),m=we(u,$t(s),d),f=r.kind==="collection"?St(d,m):null,S=f!==null&&f.values.includes(o.filter)?o.filter:"",H=cT(a.files(),{collection:r.key,locale:o.locale,query:o.query}),O=f===null||S===""?H:H.filter((h)=>f.matches(c(h),S)),P=r.kind==="pages"?vt(O):O,J=l.length,b=yt(a,i,P.length,J),D=at(e,i,P.length),Oe=P.slice(D.start,D.end),F=a.failures(),K=hN(l),pe=uT(r.key,{date:sT(s)!==null||d.some((h)=>(h?.date??"")!==""),fields:u,locale:K.length>1,status:d.some((h)=>(h?.status??"")!=="")}),De=b==="cards",Z=b==="calendar"?Se(P,c):{groups:[],truncated:""},G=r.kind==="pages",ee=G?"pages":r.title.toLowerCase();return{bannerState:F.length>0?"shown":"hidden",bannerText:F.length===0?"":`This list is incomplete — ${F.length} ${F.length===1?"directory":"directories"} could not be read (${F[0].dir}${F.length>1?", …":""}).`,columns:b==="table"?pe.map((h)=>({field:h.field,title:h.title})):[],emptyDetail:b==="incomplete"?`${F.length} ${F.length===1?"directory":"directories"} could not be read, so this is not the same as an empty collection.`:b==="nomatch"?`${J} ${J===1?r.item:ee} in all.`:b==="empty"?`New ${r.item} adds the first one.`:"",emptyMessage:b==="nomatch"?ht(r,o):b==="empty"?`No ${ee} yet.`:"",fieldsState:r.kind==="collection"?"shown":"hidden",groups:b==="board"?Le(P,c,m):Z.groups,layouts:_m.map((h)=>gt(h,Ew[h],i===h)),localeOptions:[{label:"All languages",value:"all"},...K.map((h)=>({label:Wt(h),value:h}))],filterOptions:f===null?[]:[{label:`Any ${f.title.toLowerCase()}`,value:"all"},...f.values.map((h)=>({label:h,value:h}))],filterState:f!==null&&f.values.length>1?"shown":"hidden",filterValue:S===""?"all":S,localeState:K.length<2?"hidden":"shown",localeValue:o.locale===""?"all":o.locale,newLabel:`New ${r.item}`,newState:r.fileBacked?"hidden":"shown",pad:`padding-top:calc(var(--jx-space-4) + ${D.padTop}px);padding-bottom:calc(var(--jx-space-4) + ${D.padBottom}px)`,padBottom:`height:${D.padBottom}px`,padTop:`height:${D.padTop}px`,page:ut(r,G?null:sh(r.key,o.locale),Ae(),G||o.locale!==""?[]:jA(r.key)??[]),query:o.query,region:Ln(t,"content"),rows:b==="cards"||b==="table"?Oe.map((h)=>$e(h,b==="table"?pe:[],De,c(h))):[],searchLabel:`Search ${ee}`,subtitle:G?"Every URL on your site.":"",title:r.title,truncated:Z.truncated,truncatedState:Z.truncated===""?"hidden":"shown",view:b}}function Ae(){return C?.projectConfig?.defaults?.layout??null}function ID(e,t){let{paneId:a,wrap:r}=e;if(IE(a,t))return;RE(a);let o=null,i=_p((s)=>{let u=o;if(!u)return;let m=u.pending.get(s);if(m!==void 0)u.pending.delete(s),rt(u,m)}),l=()=>{if(o!==null&&W(a)===o)o.surface.update(Te(o,a)),it(o)},c=ke(r,Te(null,a),{addPage:()=>{ft(T().key)},contextMenu:(s,u,m)=>st(s,u,m),designPage:()=>{mt(T().key)},openFields:()=>{nt("settings.open",{entry:T().key,section:"content"},L)},openGrid:()=>{let s=T(),u=s.fileBacked?ax(s.key):null;if(u){_i(u);return}nt("collection.editInGrid",{name:s.key},L)},openFile:(s)=>{Re(Me(s)??{collection:Fu(),path:s})},openNew:()=>{let s=T(),{locale:u}=il(s.key),m=s.kind==="pages"?{kind:"page"}:{collection:s.key,kind:"entry"};if(u!=="")m.locale=u;nt("file.new",m,L)},previewSlot:(s,u)=>{if(o)ot(o,s,u)},reset:()=>{G_(""),K_("")},retry:()=>{$E()},scrolled:()=>x(),scroller:(s)=>{if(o)o.scroller=s},search:(s)=>G_(s),setLayout:(s)=>TE(s),setFilter:(s)=>et(s==="all"?"":s),setLocale:(s)=>K_(s==="all"?"":s)}),d=me();o={cache:yw(),observer:i,paneId:a,pending:new WeakMap,pendingPaths:new Set,scope:d,scroller:null,settleTimer:null,slots:new Map,surface:c,tabId:t.id,unlisten:(()=>{let s=Ap(()=>x()),u=kw(()=>x()),m=ge(()=>x());return()=>{s(),u(),m()}})(),wrap:r},M.set(a,o),d.run(()=>{te(()=>{if(W(a)!==o)return;y.revision,y.collection,y.loading;let s=il(Fu());if(s.layout,s.query,s.locale,l(),!A&&!y.loading)I()})})}function RD(){y.collection=hi,y.views={},y.loading=!1,j=null,A=!1,x()}
|
|
4
|
-
export{cb,lw,ED,db,Id,TD,LD,EE,cw,dw,il,Fu,$D,TE,G_,K_,Rd,LE,$E,IE,RE,J_,ID,RD};
|
|
5
|
-
|
|
6
|
-
//# debugId=070A13E7BCCF0D1F64756E2164756E21
|
|
7
|
-
//# sourceMappingURL=studio-0w3541dg.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{S0,C0}from"./studio-2ggfzrrd.js";import{n,v}from"./studio-k3we3kqb.js";import{pp,ce}from"./studio-0939t1q1.js";var a={document:S0,project:C0},i={...a},s={document:null,project:null},d=!1;function u(e){return s[e]??=(async()=>{try{let{default:t}=await (ce("906vx2dq"),import("./2020-906vx2dq.js").then((m)=>pp(m.default,1))),{default:r}=await (ce("yjrfeks8"),import("./index-yjrfeks8.js").then((m)=>pp(m.default,1))),o=new t({allErrors:!0,strict:!1,allowUnionTypes:!0});return r(o),o.compile(i[e])}catch(t){if(!d)d=!0,console.error(`[jx] ${e} schema validation is unavailable — the AI assistant's schema gate is a `+"no-op for this session:",t);return null}})(),s[e]}function p(e){return v(e)&&Object.keys(e).length>0}function mF(e){let t=e?.document,r=e?.project,o=p(t)?t:a.document,c=p(r)?r:a.project,m=o!==a.document||c!==a.project;if(o===i.document&&c===i.project)return m;return i.document=o,i.project=c,s.document=null,s.project=null,m}var j=["unevaluatedProperty","additionalProperty","missingProperty"];function l(e){return(e.errors||[]).map((t)=>{let r=j.find((c)=>n(t.params[c])),o=r?` (${String(t.params[r])})`:"";return`${t.instancePath||"(root)"}: ${t.message}${o}`})}async function km(e){let t=await u("document");if(!t||t(e))return[];return l(t)}async function gF(e){let t=await u("document");if(!t)return null;return t(e)?[]:l(t)}async function Ku(e){let t=await u("project");if(!t||t(e))return[];return l(t)}
|
|
2
|
-
export{mF,km,gF,Ku};
|
|
3
|
-
|
|
4
|
-
//# debugId=CC65C2947752C54364756E2164756E21
|
|
5
|
-
//# sourceMappingURL=studio-15hwqgd8.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var oa=new Set([".jpg",".jpeg",".png",".gif",".svg",".webp",".avif",".ico"]),tR=new Set([".mp4",".webm",".mov",".m4v"]),nR=new Set([".mp3",".wav",".ogg",".m4a",".flac"]),ra=new Set([...oa,...tR,...nR,".pdf",".woff",".woff2",".ttf",".otf"]);function At(t){let o=t.lastIndexOf(".");return o>0?t.slice(o).toLowerCase():""}function yf(t){return oa.has(t.startsWith(".")?t.toLowerCase():`.${t.toLowerCase()}`)}
|
|
2
|
-
export{oa,tR,nR,ra,At,yf};
|
|
3
|
-
|
|
4
|
-
//# debugId=AF99274705DA93DF64756E2164756E21
|
|
5
|
-
//# sourceMappingURL=studio-1ks5d9y4.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{X}from"./studio-9c6cbq2c.js";import{Oe,ir,Yd,h}from"./studio-yrcrncev.js";import{w}from"./studio-sce30r7b.js";import{p}from"./studio-4fnb5648.js";import{Ne,Ea,qc}from"./studio-n9qba0gx.js";import{Fn}from"./studio-tpxcryf2.js";import{Sw,Cb}from"./studio-321ym1tt.js";import{VS}from"./studio-thz5t120.js";import{Co}from"./studio-x0gsfr1d.js";import{Vt,zi}from"./studio-4f7thq0p.js";import{oe}from"./studio-v5wktj6f.js";import{_,it}from"./studio-k3we3kqb.js";function aw(){let t=h.value,e=Oe(t?.session.selection);if(!t||!e||e.length<2)return null;let o=oe(t.doc.document,e);if(!o||!o.tagName)return null;return{node:o,path:e}}async function dm(){let t=aw();if(!t)return;let e=await b(g(t.node));if(!e)return;await kE(e.toLowerCase())}async function kE(t){let e=h.value,o=aw();if(!e||!o)return null;let{node:m,path:f}=o,l=v(m);l.tagName=t;let r=`components/${t}.json`,c=qc(e.documentPath,r),u=f;if(!Yd(e,(n)=>{let s=Vt(u)??[],d=zi(u),a=n;for(let i of s)a=a[i];if(!Array.isArray(a.children))a.children=[];if(a.children[d]={tagName:t},!n.$elements)n.$elements=[];if(!n.$elements.some((i)=>_(i)&&("$ref"in i)&&i.$ref===c))n.$elements.push({$ref:c})}))return null;try{await p().writeFile(r,Co(l,null)),await Ea();let s=VS(l);if(w.success(`Converted to <${t}>`),s)w.warn(`<${t}> has a slot problem: ${s}`,{path:r,source:"Components",tier:"problem"});return r}catch(n){return w.error(`Could not save the <${t}> component.`,{detail:X(n),path:r,source:"Components"}),null}}function g(t){if(t.$id){let o=Cb(t.$id);if(o!=="")return o}let e=(it(t.tagName)||"div").toLowerCase();return e.includes("-")?e:Cb(e)}function v(t){let e=ir(t);return delete e.$id,delete e.$layout,delete e.$paths,e}function N(t){let e=t.trim().toLowerCase(),o=Sw(e);if(o!=="")return o;return Ne.some((m)=>m.tagName===e)?`Component <${e}> already exists`:""}function b(t){return Fn("Convert to Component",{confirmLabel:"Convert",message:"Enter a hyphenated tag name for the new component.",placeholder:"my-component",validate:N,value:t})}
|
|
2
|
-
export{aw,dm,kE};
|
|
3
|
-
|
|
4
|
-
//# debugId=521446A2AAA2F22C64756E2164756E21
|
|
5
|
-
//# sourceMappingURL=studio-3xk9zdgb.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{n,Y,Ze,Q,_,v,Pe,Go,Jn,xf,it}from"./studio-k3we3kqb.js";var Lv=400;var tf=350,d1=300,MM=30000;function rr(e){return Array.isArray(e?.children)?e.children:[]}function $v(e,t,i=""){if(!_(e))return e;if(Array.isArray(e)){for(let[l,s]of e.entries())$v(s,t,`${i}/${l}`);return e}let r=e,{children:o}=r;if(Go(o)){let l=o;t?.(i,l),r.children=[l]}if(Array.isArray(r.children))for(let[l,s]of r.children.entries())$v(s,t,`${i}/children/${l}`);if(r.$prototype==="Array"&&_(r.map))$v(r.map,t,`${i}/map`);if(_(r.cases))for(let[l,s]of Object.entries(r.cases))$v(s,t,`${i}/cases/${LI(l)}`);return e}function LI(e){return String(e).replaceAll("~","~0").replaceAll("/","~1")}function Vt(e){return e.length>=2?e.slice(0,-2):null}function zi(e){return e.at(-1)}function $I(e){return e.join("/")}function Cr(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;return e.every((i,r)=>i===t[r])}function kh(e,t=[],i=0){let r=[];return u(e,t,i,r,!1),r}function u(e,t,i,r,o){if(n(e)||Y(e)||Ze(e)){if(!o)r.push({depth:i,node:e,nodeType:"text",path:t});return}if(e.$prototype==="Array"){if(!o)r.push({depth:i,node:e,nodeType:"map",path:t});let s=e.map;if(_(s))u(s,[...t,"map"],i+1,r,!1);return}if(!o)r.push({depth:i,node:e,nodeType:"element",path:t});if(e.$props&&it(e.tagName).includes("-")&&!Array.isArray(e.children))return;let{children:l}=e;if(Array.isArray(l))for(let s=0;s<l.length;s++){let a=[...t,"children",s];u(l[s],a,i+1,r,!1)}else if(Go(l))u(l,[...t,"children"],i+1,r,!1);if(e.$switch&&_(e.cases))for(let[s,a]of Object.entries(e.cases)){let p=[...t,"cases",s];if(_(a)&&a.$ref)r.push({depth:i+1,node:a,nodeType:"case-ref",path:p});else if(_(a))r.push({depth:i+1,node:a,nodeType:"case",path:p}),u(a,p,i+2,r,!0)}}function kr(e){if(!e)return"?";if(e.$prototype==="Array"){let{items:r}=e;return`Repeater → ${(Pe(r)?r.$ref:void 0)||"items"}`}if(e.$title)return e.$title;if(e.$id)return e.$id;if(e.tagName==="slot"){let r=e.attributes?.name;return n(r)&&r.trim()?`slot: ${r.trim()}`:"slot"}let t=it(e.tagName)||"div",i=e.$switch?" ⇆":"";if(n(e.textContent)&&e.textContent.length>0)return`${t} — ${e.textContent.slice(0,24)}${i}`;return t+i}var C=null;function id(e){C=e}function _n(){return C}function Eh(e){return _(e)}function nf(e){if(Array.isArray(e))return e.map((i)=>nf(i));if(!Jn(e))return e;let t={};for(let[i,r]of Object.entries(e)){if(i.startsWith("on")&&xf(r))continue;if(i==="children")t.children=Array.isArray(r)?r.map((o)=>nf(o)):nf(r);else if(i==="cases"&&Eh(r)){let o={};for(let[l,s]of Object.entries(r))o[l]=nf(s);t.cases=o}else if(i==="state"&&Eh(r)){let o={};for(let[l,s]of Object.entries(r)){if(v(s)&&s.timing==="server")continue;o[l]=s}t.state=o}else t[i]=r}return t}var u1=null,Th=null,II=null,RI=null,DI=null;function c(e){let t=document.querySelector(`#${e}`);return t instanceof HTMLElement?t:null}function PM(){u1=c("activity-bar"),Th=c("left-panel"),II=c("right-panel"),RI=c("toolbar"),DI=c("statusbar")}function of(e,t){if(!e)throw TypeError(`#${t} is not in the shell yet; initShellRefs() has not found it`);return e}var ig=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),NI=[":hover",":focus",":active",":focus-within",":focus-visible",":disabled",":first-child",":last-child","::before","::after","::placeholder"];function s0(e){return e.startsWith(":")||e.startsWith(".")||e.startsWith("&")||e.startsWith("[")}var f=new Map;function a0(e,t,i){let r=t??Lv;return(...o)=>{clearTimeout(f.get(e)),f.set(e,setTimeout(()=>{f.delete(e),i(...o)},r))}}function FM(e){clearTimeout(f.get(e)),f.delete(e)}var x=new Map;function y(e){return(_(e)||Q(e))&&"then"in e&&Q(e.then)}var d=0;function jM(){return d}function m(e,t){d+=1;let i=()=>{d-=1},r=null;try{let o=t();if(y(o))r=o}catch(o){console.error(`Renderer "${e}" failed:`,o)}if(!r){i();return}r.then(i,(o)=>{console.error(`Renderer "${e}" failed:`,o),i()})}function og(e,t){x.set(e,t)}function sr(){for(let[e,t]of x.entries())m(e,t)}function wn(...e){for(let t of e){let i=x.get(t);if(!i)continue;m(t,i)}}function vl(e,t){if(e){if(t.selection!==void 0)e.session.selection=t.selection;if(t.hover!==void 0)e.session.hover=t.hover;if(t.clipboard!==void 0)e.session.clipboard=t.clipboard;if(t.ui)Object.assign(e.session.ui,t.ui);if(t.canvas)Object.assign(e.session.canvas,t.canvas)}}function Na(e,t,i){if(e)e.session.ui[t]=i}function HM(e,t){if(e)Object.assign(e.session.canvas,t)}
|
|
2
|
-
export{Lv,tf,d1,MM,rr,$v,LI,Vt,zi,$I,Cr,kh,kr,C,id,_n,Eh,nf,u1,Th,II,RI,DI,PM,of,ig,NI,s0,a0,FM,jM,og,sr,wn,vl,Na,HM};
|
|
3
|
-
|
|
4
|
-
//# debugId=C365A06DD248F72464756E2164756E21
|
|
5
|
-
//# sourceMappingURL=studio-4f7thq0p.js.map
|