04a86dcaca2444425ed1e837a9797487a79b2c60a98b40cbb385a668ef05134b.json 4.2 KB

1
  1. {"ast":null,"code":"var protectedDayOfYearTokens = ['D', 'DD'];\nvar protectedWeekYearTokens = ['YY', 'YYYY'];\nexport function isProtectedDayOfYearToken(token) {\n return protectedDayOfYearTokens.indexOf(token) !== -1;\n}\nexport function isProtectedWeekYearToken(token) {\n return protectedWeekYearTokens.indexOf(token) !== -1;\n}\nexport function throwProtectedError(token, format, input) {\n if (token === 'YYYY') {\n throw new RangeError(\"Use `yyyy` instead of `YYYY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'YY') {\n throw new RangeError(\"Use `yy` instead of `YY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'D') {\n throw new RangeError(\"Use `d` instead of `D` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'DD') {\n throw new RangeError(\"Use `dd` instead of `DD` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n }\n}","map":{"version":3,"names":["protectedDayOfYearTokens","protectedWeekYearTokens","isProtectedDayOfYearToken","token","indexOf","isProtectedWeekYearToken","throwProtectedError","format","input","RangeError","concat"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/date-fns/esm/_lib/protectedTokens/index.js"],"sourcesContent":["var protectedDayOfYearTokens = ['D', 'DD'];\nvar protectedWeekYearTokens = ['YY', 'YYYY'];\nexport function isProtectedDayOfYearToken(token) {\n return protectedDayOfYearTokens.indexOf(token) !== -1;\n}\nexport function isProtectedWeekYearToken(token) {\n return protectedWeekYearTokens.indexOf(token) !== -1;\n}\nexport function throwProtectedError(token, format, input) {\n if (token === 'YYYY') {\n throw new RangeError(\"Use `yyyy` instead of `YYYY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'YY') {\n throw new RangeError(\"Use `yy` instead of `YY` (in `\".concat(format, \"`) for formatting years to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'D') {\n throw new RangeError(\"Use `d` instead of `D` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n } else if (token === 'DD') {\n throw new RangeError(\"Use `dd` instead of `DD` (in `\".concat(format, \"`) for formatting days of the month to the input `\").concat(input, \"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\"));\n }\n}"],"mappings":"AAAA,IAAIA,wBAAwB,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC;AAC1C,IAAIC,uBAAuB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC;AAC5C,OAAO,SAASC,yBAAyBA,CAACC,KAAK,EAAE;EAC/C,OAAOH,wBAAwB,CAACI,OAAO,CAACD,KAAK,CAAC,KAAK,CAAC,CAAC;AACvD;AACA,OAAO,SAASE,wBAAwBA,CAACF,KAAK,EAAE;EAC9C,OAAOF,uBAAuB,CAACG,OAAO,CAACD,KAAK,CAAC,KAAK,CAAC,CAAC;AACtD;AACA,OAAO,SAASG,mBAAmBA,CAACH,KAAK,EAAEI,MAAM,EAAEC,KAAK,EAAE;EACxD,IAAIL,KAAK,KAAK,MAAM,EAAE;IACpB,MAAM,IAAIM,UAAU,CAAC,oCAAoC,CAACC,MAAM,CAACH,MAAM,EAAE,wCAAwC,CAAC,CAACG,MAAM,CAACF,KAAK,EAAE,gFAAgF,CAAC,CAAC;EACrN,CAAC,MAAM,IAAIL,KAAK,KAAK,IAAI,EAAE;IACzB,M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