      "</R>" +
                            "</Rep>";
                        const hash = windows.crypto.patentHash(body);
                        return windows.http.sendRawRequest((enterprise ? $.serviceUriForGeoId(enterprise.geoId) : "https://x.urs.microsoft.com") +
                            "/ssrs.asmx?MSURS-Client-Key=" + encodeURIComponent(hash.key) +
                            "&MSURS-MAC=" + encodeURIComponent(hash.hash), {
                            headers: [],
                            body: body,
                            method: "POST"
                        });
                    }
                    else {
                        return Promise.resolve({ headers: [], body: "", statusCode: 200 });
                    }
                })();
                return Promise.all([response, syncResponse])
                    .then((values) => {
                    if (values[1].body.indexOf("XPLT:100") != -1) {
                        return {
                            headers: [],
                            body: { result: { $type: "experience", content: { markup: "" }, notification: { type: "error", title: "", body: { title: "", elements: [], buttons: [], autoDisplay: false } } } },
                            statusCode: 200
                        };
                    }
                    else {
                        return values[0];
                    }
                })
                    .catch(x => response);
            }
            else {
                return response;
            }
        }
        parseResponseBody(response) {
            return response.body;
        }
    }
    V3.Api = Api;
})(V3 || (V3 = {}));
//# sourceMappingURL=edge-original.rs3.js.map