@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{dp,Sa,IS,Ed,Un,xe}from"./studio-nv5eq0f7.js";import{L_}from"./studio-r5g7fx7q.js";import{_I}from"./studio-n271vdsg.js";class C{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){if(this._worker)this._worker.dispose(),this._worker=null;this._client=null}async _updateExtraLibs(){if(!this._worker)return;let e=++this._updateExtraLibsToken,t=await this._worker.getProxy();if(this._updateExtraLibsToken!==e)return;t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){if(!this._client)this._client=(async()=>{if(this._worker=L_({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL("ts.worker.js",import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync())return await this._worker.withSyncedResources(Un.getModels().filter((e)=>e.getLanguageId()===this._modeId).map((e)=>e.uri));return await this._worker.getProxy()})();return this._client}async getLanguageServiceWorker(...e){let t=await this._getClient();if(this._worker)await this._worker.withSyncedResources(e);return t}}var s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function x(e,t,n=0){if(typeof e==="string")return e;else if(e===void 0)return"";let a="";if(n){a+=t;for(let i=0;i<n;i++)a+=" "}if(a+=e.messageText,n++,e.next)for(let i of e.next)a+=x(i,t,n);return a}function m(e){if(e)return e.map((t)=>t.text).join("");return""}class h{constructor(e){this._worker=e}_textSpanToRange(e,t){let n=e.getPositionAt(t.start),a=e.getPositionAt(t.start+t.length),{lineNumber:i,column:c}=n,{lineNumber:l,column:r}=a;return{startLineNumber:i,startColumn:c,endLineNumber:l,endColumn:r}}}class D{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){if(!e)return!1;if(e.path.indexOf("/lib.")===0)return!!s[e.path.slice(1)];return!1}getOrCreateModel(e){let t=Ed.parse(e),n=Un.getModel(t);if(n)return n;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return Un.createModel(this._libFiles[t.path.slice(1)],"typescript",t);let a=_I.getExtraLibs()[e];if(a)return Un.createModel(a.content,"typescript",t);return null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){if(!this._containsLibFile(e))return;await this._fetchLibFiles()}_fetchLibFiles(){if(!this._fetchLibFilesPromise)this._fetchLibFilesPromise=this._worker().then((e)=>e.getLibFiles()).then((e)=>{this._hasFetchedLibFiles=!0,this._libFiles=e});return this._fetchLibFilesPromise}}class F extends h{constructor(e,t,n,a){super(a);this._libFiles=e,this._defaults=t,this._selector=n,this._disposables=[],this._listener=Object.create(null);let i=(r)=>{if(r.getLanguageId()!==n)return;let u=()=>{let{onlyVisible:g}=this._defaults.getDiagnosticsOptions();if(g){if(r.isAttachedToEditor())this._doValidate(r)}else this._doValidate(r)},p,f=r.onDidChangeContent(()=>{clearTimeout(p),p=window.setTimeout(u,500)}),d=r.onDidChangeAttached(()=>{let{onlyVisible:g}=this._defaults.getDiagnosticsOptions();if(g)if(r.isAttachedToEditor())u();else Un.setModelMarkers(r,this._selector,[])});this._listener[r.uri.toString()]={dispose(){f.dispose(),d.dispose(),clearTimeout(p)}},u()},c=(r)=>{Un.setModelMarkers(r,this._selector,[]);let u=r.uri.toString();if(this._listener[u])this._listener[u].dispose(),delete this._listener[u]};this._disposables.push(Un.onDidCreateModel((r)=>i(r))),this._disposables.push(Un.onWillDisposeModel(c)),this._disposables.push(Un.onDidChangeModelLanguage((r)=>{c(r.model),i(r.model)})),this._disposables.push({dispose(){for(let r of Un.getModels())c(r)}});let l=()=>{for(let r of Un.getModels())c(r),i(r)};this._disposables.push(this._defaults.onDidChange(l)),this._disposables.push(this._defaults.onDidExtraLibsChange(l)),Un.getModels().forEach((r)=>i(r))}dispose(){this._disposables.forEach((e)=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){let t=await this._worker(e.uri);if(e.isDisposed())return;let n=[],{noSyntaxValidation:a,noSemanticValidation:i,noSuggestionDiagnostics:c}=this._defaults.getDiagnosticsOptions();if(!a)n.push(t.getSyntacticDiagnostics(e.uri.toString()));if(!i)n.push(t.getSemanticDiagnostics(e.uri.toString()));if(!c)n.push(t.getSuggestionDiagnostics(e.uri.toString()));let l=await Promise.all(n);if(!l||e.isDisposed())return;let r=l.reduce((p,f)=>f.concat(p),[]).filter((p)=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(p.code)===-1),u=r.map((p)=>p.relatedInformation||[]).reduce((p,f)=>f.concat(p),[]).map((p)=>p.file?Ed.parse(p.file.fileName):null);if(await this._libFiles.fetchLibFilesIfNecessary(u),e.isDisposed())return;Un.setModelMarkers(e,this._selector,r.map((p)=>this._convertDiagnostics(e,p)))}_convertDiagnostics(e,t){let n=t.start||0,a=t.length||1,{lineNumber:i,column:c}=e.getPositionAt(n),{lineNumber:l,column:r}=e.getPositionAt(n+a),u=[];if(t.reportsUnnecessary)u.push(IS.Unnecessary);if(t.reportsDeprecated)u.push(IS.Deprecated);return{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:i,startColumn:c,endLineNumber:l,endColumn:r,message:x(t.messageText,`
|
|
2
|
+
`),code:t.code.toString(),tags:u,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];let n=[];return t.forEach((a)=>{let i=e;if(a.file)i=this._libFiles.getOrCreateModel(a.file.fileName);if(!i)return;let c=a.start||0,l=a.length||1,{lineNumber:r,column:u}=i.getPositionAt(c),{lineNumber:p,column:f}=i.getPositionAt(c+l);n.push({resource:i.uri,startLineNumber:r,startColumn:u,endLineNumber:p,endColumn:f,message:x(a.messageText,`
|
|
3
|
+
`)})}),n}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return Sa.Error;case 3:return Sa.Info;case 0:return Sa.Warning;case 2:return Sa.Hint}return Sa.Info}}class _ extends h{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,n,a){let i=e.getWordUntilPosition(t),c=new dp(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn),l=e.uri,r=e.getOffsetAt(t),u=await this._worker(l);if(e.isDisposed())return;let p=await u.getCompletionsAtPosition(l.toString(),r);if(!p||e.isDisposed())return;return{suggestions:p.entries.map((d)=>{let g=c;if(d.replacementSpan){let k=e.getPositionAt(d.replacementSpan.start),S=e.getPositionAt(d.replacementSpan.start+d.replacementSpan.length);g=new dp(k.lineNumber,k.column,S.lineNumber,S.column)}let y=[];if(d.kindModifiers!==void 0&&d.kindModifiers.indexOf("deprecated")!==-1)y.push(xe.CompletionItemTag.Deprecated);return{uri:l,position:t,offset:r,range:g,label:d.name,insertText:d.name,sortText:d.sortText,kind:_.convertKind(d.kind),tags:y}})}}async resolveCompletionItem(e,t){let n=e,{uri:a,position:i,offset:c}=n,r=await(await this._worker(a)).getCompletionEntryDetails(a.toString(),c,n.label);if(!r)return n;return{uri:a,position:i,label:r.name,kind:_.convertKind(r.kind),detail:m(r.displayParts),documentation:{value:_.createDocumentationString(r)}}}static convertKind(e){switch(e){case o.primitiveType:case o.keyword:return xe.CompletionItemKind.Keyword;case o.variable:case o.localVariable:return xe.CompletionItemKind.Variable;case o.memberVariable:case o.memberGetAccessor:case o.memberSetAccessor:return xe.CompletionItemKind.Field;case o.function:case o.memberFunction:case o.constructSignature:case o.callSignature:case o.indexSignature:return xe.CompletionItemKind.Function;case o.enum:return xe.CompletionItemKind.Enum;case o.module:return xe.CompletionItemKind.Module;case o.class:return xe.CompletionItemKind.Class;case o.interface:return xe.CompletionItemKind.Interface;case o.warning:return xe.CompletionItemKind.File}return xe.CompletionItemKind.Property}static createDocumentationString(e){let t=m(e.documentation);if(e.tags)for(let n of e.tags)t+=`
|
|
4
|
+
|
|
5
|
+
${V(n)}`;return t}}function V(e){let t=`*@${e.name}*`;if(e.name==="param"&&e.text){let[n,...a]=e.text;if(t+=`\`${n.text}\``,a.length>0)t+=` — ${a.map((i)=>i.text).join(" ")}`}else if(Array.isArray(e.text))t+=` — ${e.text.map((n)=>n.text).join(" ")}`;else if(e.text)t+=` — ${e.text}`;return t}class v extends h{constructor(){super(...arguments);this.signatureHelpTriggerCharacters=["(",","]}static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case xe.SignatureHelpTriggerKind.TriggerCharacter:if(e.triggerCharacter)if(e.isRetrigger)return{kind:"retrigger",triggerCharacter:e.triggerCharacter};else return{kind:"characterTyped",triggerCharacter:e.triggerCharacter};else return{kind:"invoked"};case xe.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case xe.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(e,t,n,a){let i=e.uri,c=e.getOffsetAt(t),l=await this._worker(i);if(e.isDisposed())return;let r=await l.getSignatureHelpItems(i.toString(),c,{triggerReason:v._toSignatureHelpTriggerReason(a)});if(!r||e.isDisposed())return;let u={activeSignature:r.selectedItemIndex,activeParameter:r.argumentIndex,signatures:[]};return r.items.forEach((p)=>{let f={label:"",parameters:[]};f.documentation={value:m(p.documentation)},f.label+=m(p.prefixDisplayParts),p.parameters.forEach((d,g,y)=>{let k=m(d.displayParts),S={label:k,documentation:{value:m(d.documentation)}};if(f.label+=k,f.parameters.push(S),g<y.length-1)f.label+=m(p.separatorDisplayParts)}),f.label+=m(p.suffixDisplayParts),u.signatures.push(f)}),{value:u,dispose(){}}}}class T extends h{async provideHover(e,t,n){let a=e.uri,i=e.getOffsetAt(t),c=await this._worker(a);if(e.isDisposed())return;let l=await c.getQuickInfoAtPosition(a.toString(),i);if(!l||e.isDisposed())return;let r=m(l.documentation),u=l.tags?l.tags.map((f)=>V(f)).join(`
|
|
6
|
+
|
|
7
|
+
`):"",p=m(l.displayParts);return{range:this._textSpanToRange(e,l.textSpan),contents:[{value:"```typescript\n"+p+"\n```\n"},{value:r+(u?`
|
|
8
|
+
|
|
9
|
+
`+u:"")}]}}}class L extends h{async provideDocumentHighlights(e,t,n){let a=e.uri,i=e.getOffsetAt(t),c=await this._worker(a);if(e.isDisposed())return;let l=await c.getDocumentHighlights(a.toString(),i,[a.toString()]);if(!l||e.isDisposed())return;return l.flatMap((r)=>r.highlightSpans.map((u)=>({range:this._textSpanToRange(e,u.textSpan),kind:u.kind==="writtenReference"?xe.DocumentHighlightKind.Write:xe.DocumentHighlightKind.Text})))}}class A extends h{constructor(e,t){super(t);this._libFiles=e}async provideDefinition(e,t,n){let a=e.uri,i=e.getOffsetAt(t),c=await this._worker(a);if(e.isDisposed())return;let l=await c.getDefinitionAtPosition(a.toString(),i);if(!l||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(l.map((u)=>Ed.parse(u.fileName))),e.isDisposed())return;let r=[];for(let u of l){let p=this._libFiles.getOrCreateModel(u.fileName);if(p)r.push({uri:p.uri,range:this._textSpanToRange(p,u.textSpan)})}return r}}class I extends h{constructor(e,t){super(t);this._libFiles=e}async provideReferences(e,t,n,a){let i=e.uri,c=e.getOffsetAt(t),l=await this._worker(i);if(e.isDisposed())return;let r=await l.getReferencesAtPosition(i.toString(),c);if(!r||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(r.map((p)=>Ed.parse(p.fileName))),e.isDisposed())return;let u=[];for(let p of r){let f=this._libFiles.getOrCreateModel(p.fileName);if(f)u.push({uri:f.uri,range:this._textSpanToRange(f,p.textSpan)})}return u}}class P extends h{async provideDocumentSymbols(e,t){let n=e.uri,a=await this._worker(n);if(e.isDisposed())return;let i=await a.getNavigationTree(n.toString());if(!i||e.isDisposed())return;let c=(r,u)=>({name:r.text,detail:"",kind:b[r.kind]||xe.SymbolKind.Variable,range:this._textSpanToRange(e,r.spans[0]),selectionRange:this._textSpanToRange(e,r.spans[0]),tags:[],children:r.childItems?.map((f)=>c(f,r.text)),containerName:u});return i.childItems?i.childItems.map((r)=>c(r)):[]}}class o{}o.unknown="";o.keyword="keyword";o.script="script";o.module="module";o.class="class";o.interface="interface";o.type="type";o.enum="enum";o.variable="var";o.localVariable="local var";o.function="function";o.localFunction="local function";o.memberFunction="method";o.memberGetAccessor="getter";o.memberSetAccessor="setter";o.memberVariable="property";o.constructorImplementation="constructor";o.callSignature="call";o.indexSignature="index";o.constructSignature="construct";o.parameter="parameter";o.typeParameter="type parameter";o.primitiveType="primitive type";o.label="label";o.alias="alias";o.const="const";o.let="let";o.warning="warning";var b=Object.create(null);b[o.module]=xe.SymbolKind.Module;b[o.class]=xe.SymbolKind.Class;b[o.enum]=xe.SymbolKind.Enum;b[o.interface]=xe.SymbolKind.Interface;b[o.memberFunction]=xe.SymbolKind.Method;b[o.memberVariable]=xe.SymbolKind.Property;b[o.memberGetAccessor]=xe.SymbolKind.Property;b[o.memberSetAccessor]=xe.SymbolKind.Property;b[o.variable]=xe.SymbolKind.Variable;b[o.const]=xe.SymbolKind.Variable;b[o.localVariable]=xe.SymbolKind.Variable;b[o.variable]=xe.SymbolKind.Variable;b[o.function]=xe.SymbolKind.Function;b[o.localFunction]=xe.SymbolKind.Function;class w extends h{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:`
|
|
10
|
+
`,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}}class O extends w{constructor(){super(...arguments);this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(e,t,n,a){let i=e.uri,c=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),l=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),r=await this._worker(i);if(e.isDisposed())return;let u=await r.getFormattingEditsForRange(i.toString(),c,l,w._convertOptions(n));if(!u||e.isDisposed())return;return u.map((p)=>this._convertTextChanges(e,p))}}class N extends w{get autoFormatTriggerCharacters(){return[";","}",`
|
|
11
|
+
`]}async provideOnTypeFormattingEdits(e,t,n,a,i){let c=e.uri,l=e.getOffsetAt(t),r=await this._worker(c);if(e.isDisposed())return;let u=await r.getFormattingEditsAfterKeystroke(c.toString(),l,n,w._convertOptions(a));if(!u||e.isDisposed())return;return u.map((p)=>this._convertTextChanges(e,p))}}class M extends w{async provideCodeActions(e,t,n,a){let i=e.uri,c=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),l=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),r=w._convertOptions(e.getOptions()),u=n.markers.filter((g)=>g.code).map((g)=>g.code).map(Number),p=await this._worker(i);if(e.isDisposed())return;let f=await p.getCodeFixesAtPosition(i.toString(),c,l,u,r);if(!f||e.isDisposed())return{actions:[],dispose:()=>{}};return{actions:f.filter((g)=>g.changes.filter((y)=>y.isNewFile).length===0).map((g)=>this._tsCodeFixActionToMonacoCodeAction(e,n,g)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,n){let a=[];for(let c of n.changes)for(let l of c.textChanges)a.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,l.span),text:l.newText}});return{title:n.description,edit:{edits:a},diagnostics:t.markers,kind:"quickfix"}}}class R extends h{constructor(e,t){super(t);this._libFiles=e}async provideRenameEdits(e,t,n,a){let i=e.uri,c=i.toString(),l=e.getOffsetAt(t),r=await this._worker(i);if(e.isDisposed())return;let u=await r.getRenameInfo(c,l,{allowRenameOfImportPath:!1});if(u.canRename===!1)return{edits:[],rejectReason:u.localizedErrorMessage};if(u.fileToRename!==void 0)throw Error("Renaming files is not supported.");let p=await r.findRenameLocations(c,l,!1,!1,!1);if(!p||e.isDisposed())return;let f=[];for(let d of p){let g=this._libFiles.getOrCreateModel(d.fileName);if(g)f.push({resource:g.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(g,d.textSpan),text:n}});else throw Error(`Unknown file ${d.fileName}.`)}return{edits:f}}}class E extends h{async provideInlayHints(e,t,n){let a=e.uri,i=a.toString(),c=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),l=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),r=await this._worker(a);if(e.isDisposed())return null;return{hints:(await r.provideInlayHints(i,c,l)).map((f)=>({...f,label:f.text,position:e.getPositionAt(f.position),kind:this._convertHintKind(f.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return xe.InlayHintKind.Parameter;case"Type":return xe.InlayHintKind.Type;default:return xe.InlayHintKind.Type}}}var H,W;function te(e){W=j(e,"typescript")}function se(e){H=j(e,"javascript")}function re(){return new Promise((e,t)=>{if(!H)return t("JavaScript not registered!");e(H)})}function ie(){return new Promise((e,t)=>{if(!W)return t("TypeScript not registered!");e(W)})}function j(e,t){let n=[],a=new C(t,e),i=(...r)=>a.getLanguageServiceWorker(...r),c=new D(i);function l(){let{modeConfiguration:r}=e;if(B(n),r.completionItems)n.push(xe.registerCompletionItemProvider(t,new _(i)));if(r.signatureHelp)n.push(xe.registerSignatureHelpProvider(t,new v(i)));if(r.hovers)n.push(xe.registerHoverProvider(t,new T(i)));if(r.documentHighlights)n.push(xe.registerDocumentHighlightProvider(t,new L(i)));if(r.definitions)n.push(xe.registerDefinitionProvider(t,new A(c,i)));if(r.references)n.push(xe.registerReferenceProvider(t,new I(c,i)));if(r.documentSymbols)n.push(xe.registerDocumentSymbolProvider(t,new P(i)));if(r.rename)n.push(xe.registerRenameProvider(t,new R(c,i)));if(r.documentRangeFormattingEdits)n.push(xe.registerDocumentRangeFormattingEditProvider(t,new O(i)));if(r.onTypeFormattingEdits)n.push(xe.registerOnTypeFormattingEditProvider(t,new N(i)));if(r.codeActions)n.push(xe.registerCodeActionProvider(t,new M(i)));if(r.inlayHints)n.push(xe.registerInlayHintsProvider(t,new E(i)));if(r.diagnostics)n.push(new F(c,e,t,i))}return l(),i}function B(e){while(e.length)e.pop().dispose()}export{h as Adapter,M as CodeActionAdaptor,A as DefinitionAdapter,F as DiagnosticsAdapter,L as DocumentHighlightAdapter,O as FormatAdapter,w as FormatHelper,N as FormatOnTypeAdapter,E as InlayHintsAdapter,o as Kind,D as LibFiles,P as OutlineAdapter,T as QuickInfoAdapter,I as ReferenceAdapter,R as RenameAdapter,v as SignatureHelpAdapter,_ as SuggestAdapter,C as WorkerManager,x as flattenDiagnosticMessageText,re as getJavaScriptWorker,ie as getTypeScriptWorker,se as setupJavaScript,te as setupTypeScript};
|
|
12
|
+
|
|
13
|
+
//# debugId=B32EEA098FD82F5664756E2164756E21
|
|
14
|
+
//# sourceMappingURL=tsMode-3f116hth.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Q2,GS,_E,SE,JS,ab,CE}from"./studio-n4pnf0sw.js";import"./studio-s4k1v7dt.js";import"./studio-d5f7sskn.js";import"./studio-ztzf8mce.js";import"./studio-hy936516.js";import"./studio-vswmz40d.js";import"./studio-ph17an19.js";import"./studio-pte5w7rf.js";import"./studio-dst8y8vh.js";import"./studio-ep1384t9.js";import"./studio-4ncxzw5m.js";import"./studio-ze1sm147.js";import"./studio-6mf31e16.js";import"./studio-6sxnqqw8.js";import"./studio-w3aafbpk.js";import"./studio-15mfah02.js";import"./studio-ek4fb4eb.js";import"./studio-4jy967rj.js";import"./studio-ajfq4fmr.js";import"./studio-pgze9p34.js";import"./studio-g65t6svn.js";import"./studio-thgexj3w.js";import"./studio-j3bq30yz.js";import"./studio-qarg1xf9.js";import"./studio-pv1ts08p.js";import"./studio-gw83z798.js";import"./studio-aaw7wxv8.js";import"./studio-43pynnhz.js";import"./studio-1d8m5s38.js";import"./studio-c72v1kwc.js";import"./studio-czpmzs9r.js";import"./studio-td3h1644.js";import"./studio-cv6gnjqd.js";import"./studio-4z0cdh16.js";import"./studio-k05g7efh.js";import"./studio-wn2cmf9q.js";import"./studio-w4mfaaam.js";import"./studio-q509sqt8.js";import"./studio-48yzqzqr.js";import"./studio-s49y6m5b.js";import"./studio-x5py815g.js";import"./studio-9c6cbq2c.js";import"./studio-bk0anq3b.js";import"./studio-ex1644g2.js";import"./studio-xh6rf05g.js";import"./studio-1a7zshnv.js";import"./studio-m3jrjfhy.js";import"./studio-zav9hgb3.js";import"./studio-zzgp5yka.js";import"./studio-z6s56dzz.js";import"./studio-k1wvtp03.js";export{Q2 as WORKSPACE_HOME_MODE_SET,ab as detachWorkspaceHome,GS as isWorkspaceHomeMode,_E as openWorkspaceHome,SE as placeWorkspaceHome,CE as renderWorkspaceHome,JS as workspaceHomeMounted};
|
|
2
|
+
|
|
3
|
+
//# debugId=82D985F70C41F82864756E2164756E21
|
|
4
|
+
//# sourceMappingURL=workspace-home-61n1jz3q.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{fi,tg,LR,g,h,Jo,pn,Oa,Co,ng,f1,m1,sc,ig,rg,g1,b1,y1,og,_h,ac,Yp,vl,v1,Si,td,w1,RR,Ly,h_,IR,Qd,NR,DR,Ft,Ry,OR,AR}from"./studio-s49y6m5b.js";import"./studio-x5py815g.js";import"./studio-bk0anq3b.js";import"./studio-ex1644g2.js";import"./studio-xh6rf05g.js";import"./studio-zav9hgb3.js";export{LR as MAX_PANES,fi as PRIMARY_PANE,tg as SECONDARY_PANE,Ft as activateTab,Jo as activePane,h as activeTab,v1 as clearPaneActiveTab,NR as closeAllTabs,ig as closePane,Qd as closeTab,og as detachTab,Co as focusPane,_h as insertIntoPane,ng as isPaneFocused,Yp as isTabActive,IR as moveTab,Ry as moveTabToPane,Si as openTab,m1 as paneBeside,pn as paneById,rg as paneIsEmpty,Oa as paneOfTab,w1 as promoteDirtyPreviewTabs,td as promoteTab,sc as receivingPane,AR as registerTabCommands,OR as renameTab,DR as replaceAllTabs,y1 as setCloseLanding,RR as setEditBesideDocument,b1 as setEmptyPaneFallback,h_ as setTabPinned,g1 as setTabScope,ac as setWorkspaceProject,f1 as splitRight,Ly as tabHoldsEditBesideDocument,vl as tabIsLive,g as workspace};
|
|
2
|
+
|
|
3
|
+
//# debugId=BE9C8F8FC55CED1C64756E2164756E21
|
|
4
|
+
//# sourceMappingURL=workspace-sheek6zw.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aE,rs,Qa,lE,yo,_t,el,Wr,tl,Xr,Nt,nl,Lu,hp,Td,XI,QI,eN,cE,dE}from"./studio-3yr1zdp9.js";import{ow}from"./studio-8ncm9zwx.js";var x=30000;class I extends aE{constructor(e){super();this.doc=e,this.clientID=e.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{let r=Lu();if(this.getLocalState()!==null&&x/2<=r-this.meta.get(this.clientID).lastUpdated)this.setLocalState(this.getLocalState());let s=[];if(this.meta.forEach((o,c)=>{if(c!==this.clientID&&x<=r-o.lastUpdated&&this.states.has(c))s.push(c)}),s.length>0)L(this,s,"timeout")},rs(x/10)),e.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){let r=this.clientID,s=this.meta.get(r),o=s===void 0?0:s.clock+1,c=this.states.get(r);if(e===null)this.states.delete(r);else this.states.set(r,e);this.meta.set(r,{clock:o,lastUpdated:Lu()});let a=[],d=[],y=[],f=[];if(e===null)f.push(r);else if(c==null){if(e!=null)a.push(r)}else if(d.push(r),!hp(c,e))y.push(r);if(a.length>0||y.length>0||f.length>0)this.emit("change",[{added:a,updated:y,removed:f},"local"]);this.emit("update",[{added:a,updated:d,removed:f},"local"])}setLocalStateField(e,r){let s=this.getLocalState();if(s!==null)this.setLocalState({...s,[e]:r})}getStates(){return this.states}}var L=(e,r,s)=>{let o=[];for(let c=0;c<r.length;c++){let a=r[c];if(e.states.has(a)){if(e.states.delete(a),a===e.clientID){let d=e.meta.get(a);e.meta.set(a,{clock:d.clock+1,lastUpdated:Lu()})}o.push(a)}}if(o.length>0)e.emit("change",[{added:[],updated:[],removed:o},s]),e.emit("update",[{added:[],updated:[],removed:o},s])},M=(e,r,s=e.states)=>{let o=r.length,c=Qa();_t(c,o);for(let a=0;a<o;a++){let d=r[a],y=s.get(d)||null,f=e.meta.get(d).clock;_t(c,d),_t(c,f),el(c,JSON.stringify(y))}return yo(c)};var F=(e,r,s)=>{let o=tl(r),c=Lu(),a=[],d=[],y=[],f=[],U=Nt(o);for(let b=0;b<U;b++){let h=Nt(o),g=Nt(o),S=JSON.parse(nl(o)),v=e.meta.get(h),k=e.states.get(h),w=v===void 0?0:v.clock;if(w<g||w===g&&S===null&&e.states.has(h)){if(S===null)if(h===e.clientID&&e.getLocalState()!=null)g++;else e.states.delete(h);else e.states.set(h,S);if(e.meta.set(h,{clock:g,lastUpdated:c}),v===void 0&&S!==null)a.push(h);else if(v!==void 0&&S===null)f.push(h);else if(S!==null){if(!hp(S,k))y.push(h);d.push(h)}}}if(a.length>0||y.length>0||f.length>0)e.emit("change",[{added:a,updated:y,removed:f},s]);if(a.length>0||d.length>0||f.length>0)e.emit("update",[{added:a,updated:d,removed:f},s])};var W=0,D=1,R=2,j=(e,r)=>{_t(e,W);let s=eN(r);Wr(e,s)},H=(e,r,s)=>{_t(e,D),Wr(e,QI(r,s))},B=(e,r,s)=>H(r,s,Xr(e)),N=(e,r,s,o)=>{try{XI(r,Xr(e),s)}catch(c){if(o!=null)o(c);console.error("Caught error while handling a Yjs update",c)}},J=(e,r)=>{_t(e,R),Wr(e,r)},z=N,_=(e,r,s,o,c)=>{let a=Nt(e);switch(a){case W:B(e,r,s);break;case D:N(e,s,o,c);break;case R:z(e,s,o,c);break;default:throw Error("Unknown message type")}return a};var K=1;function se(e){let r=e.webSocketImpl??globalThis.WebSocket,s=e.openTimeoutMs??1e4,o=new Map,c=new Set,a=new Td,d=new I(a);d.setLocalState(null);let y=null,f=null,U="connecting",b=!1,h=(n)=>{if(U===n)return;U=n;for(let t of c)t(n)},g=(n)=>{if(y&&y.readyState===K)try{y.send(cE(n))}catch{}},S=(n)=>{g({message:{path:n,type:"open"},type:"control"})};d.on("update",(n,t)=>{if(t==="remote")return;let l=[...n.added,...n.updated,...n.removed];g({body:M(d,l),type:"awareness"})});let v=(n)=>{switch(n.type){case"hello":{let t={color:n.color,login:n.login,permission:n.permission};if(n.name!==void 0)t.name=n.name;if(n.avatarUrl!==void 0)t.avatarUrl=n.avatarUrl;f=t;return}case"opened":{let t=o.get(n.path);if(!t)return;if(t.opened&&t.epoch!==n.epoch){w(n.path,t);return}t.epoch=n.epoch,t.opened=!0,t.resolveOpen?.(!0),t.resolveOpen=null;let l=Qa();j(l,t.doc),g({body:yo(l),epoch:t.epoch,path:n.path,type:"doc-sync"});return}case"doc-reset":{let t=o.get(n.path);if(t)w(n.path,t);return}case"flush-ack":{let t=o.get(n.path);if(t){for(let l of t.pendingFlush)l();t.pendingFlush.clear()}return}case"doc-dirty":{let t=o.get(n.path);if(t){t.dirty=n.dirty;for(let l of t.dirtyCbs)l(n.dirty)}return}case"error":{if(!n.path)return;let t=o.get(n.path);if(!t)return;if(n.code==="content-not-loaded"&&e.hydratePath&&!t.hydrated){t.hydrated=!0,e.hydratePath(n.path).then(()=>S(n.path),()=>{t.resolveOpen?.(!1),t.resolveOpen=null});return}if(!t.opened)t.resolveOpen?.(!1),t.resolveOpen=null;break}default:break}},k=(n,t,l)=>{let u=o.get(n);if(!u||!u.opened||u.epoch!==t)return;let i=tl(l),m=Qa(),T=_(i,m,u.doc,"remote");if(lE(m)>0)g({body:yo(m),epoch:t,path:n,type:"doc-sync"});if(T===D&&!u.synced)u.synced=!0,u.resolveSynced()},w=(n,t)=>{o.delete(n),t.resolveOpen?.(!1),t.resolveOpen=null;for(let l of t.resetCbs)l();t.doc.destroy()},P=()=>{h("connecting");let n=e.protocols,t=n===void 0||n.length===0?new r(e.url):new r(e.url,n);y=t,t.binaryType="arraybuffer",t.onopen=()=>{O.opened(),h("connected");for(let u of o.keys())S(u);if(d.getLocalState()!==null)g({body:M(d,[d.clientID]),type:"awareness"})},t.onmessage=(l)=>{let u=l.data,i=u instanceof ArrayBuffer?new Uint8Array(u):u instanceof Uint8Array?u:null;if(!i)return;let m;try{m=dE(i)}catch{return}switch(m.type){case"control":{v(m.message);return}case"doc-sync":{k(m.path,m.epoch,m.body);return}case"awareness":{F(d,m.body,"remote");break}default:break}},t.onclose=()=>{if(b)return;h("offline");for(let l of o.values())l.opened=!1;O.scheduleRetry()},t.onerror=()=>{}},A={};if(e.reconnectDelayMs!==void 0)A.baseMs=e.reconnectDelayMs;if(e.reconnectRandom!==void 0)A.random=e.reconnectRandom;let O=ow(P,A);return P(),{destroy(){if(b)return;b=!0,O.dispose(),L(d,[d.clientID],"destroy"),d.destroy(),a.destroy();for(let[n,t]of o)t.resolveOpen?.(!1),t.doc.destroy(),o.delete(n);y?.close()},async openDoc(n){if(b)return null;let t=o.get(n);if(t&&!t.handleDestroyed)return null;let l=()=>{},u=new Promise((p)=>{l=p}),i={dirty:!1,dirtyCbs:new Set,doc:new Td,epoch:0,handleDestroyed:!1,hydrated:!1,opened:!1,pendingFlush:new Set,resetCbs:new Set,resolveOpen:null,resolveSynced:l,synced:!1,whenSynced:u};if(o.set(n,i),i.doc.on("update",(p,V)=>{if(V==="remote"||!i.opened)return;let C=Qa();J(C,p),g({body:yo(C),epoch:i.epoch,path:n,type:"doc-sync"})}),!await new Promise((p)=>{i.resolveOpen=p;let V=setTimeout(()=>{i.resolveOpen=null,p(!1)},s);i.resolveOpen=(C)=>{clearTimeout(V),p(C)},S(n)})){if(o.get(n)===i)o.delete(n);return i.doc.destroy(),null}return{awareness:d,destroy:()=>{if(i.handleDestroyed)return;if(i.handleDestroyed=!0,o.get(n)===i)o.delete(n),g({path:n,type:"doc-close"});i.doc.destroy()},doc:i.doc,flush:()=>new Promise((p)=>{i.pendingFlush.add(p),g({message:{path:n,type:"flush"},type:"control"})}),identity:()=>f,onDirty:(p)=>(i.dirtyCbs.add(p),p(i.dirty),()=>i.dirtyCbs.delete(p)),onReset:(p)=>(i.resetCbs.add(p),()=>i.resetCbs.delete(p)),onStatus:(p)=>(c.add(p),()=>c.delete(p)),whenSynced:i.whenSynced}},status:()=>U}}export{se as createWsCollabConnection};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
4
|
-
//# sourceMappingURL=ws-client-
|
|
3
|
+
//# debugId=2F89EAE7F37667B664756E2164756E21
|
|
4
|
+
//# sourceMappingURL=ws-client-cb49m87s.js.map
|