@itwin/rpcinterface-full-stack-tests 3.2.0-dev.13 → 3.2.0-dev.16
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/lib/dist/bundled-tests.js +343 -3639
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +14 -14
|
@@ -2788,391 +2788,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2788
2788
|
*/
|
|
2789
2789
|
|
|
2790
2790
|
|
|
2791
|
-
/***/ }),
|
|
2792
|
-
|
|
2793
|
-
/***/ "../../common/temp/node_modules/.pnpm/@ungap+url-search-params@0.1.4/node_modules/@ungap/url-search-params/index.js":
|
|
2794
|
-
/*!**********************************************************************************************************************************!*\
|
|
2795
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/@ungap+url-search-params@0.1.4/node_modules/@ungap/url-search-params/index.js ***!
|
|
2796
|
-
\**********************************************************************************************************************************/
|
|
2797
|
-
/*! no static exports found */
|
|
2798
|
-
/***/ (function(module, exports) {
|
|
2799
|
-
|
|
2800
|
-
/*! (c) Andrea Giammarchi - ISC */
|
|
2801
|
-
var self = this || /* istanbul ignore next */ {};
|
|
2802
|
-
try {
|
|
2803
|
-
(function (URLSearchParams, plus) {
|
|
2804
|
-
if (
|
|
2805
|
-
new URLSearchParams('q=%2B').get('q') !== plus ||
|
|
2806
|
-
new URLSearchParams({q: plus}).get('q') !== plus ||
|
|
2807
|
-
new URLSearchParams([['q', plus]]).get('q') !== plus ||
|
|
2808
|
-
new URLSearchParams('q=\n').toString() !== 'q=%0A' ||
|
|
2809
|
-
new URLSearchParams({q: ' &'}).toString() !== 'q=+%26' ||
|
|
2810
|
-
new URLSearchParams({q: '%zx'}).toString() !== 'q=%25zx'
|
|
2811
|
-
)
|
|
2812
|
-
throw URLSearchParams;
|
|
2813
|
-
self.URLSearchParams = URLSearchParams;
|
|
2814
|
-
}(URLSearchParams, '+'));
|
|
2815
|
-
} catch(URLSearchParams) {
|
|
2816
|
-
(function (Object, String, isArray) {'use strict';
|
|
2817
|
-
var create = Object.create;
|
|
2818
|
-
var defineProperty = Object.defineProperty;
|
|
2819
|
-
var find = /[!'\(\)~]|%20|%00/g;
|
|
2820
|
-
var findPercentSign = /%(?![0-9a-fA-F]{2})/g;
|
|
2821
|
-
var plus = /\+/g;
|
|
2822
|
-
var replace = {
|
|
2823
|
-
'!': '%21',
|
|
2824
|
-
"'": '%27',
|
|
2825
|
-
'(': '%28',
|
|
2826
|
-
')': '%29',
|
|
2827
|
-
'~': '%7E',
|
|
2828
|
-
'%20': '+',
|
|
2829
|
-
'%00': '\x00'
|
|
2830
|
-
};
|
|
2831
|
-
var proto = {
|
|
2832
|
-
append: function (key, value) {
|
|
2833
|
-
appendTo(this._ungap, key, value);
|
|
2834
|
-
},
|
|
2835
|
-
delete: function (key) {
|
|
2836
|
-
delete this._ungap[key];
|
|
2837
|
-
},
|
|
2838
|
-
get: function (key) {
|
|
2839
|
-
return this.has(key) ? this._ungap[key][0] : null;
|
|
2840
|
-
},
|
|
2841
|
-
getAll: function (key) {
|
|
2842
|
-
return this.has(key) ? this._ungap[key].slice(0) : [];
|
|
2843
|
-
},
|
|
2844
|
-
has: function (key) {
|
|
2845
|
-
return key in this._ungap;
|
|
2846
|
-
},
|
|
2847
|
-
set: function (key, value) {
|
|
2848
|
-
this._ungap[key] = [String(value)];
|
|
2849
|
-
},
|
|
2850
|
-
forEach: function (callback, thisArg) {
|
|
2851
|
-
var self = this;
|
|
2852
|
-
for (var key in self._ungap)
|
|
2853
|
-
self._ungap[key].forEach(invoke, key);
|
|
2854
|
-
function invoke(value) {
|
|
2855
|
-
callback.call(thisArg, value, String(key), self);
|
|
2856
|
-
}
|
|
2857
|
-
},
|
|
2858
|
-
toJSON: function () {
|
|
2859
|
-
return {};
|
|
2860
|
-
},
|
|
2861
|
-
toString: function () {
|
|
2862
|
-
var query = [];
|
|
2863
|
-
for (var key in this._ungap) {
|
|
2864
|
-
var encoded = encode(key);
|
|
2865
|
-
for (var
|
|
2866
|
-
i = 0,
|
|
2867
|
-
value = this._ungap[key];
|
|
2868
|
-
i < value.length; i++
|
|
2869
|
-
) {
|
|
2870
|
-
query.push(encoded + '=' + encode(value[i]));
|
|
2871
|
-
}
|
|
2872
|
-
}
|
|
2873
|
-
return query.join('&');
|
|
2874
|
-
}
|
|
2875
|
-
};
|
|
2876
|
-
for (var key in proto)
|
|
2877
|
-
defineProperty(URLSearchParams.prototype, key, {
|
|
2878
|
-
configurable: true,
|
|
2879
|
-
writable: true,
|
|
2880
|
-
value: proto[key]
|
|
2881
|
-
});
|
|
2882
|
-
self.URLSearchParams = URLSearchParams;
|
|
2883
|
-
function URLSearchParams(query) {
|
|
2884
|
-
var dict = create(null);
|
|
2885
|
-
defineProperty(this, '_ungap', {value: dict});
|
|
2886
|
-
switch (true) {
|
|
2887
|
-
case !query:
|
|
2888
|
-
break;
|
|
2889
|
-
case typeof query === 'string':
|
|
2890
|
-
if (query.charAt(0) === '?') {
|
|
2891
|
-
query = query.slice(1);
|
|
2892
|
-
}
|
|
2893
|
-
for (var
|
|
2894
|
-
pairs = query.split('&'),
|
|
2895
|
-
i = 0,
|
|
2896
|
-
length = pairs.length; i < length; i++
|
|
2897
|
-
) {
|
|
2898
|
-
var value = pairs[i];
|
|
2899
|
-
var index = value.indexOf('=');
|
|
2900
|
-
if (-1 < index) {
|
|
2901
|
-
appendTo(
|
|
2902
|
-
dict,
|
|
2903
|
-
decode(value.slice(0, index)),
|
|
2904
|
-
decode(value.slice(index + 1))
|
|
2905
|
-
);
|
|
2906
|
-
} else if (value.length){
|
|
2907
|
-
appendTo(
|
|
2908
|
-
dict,
|
|
2909
|
-
decode(value),
|
|
2910
|
-
''
|
|
2911
|
-
);
|
|
2912
|
-
}
|
|
2913
|
-
}
|
|
2914
|
-
break;
|
|
2915
|
-
case isArray(query):
|
|
2916
|
-
for (var
|
|
2917
|
-
i = 0,
|
|
2918
|
-
length = query.length; i < length; i++
|
|
2919
|
-
) {
|
|
2920
|
-
var value = query[i];
|
|
2921
|
-
appendTo(dict, value[0], value[1]);
|
|
2922
|
-
}
|
|
2923
|
-
break;
|
|
2924
|
-
case 'forEach' in query:
|
|
2925
|
-
query.forEach(addEach, dict);
|
|
2926
|
-
break;
|
|
2927
|
-
default:
|
|
2928
|
-
for (var key in query)
|
|
2929
|
-
appendTo(dict, key, query[key]);
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
function addEach(value, key) {
|
|
2934
|
-
appendTo(this, key, value);
|
|
2935
|
-
}
|
|
2936
|
-
|
|
2937
|
-
function appendTo(dict, key, value) {
|
|
2938
|
-
var res = isArray(value) ? value.join(',') : value;
|
|
2939
|
-
if (key in dict)
|
|
2940
|
-
dict[key].push(res);
|
|
2941
|
-
else
|
|
2942
|
-
dict[key] = [res];
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
|
-
function decode(str) {
|
|
2946
|
-
return decodeURIComponent(str.replace(findPercentSign, '%25').replace(plus, ' '));
|
|
2947
|
-
}
|
|
2948
|
-
|
|
2949
|
-
function encode(str) {
|
|
2950
|
-
return encodeURIComponent(str).replace(find, replacer);
|
|
2951
|
-
}
|
|
2952
|
-
|
|
2953
|
-
function replacer(match) {
|
|
2954
|
-
return replace[match];
|
|
2955
|
-
}
|
|
2956
|
-
|
|
2957
|
-
}(Object, String, Array.isArray));
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
|
-
(function (URLSearchParamsProto) {
|
|
2961
|
-
|
|
2962
|
-
var iterable = false;
|
|
2963
|
-
try { iterable = !!Symbol.iterator; } catch (o_O) {}
|
|
2964
|
-
|
|
2965
|
-
/* istanbul ignore else */
|
|
2966
|
-
if (!('forEach' in URLSearchParamsProto)) {
|
|
2967
|
-
URLSearchParamsProto.forEach = function forEach(callback, thisArg) {
|
|
2968
|
-
var self = this;
|
|
2969
|
-
var names = Object.create(null);
|
|
2970
|
-
this.toString()
|
|
2971
|
-
.replace(/=[\s\S]*?(?:&|$)/g, '=')
|
|
2972
|
-
.split('=')
|
|
2973
|
-
.forEach(function (name) {
|
|
2974
|
-
if (!name.length || name in names)
|
|
2975
|
-
return;
|
|
2976
|
-
(names[name] = self.getAll(name)).forEach(function(value) {
|
|
2977
|
-
callback.call(thisArg, value, name, self);
|
|
2978
|
-
});
|
|
2979
|
-
});
|
|
2980
|
-
};
|
|
2981
|
-
}
|
|
2982
|
-
|
|
2983
|
-
/* istanbul ignore else */
|
|
2984
|
-
if (!('keys' in URLSearchParamsProto)) {
|
|
2985
|
-
URLSearchParamsProto.keys = function keys() {
|
|
2986
|
-
return iterator(this, function(value, key) { this.push(key); });
|
|
2987
|
-
};
|
|
2988
|
-
}
|
|
2989
|
-
|
|
2990
|
-
/* istanbul ignore else */
|
|
2991
|
-
if (!('values' in URLSearchParamsProto)) {
|
|
2992
|
-
URLSearchParamsProto.values = function values() {
|
|
2993
|
-
return iterator(this, function(value, key) { this.push(value); });
|
|
2994
|
-
};
|
|
2995
|
-
}
|
|
2996
|
-
|
|
2997
|
-
/* istanbul ignore else */
|
|
2998
|
-
if (!('entries' in URLSearchParamsProto)) {
|
|
2999
|
-
URLSearchParamsProto.entries = function entries() {
|
|
3000
|
-
return iterator(this, function(value, key) { this.push([key, value]); });
|
|
3001
|
-
};
|
|
3002
|
-
}
|
|
3003
|
-
|
|
3004
|
-
/* istanbul ignore else */
|
|
3005
|
-
if (iterable && !(Symbol.iterator in URLSearchParamsProto)) {
|
|
3006
|
-
URLSearchParamsProto[Symbol.iterator] = URLSearchParamsProto.entries;
|
|
3007
|
-
}
|
|
3008
|
-
|
|
3009
|
-
/* istanbul ignore else */
|
|
3010
|
-
if (!('sort' in URLSearchParamsProto)) {
|
|
3011
|
-
URLSearchParamsProto.sort = function sort() {
|
|
3012
|
-
var
|
|
3013
|
-
entries = this.entries(),
|
|
3014
|
-
entry = entries.next(),
|
|
3015
|
-
done = entry.done,
|
|
3016
|
-
keys = [],
|
|
3017
|
-
values = Object.create(null),
|
|
3018
|
-
i, key, value
|
|
3019
|
-
;
|
|
3020
|
-
while (!done) {
|
|
3021
|
-
value = entry.value;
|
|
3022
|
-
key = value[0];
|
|
3023
|
-
keys.push(key);
|
|
3024
|
-
if (!(key in values)) {
|
|
3025
|
-
values[key] = [];
|
|
3026
|
-
}
|
|
3027
|
-
values[key].push(value[1]);
|
|
3028
|
-
entry = entries.next();
|
|
3029
|
-
done = entry.done;
|
|
3030
|
-
}
|
|
3031
|
-
// not the champion in efficiency
|
|
3032
|
-
// but these two bits just do the job
|
|
3033
|
-
keys.sort();
|
|
3034
|
-
for (i = 0; i < keys.length; i++) {
|
|
3035
|
-
this.delete(keys[i]);
|
|
3036
|
-
}
|
|
3037
|
-
for (i = 0; i < keys.length; i++) {
|
|
3038
|
-
key = keys[i];
|
|
3039
|
-
this.append(key, values[key].shift());
|
|
3040
|
-
}
|
|
3041
|
-
};
|
|
3042
|
-
}
|
|
3043
|
-
|
|
3044
|
-
function iterator(self, callback) {
|
|
3045
|
-
var items = [];
|
|
3046
|
-
self.forEach(callback, items);
|
|
3047
|
-
return iterable ?
|
|
3048
|
-
items[Symbol.iterator]() :
|
|
3049
|
-
{
|
|
3050
|
-
next: function() {
|
|
3051
|
-
var value = items.shift();
|
|
3052
|
-
return {done: value === undefined, value: value};
|
|
3053
|
-
}
|
|
3054
|
-
};
|
|
3055
|
-
}
|
|
3056
|
-
|
|
3057
|
-
/* istanbul ignore next */
|
|
3058
|
-
(function (Object) {
|
|
3059
|
-
var
|
|
3060
|
-
dP = Object.defineProperty,
|
|
3061
|
-
gOPD = Object.getOwnPropertyDescriptor,
|
|
3062
|
-
createSearchParamsPollute = function (search) {
|
|
3063
|
-
function append(name, value) {
|
|
3064
|
-
URLSearchParamsProto.append.call(this, name, value);
|
|
3065
|
-
name = this.toString();
|
|
3066
|
-
search.set.call(this._usp, name ? ('?' + name) : '');
|
|
3067
|
-
}
|
|
3068
|
-
function del(name) {
|
|
3069
|
-
URLSearchParamsProto.delete.call(this, name);
|
|
3070
|
-
name = this.toString();
|
|
3071
|
-
search.set.call(this._usp, name ? ('?' + name) : '');
|
|
3072
|
-
}
|
|
3073
|
-
function set(name, value) {
|
|
3074
|
-
URLSearchParamsProto.set.call(this, name, value);
|
|
3075
|
-
name = this.toString();
|
|
3076
|
-
search.set.call(this._usp, name ? ('?' + name) : '');
|
|
3077
|
-
}
|
|
3078
|
-
return function (sp, value) {
|
|
3079
|
-
sp.append = append;
|
|
3080
|
-
sp.delete = del;
|
|
3081
|
-
sp.set = set;
|
|
3082
|
-
return dP(sp, '_usp', {
|
|
3083
|
-
configurable: true,
|
|
3084
|
-
writable: true,
|
|
3085
|
-
value: value
|
|
3086
|
-
});
|
|
3087
|
-
};
|
|
3088
|
-
},
|
|
3089
|
-
createSearchParamsCreate = function (polluteSearchParams) {
|
|
3090
|
-
return function (obj, sp) {
|
|
3091
|
-
dP(
|
|
3092
|
-
obj, '_searchParams', {
|
|
3093
|
-
configurable: true,
|
|
3094
|
-
writable: true,
|
|
3095
|
-
value: polluteSearchParams(sp, obj)
|
|
3096
|
-
}
|
|
3097
|
-
);
|
|
3098
|
-
return sp;
|
|
3099
|
-
};
|
|
3100
|
-
},
|
|
3101
|
-
updateSearchParams = function (sp) {
|
|
3102
|
-
var append = sp.append;
|
|
3103
|
-
sp.append = URLSearchParamsProto.append;
|
|
3104
|
-
URLSearchParams.call(sp, sp._usp.search.slice(1));
|
|
3105
|
-
sp.append = append;
|
|
3106
|
-
},
|
|
3107
|
-
verifySearchParams = function (obj, Class) {
|
|
3108
|
-
if (!(obj instanceof Class)) throw new TypeError(
|
|
3109
|
-
"'searchParams' accessed on an object that " +
|
|
3110
|
-
"does not implement interface " + Class.name
|
|
3111
|
-
);
|
|
3112
|
-
},
|
|
3113
|
-
upgradeClass = function (Class) {
|
|
3114
|
-
var
|
|
3115
|
-
ClassProto = Class.prototype,
|
|
3116
|
-
searchParams = gOPD(ClassProto, 'searchParams'),
|
|
3117
|
-
href = gOPD(ClassProto, 'href'),
|
|
3118
|
-
search = gOPD(ClassProto, 'search'),
|
|
3119
|
-
createSearchParams
|
|
3120
|
-
;
|
|
3121
|
-
if (!searchParams && search && search.set) {
|
|
3122
|
-
createSearchParams = createSearchParamsCreate(
|
|
3123
|
-
createSearchParamsPollute(search)
|
|
3124
|
-
);
|
|
3125
|
-
Object.defineProperties(
|
|
3126
|
-
ClassProto,
|
|
3127
|
-
{
|
|
3128
|
-
href: {
|
|
3129
|
-
get: function () {
|
|
3130
|
-
return href.get.call(this);
|
|
3131
|
-
},
|
|
3132
|
-
set: function (value) {
|
|
3133
|
-
var sp = this._searchParams;
|
|
3134
|
-
href.set.call(this, value);
|
|
3135
|
-
if (sp) updateSearchParams(sp);
|
|
3136
|
-
}
|
|
3137
|
-
},
|
|
3138
|
-
search: {
|
|
3139
|
-
get: function () {
|
|
3140
|
-
return search.get.call(this);
|
|
3141
|
-
},
|
|
3142
|
-
set: function (value) {
|
|
3143
|
-
var sp = this._searchParams;
|
|
3144
|
-
search.set.call(this, value);
|
|
3145
|
-
if (sp) updateSearchParams(sp);
|
|
3146
|
-
}
|
|
3147
|
-
},
|
|
3148
|
-
searchParams: {
|
|
3149
|
-
get: function () {
|
|
3150
|
-
verifySearchParams(this, Class);
|
|
3151
|
-
return this._searchParams || createSearchParams(
|
|
3152
|
-
this,
|
|
3153
|
-
new URLSearchParams(this.search.slice(1))
|
|
3154
|
-
);
|
|
3155
|
-
},
|
|
3156
|
-
set: function (sp) {
|
|
3157
|
-
verifySearchParams(this, Class);
|
|
3158
|
-
createSearchParams(this, sp);
|
|
3159
|
-
}
|
|
3160
|
-
}
|
|
3161
|
-
}
|
|
3162
|
-
);
|
|
3163
|
-
}
|
|
3164
|
-
}
|
|
3165
|
-
;
|
|
3166
|
-
try {
|
|
3167
|
-
upgradeClass(HTMLAnchorElement);
|
|
3168
|
-
if (/^function|object$/.test(typeof URL) && URL.prototype)
|
|
3169
|
-
upgradeClass(URL);
|
|
3170
|
-
} catch (meh) {}
|
|
3171
|
-
}(Object));
|
|
3172
|
-
|
|
3173
|
-
}(self.URLSearchParams.prototype, Object));
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
2791
|
/***/ }),
|
|
3177
2792
|
|
|
3178
2793
|
/***/ "../../common/temp/node_modules/.pnpm/assertion-error@1.1.0/node_modules/assertion-error/index.js":
|
|
@@ -9538,81 +9153,6 @@ function isnan (val) {
|
|
|
9538
9153
|
|
|
9539
9154
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack@4.42.0/node_modules/webpack/buildin/global.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/global.js")))
|
|
9540
9155
|
|
|
9541
|
-
/***/ }),
|
|
9542
|
-
|
|
9543
|
-
/***/ "../../common/temp/node_modules/.pnpm/builtin-status-codes@3.0.0/node_modules/builtin-status-codes/browser.js":
|
|
9544
|
-
/*!****************************************************************************************************************************!*\
|
|
9545
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/builtin-status-codes@3.0.0/node_modules/builtin-status-codes/browser.js ***!
|
|
9546
|
-
\****************************************************************************************************************************/
|
|
9547
|
-
/*! no static exports found */
|
|
9548
|
-
/***/ (function(module, exports) {
|
|
9549
|
-
|
|
9550
|
-
module.exports = {
|
|
9551
|
-
"100": "Continue",
|
|
9552
|
-
"101": "Switching Protocols",
|
|
9553
|
-
"102": "Processing",
|
|
9554
|
-
"200": "OK",
|
|
9555
|
-
"201": "Created",
|
|
9556
|
-
"202": "Accepted",
|
|
9557
|
-
"203": "Non-Authoritative Information",
|
|
9558
|
-
"204": "No Content",
|
|
9559
|
-
"205": "Reset Content",
|
|
9560
|
-
"206": "Partial Content",
|
|
9561
|
-
"207": "Multi-Status",
|
|
9562
|
-
"208": "Already Reported",
|
|
9563
|
-
"226": "IM Used",
|
|
9564
|
-
"300": "Multiple Choices",
|
|
9565
|
-
"301": "Moved Permanently",
|
|
9566
|
-
"302": "Found",
|
|
9567
|
-
"303": "See Other",
|
|
9568
|
-
"304": "Not Modified",
|
|
9569
|
-
"305": "Use Proxy",
|
|
9570
|
-
"307": "Temporary Redirect",
|
|
9571
|
-
"308": "Permanent Redirect",
|
|
9572
|
-
"400": "Bad Request",
|
|
9573
|
-
"401": "Unauthorized",
|
|
9574
|
-
"402": "Payment Required",
|
|
9575
|
-
"403": "Forbidden",
|
|
9576
|
-
"404": "Not Found",
|
|
9577
|
-
"405": "Method Not Allowed",
|
|
9578
|
-
"406": "Not Acceptable",
|
|
9579
|
-
"407": "Proxy Authentication Required",
|
|
9580
|
-
"408": "Request Timeout",
|
|
9581
|
-
"409": "Conflict",
|
|
9582
|
-
"410": "Gone",
|
|
9583
|
-
"411": "Length Required",
|
|
9584
|
-
"412": "Precondition Failed",
|
|
9585
|
-
"413": "Payload Too Large",
|
|
9586
|
-
"414": "URI Too Long",
|
|
9587
|
-
"415": "Unsupported Media Type",
|
|
9588
|
-
"416": "Range Not Satisfiable",
|
|
9589
|
-
"417": "Expectation Failed",
|
|
9590
|
-
"418": "I'm a teapot",
|
|
9591
|
-
"421": "Misdirected Request",
|
|
9592
|
-
"422": "Unprocessable Entity",
|
|
9593
|
-
"423": "Locked",
|
|
9594
|
-
"424": "Failed Dependency",
|
|
9595
|
-
"425": "Unordered Collection",
|
|
9596
|
-
"426": "Upgrade Required",
|
|
9597
|
-
"428": "Precondition Required",
|
|
9598
|
-
"429": "Too Many Requests",
|
|
9599
|
-
"431": "Request Header Fields Too Large",
|
|
9600
|
-
"451": "Unavailable For Legal Reasons",
|
|
9601
|
-
"500": "Internal Server Error",
|
|
9602
|
-
"501": "Not Implemented",
|
|
9603
|
-
"502": "Bad Gateway",
|
|
9604
|
-
"503": "Service Unavailable",
|
|
9605
|
-
"504": "Gateway Timeout",
|
|
9606
|
-
"505": "HTTP Version Not Supported",
|
|
9607
|
-
"506": "Variant Also Negotiates",
|
|
9608
|
-
"507": "Insufficient Storage",
|
|
9609
|
-
"508": "Loop Detected",
|
|
9610
|
-
"509": "Bandwidth Limit Exceeded",
|
|
9611
|
-
"510": "Not Extended",
|
|
9612
|
-
"511": "Network Authentication Required"
|
|
9613
|
-
}
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
9156
|
/***/ }),
|
|
9617
9157
|
|
|
9618
9158
|
/***/ "../../common/temp/node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js":
|
|
@@ -23196,48 +22736,6 @@ var bind = __webpack_require__(/*! function-bind */ "../../common/temp/node_modu
|
|
|
23196
22736
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
23197
22737
|
|
|
23198
22738
|
|
|
23199
|
-
/***/ }),
|
|
23200
|
-
|
|
23201
|
-
/***/ "../../common/temp/node_modules/.pnpm/https-browserify@1.0.0/node_modules/https-browserify/index.js":
|
|
23202
|
-
/*!******************************************************************************************************************!*\
|
|
23203
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/https-browserify@1.0.0/node_modules/https-browserify/index.js ***!
|
|
23204
|
-
\******************************************************************************************************************/
|
|
23205
|
-
/*! no static exports found */
|
|
23206
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
23207
|
-
|
|
23208
|
-
var http = __webpack_require__(/*! http */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/index.js")
|
|
23209
|
-
var url = __webpack_require__(/*! url */ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/url.js")
|
|
23210
|
-
|
|
23211
|
-
var https = module.exports
|
|
23212
|
-
|
|
23213
|
-
for (var key in http) {
|
|
23214
|
-
if (http.hasOwnProperty(key)) https[key] = http[key]
|
|
23215
|
-
}
|
|
23216
|
-
|
|
23217
|
-
https.request = function (params, cb) {
|
|
23218
|
-
params = validateParams(params)
|
|
23219
|
-
return http.request.call(this, params, cb)
|
|
23220
|
-
}
|
|
23221
|
-
|
|
23222
|
-
https.get = function (params, cb) {
|
|
23223
|
-
params = validateParams(params)
|
|
23224
|
-
return http.get.call(this, params, cb)
|
|
23225
|
-
}
|
|
23226
|
-
|
|
23227
|
-
function validateParams (params) {
|
|
23228
|
-
if (typeof params === 'string') {
|
|
23229
|
-
params = url.parse(params)
|
|
23230
|
-
}
|
|
23231
|
-
if (!params.protocol) {
|
|
23232
|
-
params.protocol = 'https:'
|
|
23233
|
-
}
|
|
23234
|
-
if (params.protocol !== 'https:') {
|
|
23235
|
-
throw new Error('Protocol "' + params.protocol + '" not supported. Expected "https:"')
|
|
23236
|
-
}
|
|
23237
|
-
return params
|
|
23238
|
-
}
|
|
23239
|
-
|
|
23240
|
-
|
|
23241
22739
|
/***/ }),
|
|
23242
22740
|
|
|
23243
22741
|
/***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.3/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
|
|
@@ -29297,537 +28795,6 @@ function nextTick(fn, arg1, arg2, arg3) {
|
|
|
29297
28795
|
|
|
29298
28796
|
|
|
29299
28797
|
|
|
29300
|
-
/***/ }),
|
|
29301
|
-
|
|
29302
|
-
/***/ "../../common/temp/node_modules/.pnpm/punycode@1.4.1/node_modules/punycode/punycode.js":
|
|
29303
|
-
/*!*****************************************************************************************************!*\
|
|
29304
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/punycode@1.4.1/node_modules/punycode/punycode.js ***!
|
|
29305
|
-
\*****************************************************************************************************/
|
|
29306
|
-
/*! no static exports found */
|
|
29307
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
29308
|
-
|
|
29309
|
-
/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
29310
|
-
;(function(root) {
|
|
29311
|
-
|
|
29312
|
-
/** Detect free variables */
|
|
29313
|
-
var freeExports = true && exports &&
|
|
29314
|
-
!exports.nodeType && exports;
|
|
29315
|
-
var freeModule = true && module &&
|
|
29316
|
-
!module.nodeType && module;
|
|
29317
|
-
var freeGlobal = typeof global == 'object' && global;
|
|
29318
|
-
if (
|
|
29319
|
-
freeGlobal.global === freeGlobal ||
|
|
29320
|
-
freeGlobal.window === freeGlobal ||
|
|
29321
|
-
freeGlobal.self === freeGlobal
|
|
29322
|
-
) {
|
|
29323
|
-
root = freeGlobal;
|
|
29324
|
-
}
|
|
29325
|
-
|
|
29326
|
-
/**
|
|
29327
|
-
* The `punycode` object.
|
|
29328
|
-
* @name punycode
|
|
29329
|
-
* @type Object
|
|
29330
|
-
*/
|
|
29331
|
-
var punycode,
|
|
29332
|
-
|
|
29333
|
-
/** Highest positive signed 32-bit float value */
|
|
29334
|
-
maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
|
|
29335
|
-
|
|
29336
|
-
/** Bootstring parameters */
|
|
29337
|
-
base = 36,
|
|
29338
|
-
tMin = 1,
|
|
29339
|
-
tMax = 26,
|
|
29340
|
-
skew = 38,
|
|
29341
|
-
damp = 700,
|
|
29342
|
-
initialBias = 72,
|
|
29343
|
-
initialN = 128, // 0x80
|
|
29344
|
-
delimiter = '-', // '\x2D'
|
|
29345
|
-
|
|
29346
|
-
/** Regular expressions */
|
|
29347
|
-
regexPunycode = /^xn--/,
|
|
29348
|
-
regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
|
|
29349
|
-
regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
|
|
29350
|
-
|
|
29351
|
-
/** Error messages */
|
|
29352
|
-
errors = {
|
|
29353
|
-
'overflow': 'Overflow: input needs wider integers to process',
|
|
29354
|
-
'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
|
|
29355
|
-
'invalid-input': 'Invalid input'
|
|
29356
|
-
},
|
|
29357
|
-
|
|
29358
|
-
/** Convenience shortcuts */
|
|
29359
|
-
baseMinusTMin = base - tMin,
|
|
29360
|
-
floor = Math.floor,
|
|
29361
|
-
stringFromCharCode = String.fromCharCode,
|
|
29362
|
-
|
|
29363
|
-
/** Temporary variable */
|
|
29364
|
-
key;
|
|
29365
|
-
|
|
29366
|
-
/*--------------------------------------------------------------------------*/
|
|
29367
|
-
|
|
29368
|
-
/**
|
|
29369
|
-
* A generic error utility function.
|
|
29370
|
-
* @private
|
|
29371
|
-
* @param {String} type The error type.
|
|
29372
|
-
* @returns {Error} Throws a `RangeError` with the applicable error message.
|
|
29373
|
-
*/
|
|
29374
|
-
function error(type) {
|
|
29375
|
-
throw new RangeError(errors[type]);
|
|
29376
|
-
}
|
|
29377
|
-
|
|
29378
|
-
/**
|
|
29379
|
-
* A generic `Array#map` utility function.
|
|
29380
|
-
* @private
|
|
29381
|
-
* @param {Array} array The array to iterate over.
|
|
29382
|
-
* @param {Function} callback The function that gets called for every array
|
|
29383
|
-
* item.
|
|
29384
|
-
* @returns {Array} A new array of values returned by the callback function.
|
|
29385
|
-
*/
|
|
29386
|
-
function map(array, fn) {
|
|
29387
|
-
var length = array.length;
|
|
29388
|
-
var result = [];
|
|
29389
|
-
while (length--) {
|
|
29390
|
-
result[length] = fn(array[length]);
|
|
29391
|
-
}
|
|
29392
|
-
return result;
|
|
29393
|
-
}
|
|
29394
|
-
|
|
29395
|
-
/**
|
|
29396
|
-
* A simple `Array#map`-like wrapper to work with domain name strings or email
|
|
29397
|
-
* addresses.
|
|
29398
|
-
* @private
|
|
29399
|
-
* @param {String} domain The domain name or email address.
|
|
29400
|
-
* @param {Function} callback The function that gets called for every
|
|
29401
|
-
* character.
|
|
29402
|
-
* @returns {Array} A new string of characters returned by the callback
|
|
29403
|
-
* function.
|
|
29404
|
-
*/
|
|
29405
|
-
function mapDomain(string, fn) {
|
|
29406
|
-
var parts = string.split('@');
|
|
29407
|
-
var result = '';
|
|
29408
|
-
if (parts.length > 1) {
|
|
29409
|
-
// In email addresses, only the domain name should be punycoded. Leave
|
|
29410
|
-
// the local part (i.e. everything up to `@`) intact.
|
|
29411
|
-
result = parts[0] + '@';
|
|
29412
|
-
string = parts[1];
|
|
29413
|
-
}
|
|
29414
|
-
// Avoid `split(regex)` for IE8 compatibility. See #17.
|
|
29415
|
-
string = string.replace(regexSeparators, '\x2E');
|
|
29416
|
-
var labels = string.split('.');
|
|
29417
|
-
var encoded = map(labels, fn).join('.');
|
|
29418
|
-
return result + encoded;
|
|
29419
|
-
}
|
|
29420
|
-
|
|
29421
|
-
/**
|
|
29422
|
-
* Creates an array containing the numeric code points of each Unicode
|
|
29423
|
-
* character in the string. While JavaScript uses UCS-2 internally,
|
|
29424
|
-
* this function will convert a pair of surrogate halves (each of which
|
|
29425
|
-
* UCS-2 exposes as separate characters) into a single code point,
|
|
29426
|
-
* matching UTF-16.
|
|
29427
|
-
* @see `punycode.ucs2.encode`
|
|
29428
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
29429
|
-
* @memberOf punycode.ucs2
|
|
29430
|
-
* @name decode
|
|
29431
|
-
* @param {String} string The Unicode input string (UCS-2).
|
|
29432
|
-
* @returns {Array} The new array of code points.
|
|
29433
|
-
*/
|
|
29434
|
-
function ucs2decode(string) {
|
|
29435
|
-
var output = [],
|
|
29436
|
-
counter = 0,
|
|
29437
|
-
length = string.length,
|
|
29438
|
-
value,
|
|
29439
|
-
extra;
|
|
29440
|
-
while (counter < length) {
|
|
29441
|
-
value = string.charCodeAt(counter++);
|
|
29442
|
-
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
29443
|
-
// high surrogate, and there is a next character
|
|
29444
|
-
extra = string.charCodeAt(counter++);
|
|
29445
|
-
if ((extra & 0xFC00) == 0xDC00) { // low surrogate
|
|
29446
|
-
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
29447
|
-
} else {
|
|
29448
|
-
// unmatched surrogate; only append this code unit, in case the next
|
|
29449
|
-
// code unit is the high surrogate of a surrogate pair
|
|
29450
|
-
output.push(value);
|
|
29451
|
-
counter--;
|
|
29452
|
-
}
|
|
29453
|
-
} else {
|
|
29454
|
-
output.push(value);
|
|
29455
|
-
}
|
|
29456
|
-
}
|
|
29457
|
-
return output;
|
|
29458
|
-
}
|
|
29459
|
-
|
|
29460
|
-
/**
|
|
29461
|
-
* Creates a string based on an array of numeric code points.
|
|
29462
|
-
* @see `punycode.ucs2.decode`
|
|
29463
|
-
* @memberOf punycode.ucs2
|
|
29464
|
-
* @name encode
|
|
29465
|
-
* @param {Array} codePoints The array of numeric code points.
|
|
29466
|
-
* @returns {String} The new Unicode string (UCS-2).
|
|
29467
|
-
*/
|
|
29468
|
-
function ucs2encode(array) {
|
|
29469
|
-
return map(array, function(value) {
|
|
29470
|
-
var output = '';
|
|
29471
|
-
if (value > 0xFFFF) {
|
|
29472
|
-
value -= 0x10000;
|
|
29473
|
-
output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
|
|
29474
|
-
value = 0xDC00 | value & 0x3FF;
|
|
29475
|
-
}
|
|
29476
|
-
output += stringFromCharCode(value);
|
|
29477
|
-
return output;
|
|
29478
|
-
}).join('');
|
|
29479
|
-
}
|
|
29480
|
-
|
|
29481
|
-
/**
|
|
29482
|
-
* Converts a basic code point into a digit/integer.
|
|
29483
|
-
* @see `digitToBasic()`
|
|
29484
|
-
* @private
|
|
29485
|
-
* @param {Number} codePoint The basic numeric code point value.
|
|
29486
|
-
* @returns {Number} The numeric value of a basic code point (for use in
|
|
29487
|
-
* representing integers) in the range `0` to `base - 1`, or `base` if
|
|
29488
|
-
* the code point does not represent a value.
|
|
29489
|
-
*/
|
|
29490
|
-
function basicToDigit(codePoint) {
|
|
29491
|
-
if (codePoint - 48 < 10) {
|
|
29492
|
-
return codePoint - 22;
|
|
29493
|
-
}
|
|
29494
|
-
if (codePoint - 65 < 26) {
|
|
29495
|
-
return codePoint - 65;
|
|
29496
|
-
}
|
|
29497
|
-
if (codePoint - 97 < 26) {
|
|
29498
|
-
return codePoint - 97;
|
|
29499
|
-
}
|
|
29500
|
-
return base;
|
|
29501
|
-
}
|
|
29502
|
-
|
|
29503
|
-
/**
|
|
29504
|
-
* Converts a digit/integer into a basic code point.
|
|
29505
|
-
* @see `basicToDigit()`
|
|
29506
|
-
* @private
|
|
29507
|
-
* @param {Number} digit The numeric value of a basic code point.
|
|
29508
|
-
* @returns {Number} The basic code point whose value (when used for
|
|
29509
|
-
* representing integers) is `digit`, which needs to be in the range
|
|
29510
|
-
* `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
|
|
29511
|
-
* used; else, the lowercase form is used. The behavior is undefined
|
|
29512
|
-
* if `flag` is non-zero and `digit` has no uppercase form.
|
|
29513
|
-
*/
|
|
29514
|
-
function digitToBasic(digit, flag) {
|
|
29515
|
-
// 0..25 map to ASCII a..z or A..Z
|
|
29516
|
-
// 26..35 map to ASCII 0..9
|
|
29517
|
-
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
29518
|
-
}
|
|
29519
|
-
|
|
29520
|
-
/**
|
|
29521
|
-
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
29522
|
-
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
29523
|
-
* @private
|
|
29524
|
-
*/
|
|
29525
|
-
function adapt(delta, numPoints, firstTime) {
|
|
29526
|
-
var k = 0;
|
|
29527
|
-
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
29528
|
-
delta += floor(delta / numPoints);
|
|
29529
|
-
for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
|
|
29530
|
-
delta = floor(delta / baseMinusTMin);
|
|
29531
|
-
}
|
|
29532
|
-
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
29533
|
-
}
|
|
29534
|
-
|
|
29535
|
-
/**
|
|
29536
|
-
* Converts a Punycode string of ASCII-only symbols to a string of Unicode
|
|
29537
|
-
* symbols.
|
|
29538
|
-
* @memberOf punycode
|
|
29539
|
-
* @param {String} input The Punycode string of ASCII-only symbols.
|
|
29540
|
-
* @returns {String} The resulting string of Unicode symbols.
|
|
29541
|
-
*/
|
|
29542
|
-
function decode(input) {
|
|
29543
|
-
// Don't use UCS-2
|
|
29544
|
-
var output = [],
|
|
29545
|
-
inputLength = input.length,
|
|
29546
|
-
out,
|
|
29547
|
-
i = 0,
|
|
29548
|
-
n = initialN,
|
|
29549
|
-
bias = initialBias,
|
|
29550
|
-
basic,
|
|
29551
|
-
j,
|
|
29552
|
-
index,
|
|
29553
|
-
oldi,
|
|
29554
|
-
w,
|
|
29555
|
-
k,
|
|
29556
|
-
digit,
|
|
29557
|
-
t,
|
|
29558
|
-
/** Cached calculation results */
|
|
29559
|
-
baseMinusT;
|
|
29560
|
-
|
|
29561
|
-
// Handle the basic code points: let `basic` be the number of input code
|
|
29562
|
-
// points before the last delimiter, or `0` if there is none, then copy
|
|
29563
|
-
// the first basic code points to the output.
|
|
29564
|
-
|
|
29565
|
-
basic = input.lastIndexOf(delimiter);
|
|
29566
|
-
if (basic < 0) {
|
|
29567
|
-
basic = 0;
|
|
29568
|
-
}
|
|
29569
|
-
|
|
29570
|
-
for (j = 0; j < basic; ++j) {
|
|
29571
|
-
// if it's not a basic code point
|
|
29572
|
-
if (input.charCodeAt(j) >= 0x80) {
|
|
29573
|
-
error('not-basic');
|
|
29574
|
-
}
|
|
29575
|
-
output.push(input.charCodeAt(j));
|
|
29576
|
-
}
|
|
29577
|
-
|
|
29578
|
-
// Main decoding loop: start just after the last delimiter if any basic code
|
|
29579
|
-
// points were copied; start at the beginning otherwise.
|
|
29580
|
-
|
|
29581
|
-
for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
|
|
29582
|
-
|
|
29583
|
-
// `index` is the index of the next character to be consumed.
|
|
29584
|
-
// Decode a generalized variable-length integer into `delta`,
|
|
29585
|
-
// which gets added to `i`. The overflow checking is easier
|
|
29586
|
-
// if we increase `i` as we go, then subtract off its starting
|
|
29587
|
-
// value at the end to obtain `delta`.
|
|
29588
|
-
for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
|
|
29589
|
-
|
|
29590
|
-
if (index >= inputLength) {
|
|
29591
|
-
error('invalid-input');
|
|
29592
|
-
}
|
|
29593
|
-
|
|
29594
|
-
digit = basicToDigit(input.charCodeAt(index++));
|
|
29595
|
-
|
|
29596
|
-
if (digit >= base || digit > floor((maxInt - i) / w)) {
|
|
29597
|
-
error('overflow');
|
|
29598
|
-
}
|
|
29599
|
-
|
|
29600
|
-
i += digit * w;
|
|
29601
|
-
t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
29602
|
-
|
|
29603
|
-
if (digit < t) {
|
|
29604
|
-
break;
|
|
29605
|
-
}
|
|
29606
|
-
|
|
29607
|
-
baseMinusT = base - t;
|
|
29608
|
-
if (w > floor(maxInt / baseMinusT)) {
|
|
29609
|
-
error('overflow');
|
|
29610
|
-
}
|
|
29611
|
-
|
|
29612
|
-
w *= baseMinusT;
|
|
29613
|
-
|
|
29614
|
-
}
|
|
29615
|
-
|
|
29616
|
-
out = output.length + 1;
|
|
29617
|
-
bias = adapt(i - oldi, out, oldi == 0);
|
|
29618
|
-
|
|
29619
|
-
// `i` was supposed to wrap around from `out` to `0`,
|
|
29620
|
-
// incrementing `n` each time, so we'll fix that now:
|
|
29621
|
-
if (floor(i / out) > maxInt - n) {
|
|
29622
|
-
error('overflow');
|
|
29623
|
-
}
|
|
29624
|
-
|
|
29625
|
-
n += floor(i / out);
|
|
29626
|
-
i %= out;
|
|
29627
|
-
|
|
29628
|
-
// Insert `n` at position `i` of the output
|
|
29629
|
-
output.splice(i++, 0, n);
|
|
29630
|
-
|
|
29631
|
-
}
|
|
29632
|
-
|
|
29633
|
-
return ucs2encode(output);
|
|
29634
|
-
}
|
|
29635
|
-
|
|
29636
|
-
/**
|
|
29637
|
-
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
29638
|
-
* Punycode string of ASCII-only symbols.
|
|
29639
|
-
* @memberOf punycode
|
|
29640
|
-
* @param {String} input The string of Unicode symbols.
|
|
29641
|
-
* @returns {String} The resulting Punycode string of ASCII-only symbols.
|
|
29642
|
-
*/
|
|
29643
|
-
function encode(input) {
|
|
29644
|
-
var n,
|
|
29645
|
-
delta,
|
|
29646
|
-
handledCPCount,
|
|
29647
|
-
basicLength,
|
|
29648
|
-
bias,
|
|
29649
|
-
j,
|
|
29650
|
-
m,
|
|
29651
|
-
q,
|
|
29652
|
-
k,
|
|
29653
|
-
t,
|
|
29654
|
-
currentValue,
|
|
29655
|
-
output = [],
|
|
29656
|
-
/** `inputLength` will hold the number of code points in `input`. */
|
|
29657
|
-
inputLength,
|
|
29658
|
-
/** Cached calculation results */
|
|
29659
|
-
handledCPCountPlusOne,
|
|
29660
|
-
baseMinusT,
|
|
29661
|
-
qMinusT;
|
|
29662
|
-
|
|
29663
|
-
// Convert the input in UCS-2 to Unicode
|
|
29664
|
-
input = ucs2decode(input);
|
|
29665
|
-
|
|
29666
|
-
// Cache the length
|
|
29667
|
-
inputLength = input.length;
|
|
29668
|
-
|
|
29669
|
-
// Initialize the state
|
|
29670
|
-
n = initialN;
|
|
29671
|
-
delta = 0;
|
|
29672
|
-
bias = initialBias;
|
|
29673
|
-
|
|
29674
|
-
// Handle the basic code points
|
|
29675
|
-
for (j = 0; j < inputLength; ++j) {
|
|
29676
|
-
currentValue = input[j];
|
|
29677
|
-
if (currentValue < 0x80) {
|
|
29678
|
-
output.push(stringFromCharCode(currentValue));
|
|
29679
|
-
}
|
|
29680
|
-
}
|
|
29681
|
-
|
|
29682
|
-
handledCPCount = basicLength = output.length;
|
|
29683
|
-
|
|
29684
|
-
// `handledCPCount` is the number of code points that have been handled;
|
|
29685
|
-
// `basicLength` is the number of basic code points.
|
|
29686
|
-
|
|
29687
|
-
// Finish the basic string - if it is not empty - with a delimiter
|
|
29688
|
-
if (basicLength) {
|
|
29689
|
-
output.push(delimiter);
|
|
29690
|
-
}
|
|
29691
|
-
|
|
29692
|
-
// Main encoding loop:
|
|
29693
|
-
while (handledCPCount < inputLength) {
|
|
29694
|
-
|
|
29695
|
-
// All non-basic code points < n have been handled already. Find the next
|
|
29696
|
-
// larger one:
|
|
29697
|
-
for (m = maxInt, j = 0; j < inputLength; ++j) {
|
|
29698
|
-
currentValue = input[j];
|
|
29699
|
-
if (currentValue >= n && currentValue < m) {
|
|
29700
|
-
m = currentValue;
|
|
29701
|
-
}
|
|
29702
|
-
}
|
|
29703
|
-
|
|
29704
|
-
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
|
|
29705
|
-
// but guard against overflow
|
|
29706
|
-
handledCPCountPlusOne = handledCPCount + 1;
|
|
29707
|
-
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
29708
|
-
error('overflow');
|
|
29709
|
-
}
|
|
29710
|
-
|
|
29711
|
-
delta += (m - n) * handledCPCountPlusOne;
|
|
29712
|
-
n = m;
|
|
29713
|
-
|
|
29714
|
-
for (j = 0; j < inputLength; ++j) {
|
|
29715
|
-
currentValue = input[j];
|
|
29716
|
-
|
|
29717
|
-
if (currentValue < n && ++delta > maxInt) {
|
|
29718
|
-
error('overflow');
|
|
29719
|
-
}
|
|
29720
|
-
|
|
29721
|
-
if (currentValue == n) {
|
|
29722
|
-
// Represent delta as a generalized variable-length integer
|
|
29723
|
-
for (q = delta, k = base; /* no condition */; k += base) {
|
|
29724
|
-
t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
29725
|
-
if (q < t) {
|
|
29726
|
-
break;
|
|
29727
|
-
}
|
|
29728
|
-
qMinusT = q - t;
|
|
29729
|
-
baseMinusT = base - t;
|
|
29730
|
-
output.push(
|
|
29731
|
-
stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
|
|
29732
|
-
);
|
|
29733
|
-
q = floor(qMinusT / baseMinusT);
|
|
29734
|
-
}
|
|
29735
|
-
|
|
29736
|
-
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
29737
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
29738
|
-
delta = 0;
|
|
29739
|
-
++handledCPCount;
|
|
29740
|
-
}
|
|
29741
|
-
}
|
|
29742
|
-
|
|
29743
|
-
++delta;
|
|
29744
|
-
++n;
|
|
29745
|
-
|
|
29746
|
-
}
|
|
29747
|
-
return output.join('');
|
|
29748
|
-
}
|
|
29749
|
-
|
|
29750
|
-
/**
|
|
29751
|
-
* Converts a Punycode string representing a domain name or an email address
|
|
29752
|
-
* to Unicode. Only the Punycoded parts of the input will be converted, i.e.
|
|
29753
|
-
* it doesn't matter if you call it on a string that has already been
|
|
29754
|
-
* converted to Unicode.
|
|
29755
|
-
* @memberOf punycode
|
|
29756
|
-
* @param {String} input The Punycoded domain name or email address to
|
|
29757
|
-
* convert to Unicode.
|
|
29758
|
-
* @returns {String} The Unicode representation of the given Punycode
|
|
29759
|
-
* string.
|
|
29760
|
-
*/
|
|
29761
|
-
function toUnicode(input) {
|
|
29762
|
-
return mapDomain(input, function(string) {
|
|
29763
|
-
return regexPunycode.test(string)
|
|
29764
|
-
? decode(string.slice(4).toLowerCase())
|
|
29765
|
-
: string;
|
|
29766
|
-
});
|
|
29767
|
-
}
|
|
29768
|
-
|
|
29769
|
-
/**
|
|
29770
|
-
* Converts a Unicode string representing a domain name or an email address to
|
|
29771
|
-
* Punycode. Only the non-ASCII parts of the domain name will be converted,
|
|
29772
|
-
* i.e. it doesn't matter if you call it with a domain that's already in
|
|
29773
|
-
* ASCII.
|
|
29774
|
-
* @memberOf punycode
|
|
29775
|
-
* @param {String} input The domain name or email address to convert, as a
|
|
29776
|
-
* Unicode string.
|
|
29777
|
-
* @returns {String} The Punycode representation of the given domain name or
|
|
29778
|
-
* email address.
|
|
29779
|
-
*/
|
|
29780
|
-
function toASCII(input) {
|
|
29781
|
-
return mapDomain(input, function(string) {
|
|
29782
|
-
return regexNonASCII.test(string)
|
|
29783
|
-
? 'xn--' + encode(string)
|
|
29784
|
-
: string;
|
|
29785
|
-
});
|
|
29786
|
-
}
|
|
29787
|
-
|
|
29788
|
-
/*--------------------------------------------------------------------------*/
|
|
29789
|
-
|
|
29790
|
-
/** Define the public API */
|
|
29791
|
-
punycode = {
|
|
29792
|
-
/**
|
|
29793
|
-
* A string representing the current Punycode.js version number.
|
|
29794
|
-
* @memberOf punycode
|
|
29795
|
-
* @type String
|
|
29796
|
-
*/
|
|
29797
|
-
'version': '1.4.1',
|
|
29798
|
-
/**
|
|
29799
|
-
* An object of methods to convert from JavaScript's internal character
|
|
29800
|
-
* representation (UCS-2) to Unicode code points, and back.
|
|
29801
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
29802
|
-
* @memberOf punycode
|
|
29803
|
-
* @type Object
|
|
29804
|
-
*/
|
|
29805
|
-
'ucs2': {
|
|
29806
|
-
'decode': ucs2decode,
|
|
29807
|
-
'encode': ucs2encode
|
|
29808
|
-
},
|
|
29809
|
-
'decode': decode,
|
|
29810
|
-
'encode': encode,
|
|
29811
|
-
'toASCII': toASCII,
|
|
29812
|
-
'toUnicode': toUnicode
|
|
29813
|
-
};
|
|
29814
|
-
|
|
29815
|
-
/** Expose `punycode` */
|
|
29816
|
-
// Some AMD build optimizers, like r.js, check for specific condition patterns
|
|
29817
|
-
// like the following:
|
|
29818
|
-
if (
|
|
29819
|
-
true
|
|
29820
|
-
) {
|
|
29821
|
-
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
|
|
29822
|
-
return punycode;
|
|
29823
|
-
}).call(exports, __webpack_require__, exports, module),
|
|
29824
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
29825
|
-
} else {}
|
|
29826
|
-
|
|
29827
|
-
}(this));
|
|
29828
|
-
|
|
29829
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack@4.42.0/node_modules/webpack/buildin/module.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/module.js")(module), __webpack_require__(/*! ./../../../webpack@4.42.0/node_modules/webpack/buildin/global.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/global.js")))
|
|
29830
|
-
|
|
29831
28798
|
/***/ }),
|
|
29832
28799
|
|
|
29833
28800
|
/***/ "../../common/temp/node_modules/.pnpm/qs@6.10.3/node_modules/qs/lib/formats.js":
|
|
@@ -30756,231 +29723,22 @@ module.exports = {
|
|
|
30756
29723
|
|
|
30757
29724
|
/***/ }),
|
|
30758
29725
|
|
|
30759
|
-
/***/ "../../common/temp/node_modules/.pnpm/
|
|
30760
|
-
|
|
30761
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/
|
|
30762
|
-
|
|
30763
|
-
/*! no static exports found */
|
|
30764
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30765
|
-
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
|
|
30772
|
-
|
|
30773
|
-
|
|
30774
|
-
|
|
30775
|
-
// following conditions:
|
|
30776
|
-
//
|
|
30777
|
-
// The above copyright notice and this permission notice shall be included
|
|
30778
|
-
// in all copies or substantial portions of the Software.
|
|
30779
|
-
//
|
|
30780
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
30781
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
30782
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
30783
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
30784
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
30785
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
30786
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30787
|
-
|
|
30788
|
-
|
|
30789
|
-
|
|
30790
|
-
// If obj.hasOwnProperty has been overridden, then calling
|
|
30791
|
-
// obj.hasOwnProperty(prop) will break.
|
|
30792
|
-
// See: https://github.com/joyent/node/issues/1707
|
|
30793
|
-
function hasOwnProperty(obj, prop) {
|
|
30794
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
30795
|
-
}
|
|
30796
|
-
|
|
30797
|
-
module.exports = function(qs, sep, eq, options) {
|
|
30798
|
-
sep = sep || '&';
|
|
30799
|
-
eq = eq || '=';
|
|
30800
|
-
var obj = {};
|
|
30801
|
-
|
|
30802
|
-
if (typeof qs !== 'string' || qs.length === 0) {
|
|
30803
|
-
return obj;
|
|
30804
|
-
}
|
|
30805
|
-
|
|
30806
|
-
var regexp = /\+/g;
|
|
30807
|
-
qs = qs.split(sep);
|
|
30808
|
-
|
|
30809
|
-
var maxKeys = 1000;
|
|
30810
|
-
if (options && typeof options.maxKeys === 'number') {
|
|
30811
|
-
maxKeys = options.maxKeys;
|
|
30812
|
-
}
|
|
30813
|
-
|
|
30814
|
-
var len = qs.length;
|
|
30815
|
-
// maxKeys <= 0 means that we should not limit keys count
|
|
30816
|
-
if (maxKeys > 0 && len > maxKeys) {
|
|
30817
|
-
len = maxKeys;
|
|
30818
|
-
}
|
|
30819
|
-
|
|
30820
|
-
for (var i = 0; i < len; ++i) {
|
|
30821
|
-
var x = qs[i].replace(regexp, '%20'),
|
|
30822
|
-
idx = x.indexOf(eq),
|
|
30823
|
-
kstr, vstr, k, v;
|
|
30824
|
-
|
|
30825
|
-
if (idx >= 0) {
|
|
30826
|
-
kstr = x.substr(0, idx);
|
|
30827
|
-
vstr = x.substr(idx + 1);
|
|
30828
|
-
} else {
|
|
30829
|
-
kstr = x;
|
|
30830
|
-
vstr = '';
|
|
30831
|
-
}
|
|
30832
|
-
|
|
30833
|
-
k = decodeURIComponent(kstr);
|
|
30834
|
-
v = decodeURIComponent(vstr);
|
|
30835
|
-
|
|
30836
|
-
if (!hasOwnProperty(obj, k)) {
|
|
30837
|
-
obj[k] = v;
|
|
30838
|
-
} else if (isArray(obj[k])) {
|
|
30839
|
-
obj[k].push(v);
|
|
30840
|
-
} else {
|
|
30841
|
-
obj[k] = [obj[k], v];
|
|
30842
|
-
}
|
|
30843
|
-
}
|
|
30844
|
-
|
|
30845
|
-
return obj;
|
|
30846
|
-
};
|
|
30847
|
-
|
|
30848
|
-
var isArray = Array.isArray || function (xs) {
|
|
30849
|
-
return Object.prototype.toString.call(xs) === '[object Array]';
|
|
30850
|
-
};
|
|
30851
|
-
|
|
30852
|
-
|
|
30853
|
-
/***/ }),
|
|
30854
|
-
|
|
30855
|
-
/***/ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/encode.js":
|
|
30856
|
-
/*!*****************************************************************************************************************!*\
|
|
30857
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/encode.js ***!
|
|
30858
|
-
\*****************************************************************************************************************/
|
|
30859
|
-
/*! no static exports found */
|
|
30860
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30861
|
-
|
|
30862
|
-
"use strict";
|
|
30863
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
30864
|
-
//
|
|
30865
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
30866
|
-
// copy of this software and associated documentation files (the
|
|
30867
|
-
// "Software"), to deal in the Software without restriction, including
|
|
30868
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
30869
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
30870
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
30871
|
-
// following conditions:
|
|
30872
|
-
//
|
|
30873
|
-
// The above copyright notice and this permission notice shall be included
|
|
30874
|
-
// in all copies or substantial portions of the Software.
|
|
30875
|
-
//
|
|
30876
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
30877
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
30878
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
30879
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
30880
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
30881
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
30882
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30883
|
-
|
|
30884
|
-
|
|
30885
|
-
|
|
30886
|
-
var stringifyPrimitive = function(v) {
|
|
30887
|
-
switch (typeof v) {
|
|
30888
|
-
case 'string':
|
|
30889
|
-
return v;
|
|
30890
|
-
|
|
30891
|
-
case 'boolean':
|
|
30892
|
-
return v ? 'true' : 'false';
|
|
30893
|
-
|
|
30894
|
-
case 'number':
|
|
30895
|
-
return isFinite(v) ? v : '';
|
|
30896
|
-
|
|
30897
|
-
default:
|
|
30898
|
-
return '';
|
|
30899
|
-
}
|
|
30900
|
-
};
|
|
30901
|
-
|
|
30902
|
-
module.exports = function(obj, sep, eq, name) {
|
|
30903
|
-
sep = sep || '&';
|
|
30904
|
-
eq = eq || '=';
|
|
30905
|
-
if (obj === null) {
|
|
30906
|
-
obj = undefined;
|
|
30907
|
-
}
|
|
30908
|
-
|
|
30909
|
-
if (typeof obj === 'object') {
|
|
30910
|
-
return map(objectKeys(obj), function(k) {
|
|
30911
|
-
var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
|
|
30912
|
-
if (isArray(obj[k])) {
|
|
30913
|
-
return map(obj[k], function(v) {
|
|
30914
|
-
return ks + encodeURIComponent(stringifyPrimitive(v));
|
|
30915
|
-
}).join(sep);
|
|
30916
|
-
} else {
|
|
30917
|
-
return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
|
|
30918
|
-
}
|
|
30919
|
-
}).join(sep);
|
|
30920
|
-
|
|
30921
|
-
}
|
|
30922
|
-
|
|
30923
|
-
if (!name) return '';
|
|
30924
|
-
return encodeURIComponent(stringifyPrimitive(name)) + eq +
|
|
30925
|
-
encodeURIComponent(stringifyPrimitive(obj));
|
|
30926
|
-
};
|
|
30927
|
-
|
|
30928
|
-
var isArray = Array.isArray || function (xs) {
|
|
30929
|
-
return Object.prototype.toString.call(xs) === '[object Array]';
|
|
30930
|
-
};
|
|
30931
|
-
|
|
30932
|
-
function map (xs, f) {
|
|
30933
|
-
if (xs.map) return xs.map(f);
|
|
30934
|
-
var res = [];
|
|
30935
|
-
for (var i = 0; i < xs.length; i++) {
|
|
30936
|
-
res.push(f(xs[i], i));
|
|
30937
|
-
}
|
|
30938
|
-
return res;
|
|
30939
|
-
}
|
|
30940
|
-
|
|
30941
|
-
var objectKeys = Object.keys || function (obj) {
|
|
30942
|
-
var res = [];
|
|
30943
|
-
for (var key in obj) {
|
|
30944
|
-
if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
|
|
30945
|
-
}
|
|
30946
|
-
return res;
|
|
30947
|
-
};
|
|
30948
|
-
|
|
30949
|
-
|
|
30950
|
-
/***/ }),
|
|
30951
|
-
|
|
30952
|
-
/***/ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/index.js":
|
|
30953
|
-
/*!****************************************************************************************************************!*\
|
|
30954
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/index.js ***!
|
|
30955
|
-
\****************************************************************************************************************/
|
|
30956
|
-
/*! no static exports found */
|
|
30957
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30958
|
-
|
|
30959
|
-
"use strict";
|
|
30960
|
-
|
|
30961
|
-
|
|
30962
|
-
exports.decode = exports.parse = __webpack_require__(/*! ./decode */ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/decode.js");
|
|
30963
|
-
exports.encode = exports.stringify = __webpack_require__(/*! ./encode */ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/encode.js");
|
|
30964
|
-
|
|
30965
|
-
|
|
30966
|
-
/***/ }),
|
|
30967
|
-
|
|
30968
|
-
/***/ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex-browser.js":
|
|
30969
|
-
/*!*************************************************************************************************************************!*\
|
|
30970
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex-browser.js ***!
|
|
30971
|
-
\*************************************************************************************************************************/
|
|
30972
|
-
/*! no static exports found */
|
|
30973
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30974
|
-
|
|
30975
|
-
module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js");
|
|
30976
|
-
|
|
30977
|
-
|
|
30978
|
-
/***/ }),
|
|
30979
|
-
|
|
30980
|
-
/***/ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js":
|
|
30981
|
-
/*!*****************************************************************************************************************************!*\
|
|
30982
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js ***!
|
|
30983
|
-
\*****************************************************************************************************************************/
|
|
29726
|
+
/***/ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex-browser.js":
|
|
29727
|
+
/*!*************************************************************************************************************************!*\
|
|
29728
|
+
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex-browser.js ***!
|
|
29729
|
+
\*************************************************************************************************************************/
|
|
29730
|
+
/*! no static exports found */
|
|
29731
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29732
|
+
|
|
29733
|
+
module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js");
|
|
29734
|
+
|
|
29735
|
+
|
|
29736
|
+
/***/ }),
|
|
29737
|
+
|
|
29738
|
+
/***/ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js":
|
|
29739
|
+
/*!*****************************************************************************************************************************!*\
|
|
29740
|
+
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js ***!
|
|
29741
|
+
\*****************************************************************************************************************************/
|
|
30984
29742
|
/*! no static exports found */
|
|
30985
29743
|
/***/ (function(module, exports, __webpack_require__) {
|
|
30986
29744
|
|
|
@@ -37063,762 +35821,6 @@ Stream.prototype.pipe = function(dest, options) {
|
|
|
37063
35821
|
};
|
|
37064
35822
|
|
|
37065
35823
|
|
|
37066
|
-
/***/ }),
|
|
37067
|
-
|
|
37068
|
-
/***/ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/index.js":
|
|
37069
|
-
/*!********************************************************************************************************!*\
|
|
37070
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/index.js ***!
|
|
37071
|
-
\********************************************************************************************************/
|
|
37072
|
-
/*! no static exports found */
|
|
37073
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
37074
|
-
|
|
37075
|
-
/* WEBPACK VAR INJECTION */(function(global) {var ClientRequest = __webpack_require__(/*! ./lib/request */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/request.js")
|
|
37076
|
-
var response = __webpack_require__(/*! ./lib/response */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/response.js")
|
|
37077
|
-
var extend = __webpack_require__(/*! xtend */ "../../common/temp/node_modules/.pnpm/xtend@4.0.2/node_modules/xtend/immutable.js")
|
|
37078
|
-
var statusCodes = __webpack_require__(/*! builtin-status-codes */ "../../common/temp/node_modules/.pnpm/builtin-status-codes@3.0.0/node_modules/builtin-status-codes/browser.js")
|
|
37079
|
-
var url = __webpack_require__(/*! url */ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/url.js")
|
|
37080
|
-
|
|
37081
|
-
var http = exports
|
|
37082
|
-
|
|
37083
|
-
http.request = function (opts, cb) {
|
|
37084
|
-
if (typeof opts === 'string')
|
|
37085
|
-
opts = url.parse(opts)
|
|
37086
|
-
else
|
|
37087
|
-
opts = extend(opts)
|
|
37088
|
-
|
|
37089
|
-
// Normally, the page is loaded from http or https, so not specifying a protocol
|
|
37090
|
-
// will result in a (valid) protocol-relative url. However, this won't work if
|
|
37091
|
-
// the protocol is something else, like 'file:'
|
|
37092
|
-
var defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''
|
|
37093
|
-
|
|
37094
|
-
var protocol = opts.protocol || defaultProtocol
|
|
37095
|
-
var host = opts.hostname || opts.host
|
|
37096
|
-
var port = opts.port
|
|
37097
|
-
var path = opts.path || '/'
|
|
37098
|
-
|
|
37099
|
-
// Necessary for IPv6 addresses
|
|
37100
|
-
if (host && host.indexOf(':') !== -1)
|
|
37101
|
-
host = '[' + host + ']'
|
|
37102
|
-
|
|
37103
|
-
// This may be a relative url. The browser should always be able to interpret it correctly.
|
|
37104
|
-
opts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path
|
|
37105
|
-
opts.method = (opts.method || 'GET').toUpperCase()
|
|
37106
|
-
opts.headers = opts.headers || {}
|
|
37107
|
-
|
|
37108
|
-
// Also valid opts.auth, opts.mode
|
|
37109
|
-
|
|
37110
|
-
var req = new ClientRequest(opts)
|
|
37111
|
-
if (cb)
|
|
37112
|
-
req.on('response', cb)
|
|
37113
|
-
return req
|
|
37114
|
-
}
|
|
37115
|
-
|
|
37116
|
-
http.get = function get (opts, cb) {
|
|
37117
|
-
var req = http.request(opts, cb)
|
|
37118
|
-
req.end()
|
|
37119
|
-
return req
|
|
37120
|
-
}
|
|
37121
|
-
|
|
37122
|
-
http.ClientRequest = ClientRequest
|
|
37123
|
-
http.IncomingMessage = response.IncomingMessage
|
|
37124
|
-
|
|
37125
|
-
http.Agent = function () {}
|
|
37126
|
-
http.Agent.defaultMaxSockets = 4
|
|
37127
|
-
|
|
37128
|
-
http.globalAgent = new http.Agent()
|
|
37129
|
-
|
|
37130
|
-
http.STATUS_CODES = statusCodes
|
|
37131
|
-
|
|
37132
|
-
http.METHODS = [
|
|
37133
|
-
'CHECKOUT',
|
|
37134
|
-
'CONNECT',
|
|
37135
|
-
'COPY',
|
|
37136
|
-
'DELETE',
|
|
37137
|
-
'GET',
|
|
37138
|
-
'HEAD',
|
|
37139
|
-
'LOCK',
|
|
37140
|
-
'M-SEARCH',
|
|
37141
|
-
'MERGE',
|
|
37142
|
-
'MKACTIVITY',
|
|
37143
|
-
'MKCOL',
|
|
37144
|
-
'MOVE',
|
|
37145
|
-
'NOTIFY',
|
|
37146
|
-
'OPTIONS',
|
|
37147
|
-
'PATCH',
|
|
37148
|
-
'POST',
|
|
37149
|
-
'PROPFIND',
|
|
37150
|
-
'PROPPATCH',
|
|
37151
|
-
'PURGE',
|
|
37152
|
-
'PUT',
|
|
37153
|
-
'REPORT',
|
|
37154
|
-
'SEARCH',
|
|
37155
|
-
'SUBSCRIBE',
|
|
37156
|
-
'TRACE',
|
|
37157
|
-
'UNLOCK',
|
|
37158
|
-
'UNSUBSCRIBE'
|
|
37159
|
-
]
|
|
37160
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack@4.42.0/node_modules/webpack/buildin/global.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/global.js")))
|
|
37161
|
-
|
|
37162
|
-
/***/ }),
|
|
37163
|
-
|
|
37164
|
-
/***/ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/capability.js":
|
|
37165
|
-
/*!*****************************************************************************************************************!*\
|
|
37166
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/capability.js ***!
|
|
37167
|
-
\*****************************************************************************************************************/
|
|
37168
|
-
/*! no static exports found */
|
|
37169
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
37170
|
-
|
|
37171
|
-
/* WEBPACK VAR INJECTION */(function(global) {exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
|
|
37172
|
-
|
|
37173
|
-
exports.writableStream = isFunction(global.WritableStream)
|
|
37174
|
-
|
|
37175
|
-
exports.abortController = isFunction(global.AbortController)
|
|
37176
|
-
|
|
37177
|
-
exports.blobConstructor = false
|
|
37178
|
-
try {
|
|
37179
|
-
new Blob([new ArrayBuffer(1)])
|
|
37180
|
-
exports.blobConstructor = true
|
|
37181
|
-
} catch (e) {}
|
|
37182
|
-
|
|
37183
|
-
// The xhr request to example.com may violate some restrictive CSP configurations,
|
|
37184
|
-
// so if we're running in a browser that supports `fetch`, avoid calling getXHR()
|
|
37185
|
-
// and assume support for certain features below.
|
|
37186
|
-
var xhr
|
|
37187
|
-
function getXHR () {
|
|
37188
|
-
// Cache the xhr value
|
|
37189
|
-
if (xhr !== undefined) return xhr
|
|
37190
|
-
|
|
37191
|
-
if (global.XMLHttpRequest) {
|
|
37192
|
-
xhr = new global.XMLHttpRequest()
|
|
37193
|
-
// If XDomainRequest is available (ie only, where xhr might not work
|
|
37194
|
-
// cross domain), use the page location. Otherwise use example.com
|
|
37195
|
-
// Note: this doesn't actually make an http request.
|
|
37196
|
-
try {
|
|
37197
|
-
xhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')
|
|
37198
|
-
} catch(e) {
|
|
37199
|
-
xhr = null
|
|
37200
|
-
}
|
|
37201
|
-
} else {
|
|
37202
|
-
// Service workers don't have XHR
|
|
37203
|
-
xhr = null
|
|
37204
|
-
}
|
|
37205
|
-
return xhr
|
|
37206
|
-
}
|
|
37207
|
-
|
|
37208
|
-
function checkTypeSupport (type) {
|
|
37209
|
-
var xhr = getXHR()
|
|
37210
|
-
if (!xhr) return false
|
|
37211
|
-
try {
|
|
37212
|
-
xhr.responseType = type
|
|
37213
|
-
return xhr.responseType === type
|
|
37214
|
-
} catch (e) {}
|
|
37215
|
-
return false
|
|
37216
|
-
}
|
|
37217
|
-
|
|
37218
|
-
// For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.
|
|
37219
|
-
// Safari 7.1 appears to have fixed this bug.
|
|
37220
|
-
var haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'
|
|
37221
|
-
var haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)
|
|
37222
|
-
|
|
37223
|
-
// If fetch is supported, then arraybuffer will be supported too. Skip calling
|
|
37224
|
-
// checkTypeSupport(), since that calls getXHR().
|
|
37225
|
-
exports.arraybuffer = exports.fetch || (haveArrayBuffer && checkTypeSupport('arraybuffer'))
|
|
37226
|
-
|
|
37227
|
-
// These next two tests unavoidably show warnings in Chrome. Since fetch will always
|
|
37228
|
-
// be used if it's available, just return false for these to avoid the warnings.
|
|
37229
|
-
exports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')
|
|
37230
|
-
exports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&
|
|
37231
|
-
checkTypeSupport('moz-chunked-arraybuffer')
|
|
37232
|
-
|
|
37233
|
-
// If fetch is supported, then overrideMimeType will be supported too. Skip calling
|
|
37234
|
-
// getXHR().
|
|
37235
|
-
exports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)
|
|
37236
|
-
|
|
37237
|
-
exports.vbArray = isFunction(global.VBArray)
|
|
37238
|
-
|
|
37239
|
-
function isFunction (value) {
|
|
37240
|
-
return typeof value === 'function'
|
|
37241
|
-
}
|
|
37242
|
-
|
|
37243
|
-
xhr = null // Help gc
|
|
37244
|
-
|
|
37245
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../webpack@4.42.0/node_modules/webpack/buildin/global.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/global.js")))
|
|
37246
|
-
|
|
37247
|
-
/***/ }),
|
|
37248
|
-
|
|
37249
|
-
/***/ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/request.js":
|
|
37250
|
-
/*!**************************************************************************************************************!*\
|
|
37251
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/request.js ***!
|
|
37252
|
-
\**************************************************************************************************************/
|
|
37253
|
-
/*! no static exports found */
|
|
37254
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
37255
|
-
|
|
37256
|
-
/* WEBPACK VAR INJECTION */(function(Buffer, global) {var capability = __webpack_require__(/*! ./capability */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/capability.js")
|
|
37257
|
-
var inherits = __webpack_require__(/*! inherits */ "../../common/temp/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js")
|
|
37258
|
-
var response = __webpack_require__(/*! ./response */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/response.js")
|
|
37259
|
-
var stream = __webpack_require__(/*! readable-stream */ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/readable-browser.js")
|
|
37260
|
-
var toArrayBuffer = __webpack_require__(/*! to-arraybuffer */ "../../common/temp/node_modules/.pnpm/to-arraybuffer@1.0.1/node_modules/to-arraybuffer/index.js")
|
|
37261
|
-
|
|
37262
|
-
var IncomingMessage = response.IncomingMessage
|
|
37263
|
-
var rStates = response.readyStates
|
|
37264
|
-
|
|
37265
|
-
function decideMode (preferBinary, useFetch) {
|
|
37266
|
-
if (capability.fetch && useFetch) {
|
|
37267
|
-
return 'fetch'
|
|
37268
|
-
} else if (capability.mozchunkedarraybuffer) {
|
|
37269
|
-
return 'moz-chunked-arraybuffer'
|
|
37270
|
-
} else if (capability.msstream) {
|
|
37271
|
-
return 'ms-stream'
|
|
37272
|
-
} else if (capability.arraybuffer && preferBinary) {
|
|
37273
|
-
return 'arraybuffer'
|
|
37274
|
-
} else if (capability.vbArray && preferBinary) {
|
|
37275
|
-
return 'text:vbarray'
|
|
37276
|
-
} else {
|
|
37277
|
-
return 'text'
|
|
37278
|
-
}
|
|
37279
|
-
}
|
|
37280
|
-
|
|
37281
|
-
var ClientRequest = module.exports = function (opts) {
|
|
37282
|
-
var self = this
|
|
37283
|
-
stream.Writable.call(self)
|
|
37284
|
-
|
|
37285
|
-
self._opts = opts
|
|
37286
|
-
self._body = []
|
|
37287
|
-
self._headers = {}
|
|
37288
|
-
if (opts.auth)
|
|
37289
|
-
self.setHeader('Authorization', 'Basic ' + new Buffer(opts.auth).toString('base64'))
|
|
37290
|
-
Object.keys(opts.headers).forEach(function (name) {
|
|
37291
|
-
self.setHeader(name, opts.headers[name])
|
|
37292
|
-
})
|
|
37293
|
-
|
|
37294
|
-
var preferBinary
|
|
37295
|
-
var useFetch = true
|
|
37296
|
-
if (opts.mode === 'disable-fetch' || ('requestTimeout' in opts && !capability.abortController)) {
|
|
37297
|
-
// If the use of XHR should be preferred. Not typically needed.
|
|
37298
|
-
useFetch = false
|
|
37299
|
-
preferBinary = true
|
|
37300
|
-
} else if (opts.mode === 'prefer-streaming') {
|
|
37301
|
-
// If streaming is a high priority but binary compatibility and
|
|
37302
|
-
// the accuracy of the 'content-type' header aren't
|
|
37303
|
-
preferBinary = false
|
|
37304
|
-
} else if (opts.mode === 'allow-wrong-content-type') {
|
|
37305
|
-
// If streaming is more important than preserving the 'content-type' header
|
|
37306
|
-
preferBinary = !capability.overrideMimeType
|
|
37307
|
-
} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {
|
|
37308
|
-
// Use binary if text streaming may corrupt data or the content-type header, or for speed
|
|
37309
|
-
preferBinary = true
|
|
37310
|
-
} else {
|
|
37311
|
-
throw new Error('Invalid value for opts.mode')
|
|
37312
|
-
}
|
|
37313
|
-
self._mode = decideMode(preferBinary, useFetch)
|
|
37314
|
-
self._fetchTimer = null
|
|
37315
|
-
|
|
37316
|
-
self.on('finish', function () {
|
|
37317
|
-
self._onFinish()
|
|
37318
|
-
})
|
|
37319
|
-
}
|
|
37320
|
-
|
|
37321
|
-
inherits(ClientRequest, stream.Writable)
|
|
37322
|
-
|
|
37323
|
-
ClientRequest.prototype.setHeader = function (name, value) {
|
|
37324
|
-
var self = this
|
|
37325
|
-
var lowerName = name.toLowerCase()
|
|
37326
|
-
// This check is not necessary, but it prevents warnings from browsers about setting unsafe
|
|
37327
|
-
// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but
|
|
37328
|
-
// http-browserify did it, so I will too.
|
|
37329
|
-
if (unsafeHeaders.indexOf(lowerName) !== -1)
|
|
37330
|
-
return
|
|
37331
|
-
|
|
37332
|
-
self._headers[lowerName] = {
|
|
37333
|
-
name: name,
|
|
37334
|
-
value: value
|
|
37335
|
-
}
|
|
37336
|
-
}
|
|
37337
|
-
|
|
37338
|
-
ClientRequest.prototype.getHeader = function (name) {
|
|
37339
|
-
var header = this._headers[name.toLowerCase()]
|
|
37340
|
-
if (header)
|
|
37341
|
-
return header.value
|
|
37342
|
-
return null
|
|
37343
|
-
}
|
|
37344
|
-
|
|
37345
|
-
ClientRequest.prototype.removeHeader = function (name) {
|
|
37346
|
-
var self = this
|
|
37347
|
-
delete self._headers[name.toLowerCase()]
|
|
37348
|
-
}
|
|
37349
|
-
|
|
37350
|
-
ClientRequest.prototype._onFinish = function () {
|
|
37351
|
-
var self = this
|
|
37352
|
-
|
|
37353
|
-
if (self._destroyed)
|
|
37354
|
-
return
|
|
37355
|
-
var opts = self._opts
|
|
37356
|
-
|
|
37357
|
-
var headersObj = self._headers
|
|
37358
|
-
var body = null
|
|
37359
|
-
if (opts.method !== 'GET' && opts.method !== 'HEAD') {
|
|
37360
|
-
if (capability.arraybuffer) {
|
|
37361
|
-
body = toArrayBuffer(Buffer.concat(self._body))
|
|
37362
|
-
} else if (capability.blobConstructor) {
|
|
37363
|
-
body = new global.Blob(self._body.map(function (buffer) {
|
|
37364
|
-
return toArrayBuffer(buffer)
|
|
37365
|
-
}), {
|
|
37366
|
-
type: (headersObj['content-type'] || {}).value || ''
|
|
37367
|
-
})
|
|
37368
|
-
} else {
|
|
37369
|
-
// get utf8 string
|
|
37370
|
-
body = Buffer.concat(self._body).toString()
|
|
37371
|
-
}
|
|
37372
|
-
}
|
|
37373
|
-
|
|
37374
|
-
// create flattened list of headers
|
|
37375
|
-
var headersList = []
|
|
37376
|
-
Object.keys(headersObj).forEach(function (keyName) {
|
|
37377
|
-
var name = headersObj[keyName].name
|
|
37378
|
-
var value = headersObj[keyName].value
|
|
37379
|
-
if (Array.isArray(value)) {
|
|
37380
|
-
value.forEach(function (v) {
|
|
37381
|
-
headersList.push([name, v])
|
|
37382
|
-
})
|
|
37383
|
-
} else {
|
|
37384
|
-
headersList.push([name, value])
|
|
37385
|
-
}
|
|
37386
|
-
})
|
|
37387
|
-
|
|
37388
|
-
if (self._mode === 'fetch') {
|
|
37389
|
-
var signal = null
|
|
37390
|
-
var fetchTimer = null
|
|
37391
|
-
if (capability.abortController) {
|
|
37392
|
-
var controller = new AbortController()
|
|
37393
|
-
signal = controller.signal
|
|
37394
|
-
self._fetchAbortController = controller
|
|
37395
|
-
|
|
37396
|
-
if ('requestTimeout' in opts && opts.requestTimeout !== 0) {
|
|
37397
|
-
self._fetchTimer = global.setTimeout(function () {
|
|
37398
|
-
self.emit('requestTimeout')
|
|
37399
|
-
if (self._fetchAbortController)
|
|
37400
|
-
self._fetchAbortController.abort()
|
|
37401
|
-
}, opts.requestTimeout)
|
|
37402
|
-
}
|
|
37403
|
-
}
|
|
37404
|
-
|
|
37405
|
-
global.fetch(self._opts.url, {
|
|
37406
|
-
method: self._opts.method,
|
|
37407
|
-
headers: headersList,
|
|
37408
|
-
body: body || undefined,
|
|
37409
|
-
mode: 'cors',
|
|
37410
|
-
credentials: opts.withCredentials ? 'include' : 'same-origin',
|
|
37411
|
-
signal: signal
|
|
37412
|
-
}).then(function (response) {
|
|
37413
|
-
self._fetchResponse = response
|
|
37414
|
-
self._connect()
|
|
37415
|
-
}, function (reason) {
|
|
37416
|
-
global.clearTimeout(self._fetchTimer)
|
|
37417
|
-
if (!self._destroyed)
|
|
37418
|
-
self.emit('error', reason)
|
|
37419
|
-
})
|
|
37420
|
-
} else {
|
|
37421
|
-
var xhr = self._xhr = new global.XMLHttpRequest()
|
|
37422
|
-
try {
|
|
37423
|
-
xhr.open(self._opts.method, self._opts.url, true)
|
|
37424
|
-
} catch (err) {
|
|
37425
|
-
process.nextTick(function () {
|
|
37426
|
-
self.emit('error', err)
|
|
37427
|
-
})
|
|
37428
|
-
return
|
|
37429
|
-
}
|
|
37430
|
-
|
|
37431
|
-
// Can't set responseType on really old browsers
|
|
37432
|
-
if ('responseType' in xhr)
|
|
37433
|
-
xhr.responseType = self._mode.split(':')[0]
|
|
37434
|
-
|
|
37435
|
-
if ('withCredentials' in xhr)
|
|
37436
|
-
xhr.withCredentials = !!opts.withCredentials
|
|
37437
|
-
|
|
37438
|
-
if (self._mode === 'text' && 'overrideMimeType' in xhr)
|
|
37439
|
-
xhr.overrideMimeType('text/plain; charset=x-user-defined')
|
|
37440
|
-
|
|
37441
|
-
if ('requestTimeout' in opts) {
|
|
37442
|
-
xhr.timeout = opts.requestTimeout
|
|
37443
|
-
xhr.ontimeout = function () {
|
|
37444
|
-
self.emit('requestTimeout')
|
|
37445
|
-
}
|
|
37446
|
-
}
|
|
37447
|
-
|
|
37448
|
-
headersList.forEach(function (header) {
|
|
37449
|
-
xhr.setRequestHeader(header[0], header[1])
|
|
37450
|
-
})
|
|
37451
|
-
|
|
37452
|
-
self._response = null
|
|
37453
|
-
xhr.onreadystatechange = function () {
|
|
37454
|
-
switch (xhr.readyState) {
|
|
37455
|
-
case rStates.LOADING:
|
|
37456
|
-
case rStates.DONE:
|
|
37457
|
-
self._onXHRProgress()
|
|
37458
|
-
break
|
|
37459
|
-
}
|
|
37460
|
-
}
|
|
37461
|
-
// Necessary for streaming in Firefox, since xhr.response is ONLY defined
|
|
37462
|
-
// in onprogress, not in onreadystatechange with xhr.readyState = 3
|
|
37463
|
-
if (self._mode === 'moz-chunked-arraybuffer') {
|
|
37464
|
-
xhr.onprogress = function () {
|
|
37465
|
-
self._onXHRProgress()
|
|
37466
|
-
}
|
|
37467
|
-
}
|
|
37468
|
-
|
|
37469
|
-
xhr.onerror = function () {
|
|
37470
|
-
if (self._destroyed)
|
|
37471
|
-
return
|
|
37472
|
-
self.emit('error', new Error('XHR error'))
|
|
37473
|
-
}
|
|
37474
|
-
|
|
37475
|
-
try {
|
|
37476
|
-
xhr.send(body)
|
|
37477
|
-
} catch (err) {
|
|
37478
|
-
process.nextTick(function () {
|
|
37479
|
-
self.emit('error', err)
|
|
37480
|
-
})
|
|
37481
|
-
return
|
|
37482
|
-
}
|
|
37483
|
-
}
|
|
37484
|
-
}
|
|
37485
|
-
|
|
37486
|
-
/**
|
|
37487
|
-
* Checks if xhr.status is readable and non-zero, indicating no error.
|
|
37488
|
-
* Even though the spec says it should be available in readyState 3,
|
|
37489
|
-
* accessing it throws an exception in IE8
|
|
37490
|
-
*/
|
|
37491
|
-
function statusValid (xhr) {
|
|
37492
|
-
try {
|
|
37493
|
-
var status = xhr.status
|
|
37494
|
-
return (status !== null && status !== 0)
|
|
37495
|
-
} catch (e) {
|
|
37496
|
-
return false
|
|
37497
|
-
}
|
|
37498
|
-
}
|
|
37499
|
-
|
|
37500
|
-
ClientRequest.prototype._onXHRProgress = function () {
|
|
37501
|
-
var self = this
|
|
37502
|
-
|
|
37503
|
-
if (!statusValid(self._xhr) || self._destroyed)
|
|
37504
|
-
return
|
|
37505
|
-
|
|
37506
|
-
if (!self._response)
|
|
37507
|
-
self._connect()
|
|
37508
|
-
|
|
37509
|
-
self._response._onXHRProgress()
|
|
37510
|
-
}
|
|
37511
|
-
|
|
37512
|
-
ClientRequest.prototype._connect = function () {
|
|
37513
|
-
var self = this
|
|
37514
|
-
|
|
37515
|
-
if (self._destroyed)
|
|
37516
|
-
return
|
|
37517
|
-
|
|
37518
|
-
self._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode, self._fetchTimer)
|
|
37519
|
-
self._response.on('error', function(err) {
|
|
37520
|
-
self.emit('error', err)
|
|
37521
|
-
})
|
|
37522
|
-
|
|
37523
|
-
self.emit('response', self._response)
|
|
37524
|
-
}
|
|
37525
|
-
|
|
37526
|
-
ClientRequest.prototype._write = function (chunk, encoding, cb) {
|
|
37527
|
-
var self = this
|
|
37528
|
-
|
|
37529
|
-
self._body.push(chunk)
|
|
37530
|
-
cb()
|
|
37531
|
-
}
|
|
37532
|
-
|
|
37533
|
-
ClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {
|
|
37534
|
-
var self = this
|
|
37535
|
-
self._destroyed = true
|
|
37536
|
-
global.clearTimeout(self._fetchTimer)
|
|
37537
|
-
if (self._response)
|
|
37538
|
-
self._response._destroyed = true
|
|
37539
|
-
if (self._xhr)
|
|
37540
|
-
self._xhr.abort()
|
|
37541
|
-
else if (self._fetchAbortController)
|
|
37542
|
-
self._fetchAbortController.abort()
|
|
37543
|
-
}
|
|
37544
|
-
|
|
37545
|
-
ClientRequest.prototype.end = function (data, encoding, cb) {
|
|
37546
|
-
var self = this
|
|
37547
|
-
if (typeof data === 'function') {
|
|
37548
|
-
cb = data
|
|
37549
|
-
data = undefined
|
|
37550
|
-
}
|
|
37551
|
-
|
|
37552
|
-
stream.Writable.prototype.end.call(self, data, encoding, cb)
|
|
37553
|
-
}
|
|
37554
|
-
|
|
37555
|
-
ClientRequest.prototype.flushHeaders = function () {}
|
|
37556
|
-
ClientRequest.prototype.setTimeout = function () {}
|
|
37557
|
-
ClientRequest.prototype.setNoDelay = function () {}
|
|
37558
|
-
ClientRequest.prototype.setSocketKeepAlive = function () {}
|
|
37559
|
-
|
|
37560
|
-
// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method
|
|
37561
|
-
var unsafeHeaders = [
|
|
37562
|
-
'accept-charset',
|
|
37563
|
-
'accept-encoding',
|
|
37564
|
-
'access-control-request-headers',
|
|
37565
|
-
'access-control-request-method',
|
|
37566
|
-
'connection',
|
|
37567
|
-
'content-length',
|
|
37568
|
-
'cookie',
|
|
37569
|
-
'cookie2',
|
|
37570
|
-
'date',
|
|
37571
|
-
'dnt',
|
|
37572
|
-
'expect',
|
|
37573
|
-
'host',
|
|
37574
|
-
'keep-alive',
|
|
37575
|
-
'origin',
|
|
37576
|
-
'referer',
|
|
37577
|
-
'te',
|
|
37578
|
-
'trailer',
|
|
37579
|
-
'transfer-encoding',
|
|
37580
|
-
'upgrade',
|
|
37581
|
-
'via'
|
|
37582
|
-
]
|
|
37583
|
-
|
|
37584
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../buffer@4.9.2/node_modules/buffer/index.js */ "../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js").Buffer, __webpack_require__(/*! ./../../../../webpack@4.42.0/node_modules/webpack/buildin/global.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/global.js")))
|
|
37585
|
-
|
|
37586
|
-
/***/ }),
|
|
37587
|
-
|
|
37588
|
-
/***/ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/response.js":
|
|
37589
|
-
/*!***************************************************************************************************************!*\
|
|
37590
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/response.js ***!
|
|
37591
|
-
\***************************************************************************************************************/
|
|
37592
|
-
/*! no static exports found */
|
|
37593
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
37594
|
-
|
|
37595
|
-
/* WEBPACK VAR INJECTION */(function(Buffer, global) {var capability = __webpack_require__(/*! ./capability */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/capability.js")
|
|
37596
|
-
var inherits = __webpack_require__(/*! inherits */ "../../common/temp/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js")
|
|
37597
|
-
var stream = __webpack_require__(/*! readable-stream */ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/readable-browser.js")
|
|
37598
|
-
|
|
37599
|
-
var rStates = exports.readyStates = {
|
|
37600
|
-
UNSENT: 0,
|
|
37601
|
-
OPENED: 1,
|
|
37602
|
-
HEADERS_RECEIVED: 2,
|
|
37603
|
-
LOADING: 3,
|
|
37604
|
-
DONE: 4
|
|
37605
|
-
}
|
|
37606
|
-
|
|
37607
|
-
var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, fetchTimer) {
|
|
37608
|
-
var self = this
|
|
37609
|
-
stream.Readable.call(self)
|
|
37610
|
-
|
|
37611
|
-
self._mode = mode
|
|
37612
|
-
self.headers = {}
|
|
37613
|
-
self.rawHeaders = []
|
|
37614
|
-
self.trailers = {}
|
|
37615
|
-
self.rawTrailers = []
|
|
37616
|
-
|
|
37617
|
-
// Fake the 'close' event, but only once 'end' fires
|
|
37618
|
-
self.on('end', function () {
|
|
37619
|
-
// The nextTick is necessary to prevent the 'request' module from causing an infinite loop
|
|
37620
|
-
process.nextTick(function () {
|
|
37621
|
-
self.emit('close')
|
|
37622
|
-
})
|
|
37623
|
-
})
|
|
37624
|
-
|
|
37625
|
-
if (mode === 'fetch') {
|
|
37626
|
-
self._fetchResponse = response
|
|
37627
|
-
|
|
37628
|
-
self.url = response.url
|
|
37629
|
-
self.statusCode = response.status
|
|
37630
|
-
self.statusMessage = response.statusText
|
|
37631
|
-
|
|
37632
|
-
response.headers.forEach(function (header, key){
|
|
37633
|
-
self.headers[key.toLowerCase()] = header
|
|
37634
|
-
self.rawHeaders.push(key, header)
|
|
37635
|
-
})
|
|
37636
|
-
|
|
37637
|
-
if (capability.writableStream) {
|
|
37638
|
-
var writable = new WritableStream({
|
|
37639
|
-
write: function (chunk) {
|
|
37640
|
-
return new Promise(function (resolve, reject) {
|
|
37641
|
-
if (self._destroyed) {
|
|
37642
|
-
reject()
|
|
37643
|
-
} else if(self.push(new Buffer(chunk))) {
|
|
37644
|
-
resolve()
|
|
37645
|
-
} else {
|
|
37646
|
-
self._resumeFetch = resolve
|
|
37647
|
-
}
|
|
37648
|
-
})
|
|
37649
|
-
},
|
|
37650
|
-
close: function () {
|
|
37651
|
-
global.clearTimeout(fetchTimer)
|
|
37652
|
-
if (!self._destroyed)
|
|
37653
|
-
self.push(null)
|
|
37654
|
-
},
|
|
37655
|
-
abort: function (err) {
|
|
37656
|
-
if (!self._destroyed)
|
|
37657
|
-
self.emit('error', err)
|
|
37658
|
-
}
|
|
37659
|
-
})
|
|
37660
|
-
|
|
37661
|
-
try {
|
|
37662
|
-
response.body.pipeTo(writable).catch(function (err) {
|
|
37663
|
-
global.clearTimeout(fetchTimer)
|
|
37664
|
-
if (!self._destroyed)
|
|
37665
|
-
self.emit('error', err)
|
|
37666
|
-
})
|
|
37667
|
-
return
|
|
37668
|
-
} catch (e) {} // pipeTo method isn't defined. Can't find a better way to feature test this
|
|
37669
|
-
}
|
|
37670
|
-
// fallback for when writableStream or pipeTo aren't available
|
|
37671
|
-
var reader = response.body.getReader()
|
|
37672
|
-
function read () {
|
|
37673
|
-
reader.read().then(function (result) {
|
|
37674
|
-
if (self._destroyed)
|
|
37675
|
-
return
|
|
37676
|
-
if (result.done) {
|
|
37677
|
-
global.clearTimeout(fetchTimer)
|
|
37678
|
-
self.push(null)
|
|
37679
|
-
return
|
|
37680
|
-
}
|
|
37681
|
-
self.push(new Buffer(result.value))
|
|
37682
|
-
read()
|
|
37683
|
-
}).catch(function (err) {
|
|
37684
|
-
global.clearTimeout(fetchTimer)
|
|
37685
|
-
if (!self._destroyed)
|
|
37686
|
-
self.emit('error', err)
|
|
37687
|
-
})
|
|
37688
|
-
}
|
|
37689
|
-
read()
|
|
37690
|
-
} else {
|
|
37691
|
-
self._xhr = xhr
|
|
37692
|
-
self._pos = 0
|
|
37693
|
-
|
|
37694
|
-
self.url = xhr.responseURL
|
|
37695
|
-
self.statusCode = xhr.status
|
|
37696
|
-
self.statusMessage = xhr.statusText
|
|
37697
|
-
var headers = xhr.getAllResponseHeaders().split(/\r?\n/)
|
|
37698
|
-
headers.forEach(function (header) {
|
|
37699
|
-
var matches = header.match(/^([^:]+):\s*(.*)/)
|
|
37700
|
-
if (matches) {
|
|
37701
|
-
var key = matches[1].toLowerCase()
|
|
37702
|
-
if (key === 'set-cookie') {
|
|
37703
|
-
if (self.headers[key] === undefined) {
|
|
37704
|
-
self.headers[key] = []
|
|
37705
|
-
}
|
|
37706
|
-
self.headers[key].push(matches[2])
|
|
37707
|
-
} else if (self.headers[key] !== undefined) {
|
|
37708
|
-
self.headers[key] += ', ' + matches[2]
|
|
37709
|
-
} else {
|
|
37710
|
-
self.headers[key] = matches[2]
|
|
37711
|
-
}
|
|
37712
|
-
self.rawHeaders.push(matches[1], matches[2])
|
|
37713
|
-
}
|
|
37714
|
-
})
|
|
37715
|
-
|
|
37716
|
-
self._charset = 'x-user-defined'
|
|
37717
|
-
if (!capability.overrideMimeType) {
|
|
37718
|
-
var mimeType = self.rawHeaders['mime-type']
|
|
37719
|
-
if (mimeType) {
|
|
37720
|
-
var charsetMatch = mimeType.match(/;\s*charset=([^;])(;|$)/)
|
|
37721
|
-
if (charsetMatch) {
|
|
37722
|
-
self._charset = charsetMatch[1].toLowerCase()
|
|
37723
|
-
}
|
|
37724
|
-
}
|
|
37725
|
-
if (!self._charset)
|
|
37726
|
-
self._charset = 'utf-8' // best guess
|
|
37727
|
-
}
|
|
37728
|
-
}
|
|
37729
|
-
}
|
|
37730
|
-
|
|
37731
|
-
inherits(IncomingMessage, stream.Readable)
|
|
37732
|
-
|
|
37733
|
-
IncomingMessage.prototype._read = function () {
|
|
37734
|
-
var self = this
|
|
37735
|
-
|
|
37736
|
-
var resolve = self._resumeFetch
|
|
37737
|
-
if (resolve) {
|
|
37738
|
-
self._resumeFetch = null
|
|
37739
|
-
resolve()
|
|
37740
|
-
}
|
|
37741
|
-
}
|
|
37742
|
-
|
|
37743
|
-
IncomingMessage.prototype._onXHRProgress = function () {
|
|
37744
|
-
var self = this
|
|
37745
|
-
|
|
37746
|
-
var xhr = self._xhr
|
|
37747
|
-
|
|
37748
|
-
var response = null
|
|
37749
|
-
switch (self._mode) {
|
|
37750
|
-
case 'text:vbarray': // For IE9
|
|
37751
|
-
if (xhr.readyState !== rStates.DONE)
|
|
37752
|
-
break
|
|
37753
|
-
try {
|
|
37754
|
-
// This fails in IE8
|
|
37755
|
-
response = new global.VBArray(xhr.responseBody).toArray()
|
|
37756
|
-
} catch (e) {}
|
|
37757
|
-
if (response !== null) {
|
|
37758
|
-
self.push(new Buffer(response))
|
|
37759
|
-
break
|
|
37760
|
-
}
|
|
37761
|
-
// Falls through in IE8
|
|
37762
|
-
case 'text':
|
|
37763
|
-
try { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4
|
|
37764
|
-
response = xhr.responseText
|
|
37765
|
-
} catch (e) {
|
|
37766
|
-
self._mode = 'text:vbarray'
|
|
37767
|
-
break
|
|
37768
|
-
}
|
|
37769
|
-
if (response.length > self._pos) {
|
|
37770
|
-
var newData = response.substr(self._pos)
|
|
37771
|
-
if (self._charset === 'x-user-defined') {
|
|
37772
|
-
var buffer = new Buffer(newData.length)
|
|
37773
|
-
for (var i = 0; i < newData.length; i++)
|
|
37774
|
-
buffer[i] = newData.charCodeAt(i) & 0xff
|
|
37775
|
-
|
|
37776
|
-
self.push(buffer)
|
|
37777
|
-
} else {
|
|
37778
|
-
self.push(newData, self._charset)
|
|
37779
|
-
}
|
|
37780
|
-
self._pos = response.length
|
|
37781
|
-
}
|
|
37782
|
-
break
|
|
37783
|
-
case 'arraybuffer':
|
|
37784
|
-
if (xhr.readyState !== rStates.DONE || !xhr.response)
|
|
37785
|
-
break
|
|
37786
|
-
response = xhr.response
|
|
37787
|
-
self.push(new Buffer(new Uint8Array(response)))
|
|
37788
|
-
break
|
|
37789
|
-
case 'moz-chunked-arraybuffer': // take whole
|
|
37790
|
-
response = xhr.response
|
|
37791
|
-
if (xhr.readyState !== rStates.LOADING || !response)
|
|
37792
|
-
break
|
|
37793
|
-
self.push(new Buffer(new Uint8Array(response)))
|
|
37794
|
-
break
|
|
37795
|
-
case 'ms-stream':
|
|
37796
|
-
response = xhr.response
|
|
37797
|
-
if (xhr.readyState !== rStates.LOADING)
|
|
37798
|
-
break
|
|
37799
|
-
var reader = new global.MSStreamReader()
|
|
37800
|
-
reader.onprogress = function () {
|
|
37801
|
-
if (reader.result.byteLength > self._pos) {
|
|
37802
|
-
self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))))
|
|
37803
|
-
self._pos = reader.result.byteLength
|
|
37804
|
-
}
|
|
37805
|
-
}
|
|
37806
|
-
reader.onload = function () {
|
|
37807
|
-
self.push(null)
|
|
37808
|
-
}
|
|
37809
|
-
// reader.onerror = ??? // TODO: this
|
|
37810
|
-
reader.readAsArrayBuffer(response)
|
|
37811
|
-
break
|
|
37812
|
-
}
|
|
37813
|
-
|
|
37814
|
-
// The ms-stream case handles end separately in reader.onload()
|
|
37815
|
-
if (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {
|
|
37816
|
-
self.push(null)
|
|
37817
|
-
}
|
|
37818
|
-
}
|
|
37819
|
-
|
|
37820
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../buffer@4.9.2/node_modules/buffer/index.js */ "../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js").Buffer, __webpack_require__(/*! ./../../../../webpack@4.42.0/node_modules/webpack/buildin/global.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/global.js")))
|
|
37821
|
-
|
|
37822
35824
|
/***/ }),
|
|
37823
35825
|
|
|
37824
35826
|
/***/ "../../common/temp/node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js":
|
|
@@ -40409,44 +38411,6 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
|
|
|
40409
38411
|
|
|
40410
38412
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack@4.42.0/node_modules/webpack/buildin/global.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/global.js")))
|
|
40411
38413
|
|
|
40412
|
-
/***/ }),
|
|
40413
|
-
|
|
40414
|
-
/***/ "../../common/temp/node_modules/.pnpm/to-arraybuffer@1.0.1/node_modules/to-arraybuffer/index.js":
|
|
40415
|
-
/*!**************************************************************************************************************!*\
|
|
40416
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/to-arraybuffer@1.0.1/node_modules/to-arraybuffer/index.js ***!
|
|
40417
|
-
\**************************************************************************************************************/
|
|
40418
|
-
/*! no static exports found */
|
|
40419
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
40420
|
-
|
|
40421
|
-
var Buffer = __webpack_require__(/*! buffer */ "../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js").Buffer
|
|
40422
|
-
|
|
40423
|
-
module.exports = function (buf) {
|
|
40424
|
-
// If the buffer is backed by a Uint8Array, a faster version will work
|
|
40425
|
-
if (buf instanceof Uint8Array) {
|
|
40426
|
-
// If the buffer isn't a subarray, return the underlying ArrayBuffer
|
|
40427
|
-
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
40428
|
-
return buf.buffer
|
|
40429
|
-
} else if (typeof buf.buffer.slice === 'function') {
|
|
40430
|
-
// Otherwise we need to get a proper copy
|
|
40431
|
-
return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength)
|
|
40432
|
-
}
|
|
40433
|
-
}
|
|
40434
|
-
|
|
40435
|
-
if (Buffer.isBuffer(buf)) {
|
|
40436
|
-
// This is the slow version that will work with any Buffer
|
|
40437
|
-
// implementation (even in old browsers)
|
|
40438
|
-
var arrayCopy = new Uint8Array(buf.length)
|
|
40439
|
-
var len = buf.length
|
|
40440
|
-
for (var i = 0; i < len; i++) {
|
|
40441
|
-
arrayCopy[i] = buf[i]
|
|
40442
|
-
}
|
|
40443
|
-
return arrayCopy.buffer
|
|
40444
|
-
} else {
|
|
40445
|
-
throw new Error('Argument must be a Buffer')
|
|
40446
|
-
}
|
|
40447
|
-
}
|
|
40448
|
-
|
|
40449
|
-
|
|
40450
38414
|
/***/ }),
|
|
40451
38415
|
|
|
40452
38416
|
/***/ "../../common/temp/node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js":
|
|
@@ -40846,778 +38810,6 @@ return typeDetect;
|
|
|
40846
38810
|
|
|
40847
38811
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack@4.42.0/node_modules/webpack/buildin/global.js */ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/global.js")))
|
|
40848
38812
|
|
|
40849
|
-
/***/ }),
|
|
40850
|
-
|
|
40851
|
-
/***/ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/url.js":
|
|
40852
|
-
/*!***************************************************************************************!*\
|
|
40853
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/url.js ***!
|
|
40854
|
-
\***************************************************************************************/
|
|
40855
|
-
/*! no static exports found */
|
|
40856
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
40857
|
-
|
|
40858
|
-
"use strict";
|
|
40859
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
40860
|
-
//
|
|
40861
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
40862
|
-
// copy of this software and associated documentation files (the
|
|
40863
|
-
// "Software"), to deal in the Software without restriction, including
|
|
40864
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
40865
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
40866
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
40867
|
-
// following conditions:
|
|
40868
|
-
//
|
|
40869
|
-
// The above copyright notice and this permission notice shall be included
|
|
40870
|
-
// in all copies or substantial portions of the Software.
|
|
40871
|
-
//
|
|
40872
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
40873
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
40874
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
40875
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
40876
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
40877
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
40878
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
40879
|
-
|
|
40880
|
-
|
|
40881
|
-
|
|
40882
|
-
var punycode = __webpack_require__(/*! punycode */ "../../common/temp/node_modules/.pnpm/punycode@1.4.1/node_modules/punycode/punycode.js");
|
|
40883
|
-
var util = __webpack_require__(/*! ./util */ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/util.js");
|
|
40884
|
-
|
|
40885
|
-
exports.parse = urlParse;
|
|
40886
|
-
exports.resolve = urlResolve;
|
|
40887
|
-
exports.resolveObject = urlResolveObject;
|
|
40888
|
-
exports.format = urlFormat;
|
|
40889
|
-
|
|
40890
|
-
exports.Url = Url;
|
|
40891
|
-
|
|
40892
|
-
function Url() {
|
|
40893
|
-
this.protocol = null;
|
|
40894
|
-
this.slashes = null;
|
|
40895
|
-
this.auth = null;
|
|
40896
|
-
this.host = null;
|
|
40897
|
-
this.port = null;
|
|
40898
|
-
this.hostname = null;
|
|
40899
|
-
this.hash = null;
|
|
40900
|
-
this.search = null;
|
|
40901
|
-
this.query = null;
|
|
40902
|
-
this.pathname = null;
|
|
40903
|
-
this.path = null;
|
|
40904
|
-
this.href = null;
|
|
40905
|
-
}
|
|
40906
|
-
|
|
40907
|
-
// Reference: RFC 3986, RFC 1808, RFC 2396
|
|
40908
|
-
|
|
40909
|
-
// define these here so at least they only have to be
|
|
40910
|
-
// compiled once on the first module load.
|
|
40911
|
-
var protocolPattern = /^([a-z0-9.+-]+:)/i,
|
|
40912
|
-
portPattern = /:[0-9]*$/,
|
|
40913
|
-
|
|
40914
|
-
// Special case for a simple path URL
|
|
40915
|
-
simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
|
|
40916
|
-
|
|
40917
|
-
// RFC 2396: characters reserved for delimiting URLs.
|
|
40918
|
-
// We actually just auto-escape these.
|
|
40919
|
-
delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
|
|
40920
|
-
|
|
40921
|
-
// RFC 2396: characters not allowed for various reasons.
|
|
40922
|
-
unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),
|
|
40923
|
-
|
|
40924
|
-
// Allowed by RFCs, but cause of XSS attacks. Always escape these.
|
|
40925
|
-
autoEscape = ['\''].concat(unwise),
|
|
40926
|
-
// Characters that are never ever allowed in a hostname.
|
|
40927
|
-
// Note that any invalid chars are also handled, but these
|
|
40928
|
-
// are the ones that are *expected* to be seen, so we fast-path
|
|
40929
|
-
// them.
|
|
40930
|
-
nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
|
|
40931
|
-
hostEndingChars = ['/', '?', '#'],
|
|
40932
|
-
hostnameMaxLen = 255,
|
|
40933
|
-
hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
|
|
40934
|
-
hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
|
|
40935
|
-
// protocols that can allow "unsafe" and "unwise" chars.
|
|
40936
|
-
unsafeProtocol = {
|
|
40937
|
-
'javascript': true,
|
|
40938
|
-
'javascript:': true
|
|
40939
|
-
},
|
|
40940
|
-
// protocols that never have a hostname.
|
|
40941
|
-
hostlessProtocol = {
|
|
40942
|
-
'javascript': true,
|
|
40943
|
-
'javascript:': true
|
|
40944
|
-
},
|
|
40945
|
-
// protocols that always contain a // bit.
|
|
40946
|
-
slashedProtocol = {
|
|
40947
|
-
'http': true,
|
|
40948
|
-
'https': true,
|
|
40949
|
-
'ftp': true,
|
|
40950
|
-
'gopher': true,
|
|
40951
|
-
'file': true,
|
|
40952
|
-
'http:': true,
|
|
40953
|
-
'https:': true,
|
|
40954
|
-
'ftp:': true,
|
|
40955
|
-
'gopher:': true,
|
|
40956
|
-
'file:': true
|
|
40957
|
-
},
|
|
40958
|
-
querystring = __webpack_require__(/*! querystring */ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/index.js");
|
|
40959
|
-
|
|
40960
|
-
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
|
40961
|
-
if (url && util.isObject(url) && url instanceof Url) return url;
|
|
40962
|
-
|
|
40963
|
-
var u = new Url;
|
|
40964
|
-
u.parse(url, parseQueryString, slashesDenoteHost);
|
|
40965
|
-
return u;
|
|
40966
|
-
}
|
|
40967
|
-
|
|
40968
|
-
Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
40969
|
-
if (!util.isString(url)) {
|
|
40970
|
-
throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
|
|
40971
|
-
}
|
|
40972
|
-
|
|
40973
|
-
// Copy chrome, IE, opera backslash-handling behavior.
|
|
40974
|
-
// Back slashes before the query string get converted to forward slashes
|
|
40975
|
-
// See: https://code.google.com/p/chromium/issues/detail?id=25916
|
|
40976
|
-
var queryIndex = url.indexOf('?'),
|
|
40977
|
-
splitter =
|
|
40978
|
-
(queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
|
|
40979
|
-
uSplit = url.split(splitter),
|
|
40980
|
-
slashRegex = /\\/g;
|
|
40981
|
-
uSplit[0] = uSplit[0].replace(slashRegex, '/');
|
|
40982
|
-
url = uSplit.join(splitter);
|
|
40983
|
-
|
|
40984
|
-
var rest = url;
|
|
40985
|
-
|
|
40986
|
-
// trim before proceeding.
|
|
40987
|
-
// This is to support parse stuff like " http://foo.com \n"
|
|
40988
|
-
rest = rest.trim();
|
|
40989
|
-
|
|
40990
|
-
if (!slashesDenoteHost && url.split('#').length === 1) {
|
|
40991
|
-
// Try fast path regexp
|
|
40992
|
-
var simplePath = simplePathPattern.exec(rest);
|
|
40993
|
-
if (simplePath) {
|
|
40994
|
-
this.path = rest;
|
|
40995
|
-
this.href = rest;
|
|
40996
|
-
this.pathname = simplePath[1];
|
|
40997
|
-
if (simplePath[2]) {
|
|
40998
|
-
this.search = simplePath[2];
|
|
40999
|
-
if (parseQueryString) {
|
|
41000
|
-
this.query = querystring.parse(this.search.substr(1));
|
|
41001
|
-
} else {
|
|
41002
|
-
this.query = this.search.substr(1);
|
|
41003
|
-
}
|
|
41004
|
-
} else if (parseQueryString) {
|
|
41005
|
-
this.search = '';
|
|
41006
|
-
this.query = {};
|
|
41007
|
-
}
|
|
41008
|
-
return this;
|
|
41009
|
-
}
|
|
41010
|
-
}
|
|
41011
|
-
|
|
41012
|
-
var proto = protocolPattern.exec(rest);
|
|
41013
|
-
if (proto) {
|
|
41014
|
-
proto = proto[0];
|
|
41015
|
-
var lowerProto = proto.toLowerCase();
|
|
41016
|
-
this.protocol = lowerProto;
|
|
41017
|
-
rest = rest.substr(proto.length);
|
|
41018
|
-
}
|
|
41019
|
-
|
|
41020
|
-
// figure out if it's got a host
|
|
41021
|
-
// user@server is *always* interpreted as a hostname, and url
|
|
41022
|
-
// resolution will treat //foo/bar as host=foo,path=bar because that's
|
|
41023
|
-
// how the browser resolves relative URLs.
|
|
41024
|
-
if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
|
|
41025
|
-
var slashes = rest.substr(0, 2) === '//';
|
|
41026
|
-
if (slashes && !(proto && hostlessProtocol[proto])) {
|
|
41027
|
-
rest = rest.substr(2);
|
|
41028
|
-
this.slashes = true;
|
|
41029
|
-
}
|
|
41030
|
-
}
|
|
41031
|
-
|
|
41032
|
-
if (!hostlessProtocol[proto] &&
|
|
41033
|
-
(slashes || (proto && !slashedProtocol[proto]))) {
|
|
41034
|
-
|
|
41035
|
-
// there's a hostname.
|
|
41036
|
-
// the first instance of /, ?, ;, or # ends the host.
|
|
41037
|
-
//
|
|
41038
|
-
// If there is an @ in the hostname, then non-host chars *are* allowed
|
|
41039
|
-
// to the left of the last @ sign, unless some host-ending character
|
|
41040
|
-
// comes *before* the @-sign.
|
|
41041
|
-
// URLs are obnoxious.
|
|
41042
|
-
//
|
|
41043
|
-
// ex:
|
|
41044
|
-
// http://a@b@c/ => user:a@b host:c
|
|
41045
|
-
// http://a@b?@c => user:a host:c path:/?@c
|
|
41046
|
-
|
|
41047
|
-
// v0.12 TODO(isaacs): This is not quite how Chrome does things.
|
|
41048
|
-
// Review our test case against browsers more comprehensively.
|
|
41049
|
-
|
|
41050
|
-
// find the first instance of any hostEndingChars
|
|
41051
|
-
var hostEnd = -1;
|
|
41052
|
-
for (var i = 0; i < hostEndingChars.length; i++) {
|
|
41053
|
-
var hec = rest.indexOf(hostEndingChars[i]);
|
|
41054
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
|
|
41055
|
-
hostEnd = hec;
|
|
41056
|
-
}
|
|
41057
|
-
|
|
41058
|
-
// at this point, either we have an explicit point where the
|
|
41059
|
-
// auth portion cannot go past, or the last @ char is the decider.
|
|
41060
|
-
var auth, atSign;
|
|
41061
|
-
if (hostEnd === -1) {
|
|
41062
|
-
// atSign can be anywhere.
|
|
41063
|
-
atSign = rest.lastIndexOf('@');
|
|
41064
|
-
} else {
|
|
41065
|
-
// atSign must be in auth portion.
|
|
41066
|
-
// http://a@b/c@d => host:b auth:a path:/c@d
|
|
41067
|
-
atSign = rest.lastIndexOf('@', hostEnd);
|
|
41068
|
-
}
|
|
41069
|
-
|
|
41070
|
-
// Now we have a portion which is definitely the auth.
|
|
41071
|
-
// Pull that off.
|
|
41072
|
-
if (atSign !== -1) {
|
|
41073
|
-
auth = rest.slice(0, atSign);
|
|
41074
|
-
rest = rest.slice(atSign + 1);
|
|
41075
|
-
this.auth = decodeURIComponent(auth);
|
|
41076
|
-
}
|
|
41077
|
-
|
|
41078
|
-
// the host is the remaining to the left of the first non-host char
|
|
41079
|
-
hostEnd = -1;
|
|
41080
|
-
for (var i = 0; i < nonHostChars.length; i++) {
|
|
41081
|
-
var hec = rest.indexOf(nonHostChars[i]);
|
|
41082
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
|
|
41083
|
-
hostEnd = hec;
|
|
41084
|
-
}
|
|
41085
|
-
// if we still have not hit it, then the entire thing is a host.
|
|
41086
|
-
if (hostEnd === -1)
|
|
41087
|
-
hostEnd = rest.length;
|
|
41088
|
-
|
|
41089
|
-
this.host = rest.slice(0, hostEnd);
|
|
41090
|
-
rest = rest.slice(hostEnd);
|
|
41091
|
-
|
|
41092
|
-
// pull out port.
|
|
41093
|
-
this.parseHost();
|
|
41094
|
-
|
|
41095
|
-
// we've indicated that there is a hostname,
|
|
41096
|
-
// so even if it's empty, it has to be present.
|
|
41097
|
-
this.hostname = this.hostname || '';
|
|
41098
|
-
|
|
41099
|
-
// if hostname begins with [ and ends with ]
|
|
41100
|
-
// assume that it's an IPv6 address.
|
|
41101
|
-
var ipv6Hostname = this.hostname[0] === '[' &&
|
|
41102
|
-
this.hostname[this.hostname.length - 1] === ']';
|
|
41103
|
-
|
|
41104
|
-
// validate a little.
|
|
41105
|
-
if (!ipv6Hostname) {
|
|
41106
|
-
var hostparts = this.hostname.split(/\./);
|
|
41107
|
-
for (var i = 0, l = hostparts.length; i < l; i++) {
|
|
41108
|
-
var part = hostparts[i];
|
|
41109
|
-
if (!part) continue;
|
|
41110
|
-
if (!part.match(hostnamePartPattern)) {
|
|
41111
|
-
var newpart = '';
|
|
41112
|
-
for (var j = 0, k = part.length; j < k; j++) {
|
|
41113
|
-
if (part.charCodeAt(j) > 127) {
|
|
41114
|
-
// we replace non-ASCII char with a temporary placeholder
|
|
41115
|
-
// we need this to make sure size of hostname is not
|
|
41116
|
-
// broken by replacing non-ASCII by nothing
|
|
41117
|
-
newpart += 'x';
|
|
41118
|
-
} else {
|
|
41119
|
-
newpart += part[j];
|
|
41120
|
-
}
|
|
41121
|
-
}
|
|
41122
|
-
// we test again with ASCII char only
|
|
41123
|
-
if (!newpart.match(hostnamePartPattern)) {
|
|
41124
|
-
var validParts = hostparts.slice(0, i);
|
|
41125
|
-
var notHost = hostparts.slice(i + 1);
|
|
41126
|
-
var bit = part.match(hostnamePartStart);
|
|
41127
|
-
if (bit) {
|
|
41128
|
-
validParts.push(bit[1]);
|
|
41129
|
-
notHost.unshift(bit[2]);
|
|
41130
|
-
}
|
|
41131
|
-
if (notHost.length) {
|
|
41132
|
-
rest = '/' + notHost.join('.') + rest;
|
|
41133
|
-
}
|
|
41134
|
-
this.hostname = validParts.join('.');
|
|
41135
|
-
break;
|
|
41136
|
-
}
|
|
41137
|
-
}
|
|
41138
|
-
}
|
|
41139
|
-
}
|
|
41140
|
-
|
|
41141
|
-
if (this.hostname.length > hostnameMaxLen) {
|
|
41142
|
-
this.hostname = '';
|
|
41143
|
-
} else {
|
|
41144
|
-
// hostnames are always lower case.
|
|
41145
|
-
this.hostname = this.hostname.toLowerCase();
|
|
41146
|
-
}
|
|
41147
|
-
|
|
41148
|
-
if (!ipv6Hostname) {
|
|
41149
|
-
// IDNA Support: Returns a punycoded representation of "domain".
|
|
41150
|
-
// It only converts parts of the domain name that
|
|
41151
|
-
// have non-ASCII characters, i.e. it doesn't matter if
|
|
41152
|
-
// you call it with a domain that already is ASCII-only.
|
|
41153
|
-
this.hostname = punycode.toASCII(this.hostname);
|
|
41154
|
-
}
|
|
41155
|
-
|
|
41156
|
-
var p = this.port ? ':' + this.port : '';
|
|
41157
|
-
var h = this.hostname || '';
|
|
41158
|
-
this.host = h + p;
|
|
41159
|
-
this.href += this.host;
|
|
41160
|
-
|
|
41161
|
-
// strip [ and ] from the hostname
|
|
41162
|
-
// the host field still retains them, though
|
|
41163
|
-
if (ipv6Hostname) {
|
|
41164
|
-
this.hostname = this.hostname.substr(1, this.hostname.length - 2);
|
|
41165
|
-
if (rest[0] !== '/') {
|
|
41166
|
-
rest = '/' + rest;
|
|
41167
|
-
}
|
|
41168
|
-
}
|
|
41169
|
-
}
|
|
41170
|
-
|
|
41171
|
-
// now rest is set to the post-host stuff.
|
|
41172
|
-
// chop off any delim chars.
|
|
41173
|
-
if (!unsafeProtocol[lowerProto]) {
|
|
41174
|
-
|
|
41175
|
-
// First, make 100% sure that any "autoEscape" chars get
|
|
41176
|
-
// escaped, even if encodeURIComponent doesn't think they
|
|
41177
|
-
// need to be.
|
|
41178
|
-
for (var i = 0, l = autoEscape.length; i < l; i++) {
|
|
41179
|
-
var ae = autoEscape[i];
|
|
41180
|
-
if (rest.indexOf(ae) === -1)
|
|
41181
|
-
continue;
|
|
41182
|
-
var esc = encodeURIComponent(ae);
|
|
41183
|
-
if (esc === ae) {
|
|
41184
|
-
esc = escape(ae);
|
|
41185
|
-
}
|
|
41186
|
-
rest = rest.split(ae).join(esc);
|
|
41187
|
-
}
|
|
41188
|
-
}
|
|
41189
|
-
|
|
41190
|
-
|
|
41191
|
-
// chop off from the tail first.
|
|
41192
|
-
var hash = rest.indexOf('#');
|
|
41193
|
-
if (hash !== -1) {
|
|
41194
|
-
// got a fragment string.
|
|
41195
|
-
this.hash = rest.substr(hash);
|
|
41196
|
-
rest = rest.slice(0, hash);
|
|
41197
|
-
}
|
|
41198
|
-
var qm = rest.indexOf('?');
|
|
41199
|
-
if (qm !== -1) {
|
|
41200
|
-
this.search = rest.substr(qm);
|
|
41201
|
-
this.query = rest.substr(qm + 1);
|
|
41202
|
-
if (parseQueryString) {
|
|
41203
|
-
this.query = querystring.parse(this.query);
|
|
41204
|
-
}
|
|
41205
|
-
rest = rest.slice(0, qm);
|
|
41206
|
-
} else if (parseQueryString) {
|
|
41207
|
-
// no query string, but parseQueryString still requested
|
|
41208
|
-
this.search = '';
|
|
41209
|
-
this.query = {};
|
|
41210
|
-
}
|
|
41211
|
-
if (rest) this.pathname = rest;
|
|
41212
|
-
if (slashedProtocol[lowerProto] &&
|
|
41213
|
-
this.hostname && !this.pathname) {
|
|
41214
|
-
this.pathname = '/';
|
|
41215
|
-
}
|
|
41216
|
-
|
|
41217
|
-
//to support http.request
|
|
41218
|
-
if (this.pathname || this.search) {
|
|
41219
|
-
var p = this.pathname || '';
|
|
41220
|
-
var s = this.search || '';
|
|
41221
|
-
this.path = p + s;
|
|
41222
|
-
}
|
|
41223
|
-
|
|
41224
|
-
// finally, reconstruct the href based on what has been validated.
|
|
41225
|
-
this.href = this.format();
|
|
41226
|
-
return this;
|
|
41227
|
-
};
|
|
41228
|
-
|
|
41229
|
-
// format a parsed object into a url string
|
|
41230
|
-
function urlFormat(obj) {
|
|
41231
|
-
// ensure it's an object, and not a string url.
|
|
41232
|
-
// If it's an obj, this is a no-op.
|
|
41233
|
-
// this way, you can call url_format() on strings
|
|
41234
|
-
// to clean up potentially wonky urls.
|
|
41235
|
-
if (util.isString(obj)) obj = urlParse(obj);
|
|
41236
|
-
if (!(obj instanceof Url)) return Url.prototype.format.call(obj);
|
|
41237
|
-
return obj.format();
|
|
41238
|
-
}
|
|
41239
|
-
|
|
41240
|
-
Url.prototype.format = function() {
|
|
41241
|
-
var auth = this.auth || '';
|
|
41242
|
-
if (auth) {
|
|
41243
|
-
auth = encodeURIComponent(auth);
|
|
41244
|
-
auth = auth.replace(/%3A/i, ':');
|
|
41245
|
-
auth += '@';
|
|
41246
|
-
}
|
|
41247
|
-
|
|
41248
|
-
var protocol = this.protocol || '',
|
|
41249
|
-
pathname = this.pathname || '',
|
|
41250
|
-
hash = this.hash || '',
|
|
41251
|
-
host = false,
|
|
41252
|
-
query = '';
|
|
41253
|
-
|
|
41254
|
-
if (this.host) {
|
|
41255
|
-
host = auth + this.host;
|
|
41256
|
-
} else if (this.hostname) {
|
|
41257
|
-
host = auth + (this.hostname.indexOf(':') === -1 ?
|
|
41258
|
-
this.hostname :
|
|
41259
|
-
'[' + this.hostname + ']');
|
|
41260
|
-
if (this.port) {
|
|
41261
|
-
host += ':' + this.port;
|
|
41262
|
-
}
|
|
41263
|
-
}
|
|
41264
|
-
|
|
41265
|
-
if (this.query &&
|
|
41266
|
-
util.isObject(this.query) &&
|
|
41267
|
-
Object.keys(this.query).length) {
|
|
41268
|
-
query = querystring.stringify(this.query);
|
|
41269
|
-
}
|
|
41270
|
-
|
|
41271
|
-
var search = this.search || (query && ('?' + query)) || '';
|
|
41272
|
-
|
|
41273
|
-
if (protocol && protocol.substr(-1) !== ':') protocol += ':';
|
|
41274
|
-
|
|
41275
|
-
// only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
|
|
41276
|
-
// unless they had them to begin with.
|
|
41277
|
-
if (this.slashes ||
|
|
41278
|
-
(!protocol || slashedProtocol[protocol]) && host !== false) {
|
|
41279
|
-
host = '//' + (host || '');
|
|
41280
|
-
if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
|
|
41281
|
-
} else if (!host) {
|
|
41282
|
-
host = '';
|
|
41283
|
-
}
|
|
41284
|
-
|
|
41285
|
-
if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
|
|
41286
|
-
if (search && search.charAt(0) !== '?') search = '?' + search;
|
|
41287
|
-
|
|
41288
|
-
pathname = pathname.replace(/[?#]/g, function(match) {
|
|
41289
|
-
return encodeURIComponent(match);
|
|
41290
|
-
});
|
|
41291
|
-
search = search.replace('#', '%23');
|
|
41292
|
-
|
|
41293
|
-
return protocol + host + pathname + search + hash;
|
|
41294
|
-
};
|
|
41295
|
-
|
|
41296
|
-
function urlResolve(source, relative) {
|
|
41297
|
-
return urlParse(source, false, true).resolve(relative);
|
|
41298
|
-
}
|
|
41299
|
-
|
|
41300
|
-
Url.prototype.resolve = function(relative) {
|
|
41301
|
-
return this.resolveObject(urlParse(relative, false, true)).format();
|
|
41302
|
-
};
|
|
41303
|
-
|
|
41304
|
-
function urlResolveObject(source, relative) {
|
|
41305
|
-
if (!source) return relative;
|
|
41306
|
-
return urlParse(source, false, true).resolveObject(relative);
|
|
41307
|
-
}
|
|
41308
|
-
|
|
41309
|
-
Url.prototype.resolveObject = function(relative) {
|
|
41310
|
-
if (util.isString(relative)) {
|
|
41311
|
-
var rel = new Url();
|
|
41312
|
-
rel.parse(relative, false, true);
|
|
41313
|
-
relative = rel;
|
|
41314
|
-
}
|
|
41315
|
-
|
|
41316
|
-
var result = new Url();
|
|
41317
|
-
var tkeys = Object.keys(this);
|
|
41318
|
-
for (var tk = 0; tk < tkeys.length; tk++) {
|
|
41319
|
-
var tkey = tkeys[tk];
|
|
41320
|
-
result[tkey] = this[tkey];
|
|
41321
|
-
}
|
|
41322
|
-
|
|
41323
|
-
// hash is always overridden, no matter what.
|
|
41324
|
-
// even href="" will remove it.
|
|
41325
|
-
result.hash = relative.hash;
|
|
41326
|
-
|
|
41327
|
-
// if the relative url is empty, then there's nothing left to do here.
|
|
41328
|
-
if (relative.href === '') {
|
|
41329
|
-
result.href = result.format();
|
|
41330
|
-
return result;
|
|
41331
|
-
}
|
|
41332
|
-
|
|
41333
|
-
// hrefs like //foo/bar always cut to the protocol.
|
|
41334
|
-
if (relative.slashes && !relative.protocol) {
|
|
41335
|
-
// take everything except the protocol from relative
|
|
41336
|
-
var rkeys = Object.keys(relative);
|
|
41337
|
-
for (var rk = 0; rk < rkeys.length; rk++) {
|
|
41338
|
-
var rkey = rkeys[rk];
|
|
41339
|
-
if (rkey !== 'protocol')
|
|
41340
|
-
result[rkey] = relative[rkey];
|
|
41341
|
-
}
|
|
41342
|
-
|
|
41343
|
-
//urlParse appends trailing / to urls like http://www.example.com
|
|
41344
|
-
if (slashedProtocol[result.protocol] &&
|
|
41345
|
-
result.hostname && !result.pathname) {
|
|
41346
|
-
result.path = result.pathname = '/';
|
|
41347
|
-
}
|
|
41348
|
-
|
|
41349
|
-
result.href = result.format();
|
|
41350
|
-
return result;
|
|
41351
|
-
}
|
|
41352
|
-
|
|
41353
|
-
if (relative.protocol && relative.protocol !== result.protocol) {
|
|
41354
|
-
// if it's a known url protocol, then changing
|
|
41355
|
-
// the protocol does weird things
|
|
41356
|
-
// first, if it's not file:, then we MUST have a host,
|
|
41357
|
-
// and if there was a path
|
|
41358
|
-
// to begin with, then we MUST have a path.
|
|
41359
|
-
// if it is file:, then the host is dropped,
|
|
41360
|
-
// because that's known to be hostless.
|
|
41361
|
-
// anything else is assumed to be absolute.
|
|
41362
|
-
if (!slashedProtocol[relative.protocol]) {
|
|
41363
|
-
var keys = Object.keys(relative);
|
|
41364
|
-
for (var v = 0; v < keys.length; v++) {
|
|
41365
|
-
var k = keys[v];
|
|
41366
|
-
result[k] = relative[k];
|
|
41367
|
-
}
|
|
41368
|
-
result.href = result.format();
|
|
41369
|
-
return result;
|
|
41370
|
-
}
|
|
41371
|
-
|
|
41372
|
-
result.protocol = relative.protocol;
|
|
41373
|
-
if (!relative.host && !hostlessProtocol[relative.protocol]) {
|
|
41374
|
-
var relPath = (relative.pathname || '').split('/');
|
|
41375
|
-
while (relPath.length && !(relative.host = relPath.shift()));
|
|
41376
|
-
if (!relative.host) relative.host = '';
|
|
41377
|
-
if (!relative.hostname) relative.hostname = '';
|
|
41378
|
-
if (relPath[0] !== '') relPath.unshift('');
|
|
41379
|
-
if (relPath.length < 2) relPath.unshift('');
|
|
41380
|
-
result.pathname = relPath.join('/');
|
|
41381
|
-
} else {
|
|
41382
|
-
result.pathname = relative.pathname;
|
|
41383
|
-
}
|
|
41384
|
-
result.search = relative.search;
|
|
41385
|
-
result.query = relative.query;
|
|
41386
|
-
result.host = relative.host || '';
|
|
41387
|
-
result.auth = relative.auth;
|
|
41388
|
-
result.hostname = relative.hostname || relative.host;
|
|
41389
|
-
result.port = relative.port;
|
|
41390
|
-
// to support http.request
|
|
41391
|
-
if (result.pathname || result.search) {
|
|
41392
|
-
var p = result.pathname || '';
|
|
41393
|
-
var s = result.search || '';
|
|
41394
|
-
result.path = p + s;
|
|
41395
|
-
}
|
|
41396
|
-
result.slashes = result.slashes || relative.slashes;
|
|
41397
|
-
result.href = result.format();
|
|
41398
|
-
return result;
|
|
41399
|
-
}
|
|
41400
|
-
|
|
41401
|
-
var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
|
|
41402
|
-
isRelAbs = (
|
|
41403
|
-
relative.host ||
|
|
41404
|
-
relative.pathname && relative.pathname.charAt(0) === '/'
|
|
41405
|
-
),
|
|
41406
|
-
mustEndAbs = (isRelAbs || isSourceAbs ||
|
|
41407
|
-
(result.host && relative.pathname)),
|
|
41408
|
-
removeAllDots = mustEndAbs,
|
|
41409
|
-
srcPath = result.pathname && result.pathname.split('/') || [],
|
|
41410
|
-
relPath = relative.pathname && relative.pathname.split('/') || [],
|
|
41411
|
-
psychotic = result.protocol && !slashedProtocol[result.protocol];
|
|
41412
|
-
|
|
41413
|
-
// if the url is a non-slashed url, then relative
|
|
41414
|
-
// links like ../.. should be able
|
|
41415
|
-
// to crawl up to the hostname, as well. This is strange.
|
|
41416
|
-
// result.protocol has already been set by now.
|
|
41417
|
-
// Later on, put the first path part into the host field.
|
|
41418
|
-
if (psychotic) {
|
|
41419
|
-
result.hostname = '';
|
|
41420
|
-
result.port = null;
|
|
41421
|
-
if (result.host) {
|
|
41422
|
-
if (srcPath[0] === '') srcPath[0] = result.host;
|
|
41423
|
-
else srcPath.unshift(result.host);
|
|
41424
|
-
}
|
|
41425
|
-
result.host = '';
|
|
41426
|
-
if (relative.protocol) {
|
|
41427
|
-
relative.hostname = null;
|
|
41428
|
-
relative.port = null;
|
|
41429
|
-
if (relative.host) {
|
|
41430
|
-
if (relPath[0] === '') relPath[0] = relative.host;
|
|
41431
|
-
else relPath.unshift(relative.host);
|
|
41432
|
-
}
|
|
41433
|
-
relative.host = null;
|
|
41434
|
-
}
|
|
41435
|
-
mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
|
|
41436
|
-
}
|
|
41437
|
-
|
|
41438
|
-
if (isRelAbs) {
|
|
41439
|
-
// it's absolute.
|
|
41440
|
-
result.host = (relative.host || relative.host === '') ?
|
|
41441
|
-
relative.host : result.host;
|
|
41442
|
-
result.hostname = (relative.hostname || relative.hostname === '') ?
|
|
41443
|
-
relative.hostname : result.hostname;
|
|
41444
|
-
result.search = relative.search;
|
|
41445
|
-
result.query = relative.query;
|
|
41446
|
-
srcPath = relPath;
|
|
41447
|
-
// fall through to the dot-handling below.
|
|
41448
|
-
} else if (relPath.length) {
|
|
41449
|
-
// it's relative
|
|
41450
|
-
// throw away the existing file, and take the new path instead.
|
|
41451
|
-
if (!srcPath) srcPath = [];
|
|
41452
|
-
srcPath.pop();
|
|
41453
|
-
srcPath = srcPath.concat(relPath);
|
|
41454
|
-
result.search = relative.search;
|
|
41455
|
-
result.query = relative.query;
|
|
41456
|
-
} else if (!util.isNullOrUndefined(relative.search)) {
|
|
41457
|
-
// just pull out the search.
|
|
41458
|
-
// like href='?foo'.
|
|
41459
|
-
// Put this after the other two cases because it simplifies the booleans
|
|
41460
|
-
if (psychotic) {
|
|
41461
|
-
result.hostname = result.host = srcPath.shift();
|
|
41462
|
-
//occationaly the auth can get stuck only in host
|
|
41463
|
-
//this especially happens in cases like
|
|
41464
|
-
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
41465
|
-
var authInHost = result.host && result.host.indexOf('@') > 0 ?
|
|
41466
|
-
result.host.split('@') : false;
|
|
41467
|
-
if (authInHost) {
|
|
41468
|
-
result.auth = authInHost.shift();
|
|
41469
|
-
result.host = result.hostname = authInHost.shift();
|
|
41470
|
-
}
|
|
41471
|
-
}
|
|
41472
|
-
result.search = relative.search;
|
|
41473
|
-
result.query = relative.query;
|
|
41474
|
-
//to support http.request
|
|
41475
|
-
if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
|
|
41476
|
-
result.path = (result.pathname ? result.pathname : '') +
|
|
41477
|
-
(result.search ? result.search : '');
|
|
41478
|
-
}
|
|
41479
|
-
result.href = result.format();
|
|
41480
|
-
return result;
|
|
41481
|
-
}
|
|
41482
|
-
|
|
41483
|
-
if (!srcPath.length) {
|
|
41484
|
-
// no path at all. easy.
|
|
41485
|
-
// we've already handled the other stuff above.
|
|
41486
|
-
result.pathname = null;
|
|
41487
|
-
//to support http.request
|
|
41488
|
-
if (result.search) {
|
|
41489
|
-
result.path = '/' + result.search;
|
|
41490
|
-
} else {
|
|
41491
|
-
result.path = null;
|
|
41492
|
-
}
|
|
41493
|
-
result.href = result.format();
|
|
41494
|
-
return result;
|
|
41495
|
-
}
|
|
41496
|
-
|
|
41497
|
-
// if a url ENDs in . or .., then it must get a trailing slash.
|
|
41498
|
-
// however, if it ends in anything else non-slashy,
|
|
41499
|
-
// then it must NOT get a trailing slash.
|
|
41500
|
-
var last = srcPath.slice(-1)[0];
|
|
41501
|
-
var hasTrailingSlash = (
|
|
41502
|
-
(result.host || relative.host || srcPath.length > 1) &&
|
|
41503
|
-
(last === '.' || last === '..') || last === '');
|
|
41504
|
-
|
|
41505
|
-
// strip single dots, resolve double dots to parent dir
|
|
41506
|
-
// if the path tries to go above the root, `up` ends up > 0
|
|
41507
|
-
var up = 0;
|
|
41508
|
-
for (var i = srcPath.length; i >= 0; i--) {
|
|
41509
|
-
last = srcPath[i];
|
|
41510
|
-
if (last === '.') {
|
|
41511
|
-
srcPath.splice(i, 1);
|
|
41512
|
-
} else if (last === '..') {
|
|
41513
|
-
srcPath.splice(i, 1);
|
|
41514
|
-
up++;
|
|
41515
|
-
} else if (up) {
|
|
41516
|
-
srcPath.splice(i, 1);
|
|
41517
|
-
up--;
|
|
41518
|
-
}
|
|
41519
|
-
}
|
|
41520
|
-
|
|
41521
|
-
// if the path is allowed to go above the root, restore leading ..s
|
|
41522
|
-
if (!mustEndAbs && !removeAllDots) {
|
|
41523
|
-
for (; up--; up) {
|
|
41524
|
-
srcPath.unshift('..');
|
|
41525
|
-
}
|
|
41526
|
-
}
|
|
41527
|
-
|
|
41528
|
-
if (mustEndAbs && srcPath[0] !== '' &&
|
|
41529
|
-
(!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
|
|
41530
|
-
srcPath.unshift('');
|
|
41531
|
-
}
|
|
41532
|
-
|
|
41533
|
-
if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
|
|
41534
|
-
srcPath.push('');
|
|
41535
|
-
}
|
|
41536
|
-
|
|
41537
|
-
var isAbsolute = srcPath[0] === '' ||
|
|
41538
|
-
(srcPath[0] && srcPath[0].charAt(0) === '/');
|
|
41539
|
-
|
|
41540
|
-
// put the host back
|
|
41541
|
-
if (psychotic) {
|
|
41542
|
-
result.hostname = result.host = isAbsolute ? '' :
|
|
41543
|
-
srcPath.length ? srcPath.shift() : '';
|
|
41544
|
-
//occationaly the auth can get stuck only in host
|
|
41545
|
-
//this especially happens in cases like
|
|
41546
|
-
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
41547
|
-
var authInHost = result.host && result.host.indexOf('@') > 0 ?
|
|
41548
|
-
result.host.split('@') : false;
|
|
41549
|
-
if (authInHost) {
|
|
41550
|
-
result.auth = authInHost.shift();
|
|
41551
|
-
result.host = result.hostname = authInHost.shift();
|
|
41552
|
-
}
|
|
41553
|
-
}
|
|
41554
|
-
|
|
41555
|
-
mustEndAbs = mustEndAbs || (result.host && srcPath.length);
|
|
41556
|
-
|
|
41557
|
-
if (mustEndAbs && !isAbsolute) {
|
|
41558
|
-
srcPath.unshift('');
|
|
41559
|
-
}
|
|
41560
|
-
|
|
41561
|
-
if (!srcPath.length) {
|
|
41562
|
-
result.pathname = null;
|
|
41563
|
-
result.path = null;
|
|
41564
|
-
} else {
|
|
41565
|
-
result.pathname = srcPath.join('/');
|
|
41566
|
-
}
|
|
41567
|
-
|
|
41568
|
-
//to support request.http
|
|
41569
|
-
if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
|
|
41570
|
-
result.path = (result.pathname ? result.pathname : '') +
|
|
41571
|
-
(result.search ? result.search : '');
|
|
41572
|
-
}
|
|
41573
|
-
result.auth = relative.auth || result.auth;
|
|
41574
|
-
result.slashes = result.slashes || relative.slashes;
|
|
41575
|
-
result.href = result.format();
|
|
41576
|
-
return result;
|
|
41577
|
-
};
|
|
41578
|
-
|
|
41579
|
-
Url.prototype.parseHost = function() {
|
|
41580
|
-
var host = this.host;
|
|
41581
|
-
var port = portPattern.exec(host);
|
|
41582
|
-
if (port) {
|
|
41583
|
-
port = port[0];
|
|
41584
|
-
if (port !== ':') {
|
|
41585
|
-
this.port = port.substr(1);
|
|
41586
|
-
}
|
|
41587
|
-
host = host.substr(0, host.length - port.length);
|
|
41588
|
-
}
|
|
41589
|
-
if (host) this.hostname = host;
|
|
41590
|
-
};
|
|
41591
|
-
|
|
41592
|
-
|
|
41593
|
-
/***/ }),
|
|
41594
|
-
|
|
41595
|
-
/***/ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/util.js":
|
|
41596
|
-
/*!****************************************************************************************!*\
|
|
41597
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/util.js ***!
|
|
41598
|
-
\****************************************************************************************/
|
|
41599
|
-
/*! no static exports found */
|
|
41600
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
41601
|
-
|
|
41602
|
-
"use strict";
|
|
41603
|
-
|
|
41604
|
-
|
|
41605
|
-
module.exports = {
|
|
41606
|
-
isString: function(arg) {
|
|
41607
|
-
return typeof(arg) === 'string';
|
|
41608
|
-
},
|
|
41609
|
-
isObject: function(arg) {
|
|
41610
|
-
return typeof(arg) === 'object' && arg !== null;
|
|
41611
|
-
},
|
|
41612
|
-
isNull: function(arg) {
|
|
41613
|
-
return arg === null;
|
|
41614
|
-
},
|
|
41615
|
-
isNullOrUndefined: function(arg) {
|
|
41616
|
-
return arg == null;
|
|
41617
|
-
}
|
|
41618
|
-
};
|
|
41619
|
-
|
|
41620
|
-
|
|
41621
38813
|
/***/ }),
|
|
41622
38814
|
|
|
41623
38815
|
/***/ "../../common/temp/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js":
|
|
@@ -41728,39 +38920,6 @@ try {
|
|
|
41728
38920
|
module.exports = g;
|
|
41729
38921
|
|
|
41730
38922
|
|
|
41731
|
-
/***/ }),
|
|
41732
|
-
|
|
41733
|
-
/***/ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/module.js":
|
|
41734
|
-
/*!***********************************!*\
|
|
41735
|
-
!*** (webpack)/buildin/module.js ***!
|
|
41736
|
-
\***********************************/
|
|
41737
|
-
/*! no static exports found */
|
|
41738
|
-
/***/ (function(module, exports) {
|
|
41739
|
-
|
|
41740
|
-
module.exports = function(module) {
|
|
41741
|
-
if (!module.webpackPolyfill) {
|
|
41742
|
-
module.deprecate = function() {};
|
|
41743
|
-
module.paths = [];
|
|
41744
|
-
// module.parent = undefined by default
|
|
41745
|
-
if (!module.children) module.children = [];
|
|
41746
|
-
Object.defineProperty(module, "loaded", {
|
|
41747
|
-
enumerable: true,
|
|
41748
|
-
get: function() {
|
|
41749
|
-
return module.l;
|
|
41750
|
-
}
|
|
41751
|
-
});
|
|
41752
|
-
Object.defineProperty(module, "id", {
|
|
41753
|
-
enumerable: true,
|
|
41754
|
-
get: function() {
|
|
41755
|
-
return module.i;
|
|
41756
|
-
}
|
|
41757
|
-
});
|
|
41758
|
-
module.webpackPolyfill = 1;
|
|
41759
|
-
}
|
|
41760
|
-
return module;
|
|
41761
|
-
};
|
|
41762
|
-
|
|
41763
|
-
|
|
41764
38923
|
/***/ }),
|
|
41765
38924
|
|
|
41766
38925
|
/***/ "../../common/temp/node_modules/.pnpm/wms-capabilities@0.4.0/node_modules/wms-capabilities/dist/wms-capabilities.min.js":
|
|
@@ -42654,36 +39813,6 @@ module.exports = function(xml, userOptions) {
|
|
|
42654
39813
|
};
|
|
42655
39814
|
|
|
42656
39815
|
|
|
42657
|
-
/***/ }),
|
|
42658
|
-
|
|
42659
|
-
/***/ "../../common/temp/node_modules/.pnpm/xtend@4.0.2/node_modules/xtend/immutable.js":
|
|
42660
|
-
/*!************************************************************************************************!*\
|
|
42661
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/xtend@4.0.2/node_modules/xtend/immutable.js ***!
|
|
42662
|
-
\************************************************************************************************/
|
|
42663
|
-
/*! no static exports found */
|
|
42664
|
-
/***/ (function(module, exports) {
|
|
42665
|
-
|
|
42666
|
-
module.exports = extend
|
|
42667
|
-
|
|
42668
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
42669
|
-
|
|
42670
|
-
function extend() {
|
|
42671
|
-
var target = {}
|
|
42672
|
-
|
|
42673
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
42674
|
-
var source = arguments[i]
|
|
42675
|
-
|
|
42676
|
-
for (var key in source) {
|
|
42677
|
-
if (hasOwnProperty.call(source, key)) {
|
|
42678
|
-
target[key] = source[key]
|
|
42679
|
-
}
|
|
42680
|
-
}
|
|
42681
|
-
}
|
|
42682
|
-
|
|
42683
|
-
return target
|
|
42684
|
-
}
|
|
42685
|
-
|
|
42686
|
-
|
|
42687
39816
|
/***/ }),
|
|
42688
39817
|
|
|
42689
39818
|
/***/ "../../core/bentley/lib/esm/AccessToken.js":
|
|
@@ -49791,159 +46920,158 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49791
46920
|
* @note If your colors don't look right, likely you're using 0xRRGGBB where ColorDef expects 0xBBGGRR.
|
|
49792
46921
|
* @public
|
|
49793
46922
|
*/
|
|
49794
|
-
|
|
49795
|
-
|
|
49796
|
-
|
|
49797
|
-
|
|
49798
|
-
|
|
49799
|
-
|
|
49800
|
-
|
|
49801
|
-
|
|
49802
|
-
|
|
49803
|
-
|
|
49804
|
-
|
|
49805
|
-
|
|
49806
|
-
|
|
49807
|
-
|
|
49808
|
-
|
|
49809
|
-
|
|
49810
|
-
|
|
49811
|
-
|
|
49812
|
-
|
|
49813
|
-
|
|
49814
|
-
|
|
49815
|
-
|
|
49816
|
-
|
|
49817
|
-
|
|
49818
|
-
|
|
49819
|
-
|
|
49820
|
-
|
|
49821
|
-
|
|
49822
|
-
|
|
49823
|
-
|
|
49824
|
-
|
|
49825
|
-
|
|
49826
|
-
|
|
49827
|
-
|
|
49828
|
-
|
|
49829
|
-
|
|
49830
|
-
|
|
49831
|
-
|
|
49832
|
-
|
|
49833
|
-
|
|
49834
|
-
|
|
49835
|
-
|
|
49836
|
-
|
|
49837
|
-
|
|
49838
|
-
|
|
49839
|
-
|
|
49840
|
-
|
|
49841
|
-
|
|
49842
|
-
|
|
49843
|
-
|
|
49844
|
-
|
|
49845
|
-
|
|
49846
|
-
|
|
49847
|
-
|
|
49848
|
-
|
|
49849
|
-
|
|
49850
|
-
|
|
49851
|
-
|
|
49852
|
-
|
|
49853
|
-
|
|
49854
|
-
|
|
49855
|
-
|
|
49856
|
-
|
|
49857
|
-
|
|
49858
|
-
|
|
49859
|
-
|
|
49860
|
-
|
|
49861
|
-
|
|
49862
|
-
|
|
49863
|
-
|
|
49864
|
-
|
|
49865
|
-
|
|
49866
|
-
|
|
49867
|
-
|
|
49868
|
-
|
|
49869
|
-
|
|
49870
|
-
|
|
49871
|
-
|
|
49872
|
-
|
|
49873
|
-
|
|
49874
|
-
|
|
49875
|
-
|
|
49876
|
-
|
|
49877
|
-
|
|
49878
|
-
|
|
49879
|
-
|
|
49880
|
-
|
|
49881
|
-
|
|
49882
|
-
|
|
49883
|
-
|
|
49884
|
-
|
|
49885
|
-
|
|
49886
|
-
|
|
49887
|
-
|
|
49888
|
-
|
|
49889
|
-
|
|
49890
|
-
|
|
49891
|
-
|
|
49892
|
-
|
|
49893
|
-
|
|
49894
|
-
|
|
49895
|
-
|
|
49896
|
-
|
|
49897
|
-
|
|
49898
|
-
|
|
49899
|
-
|
|
49900
|
-
|
|
49901
|
-
|
|
49902
|
-
|
|
49903
|
-
|
|
49904
|
-
|
|
49905
|
-
|
|
49906
|
-
|
|
49907
|
-
|
|
49908
|
-
|
|
49909
|
-
|
|
49910
|
-
|
|
49911
|
-
|
|
49912
|
-
|
|
49913
|
-
|
|
49914
|
-
|
|
49915
|
-
|
|
49916
|
-
|
|
49917
|
-
|
|
49918
|
-
|
|
49919
|
-
|
|
49920
|
-
|
|
49921
|
-
|
|
49922
|
-
|
|
49923
|
-
|
|
49924
|
-
|
|
49925
|
-
|
|
49926
|
-
|
|
49927
|
-
|
|
49928
|
-
|
|
49929
|
-
|
|
49930
|
-
|
|
49931
|
-
|
|
49932
|
-
|
|
49933
|
-
|
|
49934
|
-
|
|
49935
|
-
|
|
49936
|
-
|
|
49937
|
-
|
|
49938
|
-
|
|
49939
|
-
|
|
49940
|
-
|
|
49941
|
-
|
|
49942
|
-
|
|
49943
|
-
|
|
49944
|
-
|
|
49945
|
-
|
|
49946
|
-
})(ColorByName || (ColorByName = {}));
|
|
46923
|
+
const ColorByName = {
|
|
46924
|
+
aliceBlue: 0xFFF8F0,
|
|
46925
|
+
amber: 0x00BFFF,
|
|
46926
|
+
antiqueWhite: 0xD7EBFA,
|
|
46927
|
+
aqua: 0xFFFF00,
|
|
46928
|
+
aquamarine: 0xD4FF7F,
|
|
46929
|
+
azure: 0xFFFFF0,
|
|
46930
|
+
beige: 0xDCF5F5,
|
|
46931
|
+
bisque: 0xC4E4FF,
|
|
46932
|
+
black: 0x000000,
|
|
46933
|
+
blanchedAlmond: 0xCDEBFF,
|
|
46934
|
+
blue: 0xFF0000,
|
|
46935
|
+
blueViolet: 0xE22B8A,
|
|
46936
|
+
brown: 0x2A2AA5,
|
|
46937
|
+
burlyWood: 0x87B8DE,
|
|
46938
|
+
cadetBlue: 0xA09E5F,
|
|
46939
|
+
chartreuse: 0x00FF7F,
|
|
46940
|
+
chocolate: 0x1E69D2,
|
|
46941
|
+
coral: 0x507FFF,
|
|
46942
|
+
cornflowerBlue: 0xED9564,
|
|
46943
|
+
cornSilk: 0xDCF8FF,
|
|
46944
|
+
crimson: 0x3C14DC,
|
|
46945
|
+
cyan: 0xFFFF00,
|
|
46946
|
+
darkBlue: 0x8B0000,
|
|
46947
|
+
darkBrown: 0x214365,
|
|
46948
|
+
darkCyan: 0x8B8B00,
|
|
46949
|
+
darkGoldenrod: 0x0B86B8,
|
|
46950
|
+
darkGray: 0xA9A9A9,
|
|
46951
|
+
darkGreen: 0x006400,
|
|
46952
|
+
darkGrey: 0xA9A9A9,
|
|
46953
|
+
darkKhaki: 0x6BB7BD,
|
|
46954
|
+
darkMagenta: 0x8B008B,
|
|
46955
|
+
darkOliveGreen: 0x2F6B55,
|
|
46956
|
+
darkOrange: 0x008CFF,
|
|
46957
|
+
darkOrchid: 0xCC3299,
|
|
46958
|
+
darkRed: 0x00008B,
|
|
46959
|
+
darkSalmon: 0x7A96E9,
|
|
46960
|
+
darkSeagreen: 0x8FBC8F,
|
|
46961
|
+
darkSlateBlue: 0x8B3D48,
|
|
46962
|
+
darkSlateGray: 0x4F4F2F,
|
|
46963
|
+
darkSlateGrey: 0x4F4F2F,
|
|
46964
|
+
darkTurquoise: 0xD1CE00,
|
|
46965
|
+
darkViolet: 0xD30094,
|
|
46966
|
+
deepPink: 0x9314FF,
|
|
46967
|
+
deepSkyBlue: 0xFFBF00,
|
|
46968
|
+
dimGray: 0x696969,
|
|
46969
|
+
dimGrey: 0x696969,
|
|
46970
|
+
dodgerBlue: 0xFF901E,
|
|
46971
|
+
fireBrick: 0x2222B2,
|
|
46972
|
+
floralWhite: 0xF0FAFF,
|
|
46973
|
+
forestGreen: 0x228B22,
|
|
46974
|
+
fuchsia: 0xFF00FF,
|
|
46975
|
+
gainsboro: 0xDCDCDC,
|
|
46976
|
+
ghostWhite: 0xFFF8F8,
|
|
46977
|
+
gold: 0x00D7FF,
|
|
46978
|
+
goldenrod: 0x20A5DA,
|
|
46979
|
+
gray: 0x808080,
|
|
46980
|
+
green: 0x008000,
|
|
46981
|
+
greenYellow: 0x2FFFAD,
|
|
46982
|
+
grey: 0x808080,
|
|
46983
|
+
honeydew: 0xF0FFF0,
|
|
46984
|
+
hotPink: 0xB469FF,
|
|
46985
|
+
indianRed: 0x5C5CCD,
|
|
46986
|
+
indigo: 0x82004B,
|
|
46987
|
+
ivory: 0xF0FFFF,
|
|
46988
|
+
khaki: 0x8CE6F0,
|
|
46989
|
+
lavender: 0xFAE6E6,
|
|
46990
|
+
lavenderBlush: 0xF5F0FF,
|
|
46991
|
+
lawnGreen: 0x00FC7C,
|
|
46992
|
+
lemonChiffon: 0xCDFAFF,
|
|
46993
|
+
lightBlue: 0xE6D8AD,
|
|
46994
|
+
lightCoral: 0x8080F0,
|
|
46995
|
+
lightCyan: 0xFFFFE0,
|
|
46996
|
+
lightGoldenrodYellow: 0xD2FAFA,
|
|
46997
|
+
lightGray: 0xD3D3D3,
|
|
46998
|
+
lightGreen: 0x90EE90,
|
|
46999
|
+
lightGrey: 0xD3D3D3,
|
|
47000
|
+
lightPink: 0xC1B6FF,
|
|
47001
|
+
lightSalmon: 0x7AA0FF,
|
|
47002
|
+
lightSeagreen: 0xAAB220,
|
|
47003
|
+
lightSkyBlue: 0xFACE87,
|
|
47004
|
+
lightSlateGray: 0x998877,
|
|
47005
|
+
lightSlateGrey: 0x998877,
|
|
47006
|
+
lightSteelBlue: 0xDEC4B0,
|
|
47007
|
+
lightyellow: 0xE0FFFF,
|
|
47008
|
+
lime: 0x00FF00,
|
|
47009
|
+
limeGreen: 0x32CD32,
|
|
47010
|
+
linen: 0xE6F0FA,
|
|
47011
|
+
magenta: 0xFF00FF,
|
|
47012
|
+
maroon: 0x000080,
|
|
47013
|
+
mediumAquamarine: 0xAACD66,
|
|
47014
|
+
mediumBlue: 0xCD0000,
|
|
47015
|
+
mediumOrchid: 0xD355BA,
|
|
47016
|
+
mediumPurple: 0xDB7093,
|
|
47017
|
+
mediumSeaGreen: 0x71B33C,
|
|
47018
|
+
mediumSlateBlue: 0xEE687B,
|
|
47019
|
+
mediumSpringGreen: 0x9AFA00,
|
|
47020
|
+
mediumTurquoise: 0xCCD148,
|
|
47021
|
+
mediumVioletRed: 0x8515C7,
|
|
47022
|
+
midnightBlue: 0x701919,
|
|
47023
|
+
mintCream: 0xFAFFF5,
|
|
47024
|
+
mistyRose: 0xE1E4FF,
|
|
47025
|
+
moccasin: 0xB5E4FF,
|
|
47026
|
+
navajoWhite: 0xADDEFF,
|
|
47027
|
+
navy: 0x800000,
|
|
47028
|
+
oldLace: 0xE6F5FD,
|
|
47029
|
+
olive: 0x008080,
|
|
47030
|
+
oliveDrab: 0x238E6B,
|
|
47031
|
+
orange: 0x00A5FF,
|
|
47032
|
+
orangeRed: 0x0045FF,
|
|
47033
|
+
orchid: 0xD670DA,
|
|
47034
|
+
paleGoldenrod: 0xAAE8EE,
|
|
47035
|
+
paleGreen: 0x98FB98,
|
|
47036
|
+
paleTurquoise: 0xEEEEAF,
|
|
47037
|
+
paleVioletRed: 0x9370DB,
|
|
47038
|
+
papayaWhip: 0xD5EFFF,
|
|
47039
|
+
peachPuff: 0xB9DAFF,
|
|
47040
|
+
peru: 0x3F85CD,
|
|
47041
|
+
pink: 0xCBC0FF,
|
|
47042
|
+
plum: 0xDDA0DD,
|
|
47043
|
+
powderBlue: 0xE6E0B0,
|
|
47044
|
+
purple: 0x800080,
|
|
47045
|
+
rebeccaPurple: 0x993366,
|
|
47046
|
+
red: 0x0000FF,
|
|
47047
|
+
rosyBrown: 0x8F8FBC,
|
|
47048
|
+
royalBlue: 0xE16941,
|
|
47049
|
+
saddleBrown: 0x13458B,
|
|
47050
|
+
salmon: 0x7280FA,
|
|
47051
|
+
sandyBrown: 0x60A4F4,
|
|
47052
|
+
seaGreen: 0x578B2E,
|
|
47053
|
+
seaShell: 0xEEF5FF,
|
|
47054
|
+
sienna: 0x2D52A0,
|
|
47055
|
+
silver: 0xC0C0C0,
|
|
47056
|
+
skyBlue: 0xEBCE87,
|
|
47057
|
+
slateBlue: 0xCD5A6A,
|
|
47058
|
+
slateGray: 0x908070,
|
|
47059
|
+
slateGrey: 0x908070,
|
|
47060
|
+
snow: 0xFAFAFF,
|
|
47061
|
+
springGreen: 0x7FFF00,
|
|
47062
|
+
steelBlue: 0xB48246,
|
|
47063
|
+
tan: 0x8CB4D2,
|
|
47064
|
+
teal: 0x808000,
|
|
47065
|
+
thistle: 0xD8BFD8,
|
|
47066
|
+
tomato: 0x4763FF,
|
|
47067
|
+
turquoise: 0xD0E040,
|
|
47068
|
+
violet: 0xEE82EE,
|
|
47069
|
+
wheat: 0xB3DEF5,
|
|
47070
|
+
white: 0xFFFFFF,
|
|
47071
|
+
whiteSmoke: 0xF5F5F5,
|
|
47072
|
+
yellow: 0x00FFFF,
|
|
47073
|
+
yellowGreen: 0x32CD9A,
|
|
47074
|
+
};
|
|
49947
47075
|
|
|
49948
47076
|
|
|
49949
47077
|
/***/ }),
|
|
@@ -49979,19 +47107,21 @@ const scratchBytes = new Uint8Array(4);
|
|
|
49979
47107
|
const scratchUInt32 = new Uint32Array(scratchBytes.buffer);
|
|
49980
47108
|
/** An immutable integer representation of a color.
|
|
49981
47109
|
*
|
|
49982
|
-
*
|
|
47110
|
+
* A color consists of 4 components: Red, Blue, Green, and Transparency. Each component is an 8-bit unsigned integer in the range [0..255]. A value of zero means that component contributes nothing
|
|
47111
|
+
* to the color: e.g., a color with Red=0 contains no shade of red, and a color with Transparency=0 is fully opaque. A value of 255 means that component contributes its maximum
|
|
47112
|
+
* value to the color: e.g., a color with Red=255 is as red as it is possible to be, and a color with Transparency=255 is fully transparent.
|
|
49983
47113
|
*
|
|
49984
|
-
*
|
|
49985
|
-
* of
|
|
49986
|
-
* 1. The ordering of the Red, Green, Blue bytes; and
|
|
47114
|
+
* Internally, these 4 components are combined into a single 32-bit unsigned integer as represented by [[ColorDefProps]]. This representation can result in some confusion regarding:
|
|
47115
|
+
* 1. The ordering of the individual components; and
|
|
49987
47116
|
* 2. Whether to specify transparency or opacity (sometimes referred to as "alpha").
|
|
49988
47117
|
*
|
|
49989
|
-
* ColorDef uses `0xTTBBGGRR`
|
|
49990
|
-
*
|
|
47118
|
+
* ColorDef uses `0xTTBBGGRR` internally, which uses Transparency and puts Red in the low byte and Transparency in the high byte. It can be converted to `0xRRGGBB` format (blue in the low byte)
|
|
47119
|
+
* using [[getRgb]] and `0xAABBGGRRx format (red in the low byte, using opacity instead of transparency) using [[getAbgr]].
|
|
49991
47120
|
*
|
|
49992
|
-
*
|
|
47121
|
+
* A ColorDef can be created from a numeric [[ColorDefProps]], from a string in one of the common HTML formats (e.g., [[fromString]]), or by specifying values for the individual components
|
|
47122
|
+
* (e.g., [[from]]).
|
|
49993
47123
|
*
|
|
49994
|
-
* ColorDef is immutable
|
|
47124
|
+
* ColorDef is **immutable**. To obtain a modified copy of a ColorDef, use methods like [[adjustedForContrast]], [[inverse]], or [[withTransparency]]. For example:
|
|
49995
47125
|
* ```ts
|
|
49996
47126
|
* const semiTransparentBlue = ColorDef.blue.withTransparency(100);
|
|
49997
47127
|
* ```
|
|
@@ -50006,14 +47136,7 @@ class ColorDef {
|
|
|
50006
47136
|
* Create a new ColorDef.
|
|
50007
47137
|
* @param val value to use.
|
|
50008
47138
|
* If a number, it is interpreted as a 0xTTBBGGRR (Red in the low byte, high byte is transparency 0==fully opaque) value.
|
|
50009
|
-
*
|
|
50010
|
-
* If a string, must be in one of the following forms:
|
|
50011
|
-
* *"rgb(255,0,0)"*
|
|
50012
|
-
* *"rgba(255,0,0,.2)"*
|
|
50013
|
-
* *"rgb(100%,0%,0%)"*
|
|
50014
|
-
* *"hsl(120,50%,50%)"*
|
|
50015
|
-
* *"#rrggbb"*
|
|
50016
|
-
* *"blanchedAlmond"* (see possible values from [[ColorByName]]). Case insensitive.
|
|
47139
|
+
* If a string, it must be in one of the forms supported by [[fromString]] - any unrecognized string will produce [[black]].
|
|
50017
47140
|
*/
|
|
50018
47141
|
static create(val) {
|
|
50019
47142
|
return this.fromTbgr(this.computeTbgr(val));
|
|
@@ -50071,21 +47194,38 @@ class ColorDef {
|
|
|
50071
47194
|
* *"hsl(120,50%,50%)"*
|
|
50072
47195
|
* *"#rrbbgg"*
|
|
50073
47196
|
* *"blanchedAlmond"* (see possible values from [[ColorByName]]). Case-insensitive.
|
|
47197
|
+
*
|
|
47198
|
+
* If `val` is not a valid color string, this function returns [[black]].
|
|
47199
|
+
* @see [[isValidColor]] to determine if `val` is a valid color string.
|
|
50074
47200
|
*/
|
|
50075
47201
|
static fromString(val) {
|
|
50076
47202
|
return this.fromTbgr(this.computeTbgrFromString(val));
|
|
50077
47203
|
}
|
|
50078
|
-
/**
|
|
50079
|
-
*
|
|
50080
|
-
*
|
|
50081
|
-
|
|
50082
|
-
|
|
50083
|
-
|
|
50084
|
-
|
|
47204
|
+
/** Determine whether the input is a valid representation of a ColorDef.
|
|
47205
|
+
* @see [[fromString]] for the definition of a valid string representation.
|
|
47206
|
+
* @see [[ColorDefProps]] for the definition of a valid numeric representation.
|
|
47207
|
+
*/
|
|
47208
|
+
static isValidColor(val) {
|
|
47209
|
+
if (typeof val === "number")
|
|
47210
|
+
return val >= 0 && val <= 0xffffffff && Math.floor(val) === val;
|
|
47211
|
+
return undefined !== this.tryComputeTbgrFromString(val);
|
|
47212
|
+
}
|
|
47213
|
+
/** Compute the 0xTTBBGGRR value corresponding to a string representation of a color.
|
|
47214
|
+
* If `val` is not a valid color string, this function returns 0 (black).
|
|
47215
|
+
* @see [[fromString]] for the definition of a valid color string.
|
|
47216
|
+
* @see [[tryComputeTbgrFromString]] to determine if `val` is a valid color string.
|
|
50085
47217
|
*/
|
|
50086
47218
|
static computeTbgrFromString(val) {
|
|
47219
|
+
var _a;
|
|
47220
|
+
return (_a = this.tryComputeTbgrFromString(val)) !== null && _a !== void 0 ? _a : 0;
|
|
47221
|
+
}
|
|
47222
|
+
/** Try to compute the 0xTTBBGGRR value corresponding to a string representation of a ColorDef.
|
|
47223
|
+
* @returns the corresponding numeric representation, or `undefined` if the input does not represent a color.
|
|
47224
|
+
* @see [[fromString]] for the definition of a valid color string.
|
|
47225
|
+
*/
|
|
47226
|
+
static tryComputeTbgrFromString(val) {
|
|
50087
47227
|
if (typeof val !== "string")
|
|
50088
|
-
return
|
|
47228
|
+
return undefined;
|
|
50089
47229
|
val = val.toLowerCase();
|
|
50090
47230
|
let m = /^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(val);
|
|
50091
47231
|
if (m) { // rgb / hsl
|
|
@@ -50134,13 +47274,13 @@ class ColorDef {
|
|
|
50134
47274
|
}
|
|
50135
47275
|
}
|
|
50136
47276
|
if (val && val.length > 0) { // ColorRgb value
|
|
50137
|
-
const
|
|
50138
|
-
|
|
50139
|
-
|
|
47277
|
+
for (const [key, value] of Object.entries(_ColorByName__WEBPACK_IMPORTED_MODULE_1__["ColorByName"]))
|
|
47278
|
+
if (key.toLowerCase() === val)
|
|
47279
|
+
return value;
|
|
50140
47280
|
}
|
|
50141
|
-
return
|
|
47281
|
+
return undefined;
|
|
50142
47282
|
}
|
|
50143
|
-
/** Get the
|
|
47283
|
+
/** Get the red, green, blue, and transparency values from this ColorDef. Values will be integers between 0-255. */
|
|
50144
47284
|
get colors() {
|
|
50145
47285
|
return ColorDef.getColors(this._tbgr);
|
|
50146
47286
|
}
|
|
@@ -50237,9 +47377,14 @@ class ColorDef {
|
|
|
50237
47377
|
get name() {
|
|
50238
47378
|
return ColorDef.getName(this.tbgr);
|
|
50239
47379
|
}
|
|
50240
|
-
/** Obtain the name of the color in the [[ColorByName]] list associated with the specified 0xTTBBGGRR value, or undefined if no such named color exists.
|
|
47380
|
+
/** Obtain the name of the color in the [[ColorByName]] list associated with the specified 0xTTBBGGRR value, or undefined if no such named color exists.
|
|
47381
|
+
* @note A handful of colors (like "aqua" and "cyan") have identical tbgr values; in such cases the first match will be returned.
|
|
47382
|
+
*/
|
|
50241
47383
|
static getName(tbgr) {
|
|
50242
|
-
|
|
47384
|
+
for (const [key, value] of Object.entries(_ColorByName__WEBPACK_IMPORTED_MODULE_1__["ColorByName"]))
|
|
47385
|
+
if (value === tbgr)
|
|
47386
|
+
return key;
|
|
47387
|
+
return undefined;
|
|
50243
47388
|
}
|
|
50244
47389
|
/** Convert this ColorDef to a string in the form "#rrggbb" where values are hex digits of the respective colors */
|
|
50245
47390
|
toHexString() {
|
|
@@ -74041,10 +71186,12 @@ RpcInvocation.runActivity = async (_activity, fn) => fn();
|
|
|
74041
71186
|
|
|
74042
71187
|
"use strict";
|
|
74043
71188
|
__webpack_require__.r(__webpack_exports__);
|
|
74044
|
-
/*
|
|
71189
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MarshalingBinaryMarker", function() { return MarshalingBinaryMarker; });
|
|
74045
71190
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RpcSerializedValue", function() { return RpcSerializedValue; });
|
|
74046
71191
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RpcMarshaling", function() { return RpcMarshaling; });
|
|
74047
|
-
/* harmony import */ var
|
|
71192
|
+
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ "../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js");
|
|
71193
|
+
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__);
|
|
71194
|
+
/* harmony import */ var _IModelError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../IModelError */ "../../core/common/lib/esm/IModelError.js");
|
|
74048
71195
|
/*---------------------------------------------------------------------------------------------
|
|
74049
71196
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
74050
71197
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -74053,6 +71200,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
74053
71200
|
* @module RpcInterface
|
|
74054
71201
|
*/
|
|
74055
71202
|
|
|
71203
|
+
|
|
74056
71204
|
// cspell:ignore unmarshal
|
|
74057
71205
|
let marshalingTarget;
|
|
74058
71206
|
let chunkThreshold = 0;
|
|
@@ -74101,7 +71249,7 @@ class RpcMarshaling {
|
|
|
74101
71249
|
}
|
|
74102
71250
|
catch (error) {
|
|
74103
71251
|
if (error instanceof SyntaxError)
|
|
74104
|
-
throw new
|
|
71252
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_IModelError__WEBPACK_IMPORTED_MODULE_1__["BentleyStatus"].ERROR, `Invalid JSON: "${value.objects}"`);
|
|
74105
71253
|
throw error;
|
|
74106
71254
|
}
|
|
74107
71255
|
marshalingTarget = undefined;
|
|
@@ -74130,7 +71278,7 @@ class WireFormat {
|
|
|
74130
71278
|
return value;
|
|
74131
71279
|
}
|
|
74132
71280
|
static marshalBinary(value) {
|
|
74133
|
-
if (value instanceof Uint8Array || Buffer.isBuffer(value)) {
|
|
71281
|
+
if (value instanceof Uint8Array || buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].isBuffer(value)) {
|
|
74134
71282
|
const marker = { isBinary: true, index: -1, size: value.byteLength, chunks: 1 };
|
|
74135
71283
|
if (chunkThreshold && value.byteLength > chunkThreshold) {
|
|
74136
71284
|
marker.index = marshalingTarget.data.length;
|
|
@@ -74161,7 +71309,7 @@ class WireFormat {
|
|
|
74161
71309
|
}
|
|
74162
71310
|
static unmarshalBinary(value) {
|
|
74163
71311
|
if (value.index >= marshalingTarget.data.length) {
|
|
74164
|
-
throw new
|
|
71312
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_IModelError__WEBPACK_IMPORTED_MODULE_1__["BentleyStatus"].ERROR, `Cannot unmarshal missing binary value.`);
|
|
74165
71313
|
}
|
|
74166
71314
|
if (value.chunks === 0) {
|
|
74167
71315
|
return new Uint8Array();
|
|
@@ -74194,7 +71342,6 @@ class WireFormat {
|
|
|
74194
71342
|
}
|
|
74195
71343
|
}
|
|
74196
71344
|
|
|
74197
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js */ "../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js").Buffer))
|
|
74198
71345
|
|
|
74199
71346
|
/***/ }),
|
|
74200
71347
|
|
|
@@ -75548,13 +72695,11 @@ class BentleyCloudRpcManager extends _RpcManager__WEBPACK_IMPORTED_MODULE_0__["R
|
|
|
75548
72695
|
"use strict";
|
|
75549
72696
|
__webpack_require__.r(__webpack_exports__);
|
|
75550
72697
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BentleyCloudRpcProtocol", function() { return BentleyCloudRpcProtocol; });
|
|
75551
|
-
/* harmony import */ var
|
|
75552
|
-
/* harmony import */ var
|
|
75553
|
-
/* harmony import */ var
|
|
75554
|
-
/* harmony import */ var
|
|
75555
|
-
/* harmony import */ var
|
|
75556
|
-
/* harmony import */ var _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/RpcOperation */ "../../core/common/lib/esm/rpc/core/RpcOperation.js");
|
|
75557
|
-
/* harmony import */ var _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WebAppRpcProtocol */ "../../core/common/lib/esm/rpc/web/WebAppRpcProtocol.js");
|
|
72698
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
72699
|
+
/* harmony import */ var _IModelError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../IModelError */ "../../core/common/lib/esm/IModelError.js");
|
|
72700
|
+
/* harmony import */ var _core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConfiguration */ "../../core/common/lib/esm/rpc/core/RpcConfiguration.js");
|
|
72701
|
+
/* harmony import */ var _core_RpcOperation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcOperation */ "../../core/common/lib/esm/rpc/core/RpcOperation.js");
|
|
72702
|
+
/* harmony import */ var _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WebAppRpcProtocol */ "../../core/common/lib/esm/rpc/web/WebAppRpcProtocol.js");
|
|
75558
72703
|
/*---------------------------------------------------------------------------------------------
|
|
75559
72704
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
75560
72705
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -75567,7 +72712,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75567
72712
|
|
|
75568
72713
|
|
|
75569
72714
|
|
|
75570
|
-
|
|
75571
72715
|
var AppMode;
|
|
75572
72716
|
(function (AppMode) {
|
|
75573
72717
|
AppMode["MilestoneReview"] = "1";
|
|
@@ -75575,7 +72719,7 @@ var AppMode;
|
|
|
75575
72719
|
/** An http protocol for Bentley cloud RPC interface deployments.
|
|
75576
72720
|
* @internal
|
|
75577
72721
|
*/
|
|
75578
|
-
class BentleyCloudRpcProtocol extends
|
|
72722
|
+
class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_4__["WebAppRpcProtocol"] {
|
|
75579
72723
|
constructor() {
|
|
75580
72724
|
super(...arguments);
|
|
75581
72725
|
this.checkToken = true;
|
|
@@ -75597,7 +72741,7 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
|
|
|
75597
72741
|
}
|
|
75598
72742
|
/** Returns the operation specified by an OpenAPI-compatible URI path. */
|
|
75599
72743
|
getOperationFromPath(path) {
|
|
75600
|
-
const url = new
|
|
72744
|
+
const url = new URL(path, "https://localhost/");
|
|
75601
72745
|
const components = url.pathname.split("/").filter((x) => x); // filter out empty segments
|
|
75602
72746
|
const operationComponent = components.slice(-1)[0];
|
|
75603
72747
|
const encodedRequest = url.searchParams.get("parameters") || "";
|
|
@@ -75631,13 +72775,13 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
|
|
|
75631
72775
|
routeChangesetId = "{changeSetId}";
|
|
75632
72776
|
}
|
|
75633
72777
|
else {
|
|
75634
|
-
let token = operation.policy.token(request) ||
|
|
72778
|
+
let token = operation.policy.token(request) || _core_RpcOperation__WEBPACK_IMPORTED_MODULE_3__["RpcOperation"].fallbackToken;
|
|
75635
72779
|
if (!token || !token.iModelId) {
|
|
75636
|
-
if (
|
|
72780
|
+
if (_core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_2__["RpcConfiguration"].disableRoutingValidation) {
|
|
75637
72781
|
token = { key: "" };
|
|
75638
72782
|
}
|
|
75639
72783
|
else {
|
|
75640
|
-
throw new
|
|
72784
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["BentleyStatus"].ERROR, "Invalid iModelToken for RPC operation request");
|
|
75641
72785
|
}
|
|
75642
72786
|
}
|
|
75643
72787
|
iTwinId = encodeURIComponent(token.iTwinId || "");
|
|
@@ -75849,20 +72993,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75849
72993
|
|
|
75850
72994
|
|
|
75851
72995
|
|
|
75852
|
-
|
|
75853
|
-
const os = (typeof (process) !== "undefined") ? __webpack_require__(/*! os */ "../../common/temp/node_modules/.pnpm/os-browserify@0.3.0/node_modules/os-browserify/browser.js") : undefined;
|
|
72996
|
+
let hostname = "";
|
|
75854
72997
|
function getHostname() {
|
|
75855
|
-
if (
|
|
75856
|
-
|
|
75857
|
-
|
|
75858
|
-
|
|
75859
|
-
|
|
75860
|
-
return window.location.host;
|
|
72998
|
+
if (!hostname) {
|
|
72999
|
+
try {
|
|
73000
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
73001
|
+
const os = __webpack_require__(/*! os */ "../../common/temp/node_modules/.pnpm/os-browserify@0.3.0/node_modules/os-browserify/browser.js");
|
|
73002
|
+
hostname = os.hostname();
|
|
75861
73003
|
}
|
|
75862
|
-
|
|
75863
|
-
|
|
73004
|
+
catch (_) {
|
|
73005
|
+
if (globalThis.window) {
|
|
73006
|
+
hostname = globalThis.window.location.host;
|
|
73007
|
+
}
|
|
73008
|
+
else {
|
|
73009
|
+
hostname = "imodeljs-mobile";
|
|
73010
|
+
}
|
|
75864
73011
|
}
|
|
75865
73012
|
}
|
|
73013
|
+
return hostname;
|
|
75866
73014
|
}
|
|
75867
73015
|
/** @internal */
|
|
75868
73016
|
class WebAppRpcLogging {
|
|
@@ -76150,16 +73298,14 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_2__["
|
|
|
76150
73298
|
"use strict";
|
|
76151
73299
|
__webpack_require__.r(__webpack_exports__);
|
|
76152
73300
|
/* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WebAppRpcRequest", function() { return WebAppRpcRequest; });
|
|
76153
|
-
/* harmony import */ var
|
|
76154
|
-
/* harmony import */ var
|
|
76155
|
-
/* harmony import */ var
|
|
76156
|
-
/* harmony import */ var
|
|
76157
|
-
/* harmony import */ var
|
|
76158
|
-
/* harmony import */ var
|
|
76159
|
-
/* harmony import */ var
|
|
76160
|
-
/* harmony import */ var
|
|
76161
|
-
/* harmony import */ var _RpcMultipart__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./RpcMultipart */ "../../core/common/lib/esm/rpc/web/RpcMultipart.js");
|
|
76162
|
-
/* harmony import */ var _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./WebAppRpcProtocol */ "../../core/common/lib/esm/rpc/web/WebAppRpcProtocol.js");
|
|
73301
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
73302
|
+
/* harmony import */ var _IModelError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../IModelError */ "../../core/common/lib/esm/IModelError.js");
|
|
73303
|
+
/* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
|
|
73304
|
+
/* harmony import */ var _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcMarshaling */ "../../core/common/lib/esm/rpc/core/RpcMarshaling.js");
|
|
73305
|
+
/* harmony import */ var _core_RpcRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/RpcRequest */ "../../core/common/lib/esm/rpc/core/RpcRequest.js");
|
|
73306
|
+
/* harmony import */ var _multipart_RpcMultipartParser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./multipart/RpcMultipartParser */ "../../core/common/lib/esm/rpc/web/multipart/RpcMultipartParser.js");
|
|
73307
|
+
/* harmony import */ var _RpcMultipart__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RpcMultipart */ "../../core/common/lib/esm/rpc/web/RpcMultipart.js");
|
|
73308
|
+
/* harmony import */ var _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./WebAppRpcProtocol */ "../../core/common/lib/esm/rpc/web/WebAppRpcProtocol.js");
|
|
76163
73309
|
/*---------------------------------------------------------------------------------------------
|
|
76164
73310
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
76165
73311
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -76175,11 +73321,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
76175
73321
|
|
|
76176
73322
|
|
|
76177
73323
|
|
|
76178
|
-
|
|
76179
73324
|
/** A web application RPC request.
|
|
76180
73325
|
* @internal
|
|
76181
73326
|
*/
|
|
76182
|
-
class WebAppRpcRequest extends
|
|
73327
|
+
class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_4__["RpcRequest"] {
|
|
76183
73328
|
/** Constructs a web application request. */
|
|
76184
73329
|
constructor(client, operation, parameters) {
|
|
76185
73330
|
super(client, operation, parameters);
|
|
@@ -76222,7 +73367,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76222
73367
|
method: req.method,
|
|
76223
73368
|
path: req.url,
|
|
76224
73369
|
parameters: operation.encodedRequest ? WebAppRpcRequest.parseFromPath(operation) : await WebAppRpcRequest.parseFromBody(req),
|
|
76225
|
-
caching: operation.encodedRequest ?
|
|
73370
|
+
caching: operation.encodedRequest ? _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcResponseCacheControl"].Immutable : _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcResponseCacheControl"].None,
|
|
76226
73371
|
};
|
|
76227
73372
|
request.ip = req.ip;
|
|
76228
73373
|
request.protocolVersion = 0;
|
|
@@ -76233,20 +73378,20 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76233
73378
|
}
|
|
76234
73379
|
}
|
|
76235
73380
|
if (!request.id) {
|
|
76236
|
-
throw new
|
|
73381
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["BentleyStatus"].ERROR, `Invalid request.`);
|
|
76237
73382
|
}
|
|
76238
73383
|
return request;
|
|
76239
73384
|
}
|
|
76240
73385
|
/** Sends the response for a web request. */
|
|
76241
73386
|
static sendResponse(protocol, request, fulfillment, res) {
|
|
76242
73387
|
const transportType = WebAppRpcRequest.computeTransportType(fulfillment.result, fulfillment.rawResult);
|
|
76243
|
-
if (transportType ===
|
|
73388
|
+
if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary) {
|
|
76244
73389
|
WebAppRpcRequest.sendBinary(protocol, request, fulfillment, res);
|
|
76245
73390
|
}
|
|
76246
|
-
else if (transportType ===
|
|
73391
|
+
else if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart) {
|
|
76247
73392
|
WebAppRpcRequest.sendMultipart(protocol, request, fulfillment, res);
|
|
76248
73393
|
}
|
|
76249
|
-
else if (transportType ===
|
|
73394
|
+
else if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Stream) {
|
|
76250
73395
|
WebAppRpcRequest.sendStream(protocol, request, fulfillment, res);
|
|
76251
73396
|
}
|
|
76252
73397
|
else {
|
|
@@ -76256,16 +73401,16 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76256
73401
|
/** Determines the most efficient transport type for an RPC value. */
|
|
76257
73402
|
static computeTransportType(value, source) {
|
|
76258
73403
|
if (source instanceof Uint8Array || (Array.isArray(source) && source[0] instanceof Uint8Array)) {
|
|
76259
|
-
return
|
|
73404
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary;
|
|
76260
73405
|
}
|
|
76261
73406
|
else if (value.data.length > 0) {
|
|
76262
|
-
return
|
|
73407
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart;
|
|
76263
73408
|
}
|
|
76264
73409
|
else if (value.stream) {
|
|
76265
|
-
return
|
|
73410
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Stream;
|
|
76266
73411
|
}
|
|
76267
73412
|
else {
|
|
76268
|
-
return
|
|
73413
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Text;
|
|
76269
73414
|
}
|
|
76270
73415
|
}
|
|
76271
73416
|
/** @internal */
|
|
@@ -76296,7 +73441,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76296
73441
|
resolve(await this.performFetch());
|
|
76297
73442
|
}
|
|
76298
73443
|
catch (reason) {
|
|
76299
|
-
reject(new
|
|
73444
|
+
reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["ServerError"](-1, typeof (reason) === "string" ? reason : "Server connection error."));
|
|
76300
73445
|
}
|
|
76301
73446
|
});
|
|
76302
73447
|
}
|
|
@@ -76320,10 +73465,10 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76320
73465
|
}
|
|
76321
73466
|
handleUnknownResponse(code) {
|
|
76322
73467
|
if (this.protocol.isTimeout(code)) {
|
|
76323
|
-
this.reject(new
|
|
73468
|
+
this.reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["ServerTimeoutError"]("Request timeout."));
|
|
76324
73469
|
}
|
|
76325
73470
|
else {
|
|
76326
|
-
this.reject(new
|
|
73471
|
+
this.reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["ServerError"](code, "Unknown server response code."));
|
|
76327
73472
|
}
|
|
76328
73473
|
}
|
|
76329
73474
|
async load() {
|
|
@@ -76333,15 +73478,15 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76333
73478
|
return;
|
|
76334
73479
|
const response = this._response;
|
|
76335
73480
|
if (!response) {
|
|
76336
|
-
reject(new
|
|
73481
|
+
reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["BentleyStatus"].ERROR, "Invalid state."));
|
|
76337
73482
|
return;
|
|
76338
73483
|
}
|
|
76339
|
-
const contentType = response.headers.get(
|
|
76340
|
-
const responseType =
|
|
76341
|
-
if (responseType ===
|
|
73484
|
+
const contentType = response.headers.get(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT);
|
|
73485
|
+
const responseType = _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_7__["WebAppRpcProtocol"].computeContentType(contentType);
|
|
73486
|
+
if (responseType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary) {
|
|
76342
73487
|
resolve(await this.loadBinary(response));
|
|
76343
73488
|
}
|
|
76344
|
-
else if (responseType ===
|
|
73489
|
+
else if (responseType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart) {
|
|
76345
73490
|
resolve(await this.loadMultipart(response, contentType));
|
|
76346
73491
|
}
|
|
76347
73492
|
else {
|
|
@@ -76349,13 +73494,13 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76349
73494
|
}
|
|
76350
73495
|
this._loading = false;
|
|
76351
73496
|
this.setLastUpdatedTime();
|
|
76352
|
-
this.protocol.events.raiseEvent(
|
|
73497
|
+
this.protocol.events.raiseEvent(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcProtocolEvent"].ResponseLoaded, this);
|
|
76353
73498
|
}
|
|
76354
73499
|
catch (reason) {
|
|
76355
73500
|
if (!this._loading)
|
|
76356
73501
|
return;
|
|
76357
73502
|
this._loading = false;
|
|
76358
|
-
reject(new
|
|
73503
|
+
reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["ServerError"](this.metadata.status, typeof (reason) === "string" ? reason : "Unknown server response error."));
|
|
76359
73504
|
}
|
|
76360
73505
|
});
|
|
76361
73506
|
}
|
|
@@ -76368,8 +73513,8 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76368
73513
|
return Request;
|
|
76369
73514
|
}
|
|
76370
73515
|
static configureResponse(protocol, request, fulfillment, res) {
|
|
76371
|
-
const success = protocol.getStatus(fulfillment.status) ===
|
|
76372
|
-
if (success && request.caching ===
|
|
73516
|
+
const success = protocol.getStatus(fulfillment.status) === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcRequestStatus"].Resolved;
|
|
73517
|
+
if (success && request.caching === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcResponseCacheControl"].Immutable) {
|
|
76373
73518
|
res.set("Cache-Control", "private, max-age=31536000, immutable");
|
|
76374
73519
|
}
|
|
76375
73520
|
if (fulfillment.retry) {
|
|
@@ -76378,19 +73523,19 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76378
73523
|
}
|
|
76379
73524
|
static sendText(protocol, request, fulfillment, res) {
|
|
76380
73525
|
const response = (fulfillment.status === 204) ? "" : fulfillment.result.objects;
|
|
76381
|
-
res.set(
|
|
73526
|
+
res.set(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT, _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].TEXT);
|
|
76382
73527
|
WebAppRpcRequest.configureResponse(protocol, request, fulfillment, res);
|
|
76383
73528
|
res.status(fulfillment.status).send(response);
|
|
76384
73529
|
}
|
|
76385
73530
|
static sendBinary(protocol, request, fulfillment, res) {
|
|
76386
73531
|
const data = fulfillment.result.data[0];
|
|
76387
73532
|
const response = Buffer.isBuffer(data) ? data : Buffer.from(data);
|
|
76388
|
-
res.set(
|
|
73533
|
+
res.set(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT, _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].BINARY);
|
|
76389
73534
|
WebAppRpcRequest.configureResponse(protocol, request, fulfillment, res);
|
|
76390
73535
|
res.status(fulfillment.status).send(response);
|
|
76391
73536
|
}
|
|
76392
73537
|
static sendMultipart(protocol, request, fulfillment, res) {
|
|
76393
|
-
const response =
|
|
73538
|
+
const response = _RpcMultipart__WEBPACK_IMPORTED_MODULE_6__["RpcMultipart"].createStream(fulfillment.result);
|
|
76394
73539
|
const headers = response.getHeaders();
|
|
76395
73540
|
for (const header in headers) {
|
|
76396
73541
|
if (headers.hasOwnProperty(header)) {
|
|
@@ -76409,20 +73554,20 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76409
73554
|
}
|
|
76410
73555
|
static parseFromPath(operation) {
|
|
76411
73556
|
const decoded = operation.encodedRequest ? Buffer.from(operation.encodedRequest, "base64").toString("binary") : "";
|
|
76412
|
-
return
|
|
73557
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(decoded);
|
|
76413
73558
|
}
|
|
76414
73559
|
static async parseFromBody(req) {
|
|
76415
|
-
const contentType =
|
|
76416
|
-
if (contentType ===
|
|
76417
|
-
const objects = JSON.stringify([
|
|
73560
|
+
const contentType = _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_7__["WebAppRpcProtocol"].computeContentType(req.header(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT));
|
|
73561
|
+
if (contentType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary) {
|
|
73562
|
+
const objects = JSON.stringify([_core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["MarshalingBinaryMarker"].createDefault()]);
|
|
76418
73563
|
const data = [req.body];
|
|
76419
|
-
return
|
|
73564
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(objects, data);
|
|
76420
73565
|
}
|
|
76421
|
-
else if (contentType ===
|
|
76422
|
-
return
|
|
73566
|
+
else if (contentType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart) {
|
|
73567
|
+
return _RpcMultipart__WEBPACK_IMPORTED_MODULE_6__["RpcMultipart"].parseRequest(req);
|
|
76423
73568
|
}
|
|
76424
73569
|
else {
|
|
76425
|
-
return
|
|
73570
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(req.body);
|
|
76426
73571
|
}
|
|
76427
73572
|
}
|
|
76428
73573
|
async performFetch() {
|
|
@@ -76443,16 +73588,16 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76443
73588
|
async loadText(response) {
|
|
76444
73589
|
const value = await response.text();
|
|
76445
73590
|
this.metadata.message = value;
|
|
76446
|
-
return
|
|
73591
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(value);
|
|
76447
73592
|
}
|
|
76448
73593
|
async loadBinary(response) {
|
|
76449
73594
|
const value = new Uint8Array(await response.arrayBuffer());
|
|
76450
|
-
const objects = JSON.stringify(
|
|
76451
|
-
return
|
|
73595
|
+
const objects = JSON.stringify(_core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["MarshalingBinaryMarker"].createDefault());
|
|
73596
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(objects, [value]);
|
|
76452
73597
|
}
|
|
76453
73598
|
async loadMultipart(response, contentType) {
|
|
76454
73599
|
const data = await response.arrayBuffer();
|
|
76455
|
-
const value = new
|
|
73600
|
+
const value = new _multipart_RpcMultipartParser__WEBPACK_IMPORTED_MODULE_5__["RpcMultipartParser"](contentType, Buffer.from(data)).parse();
|
|
76456
73601
|
return value;
|
|
76457
73602
|
}
|
|
76458
73603
|
async setupTransport() {
|
|
@@ -76461,10 +73606,10 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76461
73606
|
}
|
|
76462
73607
|
const parameters = (await this.protocol.serialize(this)).parameters;
|
|
76463
73608
|
const transportType = WebAppRpcRequest.computeTransportType(parameters, this.parameters);
|
|
76464
|
-
if (transportType ===
|
|
73609
|
+
if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary) {
|
|
76465
73610
|
this.setupBinaryTransport(parameters);
|
|
76466
73611
|
}
|
|
76467
|
-
else if (transportType ===
|
|
73612
|
+
else if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart) {
|
|
76468
73613
|
this.setupMultipartTransport(parameters);
|
|
76469
73614
|
}
|
|
76470
73615
|
else {
|
|
@@ -76472,15 +73617,15 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76472
73617
|
}
|
|
76473
73618
|
}
|
|
76474
73619
|
setupBinaryTransport(parameters) {
|
|
76475
|
-
this._headers[
|
|
73620
|
+
this._headers[_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT] = _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].BINARY;
|
|
76476
73621
|
this._request.method = "post";
|
|
76477
73622
|
this._request.body = parameters.data[0];
|
|
76478
73623
|
}
|
|
76479
73624
|
setupMultipartTransport(parameters) {
|
|
76480
73625
|
// IMPORTANT: do not set a multipart Content-Type header value. The browser does this automatically!
|
|
76481
|
-
delete this._headers[
|
|
73626
|
+
delete this._headers[_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT];
|
|
76482
73627
|
this._request.method = "post";
|
|
76483
|
-
this._request.body =
|
|
73628
|
+
this._request.body = _RpcMultipart__WEBPACK_IMPORTED_MODULE_6__["RpcMultipart"].createForm(parameters);
|
|
76484
73629
|
}
|
|
76485
73630
|
setupTextTransport(parameters) {
|
|
76486
73631
|
if (this.operation.policy.allowResponseCaching(this)) {
|
|
@@ -76488,13 +73633,13 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76488
73633
|
if (encodedBody.length <= WebAppRpcRequest.maxUrlComponentSize) {
|
|
76489
73634
|
this._request.method = "get";
|
|
76490
73635
|
this._request.body = undefined;
|
|
76491
|
-
delete this._headers[
|
|
73636
|
+
delete this._headers[_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT];
|
|
76492
73637
|
this._pathSuffix = encodedBody;
|
|
76493
73638
|
return;
|
|
76494
73639
|
}
|
|
76495
73640
|
}
|
|
76496
73641
|
this._pathSuffix = "";
|
|
76497
|
-
this._headers[
|
|
73642
|
+
this._headers[_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT] = _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].TEXT;
|
|
76498
73643
|
this._request.method = "post";
|
|
76499
73644
|
this._request.body = parameters.objects;
|
|
76500
73645
|
}
|
|
@@ -143973,10 +141118,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
143973
141118
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
143974
141119
|
/* harmony import */ var _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-orbitgt */ "../../core/orbitgt/lib/esm/core-orbitgt.js");
|
|
143975
141120
|
/* harmony import */ var _FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../FrontendLoggerCategory */ "../../core/frontend/lib/esm/FrontendLoggerCategory.js");
|
|
143976
|
-
/* harmony import */ var
|
|
143977
|
-
/* harmony import */ var
|
|
143978
|
-
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
143979
|
-
/* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
|
|
141121
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
141122
|
+
/* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
|
|
143980
141123
|
/*---------------------------------------------------------------------------------------------
|
|
143981
141124
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
143982
141125
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -143987,7 +141130,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
143987
141130
|
|
|
143988
141131
|
|
|
143989
141132
|
|
|
143990
|
-
|
|
143991
141133
|
const loggerCategory = _FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__["FrontendLoggerCategory"].RealityData;
|
|
143992
141134
|
/**
|
|
143993
141135
|
* This class provide methods used to interpret Orbit Point Cloud (OPC) format
|
|
@@ -144001,7 +141143,7 @@ class OPCFormatInterpreter {
|
|
|
144001
141143
|
*/
|
|
144002
141144
|
static async getFileReaderFromBlobFileURL(blobFileURL) {
|
|
144003
141145
|
if (_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["Downloader"].INSTANCE == null)
|
|
144004
|
-
_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["Downloader"].INSTANCE = new
|
|
141146
|
+
_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["Downloader"].INSTANCE = new _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["DownloaderXhr"]();
|
|
144005
141147
|
if (_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["CRSManager"].ENGINE == null)
|
|
144006
141148
|
_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["CRSManager"].ENGINE = await _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["OnlineEngine"].create();
|
|
144007
141149
|
// let blobFileURL: string = rdUrl;
|
|
@@ -144009,7 +141151,7 @@ class OPCFormatInterpreter {
|
|
|
144009
141151
|
const urlFS = new _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["UrlFS"]();
|
|
144010
141152
|
// wrap a caching layer (16 MB) around the blob file
|
|
144011
141153
|
const blobFileSize = await urlFS.getFileLength(blobFileURL);
|
|
144012
|
-
|
|
141154
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["Logger"].logTrace(loggerCategory, `OPC File Size is ${blobFileSize}`);
|
|
144013
141155
|
const blobFile = new _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["PageCachedFile"](urlFS, blobFileURL, blobFileSize, 128 * 1024 /* pageSize */, 128 /* maxPageCount */);
|
|
144014
141156
|
const fileReader = await _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["OPCReader"].openFile(blobFile, blobFileURL, true /* lazyLoading */);
|
|
144015
141157
|
return fileReader;
|
|
@@ -144046,10 +141188,10 @@ class OPCFormatInterpreter {
|
|
|
144046
141188
|
isGeolocated = true;
|
|
144047
141189
|
}
|
|
144048
141190
|
catch (e) {
|
|
144049
|
-
|
|
144050
|
-
const errorProps =
|
|
141191
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["Logger"].logWarning(loggerCategory, `Error getSpatialLocationAndExtents - cannot interpret point cloud`);
|
|
141192
|
+
const errorProps = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["BentleyError"].getErrorProps(e);
|
|
144051
141193
|
const getMetaData = () => { return { errorProps }; };
|
|
144052
|
-
const error = new
|
|
141194
|
+
const error = new _RealityDataSource__WEBPACK_IMPORTED_MODULE_5__["RealityDataError"](_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["RealityDataStatus"].InvalidData, "Invalid or unknown data", getMetaData);
|
|
144053
141195
|
throw error;
|
|
144054
141196
|
}
|
|
144055
141197
|
}
|
|
@@ -144058,7 +141200,7 @@ class OPCFormatInterpreter {
|
|
|
144058
141200
|
isGeolocated = false;
|
|
144059
141201
|
const centerOfEarth = new _itwin_core_common__WEBPACK_IMPORTED_MODULE_0__["EcefLocation"]({ origin: { x: 0.0, y: 0.0, z: 0.0 }, orientation: { yaw: 0.0, pitch: 0.0, roll: 0.0 } });
|
|
144060
141202
|
location = centerOfEarth;
|
|
144061
|
-
|
|
141203
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["Logger"].logTrace(loggerCategory, "OPC RealityData NOT Geolocated", () => ({ ...location }));
|
|
144062
141204
|
}
|
|
144063
141205
|
const spatialLocation = { location, worldRange, isGeolocated };
|
|
144064
141206
|
return spatialLocation;
|
|
@@ -170362,7 +167504,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
|
|
|
170362
167504
|
/*! exports provided: name, version, description, main, module, typings, imodeljsSharedLibrary, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
|
|
170363
167505
|
/***/ (function(module) {
|
|
170364
167506
|
|
|
170365
|
-
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.
|
|
167507
|
+
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.16\",\"description\":\"iTwin.js frontend components\",\"main\":\"lib/cjs/core-frontend.js\",\"module\":\"lib/esm/core-frontend.js\",\"typings\":\"lib/cjs/core-frontend\",\"imodeljsSharedLibrary\":true,\"license\":\"MIT\",\"scripts\":{\"build\":\"npm run -s copy:public && npm run -s build:cjs\",\"build:ci\":\"npm run -s build && npm run -s build:esm\",\"build:cjs\":\"tsc 1>&2 --outDir lib/cjs\",\"build:esm\":\"tsc 1>&2 --module ES2020 --outDir lib/esm\",\"clean\":\"rimraf lib .rush/temp/package-deps*.json\",\"copy:public\":\"cpx \\\"./src/public/**/*\\\" ./lib/public\",\"docs\":\"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/primitives,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts\",\"extract-api\":\"betools extract-api --entry=core-frontend\",\"lint\":\"eslint -f visualstudio \\\"./src/**/*.ts\\\" 1>&2\",\"pseudolocalize\":\"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO\",\"test\":\"npm run -s webpackTests && certa -r chrome\",\"cover\":\"npm -s test\",\"test:debug\":\"certa -r chrome --debug\",\"webpackTests\":\"webpack --config ./src/test/utils/webpack.config.js 1>&2\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/iTwin/itwinjs-core/tree/master/core/frontend\"},\"keywords\":[\"Bentley\",\"BIM\",\"iModel\",\"digital-twin\",\"iTwin\"],\"author\":{\"name\":\"Bentley Systems, Inc.\",\"url\":\"http://www.bentley.com\"},\"peerDependencies\":{\"@itwin/appui-abstract\":\"workspace:^3.2.0-dev.16\",\"@itwin/core-bentley\":\"workspace:^3.2.0-dev.16\",\"@itwin/core-common\":\"workspace:^3.2.0-dev.16\",\"@itwin/core-geometry\":\"workspace:^3.2.0-dev.16\",\"@itwin/core-orbitgt\":\"workspace:^3.2.0-dev.16\",\"@itwin/core-quantity\":\"workspace:^3.2.0-dev.16\",\"@itwin/webgl-compatibility\":\"workspace:^3.2.0-dev.16\"},\"//devDependencies\":[\"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install\",\"NOTE: All tools used by scripts in this package must be listed as devDependencies\"],\"devDependencies\":{\"@itwin/appui-abstract\":\"workspace:*\",\"@itwin/build-tools\":\"workspace:*\",\"@itwin/core-bentley\":\"workspace:*\",\"@itwin/core-common\":\"workspace:*\",\"@itwin/core-geometry\":\"workspace:*\",\"@itwin/core-orbitgt\":\"workspace:*\",\"@itwin/core-quantity\":\"workspace:*\",\"@itwin/certa\":\"workspace:*\",\"@itwin/eslint-plugin\":\"workspace:*\",\"@itwin/webgl-compatibility\":\"workspace:*\",\"@types/chai\":\"^4.1.4\",\"@types/chai-as-promised\":\"^7\",\"@types/deep-assign\":\"^0.1.0\",\"@types/lodash\":\"^4.14.0\",\"@types/mocha\":\"^8.2.2\",\"@types/node\":\"14.14.31\",\"@types/qs\":\"^6.5.0\",\"@types/semver\":\"^5.5.0\",\"@types/superagent\":\"^4.1.14\",\"@types/sinon\":\"^9.0.0\",\"chai\":\"^4.1.2\",\"chai-as-promised\":\"^7\",\"cpx2\":\"^3.0.0\",\"eslint\":\"^7.11.0\",\"glob\":\"^7.1.2\",\"mocha\":\"^8.3.2\",\"nyc\":\"^15.1.0\",\"rimraf\":\"^3.0.2\",\"sinon\":\"^9.0.2\",\"source-map-loader\":\"^1.0.0\",\"typescript\":\"~4.4.0\",\"webpack\":\"4.42.0\"},\"//dependencies\":[\"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API\",\"NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed\"],\"dependencies\":{\"@itwin/core-i18n\":\"workspace:*\",\"@itwin/core-telemetry\":\"workspace:*\",\"@loaders.gl/core\":\"^3.1.6\",\"@loaders.gl/draco\":\"^3.1.6\",\"deep-assign\":\"^2.0.0\",\"fuse.js\":\"^3.3.0\",\"lodash\":\"^4.17.10\",\"qs\":\"^6.5.1\",\"semver\":\"^5.5.0\",\"superagent\":\"^7.0.1\",\"wms-capabilities\":\"0.4.0\",\"xml-js\":\"~1.6.11\"},\"nyc\":{\"extends\":\"./node_modules/@itwin/build-tools/.nycrc\"},\"eslintConfig\":{\"plugins\":[\"@itwin\"],\"extends\":\"plugin:@itwin/itwinjs-recommended\",\"rules\":{\"@itwin/no-internal-barrel-imports\":[\"error\",{\"required-barrel-modules\":[\"./src/tile/internal.ts\"]}]},\"overrides\":[{\"files\":[\"*.test.ts\",\"*.test.tsx\",\"**/test/**/*.ts\",\"**/test/**/*.tsx\"],\"rules\":{\"@itwin/no-internal-barrel-imports\":\"off\"}}]}}");
|
|
170366
167508
|
|
|
170367
167509
|
/***/ }),
|
|
170368
167510
|
|
|
@@ -248905,457 +246047,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
248905
246047
|
*/
|
|
248906
246048
|
|
|
248907
246049
|
|
|
248908
|
-
/***/ }),
|
|
248909
|
-
|
|
248910
|
-
/***/ "../../core/orbitgt/lib/cjs/system/buffer/ABuffer.js":
|
|
248911
|
-
/*!*******************************************************************!*\
|
|
248912
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/buffer/ABuffer.js ***!
|
|
248913
|
-
\*******************************************************************/
|
|
248914
|
-
/*! no static exports found */
|
|
248915
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
248916
|
-
|
|
248917
|
-
"use strict";
|
|
248918
|
-
|
|
248919
|
-
/*---------------------------------------------------------------------------------------------
|
|
248920
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
248921
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
248922
|
-
*--------------------------------------------------------------------------------------------*/
|
|
248923
|
-
/** @packageDocumentation
|
|
248924
|
-
* @module OrbitGT
|
|
248925
|
-
*/
|
|
248926
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
248927
|
-
exports.ABuffer = void 0;
|
|
248928
|
-
/**
|
|
248929
|
-
* Class ABuffer defines a raw byte buffer.
|
|
248930
|
-
*/
|
|
248931
|
-
/** @internal */
|
|
248932
|
-
class ABuffer {
|
|
248933
|
-
/**
|
|
248934
|
-
* Create a new buffer.
|
|
248935
|
-
*/
|
|
248936
|
-
constructor(size) {
|
|
248937
|
-
this._content = (size < 0) ? null : new ArrayBuffer(size);
|
|
248938
|
-
this._contentBytes = (size < 0) ? null : new Uint8Array(this._content);
|
|
248939
|
-
}
|
|
248940
|
-
/**
|
|
248941
|
-
* Wrap an existing buffer.
|
|
248942
|
-
*/
|
|
248943
|
-
static wrap(buffer) {
|
|
248944
|
-
let wrapper = new ABuffer(-1);
|
|
248945
|
-
wrapper._content = buffer;
|
|
248946
|
-
wrapper._contentBytes = new Uint8Array(wrapper._content);
|
|
248947
|
-
return wrapper;
|
|
248948
|
-
}
|
|
248949
|
-
/**
|
|
248950
|
-
* Wrap an existing buffer.
|
|
248951
|
-
*/
|
|
248952
|
-
static wrapRange(buffer, offset, size) {
|
|
248953
|
-
/* The whole buffer? */
|
|
248954
|
-
if ((offset == 0) && (size == buffer.byteLength))
|
|
248955
|
-
return ABuffer.wrap(buffer);
|
|
248956
|
-
/* Copy the range */
|
|
248957
|
-
let original = ABuffer.wrap(buffer);
|
|
248958
|
-
let wrapper = new ABuffer(size);
|
|
248959
|
-
ABuffer.arrayCopy(original, offset, wrapper, 0, size);
|
|
248960
|
-
return wrapper;
|
|
248961
|
-
}
|
|
248962
|
-
/**
|
|
248963
|
-
* Return the content as a native buffer
|
|
248964
|
-
*/
|
|
248965
|
-
toNativeBuffer() {
|
|
248966
|
-
return this._content;
|
|
248967
|
-
}
|
|
248968
|
-
/**
|
|
248969
|
-
* Get the size of the buffer.
|
|
248970
|
-
*/
|
|
248971
|
-
size() {
|
|
248972
|
-
return this._contentBytes.byteLength;
|
|
248973
|
-
}
|
|
248974
|
-
/**
|
|
248975
|
-
* Get a byte (0..255).
|
|
248976
|
-
*/
|
|
248977
|
-
get(index) {
|
|
248978
|
-
return this._contentBytes[index];
|
|
248979
|
-
}
|
|
248980
|
-
/**
|
|
248981
|
-
* Set a byte.
|
|
248982
|
-
*/
|
|
248983
|
-
set(index, value) {
|
|
248984
|
-
this._contentBytes[index] = value;
|
|
248985
|
-
}
|
|
248986
|
-
/**
|
|
248987
|
-
* Slice a part of the buffer.
|
|
248988
|
-
*/
|
|
248989
|
-
slice(begin, end) {
|
|
248990
|
-
if (begin < 0)
|
|
248991
|
-
begin += this._content.byteLength;
|
|
248992
|
-
if (end < 0)
|
|
248993
|
-
end += this._content.byteLength;
|
|
248994
|
-
let result = new ABuffer(end - begin);
|
|
248995
|
-
for (let i = 0; i < result._content.byteLength; i++)
|
|
248996
|
-
result.set(i, this.get(begin + i));
|
|
248997
|
-
return result;
|
|
248998
|
-
}
|
|
248999
|
-
/**
|
|
249000
|
-
* Copy data from a source to a target buffer.
|
|
249001
|
-
*/
|
|
249002
|
-
static arrayCopy(source, sourceIndex, target, targetIndex, count) {
|
|
249003
|
-
for (let i = 0; i < count; i++)
|
|
249004
|
-
target.set(targetIndex++, source.get(sourceIndex++));
|
|
249005
|
-
}
|
|
249006
|
-
}
|
|
249007
|
-
exports.ABuffer = ABuffer;
|
|
249008
|
-
|
|
249009
|
-
|
|
249010
|
-
/***/ }),
|
|
249011
|
-
|
|
249012
|
-
/***/ "../../core/orbitgt/lib/cjs/system/collection/AList.js":
|
|
249013
|
-
/*!*********************************************************************!*\
|
|
249014
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/collection/AList.js ***!
|
|
249015
|
-
\*********************************************************************/
|
|
249016
|
-
/*! no static exports found */
|
|
249017
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
249018
|
-
|
|
249019
|
-
"use strict";
|
|
249020
|
-
|
|
249021
|
-
/*---------------------------------------------------------------------------------------------
|
|
249022
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
249023
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
249024
|
-
*--------------------------------------------------------------------------------------------*/
|
|
249025
|
-
/** @packageDocumentation
|
|
249026
|
-
* @module OrbitGT
|
|
249027
|
-
*/
|
|
249028
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249029
|
-
exports.AList = void 0;
|
|
249030
|
-
/**
|
|
249031
|
-
* Class AList defines a typed list of elements.
|
|
249032
|
-
*/
|
|
249033
|
-
/** @internal */
|
|
249034
|
-
class AList {
|
|
249035
|
-
constructor(capacity = 10) {
|
|
249036
|
-
this._elements = [];
|
|
249037
|
-
}
|
|
249038
|
-
size() {
|
|
249039
|
-
return this._elements.length;
|
|
249040
|
-
}
|
|
249041
|
-
add(element) {
|
|
249042
|
-
this._elements.push(element);
|
|
249043
|
-
}
|
|
249044
|
-
addAt(index, element) {
|
|
249045
|
-
this._elements.splice(index, 0, element);
|
|
249046
|
-
}
|
|
249047
|
-
remove(index) {
|
|
249048
|
-
this._elements.splice(index, 1);
|
|
249049
|
-
}
|
|
249050
|
-
get(index) {
|
|
249051
|
-
return this._elements[index];
|
|
249052
|
-
}
|
|
249053
|
-
indexOf(element) {
|
|
249054
|
-
for (let i = 0; i < this._elements.length; i++)
|
|
249055
|
-
if (this._elements[i] === element)
|
|
249056
|
-
return i;
|
|
249057
|
-
return -1;
|
|
249058
|
-
}
|
|
249059
|
-
contains(element) {
|
|
249060
|
-
return (this.indexOf(element) >= 0);
|
|
249061
|
-
}
|
|
249062
|
-
clear() {
|
|
249063
|
-
this._elements.splice(0, this._elements.length);
|
|
249064
|
-
}
|
|
249065
|
-
sort(comparator) {
|
|
249066
|
-
this._elements.sort(function (o1, o2) { return comparator.compare(o1, o2); });
|
|
249067
|
-
}
|
|
249068
|
-
toArray(holder) {
|
|
249069
|
-
return this._elements;
|
|
249070
|
-
}
|
|
249071
|
-
/**
|
|
249072
|
-
* Get an iterator to use in "for of" loops.
|
|
249073
|
-
*/
|
|
249074
|
-
[Symbol.iterator]() {
|
|
249075
|
-
let iteratorList = this._elements;
|
|
249076
|
-
let index = 0;
|
|
249077
|
-
return {
|
|
249078
|
-
next() {
|
|
249079
|
-
if (index < iteratorList.length) {
|
|
249080
|
-
return { done: false, value: iteratorList[index++] };
|
|
249081
|
-
}
|
|
249082
|
-
else {
|
|
249083
|
-
return { done: true, value: null };
|
|
249084
|
-
}
|
|
249085
|
-
}
|
|
249086
|
-
};
|
|
249087
|
-
}
|
|
249088
|
-
}
|
|
249089
|
-
exports.AList = AList;
|
|
249090
|
-
|
|
249091
|
-
|
|
249092
|
-
/***/ }),
|
|
249093
|
-
|
|
249094
|
-
/***/ "../../core/orbitgt/lib/cjs/system/collection/StringMap.js":
|
|
249095
|
-
/*!*************************************************************************!*\
|
|
249096
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/collection/StringMap.js ***!
|
|
249097
|
-
\*************************************************************************/
|
|
249098
|
-
/*! no static exports found */
|
|
249099
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
249100
|
-
|
|
249101
|
-
"use strict";
|
|
249102
|
-
|
|
249103
|
-
/*---------------------------------------------------------------------------------------------
|
|
249104
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
249105
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
249106
|
-
*--------------------------------------------------------------------------------------------*/
|
|
249107
|
-
/** @packageDocumentation
|
|
249108
|
-
* @module OrbitGT
|
|
249109
|
-
*/
|
|
249110
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249111
|
-
exports.StringMap = void 0;
|
|
249112
|
-
const AList_1 = __webpack_require__(/*! ./AList */ "../../core/orbitgt/lib/cjs/system/collection/AList.js");
|
|
249113
|
-
/**
|
|
249114
|
-
* Class StringMap defines a map of elements in which the keys are strings.
|
|
249115
|
-
*/
|
|
249116
|
-
/** @internal */
|
|
249117
|
-
class StringMap {
|
|
249118
|
-
constructor() {
|
|
249119
|
-
this._map = new Map();
|
|
249120
|
-
}
|
|
249121
|
-
size() {
|
|
249122
|
-
return this._map.size;
|
|
249123
|
-
}
|
|
249124
|
-
contains(key) {
|
|
249125
|
-
return this._map.has(key);
|
|
249126
|
-
}
|
|
249127
|
-
containsKey(key) {
|
|
249128
|
-
return this._map.has(key);
|
|
249129
|
-
}
|
|
249130
|
-
get(key) {
|
|
249131
|
-
return this._map.get(key);
|
|
249132
|
-
}
|
|
249133
|
-
set(key, value) {
|
|
249134
|
-
this._map.set(key, value);
|
|
249135
|
-
}
|
|
249136
|
-
put(key, value) {
|
|
249137
|
-
this._map.set(key, value);
|
|
249138
|
-
}
|
|
249139
|
-
remove(key) {
|
|
249140
|
-
this._map.delete(key);
|
|
249141
|
-
}
|
|
249142
|
-
clear() {
|
|
249143
|
-
this._map.clear();
|
|
249144
|
-
}
|
|
249145
|
-
keysArray() {
|
|
249146
|
-
return Array.from(this._map.keys());
|
|
249147
|
-
}
|
|
249148
|
-
keys() {
|
|
249149
|
-
let keys = new AList_1.AList();
|
|
249150
|
-
for (let key of this._map.keys())
|
|
249151
|
-
keys.add(key);
|
|
249152
|
-
return keys;
|
|
249153
|
-
}
|
|
249154
|
-
valuesArray() {
|
|
249155
|
-
return Array.from(this._map.values());
|
|
249156
|
-
}
|
|
249157
|
-
values() {
|
|
249158
|
-
let values = new AList_1.AList();
|
|
249159
|
-
for (let value of this._map.values())
|
|
249160
|
-
values.add(value);
|
|
249161
|
-
return values;
|
|
249162
|
-
}
|
|
249163
|
-
}
|
|
249164
|
-
exports.StringMap = StringMap;
|
|
249165
|
-
|
|
249166
|
-
|
|
249167
|
-
/***/ }),
|
|
249168
|
-
|
|
249169
|
-
/***/ "../../core/orbitgt/lib/cjs/system/runtime/Downloader.js":
|
|
249170
|
-
/*!***********************************************************************!*\
|
|
249171
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/runtime/Downloader.js ***!
|
|
249172
|
-
\***********************************************************************/
|
|
249173
|
-
/*! no static exports found */
|
|
249174
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
249175
|
-
|
|
249176
|
-
"use strict";
|
|
249177
|
-
|
|
249178
|
-
/*---------------------------------------------------------------------------------------------
|
|
249179
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
249180
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
249181
|
-
*--------------------------------------------------------------------------------------------*/
|
|
249182
|
-
/** @packageDocumentation
|
|
249183
|
-
* @module OrbitGT
|
|
249184
|
-
*/
|
|
249185
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249186
|
-
exports.Downloader = void 0;
|
|
249187
|
-
/**
|
|
249188
|
-
* Class Downloader defines a platform independant download tool.
|
|
249189
|
-
*/
|
|
249190
|
-
/** @internal */
|
|
249191
|
-
class Downloader {
|
|
249192
|
-
// create a new downloader
|
|
249193
|
-
//
|
|
249194
|
-
constructor() {
|
|
249195
|
-
}
|
|
249196
|
-
// download a byte array
|
|
249197
|
-
//
|
|
249198
|
-
async downloadBytes(method, requestURL, requestHeaders, postText, postData, responseHeaders) {
|
|
249199
|
-
return null;
|
|
249200
|
-
}
|
|
249201
|
-
// download a text
|
|
249202
|
-
//
|
|
249203
|
-
async downloadText(method, requestURL, requestHeaders, postText, postData, responseHeaders) {
|
|
249204
|
-
return null;
|
|
249205
|
-
}
|
|
249206
|
-
// download a text without request options
|
|
249207
|
-
//
|
|
249208
|
-
async downloadText2(requestURL) {
|
|
249209
|
-
return null;
|
|
249210
|
-
}
|
|
249211
|
-
}
|
|
249212
|
-
exports.Downloader = Downloader;
|
|
249213
|
-
/** The default instance of this tool for this runtime. This needs to be set by the host application on startup. */
|
|
249214
|
-
Downloader.INSTANCE = null;
|
|
249215
|
-
|
|
249216
|
-
|
|
249217
|
-
/***/ }),
|
|
249218
|
-
|
|
249219
|
-
/***/ "../../core/orbitgt/lib/cjs/system/runtime/DownloaderNode.js":
|
|
249220
|
-
/*!***************************************************************************!*\
|
|
249221
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/runtime/DownloaderNode.js ***!
|
|
249222
|
-
\***************************************************************************/
|
|
249223
|
-
/*! no static exports found */
|
|
249224
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
249225
|
-
|
|
249226
|
-
"use strict";
|
|
249227
|
-
/* WEBPACK VAR INJECTION */(function(Buffer) {
|
|
249228
|
-
/*---------------------------------------------------------------------------------------------
|
|
249229
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
249230
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
249231
|
-
*--------------------------------------------------------------------------------------------*/
|
|
249232
|
-
/** @packageDocumentation
|
|
249233
|
-
* @module OrbitGT
|
|
249234
|
-
*/
|
|
249235
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249236
|
-
exports.DownloaderNode = void 0;
|
|
249237
|
-
const http = __webpack_require__(/*! http */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/index.js");
|
|
249238
|
-
const https = __webpack_require__(/*! https */ "../../common/temp/node_modules/.pnpm/https-browserify@1.0.0/node_modules/https-browserify/index.js");
|
|
249239
|
-
const ABuffer_1 = __webpack_require__(/*! ../buffer/ABuffer */ "../../core/orbitgt/lib/cjs/system/buffer/ABuffer.js");
|
|
249240
|
-
const StringMap_1 = __webpack_require__(/*! ../collection/StringMap */ "../../core/orbitgt/lib/cjs/system/collection/StringMap.js");
|
|
249241
|
-
const Downloader_1 = __webpack_require__(/*! ./Downloader */ "../../core/orbitgt/lib/cjs/system/runtime/Downloader.js");
|
|
249242
|
-
/**
|
|
249243
|
-
* Class DownloaderNode implements a downloader using the Node platform.
|
|
249244
|
-
*/
|
|
249245
|
-
/** @internal */
|
|
249246
|
-
class DownloaderNode extends Downloader_1.Downloader {
|
|
249247
|
-
// create a new downloader
|
|
249248
|
-
//
|
|
249249
|
-
constructor() {
|
|
249250
|
-
super();
|
|
249251
|
-
}
|
|
249252
|
-
// join the downloaded chunks into the requested response type
|
|
249253
|
-
//
|
|
249254
|
-
static joinChunks(buffers, responseType) {
|
|
249255
|
-
//console.log("joining "+buffers.length+" downloaded chunks to type '"+responseType+"'");
|
|
249256
|
-
let joined = Buffer.concat(buffers);
|
|
249257
|
-
if (responseType === "text")
|
|
249258
|
-
return joined.toString('utf8');
|
|
249259
|
-
return ABuffer_1.ABuffer.wrapRange(joined.buffer, joined.byteOffset, joined.length);
|
|
249260
|
-
}
|
|
249261
|
-
// make a generic download
|
|
249262
|
-
//
|
|
249263
|
-
download0(method, requestURL, responseType, requestHeaders, postText, postData, responseHeaders, callback, errorCallback) {
|
|
249264
|
-
// set the defaults
|
|
249265
|
-
if (method == null)
|
|
249266
|
-
method = "GET";
|
|
249267
|
-
if (requestHeaders == null)
|
|
249268
|
-
requestHeaders = new StringMap_1.StringMap();
|
|
249269
|
-
// set the options
|
|
249270
|
-
//console.log("connect method '"+method+"' to '"+requestURL+"'");
|
|
249271
|
-
let options = {};
|
|
249272
|
-
options["method"] = method;
|
|
249273
|
-
// set the URL
|
|
249274
|
-
let url = new URL(requestURL);
|
|
249275
|
-
options["protocol"] = url.protocol;
|
|
249276
|
-
options["host"] = url.hostname;
|
|
249277
|
-
options["port"] = url.port;
|
|
249278
|
-
options["path"] = url.pathname + url.search;
|
|
249279
|
-
// set the request headers
|
|
249280
|
-
if (requestHeaders.size() > 0) {
|
|
249281
|
-
// create the headers object
|
|
249282
|
-
//console.log("adding request headers");
|
|
249283
|
-
let headers = {};
|
|
249284
|
-
options["headers"] = headers;
|
|
249285
|
-
// add the header lines
|
|
249286
|
-
for (let headerName of requestHeaders.keys()) {
|
|
249287
|
-
let headerValue = requestHeaders.get(headerName);
|
|
249288
|
-
//console.log("setting request header '"+headerName+"' value '"+headerValue+"'");
|
|
249289
|
-
headers[headerName] = headerValue;
|
|
249290
|
-
}
|
|
249291
|
-
}
|
|
249292
|
-
// make the request
|
|
249293
|
-
let request;
|
|
249294
|
-
if (url.protocol === "http:")
|
|
249295
|
-
request = http.request(options, (response) => {
|
|
249296
|
-
//console.log("download '"+requestURL+"' response code: "+response.statusCode);
|
|
249297
|
-
if (responseHeaders != null) {
|
|
249298
|
-
for (let propertyName in response.headers) {
|
|
249299
|
-
if (typeof response.headers[propertyName] === "string")
|
|
249300
|
-
responseHeaders.set(propertyName, response.headers[propertyName]);
|
|
249301
|
-
}
|
|
249302
|
-
}
|
|
249303
|
-
// process the incoming download chuncks
|
|
249304
|
-
let chunks = [];
|
|
249305
|
-
response.on("data", data => { chunks.push(data); });
|
|
249306
|
-
response.on("end", () => { callback(DownloaderNode.joinChunks(chunks, responseType)); });
|
|
249307
|
-
response.on("error", () => { errorCallback("error when downloading '" + requestURL + "'"); });
|
|
249308
|
-
});
|
|
249309
|
-
else
|
|
249310
|
-
request = https.request(options, (response) => {
|
|
249311
|
-
//console.log("download '"+requestURL+"' response code: "+response.statusCode);
|
|
249312
|
-
if (responseHeaders != null) {
|
|
249313
|
-
for (let propertyName in response.headers) {
|
|
249314
|
-
if (typeof response.headers[propertyName] === "string")
|
|
249315
|
-
responseHeaders.set(propertyName, response.headers[propertyName]);
|
|
249316
|
-
}
|
|
249317
|
-
}
|
|
249318
|
-
// process the incoming download chuncks
|
|
249319
|
-
let chunks = [];
|
|
249320
|
-
response.on("data", data => { chunks.push(data); });
|
|
249321
|
-
response.on("end", () => { callback(DownloaderNode.joinChunks(chunks, responseType)); });
|
|
249322
|
-
response.on("error", () => { errorCallback("error when downloading '" + requestURL + "'"); });
|
|
249323
|
-
});
|
|
249324
|
-
// post text?
|
|
249325
|
-
if (postText != null) {
|
|
249326
|
-
// send the request to the server
|
|
249327
|
-
//console.log("posting text '"+postText+"'");
|
|
249328
|
-
request.write(postText); // encoding argument is optional, defaults to 'utf8'
|
|
249329
|
-
}
|
|
249330
|
-
// post data?
|
|
249331
|
-
else if (postData != null) {
|
|
249332
|
-
// send the request to the server
|
|
249333
|
-
//console.log("posting binary data, size "+postData.size());
|
|
249334
|
-
request.write(Buffer.from(postData.toNativeBuffer()));
|
|
249335
|
-
}
|
|
249336
|
-
// send the request
|
|
249337
|
-
request.end();
|
|
249338
|
-
}
|
|
249339
|
-
// Downloader base class method override
|
|
249340
|
-
//
|
|
249341
|
-
async downloadBytes(method, requestURL, requestHeaders, postText, postData, responseHeaders) {
|
|
249342
|
-
return new Promise((resolve, reject) => { this.download0(method, requestURL, "arraybuffer" /*responseType*/, requestHeaders, postText, postData, responseHeaders, resolve, reject); });
|
|
249343
|
-
}
|
|
249344
|
-
// Downloader base class method override
|
|
249345
|
-
//
|
|
249346
|
-
async downloadText(method, requestURL, requestHeaders, postText, postData, responseHeaders) {
|
|
249347
|
-
return new Promise((resolve, reject) => { this.download0(method, requestURL, "text" /*responseType*/, requestHeaders, postText, postData, responseHeaders, resolve, reject); });
|
|
249348
|
-
}
|
|
249349
|
-
// Downloader base class method override
|
|
249350
|
-
//
|
|
249351
|
-
async downloadText2(requestURL) {
|
|
249352
|
-
return await this.downloadText("GET", requestURL, null, null, null, null);
|
|
249353
|
-
}
|
|
249354
|
-
}
|
|
249355
|
-
exports.DownloaderNode = DownloaderNode;
|
|
249356
|
-
|
|
249357
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js */ "../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js").Buffer))
|
|
249358
|
-
|
|
249359
246050
|
/***/ }),
|
|
249360
246051
|
|
|
249361
246052
|
/***/ "../../core/orbitgt/lib/esm/core-orbitgt.js":
|
|
@@ -269223,7 +265914,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
269223
265914
|
/*!************************************************************************!*\
|
|
269224
265915
|
!*** D:/vsts_b/6/s/presentation/common/lib/esm/presentation-common.js ***!
|
|
269225
265916
|
\************************************************************************/
|
|
269226
|
-
/*! exports provided: AsyncTasksTracker, DiagnosticsLogEntry, InstanceKey, ClassInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath, PresentationStatus, PresentationError, Key, KeySet, LabelCompositeValue, LabelDefinition, isSingleElementPropertiesRequestOptions, RegisteredRuleset, VariableValueTypes, RulesetVariable, RulesetsFactory, UPDATE_FULL, UpdateInfo, ExpandedNodeUpdateRecord, HierarchyUpdateRecord, HierarchyUpdateInfo, PartialHierarchyModification, HierarchyCompareInfo, getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT,
|
|
265917
|
+
/*! exports provided: AsyncTasksTracker, DiagnosticsLogEntry, InstanceKey, ClassInfo, PropertyInfo, RelatedClassInfo, RelatedClassInfoWithOptionalRelationship, RelationshipPath, PresentationStatus, PresentationError, Key, KeySet, LabelCompositeValue, LabelDefinition, isSingleElementPropertiesRequestOptions, RegisteredRuleset, VariableValueTypes, RulesetVariable, RulesetsFactory, UPDATE_FULL, UpdateInfo, ExpandedNodeUpdateRecord, HierarchyUpdateRecord, HierarchyUpdateInfo, PartialHierarchyModification, HierarchyCompareInfo, getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT, PRESENTATION_IPC_CHANNEL_NAME, PresentationRpcInterface, PresentationIpcEvents, RpcRequestsHandler, CategoryDescription, Content, SelectClassInfo, ContentFlags, SortDirection, Descriptor, DefaultContentDisplayTypes, Field, PropertiesField, NestedContentField, getFieldByName, FieldDescriptorType, FieldDescriptor, Item, Property, PropertyValueFormat, Value, DisplayValue, NestedContentValue, DisplayValueGroup, traverseFieldHierarchy, traverseContent, traverseContentItem, createFieldHierarchies, addFieldHierarchy, FIELD_NAMES_SEPARATOR, applyOptionalPrefix, StandardNodeTypes, NodeKey, Node, NodePathElement, NodePathFilteringData, ChildNodeSpecificationTypes, QuerySpecificationTypes, GroupingSpecificationTypes, SameLabelInstanceGroupApplicationStage, PropertyGroupingValue, InstanceLabelOverrideValueSpecificationType, ContentSpecificationTypes, PropertyEditorParameterTypes, RelationshipMeaning, RelatedPropertiesSpecialValues, RelationshipDirection, RuleTypes, VariableValueType */
|
|
269227
265918
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
269228
265919
|
|
|
269229
265920
|
"use strict";
|
|
@@ -269298,8 +265989,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
269298
265989
|
|
|
269299
265990
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PRESENTATION_COMMON_ROOT", function() { return _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__["PRESENTATION_COMMON_ROOT"]; });
|
|
269300
265991
|
|
|
269301
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLocalesDirectory", function() { return _presentation_common_Utils__WEBPACK_IMPORTED_MODULE_11__["getLocalesDirectory"]; });
|
|
269302
|
-
|
|
269303
265992
|
/* harmony import */ var _presentation_common_PresentationIpcInterface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./presentation-common/PresentationIpcInterface */ "../../presentation/common/lib/esm/presentation-common/PresentationIpcInterface.js");
|
|
269304
265993
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PRESENTATION_IPC_CHANNEL_NAME", function() { return _presentation_common_PresentationIpcInterface__WEBPACK_IMPORTED_MODULE_12__["PRESENTATION_IPC_CHANNEL_NAME"]; });
|
|
269305
265994
|
|
|
@@ -271349,7 +268038,7 @@ var HierarchyCompareInfo;
|
|
|
271349
268038
|
/*!******************************************************************************!*\
|
|
271350
268039
|
!*** D:/vsts_b/6/s/presentation/common/lib/esm/presentation-common/Utils.js ***!
|
|
271351
268040
|
\******************************************************************************/
|
|
271352
|
-
/*! exports provided: getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT
|
|
268041
|
+
/*! exports provided: getInstancesCount, DEFAULT_KEYS_BATCH_SIZE, PRESENTATION_COMMON_ROOT */
|
|
271353
268042
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
271354
268043
|
|
|
271355
268044
|
"use strict";
|
|
@@ -271357,10 +268046,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
271357
268046
|
/* WEBPACK VAR INJECTION */(function(__dirname) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInstancesCount", function() { return getInstancesCount; });
|
|
271358
268047
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_KEYS_BATCH_SIZE", function() { return DEFAULT_KEYS_BATCH_SIZE; });
|
|
271359
268048
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PRESENTATION_COMMON_ROOT", function() { return PRESENTATION_COMMON_ROOT; });
|
|
271360
|
-
/* harmony
|
|
271361
|
-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ "../../common/temp/node_modules/.pnpm/path-browserify@0.0.1/node_modules/path-browserify/index.js");
|
|
271362
|
-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
|
|
271363
|
-
/* harmony import */ var _hierarchy_Key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hierarchy/Key */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Key.js");
|
|
268049
|
+
/* harmony import */ var _hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hierarchy/Key */ "../../presentation/common/lib/esm/presentation-common/hierarchy/Key.js");
|
|
271364
268050
|
/*---------------------------------------------------------------------------------------------
|
|
271365
268051
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
271366
268052
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -271369,7 +268055,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
271369
268055
|
* @module Core
|
|
271370
268056
|
*/
|
|
271371
268057
|
|
|
271372
|
-
|
|
271373
268058
|
/**
|
|
271374
268059
|
* Get total number of instances included in the supplied key set. The
|
|
271375
268060
|
* count is calculated by adding all of the following:
|
|
@@ -271385,10 +268070,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
271385
268070
|
const getInstancesCount = (keys) => {
|
|
271386
268071
|
let count = keys.instanceKeysCount;
|
|
271387
268072
|
keys.nodeKeys.forEach((key) => {
|
|
271388
|
-
if (
|
|
268073
|
+
if (_hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__["NodeKey"].isInstancesNodeKey(key)) {
|
|
271389
268074
|
count += key.instanceKeys.length;
|
|
271390
268075
|
}
|
|
271391
|
-
else if (
|
|
268076
|
+
else if (_hierarchy_Key__WEBPACK_IMPORTED_MODULE_0__["NodeKey"].isGroupingNodeKey(key)) {
|
|
271392
268077
|
count += key.groupedInstancesCount;
|
|
271393
268078
|
}
|
|
271394
268079
|
});
|
|
@@ -271403,9 +268088,6 @@ const getInstancesCount = (keys) => {
|
|
|
271403
268088
|
const DEFAULT_KEYS_BATCH_SIZE = 5000;
|
|
271404
268089
|
/** @internal */
|
|
271405
268090
|
const PRESENTATION_COMMON_ROOT = __dirname;
|
|
271406
|
-
/** @internal */
|
|
271407
|
-
// istanbul ignore next
|
|
271408
|
-
const getLocalesDirectory = (assetsDirectory) => path__WEBPACK_IMPORTED_MODULE_0__["join"](assetsDirectory, "locales");
|
|
271409
268091
|
|
|
271410
268092
|
/* WEBPACK VAR INJECTION */}.call(this, "/"))
|
|
271411
268093
|
|
|
@@ -278298,7 +274980,7 @@ class BaseUiItemsProvider {
|
|
|
278298
274980
|
provideToolbarButtonItems(stageId, stageUsage, toolbarUsage, toolbarOrientation, stageAppData) {
|
|
278299
274981
|
let provideToStage = false;
|
|
278300
274982
|
if (this.isSupportedStage) {
|
|
278301
|
-
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData);
|
|
274983
|
+
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
|
|
278302
274984
|
}
|
|
278303
274985
|
else {
|
|
278304
274986
|
provideToStage = (stageUsage === _items_StageUsage__WEBPACK_IMPORTED_MODULE_2__["StageUsage"].General);
|
|
@@ -278311,7 +274993,7 @@ class BaseUiItemsProvider {
|
|
|
278311
274993
|
provideStatusBarItems(stageId, stageUsage, stageAppData) {
|
|
278312
274994
|
let provideToStage = false;
|
|
278313
274995
|
if (this.isSupportedStage) {
|
|
278314
|
-
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData);
|
|
274996
|
+
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
|
|
278315
274997
|
}
|
|
278316
274998
|
else {
|
|
278317
274999
|
provideToStage = (stageUsage === _items_StageUsage__WEBPACK_IMPORTED_MODULE_2__["StageUsage"].General);
|
|
@@ -278324,7 +275006,7 @@ class BaseUiItemsProvider {
|
|
|
278324
275006
|
provideWidgets(stageId, stageUsage, location, section, _zoneLocation, stageAppData) {
|
|
278325
275007
|
let provideToStage = false;
|
|
278326
275008
|
if (this.isSupportedStage) {
|
|
278327
|
-
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData);
|
|
275009
|
+
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
|
|
278328
275010
|
}
|
|
278329
275011
|
else {
|
|
278330
275012
|
provideToStage = (stageUsage === _items_StageUsage__WEBPACK_IMPORTED_MODULE_2__["StageUsage"].General);
|
|
@@ -280855,20 +277537,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
280855
277537
|
* @public
|
|
280856
277538
|
*/
|
|
280857
277539
|
class IconSpecUtilities {
|
|
280858
|
-
/** Create an IconSpec for an SVG
|
|
277540
|
+
/** Create an IconSpec for an SVG loaded into web component with sprite loader
|
|
277541
|
+
* This method is deprecated -- use createWebComponentIconSpec()
|
|
277542
|
+
* @public @deprecated
|
|
277543
|
+
*/
|
|
280859
277544
|
static createSvgIconSpec(svgSrc) {
|
|
280860
277545
|
return `${IconSpecUtilities.SVG_PREFIX}${svgSrc}`;
|
|
280861
277546
|
}
|
|
280862
|
-
/**
|
|
277547
|
+
/** Create an IconSpec for an SVG loaded into web component with svg-loader
|
|
277548
|
+
* @public
|
|
277549
|
+
*/
|
|
277550
|
+
static createWebComponentIconSpec(srcString) {
|
|
277551
|
+
return `${IconSpecUtilities.WEB_COMPONENT_PREFIX}${srcString}`;
|
|
277552
|
+
}
|
|
277553
|
+
/** Get the SVG Source from an sprite IconSpec
|
|
277554
|
+
* This method is deprecated -- use getWebComponentSource()
|
|
277555
|
+
* @public @deprecated
|
|
277556
|
+
*/
|
|
280863
277557
|
static getSvgSource(iconSpec) {
|
|
280864
277558
|
if (iconSpec.startsWith(IconSpecUtilities.SVG_PREFIX) && iconSpec.length > 4) {
|
|
280865
277559
|
return iconSpec.slice(4);
|
|
280866
277560
|
}
|
|
280867
277561
|
return undefined;
|
|
280868
277562
|
}
|
|
277563
|
+
/** Get the SVG Source from an svg-loader IconSpec
|
|
277564
|
+
* @public
|
|
277565
|
+
*/
|
|
277566
|
+
static getWebComponentSource(iconSpec) {
|
|
277567
|
+
if (iconSpec.startsWith(IconSpecUtilities.WEB_COMPONENT_PREFIX) && iconSpec.length > 7) {
|
|
277568
|
+
return iconSpec.slice(7);
|
|
277569
|
+
}
|
|
277570
|
+
return undefined;
|
|
277571
|
+
}
|
|
280869
277572
|
}
|
|
280870
|
-
/** Prefix for an SVG IconSpec */
|
|
277573
|
+
/** Prefix for an SVG IconSpec loaded with the Sprite loader */
|
|
280871
277574
|
IconSpecUtilities.SVG_PREFIX = "svg:";
|
|
277575
|
+
IconSpecUtilities.WEB_COMPONENT_PREFIX = "webSvg:";
|
|
280872
277576
|
|
|
280873
277577
|
|
|
280874
277578
|
/***/ }),
|
|
@@ -283779,7 +280483,7 @@ class TestContext {
|
|
|
283779
280483
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
283780
280484
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${(_a = process.env.IMJS_URL_PREFIX) !== null && _a !== void 0 ? _a : ""}api.bentley.com/imodels` } });
|
|
283781
280485
|
await core_frontend_1.NoRenderApp.startup({
|
|
283782
|
-
applicationVersion: "3.2.0-dev.
|
|
280486
|
+
applicationVersion: "3.2.0-dev.16",
|
|
283783
280487
|
applicationId: this.settings.gprid,
|
|
283784
280488
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
283785
280489
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|