diff --git a/ci/build_and_pub_local.sh b/ci/build_and_pub_local.sh
new file mode 100755
index 0000000..e9c9965
--- /dev/null
+++ b/ci/build_and_pub_local.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+npm run build
+./ci/postbuild.sh
diff --git a/coverage/clover.xml b/coverage/clover.xml
new file mode 100644
index 0000000..f9c9182
--- /dev/null
+++ b/coverage/clover.xml
@@ -0,0 +1,373 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json
new file mode 100644
index 0000000..f9879fe
--- /dev/null
+++ b/coverage/coverage-final.json
@@ -0,0 +1,8 @@
+{"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/BaseDatabaseObject.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/BaseDatabaseObject.ts","statementMap":{"0":{"start":{"line":4,"column":8},"end":{"line":4,"column":29}},"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":4},"end":{"line":3,"column":null}},"loc":{"start":{"line":3,"column":4},"end":{"line":5,"column":5}}}},"branchMap":{},"s":{"0":0,"1":2},"f":{"0":0},"b":{}}
+,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmProject.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmProject.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":41}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":70}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":56}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":29}},"4":{"start":{"line":8,"column":34},"end":{"line":8,"column":52}},"5":{"start":{"line":9,"column":32},"end":{"line":9,"column":45}},"6":{"start":{"line":10,"column":13},"end":{"line":10,"column":55}},"7":{"start":{"line":11,"column":13},"end":{"line":11,"column":50}},"8":{"start":{"line":12,"column":31},"end":{"line":17,"column":null}},"9":{"start":{"line":18,"column":26},"end":{"line":18,"column":27}},"10":{"start":{"line":19,"column":13},"end":{"line":19,"column":91}},"11":{"start":{"line":22,"column":4},"end":{"line":22,"column":29}},"12":{"start":{"line":23,"column":4},"end":{"line":23,"column":28}},"13":{"start":{"line":21,"column":0},"end":{"line":21,"column":16}},"14":{"start":{"line":38,"column":8},"end":{"line":38,"column":16}},"15":{"start":{"line":39,"column":8},"end":{"line":39,"column":null}},"16":{"start":{"line":40,"column":8},"end":{"line":40,"column":null}},"17":{"start":{"line":41,"column":8},"end":{"line":41,"column":null}},"18":{"start":{"line":42,"column":8},"end":{"line":42,"column":null}},"19":{"start":{"line":43,"column":8},"end":{"line":43,"column":27}},"20":{"start":{"line":48,"column":8},"end":{"line":48,"column":48}},"21":{"start":{"line":53,"column":8},"end":{"line":55,"column":null}},"22":{"start":{"line":54,"column":12},"end":{"line":54,"column":41}},"23":{"start":{"line":59,"column":8},"end":{"line":61,"column":null}},"24":{"start":{"line":60,"column":12},"end":{"line":60,"column":34}},"25":{"start":{"line":66,"column":8},"end":{"line":66,"column":80}},"26":{"start":{"line":67,"column":8},"end":{"line":67,"column":41}},"27":{"start":{"line":76,"column":8},"end":{"line":77,"column":24}},"28":{"start":{"line":77,"column":12},"end":{"line":77,"column":24}},"29":{"start":{"line":79,"column":19},"end":{"line":79,"column":38}},"30":{"start":{"line":80,"column":21},"end":{"line":80,"column":36}},"31":{"start":{"line":82,"column":19},"end":{"line":82,"column":23}},"32":{"start":{"line":83,"column":26},"end":{"line":83,"column":30}},"33":{"start":{"line":84,"column":22},"end":{"line":84,"column":26}},"34":{"start":{"line":85,"column":8},"end":{"line":103,"column":null}},"35":{"start":{"line":86,"column":12},"end":{"line":86,"column":49}},"36":{"start":{"line":87,"column":12},"end":{"line":87,"column":35}},"37":{"start":{"line":89,"column":12},"end":{"line":89,"column":46}},"38":{"start":{"line":91,"column":12},"end":{"line":95,"column":null}},"39":{"start":{"line":94,"column":16},"end":{"line":94,"column":null}},"40":{"start":{"line":96,"column":15},"end":{"line":103,"column":null}},"41":{"start":{"line":97,"column":12},"end":{"line":97,"column":47}},"42":{"start":{"line":98,"column":12},"end":{"line":98,"column":33}},"43":{"start":{"line":100,"column":12},"end":{"line":100,"column":32}},"44":{"start":{"line":102,"column":12},"end":{"line":102,"column":24}},"45":{"start":{"line":105,"column":24},"end":{"line":105,"column":53}},"46":{"start":{"line":106,"column":8},"end":{"line":106,"column":44}},"47":{"start":{"line":107,"column":8},"end":{"line":107,"column":30}},"48":{"start":{"line":108,"column":8},"end":{"line":108,"column":null}},"49":{"start":{"line":109,"column":8},"end":{"line":109,"column":44}},"50":{"start":{"line":110,"column":8},"end":{"line":110,"column":null}},"51":{"start":{"line":111,"column":8},"end":{"line":111,"column":23}},"52":{"start":{"line":115,"column":21},"end":{"line":115,"column":47}},"53":{"start":{"line":116,"column":24},"end":{"line":116,"column":53}},"54":{"start":{"line":117,"column":8},"end":{"line":117,"column":47}},"55":{"start":{"line":119,"column":8},"end":{"line":119,"column":50}},"56":{"start":{"line":120,"column":8},"end":{"line":120,"column":23}},"57":{"start":{"line":124,"column":24},"end":{"line":124,"column":73}},"58":{"start":{"line":125,"column":8},"end":{"line":125,"column":null}},"59":{"start":{"line":126,"column":8},"end":{"line":126,"column":31}},"60":{"start":{"line":127,"column":8},"end":{"line":127,"column":23}},"61":{"start":{"line":131,"column":18},"end":{"line":131,"column":36}},"62":{"start":{"line":132,"column":8},"end":{"line":132,"column":22}},"63":{"start":{"line":133,"column":8},"end":{"line":133,"column":46}},"64":{"start":{"line":134,"column":8},"end":{"line":134,"column":17}},"65":{"start":{"line":138,"column":24},"end":{"line":140,"column":38}},"66":{"start":{"line":142,"column":8},"end":{"line":142,"column":23}},"67":{"start":{"line":151,"column":8},"end":{"line":153,"column":null}},"68":{"start":{"line":152,"column":12},"end":{"line":152,"column":38}},"69":{"start":{"line":154,"column":8},"end":{"line":154,"column":32}},"70":{"start":{"line":158,"column":8},"end":{"line":160,"column":null}},"71":{"start":{"line":159,"column":12},"end":{"line":159,"column":44}},"72":{"start":{"line":161,"column":8},"end":{"line":161,"column":36}},"73":{"start":{"line":29,"column":0},"end":{"line":29,"column":13}}},"fnMap":{"0":{"name":"clearGlobalProjectMap","decl":{"start":{"line":21,"column":16},"end":{"line":21,"column":37}},"loc":{"start":{"line":21,"column":37},"end":{"line":24,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":37,"column":4},"end":{"line":37,"column":null}},"loc":{"start":{"line":37,"column":4},"end":{"line":44,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":4},"end":{"line":47,"column":18}},"loc":{"start":{"line":47,"column":43},"end":{"line":49,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":52,"column":12},"end":{"line":52,"column":26}},"loc":{"start":{"line":52,"column":51},"end":{"line":56,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":58,"column":12},"end":{"line":58,"column":19}},"loc":{"start":{"line":58,"column":39},"end":{"line":62,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":64,"column":12},"end":{"line":64,"column":22}},"loc":{"start":{"line":64,"column":43},"end":{"line":68,"column":5}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":75,"column":11},"end":{"line":75,"column":17}},"loc":{"start":{"line":75,"column":66},"end":{"line":112,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":114,"column":11},"end":{"line":114,"column":17}},"loc":{"start":{"line":114,"column":71},"end":{"line":121,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":123,"column":11},"end":{"line":123,"column":17}},"loc":{"start":{"line":123,"column":43},"end":{"line":128,"column":5}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":130,"column":12},"end":{"line":130,"column":18}},"loc":{"start":{"line":130,"column":45},"end":{"line":135,"column":5}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":137,"column":12},"end":{"line":137,"column":18}},"loc":{"start":{"line":137,"column":50},"end":{"line":143,"column":5}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":150,"column":4},"end":{"line":150,"column":12}},"loc":{"start":{"line":150,"column":30},"end":{"line":155,"column":5}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":157,"column":4},"end":{"line":157,"column":16}},"loc":{"start":{"line":157,"column":44},"end":{"line":162,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":53,"column":8},"end":{"line":55,"column":null}},"type":"if","locations":[{"start":{"line":53,"column":8},"end":{"line":55,"column":null}}]},"1":{"loc":{"start":{"line":59,"column":8},"end":{"line":61,"column":null}},"type":"if","locations":[{"start":{"line":59,"column":8},"end":{"line":61,"column":null}}]},"2":{"loc":{"start":{"line":66,"column":24},"end":{"line":66,"column":63}},"type":"cond-expr","locations":[{"start":{"line":66,"column":55},"end":{"line":66,"column":57}},{"start":{"line":66,"column":60},"end":{"line":66,"column":63}}]},"3":{"loc":{"start":{"line":76,"column":8},"end":{"line":77,"column":24}},"type":"if","locations":[{"start":{"line":76,"column":8},"end":{"line":77,"column":24}}]},"4":{"loc":{"start":{"line":85,"column":8},"end":{"line":103,"column":null}},"type":"if","locations":[{"start":{"line":85,"column":8},"end":{"line":103,"column":null}},{"start":{"line":96,"column":15},"end":{"line":103,"column":null}}]},"5":{"loc":{"start":{"line":91,"column":12},"end":{"line":95,"column":null}},"type":"if","locations":[{"start":{"line":91,"column":12},"end":{"line":95,"column":null}}]},"6":{"loc":{"start":{"line":96,"column":15},"end":{"line":103,"column":null}},"type":"if","locations":[{"start":{"line":96,"column":15},"end":{"line":103,"column":null}},{"start":{"line":101,"column":15},"end":{"line":103,"column":null}}]},"7":{"loc":{"start":{"line":138,"column":24},"end":{"line":140,"column":38}},"type":"cond-expr","locations":[{"start":{"line":139,"column":12},"end":{"line":139,"column":54}},{"start":{"line":140,"column":14},"end":{"line":140,"column":38}}]},"8":{"loc":{"start":{"line":151,"column":8},"end":{"line":153,"column":null}},"type":"if","locations":[{"start":{"line":151,"column":8},"end":{"line":153,"column":null}}]},"9":{"loc":{"start":{"line":158,"column":8},"end":{"line":160,"column":null}},"type":"if","locations":[{"start":{"line":158,"column":8},"end":{"line":160,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":0,"12":0,"13":2,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0},"b":{"0":[0],"1":[0],"2":[0,0],"3":[0],"4":[0,0],"5":[0],"6":[0,0],"7":[0,0],"8":[0],"9":[0]}}
+,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmStep.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmStep.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":60}},"1":{"start":{"line":9,"column":8},"end":{"line":9,"column":23}},"2":{"start":{"line":10,"column":8},"end":{"line":10,"column":53}},"3":{"start":{"line":14,"column":8},"end":{"line":17,"column":null}},"4":{"start":{"line":21,"column":13},"end":{"line":21,"column":82}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":26}},"6":{"start":{"line":28,"column":14},"end":{"line":28,"column":26}},"7":{"start":{"line":29,"column":4},"end":{"line":31,"column":null}},"8":{"start":{"line":30,"column":8},"end":{"line":30,"column":49}},"9":{"start":{"line":32,"column":17},"end":{"line":32,"column":35}},"10":{"start":{"line":33,"column":4},"end":{"line":33,"column":33}},"11":{"start":{"line":34,"column":4},"end":{"line":34,"column":16}},"12":{"start":{"line":27,"column":0},"end":{"line":27,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":4},"end":{"line":8,"column":16}},"loc":{"start":{"line":8,"column":27},"end":{"line":11,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":4},"end":{"line":13,"column":12}},"loc":{"start":{"line":13,"column":12},"end":{"line":18,"column":5}}},"2":{"name":"getOrCreateStep","decl":{"start":{"line":27,"column":16},"end":{"line":27,"column":31}},"loc":{"start":{"line":27,"column":55},"end":{"line":35,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":28,"column":4},"end":{"line":28,"column":26}},"type":"if","locations":[{"start":{"line":28,"column":4},"end":{"line":28,"column":26}}]},"1":{"loc":{"start":{"line":29,"column":4},"end":{"line":31,"column":null}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":31,"column":null}}]}},"s":{"0":2,"1":0,"2":0,"3":0,"4":2,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":2},"f":{"0":0,"1":0,"2":0},"b":{"0":[0],"1":[0]}}
+,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmTask.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaPmTask.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":null}},"1":{"start":{"line":13,"column":0},"end":{"line":13,"column":56}},"2":{"start":{"line":14,"column":0},"end":{"line":14,"column":44}},"3":{"start":{"line":29,"column":8},"end":{"line":29,"column":16}},"4":{"start":{"line":30,"column":8},"end":{"line":30,"column":30}},"5":{"start":{"line":31,"column":8},"end":{"line":31,"column":30}},"6":{"start":{"line":32,"column":8},"end":{"line":32,"column":25}},"7":{"start":{"line":33,"column":8},"end":{"line":33,"column":null}},"8":{"start":{"line":34,"column":8},"end":{"line":34,"column":31}},"9":{"start":{"line":35,"column":8},"end":{"line":41,"column":null}},"10":{"start":{"line":36,"column":12},"end":{"line":40,"column":null}},"11":{"start":{"line":37,"column":29},"end":{"line":37,"column":49}},"12":{"start":{"line":38,"column":16},"end":{"line":39,"column":null}},"13":{"start":{"line":39,"column":20},"end":{"line":39,"column":null}},"14":{"start":{"line":42,"column":8},"end":{"line":42,"column":null}},"15":{"start":{"line":46,"column":8},"end":{"line":51,"column":null}},"16":{"start":{"line":50,"column":53},"end":{"line":50,"column":65}},"17":{"start":{"line":55,"column":8},"end":{"line":55,"column":38}},"18":{"start":{"line":59,"column":8},"end":{"line":67,"column":null}},"19":{"start":{"line":61,"column":32},"end":{"line":61,"column":79}},"20":{"start":{"line":62,"column":16},"end":{"line":62,"column":51}},"21":{"start":{"line":62,"column":38},"end":{"line":62,"column":51}},"22":{"start":{"line":63,"column":16},"end":{"line":63,"column":null}},"23":{"start":{"line":66,"column":16},"end":{"line":66,"column":null}},"24":{"start":{"line":71,"column":8},"end":{"line":71,"column":40}},"25":{"start":{"line":78,"column":8},"end":{"line":81,"column":null}},"26":{"start":{"line":78,"column":21},"end":{"line":78,"column":50}},"27":{"start":{"line":79,"column":12},"end":{"line":80,"column":45}},"28":{"start":{"line":80,"column":16},"end":{"line":80,"column":45}},"29":{"start":{"line":82,"column":8},"end":{"line":82,"column":20}},"30":{"start":{"line":86,"column":8},"end":{"line":86,"column":null}},"31":{"start":{"line":90,"column":8},"end":{"line":90,"column":35}},"32":{"start":{"line":90,"column":22},"end":{"line":90,"column":35}},"33":{"start":{"line":91,"column":8},"end":{"line":99,"column":null}},"34":{"start":{"line":94,"column":16},"end":{"line":94,"column":null}},"35":{"start":{"line":96,"column":31},"end":{"line":96,"column":89}},"36":{"start":{"line":96,"column":61},"end":{"line":96,"column":77}},"37":{"start":{"line":97,"column":16},"end":{"line":97,"column":null}},"38":{"start":{"line":104,"column":8},"end":{"line":104,"column":76}},"39":{"start":{"line":104,"column":45},"end":{"line":104,"column":63}},"40":{"start":{"line":108,"column":21},"end":{"line":108,"column":40}},"41":{"start":{"line":109,"column":8},"end":{"line":109,"column":41}},"42":{"start":{"line":113,"column":8},"end":{"line":113,"column":59}},"43":{"start":{"line":117,"column":22},"end":{"line":117,"column":31}},"44":{"start":{"line":118,"column":8},"end":{"line":122,"column":null}},"45":{"start":{"line":119,"column":12},"end":{"line":121,"column":null}},"46":{"start":{"line":120,"column":16},"end":{"line":120,"column":null}},"47":{"start":{"line":123,"column":8},"end":{"line":123,"column":23}},"48":{"start":{"line":127,"column":8},"end":{"line":132,"column":null}},"49":{"start":{"line":128,"column":12},"end":{"line":130,"column":null}},"50":{"start":{"line":129,"column":16},"end":{"line":129,"column":25}},"51":{"start":{"line":131,"column":12},"end":{"line":131,"column":null}},"52":{"start":{"line":133,"column":8},"end":{"line":133,"column":23}},"53":{"start":{"line":137,"column":25},"end":{"line":137,"column":50}},"54":{"start":{"line":138,"column":8},"end":{"line":138,"column":50}},"55":{"start":{"line":142,"column":8},"end":{"line":147,"column":null}},"56":{"start":{"line":144,"column":16},"end":{"line":144,"column":46}},"57":{"start":{"line":146,"column":16},"end":{"line":146,"column":54}},"58":{"start":{"line":151,"column":26},"end":{"line":151,"column":50}},"59":{"start":{"line":152,"column":8},"end":{"line":152,"column":52}},"60":{"start":{"line":152,"column":35},"end":{"line":152,"column":52}},"61":{"start":{"line":153,"column":8},"end":{"line":153,"column":null}},"62":{"start":{"line":161,"column":8},"end":{"line":165,"column":null}},"63":{"start":{"line":162,"column":12},"end":{"line":164,"column":null}},"64":{"start":{"line":163,"column":16},"end":{"line":163,"column":28}},"65":{"start":{"line":166,"column":8},"end":{"line":166,"column":21}},"66":{"start":{"line":172,"column":8},"end":{"line":172,"column":54}},"67":{"start":{"line":177,"column":8},"end":{"line":179,"column":null}},"68":{"start":{"line":178,"column":12},"end":{"line":178,"column":40}},"69":{"start":{"line":184,"column":8},"end":{"line":184,"column":69}},"70":{"start":{"line":184,"column":41},"end":{"line":184,"column":56}},"71":{"start":{"line":188,"column":8},"end":{"line":188,"column":61}},"72":{"start":{"line":195,"column":8},"end":{"line":195,"column":46}},"73":{"start":{"line":195,"column":38},"end":{"line":195,"column":44}},"74":{"start":{"line":16,"column":0},"end":{"line":16,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":28,"column":4},"end":{"line":28,"column":16}},"loc":{"start":{"line":28,"column":50},"end":{"line":43,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":45,"column":4},"end":{"line":45,"column":12}},"loc":{"start":{"line":45,"column":12},"end":{"line":52,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":50,"column":48},"end":{"line":50,"column":49}},"loc":{"start":{"line":50,"column":53},"end":{"line":50,"column":65}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"loc":{"start":{"line":54,"column":17},"end":{"line":56,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":58,"column":4},"end":{"line":58,"column":17}},"loc":{"start":{"line":58,"column":17},"end":{"line":68,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":70,"column":4},"end":{"line":70,"column":15}},"loc":{"start":{"line":70,"column":15},"end":{"line":72,"column":5}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":77,"column":12},"end":{"line":77,"column":27}},"loc":{"start":{"line":77,"column":27},"end":{"line":83,"column":5}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":12},"end":{"line":85,"column":29}},"loc":{"start":{"line":85,"column":29},"end":{"line":87,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":89,"column":4},"end":{"line":89,"column":19}},"loc":{"start":{"line":89,"column":47},"end":{"line":100,"column":5}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":56},"end":{"line":96,"column":57}},"loc":{"start":{"line":96,"column":61},"end":{"line":96,"column":77}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":102,"column":4},"end":{"line":102,"column":15}},"loc":{"start":{"line":102,"column":32},"end":{"line":105,"column":5}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":104,"column":40},"end":{"line":104,"column":41}},"loc":{"start":{"line":104,"column":45},"end":{"line":104,"column":63}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":107,"column":4},"end":{"line":107,"column":14}},"loc":{"start":{"line":107,"column":30},"end":{"line":110,"column":5}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":112,"column":4},"end":{"line":112,"column":17}},"loc":{"start":{"line":112,"column":33},"end":{"line":114,"column":5}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":116,"column":4},"end":{"line":116,"column":21}},"loc":{"start":{"line":116,"column":21},"end":{"line":124,"column":5}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":126,"column":12},"end":{"line":126,"column":26}},"loc":{"start":{"line":126,"column":42},"end":{"line":134,"column":5}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":136,"column":12},"end":{"line":136,"column":27}},"loc":{"start":{"line":136,"column":27},"end":{"line":139,"column":5}}},"17":{"name":"(anonymous_17)","decl":{"start":{"line":141,"column":4},"end":{"line":141,"column":19}},"loc":{"start":{"line":141,"column":19},"end":{"line":148,"column":5}}},"18":{"name":"(anonymous_18)","decl":{"start":{"line":150,"column":4},"end":{"line":150,"column":18}},"loc":{"start":{"line":150,"column":46},"end":{"line":154,"column":5}}},"19":{"name":"(anonymous_19)","decl":{"start":{"line":160,"column":4},"end":{"line":160,"column":13}},"loc":{"start":{"line":160,"column":35},"end":{"line":167,"column":5}}},"20":{"name":"(anonymous_20)","decl":{"start":{"line":171,"column":4},"end":{"line":171,"column":17}},"loc":{"start":{"line":171,"column":17},"end":{"line":173,"column":5}}},"21":{"name":"(anonymous_21)","decl":{"start":{"line":175,"column":4},"end":{"line":175,"column":14}},"loc":{"start":{"line":175,"column":36},"end":{"line":180,"column":5}}},"22":{"name":"(anonymous_22)","decl":{"start":{"line":182,"column":4},"end":{"line":182,"column":15}},"loc":{"start":{"line":182,"column":28},"end":{"line":185,"column":5}}},"23":{"name":"(anonymous_23)","decl":{"start":{"line":184,"column":36},"end":{"line":184,"column":37}},"loc":{"start":{"line":184,"column":41},"end":{"line":184,"column":56}}},"24":{"name":"(anonymous_24)","decl":{"start":{"line":187,"column":4},"end":{"line":187,"column":18}},"loc":{"start":{"line":187,"column":18},"end":{"line":189,"column":5}}},"25":{"name":"(anonymous_25)","decl":{"start":{"line":194,"column":4},"end":{"line":194,"column":19}},"loc":{"start":{"line":194,"column":19},"end":{"line":196,"column":5}}},"26":{"name":"(anonymous_26)","decl":{"start":{"line":195,"column":33},"end":{"line":195,"column":34}},"loc":{"start":{"line":195,"column":38},"end":{"line":195,"column":44}}}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":12},"end":{"line":40,"column":null}},"type":"if","locations":[{"start":{"line":36,"column":12},"end":{"line":40,"column":null}}]},"1":{"loc":{"start":{"line":38,"column":16},"end":{"line":39,"column":null}},"type":"if","locations":[{"start":{"line":38,"column":16},"end":{"line":39,"column":null}}]},"2":{"loc":{"start":{"line":59,"column":8},"end":{"line":67,"column":null}},"type":"switch","locations":[{"start":{"line":60,"column":12},"end":{"line":64,"column":null}},{"start":{"line":65,"column":12},"end":{"line":66,"column":null}}]},"3":{"loc":{"start":{"line":61,"column":48},"end":{"line":61,"column":78}},"type":"cond-expr","locations":[{"start":{"line":61,"column":73},"end":{"line":61,"column":75}},{"start":{"line":61,"column":73},"end":{"line":61,"column":78}}]},"4":{"loc":{"start":{"line":61,"column":48},"end":{"line":61,"column":75}},"type":"binary-expr","locations":[{"start":{"line":61,"column":48},"end":{"line":61,"column":75}},{"start":{"line":61,"column":73},"end":{"line":61,"column":75}}]},"5":{"loc":{"start":{"line":62,"column":16},"end":{"line":62,"column":51}},"type":"if","locations":[{"start":{"line":62,"column":16},"end":{"line":62,"column":51}}]},"6":{"loc":{"start":{"line":79,"column":12},"end":{"line":80,"column":45}},"type":"if","locations":[{"start":{"line":79,"column":12},"end":{"line":80,"column":45}}]},"7":{"loc":{"start":{"line":90,"column":8},"end":{"line":90,"column":35}},"type":"if","locations":[{"start":{"line":90,"column":8},"end":{"line":90,"column":35}}]},"8":{"loc":{"start":{"line":91,"column":8},"end":{"line":99,"column":null}},"type":"switch","locations":[{"start":{"line":92,"column":12},"end":{"line":94,"column":null}},{"start":{"line":95,"column":12},"end":{"line":98,"column":null}}]},"9":{"loc":{"start":{"line":94,"column":23},"end":{"line":94,"column":53}},"type":"cond-expr","locations":[{"start":{"line":94,"column":48},"end":{"line":94,"column":50}},{"start":{"line":94,"column":48},"end":{"line":94,"column":53}}]},"10":{"loc":{"start":{"line":94,"column":23},"end":{"line":94,"column":50}},"type":"binary-expr","locations":[{"start":{"line":94,"column":23},"end":{"line":94,"column":50}},{"start":{"line":94,"column":48},"end":{"line":94,"column":50}}]},"11":{"loc":{"start":{"line":97,"column":23},"end":{"line":97,"column":91}},"type":"binary-expr","locations":[{"start":{"line":97,"column":23},"end":{"line":97,"column":80}},{"start":{"line":97,"column":84},"end":{"line":97,"column":91}}]},"12":{"loc":{"start":{"line":119,"column":12},"end":{"line":121,"column":null}},"type":"if","locations":[{"start":{"line":119,"column":12},"end":{"line":121,"column":null}}]},"13":{"loc":{"start":{"line":128,"column":12},"end":{"line":130,"column":null}},"type":"if","locations":[{"start":{"line":128,"column":12},"end":{"line":130,"column":null}}]},"14":{"loc":{"start":{"line":138,"column":35},"end":{"line":138,"column":48}},"type":"cond-expr","locations":[{"start":{"line":138,"column":43},"end":{"line":138,"column":45}},{"start":{"line":138,"column":35},"end":{"line":138,"column":48}}]},"15":{"loc":{"start":{"line":138,"column":35},"end":{"line":138,"column":45}},"type":"binary-expr","locations":[{"start":{"line":138,"column":35},"end":{"line":138,"column":45}},{"start":{"line":138,"column":35},"end":{"line":138,"column":45}}]},"16":{"loc":{"start":{"line":142,"column":8},"end":{"line":147,"column":null}},"type":"switch","locations":[{"start":{"line":143,"column":12},"end":{"line":144,"column":46}},{"start":{"line":145,"column":12},"end":{"line":146,"column":54}}]},"17":{"loc":{"start":{"line":152,"column":8},"end":{"line":152,"column":52}},"type":"if","locations":[{"start":{"line":152,"column":8},"end":{"line":152,"column":52}}]},"18":{"loc":{"start":{"line":162,"column":12},"end":{"line":164,"column":null}},"type":"if","locations":[{"start":{"line":162,"column":12},"end":{"line":164,"column":null}}]},"19":{"loc":{"start":{"line":177,"column":8},"end":{"line":179,"column":null}},"type":"if","locations":[{"start":{"line":177,"column":8},"end":{"line":179,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0},"b":{"0":[0],"1":[0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0],"6":[0],"7":[0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0],"13":[0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0],"18":[0],"19":[0]}}
+,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaProjectTree.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/OdaProjectTree.ts","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":29}},"1":{"start":{"line":15,"column":4},"end":{"line":17,"column":null}},"2":{"start":{"line":16,"column":8},"end":{"line":16,"column":42}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":null}},"4":{"start":{"line":12,"column":0},"end":{"line":12,"column":16}},"5":{"start":{"line":23,"column":4},"end":{"line":23,"column":51}},"6":{"start":{"line":26,"column":21},"end":{"line":26,"column":41}},"7":{"start":{"line":27,"column":8},"end":{"line":31,"column":null}},"8":{"start":{"line":28,"column":12},"end":{"line":30,"column":null}},"9":{"start":{"line":29,"column":16},"end":{"line":29,"column":null}},"10":{"start":{"line":32,"column":8},"end":{"line":32,"column":20}},"11":{"start":{"line":36,"column":8},"end":{"line":36,"column":79}},"12":{"start":{"line":40,"column":8},"end":{"line":40,"column":83}},"13":{"start":{"line":21,"column":0},"end":{"line":21,"column":13}}},"fnMap":{"0":{"name":"getProjectByTaskPath","decl":{"start":{"line":12,"column":16},"end":{"line":12,"column":36}},"loc":{"start":{"line":12,"column":88},"end":{"line":19,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":21,"column":0},"end":{"line":21,"column":13}},"loc":{"start":{"line":21,"column":0},"end":{"line":42,"column":1}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":25,"column":4},"end":{"line":25,"column":10}},"loc":{"start":{"line":25,"column":58},"end":{"line":33,"column":5}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":35,"column":4},"end":{"line":35,"column":22}},"loc":{"start":{"line":35,"column":40},"end":{"line":37,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":39,"column":4},"end":{"line":39,"column":26}},"loc":{"start":{"line":39,"column":54},"end":{"line":41,"column":5}}}},"branchMap":{},"s":{"0":1,"1":10,"2":6,"3":10,"4":1,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":1},"f":{"0":10,"1":0,"2":0,"3":0,"4":0},"b":{}}
+,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/workflow-def.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/data-model/workflow-def.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":38}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":64}},"2":{"start":{"line":5,"column":13},"end":{"line":5,"column":44}},"3":{"start":{"line":6,"column":13},"end":{"line":6,"column":57}},"4":{"start":{"line":7,"column":13},"end":{"line":7,"column":42}},"5":{"start":{"line":8,"column":13},"end":{"line":8,"column":38}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":40}},"7":{"start":{"line":10,"column":13},"end":{"line":10,"column":52}},"8":{"start":{"line":12,"column":13},"end":{"line":15,"column":11}},"9":{"start":{"line":18,"column":39},"end":{"line":18,"column":41}},"10":{"start":{"line":22,"column":4},"end":{"line":26,"column":null}},"11":{"start":{"line":23,"column":8},"end":{"line":25,"column":null}},"12":{"start":{"line":24,"column":12},"end":{"line":24,"column":null}},"13":{"start":{"line":30,"column":4},"end":{"line":30,"column":27}},"14":{"start":{"line":31,"column":4},"end":{"line":31,"column":32}},"15":{"start":{"line":29,"column":0},"end":{"line":29,"column":16}},"16":{"start":{"line":35,"column":4},"end":{"line":35,"column":27}},"17":{"start":{"line":36,"column":4},"end":{"line":36,"column":72}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":16}},"19":{"start":{"line":41,"column":20},"end":{"line":41,"column":42}},"20":{"start":{"line":42,"column":4},"end":{"line":42,"column":41}},"21":{"start":{"line":39,"column":0},"end":{"line":39,"column":16}},"22":{"start":{"line":46,"column":17},"end":{"line":46,"column":54}},"23":{"start":{"line":47,"column":4},"end":{"line":47,"column":16}},"24":{"start":{"line":45,"column":0},"end":{"line":45,"column":16}},"25":{"start":{"line":52,"column":23},"end":{"line":52,"column":32}},"26":{"start":{"line":54,"column":17},"end":{"line":54,"column":37}},"27":{"start":{"line":55,"column":4},"end":{"line":55,"column":34}},"28":{"start":{"line":55,"column":15},"end":{"line":55,"column":34}},"29":{"start":{"line":56,"column":4},"end":{"line":58,"column":null}},"30":{"start":{"line":57,"column":8},"end":{"line":57,"column":null}},"31":{"start":{"line":59,"column":4},"end":{"line":59,"column":null}},"32":{"start":{"line":50,"column":0},"end":{"line":50,"column":16}},"33":{"start":{"line":65,"column":30},"end":{"line":65,"column":62}},"34":{"start":{"line":67,"column":34},"end":{"line":67,"column":70}},"35":{"start":{"line":74,"column":18},"end":{"line":74,"column":51}},"36":{"start":{"line":75,"column":4},"end":{"line":75,"column":35}},"37":{"start":{"line":73,"column":0},"end":{"line":73,"column":16}},"38":{"start":{"line":116,"column":4},"end":{"line":116,"column":null}},"39":{"start":{"line":115,"column":0},"end":{"line":115,"column":16}},"40":{"start":{"line":128,"column":27},"end":{"line":128,"column":64}},"41":{"start":{"line":130,"column":4},"end":{"line":130,"column":74}},"42":{"start":{"line":126,"column":0},"end":{"line":126,"column":16}},"43":{"start":{"line":135,"column":4},"end":{"line":135,"column":37}},"44":{"start":{"line":134,"column":0},"end":{"line":134,"column":16}},"45":{"start":{"line":143,"column":4},"end":{"line":143,"column":33}},"46":{"start":{"line":143,"column":20},"end":{"line":143,"column":33}},"47":{"start":{"line":144,"column":4},"end":{"line":144,"column":47}},"48":{"start":{"line":144,"column":35},"end":{"line":144,"column":47}},"49":{"start":{"line":145,"column":28},"end":{"line":145,"column":51}},"50":{"start":{"line":147,"column":28},"end":{"line":147,"column":67}},"51":{"start":{"line":149,"column":4},"end":{"line":149,"column":27}},"52":{"start":{"line":142,"column":0},"end":{"line":142,"column":16}},"53":{"start":{"line":155,"column":4},"end":{"line":159,"column":null}},"54":{"start":{"line":156,"column":8},"end":{"line":158,"column":null}},"55":{"start":{"line":157,"column":12},"end":{"line":157,"column":23}},"56":{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},"57":{"start":{"line":153,"column":0},"end":{"line":153,"column":16}},"58":{"start":{"line":164,"column":17},"end":{"line":164,"column":52}},"59":{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},"60":{"start":{"line":163,"column":0},"end":{"line":163,"column":16}},"61":{"start":{"line":172,"column":19},"end":{"line":172,"column":47}},"62":{"start":{"line":173,"column":4},"end":{"line":177,"column":56}},"63":{"start":{"line":175,"column":8},"end":{"line":175,"column":89}},"64":{"start":{"line":177,"column":8},"end":{"line":177,"column":56}},"65":{"start":{"line":171,"column":0},"end":{"line":171,"column":16}}},"fnMap":{"0":{"name":"initWorkflowTypeTags","decl":{"start":{"line":21,"column":9},"end":{"line":21,"column":29}},"loc":{"start":{"line":21,"column":29},"end":{"line":27,"column":1}}},"1":{"name":"getWorkflowTypeTags","decl":{"start":{"line":29,"column":16},"end":{"line":29,"column":35}},"loc":{"start":{"line":29,"column":35},"end":{"line":32,"column":1}}},"2":{"name":"getWorkflowTypeTag","decl":{"start":{"line":34,"column":16},"end":{"line":34,"column":34}},"loc":{"start":{"line":34,"column":53},"end":{"line":37,"column":1}}},"3":{"name":"isTaskSummaryValid","decl":{"start":{"line":39,"column":16},"end":{"line":39,"column":34}},"loc":{"start":{"line":39,"column":46},"end":{"line":43,"column":1}}},"4":{"name":"matchTags","decl":{"start":{"line":45,"column":16},"end":{"line":45,"column":25}},"loc":{"start":{"line":45,"column":38},"end":{"line":48,"column":1}}},"5":{"name":"trimTagsFromTask","decl":{"start":{"line":50,"column":16},"end":{"line":50,"column":32}},"loc":{"start":{"line":50,"column":44},"end":{"line":60,"column":1}}},"6":{"name":"getWorkflowNameFromRawText","decl":{"start":{"line":73,"column":16},"end":{"line":73,"column":42}},"loc":{"start":{"line":73,"column":55},"end":{"line":76,"column":1}}},"7":{"name":"factoryTask","decl":{"start":{"line":115,"column":16},"end":{"line":115,"column":27}},"loc":{"start":{"line":115,"column":62},"end":{"line":117,"column":1}}},"8":{"name":"addTagText","decl":{"start":{"line":126,"column":16},"end":{"line":126,"column":26}},"loc":{"start":{"line":126,"column":56},"end":{"line":131,"column":1}}},"9":{"name":"removeTagText","decl":{"start":{"line":134,"column":16},"end":{"line":134,"column":29}},"loc":{"start":{"line":134,"column":59},"end":{"line":136,"column":1}}},"10":{"name":"isTaskSingleLine","decl":{"start":{"line":142,"column":16},"end":{"line":142,"column":32}},"loc":{"start":{"line":142,"column":44},"end":{"line":150,"column":1}}},"11":{"name":"getProjectTagFromSTask","decl":{"start":{"line":153,"column":16},"end":{"line":153,"column":38}},"loc":{"start":{"line":153,"column":50},"end":{"line":161,"column":1}}},"12":{"name":"getProjectNameFromTag","decl":{"start":{"line":163,"column":16},"end":{"line":163,"column":37}},"loc":{"start":{"line":163,"column":49},"end":{"line":166,"column":1}}},"13":{"name":"getProjectPathFromSTask","decl":{"start":{"line":171,"column":16},"end":{"line":171,"column":39}},"loc":{"start":{"line":171,"column":73},"end":{"line":178,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":4},"end":{"line":26,"column":null}},"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":26,"column":null}}]},"1":{"loc":{"start":{"line":42,"column":11},"end":{"line":42,"column":40}},"type":"binary-expr","locations":[{"start":{"line":42,"column":11},"end":{"line":42,"column":18}},{"start":{"line":42,"column":22},"end":{"line":42,"column":40}}]},"2":{"loc":{"start":{"line":55,"column":4},"end":{"line":55,"column":34}},"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":55,"column":34}}]},"3":{"loc":{"start":{"line":75,"column":11},"end":{"line":75,"column":34}},"type":"cond-expr","locations":[{"start":{"line":75,"column":19},"end":{"line":75,"column":27}},{"start":{"line":75,"column":30},"end":{"line":75,"column":34}}]},"4":{"loc":{"start":{"line":130,"column":46},"end":{"line":130,"column":72}},"type":"cond-expr","locations":[{"start":{"line":130,"column":63},"end":{"line":130,"column":67}},{"start":{"line":130,"column":70},"end":{"line":130,"column":72}}]},"5":{"loc":{"start":{"line":143,"column":4},"end":{"line":143,"column":33}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":143,"column":33}}]},"6":{"loc":{"start":{"line":144,"column":4},"end":{"line":144,"column":47}},"type":"if","locations":[{"start":{"line":144,"column":4},"end":{"line":144,"column":47}}]},"7":{"loc":{"start":{"line":156,"column":8},"end":{"line":158,"column":null}},"type":"if","locations":[{"start":{"line":156,"column":8},"end":{"line":158,"column":null}}]},"8":{"loc":{"start":{"line":171,"column":53},"end":{"line":171,"column":73}},"type":"default-arg","locations":[{"start":{"line":171,"column":68},"end":{"line":171,"column":73}}]},"9":{"loc":{"start":{"line":173,"column":4},"end":{"line":177,"column":56}},"type":"if","locations":[{"start":{"line":173,"column":4},"end":{"line":177,"column":56}},{"start":{"line":177,"column":8},"end":{"line":177,"column":56}}]},"10":{"loc":{"start":{"line":175,"column":18},"end":{"line":175,"column":41}},"type":"cond-expr","locations":[{"start":{"line":175,"column":33},"end":{"line":175,"column":36}},{"start":{"line":175,"column":39},"end":{"line":175,"column":41}}]},"11":{"loc":{"start":{"line":177,"column":18},"end":{"line":177,"column":41}},"type":"cond-expr","locations":[{"start":{"line":177,"column":33},"end":{"line":177,"column":36}},{"start":{"line":177,"column":39},"end":{"line":177,"column":41}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":0,"11":0,"12":0,"13":0,"14":0,"15":2,"16":0,"17":0,"18":2,"19":0,"20":0,"21":2,"22":4,"23":4,"24":2,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":2,"33":2,"34":2,"35":0,"36":0,"37":2,"38":0,"39":2,"40":1,"41":1,"42":2,"43":0,"44":2,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":2,"53":0,"54":0,"55":0,"56":0,"57":2,"58":0,"59":0,"60":2,"61":0,"62":0,"63":0,"64":0,"65":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":4,"5":0,"6":0,"7":0,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0},"b":{"0":[0],"1":[0,0],"2":[0],"3":[0,0],"4":[0,1],"5":[0],"6":[0],"7":[0],"8":[0],"9":[0,0],"10":[0,0],"11":[0,0]}}
+,"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/utils/env-util.ts": {"path":"/Users/oda/Documents/iPm-tool-test-obsidian-vault/.obsidian/plugins/obsidian-i-pm-tool/src/utils/env-util.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":28}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":102}},"3":{"start":{"line":9,"column":4},"end":{"line":9,"column":49}},"4":{"start":{"line":8,"column":0},"end":{"line":8,"column":16}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":31}},"6":{"start":{"line":13,"column":24},"end":{"line":13,"column":31}},"7":{"start":{"line":14,"column":4},"end":{"line":14,"column":25}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":16}},"9":{"start":{"line":18,"column":4},"end":{"line":18,"column":31}},"10":{"start":{"line":18,"column":24},"end":{"line":18,"column":31}},"11":{"start":{"line":19,"column":4},"end":{"line":19,"column":null}},"12":{"start":{"line":17,"column":0},"end":{"line":17,"column":16}},"13":{"start":{"line":24,"column":4},"end":{"line":24,"column":31}},"14":{"start":{"line":24,"column":24},"end":{"line":24,"column":31}},"15":{"start":{"line":25,"column":4},"end":{"line":25,"column":51}},"16":{"start":{"line":26,"column":4},"end":{"line":26,"column":null}},"17":{"start":{"line":23,"column":0},"end":{"line":23,"column":16}},"18":{"start":{"line":30,"column":4},"end":{"line":30,"column":36}},"19":{"start":{"line":31,"column":4},"end":{"line":35,"column":null}},"20":{"start":{"line":32,"column":8},"end":{"line":32,"column":47}},"21":{"start":{"line":33,"column":8},"end":{"line":34,"column":63}},"22":{"start":{"line":34,"column":12},"end":{"line":34,"column":63}},"23":{"start":{"line":39,"column":17},"end":{"line":39,"column":53}},"24":{"start":{"line":40,"column":4},"end":{"line":40,"column":32}},"25":{"start":{"line":41,"column":4},"end":{"line":43,"column":null}},"26":{"start":{"line":42,"column":8},"end":{"line":42,"column":19}},"27":{"start":{"line":47,"column":24},"end":{"line":48,"column":null}},"28":{"start":{"line":48,"column":8},"end":{"line":48,"column":98}},"29":{"start":{"line":50,"column":20},"end":{"line":50,"column":21}},"30":{"start":{"line":51,"column":4},"end":{"line":52,"column":35}},"31":{"start":{"line":54,"column":29},"end":{"line":55,"column":null}},"32":{"start":{"line":55,"column":8},"end":{"line":55,"column":74}},"33":{"start":{"line":57,"column":4},"end":{"line":57,"column":111}},"34":{"start":{"line":59,"column":32},"end":{"line":61,"column":6}},"35":{"start":{"line":60,"column":8},"end":{"line":60,"column":null}},"36":{"start":{"line":60,"column":37},"end":{"line":60,"column":71}},"37":{"start":{"line":62,"column":4},"end":{"line":62,"column":99}},"38":{"start":{"line":63,"column":4},"end":{"line":63,"column":90}},"39":{"start":{"line":65,"column":35},"end":{"line":67,"column":6}},"40":{"start":{"line":66,"column":8},"end":{"line":66,"column":null}},"41":{"start":{"line":66,"column":39},"end":{"line":66,"column":70}},"42":{"start":{"line":68,"column":4},"end":{"line":68,"column":104}},"43":{"start":{"line":69,"column":4},"end":{"line":69,"column":93}},"44":{"start":{"line":71,"column":29},"end":{"line":73,"column":6}},"45":{"start":{"line":72,"column":8},"end":{"line":72,"column":null}},"46":{"start":{"line":74,"column":4},"end":{"line":74,"column":96}},"47":{"start":{"line":75,"column":28},"end":{"line":75,"column":52}},"48":{"start":{"line":76,"column":4},"end":{"line":78,"column":null}},"49":{"start":{"line":77,"column":8},"end":{"line":77,"column":90}},"50":{"start":{"line":80,"column":33},"end":{"line":82,"column":6}},"51":{"start":{"line":81,"column":8},"end":{"line":81,"column":null}},"52":{"start":{"line":83,"column":4},"end":{"line":83,"column":102}},"53":{"start":{"line":84,"column":26},"end":{"line":84,"column":54}},"54":{"start":{"line":85,"column":4},"end":{"line":87,"column":null}},"55":{"start":{"line":86,"column":8},"end":{"line":86,"column":88}},"56":{"start":{"line":90,"column":29},"end":{"line":92,"column":6}},"57":{"start":{"line":91,"column":8},"end":{"line":91,"column":null}},"58":{"start":{"line":93,"column":4},"end":{"line":93,"column":96}},"59":{"start":{"line":94,"column":28},"end":{"line":94,"column":52}},"60":{"start":{"line":95,"column":4},"end":{"line":97,"column":null}},"61":{"start":{"line":96,"column":8},"end":{"line":96,"column":88}},"62":{"start":{"line":99,"column":33},"end":{"line":101,"column":6}},"63":{"start":{"line":100,"column":8},"end":{"line":100,"column":null}},"64":{"start":{"line":102,"column":4},"end":{"line":102,"column":102}},"65":{"start":{"line":103,"column":26},"end":{"line":103,"column":54}},"66":{"start":{"line":104,"column":4},"end":{"line":106,"column":null}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":86}},"68":{"start":{"line":109,"column":29},"end":{"line":111,"column":6}},"69":{"start":{"line":110,"column":8},"end":{"line":110,"column":null}},"70":{"start":{"line":112,"column":4},"end":{"line":112,"column":96}},"71":{"start":{"line":113,"column":28},"end":{"line":113,"column":52}},"72":{"start":{"line":114,"column":4},"end":{"line":116,"column":null}},"73":{"start":{"line":115,"column":8},"end":{"line":115,"column":88}},"74":{"start":{"line":118,"column":33},"end":{"line":120,"column":6}},"75":{"start":{"line":119,"column":8},"end":{"line":119,"column":null}},"76":{"start":{"line":121,"column":4},"end":{"line":121,"column":102}},"77":{"start":{"line":122,"column":26},"end":{"line":122,"column":54}},"78":{"start":{"line":123,"column":4},"end":{"line":125,"column":null}},"79":{"start":{"line":124,"column":8},"end":{"line":124,"column":86}},"80":{"start":{"line":131,"column":8},"end":{"line":133,"column":null}},"81":{"start":{"line":132,"column":12},"end":{"line":132,"column":199}},"82":{"start":{"line":136,"column":4},"end":{"line":136,"column":77}},"83":{"start":{"line":137,"column":4},"end":{"line":137,"column":60}},"84":{"start":{"line":138,"column":4},"end":{"line":138,"column":null}},"85":{"start":{"line":139,"column":4},"end":{"line":139,"column":null}},"86":{"start":{"line":140,"column":4},"end":{"line":140,"column":null}},"87":{"start":{"line":141,"column":4},"end":{"line":141,"column":null}},"88":{"start":{"line":142,"column":4},"end":{"line":142,"column":null}},"89":{"start":{"line":143,"column":4},"end":{"line":143,"column":null}},"90":{"start":{"line":148,"column":8},"end":{"line":151,"column":null}},"91":{"start":{"line":149,"column":12},"end":{"line":150,"column":29}},"92":{"start":{"line":154,"column":4},"end":{"line":154,"column":79}},"93":{"start":{"line":155,"column":4},"end":{"line":155,"column":85}},"94":{"start":{"line":156,"column":4},"end":{"line":156,"column":null}},"95":{"start":{"line":157,"column":4},"end":{"line":157,"column":null}},"96":{"start":{"line":158,"column":4},"end":{"line":158,"column":null}},"97":{"start":{"line":159,"column":4},"end":{"line":159,"column":null}},"98":{"start":{"line":160,"column":4},"end":{"line":160,"column":null}},"99":{"start":{"line":161,"column":4},"end":{"line":161,"column":null}},"100":{"start":{"line":167,"column":27},"end":{"line":169,"column":6}},"101":{"start":{"line":168,"column":8},"end":{"line":168,"column":null}},"102":{"start":{"line":170,"column":4},"end":{"line":170,"column":92}},"103":{"start":{"line":171,"column":4},"end":{"line":171,"column":33}},"104":{"start":{"line":172,"column":4},"end":{"line":172,"column":30}},"105":{"start":{"line":177,"column":4},"end":{"line":177,"column":null}},"106":{"start":{"line":178,"column":21},"end":{"line":178,"column":36}},"107":{"start":{"line":180,"column":23},"end":{"line":180,"column":64}},"108":{"start":{"line":180,"column":41},"end":{"line":180,"column":54}},"109":{"start":{"line":181,"column":4},"end":{"line":181,"column":88}},"110":{"start":{"line":182,"column":4},"end":{"line":182,"column":24}},"111":{"start":{"line":183,"column":4},"end":{"line":183,"column":42}},"112":{"start":{"line":185,"column":4},"end":{"line":185,"column":null}},"113":{"start":{"line":176,"column":0},"end":{"line":176,"column":22}}},"fnMap":{"0":{"name":"isProduction","decl":{"start":{"line":8,"column":16},"end":{"line":8,"column":28}},"loc":{"start":{"line":8,"column":28},"end":{"line":10,"column":1}}},"1":{"name":"devLog","decl":{"start":{"line":12,"column":16},"end":{"line":12,"column":22}},"loc":{"start":{"line":12,"column":37},"end":{"line":15,"column":1}}},"2":{"name":"devAssert","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":25}},"loc":{"start":{"line":17,"column":40},"end":{"line":20,"column":1}}},"3":{"name":"assertOnPluginInit","decl":{"start":{"line":23,"column":16},"end":{"line":23,"column":34}},"loc":{"start":{"line":23,"column":58},"end":{"line":27,"column":1}}},"4":{"name":"expect_project","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":23}},"loc":{"start":{"line":29,"column":108},"end":{"line":36,"column":1}}},"5":{"name":"expectTaskAbstract","decl":{"start":{"line":38,"column":9},"end":{"line":38,"column":27}},"loc":{"start":{"line":38,"column":95},"end":{"line":44,"column":1}}},"6":{"name":"testProjectDefinition","decl":{"start":{"line":46,"column":15},"end":{"line":46,"column":36}},"loc":{"start":{"line":46,"column":76},"end":{"line":126,"column":null}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":47,"column":40},"end":{"line":47,"column":41}},"loc":{"start":{"line":48,"column":8},"end":{"line":48,"column":98}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":54,"column":45},"end":{"line":54,"column":46}},"loc":{"start":{"line":55,"column":8},"end":{"line":55,"column":74}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":59,"column":48},"end":{"line":59,"column":49}},"loc":{"start":{"line":59,"column":52},"end":{"line":61,"column":5}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":60,"column":32},"end":{"line":60,"column":33}},"loc":{"start":{"line":60,"column":37},"end":{"line":60,"column":71}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":65,"column":51},"end":{"line":65,"column":52}},"loc":{"start":{"line":65,"column":55},"end":{"line":67,"column":5}}},"12":{"name":"(anonymous_13)","decl":{"start":{"line":66,"column":34},"end":{"line":66,"column":35}},"loc":{"start":{"line":66,"column":39},"end":{"line":66,"column":70}}},"13":{"name":"(anonymous_14)","decl":{"start":{"line":71,"column":49},"end":{"line":71,"column":50}},"loc":{"start":{"line":71,"column":53},"end":{"line":73,"column":5}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":80,"column":55},"end":{"line":80,"column":56}},"loc":{"start":{"line":80,"column":59},"end":{"line":82,"column":5}}},"15":{"name":"(anonymous_16)","decl":{"start":{"line":90,"column":49},"end":{"line":90,"column":50}},"loc":{"start":{"line":90,"column":53},"end":{"line":92,"column":5}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":99,"column":55},"end":{"line":99,"column":56}},"loc":{"start":{"line":99,"column":59},"end":{"line":101,"column":5}}},"17":{"name":"(anonymous_18)","decl":{"start":{"line":109,"column":49},"end":{"line":109,"column":50}},"loc":{"start":{"line":109,"column":53},"end":{"line":111,"column":5}}},"18":{"name":"(anonymous_19)","decl":{"start":{"line":118,"column":55},"end":{"line":118,"column":56}},"loc":{"start":{"line":118,"column":59},"end":{"line":120,"column":5}}},"19":{"name":"testTaskProjectLink","decl":{"start":{"line":128,"column":15},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":48},"end":{"line":144,"column":null}}},"20":{"name":"expectTaskInProject","decl":{"start":{"line":130,"column":13},"end":{"line":130,"column":32}},"loc":{"start":{"line":130,"column":70},"end":{"line":134,"column":5}}},"21":{"name":"(anonymous_23)","decl":{"start":{"line":131,"column":43},"end":{"line":131,"column":44}},"loc":{"start":{"line":131,"column":52},"end":{"line":133,"column":9}}},"22":{"name":"testGetTaskProjectPath","decl":{"start":{"line":146,"column":15},"end":{"line":146,"column":37}},"loc":{"start":{"line":146,"column":51},"end":{"line":162,"column":null}}},"23":{"name":"expectTaskPath","decl":{"start":{"line":147,"column":13},"end":{"line":147,"column":27}},"loc":{"start":{"line":147,"column":58},"end":{"line":152,"column":5}}},"24":{"name":"(anonymous_27)","decl":{"start":{"line":148,"column":43},"end":{"line":148,"column":44}},"loc":{"start":{"line":148,"column":52},"end":{"line":151,"column":9}}},"25":{"name":"test_UT_020_3","decl":{"start":{"line":164,"column":15},"end":{"line":164,"column":28}},"loc":{"start":{"line":164,"column":42},"end":{"line":173,"column":null}}},"26":{"name":"(anonymous_30)","decl":{"start":{"line":167,"column":47},"end":{"line":167,"column":48}},"loc":{"start":{"line":167,"column":51},"end":{"line":169,"column":5}}},"27":{"name":"assertOnDbRefreshed","decl":{"start":{"line":176,"column":22},"end":{"line":176,"column":41}},"loc":{"start":{"line":176,"column":55},"end":{"line":186,"column":null}}},"28":{"name":"(anonymous_33)","decl":{"start":{"line":180,"column":36},"end":{"line":180,"column":37}},"loc":{"start":{"line":180,"column":41},"end":{"line":180,"column":54}}}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":4},"end":{"line":13,"column":31}},"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":13,"column":31}}]},"1":{"loc":{"start":{"line":18,"column":4},"end":{"line":18,"column":31}},"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":18,"column":31}}]},"2":{"loc":{"start":{"line":24,"column":4},"end":{"line":24,"column":31}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":24,"column":31}}]},"3":{"loc":{"start":{"line":31,"column":4},"end":{"line":35,"column":null}},"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":35,"column":null}}]},"4":{"loc":{"start":{"line":33,"column":8},"end":{"line":34,"column":63}},"type":"if","locations":[{"start":{"line":33,"column":8},"end":{"line":34,"column":63}}]},"5":{"loc":{"start":{"line":41,"column":4},"end":{"line":43,"column":null}},"type":"if","locations":[{"start":{"line":41,"column":4},"end":{"line":43,"column":null}}]},"6":{"loc":{"start":{"line":48,"column":8},"end":{"line":48,"column":98}},"type":"binary-expr","locations":[{"start":{"line":48,"column":8},"end":{"line":48,"column":38}},{"start":{"line":48,"column":43},"end":{"line":48,"column":67}},{"start":{"line":48,"column":71},"end":{"line":48,"column":97}}]},"7":{"loc":{"start":{"line":55,"column":8},"end":{"line":55,"column":74}},"type":"binary-expr","locations":[{"start":{"line":55,"column":8},"end":{"line":55,"column":38}},{"start":{"line":55,"column":42},"end":{"line":55,"column":74}}]},"8":{"loc":{"start":{"line":76,"column":4},"end":{"line":78,"column":null}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":78,"column":null}}]},"9":{"loc":{"start":{"line":85,"column":4},"end":{"line":87,"column":null}},"type":"if","locations":[{"start":{"line":85,"column":4},"end":{"line":87,"column":null}}]},"10":{"loc":{"start":{"line":95,"column":4},"end":{"line":97,"column":null}},"type":"if","locations":[{"start":{"line":95,"column":4},"end":{"line":97,"column":null}}]},"11":{"loc":{"start":{"line":104,"column":4},"end":{"line":106,"column":null}},"type":"if","locations":[{"start":{"line":104,"column":4},"end":{"line":106,"column":null}}]},"12":{"loc":{"start":{"line":114,"column":4},"end":{"line":116,"column":null}},"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":116,"column":null}}]},"13":{"loc":{"start":{"line":123,"column":4},"end":{"line":125,"column":null}},"type":"if","locations":[{"start":{"line":123,"column":4},"end":{"line":125,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":0,"4":2,"5":0,"6":0,"7":0,"8":2,"9":0,"10":0,"11":0,"12":2,"13":0,"14":0,"15":0,"16":0,"17":2,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0},"b":{"0":[0],"1":[0],"2":[0],"3":[0],"4":[0],"5":[0],"6":[0,0,0],"7":[0,0],"8":[0],"9":[0],"10":[0],"11":[0],"12":[0],"13":[0]}}
+}
diff --git a/coverage/lcov-report/OdaProjectTree.ts.html b/coverage/lcov-report/OdaProjectTree.ts.html
new file mode 100644
index 0000000..65dd82e
--- /dev/null
+++ b/coverage/lcov-report/OdaProjectTree.ts.html
@@ -0,0 +1,211 @@
+
+
+
+
+
+ Code coverage report for OdaProjectTree.ts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 35.71%
+ Statements
+ 5/14
+
+
+
+
+ 100%
+ Branches
+ 0/0
+
+
+
+
+ 20%
+ Functions
+ 1/5
+
+
+
+
+ 35.71%
+ Lines
+ 5/14
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+
+
+1x
+
+
+
+
+
+
+
+1x
+
+
+1x
+
+
+1x
+
+
+1x
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ import {OdaPmTask} from "./OdaPmTask";
+import {OdaPmProject} from "./OdaPmProject";
+import {I_OdaPmWorkflow} from "./workflow-def";
+import * as path from "path";
+
+
+/**
+ * The root is /.
+ * @param projectDict Path to OdaPmProject
+ * @param taskPath
+ */
+export function getProjectByTaskPath<T>(projectDict: Record<string, T>, taskPath: string) {
+ // This is checking implementation: if a task has no project defined with it or in its file,
+ // it will find projects in its parent directory.
+ while (!projectDict.hasOwnProperty(taskPath)) {
+ taskPath = path.dirname(taskPath);
+ }
+ return projectDict[taskPath]
+}
+
+export class O daProjectTree {
+ // Path to Project
+ projectDict: Record<string, OdaPmProject> = {};
+
+ static buildProjectShadowTree(projects: OdaPmProject[]): OdaProjectTree {
+ const tree = new OdaProjectTree();
+ for (const project of projects) {
+ for (const path of project.defPaths) {
+ tree.projectDict[path] = project
+ }
+ }
+ return tree;
+ }
+
+ getProjectByPmTask( pmTask: OdaPmTask): OdaPmProject {
+ return getProjectByTaskPath(this.projectDict, pmTask.getProjectPath());
+ }
+
+ getProjectByPmWorkflow( pmWorkflow: I_OdaPmWorkflow): OdaPmProject {
+ return getProjectByTaskPath(this.projectDict, pmWorkflow.getProjectPath());
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/base.css b/coverage/lcov-report/base.css
new file mode 100644
index 0000000..f418035
--- /dev/null
+++ b/coverage/lcov-report/base.css
@@ -0,0 +1,224 @@
+body, html {
+ margin:0; padding: 0;
+ height: 100%;
+}
+body {
+ font-family: Helvetica Neue, Helvetica, Arial;
+ font-size: 14px;
+ color:#333;
+}
+.small { font-size: 12px; }
+*, *:after, *:before {
+ -webkit-box-sizing:border-box;
+ -moz-box-sizing:border-box;
+ box-sizing:border-box;
+ }
+h1 { font-size: 20px; margin: 0;}
+h2 { font-size: 14px; }
+pre {
+ font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ margin: 0;
+ padding: 0;
+ -moz-tab-size: 2;
+ -o-tab-size: 2;
+ tab-size: 2;
+}
+a { color:#0074D9; text-decoration:none; }
+a:hover { text-decoration:underline; }
+.strong { font-weight: bold; }
+.space-top1 { padding: 10px 0 0 0; }
+.pad2y { padding: 20px 0; }
+.pad1y { padding: 10px 0; }
+.pad2x { padding: 0 20px; }
+.pad2 { padding: 20px; }
+.pad1 { padding: 10px; }
+.space-left2 { padding-left:55px; }
+.space-right2 { padding-right:20px; }
+.center { text-align:center; }
+.clearfix { display:block; }
+.clearfix:after {
+ content:'';
+ display:block;
+ height:0;
+ clear:both;
+ visibility:hidden;
+ }
+.fl { float: left; }
+@media only screen and (max-width:640px) {
+ .col3 { width:100%; max-width:100%; }
+ .hide-mobile { display:none!important; }
+}
+
+.quiet {
+ color: #7f7f7f;
+ color: rgba(0,0,0,0.5);
+}
+.quiet a { opacity: 0.7; }
+
+.fraction {
+ font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
+ font-size: 10px;
+ color: #555;
+ background: #E8E8E8;
+ padding: 4px 5px;
+ border-radius: 3px;
+ vertical-align: middle;
+}
+
+div.path a:link, div.path a:visited { color: #333; }
+table.coverage {
+ border-collapse: collapse;
+ margin: 10px 0 0 0;
+ padding: 0;
+}
+
+table.coverage td {
+ margin: 0;
+ padding: 0;
+ vertical-align: top;
+}
+table.coverage td.line-count {
+ text-align: right;
+ padding: 0 5px 0 20px;
+}
+table.coverage td.line-coverage {
+ text-align: right;
+ padding-right: 10px;
+ min-width:20px;
+}
+
+table.coverage td span.cline-any {
+ display: inline-block;
+ padding: 0 5px;
+ width: 100%;
+}
+.missing-if-branch {
+ display: inline-block;
+ margin-right: 5px;
+ border-radius: 3px;
+ position: relative;
+ padding: 0 4px;
+ background: #333;
+ color: yellow;
+}
+
+.skip-if-branch {
+ display: none;
+ margin-right: 10px;
+ position: relative;
+ padding: 0 4px;
+ background: #ccc;
+ color: white;
+}
+.missing-if-branch .typ, .skip-if-branch .typ {
+ color: inherit !important;
+}
+.coverage-summary {
+ border-collapse: collapse;
+ width: 100%;
+}
+.coverage-summary tr { border-bottom: 1px solid #bbb; }
+.keyline-all { border: 1px solid #ddd; }
+.coverage-summary td, .coverage-summary th { padding: 10px; }
+.coverage-summary tbody { border: 1px solid #bbb; }
+.coverage-summary td { border-right: 1px solid #bbb; }
+.coverage-summary td:last-child { border-right: none; }
+.coverage-summary th {
+ text-align: left;
+ font-weight: normal;
+ white-space: nowrap;
+}
+.coverage-summary th.file { border-right: none !important; }
+.coverage-summary th.pct { }
+.coverage-summary th.pic,
+.coverage-summary th.abs,
+.coverage-summary td.pct,
+.coverage-summary td.abs { text-align: right; }
+.coverage-summary td.file { white-space: nowrap; }
+.coverage-summary td.pic { min-width: 120px !important; }
+.coverage-summary tfoot td { }
+
+.coverage-summary .sorter {
+ height: 10px;
+ width: 7px;
+ display: inline-block;
+ margin-left: 0.5em;
+ background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
+}
+.coverage-summary .sorted .sorter {
+ background-position: 0 -20px;
+}
+.coverage-summary .sorted-desc .sorter {
+ background-position: 0 -10px;
+}
+.status-line { height: 10px; }
+/* yellow */
+.cbranch-no { background: yellow !important; color: #111; }
+/* dark red */
+.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
+.low .chart { border:1px solid #C21F39 }
+.highlighted,
+.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
+ background: #C21F39 !important;
+}
+/* medium red */
+.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
+/* light red */
+.low, .cline-no { background:#FCE1E5 }
+/* light green */
+.high, .cline-yes { background:rgb(230,245,208) }
+/* medium green */
+.cstat-yes { background:rgb(161,215,106) }
+/* dark green */
+.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
+.high .chart { border:1px solid rgb(77,146,33) }
+/* dark yellow (gold) */
+.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
+.medium .chart { border:1px solid #f9cd0b; }
+/* light yellow */
+.medium { background: #fff4c2; }
+
+.cstat-skip { background: #ddd; color: #111; }
+.fstat-skip { background: #ddd; color: #111 !important; }
+.cbranch-skip { background: #ddd !important; color: #111; }
+
+span.cline-neutral { background: #eaeaea; }
+
+.coverage-summary td.empty {
+ opacity: .5;
+ padding-top: 4px;
+ padding-bottom: 4px;
+ line-height: 1;
+ color: #888;
+}
+
+.cover-fill, .cover-empty {
+ display:inline-block;
+ height: 12px;
+}
+.chart {
+ line-height: 0;
+}
+.cover-empty {
+ background: white;
+}
+.cover-full {
+ border-right: none !important;
+}
+pre.prettyprint {
+ border: none !important;
+ padding: 0 !important;
+ margin: 0 !important;
+}
+.com { color: #999 !important; }
+.ignore-none { color: #999; font-weight: normal; }
+
+.wrapper {
+ min-height: 100%;
+ height: auto !important;
+ height: 100%;
+ margin: 0 auto -48px;
+}
+.footer, .push {
+ height: 48px;
+}
diff --git a/coverage/lcov-report/block-navigation.js b/coverage/lcov-report/block-navigation.js
new file mode 100644
index 0000000..cc12130
--- /dev/null
+++ b/coverage/lcov-report/block-navigation.js
@@ -0,0 +1,87 @@
+/* eslint-disable */
+var jumpToCode = (function init() {
+ // Classes of code we would like to highlight in the file view
+ var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
+
+ // Elements to highlight in the file listing view
+ var fileListingElements = ['td.pct.low'];
+
+ // We don't want to select elements that are direct descendants of another match
+ var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
+
+ // Selecter that finds elements on the page to which we can jump
+ var selector =
+ fileListingElements.join(', ') +
+ ', ' +
+ notSelector +
+ missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
+
+ // The NodeList of matching elements
+ var missingCoverageElements = document.querySelectorAll(selector);
+
+ var currentIndex;
+
+ function toggleClass(index) {
+ missingCoverageElements
+ .item(currentIndex)
+ .classList.remove('highlighted');
+ missingCoverageElements.item(index).classList.add('highlighted');
+ }
+
+ function makeCurrent(index) {
+ toggleClass(index);
+ currentIndex = index;
+ missingCoverageElements.item(index).scrollIntoView({
+ behavior: 'smooth',
+ block: 'center',
+ inline: 'center'
+ });
+ }
+
+ function goToPrevious() {
+ var nextIndex = 0;
+ if (typeof currentIndex !== 'number' || currentIndex === 0) {
+ nextIndex = missingCoverageElements.length - 1;
+ } else if (missingCoverageElements.length > 1) {
+ nextIndex = currentIndex - 1;
+ }
+
+ makeCurrent(nextIndex);
+ }
+
+ function goToNext() {
+ var nextIndex = 0;
+
+ if (
+ typeof currentIndex === 'number' &&
+ currentIndex < missingCoverageElements.length - 1
+ ) {
+ nextIndex = currentIndex + 1;
+ }
+
+ makeCurrent(nextIndex);
+ }
+
+ return function jump(event) {
+ if (
+ document.getElementById('fileSearch') === document.activeElement &&
+ document.activeElement != null
+ ) {
+ // if we're currently focused on the search input, we don't want to navigate
+ return;
+ }
+
+ switch (event.which) {
+ case 78: // n
+ case 74: // j
+ goToNext();
+ break;
+ case 66: // b
+ case 75: // k
+ case 80: // p
+ goToPrevious();
+ break;
+ }
+ };
+})();
+window.addEventListener('keydown', jumpToCode);
diff --git a/coverage/lcov-report/data-model/BaseDatabaseObject.ts.html b/coverage/lcov-report/data-model/BaseDatabaseObject.ts.html
new file mode 100644
index 0000000..fd3bbf4
--- /dev/null
+++ b/coverage/lcov-report/data-model/BaseDatabaseObject.ts.html
@@ -0,0 +1,103 @@
+
+
+
+
+
+ Code coverage report for data-model/BaseDatabaseObject.ts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 50%
+ Statements
+ 1/2
+
+
+
+
+ 100%
+ Branches
+ 0/0
+
+
+
+
+ 0%
+ Functions
+ 0/1
+
+
+
+
+ 50%
+ Lines
+ 1/2
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+1
+2
+3
+4
+5
+6
+7 2x
+
+
+
+
+
+ export class BaseDatabaseObject {
+ internalKey: number; // int
+ constructor() {
+ this.internalKey = 0;
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/data-model/OdaPmProject.ts.html b/coverage/lcov-report/data-model/OdaPmProject.ts.html
new file mode 100644
index 0000000..99677e3
--- /dev/null
+++ b/coverage/lcov-report/data-model/OdaPmProject.ts.html
@@ -0,0 +1,580 @@
+
+
+
+
+
+ Code coverage report for data-model/OdaPmProject.ts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 17.56%
+ Statements
+ 13/74
+
+
+
+
+ 0%
+ Branches
+ 0/14
+
+
+
+
+ 0%
+ Functions
+ 0/13
+
+
+
+
+ 17.56%
+ Lines
+ 13/74
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+2x
+2x
+2x
+
+2x
+
+2x
+2x
+2x
+2x
+2x
+
+
+
+
+
+2x
+2x
+
+2x
+
+
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ import {SMarkdownPage} from "obsidian-dataview";
+import {devLog} from "../utils/env-util";
+import {getProjectNameFromTag, I_OdaPmWorkflow} from "./workflow-def";
+import {BaseDatabaseObject} from "./BaseDatabaseObject";
+import {OdaPmTask} from "./OdaPmTask";
+import * as path from "path";
+
+const Frontmatter_FolderProject = "tpm_project_root";
+const Frontmatter_FileProject = "tpm_project";
+export const ProjectName_Unclassified = "Unclassified";
+export const Tag_Prefix_Project = "#tpm/project/";
+const Project_Def_Enum_Array = [
+ "folder", // Project_FolderProject_Frontmatter
+ "file", // Project_FileProject_Frontmatter
+ "tag_override", // task or wf override
+ "system"//unclassified
+]
+let currentMaxProjectId = 0;
+export const globalProjectMap: Map<string, OdaPmProject> = new Map<string, OdaPmProject>();
+
+export function clearGlobalProjectMap( ) {
+ globalProjectMap.clear();
+ currentMaxProjectId = 0;
+}
+
+export
+type ProjectDefinedType = typeof Project_Def_Enum_Array[number]
+
+export class OdaPmProject extends BaseDatabaseObject {
+ name: string;
+ definedTypes: ProjectDefinedType[];
+ pages: SMarkdownPage[];
+ workflows: I_OdaPmWorkflow[];
+ pmTasks: OdaPmTask[];
+ defPaths: string[]; // Each project has multiple paths
+
+ constructor() {
+ super();
+ this.definedTypes = []
+ this.pages = []
+ this.workflows = []
+ this.pmTasks = []
+ this.defPaths = [];
+ }
+
+
+ hasDefinedType( type: ProjectDefinedType) {
+ return this.definedTypes.includes(type);
+ }
+
+// region Factory
+ private addDefinedType( type: ProjectDefinedType) {
+ I if (!this.hasDefinedType(type)) {
+ this.definedTypes.push(type);
+ }
+ }
+
+ private addPage( page: SMarkdownPage) {
+ I if (!this.pages.includes(page)) {
+ this.pages.push(page);
+ }
+ }
+
+ private addDefPath( obsidianPath: string) {
+ // Obsidian path is relative. Add '/' before path to form a tree
+ obsidianPath = (obsidianPath.startsWith("/") ? "" : "/") + obsidianPath; // prevent doubling leading '/'
+ this.defPaths.push(obsidianPath);
+ }
+
+ /**
+ *
+ * @param page
+ * @return null if no new project is created.
+ */
+ public static createProjectFromFrontmatter(page: SMarkdownPage) {
+ I if (!page)
+ return null;
+
+ const fm = page["frontmatter"];
+ const keys = Object.keys(fm);
+
+ let name = null;
+ let definedType = null;
+ let defPath = null;
+ if (keys.includes(Frontmatter_FolderProject)) {
+ name = fm[Frontmatter_FolderProject];
+ definedType = "folder";
+ // If defined by a folder root (TPM-0.2.0-1-1), path = folder's path, not the file's path.
+ defPath = path.dirname(page.path);
+
+ I if (keys.includes(Frontmatter_FileProject)) {
+ // TPM-0.2.0-1-5
+ // TODO Notify is disturbing in dev mode
+ devLog(`Frontmatter in ${page.path} has both folder and file frontmatter. Using ${Frontmatter_FolderProject}.`, 5)
+ }
+ } else if (keys.includes(Frontmatter_FileProject)) {
+ name = fm[Frontmatter_FileProject];
+ definedType = "file";
+ // If this project is defined by a file (TPM-0.2.0-1-3), it's path is the same as the file.
+ defPath = page.path;
+ } else {
+ return null;
+ }
+
+ const project = this.getOrCreateProject(name)
+ project.addDefinedType(definedType);
+ project.addPage(page);
+ project.addDefPath(defPath)
+ globalProjectMap.set(name, project);
+ devLog(`Project ${name} created. Adding page ${page.path}.`)
+ return project;
+ }
+
+ public static createProjectFromTaskTag(task: OdaPmTask, tag: string) {
+ const name = getProjectNameFromTag(tag);
+ const project = this.getOrCreateProject(name)
+ project.addDefinedType('tag_override');
+ // If defined by a task, path = `path/to/file:{project name}`.
+ project.addDefPath(task.getProjectPath());
+ return project;
+ }
+
+ public static createUnclassifiedProject() {
+ const project = this.getOrCreateProject(ProjectName_Unclassified)
+ project.addDefinedType("system")
+ project.addDefPath("");
+ return project;
+ }
+
+ private static createProject(name: string) {
+ const p = new OdaPmProject();
+ p.name = name;
+ p.internalKey = ++currentMaxProjectId;
+ return p;
+ }
+
+ private static getOrCreateProject(name: string) {
+ const project = globalProjectMap.has(name) ?
+ globalProjectMap.get(name) as OdaPmProject
+ : this.createProject(name);
+
+ return project;
+ }
+
+
+// endregion
+
+
+// region Link Task and Workflow
+ linkTask( pmTask: OdaPmTask) {
+ I if (!this.pmTasks.includes(pmTask)) {
+ this.pmTasks.push(pmTask);
+ }
+ pmTask.addProject(this);
+ }
+
+ linkWorkflow( pmWorkflow: I_OdaPmWorkflow) {
+ I if (!this.workflows.includes(pmWorkflow)) {
+ this.workflows.push(pmWorkflow);
+ }
+ pmWorkflow.addProject(this);
+ }
+
+// endregion
+}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/data-model/OdaPmStep.ts.html b/coverage/lcov-report/data-model/OdaPmStep.ts.html
new file mode 100644
index 0000000..3598f83
--- /dev/null
+++ b/coverage/lcov-report/data-model/OdaPmStep.ts.html
@@ -0,0 +1,190 @@
+
+
+
+
+
+ Code coverage report for data-model/OdaPmStep.ts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 23.07%
+ Statements
+ 3/13
+
+
+
+
+ 0%
+ Branches
+ 0/2
+
+
+
+
+ 0%
+ Functions
+ 0/3
+
+
+
+
+ 25%
+ Lines
+ 3/12
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36 2x
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2x
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+
+ import {I_OdaPmStep, Tag_Prefix_Step} from "./workflow-def";
+
+class OdaPmStep implements I_OdaPmStep {
+ tag: string;
+ name: string;
+
+
+ constructor(t ag: string) {
+ this.tag = tag;
+ this.name = tag.replace(Tag_Prefix_Step, "");
+ }
+
+ toObject( ) {
+ return {
+ // tag: this.tag,
+ name: this.name,
+ }
+ }
+}
+
+export const globalStepMap: Map<string, OdaPmStep> = new Map<string, OdaPmStep>();
+
+/**
+ * use global Pm Step library instead of creating new instances
+ * @param tag
+ */
+export function getOrCreateStep( tag: string | undefined): OdaPmStep | null {
+ I if (!tag) return null;
+ I if (globalStepMap.has(tag)) {
+ return <OdaPmStep>globalStepMap.get(tag);
+ }
+ const step = new OdaPmStep(tag);
+ globalStepMap.set(tag, step);
+ return step;
+}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/data-model/OdaPmTask.ts.html b/coverage/lcov-report/data-model/OdaPmTask.ts.html
new file mode 100644
index 0000000..0b557b9
--- /dev/null
+++ b/coverage/lcov-report/data-model/OdaPmTask.ts.html
@@ -0,0 +1,676 @@
+
+
+
+
+
+ Code coverage report for data-model/OdaPmTask.ts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 5.33%
+ Statements
+ 4/75
+
+
+
+
+ 0%
+ Branches
+ 0/30
+
+
+
+
+ 0%
+ Functions
+ 0/27
+
+
+
+
+ 5.97%
+ Lines
+ 4/67
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+182
+183
+184
+185
+186
+187
+188
+189
+190
+191
+192
+193
+194
+195
+196
+197
+198
+
+2x
+
+
+
+
+
+
+
+
+
+2x
+2x
+
+2x
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ import {STask} from "obsidian-dataview";
+import {OdaPmProject} from "./OdaPmProject";
+import {
+ addTagText,
+ getProjectPathFromSTask,
+ getProjectTagFromSTask,
+ I_OdaPmProjectTask,
+ I_OdaPmStep,
+ I_OdaPmWorkflow,
+ removeTagText,
+ trimTagsFromTask
+} from "./workflow-def";
+import {BaseDatabaseObject} from "./BaseDatabaseObject";
+import {getOrCreateStep} from "./OdaPmStep";
+
+export class OdaPmTask extends BaseDatabaseObject implements I_OdaPmProjectTask {
+ boundTask: STask;
+ // without any step and typeDef tags
+ summary: string;
+ // raw
+ text: string;
+ type: I_OdaPmWorkflow;
+ // One for chain. Many for checkbox
+ currentSteps: I_OdaPmStep[];
+ // 0.2.0
+ projects: OdaPmProject[];
+
+ constructor(t ype: I_OdaPmWorkflow, task: STask) {
+ super();
+ this.boundTask = task;
+ this.text = task.text;
+ this.type = type;
+ this.summary = trimTagsFromTask(task)
+ this.currentSteps = [];
+ for (const tag of task.tags) {
+ I if (type.includesStep(tag)) {
+ const step = getOrCreateStep(tag);
+ I if (step !== null)
+ this.currentSteps.push(step)
+ }
+ }
+ this.projects = []
+ }
+
+ toObject( ) {
+ return {
+ summary: this.summary,
+ text: this.text,
+ type: this.type,
+ currentSteps: this.currentSteps.map(k => k.toObject()) ,
+ }
+ }
+
+ isMdCompleted( ) {
+ return this.boundTask.checked;
+ }
+
+ stepCompleted( ): boolean {
+ switch (this.type.type) {
+ case "chain": {
+ const tagStep = getOrCreateStep(this.type.stepsDef.last()?.tag);
+ I if (tagStep === null) return false;
+ return this.currentSteps.includes(tagStep)
+ }
+ case "checkbox":
+ return this.allStepsCompleted()
+ }
+ }
+
+ getLastStep( ): I_OdaPmStep | undefined {
+ return this.currentSteps.last();
+ }
+
+ /**
+ * Users may add step tags in md, we find the furthest step in the chain.
+ */
+ private getFurthestStep( ) {
+ for (let i = this.type.stepsDef.length - 1; i >= 0; i--) {
+ I if (this.currentSteps.includes(this.type.stepsDef[i]))
+ return this.type.stepsDef[i];
+ }
+ return null;
+ }
+
+ private allStepsCompleted( ): boolean {
+ return this.currentSteps.length == this.type.stepsDef.length
+ }
+
+ lackOnlyOneStep( stepTag: string | undefined): boolean {
+ I if (!stepTag) return false;
+ switch (this.type.type) {
+ case "chain":
+ // This is the last step, ofc we lack this.
+ return this.type.stepsDef.last()?.tag === stepTag
+ case "checkbox": {
+ const hasTag = this.currentSteps.filter(k => k.tag == stepTag) .length > 0;
+ return this.currentSteps.length == this.type.stepsDef.length - 1 && !hasTag
+ }
+ }
+ }
+
+ hasStepName( stepName: string) {
+ // TODO Performance
+ return this.currentSteps.filter(k => k.name == stepName) .length > 0;
+ }
+
+ addStepTag( stepTag: string): string {
+ const text = this.boundTask.text;
+ return addTagText(text, stepTag);
+ }
+
+ removeStepTag( stepTag: string) {
+ return removeTagText(this.boundTask.text, stepTag);
+ }
+
+ removeAllStepTags( ) {
+ let oriText = this.text;
+ for (const step of this.type.stepsDef) {
+ I if (this.currentSteps.includes(step)) {
+ oriText = removeTagText(oriText, step.tag)
+ }
+ }
+ return oriText;
+ }
+
+ private addAllStepTags( oriText: string) {
+ for (const step of this.type.stepsDef) {
+ I if (this.currentSteps.includes(step)) {
+ continue;
+ }
+ oriText = addTagText(oriText, step.tag)
+ }
+ return oriText;
+ }
+
+ private keepLastStepTag( ) {
+ const lastStep = this.type.stepsDef.last();
+ return this.keepOneStepTag(lastStep?.tag);
+ }
+
+ completeStepTag( ) {
+ switch (this.type.type) {
+ case "chain":
+ return this.keepLastStepTag();
+ case "checkbox":
+ return this.addAllStepTags(this.text);
+ }
+ }
+
+ keepOneStepTag( stepTag: string | undefined) {
+ const cleanText = this.removeAllStepTags();
+ I if (stepTag === undefined) return cleanText;
+ return addTagText(cleanText, stepTag)
+ }
+
+ /**
+ * Union > 0
+ * @param displayTags
+ */
+ hasAnyTag( displayTags: string[]) {
+ for (const tag of this.boundTask.tags) {
+ I if (displayTags.includes(tag)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ // region Project
+
+ getProjectTag( ): string | null {
+ return getProjectTagFromSTask(this.boundTask);
+ }
+
+ addProject( project: OdaPmProject) {
+ // TODO performance
+ I if (!this.projects.includes(project)) {
+ this.projects.push(project);
+ }
+ }
+
+ isInProject( name: string) {
+ // TODO performance
+ return this.projects.filter(k => k.name === name) .length > 0;
+ }
+
+ getProjectPath( ): string {
+ return getProjectPathFromSTask(this.boundTask, true);
+ }
+
+ // endregion
+
+ // debug
+ getProjectNames( ): string[] {
+ return this.projects.map(k => k.name) ;
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/data-model/OdaProjectTree.ts.html b/coverage/lcov-report/data-model/OdaProjectTree.ts.html
new file mode 100644
index 0000000..792b7ab
--- /dev/null
+++ b/coverage/lcov-report/data-model/OdaProjectTree.ts.html
@@ -0,0 +1,211 @@
+
+
+
+
+
+ Code coverage report for data-model/OdaProjectTree.ts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 42.85%
+ Statements
+ 6/14
+
+
+
+
+ 100%
+ Branches
+ 0/0
+
+
+
+
+ 20%
+ Functions
+ 1/5
+
+
+
+
+ 42.85%
+ Lines
+ 6/14
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+
+
+1x
+
+
+
+
+
+
+
+1x
+
+
+10x
+6x
+
+10x
+
+
+1x
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ import {OdaPmTask} from "./OdaPmTask";
+import {OdaPmProject} from "./OdaPmProject";
+import {I_OdaPmWorkflow} from "./workflow-def";
+import * as path from "path";
+
+
+/**
+ * The root is /.
+ * @param projectDict Path to OdaPmProject
+ * @param taskPath
+ */
+export function getProjectByTaskPath<T>(projectDict: Record<string, T>, taskPath: string) {
+ // This is checking implementation: if a task has no project defined with it or in its file,
+ // it will find projects in its parent directory.
+ while (!projectDict.hasOwnProperty(taskPath)) {
+ taskPath = path.dirname(taskPath);
+ }
+ return projectDict[taskPath]
+}
+
+export class O daProjectTree {
+ // Path to Project
+ projectDict: Record<string, OdaPmProject> = {};
+
+ static buildProjectShadowTree(projects: OdaPmProject[]): OdaProjectTree {
+ const tree = new OdaProjectTree();
+ for (const project of projects) {
+ for (const path of project.defPaths) {
+ tree.projectDict[path] = project
+ }
+ }
+ return tree;
+ }
+
+ getProjectByPmTask( pmTask: OdaPmTask): OdaPmProject {
+ return getProjectByTaskPath(this.projectDict, pmTask.getProjectPath());
+ }
+
+ getProjectByPmWorkflow( pmWorkflow: I_OdaPmWorkflow): OdaPmProject {
+ return getProjectByTaskPath(this.projectDict, pmWorkflow.getProjectPath());
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/data-model/index.html b/coverage/lcov-report/data-model/index.html
new file mode 100644
index 0000000..92d8780
--- /dev/null
+++ b/coverage/lcov-report/data-model/index.html
@@ -0,0 +1,191 @@
+
+
+
+
+
+ Code coverage report for data-model
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 22.95%
+ Statements
+ 56/244
+
+
+
+
+ 1.56%
+ Branches
+ 1/64
+
+
+
+
+ 4.76%
+ Functions
+ 3/63
+
+
+
+
+ 24.13%
+ Lines
+ 56/232
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+
+
+
+ File
+
+ Statements
+
+ Branches
+
+ Functions
+
+ Lines
+
+
+
+
+ BaseDatabaseObject.ts
+
+
+
+ 50%
+ 1/2
+ 100%
+ 0/0
+ 0%
+ 0/1
+ 50%
+ 1/2
+
+
+
+ OdaPmProject.ts
+
+
+
+ 17.56%
+ 13/74
+ 0%
+ 0/14
+ 0%
+ 0/13
+ 17.56%
+ 13/74
+
+
+
+ OdaPmStep.ts
+
+
+
+ 23.07%
+ 3/13
+ 0%
+ 0/2
+ 0%
+ 0/3
+ 25%
+ 3/12
+
+
+
+ OdaPmTask.ts
+
+
+
+ 5.33%
+ 4/75
+ 0%
+ 0/30
+ 0%
+ 0/27
+ 5.97%
+ 4/67
+
+
+
+ OdaProjectTree.ts
+
+
+
+ 42.85%
+ 6/14
+ 100%
+ 0/0
+ 20%
+ 1/5
+ 42.85%
+ 6/14
+
+
+
+ workflow-def.ts
+
+
+
+ 43.93%
+ 29/66
+ 5.55%
+ 1/18
+ 14.28%
+ 2/14
+ 46.03%
+ 29/63
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/data-model/workflow-def.ts.html b/coverage/lcov-report/data-model/workflow-def.ts.html
new file mode 100644
index 0000000..9a29b8c
--- /dev/null
+++ b/coverage/lcov-report/data-model/workflow-def.ts.html
@@ -0,0 +1,625 @@
+
+
+
+
+
+ Code coverage report for data-model/workflow-def.ts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 43.93%
+ Statements
+ 29/66
+
+
+
+
+ 5.55%
+ Branches
+ 1/18
+
+
+
+
+ 14.28%
+ Functions
+ 2/14
+
+
+
+
+ 46.03%
+ Lines
+ 29/63
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157
+158
+159
+160
+161
+162
+163
+164
+165
+166
+167
+168
+169
+170
+171
+172
+173
+174
+175
+176
+177
+178
+179
+180
+181
+2x
+2x
+
+2x
+2x
+2x
+2x
+2x
+2x
+
+2x
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+
+
+
+2x
+
+
+
+
+2x
+
+
+
+
+2x
+
+
+
+
+
+2x
+4x
+4x
+
+
+2x
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2x
+
+2x
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+
+
+
+2x
+
+1x
+
+1x
+
+
+
+2x
+
+
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+2x
+
+
+
+
+
+
+
+
+
+ import {STask} from "obsidian-dataview";
+import {OdaPmTask} from "./OdaPmTask";
+import {OdaPmProject, Tag_Prefix_Project} from "./OdaPmProject";
+
+export const Tag_Prefix_Step = "#tpm/step/";
+export const Tag_Prefix_Workflow = "#tpm/workflow_type/";
+export const Tag_Prefix_Tag = "#tpm/tag/";
+export const TaskStatus_checked = "x";
+export const TaskStatus_unchecked = " ";
+export const Tag_Prefix_TaskType = "#tpm/workflow/";
+
+export const Workflow_Type_Enum_Array = [
+ "chain",
+ "checkbox",
+] as const;
+export type WorkflowType = typeof Workflow_Type_Enum_Array[number];
+
+const Type_Definition_Tags: string[] = []
+
+
+function initWorkflowTypeTags( ) {
+ I if (Type_Definition_Tags.length == 0) {
+ for (const workflow of Workflow_Type_Enum_Array) {
+ Type_Definition_Tags.push(Tag_Prefix_Workflow + workflow)
+ }
+ }
+}
+
+export function getWorkflowTypeTags( ): string[] {
+ initWorkflowTypeTags();
+ return Type_Definition_Tags;
+}
+
+export function getWorkflowTypeTag( type: WorkflowType): string {
+ initWorkflowTypeTags();
+ return Type_Definition_Tags[Workflow_Type_Enum_Array.indexOf(type)];
+}
+
+export function isTaskSummaryValid( task: STask) {
+ // Empty names for workflow def and tasks are not allowed
+ const summary = trimTagsFromTask(task)
+ return summary && summary.length > 0;
+}
+
+export function matchTags(text: string) {
+ const tags = text.match(POTENTIAL_FULLTAG_MATCHER)
+ return tags;
+}
+
+export function trimTagsFromTask( task: STask): string {
+ // remove all tags from text
+ let text: string = task.text;
+ // dataview's tag matching may contain false positive. for example [[#Render]] will be recognized as a tag
+ const tags = matchTags(task.text);
+ I if (!tags) return text.trim();
+ for (const tag of tags) {
+ text = text.replace(tag, "")
+ }
+ return text.trim()
+}
+
+// https://github.com/blacksmithgu/obsidian-dataview/blob/322217ad563defbc213f6731c9cd5a5f5a7e3638/src/data-import/common.ts#L5
+// Forbid @ since obsidian does not allow it
+
+const POTENTIAL_TAG_MATCHER = /[^+@\s,;.:!&*?'"`()\[\]{}]+/giu;
+// With hashtag and spaces before
+const POTENTIAL_FULLTAG_MATCHER = /\s+#[^+@\s,;.:!&*?'"`()\[\]{}]+/giu;
+
+/**
+ * Only take the first word
+ * @param text workflow name without tags
+ */
+export function getWorkflowNameFromRawText( text: string) {
+ const found = text.match(POTENTIAL_TAG_MATCHER)
+ return found ? found[0] : null;
+}
+
+export interface I_OdaPmProjectTask {
+
+ // 0.2.0
+ projects: OdaPmProject[];
+ addProject: (project: OdaPmProject) => void;
+ isInProject: (name: string) => boolean;
+ /**
+ * Called when no project is added. Returns the path of the markdown path.
+ */
+ getProjectPath: () => string;
+}
+
+// Unit Test
+// console.log(getWorkflowNameFromRawText("å¸¦ä½ é£ž å¸¦ä½ é£ž2 \n vads ads f \t li"))
+
+export interface I_OdaPmStep {
+ tag: string;
+ name: string;
+ toObject: () => object
+}
+
+
+export interface I_OdaPmWorkflow extends I_OdaPmProjectTask {
+ boundTask: STask;
+ name: string;
+ stepsDef: I_OdaPmStep[];
+ type: WorkflowType;
+ tag: string;
+
+ clearSteps: () => void
+ addStep: (tag: string) => void
+ includesStep: (tag: string) => boolean
+}
+
+/**
+ * Dont check.
+ */
+export function factoryTask( task: STask, type: I_OdaPmWorkflow) {
+ return new OdaPmTask(type, task)
+}
+
+
+// region StepTag Manipulate
+/**
+ * add a tag at the end of the line. the tag will be followed by a space
+ * @param text
+ * @param stepTag
+ */
+export function addTagText(text: string, stepTag: string) {
+ // With the rule that a task cannot cross multiple lines, we can safely assume that the last char is \n if there is a \n.
+ const hasTrailingEol = text.indexOf("\n") == text.length - 1
+ // We believe dataview gives the correct result. In the latter case there will be no step.tag in the original text if includes is false.
+ return `${text.trimEnd()} ${stepTag} ` + (hasTrailingEol ? "\n" : "");
+}
+
+// TODO wont remove the space before or after the tag
+export function removeTagText( text: string, stepTag: string) {
+ return text.replace(stepTag, "");
+}
+
+
+// endregion
+
+
+export function isTaskSingleLine( task: STask) {
+ I if (!task.text) return false;
+ I if (!task.text.includes("\n")) return true;
+ const firstOccurrence = task.text.indexOf("\n");
+ // check if there are text after the first occurrence
+ const hasTextAfterEol = task.text.length <= firstOccurrence + 1;
+
+ return hasTextAfterEol;
+}
+
+// region Project
+export function getProjectTagFromSTask( task: STask) {
+
+ for (const tag of task.tags) {
+ I if (tag.startsWith(Tag_Prefix_Project)) {
+ return tag;
+ }
+ }
+ return null;
+}
+
+export function getProjectNameFromTag( tag: string) {
+ const name = tag.replace(Tag_Prefix_Project, "");
+ return name;
+}
+
+// - A task's path is
+// 1. If it defines a project, the project name is appended.
+// 2. If not, the task's path is the same as the file's.
+export function getProjectPathFromSTask( task: STask, leadingSlash = false) {
+ const prjTag = getProjectTagFromSTask(task);
+ if (prjTag !== null) {
+ // If defined by a task, path = `path/to/file:{project name}`.
+ return `${leadingSlash ? "/" : ""}${task.path}:${getProjectNameFromTag(prjTag)}`;
+ } else
+ return `${leadingSlash ? "/" : ""}${task.path}`;
+}
+
+// endregion
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/favicon.png b/coverage/lcov-report/favicon.png
new file mode 100644
index 0000000..c1525b8
Binary files /dev/null and b/coverage/lcov-report/favicon.png differ
diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html
new file mode 100644
index 0000000..14e33cf
--- /dev/null
+++ b/coverage/lcov-report/index.html
@@ -0,0 +1,131 @@
+
+
+
+
+
+ Code coverage report for All files
+
+
+
+
+
+
+
+
+
+
+
+
All files
+
+
+
+ 17.87%
+ Statements
+ 64/358
+
+
+
+
+ 1.23%
+ Branches
+ 1/81
+
+
+
+
+ 3.26%
+ Functions
+ 3/92
+
+
+
+
+ 18.82%
+ Lines
+ 64/340
+
+
+
+
+
+ Press n or j to go to the next uncovered block, b , p or k for the previous block.
+
+
+
+ Filter:
+
+
+
+
+
+
+
+
+
+ File
+
+ Statements
+
+ Branches
+
+ Functions
+
+ Lines
+
+
+
+
+ data-model
+
+
+
+ 22.95%
+ 56/244
+ 1.56%
+ 1/64
+ 4.76%
+ 3/63
+ 24.13%
+ 56/232
+
+
+
+ utils
+
+
+
+ 7.01%
+ 8/114
+ 0%
+ 0/17
+ 0%
+ 0/29
+ 7.4%
+ 8/108
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coverage/lcov-report/prettify.css b/coverage/lcov-report/prettify.css
new file mode 100644
index 0000000..b317a7c
--- /dev/null
+++ b/coverage/lcov-report/prettify.css
@@ -0,0 +1 @@
+.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
diff --git a/coverage/lcov-report/prettify.js b/coverage/lcov-report/prettify.js
new file mode 100644
index 0000000..b322523
--- /dev/null
+++ b/coverage/lcov-report/prettify.js
@@ -0,0 +1,2 @@
+/* eslint-disable */
+window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^
+
+
+
+