Home
last modified time | relevance | path

Searched refs:days (Results 1 - 25 of 27) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_datetime_component.cpp117 auto days = date.ToDays(); in OnSubsidiaryChange() local
118 days--; in OnSubsidiaryChange()
119 currentDate_.FromDays(days); in OnSubsidiaryChange()
168 std::string PickerDateTimeComponent::GetMonthDayFormatString(bool lunar, uint32_t days) const in GetMonthDayFormatString()
171 outDate.FromDays(days); in GetMonthDayFormatString()
173 if (days == nowadays) { in GetMonthDayFormatString()
201 uint32_t startDays = centerDays - 3; // start day 3 days before center day. in FillSolarLunarDays()
202 uint32_t endDays = centerDays + 3; // end day 3 days after center day. in FillSolarLunarDays()
203 for (uint32_t days = startDays; days < in FillSolarLunarDays()
216 auto days = currentDate_.ToDays(); OnDataLinking() local
227 auto days = currentDate_.ToDays(); OnDataLinking() local
[all...]
H A Dpicker_data.cpp40 if (month == 2) { // days count in february is different between leap year and other. in GetMaxDay()
42 return (leapYear ? 29 : 28); // leap year's february has 29 days, other has 28 days. in GetMaxDay()
53 return 31; // upper months has 31 days in GetMaxDay()
55 return 30; // other month has 30 days in GetMaxDay()
84 uint32_t days = 0; in ToDays() local
85 days += day_ ? day_ - 1 : 0; // day start from 1 in ToDays()
88 days += PickerDate::GetMaxDay(year_, month); in ToDays()
96 // leap year has 366 days, other year has 365 days in ToDays()
102 FromDays(uint32_t days) FromDays() argument
[all...]
H A Dpicker_datetime_component.h74 std::string GetMonthDayFormatString(bool lunar, uint32_t days) const;
H A Dpicker_date_component.cpp519 uint32_t days = date.day > 0 ? date.day - 1 : 0; // calculate days from 1900.1.1 to this date in LunarToSolar() local
521 days += LunarCalculator::GetLunarMonthDays(date.year, date.month); in LunarToSolar()
525 days += LunarCalculator::GetLunarLeapDays(date.year); in LunarToSolar()
529 days += LunarCalculator::GetLunarMonthDays(date.year, month); in LunarToSolar()
532 days += LunarCalculator::GetLunarYearDays(year); in LunarToSolar()
534 days += 30; // days from solar's 1900.1.1 to lunar's 1900.1.1 is 30 in LunarToSolar()
536 result.FromDays(days); in LunarToSolar()
H A Dpicker_data.h81 void FromDays(uint32_t days);
185 : 0; // big month 30 days other 29 in GetLunarLeapDays()
193 uint32_t totalDays = 348; // lunar year has (12 * 29 =) 348 days at least in GetLunarYearDays()
207 // big month 30 days other 29 in GetLunarMonthDays()
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar/
H A Dcalendar_month_pattern_test.cpp150 EXPECT_TRUE(calendarMonthPattern->obtainedMonth_.days.size() == 0); in HWTEST_F()
177 calendarMonthPattern->obtainedMonth_.days.push_back(calendarDay1); in HWTEST_F()
205 EXPECT_TRUE(calendarMonthPattern->obtainedMonth_.days.size() == 0); in HWTEST_F()
234 calendarMonthPattern->obtainedMonth_.days.push_back(calendarDay1); in HWTEST_F()
268 calendarMonthPattern->obtainedMonth_.days.push_back(calendarDay1); in HWTEST_F()
303 calendarMonthPattern->obtainedMonth_.days.push_back(calendarDay); in HWTEST_F()
339 calendarMonthPattern->obtainedMonth_.days.push_back(calendarDay); in HWTEST_F()
375 calendarMonthPattern->obtainedMonth_.days.push_back(calendarDay); in HWTEST_F()
461 calendarMonthPattern->obtainedMonth_.days.push_back(day); in HWTEST_F()
462 calendarMonthPattern->obtainedMonth_.days[ in HWTEST_F()
[all...]
H A Dcalendar_test_ng.cpp404 // Add 31 days. in HWTEST_F()
405 std::vector<CalendarDay> days; in HWTEST_F() local
415 days.emplace_back(std::move(day)); in HWTEST_F()
417 obtainedMonth.days = days; in HWTEST_F()
443 EXPECT_EQ(pattern->currentMonth_.days[JUMP_DAY_FIRST - 1].focused, true); in HWTEST_F()
451 EXPECT_EQ(pattern->currentMonth_.days[JUMP_DAY_SECOND - 1].focused, true); in HWTEST_F()
459 EXPECT_EQ(pattern->currentMonth_.days[JUMP_DAY_THIRD - 1].focused, true); in HWTEST_F()
467 EXPECT_EQ(pattern->currentMonth_.days[JUMP_DAY_FIRST - 1].focused, true); in HWTEST_F()
472 * @tc.desc: Create calendar, and check the 6 rows (42 days)
492 std::vector<CalendarDay> days; HWTEST_F() local
566 std::vector<CalendarDay> days; HWTEST_F() local
667 std::vector<CalendarDay> days; HWTEST_F() local
1573 std::vector<CalendarDay> days; HWTEST_F() local
[all...]
H A Dcalendar_paint_method_test.cpp818 std::vector<CalendarDay> days; in HWTEST_F() local
819 obtainedMonth.days = days; in HWTEST_F()
866 std::vector<CalendarDay> days; in HWTEST_F() local
867 obtainedMonth.days = days; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_month_pattern.cpp93 auto dataSize = GetMonthData().days.size(); in SetColRowSpace()
163 obtainedMonth_.days[i].month.month == obtainedMonth_.month && in SetVirtualNodeUserSelected()
164 obtainedMonth_.days[i].month.year == obtainedMonth_.year) { in SetVirtualNodeUserSelected()
170 if (!obtainedMonth_.days.empty()) { in SetVirtualNodeUserSelected()
171 for (auto& day : obtainedMonth_.days) { in SetVirtualNodeUserSelected()
176 if (selectedIndex >= 0 && selectedIndex < static_cast<int32_t>(obtainedMonth_.days.size())) { in SetVirtualNodeUserSelected()
177 obtainedMonth_.days[selectedIndex].focused = true; in SetVirtualNodeUserSelected()
179 json->Put("day", obtainedMonth_.days[selectedIndex].day); in SetVirtualNodeUserSelected()
180 json->Put("month", obtainedMonth_.days[selectedIndex].month.month); in SetVirtualNodeUserSelected()
181 json->Put("year", obtainedMonth_.days[selectedInde in SetVirtualNodeUserSelected()
[all...]
H A Dcalendar_pattern.cpp110 if (currentMonth_.days.empty() && calendarEventHub->GetOnRequestDataEvent()) { in OnModifyDone()
284 for (auto& day : obtainedMonth.days) { in JumpTo()
365 if (obtainedMonth.days.empty()) { in FlushFocus()
370 for (auto& day : obtainedMonth.days) { in FlushFocus()
378 obtainedMonth.days[0].focused = true; in FlushFocus()
391 if (obtainedMonth.days.empty()) { in FlushDialogMonthData()
394 for (auto& day : obtainedMonth.days) { in FlushDialogMonthData()
H A Dcalendar_month_pattern.h83 if (monthState_ == MonthState::CUR_MONTH && !obtainedMonth_.days.empty()) { in SetCalendarDay()
84 for (auto& day : obtainedMonth_.days) { in SetCalendarDay()
H A Dcalendar_paint_method.cpp136 if (!obtainedMonth_.days.empty()) { in DrawWeekAndDates()
137 calendarDays_.assign(obtainedMonth_.days.begin(), obtainedMonth_.days.end()); in DrawWeekAndDates()
703 std::vector<std::string> days; in IsOffDay() local
704 StringUtils::StringSplitter(offDays_, ',', days); in IsOffDay()
706 for (const auto& day : days) { in IsOffDay()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_dialog_pattern.cpp597 focusedDay_ = currentMonthData.days[focusedDayIndex]; in HandleCalendarNodeKeyEvent()
606 focusedDay_ = currentMonthData.days[focusedDayIndex]; in HandleCalendarNodeKeyEvent()
613 auto it = std::find_if(currentMonthData.days.begin(), currentMonthData.days.end(), in HandleCalendarNodeKeyEvent()
617 if (it != currentMonthData.days.end()) { in HandleCalendarNodeKeyEvent()
618 focusedDay_ = currentMonthData.days[it->index]; in HandleCalendarNodeKeyEvent()
625 auto it = std::find_if(currentMonthData.days.rbegin(), currentMonthData.days.rend(), in HandleCalendarNodeKeyEvent()
629 if (it != currentMonthData.days.rend()) { in HandleCalendarNodeKeyEvent()
630 focusedDay_ = currentMonthData.days[i in HandleCalendarNodeKeyEvent()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_component_v2.h37 void SetCalendarData(const ObtainedMonth& days) in SetCalendarData() argument
39 obtainedMonths_.emplace(days); in SetCalendarData()
H A Dcalendar_data_adapter.cpp64 static const std::string daysKey = "days"; in ParseData()
68 LOGE("not find days"); in ParseData()
74 LOGE("calendar days not array"); in ParseData()
80 LOGE("calendar days size cannot support, size = %{public}d", daySize); in ParseData()
123 result.days.push_back(dayInfo); in ParseData()
334 result.days.push_back(dayInfo); in ParseMonthData()
345 std::vector<std::string> days; in SetOffDays() local
346 StringUtils::StringSplitter(offDays_, ',', days); in SetOffDays()
348 for (const auto& day : days) { in SetOffDays()
437 result.days in FillPreMonthData()
[all...]
H A Drender_calendar.cpp138 calendarDays_ = daysOfMonth.days; in OnDataChanged()
141 calendarDays_ = daysOfMonth.days; in OnDataChanged()
144 calendarDays_ = daysOfMonth.days; in OnDataChanged()
147 rowCount_ = colCount_ ? static_cast<int32_t>(daysOfMonth.days.size()) / colCount_ : 0; in OnDataChanged()
153 calendarDays_ = daysOfMonth.days; in OnDataChanged()
168 rowCount_ = colCount_ ? static_cast<int32_t>(daysOfMonth.days.size()) / colCount_ : 0; in OnDataChanged()
270 LOGW("lost focus index is out of calendar days array"); in FocusChanged()
H A Dcalendar_data_adapter.h161 std::vector<CalendarDay> days; member
198 std::vector<CalendarDay> days; member
H A Drosen_render_calendar.cpp866 std::vector<std::string> days; in InitWorkStateStyle() local
867 StringUtils::StringSplitter(offDays_, ',', days); in InitWorkStateStyle()
869 for (const auto& day : days) { in InitWorkStateStyle()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/
H A Daging_util.cpp54 int64_t AgingUtil::GetUnusedTimeMsBaseOnCurrentTime(int64_t currentTimeMs, int32_t days) in GetUnusedTimeMsBaseOnCurrentTime() argument
56 return currentTimeMs - days * AgingRequest::GetOneDayTimeMs(); in GetUnusedTimeMsBaseOnCurrentTime()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/aging/
H A Daging_util.h29 static int64_t GetUnusedTimeMsBaseOnCurrentTime(int64_t currentTimeMs, int32_t days);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_calendar.cpp165 std::vector<CalendarDay> days; in GetCalendarData() local
172 days.emplace_back(std::move(day)); in GetCalendarData()
190 days.emplace_back(std::move(day)); in GetCalendarData()
192 obtainedMonth.days = days; in GetCalendarData()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_pattern.cpp1524 currentDate.SetDay(monthDaysIndex + 1); // days is index start form 0 and day start form 1. in GetCurrentDateByMonthDaysColumn()
2115 uint32_t days = date.day > 0 ? date.day - 1 : 0; // calculate days from 1900.1.1 to this date in LunarToSolar() local
2117 days += LunarCalculator::GetLunarMonthDays(date.year, date.month); in LunarToSolar()
2121 days += LunarCalculator::GetLunarLeapDays(date.year); in LunarToSolar()
2125 days += LunarCalculator::GetLunarMonthDays(date.year, month); in LunarToSolar()
2128 days += LunarCalculator::GetLunarYearDays(year); in LunarToSolar()
2130 days += 30; // days from solar's 1900.1.1 to lunar's 1900.1.1 is 30 in LunarToSolar()
2132 result.FromDays(days); in LunarToSolar()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar_picker/
H A Dcalendar_picker_test_ng.cpp2964 dialogPattern->PaintNonCurrentMonthFocusState(currentMonthData.days.size()); in HWTEST_F()
2965 dialogPattern->PaintNonCurrentMonthFocusState(currentMonthData.days.size() + 1); in HWTEST_F()
2967 dialogPattern->PaintNonCurrentMonthFocusState(currentMonthData.days.size() - 1); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/PathDrawingSample/hvigor/
H A Dhvigor-wrapper.js16 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"mi (…)
/foundation/distributeddatamgr/pasteboard/services/dialog/PasteboardDialog/hvigor/
H A Dhvigor-wrapper.js15 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"mi (…)

Completed in 38 milliseconds

12