@mescius/wijmo.angular2legacy.directivebase 5.20232.939

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/index.d.ts ADDED
@@ -0,0 +1,238 @@
1
+ /*!
2
+ *
3
+ * Wijmo Library 5.20232.939
4
+ * https://developer.mescius.com/wijmo
5
+ *
6
+ * Copyright(c) MESCIUS inc. All rights reserved.
7
+ *
8
+ * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
9
+ * us.sales@mescius.com
10
+ * https://developer.mescius.com/wijmo/licensing
11
+ *
12
+ */
13
+ /**
14
+ * {@module wijmo.angular2legacy.directivebase}
15
+ * Basic Wijmo for Angular 2 module containing internal common services and platform options.
16
+ *
17
+ * <b>wijmo.angular2legacy.directivebase</b> is an external TypeScript module that can be imported to your code
18
+ * using its ambient module name. For example:
19
+ *
20
+ * <pre>import * as wjBase from 'wijmo/wijmo.angular2legacy.directivebase';
21
+ * &nbsp;
22
+ * wjBase.WjOptions.asyncBindings = false;</pre>
23
+ *
24
+ */
25
+ /**
26
+ *
27
+ */
28
+ export declare var ___keepComment: any;
29
+ import { Injector, EventEmitter, NgZone } from '@angular/core';
30
+ import { ControlValueAccessor } from '@angular/forms';
31
+ import * as ng2 from '@angular/core';
32
+ /**
33
+ * Exposes global options for the Wijmo for Angular 2 interop.
34
+ */
35
+ export declare class WjOptions {
36
+ /**
37
+ * Indicates whether Wijmo components update binding sources of the two-way bound properties asynchronously
38
+ * or synchronously.
39
+ *
40
+ * If this property is set to true (default) then changes to the Wijmo components' properties
41
+ * with two-way bindings (like WjInputNumber.value) will cause the component to update a binding
42
+ * source property asynchronously, after the current change detection cycle is completed.
43
+ * Otherwise, if this property is set to false, the binding source will be updated immediately.
44
+ * A corresponding property change event (like WjInputNumber.valueChanged) is also triggered
45
+ * asynchronously or synchronously depending on this property value, after the binding source
46
+ * was updated.
47
+ *
48
+ * This global setting can be changed for specific instances of Wijmo components, by assigning
49
+ * the component's <b>asyncBindings</b> property with a specific boolean value.
50
+ *
51
+ * Transition to asynchronous binding source updates has happened in Wijmo version 350. Before that version,
52
+ * binding sources were updated immediately after the component's property change. In some cases this
53
+ * could lead to the <b>ExpressionChangedAfterItHasBeenCheckedError</b> exception in the applications running
54
+ * Angular in the debug mode. For example, if your component's property value is set to 0.12345, and
55
+ * you two-way bind it to the <b>value</b> property of the <b>WjInputNumber</b> component with the <b>format</b>
56
+ * property set to <b>'n2'</b>, the WjInputNumber immediately converts this value to 0.12. This change,
57
+ * in turn, causes Angular to update your component property (the source of this binding), so that its
58
+ * value changes from 0.12345 to 0.12. If this source update is performed synchronously then the binding
59
+ * source property changes its value during the same change detection cycle, which is prohibited by Angular.
60
+ * If Angular runs in debug mode then it executes a special check after every change detection cycle, which
61
+ * detects this change and raises the <b>ExpressionChangedAfterItHasBeenCheckedError</b> exception.
62
+ * Asynchronous binding source updates resolve this problem, because the binding source property
63
+ * is updated after the current change detection cycle has finished.
64
+ *
65
+ * If the <b>ExpressionChangedAfterItHasBeenCheckedError</b> is not an issue for you, and parts of
66
+ * you application logic are sensible to a moment when binding source update happens, you can change
67
+ * this functionality by setting the global <b>asyncBindings</b> property to false. This should be
68
+ * done before the first Wijmo component was instantiated by your application logic, and the best
69
+ * place to do it is the file where you declare the application's root NgModule. This can be done
70
+ * with the code like this:
71
+ * <pre>import * as wjBase from 'wijmo/wijmo.angular2legacy.directivebase';
72
+ * wjBase.WjOptions.asyncBindings = false;</pre>
73
+ *
74
+ * Alternatively, you can change the update mode for the specific component using its own
75
+ * <b>asyncBindings</b> property. For example:
76
+ * <pre>&lt;wj-input-number [asyncBindings]="false" [(value)]="amount"&gt;&lt;/wj-input-number&gt;</pre>
77
+ */
78
+ static asyncBindings: boolean;
79
+ }
80
+ export interface IWjMetaBase {
81
+ selector: string;
82
+ inputs: string[];
83
+ outputs: string[];
84
+ providers: any[];
85
+ }
86
+ export interface IWjComponentMeta extends IWjMetaBase {
87
+ template: string;
88
+ }
89
+ export interface IWjDirectiveMeta extends IWjMetaBase {
90
+ exportAs: string;
91
+ }
92
+ export declare type ChangePropertyEvent = {
93
+ prop: string;
94
+ evExposed: string;
95
+ evImpl: string;
96
+ };
97
+ export declare type EventPropertiesItem = {
98
+ event: string;
99
+ eventImpl: string;
100
+ props?: ChangePropertyEvent[];
101
+ };
102
+ export declare type EventProperties = EventPropertiesItem[];
103
+ export interface IWjComponentMetadata {
104
+ changeEvents?: {
105
+ [event: string]: string[];
106
+ };
107
+ outputs?: string[];
108
+ siblingId?: string;
109
+ parentRefProperty?: string;
110
+ }
111
+ export interface IPendingEvent {
112
+ event: EventEmitter<any>;
113
+ args: any;
114
+ }
115
+ export declare class WjComponentResolvedMetadata {
116
+ readonly changeEventMap: EventPropertiesItem[];
117
+ allImplEvents: string[];
118
+ constructor(rawMeta: IWjComponentMetadata);
119
+ private resolveChangeEventMap;
120
+ }
121
+ export declare class WjDirectiveBehavior {
122
+ static directiveTypeDataProp: string;
123
+ static directiveResolvedTypeDataProp: string;
124
+ static BehaviourRefProp: string;
125
+ static parPropAttr: string;
126
+ static wjModelPropAttr: string;
127
+ static initializedEventAttr: string;
128
+ static isInitializedPropAttr: string;
129
+ static siblingDirIdAttr: string;
130
+ static asyncBindingUpdatePropAttr: string;
131
+ static siblingDirId: number;
132
+ static wijmoComponentProviderId: string;
133
+ static ngZone: NgZone;
134
+ static outsideZoneEvents: {
135
+ 'pointermove': boolean;
136
+ 'pointerover': boolean;
137
+ 'mousemove': boolean;
138
+ 'wheel': boolean;
139
+ 'touchmove': boolean;
140
+ 'pointerenter': boolean;
141
+ 'pointerleave': boolean;
142
+ 'pointerout': boolean;
143
+ 'mouseover': boolean;
144
+ 'mouseenter': boolean;
145
+ 'mouseleave': boolean;
146
+ 'mouseout': boolean;
147
+ };
148
+ private static _pathBinding;
149
+ private _siblingInsertedMO;
150
+ private _pendingEvents;
151
+ private _pendingEventsTO;
152
+ directive: Object;
153
+ typeData: IWjComponentMetadata;
154
+ resolvedTypeData: WjComponentResolvedMetadata;
155
+ elementRef: ng2.ElementRef;
156
+ injector: ng2.Injector;
157
+ injectedParent: any;
158
+ parentBehavior: WjDirectiveBehavior;
159
+ isInitialized: boolean;
160
+ isDestroyed: boolean;
161
+ nz: NgZone;
162
+ nzRun: (fn: any) => any;
163
+ static getHostElement(ngHostElRef: ng2.ElementRef, injector?: Injector): HTMLElement;
164
+ static attach(directive: Object, elementRef: ng2.ElementRef, injector: ng2.Injector, injectedParent: any): WjDirectiveBehavior;
165
+ static getZone(directive: any): NgZone;
166
+ constructor(directive: Object, elementRef: ng2.ElementRef, injector: ng2.Injector, injectedParent: any);
167
+ ngOnInit(): void;
168
+ ngAfterViewInit(): void;
169
+ ngOnDestroy(): void;
170
+ static instantiateTemplate(parent: HTMLElement, viewContainerRef: ng2.ViewContainerRef, templateRef: ng2.TemplateRef<any>, /*domRenderer: ng2.Renderer,*/ useTemplateRoot?: boolean, dataContext?: any): {
171
+ viewRef: ng2.EmbeddedViewRef<any>;
172
+ rootElement: Element;
173
+ };
174
+ getPropChangeEvent(propName: string): string;
175
+ private _createEvents;
176
+ private _overrideDirectiveMethods;
177
+ private subscribeToEvents;
178
+ private addHandlers;
179
+ private triggerPropChangeEvents;
180
+ private _setupAsChild;
181
+ private _isAsyncBinding;
182
+ private _isChild;
183
+ private _isParentInitializer;
184
+ private _isParentReferencer;
185
+ private _getParentProp;
186
+ private _getParentReferenceProperty;
187
+ private _useParentObj;
188
+ private _parentInCtor;
189
+ private _initParent;
190
+ _getSiblingIndex(): number;
191
+ private _siblingInserted;
192
+ private _isHostElement;
193
+ private _triggerEvent;
194
+ private _triggerPendingEvents;
195
+ flushPendingEvents(): void;
196
+ private static evaluatePath;
197
+ static getBehavior(directive: any): WjDirectiveBehavior;
198
+ }
199
+ export declare class Ng2Utils {
200
+ static changeEventImplementSuffix: string;
201
+ static wjEventImplementSuffix: string;
202
+ static initEvents(directiveType: any, changeEvents: EventPropertiesItem[]): string[];
203
+ static getChangeEventNameImplemented(propertyName: any): string;
204
+ static getChangeEventNameExposed(propertyName: any): string;
205
+ private static getWjEventNameImplemented;
206
+ static getWjEventName(ngEventName: string): string;
207
+ static getBaseType(type: any): any;
208
+ static getAnnotations(type: any): any[];
209
+ static getAnnotation(annotations: any[], annotationType: any): any;
210
+ static getTypeAnnotation(type: any, annotationType: any, own?: boolean): any;
211
+ static equals(v1: any, v2: any): boolean;
212
+ static _copy(dst: any, src: any, override?: boolean, includePrivate?: boolean, filter?: (name: string, value: any) => boolean): void;
213
+ }
214
+ export declare class WjValueAccessor implements ControlValueAccessor {
215
+ private _writeQnt;
216
+ private _directive;
217
+ private _behavior;
218
+ private _ngModelProp;
219
+ private _modelValue;
220
+ private _isSubscribed;
221
+ private _dirUpdateQnt;
222
+ private _dirInitEh;
223
+ private _onChange;
224
+ private _onTouched;
225
+ constructor(/*@Inject(Injector) injector: Injector*/ directive: any);
226
+ writeValue(value: any): void;
227
+ registerOnChange(fn: (_: any) => void): void;
228
+ registerOnTouched(fn: () => void): void;
229
+ setDisabledState(isDisabled: boolean): void;
230
+ private _updateDirective;
231
+ private _ensureSubscribed;
232
+ private _ensureNgModelProp;
233
+ private _ensureInitEhUnsubscribed;
234
+ private _isFirstChange;
235
+ private _dirValChgEh;
236
+ private _dirLostFocusEh;
237
+ }
238
+ export declare function WjValueAccessorFactory(/*injector: Injector*/ directive: any): WjValueAccessor;
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /*!
2
+ *
3
+ * Wijmo Library 5.20232.939
4
+ * https://developer.mescius.com/wijmo
5
+ *
6
+ * Copyright(c) MESCIUS inc. All rights reserved.
7
+ *
8
+ * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
9
+ * us.sales@mescius.com
10
+ * https://developer.mescius.com/wijmo/licensing
11
+ *
12
+ */
13
+
14
+ "use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});var core_1=require("@angular/core"),wijmo=__importStar(require("@mescius/wijmo")),WjOptions=function(){function WjOptions(){}WjOptions.asyncBindings=!0;return WjOptions}();exports.WjOptions=WjOptions;var WjComponentResolvedMetadata=function(){function WjComponentResolvedMetadata(e){this.changeEventMap=[];this.allImplEvents=[];this.resolveChangeEventMap(e)}WjComponentResolvedMetadata.prototype.resolveChangeEventMap=function(e){var t=this.changeEventMap,i=e.outputs,r=e.changeEvents||{};t.splice(0,t.length);this.allImplEvents=[];if(i&&i.length){var n=i.map((function(e){return e.split(":")})).map((function(e){return{implName:e[0].trim(),exposeName:e[1]&&e[1].trim()}}));this.allImplEvents=n.map((function(e){return e.implName}));for(var o=0,s=n.filter((function(e){return e.implName&&e.exposeName}));o<s.length;o++){var a=s[o];if(Ng2Utils.getWjEventName(a.implName)){var v={eventImpl:a.implName,event:a.exposeName},h=r[a.exposeName];h&&h.length&&(v.props=h.map((function(e){return{prop:e,evExposed:Ng2Utils.getChangeEventNameExposed(e),evImpl:Ng2Utils.getChangeEventNameImplemented(e)}})));t.push(v)}}for(var c in r)if(c.indexOf(".")>-1){v={eventImpl:null,event:c,props:r[c].map((function(e){return{prop:e,evExposed:Ng2Utils.getChangeEventNameExposed(e),evImpl:Ng2Utils.getChangeEventNameImplemented(e)}}))};t.push(v)}}};return WjComponentResolvedMetadata}();exports.WjComponentResolvedMetadata=WjComponentResolvedMetadata;var WjDirectiveBehavior=function(){function WjDirectiveBehavior(e,t,i,r){this._pendingEvents=[];this.isInitialized=!1;this.isDestroyed=!1;this.nzRun=function(e){return e()};this.directive=e;this.elementRef=t;this.injector=i;this._overrideDirectiveMethods();var n=this.nz=i.get(core_1.NgZone);n&&(this.nzRun=n.run.bind(n));this.injectedParent=r;var o=this.typeData=e.constructor[WjDirectiveBehavior.directiveTypeDataProp];null==o.siblingId&&(o.siblingId=++WjDirectiveBehavior.siblingDirId+"");var s=e.constructor[WjDirectiveBehavior.directiveResolvedTypeDataProp];s?this.resolvedTypeData=s:e.constructor[WjDirectiveBehavior.directiveResolvedTypeDataProp]=s=this.resolvedTypeData=new WjComponentResolvedMetadata(o);e[WjDirectiveBehavior.BehaviourRefProp]=this;i[WjDirectiveBehavior.BehaviourRefProp]=this;e[WjDirectiveBehavior.isInitializedPropAttr]=!1;this._createEvents();this._setupAsChild();this._isHostElement()&&t.nativeElement.setAttribute(WjDirectiveBehavior.siblingDirIdAttr,o.siblingId);this.subscribeToEvents(!1)}WjDirectiveBehavior.getHostElement=function(e,t){WjDirectiveBehavior.ngZone=t.get(core_1.NgZone);return e.nativeElement};WjDirectiveBehavior.attach=function(e,t,i,r){return new WjDirectiveBehavior(e,t,i,r)};WjDirectiveBehavior.getZone=function(e){var t=WjDirectiveBehavior.getBehavior(e);return t&&t.nz||WjDirectiveBehavior.ngZone};WjDirectiveBehavior.prototype.ngOnInit=function(){this.isInitialized=!0;this._initParent();this.subscribeToEvents(!0)};WjDirectiveBehavior.prototype.ngAfterViewInit=function(){var e=this;this.directive[WjDirectiveBehavior.isInitializedPropAttr]=!0;setTimeout((function(){e.isDestroyed||e.directive[WjDirectiveBehavior.initializedEventAttr].emit(void 0)}))};WjDirectiveBehavior.prototype.ngOnDestroy=function(){if(!this.isDestroyed){this.isDestroyed=!0;var e=this.directive;this._siblingInsertedMO&&this._siblingInsertedMO.disconnect();if(this._isChild()&&this.parentBehavior){var t=this.parentBehavior.directive,i=this._getParentProp();if(!this.parentBehavior.isDestroyed&&t&&i&&e){var r=t[i];if(wijmo.isArray(r)&&r){var n=r.indexOf(e);n>=0&&r.splice(n,1)}}}if(e instanceof wijmo.Control&&e.hostElement){var o=this.elementRef.nativeElement,s=o&&o.parentNode,a=s?Array.prototype.indexOf.call(s.childNodes,o):-1;e.dispose();if(a>-1&&Array.prototype.indexOf.call(s.childNodes,o)<0){o.textContent="";a<s.childNodes.length&&s.replaceChild(o,s.childNodes[a])}}this.injector[WjDirectiveBehavior.BehaviourRefProp]=null}};WjDirectiveBehavior.instantiateTemplate=function(e,t,i,r,n){void 0===r&&(r=!1);void 0===n&&(n={});var o,s=t.createEmbeddedView(i,n,t.length),a=s.rootNodes;if(r&&1===a.length)o=a[0];else{o=document.createElement("div");for(var v=0,h=a;v<h.length;v++){var c=h[v];o.appendChild(c)}}e&&e.appendChild(o);return{viewRef:s,rootElement:o}};WjDirectiveBehavior.prototype.getPropChangeEvent=function(e){var t=this.typeData.changeEvents;if(t)for(var i in t)if(t[i].indexOf(e)>-1)return i;return null};WjDirectiveBehavior.prototype._createEvents=function(){for(var e=0,t=this.resolvedTypeData.allImplEvents;e<t.length;e++){var i=t[e];this.directive[i]=new core_1.EventEmitter(!1)}};WjDirectiveBehavior.prototype._overrideDirectiveMethods=function(){var e=this.directive;if(e instanceof wijmo.Control){var t=e._resizeObserverCallback.bind(e);e._resizeObserverCallback=function(e){core_1.NgZone.isInAngularZone()?t(e):WjDirectiveBehavior.getZone(this).run((function(){t(e)}))}.bind(e)}};WjDirectiveBehavior.prototype.subscribeToEvents=function(e){var t=this.resolvedTypeData.changeEventMap;e=!!e;for(var i=0,r=t;i<r.length;i++){e!==(s=r[i]).event.indexOf(".")<0&&this.addHandlers(s)}if(e)for(var n=0,o=t;n<o.length;n++){var s=o[n];this.triggerPropChangeEvents(s,!0)}};WjDirectiveBehavior.prototype.addHandlers=function(e){var t=this,i=this.directive;WjDirectiveBehavior.evaluatePath(i,e.event).addHandler((function(r,n){t.nzRun((function(){t.isInitialized&&t.triggerPropChangeEvents(e);e.eventImpl&&t._triggerEvent(i[e.eventImpl],n,e.props&&e.props.length>0)}))}))};WjDirectiveBehavior.prototype.triggerPropChangeEvents=function(e,t){void 0===t&&(t=!0);var i=this.directive;if(e.props&&e.props.length)for(var r=0,n=e.props;r<n.length;r++){var o=n[r];this._triggerEvent(i[o.evImpl],i[o.prop],t)}};WjDirectiveBehavior.prototype._setupAsChild=function(){if(this._isChild()){this._isHostElement()&&(this.elementRef.nativeElement.style.display="none");this.parentBehavior=WjDirectiveBehavior.getBehavior(this.injectedParent)}};WjDirectiveBehavior.prototype._isAsyncBinding=function(){var e=this.directive[WjDirectiveBehavior.asyncBindingUpdatePropAttr];return null==e?WjOptions.asyncBindings:e};WjDirectiveBehavior.prototype._isChild=function(){return this._isParentInitializer()||this._isParentReferencer()};WjDirectiveBehavior.prototype._isParentInitializer=function(){return null!=this.directive[WjDirectiveBehavior.parPropAttr]};WjDirectiveBehavior.prototype._isParentReferencer=function(){return!!this.typeData.parentRefProperty};WjDirectiveBehavior.prototype._getParentProp=function(){return this.directive[WjDirectiveBehavior.parPropAttr]};WjDirectiveBehavior.prototype._getParentReferenceProperty=function(){return this.typeData.parentRefProperty};WjDirectiveBehavior.prototype._useParentObj=function(){return!1};WjDirectiveBehavior.prototype._parentInCtor=function(){return this._isParentReferencer()&&""==this._getParentReferenceProperty()};WjDirectiveBehavior.prototype._initParent=function(){if(this.parentBehavior&&!this._useParentObj()){var e=this.parentBehavior.directive,t=this._getParentProp(),i=this.directive;if(this._isParentInitializer()){this._getParentProp();var r=e[t];if(wijmo.isArray(r)){var n=this._isHostElement(),o=n?this._getSiblingIndex():-1;(o<0||o>=r.length)&&(o=r.length);r.splice(o,0,i);if(n){var s=this.elementRef.nativeElement;this._siblingInsertedMO=new MutationObserver(this._siblingInserted.bind(this));this._siblingInsertedMO.observe(s,{childList:!0})}}else e[t]=i}this._isParentReferencer()&&!this._parentInCtor()&&(i[this._getParentReferenceProperty()]=e)}};WjDirectiveBehavior.prototype._getSiblingIndex=function(){var e=this.elementRef.nativeElement,t=e.parentElement;if(!t)return-1;for(var i=t.childNodes,r=-1,n=this.typeData.siblingId,o=0;o<i.length;o++){var s=i[o];if(1==s.nodeType&&s.getAttribute(WjDirectiveBehavior.siblingDirIdAttr)==n){++r;if(s===e)return r}}return-1};WjDirectiveBehavior.prototype._siblingInserted=function(e){for(var t=this,i=0,r=e;i<r.length;i++){var n=r[i];if("childList"===n.type&&n.addedNodes.length>0){if(Array.from(n.addedNodes).some((function(e){return e===t.elementRef.nativeElement}))){var o=this._getSiblingIndex(),s=this.parentBehavior.directive[this._getParentProp()],a=this.directive,v=s.indexOf(a);if(o>=0&&v>=0&&o!==v){s.splice(v,1);var h=Math.min(o,s.length);s.splice(h,0,a)}}}}};WjDirectiveBehavior.prototype._isHostElement=function(){return this.elementRef.nativeElement.nodeType===Node.ELEMENT_NODE};WjDirectiveBehavior.prototype._triggerEvent=function(e,t,i){var r=this;if(i&&this._isAsyncBinding()){var n={event:e,args:t};this._pendingEvents.push(n);null==this._pendingEventsTO&&(this._pendingEventsTO=setTimeout((function(){r._triggerPendingEvents(!1)}),0))}else e.emit(t)};WjDirectiveBehavior.prototype._triggerPendingEvents=function(e){if(null!=this._pendingEventsTO){clearTimeout(this._pendingEventsTO);this._pendingEventsTO=null}if(!this.isDestroyed){var t=[].concat(this._pendingEvents);this._pendingEvents.splice(0,this._pendingEvents.length);for(var i=0,r=t;i<r.length;i++){var n=r[i];n.event.emit(n.args)}e&&this._pendingEvents.length&&this._triggerPendingEvents(!0)}};WjDirectiveBehavior.prototype.flushPendingEvents=function(){this._triggerPendingEvents(!0)};WjDirectiveBehavior.evaluatePath=function(e,t){this._pathBinding.path=t;return this._pathBinding.getValue(e)};WjDirectiveBehavior.getBehavior=function(e){return e?e[WjDirectiveBehavior.BehaviourRefProp]:null};WjDirectiveBehavior.directiveTypeDataProp="meta";WjDirectiveBehavior.directiveResolvedTypeDataProp="_wjResolvedMeta";WjDirectiveBehavior.BehaviourRefProp="_wjBehaviour";WjDirectiveBehavior.parPropAttr="wjProperty";WjDirectiveBehavior.wjModelPropAttr="wjModelProperty";WjDirectiveBehavior.initializedEventAttr="initialized";WjDirectiveBehavior.isInitializedPropAttr="isInitialized";WjDirectiveBehavior.siblingDirIdAttr="wj-directive-id";WjDirectiveBehavior.asyncBindingUpdatePropAttr="asyncBindings";WjDirectiveBehavior.siblingDirId=0;WjDirectiveBehavior.wijmoComponentProviderId="WjComponent";WjDirectiveBehavior.outsideZoneEvents={pointermove:!0,pointerover:!0,mousemove:!0,wheel:!0,touchmove:!0,pointerenter:!0,pointerleave:!0,pointerout:!0,mouseover:!0,mouseenter:!0,mouseleave:!0,mouseout:!0};WjDirectiveBehavior._pathBinding=new wijmo.Binding("");return WjDirectiveBehavior}();exports.WjDirectiveBehavior=WjDirectiveBehavior;var Ng2Utils=function(){function Ng2Utils(){}Ng2Utils.initEvents=function(e,t){for(var i=[],r=0,n=t;r<n.length;r++){var o=n[r],s=o.props;o.event&&o.eventImpl&&i.push(o.eventImpl+":"+o.event);if(s&&s.length)for(var a=0,v=s;a<v.length;a++){var h=v[a];i.push(h.evImpl+":"+h.evExposed)}}return i};Ng2Utils.getChangeEventNameImplemented=function(e){return Ng2Utils.getChangeEventNameExposed(e)+Ng2Utils.changeEventImplementSuffix};Ng2Utils.getChangeEventNameExposed=function(e){return e+"Change"};Ng2Utils.getWjEventNameImplemented=function(e){return e+Ng2Utils.wjEventImplementSuffix};Ng2Utils.getWjEventName=function(e){if(e){var t=Ng2Utils.wjEventImplementSuffix,i=e.length-t.length;if(i>0&&e.substr(i)===t)return e.substr(0,i)}return null};Ng2Utils.getBaseType=function(e){var t;return e&&(t=Object.getPrototypeOf(e.prototype))&&t.constructor};Ng2Utils.getAnnotations=function(e){return Reflect.getMetadata("annotations",e)};Ng2Utils.getAnnotation=function(e,t){if(t&&e)for(var i=0,r=e;i<r.length;i++){var n=r[i];if(n instanceof t)return n}return null};Ng2Utils.getTypeAnnotation=function(e,t,i){for(var r=e;r;r=i?null:Ng2Utils.getBaseType(r)){var n=Ng2Utils.getAnnotation(Ng2Utils.getAnnotations(r),t);if(n)return n}return null};Ng2Utils.equals=function(e,t){return e!=e&&t!=t||wijmo.DateTime.equals(e,t)||e===t};Ng2Utils._copy=function(e,t,i,r,n){if(e&&t)for(var o in t)if(r||"_"!==o[0]){var s=t[o];if(!n||n(o,s)){var a=e[o];wijmo.isArray(s)?e[o]=(!wijmo.isArray(a)||i?[]:a).concat(s):void 0!==s&&(e[o]=s)}}};Ng2Utils.changeEventImplementSuffix="PC";Ng2Utils.wjEventImplementSuffix="Ng";return Ng2Utils}();exports.Ng2Utils=Ng2Utils;var WjValueAccessor=function(){function WjValueAccessor(e){this._writeQnt=0;this._isSubscribed=!1;this._dirUpdateQnt=0;this._onChange=function(e){};this._onTouched=function(){};this._directive=e;this._behavior=WjDirectiveBehavior.getBehavior(e)}WjValueAccessor.prototype.writeValue=function(e){var t=this;this._modelValue=e;++this._writeQnt;if(this._directive.isInitialized){this._ensureInitEhUnsubscribed();this._updateDirective()}else if(!this._dirInitEh){var i=this._directive.initialized;this._dirInitEh=i.subscribe((function(){t._updateDirective();t._ensureInitEhUnsubscribed()}))}};WjValueAccessor.prototype.registerOnChange=function(e){this._onChange=e};WjValueAccessor.prototype.registerOnTouched=function(e){this._onTouched=e};WjValueAccessor.prototype.setDisabledState=function(e){var t=this._directive;t instanceof wijmo.Control&&(t.isDisabled=e)};WjValueAccessor.prototype._updateDirective=function(){if(!this._isFirstChange()||null!=this._modelValue){this._ensureNgModelProp();if(this._directive&&this._ngModelProp){var e=this._modelValue;""===e&&(e=null);this._dirUpdateQnt++;try{this._directive[this._ngModelProp]=e}finally{this._dirUpdateQnt--}}this._ensureSubscribed()}};WjValueAccessor.prototype._ensureSubscribed=function(){if(!this._isSubscribed){var e=this._directive;if(e){this._ensureNgModelProp();var t=this._ngModelProp=e[WjDirectiveBehavior.wjModelPropAttr];if(t){var i=this._behavior.getPropChangeEvent(t);i&&e[i].addHandler(this._dirValChgEh,this)}e instanceof wijmo.Control&&e.lostFocus.addHandler(this._dirLostFocusEh,this);this._isSubscribed=!0}}};WjValueAccessor.prototype._ensureNgModelProp=function(){!this._ngModelProp&&this._directive&&(this._ngModelProp=this._directive[WjDirectiveBehavior.wjModelPropAttr])};WjValueAccessor.prototype._ensureInitEhUnsubscribed=function(){if(this._dirInitEh){this._dirInitEh.unsubscribe();this._dirInitEh=null}};WjValueAccessor.prototype._isFirstChange=function(){return this._writeQnt<2};WjValueAccessor.prototype._dirValChgEh=function(e,t){if(this._onChange&&this._directive&&this._ngModelProp){var i=this._directive[this._ngModelProp],r=this._modelValue;""===r&&(r=null);if(!(this._dirUpdateQnt>0&&_isNullOrEmpty(r)&&_isNullOrEmpty(i)||Ng2Utils.equals(r,i))||wijmo.isArray(i)){this._modelValue=i;this._onChange(i)}}};WjValueAccessor.prototype._dirLostFocusEh=function(e,t){this._onTouched&&this._onTouched()};return WjValueAccessor}();exports.WjValueAccessor=WjValueAccessor;function WjValueAccessorFactory(e){return new WjValueAccessor(e)}exports.WjValueAccessorFactory=WjValueAccessorFactory;function _isNullOrEmpty(e){return null==e||""===e}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":3,"metadata":{"___keepComment":{"__symbolic":"error","message":"Variable not initialized","line":28,"character":19},"WjOptions":{"__symbolic":"class","statics":{"asyncBindings":true}},"IWjMetaBase":{"__symbolic":"interface"},"IWjComponentMeta":{"__symbolic":"interface"},"IWjDirectiveMeta":{"__symbolic":"interface"},"ChangePropertyEvent":{"__symbolic":"interface"},"EventPropertiesItem":{"__symbolic":"interface"},"EventProperties":{"__symbolic":"interface"},"IWjComponentMetadata":{"__symbolic":"interface"},"IPendingEvent":{"__symbolic":"interface"},"WjComponentResolvedMetadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"resolveChangeEventMap":[{"__symbolic":"method"}]}},"WjDirectiveBehavior":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Object"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"any"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"getPropChangeEvent":[{"__symbolic":"method"}],"_createEvents":[{"__symbolic":"method"}],"_overrideDirectiveMethods":[{"__symbolic":"method"}],"subscribeToEvents":[{"__symbolic":"method"}],"addHandlers":[{"__symbolic":"method"}],"triggerPropChangeEvents":[{"__symbolic":"method"}],"_setupAsChild":[{"__symbolic":"method"}],"_isAsyncBinding":[{"__symbolic":"method"}],"_isChild":[{"__symbolic":"method"}],"_isParentInitializer":[{"__symbolic":"method"}],"_isParentReferencer":[{"__symbolic":"method"}],"_getParentProp":[{"__symbolic":"method"}],"_getParentReferenceProperty":[{"__symbolic":"method"}],"_useParentObj":[{"__symbolic":"method"}],"_parentInCtor":[{"__symbolic":"method"}],"_initParent":[{"__symbolic":"method"}],"_getSiblingIndex":[{"__symbolic":"method"}],"_siblingInserted":[{"__symbolic":"method"}],"_isHostElement":[{"__symbolic":"method"}],"_triggerEvent":[{"__symbolic":"method"}],"_triggerPendingEvents":[{"__symbolic":"method"}],"flushPendingEvents":[{"__symbolic":"method"}]},"statics":{"directiveTypeDataProp":"meta","directiveResolvedTypeDataProp":"_wjResolvedMeta","BehaviourRefProp":"_wjBehaviour","parPropAttr":"wjProperty","wjModelPropAttr":"wjModelProperty","initializedEventAttr":"initialized","isInitializedPropAttr":"isInitialized","siblingDirIdAttr":"wj-directive-id","asyncBindingUpdatePropAttr":"asyncBindings","siblingDirId":0,"wijmoComponentProviderId":"WjComponent","ngZone":{"__symbolic":"error","message":"Variable not initialized","line":214,"character":11},"outsideZoneEvents":{"pointermove":true,"pointerover":true,"mousemove":true,"wheel":true,"touchmove":true,"pointerenter":true,"pointerleave":true,"pointerout":true,"mouseover":true,"mouseenter":true,"mouseleave":true,"mouseout":true,"$quoted$":["pointermove","pointerover","mousemove","wheel","touchmove","pointerenter","pointerleave","pointerout","mouseover","mouseenter","mouseleave","mouseout"]},"_pathBinding":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@mescius/wijmo","name":"Binding"},"arguments":[""]},"attach":{"__symbolic":"function","parameters":["directive","elementRef","injector","injectedParent"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"WjDirectiveBehavior"},"arguments":[{"__symbolic":"reference","name":"directive"},{"__symbolic":"reference","name":"elementRef"},{"__symbolic":"reference","name":"injector"},{"__symbolic":"reference","name":"injectedParent"}]}},"getBehavior":{"__symbolic":"function","parameters":["directive"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"directive"},"thenExpression":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"directive"},"index":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"WjDirectiveBehavior"},"member":"BehaviourRefProp"}},"elseExpression":null}}}},"Ng2Utils":{"__symbolic":"class","statics":{"changeEventImplementSuffix":"PC","wjEventImplementSuffix":"Ng","getChangeEventNameImplemented":{"__symbolic":"function","parameters":["propertyName"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Ng2Utils"},"member":"getChangeEventNameExposed"},"arguments":[{"__symbolic":"reference","name":"propertyName"}]},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Ng2Utils"},"member":"changeEventImplementSuffix"}}},"getChangeEventNameExposed":{"__symbolic":"function","parameters":["propertyName"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"propertyName"},"right":"Change"}},"getWjEventNameImplemented":{"__symbolic":"function","parameters":["eventName"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"eventName"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Ng2Utils"},"member":"wjEventImplementSuffix"}}},"getAnnotations":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Reflect"},"member":"getMetadata"},"arguments":["annotations",{"__symbolic":"reference","name":"type"}]}},"equals":{"__symbolic":"function","parameters":["v1","v2"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"v1"},"right":{"__symbolic":"reference","name":"v1"}},"right":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"v2"},"right":{"__symbolic":"reference","name":"v2"}}},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@mescius/wijmo","name":"DateTime"},"member":"equals"},"arguments":[{"__symbolic":"reference","name":"v1"},{"__symbolic":"reference","name":"v2"}]}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"v1"},"right":{"__symbolic":"reference","name":"v2"}}}}}},"WjValueAccessor":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"_updateDirective":[{"__symbolic":"method"}],"_ensureSubscribed":[{"__symbolic":"method"}],"_ensureNgModelProp":[{"__symbolic":"method"}],"_ensureInitEhUnsubscribed":[{"__symbolic":"method"}],"_isFirstChange":[{"__symbolic":"method"}],"_dirValChgEh":[{"__symbolic":"method"}],"_dirLostFocusEh":[{"__symbolic":"method"}]}},"WjValueAccessorFactory":{"__symbolic":"function","parameters":["directive"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"WjValueAccessor"},"arguments":[{"__symbolic":"reference","name":"directive"}]}}}},{"__symbolic":"module","version":1,"metadata":{"___keepComment":{"__symbolic":"error","message":"Variable not initialized","line":28,"character":19},"WjOptions":{"__symbolic":"class","statics":{"asyncBindings":true}},"IWjMetaBase":{"__symbolic":"interface"},"IWjComponentMeta":{"__symbolic":"interface"},"IWjDirectiveMeta":{"__symbolic":"interface"},"ChangePropertyEvent":{"__symbolic":"interface"},"EventPropertiesItem":{"__symbolic":"interface"},"EventProperties":{"__symbolic":"interface"},"IWjComponentMetadata":{"__symbolic":"interface"},"IPendingEvent":{"__symbolic":"interface"},"WjComponentResolvedMetadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"resolveChangeEventMap":[{"__symbolic":"method"}]}},"WjDirectiveBehavior":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Object"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"any"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"getPropChangeEvent":[{"__symbolic":"method"}],"_createEvents":[{"__symbolic":"method"}],"_overrideDirectiveMethods":[{"__symbolic":"method"}],"subscribeToEvents":[{"__symbolic":"method"}],"addHandlers":[{"__symbolic":"method"}],"triggerPropChangeEvents":[{"__symbolic":"method"}],"_setupAsChild":[{"__symbolic":"method"}],"_isAsyncBinding":[{"__symbolic":"method"}],"_isChild":[{"__symbolic":"method"}],"_isParentInitializer":[{"__symbolic":"method"}],"_isParentReferencer":[{"__symbolic":"method"}],"_getParentProp":[{"__symbolic":"method"}],"_getParentReferenceProperty":[{"__symbolic":"method"}],"_useParentObj":[{"__symbolic":"method"}],"_parentInCtor":[{"__symbolic":"method"}],"_initParent":[{"__symbolic":"method"}],"_getSiblingIndex":[{"__symbolic":"method"}],"_siblingInserted":[{"__symbolic":"method"}],"_isHostElement":[{"__symbolic":"method"}],"_triggerEvent":[{"__symbolic":"method"}],"_triggerPendingEvents":[{"__symbolic":"method"}],"flushPendingEvents":[{"__symbolic":"method"}]},"statics":{"directiveTypeDataProp":"meta","directiveResolvedTypeDataProp":"_wjResolvedMeta","BehaviourRefProp":"_wjBehaviour","parPropAttr":"wjProperty","wjModelPropAttr":"wjModelProperty","initializedEventAttr":"initialized","isInitializedPropAttr":"isInitialized","siblingDirIdAttr":"wj-directive-id","asyncBindingUpdatePropAttr":"asyncBindings","siblingDirId":0,"wijmoComponentProviderId":"WjComponent","ngZone":{"__symbolic":"error","message":"Variable not initialized","line":214,"character":11},"outsideZoneEvents":{"pointermove":true,"pointerover":true,"mousemove":true,"wheel":true,"touchmove":true,"pointerenter":true,"pointerleave":true,"pointerout":true,"mouseover":true,"mouseenter":true,"mouseleave":true,"mouseout":true},"_pathBinding":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@mescius/wijmo","name":"Binding"},"arguments":[""]},"attach":{"__symbolic":"function","parameters":["directive","elementRef","injector","injectedParent"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"WjDirectiveBehavior"},"arguments":[{"__symbolic":"reference","name":"directive"},{"__symbolic":"reference","name":"elementRef"},{"__symbolic":"reference","name":"injector"},{"__symbolic":"reference","name":"injectedParent"}]}},"getBehavior":{"__symbolic":"function","parameters":["directive"],"value":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"directive"},"thenExpression":{"__symbolic":"index","expression":{"__symbolic":"reference","name":"directive"},"index":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"WjDirectiveBehavior"},"member":"BehaviourRefProp"}},"elseExpression":null}}}},"Ng2Utils":{"__symbolic":"class","statics":{"changeEventImplementSuffix":"PC","wjEventImplementSuffix":"Ng","getChangeEventNameImplemented":{"__symbolic":"function","parameters":["propertyName"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Ng2Utils"},"member":"getChangeEventNameExposed"},"arguments":[{"__symbolic":"reference","name":"propertyName"}]},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Ng2Utils"},"member":"changeEventImplementSuffix"}}},"getChangeEventNameExposed":{"__symbolic":"function","parameters":["propertyName"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"propertyName"},"right":"Change"}},"getWjEventNameImplemented":{"__symbolic":"function","parameters":["eventName"],"value":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"reference","name":"eventName"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Ng2Utils"},"member":"wjEventImplementSuffix"}}},"getAnnotations":{"__symbolic":"function","parameters":["type"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Reflect"},"member":"getMetadata"},"arguments":["annotations",{"__symbolic":"reference","name":"type"}]}},"equals":{"__symbolic":"function","parameters":["v1","v2"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"v1"},"right":{"__symbolic":"reference","name":"v1"}},"right":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"v2"},"right":{"__symbolic":"reference","name":"v2"}}},"right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@mescius/wijmo","name":"DateTime"},"member":"equals"},"arguments":[{"__symbolic":"reference","name":"v1"},{"__symbolic":"reference","name":"v2"}]}},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"v1"},"right":{"__symbolic":"reference","name":"v2"}}}}}},"WjValueAccessor":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"_updateDirective":[{"__symbolic":"method"}],"_ensureSubscribed":[{"__symbolic":"method"}],"_ensureNgModelProp":[{"__symbolic":"method"}],"_ensureInitEhUnsubscribed":[{"__symbolic":"method"}],"_isFirstChange":[{"__symbolic":"method"}],"_dirValChgEh":[{"__symbolic":"method"}],"_dirLostFocusEh":[{"__symbolic":"method"}]}},"WjValueAccessorFactory":{"__symbolic":"function","parameters":["directive"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"WjValueAccessor"},"arguments":[{"__symbolic":"reference","name":"directive"}]}}}}]
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@mescius/wijmo.angular2legacy.directivebase",
3
+ "version": "5.20232.939",
4
+ "description": "UI library for pure JS, Angular, React, Vue and more...",
5
+ "author": "MESCIUS inc",
6
+ "license": "Commercial",
7
+ "main": "./index.js",
8
+ "types": "./index.d.ts",
9
+ "dependencies": {
10
+ "@mescius/wijmo": "5.20232.939"
11
+ },
12
+ "homepage": "https://developer.mescius.com/wijmo",
13
+ "bugs": {
14
+ "url": "https://developer.mescius.com/forums/wijmo"
15
+ },
16
+ "keywords": [
17
+ "control",
18
+ "component",
19
+ "ui",
20
+ "control library",
21
+ "component library",
22
+ "ui library",
23
+ "control-library",
24
+ "component-library",
25
+ "ui-library",
26
+ "grid",
27
+ "data grid",
28
+ "data-grid",
29
+ "datagrid",
30
+ "angular grid",
31
+ "react grid",
32
+ "vue grid",
33
+ "angular-grid",
34
+ "react-grid",
35
+ "vue-grid"
36
+ ],
37
+ "module": "./es5-esm.js",
38
+ "esm5": "./es5-esm.js",
39
+ "wj-esm5": "./es5-esm.js",
40
+ "es2015Cjs": "./es2015-commonjs.js",
41
+ "wj-es2015Cjs": "./es2015-commonjs.js",
42
+ "esm2015": "./es2015-esm.js",
43
+ "wj-esm2015": "./es2015-esm.js",
44
+ "bin": {
45
+ "wijmo-esm": "./tools/wijmo-esm.js"
46
+ }
47
+ }
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env node
2
+ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(r,s,function(e){return t[e]}.bind(null,s));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=78)}([function(t,e){t.exports=require("path")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;const r=n(25);e.array=r;const s=n(26);e.errno=s;const i=n(27);e.fs=i;const o=n(28);e.path=o;const a=n(29);e.pattern=a;const u=n(44);e.stream=u;const c=n(46);e.string=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(48),s=n(49),i=n(50);function o(t={}){return t instanceof i.default?t:new i.default(t)}e.Settings=i.default,e.stat=function(t,e,n){if("function"==typeof e)return r.read(t,o(),e);r.read(t,o(e),n)},e.statSync=function(t,e){const n=o(e);return s.read(t,n)}},function(t,e){t.exports=require("fs")},function(t,e,n){"use strict";const r=n(0),s="win32"===process.platform,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=n(5);e.isObject=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),e.hasRegexChars=t=>a.test(t),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=t=>t.replace(u,"\\$1"),e.toPosixSlashes=t=>t.replace(i,"/"),e.removeBackslashes=t=>t.replace(o,t=>"\\"===t?"":t),e.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);return 3===t.length&&t[0]>=9||8===t[0]&&t[1]>=10},e.isWindows=t=>t&&"boolean"==typeof t.windows?t.windows:!0===s||"\\"===r.sep,e.escapeLast=(t,n,r)=>{const s=t.lastIndexOf(n,r);return-1===s?t:"\\"===t[s-1]?e.escapeLast(t,n,s-1):`${t.slice(0,s)}\\${t.slice(s)}`},e.removePrefix=(t,e={})=>{let n=t;return n.startsWith("./")&&(n=n.slice(2),e.prefix="./"),n},e.wrapOutput=(t,e={},n={})=>{let r=`${n.contains?"":"^"}(?:${t})${n.contains?"":"$"}`;return!0===e.negated&&(r=`(?:^(?!${r}).*$)`),r}},function(t,e,n){"use strict";const r=n(0),s={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},i={...s,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};t.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars:t=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:t=>!0===t?i:s}},function(t,e){t.exports=require("stream")},function(t,e,n){"use strict";const r=n(8);t.exports=(t,e={})=>{let n=(t,s={})=>{let i=e.escapeInvalid&&r.isInvalidBrace(s),o=!0===t.invalid&&!0===e.escapeInvalid,a="";if(t.value)return(i||o)&&r.isOpenOrClose(t)?"\\"+t.value:t.value;if(t.value)return t.value;if(t.nodes)for(let e of t.nodes)a+=n(e);return a};return n(t)}},function(t,e,n){"use strict";e.isInteger=t=>"number"==typeof t?Number.isInteger(t):"string"==typeof t&&""!==t.trim()&&Number.isInteger(Number(t)),e.find=(t,e)=>t.nodes.find(t=>t.type===e),e.exceedsLimit=(t,n,r=1,s)=>!1!==s&&(!(!e.isInteger(t)||!e.isInteger(n))&&(Number(n)-Number(t))/Number(r)>=s),e.escapeNode=(t,e=0,n)=>{let r=t.nodes[e];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},e.encloseBrace=t=>"brace"===t.type&&(t.commas>>0+t.ranges>>0==0&&(t.invalid=!0,!0)),e.isInvalidBrace=t=>"brace"===t.type&&(!(!0!==t.invalid&&!t.dollar)||(t.commas>>0+t.ranges>>0==0||!0!==t.open||!0!==t.close)&&(t.invalid=!0,!0)),e.isOpenOrClose=t=>"open"===t.type||"close"===t.type||(!0===t.open||!0===t.close),e.reduce=t=>t.reduce((t,e)=>("text"===e.type&&t.push(e.value),"range"===e.type&&(e.type="text"),t),[]),e.flatten=(...t)=>{const e=[],n=t=>{for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?n(s,e):void 0!==s&&e.push(s)}return e};return n(t),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(54),s=n(57),i=n(58);function o(t={}){return t instanceof i.default?t:new i.default(t)}e.Settings=i.default,e.scandir=function(t,e,n){if("function"==typeof e)return r.read(t,o(),e);r.read(t,o(e),n)},e.scandirSync=function(t,e){const n=o(e);return s.read(t,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFatalError=function(t,e){return null===t.errorFilter||!t.errorFilter(e)},e.isAppliedFilter=function(t,e){return null===t||t(e)},e.replacePathSegmentSeparator=function(t,e){return t.split(/[\\/]/).join(e)},e.joinPathSegments=function(t,e,n){return""===t?e:t+n+e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0),s=n(66),i=n(69),o=n(70),a=n(71);e.default=class{constructor(t){this._settings=t,this.errorFilter=new o.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new s.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new a.default(this._settings)}_getRootDirectory(t){return r.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){const e="."===t.base?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}},function(t,e){t.exports=require("os")},function(t,e){t.exports=require("util")},function(t,e,n){"use strict";
3
+ /*!
4
+ * fill-range <https://github.com/jonschlinkert/fill-range>
5
+ *
6
+ * Copyright (c) 2014-present, Jon Schlinkert.
7
+ * Licensed under the MIT License.
8
+ */const r=n(13),s=n(36),i=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),o=t=>"number"==typeof t||"string"==typeof t&&""!==t,a=t=>Number.isInteger(+t),u=t=>{let e=""+t,n=-1;if("-"===e[0]&&(e=e.slice(1)),"0"===e)return!1;for(;"0"===e[++n];);return n>0},c=(t,e,n)=>{if(e>0){let n="-"===t[0]?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return!1===n?String(t):t},l=(t,e)=>{let n="-"===t[0]?"-":"";for(n&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return n?"-"+t:t},p=(t,e,n,r)=>{if(n)return s(t,e,{wrap:!1,...r});let i=String.fromCharCode(t);return t===e?i:`[${i}-${String.fromCharCode(e)}]`},h=(t,e,n)=>{if(Array.isArray(t)){let e=!0===n.wrap,r=n.capture?"":"?:";return e?`(${r}${t.join("|")})`:t.join("|")}return s(t,e,n)},f=(...t)=>new RangeError("Invalid range arguments: "+r.inspect(...t)),d=(t,e,n)=>{if(!0===n.strictRanges)throw f([t,e]);return[]},_=(t,e,n=1,r={})=>{let s=Number(t),i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(!0===r.strictRanges)throw f([t,e]);return[]}0===s&&(s=0),0===i&&(i=0);let o=s>i,a=String(t),d=String(e),_=String(n);n=Math.max(Math.abs(n),1);let g=u(a)||u(d)||u(_),y=g?Math.max(a.length,d.length,_.length):0,m=!1===g&&!1===((t,e,n)=>"string"==typeof t||"string"==typeof e||!0===n.stringify)(t,e,r),S=r.transform||(t=>e=>!0===t?Number(e):String(e))(m);if(r.toRegex&&1===n)return p(l(t,y),l(e,y),!0,r);let b={negatives:[],positives:[]},E=[],A=0;for(;o?s>=i:s<=i;)!0===r.toRegex&&n>1?b[(v=s)<0?"negatives":"positives"].push(Math.abs(v)):E.push(c(S(s,A),y,m)),s=o?s-n:s+n,A++;var v;return!0===r.toRegex?n>1?((t,e)=>{t.negatives.sort((t,e)=>t<e?-1:t>e?1:0),t.positives.sort((t,e)=>t<e?-1:t>e?1:0);let n,r=e.capture?"":"?:",s="",i="";return t.positives.length&&(s=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n=s&&i?`${s}|${i}`:s||i,e.wrap?`(${r}${n})`:n})(b,r):h(E,null,{wrap:!1,...r}):E},g=(t,e,n,r={})=>{if(null==e&&o(t))return[t];if(!o(t)||!o(e))return d(t,e,r);if("function"==typeof n)return g(t,e,1,{transform:n});if(i(n))return g(t,e,0,n);let s={...r};return!0===s.capture&&(s.wrap=!0),n=n||s.step||1,a(n)?a(t)&&a(e)?_(t,e,n,s):((t,e,n=1,r={})=>{if(!a(t)&&t.length>1||!a(e)&&e.length>1)return d(t,e,r);let s=r.transform||(t=>String.fromCharCode(t)),i=(""+t).charCodeAt(0),o=(""+e).charCodeAt(0),u=i>o,c=Math.min(i,o),l=Math.max(i,o);if(r.toRegex&&1===n)return p(c,l,!1,r);let f=[],_=0;for(;u?i>=o:i<=o;)f.push(s(i,_)),i=u?i-n:i+n,_++;return!0===r.toRegex?h(f,null,{wrap:!1,options:r}):f})(t,e,Math.max(Math.abs(n),1),s):null==n||i(n)?g(t,e,1,n):((t,e)=>{if(!0===e.strictRanges)throw new TypeError(`Expected step "${t}" to be a number`);return[]})(n,s)};t.exports=g},function(t,e,n){"use strict";t.exports=n(41)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),s=n(2),i=n(17),o=n(22);class a extends o.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=s.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){const n=t.map(this._getFullEntryPath,this),s=new r.PassThrough({objectMode:!0});s._write=(r,i,o)=>this._getEntry(n[r],t[r],e).then(t=>{null!==t&&e.entryFilter(t)&&s.push(t),r===n.length-1&&s.end(),o()}).catch(o);for(let t=0;t<n.length;t++)s.write(t);return s}_getEntry(t,e,n){return this._getStat(t).then(t=>this._makeEntry(t,e)).catch(t=>{if(n.errorFilter(t))return null;throw t})}_getStat(t){return new Promise((e,n)=>{this._stat(t,this._fsStatSettings,(t,r)=>null===t?e(r):n(t))})}}e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(52),s=n(62),i=n(63),o=n(65);function a(t={}){return t instanceof o.default?t:new o.default(t)}e.Settings=o.default,e.walk=function(t,e,n){if("function"==typeof e)return new r.default(t,a()).read(e);new r.default(t,a(e)).read(n)},e.walkSync=function(t,e){const n=a(e);return new i.default(t,n).read()},e.walkStream=function(t,e){const n=a(e);return new s.default(t,n).read()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(53),s=n(9),i=n(60),o=n(10),a=n(21);class u extends a.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=s.scandir,this._emitter=new r.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){const n={directory:t,base:e};this._queue.push(n,t=>{null!==t&&this._handleError(t)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(n,r)=>{if(null!==n)return e(n,void 0);for(const e of r)this._handleEntry(e,t.base);e(null,void 0)})}_handleError(t){o.isFatalError(this._settings,t)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError)return;const n=t.path;void 0!==e&&(t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),o.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,t.path)}_emitEntry(t){this._emitter.emit("entry",t)}}e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=process.versions.node.split("."),s=parseInt(r[0],10),i=parseInt(r[1],10),o=s>10,a=10===s&&i>=10;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=o||a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(56);e.fs=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(10);e.default=class{constructor(t,e){this._root=t,this._settings=e,this._root=r.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0),s=n(2),i=n(1);e.default=class{constructor(t){this._settings=t,this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return r.resolve(this._settings.cwd,t)}_makeEntry(t,e){const n={name:e,path:e,dirent:i.fs.createDirentFromStats(e,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!i.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}},function(t,e,n){"use strict";const r=n(24),s=n(47),i=n(72),o=n(73),a=n(75),u=n(1);async function c(t,e){p(t);const n=l(t,s.default,e),r=await Promise.all(n);return u.array.flatten(r)}function l(t,e,n){const s=[].concat(t),i=new a.default(n),o=r.generate(s,i),u=new e(i);return o.map(u.read,u)}function p(t){if(![].concat(t).every(t=>u.string.isString(t)&&!u.string.isEmpty(t)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}!function(t){t.sync=function(t,e){p(t);const n=l(t,o.default,e);return u.array.flatten(n)},t.stream=function(t,e){p(t);const n=l(t,i.default,e);return u.stream.merge(n)},t.generateTasks=function(t,e){p(t);const n=[].concat(t),s=new a.default(e);return r.generate(n,s)},t.isDynamicPattern=function(t,e){p(t);const n=new a.default(e);return u.pattern.isDynamicPattern(t,n)},t.escapePath=function(t){return p(t),u.path.escape(t)}}(c||(c={})),t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;const r=n(1);function s(t,e,n){const r=a(t);if("."in r){return[c(".",t,e,n)]}return u(r,e,n)}function i(t){return r.pattern.getPositivePatterns(t)}function o(t,e){return r.pattern.getNegativePatterns(t).concat(e).map(r.pattern.convertToPositivePattern)}function a(t){return t.reduce((t,e)=>{const n=r.pattern.getBaseDirectory(e);return n in t?t[n].push(e):t[n]=[e],t},{})}function u(t,e,n){return Object.keys(t).map(r=>c(r,t[r],e,n))}function c(t,e,n,s){return{dynamic:s,positive:e,negative:n,base:t,patterns:[].concat(e,n.map(r.pattern.convertToNegativePattern))}}e.generate=function(t,e){const n=i(t),a=o(t,e.ignore),u=n.filter(t=>r.pattern.isStaticPattern(t,e)),c=n.filter(t=>r.pattern.isDynamicPattern(t,e)),l=s(u,a,!1),p=s(c,a,!0);return l.concat(p)},e.convertPatternsToTasks=s,e.getPositivePatterns=i,e.getNegativePatternsAsPositive=o,e.groupPatternsByBaseDirectory=a,e.convertPatternGroupsToTasks=u,e.convertPatternGroupToTask=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0,e.flatten=function(t){return t.reduce((t,e)=>[].concat(t,e),[])},e.splitWhen=function(t,e){const n=[[]];let r=0;for(const s of t)e(s)?(r++,n[r]=[]):n[r].push(s);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0,e.isEnoentCodeError=function(t){return"ENOENT"===t.code}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;class r{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}}e.createDirentFromStats=function(t,e){return new r(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;const r=n(0),s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;e.unixify=function(t){return t.replace(/\\/g,"/")},e.makeAbsolute=function(t,e){return r.resolve(t,e)},e.escape=function(t){return t.replace(s,"\\$2")},e.removeLeadingDotSegment=function(t){if("."===t.charAt(0)){const e=t.charAt(1);if("/"===e||"\\"===e)return t.slice(2)}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;const r=n(0),s=n(30),i=n(33),o=n(15),a=/[*?]|^!/,u=/\[.*]/,c=/(?:^|[^!*+?@])\(.*\|.*\)/,l=/[!*+?@]\(.*\)/,p=/{.*(?:,|\.\.).*}/;function h(t,e={}){return!f(t,e)}function f(t,e={}){return""!==t&&(!(!1!==e.caseSensitiveMatch&&!t.includes("\\"))||(!!(a.test(t)||u.test(t)||c.test(t))||(!(!1===e.extglob||!l.test(t))||!(!1===e.braceExpansion||!p.test(t)))))}function d(t){return t.startsWith("!")&&"("!==t[1]}function _(t){return!d(t)}function g(t){return t.endsWith("/**")}function y(t){return i.braces(t,{expand:!0,nodupes:!0})}function m(t,e){return i.makeRe(t,e)}e.isStaticPattern=h,e.isDynamicPattern=f,e.convertToPositivePattern=function(t){return d(t)?t.slice(1):t},e.convertToNegativePattern=function(t){return"!"+t},e.isNegativePattern=d,e.isPositivePattern=_,e.getNegativePatterns=function(t){return t.filter(d)},e.getPositivePatterns=function(t){return t.filter(_)},e.getBaseDirectory=function(t){return s(t,{flipBackslashes:!1})},e.hasGlobStar=function(t){return t.includes("**")},e.endsWithSlashGlobStar=g,e.isAffectDepthOfReadingPattern=function(t){const e=r.basename(t);return g(t)||h(e)},e.expandPatternsWithBraceExpansion=function(t){return t.reduce((t,e)=>t.concat(y(e)),[])},e.expandBraceExpansion=y,e.getPatternParts=function(t,e){let{parts:n}=o.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return 0===n.length&&(n=[t]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n},e.makeRe=m,e.convertPatternsToRe=function(t,e){return t.map(t=>m(t,e))},e.matchAny=function(t,e){return e.some(e=>e.test(t))}},function(t,e,n){"use strict";var r=n(31),s=n(0).posix.dirname,i="win32"===n(12).platform(),o=/\\/g,a=/[\{\[].*[\/]*.*[\}\]]$/,u=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function(t,e){Object.assign({flipBackslashes:!0},e).flipBackslashes&&i&&t.indexOf("/")<0&&(t=t.replace(o,"/")),a.test(t)&&(t+="/"),t+="a";do{t=s(t)}while(r(t)||u.test(t));return t.replace(c,"$1")}},function(t,e,n){
9
+ /*!
10
+ * is-glob <https://github.com/jonschlinkert/is-glob>
11
+ *
12
+ * Copyright (c) 2014-2017, Jon Schlinkert.
13
+ * Released under the MIT License.
14
+ */
15
+ var r=n(32),s={"{":"}","(":")","[":"]"},i=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,o=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;t.exports=function(t,e){if("string"!=typeof t||""===t)return!1;if(r(t))return!0;var n,a=i;for(e&&!1===e.strict&&(a=o);n=a.exec(t);){if(n[2])return!0;var u=n.index+n[0].length,c=n[1],l=c?s[c]:null;if(c&&l){var p=t.indexOf(l,u);-1!==p&&(u=p+1)}t=t.slice(u)}return!1}},function(t,e){
16
+ /*!
17
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
18
+ *
19
+ * Copyright (c) 2014-2016, Jon Schlinkert.
20
+ * Licensed under the MIT License.
21
+ */
22
+ t.exports=function(t){if("string"!=typeof t||""===t)return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(e[2])return!0;t=t.slice(e.index+e[0].length)}return!1}},function(t,e,n){"use strict";const r=n(13),s=n(34),i=n(15),o=n(4),a=t=>"string"==typeof t&&(""===t||"./"===t),u=(t,e,n)=>{e=[].concat(e),t=[].concat(t);let r=new Set,s=new Set,o=new Set,a=0,u=t=>{o.add(t.output),n&&n.onResult&&n.onResult(t)};for(let o=0;o<e.length;o++){let c=i(String(e[o]),{...n,onResult:u},!0),l=c.state.negated||c.state.negatedExtglob;l&&a++;for(let e of t){let t=c(e,!0);(l?!t.isMatch:t.isMatch)&&(l?r.add(t.output):(r.delete(t.output),s.add(t.output)))}}let c=(a===e.length?[...o]:[...s]).filter(t=>!r.has(t));if(n&&0===c.length){if(!0===n.failglob)throw new Error(`No matches found for "${e.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?e.map(t=>t.replace(/\\/g,"")):e}return c};u.match=u,u.matcher=(t,e)=>i(t,e),u.any=u.isMatch=(t,e,n)=>i(e,n)(t),u.not=(t,e,n={})=>{e=[].concat(e).map(String);let r=new Set,s=[],i=u(t,e,{...n,onResult:t=>{n.onResult&&n.onResult(t),s.push(t.output)}});for(let t of s)i.includes(t)||r.add(t);return[...r]},u.contains=(t,e,n)=>{if("string"!=typeof t)throw new TypeError(`Expected a string: "${r.inspect(t)}"`);if(Array.isArray(e))return e.some(e=>u.contains(t,e,n));if("string"==typeof e){if(a(t)||a(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return u.isMatch(t,e,{...n,contains:!0})},u.matchKeys=(t,e,n)=>{if(!o.isObject(t))throw new TypeError("Expected the first argument to be an object");let r=u(Object.keys(t),e,n),s={};for(let e of r)s[e]=t[e];return s},u.some=(t,e,n)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),n);if(r.some(t=>e(t)))return!0}return!1},u.every=(t,e,n)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),n);if(!r.every(t=>e(t)))return!1}return!0},u.all=(t,e,n)=>{if("string"!=typeof t)throw new TypeError(`Expected a string: "${r.inspect(t)}"`);return[].concat(e).every(e=>i(e,n)(t))},u.capture=(t,e,n)=>{let r=o.isWindows(n),s=i.makeRe(String(t),{...n,capture:!0}).exec(r?o.toPosixSlashes(e):e);if(s)return s.slice(1).map(t=>void 0===t?"":t)},u.makeRe=(...t)=>i.makeRe(...t),u.scan=(...t)=>i.scan(...t),u.parse=(t,e)=>{let n=[];for(let r of[].concat(t||[]))for(let t of s(String(r),e))n.push(i.parse(t,e));return n},u.braces=(t,e)=>{if("string"!=typeof t)throw new TypeError("Expected a string");return e&&!0===e.nobrace||!/\{.*\}/.test(t)?[t]:s(t,e)},u.braceExpand=(t,e)=>{if("string"!=typeof t)throw new TypeError("Expected a string");return u.braces(t,{...e,expand:!0})},t.exports=u},function(t,e,n){"use strict";const r=n(7),s=n(35),i=n(38),o=n(39),a=(t,e={})=>{let n=[];if(Array.isArray(t))for(let r of t){let t=a.create(r,e);Array.isArray(t)?n.push(...t):n.push(t)}else n=[].concat(a.create(t,e));return e&&!0===e.expand&&!0===e.nodupes&&(n=[...new Set(n)]),n};a.parse=(t,e={})=>o(t,e),a.stringify=(t,e={})=>r("string"==typeof t?a.parse(t,e):t,e),a.compile=(t,e={})=>("string"==typeof t&&(t=a.parse(t,e)),s(t,e)),a.expand=(t,e={})=>{"string"==typeof t&&(t=a.parse(t,e));let n=i(t,e);return!0===e.noempty&&(n=n.filter(Boolean)),!0===e.nodupes&&(n=[...new Set(n)]),n},a.create=(t,e={})=>""===t||t.length<3?[t]:!0!==e.expand?a.compile(t,e):a.expand(t,e),t.exports=a},function(t,e,n){"use strict";const r=n(14),s=n(8);t.exports=(t,e={})=>{let n=(t,i={})=>{let o=s.isInvalidBrace(i),a=!0===t.invalid&&!0===e.escapeInvalid,u=!0===o||!0===a,c=!0===e.escapeInvalid?"\\":"",l="";if(!0===t.isOpen)return c+t.value;if(!0===t.isClose)return c+t.value;if("open"===t.type)return u?c+t.value:"(";if("close"===t.type)return u?c+t.value:")";if("comma"===t.type)return"comma"===t.prev.type?"":u?t.value:"|";if(t.value)return t.value;if(t.nodes&&t.ranges>0){let n=s.reduce(t.nodes),i=r(...n,{...e,wrap:!1,toRegex:!0});if(0!==i.length)return n.length>1&&i.length>1?`(${i})`:i}if(t.nodes)for(let e of t.nodes)l+=n(e,t);return l};return n(t)}},function(t,e,n){"use strict";
23
+ /*!
24
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
25
+ *
26
+ * Copyright (c) 2015-present, Jon Schlinkert.
27
+ * Released under the MIT License.
28
+ */const r=n(37),s=(t,e,n)=>{if(!1===r(t))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===e||t===e)return String(t);if(!1===r(e))throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...n};"boolean"==typeof i.strictZeros&&(i.relaxZeros=!1===i.strictZeros);let u=t+":"+e+"="+String(i.relaxZeros)+String(i.shorthand)+String(i.capture)+String(i.wrap);if(s.cache.hasOwnProperty(u))return s.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(1===Math.abs(c-l)){let n=t+"|"+e;return i.capture?`(${n})`:!1===i.wrap?n:`(?:${n})`}let p=d(t)||d(e),h={min:t,max:e,a:c,b:l},f=[],_=[];if(p&&(h.isPadded=p,h.maxLen=String(h.max).length),c<0){_=o(l<0?Math.abs(l):1,Math.abs(c),h,i),c=h.a=0}return l>=0&&(f=o(c,l,h,i)),h.negatives=_,h.positives=f,h.result=function(t,e,n){let r=a(t,e,"-",!1,n)||[],s=a(e,t,"",!1,n)||[],i=a(t,e,"-?",!0,n)||[];return r.concat(i).concat(s).join("|")}(_,f,i),!0===i.capture?h.result=`(${h.result})`:!1!==i.wrap&&f.length+_.length>1&&(h.result=`(?:${h.result})`),s.cache[u]=h,h.result};function i(t,e,n){if(t===e)return{pattern:t,count:[],digits:0};let r=function(t,e){let n=[];for(let r=0;r<t.length;r++)n.push([t[r],e[r]]);return n}(t,e),s=r.length,i="",o=0;for(let t=0;t<s;t++){let[e,s]=r[t];e===s?i+=e:"0"!==e||"9"!==s?i+=f(e,s,n):o++}return o&&(i+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:i,count:[o],digits:s}}function o(t,e,n,r){let s,o=function(t,e){let n=1,r=1,s=l(t,n),i=new Set([e]);for(;t<=s&&s<=e;)i.add(s),n+=1,s=l(t,n);for(s=p(e+1,r)-1;t<s&&s<=e;)i.add(s),r+=1,s=p(e+1,r)-1;return i=[...i],i.sort(u),i}(t,e),a=[],c=t;for(let t=0;t<o.length;t++){let e=o[t],u=i(String(c),String(e),r),l="";n.isPadded||!s||s.pattern!==u.pattern?(n.isPadded&&(l=_(e,n,r)),u.string=l+u.pattern+h(u.count),a.push(u),c=e+1,s=u):(s.count.length>1&&s.count.pop(),s.count.push(u.count[0]),s.string=s.pattern+h(s.count),c=e+1)}return a}function a(t,e,n,r,s){let i=[];for(let s of t){let{string:t}=s;r||c(e,"string",t)||i.push(n+t),r&&c(e,"string",t)&&i.push(n+t)}return i}function u(t,e){return t>e?1:e>t?-1:0}function c(t,e,n){return t.some(t=>t[e]===n)}function l(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function p(t,e){return t-t%Math.pow(10,e)}function h(t){let[e=0,n=""]=t;return n||e>1?`{${e+(n?","+n:"")}}`:""}function f(t,e,n){return`[${t}${e-t==1?"":"-"}${e}]`}function d(t){return/^-?(0+)\d/.test(t)}function _(t,e,n){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),s=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${r}}`:`0{${r}}`}}s.cache={},s.clearCache=()=>s.cache={},t.exports=s},function(t,e,n){"use strict";
29
+ /*!
30
+ * is-number <https://github.com/jonschlinkert/is-number>
31
+ *
32
+ * Copyright (c) 2014-present, Jon Schlinkert.
33
+ * Released under the MIT License.
34
+ */t.exports=function(t){return"number"==typeof t?t-t==0:"string"==typeof t&&""!==t.trim()&&(Number.isFinite?Number.isFinite(+t):isFinite(+t))}},function(t,e,n){"use strict";const r=n(14),s=n(7),i=n(8),o=(t="",e="",n=!1)=>{let r=[];if(t=[].concat(t),!(e=[].concat(e)).length)return t;if(!t.length)return n?i.flatten(e).map(t=>`{${t}}`):e;for(let s of t)if(Array.isArray(s))for(let t of s)r.push(o(t,e,n));else for(let t of e)!0===n&&"string"==typeof t&&(t=`{${t}}`),r.push(Array.isArray(t)?o(s,t,n):s+t);return i.flatten(r)};t.exports=(t,e={})=>{let n=void 0===e.rangeLimit?1e3:e.rangeLimit,a=(t,u={})=>{t.queue=[];let c=u,l=u.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)c=c.parent,l=c.queue;if(t.invalid||t.dollar)return void l.push(o(l.pop(),s(t,e)));if("brace"===t.type&&!0!==t.invalid&&2===t.nodes.length)return void l.push(o(l.pop(),["{}"]));if(t.nodes&&t.ranges>0){let a=i.reduce(t.nodes);if(i.exceedsLimit(...a,e.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=r(...a,e);return 0===u.length&&(u=s(t,e)),l.push(o(l.pop(),u)),void(t.nodes=[])}let p=i.encloseBrace(t),h=t.queue,f=t;for(;"brace"!==f.type&&"root"!==f.type&&f.parent;)f=f.parent,h=f.queue;for(let e=0;e<t.nodes.length;e++){let n=t.nodes[e];"comma"!==n.type||"brace"!==t.type?"close"!==n.type?n.value&&"open"!==n.type?h.push(o(h.pop(),n.value)):n.nodes&&a(n,t):l.push(o(l.pop(),h,p)):(1===e&&h.push(""),h.push(""))}return h};return i.flatten(a(t))}},function(t,e,n){"use strict";const r=n(7),{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:m}=n(40);t.exports=(t,e={})=>{if("string"!=typeof t)throw new TypeError("Expected a string");let n=e||{},S="number"==typeof n.maxLength?Math.min(s,n.maxLength):s;if(t.length>S)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${S})`);let b,E={type:"root",input:t,nodes:[]},A=[E],v=E,R=E,x=0,C=t.length,k=0,O=0;const T=()=>t[k++],P=t=>{if("text"===t.type&&"dot"===R.type&&(R.type="text"),!R||"text"!==R.type||"text"!==t.type)return v.nodes.push(t),t.parent=v,t.prev=R,R=t,t;R.value+=t.value};for(P({type:"bos"});k<C;)if(v=A[A.length-1],b=T(),b!==m&&b!==y)if(b!==i)if(b!==d)if(b!==f)if(b!==c)if(b!==l)if(b!==_&&b!==g&&b!==o)if(b!==p)if(b!==h)if(b===a&&O>0){if(v.ranges>0){v.ranges=0;let t=v.nodes.shift();v.nodes=[t,{type:"text",value:r(v)}]}P({type:"comma",value:b}),v.commas++}else if(b===u&&O>0&&0===v.commas){let t=v.nodes;if(0===O||0===t.length){P({type:"text",value:b});continue}if("dot"===R.type){if(v.range=[],R.value+=b,R.type="range",3!==v.nodes.length&&5!==v.nodes.length){v.invalid=!0,v.ranges=0,R.type="text";continue}v.ranges++,v.args=[];continue}if("range"===R.type){t.pop();let e=t[t.length-1];e.value+=R.value+b,R=e,v.ranges--;continue}P({type:"dot",value:b})}else P({type:"text",value:b});else{if("brace"!==v.type){P({type:"text",value:b});continue}let t="close";v=A.pop(),v.close=!0,P({type:t,value:b}),O--,v=A[A.length-1]}else{O++;let t=R.value&&"$"===R.value.slice(-1)||!0===v.dollar;v=P({type:"brace",open:!0,close:!1,dollar:t,depth:O,commas:0,ranges:0,nodes:[]}),A.push(v),P({type:"open",value:b})}else{let t,n=b;for(!0!==e.keepQuotes&&(b="");k<C&&(t=T());)if(t!==i){if(t===n){!0===e.keepQuotes&&(b+=t);break}b+=t}else b+=t+T();P({type:"text",value:b})}else{if("paren"!==v.type){P({type:"text",value:b});continue}v=A.pop(),P({type:"text",value:b}),v=A[A.length-1]}else v=P({type:"paren",nodes:[]}),A.push(v),P({type:"text",value:b});else{x++;let t;for(;k<C&&(t=T());)if(b+=t,t!==f)if(t!==i){if(t===d&&(x--,0===x))break}else b+=T();else x++;P({type:"text",value:b})}else P({type:"text",value:"\\"+b});else P({type:"text",value:(e.keepEscaping?b:"")+T()});do{if(v=A.pop(),"root"!==v.type){v.nodes.forEach(t=>{t.nodes||("open"===t.type&&(t.isOpen=!0),"close"===t.type&&(t.isClose=!0),t.nodes||(t.type="text"),t.invalid=!0)});let t=A[A.length-1],e=t.nodes.indexOf(v);t.nodes.splice(e,1,...v.nodes)}}while(A.length>0);return P({type:"eos"}),E}},function(t,e,n){"use strict";t.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},function(t,e,n){"use strict";const r=n(0),s=n(42),i=n(43),o=n(4),a=n(5),u=(t,e,n=!1)=>{if(Array.isArray(t)){const r=t.map(t=>u(t,e,n));return t=>{for(const e of r){const n=e(t);if(n)return n}return!1}}const r=(s=t)&&"object"==typeof s&&!Array.isArray(s)&&t.tokens&&t.input;var s;if(""===t||"string"!=typeof t&&!r)throw new TypeError("Expected pattern to be a non-empty string");const i=e||{},a=o.isWindows(e),c=r?u.compileRe(t,e):u.makeRe(t,e,!1,!0),l=c.state;delete c.state;let p=()=>!1;if(i.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};p=u(i.ignore,t,n)}const h=(n,r=!1)=>{const{isMatch:s,match:o,output:h}=u.test(n,c,e,{glob:t,posix:a}),f={glob:t,state:l,regex:c,posix:a,input:n,output:h,match:o,isMatch:s};return"function"==typeof i.onResult&&i.onResult(f),!1===s?(f.isMatch=!1,!!r&&f):p(n)?("function"==typeof i.onIgnore&&i.onIgnore(f),f.isMatch=!1,!!r&&f):("function"==typeof i.onMatch&&i.onMatch(f),!r||f)};return n&&(h.state=l),h};u.test=(t,e,n,{glob:r,posix:s}={})=>{if("string"!=typeof t)throw new TypeError("Expected input to be a string");if(""===t)return{isMatch:!1,output:""};const i=n||{},a=i.format||(s?o.toPosixSlashes:null);let c=t===r,l=c&&a?a(t):t;return!1===c&&(l=a?a(t):t,c=l===r),!1!==c&&!0!==i.capture||(c=!0===i.matchBase||!0===i.basename?u.matchBase(t,e,n,s):e.exec(l)),{isMatch:Boolean(c),match:c,output:l}},u.matchBase=(t,e,n,s=o.isWindows(n))=>(e instanceof RegExp?e:u.makeRe(e,n)).test(r.basename(t)),u.isMatch=(t,e,n)=>u(e,n)(t),u.parse=(t,e)=>Array.isArray(t)?t.map(t=>u.parse(t,e)):i(t,{...e,fastpaths:!1}),u.scan=(t,e)=>s(t,e),u.compileRe=(t,e,n=!1,r=!1)=>{if(!0===n)return t.output;const s=e||{},i=s.contains?"":"^",o=s.contains?"":"$";let a=`${i}(?:${t.output})${o}`;t&&!0===t.negated&&(a=`^(?!${a}).*$`);const c=u.toRegex(a,e);return!0===r&&(c.state=t),c},u.makeRe=(t,e,n=!1,r=!1)=>{if(!t||"string"!=typeof t)throw new TypeError("Expected a non-empty string");const s=e||{};let o,a={negated:!1,fastpaths:!0},c="";return t.startsWith("./")&&(t=t.slice(2),c=a.prefix="./"),!1===s.fastpaths||"."!==t[0]&&"*"!==t[0]||(o=i.fastpaths(t,e)),void 0===o?(a=i(t,e),a.prefix=c+(a.prefix||"")):a.output=o,u.compileRe(a,e,n,r)},u.toRegex=(t,e)=>{try{const n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(t){if(e&&!0===e.debug)throw t;return/$^/}},u.constants=a,t.exports=u},function(t,e,n){"use strict";const r=n(4),{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:m}=n(5),S=t=>t===l||t===o,b=t=>{!0!==t.isPrefix&&(t.depth=t.isGlobstar?1/0:1)};t.exports=(t,e)=>{const n=e||{},E=t.length-1,A=!0===n.parts||!0===n.scanToEnd,v=[],R=[],x=[];let C,k,O=t,T=-1,P=0,w=0,L=!1,H=!1,M=!1,$=!1,F=!1,D=!1,N=!1,I=!1,B=!1,j=0,G={value:"",depth:0,isGlob:!1};const U=()=>T>=E,K=()=>(C=k,O.charCodeAt(++T));for(;T<E;){let t;if(k=K(),k!==o){if(!0===D||k===p){for(j++;!0!==U()&&(k=K());)if(k!==o)if(k!==p){if(!0!==D&&k===u&&(k=K())===u){if(L=G.isBrace=!0,M=G.isGlob=!0,B=!0,!0===A)continue;break}if(!0!==D&&k===a){if(L=G.isBrace=!0,M=G.isGlob=!0,B=!0,!0===A)continue;break}if(k===g&&(j--,0===j)){D=!1,L=G.isBrace=!0,B=!0;break}}else j++;else N=G.backslashes=!0,K();if(!0===A)continue;break}if(k!==l){if(!0!==n.noext){if(!0===(k===d||k===i||k===s||k===_||k===c)&&O.charCodeAt(T+1)===h){if(M=G.isGlob=!0,$=G.isExtglob=!0,B=!0,!0===A){for(;!0!==U()&&(k=K());)if(k!==o){if(k===y){M=G.isGlob=!0,B=!0;break}}else N=G.backslashes=!0,k=K();continue}break}}if(k===s){if(C===s&&(F=G.isGlobstar=!0),M=G.isGlob=!0,B=!0,!0===A)continue;break}if(k===_){if(M=G.isGlob=!0,B=!0,!0===A)continue;break}if(k===f)for(;!0!==U()&&(t=K());)if(t!==o){if(t===m){if(H=G.isBracket=!0,M=G.isGlob=!0,B=!0,!0===A)continue;break}}else N=G.backslashes=!0,K();if(!0===n.nonegate||k!==c||T!==P){if(!0!==n.noparen&&k===h){if(M=G.isGlob=!0,!0===A){for(;!0!==U()&&(k=K());)if(k!==h){if(k===y){B=!0;break}}else N=G.backslashes=!0,k=K();continue}break}if(!0===M){if(B=!0,!0===A)continue;break}}else I=G.negated=!0,P++}else{if(v.push(T),R.push(G),G={value:"",depth:0,isGlob:!1},!0===B)continue;if(C===u&&T===P+1){P+=2;continue}w=T+1}}else N=G.backslashes=!0,k=K(),k===p&&(D=!0)}!0===n.noext&&($=!1,M=!1);let V=O,W="",Q="";P>0&&(W=O.slice(0,P),O=O.slice(P),w-=P),V&&!0===M&&w>0?(V=O.slice(0,w),Q=O.slice(w)):!0===M?(V="",Q=O):V=O,V&&""!==V&&"/"!==V&&V!==O&&S(V.charCodeAt(V.length-1))&&(V=V.slice(0,-1)),!0===n.unescape&&(Q&&(Q=r.removeBackslashes(Q)),V&&!0===N&&(V=r.removeBackslashes(V)));const q={prefix:W,input:t,start:P,base:V,glob:Q,isBrace:L,isBracket:H,isGlob:M,isExtglob:$,isGlobstar:F,negated:I};if(!0===n.tokens&&(q.maxDepth=0,S(k)||R.push(G),q.tokens=R),!0===n.parts||!0===n.tokens){let e;for(let r=0;r<v.length;r++){const s=e?e+1:P,i=v[r],o=t.slice(s,i);n.tokens&&(0===r&&0!==P?(R[r].isPrefix=!0,R[r].value=W):R[r].value=o,b(R[r]),q.maxDepth+=R[r].depth),0===r&&""===o||x.push(o),e=i}if(e&&e+1<t.length){const r=t.slice(e+1);x.push(r),n.tokens&&(R[R.length-1].value=r,b(R[R.length-1]),q.maxDepth+=R[R.length-1].depth)}q.slashes=v,q.parts=x}return q}},function(t,e,n){"use strict";const r=n(5),s=n(4),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:c}=r,l=(t,e)=>{if("function"==typeof e.expandRange)return e.expandRange(...t,e);t.sort();const n=`[${t.join("-")}]`;try{new RegExp(n)}catch(e){return t.map(t=>s.escapeRegex(t)).join("..")}return n},p=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,h=(t,e)=>{if("string"!=typeof t)throw new TypeError("Expected a string");t=c[t]||t;const n={...e},h="number"==typeof n.maxLength?Math.min(i,n.maxLength):i;let f=t.length;if(f>h)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${h}`);const d={type:"bos",value:"",output:n.prepend||""},_=[d],g=n.capture?"":"?:",y=s.isWindows(e),m=r.globChars(y),S=r.extglobChars(m),{DOT_LITERAL:b,PLUS_LITERAL:E,SLASH_LITERAL:A,ONE_CHAR:v,DOTS_SLASH:R,NO_DOT:x,NO_DOT_SLASH:C,NO_DOTS_SLASH:k,QMARK:O,QMARK_NO_DOT:T,STAR:P,START_ANCHOR:w}=m,L=t=>`(${g}(?:(?!${w}${t.dot?R:b}).)*?)`,H=n.dot?"":x,M=n.dot?O:T;let $=!0===n.bash?L(n):P;n.capture&&($=`(${$})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const F={input:t,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:_};t=s.removePrefix(t,F),f=t.length;const D=[],N=[],I=[];let B,j=d;const G=()=>F.index===f-1,U=F.peek=(e=1)=>t[F.index+e],K=F.advance=()=>t[++F.index],V=()=>t.slice(F.index+1),W=(t="",e=0)=>{F.consumed+=t,F.index+=e},Q=t=>{F.output+=null!=t.output?t.output:t.value,W(t.value)},q=()=>{let t=1;for(;"!"===U()&&("("!==U(2)||"?"===U(3));)K(),F.start++,t++;return t%2!=0&&(F.negated=!0,F.start++,!0)},X=t=>{F[t]++,I.push(t)},Y=t=>{F[t]--,I.pop()},Z=t=>{if("globstar"===j.type){const e=F.braces>0&&("comma"===t.type||"brace"===t.type),n=!0===t.extglob||D.length&&("pipe"===t.type||"paren"===t.type);"slash"===t.type||"paren"===t.type||e||n||(F.output=F.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=$,F.output+=j.output)}if(D.length&&"paren"!==t.type&&!S[t.value]&&(D[D.length-1].inner+=t.value),(t.value||t.output)&&Q(t),j&&"text"===j.type&&"text"===t.type)return j.value+=t.value,void(j.output=(j.output||"")+t.value);t.prev=j,_.push(t),j=t},J=(t,e)=>{const r={...S[e],conditions:1,inner:""};r.prev=j,r.parens=F.parens,r.output=F.output;const s=(n.capture?"(":"")+r.open;X("parens"),Z({type:t,value:e,output:F.output?"":v}),Z({type:"paren",extglob:!0,value:K(),output:s}),D.push(r)},z=t=>{let e=t.close+(n.capture?")":"");if("negate"===t.type){let r=$;t.inner&&t.inner.length>1&&t.inner.includes("/")&&(r=L(n)),(r!==$||G()||/^\)+$/.test(V()))&&(e=t.close=")$))"+r),"bos"===t.prev.type&&G()&&(F.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:B,output:e}),Y("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(t)){let r=!1,i=t.replace(u,(t,e,n,s,i,o)=>"\\"===s?(r=!0,t):"?"===s?e?e+s+(i?O.repeat(i.length):""):0===o?M+(i?O.repeat(i.length):""):O.repeat(n.length):"."===s?b.repeat(n.length):"*"===s?e?e+s+(i?$:""):$:e?t:"\\"+t);return!0===r&&(i=!0===n.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,t=>t.length%2==0?"\\\\":t?"\\":"")),i===t&&!0===n.contains?(F.output=t,F):(F.output=s.wrapOutput(i,F,e),F)}for(;!G();){if(B=K(),"\0"===B)continue;if("\\"===B){const t=U();if("/"===t&&!0!==n.bash)continue;if("."===t||";"===t)continue;if(!t){B+="\\",Z({type:"text",value:B});continue}const e=/^\\+/.exec(V());let r=0;if(e&&e[0].length>2&&(r=e[0].length,F.index+=r,r%2!=0&&(B+="\\")),!0===n.unescape?B=K()||"":B+=K()||"",0===F.brackets){Z({type:"text",value:B});continue}}if(F.brackets>0&&("]"!==B||"["===j.value||"[^"===j.value)){if(!1!==n.posix&&":"===B){const t=j.value.slice(1);if(t.includes("[")&&(j.posix=!0,t.includes(":"))){const t=j.value.lastIndexOf("["),e=j.value.slice(0,t),n=j.value.slice(t+2),r=o[n];if(r){j.value=e+r,F.backtrack=!0,K(),d.output||1!==_.indexOf(j)||(d.output=v);continue}}}("["===B&&":"!==U()||"-"===B&&"]"===U())&&(B="\\"+B),"]"!==B||"["!==j.value&&"[^"!==j.value||(B="\\"+B),!0===n.posix&&"!"===B&&"["===j.value&&(B="^"),j.value+=B,Q({value:B});continue}if(1===F.quotes&&'"'!==B){B=s.escapeRegex(B),j.value+=B,Q({value:B});continue}if('"'===B){F.quotes=1===F.quotes?0:1,!0===n.keepQuotes&&Z({type:"text",value:B});continue}if("("===B){X("parens"),Z({type:"paren",value:B});continue}if(")"===B){if(0===F.parens&&!0===n.strictBrackets)throw new SyntaxError(p("opening","("));const t=D[D.length-1];if(t&&F.parens===t.parens+1){z(D.pop());continue}Z({type:"paren",value:B,output:F.parens?")":"\\)"}),Y("parens");continue}if("["===B){if(!0!==n.nobracket&&V().includes("]"))X("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));B="\\"+B}Z({type:"bracket",value:B});continue}if("]"===B){if(!0===n.nobracket||j&&"bracket"===j.type&&1===j.value.length){Z({type:"text",value:B,output:"\\"+B});continue}if(0===F.brackets){if(!0===n.strictBrackets)throw new SyntaxError(p("opening","["));Z({type:"text",value:B,output:"\\"+B});continue}Y("brackets");const t=j.value.slice(1);if(!0===j.posix||"^"!==t[0]||t.includes("/")||(B="/"+B),j.value+=B,Q({value:B}),!1===n.literalBrackets||s.hasRegexChars(t))continue;const e=s.escapeRegex(j.value);if(F.output=F.output.slice(0,-j.value.length),!0===n.literalBrackets){F.output+=e,j.value=e;continue}j.value=`(${g}${e}|${j.value})`,F.output+=j.value;continue}if("{"===B&&!0!==n.nobrace){X("braces");const t={type:"brace",value:B,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};N.push(t),Z(t);continue}if("}"===B){const t=N[N.length-1];if(!0===n.nobrace||!t){Z({type:"text",value:B,output:B});continue}let e=")";if(!0===t.dots){const t=_.slice(),r=[];for(let e=t.length-1;e>=0&&(_.pop(),"brace"!==t[e].type);e--)"dots"!==t[e].type&&r.unshift(t[e].value);e=l(r,n),F.backtrack=!0}if(!0!==t.comma&&!0!==t.dots){const n=F.output.slice(0,t.outputIndex),r=F.tokens.slice(t.tokensIndex);t.value=t.output="\\{",B=e="\\}",F.output=n;for(const t of r)F.output+=t.output||t.value}Z({type:"brace",value:B,output:e}),Y("braces"),N.pop();continue}if("|"===B){D.length>0&&D[D.length-1].conditions++,Z({type:"text",value:B});continue}if(","===B){let t=B;const e=N[N.length-1];e&&"braces"===I[I.length-1]&&(e.comma=!0,t="|"),Z({type:"comma",value:B,output:t});continue}if("/"===B){if("dot"===j.type&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",_.pop(),j=d;continue}Z({type:"slash",value:B,output:A});continue}if("."===B){if(F.braces>0&&"dot"===j.type){"."===j.value&&(j.output=b);const t=N[N.length-1];j.type="dots",j.output+=B,j.value+=B,t.dots=!0;continue}if(F.braces+F.parens===0&&"bos"!==j.type&&"slash"!==j.type){Z({type:"text",value:B,output:b});continue}Z({type:"dot",value:B,output:b});continue}if("?"===B){if(!(j&&"("===j.value)&&!0!==n.noextglob&&"("===U()&&"?"!==U(2)){J("qmark",B);continue}if(j&&"paren"===j.type){const t=U();let e=B;if("<"===t&&!s.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===j.value&&!/[!=<:]/.test(t)||"<"===t&&!/<([!=]|\w+>)/.test(V()))&&(e="\\"+B),Z({type:"text",value:B,output:e});continue}if(!0!==n.dot&&("slash"===j.type||"bos"===j.type)){Z({type:"qmark",value:B,output:T});continue}Z({type:"qmark",value:B,output:O});continue}if("!"===B){if(!0!==n.noextglob&&"("===U()&&("?"!==U(2)||!/[!=<:]/.test(U(3)))){J("negate",B);continue}if(!0!==n.nonegate&&0===F.index){q();continue}}if("+"===B){if(!0!==n.noextglob&&"("===U()&&"?"!==U(2)){J("plus",B);continue}if(j&&"("===j.value||!1===n.regex){Z({type:"plus",value:B,output:E});continue}if(j&&("bracket"===j.type||"paren"===j.type||"brace"===j.type)||F.parens>0){Z({type:"plus",value:B});continue}Z({type:"plus",value:E});continue}if("@"===B){if(!0!==n.noextglob&&"("===U()&&"?"!==U(2)){Z({type:"at",extglob:!0,value:B,output:""});continue}Z({type:"text",value:B});continue}if("*"!==B){"$"!==B&&"^"!==B||(B="\\"+B);const t=a.exec(V());t&&(B+=t[0],F.index+=t[0].length),Z({type:"text",value:B});continue}if(j&&("globstar"===j.type||!0===j.star)){j.type="star",j.star=!0,j.value+=B,j.output=$,F.backtrack=!0,F.globstar=!0,W(B);continue}let e=V();if(!0!==n.noextglob&&/^\([^?]/.test(e)){J("star",B);continue}if("star"===j.type){if(!0===n.noglobstar){W(B);continue}const r=j.prev,s=r.prev,i="slash"===r.type||"bos"===r.type,o=s&&("star"===s.type||"globstar"===s.type);if(!0===n.bash&&(!i||e[0]&&"/"!==e[0])){Z({type:"star",value:B,output:""});continue}const a=F.braces>0&&("comma"===r.type||"brace"===r.type),u=D.length&&("pipe"===r.type||"paren"===r.type);if(!i&&"paren"!==r.type&&!a&&!u){Z({type:"star",value:B,output:""});continue}for(;"/**"===e.slice(0,3);){const n=t[F.index+4];if(n&&"/"!==n)break;e=e.slice(3),W("/**",3)}if("bos"===r.type&&G()){j.type="globstar",j.value+=B,j.output=L(n),F.output=j.output,F.globstar=!0,W(B);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!o&&G()){F.output=F.output.slice(0,-(r.output+j.output).length),r.output="(?:"+r.output,j.type="globstar",j.output=L(n)+(n.strictSlashes?")":"|$)"),j.value+=B,F.globstar=!0,F.output+=r.output+j.output,W(B);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===e[0]){const t=void 0!==e[1]?"|$":"";F.output=F.output.slice(0,-(r.output+j.output).length),r.output="(?:"+r.output,j.type="globstar",j.output=`${L(n)}${A}|${A}${t})`,j.value+=B,F.output+=r.output+j.output,F.globstar=!0,W(B+K()),Z({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===e[0]){j.type="globstar",j.value+=B,j.output=`(?:^|${A}|${L(n)}${A})`,F.output=j.output,F.globstar=!0,W(B+K()),Z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-j.output.length),j.type="globstar",j.output=L(n),j.value+=B,F.output+=j.output,F.globstar=!0,W(B);continue}const r={type:"star",value:B,output:$};!0!==n.bash?!j||"bracket"!==j.type&&"paren"!==j.type||!0!==n.regex?(F.index!==F.start&&"slash"!==j.type&&"dot"!==j.type||("dot"===j.type?(F.output+=C,j.output+=C):!0===n.dot?(F.output+=k,j.output+=k):(F.output+=H,j.output+=H),"*"!==U()&&(F.output+=v,j.output+=v)),Z(r)):(r.output=B,Z(r)):(r.output=".*?","bos"!==j.type&&"slash"!==j.type||(r.output=H+r.output),Z(r))}for(;F.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));F.output=s.escapeLast(F.output,"["),Y("brackets")}for(;F.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing",")"));F.output=s.escapeLast(F.output,"("),Y("parens")}for(;F.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","}"));F.output=s.escapeLast(F.output,"{"),Y("braces")}if(!0===n.strictSlashes||"star"!==j.type&&"bracket"!==j.type||Z({type:"maybe_slash",value:"",output:A+"?"}),!0===F.backtrack){F.output="";for(const t of F.tokens)F.output+=null!=t.output?t.output:t.value,t.suffix&&(F.output+=t.suffix)}return F};h.fastpaths=(t,e)=>{const n={...e},o="number"==typeof n.maxLength?Math.min(i,n.maxLength):i,a=t.length;if(a>o)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);t=c[t]||t;const u=s.isWindows(e),{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:h,DOTS_SLASH:f,NO_DOT:d,NO_DOTS:_,NO_DOTS_SLASH:g,STAR:y,START_ANCHOR:m}=r.globChars(u),S=n.dot?_:d,b=n.dot?g:d,E=n.capture?"":"?:";let A=!0===n.bash?".*?":y;n.capture&&(A=`(${A})`);const v=t=>!0===t.noglobstar?A:`(${E}(?:(?!${m}${t.dot?f:l}).)*?)`,R=t=>{switch(t){case"*":return`${S}${h}${A}`;case".*":return`${l}${h}${A}`;case"*.*":return`${S}${A}${l}${h}${A}`;case"*/*":return`${S}${A}${p}${h}${b}${A}`;case"**":return S+v(n);case"**/*":return`(?:${S}${v(n)}${p})?${b}${h}${A}`;case"**/*.*":return`(?:${S}${v(n)}${p})?${b}${A}${l}${h}${A}`;case"**/.*":return`(?:${S}${v(n)}${p})?${l}${h}${A}`;default:{const e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;const n=R(e[1]);if(!n)return;return n+l+e[2]}}},x=s.removePrefix(t,{negated:!1,prefix:""});let C=R(x);return C&&!0!==n.strictSlashes&&(C+=p+"?"),C},t.exports=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;const r=n(45);function s(t){t.forEach(t=>t.emit("close"))}e.merge=function(t){const e=r(t);return t.forEach(t=>{t.once("error",t=>e.emit("error",t))}),e.once("close",()=>s(t)),e.once("end",()=>s(t)),e}},function(t,e,n){"use strict";const r=n(6).PassThrough,s=Array.prototype.slice;function i(t,e){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n]=i(t[n],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(r(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}t.exports=function(){const t=[],e=s.call(arguments);let n=!1,o=e[e.length-1];o&&!Array.isArray(o)&&null==o.pipe?e.pop():o={};const a=!1!==o.end,u=!0===o.pipeError;null==o.objectMode&&(o.objectMode=!0);null==o.highWaterMark&&(o.highWaterMark=65536);const c=r(o);function l(){for(let e=0,n=arguments.length;e<n;e++)t.push(i(arguments[e],o));return p(),this}function p(){if(n)return;n=!0;let e=t.shift();if(!e)return void process.nextTick(h);Array.isArray(e)||(e=[e]);let r=e.length+1;function s(){--r>0||(n=!1,p())}function i(t){function e(){t.removeListener("merge2UnpipeEnd",e),t.removeListener("end",e),u&&t.removeListener("error",n),s()}function n(t){c.emit("error",t)}if(t._readableState.endEmitted)return s();t.on("merge2UnpipeEnd",e),t.on("end",e),u&&t.on("error",n),t.pipe(c,{end:!1}),t.resume()}for(let t=0;t<e.length;t++)i(e[t]);s()}function h(){n=!1,c.emit("queueDrain"),a&&c.end()}c.setMaxListeners(0),c.add=l,c.on("unpipe",(function(t){t.emit("merge2UnpipeEnd")})),e.length&&l.apply(null,e);return c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0,e.isString=function(t){return"string"==typeof t},e.isEmpty=function(t){return""===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(16),s=n(11);class i extends s.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(t){const e=this._getRootDirectory(t),n=this._getReaderOptions(t),r=[];return new Promise((s,i)=>{const o=this.api(e,t,n);o.once("error",i),o.on("data",t=>r.push(n.transform(t))),o.once("end",()=>s(r))})}api(t,e,n){return e.dynamic?this._reader.dynamic(t,n):this._reader.static(e.patterns,n)}}e.default=i},function(t,e,n){"use strict";function r(t,e){t(e)}function s(t,e){t(null,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.read=function(t,e,n){e.fs.lstat(t,(i,o)=>null!==i?r(n,i):o.isSymbolicLink()&&e.followSymbolicLink?void e.fs.stat(t,(t,i)=>{if(null!==t)return e.throwErrorOnBrokenSymbolicLink?r(n,t):s(n,o);e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),s(n,i)}):s(n,o))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=function(t,e){const n=e.fs.lstatSync(t);if(!n.isSymbolicLink()||!e.followSymbolicLink)return n;try{const n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(t){if(!e.throwErrorOnBrokenSymbolicLink)return n;throw t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(51);e.default=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,e){return void 0===t?e:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3);e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync},e.createFileSystemAdapter=function(t){return void 0===t?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(18);e.default=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new r.default(this._root,this._settings),this._storage=new Set}read(t){this._reader.onError(e=>{!function(t,e){t(e)}(t,e)}),this._reader.onEntry(t=>{this._storage.add(t)}),this._reader.onEnd(()=>{!function(t,e){t(null,e)}(t,[...this._storage])}),this._reader.read()}}},function(t,e){t.exports=require("events")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(2),s=n(55),i=n(19),o=n(20);function a(t,e,n){e.fs.readdir(t,{withFileTypes:!0},(r,i)=>{if(null!==r)return c(n,r);const a=i.map(n=>({dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`}));if(!e.followSymbolicLinks)return l(n,a);const u=a.map(t=>function(t,e){return n=>{if(!t.dirent.isSymbolicLink())return n(null,t);e.fs.stat(t.path,(r,s)=>null!==r?e.throwErrorOnBrokenSymbolicLink?n(r):n(null,t):(t.dirent=o.fs.createDirentFromStats(t.name,s),n(null,t)))}}(t,e));s(u,(t,e)=>{if(null!==t)return c(n,t);l(n,e)})})}function u(t,e,n){e.fs.readdir(t,(i,a)=>{if(null!==i)return c(n,i);const u=a.map(n=>`${t}${e.pathSegmentSeparator}${n}`),p=u.map(t=>n=>r.stat(t,e.fsStatSettings,n));s(p,(t,r)=>{if(null!==t)return c(n,t);const s=[];a.forEach((t,n)=>{const i=r[n],a={name:t,path:u[n],dirent:o.fs.createDirentFromStats(t,i)};e.stats&&(a.stats=i),s.push(a)}),l(n,s)})})}function c(t,e){t(e)}function l(t,e){t(null,e)}e.read=function(t,e,n){return!e.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(t,e,n):u(t,e,n)},e.readdirWithFileTypes=a,e.readdir=u},function(t,e){t.exports=function(t,e){var n,r,s,i=!0;Array.isArray(t)?(n=[],r=t.length):(s=Object.keys(t),n={},r=s.length);function o(t){function r(){e&&e(t,n),e=null}i?process.nextTick(r):r()}function a(t,e,s){n[t]=s,(0==--r||e)&&o(e)}r?s?s.forEach((function(e){t[e]((function(t,n){a(e,t,n)}))})):t.forEach((function(t,e){t((function(t,n){a(e,t,n)}))})):o(null);i=!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class r{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}}e.createDirentFromStats=function(t,e){return new r(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(2),s=n(19),i=n(20);function o(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{const r={dirent:n,name:n.name,path:`${t}${e.pathSegmentSeparator}${n.name}`};if(r.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{const t=e.fs.statSync(r.path);r.dirent=i.fs.createDirentFromStats(r.name,t)}catch(t){if(e.throwErrorOnBrokenSymbolicLink)throw t}return r})}function a(t,e){return e.fs.readdirSync(t).map(n=>{const s=`${t}${e.pathSegmentSeparator}${n}`,o=r.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:i.fs.createDirentFromStats(n,o)};return e.stats&&(a.stats=o),a})}e.read=function(t,e){return!e.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES?o(t,e):a(t,e)},e.readdirWithFileTypes=o,e.readdir=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0),s=n(2),i=n(59);e.default=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=i.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return void 0===t?e:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(3);e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync},e.createFileSystemAdapter=function(t){return void 0===t?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}},function(t,e,n){"use strict";var r=n(61);function s(){}function i(){this.value=null,this.callback=s,this.next=null,this.release=s,this.context=null;var t=this;this.worked=function(e,n){var r=t.callback;t.value=null,t.callback=s,r.call(t.context,e,n),t.release(t)}}t.exports=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null);var o=r(i),a=null,u=null,c=0,l={push:function(n,r){var i=o.get();i.context=t,i.release=p,i.value=n,i.callback=r||s,c===l.concurrency||l.paused?u?(u.next=i,u=i):(a=i,u=i,l.saturated()):(c++,e.call(t,i.value,i.worked))},drain:s,saturated:s,pause:function(){l.paused=!0},paused:!1,concurrency:n,running:function(){return c},resume:function(){if(!l.paused)return;l.paused=!1;for(var t=0;t<l.concurrency;t++)c++,p()},idle:function(){return 0===c&&0===l.length()},length:function(){var t=a,e=0;for(;t;)t=t.next,e++;return e},getQueue:function(){var t=a,e=[];for(;t;)e.push(t.value),t=t.next;return e},unshift:function(n,r){var i=o.get();i.context=t,i.release=p,i.value=n,i.callback=r||s,c===l.concurrency||l.paused?a?(i.next=a,a=i):(a=i,u=i,l.saturated()):(c++,e.call(t,i.value,i.worked))},empty:s,kill:function(){a=null,u=null,l.drain=s},killAndDrain:function(){a=null,u=null,l.drain(),l.drain=s}};return l;function p(n){n&&o.release(n);var r=a;r?l.paused?c--:(u===a&&(u=null),a=r.next,r.next=null,e.call(t,r.value,r.worked),null===u&&l.empty()):0==--c&&l.drain()}}},function(t,e,n){"use strict";t.exports=function(t){var e=new t,n=e;return{get:function(){var r=e;return r.next?e=r.next:(e=new t,n=e),r.next=null,r},release:function(t){n.next=t,n=t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),s=n(18);e.default=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new s.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:this._reader.destroy.bind(this._reader)})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(64);e.default=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(9),s=n(10),i=n(21);class o extends i.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=new Set,this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),[...this._storage]}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(const t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,e){try{const n=this._scandir(t,this._settings.fsScandirSettings);for(const t of n)this._handleEntry(t,e)}catch(t){this._handleError(t)}}_handleError(t){if(s.isFatalError(this._settings,t))throw t}_handleEntry(t,e){const n=t.path;void 0!==e&&(t.path=s.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),s.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,t.path)}_pushToStorage(t){this._storage.add(t)}}e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0),s=n(9);e.default=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,1/0),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return void 0===t?e:t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(1),s=n(67);e.default=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,n){const r=this._getMatcher(e),s=this._getNegativePatternsRe(n);return e=>this._filter(t,e,r,s)}_getMatcher(t){return new s.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){const e=t.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,n,s){if(this._isSkippedByDeep(t,e.path))return!1;if(this._isSkippedSymbolicLink(e))return!1;const i=r.path.removeLeadingDotSegment(e.path);return!this._isSkippedByPositivePatterns(i,n)&&this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(t,e){return this._settings.deep!==1/0&&this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){const n=e.split("/").length;if(""===t)return n;return n-t.split("/").length}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!r.pattern.matchAny(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(68);class s extends r.default{match(t){const e=t.split("/"),n=e.length,r=this._storage.filter(t=>!t.complete||t.segments.length>n);for(const t of r){const r=t.sections[0];if(!t.complete&&n>r.length)return!0;if(e.every((e,n)=>{const r=t.segments[n];return!(!r.dynamic||!r.patternRe.test(e))||!r.dynamic&&r.pattern===e}))return!0}return!1}}e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(1);e.default=class{constructor(t,e,n){this._patterns=t,this._settings=e,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){const t=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const e of t){const t=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(t);this._storage.push({complete:n.length<=1,pattern:e,segments:t,sections:n})}}_getPatternSegments(t){return r.pattern.getPatternParts(t,this._micromatchOptions).map(t=>r.pattern.isDynamicPattern(t,this._settings)?{dynamic:!0,pattern:t,patternRe:r.pattern.makeRe(t,this._micromatchOptions)}:{dynamic:!1,pattern:t})}_splitSegmentsIntoSections(t){return r.array.splitWhen(t,t=>t.dynamic&&r.pattern.hasGlobStar(t.pattern))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(1);e.default=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){const n=r.pattern.convertPatternsToRe(t,this._micromatchOptions),s=r.pattern.convertPatternsToRe(e,this._micromatchOptions);return t=>this._filter(t,n,s)}_filter(t,e,n){if(this._settings.unique&&this._isDuplicateEntry(t))return!1;if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;if(this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;const r=this._settings.baseNameMatch?t.name:t.path,s=this._isMatchToPatterns(r,e)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute)return!1;const n=r.path.makeAbsolute(this._settings.cwd,t);return r.pattern.matchAny(n,e)}_isMatchToPatterns(t,e){const n=r.path.removeLeadingDotSegment(t);return r.pattern.matchAny(n,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(1);e.default=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return r.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(1);e.default=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=r.path.makeAbsolute(this._settings.cwd,e),e=r.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(6),s=n(16),i=n(11);class o extends i.default{constructor(){super(...arguments),this._reader=new s.default(this._settings)}read(t){const e=this._getRootDirectory(t),n=this._getReaderOptions(t),s=this.api(e,t,n),i=new r.Readable({objectMode:!0,read:()=>{}});return s.once("error",t=>i.emit("error",t)).on("data",t=>i.emit("data",n.transform(t))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(t,e,n){return e.dynamic?this._reader.dynamic(t,n):this._reader.static(e.patterns,n)}}e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(74),s=n(11);class i extends s.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(t){const e=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(e,t,n).map(n.transform)}api(t,e,n){return e.dynamic?this._reader.dynamic(t,n):this._reader.static(e.patterns,n)}}e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(2),s=n(17),i=n(22);class o extends i.default{constructor(){super(...arguments),this._walkSync=s.walkSync,this._statSync=r.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){const n=[];for(const r of t){const t=this._getFullEntryPath(r),s=this._getEntry(t,r,e);null!==s&&e.entryFilter(s)&&n.push(s)}return n}_getEntry(t,e,n){try{const n=this._getStat(t);return this._makeEntry(n,e)}catch(t){if(n.errorFilter(t))return null;throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const r=n(3),s=n(12).cpus().length;e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};e.default=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,s),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,e){return void 0===t?e:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}},,,function(t,e,n){t.exports=n(79)},function(t,e,n){"use strict";n.r(e);var r=n(3),s=n(0),i=n(23);class o{static saveJson(t,e){r.writeFileSync(t,this.toJson(e))}static loadJson(t){return JSON.parse(r.readFileSync(t,"utf8"))}static toJson(t){return null!=t?JSON.stringify(t,null,4):"{}"}}function a(t,e){let n=o.loadJson(t),r=!1;e&&!n.module?(n.module="./es5-esm.js",r=!0):!e&&n.module&&(delete n.module,r=!0),r&&o.saveJson(t,n);let s=e?"enabled":"disabled";s=r?"updated, "+s:"untouched, already "+s,console.log(`Processing "${t}" - ${s}`)}!function(){console.log("Wijmo ESM modules disabling/enabling utility");let t=process.argv[2],e=null;if(t)switch(t){case"-enable":case"-e":e=!0;break;case"-disable":case"-d":e=!1;break;case"-help":case"-h":return void console.log("\nDisables or enables ESM versions of @grapecity/wijmo.angular2legacy.* modules.\nPossible options:\nno options - automatically detects Angular version installed in the project. \n For Angular 8 or lower, disables ESM modules. \n For Angular 9 and higher, enables ESM modules.\n-enable, -e - enables ESM modules.\n-disable, -d - disables ESM modules.\n-help, -h - shows this help info.\n");default:return console.warn(`Unknown option '${t}'`),1}if(null==e){let t=function(){const t=s.resolve("node_modules/@angular/core/package.json");let e=null;if(r.existsSync(t)){let n=o.loadJson(t).version;if(n){let t=n.match(/^\s*(\d+)\./);t?e=+t[1]:console.warn(`Unrecognizable Angular version '${n}'.`)}else console.warn(`File "${t}" doesn't contain a "version" field.`)}else console.warn(`Can't find Angular, the "${t}" file is missed.`);return e}();if(null==t)return void console.warn("Can't determine Angular version of the project. No action is performed.");e=t>8,console.log(`Detected Angular version ${t}.`)}null!=e&&(console.log((e?"Enabling":"Disabling")+" ESM modules in @grapecity/wijmo.angular2legacy.* packages."),function(t){let e=i.sync(["node_modules/@grapecity/wijmo.angular2legacy.*/package.json","!**/wijmo.angular2legacy.all/*"]);if(!e.length)return void console.warn("No @grapecity/wijmo.angular2legacy.* modules found.");for(let n of e)a(n,t)}(e))}()}]);