document-model 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/browser/document-model.cjs +1 -1
  2. package/dist/browser/document-model.js +2 -2
  3. package/dist/browser/document.cjs +1 -1
  4. package/dist/browser/document.js +4 -4
  5. package/dist/browser/index.cjs +1 -1
  6. package/dist/browser/index.js +3 -3
  7. package/dist/browser/internal/{index-k0_xGFJa.js → index-8aac3662.js} +400 -398
  8. package/dist/browser/internal/index-8fceb2dc.js +1 -0
  9. package/dist/browser/internal/index-cd28e4ab.js +22 -0
  10. package/dist/browser/internal/index-e127ba7e.js +36 -0
  11. package/dist/browser/internal/{object-wtPuW7QY.js → object-67d1240b.js} +409 -359
  12. package/dist/browser/internal/object-ba4e810d.js +6 -0
  13. package/dist/browser/src/document/actions/creators.d.ts +3 -2
  14. package/dist/browser/src/document/actions/types.d.ts +1 -1
  15. package/dist/browser/src/document/object.d.ts +58 -2
  16. package/dist/browser/src/document/reducer.d.ts +2 -2
  17. package/dist/browser/src/document/schema/types.d.ts +9 -3
  18. package/dist/browser/src/document/signal.d.ts +7 -1
  19. package/dist/browser/src/document/types.d.ts +12 -1
  20. package/dist/browser/src/document/utils/base.d.ts +15 -2
  21. package/dist/browser/src/document-model/gen/header/object.d.ts +7 -6
  22. package/dist/browser/src/document-model/gen/module/object.d.ts +6 -5
  23. package/dist/browser/src/document-model/gen/operation/object.d.ts +11 -10
  24. package/dist/browser/src/document-model/gen/operation-error/object.d.ts +8 -7
  25. package/dist/browser/src/document-model/gen/operation-example/object.d.ts +5 -4
  26. package/dist/browser/src/document-model/gen/reducer.d.ts +2 -0
  27. package/dist/browser/src/document-model/gen/state/object.d.ts +7 -6
  28. package/dist/browser/src/document-model/gen/versioning/object.d.ts +6 -5
  29. package/dist/browser/src/document-model/index.d.ts +2 -1
  30. package/dist/browser/test/document/skip-operations.test.d.ts +1 -0
  31. package/dist/browser/test/document-model/skip-operations.test.d.ts +1 -0
  32. package/dist/browser/test/helpers.d.ts +5 -2
  33. package/dist/node/document-model.cjs +1 -1
  34. package/dist/node/document-model.js +2 -2
  35. package/dist/node/document.cjs +1 -1
  36. package/dist/node/document.js +4 -4
  37. package/dist/node/index.cjs +1 -1
  38. package/dist/node/index.js +3 -3
  39. package/dist/node/internal/index-ac24dd92.js +36 -0
  40. package/dist/node/internal/index-c75a9c7a.js +1 -0
  41. package/dist/node/internal/{index-vqhz-N10.js → index-e9f12d45.js} +400 -398
  42. package/dist/node/internal/index-f04f94a6.js +22 -0
  43. package/dist/node/internal/object-10b89c54.js +1 -0
  44. package/dist/node/internal/{object-yzJ3jRpE.js → object-cb276649.js} +317 -267
  45. package/dist/node/src/document/actions/creators.d.ts +3 -2
  46. package/dist/node/src/document/actions/types.d.ts +1 -1
  47. package/dist/node/src/document/object.d.ts +58 -2
  48. package/dist/node/src/document/reducer.d.ts +2 -2
  49. package/dist/node/src/document/schema/types.d.ts +9 -3
  50. package/dist/node/src/document/signal.d.ts +7 -1
  51. package/dist/node/src/document/types.d.ts +12 -1
  52. package/dist/node/src/document/utils/base.d.ts +15 -2
  53. package/dist/node/src/document-model/gen/header/object.d.ts +7 -6
  54. package/dist/node/src/document-model/gen/module/object.d.ts +6 -5
  55. package/dist/node/src/document-model/gen/operation/object.d.ts +11 -10
  56. package/dist/node/src/document-model/gen/operation-error/object.d.ts +8 -7
  57. package/dist/node/src/document-model/gen/operation-example/object.d.ts +5 -4
  58. package/dist/node/src/document-model/gen/reducer.d.ts +2 -0
  59. package/dist/node/src/document-model/gen/state/object.d.ts +7 -6
  60. package/dist/node/src/document-model/gen/versioning/object.d.ts +6 -5
  61. package/dist/node/src/document-model/index.d.ts +2 -1
  62. package/dist/node/test/document/skip-operations.test.d.ts +1 -0
  63. package/dist/node/test/document-model/skip-operations.test.d.ts +1 -0
  64. package/dist/node/test/helpers.d.ts +5 -2
  65. package/package.json +1 -1
  66. package/dist/browser/internal/index-BGvdUwMj.js +0 -1
  67. package/dist/browser/internal/index-ZaSXpgfR.js +0 -22
  68. package/dist/browser/internal/index-vHDbgY8i.js +0 -34
  69. package/dist/browser/internal/object-fIfH8K9b.js +0 -6
  70. package/dist/node/internal/index-3_D7m254.js +0 -34
  71. package/dist/node/internal/index-ffEJwj4v.js +0 -22
  72. package/dist/node/internal/index-frYzO4l6.js +0 -1
  73. package/dist/node/internal/object-Vf10stKL.js +0 -1
@@ -1,11 +1,11 @@
1
1
  var ut = Object.defineProperty;
2
- var mt = (t, e, o) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
- var ce = (t, e, o) => (mt(t, typeof e != "symbol" ? e + "" : e, o), o);
4
- import { c as Et, i as ht, a as Ot, b as gt, s as St, d as bt, l as ft, e as _t, f as s, B as l, g as It, h as Tt } from "./object-wtPuW7QY.js";
2
+ var mt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var ce = (t, e, r) => (mt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import { c as Et, i as ht, a as Ot, b as gt, s as St, d as bt, l as ft, e as _t, f as s, B as l, g as It, h as Tt } from "./object-67d1240b.js";
5
5
  import "json-stringify-deterministic";
6
6
  import "immer";
7
7
  import "jszip";
8
- import { z as r } from "zod";
8
+ import { z as o } from "zod";
9
9
  const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
10
  __proto__: null
11
11
  }, Symbol.toStringTag, { value: "Module" })), de = {
@@ -569,110 +569,110 @@ const Rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
569
569
  }
570
570
  }
571
571
  ]
572
- }, ue = (t) => t != null, At = r.any().refine((t) => ue(t));
572
+ }, ue = (t) => t != null, At = o.any().refine((t) => ue(t));
573
573
  function _() {
574
- return r.object({
575
- __typename: r.literal("AddChangeLogItemInput").optional(),
576
- content: r.string(),
577
- id: r.string(),
578
- insertBefore: r.string().nullable()
574
+ return o.object({
575
+ __typename: o.literal("AddChangeLogItemInput").optional(),
576
+ content: o.string(),
577
+ id: o.string(),
578
+ insertBefore: o.string().nullable()
579
579
  });
580
580
  }
581
581
  function I() {
582
- return r.object({
583
- description: r.string().nullish(),
584
- id: r.string(),
585
- name: r.string()
582
+ return o.object({
583
+ description: o.string().nullish(),
584
+ id: o.string(),
585
+ name: o.string()
586
586
  });
587
587
  }
588
588
  function T() {
589
- return r.object({
590
- errorCode: r.string().nullish(),
591
- errorDescription: r.string().nullish(),
592
- errorName: r.string().nullish(),
593
- errorTemplate: r.string().nullish(),
594
- id: r.string(),
595
- operationId: r.string()
589
+ return o.object({
590
+ errorCode: o.string().nullish(),
591
+ errorDescription: o.string().nullish(),
592
+ errorName: o.string().nullish(),
593
+ errorTemplate: o.string().nullish(),
594
+ id: o.string(),
595
+ operationId: o.string()
596
596
  });
597
597
  }
598
598
  function R() {
599
- return r.object({
600
- example: r.string(),
601
- id: r.string(),
602
- operationId: r.string()
599
+ return o.object({
600
+ example: o.string(),
601
+ id: o.string(),
602
+ operationId: o.string()
603
603
  });
604
604
  }
605
605
  function A() {
606
- return r.object({
607
- description: r.string().nullish(),
608
- id: r.string(),
609
- moduleId: r.string(),
610
- name: r.string(),
611
- reducer: r.string().nullish(),
612
- schema: r.string().nullish(),
613
- template: r.string().nullish(),
606
+ return o.object({
607
+ description: o.string().nullish(),
608
+ id: o.string(),
609
+ moduleId: o.string(),
610
+ name: o.string(),
611
+ reducer: o.string().nullish(),
612
+ schema: o.string().nullish(),
613
+ template: o.string().nullish(),
614
614
  scope: b().nullish()
615
615
  });
616
616
  }
617
617
  function x() {
618
- return r.object({
619
- scope: r.string(),
620
- example: r.string(),
621
- id: r.string(),
622
- insertBefore: r.string().nullish()
618
+ return o.object({
619
+ scope: o.string(),
620
+ example: o.string(),
621
+ id: o.string(),
622
+ insertBefore: o.string().nullish()
623
623
  });
624
624
  }
625
625
  function me() {
626
- return r.object({
627
- __typename: r.literal("Author").optional(),
628
- name: r.string(),
629
- website: r.string().nullable()
626
+ return o.object({
627
+ __typename: o.literal("Author").optional(),
628
+ name: o.string(),
629
+ website: o.string().nullable()
630
630
  });
631
631
  }
632
632
  function D() {
633
- return r.object({
634
- __typename: r.literal("CodeExample").optional(),
635
- id: r.string(),
636
- value: r.string()
633
+ return o.object({
634
+ __typename: o.literal("CodeExample").optional(),
635
+ id: o.string(),
636
+ value: o.string()
637
637
  });
638
638
  }
639
639
  function M() {
640
- return r.object({
641
- __typename: r.literal("DeleteChangeLogItemInput").optional(),
642
- id: r.string()
640
+ return o.object({
641
+ __typename: o.literal("DeleteChangeLogItemInput").optional(),
642
+ id: o.string()
643
643
  });
644
644
  }
645
645
  function N() {
646
- return r.object({
647
- id: r.string()
646
+ return o.object({
647
+ id: o.string()
648
648
  });
649
649
  }
650
650
  function L() {
651
- return r.object({
652
- id: r.string()
651
+ return o.object({
652
+ id: o.string()
653
653
  });
654
654
  }
655
655
  function P() {
656
- return r.object({
657
- id: r.string()
656
+ return o.object({
657
+ id: o.string()
658
658
  });
659
659
  }
660
660
  function j() {
661
- return r.object({
662
- id: r.string()
661
+ return o.object({
662
+ id: o.string()
663
663
  });
664
664
  }
665
665
  function C() {
666
- return r.object({
667
- scope: r.string(),
668
- id: r.string()
666
+ return o.object({
667
+ scope: o.string(),
668
+ id: o.string()
669
669
  });
670
670
  }
671
671
  function b() {
672
- return r.literal("global").or(r.literal("local"));
672
+ return o.literal("global").or(o.literal("local"));
673
673
  }
674
674
  function xt() {
675
- return r.union([
675
+ return o.union([
676
676
  _(),
677
677
  I(),
678
678
  T(),
@@ -717,245 +717,245 @@ function xt() {
717
717
  ]);
718
718
  }
719
719
  function Dt() {
720
- return r.object({
721
- __typename: r.literal("DocumentModelState").optional(),
720
+ return o.object({
721
+ __typename: o.literal("DocumentModelState").optional(),
722
722
  author: me(),
723
- description: r.string(),
724
- extension: r.string(),
725
- id: r.string(),
726
- name: r.string(),
727
- specifications: r.array(Ee())
723
+ description: o.string(),
724
+ extension: o.string(),
725
+ id: o.string(),
726
+ name: o.string(),
727
+ specifications: o.array(Ee())
728
728
  });
729
729
  }
730
730
  function Ee() {
731
- return r.object({
732
- __typename: r.literal("DocumentSpecification").optional(),
733
- changeLog: r.array(r.string()),
734
- modules: r.array(he()),
731
+ return o.object({
732
+ __typename: o.literal("DocumentSpecification").optional(),
733
+ changeLog: o.array(o.string()),
734
+ modules: o.array(he()),
735
735
  state: be(),
736
- version: r.number()
736
+ version: o.number()
737
737
  });
738
738
  }
739
739
  function he() {
740
- return r.object({
741
- __typename: r.literal("Module").optional(),
742
- description: r.string().nullable(),
743
- id: r.string(),
744
- name: r.string(),
745
- operations: r.array(Oe())
740
+ return o.object({
741
+ __typename: o.literal("Module").optional(),
742
+ description: o.string().nullable(),
743
+ id: o.string(),
744
+ name: o.string(),
745
+ operations: o.array(Oe())
746
746
  });
747
747
  }
748
748
  function k() {
749
- return r.object({
750
- newModuleId: r.string(),
751
- operationId: r.string()
749
+ return o.object({
750
+ newModuleId: o.string(),
751
+ operationId: o.string()
752
752
  });
753
753
  }
754
754
  function Oe() {
755
- return r.object({
756
- __typename: r.literal("Operation").optional(),
757
- description: r.string().nullable(),
758
- errors: r.array(ge()),
759
- examples: r.array(D()),
760
- id: r.string(),
761
- name: r.string().nullable(),
762
- reducer: r.string().nullable(),
763
- schema: r.string().nullable(),
764
- template: r.string().nullable(),
755
+ return o.object({
756
+ __typename: o.literal("Operation").optional(),
757
+ description: o.string().nullable(),
758
+ errors: o.array(ge()),
759
+ examples: o.array(D()),
760
+ id: o.string(),
761
+ name: o.string().nullable(),
762
+ reducer: o.string().nullable(),
763
+ schema: o.string().nullable(),
764
+ template: o.string().nullable(),
765
765
  scope: b()
766
766
  });
767
767
  }
768
768
  function ge() {
769
- return r.object({
770
- __typename: r.literal("OperationError").optional(),
771
- code: r.string().nullable(),
772
- description: r.string().nullable(),
773
- id: r.string(),
774
- name: r.string().nullable(),
775
- template: r.string().nullable()
769
+ return o.object({
770
+ __typename: o.literal("OperationError").optional(),
771
+ code: o.string().nullable(),
772
+ description: o.string().nullable(),
773
+ id: o.string(),
774
+ name: o.string().nullable(),
775
+ template: o.string().nullable()
776
776
  });
777
777
  }
778
778
  function y() {
779
- return r.object({
780
- __typename: r.literal("ReorderChangeLogItemsInput").optional(),
781
- order: r.array(r.string())
779
+ return o.object({
780
+ __typename: o.literal("ReorderChangeLogItemsInput").optional(),
781
+ order: o.array(o.string())
782
782
  });
783
783
  }
784
784
  function w() {
785
- return r.object({
786
- moduleId: r.string(),
787
- order: r.array(r.string())
785
+ return o.object({
786
+ moduleId: o.string(),
787
+ order: o.array(o.string())
788
788
  });
789
789
  }
790
790
  function v() {
791
- return r.object({
792
- order: r.array(r.string())
791
+ return o.object({
792
+ order: o.array(o.string())
793
793
  });
794
794
  }
795
795
  function U() {
796
- return r.object({
797
- operationId: r.string(),
798
- order: r.array(r.string())
796
+ return o.object({
797
+ operationId: o.string(),
798
+ order: o.array(o.string())
799
799
  });
800
800
  }
801
801
  function V() {
802
- return r.object({
803
- operationId: r.string(),
804
- order: r.array(r.string())
802
+ return o.object({
803
+ operationId: o.string(),
804
+ order: o.array(o.string())
805
805
  });
806
806
  }
807
807
  function F() {
808
- return r.object({
809
- scope: r.string(),
810
- order: r.array(r.string())
808
+ return o.object({
809
+ scope: o.string(),
810
+ order: o.array(o.string())
811
811
  });
812
812
  }
813
813
  function H() {
814
- return r.object({
815
- authorName: r.string()
814
+ return o.object({
815
+ authorName: o.string()
816
816
  });
817
817
  }
818
818
  function X() {
819
- return r.object({
820
- authorWebsite: r.string()
819
+ return o.object({
820
+ authorWebsite: o.string()
821
821
  });
822
822
  }
823
823
  function G() {
824
- return r.object({
825
- scope: r.string(),
826
- initialValue: r.string()
824
+ return o.object({
825
+ scope: o.string(),
826
+ initialValue: o.string()
827
827
  });
828
828
  }
829
829
  function $() {
830
- return r.object({
831
- description: r.string()
830
+ return o.object({
831
+ description: o.string()
832
832
  });
833
833
  }
834
834
  function W() {
835
- return r.object({
836
- extension: r.string()
835
+ return o.object({
836
+ extension: o.string()
837
837
  });
838
838
  }
839
839
  function z() {
840
- return r.object({
841
- id: r.string()
840
+ return o.object({
841
+ id: o.string()
842
842
  });
843
843
  }
844
844
  function B() {
845
- return r.object({
846
- name: r.string()
845
+ return o.object({
846
+ name: o.string()
847
847
  });
848
848
  }
849
849
  function q() {
850
- return r.object({
851
- description: r.string().nullish(),
852
- id: r.string()
850
+ return o.object({
851
+ description: o.string().nullish(),
852
+ id: o.string()
853
853
  });
854
854
  }
855
855
  function J() {
856
- return r.object({
857
- id: r.string(),
858
- name: r.string().nullish()
856
+ return o.object({
857
+ id: o.string(),
858
+ name: o.string().nullish()
859
859
  });
860
860
  }
861
861
  function K() {
862
- return r.object({
863
- description: r.string().nullish(),
864
- id: r.string()
862
+ return o.object({
863
+ description: o.string().nullish(),
864
+ id: o.string()
865
865
  });
866
866
  }
867
867
  function Q() {
868
- return r.object({
869
- errorCode: r.string().nullish(),
870
- id: r.string()
868
+ return o.object({
869
+ errorCode: o.string().nullish(),
870
+ id: o.string()
871
871
  });
872
872
  }
873
873
  function Y() {
874
- return r.object({
875
- errorDescription: r.string().nullish(),
876
- id: r.string()
874
+ return o.object({
875
+ errorDescription: o.string().nullish(),
876
+ id: o.string()
877
877
  });
878
878
  }
879
879
  function Z() {
880
- return r.object({
881
- errorName: r.string().nullish(),
882
- id: r.string()
880
+ return o.object({
881
+ errorName: o.string().nullish(),
882
+ id: o.string()
883
883
  });
884
884
  }
885
885
  function ee() {
886
- return r.object({
887
- errorTemplate: r.string().nullish(),
888
- id: r.string()
886
+ return o.object({
887
+ errorTemplate: o.string().nullish(),
888
+ id: o.string()
889
889
  });
890
890
  }
891
891
  function te() {
892
- return r.object({
893
- id: r.string(),
894
- name: r.string().nullish()
892
+ return o.object({
893
+ id: o.string(),
894
+ name: o.string().nullish()
895
895
  });
896
896
  }
897
897
  function Se() {
898
- return r.object({
899
- id: r.string(),
898
+ return o.object({
899
+ id: o.string(),
900
900
  scope: b()
901
901
  });
902
902
  }
903
903
  function re() {
904
- return r.object({
905
- id: r.string(),
906
- reducer: r.string().nullish()
904
+ return o.object({
905
+ id: o.string(),
906
+ reducer: o.string().nullish()
907
907
  });
908
908
  }
909
909
  function oe() {
910
- return r.object({
911
- id: r.string(),
912
- schema: r.string().nullish()
910
+ return o.object({
911
+ id: o.string(),
912
+ schema: o.string().nullish()
913
913
  });
914
914
  }
915
915
  function ne() {
916
- return r.object({
917
- id: r.string(),
918
- template: r.string().nullish()
916
+ return o.object({
917
+ id: o.string(),
918
+ template: o.string().nullish()
919
919
  });
920
920
  }
921
921
  function ie() {
922
- return r.object({
923
- scope: r.string(),
924
- schema: r.string()
922
+ return o.object({
923
+ scope: o.string(),
924
+ schema: o.string()
925
925
  });
926
926
  }
927
927
  function f() {
928
- return r.object({
929
- __typename: r.literal("State").optional(),
930
- examples: r.array(D()),
931
- initialValue: r.string(),
932
- schema: r.string()
928
+ return o.object({
929
+ __typename: o.literal("State").optional(),
930
+ examples: o.array(D()),
931
+ initialValue: o.string(),
932
+ schema: o.string()
933
933
  });
934
934
  }
935
935
  function be() {
936
- return r.object({
936
+ return o.object({
937
937
  global: f(),
938
938
  local: f()
939
939
  });
940
940
  }
941
941
  function se() {
942
- return r.object({
943
- __typename: r.literal("UpdateChangeLogItemInput").optional(),
944
- id: r.string(),
945
- newContent: r.string()
942
+ return o.object({
943
+ __typename: o.literal("UpdateChangeLogItemInput").optional(),
944
+ id: o.string(),
945
+ newContent: o.string()
946
946
  });
947
947
  }
948
948
  function ae() {
949
- return r.object({
950
- example: r.string(),
951
- id: r.string()
949
+ return o.object({
950
+ example: o.string(),
951
+ id: o.string()
952
952
  });
953
953
  }
954
954
  function pe() {
955
- return r.object({
956
- scope: r.string(),
957
- id: r.string(),
958
- newExample: r.string()
955
+ return o.object({
956
+ scope: o.string(),
957
+ id: o.string(),
958
+ newExample: o.string()
959
959
  });
960
960
  }
961
961
  const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1052,7 +1052,7 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1052
1052
  }
1053
1053
  }, Nt = (t) => {
1054
1054
  const e = {};
1055
- return t.forEach((o, n) => e[o] = n), (o, n) => (e[n.id] || 999999) - (e[o.id] || 999999);
1055
+ return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1056
1056
  }, h = {
1057
1057
  addModuleOperation(t, e) {
1058
1058
  t.specifications[t.specifications.length - 1].modules.push({
@@ -1063,18 +1063,18 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1063
1063
  });
1064
1064
  },
1065
1065
  setModuleNameOperation(t, e) {
1066
- const o = t.specifications[t.specifications.length - 1];
1067
- for (let n = 0; n < o.modules.length; n++)
1068
- o.modules[n].id === e.input.id && (o.modules[n].name = e.input.name || "");
1066
+ const r = t.specifications[t.specifications.length - 1];
1067
+ for (let n = 0; n < r.modules.length; n++)
1068
+ r.modules[n].id === e.input.id && (r.modules[n].name = e.input.name || "");
1069
1069
  },
1070
1070
  setModuleDescriptionOperation(t, e) {
1071
- const o = t.specifications[t.specifications.length - 1];
1072
- for (let n = 0; n < o.modules.length; n++)
1073
- o.modules[n].id === e.input.id && (o.modules[n].description = e.input.description || "");
1071
+ const r = t.specifications[t.specifications.length - 1];
1072
+ for (let n = 0; n < r.modules.length; n++)
1073
+ r.modules[n].id === e.input.id && (r.modules[n].description = e.input.description || "");
1074
1074
  },
1075
1075
  deleteModuleOperation(t, e) {
1076
- const o = t.specifications[t.specifications.length - 1];
1077
- o.modules = o.modules.filter(
1076
+ const r = t.specifications[t.specifications.length - 1];
1077
+ r.modules = r.modules.filter(
1078
1078
  (n) => n.id != e.input.id
1079
1079
  );
1080
1080
  },
@@ -1083,13 +1083,13 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1083
1083
  }
1084
1084
  }, Lt = (t) => {
1085
1085
  const e = {};
1086
- return t.forEach((o, n) => e[o] = n), (o, n) => (e[n.id] || 999999) - (e[o.id] || 999999);
1086
+ return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1087
1087
  }, c = {
1088
1088
  addOperationErrorOperation(t, e) {
1089
- const o = t.specifications[t.specifications.length - 1];
1090
- for (let n = 0; n < o.modules.length; n++)
1091
- for (let i = 0; i < o.modules[n].operations.length; i++)
1092
- o.modules[n].operations[i].id == e.input.operationId && o.modules[n].operations[i].errors.push({
1089
+ const r = t.specifications[t.specifications.length - 1];
1090
+ for (let n = 0; n < r.modules.length; n++)
1091
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1092
+ r.modules[n].operations[i].id == e.input.operationId && r.modules[n].operations[i].errors.push({
1093
1093
  id: e.input.id,
1094
1094
  name: e.input.errorName || "",
1095
1095
  code: e.input.errorCode || "",
@@ -1098,91 +1098,91 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1098
1098
  });
1099
1099
  },
1100
1100
  setOperationErrorCodeOperation(t, e) {
1101
- const o = t.specifications[t.specifications.length - 1];
1102
- for (let n = 0; n < o.modules.length; n++)
1103
- for (let i = 0; i < o.modules[n].operations.length; i++)
1104
- for (let a = 0; a < o.modules[n].operations[i].errors.length; a++)
1105
- o.modules[n].operations[i].errors[a].id == e.input.id && (o.modules[n].operations[i].errors[a].code = e.input.errorCode || "");
1101
+ const r = t.specifications[t.specifications.length - 1];
1102
+ for (let n = 0; n < r.modules.length; n++)
1103
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1104
+ for (let a = 0; a < r.modules[n].operations[i].errors.length; a++)
1105
+ r.modules[n].operations[i].errors[a].id == e.input.id && (r.modules[n].operations[i].errors[a].code = e.input.errorCode || "");
1106
1106
  },
1107
1107
  setOperationErrorNameOperation(t, e) {
1108
- const o = t.specifications[t.specifications.length - 1];
1109
- for (let n = 0; n < o.modules.length; n++)
1110
- for (let i = 0; i < o.modules[n].operations.length; i++)
1111
- for (let a = 0; a < o.modules[n].operations[i].errors.length; a++)
1112
- o.modules[n].operations[i].errors[a].id == e.input.id && (o.modules[n].operations[i].errors[a].name = e.input.errorName || "");
1108
+ const r = t.specifications[t.specifications.length - 1];
1109
+ for (let n = 0; n < r.modules.length; n++)
1110
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1111
+ for (let a = 0; a < r.modules[n].operations[i].errors.length; a++)
1112
+ r.modules[n].operations[i].errors[a].id == e.input.id && (r.modules[n].operations[i].errors[a].name = e.input.errorName || "");
1113
1113
  },
1114
1114
  setOperationErrorDescriptionOperation(t, e) {
1115
- const o = t.specifications[t.specifications.length - 1];
1116
- for (let n = 0; n < o.modules.length; n++)
1117
- for (let i = 0; i < o.modules[n].operations.length; i++)
1118
- for (let a = 0; a < o.modules[n].operations[i].errors.length; a++)
1119
- o.modules[n].operations[i].errors[a].id == e.input.id && (o.modules[n].operations[i].errors[a].description = e.input.errorDescription || "");
1115
+ const r = t.specifications[t.specifications.length - 1];
1116
+ for (let n = 0; n < r.modules.length; n++)
1117
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1118
+ for (let a = 0; a < r.modules[n].operations[i].errors.length; a++)
1119
+ r.modules[n].operations[i].errors[a].id == e.input.id && (r.modules[n].operations[i].errors[a].description = e.input.errorDescription || "");
1120
1120
  },
1121
1121
  setOperationErrorTemplateOperation(t, e) {
1122
- const o = t.specifications[t.specifications.length - 1];
1123
- for (let n = 0; n < o.modules.length; n++)
1124
- for (let i = 0; i < o.modules[n].operations.length; i++)
1125
- for (let a = 0; a < o.modules[n].operations[i].errors.length; a++)
1126
- o.modules[n].operations[i].errors[a].id == e.input.id && (o.modules[n].operations[i].errors[a].template = e.input.errorTemplate || "");
1122
+ const r = t.specifications[t.specifications.length - 1];
1123
+ for (let n = 0; n < r.modules.length; n++)
1124
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1125
+ for (let a = 0; a < r.modules[n].operations[i].errors.length; a++)
1126
+ r.modules[n].operations[i].errors[a].id == e.input.id && (r.modules[n].operations[i].errors[a].template = e.input.errorTemplate || "");
1127
1127
  },
1128
1128
  deleteOperationErrorOperation(t, e) {
1129
- const o = t.specifications[t.specifications.length - 1];
1130
- for (let n = 0; n < o.modules.length; n++)
1131
- for (let i = 0; i < o.modules[n].operations.length; i++)
1132
- o.modules[n].operations[i].errors = o.modules[n].operations[i].errors.filter((a) => a.id != e.input.id);
1129
+ const r = t.specifications[t.specifications.length - 1];
1130
+ for (let n = 0; n < r.modules.length; n++)
1131
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1132
+ r.modules[n].operations[i].errors = r.modules[n].operations[i].errors.filter((a) => a.id != e.input.id);
1133
1133
  },
1134
1134
  reorderOperationErrorsOperation(t, e) {
1135
- const o = t.specifications[t.specifications.length - 1];
1136
- for (let n = 0; n < o.modules.length; n++)
1137
- for (let i = 0; i < o.modules[n].operations.length; i++)
1138
- o.modules[n].operations[i].id == e.input.operationId && o.modules[n].operations[i].errors.sort(
1135
+ const r = t.specifications[t.specifications.length - 1];
1136
+ for (let n = 0; n < r.modules.length; n++)
1137
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1138
+ r.modules[n].operations[i].id == e.input.operationId && r.modules[n].operations[i].errors.sort(
1139
1139
  Lt(e.input.order)
1140
1140
  );
1141
1141
  }
1142
1142
  }, Pt = (t) => {
1143
1143
  const e = {};
1144
- return t.forEach((o, n) => e[o] = n), (o, n) => (e[n.id] || 999999) - (e[o.id] || 999999);
1144
+ return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1145
1145
  }, S = {
1146
1146
  addOperationExampleOperation(t, e) {
1147
- const o = t.specifications[t.specifications.length - 1];
1148
- for (let n = 0; n < o.modules.length; n++)
1149
- for (let i = 0; i < o.modules[n].operations.length; i++)
1150
- o.modules[n].operations[i].id == e.input.operationId && o.modules[n].operations[i].examples.push({
1147
+ const r = t.specifications[t.specifications.length - 1];
1148
+ for (let n = 0; n < r.modules.length; n++)
1149
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1150
+ r.modules[n].operations[i].id == e.input.operationId && r.modules[n].operations[i].examples.push({
1151
1151
  id: e.input.id,
1152
1152
  value: e.input.example
1153
1153
  });
1154
1154
  },
1155
1155
  updateOperationExampleOperation(t, e) {
1156
- const o = t.specifications[t.specifications.length - 1];
1157
- for (let n = 0; n < o.modules.length; n++)
1158
- for (let i = 0; i < o.modules[n].operations.length; i++)
1159
- for (let a = 0; a < o.modules[n].operations[i].examples.length; a++)
1160
- o.modules[n].operations[i].examples[a].id == e.input.id && (o.modules[n].operations[i].examples[a].value = e.input.example);
1156
+ const r = t.specifications[t.specifications.length - 1];
1157
+ for (let n = 0; n < r.modules.length; n++)
1158
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1159
+ for (let a = 0; a < r.modules[n].operations[i].examples.length; a++)
1160
+ r.modules[n].operations[i].examples[a].id == e.input.id && (r.modules[n].operations[i].examples[a].value = e.input.example);
1161
1161
  },
1162
1162
  deleteOperationExampleOperation(t, e) {
1163
- const o = t.specifications[t.specifications.length - 1];
1164
- for (let n = 0; n < o.modules.length; n++)
1165
- for (let i = 0; i < o.modules[n].operations.length; i++)
1166
- o.modules[n].operations[i].examples = o.modules[n].operations[i].examples.filter(
1163
+ const r = t.specifications[t.specifications.length - 1];
1164
+ for (let n = 0; n < r.modules.length; n++)
1165
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1166
+ r.modules[n].operations[i].examples = r.modules[n].operations[i].examples.filter(
1167
1167
  (a) => a.id != e.input.id
1168
1168
  );
1169
1169
  },
1170
1170
  reorderOperationExamplesOperation(t, e) {
1171
- const o = t.specifications[t.specifications.length - 1];
1172
- for (let n = 0; n < o.modules.length; n++)
1173
- for (let i = 0; i < o.modules[n].operations.length; i++)
1174
- o.modules[n].operations[i].id == e.input.operationId && o.modules[n].operations[i].examples.sort(
1171
+ const r = t.specifications[t.specifications.length - 1];
1172
+ for (let n = 0; n < r.modules.length; n++)
1173
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1174
+ r.modules[n].operations[i].id == e.input.operationId && r.modules[n].operations[i].examples.sort(
1175
1175
  Pt(e.input.order)
1176
1176
  );
1177
1177
  }
1178
1178
  }, jt = (t) => {
1179
1179
  const e = {};
1180
- return t.forEach((o, n) => e[o] = n), (o, n) => (e[n.id] || 999999) - (e[o.id] || 999999);
1180
+ return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1181
1181
  }, p = {
1182
1182
  addOperationOperation(t, e) {
1183
- const o = t.specifications[t.specifications.length - 1];
1184
- for (let n = 0; n < o.modules.length; n++)
1185
- o.modules[n].id == e.input.moduleId && o.modules[n].operations.push({
1183
+ const r = t.specifications[t.specifications.length - 1];
1184
+ for (let n = 0; n < r.modules.length; n++)
1185
+ r.modules[n].id == e.input.moduleId && r.modules[n].operations.push({
1186
1186
  id: e.input.id,
1187
1187
  name: e.input.name,
1188
1188
  description: e.input.description || "",
@@ -1195,82 +1195,82 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1195
1195
  });
1196
1196
  },
1197
1197
  setOperationNameOperation(t, e) {
1198
- const o = t.specifications[t.specifications.length - 1];
1199
- for (let n = 0; n < o.modules.length; n++)
1200
- for (let i = 0; i < o.modules[n].operations.length; i++)
1201
- o.modules[n].operations[i].id == e.input.id && (o.modules[n].operations[i].name = e.input.name || "");
1198
+ const r = t.specifications[t.specifications.length - 1];
1199
+ for (let n = 0; n < r.modules.length; n++)
1200
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1201
+ r.modules[n].operations[i].id == e.input.id && (r.modules[n].operations[i].name = e.input.name || "");
1202
1202
  },
1203
1203
  setOperationScopeOperation(t, e) {
1204
- const o = t.specifications[t.specifications.length - 1];
1205
- for (let n = 0; n < o.modules.length; n++)
1206
- for (let i = 0; i < o.modules[n].operations.length; i++)
1207
- o.modules[n].operations[i].id == e.input.id && (o.modules[n].operations[i].scope = e.input.scope || "global");
1204
+ const r = t.specifications[t.specifications.length - 1];
1205
+ for (let n = 0; n < r.modules.length; n++)
1206
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1207
+ r.modules[n].operations[i].id == e.input.id && (r.modules[n].operations[i].scope = e.input.scope || "global");
1208
1208
  },
1209
1209
  setOperationSchemaOperation(t, e) {
1210
- const o = t.specifications[t.specifications.length - 1];
1211
- for (let n = 0; n < o.modules.length; n++)
1212
- for (let i = 0; i < o.modules[n].operations.length; i++)
1213
- o.modules[n].operations[i].id == e.input.id && (o.modules[n].operations[i].schema = e.input.schema || "");
1210
+ const r = t.specifications[t.specifications.length - 1];
1211
+ for (let n = 0; n < r.modules.length; n++)
1212
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1213
+ r.modules[n].operations[i].id == e.input.id && (r.modules[n].operations[i].schema = e.input.schema || "");
1214
1214
  },
1215
1215
  setOperationDescriptionOperation(t, e) {
1216
- const o = t.specifications[t.specifications.length - 1];
1217
- for (let n = 0; n < o.modules.length; n++)
1218
- for (let i = 0; i < o.modules[n].operations.length; i++)
1219
- o.modules[n].operations[i].id == e.input.id && (o.modules[n].operations[i].description = e.input.description || "");
1216
+ const r = t.specifications[t.specifications.length - 1];
1217
+ for (let n = 0; n < r.modules.length; n++)
1218
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1219
+ r.modules[n].operations[i].id == e.input.id && (r.modules[n].operations[i].description = e.input.description || "");
1220
1220
  },
1221
1221
  setOperationTemplateOperation(t, e) {
1222
- const o = t.specifications[t.specifications.length - 1];
1223
- for (let n = 0; n < o.modules.length; n++)
1224
- for (let i = 0; i < o.modules[n].operations.length; i++)
1225
- o.modules[n].operations[i].id == e.input.id && (o.modules[n].operations[i].template = e.input.template || "");
1222
+ const r = t.specifications[t.specifications.length - 1];
1223
+ for (let n = 0; n < r.modules.length; n++)
1224
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1225
+ r.modules[n].operations[i].id == e.input.id && (r.modules[n].operations[i].template = e.input.template || "");
1226
1226
  },
1227
1227
  setOperationReducerOperation(t, e) {
1228
- const o = t.specifications[t.specifications.length - 1];
1229
- for (let n = 0; n < o.modules.length; n++)
1230
- for (let i = 0; i < o.modules[n].operations.length; i++)
1231
- o.modules[n].operations[i].id == e.input.id && (o.modules[n].operations[i].reducer = e.input.reducer || "");
1228
+ const r = t.specifications[t.specifications.length - 1];
1229
+ for (let n = 0; n < r.modules.length; n++)
1230
+ for (let i = 0; i < r.modules[n].operations.length; i++)
1231
+ r.modules[n].operations[i].id == e.input.id && (r.modules[n].operations[i].reducer = e.input.reducer || "");
1232
1232
  },
1233
1233
  moveOperationOperation(t, e) {
1234
- const o = [], n = t.specifications[t.specifications.length - 1];
1234
+ const r = [], n = t.specifications[t.specifications.length - 1];
1235
1235
  for (let i = 0; i < n.modules.length; i++)
1236
- n.modules[i].operations = n.modules[i].operations.filter((a) => a.id == e.input.operationId ? (o.push(a), !1) : !0);
1236
+ n.modules[i].operations = n.modules[i].operations.filter((a) => a.id == e.input.operationId ? (r.push(a), !1) : !0);
1237
1237
  for (let i = 0; i < n.modules.length; i++)
1238
- n.modules[i].id == e.input.newModuleId && n.modules[i].operations.push(...o);
1238
+ n.modules[i].id == e.input.newModuleId && n.modules[i].operations.push(...r);
1239
1239
  },
1240
1240
  deleteOperationOperation(t, e) {
1241
- const o = t.specifications[t.specifications.length - 1];
1242
- for (let n = 0; n < o.modules.length; n++)
1243
- o.modules[n].operations = o.modules[n].operations.filter((i) => i.id != e.input.id);
1241
+ const r = t.specifications[t.specifications.length - 1];
1242
+ for (let n = 0; n < r.modules.length; n++)
1243
+ r.modules[n].operations = r.modules[n].operations.filter((i) => i.id != e.input.id);
1244
1244
  },
1245
1245
  reorderModuleOperationsOperation(t, e) {
1246
- const o = t.specifications[t.specifications.length - 1];
1247
- for (let n = 0; n < o.modules.length; n++)
1248
- o.modules[n].id == e.input.moduleId && o.modules[n].operations.sort(
1246
+ const r = t.specifications[t.specifications.length - 1];
1247
+ for (let n = 0; n < r.modules.length; n++)
1248
+ r.modules[n].id == e.input.moduleId && r.modules[n].operations.sort(
1249
1249
  jt(e.input.order)
1250
1250
  );
1251
1251
  }
1252
1252
  }, Ct = (t) => {
1253
1253
  const e = {};
1254
- return t.forEach((o, n) => e[o] = n), (o, n) => (e[n.id] || 999999) - (e[o.id] || 999999);
1254
+ return t.forEach((r, n) => e[r] = n), (r, n) => (e[n.id] || 999999) - (e[r.id] || 999999);
1255
1255
  }, u = {
1256
1256
  setStateSchemaOperation(t, e) {
1257
- const o = t.specifications[t.specifications.length - 1];
1258
- if (Object.keys(o.state).includes(e.input.scope))
1259
- o.state[e.input.scope].schema = e.input.schema;
1257
+ const r = t.specifications[t.specifications.length - 1];
1258
+ if (Object.keys(r.state).includes(e.input.scope))
1259
+ r.state[e.input.scope].schema = e.input.schema;
1260
1260
  else
1261
1261
  throw new Error(`Invalid scope: ${e.input.scope}`);
1262
1262
  },
1263
1263
  setInitialStateOperation(t, e) {
1264
- const o = t.specifications[t.specifications.length - 1];
1265
- if (Object.keys(o.state).includes(e.input.scope))
1266
- o.state[e.input.scope].initialValue = e.input.initialValue;
1264
+ const r = t.specifications[t.specifications.length - 1];
1265
+ if (Object.keys(r.state).includes(e.input.scope))
1266
+ r.state[e.input.scope].initialValue = e.input.initialValue;
1267
1267
  else
1268
1268
  throw new Error(`Invalid scope: ${e.input.scope}`);
1269
1269
  },
1270
1270
  addStateExampleOperation(t, e) {
1271
- const o = t.specifications[t.specifications.length - 1];
1272
- if (Object.keys(o.state).includes(e.input.scope))
1273
- o.state[e.input.scope].examples.push({
1271
+ const r = t.specifications[t.specifications.length - 1];
1272
+ if (Object.keys(r.state).includes(e.input.scope))
1273
+ r.state[e.input.scope].examples.push({
1274
1274
  id: e.input.id,
1275
1275
  value: e.input.example
1276
1276
  });
@@ -1278,24 +1278,24 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1278
1278
  throw new Error(`Invalid scope: ${e.input.scope}`);
1279
1279
  },
1280
1280
  updateStateExampleOperation(t, e) {
1281
- const o = t.specifications[t.specifications.length - 1];
1282
- if (!Object.keys(o.state).includes(e.input.scope))
1281
+ const r = t.specifications[t.specifications.length - 1];
1282
+ if (!Object.keys(r.state).includes(e.input.scope))
1283
1283
  throw new Error(`Invalid scope: ${e.input.scope}`);
1284
- const n = o.state[e.input.scope].examples;
1284
+ const n = r.state[e.input.scope].examples;
1285
1285
  for (let i = 0; i < n.length; i++)
1286
1286
  n[i].id == e.input.id && (n[i].value = e.input.newExample);
1287
1287
  },
1288
1288
  deleteStateExampleOperation(t, e) {
1289
- const o = t.specifications[t.specifications.length - 1];
1290
- if (Object.keys(o.state).includes(e.input.scope))
1291
- o.state[e.input.scope].examples = o.state[e.input.scope].examples.filter((n) => n.id != e.input.id);
1289
+ const r = t.specifications[t.specifications.length - 1];
1290
+ if (Object.keys(r.state).includes(e.input.scope))
1291
+ r.state[e.input.scope].examples = r.state[e.input.scope].examples.filter((n) => n.id != e.input.id);
1292
1292
  else
1293
1293
  throw new Error(`Invalid scope: ${e.input.scope}`);
1294
1294
  },
1295
1295
  reorderStateExamplesOperation(t, e) {
1296
- const o = t.specifications[t.specifications.length - 1];
1297
- if (Object.keys(o.state).includes(e.input.scope))
1298
- o.state[e.input.scope].examples.sort(Ct(e.input.order));
1296
+ const r = t.specifications[t.specifications.length - 1];
1297
+ if (Object.keys(r.state).includes(e.input.scope))
1298
+ r.state[e.input.scope].examples.sort(Ct(e.input.order));
1299
1299
  else
1300
1300
  throw new Error(`Invalid scope: ${e.input.scope}`);
1301
1301
  }
@@ -1538,8 +1538,8 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1538
1538
  O.createState
1539
1539
  );
1540
1540
  },
1541
- saveToFile(t, e, o) {
1542
- return St(t, e, "phdm", o);
1541
+ saveToFile(t, e, r) {
1542
+ return St(t, e, "phdm", r);
1543
1543
  },
1544
1544
  saveToFileHandle(t, e) {
1545
1545
  return bt(t, e);
@@ -1570,23 +1570,23 @@ const Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1570
1570
  { ...t }
1571
1571
  );
1572
1572
  class vt extends l {
1573
- setModelName(e) {
1574
- return this.dispatch(fe(e));
1573
+ setModelName(e, r) {
1574
+ return this.dispatch(fe(e), r);
1575
1575
  }
1576
- setModelId(e) {
1577
- return this.dispatch(_e(e));
1576
+ setModelId(e, r) {
1577
+ return this.dispatch(_e(e), r);
1578
1578
  }
1579
- setModelExtension(e) {
1580
- return this.dispatch(Ie(e));
1579
+ setModelExtension(e, r) {
1580
+ return this.dispatch(Ie(e), r);
1581
1581
  }
1582
- setModelDescription(e) {
1583
- return this.dispatch(Te(e));
1582
+ setModelDescription(e, r) {
1583
+ return this.dispatch(Te(e), r);
1584
1584
  }
1585
- setAuthorName(e) {
1586
- return this.dispatch(Re(e));
1585
+ setAuthorName(e, r) {
1586
+ return this.dispatch(Re(e), r);
1587
1587
  }
1588
- setAuthorWebsite(e) {
1589
- return this.dispatch(Ae(e));
1588
+ setAuthorWebsite(e, r) {
1589
+ return this.dispatch(Ae(e), r);
1590
1590
  }
1591
1591
  }
1592
1592
  const xe = (t) => s(
@@ -1601,22 +1601,24 @@ const xe = (t) => s(
1601
1601
  ), Ne = (t) => s(
1602
1602
  "REORDER_CHANGE_LOG_ITEMS",
1603
1603
  { ...t }
1604
- ), Le = () => s("RELEASE_NEW_VERSION");
1604
+ ), Le = () => s(
1605
+ "RELEASE_NEW_VERSION"
1606
+ );
1605
1607
  class Ut extends l {
1606
- addChangeLogItem(e) {
1607
- return this.dispatch(xe(e));
1608
+ addChangeLogItem(e, r) {
1609
+ return this.dispatch(xe(e), r);
1608
1610
  }
1609
- updateChangeLogItem(e) {
1610
- return this.dispatch(De(e));
1611
+ updateChangeLogItem(e, r) {
1612
+ return this.dispatch(De(e), r);
1611
1613
  }
1612
- deleteChangeLogItem(e) {
1613
- return this.dispatch(Me(e));
1614
+ deleteChangeLogItem(e, r) {
1615
+ return this.dispatch(Me(e), r);
1614
1616
  }
1615
- reorderChangeLogItems(e) {
1616
- return this.dispatch(Ne(e));
1617
+ reorderChangeLogItems(e, r) {
1618
+ return this.dispatch(Ne(e), r);
1617
1619
  }
1618
- releaseNewVersion() {
1619
- return this.dispatch(Le());
1620
+ releaseNewVersion(e) {
1621
+ return this.dispatch(Le(), e);
1620
1622
  }
1621
1623
  }
1622
1624
  const Pe = (t) => s(
@@ -1636,20 +1638,20 @@ const Pe = (t) => s(
1636
1638
  { ...t }
1637
1639
  );
1638
1640
  class Vt extends l {
1639
- addModule(e) {
1640
- return this.dispatch(Pe(e));
1641
+ addModule(e, r) {
1642
+ return this.dispatch(Pe(e), r);
1641
1643
  }
1642
- setModuleName(e) {
1643
- return this.dispatch(je(e));
1644
+ setModuleName(e, r) {
1645
+ return this.dispatch(je(e), r);
1644
1646
  }
1645
- setModuleDescription(e) {
1646
- return this.dispatch(Ce(e));
1647
+ setModuleDescription(e, r) {
1648
+ return this.dispatch(Ce(e), r);
1647
1649
  }
1648
- deleteModule(e) {
1649
- return this.dispatch(ke(e));
1650
+ deleteModule(e, r) {
1651
+ return this.dispatch(ke(e), r);
1650
1652
  }
1651
- reorderModules(e) {
1652
- return this.dispatch(ye(e));
1653
+ reorderModules(e, r) {
1654
+ return this.dispatch(ye(e), r);
1653
1655
  }
1654
1656
  }
1655
1657
  const we = (t) => s(
@@ -1675,26 +1677,26 @@ const we = (t) => s(
1675
1677
  { ...t }
1676
1678
  );
1677
1679
  class Ft extends l {
1678
- addOperationError(e) {
1679
- return this.dispatch(we(e));
1680
+ addOperationError(e, r) {
1681
+ return this.dispatch(we(e), r);
1680
1682
  }
1681
- setOperationErrorCode(e) {
1682
- return this.dispatch(ve(e));
1683
+ setOperationErrorCode(e, r) {
1684
+ return this.dispatch(ve(e), r);
1683
1685
  }
1684
- setOperationErrorName(e) {
1685
- return this.dispatch(Ue(e));
1686
+ setOperationErrorName(e, r) {
1687
+ return this.dispatch(Ue(e), r);
1686
1688
  }
1687
- setOperationErrorDescription(e) {
1688
- return this.dispatch(Ve(e));
1689
+ setOperationErrorDescription(e, r) {
1690
+ return this.dispatch(Ve(e), r);
1689
1691
  }
1690
- setOperationErrorTemplate(e) {
1691
- return this.dispatch(Fe(e));
1692
+ setOperationErrorTemplate(e, r) {
1693
+ return this.dispatch(Fe(e), r);
1692
1694
  }
1693
- deleteOperationError(e) {
1694
- return this.dispatch(He(e));
1695
+ deleteOperationError(e, r) {
1696
+ return this.dispatch(He(e), r);
1695
1697
  }
1696
- reorderOperationErrors(e) {
1697
- return this.dispatch(Xe(e));
1698
+ reorderOperationErrors(e, r) {
1699
+ return this.dispatch(Xe(e), r);
1698
1700
  }
1699
1701
  }
1700
1702
  const Ge = (t) => s(
@@ -1711,17 +1713,17 @@ const Ge = (t) => s(
1711
1713
  { ...t }
1712
1714
  );
1713
1715
  class Ht extends l {
1714
- addOperationExample(e) {
1715
- return this.dispatch(Ge(e));
1716
+ addOperationExample(e, r) {
1717
+ return this.dispatch(Ge(e), r);
1716
1718
  }
1717
- updateOperationExample(e) {
1718
- return this.dispatch($e(e));
1719
+ updateOperationExample(e, r) {
1720
+ return this.dispatch($e(e), r);
1719
1721
  }
1720
- deleteOperationExample(e) {
1721
- return this.dispatch(We(e));
1722
+ deleteOperationExample(e, r) {
1723
+ return this.dispatch(We(e), r);
1722
1724
  }
1723
- reorderOperationExamples(e) {
1724
- return this.dispatch(ze(e));
1725
+ reorderOperationExamples(e, r) {
1726
+ return this.dispatch(ze(e), r);
1725
1727
  }
1726
1728
  }
1727
1729
  const Be = (t) => s(
@@ -1756,35 +1758,35 @@ const Be = (t) => s(
1756
1758
  { ...t }
1757
1759
  );
1758
1760
  class Xt extends l {
1759
- addOperation(e) {
1760
- return this.dispatch(Be(e));
1761
+ addOperation(e, r) {
1762
+ return this.dispatch(Be(e), r);
1761
1763
  }
1762
- setOperationName(e) {
1763
- return this.dispatch(qe(e));
1764
+ setOperationName(e, r) {
1765
+ return this.dispatch(qe(e), r);
1764
1766
  }
1765
- setOperationScope(e) {
1766
- return this.dispatch(Je(e));
1767
+ setOperationScope(e, r) {
1768
+ return this.dispatch(Je(e), r);
1767
1769
  }
1768
- setOperationSchema(e) {
1769
- return this.dispatch(Ke(e));
1770
+ setOperationSchema(e, r) {
1771
+ return this.dispatch(Ke(e), r);
1770
1772
  }
1771
- setOperationDescription(e) {
1772
- return this.dispatch(Qe(e));
1773
+ setOperationDescription(e, r) {
1774
+ return this.dispatch(Qe(e), r);
1773
1775
  }
1774
- setOperationTemplate(e) {
1775
- return this.dispatch(Ye(e));
1776
+ setOperationTemplate(e, r) {
1777
+ return this.dispatch(Ye(e), r);
1776
1778
  }
1777
- setOperationReducer(e) {
1778
- return this.dispatch(Ze(e));
1779
+ setOperationReducer(e, r) {
1780
+ return this.dispatch(Ze(e), r);
1779
1781
  }
1780
- moveOperation(e) {
1781
- return this.dispatch(et(e));
1782
+ moveOperation(e, r) {
1783
+ return this.dispatch(et(e), r);
1782
1784
  }
1783
- deleteOperation(e) {
1784
- return this.dispatch(tt(e));
1785
+ deleteOperation(e, r) {
1786
+ return this.dispatch(tt(e), r);
1785
1787
  }
1786
- reorderModuleOperations(e) {
1787
- return this.dispatch(rt(e));
1788
+ reorderModuleOperations(e, r) {
1789
+ return this.dispatch(rt(e), r);
1788
1790
  }
1789
1791
  }
1790
1792
  const ot = (t) => s(
@@ -1807,39 +1809,39 @@ const ot = (t) => s(
1807
1809
  { ...t }
1808
1810
  );
1809
1811
  class Gt extends l {
1810
- setStateSchema(e) {
1811
- return this.dispatch(ot(e));
1812
+ setStateSchema(e, r) {
1813
+ return this.dispatch(ot(e), r);
1812
1814
  }
1813
- setInitialState(e) {
1814
- return this.dispatch(nt(e));
1815
+ setInitialState(e, r) {
1816
+ return this.dispatch(nt(e), r);
1815
1817
  }
1816
- addStateExample(e) {
1817
- return this.dispatch(it(e));
1818
+ addStateExample(e, r) {
1819
+ return this.dispatch(it(e), r);
1818
1820
  }
1819
- updateStateExample(e) {
1820
- return this.dispatch(st(e));
1821
+ updateStateExample(e, r) {
1822
+ return this.dispatch(st(e), r);
1821
1823
  }
1822
- deleteStateExample(e) {
1823
- return this.dispatch(at(e));
1824
+ deleteStateExample(e, r) {
1825
+ return this.dispatch(at(e), r);
1824
1826
  }
1825
- reorderStateExamples(e) {
1826
- return this.dispatch(pt(e));
1827
+ reorderStateExamples(e, r) {
1828
+ return this.dispatch(pt(e), r);
1827
1829
  }
1828
1830
  }
1829
1831
  var m;
1830
1832
  let le = (m = class extends l {
1831
- constructor(e, o) {
1832
- super(g, O.createDocument(e), o);
1833
+ constructor(e, r) {
1834
+ super(g, O.createDocument(e), r);
1833
1835
  }
1834
- saveToFile(e, o) {
1835
- return super.saveToFile(e, m.fileExtension, o);
1836
+ saveToFile(e, r) {
1837
+ return super.saveToFile(e, m.fileExtension, r);
1836
1838
  }
1837
1839
  loadFromFile(e) {
1838
1840
  return super.loadFromFile(e);
1839
1841
  }
1840
1842
  static async fromFile(e) {
1841
- const o = new this();
1842
- return await o.loadFromFile(e), o;
1843
+ const r = new this();
1844
+ return await r.loadFromFile(e), r;
1843
1845
  }
1844
1846
  }, ce(m, "fileExtension", "phdm"), m);
1845
1847
  It(le, [