@itwin/ecschema-rpcinterface-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 +337 -3624
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +15 -15
|
@@ -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/almost-equal@1.1.0/node_modules/almost-equal/almost_equal.js":
|
|
@@ -9574,81 +9189,6 @@ function isnan (val) {
|
|
|
9574
9189
|
|
|
9575
9190
|
/* 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")))
|
|
9576
9191
|
|
|
9577
|
-
/***/ }),
|
|
9578
|
-
|
|
9579
|
-
/***/ "../../common/temp/node_modules/.pnpm/builtin-status-codes@3.0.0/node_modules/builtin-status-codes/browser.js":
|
|
9580
|
-
/*!****************************************************************************************************************************!*\
|
|
9581
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/builtin-status-codes@3.0.0/node_modules/builtin-status-codes/browser.js ***!
|
|
9582
|
-
\****************************************************************************************************************************/
|
|
9583
|
-
/*! no static exports found */
|
|
9584
|
-
/***/ (function(module, exports) {
|
|
9585
|
-
|
|
9586
|
-
module.exports = {
|
|
9587
|
-
"100": "Continue",
|
|
9588
|
-
"101": "Switching Protocols",
|
|
9589
|
-
"102": "Processing",
|
|
9590
|
-
"200": "OK",
|
|
9591
|
-
"201": "Created",
|
|
9592
|
-
"202": "Accepted",
|
|
9593
|
-
"203": "Non-Authoritative Information",
|
|
9594
|
-
"204": "No Content",
|
|
9595
|
-
"205": "Reset Content",
|
|
9596
|
-
"206": "Partial Content",
|
|
9597
|
-
"207": "Multi-Status",
|
|
9598
|
-
"208": "Already Reported",
|
|
9599
|
-
"226": "IM Used",
|
|
9600
|
-
"300": "Multiple Choices",
|
|
9601
|
-
"301": "Moved Permanently",
|
|
9602
|
-
"302": "Found",
|
|
9603
|
-
"303": "See Other",
|
|
9604
|
-
"304": "Not Modified",
|
|
9605
|
-
"305": "Use Proxy",
|
|
9606
|
-
"307": "Temporary Redirect",
|
|
9607
|
-
"308": "Permanent Redirect",
|
|
9608
|
-
"400": "Bad Request",
|
|
9609
|
-
"401": "Unauthorized",
|
|
9610
|
-
"402": "Payment Required",
|
|
9611
|
-
"403": "Forbidden",
|
|
9612
|
-
"404": "Not Found",
|
|
9613
|
-
"405": "Method Not Allowed",
|
|
9614
|
-
"406": "Not Acceptable",
|
|
9615
|
-
"407": "Proxy Authentication Required",
|
|
9616
|
-
"408": "Request Timeout",
|
|
9617
|
-
"409": "Conflict",
|
|
9618
|
-
"410": "Gone",
|
|
9619
|
-
"411": "Length Required",
|
|
9620
|
-
"412": "Precondition Failed",
|
|
9621
|
-
"413": "Payload Too Large",
|
|
9622
|
-
"414": "URI Too Long",
|
|
9623
|
-
"415": "Unsupported Media Type",
|
|
9624
|
-
"416": "Range Not Satisfiable",
|
|
9625
|
-
"417": "Expectation Failed",
|
|
9626
|
-
"418": "I'm a teapot",
|
|
9627
|
-
"421": "Misdirected Request",
|
|
9628
|
-
"422": "Unprocessable Entity",
|
|
9629
|
-
"423": "Locked",
|
|
9630
|
-
"424": "Failed Dependency",
|
|
9631
|
-
"425": "Unordered Collection",
|
|
9632
|
-
"426": "Upgrade Required",
|
|
9633
|
-
"428": "Precondition Required",
|
|
9634
|
-
"429": "Too Many Requests",
|
|
9635
|
-
"431": "Request Header Fields Too Large",
|
|
9636
|
-
"451": "Unavailable For Legal Reasons",
|
|
9637
|
-
"500": "Internal Server Error",
|
|
9638
|
-
"501": "Not Implemented",
|
|
9639
|
-
"502": "Bad Gateway",
|
|
9640
|
-
"503": "Service Unavailable",
|
|
9641
|
-
"504": "Gateway Timeout",
|
|
9642
|
-
"505": "HTTP Version Not Supported",
|
|
9643
|
-
"506": "Variant Also Negotiates",
|
|
9644
|
-
"507": "Insufficient Storage",
|
|
9645
|
-
"508": "Loop Detected",
|
|
9646
|
-
"509": "Bandwidth Limit Exceeded",
|
|
9647
|
-
"510": "Not Extended",
|
|
9648
|
-
"511": "Network Authentication Required"
|
|
9649
|
-
}
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
9192
|
/***/ }),
|
|
9653
9193
|
|
|
9654
9194
|
/***/ "../../common/temp/node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js":
|
|
@@ -22859,48 +22399,6 @@ var bind = __webpack_require__(/*! function-bind */ "../../common/temp/node_modu
|
|
|
22859
22399
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
22860
22400
|
|
|
22861
22401
|
|
|
22862
|
-
/***/ }),
|
|
22863
|
-
|
|
22864
|
-
/***/ "../../common/temp/node_modules/.pnpm/https-browserify@1.0.0/node_modules/https-browserify/index.js":
|
|
22865
|
-
/*!******************************************************************************************************************!*\
|
|
22866
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/https-browserify@1.0.0/node_modules/https-browserify/index.js ***!
|
|
22867
|
-
\******************************************************************************************************************/
|
|
22868
|
-
/*! no static exports found */
|
|
22869
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22870
|
-
|
|
22871
|
-
var http = __webpack_require__(/*! http */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/index.js")
|
|
22872
|
-
var url = __webpack_require__(/*! url */ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/url.js")
|
|
22873
|
-
|
|
22874
|
-
var https = module.exports
|
|
22875
|
-
|
|
22876
|
-
for (var key in http) {
|
|
22877
|
-
if (http.hasOwnProperty(key)) https[key] = http[key]
|
|
22878
|
-
}
|
|
22879
|
-
|
|
22880
|
-
https.request = function (params, cb) {
|
|
22881
|
-
params = validateParams(params)
|
|
22882
|
-
return http.request.call(this, params, cb)
|
|
22883
|
-
}
|
|
22884
|
-
|
|
22885
|
-
https.get = function (params, cb) {
|
|
22886
|
-
params = validateParams(params)
|
|
22887
|
-
return http.get.call(this, params, cb)
|
|
22888
|
-
}
|
|
22889
|
-
|
|
22890
|
-
function validateParams (params) {
|
|
22891
|
-
if (typeof params === 'string') {
|
|
22892
|
-
params = url.parse(params)
|
|
22893
|
-
}
|
|
22894
|
-
if (!params.protocol) {
|
|
22895
|
-
params.protocol = 'https:'
|
|
22896
|
-
}
|
|
22897
|
-
if (params.protocol !== 'https:') {
|
|
22898
|
-
throw new Error('Protocol "' + params.protocol + '" not supported. Expected "https:"')
|
|
22899
|
-
}
|
|
22900
|
-
return params
|
|
22901
|
-
}
|
|
22902
|
-
|
|
22903
|
-
|
|
22904
22402
|
/***/ }),
|
|
22905
22403
|
|
|
22906
22404
|
/***/ "../../common/temp/node_modules/.pnpm/i18next-browser-languagedetector@6.1.3/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js":
|
|
@@ -28960,537 +28458,6 @@ function nextTick(fn, arg1, arg2, arg3) {
|
|
|
28960
28458
|
|
|
28961
28459
|
|
|
28962
28460
|
|
|
28963
|
-
/***/ }),
|
|
28964
|
-
|
|
28965
|
-
/***/ "../../common/temp/node_modules/.pnpm/punycode@1.4.1/node_modules/punycode/punycode.js":
|
|
28966
|
-
/*!*****************************************************************************************************!*\
|
|
28967
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/punycode@1.4.1/node_modules/punycode/punycode.js ***!
|
|
28968
|
-
\*****************************************************************************************************/
|
|
28969
|
-
/*! no static exports found */
|
|
28970
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
28971
|
-
|
|
28972
|
-
/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
28973
|
-
;(function(root) {
|
|
28974
|
-
|
|
28975
|
-
/** Detect free variables */
|
|
28976
|
-
var freeExports = true && exports &&
|
|
28977
|
-
!exports.nodeType && exports;
|
|
28978
|
-
var freeModule = true && module &&
|
|
28979
|
-
!module.nodeType && module;
|
|
28980
|
-
var freeGlobal = typeof global == 'object' && global;
|
|
28981
|
-
if (
|
|
28982
|
-
freeGlobal.global === freeGlobal ||
|
|
28983
|
-
freeGlobal.window === freeGlobal ||
|
|
28984
|
-
freeGlobal.self === freeGlobal
|
|
28985
|
-
) {
|
|
28986
|
-
root = freeGlobal;
|
|
28987
|
-
}
|
|
28988
|
-
|
|
28989
|
-
/**
|
|
28990
|
-
* The `punycode` object.
|
|
28991
|
-
* @name punycode
|
|
28992
|
-
* @type Object
|
|
28993
|
-
*/
|
|
28994
|
-
var punycode,
|
|
28995
|
-
|
|
28996
|
-
/** Highest positive signed 32-bit float value */
|
|
28997
|
-
maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
|
|
28998
|
-
|
|
28999
|
-
/** Bootstring parameters */
|
|
29000
|
-
base = 36,
|
|
29001
|
-
tMin = 1,
|
|
29002
|
-
tMax = 26,
|
|
29003
|
-
skew = 38,
|
|
29004
|
-
damp = 700,
|
|
29005
|
-
initialBias = 72,
|
|
29006
|
-
initialN = 128, // 0x80
|
|
29007
|
-
delimiter = '-', // '\x2D'
|
|
29008
|
-
|
|
29009
|
-
/** Regular expressions */
|
|
29010
|
-
regexPunycode = /^xn--/,
|
|
29011
|
-
regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
|
|
29012
|
-
regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
|
|
29013
|
-
|
|
29014
|
-
/** Error messages */
|
|
29015
|
-
errors = {
|
|
29016
|
-
'overflow': 'Overflow: input needs wider integers to process',
|
|
29017
|
-
'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
|
|
29018
|
-
'invalid-input': 'Invalid input'
|
|
29019
|
-
},
|
|
29020
|
-
|
|
29021
|
-
/** Convenience shortcuts */
|
|
29022
|
-
baseMinusTMin = base - tMin,
|
|
29023
|
-
floor = Math.floor,
|
|
29024
|
-
stringFromCharCode = String.fromCharCode,
|
|
29025
|
-
|
|
29026
|
-
/** Temporary variable */
|
|
29027
|
-
key;
|
|
29028
|
-
|
|
29029
|
-
/*--------------------------------------------------------------------------*/
|
|
29030
|
-
|
|
29031
|
-
/**
|
|
29032
|
-
* A generic error utility function.
|
|
29033
|
-
* @private
|
|
29034
|
-
* @param {String} type The error type.
|
|
29035
|
-
* @returns {Error} Throws a `RangeError` with the applicable error message.
|
|
29036
|
-
*/
|
|
29037
|
-
function error(type) {
|
|
29038
|
-
throw new RangeError(errors[type]);
|
|
29039
|
-
}
|
|
29040
|
-
|
|
29041
|
-
/**
|
|
29042
|
-
* A generic `Array#map` utility function.
|
|
29043
|
-
* @private
|
|
29044
|
-
* @param {Array} array The array to iterate over.
|
|
29045
|
-
* @param {Function} callback The function that gets called for every array
|
|
29046
|
-
* item.
|
|
29047
|
-
* @returns {Array} A new array of values returned by the callback function.
|
|
29048
|
-
*/
|
|
29049
|
-
function map(array, fn) {
|
|
29050
|
-
var length = array.length;
|
|
29051
|
-
var result = [];
|
|
29052
|
-
while (length--) {
|
|
29053
|
-
result[length] = fn(array[length]);
|
|
29054
|
-
}
|
|
29055
|
-
return result;
|
|
29056
|
-
}
|
|
29057
|
-
|
|
29058
|
-
/**
|
|
29059
|
-
* A simple `Array#map`-like wrapper to work with domain name strings or email
|
|
29060
|
-
* addresses.
|
|
29061
|
-
* @private
|
|
29062
|
-
* @param {String} domain The domain name or email address.
|
|
29063
|
-
* @param {Function} callback The function that gets called for every
|
|
29064
|
-
* character.
|
|
29065
|
-
* @returns {Array} A new string of characters returned by the callback
|
|
29066
|
-
* function.
|
|
29067
|
-
*/
|
|
29068
|
-
function mapDomain(string, fn) {
|
|
29069
|
-
var parts = string.split('@');
|
|
29070
|
-
var result = '';
|
|
29071
|
-
if (parts.length > 1) {
|
|
29072
|
-
// In email addresses, only the domain name should be punycoded. Leave
|
|
29073
|
-
// the local part (i.e. everything up to `@`) intact.
|
|
29074
|
-
result = parts[0] + '@';
|
|
29075
|
-
string = parts[1];
|
|
29076
|
-
}
|
|
29077
|
-
// Avoid `split(regex)` for IE8 compatibility. See #17.
|
|
29078
|
-
string = string.replace(regexSeparators, '\x2E');
|
|
29079
|
-
var labels = string.split('.');
|
|
29080
|
-
var encoded = map(labels, fn).join('.');
|
|
29081
|
-
return result + encoded;
|
|
29082
|
-
}
|
|
29083
|
-
|
|
29084
|
-
/**
|
|
29085
|
-
* Creates an array containing the numeric code points of each Unicode
|
|
29086
|
-
* character in the string. While JavaScript uses UCS-2 internally,
|
|
29087
|
-
* this function will convert a pair of surrogate halves (each of which
|
|
29088
|
-
* UCS-2 exposes as separate characters) into a single code point,
|
|
29089
|
-
* matching UTF-16.
|
|
29090
|
-
* @see `punycode.ucs2.encode`
|
|
29091
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
29092
|
-
* @memberOf punycode.ucs2
|
|
29093
|
-
* @name decode
|
|
29094
|
-
* @param {String} string The Unicode input string (UCS-2).
|
|
29095
|
-
* @returns {Array} The new array of code points.
|
|
29096
|
-
*/
|
|
29097
|
-
function ucs2decode(string) {
|
|
29098
|
-
var output = [],
|
|
29099
|
-
counter = 0,
|
|
29100
|
-
length = string.length,
|
|
29101
|
-
value,
|
|
29102
|
-
extra;
|
|
29103
|
-
while (counter < length) {
|
|
29104
|
-
value = string.charCodeAt(counter++);
|
|
29105
|
-
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
29106
|
-
// high surrogate, and there is a next character
|
|
29107
|
-
extra = string.charCodeAt(counter++);
|
|
29108
|
-
if ((extra & 0xFC00) == 0xDC00) { // low surrogate
|
|
29109
|
-
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
29110
|
-
} else {
|
|
29111
|
-
// unmatched surrogate; only append this code unit, in case the next
|
|
29112
|
-
// code unit is the high surrogate of a surrogate pair
|
|
29113
|
-
output.push(value);
|
|
29114
|
-
counter--;
|
|
29115
|
-
}
|
|
29116
|
-
} else {
|
|
29117
|
-
output.push(value);
|
|
29118
|
-
}
|
|
29119
|
-
}
|
|
29120
|
-
return output;
|
|
29121
|
-
}
|
|
29122
|
-
|
|
29123
|
-
/**
|
|
29124
|
-
* Creates a string based on an array of numeric code points.
|
|
29125
|
-
* @see `punycode.ucs2.decode`
|
|
29126
|
-
* @memberOf punycode.ucs2
|
|
29127
|
-
* @name encode
|
|
29128
|
-
* @param {Array} codePoints The array of numeric code points.
|
|
29129
|
-
* @returns {String} The new Unicode string (UCS-2).
|
|
29130
|
-
*/
|
|
29131
|
-
function ucs2encode(array) {
|
|
29132
|
-
return map(array, function(value) {
|
|
29133
|
-
var output = '';
|
|
29134
|
-
if (value > 0xFFFF) {
|
|
29135
|
-
value -= 0x10000;
|
|
29136
|
-
output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
|
|
29137
|
-
value = 0xDC00 | value & 0x3FF;
|
|
29138
|
-
}
|
|
29139
|
-
output += stringFromCharCode(value);
|
|
29140
|
-
return output;
|
|
29141
|
-
}).join('');
|
|
29142
|
-
}
|
|
29143
|
-
|
|
29144
|
-
/**
|
|
29145
|
-
* Converts a basic code point into a digit/integer.
|
|
29146
|
-
* @see `digitToBasic()`
|
|
29147
|
-
* @private
|
|
29148
|
-
* @param {Number} codePoint The basic numeric code point value.
|
|
29149
|
-
* @returns {Number} The numeric value of a basic code point (for use in
|
|
29150
|
-
* representing integers) in the range `0` to `base - 1`, or `base` if
|
|
29151
|
-
* the code point does not represent a value.
|
|
29152
|
-
*/
|
|
29153
|
-
function basicToDigit(codePoint) {
|
|
29154
|
-
if (codePoint - 48 < 10) {
|
|
29155
|
-
return codePoint - 22;
|
|
29156
|
-
}
|
|
29157
|
-
if (codePoint - 65 < 26) {
|
|
29158
|
-
return codePoint - 65;
|
|
29159
|
-
}
|
|
29160
|
-
if (codePoint - 97 < 26) {
|
|
29161
|
-
return codePoint - 97;
|
|
29162
|
-
}
|
|
29163
|
-
return base;
|
|
29164
|
-
}
|
|
29165
|
-
|
|
29166
|
-
/**
|
|
29167
|
-
* Converts a digit/integer into a basic code point.
|
|
29168
|
-
* @see `basicToDigit()`
|
|
29169
|
-
* @private
|
|
29170
|
-
* @param {Number} digit The numeric value of a basic code point.
|
|
29171
|
-
* @returns {Number} The basic code point whose value (when used for
|
|
29172
|
-
* representing integers) is `digit`, which needs to be in the range
|
|
29173
|
-
* `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
|
|
29174
|
-
* used; else, the lowercase form is used. The behavior is undefined
|
|
29175
|
-
* if `flag` is non-zero and `digit` has no uppercase form.
|
|
29176
|
-
*/
|
|
29177
|
-
function digitToBasic(digit, flag) {
|
|
29178
|
-
// 0..25 map to ASCII a..z or A..Z
|
|
29179
|
-
// 26..35 map to ASCII 0..9
|
|
29180
|
-
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
29181
|
-
}
|
|
29182
|
-
|
|
29183
|
-
/**
|
|
29184
|
-
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
29185
|
-
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
29186
|
-
* @private
|
|
29187
|
-
*/
|
|
29188
|
-
function adapt(delta, numPoints, firstTime) {
|
|
29189
|
-
var k = 0;
|
|
29190
|
-
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
29191
|
-
delta += floor(delta / numPoints);
|
|
29192
|
-
for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
|
|
29193
|
-
delta = floor(delta / baseMinusTMin);
|
|
29194
|
-
}
|
|
29195
|
-
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
29196
|
-
}
|
|
29197
|
-
|
|
29198
|
-
/**
|
|
29199
|
-
* Converts a Punycode string of ASCII-only symbols to a string of Unicode
|
|
29200
|
-
* symbols.
|
|
29201
|
-
* @memberOf punycode
|
|
29202
|
-
* @param {String} input The Punycode string of ASCII-only symbols.
|
|
29203
|
-
* @returns {String} The resulting string of Unicode symbols.
|
|
29204
|
-
*/
|
|
29205
|
-
function decode(input) {
|
|
29206
|
-
// Don't use UCS-2
|
|
29207
|
-
var output = [],
|
|
29208
|
-
inputLength = input.length,
|
|
29209
|
-
out,
|
|
29210
|
-
i = 0,
|
|
29211
|
-
n = initialN,
|
|
29212
|
-
bias = initialBias,
|
|
29213
|
-
basic,
|
|
29214
|
-
j,
|
|
29215
|
-
index,
|
|
29216
|
-
oldi,
|
|
29217
|
-
w,
|
|
29218
|
-
k,
|
|
29219
|
-
digit,
|
|
29220
|
-
t,
|
|
29221
|
-
/** Cached calculation results */
|
|
29222
|
-
baseMinusT;
|
|
29223
|
-
|
|
29224
|
-
// Handle the basic code points: let `basic` be the number of input code
|
|
29225
|
-
// points before the last delimiter, or `0` if there is none, then copy
|
|
29226
|
-
// the first basic code points to the output.
|
|
29227
|
-
|
|
29228
|
-
basic = input.lastIndexOf(delimiter);
|
|
29229
|
-
if (basic < 0) {
|
|
29230
|
-
basic = 0;
|
|
29231
|
-
}
|
|
29232
|
-
|
|
29233
|
-
for (j = 0; j < basic; ++j) {
|
|
29234
|
-
// if it's not a basic code point
|
|
29235
|
-
if (input.charCodeAt(j) >= 0x80) {
|
|
29236
|
-
error('not-basic');
|
|
29237
|
-
}
|
|
29238
|
-
output.push(input.charCodeAt(j));
|
|
29239
|
-
}
|
|
29240
|
-
|
|
29241
|
-
// Main decoding loop: start just after the last delimiter if any basic code
|
|
29242
|
-
// points were copied; start at the beginning otherwise.
|
|
29243
|
-
|
|
29244
|
-
for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
|
|
29245
|
-
|
|
29246
|
-
// `index` is the index of the next character to be consumed.
|
|
29247
|
-
// Decode a generalized variable-length integer into `delta`,
|
|
29248
|
-
// which gets added to `i`. The overflow checking is easier
|
|
29249
|
-
// if we increase `i` as we go, then subtract off its starting
|
|
29250
|
-
// value at the end to obtain `delta`.
|
|
29251
|
-
for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
|
|
29252
|
-
|
|
29253
|
-
if (index >= inputLength) {
|
|
29254
|
-
error('invalid-input');
|
|
29255
|
-
}
|
|
29256
|
-
|
|
29257
|
-
digit = basicToDigit(input.charCodeAt(index++));
|
|
29258
|
-
|
|
29259
|
-
if (digit >= base || digit > floor((maxInt - i) / w)) {
|
|
29260
|
-
error('overflow');
|
|
29261
|
-
}
|
|
29262
|
-
|
|
29263
|
-
i += digit * w;
|
|
29264
|
-
t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
29265
|
-
|
|
29266
|
-
if (digit < t) {
|
|
29267
|
-
break;
|
|
29268
|
-
}
|
|
29269
|
-
|
|
29270
|
-
baseMinusT = base - t;
|
|
29271
|
-
if (w > floor(maxInt / baseMinusT)) {
|
|
29272
|
-
error('overflow');
|
|
29273
|
-
}
|
|
29274
|
-
|
|
29275
|
-
w *= baseMinusT;
|
|
29276
|
-
|
|
29277
|
-
}
|
|
29278
|
-
|
|
29279
|
-
out = output.length + 1;
|
|
29280
|
-
bias = adapt(i - oldi, out, oldi == 0);
|
|
29281
|
-
|
|
29282
|
-
// `i` was supposed to wrap around from `out` to `0`,
|
|
29283
|
-
// incrementing `n` each time, so we'll fix that now:
|
|
29284
|
-
if (floor(i / out) > maxInt - n) {
|
|
29285
|
-
error('overflow');
|
|
29286
|
-
}
|
|
29287
|
-
|
|
29288
|
-
n += floor(i / out);
|
|
29289
|
-
i %= out;
|
|
29290
|
-
|
|
29291
|
-
// Insert `n` at position `i` of the output
|
|
29292
|
-
output.splice(i++, 0, n);
|
|
29293
|
-
|
|
29294
|
-
}
|
|
29295
|
-
|
|
29296
|
-
return ucs2encode(output);
|
|
29297
|
-
}
|
|
29298
|
-
|
|
29299
|
-
/**
|
|
29300
|
-
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
29301
|
-
* Punycode string of ASCII-only symbols.
|
|
29302
|
-
* @memberOf punycode
|
|
29303
|
-
* @param {String} input The string of Unicode symbols.
|
|
29304
|
-
* @returns {String} The resulting Punycode string of ASCII-only symbols.
|
|
29305
|
-
*/
|
|
29306
|
-
function encode(input) {
|
|
29307
|
-
var n,
|
|
29308
|
-
delta,
|
|
29309
|
-
handledCPCount,
|
|
29310
|
-
basicLength,
|
|
29311
|
-
bias,
|
|
29312
|
-
j,
|
|
29313
|
-
m,
|
|
29314
|
-
q,
|
|
29315
|
-
k,
|
|
29316
|
-
t,
|
|
29317
|
-
currentValue,
|
|
29318
|
-
output = [],
|
|
29319
|
-
/** `inputLength` will hold the number of code points in `input`. */
|
|
29320
|
-
inputLength,
|
|
29321
|
-
/** Cached calculation results */
|
|
29322
|
-
handledCPCountPlusOne,
|
|
29323
|
-
baseMinusT,
|
|
29324
|
-
qMinusT;
|
|
29325
|
-
|
|
29326
|
-
// Convert the input in UCS-2 to Unicode
|
|
29327
|
-
input = ucs2decode(input);
|
|
29328
|
-
|
|
29329
|
-
// Cache the length
|
|
29330
|
-
inputLength = input.length;
|
|
29331
|
-
|
|
29332
|
-
// Initialize the state
|
|
29333
|
-
n = initialN;
|
|
29334
|
-
delta = 0;
|
|
29335
|
-
bias = initialBias;
|
|
29336
|
-
|
|
29337
|
-
// Handle the basic code points
|
|
29338
|
-
for (j = 0; j < inputLength; ++j) {
|
|
29339
|
-
currentValue = input[j];
|
|
29340
|
-
if (currentValue < 0x80) {
|
|
29341
|
-
output.push(stringFromCharCode(currentValue));
|
|
29342
|
-
}
|
|
29343
|
-
}
|
|
29344
|
-
|
|
29345
|
-
handledCPCount = basicLength = output.length;
|
|
29346
|
-
|
|
29347
|
-
// `handledCPCount` is the number of code points that have been handled;
|
|
29348
|
-
// `basicLength` is the number of basic code points.
|
|
29349
|
-
|
|
29350
|
-
// Finish the basic string - if it is not empty - with a delimiter
|
|
29351
|
-
if (basicLength) {
|
|
29352
|
-
output.push(delimiter);
|
|
29353
|
-
}
|
|
29354
|
-
|
|
29355
|
-
// Main encoding loop:
|
|
29356
|
-
while (handledCPCount < inputLength) {
|
|
29357
|
-
|
|
29358
|
-
// All non-basic code points < n have been handled already. Find the next
|
|
29359
|
-
// larger one:
|
|
29360
|
-
for (m = maxInt, j = 0; j < inputLength; ++j) {
|
|
29361
|
-
currentValue = input[j];
|
|
29362
|
-
if (currentValue >= n && currentValue < m) {
|
|
29363
|
-
m = currentValue;
|
|
29364
|
-
}
|
|
29365
|
-
}
|
|
29366
|
-
|
|
29367
|
-
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
|
|
29368
|
-
// but guard against overflow
|
|
29369
|
-
handledCPCountPlusOne = handledCPCount + 1;
|
|
29370
|
-
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
29371
|
-
error('overflow');
|
|
29372
|
-
}
|
|
29373
|
-
|
|
29374
|
-
delta += (m - n) * handledCPCountPlusOne;
|
|
29375
|
-
n = m;
|
|
29376
|
-
|
|
29377
|
-
for (j = 0; j < inputLength; ++j) {
|
|
29378
|
-
currentValue = input[j];
|
|
29379
|
-
|
|
29380
|
-
if (currentValue < n && ++delta > maxInt) {
|
|
29381
|
-
error('overflow');
|
|
29382
|
-
}
|
|
29383
|
-
|
|
29384
|
-
if (currentValue == n) {
|
|
29385
|
-
// Represent delta as a generalized variable-length integer
|
|
29386
|
-
for (q = delta, k = base; /* no condition */; k += base) {
|
|
29387
|
-
t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
29388
|
-
if (q < t) {
|
|
29389
|
-
break;
|
|
29390
|
-
}
|
|
29391
|
-
qMinusT = q - t;
|
|
29392
|
-
baseMinusT = base - t;
|
|
29393
|
-
output.push(
|
|
29394
|
-
stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
|
|
29395
|
-
);
|
|
29396
|
-
q = floor(qMinusT / baseMinusT);
|
|
29397
|
-
}
|
|
29398
|
-
|
|
29399
|
-
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
29400
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
29401
|
-
delta = 0;
|
|
29402
|
-
++handledCPCount;
|
|
29403
|
-
}
|
|
29404
|
-
}
|
|
29405
|
-
|
|
29406
|
-
++delta;
|
|
29407
|
-
++n;
|
|
29408
|
-
|
|
29409
|
-
}
|
|
29410
|
-
return output.join('');
|
|
29411
|
-
}
|
|
29412
|
-
|
|
29413
|
-
/**
|
|
29414
|
-
* Converts a Punycode string representing a domain name or an email address
|
|
29415
|
-
* to Unicode. Only the Punycoded parts of the input will be converted, i.e.
|
|
29416
|
-
* it doesn't matter if you call it on a string that has already been
|
|
29417
|
-
* converted to Unicode.
|
|
29418
|
-
* @memberOf punycode
|
|
29419
|
-
* @param {String} input The Punycoded domain name or email address to
|
|
29420
|
-
* convert to Unicode.
|
|
29421
|
-
* @returns {String} The Unicode representation of the given Punycode
|
|
29422
|
-
* string.
|
|
29423
|
-
*/
|
|
29424
|
-
function toUnicode(input) {
|
|
29425
|
-
return mapDomain(input, function(string) {
|
|
29426
|
-
return regexPunycode.test(string)
|
|
29427
|
-
? decode(string.slice(4).toLowerCase())
|
|
29428
|
-
: string;
|
|
29429
|
-
});
|
|
29430
|
-
}
|
|
29431
|
-
|
|
29432
|
-
/**
|
|
29433
|
-
* Converts a Unicode string representing a domain name or an email address to
|
|
29434
|
-
* Punycode. Only the non-ASCII parts of the domain name will be converted,
|
|
29435
|
-
* i.e. it doesn't matter if you call it with a domain that's already in
|
|
29436
|
-
* ASCII.
|
|
29437
|
-
* @memberOf punycode
|
|
29438
|
-
* @param {String} input The domain name or email address to convert, as a
|
|
29439
|
-
* Unicode string.
|
|
29440
|
-
* @returns {String} The Punycode representation of the given domain name or
|
|
29441
|
-
* email address.
|
|
29442
|
-
*/
|
|
29443
|
-
function toASCII(input) {
|
|
29444
|
-
return mapDomain(input, function(string) {
|
|
29445
|
-
return regexNonASCII.test(string)
|
|
29446
|
-
? 'xn--' + encode(string)
|
|
29447
|
-
: string;
|
|
29448
|
-
});
|
|
29449
|
-
}
|
|
29450
|
-
|
|
29451
|
-
/*--------------------------------------------------------------------------*/
|
|
29452
|
-
|
|
29453
|
-
/** Define the public API */
|
|
29454
|
-
punycode = {
|
|
29455
|
-
/**
|
|
29456
|
-
* A string representing the current Punycode.js version number.
|
|
29457
|
-
* @memberOf punycode
|
|
29458
|
-
* @type String
|
|
29459
|
-
*/
|
|
29460
|
-
'version': '1.4.1',
|
|
29461
|
-
/**
|
|
29462
|
-
* An object of methods to convert from JavaScript's internal character
|
|
29463
|
-
* representation (UCS-2) to Unicode code points, and back.
|
|
29464
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
29465
|
-
* @memberOf punycode
|
|
29466
|
-
* @type Object
|
|
29467
|
-
*/
|
|
29468
|
-
'ucs2': {
|
|
29469
|
-
'decode': ucs2decode,
|
|
29470
|
-
'encode': ucs2encode
|
|
29471
|
-
},
|
|
29472
|
-
'decode': decode,
|
|
29473
|
-
'encode': encode,
|
|
29474
|
-
'toASCII': toASCII,
|
|
29475
|
-
'toUnicode': toUnicode
|
|
29476
|
-
};
|
|
29477
|
-
|
|
29478
|
-
/** Expose `punycode` */
|
|
29479
|
-
// Some AMD build optimizers, like r.js, check for specific condition patterns
|
|
29480
|
-
// like the following:
|
|
29481
|
-
if (
|
|
29482
|
-
true
|
|
29483
|
-
) {
|
|
29484
|
-
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
|
|
29485
|
-
return punycode;
|
|
29486
|
-
}).call(exports, __webpack_require__, exports, module),
|
|
29487
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
29488
|
-
} else {}
|
|
29489
|
-
|
|
29490
|
-
}(this));
|
|
29491
|
-
|
|
29492
|
-
/* 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")))
|
|
29493
|
-
|
|
29494
28461
|
/***/ }),
|
|
29495
28462
|
|
|
29496
28463
|
/***/ "../../common/temp/node_modules/.pnpm/qs@6.10.3/node_modules/qs/lib/formats.js":
|
|
@@ -30419,231 +29386,22 @@ module.exports = {
|
|
|
30419
29386
|
|
|
30420
29387
|
/***/ }),
|
|
30421
29388
|
|
|
30422
|
-
/***/ "../../common/temp/node_modules/.pnpm/
|
|
30423
|
-
|
|
30424
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/
|
|
30425
|
-
|
|
30426
|
-
/*! no static exports found */
|
|
30427
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30428
|
-
|
|
30429
|
-
|
|
30430
|
-
|
|
30431
|
-
|
|
30432
|
-
|
|
30433
|
-
|
|
30434
|
-
|
|
30435
|
-
|
|
30436
|
-
|
|
30437
|
-
|
|
30438
|
-
// following conditions:
|
|
30439
|
-
//
|
|
30440
|
-
// The above copyright notice and this permission notice shall be included
|
|
30441
|
-
// in all copies or substantial portions of the Software.
|
|
30442
|
-
//
|
|
30443
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
30444
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
30445
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
30446
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
30447
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
30448
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
30449
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30450
|
-
|
|
30451
|
-
|
|
30452
|
-
|
|
30453
|
-
// If obj.hasOwnProperty has been overridden, then calling
|
|
30454
|
-
// obj.hasOwnProperty(prop) will break.
|
|
30455
|
-
// See: https://github.com/joyent/node/issues/1707
|
|
30456
|
-
function hasOwnProperty(obj, prop) {
|
|
30457
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
30458
|
-
}
|
|
30459
|
-
|
|
30460
|
-
module.exports = function(qs, sep, eq, options) {
|
|
30461
|
-
sep = sep || '&';
|
|
30462
|
-
eq = eq || '=';
|
|
30463
|
-
var obj = {};
|
|
30464
|
-
|
|
30465
|
-
if (typeof qs !== 'string' || qs.length === 0) {
|
|
30466
|
-
return obj;
|
|
30467
|
-
}
|
|
30468
|
-
|
|
30469
|
-
var regexp = /\+/g;
|
|
30470
|
-
qs = qs.split(sep);
|
|
30471
|
-
|
|
30472
|
-
var maxKeys = 1000;
|
|
30473
|
-
if (options && typeof options.maxKeys === 'number') {
|
|
30474
|
-
maxKeys = options.maxKeys;
|
|
30475
|
-
}
|
|
30476
|
-
|
|
30477
|
-
var len = qs.length;
|
|
30478
|
-
// maxKeys <= 0 means that we should not limit keys count
|
|
30479
|
-
if (maxKeys > 0 && len > maxKeys) {
|
|
30480
|
-
len = maxKeys;
|
|
30481
|
-
}
|
|
30482
|
-
|
|
30483
|
-
for (var i = 0; i < len; ++i) {
|
|
30484
|
-
var x = qs[i].replace(regexp, '%20'),
|
|
30485
|
-
idx = x.indexOf(eq),
|
|
30486
|
-
kstr, vstr, k, v;
|
|
30487
|
-
|
|
30488
|
-
if (idx >= 0) {
|
|
30489
|
-
kstr = x.substr(0, idx);
|
|
30490
|
-
vstr = x.substr(idx + 1);
|
|
30491
|
-
} else {
|
|
30492
|
-
kstr = x;
|
|
30493
|
-
vstr = '';
|
|
30494
|
-
}
|
|
30495
|
-
|
|
30496
|
-
k = decodeURIComponent(kstr);
|
|
30497
|
-
v = decodeURIComponent(vstr);
|
|
30498
|
-
|
|
30499
|
-
if (!hasOwnProperty(obj, k)) {
|
|
30500
|
-
obj[k] = v;
|
|
30501
|
-
} else if (isArray(obj[k])) {
|
|
30502
|
-
obj[k].push(v);
|
|
30503
|
-
} else {
|
|
30504
|
-
obj[k] = [obj[k], v];
|
|
30505
|
-
}
|
|
30506
|
-
}
|
|
30507
|
-
|
|
30508
|
-
return obj;
|
|
30509
|
-
};
|
|
30510
|
-
|
|
30511
|
-
var isArray = Array.isArray || function (xs) {
|
|
30512
|
-
return Object.prototype.toString.call(xs) === '[object Array]';
|
|
30513
|
-
};
|
|
30514
|
-
|
|
30515
|
-
|
|
30516
|
-
/***/ }),
|
|
30517
|
-
|
|
30518
|
-
/***/ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/encode.js":
|
|
30519
|
-
/*!*****************************************************************************************************************!*\
|
|
30520
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/encode.js ***!
|
|
30521
|
-
\*****************************************************************************************************************/
|
|
30522
|
-
/*! no static exports found */
|
|
30523
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30524
|
-
|
|
30525
|
-
"use strict";
|
|
30526
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
30527
|
-
//
|
|
30528
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
30529
|
-
// copy of this software and associated documentation files (the
|
|
30530
|
-
// "Software"), to deal in the Software without restriction, including
|
|
30531
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
30532
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
30533
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
30534
|
-
// following conditions:
|
|
30535
|
-
//
|
|
30536
|
-
// The above copyright notice and this permission notice shall be included
|
|
30537
|
-
// in all copies or substantial portions of the Software.
|
|
30538
|
-
//
|
|
30539
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
30540
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
30541
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
30542
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
30543
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
30544
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
30545
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30546
|
-
|
|
30547
|
-
|
|
30548
|
-
|
|
30549
|
-
var stringifyPrimitive = function(v) {
|
|
30550
|
-
switch (typeof v) {
|
|
30551
|
-
case 'string':
|
|
30552
|
-
return v;
|
|
30553
|
-
|
|
30554
|
-
case 'boolean':
|
|
30555
|
-
return v ? 'true' : 'false';
|
|
30556
|
-
|
|
30557
|
-
case 'number':
|
|
30558
|
-
return isFinite(v) ? v : '';
|
|
30559
|
-
|
|
30560
|
-
default:
|
|
30561
|
-
return '';
|
|
30562
|
-
}
|
|
30563
|
-
};
|
|
30564
|
-
|
|
30565
|
-
module.exports = function(obj, sep, eq, name) {
|
|
30566
|
-
sep = sep || '&';
|
|
30567
|
-
eq = eq || '=';
|
|
30568
|
-
if (obj === null) {
|
|
30569
|
-
obj = undefined;
|
|
30570
|
-
}
|
|
30571
|
-
|
|
30572
|
-
if (typeof obj === 'object') {
|
|
30573
|
-
return map(objectKeys(obj), function(k) {
|
|
30574
|
-
var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
|
|
30575
|
-
if (isArray(obj[k])) {
|
|
30576
|
-
return map(obj[k], function(v) {
|
|
30577
|
-
return ks + encodeURIComponent(stringifyPrimitive(v));
|
|
30578
|
-
}).join(sep);
|
|
30579
|
-
} else {
|
|
30580
|
-
return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
|
|
30581
|
-
}
|
|
30582
|
-
}).join(sep);
|
|
30583
|
-
|
|
30584
|
-
}
|
|
30585
|
-
|
|
30586
|
-
if (!name) return '';
|
|
30587
|
-
return encodeURIComponent(stringifyPrimitive(name)) + eq +
|
|
30588
|
-
encodeURIComponent(stringifyPrimitive(obj));
|
|
30589
|
-
};
|
|
30590
|
-
|
|
30591
|
-
var isArray = Array.isArray || function (xs) {
|
|
30592
|
-
return Object.prototype.toString.call(xs) === '[object Array]';
|
|
30593
|
-
};
|
|
30594
|
-
|
|
30595
|
-
function map (xs, f) {
|
|
30596
|
-
if (xs.map) return xs.map(f);
|
|
30597
|
-
var res = [];
|
|
30598
|
-
for (var i = 0; i < xs.length; i++) {
|
|
30599
|
-
res.push(f(xs[i], i));
|
|
30600
|
-
}
|
|
30601
|
-
return res;
|
|
30602
|
-
}
|
|
30603
|
-
|
|
30604
|
-
var objectKeys = Object.keys || function (obj) {
|
|
30605
|
-
var res = [];
|
|
30606
|
-
for (var key in obj) {
|
|
30607
|
-
if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
|
|
30608
|
-
}
|
|
30609
|
-
return res;
|
|
30610
|
-
};
|
|
30611
|
-
|
|
30612
|
-
|
|
30613
|
-
/***/ }),
|
|
30614
|
-
|
|
30615
|
-
/***/ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/index.js":
|
|
30616
|
-
/*!****************************************************************************************************************!*\
|
|
30617
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/index.js ***!
|
|
30618
|
-
\****************************************************************************************************************/
|
|
30619
|
-
/*! no static exports found */
|
|
30620
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30621
|
-
|
|
30622
|
-
"use strict";
|
|
30623
|
-
|
|
30624
|
-
|
|
30625
|
-
exports.decode = exports.parse = __webpack_require__(/*! ./decode */ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/decode.js");
|
|
30626
|
-
exports.encode = exports.stringify = __webpack_require__(/*! ./encode */ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/encode.js");
|
|
30627
|
-
|
|
30628
|
-
|
|
30629
|
-
/***/ }),
|
|
30630
|
-
|
|
30631
|
-
/***/ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex-browser.js":
|
|
30632
|
-
/*!*************************************************************************************************************************!*\
|
|
30633
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex-browser.js ***!
|
|
30634
|
-
\*************************************************************************************************************************/
|
|
30635
|
-
/*! no static exports found */
|
|
30636
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30637
|
-
|
|
30638
|
-
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");
|
|
30639
|
-
|
|
30640
|
-
|
|
30641
|
-
/***/ }),
|
|
30642
|
-
|
|
30643
|
-
/***/ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js":
|
|
30644
|
-
/*!*****************************************************************************************************************************!*\
|
|
30645
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js ***!
|
|
30646
|
-
\*****************************************************************************************************************************/
|
|
29389
|
+
/***/ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex-browser.js":
|
|
29390
|
+
/*!*************************************************************************************************************************!*\
|
|
29391
|
+
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/duplex-browser.js ***!
|
|
29392
|
+
\*************************************************************************************************************************/
|
|
29393
|
+
/*! no static exports found */
|
|
29394
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29395
|
+
|
|
29396
|
+
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");
|
|
29397
|
+
|
|
29398
|
+
|
|
29399
|
+
/***/ }),
|
|
29400
|
+
|
|
29401
|
+
/***/ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js":
|
|
29402
|
+
/*!*****************************************************************************************************************************!*\
|
|
29403
|
+
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/lib/_stream_duplex.js ***!
|
|
29404
|
+
\*****************************************************************************************************************************/
|
|
30647
29405
|
/*! no static exports found */
|
|
30648
29406
|
/***/ (function(module, exports, __webpack_require__) {
|
|
30649
29407
|
|
|
@@ -36726,762 +35484,6 @@ Stream.prototype.pipe = function(dest, options) {
|
|
|
36726
35484
|
};
|
|
36727
35485
|
|
|
36728
35486
|
|
|
36729
|
-
/***/ }),
|
|
36730
|
-
|
|
36731
|
-
/***/ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/index.js":
|
|
36732
|
-
/*!********************************************************************************************************!*\
|
|
36733
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/index.js ***!
|
|
36734
|
-
\********************************************************************************************************/
|
|
36735
|
-
/*! no static exports found */
|
|
36736
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
36737
|
-
|
|
36738
|
-
/* 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")
|
|
36739
|
-
var response = __webpack_require__(/*! ./lib/response */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/response.js")
|
|
36740
|
-
var extend = __webpack_require__(/*! xtend */ "../../common/temp/node_modules/.pnpm/xtend@4.0.2/node_modules/xtend/immutable.js")
|
|
36741
|
-
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")
|
|
36742
|
-
var url = __webpack_require__(/*! url */ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/url.js")
|
|
36743
|
-
|
|
36744
|
-
var http = exports
|
|
36745
|
-
|
|
36746
|
-
http.request = function (opts, cb) {
|
|
36747
|
-
if (typeof opts === 'string')
|
|
36748
|
-
opts = url.parse(opts)
|
|
36749
|
-
else
|
|
36750
|
-
opts = extend(opts)
|
|
36751
|
-
|
|
36752
|
-
// Normally, the page is loaded from http or https, so not specifying a protocol
|
|
36753
|
-
// will result in a (valid) protocol-relative url. However, this won't work if
|
|
36754
|
-
// the protocol is something else, like 'file:'
|
|
36755
|
-
var defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''
|
|
36756
|
-
|
|
36757
|
-
var protocol = opts.protocol || defaultProtocol
|
|
36758
|
-
var host = opts.hostname || opts.host
|
|
36759
|
-
var port = opts.port
|
|
36760
|
-
var path = opts.path || '/'
|
|
36761
|
-
|
|
36762
|
-
// Necessary for IPv6 addresses
|
|
36763
|
-
if (host && host.indexOf(':') !== -1)
|
|
36764
|
-
host = '[' + host + ']'
|
|
36765
|
-
|
|
36766
|
-
// This may be a relative url. The browser should always be able to interpret it correctly.
|
|
36767
|
-
opts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path
|
|
36768
|
-
opts.method = (opts.method || 'GET').toUpperCase()
|
|
36769
|
-
opts.headers = opts.headers || {}
|
|
36770
|
-
|
|
36771
|
-
// Also valid opts.auth, opts.mode
|
|
36772
|
-
|
|
36773
|
-
var req = new ClientRequest(opts)
|
|
36774
|
-
if (cb)
|
|
36775
|
-
req.on('response', cb)
|
|
36776
|
-
return req
|
|
36777
|
-
}
|
|
36778
|
-
|
|
36779
|
-
http.get = function get (opts, cb) {
|
|
36780
|
-
var req = http.request(opts, cb)
|
|
36781
|
-
req.end()
|
|
36782
|
-
return req
|
|
36783
|
-
}
|
|
36784
|
-
|
|
36785
|
-
http.ClientRequest = ClientRequest
|
|
36786
|
-
http.IncomingMessage = response.IncomingMessage
|
|
36787
|
-
|
|
36788
|
-
http.Agent = function () {}
|
|
36789
|
-
http.Agent.defaultMaxSockets = 4
|
|
36790
|
-
|
|
36791
|
-
http.globalAgent = new http.Agent()
|
|
36792
|
-
|
|
36793
|
-
http.STATUS_CODES = statusCodes
|
|
36794
|
-
|
|
36795
|
-
http.METHODS = [
|
|
36796
|
-
'CHECKOUT',
|
|
36797
|
-
'CONNECT',
|
|
36798
|
-
'COPY',
|
|
36799
|
-
'DELETE',
|
|
36800
|
-
'GET',
|
|
36801
|
-
'HEAD',
|
|
36802
|
-
'LOCK',
|
|
36803
|
-
'M-SEARCH',
|
|
36804
|
-
'MERGE',
|
|
36805
|
-
'MKACTIVITY',
|
|
36806
|
-
'MKCOL',
|
|
36807
|
-
'MOVE',
|
|
36808
|
-
'NOTIFY',
|
|
36809
|
-
'OPTIONS',
|
|
36810
|
-
'PATCH',
|
|
36811
|
-
'POST',
|
|
36812
|
-
'PROPFIND',
|
|
36813
|
-
'PROPPATCH',
|
|
36814
|
-
'PURGE',
|
|
36815
|
-
'PUT',
|
|
36816
|
-
'REPORT',
|
|
36817
|
-
'SEARCH',
|
|
36818
|
-
'SUBSCRIBE',
|
|
36819
|
-
'TRACE',
|
|
36820
|
-
'UNLOCK',
|
|
36821
|
-
'UNSUBSCRIBE'
|
|
36822
|
-
]
|
|
36823
|
-
/* 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")))
|
|
36824
|
-
|
|
36825
|
-
/***/ }),
|
|
36826
|
-
|
|
36827
|
-
/***/ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/capability.js":
|
|
36828
|
-
/*!*****************************************************************************************************************!*\
|
|
36829
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/capability.js ***!
|
|
36830
|
-
\*****************************************************************************************************************/
|
|
36831
|
-
/*! no static exports found */
|
|
36832
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
36833
|
-
|
|
36834
|
-
/* WEBPACK VAR INJECTION */(function(global) {exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
|
|
36835
|
-
|
|
36836
|
-
exports.writableStream = isFunction(global.WritableStream)
|
|
36837
|
-
|
|
36838
|
-
exports.abortController = isFunction(global.AbortController)
|
|
36839
|
-
|
|
36840
|
-
exports.blobConstructor = false
|
|
36841
|
-
try {
|
|
36842
|
-
new Blob([new ArrayBuffer(1)])
|
|
36843
|
-
exports.blobConstructor = true
|
|
36844
|
-
} catch (e) {}
|
|
36845
|
-
|
|
36846
|
-
// The xhr request to example.com may violate some restrictive CSP configurations,
|
|
36847
|
-
// so if we're running in a browser that supports `fetch`, avoid calling getXHR()
|
|
36848
|
-
// and assume support for certain features below.
|
|
36849
|
-
var xhr
|
|
36850
|
-
function getXHR () {
|
|
36851
|
-
// Cache the xhr value
|
|
36852
|
-
if (xhr !== undefined) return xhr
|
|
36853
|
-
|
|
36854
|
-
if (global.XMLHttpRequest) {
|
|
36855
|
-
xhr = new global.XMLHttpRequest()
|
|
36856
|
-
// If XDomainRequest is available (ie only, where xhr might not work
|
|
36857
|
-
// cross domain), use the page location. Otherwise use example.com
|
|
36858
|
-
// Note: this doesn't actually make an http request.
|
|
36859
|
-
try {
|
|
36860
|
-
xhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')
|
|
36861
|
-
} catch(e) {
|
|
36862
|
-
xhr = null
|
|
36863
|
-
}
|
|
36864
|
-
} else {
|
|
36865
|
-
// Service workers don't have XHR
|
|
36866
|
-
xhr = null
|
|
36867
|
-
}
|
|
36868
|
-
return xhr
|
|
36869
|
-
}
|
|
36870
|
-
|
|
36871
|
-
function checkTypeSupport (type) {
|
|
36872
|
-
var xhr = getXHR()
|
|
36873
|
-
if (!xhr) return false
|
|
36874
|
-
try {
|
|
36875
|
-
xhr.responseType = type
|
|
36876
|
-
return xhr.responseType === type
|
|
36877
|
-
} catch (e) {}
|
|
36878
|
-
return false
|
|
36879
|
-
}
|
|
36880
|
-
|
|
36881
|
-
// For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.
|
|
36882
|
-
// Safari 7.1 appears to have fixed this bug.
|
|
36883
|
-
var haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'
|
|
36884
|
-
var haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)
|
|
36885
|
-
|
|
36886
|
-
// If fetch is supported, then arraybuffer will be supported too. Skip calling
|
|
36887
|
-
// checkTypeSupport(), since that calls getXHR().
|
|
36888
|
-
exports.arraybuffer = exports.fetch || (haveArrayBuffer && checkTypeSupport('arraybuffer'))
|
|
36889
|
-
|
|
36890
|
-
// These next two tests unavoidably show warnings in Chrome. Since fetch will always
|
|
36891
|
-
// be used if it's available, just return false for these to avoid the warnings.
|
|
36892
|
-
exports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')
|
|
36893
|
-
exports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&
|
|
36894
|
-
checkTypeSupport('moz-chunked-arraybuffer')
|
|
36895
|
-
|
|
36896
|
-
// If fetch is supported, then overrideMimeType will be supported too. Skip calling
|
|
36897
|
-
// getXHR().
|
|
36898
|
-
exports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)
|
|
36899
|
-
|
|
36900
|
-
exports.vbArray = isFunction(global.VBArray)
|
|
36901
|
-
|
|
36902
|
-
function isFunction (value) {
|
|
36903
|
-
return typeof value === 'function'
|
|
36904
|
-
}
|
|
36905
|
-
|
|
36906
|
-
xhr = null // Help gc
|
|
36907
|
-
|
|
36908
|
-
/* 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")))
|
|
36909
|
-
|
|
36910
|
-
/***/ }),
|
|
36911
|
-
|
|
36912
|
-
/***/ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/request.js":
|
|
36913
|
-
/*!**************************************************************************************************************!*\
|
|
36914
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/request.js ***!
|
|
36915
|
-
\**************************************************************************************************************/
|
|
36916
|
-
/*! no static exports found */
|
|
36917
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
36918
|
-
|
|
36919
|
-
/* 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")
|
|
36920
|
-
var inherits = __webpack_require__(/*! inherits */ "../../common/temp/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js")
|
|
36921
|
-
var response = __webpack_require__(/*! ./response */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/response.js")
|
|
36922
|
-
var stream = __webpack_require__(/*! readable-stream */ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/readable-browser.js")
|
|
36923
|
-
var toArrayBuffer = __webpack_require__(/*! to-arraybuffer */ "../../common/temp/node_modules/.pnpm/to-arraybuffer@1.0.1/node_modules/to-arraybuffer/index.js")
|
|
36924
|
-
|
|
36925
|
-
var IncomingMessage = response.IncomingMessage
|
|
36926
|
-
var rStates = response.readyStates
|
|
36927
|
-
|
|
36928
|
-
function decideMode (preferBinary, useFetch) {
|
|
36929
|
-
if (capability.fetch && useFetch) {
|
|
36930
|
-
return 'fetch'
|
|
36931
|
-
} else if (capability.mozchunkedarraybuffer) {
|
|
36932
|
-
return 'moz-chunked-arraybuffer'
|
|
36933
|
-
} else if (capability.msstream) {
|
|
36934
|
-
return 'ms-stream'
|
|
36935
|
-
} else if (capability.arraybuffer && preferBinary) {
|
|
36936
|
-
return 'arraybuffer'
|
|
36937
|
-
} else if (capability.vbArray && preferBinary) {
|
|
36938
|
-
return 'text:vbarray'
|
|
36939
|
-
} else {
|
|
36940
|
-
return 'text'
|
|
36941
|
-
}
|
|
36942
|
-
}
|
|
36943
|
-
|
|
36944
|
-
var ClientRequest = module.exports = function (opts) {
|
|
36945
|
-
var self = this
|
|
36946
|
-
stream.Writable.call(self)
|
|
36947
|
-
|
|
36948
|
-
self._opts = opts
|
|
36949
|
-
self._body = []
|
|
36950
|
-
self._headers = {}
|
|
36951
|
-
if (opts.auth)
|
|
36952
|
-
self.setHeader('Authorization', 'Basic ' + new Buffer(opts.auth).toString('base64'))
|
|
36953
|
-
Object.keys(opts.headers).forEach(function (name) {
|
|
36954
|
-
self.setHeader(name, opts.headers[name])
|
|
36955
|
-
})
|
|
36956
|
-
|
|
36957
|
-
var preferBinary
|
|
36958
|
-
var useFetch = true
|
|
36959
|
-
if (opts.mode === 'disable-fetch' || ('requestTimeout' in opts && !capability.abortController)) {
|
|
36960
|
-
// If the use of XHR should be preferred. Not typically needed.
|
|
36961
|
-
useFetch = false
|
|
36962
|
-
preferBinary = true
|
|
36963
|
-
} else if (opts.mode === 'prefer-streaming') {
|
|
36964
|
-
// If streaming is a high priority but binary compatibility and
|
|
36965
|
-
// the accuracy of the 'content-type' header aren't
|
|
36966
|
-
preferBinary = false
|
|
36967
|
-
} else if (opts.mode === 'allow-wrong-content-type') {
|
|
36968
|
-
// If streaming is more important than preserving the 'content-type' header
|
|
36969
|
-
preferBinary = !capability.overrideMimeType
|
|
36970
|
-
} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {
|
|
36971
|
-
// Use binary if text streaming may corrupt data or the content-type header, or for speed
|
|
36972
|
-
preferBinary = true
|
|
36973
|
-
} else {
|
|
36974
|
-
throw new Error('Invalid value for opts.mode')
|
|
36975
|
-
}
|
|
36976
|
-
self._mode = decideMode(preferBinary, useFetch)
|
|
36977
|
-
self._fetchTimer = null
|
|
36978
|
-
|
|
36979
|
-
self.on('finish', function () {
|
|
36980
|
-
self._onFinish()
|
|
36981
|
-
})
|
|
36982
|
-
}
|
|
36983
|
-
|
|
36984
|
-
inherits(ClientRequest, stream.Writable)
|
|
36985
|
-
|
|
36986
|
-
ClientRequest.prototype.setHeader = function (name, value) {
|
|
36987
|
-
var self = this
|
|
36988
|
-
var lowerName = name.toLowerCase()
|
|
36989
|
-
// This check is not necessary, but it prevents warnings from browsers about setting unsafe
|
|
36990
|
-
// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but
|
|
36991
|
-
// http-browserify did it, so I will too.
|
|
36992
|
-
if (unsafeHeaders.indexOf(lowerName) !== -1)
|
|
36993
|
-
return
|
|
36994
|
-
|
|
36995
|
-
self._headers[lowerName] = {
|
|
36996
|
-
name: name,
|
|
36997
|
-
value: value
|
|
36998
|
-
}
|
|
36999
|
-
}
|
|
37000
|
-
|
|
37001
|
-
ClientRequest.prototype.getHeader = function (name) {
|
|
37002
|
-
var header = this._headers[name.toLowerCase()]
|
|
37003
|
-
if (header)
|
|
37004
|
-
return header.value
|
|
37005
|
-
return null
|
|
37006
|
-
}
|
|
37007
|
-
|
|
37008
|
-
ClientRequest.prototype.removeHeader = function (name) {
|
|
37009
|
-
var self = this
|
|
37010
|
-
delete self._headers[name.toLowerCase()]
|
|
37011
|
-
}
|
|
37012
|
-
|
|
37013
|
-
ClientRequest.prototype._onFinish = function () {
|
|
37014
|
-
var self = this
|
|
37015
|
-
|
|
37016
|
-
if (self._destroyed)
|
|
37017
|
-
return
|
|
37018
|
-
var opts = self._opts
|
|
37019
|
-
|
|
37020
|
-
var headersObj = self._headers
|
|
37021
|
-
var body = null
|
|
37022
|
-
if (opts.method !== 'GET' && opts.method !== 'HEAD') {
|
|
37023
|
-
if (capability.arraybuffer) {
|
|
37024
|
-
body = toArrayBuffer(Buffer.concat(self._body))
|
|
37025
|
-
} else if (capability.blobConstructor) {
|
|
37026
|
-
body = new global.Blob(self._body.map(function (buffer) {
|
|
37027
|
-
return toArrayBuffer(buffer)
|
|
37028
|
-
}), {
|
|
37029
|
-
type: (headersObj['content-type'] || {}).value || ''
|
|
37030
|
-
})
|
|
37031
|
-
} else {
|
|
37032
|
-
// get utf8 string
|
|
37033
|
-
body = Buffer.concat(self._body).toString()
|
|
37034
|
-
}
|
|
37035
|
-
}
|
|
37036
|
-
|
|
37037
|
-
// create flattened list of headers
|
|
37038
|
-
var headersList = []
|
|
37039
|
-
Object.keys(headersObj).forEach(function (keyName) {
|
|
37040
|
-
var name = headersObj[keyName].name
|
|
37041
|
-
var value = headersObj[keyName].value
|
|
37042
|
-
if (Array.isArray(value)) {
|
|
37043
|
-
value.forEach(function (v) {
|
|
37044
|
-
headersList.push([name, v])
|
|
37045
|
-
})
|
|
37046
|
-
} else {
|
|
37047
|
-
headersList.push([name, value])
|
|
37048
|
-
}
|
|
37049
|
-
})
|
|
37050
|
-
|
|
37051
|
-
if (self._mode === 'fetch') {
|
|
37052
|
-
var signal = null
|
|
37053
|
-
var fetchTimer = null
|
|
37054
|
-
if (capability.abortController) {
|
|
37055
|
-
var controller = new AbortController()
|
|
37056
|
-
signal = controller.signal
|
|
37057
|
-
self._fetchAbortController = controller
|
|
37058
|
-
|
|
37059
|
-
if ('requestTimeout' in opts && opts.requestTimeout !== 0) {
|
|
37060
|
-
self._fetchTimer = global.setTimeout(function () {
|
|
37061
|
-
self.emit('requestTimeout')
|
|
37062
|
-
if (self._fetchAbortController)
|
|
37063
|
-
self._fetchAbortController.abort()
|
|
37064
|
-
}, opts.requestTimeout)
|
|
37065
|
-
}
|
|
37066
|
-
}
|
|
37067
|
-
|
|
37068
|
-
global.fetch(self._opts.url, {
|
|
37069
|
-
method: self._opts.method,
|
|
37070
|
-
headers: headersList,
|
|
37071
|
-
body: body || undefined,
|
|
37072
|
-
mode: 'cors',
|
|
37073
|
-
credentials: opts.withCredentials ? 'include' : 'same-origin',
|
|
37074
|
-
signal: signal
|
|
37075
|
-
}).then(function (response) {
|
|
37076
|
-
self._fetchResponse = response
|
|
37077
|
-
self._connect()
|
|
37078
|
-
}, function (reason) {
|
|
37079
|
-
global.clearTimeout(self._fetchTimer)
|
|
37080
|
-
if (!self._destroyed)
|
|
37081
|
-
self.emit('error', reason)
|
|
37082
|
-
})
|
|
37083
|
-
} else {
|
|
37084
|
-
var xhr = self._xhr = new global.XMLHttpRequest()
|
|
37085
|
-
try {
|
|
37086
|
-
xhr.open(self._opts.method, self._opts.url, true)
|
|
37087
|
-
} catch (err) {
|
|
37088
|
-
process.nextTick(function () {
|
|
37089
|
-
self.emit('error', err)
|
|
37090
|
-
})
|
|
37091
|
-
return
|
|
37092
|
-
}
|
|
37093
|
-
|
|
37094
|
-
// Can't set responseType on really old browsers
|
|
37095
|
-
if ('responseType' in xhr)
|
|
37096
|
-
xhr.responseType = self._mode.split(':')[0]
|
|
37097
|
-
|
|
37098
|
-
if ('withCredentials' in xhr)
|
|
37099
|
-
xhr.withCredentials = !!opts.withCredentials
|
|
37100
|
-
|
|
37101
|
-
if (self._mode === 'text' && 'overrideMimeType' in xhr)
|
|
37102
|
-
xhr.overrideMimeType('text/plain; charset=x-user-defined')
|
|
37103
|
-
|
|
37104
|
-
if ('requestTimeout' in opts) {
|
|
37105
|
-
xhr.timeout = opts.requestTimeout
|
|
37106
|
-
xhr.ontimeout = function () {
|
|
37107
|
-
self.emit('requestTimeout')
|
|
37108
|
-
}
|
|
37109
|
-
}
|
|
37110
|
-
|
|
37111
|
-
headersList.forEach(function (header) {
|
|
37112
|
-
xhr.setRequestHeader(header[0], header[1])
|
|
37113
|
-
})
|
|
37114
|
-
|
|
37115
|
-
self._response = null
|
|
37116
|
-
xhr.onreadystatechange = function () {
|
|
37117
|
-
switch (xhr.readyState) {
|
|
37118
|
-
case rStates.LOADING:
|
|
37119
|
-
case rStates.DONE:
|
|
37120
|
-
self._onXHRProgress()
|
|
37121
|
-
break
|
|
37122
|
-
}
|
|
37123
|
-
}
|
|
37124
|
-
// Necessary for streaming in Firefox, since xhr.response is ONLY defined
|
|
37125
|
-
// in onprogress, not in onreadystatechange with xhr.readyState = 3
|
|
37126
|
-
if (self._mode === 'moz-chunked-arraybuffer') {
|
|
37127
|
-
xhr.onprogress = function () {
|
|
37128
|
-
self._onXHRProgress()
|
|
37129
|
-
}
|
|
37130
|
-
}
|
|
37131
|
-
|
|
37132
|
-
xhr.onerror = function () {
|
|
37133
|
-
if (self._destroyed)
|
|
37134
|
-
return
|
|
37135
|
-
self.emit('error', new Error('XHR error'))
|
|
37136
|
-
}
|
|
37137
|
-
|
|
37138
|
-
try {
|
|
37139
|
-
xhr.send(body)
|
|
37140
|
-
} catch (err) {
|
|
37141
|
-
process.nextTick(function () {
|
|
37142
|
-
self.emit('error', err)
|
|
37143
|
-
})
|
|
37144
|
-
return
|
|
37145
|
-
}
|
|
37146
|
-
}
|
|
37147
|
-
}
|
|
37148
|
-
|
|
37149
|
-
/**
|
|
37150
|
-
* Checks if xhr.status is readable and non-zero, indicating no error.
|
|
37151
|
-
* Even though the spec says it should be available in readyState 3,
|
|
37152
|
-
* accessing it throws an exception in IE8
|
|
37153
|
-
*/
|
|
37154
|
-
function statusValid (xhr) {
|
|
37155
|
-
try {
|
|
37156
|
-
var status = xhr.status
|
|
37157
|
-
return (status !== null && status !== 0)
|
|
37158
|
-
} catch (e) {
|
|
37159
|
-
return false
|
|
37160
|
-
}
|
|
37161
|
-
}
|
|
37162
|
-
|
|
37163
|
-
ClientRequest.prototype._onXHRProgress = function () {
|
|
37164
|
-
var self = this
|
|
37165
|
-
|
|
37166
|
-
if (!statusValid(self._xhr) || self._destroyed)
|
|
37167
|
-
return
|
|
37168
|
-
|
|
37169
|
-
if (!self._response)
|
|
37170
|
-
self._connect()
|
|
37171
|
-
|
|
37172
|
-
self._response._onXHRProgress()
|
|
37173
|
-
}
|
|
37174
|
-
|
|
37175
|
-
ClientRequest.prototype._connect = function () {
|
|
37176
|
-
var self = this
|
|
37177
|
-
|
|
37178
|
-
if (self._destroyed)
|
|
37179
|
-
return
|
|
37180
|
-
|
|
37181
|
-
self._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode, self._fetchTimer)
|
|
37182
|
-
self._response.on('error', function(err) {
|
|
37183
|
-
self.emit('error', err)
|
|
37184
|
-
})
|
|
37185
|
-
|
|
37186
|
-
self.emit('response', self._response)
|
|
37187
|
-
}
|
|
37188
|
-
|
|
37189
|
-
ClientRequest.prototype._write = function (chunk, encoding, cb) {
|
|
37190
|
-
var self = this
|
|
37191
|
-
|
|
37192
|
-
self._body.push(chunk)
|
|
37193
|
-
cb()
|
|
37194
|
-
}
|
|
37195
|
-
|
|
37196
|
-
ClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {
|
|
37197
|
-
var self = this
|
|
37198
|
-
self._destroyed = true
|
|
37199
|
-
global.clearTimeout(self._fetchTimer)
|
|
37200
|
-
if (self._response)
|
|
37201
|
-
self._response._destroyed = true
|
|
37202
|
-
if (self._xhr)
|
|
37203
|
-
self._xhr.abort()
|
|
37204
|
-
else if (self._fetchAbortController)
|
|
37205
|
-
self._fetchAbortController.abort()
|
|
37206
|
-
}
|
|
37207
|
-
|
|
37208
|
-
ClientRequest.prototype.end = function (data, encoding, cb) {
|
|
37209
|
-
var self = this
|
|
37210
|
-
if (typeof data === 'function') {
|
|
37211
|
-
cb = data
|
|
37212
|
-
data = undefined
|
|
37213
|
-
}
|
|
37214
|
-
|
|
37215
|
-
stream.Writable.prototype.end.call(self, data, encoding, cb)
|
|
37216
|
-
}
|
|
37217
|
-
|
|
37218
|
-
ClientRequest.prototype.flushHeaders = function () {}
|
|
37219
|
-
ClientRequest.prototype.setTimeout = function () {}
|
|
37220
|
-
ClientRequest.prototype.setNoDelay = function () {}
|
|
37221
|
-
ClientRequest.prototype.setSocketKeepAlive = function () {}
|
|
37222
|
-
|
|
37223
|
-
// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method
|
|
37224
|
-
var unsafeHeaders = [
|
|
37225
|
-
'accept-charset',
|
|
37226
|
-
'accept-encoding',
|
|
37227
|
-
'access-control-request-headers',
|
|
37228
|
-
'access-control-request-method',
|
|
37229
|
-
'connection',
|
|
37230
|
-
'content-length',
|
|
37231
|
-
'cookie',
|
|
37232
|
-
'cookie2',
|
|
37233
|
-
'date',
|
|
37234
|
-
'dnt',
|
|
37235
|
-
'expect',
|
|
37236
|
-
'host',
|
|
37237
|
-
'keep-alive',
|
|
37238
|
-
'origin',
|
|
37239
|
-
'referer',
|
|
37240
|
-
'te',
|
|
37241
|
-
'trailer',
|
|
37242
|
-
'transfer-encoding',
|
|
37243
|
-
'upgrade',
|
|
37244
|
-
'via'
|
|
37245
|
-
]
|
|
37246
|
-
|
|
37247
|
-
/* 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")))
|
|
37248
|
-
|
|
37249
|
-
/***/ }),
|
|
37250
|
-
|
|
37251
|
-
/***/ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/response.js":
|
|
37252
|
-
/*!***************************************************************************************************************!*\
|
|
37253
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/lib/response.js ***!
|
|
37254
|
-
\***************************************************************************************************************/
|
|
37255
|
-
/*! no static exports found */
|
|
37256
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
37257
|
-
|
|
37258
|
-
/* 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")
|
|
37259
|
-
var inherits = __webpack_require__(/*! inherits */ "../../common/temp/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js")
|
|
37260
|
-
var stream = __webpack_require__(/*! readable-stream */ "../../common/temp/node_modules/.pnpm/readable-stream@2.3.7/node_modules/readable-stream/readable-browser.js")
|
|
37261
|
-
|
|
37262
|
-
var rStates = exports.readyStates = {
|
|
37263
|
-
UNSENT: 0,
|
|
37264
|
-
OPENED: 1,
|
|
37265
|
-
HEADERS_RECEIVED: 2,
|
|
37266
|
-
LOADING: 3,
|
|
37267
|
-
DONE: 4
|
|
37268
|
-
}
|
|
37269
|
-
|
|
37270
|
-
var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, fetchTimer) {
|
|
37271
|
-
var self = this
|
|
37272
|
-
stream.Readable.call(self)
|
|
37273
|
-
|
|
37274
|
-
self._mode = mode
|
|
37275
|
-
self.headers = {}
|
|
37276
|
-
self.rawHeaders = []
|
|
37277
|
-
self.trailers = {}
|
|
37278
|
-
self.rawTrailers = []
|
|
37279
|
-
|
|
37280
|
-
// Fake the 'close' event, but only once 'end' fires
|
|
37281
|
-
self.on('end', function () {
|
|
37282
|
-
// The nextTick is necessary to prevent the 'request' module from causing an infinite loop
|
|
37283
|
-
process.nextTick(function () {
|
|
37284
|
-
self.emit('close')
|
|
37285
|
-
})
|
|
37286
|
-
})
|
|
37287
|
-
|
|
37288
|
-
if (mode === 'fetch') {
|
|
37289
|
-
self._fetchResponse = response
|
|
37290
|
-
|
|
37291
|
-
self.url = response.url
|
|
37292
|
-
self.statusCode = response.status
|
|
37293
|
-
self.statusMessage = response.statusText
|
|
37294
|
-
|
|
37295
|
-
response.headers.forEach(function (header, key){
|
|
37296
|
-
self.headers[key.toLowerCase()] = header
|
|
37297
|
-
self.rawHeaders.push(key, header)
|
|
37298
|
-
})
|
|
37299
|
-
|
|
37300
|
-
if (capability.writableStream) {
|
|
37301
|
-
var writable = new WritableStream({
|
|
37302
|
-
write: function (chunk) {
|
|
37303
|
-
return new Promise(function (resolve, reject) {
|
|
37304
|
-
if (self._destroyed) {
|
|
37305
|
-
reject()
|
|
37306
|
-
} else if(self.push(new Buffer(chunk))) {
|
|
37307
|
-
resolve()
|
|
37308
|
-
} else {
|
|
37309
|
-
self._resumeFetch = resolve
|
|
37310
|
-
}
|
|
37311
|
-
})
|
|
37312
|
-
},
|
|
37313
|
-
close: function () {
|
|
37314
|
-
global.clearTimeout(fetchTimer)
|
|
37315
|
-
if (!self._destroyed)
|
|
37316
|
-
self.push(null)
|
|
37317
|
-
},
|
|
37318
|
-
abort: function (err) {
|
|
37319
|
-
if (!self._destroyed)
|
|
37320
|
-
self.emit('error', err)
|
|
37321
|
-
}
|
|
37322
|
-
})
|
|
37323
|
-
|
|
37324
|
-
try {
|
|
37325
|
-
response.body.pipeTo(writable).catch(function (err) {
|
|
37326
|
-
global.clearTimeout(fetchTimer)
|
|
37327
|
-
if (!self._destroyed)
|
|
37328
|
-
self.emit('error', err)
|
|
37329
|
-
})
|
|
37330
|
-
return
|
|
37331
|
-
} catch (e) {} // pipeTo method isn't defined. Can't find a better way to feature test this
|
|
37332
|
-
}
|
|
37333
|
-
// fallback for when writableStream or pipeTo aren't available
|
|
37334
|
-
var reader = response.body.getReader()
|
|
37335
|
-
function read () {
|
|
37336
|
-
reader.read().then(function (result) {
|
|
37337
|
-
if (self._destroyed)
|
|
37338
|
-
return
|
|
37339
|
-
if (result.done) {
|
|
37340
|
-
global.clearTimeout(fetchTimer)
|
|
37341
|
-
self.push(null)
|
|
37342
|
-
return
|
|
37343
|
-
}
|
|
37344
|
-
self.push(new Buffer(result.value))
|
|
37345
|
-
read()
|
|
37346
|
-
}).catch(function (err) {
|
|
37347
|
-
global.clearTimeout(fetchTimer)
|
|
37348
|
-
if (!self._destroyed)
|
|
37349
|
-
self.emit('error', err)
|
|
37350
|
-
})
|
|
37351
|
-
}
|
|
37352
|
-
read()
|
|
37353
|
-
} else {
|
|
37354
|
-
self._xhr = xhr
|
|
37355
|
-
self._pos = 0
|
|
37356
|
-
|
|
37357
|
-
self.url = xhr.responseURL
|
|
37358
|
-
self.statusCode = xhr.status
|
|
37359
|
-
self.statusMessage = xhr.statusText
|
|
37360
|
-
var headers = xhr.getAllResponseHeaders().split(/\r?\n/)
|
|
37361
|
-
headers.forEach(function (header) {
|
|
37362
|
-
var matches = header.match(/^([^:]+):\s*(.*)/)
|
|
37363
|
-
if (matches) {
|
|
37364
|
-
var key = matches[1].toLowerCase()
|
|
37365
|
-
if (key === 'set-cookie') {
|
|
37366
|
-
if (self.headers[key] === undefined) {
|
|
37367
|
-
self.headers[key] = []
|
|
37368
|
-
}
|
|
37369
|
-
self.headers[key].push(matches[2])
|
|
37370
|
-
} else if (self.headers[key] !== undefined) {
|
|
37371
|
-
self.headers[key] += ', ' + matches[2]
|
|
37372
|
-
} else {
|
|
37373
|
-
self.headers[key] = matches[2]
|
|
37374
|
-
}
|
|
37375
|
-
self.rawHeaders.push(matches[1], matches[2])
|
|
37376
|
-
}
|
|
37377
|
-
})
|
|
37378
|
-
|
|
37379
|
-
self._charset = 'x-user-defined'
|
|
37380
|
-
if (!capability.overrideMimeType) {
|
|
37381
|
-
var mimeType = self.rawHeaders['mime-type']
|
|
37382
|
-
if (mimeType) {
|
|
37383
|
-
var charsetMatch = mimeType.match(/;\s*charset=([^;])(;|$)/)
|
|
37384
|
-
if (charsetMatch) {
|
|
37385
|
-
self._charset = charsetMatch[1].toLowerCase()
|
|
37386
|
-
}
|
|
37387
|
-
}
|
|
37388
|
-
if (!self._charset)
|
|
37389
|
-
self._charset = 'utf-8' // best guess
|
|
37390
|
-
}
|
|
37391
|
-
}
|
|
37392
|
-
}
|
|
37393
|
-
|
|
37394
|
-
inherits(IncomingMessage, stream.Readable)
|
|
37395
|
-
|
|
37396
|
-
IncomingMessage.prototype._read = function () {
|
|
37397
|
-
var self = this
|
|
37398
|
-
|
|
37399
|
-
var resolve = self._resumeFetch
|
|
37400
|
-
if (resolve) {
|
|
37401
|
-
self._resumeFetch = null
|
|
37402
|
-
resolve()
|
|
37403
|
-
}
|
|
37404
|
-
}
|
|
37405
|
-
|
|
37406
|
-
IncomingMessage.prototype._onXHRProgress = function () {
|
|
37407
|
-
var self = this
|
|
37408
|
-
|
|
37409
|
-
var xhr = self._xhr
|
|
37410
|
-
|
|
37411
|
-
var response = null
|
|
37412
|
-
switch (self._mode) {
|
|
37413
|
-
case 'text:vbarray': // For IE9
|
|
37414
|
-
if (xhr.readyState !== rStates.DONE)
|
|
37415
|
-
break
|
|
37416
|
-
try {
|
|
37417
|
-
// This fails in IE8
|
|
37418
|
-
response = new global.VBArray(xhr.responseBody).toArray()
|
|
37419
|
-
} catch (e) {}
|
|
37420
|
-
if (response !== null) {
|
|
37421
|
-
self.push(new Buffer(response))
|
|
37422
|
-
break
|
|
37423
|
-
}
|
|
37424
|
-
// Falls through in IE8
|
|
37425
|
-
case 'text':
|
|
37426
|
-
try { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4
|
|
37427
|
-
response = xhr.responseText
|
|
37428
|
-
} catch (e) {
|
|
37429
|
-
self._mode = 'text:vbarray'
|
|
37430
|
-
break
|
|
37431
|
-
}
|
|
37432
|
-
if (response.length > self._pos) {
|
|
37433
|
-
var newData = response.substr(self._pos)
|
|
37434
|
-
if (self._charset === 'x-user-defined') {
|
|
37435
|
-
var buffer = new Buffer(newData.length)
|
|
37436
|
-
for (var i = 0; i < newData.length; i++)
|
|
37437
|
-
buffer[i] = newData.charCodeAt(i) & 0xff
|
|
37438
|
-
|
|
37439
|
-
self.push(buffer)
|
|
37440
|
-
} else {
|
|
37441
|
-
self.push(newData, self._charset)
|
|
37442
|
-
}
|
|
37443
|
-
self._pos = response.length
|
|
37444
|
-
}
|
|
37445
|
-
break
|
|
37446
|
-
case 'arraybuffer':
|
|
37447
|
-
if (xhr.readyState !== rStates.DONE || !xhr.response)
|
|
37448
|
-
break
|
|
37449
|
-
response = xhr.response
|
|
37450
|
-
self.push(new Buffer(new Uint8Array(response)))
|
|
37451
|
-
break
|
|
37452
|
-
case 'moz-chunked-arraybuffer': // take whole
|
|
37453
|
-
response = xhr.response
|
|
37454
|
-
if (xhr.readyState !== rStates.LOADING || !response)
|
|
37455
|
-
break
|
|
37456
|
-
self.push(new Buffer(new Uint8Array(response)))
|
|
37457
|
-
break
|
|
37458
|
-
case 'ms-stream':
|
|
37459
|
-
response = xhr.response
|
|
37460
|
-
if (xhr.readyState !== rStates.LOADING)
|
|
37461
|
-
break
|
|
37462
|
-
var reader = new global.MSStreamReader()
|
|
37463
|
-
reader.onprogress = function () {
|
|
37464
|
-
if (reader.result.byteLength > self._pos) {
|
|
37465
|
-
self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))))
|
|
37466
|
-
self._pos = reader.result.byteLength
|
|
37467
|
-
}
|
|
37468
|
-
}
|
|
37469
|
-
reader.onload = function () {
|
|
37470
|
-
self.push(null)
|
|
37471
|
-
}
|
|
37472
|
-
// reader.onerror = ??? // TODO: this
|
|
37473
|
-
reader.readAsArrayBuffer(response)
|
|
37474
|
-
break
|
|
37475
|
-
}
|
|
37476
|
-
|
|
37477
|
-
// The ms-stream case handles end separately in reader.onload()
|
|
37478
|
-
if (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {
|
|
37479
|
-
self.push(null)
|
|
37480
|
-
}
|
|
37481
|
-
}
|
|
37482
|
-
|
|
37483
|
-
/* 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")))
|
|
37484
|
-
|
|
37485
35487
|
/***/ }),
|
|
37486
35488
|
|
|
37487
35489
|
/***/ "../../common/temp/node_modules/.pnpm/string_decoder@1.3.0/node_modules/string_decoder/lib/string_decoder.js":
|
|
@@ -40072,44 +38074,6 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
|
|
|
40072
38074
|
|
|
40073
38075
|
/* 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")))
|
|
40074
38076
|
|
|
40075
|
-
/***/ }),
|
|
40076
|
-
|
|
40077
|
-
/***/ "../../common/temp/node_modules/.pnpm/to-arraybuffer@1.0.1/node_modules/to-arraybuffer/index.js":
|
|
40078
|
-
/*!**************************************************************************************************************!*\
|
|
40079
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/to-arraybuffer@1.0.1/node_modules/to-arraybuffer/index.js ***!
|
|
40080
|
-
\**************************************************************************************************************/
|
|
40081
|
-
/*! no static exports found */
|
|
40082
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
40083
|
-
|
|
40084
|
-
var Buffer = __webpack_require__(/*! buffer */ "../../common/temp/node_modules/.pnpm/buffer@4.9.2/node_modules/buffer/index.js").Buffer
|
|
40085
|
-
|
|
40086
|
-
module.exports = function (buf) {
|
|
40087
|
-
// If the buffer is backed by a Uint8Array, a faster version will work
|
|
40088
|
-
if (buf instanceof Uint8Array) {
|
|
40089
|
-
// If the buffer isn't a subarray, return the underlying ArrayBuffer
|
|
40090
|
-
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
40091
|
-
return buf.buffer
|
|
40092
|
-
} else if (typeof buf.buffer.slice === 'function') {
|
|
40093
|
-
// Otherwise we need to get a proper copy
|
|
40094
|
-
return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength)
|
|
40095
|
-
}
|
|
40096
|
-
}
|
|
40097
|
-
|
|
40098
|
-
if (Buffer.isBuffer(buf)) {
|
|
40099
|
-
// This is the slow version that will work with any Buffer
|
|
40100
|
-
// implementation (even in old browsers)
|
|
40101
|
-
var arrayCopy = new Uint8Array(buf.length)
|
|
40102
|
-
var len = buf.length
|
|
40103
|
-
for (var i = 0; i < len; i++) {
|
|
40104
|
-
arrayCopy[i] = buf[i]
|
|
40105
|
-
}
|
|
40106
|
-
return arrayCopy.buffer
|
|
40107
|
-
} else {
|
|
40108
|
-
throw new Error('Argument must be a Buffer')
|
|
40109
|
-
}
|
|
40110
|
-
}
|
|
40111
|
-
|
|
40112
|
-
|
|
40113
38077
|
/***/ }),
|
|
40114
38078
|
|
|
40115
38079
|
/***/ "../../common/temp/node_modules/.pnpm/type-detect@4.0.8/node_modules/type-detect/type-detect.js":
|
|
@@ -40509,778 +38473,6 @@ return typeDetect;
|
|
|
40509
38473
|
|
|
40510
38474
|
/* 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")))
|
|
40511
38475
|
|
|
40512
|
-
/***/ }),
|
|
40513
|
-
|
|
40514
|
-
/***/ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/url.js":
|
|
40515
|
-
/*!***************************************************************************************!*\
|
|
40516
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/url.js ***!
|
|
40517
|
-
\***************************************************************************************/
|
|
40518
|
-
/*! no static exports found */
|
|
40519
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
40520
|
-
|
|
40521
|
-
"use strict";
|
|
40522
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
40523
|
-
//
|
|
40524
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
40525
|
-
// copy of this software and associated documentation files (the
|
|
40526
|
-
// "Software"), to deal in the Software without restriction, including
|
|
40527
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
40528
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
40529
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
40530
|
-
// following conditions:
|
|
40531
|
-
//
|
|
40532
|
-
// The above copyright notice and this permission notice shall be included
|
|
40533
|
-
// in all copies or substantial portions of the Software.
|
|
40534
|
-
//
|
|
40535
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
40536
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
40537
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
40538
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
40539
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
40540
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
40541
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
40542
|
-
|
|
40543
|
-
|
|
40544
|
-
|
|
40545
|
-
var punycode = __webpack_require__(/*! punycode */ "../../common/temp/node_modules/.pnpm/punycode@1.4.1/node_modules/punycode/punycode.js");
|
|
40546
|
-
var util = __webpack_require__(/*! ./util */ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/util.js");
|
|
40547
|
-
|
|
40548
|
-
exports.parse = urlParse;
|
|
40549
|
-
exports.resolve = urlResolve;
|
|
40550
|
-
exports.resolveObject = urlResolveObject;
|
|
40551
|
-
exports.format = urlFormat;
|
|
40552
|
-
|
|
40553
|
-
exports.Url = Url;
|
|
40554
|
-
|
|
40555
|
-
function Url() {
|
|
40556
|
-
this.protocol = null;
|
|
40557
|
-
this.slashes = null;
|
|
40558
|
-
this.auth = null;
|
|
40559
|
-
this.host = null;
|
|
40560
|
-
this.port = null;
|
|
40561
|
-
this.hostname = null;
|
|
40562
|
-
this.hash = null;
|
|
40563
|
-
this.search = null;
|
|
40564
|
-
this.query = null;
|
|
40565
|
-
this.pathname = null;
|
|
40566
|
-
this.path = null;
|
|
40567
|
-
this.href = null;
|
|
40568
|
-
}
|
|
40569
|
-
|
|
40570
|
-
// Reference: RFC 3986, RFC 1808, RFC 2396
|
|
40571
|
-
|
|
40572
|
-
// define these here so at least they only have to be
|
|
40573
|
-
// compiled once on the first module load.
|
|
40574
|
-
var protocolPattern = /^([a-z0-9.+-]+:)/i,
|
|
40575
|
-
portPattern = /:[0-9]*$/,
|
|
40576
|
-
|
|
40577
|
-
// Special case for a simple path URL
|
|
40578
|
-
simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
|
|
40579
|
-
|
|
40580
|
-
// RFC 2396: characters reserved for delimiting URLs.
|
|
40581
|
-
// We actually just auto-escape these.
|
|
40582
|
-
delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'],
|
|
40583
|
-
|
|
40584
|
-
// RFC 2396: characters not allowed for various reasons.
|
|
40585
|
-
unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims),
|
|
40586
|
-
|
|
40587
|
-
// Allowed by RFCs, but cause of XSS attacks. Always escape these.
|
|
40588
|
-
autoEscape = ['\''].concat(unwise),
|
|
40589
|
-
// Characters that are never ever allowed in a hostname.
|
|
40590
|
-
// Note that any invalid chars are also handled, but these
|
|
40591
|
-
// are the ones that are *expected* to be seen, so we fast-path
|
|
40592
|
-
// them.
|
|
40593
|
-
nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),
|
|
40594
|
-
hostEndingChars = ['/', '?', '#'],
|
|
40595
|
-
hostnameMaxLen = 255,
|
|
40596
|
-
hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
|
|
40597
|
-
hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
|
|
40598
|
-
// protocols that can allow "unsafe" and "unwise" chars.
|
|
40599
|
-
unsafeProtocol = {
|
|
40600
|
-
'javascript': true,
|
|
40601
|
-
'javascript:': true
|
|
40602
|
-
},
|
|
40603
|
-
// protocols that never have a hostname.
|
|
40604
|
-
hostlessProtocol = {
|
|
40605
|
-
'javascript': true,
|
|
40606
|
-
'javascript:': true
|
|
40607
|
-
},
|
|
40608
|
-
// protocols that always contain a // bit.
|
|
40609
|
-
slashedProtocol = {
|
|
40610
|
-
'http': true,
|
|
40611
|
-
'https': true,
|
|
40612
|
-
'ftp': true,
|
|
40613
|
-
'gopher': true,
|
|
40614
|
-
'file': true,
|
|
40615
|
-
'http:': true,
|
|
40616
|
-
'https:': true,
|
|
40617
|
-
'ftp:': true,
|
|
40618
|
-
'gopher:': true,
|
|
40619
|
-
'file:': true
|
|
40620
|
-
},
|
|
40621
|
-
querystring = __webpack_require__(/*! querystring */ "../../common/temp/node_modules/.pnpm/querystring-es3@0.2.1/node_modules/querystring-es3/index.js");
|
|
40622
|
-
|
|
40623
|
-
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
|
40624
|
-
if (url && util.isObject(url) && url instanceof Url) return url;
|
|
40625
|
-
|
|
40626
|
-
var u = new Url;
|
|
40627
|
-
u.parse(url, parseQueryString, slashesDenoteHost);
|
|
40628
|
-
return u;
|
|
40629
|
-
}
|
|
40630
|
-
|
|
40631
|
-
Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
40632
|
-
if (!util.isString(url)) {
|
|
40633
|
-
throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
|
|
40634
|
-
}
|
|
40635
|
-
|
|
40636
|
-
// Copy chrome, IE, opera backslash-handling behavior.
|
|
40637
|
-
// Back slashes before the query string get converted to forward slashes
|
|
40638
|
-
// See: https://code.google.com/p/chromium/issues/detail?id=25916
|
|
40639
|
-
var queryIndex = url.indexOf('?'),
|
|
40640
|
-
splitter =
|
|
40641
|
-
(queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
|
|
40642
|
-
uSplit = url.split(splitter),
|
|
40643
|
-
slashRegex = /\\/g;
|
|
40644
|
-
uSplit[0] = uSplit[0].replace(slashRegex, '/');
|
|
40645
|
-
url = uSplit.join(splitter);
|
|
40646
|
-
|
|
40647
|
-
var rest = url;
|
|
40648
|
-
|
|
40649
|
-
// trim before proceeding.
|
|
40650
|
-
// This is to support parse stuff like " http://foo.com \n"
|
|
40651
|
-
rest = rest.trim();
|
|
40652
|
-
|
|
40653
|
-
if (!slashesDenoteHost && url.split('#').length === 1) {
|
|
40654
|
-
// Try fast path regexp
|
|
40655
|
-
var simplePath = simplePathPattern.exec(rest);
|
|
40656
|
-
if (simplePath) {
|
|
40657
|
-
this.path = rest;
|
|
40658
|
-
this.href = rest;
|
|
40659
|
-
this.pathname = simplePath[1];
|
|
40660
|
-
if (simplePath[2]) {
|
|
40661
|
-
this.search = simplePath[2];
|
|
40662
|
-
if (parseQueryString) {
|
|
40663
|
-
this.query = querystring.parse(this.search.substr(1));
|
|
40664
|
-
} else {
|
|
40665
|
-
this.query = this.search.substr(1);
|
|
40666
|
-
}
|
|
40667
|
-
} else if (parseQueryString) {
|
|
40668
|
-
this.search = '';
|
|
40669
|
-
this.query = {};
|
|
40670
|
-
}
|
|
40671
|
-
return this;
|
|
40672
|
-
}
|
|
40673
|
-
}
|
|
40674
|
-
|
|
40675
|
-
var proto = protocolPattern.exec(rest);
|
|
40676
|
-
if (proto) {
|
|
40677
|
-
proto = proto[0];
|
|
40678
|
-
var lowerProto = proto.toLowerCase();
|
|
40679
|
-
this.protocol = lowerProto;
|
|
40680
|
-
rest = rest.substr(proto.length);
|
|
40681
|
-
}
|
|
40682
|
-
|
|
40683
|
-
// figure out if it's got a host
|
|
40684
|
-
// user@server is *always* interpreted as a hostname, and url
|
|
40685
|
-
// resolution will treat //foo/bar as host=foo,path=bar because that's
|
|
40686
|
-
// how the browser resolves relative URLs.
|
|
40687
|
-
if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) {
|
|
40688
|
-
var slashes = rest.substr(0, 2) === '//';
|
|
40689
|
-
if (slashes && !(proto && hostlessProtocol[proto])) {
|
|
40690
|
-
rest = rest.substr(2);
|
|
40691
|
-
this.slashes = true;
|
|
40692
|
-
}
|
|
40693
|
-
}
|
|
40694
|
-
|
|
40695
|
-
if (!hostlessProtocol[proto] &&
|
|
40696
|
-
(slashes || (proto && !slashedProtocol[proto]))) {
|
|
40697
|
-
|
|
40698
|
-
// there's a hostname.
|
|
40699
|
-
// the first instance of /, ?, ;, or # ends the host.
|
|
40700
|
-
//
|
|
40701
|
-
// If there is an @ in the hostname, then non-host chars *are* allowed
|
|
40702
|
-
// to the left of the last @ sign, unless some host-ending character
|
|
40703
|
-
// comes *before* the @-sign.
|
|
40704
|
-
// URLs are obnoxious.
|
|
40705
|
-
//
|
|
40706
|
-
// ex:
|
|
40707
|
-
// http://a@b@c/ => user:a@b host:c
|
|
40708
|
-
// http://a@b?@c => user:a host:c path:/?@c
|
|
40709
|
-
|
|
40710
|
-
// v0.12 TODO(isaacs): This is not quite how Chrome does things.
|
|
40711
|
-
// Review our test case against browsers more comprehensively.
|
|
40712
|
-
|
|
40713
|
-
// find the first instance of any hostEndingChars
|
|
40714
|
-
var hostEnd = -1;
|
|
40715
|
-
for (var i = 0; i < hostEndingChars.length; i++) {
|
|
40716
|
-
var hec = rest.indexOf(hostEndingChars[i]);
|
|
40717
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
|
|
40718
|
-
hostEnd = hec;
|
|
40719
|
-
}
|
|
40720
|
-
|
|
40721
|
-
// at this point, either we have an explicit point where the
|
|
40722
|
-
// auth portion cannot go past, or the last @ char is the decider.
|
|
40723
|
-
var auth, atSign;
|
|
40724
|
-
if (hostEnd === -1) {
|
|
40725
|
-
// atSign can be anywhere.
|
|
40726
|
-
atSign = rest.lastIndexOf('@');
|
|
40727
|
-
} else {
|
|
40728
|
-
// atSign must be in auth portion.
|
|
40729
|
-
// http://a@b/c@d => host:b auth:a path:/c@d
|
|
40730
|
-
atSign = rest.lastIndexOf('@', hostEnd);
|
|
40731
|
-
}
|
|
40732
|
-
|
|
40733
|
-
// Now we have a portion which is definitely the auth.
|
|
40734
|
-
// Pull that off.
|
|
40735
|
-
if (atSign !== -1) {
|
|
40736
|
-
auth = rest.slice(0, atSign);
|
|
40737
|
-
rest = rest.slice(atSign + 1);
|
|
40738
|
-
this.auth = decodeURIComponent(auth);
|
|
40739
|
-
}
|
|
40740
|
-
|
|
40741
|
-
// the host is the remaining to the left of the first non-host char
|
|
40742
|
-
hostEnd = -1;
|
|
40743
|
-
for (var i = 0; i < nonHostChars.length; i++) {
|
|
40744
|
-
var hec = rest.indexOf(nonHostChars[i]);
|
|
40745
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
|
|
40746
|
-
hostEnd = hec;
|
|
40747
|
-
}
|
|
40748
|
-
// if we still have not hit it, then the entire thing is a host.
|
|
40749
|
-
if (hostEnd === -1)
|
|
40750
|
-
hostEnd = rest.length;
|
|
40751
|
-
|
|
40752
|
-
this.host = rest.slice(0, hostEnd);
|
|
40753
|
-
rest = rest.slice(hostEnd);
|
|
40754
|
-
|
|
40755
|
-
// pull out port.
|
|
40756
|
-
this.parseHost();
|
|
40757
|
-
|
|
40758
|
-
// we've indicated that there is a hostname,
|
|
40759
|
-
// so even if it's empty, it has to be present.
|
|
40760
|
-
this.hostname = this.hostname || '';
|
|
40761
|
-
|
|
40762
|
-
// if hostname begins with [ and ends with ]
|
|
40763
|
-
// assume that it's an IPv6 address.
|
|
40764
|
-
var ipv6Hostname = this.hostname[0] === '[' &&
|
|
40765
|
-
this.hostname[this.hostname.length - 1] === ']';
|
|
40766
|
-
|
|
40767
|
-
// validate a little.
|
|
40768
|
-
if (!ipv6Hostname) {
|
|
40769
|
-
var hostparts = this.hostname.split(/\./);
|
|
40770
|
-
for (var i = 0, l = hostparts.length; i < l; i++) {
|
|
40771
|
-
var part = hostparts[i];
|
|
40772
|
-
if (!part) continue;
|
|
40773
|
-
if (!part.match(hostnamePartPattern)) {
|
|
40774
|
-
var newpart = '';
|
|
40775
|
-
for (var j = 0, k = part.length; j < k; j++) {
|
|
40776
|
-
if (part.charCodeAt(j) > 127) {
|
|
40777
|
-
// we replace non-ASCII char with a temporary placeholder
|
|
40778
|
-
// we need this to make sure size of hostname is not
|
|
40779
|
-
// broken by replacing non-ASCII by nothing
|
|
40780
|
-
newpart += 'x';
|
|
40781
|
-
} else {
|
|
40782
|
-
newpart += part[j];
|
|
40783
|
-
}
|
|
40784
|
-
}
|
|
40785
|
-
// we test again with ASCII char only
|
|
40786
|
-
if (!newpart.match(hostnamePartPattern)) {
|
|
40787
|
-
var validParts = hostparts.slice(0, i);
|
|
40788
|
-
var notHost = hostparts.slice(i + 1);
|
|
40789
|
-
var bit = part.match(hostnamePartStart);
|
|
40790
|
-
if (bit) {
|
|
40791
|
-
validParts.push(bit[1]);
|
|
40792
|
-
notHost.unshift(bit[2]);
|
|
40793
|
-
}
|
|
40794
|
-
if (notHost.length) {
|
|
40795
|
-
rest = '/' + notHost.join('.') + rest;
|
|
40796
|
-
}
|
|
40797
|
-
this.hostname = validParts.join('.');
|
|
40798
|
-
break;
|
|
40799
|
-
}
|
|
40800
|
-
}
|
|
40801
|
-
}
|
|
40802
|
-
}
|
|
40803
|
-
|
|
40804
|
-
if (this.hostname.length > hostnameMaxLen) {
|
|
40805
|
-
this.hostname = '';
|
|
40806
|
-
} else {
|
|
40807
|
-
// hostnames are always lower case.
|
|
40808
|
-
this.hostname = this.hostname.toLowerCase();
|
|
40809
|
-
}
|
|
40810
|
-
|
|
40811
|
-
if (!ipv6Hostname) {
|
|
40812
|
-
// IDNA Support: Returns a punycoded representation of "domain".
|
|
40813
|
-
// It only converts parts of the domain name that
|
|
40814
|
-
// have non-ASCII characters, i.e. it doesn't matter if
|
|
40815
|
-
// you call it with a domain that already is ASCII-only.
|
|
40816
|
-
this.hostname = punycode.toASCII(this.hostname);
|
|
40817
|
-
}
|
|
40818
|
-
|
|
40819
|
-
var p = this.port ? ':' + this.port : '';
|
|
40820
|
-
var h = this.hostname || '';
|
|
40821
|
-
this.host = h + p;
|
|
40822
|
-
this.href += this.host;
|
|
40823
|
-
|
|
40824
|
-
// strip [ and ] from the hostname
|
|
40825
|
-
// the host field still retains them, though
|
|
40826
|
-
if (ipv6Hostname) {
|
|
40827
|
-
this.hostname = this.hostname.substr(1, this.hostname.length - 2);
|
|
40828
|
-
if (rest[0] !== '/') {
|
|
40829
|
-
rest = '/' + rest;
|
|
40830
|
-
}
|
|
40831
|
-
}
|
|
40832
|
-
}
|
|
40833
|
-
|
|
40834
|
-
// now rest is set to the post-host stuff.
|
|
40835
|
-
// chop off any delim chars.
|
|
40836
|
-
if (!unsafeProtocol[lowerProto]) {
|
|
40837
|
-
|
|
40838
|
-
// First, make 100% sure that any "autoEscape" chars get
|
|
40839
|
-
// escaped, even if encodeURIComponent doesn't think they
|
|
40840
|
-
// need to be.
|
|
40841
|
-
for (var i = 0, l = autoEscape.length; i < l; i++) {
|
|
40842
|
-
var ae = autoEscape[i];
|
|
40843
|
-
if (rest.indexOf(ae) === -1)
|
|
40844
|
-
continue;
|
|
40845
|
-
var esc = encodeURIComponent(ae);
|
|
40846
|
-
if (esc === ae) {
|
|
40847
|
-
esc = escape(ae);
|
|
40848
|
-
}
|
|
40849
|
-
rest = rest.split(ae).join(esc);
|
|
40850
|
-
}
|
|
40851
|
-
}
|
|
40852
|
-
|
|
40853
|
-
|
|
40854
|
-
// chop off from the tail first.
|
|
40855
|
-
var hash = rest.indexOf('#');
|
|
40856
|
-
if (hash !== -1) {
|
|
40857
|
-
// got a fragment string.
|
|
40858
|
-
this.hash = rest.substr(hash);
|
|
40859
|
-
rest = rest.slice(0, hash);
|
|
40860
|
-
}
|
|
40861
|
-
var qm = rest.indexOf('?');
|
|
40862
|
-
if (qm !== -1) {
|
|
40863
|
-
this.search = rest.substr(qm);
|
|
40864
|
-
this.query = rest.substr(qm + 1);
|
|
40865
|
-
if (parseQueryString) {
|
|
40866
|
-
this.query = querystring.parse(this.query);
|
|
40867
|
-
}
|
|
40868
|
-
rest = rest.slice(0, qm);
|
|
40869
|
-
} else if (parseQueryString) {
|
|
40870
|
-
// no query string, but parseQueryString still requested
|
|
40871
|
-
this.search = '';
|
|
40872
|
-
this.query = {};
|
|
40873
|
-
}
|
|
40874
|
-
if (rest) this.pathname = rest;
|
|
40875
|
-
if (slashedProtocol[lowerProto] &&
|
|
40876
|
-
this.hostname && !this.pathname) {
|
|
40877
|
-
this.pathname = '/';
|
|
40878
|
-
}
|
|
40879
|
-
|
|
40880
|
-
//to support http.request
|
|
40881
|
-
if (this.pathname || this.search) {
|
|
40882
|
-
var p = this.pathname || '';
|
|
40883
|
-
var s = this.search || '';
|
|
40884
|
-
this.path = p + s;
|
|
40885
|
-
}
|
|
40886
|
-
|
|
40887
|
-
// finally, reconstruct the href based on what has been validated.
|
|
40888
|
-
this.href = this.format();
|
|
40889
|
-
return this;
|
|
40890
|
-
};
|
|
40891
|
-
|
|
40892
|
-
// format a parsed object into a url string
|
|
40893
|
-
function urlFormat(obj) {
|
|
40894
|
-
// ensure it's an object, and not a string url.
|
|
40895
|
-
// If it's an obj, this is a no-op.
|
|
40896
|
-
// this way, you can call url_format() on strings
|
|
40897
|
-
// to clean up potentially wonky urls.
|
|
40898
|
-
if (util.isString(obj)) obj = urlParse(obj);
|
|
40899
|
-
if (!(obj instanceof Url)) return Url.prototype.format.call(obj);
|
|
40900
|
-
return obj.format();
|
|
40901
|
-
}
|
|
40902
|
-
|
|
40903
|
-
Url.prototype.format = function() {
|
|
40904
|
-
var auth = this.auth || '';
|
|
40905
|
-
if (auth) {
|
|
40906
|
-
auth = encodeURIComponent(auth);
|
|
40907
|
-
auth = auth.replace(/%3A/i, ':');
|
|
40908
|
-
auth += '@';
|
|
40909
|
-
}
|
|
40910
|
-
|
|
40911
|
-
var protocol = this.protocol || '',
|
|
40912
|
-
pathname = this.pathname || '',
|
|
40913
|
-
hash = this.hash || '',
|
|
40914
|
-
host = false,
|
|
40915
|
-
query = '';
|
|
40916
|
-
|
|
40917
|
-
if (this.host) {
|
|
40918
|
-
host = auth + this.host;
|
|
40919
|
-
} else if (this.hostname) {
|
|
40920
|
-
host = auth + (this.hostname.indexOf(':') === -1 ?
|
|
40921
|
-
this.hostname :
|
|
40922
|
-
'[' + this.hostname + ']');
|
|
40923
|
-
if (this.port) {
|
|
40924
|
-
host += ':' + this.port;
|
|
40925
|
-
}
|
|
40926
|
-
}
|
|
40927
|
-
|
|
40928
|
-
if (this.query &&
|
|
40929
|
-
util.isObject(this.query) &&
|
|
40930
|
-
Object.keys(this.query).length) {
|
|
40931
|
-
query = querystring.stringify(this.query);
|
|
40932
|
-
}
|
|
40933
|
-
|
|
40934
|
-
var search = this.search || (query && ('?' + query)) || '';
|
|
40935
|
-
|
|
40936
|
-
if (protocol && protocol.substr(-1) !== ':') protocol += ':';
|
|
40937
|
-
|
|
40938
|
-
// only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
|
|
40939
|
-
// unless they had them to begin with.
|
|
40940
|
-
if (this.slashes ||
|
|
40941
|
-
(!protocol || slashedProtocol[protocol]) && host !== false) {
|
|
40942
|
-
host = '//' + (host || '');
|
|
40943
|
-
if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
|
|
40944
|
-
} else if (!host) {
|
|
40945
|
-
host = '';
|
|
40946
|
-
}
|
|
40947
|
-
|
|
40948
|
-
if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
|
|
40949
|
-
if (search && search.charAt(0) !== '?') search = '?' + search;
|
|
40950
|
-
|
|
40951
|
-
pathname = pathname.replace(/[?#]/g, function(match) {
|
|
40952
|
-
return encodeURIComponent(match);
|
|
40953
|
-
});
|
|
40954
|
-
search = search.replace('#', '%23');
|
|
40955
|
-
|
|
40956
|
-
return protocol + host + pathname + search + hash;
|
|
40957
|
-
};
|
|
40958
|
-
|
|
40959
|
-
function urlResolve(source, relative) {
|
|
40960
|
-
return urlParse(source, false, true).resolve(relative);
|
|
40961
|
-
}
|
|
40962
|
-
|
|
40963
|
-
Url.prototype.resolve = function(relative) {
|
|
40964
|
-
return this.resolveObject(urlParse(relative, false, true)).format();
|
|
40965
|
-
};
|
|
40966
|
-
|
|
40967
|
-
function urlResolveObject(source, relative) {
|
|
40968
|
-
if (!source) return relative;
|
|
40969
|
-
return urlParse(source, false, true).resolveObject(relative);
|
|
40970
|
-
}
|
|
40971
|
-
|
|
40972
|
-
Url.prototype.resolveObject = function(relative) {
|
|
40973
|
-
if (util.isString(relative)) {
|
|
40974
|
-
var rel = new Url();
|
|
40975
|
-
rel.parse(relative, false, true);
|
|
40976
|
-
relative = rel;
|
|
40977
|
-
}
|
|
40978
|
-
|
|
40979
|
-
var result = new Url();
|
|
40980
|
-
var tkeys = Object.keys(this);
|
|
40981
|
-
for (var tk = 0; tk < tkeys.length; tk++) {
|
|
40982
|
-
var tkey = tkeys[tk];
|
|
40983
|
-
result[tkey] = this[tkey];
|
|
40984
|
-
}
|
|
40985
|
-
|
|
40986
|
-
// hash is always overridden, no matter what.
|
|
40987
|
-
// even href="" will remove it.
|
|
40988
|
-
result.hash = relative.hash;
|
|
40989
|
-
|
|
40990
|
-
// if the relative url is empty, then there's nothing left to do here.
|
|
40991
|
-
if (relative.href === '') {
|
|
40992
|
-
result.href = result.format();
|
|
40993
|
-
return result;
|
|
40994
|
-
}
|
|
40995
|
-
|
|
40996
|
-
// hrefs like //foo/bar always cut to the protocol.
|
|
40997
|
-
if (relative.slashes && !relative.protocol) {
|
|
40998
|
-
// take everything except the protocol from relative
|
|
40999
|
-
var rkeys = Object.keys(relative);
|
|
41000
|
-
for (var rk = 0; rk < rkeys.length; rk++) {
|
|
41001
|
-
var rkey = rkeys[rk];
|
|
41002
|
-
if (rkey !== 'protocol')
|
|
41003
|
-
result[rkey] = relative[rkey];
|
|
41004
|
-
}
|
|
41005
|
-
|
|
41006
|
-
//urlParse appends trailing / to urls like http://www.example.com
|
|
41007
|
-
if (slashedProtocol[result.protocol] &&
|
|
41008
|
-
result.hostname && !result.pathname) {
|
|
41009
|
-
result.path = result.pathname = '/';
|
|
41010
|
-
}
|
|
41011
|
-
|
|
41012
|
-
result.href = result.format();
|
|
41013
|
-
return result;
|
|
41014
|
-
}
|
|
41015
|
-
|
|
41016
|
-
if (relative.protocol && relative.protocol !== result.protocol) {
|
|
41017
|
-
// if it's a known url protocol, then changing
|
|
41018
|
-
// the protocol does weird things
|
|
41019
|
-
// first, if it's not file:, then we MUST have a host,
|
|
41020
|
-
// and if there was a path
|
|
41021
|
-
// to begin with, then we MUST have a path.
|
|
41022
|
-
// if it is file:, then the host is dropped,
|
|
41023
|
-
// because that's known to be hostless.
|
|
41024
|
-
// anything else is assumed to be absolute.
|
|
41025
|
-
if (!slashedProtocol[relative.protocol]) {
|
|
41026
|
-
var keys = Object.keys(relative);
|
|
41027
|
-
for (var v = 0; v < keys.length; v++) {
|
|
41028
|
-
var k = keys[v];
|
|
41029
|
-
result[k] = relative[k];
|
|
41030
|
-
}
|
|
41031
|
-
result.href = result.format();
|
|
41032
|
-
return result;
|
|
41033
|
-
}
|
|
41034
|
-
|
|
41035
|
-
result.protocol = relative.protocol;
|
|
41036
|
-
if (!relative.host && !hostlessProtocol[relative.protocol]) {
|
|
41037
|
-
var relPath = (relative.pathname || '').split('/');
|
|
41038
|
-
while (relPath.length && !(relative.host = relPath.shift()));
|
|
41039
|
-
if (!relative.host) relative.host = '';
|
|
41040
|
-
if (!relative.hostname) relative.hostname = '';
|
|
41041
|
-
if (relPath[0] !== '') relPath.unshift('');
|
|
41042
|
-
if (relPath.length < 2) relPath.unshift('');
|
|
41043
|
-
result.pathname = relPath.join('/');
|
|
41044
|
-
} else {
|
|
41045
|
-
result.pathname = relative.pathname;
|
|
41046
|
-
}
|
|
41047
|
-
result.search = relative.search;
|
|
41048
|
-
result.query = relative.query;
|
|
41049
|
-
result.host = relative.host || '';
|
|
41050
|
-
result.auth = relative.auth;
|
|
41051
|
-
result.hostname = relative.hostname || relative.host;
|
|
41052
|
-
result.port = relative.port;
|
|
41053
|
-
// to support http.request
|
|
41054
|
-
if (result.pathname || result.search) {
|
|
41055
|
-
var p = result.pathname || '';
|
|
41056
|
-
var s = result.search || '';
|
|
41057
|
-
result.path = p + s;
|
|
41058
|
-
}
|
|
41059
|
-
result.slashes = result.slashes || relative.slashes;
|
|
41060
|
-
result.href = result.format();
|
|
41061
|
-
return result;
|
|
41062
|
-
}
|
|
41063
|
-
|
|
41064
|
-
var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),
|
|
41065
|
-
isRelAbs = (
|
|
41066
|
-
relative.host ||
|
|
41067
|
-
relative.pathname && relative.pathname.charAt(0) === '/'
|
|
41068
|
-
),
|
|
41069
|
-
mustEndAbs = (isRelAbs || isSourceAbs ||
|
|
41070
|
-
(result.host && relative.pathname)),
|
|
41071
|
-
removeAllDots = mustEndAbs,
|
|
41072
|
-
srcPath = result.pathname && result.pathname.split('/') || [],
|
|
41073
|
-
relPath = relative.pathname && relative.pathname.split('/') || [],
|
|
41074
|
-
psychotic = result.protocol && !slashedProtocol[result.protocol];
|
|
41075
|
-
|
|
41076
|
-
// if the url is a non-slashed url, then relative
|
|
41077
|
-
// links like ../.. should be able
|
|
41078
|
-
// to crawl up to the hostname, as well. This is strange.
|
|
41079
|
-
// result.protocol has already been set by now.
|
|
41080
|
-
// Later on, put the first path part into the host field.
|
|
41081
|
-
if (psychotic) {
|
|
41082
|
-
result.hostname = '';
|
|
41083
|
-
result.port = null;
|
|
41084
|
-
if (result.host) {
|
|
41085
|
-
if (srcPath[0] === '') srcPath[0] = result.host;
|
|
41086
|
-
else srcPath.unshift(result.host);
|
|
41087
|
-
}
|
|
41088
|
-
result.host = '';
|
|
41089
|
-
if (relative.protocol) {
|
|
41090
|
-
relative.hostname = null;
|
|
41091
|
-
relative.port = null;
|
|
41092
|
-
if (relative.host) {
|
|
41093
|
-
if (relPath[0] === '') relPath[0] = relative.host;
|
|
41094
|
-
else relPath.unshift(relative.host);
|
|
41095
|
-
}
|
|
41096
|
-
relative.host = null;
|
|
41097
|
-
}
|
|
41098
|
-
mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
|
|
41099
|
-
}
|
|
41100
|
-
|
|
41101
|
-
if (isRelAbs) {
|
|
41102
|
-
// it's absolute.
|
|
41103
|
-
result.host = (relative.host || relative.host === '') ?
|
|
41104
|
-
relative.host : result.host;
|
|
41105
|
-
result.hostname = (relative.hostname || relative.hostname === '') ?
|
|
41106
|
-
relative.hostname : result.hostname;
|
|
41107
|
-
result.search = relative.search;
|
|
41108
|
-
result.query = relative.query;
|
|
41109
|
-
srcPath = relPath;
|
|
41110
|
-
// fall through to the dot-handling below.
|
|
41111
|
-
} else if (relPath.length) {
|
|
41112
|
-
// it's relative
|
|
41113
|
-
// throw away the existing file, and take the new path instead.
|
|
41114
|
-
if (!srcPath) srcPath = [];
|
|
41115
|
-
srcPath.pop();
|
|
41116
|
-
srcPath = srcPath.concat(relPath);
|
|
41117
|
-
result.search = relative.search;
|
|
41118
|
-
result.query = relative.query;
|
|
41119
|
-
} else if (!util.isNullOrUndefined(relative.search)) {
|
|
41120
|
-
// just pull out the search.
|
|
41121
|
-
// like href='?foo'.
|
|
41122
|
-
// Put this after the other two cases because it simplifies the booleans
|
|
41123
|
-
if (psychotic) {
|
|
41124
|
-
result.hostname = result.host = srcPath.shift();
|
|
41125
|
-
//occationaly the auth can get stuck only in host
|
|
41126
|
-
//this especially happens in cases like
|
|
41127
|
-
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
41128
|
-
var authInHost = result.host && result.host.indexOf('@') > 0 ?
|
|
41129
|
-
result.host.split('@') : false;
|
|
41130
|
-
if (authInHost) {
|
|
41131
|
-
result.auth = authInHost.shift();
|
|
41132
|
-
result.host = result.hostname = authInHost.shift();
|
|
41133
|
-
}
|
|
41134
|
-
}
|
|
41135
|
-
result.search = relative.search;
|
|
41136
|
-
result.query = relative.query;
|
|
41137
|
-
//to support http.request
|
|
41138
|
-
if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
|
|
41139
|
-
result.path = (result.pathname ? result.pathname : '') +
|
|
41140
|
-
(result.search ? result.search : '');
|
|
41141
|
-
}
|
|
41142
|
-
result.href = result.format();
|
|
41143
|
-
return result;
|
|
41144
|
-
}
|
|
41145
|
-
|
|
41146
|
-
if (!srcPath.length) {
|
|
41147
|
-
// no path at all. easy.
|
|
41148
|
-
// we've already handled the other stuff above.
|
|
41149
|
-
result.pathname = null;
|
|
41150
|
-
//to support http.request
|
|
41151
|
-
if (result.search) {
|
|
41152
|
-
result.path = '/' + result.search;
|
|
41153
|
-
} else {
|
|
41154
|
-
result.path = null;
|
|
41155
|
-
}
|
|
41156
|
-
result.href = result.format();
|
|
41157
|
-
return result;
|
|
41158
|
-
}
|
|
41159
|
-
|
|
41160
|
-
// if a url ENDs in . or .., then it must get a trailing slash.
|
|
41161
|
-
// however, if it ends in anything else non-slashy,
|
|
41162
|
-
// then it must NOT get a trailing slash.
|
|
41163
|
-
var last = srcPath.slice(-1)[0];
|
|
41164
|
-
var hasTrailingSlash = (
|
|
41165
|
-
(result.host || relative.host || srcPath.length > 1) &&
|
|
41166
|
-
(last === '.' || last === '..') || last === '');
|
|
41167
|
-
|
|
41168
|
-
// strip single dots, resolve double dots to parent dir
|
|
41169
|
-
// if the path tries to go above the root, `up` ends up > 0
|
|
41170
|
-
var up = 0;
|
|
41171
|
-
for (var i = srcPath.length; i >= 0; i--) {
|
|
41172
|
-
last = srcPath[i];
|
|
41173
|
-
if (last === '.') {
|
|
41174
|
-
srcPath.splice(i, 1);
|
|
41175
|
-
} else if (last === '..') {
|
|
41176
|
-
srcPath.splice(i, 1);
|
|
41177
|
-
up++;
|
|
41178
|
-
} else if (up) {
|
|
41179
|
-
srcPath.splice(i, 1);
|
|
41180
|
-
up--;
|
|
41181
|
-
}
|
|
41182
|
-
}
|
|
41183
|
-
|
|
41184
|
-
// if the path is allowed to go above the root, restore leading ..s
|
|
41185
|
-
if (!mustEndAbs && !removeAllDots) {
|
|
41186
|
-
for (; up--; up) {
|
|
41187
|
-
srcPath.unshift('..');
|
|
41188
|
-
}
|
|
41189
|
-
}
|
|
41190
|
-
|
|
41191
|
-
if (mustEndAbs && srcPath[0] !== '' &&
|
|
41192
|
-
(!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
|
|
41193
|
-
srcPath.unshift('');
|
|
41194
|
-
}
|
|
41195
|
-
|
|
41196
|
-
if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
|
|
41197
|
-
srcPath.push('');
|
|
41198
|
-
}
|
|
41199
|
-
|
|
41200
|
-
var isAbsolute = srcPath[0] === '' ||
|
|
41201
|
-
(srcPath[0] && srcPath[0].charAt(0) === '/');
|
|
41202
|
-
|
|
41203
|
-
// put the host back
|
|
41204
|
-
if (psychotic) {
|
|
41205
|
-
result.hostname = result.host = isAbsolute ? '' :
|
|
41206
|
-
srcPath.length ? srcPath.shift() : '';
|
|
41207
|
-
//occationaly the auth can get stuck only in host
|
|
41208
|
-
//this especially happens in cases like
|
|
41209
|
-
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
41210
|
-
var authInHost = result.host && result.host.indexOf('@') > 0 ?
|
|
41211
|
-
result.host.split('@') : false;
|
|
41212
|
-
if (authInHost) {
|
|
41213
|
-
result.auth = authInHost.shift();
|
|
41214
|
-
result.host = result.hostname = authInHost.shift();
|
|
41215
|
-
}
|
|
41216
|
-
}
|
|
41217
|
-
|
|
41218
|
-
mustEndAbs = mustEndAbs || (result.host && srcPath.length);
|
|
41219
|
-
|
|
41220
|
-
if (mustEndAbs && !isAbsolute) {
|
|
41221
|
-
srcPath.unshift('');
|
|
41222
|
-
}
|
|
41223
|
-
|
|
41224
|
-
if (!srcPath.length) {
|
|
41225
|
-
result.pathname = null;
|
|
41226
|
-
result.path = null;
|
|
41227
|
-
} else {
|
|
41228
|
-
result.pathname = srcPath.join('/');
|
|
41229
|
-
}
|
|
41230
|
-
|
|
41231
|
-
//to support request.http
|
|
41232
|
-
if (!util.isNull(result.pathname) || !util.isNull(result.search)) {
|
|
41233
|
-
result.path = (result.pathname ? result.pathname : '') +
|
|
41234
|
-
(result.search ? result.search : '');
|
|
41235
|
-
}
|
|
41236
|
-
result.auth = relative.auth || result.auth;
|
|
41237
|
-
result.slashes = result.slashes || relative.slashes;
|
|
41238
|
-
result.href = result.format();
|
|
41239
|
-
return result;
|
|
41240
|
-
};
|
|
41241
|
-
|
|
41242
|
-
Url.prototype.parseHost = function() {
|
|
41243
|
-
var host = this.host;
|
|
41244
|
-
var port = portPattern.exec(host);
|
|
41245
|
-
if (port) {
|
|
41246
|
-
port = port[0];
|
|
41247
|
-
if (port !== ':') {
|
|
41248
|
-
this.port = port.substr(1);
|
|
41249
|
-
}
|
|
41250
|
-
host = host.substr(0, host.length - port.length);
|
|
41251
|
-
}
|
|
41252
|
-
if (host) this.hostname = host;
|
|
41253
|
-
};
|
|
41254
|
-
|
|
41255
|
-
|
|
41256
|
-
/***/ }),
|
|
41257
|
-
|
|
41258
|
-
/***/ "../../common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/util.js":
|
|
41259
|
-
/*!****************************************************************************************!*\
|
|
41260
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/url@0.11.0/node_modules/url/util.js ***!
|
|
41261
|
-
\****************************************************************************************/
|
|
41262
|
-
/*! no static exports found */
|
|
41263
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
41264
|
-
|
|
41265
|
-
"use strict";
|
|
41266
|
-
|
|
41267
|
-
|
|
41268
|
-
module.exports = {
|
|
41269
|
-
isString: function(arg) {
|
|
41270
|
-
return typeof(arg) === 'string';
|
|
41271
|
-
},
|
|
41272
|
-
isObject: function(arg) {
|
|
41273
|
-
return typeof(arg) === 'object' && arg !== null;
|
|
41274
|
-
},
|
|
41275
|
-
isNull: function(arg) {
|
|
41276
|
-
return arg === null;
|
|
41277
|
-
},
|
|
41278
|
-
isNullOrUndefined: function(arg) {
|
|
41279
|
-
return arg == null;
|
|
41280
|
-
}
|
|
41281
|
-
};
|
|
41282
|
-
|
|
41283
|
-
|
|
41284
38476
|
/***/ }),
|
|
41285
38477
|
|
|
41286
38478
|
/***/ "../../common/temp/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js":
|
|
@@ -41391,39 +38583,6 @@ try {
|
|
|
41391
38583
|
module.exports = g;
|
|
41392
38584
|
|
|
41393
38585
|
|
|
41394
|
-
/***/ }),
|
|
41395
|
-
|
|
41396
|
-
/***/ "../../common/temp/node_modules/.pnpm/webpack@4.42.0/node_modules/webpack/buildin/module.js":
|
|
41397
|
-
/*!***********************************!*\
|
|
41398
|
-
!*** (webpack)/buildin/module.js ***!
|
|
41399
|
-
\***********************************/
|
|
41400
|
-
/*! no static exports found */
|
|
41401
|
-
/***/ (function(module, exports) {
|
|
41402
|
-
|
|
41403
|
-
module.exports = function(module) {
|
|
41404
|
-
if (!module.webpackPolyfill) {
|
|
41405
|
-
module.deprecate = function() {};
|
|
41406
|
-
module.paths = [];
|
|
41407
|
-
// module.parent = undefined by default
|
|
41408
|
-
if (!module.children) module.children = [];
|
|
41409
|
-
Object.defineProperty(module, "loaded", {
|
|
41410
|
-
enumerable: true,
|
|
41411
|
-
get: function() {
|
|
41412
|
-
return module.l;
|
|
41413
|
-
}
|
|
41414
|
-
});
|
|
41415
|
-
Object.defineProperty(module, "id", {
|
|
41416
|
-
enumerable: true,
|
|
41417
|
-
get: function() {
|
|
41418
|
-
return module.i;
|
|
41419
|
-
}
|
|
41420
|
-
});
|
|
41421
|
-
module.webpackPolyfill = 1;
|
|
41422
|
-
}
|
|
41423
|
-
return module;
|
|
41424
|
-
};
|
|
41425
|
-
|
|
41426
|
-
|
|
41427
38586
|
/***/ }),
|
|
41428
38587
|
|
|
41429
38588
|
/***/ "../../common/temp/node_modules/.pnpm/wms-capabilities@0.4.0/node_modules/wms-capabilities/dist/wms-capabilities.min.js":
|
|
@@ -42317,36 +39476,6 @@ module.exports = function(xml, userOptions) {
|
|
|
42317
39476
|
};
|
|
42318
39477
|
|
|
42319
39478
|
|
|
42320
|
-
/***/ }),
|
|
42321
|
-
|
|
42322
|
-
/***/ "../../common/temp/node_modules/.pnpm/xtend@4.0.2/node_modules/xtend/immutable.js":
|
|
42323
|
-
/*!************************************************************************************************!*\
|
|
42324
|
-
!*** D:/vsts_b/6/s/common/temp/node_modules/.pnpm/xtend@4.0.2/node_modules/xtend/immutable.js ***!
|
|
42325
|
-
\************************************************************************************************/
|
|
42326
|
-
/*! no static exports found */
|
|
42327
|
-
/***/ (function(module, exports) {
|
|
42328
|
-
|
|
42329
|
-
module.exports = extend
|
|
42330
|
-
|
|
42331
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
42332
|
-
|
|
42333
|
-
function extend() {
|
|
42334
|
-
var target = {}
|
|
42335
|
-
|
|
42336
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
42337
|
-
var source = arguments[i]
|
|
42338
|
-
|
|
42339
|
-
for (var key in source) {
|
|
42340
|
-
if (hasOwnProperty.call(source, key)) {
|
|
42341
|
-
target[key] = source[key]
|
|
42342
|
-
}
|
|
42343
|
-
}
|
|
42344
|
-
}
|
|
42345
|
-
|
|
42346
|
-
return target
|
|
42347
|
-
}
|
|
42348
|
-
|
|
42349
|
-
|
|
42350
39479
|
/***/ }),
|
|
42351
39480
|
|
|
42352
39481
|
/***/ "../../core/bentley/lib/esm/AccessToken.js":
|
|
@@ -49454,159 +46583,158 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49454
46583
|
* @note If your colors don't look right, likely you're using 0xRRGGBB where ColorDef expects 0xBBGGRR.
|
|
49455
46584
|
* @public
|
|
49456
46585
|
*/
|
|
49457
|
-
|
|
49458
|
-
|
|
49459
|
-
|
|
49460
|
-
|
|
49461
|
-
|
|
49462
|
-
|
|
49463
|
-
|
|
49464
|
-
|
|
49465
|
-
|
|
49466
|
-
|
|
49467
|
-
|
|
49468
|
-
|
|
49469
|
-
|
|
49470
|
-
|
|
49471
|
-
|
|
49472
|
-
|
|
49473
|
-
|
|
49474
|
-
|
|
49475
|
-
|
|
49476
|
-
|
|
49477
|
-
|
|
49478
|
-
|
|
49479
|
-
|
|
49480
|
-
|
|
49481
|
-
|
|
49482
|
-
|
|
49483
|
-
|
|
49484
|
-
|
|
49485
|
-
|
|
49486
|
-
|
|
49487
|
-
|
|
49488
|
-
|
|
49489
|
-
|
|
49490
|
-
|
|
49491
|
-
|
|
49492
|
-
|
|
49493
|
-
|
|
49494
|
-
|
|
49495
|
-
|
|
49496
|
-
|
|
49497
|
-
|
|
49498
|
-
|
|
49499
|
-
|
|
49500
|
-
|
|
49501
|
-
|
|
49502
|
-
|
|
49503
|
-
|
|
49504
|
-
|
|
49505
|
-
|
|
49506
|
-
|
|
49507
|
-
|
|
49508
|
-
|
|
49509
|
-
|
|
49510
|
-
|
|
49511
|
-
|
|
49512
|
-
|
|
49513
|
-
|
|
49514
|
-
|
|
49515
|
-
|
|
49516
|
-
|
|
49517
|
-
|
|
49518
|
-
|
|
49519
|
-
|
|
49520
|
-
|
|
49521
|
-
|
|
49522
|
-
|
|
49523
|
-
|
|
49524
|
-
|
|
49525
|
-
|
|
49526
|
-
|
|
49527
|
-
|
|
49528
|
-
|
|
49529
|
-
|
|
49530
|
-
|
|
49531
|
-
|
|
49532
|
-
|
|
49533
|
-
|
|
49534
|
-
|
|
49535
|
-
|
|
49536
|
-
|
|
49537
|
-
|
|
49538
|
-
|
|
49539
|
-
|
|
49540
|
-
|
|
49541
|
-
|
|
49542
|
-
|
|
49543
|
-
|
|
49544
|
-
|
|
49545
|
-
|
|
49546
|
-
|
|
49547
|
-
|
|
49548
|
-
|
|
49549
|
-
|
|
49550
|
-
|
|
49551
|
-
|
|
49552
|
-
|
|
49553
|
-
|
|
49554
|
-
|
|
49555
|
-
|
|
49556
|
-
|
|
49557
|
-
|
|
49558
|
-
|
|
49559
|
-
|
|
49560
|
-
|
|
49561
|
-
|
|
49562
|
-
|
|
49563
|
-
|
|
49564
|
-
|
|
49565
|
-
|
|
49566
|
-
|
|
49567
|
-
|
|
49568
|
-
|
|
49569
|
-
|
|
49570
|
-
|
|
49571
|
-
|
|
49572
|
-
|
|
49573
|
-
|
|
49574
|
-
|
|
49575
|
-
|
|
49576
|
-
|
|
49577
|
-
|
|
49578
|
-
|
|
49579
|
-
|
|
49580
|
-
|
|
49581
|
-
|
|
49582
|
-
|
|
49583
|
-
|
|
49584
|
-
|
|
49585
|
-
|
|
49586
|
-
|
|
49587
|
-
|
|
49588
|
-
|
|
49589
|
-
|
|
49590
|
-
|
|
49591
|
-
|
|
49592
|
-
|
|
49593
|
-
|
|
49594
|
-
|
|
49595
|
-
|
|
49596
|
-
|
|
49597
|
-
|
|
49598
|
-
|
|
49599
|
-
|
|
49600
|
-
|
|
49601
|
-
|
|
49602
|
-
|
|
49603
|
-
|
|
49604
|
-
|
|
49605
|
-
|
|
49606
|
-
|
|
49607
|
-
|
|
49608
|
-
|
|
49609
|
-
})(ColorByName || (ColorByName = {}));
|
|
46586
|
+
const ColorByName = {
|
|
46587
|
+
aliceBlue: 0xFFF8F0,
|
|
46588
|
+
amber: 0x00BFFF,
|
|
46589
|
+
antiqueWhite: 0xD7EBFA,
|
|
46590
|
+
aqua: 0xFFFF00,
|
|
46591
|
+
aquamarine: 0xD4FF7F,
|
|
46592
|
+
azure: 0xFFFFF0,
|
|
46593
|
+
beige: 0xDCF5F5,
|
|
46594
|
+
bisque: 0xC4E4FF,
|
|
46595
|
+
black: 0x000000,
|
|
46596
|
+
blanchedAlmond: 0xCDEBFF,
|
|
46597
|
+
blue: 0xFF0000,
|
|
46598
|
+
blueViolet: 0xE22B8A,
|
|
46599
|
+
brown: 0x2A2AA5,
|
|
46600
|
+
burlyWood: 0x87B8DE,
|
|
46601
|
+
cadetBlue: 0xA09E5F,
|
|
46602
|
+
chartreuse: 0x00FF7F,
|
|
46603
|
+
chocolate: 0x1E69D2,
|
|
46604
|
+
coral: 0x507FFF,
|
|
46605
|
+
cornflowerBlue: 0xED9564,
|
|
46606
|
+
cornSilk: 0xDCF8FF,
|
|
46607
|
+
crimson: 0x3C14DC,
|
|
46608
|
+
cyan: 0xFFFF00,
|
|
46609
|
+
darkBlue: 0x8B0000,
|
|
46610
|
+
darkBrown: 0x214365,
|
|
46611
|
+
darkCyan: 0x8B8B00,
|
|
46612
|
+
darkGoldenrod: 0x0B86B8,
|
|
46613
|
+
darkGray: 0xA9A9A9,
|
|
46614
|
+
darkGreen: 0x006400,
|
|
46615
|
+
darkGrey: 0xA9A9A9,
|
|
46616
|
+
darkKhaki: 0x6BB7BD,
|
|
46617
|
+
darkMagenta: 0x8B008B,
|
|
46618
|
+
darkOliveGreen: 0x2F6B55,
|
|
46619
|
+
darkOrange: 0x008CFF,
|
|
46620
|
+
darkOrchid: 0xCC3299,
|
|
46621
|
+
darkRed: 0x00008B,
|
|
46622
|
+
darkSalmon: 0x7A96E9,
|
|
46623
|
+
darkSeagreen: 0x8FBC8F,
|
|
46624
|
+
darkSlateBlue: 0x8B3D48,
|
|
46625
|
+
darkSlateGray: 0x4F4F2F,
|
|
46626
|
+
darkSlateGrey: 0x4F4F2F,
|
|
46627
|
+
darkTurquoise: 0xD1CE00,
|
|
46628
|
+
darkViolet: 0xD30094,
|
|
46629
|
+
deepPink: 0x9314FF,
|
|
46630
|
+
deepSkyBlue: 0xFFBF00,
|
|
46631
|
+
dimGray: 0x696969,
|
|
46632
|
+
dimGrey: 0x696969,
|
|
46633
|
+
dodgerBlue: 0xFF901E,
|
|
46634
|
+
fireBrick: 0x2222B2,
|
|
46635
|
+
floralWhite: 0xF0FAFF,
|
|
46636
|
+
forestGreen: 0x228B22,
|
|
46637
|
+
fuchsia: 0xFF00FF,
|
|
46638
|
+
gainsboro: 0xDCDCDC,
|
|
46639
|
+
ghostWhite: 0xFFF8F8,
|
|
46640
|
+
gold: 0x00D7FF,
|
|
46641
|
+
goldenrod: 0x20A5DA,
|
|
46642
|
+
gray: 0x808080,
|
|
46643
|
+
green: 0x008000,
|
|
46644
|
+
greenYellow: 0x2FFFAD,
|
|
46645
|
+
grey: 0x808080,
|
|
46646
|
+
honeydew: 0xF0FFF0,
|
|
46647
|
+
hotPink: 0xB469FF,
|
|
46648
|
+
indianRed: 0x5C5CCD,
|
|
46649
|
+
indigo: 0x82004B,
|
|
46650
|
+
ivory: 0xF0FFFF,
|
|
46651
|
+
khaki: 0x8CE6F0,
|
|
46652
|
+
lavender: 0xFAE6E6,
|
|
46653
|
+
lavenderBlush: 0xF5F0FF,
|
|
46654
|
+
lawnGreen: 0x00FC7C,
|
|
46655
|
+
lemonChiffon: 0xCDFAFF,
|
|
46656
|
+
lightBlue: 0xE6D8AD,
|
|
46657
|
+
lightCoral: 0x8080F0,
|
|
46658
|
+
lightCyan: 0xFFFFE0,
|
|
46659
|
+
lightGoldenrodYellow: 0xD2FAFA,
|
|
46660
|
+
lightGray: 0xD3D3D3,
|
|
46661
|
+
lightGreen: 0x90EE90,
|
|
46662
|
+
lightGrey: 0xD3D3D3,
|
|
46663
|
+
lightPink: 0xC1B6FF,
|
|
46664
|
+
lightSalmon: 0x7AA0FF,
|
|
46665
|
+
lightSeagreen: 0xAAB220,
|
|
46666
|
+
lightSkyBlue: 0xFACE87,
|
|
46667
|
+
lightSlateGray: 0x998877,
|
|
46668
|
+
lightSlateGrey: 0x998877,
|
|
46669
|
+
lightSteelBlue: 0xDEC4B0,
|
|
46670
|
+
lightyellow: 0xE0FFFF,
|
|
46671
|
+
lime: 0x00FF00,
|
|
46672
|
+
limeGreen: 0x32CD32,
|
|
46673
|
+
linen: 0xE6F0FA,
|
|
46674
|
+
magenta: 0xFF00FF,
|
|
46675
|
+
maroon: 0x000080,
|
|
46676
|
+
mediumAquamarine: 0xAACD66,
|
|
46677
|
+
mediumBlue: 0xCD0000,
|
|
46678
|
+
mediumOrchid: 0xD355BA,
|
|
46679
|
+
mediumPurple: 0xDB7093,
|
|
46680
|
+
mediumSeaGreen: 0x71B33C,
|
|
46681
|
+
mediumSlateBlue: 0xEE687B,
|
|
46682
|
+
mediumSpringGreen: 0x9AFA00,
|
|
46683
|
+
mediumTurquoise: 0xCCD148,
|
|
46684
|
+
mediumVioletRed: 0x8515C7,
|
|
46685
|
+
midnightBlue: 0x701919,
|
|
46686
|
+
mintCream: 0xFAFFF5,
|
|
46687
|
+
mistyRose: 0xE1E4FF,
|
|
46688
|
+
moccasin: 0xB5E4FF,
|
|
46689
|
+
navajoWhite: 0xADDEFF,
|
|
46690
|
+
navy: 0x800000,
|
|
46691
|
+
oldLace: 0xE6F5FD,
|
|
46692
|
+
olive: 0x008080,
|
|
46693
|
+
oliveDrab: 0x238E6B,
|
|
46694
|
+
orange: 0x00A5FF,
|
|
46695
|
+
orangeRed: 0x0045FF,
|
|
46696
|
+
orchid: 0xD670DA,
|
|
46697
|
+
paleGoldenrod: 0xAAE8EE,
|
|
46698
|
+
paleGreen: 0x98FB98,
|
|
46699
|
+
paleTurquoise: 0xEEEEAF,
|
|
46700
|
+
paleVioletRed: 0x9370DB,
|
|
46701
|
+
papayaWhip: 0xD5EFFF,
|
|
46702
|
+
peachPuff: 0xB9DAFF,
|
|
46703
|
+
peru: 0x3F85CD,
|
|
46704
|
+
pink: 0xCBC0FF,
|
|
46705
|
+
plum: 0xDDA0DD,
|
|
46706
|
+
powderBlue: 0xE6E0B0,
|
|
46707
|
+
purple: 0x800080,
|
|
46708
|
+
rebeccaPurple: 0x993366,
|
|
46709
|
+
red: 0x0000FF,
|
|
46710
|
+
rosyBrown: 0x8F8FBC,
|
|
46711
|
+
royalBlue: 0xE16941,
|
|
46712
|
+
saddleBrown: 0x13458B,
|
|
46713
|
+
salmon: 0x7280FA,
|
|
46714
|
+
sandyBrown: 0x60A4F4,
|
|
46715
|
+
seaGreen: 0x578B2E,
|
|
46716
|
+
seaShell: 0xEEF5FF,
|
|
46717
|
+
sienna: 0x2D52A0,
|
|
46718
|
+
silver: 0xC0C0C0,
|
|
46719
|
+
skyBlue: 0xEBCE87,
|
|
46720
|
+
slateBlue: 0xCD5A6A,
|
|
46721
|
+
slateGray: 0x908070,
|
|
46722
|
+
slateGrey: 0x908070,
|
|
46723
|
+
snow: 0xFAFAFF,
|
|
46724
|
+
springGreen: 0x7FFF00,
|
|
46725
|
+
steelBlue: 0xB48246,
|
|
46726
|
+
tan: 0x8CB4D2,
|
|
46727
|
+
teal: 0x808000,
|
|
46728
|
+
thistle: 0xD8BFD8,
|
|
46729
|
+
tomato: 0x4763FF,
|
|
46730
|
+
turquoise: 0xD0E040,
|
|
46731
|
+
violet: 0xEE82EE,
|
|
46732
|
+
wheat: 0xB3DEF5,
|
|
46733
|
+
white: 0xFFFFFF,
|
|
46734
|
+
whiteSmoke: 0xF5F5F5,
|
|
46735
|
+
yellow: 0x00FFFF,
|
|
46736
|
+
yellowGreen: 0x32CD9A,
|
|
46737
|
+
};
|
|
49610
46738
|
|
|
49611
46739
|
|
|
49612
46740
|
/***/ }),
|
|
@@ -49642,19 +46770,21 @@ const scratchBytes = new Uint8Array(4);
|
|
|
49642
46770
|
const scratchUInt32 = new Uint32Array(scratchBytes.buffer);
|
|
49643
46771
|
/** An immutable integer representation of a color.
|
|
49644
46772
|
*
|
|
49645
|
-
*
|
|
46773
|
+
* 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
|
|
46774
|
+
* 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
|
|
46775
|
+
* 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.
|
|
49646
46776
|
*
|
|
49647
|
-
*
|
|
49648
|
-
* of
|
|
49649
|
-
* 1. The ordering of the Red, Green, Blue bytes; and
|
|
46777
|
+
* 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:
|
|
46778
|
+
* 1. The ordering of the individual components; and
|
|
49650
46779
|
* 2. Whether to specify transparency or opacity (sometimes referred to as "alpha").
|
|
49651
46780
|
*
|
|
49652
|
-
* ColorDef uses `0xTTBBGGRR`
|
|
49653
|
-
*
|
|
46781
|
+
* 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)
|
|
46782
|
+
* using [[getRgb]] and `0xAABBGGRRx format (red in the low byte, using opacity instead of transparency) using [[getAbgr]].
|
|
49654
46783
|
*
|
|
49655
|
-
*
|
|
46784
|
+
* 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
|
|
46785
|
+
* (e.g., [[from]]).
|
|
49656
46786
|
*
|
|
49657
|
-
* ColorDef is immutable
|
|
46787
|
+
* ColorDef is **immutable**. To obtain a modified copy of a ColorDef, use methods like [[adjustedForContrast]], [[inverse]], or [[withTransparency]]. For example:
|
|
49658
46788
|
* ```ts
|
|
49659
46789
|
* const semiTransparentBlue = ColorDef.blue.withTransparency(100);
|
|
49660
46790
|
* ```
|
|
@@ -49669,14 +46799,7 @@ class ColorDef {
|
|
|
49669
46799
|
* Create a new ColorDef.
|
|
49670
46800
|
* @param val value to use.
|
|
49671
46801
|
* If a number, it is interpreted as a 0xTTBBGGRR (Red in the low byte, high byte is transparency 0==fully opaque) value.
|
|
49672
|
-
*
|
|
49673
|
-
* If a string, must be in one of the following forms:
|
|
49674
|
-
* *"rgb(255,0,0)"*
|
|
49675
|
-
* *"rgba(255,0,0,.2)"*
|
|
49676
|
-
* *"rgb(100%,0%,0%)"*
|
|
49677
|
-
* *"hsl(120,50%,50%)"*
|
|
49678
|
-
* *"#rrggbb"*
|
|
49679
|
-
* *"blanchedAlmond"* (see possible values from [[ColorByName]]). Case insensitive.
|
|
46802
|
+
* If a string, it must be in one of the forms supported by [[fromString]] - any unrecognized string will produce [[black]].
|
|
49680
46803
|
*/
|
|
49681
46804
|
static create(val) {
|
|
49682
46805
|
return this.fromTbgr(this.computeTbgr(val));
|
|
@@ -49734,21 +46857,38 @@ class ColorDef {
|
|
|
49734
46857
|
* *"hsl(120,50%,50%)"*
|
|
49735
46858
|
* *"#rrbbgg"*
|
|
49736
46859
|
* *"blanchedAlmond"* (see possible values from [[ColorByName]]). Case-insensitive.
|
|
46860
|
+
*
|
|
46861
|
+
* If `val` is not a valid color string, this function returns [[black]].
|
|
46862
|
+
* @see [[isValidColor]] to determine if `val` is a valid color string.
|
|
49737
46863
|
*/
|
|
49738
46864
|
static fromString(val) {
|
|
49739
46865
|
return this.fromTbgr(this.computeTbgrFromString(val));
|
|
49740
46866
|
}
|
|
49741
|
-
/**
|
|
49742
|
-
*
|
|
49743
|
-
*
|
|
49744
|
-
|
|
49745
|
-
|
|
49746
|
-
|
|
49747
|
-
|
|
46867
|
+
/** Determine whether the input is a valid representation of a ColorDef.
|
|
46868
|
+
* @see [[fromString]] for the definition of a valid string representation.
|
|
46869
|
+
* @see [[ColorDefProps]] for the definition of a valid numeric representation.
|
|
46870
|
+
*/
|
|
46871
|
+
static isValidColor(val) {
|
|
46872
|
+
if (typeof val === "number")
|
|
46873
|
+
return val >= 0 && val <= 0xffffffff && Math.floor(val) === val;
|
|
46874
|
+
return undefined !== this.tryComputeTbgrFromString(val);
|
|
46875
|
+
}
|
|
46876
|
+
/** Compute the 0xTTBBGGRR value corresponding to a string representation of a color.
|
|
46877
|
+
* If `val` is not a valid color string, this function returns 0 (black).
|
|
46878
|
+
* @see [[fromString]] for the definition of a valid color string.
|
|
46879
|
+
* @see [[tryComputeTbgrFromString]] to determine if `val` is a valid color string.
|
|
49748
46880
|
*/
|
|
49749
46881
|
static computeTbgrFromString(val) {
|
|
46882
|
+
var _a;
|
|
46883
|
+
return (_a = this.tryComputeTbgrFromString(val)) !== null && _a !== void 0 ? _a : 0;
|
|
46884
|
+
}
|
|
46885
|
+
/** Try to compute the 0xTTBBGGRR value corresponding to a string representation of a ColorDef.
|
|
46886
|
+
* @returns the corresponding numeric representation, or `undefined` if the input does not represent a color.
|
|
46887
|
+
* @see [[fromString]] for the definition of a valid color string.
|
|
46888
|
+
*/
|
|
46889
|
+
static tryComputeTbgrFromString(val) {
|
|
49750
46890
|
if (typeof val !== "string")
|
|
49751
|
-
return
|
|
46891
|
+
return undefined;
|
|
49752
46892
|
val = val.toLowerCase();
|
|
49753
46893
|
let m = /^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(val);
|
|
49754
46894
|
if (m) { // rgb / hsl
|
|
@@ -49797,13 +46937,13 @@ class ColorDef {
|
|
|
49797
46937
|
}
|
|
49798
46938
|
}
|
|
49799
46939
|
if (val && val.length > 0) { // ColorRgb value
|
|
49800
|
-
const
|
|
49801
|
-
|
|
49802
|
-
|
|
46940
|
+
for (const [key, value] of Object.entries(_ColorByName__WEBPACK_IMPORTED_MODULE_1__["ColorByName"]))
|
|
46941
|
+
if (key.toLowerCase() === val)
|
|
46942
|
+
return value;
|
|
49803
46943
|
}
|
|
49804
|
-
return
|
|
46944
|
+
return undefined;
|
|
49805
46945
|
}
|
|
49806
|
-
/** Get the
|
|
46946
|
+
/** Get the red, green, blue, and transparency values from this ColorDef. Values will be integers between 0-255. */
|
|
49807
46947
|
get colors() {
|
|
49808
46948
|
return ColorDef.getColors(this._tbgr);
|
|
49809
46949
|
}
|
|
@@ -49900,9 +47040,14 @@ class ColorDef {
|
|
|
49900
47040
|
get name() {
|
|
49901
47041
|
return ColorDef.getName(this.tbgr);
|
|
49902
47042
|
}
|
|
49903
|
-
/** Obtain the name of the color in the [[ColorByName]] list associated with the specified 0xTTBBGGRR value, or undefined if no such named color exists.
|
|
47043
|
+
/** Obtain the name of the color in the [[ColorByName]] list associated with the specified 0xTTBBGGRR value, or undefined if no such named color exists.
|
|
47044
|
+
* @note A handful of colors (like "aqua" and "cyan") have identical tbgr values; in such cases the first match will be returned.
|
|
47045
|
+
*/
|
|
49904
47046
|
static getName(tbgr) {
|
|
49905
|
-
|
|
47047
|
+
for (const [key, value] of Object.entries(_ColorByName__WEBPACK_IMPORTED_MODULE_1__["ColorByName"]))
|
|
47048
|
+
if (value === tbgr)
|
|
47049
|
+
return key;
|
|
47050
|
+
return undefined;
|
|
49906
47051
|
}
|
|
49907
47052
|
/** Convert this ColorDef to a string in the form "#rrggbb" where values are hex digits of the respective colors */
|
|
49908
47053
|
toHexString() {
|
|
@@ -73704,10 +70849,12 @@ RpcInvocation.runActivity = async (_activity, fn) => fn();
|
|
|
73704
70849
|
|
|
73705
70850
|
"use strict";
|
|
73706
70851
|
__webpack_require__.r(__webpack_exports__);
|
|
73707
|
-
/*
|
|
70852
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MarshalingBinaryMarker", function() { return MarshalingBinaryMarker; });
|
|
73708
70853
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RpcSerializedValue", function() { return RpcSerializedValue; });
|
|
73709
70854
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RpcMarshaling", function() { return RpcMarshaling; });
|
|
73710
|
-
/* harmony import */ var
|
|
70855
|
+
/* 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");
|
|
70856
|
+
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__);
|
|
70857
|
+
/* harmony import */ var _IModelError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../IModelError */ "../../core/common/lib/esm/IModelError.js");
|
|
73711
70858
|
/*---------------------------------------------------------------------------------------------
|
|
73712
70859
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
73713
70860
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -73716,6 +70863,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
73716
70863
|
* @module RpcInterface
|
|
73717
70864
|
*/
|
|
73718
70865
|
|
|
70866
|
+
|
|
73719
70867
|
// cspell:ignore unmarshal
|
|
73720
70868
|
let marshalingTarget;
|
|
73721
70869
|
let chunkThreshold = 0;
|
|
@@ -73764,7 +70912,7 @@ class RpcMarshaling {
|
|
|
73764
70912
|
}
|
|
73765
70913
|
catch (error) {
|
|
73766
70914
|
if (error instanceof SyntaxError)
|
|
73767
|
-
throw new
|
|
70915
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_IModelError__WEBPACK_IMPORTED_MODULE_1__["BentleyStatus"].ERROR, `Invalid JSON: "${value.objects}"`);
|
|
73768
70916
|
throw error;
|
|
73769
70917
|
}
|
|
73770
70918
|
marshalingTarget = undefined;
|
|
@@ -73793,7 +70941,7 @@ class WireFormat {
|
|
|
73793
70941
|
return value;
|
|
73794
70942
|
}
|
|
73795
70943
|
static marshalBinary(value) {
|
|
73796
|
-
if (value instanceof Uint8Array || Buffer.isBuffer(value)) {
|
|
70944
|
+
if (value instanceof Uint8Array || buffer__WEBPACK_IMPORTED_MODULE_0__["Buffer"].isBuffer(value)) {
|
|
73797
70945
|
const marker = { isBinary: true, index: -1, size: value.byteLength, chunks: 1 };
|
|
73798
70946
|
if (chunkThreshold && value.byteLength > chunkThreshold) {
|
|
73799
70947
|
marker.index = marshalingTarget.data.length;
|
|
@@ -73824,7 +70972,7 @@ class WireFormat {
|
|
|
73824
70972
|
}
|
|
73825
70973
|
static unmarshalBinary(value) {
|
|
73826
70974
|
if (value.index >= marshalingTarget.data.length) {
|
|
73827
|
-
throw new
|
|
70975
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_IModelError__WEBPACK_IMPORTED_MODULE_1__["BentleyStatus"].ERROR, `Cannot unmarshal missing binary value.`);
|
|
73828
70976
|
}
|
|
73829
70977
|
if (value.chunks === 0) {
|
|
73830
70978
|
return new Uint8Array();
|
|
@@ -73857,7 +71005,6 @@ class WireFormat {
|
|
|
73857
71005
|
}
|
|
73858
71006
|
}
|
|
73859
71007
|
|
|
73860
|
-
/* 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))
|
|
73861
71008
|
|
|
73862
71009
|
/***/ }),
|
|
73863
71010
|
|
|
@@ -75211,13 +72358,11 @@ class BentleyCloudRpcManager extends _RpcManager__WEBPACK_IMPORTED_MODULE_0__["R
|
|
|
75211
72358
|
"use strict";
|
|
75212
72359
|
__webpack_require__.r(__webpack_exports__);
|
|
75213
72360
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BentleyCloudRpcProtocol", function() { return BentleyCloudRpcProtocol; });
|
|
75214
|
-
/* harmony import */ var
|
|
75215
|
-
/* harmony import */ var
|
|
75216
|
-
/* harmony import */ var
|
|
75217
|
-
/* harmony import */ var
|
|
75218
|
-
/* harmony import */ var
|
|
75219
|
-
/* harmony import */ var _core_RpcOperation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/RpcOperation */ "../../core/common/lib/esm/rpc/core/RpcOperation.js");
|
|
75220
|
-
/* harmony import */ var _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./WebAppRpcProtocol */ "../../core/common/lib/esm/rpc/web/WebAppRpcProtocol.js");
|
|
72361
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
72362
|
+
/* harmony import */ var _IModelError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../IModelError */ "../../core/common/lib/esm/IModelError.js");
|
|
72363
|
+
/* harmony import */ var _core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConfiguration */ "../../core/common/lib/esm/rpc/core/RpcConfiguration.js");
|
|
72364
|
+
/* harmony import */ var _core_RpcOperation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcOperation */ "../../core/common/lib/esm/rpc/core/RpcOperation.js");
|
|
72365
|
+
/* harmony import */ var _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./WebAppRpcProtocol */ "../../core/common/lib/esm/rpc/web/WebAppRpcProtocol.js");
|
|
75221
72366
|
/*---------------------------------------------------------------------------------------------
|
|
75222
72367
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
75223
72368
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -75230,7 +72375,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75230
72375
|
|
|
75231
72376
|
|
|
75232
72377
|
|
|
75233
|
-
|
|
75234
72378
|
var AppMode;
|
|
75235
72379
|
(function (AppMode) {
|
|
75236
72380
|
AppMode["MilestoneReview"] = "1";
|
|
@@ -75238,7 +72382,7 @@ var AppMode;
|
|
|
75238
72382
|
/** An http protocol for Bentley cloud RPC interface deployments.
|
|
75239
72383
|
* @internal
|
|
75240
72384
|
*/
|
|
75241
|
-
class BentleyCloudRpcProtocol extends
|
|
72385
|
+
class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_4__["WebAppRpcProtocol"] {
|
|
75242
72386
|
constructor() {
|
|
75243
72387
|
super(...arguments);
|
|
75244
72388
|
this.checkToken = true;
|
|
@@ -75260,7 +72404,7 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
|
|
|
75260
72404
|
}
|
|
75261
72405
|
/** Returns the operation specified by an OpenAPI-compatible URI path. */
|
|
75262
72406
|
getOperationFromPath(path) {
|
|
75263
|
-
const url = new
|
|
72407
|
+
const url = new URL(path, "https://localhost/");
|
|
75264
72408
|
const components = url.pathname.split("/").filter((x) => x); // filter out empty segments
|
|
75265
72409
|
const operationComponent = components.slice(-1)[0];
|
|
75266
72410
|
const encodedRequest = url.searchParams.get("parameters") || "";
|
|
@@ -75294,13 +72438,13 @@ class BentleyCloudRpcProtocol extends _WebAppRpcProtocol__WEBPACK_IMPORTED_MODUL
|
|
|
75294
72438
|
routeChangesetId = "{changeSetId}";
|
|
75295
72439
|
}
|
|
75296
72440
|
else {
|
|
75297
|
-
let token = operation.policy.token(request) ||
|
|
72441
|
+
let token = operation.policy.token(request) || _core_RpcOperation__WEBPACK_IMPORTED_MODULE_3__["RpcOperation"].fallbackToken;
|
|
75298
72442
|
if (!token || !token.iModelId) {
|
|
75299
|
-
if (
|
|
72443
|
+
if (_core_RpcConfiguration__WEBPACK_IMPORTED_MODULE_2__["RpcConfiguration"].disableRoutingValidation) {
|
|
75300
72444
|
token = { key: "" };
|
|
75301
72445
|
}
|
|
75302
72446
|
else {
|
|
75303
|
-
throw new
|
|
72447
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["BentleyStatus"].ERROR, "Invalid iModelToken for RPC operation request");
|
|
75304
72448
|
}
|
|
75305
72449
|
}
|
|
75306
72450
|
iTwinId = encodeURIComponent(token.iTwinId || "");
|
|
@@ -75512,20 +72656,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75512
72656
|
|
|
75513
72657
|
|
|
75514
72658
|
|
|
75515
|
-
|
|
75516
|
-
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;
|
|
72659
|
+
let hostname = "";
|
|
75517
72660
|
function getHostname() {
|
|
75518
|
-
if (
|
|
75519
|
-
|
|
75520
|
-
|
|
75521
|
-
|
|
75522
|
-
|
|
75523
|
-
return window.location.host;
|
|
72661
|
+
if (!hostname) {
|
|
72662
|
+
try {
|
|
72663
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
72664
|
+
const os = __webpack_require__(/*! os */ "../../common/temp/node_modules/.pnpm/os-browserify@0.3.0/node_modules/os-browserify/browser.js");
|
|
72665
|
+
hostname = os.hostname();
|
|
75524
72666
|
}
|
|
75525
|
-
|
|
75526
|
-
|
|
72667
|
+
catch (_) {
|
|
72668
|
+
if (globalThis.window) {
|
|
72669
|
+
hostname = globalThis.window.location.host;
|
|
72670
|
+
}
|
|
72671
|
+
else {
|
|
72672
|
+
hostname = "imodeljs-mobile";
|
|
72673
|
+
}
|
|
75527
72674
|
}
|
|
75528
72675
|
}
|
|
72676
|
+
return hostname;
|
|
75529
72677
|
}
|
|
75530
72678
|
/** @internal */
|
|
75531
72679
|
class WebAppRpcLogging {
|
|
@@ -75813,16 +72961,14 @@ class WebAppRpcProtocol extends _core_RpcProtocol__WEBPACK_IMPORTED_MODULE_2__["
|
|
|
75813
72961
|
"use strict";
|
|
75814
72962
|
__webpack_require__.r(__webpack_exports__);
|
|
75815
72963
|
/* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WebAppRpcRequest", function() { return WebAppRpcRequest; });
|
|
75816
|
-
/* harmony import */ var
|
|
75817
|
-
/* harmony import */ var
|
|
75818
|
-
/* harmony import */ var
|
|
75819
|
-
/* harmony import */ var
|
|
75820
|
-
/* harmony import */ var
|
|
75821
|
-
/* harmony import */ var
|
|
75822
|
-
/* harmony import */ var
|
|
75823
|
-
/* harmony import */ var
|
|
75824
|
-
/* harmony import */ var _RpcMultipart__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./RpcMultipart */ "../../core/common/lib/esm/rpc/web/RpcMultipart.js");
|
|
75825
|
-
/* harmony import */ var _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./WebAppRpcProtocol */ "../../core/common/lib/esm/rpc/web/WebAppRpcProtocol.js");
|
|
72964
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
72965
|
+
/* harmony import */ var _IModelError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../IModelError */ "../../core/common/lib/esm/IModelError.js");
|
|
72966
|
+
/* harmony import */ var _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/RpcConstants */ "../../core/common/lib/esm/rpc/core/RpcConstants.js");
|
|
72967
|
+
/* harmony import */ var _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/RpcMarshaling */ "../../core/common/lib/esm/rpc/core/RpcMarshaling.js");
|
|
72968
|
+
/* harmony import */ var _core_RpcRequest__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/RpcRequest */ "../../core/common/lib/esm/rpc/core/RpcRequest.js");
|
|
72969
|
+
/* harmony import */ var _multipart_RpcMultipartParser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./multipart/RpcMultipartParser */ "../../core/common/lib/esm/rpc/web/multipart/RpcMultipartParser.js");
|
|
72970
|
+
/* harmony import */ var _RpcMultipart__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RpcMultipart */ "../../core/common/lib/esm/rpc/web/RpcMultipart.js");
|
|
72971
|
+
/* harmony import */ var _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./WebAppRpcProtocol */ "../../core/common/lib/esm/rpc/web/WebAppRpcProtocol.js");
|
|
75826
72972
|
/*---------------------------------------------------------------------------------------------
|
|
75827
72973
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
75828
72974
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -75838,11 +72984,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75838
72984
|
|
|
75839
72985
|
|
|
75840
72986
|
|
|
75841
|
-
|
|
75842
72987
|
/** A web application RPC request.
|
|
75843
72988
|
* @internal
|
|
75844
72989
|
*/
|
|
75845
|
-
class WebAppRpcRequest extends
|
|
72990
|
+
class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_4__["RpcRequest"] {
|
|
75846
72991
|
/** Constructs a web application request. */
|
|
75847
72992
|
constructor(client, operation, parameters) {
|
|
75848
72993
|
super(client, operation, parameters);
|
|
@@ -75885,7 +73030,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
75885
73030
|
method: req.method,
|
|
75886
73031
|
path: req.url,
|
|
75887
73032
|
parameters: operation.encodedRequest ? WebAppRpcRequest.parseFromPath(operation) : await WebAppRpcRequest.parseFromBody(req),
|
|
75888
|
-
caching: operation.encodedRequest ?
|
|
73033
|
+
caching: operation.encodedRequest ? _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcResponseCacheControl"].Immutable : _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcResponseCacheControl"].None,
|
|
75889
73034
|
};
|
|
75890
73035
|
request.ip = req.ip;
|
|
75891
73036
|
request.protocolVersion = 0;
|
|
@@ -75896,20 +73041,20 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
75896
73041
|
}
|
|
75897
73042
|
}
|
|
75898
73043
|
if (!request.id) {
|
|
75899
|
-
throw new
|
|
73044
|
+
throw new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["BentleyStatus"].ERROR, `Invalid request.`);
|
|
75900
73045
|
}
|
|
75901
73046
|
return request;
|
|
75902
73047
|
}
|
|
75903
73048
|
/** Sends the response for a web request. */
|
|
75904
73049
|
static sendResponse(protocol, request, fulfillment, res) {
|
|
75905
73050
|
const transportType = WebAppRpcRequest.computeTransportType(fulfillment.result, fulfillment.rawResult);
|
|
75906
|
-
if (transportType ===
|
|
73051
|
+
if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary) {
|
|
75907
73052
|
WebAppRpcRequest.sendBinary(protocol, request, fulfillment, res);
|
|
75908
73053
|
}
|
|
75909
|
-
else if (transportType ===
|
|
73054
|
+
else if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart) {
|
|
75910
73055
|
WebAppRpcRequest.sendMultipart(protocol, request, fulfillment, res);
|
|
75911
73056
|
}
|
|
75912
|
-
else if (transportType ===
|
|
73057
|
+
else if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Stream) {
|
|
75913
73058
|
WebAppRpcRequest.sendStream(protocol, request, fulfillment, res);
|
|
75914
73059
|
}
|
|
75915
73060
|
else {
|
|
@@ -75919,16 +73064,16 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
75919
73064
|
/** Determines the most efficient transport type for an RPC value. */
|
|
75920
73065
|
static computeTransportType(value, source) {
|
|
75921
73066
|
if (source instanceof Uint8Array || (Array.isArray(source) && source[0] instanceof Uint8Array)) {
|
|
75922
|
-
return
|
|
73067
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary;
|
|
75923
73068
|
}
|
|
75924
73069
|
else if (value.data.length > 0) {
|
|
75925
|
-
return
|
|
73070
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart;
|
|
75926
73071
|
}
|
|
75927
73072
|
else if (value.stream) {
|
|
75928
|
-
return
|
|
73073
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Stream;
|
|
75929
73074
|
}
|
|
75930
73075
|
else {
|
|
75931
|
-
return
|
|
73076
|
+
return _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Text;
|
|
75932
73077
|
}
|
|
75933
73078
|
}
|
|
75934
73079
|
/** @internal */
|
|
@@ -75959,7 +73104,7 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
75959
73104
|
resolve(await this.performFetch());
|
|
75960
73105
|
}
|
|
75961
73106
|
catch (reason) {
|
|
75962
|
-
reject(new
|
|
73107
|
+
reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["ServerError"](-1, typeof (reason) === "string" ? reason : "Server connection error."));
|
|
75963
73108
|
}
|
|
75964
73109
|
});
|
|
75965
73110
|
}
|
|
@@ -75983,10 +73128,10 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
75983
73128
|
}
|
|
75984
73129
|
handleUnknownResponse(code) {
|
|
75985
73130
|
if (this.protocol.isTimeout(code)) {
|
|
75986
|
-
this.reject(new
|
|
73131
|
+
this.reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["ServerTimeoutError"]("Request timeout."));
|
|
75987
73132
|
}
|
|
75988
73133
|
else {
|
|
75989
|
-
this.reject(new
|
|
73134
|
+
this.reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["ServerError"](code, "Unknown server response code."));
|
|
75990
73135
|
}
|
|
75991
73136
|
}
|
|
75992
73137
|
async load() {
|
|
@@ -75996,15 +73141,15 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
75996
73141
|
return;
|
|
75997
73142
|
const response = this._response;
|
|
75998
73143
|
if (!response) {
|
|
75999
|
-
reject(new
|
|
73144
|
+
reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["IModelError"](_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_0__["BentleyStatus"].ERROR, "Invalid state."));
|
|
76000
73145
|
return;
|
|
76001
73146
|
}
|
|
76002
|
-
const contentType = response.headers.get(
|
|
76003
|
-
const responseType =
|
|
76004
|
-
if (responseType ===
|
|
73147
|
+
const contentType = response.headers.get(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT);
|
|
73148
|
+
const responseType = _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_7__["WebAppRpcProtocol"].computeContentType(contentType);
|
|
73149
|
+
if (responseType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary) {
|
|
76005
73150
|
resolve(await this.loadBinary(response));
|
|
76006
73151
|
}
|
|
76007
|
-
else if (responseType ===
|
|
73152
|
+
else if (responseType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart) {
|
|
76008
73153
|
resolve(await this.loadMultipart(response, contentType));
|
|
76009
73154
|
}
|
|
76010
73155
|
else {
|
|
@@ -76012,13 +73157,13 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76012
73157
|
}
|
|
76013
73158
|
this._loading = false;
|
|
76014
73159
|
this.setLastUpdatedTime();
|
|
76015
|
-
this.protocol.events.raiseEvent(
|
|
73160
|
+
this.protocol.events.raiseEvent(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcProtocolEvent"].ResponseLoaded, this);
|
|
76016
73161
|
}
|
|
76017
73162
|
catch (reason) {
|
|
76018
73163
|
if (!this._loading)
|
|
76019
73164
|
return;
|
|
76020
73165
|
this._loading = false;
|
|
76021
|
-
reject(new
|
|
73166
|
+
reject(new _IModelError__WEBPACK_IMPORTED_MODULE_1__["ServerError"](this.metadata.status, typeof (reason) === "string" ? reason : "Unknown server response error."));
|
|
76022
73167
|
}
|
|
76023
73168
|
});
|
|
76024
73169
|
}
|
|
@@ -76031,8 +73176,8 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76031
73176
|
return Request;
|
|
76032
73177
|
}
|
|
76033
73178
|
static configureResponse(protocol, request, fulfillment, res) {
|
|
76034
|
-
const success = protocol.getStatus(fulfillment.status) ===
|
|
76035
|
-
if (success && request.caching ===
|
|
73179
|
+
const success = protocol.getStatus(fulfillment.status) === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcRequestStatus"].Resolved;
|
|
73180
|
+
if (success && request.caching === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcResponseCacheControl"].Immutable) {
|
|
76036
73181
|
res.set("Cache-Control", "private, max-age=31536000, immutable");
|
|
76037
73182
|
}
|
|
76038
73183
|
if (fulfillment.retry) {
|
|
@@ -76041,19 +73186,19 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76041
73186
|
}
|
|
76042
73187
|
static sendText(protocol, request, fulfillment, res) {
|
|
76043
73188
|
const response = (fulfillment.status === 204) ? "" : fulfillment.result.objects;
|
|
76044
|
-
res.set(
|
|
73189
|
+
res.set(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT, _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].TEXT);
|
|
76045
73190
|
WebAppRpcRequest.configureResponse(protocol, request, fulfillment, res);
|
|
76046
73191
|
res.status(fulfillment.status).send(response);
|
|
76047
73192
|
}
|
|
76048
73193
|
static sendBinary(protocol, request, fulfillment, res) {
|
|
76049
73194
|
const data = fulfillment.result.data[0];
|
|
76050
73195
|
const response = Buffer.isBuffer(data) ? data : Buffer.from(data);
|
|
76051
|
-
res.set(
|
|
73196
|
+
res.set(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT, _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].BINARY);
|
|
76052
73197
|
WebAppRpcRequest.configureResponse(protocol, request, fulfillment, res);
|
|
76053
73198
|
res.status(fulfillment.status).send(response);
|
|
76054
73199
|
}
|
|
76055
73200
|
static sendMultipart(protocol, request, fulfillment, res) {
|
|
76056
|
-
const response =
|
|
73201
|
+
const response = _RpcMultipart__WEBPACK_IMPORTED_MODULE_6__["RpcMultipart"].createStream(fulfillment.result);
|
|
76057
73202
|
const headers = response.getHeaders();
|
|
76058
73203
|
for (const header in headers) {
|
|
76059
73204
|
if (headers.hasOwnProperty(header)) {
|
|
@@ -76072,20 +73217,20 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76072
73217
|
}
|
|
76073
73218
|
static parseFromPath(operation) {
|
|
76074
73219
|
const decoded = operation.encodedRequest ? Buffer.from(operation.encodedRequest, "base64").toString("binary") : "";
|
|
76075
|
-
return
|
|
73220
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(decoded);
|
|
76076
73221
|
}
|
|
76077
73222
|
static async parseFromBody(req) {
|
|
76078
|
-
const contentType =
|
|
76079
|
-
if (contentType ===
|
|
76080
|
-
const objects = JSON.stringify([
|
|
73223
|
+
const contentType = _WebAppRpcProtocol__WEBPACK_IMPORTED_MODULE_7__["WebAppRpcProtocol"].computeContentType(req.header(_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT));
|
|
73224
|
+
if (contentType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary) {
|
|
73225
|
+
const objects = JSON.stringify([_core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["MarshalingBinaryMarker"].createDefault()]);
|
|
76081
73226
|
const data = [req.body];
|
|
76082
|
-
return
|
|
73227
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(objects, data);
|
|
76083
73228
|
}
|
|
76084
|
-
else if (contentType ===
|
|
76085
|
-
return
|
|
73229
|
+
else if (contentType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart) {
|
|
73230
|
+
return _RpcMultipart__WEBPACK_IMPORTED_MODULE_6__["RpcMultipart"].parseRequest(req);
|
|
76086
73231
|
}
|
|
76087
73232
|
else {
|
|
76088
|
-
return
|
|
73233
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(req.body);
|
|
76089
73234
|
}
|
|
76090
73235
|
}
|
|
76091
73236
|
async performFetch() {
|
|
@@ -76106,16 +73251,16 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76106
73251
|
async loadText(response) {
|
|
76107
73252
|
const value = await response.text();
|
|
76108
73253
|
this.metadata.message = value;
|
|
76109
|
-
return
|
|
73254
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(value);
|
|
76110
73255
|
}
|
|
76111
73256
|
async loadBinary(response) {
|
|
76112
73257
|
const value = new Uint8Array(await response.arrayBuffer());
|
|
76113
|
-
const objects = JSON.stringify(
|
|
76114
|
-
return
|
|
73258
|
+
const objects = JSON.stringify(_core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["MarshalingBinaryMarker"].createDefault());
|
|
73259
|
+
return _core_RpcMarshaling__WEBPACK_IMPORTED_MODULE_3__["RpcSerializedValue"].create(objects, [value]);
|
|
76115
73260
|
}
|
|
76116
73261
|
async loadMultipart(response, contentType) {
|
|
76117
73262
|
const data = await response.arrayBuffer();
|
|
76118
|
-
const value = new
|
|
73263
|
+
const value = new _multipart_RpcMultipartParser__WEBPACK_IMPORTED_MODULE_5__["RpcMultipartParser"](contentType, Buffer.from(data)).parse();
|
|
76119
73264
|
return value;
|
|
76120
73265
|
}
|
|
76121
73266
|
async setupTransport() {
|
|
@@ -76124,10 +73269,10 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76124
73269
|
}
|
|
76125
73270
|
const parameters = (await this.protocol.serialize(this)).parameters;
|
|
76126
73271
|
const transportType = WebAppRpcRequest.computeTransportType(parameters, this.parameters);
|
|
76127
|
-
if (transportType ===
|
|
73272
|
+
if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Binary) {
|
|
76128
73273
|
this.setupBinaryTransport(parameters);
|
|
76129
73274
|
}
|
|
76130
|
-
else if (transportType ===
|
|
73275
|
+
else if (transportType === _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["RpcContentType"].Multipart) {
|
|
76131
73276
|
this.setupMultipartTransport(parameters);
|
|
76132
73277
|
}
|
|
76133
73278
|
else {
|
|
@@ -76135,15 +73280,15 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76135
73280
|
}
|
|
76136
73281
|
}
|
|
76137
73282
|
setupBinaryTransport(parameters) {
|
|
76138
|
-
this._headers[
|
|
73283
|
+
this._headers[_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT] = _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].BINARY;
|
|
76139
73284
|
this._request.method = "post";
|
|
76140
73285
|
this._request.body = parameters.data[0];
|
|
76141
73286
|
}
|
|
76142
73287
|
setupMultipartTransport(parameters) {
|
|
76143
73288
|
// IMPORTANT: do not set a multipart Content-Type header value. The browser does this automatically!
|
|
76144
|
-
delete this._headers[
|
|
73289
|
+
delete this._headers[_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT];
|
|
76145
73290
|
this._request.method = "post";
|
|
76146
|
-
this._request.body =
|
|
73291
|
+
this._request.body = _RpcMultipart__WEBPACK_IMPORTED_MODULE_6__["RpcMultipart"].createForm(parameters);
|
|
76147
73292
|
}
|
|
76148
73293
|
setupTextTransport(parameters) {
|
|
76149
73294
|
if (this.operation.policy.allowResponseCaching(this)) {
|
|
@@ -76151,13 +73296,13 @@ class WebAppRpcRequest extends _core_RpcRequest__WEBPACK_IMPORTED_MODULE_5__["Rp
|
|
|
76151
73296
|
if (encodedBody.length <= WebAppRpcRequest.maxUrlComponentSize) {
|
|
76152
73297
|
this._request.method = "get";
|
|
76153
73298
|
this._request.body = undefined;
|
|
76154
|
-
delete this._headers[
|
|
73299
|
+
delete this._headers[_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT];
|
|
76155
73300
|
this._pathSuffix = encodedBody;
|
|
76156
73301
|
return;
|
|
76157
73302
|
}
|
|
76158
73303
|
}
|
|
76159
73304
|
this._pathSuffix = "";
|
|
76160
|
-
this._headers[
|
|
73305
|
+
this._headers[_core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].CONTENT] = _core_RpcConstants__WEBPACK_IMPORTED_MODULE_2__["WEB_RPC_CONSTANTS"].TEXT;
|
|
76161
73306
|
this._request.method = "post";
|
|
76162
73307
|
this._request.body = parameters.objects;
|
|
76163
73308
|
}
|
|
@@ -153210,10 +150355,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
153210
150355
|
/* harmony import */ var _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @itwin/core-geometry */ "../../core/geometry/lib/esm/core-geometry.js");
|
|
153211
150356
|
/* harmony import */ var _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @itwin/core-orbitgt */ "../../core/orbitgt/lib/esm/core-orbitgt.js");
|
|
153212
150357
|
/* harmony import */ var _FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../FrontendLoggerCategory */ "../../core/frontend/lib/esm/FrontendLoggerCategory.js");
|
|
153213
|
-
/* harmony import */ var
|
|
153214
|
-
/* harmony import */ var
|
|
153215
|
-
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
153216
|
-
/* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
|
|
150358
|
+
/* harmony import */ var _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @itwin/core-bentley */ "../../core/bentley/lib/esm/core-bentley.js");
|
|
150359
|
+
/* harmony import */ var _RealityDataSource__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../RealityDataSource */ "../../core/frontend/lib/esm/RealityDataSource.js");
|
|
153217
150360
|
/*---------------------------------------------------------------------------------------------
|
|
153218
150361
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
153219
150362
|
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
@@ -153224,7 +150367,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
153224
150367
|
|
|
153225
150368
|
|
|
153226
150369
|
|
|
153227
|
-
|
|
153228
150370
|
const loggerCategory = _FrontendLoggerCategory__WEBPACK_IMPORTED_MODULE_3__["FrontendLoggerCategory"].RealityData;
|
|
153229
150371
|
/**
|
|
153230
150372
|
* This class provide methods used to interpret Orbit Point Cloud (OPC) format
|
|
@@ -153238,7 +150380,7 @@ class OPCFormatInterpreter {
|
|
|
153238
150380
|
*/
|
|
153239
150381
|
static async getFileReaderFromBlobFileURL(blobFileURL) {
|
|
153240
150382
|
if (_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["Downloader"].INSTANCE == null)
|
|
153241
|
-
_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["Downloader"].INSTANCE = new
|
|
150383
|
+
_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["Downloader"].INSTANCE = new _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["DownloaderXhr"]();
|
|
153242
150384
|
if (_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["CRSManager"].ENGINE == null)
|
|
153243
150385
|
_itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["CRSManager"].ENGINE = await _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["OnlineEngine"].create();
|
|
153244
150386
|
// let blobFileURL: string = rdUrl;
|
|
@@ -153246,7 +150388,7 @@ class OPCFormatInterpreter {
|
|
|
153246
150388
|
const urlFS = new _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["UrlFS"]();
|
|
153247
150389
|
// wrap a caching layer (16 MB) around the blob file
|
|
153248
150390
|
const blobFileSize = await urlFS.getFileLength(blobFileURL);
|
|
153249
|
-
|
|
150391
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["Logger"].logTrace(loggerCategory, `OPC File Size is ${blobFileSize}`);
|
|
153250
150392
|
const blobFile = new _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["PageCachedFile"](urlFS, blobFileURL, blobFileSize, 128 * 1024 /* pageSize */, 128 /* maxPageCount */);
|
|
153251
150393
|
const fileReader = await _itwin_core_orbitgt__WEBPACK_IMPORTED_MODULE_2__["OPCReader"].openFile(blobFile, blobFileURL, true /* lazyLoading */);
|
|
153252
150394
|
return fileReader;
|
|
@@ -153283,10 +150425,10 @@ class OPCFormatInterpreter {
|
|
|
153283
150425
|
isGeolocated = true;
|
|
153284
150426
|
}
|
|
153285
150427
|
catch (e) {
|
|
153286
|
-
|
|
153287
|
-
const errorProps =
|
|
150428
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["Logger"].logWarning(loggerCategory, `Error getSpatialLocationAndExtents - cannot interpret point cloud`);
|
|
150429
|
+
const errorProps = _itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["BentleyError"].getErrorProps(e);
|
|
153288
150430
|
const getMetaData = () => { return { errorProps }; };
|
|
153289
|
-
const error = new
|
|
150431
|
+
const error = new _RealityDataSource__WEBPACK_IMPORTED_MODULE_5__["RealityDataError"](_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["RealityDataStatus"].InvalidData, "Invalid or unknown data", getMetaData);
|
|
153290
150432
|
throw error;
|
|
153291
150433
|
}
|
|
153292
150434
|
}
|
|
@@ -153295,7 +150437,7 @@ class OPCFormatInterpreter {
|
|
|
153295
150437
|
isGeolocated = false;
|
|
153296
150438
|
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 } });
|
|
153297
150439
|
location = centerOfEarth;
|
|
153298
|
-
|
|
150440
|
+
_itwin_core_bentley__WEBPACK_IMPORTED_MODULE_4__["Logger"].logTrace(loggerCategory, "OPC RealityData NOT Geolocated", () => ({ ...location }));
|
|
153299
150441
|
}
|
|
153300
150442
|
const spatialLocation = { location, worldRange, isGeolocated };
|
|
153301
150443
|
return spatialLocation;
|
|
@@ -179599,7 +176741,7 @@ SetupWalkCameraTool.iconSpec = "icon-camera-location";
|
|
|
179599
176741
|
/*! exports provided: name, version, description, main, module, typings, imodeljsSharedLibrary, license, scripts, repository, keywords, author, peerDependencies, //devDependencies, devDependencies, //dependencies, dependencies, nyc, eslintConfig, default */
|
|
179600
176742
|
/***/ (function(module) {
|
|
179601
176743
|
|
|
179602
|
-
module.exports = JSON.parse("{\"name\":\"@itwin/core-frontend\",\"version\":\"3.2.0-dev.
|
|
176744
|
+
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\"}}]}}");
|
|
179603
176745
|
|
|
179604
176746
|
/***/ }),
|
|
179605
176747
|
|
|
@@ -258142,457 +255284,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
258142
255284
|
*/
|
|
258143
255285
|
|
|
258144
255286
|
|
|
258145
|
-
/***/ }),
|
|
258146
|
-
|
|
258147
|
-
/***/ "../../core/orbitgt/lib/cjs/system/buffer/ABuffer.js":
|
|
258148
|
-
/*!*******************************************************************!*\
|
|
258149
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/buffer/ABuffer.js ***!
|
|
258150
|
-
\*******************************************************************/
|
|
258151
|
-
/*! no static exports found */
|
|
258152
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
258153
|
-
|
|
258154
|
-
"use strict";
|
|
258155
|
-
|
|
258156
|
-
/*---------------------------------------------------------------------------------------------
|
|
258157
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
258158
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
258159
|
-
*--------------------------------------------------------------------------------------------*/
|
|
258160
|
-
/** @packageDocumentation
|
|
258161
|
-
* @module OrbitGT
|
|
258162
|
-
*/
|
|
258163
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
258164
|
-
exports.ABuffer = void 0;
|
|
258165
|
-
/**
|
|
258166
|
-
* Class ABuffer defines a raw byte buffer.
|
|
258167
|
-
*/
|
|
258168
|
-
/** @internal */
|
|
258169
|
-
class ABuffer {
|
|
258170
|
-
/**
|
|
258171
|
-
* Create a new buffer.
|
|
258172
|
-
*/
|
|
258173
|
-
constructor(size) {
|
|
258174
|
-
this._content = (size < 0) ? null : new ArrayBuffer(size);
|
|
258175
|
-
this._contentBytes = (size < 0) ? null : new Uint8Array(this._content);
|
|
258176
|
-
}
|
|
258177
|
-
/**
|
|
258178
|
-
* Wrap an existing buffer.
|
|
258179
|
-
*/
|
|
258180
|
-
static wrap(buffer) {
|
|
258181
|
-
let wrapper = new ABuffer(-1);
|
|
258182
|
-
wrapper._content = buffer;
|
|
258183
|
-
wrapper._contentBytes = new Uint8Array(wrapper._content);
|
|
258184
|
-
return wrapper;
|
|
258185
|
-
}
|
|
258186
|
-
/**
|
|
258187
|
-
* Wrap an existing buffer.
|
|
258188
|
-
*/
|
|
258189
|
-
static wrapRange(buffer, offset, size) {
|
|
258190
|
-
/* The whole buffer? */
|
|
258191
|
-
if ((offset == 0) && (size == buffer.byteLength))
|
|
258192
|
-
return ABuffer.wrap(buffer);
|
|
258193
|
-
/* Copy the range */
|
|
258194
|
-
let original = ABuffer.wrap(buffer);
|
|
258195
|
-
let wrapper = new ABuffer(size);
|
|
258196
|
-
ABuffer.arrayCopy(original, offset, wrapper, 0, size);
|
|
258197
|
-
return wrapper;
|
|
258198
|
-
}
|
|
258199
|
-
/**
|
|
258200
|
-
* Return the content as a native buffer
|
|
258201
|
-
*/
|
|
258202
|
-
toNativeBuffer() {
|
|
258203
|
-
return this._content;
|
|
258204
|
-
}
|
|
258205
|
-
/**
|
|
258206
|
-
* Get the size of the buffer.
|
|
258207
|
-
*/
|
|
258208
|
-
size() {
|
|
258209
|
-
return this._contentBytes.byteLength;
|
|
258210
|
-
}
|
|
258211
|
-
/**
|
|
258212
|
-
* Get a byte (0..255).
|
|
258213
|
-
*/
|
|
258214
|
-
get(index) {
|
|
258215
|
-
return this._contentBytes[index];
|
|
258216
|
-
}
|
|
258217
|
-
/**
|
|
258218
|
-
* Set a byte.
|
|
258219
|
-
*/
|
|
258220
|
-
set(index, value) {
|
|
258221
|
-
this._contentBytes[index] = value;
|
|
258222
|
-
}
|
|
258223
|
-
/**
|
|
258224
|
-
* Slice a part of the buffer.
|
|
258225
|
-
*/
|
|
258226
|
-
slice(begin, end) {
|
|
258227
|
-
if (begin < 0)
|
|
258228
|
-
begin += this._content.byteLength;
|
|
258229
|
-
if (end < 0)
|
|
258230
|
-
end += this._content.byteLength;
|
|
258231
|
-
let result = new ABuffer(end - begin);
|
|
258232
|
-
for (let i = 0; i < result._content.byteLength; i++)
|
|
258233
|
-
result.set(i, this.get(begin + i));
|
|
258234
|
-
return result;
|
|
258235
|
-
}
|
|
258236
|
-
/**
|
|
258237
|
-
* Copy data from a source to a target buffer.
|
|
258238
|
-
*/
|
|
258239
|
-
static arrayCopy(source, sourceIndex, target, targetIndex, count) {
|
|
258240
|
-
for (let i = 0; i < count; i++)
|
|
258241
|
-
target.set(targetIndex++, source.get(sourceIndex++));
|
|
258242
|
-
}
|
|
258243
|
-
}
|
|
258244
|
-
exports.ABuffer = ABuffer;
|
|
258245
|
-
|
|
258246
|
-
|
|
258247
|
-
/***/ }),
|
|
258248
|
-
|
|
258249
|
-
/***/ "../../core/orbitgt/lib/cjs/system/collection/AList.js":
|
|
258250
|
-
/*!*********************************************************************!*\
|
|
258251
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/collection/AList.js ***!
|
|
258252
|
-
\*********************************************************************/
|
|
258253
|
-
/*! no static exports found */
|
|
258254
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
258255
|
-
|
|
258256
|
-
"use strict";
|
|
258257
|
-
|
|
258258
|
-
/*---------------------------------------------------------------------------------------------
|
|
258259
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
258260
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
258261
|
-
*--------------------------------------------------------------------------------------------*/
|
|
258262
|
-
/** @packageDocumentation
|
|
258263
|
-
* @module OrbitGT
|
|
258264
|
-
*/
|
|
258265
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
258266
|
-
exports.AList = void 0;
|
|
258267
|
-
/**
|
|
258268
|
-
* Class AList defines a typed list of elements.
|
|
258269
|
-
*/
|
|
258270
|
-
/** @internal */
|
|
258271
|
-
class AList {
|
|
258272
|
-
constructor(capacity = 10) {
|
|
258273
|
-
this._elements = [];
|
|
258274
|
-
}
|
|
258275
|
-
size() {
|
|
258276
|
-
return this._elements.length;
|
|
258277
|
-
}
|
|
258278
|
-
add(element) {
|
|
258279
|
-
this._elements.push(element);
|
|
258280
|
-
}
|
|
258281
|
-
addAt(index, element) {
|
|
258282
|
-
this._elements.splice(index, 0, element);
|
|
258283
|
-
}
|
|
258284
|
-
remove(index) {
|
|
258285
|
-
this._elements.splice(index, 1);
|
|
258286
|
-
}
|
|
258287
|
-
get(index) {
|
|
258288
|
-
return this._elements[index];
|
|
258289
|
-
}
|
|
258290
|
-
indexOf(element) {
|
|
258291
|
-
for (let i = 0; i < this._elements.length; i++)
|
|
258292
|
-
if (this._elements[i] === element)
|
|
258293
|
-
return i;
|
|
258294
|
-
return -1;
|
|
258295
|
-
}
|
|
258296
|
-
contains(element) {
|
|
258297
|
-
return (this.indexOf(element) >= 0);
|
|
258298
|
-
}
|
|
258299
|
-
clear() {
|
|
258300
|
-
this._elements.splice(0, this._elements.length);
|
|
258301
|
-
}
|
|
258302
|
-
sort(comparator) {
|
|
258303
|
-
this._elements.sort(function (o1, o2) { return comparator.compare(o1, o2); });
|
|
258304
|
-
}
|
|
258305
|
-
toArray(holder) {
|
|
258306
|
-
return this._elements;
|
|
258307
|
-
}
|
|
258308
|
-
/**
|
|
258309
|
-
* Get an iterator to use in "for of" loops.
|
|
258310
|
-
*/
|
|
258311
|
-
[Symbol.iterator]() {
|
|
258312
|
-
let iteratorList = this._elements;
|
|
258313
|
-
let index = 0;
|
|
258314
|
-
return {
|
|
258315
|
-
next() {
|
|
258316
|
-
if (index < iteratorList.length) {
|
|
258317
|
-
return { done: false, value: iteratorList[index++] };
|
|
258318
|
-
}
|
|
258319
|
-
else {
|
|
258320
|
-
return { done: true, value: null };
|
|
258321
|
-
}
|
|
258322
|
-
}
|
|
258323
|
-
};
|
|
258324
|
-
}
|
|
258325
|
-
}
|
|
258326
|
-
exports.AList = AList;
|
|
258327
|
-
|
|
258328
|
-
|
|
258329
|
-
/***/ }),
|
|
258330
|
-
|
|
258331
|
-
/***/ "../../core/orbitgt/lib/cjs/system/collection/StringMap.js":
|
|
258332
|
-
/*!*************************************************************************!*\
|
|
258333
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/collection/StringMap.js ***!
|
|
258334
|
-
\*************************************************************************/
|
|
258335
|
-
/*! no static exports found */
|
|
258336
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
258337
|
-
|
|
258338
|
-
"use strict";
|
|
258339
|
-
|
|
258340
|
-
/*---------------------------------------------------------------------------------------------
|
|
258341
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
258342
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
258343
|
-
*--------------------------------------------------------------------------------------------*/
|
|
258344
|
-
/** @packageDocumentation
|
|
258345
|
-
* @module OrbitGT
|
|
258346
|
-
*/
|
|
258347
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
258348
|
-
exports.StringMap = void 0;
|
|
258349
|
-
const AList_1 = __webpack_require__(/*! ./AList */ "../../core/orbitgt/lib/cjs/system/collection/AList.js");
|
|
258350
|
-
/**
|
|
258351
|
-
* Class StringMap defines a map of elements in which the keys are strings.
|
|
258352
|
-
*/
|
|
258353
|
-
/** @internal */
|
|
258354
|
-
class StringMap {
|
|
258355
|
-
constructor() {
|
|
258356
|
-
this._map = new Map();
|
|
258357
|
-
}
|
|
258358
|
-
size() {
|
|
258359
|
-
return this._map.size;
|
|
258360
|
-
}
|
|
258361
|
-
contains(key) {
|
|
258362
|
-
return this._map.has(key);
|
|
258363
|
-
}
|
|
258364
|
-
containsKey(key) {
|
|
258365
|
-
return this._map.has(key);
|
|
258366
|
-
}
|
|
258367
|
-
get(key) {
|
|
258368
|
-
return this._map.get(key);
|
|
258369
|
-
}
|
|
258370
|
-
set(key, value) {
|
|
258371
|
-
this._map.set(key, value);
|
|
258372
|
-
}
|
|
258373
|
-
put(key, value) {
|
|
258374
|
-
this._map.set(key, value);
|
|
258375
|
-
}
|
|
258376
|
-
remove(key) {
|
|
258377
|
-
this._map.delete(key);
|
|
258378
|
-
}
|
|
258379
|
-
clear() {
|
|
258380
|
-
this._map.clear();
|
|
258381
|
-
}
|
|
258382
|
-
keysArray() {
|
|
258383
|
-
return Array.from(this._map.keys());
|
|
258384
|
-
}
|
|
258385
|
-
keys() {
|
|
258386
|
-
let keys = new AList_1.AList();
|
|
258387
|
-
for (let key of this._map.keys())
|
|
258388
|
-
keys.add(key);
|
|
258389
|
-
return keys;
|
|
258390
|
-
}
|
|
258391
|
-
valuesArray() {
|
|
258392
|
-
return Array.from(this._map.values());
|
|
258393
|
-
}
|
|
258394
|
-
values() {
|
|
258395
|
-
let values = new AList_1.AList();
|
|
258396
|
-
for (let value of this._map.values())
|
|
258397
|
-
values.add(value);
|
|
258398
|
-
return values;
|
|
258399
|
-
}
|
|
258400
|
-
}
|
|
258401
|
-
exports.StringMap = StringMap;
|
|
258402
|
-
|
|
258403
|
-
|
|
258404
|
-
/***/ }),
|
|
258405
|
-
|
|
258406
|
-
/***/ "../../core/orbitgt/lib/cjs/system/runtime/Downloader.js":
|
|
258407
|
-
/*!***********************************************************************!*\
|
|
258408
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/runtime/Downloader.js ***!
|
|
258409
|
-
\***********************************************************************/
|
|
258410
|
-
/*! no static exports found */
|
|
258411
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
258412
|
-
|
|
258413
|
-
"use strict";
|
|
258414
|
-
|
|
258415
|
-
/*---------------------------------------------------------------------------------------------
|
|
258416
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
258417
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
258418
|
-
*--------------------------------------------------------------------------------------------*/
|
|
258419
|
-
/** @packageDocumentation
|
|
258420
|
-
* @module OrbitGT
|
|
258421
|
-
*/
|
|
258422
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
258423
|
-
exports.Downloader = void 0;
|
|
258424
|
-
/**
|
|
258425
|
-
* Class Downloader defines a platform independant download tool.
|
|
258426
|
-
*/
|
|
258427
|
-
/** @internal */
|
|
258428
|
-
class Downloader {
|
|
258429
|
-
// create a new downloader
|
|
258430
|
-
//
|
|
258431
|
-
constructor() {
|
|
258432
|
-
}
|
|
258433
|
-
// download a byte array
|
|
258434
|
-
//
|
|
258435
|
-
async downloadBytes(method, requestURL, requestHeaders, postText, postData, responseHeaders) {
|
|
258436
|
-
return null;
|
|
258437
|
-
}
|
|
258438
|
-
// download a text
|
|
258439
|
-
//
|
|
258440
|
-
async downloadText(method, requestURL, requestHeaders, postText, postData, responseHeaders) {
|
|
258441
|
-
return null;
|
|
258442
|
-
}
|
|
258443
|
-
// download a text without request options
|
|
258444
|
-
//
|
|
258445
|
-
async downloadText2(requestURL) {
|
|
258446
|
-
return null;
|
|
258447
|
-
}
|
|
258448
|
-
}
|
|
258449
|
-
exports.Downloader = Downloader;
|
|
258450
|
-
/** The default instance of this tool for this runtime. This needs to be set by the host application on startup. */
|
|
258451
|
-
Downloader.INSTANCE = null;
|
|
258452
|
-
|
|
258453
|
-
|
|
258454
|
-
/***/ }),
|
|
258455
|
-
|
|
258456
|
-
/***/ "../../core/orbitgt/lib/cjs/system/runtime/DownloaderNode.js":
|
|
258457
|
-
/*!***************************************************************************!*\
|
|
258458
|
-
!*** D:/vsts_b/6/s/core/orbitgt/lib/cjs/system/runtime/DownloaderNode.js ***!
|
|
258459
|
-
\***************************************************************************/
|
|
258460
|
-
/*! no static exports found */
|
|
258461
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
258462
|
-
|
|
258463
|
-
"use strict";
|
|
258464
|
-
/* WEBPACK VAR INJECTION */(function(Buffer) {
|
|
258465
|
-
/*---------------------------------------------------------------------------------------------
|
|
258466
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
258467
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
258468
|
-
*--------------------------------------------------------------------------------------------*/
|
|
258469
|
-
/** @packageDocumentation
|
|
258470
|
-
* @module OrbitGT
|
|
258471
|
-
*/
|
|
258472
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
258473
|
-
exports.DownloaderNode = void 0;
|
|
258474
|
-
const http = __webpack_require__(/*! http */ "../../common/temp/node_modules/.pnpm/stream-http@2.8.3/node_modules/stream-http/index.js");
|
|
258475
|
-
const https = __webpack_require__(/*! https */ "../../common/temp/node_modules/.pnpm/https-browserify@1.0.0/node_modules/https-browserify/index.js");
|
|
258476
|
-
const ABuffer_1 = __webpack_require__(/*! ../buffer/ABuffer */ "../../core/orbitgt/lib/cjs/system/buffer/ABuffer.js");
|
|
258477
|
-
const StringMap_1 = __webpack_require__(/*! ../collection/StringMap */ "../../core/orbitgt/lib/cjs/system/collection/StringMap.js");
|
|
258478
|
-
const Downloader_1 = __webpack_require__(/*! ./Downloader */ "../../core/orbitgt/lib/cjs/system/runtime/Downloader.js");
|
|
258479
|
-
/**
|
|
258480
|
-
* Class DownloaderNode implements a downloader using the Node platform.
|
|
258481
|
-
*/
|
|
258482
|
-
/** @internal */
|
|
258483
|
-
class DownloaderNode extends Downloader_1.Downloader {
|
|
258484
|
-
// create a new downloader
|
|
258485
|
-
//
|
|
258486
|
-
constructor() {
|
|
258487
|
-
super();
|
|
258488
|
-
}
|
|
258489
|
-
// join the downloaded chunks into the requested response type
|
|
258490
|
-
//
|
|
258491
|
-
static joinChunks(buffers, responseType) {
|
|
258492
|
-
//console.log("joining "+buffers.length+" downloaded chunks to type '"+responseType+"'");
|
|
258493
|
-
let joined = Buffer.concat(buffers);
|
|
258494
|
-
if (responseType === "text")
|
|
258495
|
-
return joined.toString('utf8');
|
|
258496
|
-
return ABuffer_1.ABuffer.wrapRange(joined.buffer, joined.byteOffset, joined.length);
|
|
258497
|
-
}
|
|
258498
|
-
// make a generic download
|
|
258499
|
-
//
|
|
258500
|
-
download0(method, requestURL, responseType, requestHeaders, postText, postData, responseHeaders, callback, errorCallback) {
|
|
258501
|
-
// set the defaults
|
|
258502
|
-
if (method == null)
|
|
258503
|
-
method = "GET";
|
|
258504
|
-
if (requestHeaders == null)
|
|
258505
|
-
requestHeaders = new StringMap_1.StringMap();
|
|
258506
|
-
// set the options
|
|
258507
|
-
//console.log("connect method '"+method+"' to '"+requestURL+"'");
|
|
258508
|
-
let options = {};
|
|
258509
|
-
options["method"] = method;
|
|
258510
|
-
// set the URL
|
|
258511
|
-
let url = new URL(requestURL);
|
|
258512
|
-
options["protocol"] = url.protocol;
|
|
258513
|
-
options["host"] = url.hostname;
|
|
258514
|
-
options["port"] = url.port;
|
|
258515
|
-
options["path"] = url.pathname + url.search;
|
|
258516
|
-
// set the request headers
|
|
258517
|
-
if (requestHeaders.size() > 0) {
|
|
258518
|
-
// create the headers object
|
|
258519
|
-
//console.log("adding request headers");
|
|
258520
|
-
let headers = {};
|
|
258521
|
-
options["headers"] = headers;
|
|
258522
|
-
// add the header lines
|
|
258523
|
-
for (let headerName of requestHeaders.keys()) {
|
|
258524
|
-
let headerValue = requestHeaders.get(headerName);
|
|
258525
|
-
//console.log("setting request header '"+headerName+"' value '"+headerValue+"'");
|
|
258526
|
-
headers[headerName] = headerValue;
|
|
258527
|
-
}
|
|
258528
|
-
}
|
|
258529
|
-
// make the request
|
|
258530
|
-
let request;
|
|
258531
|
-
if (url.protocol === "http:")
|
|
258532
|
-
request = http.request(options, (response) => {
|
|
258533
|
-
//console.log("download '"+requestURL+"' response code: "+response.statusCode);
|
|
258534
|
-
if (responseHeaders != null) {
|
|
258535
|
-
for (let propertyName in response.headers) {
|
|
258536
|
-
if (typeof response.headers[propertyName] === "string")
|
|
258537
|
-
responseHeaders.set(propertyName, response.headers[propertyName]);
|
|
258538
|
-
}
|
|
258539
|
-
}
|
|
258540
|
-
// process the incoming download chuncks
|
|
258541
|
-
let chunks = [];
|
|
258542
|
-
response.on("data", data => { chunks.push(data); });
|
|
258543
|
-
response.on("end", () => { callback(DownloaderNode.joinChunks(chunks, responseType)); });
|
|
258544
|
-
response.on("error", () => { errorCallback("error when downloading '" + requestURL + "'"); });
|
|
258545
|
-
});
|
|
258546
|
-
else
|
|
258547
|
-
request = https.request(options, (response) => {
|
|
258548
|
-
//console.log("download '"+requestURL+"' response code: "+response.statusCode);
|
|
258549
|
-
if (responseHeaders != null) {
|
|
258550
|
-
for (let propertyName in response.headers) {
|
|
258551
|
-
if (typeof response.headers[propertyName] === "string")
|
|
258552
|
-
responseHeaders.set(propertyName, response.headers[propertyName]);
|
|
258553
|
-
}
|
|
258554
|
-
}
|
|
258555
|
-
// process the incoming download chuncks
|
|
258556
|
-
let chunks = [];
|
|
258557
|
-
response.on("data", data => { chunks.push(data); });
|
|
258558
|
-
response.on("end", () => { callback(DownloaderNode.joinChunks(chunks, responseType)); });
|
|
258559
|
-
response.on("error", () => { errorCallback("error when downloading '" + requestURL + "'"); });
|
|
258560
|
-
});
|
|
258561
|
-
// post text?
|
|
258562
|
-
if (postText != null) {
|
|
258563
|
-
// send the request to the server
|
|
258564
|
-
//console.log("posting text '"+postText+"'");
|
|
258565
|
-
request.write(postText); // encoding argument is optional, defaults to 'utf8'
|
|
258566
|
-
}
|
|
258567
|
-
// post data?
|
|
258568
|
-
else if (postData != null) {
|
|
258569
|
-
// send the request to the server
|
|
258570
|
-
//console.log("posting binary data, size "+postData.size());
|
|
258571
|
-
request.write(Buffer.from(postData.toNativeBuffer()));
|
|
258572
|
-
}
|
|
258573
|
-
// send the request
|
|
258574
|
-
request.end();
|
|
258575
|
-
}
|
|
258576
|
-
// Downloader base class method override
|
|
258577
|
-
//
|
|
258578
|
-
async downloadBytes(method, requestURL, requestHeaders, postText, postData, responseHeaders) {
|
|
258579
|
-
return new Promise((resolve, reject) => { this.download0(method, requestURL, "arraybuffer" /*responseType*/, requestHeaders, postText, postData, responseHeaders, resolve, reject); });
|
|
258580
|
-
}
|
|
258581
|
-
// Downloader base class method override
|
|
258582
|
-
//
|
|
258583
|
-
async downloadText(method, requestURL, requestHeaders, postText, postData, responseHeaders) {
|
|
258584
|
-
return new Promise((resolve, reject) => { this.download0(method, requestURL, "text" /*responseType*/, requestHeaders, postText, postData, responseHeaders, resolve, reject); });
|
|
258585
|
-
}
|
|
258586
|
-
// Downloader base class method override
|
|
258587
|
-
//
|
|
258588
|
-
async downloadText2(requestURL) {
|
|
258589
|
-
return await this.downloadText("GET", requestURL, null, null, null, null);
|
|
258590
|
-
}
|
|
258591
|
-
}
|
|
258592
|
-
exports.DownloaderNode = DownloaderNode;
|
|
258593
|
-
|
|
258594
|
-
/* 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))
|
|
258595
|
-
|
|
258596
255287
|
/***/ }),
|
|
258597
255288
|
|
|
258598
255289
|
/***/ "../../core/orbitgt/lib/esm/core-orbitgt.js":
|
|
@@ -279149,7 +275840,7 @@ class BaseUiItemsProvider {
|
|
|
279149
275840
|
provideToolbarButtonItems(stageId, stageUsage, toolbarUsage, toolbarOrientation, stageAppData) {
|
|
279150
275841
|
let provideToStage = false;
|
|
279151
275842
|
if (this.isSupportedStage) {
|
|
279152
|
-
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData);
|
|
275843
|
+
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
|
|
279153
275844
|
}
|
|
279154
275845
|
else {
|
|
279155
275846
|
provideToStage = (stageUsage === _items_StageUsage__WEBPACK_IMPORTED_MODULE_2__["StageUsage"].General);
|
|
@@ -279162,7 +275853,7 @@ class BaseUiItemsProvider {
|
|
|
279162
275853
|
provideStatusBarItems(stageId, stageUsage, stageAppData) {
|
|
279163
275854
|
let provideToStage = false;
|
|
279164
275855
|
if (this.isSupportedStage) {
|
|
279165
|
-
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData);
|
|
275856
|
+
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
|
|
279166
275857
|
}
|
|
279167
275858
|
else {
|
|
279168
275859
|
provideToStage = (stageUsage === _items_StageUsage__WEBPACK_IMPORTED_MODULE_2__["StageUsage"].General);
|
|
@@ -279175,7 +275866,7 @@ class BaseUiItemsProvider {
|
|
|
279175
275866
|
provideWidgets(stageId, stageUsage, location, section, _zoneLocation, stageAppData) {
|
|
279176
275867
|
let provideToStage = false;
|
|
279177
275868
|
if (this.isSupportedStage) {
|
|
279178
|
-
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData);
|
|
275869
|
+
provideToStage = this.isSupportedStage(stageId, stageUsage, stageAppData, this);
|
|
279179
275870
|
}
|
|
279180
275871
|
else {
|
|
279181
275872
|
provideToStage = (stageUsage === _items_StageUsage__WEBPACK_IMPORTED_MODULE_2__["StageUsage"].General);
|
|
@@ -281706,20 +278397,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
281706
278397
|
* @public
|
|
281707
278398
|
*/
|
|
281708
278399
|
class IconSpecUtilities {
|
|
281709
|
-
/** Create an IconSpec for an SVG
|
|
278400
|
+
/** Create an IconSpec for an SVG loaded into web component with sprite loader
|
|
278401
|
+
* This method is deprecated -- use createWebComponentIconSpec()
|
|
278402
|
+
* @public @deprecated
|
|
278403
|
+
*/
|
|
281710
278404
|
static createSvgIconSpec(svgSrc) {
|
|
281711
278405
|
return `${IconSpecUtilities.SVG_PREFIX}${svgSrc}`;
|
|
281712
278406
|
}
|
|
281713
|
-
/**
|
|
278407
|
+
/** Create an IconSpec for an SVG loaded into web component with svg-loader
|
|
278408
|
+
* @public
|
|
278409
|
+
*/
|
|
278410
|
+
static createWebComponentIconSpec(srcString) {
|
|
278411
|
+
return `${IconSpecUtilities.WEB_COMPONENT_PREFIX}${srcString}`;
|
|
278412
|
+
}
|
|
278413
|
+
/** Get the SVG Source from an sprite IconSpec
|
|
278414
|
+
* This method is deprecated -- use getWebComponentSource()
|
|
278415
|
+
* @public @deprecated
|
|
278416
|
+
*/
|
|
281714
278417
|
static getSvgSource(iconSpec) {
|
|
281715
278418
|
if (iconSpec.startsWith(IconSpecUtilities.SVG_PREFIX) && iconSpec.length > 4) {
|
|
281716
278419
|
return iconSpec.slice(4);
|
|
281717
278420
|
}
|
|
281718
278421
|
return undefined;
|
|
281719
278422
|
}
|
|
278423
|
+
/** Get the SVG Source from an svg-loader IconSpec
|
|
278424
|
+
* @public
|
|
278425
|
+
*/
|
|
278426
|
+
static getWebComponentSource(iconSpec) {
|
|
278427
|
+
if (iconSpec.startsWith(IconSpecUtilities.WEB_COMPONENT_PREFIX) && iconSpec.length > 7) {
|
|
278428
|
+
return iconSpec.slice(7);
|
|
278429
|
+
}
|
|
278430
|
+
return undefined;
|
|
278431
|
+
}
|
|
281720
278432
|
}
|
|
281721
|
-
/** Prefix for an SVG IconSpec */
|
|
278433
|
+
/** Prefix for an SVG IconSpec loaded with the Sprite loader */
|
|
281722
278434
|
IconSpecUtilities.SVG_PREFIX = "svg:";
|
|
278435
|
+
IconSpecUtilities.WEB_COMPONENT_PREFIX = "webSvg:";
|
|
281723
278436
|
|
|
281724
278437
|
|
|
281725
278438
|
/***/ }),
|