@music-lyric-kit/plugin-transform-interlude 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,19 @@
1
- # @music-lyric-kit/plugin-transform-interlude
1
+ ## @music-lyric-kit/plugin-transform-interlude
2
+
3
+ Interlude handling plugin.
2
4
 
3
5
  ## Install
4
6
 
5
7
  ```shell
6
8
  npm install @music-lyric-kit/plugin-transform-interlude
7
9
  ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import { Parser } from '@music-lyric-kit/core'
15
+ import { InsertPlugin } from '@music-lyric-kit/plugin-transform-interlude'
16
+
17
+ const parser = new Parser.Client()
18
+ parser.plugin.add(new InsertPlugin())
19
+ ```
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@music-lyric-kit/utils"),l=require("@music-lyric-kit/core"),m=require("@music-lyric-kit/lyric"),h={checkTime:{first:5e3,normal:1e4}};class T extends l.ParserPlugin{config=new f.ConfigManager(h);get id(){return"TRANSFORM-INTERLUDE"}get name(){return"TRANSFORM-INTERLUDE"}get stage(){return l.ParserStage.Transform}check(i){return!0}exec(i){const e=i.result.lines,o=e.length;if(!o)return;const{first:d,normal:g}=this.config.current.checkTime,n=[],u=e[0];if(u.time.start>d){const s=u.time.start;if(s>500){const t=new m.LineInterlude;t.time.start=500,t.time.end=s,n.push(t)}}for(let r=0;r<o-1;r++){const s=e[r],t=e[r+1];n.push(s);const a=s.time.end+100;if(t.time.start-a>g){const c=new m.LineInterlude;c.time.start=a,c.time.end=t.time.start,n.push(c)}}n.push(e[o-1]),i.result.lines=n}}exports.Plugin=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@music-lyric-kit/utils"),l=require("@music-lyric-kit/core"),g=require("@music-lyric-kit/lyric"),h={checkTime:{first:5e3,normal:1e4}};class T extends l.ParserPlugin{config=new f.ConfigManager(h);get priority(){return 500}get id(){return"TRANSFORM-INTERLUDE-INSERT"}get name(){return"TRANSFORM-INTERLUDE-INSERT"}get stage(){return l.ParserStage.Transform}check(i){return!0}exec(i){const e=i.result.lines,o=e.length;if(!o)return;const{first:m,normal:d}=this.config.current.checkTime,r=[],u=e[0];if(u.time.start>m){const s=u.time.start;if(s>500){const t=new g.LineInterlude;t.time.start=500,t.time.end=s,r.push(t)}}for(let n=0;n<o-1;n++){const s=e[n],t=e[n+1];r.push(s);const a=s.time.end+100;if(t.time.start-a>d){const c=new g.LineInterlude;c.time.start=a,c.time.end=t.time.start,r.push(c)}}r.push(e[o-1]),i.result.lines=r}}exports.InsertPlugin=T;
2
2
  //# sourceMappingURL=index.comm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.comm.js","sources":["../src/config.ts","../src/index.ts"],"sourcesContent":["export interface InterludeConfig {\n /**\n * If these conditions are met, add an interlude.\n */\n checkTime: {\n /**\n * First line check time.\n * @unit ms\n * @default 5000\n */\n first: number\n /**\n * Normal line check time\n * @unit ms\n * @default 10000\n */\n normal: number\n }\n}\n\nexport const DEFAULT_CONFIG: InterludeConfig = {\n checkTime: {\n first: 5000,\n normal: 10000,\n },\n}\n","import type { DeepPartial } from '@music-lyric-kit/utils'\nimport type { InterludeConfig } from './config'\n\nimport { DEFAULT_CONFIG } from './config'\nimport { ConfigManager } from '@music-lyric-kit/utils'\n\nimport { ParserPlugin, ParserStage, ParserContext } from '@music-lyric-kit/core'\nimport { Line, LineInterlude } from '@music-lyric-kit/lyric'\n\nexport class Plugin extends ParserPlugin {\n override config = new ConfigManager<InterludeConfig, DeepPartial<InterludeConfig>>(DEFAULT_CONFIG)\n\n override get id() {\n return 'TRANSFORM-INTERLUDE'\n }\n\n override get name() {\n return 'TRANSFORM-INTERLUDE'\n }\n\n override get stage() {\n return ParserStage.Transform\n }\n\n override check(ctx: ParserContext) {\n return true\n }\n\n override exec(ctx: ParserContext) {\n const lines = ctx.result.lines\n const length = lines.length\n\n if (!length) {\n return\n }\n\n const { first: firstThreshold, normal: normalThreshold } = this.config.current.checkTime\n\n const newLines: Line[] = []\n\n const firstLine = lines[0]\n if (firstLine.time.start > firstThreshold) {\n const start = 500\n const end = firstLine.time.start\n if (end > start) {\n const interlude = new LineInterlude()\n interlude.time.start = start\n interlude.time.end = end\n newLines.push(interlude)\n }\n }\n\n for (let i = 0; i < length - 1; i++) {\n const current = lines[i]\n const next = lines[i + 1]\n\n newLines.push(current)\n\n const start = current.time.end + 100\n const duration = next.time.start - start\n\n if (duration > normalThreshold) {\n const interlude = new LineInterlude()\n interlude.time.start = start\n interlude.time.end = next.time.start\n newLines.push(interlude)\n }\n }\n\n newLines.push(lines[length - 1])\n\n ctx.result.lines = newLines\n }\n}\n\nexport type { InterludeConfig }\n"],"names":["DEFAULT_CONFIG","Plugin","ParserPlugin","ConfigManager","ParserStage","ctx","lines","length","firstThreshold","normalThreshold","newLines","firstLine","end","interlude","LineInterlude","i","current","next","start"],"mappings":"iMAoBaA,EAAkC,CAC7C,UAAW,CACT,MAAO,IACP,OAAQ,GAAA,CAEZ,EChBO,MAAMC,UAAeC,EAAAA,YAAa,CAC9B,OAAS,IAAIC,EAAAA,cAA6DH,CAAc,EAEjG,IAAa,IAAK,CAChB,MAAO,qBACT,CAEA,IAAa,MAAO,CAClB,MAAO,qBACT,CAEA,IAAa,OAAQ,CACnB,OAAOI,EAAAA,YAAY,SACrB,CAES,MAAMC,EAAoB,CACjC,MAAO,EACT,CAES,KAAKA,EAAoB,CAChC,MAAMC,EAAQD,EAAI,OAAO,MACnBE,EAASD,EAAM,OAErB,GAAI,CAACC,EACH,OAGF,KAAM,CAAE,MAAOC,EAAgB,OAAQC,GAAoB,KAAK,OAAO,QAAQ,UAEzEC,EAAmB,CAAA,EAEnBC,EAAYL,EAAM,CAAC,EACzB,GAAIK,EAAU,KAAK,MAAQH,EAAgB,CAEzC,MAAMI,EAAMD,EAAU,KAAK,MAC3B,GAAIC,EAAM,IAAO,CACf,MAAMC,EAAY,IAAIC,gBACtBD,EAAU,KAAK,MAAQ,IACvBA,EAAU,KAAK,IAAMD,EACrBF,EAAS,KAAKG,CAAS,CACzB,CACF,CAEA,QAASE,EAAI,EAAGA,EAAIR,EAAS,EAAGQ,IAAK,CACnC,MAAMC,EAAUV,EAAMS,CAAC,EACjBE,EAAOX,EAAMS,EAAI,CAAC,EAExBL,EAAS,KAAKM,CAAO,EAErB,MAAME,EAAQF,EAAQ,KAAK,IAAM,IAGjC,GAFiBC,EAAK,KAAK,MAAQC,EAEpBT,EAAiB,CAC9B,MAAMI,EAAY,IAAIC,gBACtBD,EAAU,KAAK,MAAQK,EACvBL,EAAU,KAAK,IAAMI,EAAK,KAAK,MAC/BP,EAAS,KAAKG,CAAS,CACzB,CACF,CAEAH,EAAS,KAAKJ,EAAMC,EAAS,CAAC,CAAC,EAE/BF,EAAI,OAAO,MAAQK,CACrB,CACF"}
1
+ {"version":3,"file":"index.comm.js","sources":["../src/config.ts","../src/index.ts"],"sourcesContent":["export interface InsertConfig {\n /**\n * If these conditions are met, add an interlude.\n */\n checkTime: {\n /**\n * First line check time.\n * @unit ms\n * @default 5000\n */\n first: number\n /**\n * Normal line check time\n * @unit ms\n * @default 10000\n */\n normal: number\n }\n}\n\nexport const DEFAULT_CONFIG: InsertConfig = {\n checkTime: {\n first: 5000,\n normal: 10000,\n },\n}\n","import type { DeepPartial } from '@music-lyric-kit/utils'\nimport type { InsertConfig } from './config'\n\nimport { DEFAULT_CONFIG } from './config'\nimport { ConfigManager } from '@music-lyric-kit/utils'\n\nimport { ParserPlugin, ParserStage, ParserContext } from '@music-lyric-kit/core'\nimport { Line, LineInterlude } from '@music-lyric-kit/lyric'\n\nexport class InsertPlugin extends ParserPlugin {\n override config = new ConfigManager<InsertConfig, DeepPartial<InsertConfig>>(DEFAULT_CONFIG)\n\n override get priority() {\n return 500\n }\n\n override get id() {\n return 'TRANSFORM-INTERLUDE-INSERT'\n }\n\n override get name() {\n return 'TRANSFORM-INTERLUDE-INSERT'\n }\n\n override get stage() {\n return ParserStage.Transform\n }\n\n override check(ctx: ParserContext) {\n return true\n }\n\n override exec(ctx: ParserContext) {\n const lines = ctx.result.lines\n const length = lines.length\n\n if (!length) {\n return\n }\n\n const { first: firstThreshold, normal: normalThreshold } = this.config.current.checkTime\n\n const newLines: Line[] = []\n\n const firstLine = lines[0]\n if (firstLine.time.start > firstThreshold) {\n const start = 500\n const end = firstLine.time.start\n if (end > start) {\n const interlude = new LineInterlude()\n interlude.time.start = start\n interlude.time.end = end\n newLines.push(interlude)\n }\n }\n\n for (let i = 0; i < length - 1; i++) {\n const current = lines[i]\n const next = lines[i + 1]\n\n newLines.push(current)\n\n const start = current.time.end + 100\n const duration = next.time.start - start\n\n if (duration > normalThreshold) {\n const interlude = new LineInterlude()\n interlude.time.start = start\n interlude.time.end = next.time.start\n newLines.push(interlude)\n }\n }\n\n newLines.push(lines[length - 1])\n\n ctx.result.lines = newLines\n }\n}\n\nexport type { InsertConfig }\n"],"names":["DEFAULT_CONFIG","InsertPlugin","ParserPlugin","ConfigManager","ParserStage","ctx","lines","length","firstThreshold","normalThreshold","newLines","firstLine","end","interlude","LineInterlude","i","current","next","start"],"mappings":"iMAoBaA,EAA+B,CAC1C,UAAW,CACT,MAAO,IACP,OAAQ,GAAA,CAEZ,EChBO,MAAMC,UAAqBC,EAAAA,YAAa,CACpC,OAAS,IAAIC,EAAAA,cAAuDH,CAAc,EAE3F,IAAa,UAAW,CACtB,MAAO,IACT,CAEA,IAAa,IAAK,CAChB,MAAO,4BACT,CAEA,IAAa,MAAO,CAClB,MAAO,4BACT,CAEA,IAAa,OAAQ,CACnB,OAAOI,EAAAA,YAAY,SACrB,CAES,MAAMC,EAAoB,CACjC,MAAO,EACT,CAES,KAAKA,EAAoB,CAChC,MAAMC,EAAQD,EAAI,OAAO,MACnBE,EAASD,EAAM,OAErB,GAAI,CAACC,EACH,OAGF,KAAM,CAAE,MAAOC,EAAgB,OAAQC,GAAoB,KAAK,OAAO,QAAQ,UAEzEC,EAAmB,CAAA,EAEnBC,EAAYL,EAAM,CAAC,EACzB,GAAIK,EAAU,KAAK,MAAQH,EAAgB,CAEzC,MAAMI,EAAMD,EAAU,KAAK,MAC3B,GAAIC,EAAM,IAAO,CACf,MAAMC,EAAY,IAAIC,gBACtBD,EAAU,KAAK,MAAQ,IACvBA,EAAU,KAAK,IAAMD,EACrBF,EAAS,KAAKG,CAAS,CACzB,CACF,CAEA,QAASE,EAAI,EAAGA,EAAIR,EAAS,EAAGQ,IAAK,CACnC,MAAMC,EAAUV,EAAMS,CAAC,EACjBE,EAAOX,EAAMS,EAAI,CAAC,EAExBL,EAAS,KAAKM,CAAO,EAErB,MAAME,EAAQF,EAAQ,KAAK,IAAM,IAGjC,GAFiBC,EAAK,KAAK,MAAQC,EAEpBT,EAAiB,CAC9B,MAAMI,EAAY,IAAIC,gBACtBD,EAAU,KAAK,MAAQK,EACvBL,EAAU,KAAK,IAAMI,EAAK,KAAK,MAC/BP,EAAS,KAAKG,CAAS,CACzB,CACF,CAEAH,EAAS,KAAKJ,EAAMC,EAAS,CAAC,CAAC,EAE/BF,EAAI,OAAO,MAAQK,CACrB,CACF"}
@@ -3,7 +3,7 @@ import { ParserContext } from '@music-lyric-kit/core';
3
3
  import { ParserPlugin } from '@music-lyric-kit/core';
4
4
  import { ParserStage } from '@music-lyric-kit/core';
5
5
 
6
- export declare interface InterludeConfig {
6
+ export declare interface InsertConfig {
7
7
  /**
8
8
  * If these conditions are met, add an interlude.
9
9
  */
@@ -23,19 +23,19 @@ export declare interface InterludeConfig {
23
23
  };
24
24
  }
25
25
 
26
- declare class Plugin_2 extends ParserPlugin {
27
- config: ConfigManager<InterludeConfig, {
26
+ export declare class InsertPlugin extends ParserPlugin {
27
+ config: ConfigManager<InsertConfig, {
28
28
  checkTime?: {
29
29
  first?: number | undefined;
30
30
  normal?: number | undefined;
31
31
  } | undefined;
32
32
  }>;
33
+ get priority(): number;
33
34
  get id(): string;
34
35
  get name(): string;
35
36
  get stage(): ParserStage;
36
37
  check(ctx: ParserContext): boolean;
37
38
  exec(ctx: ParserContext): void;
38
39
  }
39
- export { Plugin_2 as Plugin }
40
40
 
41
41
  export { }
@@ -1,5 +1,5 @@
1
- import { ConfigManager as h } from "@music-lyric-kit/utils";
2
- import { ParserPlugin as d, ParserStage as g } from "@music-lyric-kit/core";
1
+ import { ConfigManager as g } from "@music-lyric-kit/utils";
2
+ import { ParserPlugin as h, ParserStage as d } from "@music-lyric-kit/core";
3
3
  import { LineInterlude as u } from "@music-lyric-kit/lyric";
4
4
  const T = {
5
5
  checkTime: {
@@ -7,16 +7,19 @@ const T = {
7
7
  normal: 1e4
8
8
  }
9
9
  };
10
- class w extends d {
11
- config = new h(T);
10
+ class L extends h {
11
+ config = new g(T);
12
+ get priority() {
13
+ return 500;
14
+ }
12
15
  get id() {
13
- return "TRANSFORM-INTERLUDE";
16
+ return "TRANSFORM-INTERLUDE-INSERT";
14
17
  }
15
18
  get name() {
16
- return "TRANSFORM-INTERLUDE";
19
+ return "TRANSFORM-INTERLUDE-INSERT";
17
20
  }
18
21
  get stage() {
19
- return g.Transform;
22
+ return d.Transform;
20
23
  }
21
24
  check(i) {
22
25
  return !0;
@@ -46,6 +49,6 @@ class w extends d {
46
49
  }
47
50
  }
48
51
  export {
49
- w as Plugin
52
+ L as InsertPlugin
50
53
  };
51
54
  //# sourceMappingURL=index.ecma.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.ecma.js","sources":["../src/config.ts","../src/index.ts"],"sourcesContent":["export interface InterludeConfig {\n /**\n * If these conditions are met, add an interlude.\n */\n checkTime: {\n /**\n * First line check time.\n * @unit ms\n * @default 5000\n */\n first: number\n /**\n * Normal line check time\n * @unit ms\n * @default 10000\n */\n normal: number\n }\n}\n\nexport const DEFAULT_CONFIG: InterludeConfig = {\n checkTime: {\n first: 5000,\n normal: 10000,\n },\n}\n","import type { DeepPartial } from '@music-lyric-kit/utils'\nimport type { InterludeConfig } from './config'\n\nimport { DEFAULT_CONFIG } from './config'\nimport { ConfigManager } from '@music-lyric-kit/utils'\n\nimport { ParserPlugin, ParserStage, ParserContext } from '@music-lyric-kit/core'\nimport { Line, LineInterlude } from '@music-lyric-kit/lyric'\n\nexport class Plugin extends ParserPlugin {\n override config = new ConfigManager<InterludeConfig, DeepPartial<InterludeConfig>>(DEFAULT_CONFIG)\n\n override get id() {\n return 'TRANSFORM-INTERLUDE'\n }\n\n override get name() {\n return 'TRANSFORM-INTERLUDE'\n }\n\n override get stage() {\n return ParserStage.Transform\n }\n\n override check(ctx: ParserContext) {\n return true\n }\n\n override exec(ctx: ParserContext) {\n const lines = ctx.result.lines\n const length = lines.length\n\n if (!length) {\n return\n }\n\n const { first: firstThreshold, normal: normalThreshold } = this.config.current.checkTime\n\n const newLines: Line[] = []\n\n const firstLine = lines[0]\n if (firstLine.time.start > firstThreshold) {\n const start = 500\n const end = firstLine.time.start\n if (end > start) {\n const interlude = new LineInterlude()\n interlude.time.start = start\n interlude.time.end = end\n newLines.push(interlude)\n }\n }\n\n for (let i = 0; i < length - 1; i++) {\n const current = lines[i]\n const next = lines[i + 1]\n\n newLines.push(current)\n\n const start = current.time.end + 100\n const duration = next.time.start - start\n\n if (duration > normalThreshold) {\n const interlude = new LineInterlude()\n interlude.time.start = start\n interlude.time.end = next.time.start\n newLines.push(interlude)\n }\n }\n\n newLines.push(lines[length - 1])\n\n ctx.result.lines = newLines\n }\n}\n\nexport type { InterludeConfig }\n"],"names":["DEFAULT_CONFIG","Plugin","ParserPlugin","ConfigManager","ParserStage","ctx","lines","length","firstThreshold","normalThreshold","newLines","firstLine","end","interlude","LineInterlude","i","current","next","start"],"mappings":";;;AAoBO,MAAMA,IAAkC;AAAA,EAC7C,WAAW;AAAA,IACT,OAAO;AAAA,IACP,QAAQ;AAAA,EAAA;AAEZ;AChBO,MAAMC,UAAeC,EAAa;AAAA,EAC9B,SAAS,IAAIC,EAA6DH,CAAc;AAAA,EAEjG,IAAa,KAAK;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,IAAa,OAAO;AAClB,WAAO;AAAA,EACT;AAAA,EAEA,IAAa,QAAQ;AACnB,WAAOI,EAAY;AAAA,EACrB;AAAA,EAES,MAAMC,GAAoB;AACjC,WAAO;AAAA,EACT;AAAA,EAES,KAAKA,GAAoB;AAChC,UAAMC,IAAQD,EAAI,OAAO,OACnBE,IAASD,EAAM;AAErB,QAAI,CAACC;AACH;AAGF,UAAM,EAAE,OAAOC,GAAgB,QAAQC,MAAoB,KAAK,OAAO,QAAQ,WAEzEC,IAAmB,CAAA,GAEnBC,IAAYL,EAAM,CAAC;AACzB,QAAIK,EAAU,KAAK,QAAQH,GAAgB;AAEzC,YAAMI,IAAMD,EAAU,KAAK;AAC3B,UAAIC,IAAM,KAAO;AACf,cAAMC,IAAY,IAAIC,EAAA;AACtB,QAAAD,EAAU,KAAK,QAAQ,KACvBA,EAAU,KAAK,MAAMD,GACrBF,EAAS,KAAKG,CAAS;AAAA,MACzB;AAAA,IACF;AAEA,aAASE,IAAI,GAAGA,IAAIR,IAAS,GAAGQ,KAAK;AACnC,YAAMC,IAAUV,EAAMS,CAAC,GACjBE,IAAOX,EAAMS,IAAI,CAAC;AAExB,MAAAL,EAAS,KAAKM,CAAO;AAErB,YAAME,IAAQF,EAAQ,KAAK,MAAM;AAGjC,UAFiBC,EAAK,KAAK,QAAQC,IAEpBT,GAAiB;AAC9B,cAAMI,IAAY,IAAIC,EAAA;AACtB,QAAAD,EAAU,KAAK,QAAQK,GACvBL,EAAU,KAAK,MAAMI,EAAK,KAAK,OAC/BP,EAAS,KAAKG,CAAS;AAAA,MACzB;AAAA,IACF;AAEA,IAAAH,EAAS,KAAKJ,EAAMC,IAAS,CAAC,CAAC,GAE/BF,EAAI,OAAO,QAAQK;AAAA,EACrB;AACF;"}
1
+ {"version":3,"file":"index.ecma.js","sources":["../src/config.ts","../src/index.ts"],"sourcesContent":["export interface InsertConfig {\n /**\n * If these conditions are met, add an interlude.\n */\n checkTime: {\n /**\n * First line check time.\n * @unit ms\n * @default 5000\n */\n first: number\n /**\n * Normal line check time\n * @unit ms\n * @default 10000\n */\n normal: number\n }\n}\n\nexport const DEFAULT_CONFIG: InsertConfig = {\n checkTime: {\n first: 5000,\n normal: 10000,\n },\n}\n","import type { DeepPartial } from '@music-lyric-kit/utils'\nimport type { InsertConfig } from './config'\n\nimport { DEFAULT_CONFIG } from './config'\nimport { ConfigManager } from '@music-lyric-kit/utils'\n\nimport { ParserPlugin, ParserStage, ParserContext } from '@music-lyric-kit/core'\nimport { Line, LineInterlude } from '@music-lyric-kit/lyric'\n\nexport class InsertPlugin extends ParserPlugin {\n override config = new ConfigManager<InsertConfig, DeepPartial<InsertConfig>>(DEFAULT_CONFIG)\n\n override get priority() {\n return 500\n }\n\n override get id() {\n return 'TRANSFORM-INTERLUDE-INSERT'\n }\n\n override get name() {\n return 'TRANSFORM-INTERLUDE-INSERT'\n }\n\n override get stage() {\n return ParserStage.Transform\n }\n\n override check(ctx: ParserContext) {\n return true\n }\n\n override exec(ctx: ParserContext) {\n const lines = ctx.result.lines\n const length = lines.length\n\n if (!length) {\n return\n }\n\n const { first: firstThreshold, normal: normalThreshold } = this.config.current.checkTime\n\n const newLines: Line[] = []\n\n const firstLine = lines[0]\n if (firstLine.time.start > firstThreshold) {\n const start = 500\n const end = firstLine.time.start\n if (end > start) {\n const interlude = new LineInterlude()\n interlude.time.start = start\n interlude.time.end = end\n newLines.push(interlude)\n }\n }\n\n for (let i = 0; i < length - 1; i++) {\n const current = lines[i]\n const next = lines[i + 1]\n\n newLines.push(current)\n\n const start = current.time.end + 100\n const duration = next.time.start - start\n\n if (duration > normalThreshold) {\n const interlude = new LineInterlude()\n interlude.time.start = start\n interlude.time.end = next.time.start\n newLines.push(interlude)\n }\n }\n\n newLines.push(lines[length - 1])\n\n ctx.result.lines = newLines\n }\n}\n\nexport type { InsertConfig }\n"],"names":["DEFAULT_CONFIG","InsertPlugin","ParserPlugin","ConfigManager","ParserStage","ctx","lines","length","firstThreshold","normalThreshold","newLines","firstLine","end","interlude","LineInterlude","i","current","next","start"],"mappings":";;;AAoBO,MAAMA,IAA+B;AAAA,EAC1C,WAAW;AAAA,IACT,OAAO;AAAA,IACP,QAAQ;AAAA,EAAA;AAEZ;AChBO,MAAMC,UAAqBC,EAAa;AAAA,EACpC,SAAS,IAAIC,EAAuDH,CAAc;AAAA,EAE3F,IAAa,WAAW;AACtB,WAAO;AAAA,EACT;AAAA,EAEA,IAAa,KAAK;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,IAAa,OAAO;AAClB,WAAO;AAAA,EACT;AAAA,EAEA,IAAa,QAAQ;AACnB,WAAOI,EAAY;AAAA,EACrB;AAAA,EAES,MAAMC,GAAoB;AACjC,WAAO;AAAA,EACT;AAAA,EAES,KAAKA,GAAoB;AAChC,UAAMC,IAAQD,EAAI,OAAO,OACnBE,IAASD,EAAM;AAErB,QAAI,CAACC;AACH;AAGF,UAAM,EAAE,OAAOC,GAAgB,QAAQC,MAAoB,KAAK,OAAO,QAAQ,WAEzEC,IAAmB,CAAA,GAEnBC,IAAYL,EAAM,CAAC;AACzB,QAAIK,EAAU,KAAK,QAAQH,GAAgB;AAEzC,YAAMI,IAAMD,EAAU,KAAK;AAC3B,UAAIC,IAAM,KAAO;AACf,cAAMC,IAAY,IAAIC,EAAA;AACtB,QAAAD,EAAU,KAAK,QAAQ,KACvBA,EAAU,KAAK,MAAMD,GACrBF,EAAS,KAAKG,CAAS;AAAA,MACzB;AAAA,IACF;AAEA,aAASE,IAAI,GAAGA,IAAIR,IAAS,GAAGQ,KAAK;AACnC,YAAMC,IAAUV,EAAMS,CAAC,GACjBE,IAAOX,EAAMS,IAAI,CAAC;AAExB,MAAAL,EAAS,KAAKM,CAAO;AAErB,YAAME,IAAQF,EAAQ,KAAK,MAAM;AAGjC,UAFiBC,EAAK,KAAK,QAAQC,IAEpBT,GAAiB;AAC9B,cAAMI,IAAY,IAAIC,EAAA;AACtB,QAAAD,EAAU,KAAK,QAAQK,GACvBL,EAAU,KAAK,MAAMI,EAAK,KAAK,OAC/BP,EAAS,KAAKG,CAAS;AAAA,MACzB;AAAA,IACF;AAEA,IAAAH,EAAS,KAAKJ,EAAMC,IAAS,CAAC,CAAC,GAE/BF,EAAI,OAAO,QAAQK;AAAA,EACrB;AACF;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@music-lyric-kit/plugin-transform-interlude",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "author": "folltoshe",
5
5
  "type": "module",
6
6
  "description": "Music Lyric Kit - Transform Interlude Plugin",
@@ -28,9 +28,9 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@music-lyric-kit/core": "0.3.1",
32
- "@music-lyric-kit/lyric": "0.2.1",
33
- "@music-lyric-kit/utils": "0.3.0"
31
+ "@music-lyric-kit/core": "0.4.0",
32
+ "@music-lyric-kit/utils": "0.5.0",
33
+ "@music-lyric-kit/lyric": "0.4.0"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "vite build"