From b127e70870fc75ab9731258641227813d70a2f8f Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Fri, 26 May 2023 12:02:43 +0900 Subject: [PATCH] fix: escape string, when there's a syntax failure (#270) * fix: when syntax failure, compiler should return a string * fix: better escaping * fix: update snapshots --------- Co-authored-by: Jamie Spittal --- packages/bundle-utils/src/codegen.ts | 2 +- .../test/fixtures/codegen/invalid-message.js | 4 ++-- .../test/fixtures/codegen/invalid-message.json | 4 ++-- .../test/fixtures/codegen/invalid-message.yml | 4 ++-- .../generator/__snapshots__/js.test.ts.snap | 12 ++++++------ .../generator/__snapshots__/json.test.ts.snap | 18 +++++++++--------- .../generator/__snapshots__/yaml.test.ts.snap | 18 +++++++++--------- .../test/generator/codegen.test.ts | 2 +- .../__snapshots__/sourcemap.test.ts.snap | 8 ++++---- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/packages/bundle-utils/src/codegen.ts b/packages/bundle-utils/src/codegen.ts index 0c25cf4..fae4326 100644 --- a/packages/bundle-utils/src/codegen.ts +++ b/packages/bundle-utils/src/codegen.ts @@ -292,7 +292,7 @@ export function generateMessageFunction( ? env === 'development' ? `(()=>{const fn=${code};fn.source=${JSON.stringify(msg)};return fn;})()` : `${code}` - : _msg + : `\`${_msg}\`` return { code: genCode, ast, map, errors } } diff --git a/packages/bundle-utils/test/fixtures/codegen/invalid-message.js b/packages/bundle-utils/test/fixtures/codegen/invalid-message.js index 070b7ef..7b12b26 100644 --- a/packages/bundle-utils/test/fixtures/codegen/invalid-message.js +++ b/packages/bundle-utils/test/fixtures/codegen/invalid-message.js @@ -1,10 +1,10 @@ export default { hello: 'こんにちは', - 'this-is-ivalid': '@', + 'this-is-invalid': '@', nested: { array: [ { - 'this-is-ivalid': '@' + 'this-is-invalid': '@' } ] } diff --git a/packages/bundle-utils/test/fixtures/codegen/invalid-message.json b/packages/bundle-utils/test/fixtures/codegen/invalid-message.json index ddd7890..b1627d0 100644 --- a/packages/bundle-utils/test/fixtures/codegen/invalid-message.json +++ b/packages/bundle-utils/test/fixtures/codegen/invalid-message.json @@ -1,10 +1,10 @@ { "hello": "こんにちは", - "this-is-ivalid": "@", + "this-is-invalid": "@", "nested": { "array": [ { - "this-is-ivalid": "@" + "this-is-invalid": "@" } ] } diff --git a/packages/bundle-utils/test/fixtures/codegen/invalid-message.yml b/packages/bundle-utils/test/fixtures/codegen/invalid-message.yml index 6dcde11..3f192e5 100644 --- a/packages/bundle-utils/test/fixtures/codegen/invalid-message.yml +++ b/packages/bundle-utils/test/fixtures/codegen/invalid-message.yml @@ -1,5 +1,5 @@ hello: こんにちは -this-is-ivalid: '@' # is this ivalid? +this-is-invalid: '@' # is this invalid? nested: array: - - this-is-ivalid: '@' + - this-is-invalid: '@' diff --git a/packages/bundle-utils/test/generator/__snapshots__/js.test.ts.snap b/packages/bundle-utils/test/generator/__snapshots__/js.test.ts.snap index 1394a50..a188501 100644 --- a/packages/bundle-utils/test/generator/__snapshots__/js.test.ts.snap +++ b/packages/bundle-utils/test/generator/__snapshots__/js.test.ts.snap @@ -516,11 +516,11 @@ exports[`include function > map 1`] = ` exports[`invalid message syntax > code 1`] = ` "{ \\"hello\\": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize([\\"こんにちは\\"])};fn.source=\\"こんにちは\\";return fn;})(), - \\"this-is-ivalid\\": @, + \\"this-is-invalid\\": \`@\`, \\"nested\\": { \\"array\\": [ { - \\"this-is-ivalid\\": @ + \\"this-is-invalid\\": \`@\` } ] } @@ -545,7 +545,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected lexical analysis in token: 'EOF'", - "path": "this-is-ivalid", + "path": "this-is-invalid", "source": "@", }, { @@ -564,7 +564,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected empty linked key", - "path": "this-is-ivalid", + "path": "this-is-invalid", "source": "@", }, { @@ -583,7 +583,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected lexical analysis in token: 'EOF'", - "path": "nested.array.0.this-is-ivalid", + "path": "nested.array.0.this-is-invalid", "source": "@", }, { @@ -602,7 +602,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected empty linked key", - "path": "nested.array.0.this-is-ivalid", + "path": "nested.array.0.this-is-invalid", "source": "@", }, ] diff --git a/packages/bundle-utils/test/generator/__snapshots__/json.test.ts.snap b/packages/bundle-utils/test/generator/__snapshots__/json.test.ts.snap index 17e7f10..e0e97e2 100644 --- a/packages/bundle-utils/test/generator/__snapshots__/json.test.ts.snap +++ b/packages/bundle-utils/test/generator/__snapshots__/json.test.ts.snap @@ -567,11 +567,11 @@ exports[`html tag in message > errors 1`] = ` exports[`invalid message syntax > code 1`] = ` "{ \\"hello\\": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize([\\"こんにちは\\"])};fn.source=\\"こんにちは\\";return fn;})(), - \\"this-is-ivalid\\": @, + \\"this-is-invalid\\": \`@\`, \\"nested\\": { \\"array\\": [ { - \\"this-is-ivalid\\": @ + \\"this-is-invalid\\": \`@\` } ] } @@ -596,7 +596,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected lexical analysis in token: 'EOF'", - "path": "this-is-ivalid", + "path": "this-is-invalid", "source": "@", }, { @@ -615,7 +615,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected empty linked key", - "path": "this-is-ivalid", + "path": "this-is-invalid", "source": "@", }, { @@ -634,7 +634,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected lexical analysis in token: 'EOF'", - "path": "nested.array.0.this-is-ivalid", + "path": "nested.array.0.this-is-invalid", "source": "@", }, { @@ -653,7 +653,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected empty linked key", - "path": "nested.array.0.this-is-ivalid", + "path": "nested.array.0.this-is-invalid", "source": "@", }, ] @@ -661,7 +661,7 @@ exports[`invalid message syntax > errors 1`] = ` exports[`invalid message syntax > map 1`] = ` { - "mappings": ";6EACUA;4HACSC;;;;kIAIMA", + "mappings": ";6EACUA;6HACUC;;;;mIAIMA", "names": [ "こんにちは", "", @@ -672,11 +672,11 @@ exports[`invalid message syntax > map 1`] = ` "sourcesContent": [ "{ \\"hello\\": \\"こんにちは\\", - \\"this-is-ivalid\\": \\"@\\", + \\"this-is-invalid\\": \\"@\\", \\"nested\\": { \\"array\\": [ { - \\"this-is-ivalid\\": \\"@\\" + \\"this-is-invalid\\": \\"@\\" } ] } diff --git a/packages/bundle-utils/test/generator/__snapshots__/yaml.test.ts.snap b/packages/bundle-utils/test/generator/__snapshots__/yaml.test.ts.snap index 5211e86..e61ed3a 100644 --- a/packages/bundle-utils/test/generator/__snapshots__/yaml.test.ts.snap +++ b/packages/bundle-utils/test/generator/__snapshots__/yaml.test.ts.snap @@ -405,11 +405,11 @@ exports[`html tag in message > errors 1`] = ` exports[`invalid message syntax > code 1`] = ` "{ \\"hello\\": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize([\\"こんにちは\\"])};fn.source=\\"こんにちは\\";return fn;})(), - \\"this-is-ivalid\\": @, + \\"this-is-invalid\\": \`@\`, \\"nested\\": { \\"array\\": [ { - \\"this-is-ivalid\\": @ + \\"this-is-invalid\\": \`@\` } ] } @@ -434,7 +434,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected lexical analysis in token: 'EOF'", - "path": "this-is-ivalid", + "path": "this-is-invalid", "source": "@", }, { @@ -453,7 +453,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected empty linked key", - "path": "this-is-ivalid", + "path": "this-is-invalid", "source": "@", }, { @@ -472,7 +472,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected lexical analysis in token: 'EOF'", - "path": "nested.array.0.this-is-ivalid", + "path": "nested.array.0.this-is-invalid", "source": "@", }, { @@ -491,7 +491,7 @@ exports[`invalid message syntax > errors 1`] = ` }, }, "msg": "Unexpected empty linked key", - "path": "nested.array.0.this-is-ivalid", + "path": "nested.array.0.this-is-invalid", "source": "@", }, ] @@ -499,7 +499,7 @@ exports[`invalid message syntax > errors 1`] = ` exports[`invalid message syntax > map 1`] = ` { - "mappings": "yEAAMA;wHACSC;;;8HAGMA", + "mappings": "yEAAMA;yHACUC;;;+HAGMA", "names": [ "こんにちは", "", @@ -509,10 +509,10 @@ exports[`invalid message syntax > map 1`] = ` ], "sourcesContent": [ "hello: こんにちは -this-is-ivalid: '@' # is this ivalid? +this-is-invalid: '@' # is this invalid? nested: array: - - this-is-ivalid: '@' + - this-is-invalid: '@' ", ], "version": 3, diff --git a/packages/bundle-utils/test/generator/codegen.test.ts b/packages/bundle-utils/test/generator/codegen.test.ts index d7f4f9e..a4cc9a7 100644 --- a/packages/bundle-utils/test/generator/codegen.test.ts +++ b/packages/bundle-utils/test/generator/codegen.test.ts @@ -23,7 +23,7 @@ describe('generateMessageFunction', () => { } }) expect(errors.length).toBe(1) - expect(code).toBe(`|`) + expect(code).toBe('`|`') }) describe('strictMessage', () => { diff --git a/packages/unplugin-vue-i18n/test/webpack/__snapshots__/sourcemap.test.ts.snap b/packages/unplugin-vue-i18n/test/webpack/__snapshots__/sourcemap.test.ts.snap index 10aa1ca..7af8f67 100644 --- a/packages/unplugin-vue-i18n/test/webpack/__snapshots__/sourcemap.test.ts.snap +++ b/packages/unplugin-vue-i18n/test/webpack/__snapshots__/sourcemap.test.ts.snap @@ -1,12 +1,12 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`custom blocks: json 1`] = `";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVA;AAAA;AAAA;AAAA;AAAA;AACA;AACuE;AACvE,WAAW,yFAAM,iBAAiB,iGAAM;;;AAG4F;AACpI,iCAAiC,6IAAe;;AAEjC,0E;;;;;;;;;;;;ACTf;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB,OAAO,wBAAwB,OAAO,qCAAqC,yBAAyB,WAAW;AACzJ;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;ACXD;AAAA;AAA+B;AACG;;AAElC;AACA,kBAAkB,+CAAS;AAC3B,mBAAmB,oCAAO;AAC1B;;AAEe,8GAAS"`; +exports[`custom blocks: json 1`] = `";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVA;AAAA;AAAA;AAAA;AAAA;AACA;AACuE;AACvE,WAAW,yFAAM,iBAAiB,iGAAM;;;AAGgE;AACxG,iCAAiC,iHAAe;;AAEjC,0E;;;;;;;;;;;;ACTf;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB,OAAO,wBAAwB,OAAO,qCAAqC,yBAAyB,WAAW;AACzJ;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;ACXD;AAAA;AAA+B;AACG;;AAElC;AACA,kBAAkB,+CAAS;AAC3B,mBAAmB,oCAAO;AAC1B;;AAEe,8GAAS"`; -exports[`custom blocks: json5 1`] = `";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVA;AAAA;AAA+B;AACG;;AAElC;AACA,kBAAkB,+CA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;AACf;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB,OAAO,wBAAwB,OAAO,qCAAqC,yBAAyB,WAAW;AACzJ;AACA;AACA,GAAG;AACH,CAAC"`; -exports[`custom blocks: yaml 1`] = `";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVA;AAAA;AAA+B;AACG;;AAElC;AACA,kBAAkB,+CAAS;AAC3B,mBAAmB,oCAAO;AAC1B;;AAEe,8GAAS;;;;;;;;;;;;;ACRxB;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAC0F;AAC1F,WAAW,4GAAM,iBAAiB,oHAAM;AACiD;AACzF,WAAW,2GAAM,iBAAiB,mHAAM;;;AAG4F;AACpI,iCAAiC,6IAAe;;AAEjC,0E;;;;;;;;;;;;ACXf;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,qBAAqB,mBAAmB,OAAO,wBAAwB,OAAO,qCAAqC,yBAAyB,WAAW;AACvJ;AACA,GAAG;AACH,C;;;;;;;;;;;;ACTA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,qBAAqB,mBAAmB,OAAO,wBAAwB,OAAO,kCAAkC,sBAAsB,WAAW;AACjJ;AACA,GAAG;AACH,C"`; +exports[`custom blocks: yaml 1`] = `";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVA;AAAA;AAA+B;AACG;;AAElC;AACA,kBAAkB,+CAAS;AAC3B,mBAAmB,oCAAO;AAC1B;;AAEe,8GAAS;;;;;;;;;;;;;ACRxB;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAC0F;AAC1F,WAAW,4GAAM,iBAAiB,oHAAM;AACiD;AACzF,WAAW,2GAAM,iBAAiB,mHAAM;;;AAGgE;AACxG,iCAAiC,iHAAe;;AAEjC,0E;;;;;;;;;;;;ACXf;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,qBAAqB,mBAAmB,OAAO,wBAAwB,OAAO,qCAAqC,yBAAyB,WAAW;AACvJ;AACA,GAAG;AACH,C;;;;;;;;;;;;ACTA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,qBAAqB,mBAAmB,OAAO,wBAAwB,OAAO,kCAAkC,sBAAsB,WAAW;AACjJ;AACA,GAAG;AACH,C"`; -exports[`custom blocks: yml 1`] = `";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVA;AAAA;AAA+B;AACG;;AAElC;AACA,kBAAkB,+CAAS;AAC3B,mBAAmB,oCAAO;AAC1B;;AAEe,8GAAS;;;;;;;;;;;;;ACRxB;AAAA;AAAA;AAAA;AAAA;AACA;AAC8E;AAC9E,WAAW,gGAAM,iBAAiB,wGAAM;;;AAG4F;AACpI,iCAAiC,6IAAe;;AAEjC,0E;;;;;;;;;;;;ACTf;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB,OAAO,8HAA8H,OAAO,yKAAyK,mBAAmB,YAAY,IAAI,EAAE,UAAU,EAAE,SAAS,WAAW;AACpa;AACA,GAAG;AACH,C"`; +exports[`custom blocks: yml 1`] = `";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVA;AAAA;AAA+B;AACG;;AAElC;AACA,kBAAkB,+CAAS;AAC3B,mBAAmB,oCAAO;AAC1B;;AAEe,8GAAS;;;;;;;;;;;;;ACRxB;AAAA;AAAA;AAAA;AAAA;AACA;AAC8E;AAC9E,WAAW,gGAAM,iBAAiB,wGAAM;;;AAGgE;AACxG,iCAAiC,iHAAe;;AAEjC,0E;;;;;;;;;;;;ACTf;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,uBAAuB,mBAAmB,OAAO,8HAA8H,OAAO,yKAAyK,mBAAmB,YAAY,IAAI,EAAE,UAAU,EAAE,SAAS,WAAW;AACpa;AACA,GAAG;AACH,C"`; exports[`resource files: json 1`] = `";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;Q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