New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deepin-js-sdk

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepin-js-sdk - npm Package Compare versions

Comparing version

to
1.1.2

5

dist/cjs/queue.js

@@ -51,3 +51,6 @@ "use strict";

}
event = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ type: actionType }, eventObject), eventData), { deviceId: deviceId_1.deviceId, timestamp: (0, utils_1.getIso8601)() });
event = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, eventObject), eventData), { type: actionType, deviceId: deviceId_1.deviceId, timestamp: (0, utils_1.getIso8601)() });
if (config_1.default.configuration.userID) {
event.userId = config_1.default.configuration.userID;
}
queue.add(event);

@@ -54,0 +57,0 @@ releaseEventsStack = deviceId_1.deviceId && (!localStorageIsAvailable || releaseCondition(queue.items));

@@ -48,3 +48,6 @@ import { __assign, __awaiter, __generator, __spreadArray } from "tslib";

}
event = __assign(__assign(__assign({ type: actionType }, eventObject), eventData), { deviceId: deviceId, timestamp: getIso8601() });
event = __assign(__assign(__assign({}, eventObject), eventData), { type: actionType, deviceId: deviceId, timestamp: getIso8601() });
if (config.configuration.userID) {
event.userId = config.configuration.userID;
}
queue.add(event);

@@ -51,0 +54,0 @@ releaseEventsStack = deviceId && (!localStorageIsAvailable || releaseCondition(queue.items));

105

dist/types/types/common.d.ts

@@ -0,45 +1,72 @@

export interface App {
name?: string;
version?: string;
build?: string;
}
export interface Campaign {
name?: string;
source?: string;
medium?: string;
term?: string;
content?: string;
}
export interface Device {
id?: string;
advertisingId?: string;
manufacturer?: string;
model?: string;
name?: string;
type?: string;
version?: string;
}
export interface Location {
city?: string;
country?: string;
latitude?: string;
longitude?: string;
region?: string;
speed?: string;
}
export interface Network {
bluetooth?: string;
carrier?: string;
cellular?: string;
wifi?: string;
}
export interface Os {
name?: string;
version?: string;
}
export interface Page {
path?: string;
referrer?: string;
search?: string;
title?: string;
url?: string;
}
export interface Referer {
type?: string;
name?: string;
url?: string;
link?: string;
}
export interface Screen {
density?: string;
height?: string;
width?: string;
}
export interface CommonProperties {
active?: boolean;
app_name?: string;
app_version?: string;
app_build?: string;
campaign_name?: string;
campaign_source?: string;
campaign_medium?: string;
campaign_term?: string;
campaign_content?: string;
device_id?: string;
device_advertisingId?: string;
device_manufacturer?: string;
device_model?: string;
device_name?: string;
device_type?: string;
device_version?: string;
app?: App;
campaign?: Campaign;
device?: Device;
ip?: string;
library_axios?: string;
locale?: string;
location_city?: string;
location_country?: string;
location_latitude?: string;
location_longitude?: string;
location_region?: string;
location_speed?: string;
network_bluetooth?: string;
network_carrier?: string;
network_cellular?: string;
network_wifi?: string;
os_name?: string;
os_version?: string;
page_path?: string;
page_referrer?: string;
page_search?: string;
page_title?: string;
page_url?: string;
referrer_type?: string;
referrer_name?: string;
referrer_url?: string;
referrer_link?: string;
screen_density?: string;
screen_height?: string;
screen_width?: string;
location?: Location;
network?: Network;
os?: Os;
page?: Page;
referer?: Referer;
screen?: Screen;
timezone?: string;

@@ -46,0 +73,0 @@ timezone_groupId?: string;

import { CommonProperties } from './common';
export interface GroupTraits {
employees?: string;
industry?: string;
plan?: string;
}
export interface GroupProperties extends CommonProperties {
traits_employees?: string;
traits_industry?: string;
traits_plan?: string;
traits?: GroupTraits;
}
import { CommonProperties } from './common';
export interface IdentifyTraits {
age?: number | string;
birthday?: string;
firstName?: string;
gender?: string;
lastName?: string;
title?: string;
username?: string;
company_name?: string;
company_id?: string;
company_industry?: string;
company_employeeCount?: string;
company_plan?: string;
}
export interface IdentifyProperties extends CommonProperties {
traits_age?: number | string;
traits_birthday?: string;
traits_firstName?: string;
traits_gender?: string;
traits_lastName?: string;
traits_title?: string;
traits_username?: string;
traits_company_name?: string;
traits_company_id?: string;
traits_company_industry?: string;
traits_company_employeeCount?: string;
traits_company_plan?: string;
traits?: IdentifyTraits;
}

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Deepin=e():t.Deepin=e()}(self,(function(){return function(){var t={98:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=l(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=d(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=c(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[c(t)]},h.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},h.prototype.set=function(t,e){this.map[c(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),p(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),p(t)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var r,n,o=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function x(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];x.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var s=new g(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new x(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=h,t.Request=g,t.Response=x),e.Headers=h,e.Request=g,e.Response=x,e.fetch=O,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return function(){"use strict";var t;r.r(n),r.d(n,{alias:function(){return T},default:function(){return A},flush:function(){return B},group:function(){return _},identify:function(){return P},init:function(){return k},page:function(){return S},track:function(){return I}}),function(t){t.Identify="identify",t.Track="track",t.Alias="alias",t.Group="group",t.Page="page",t.Screen="screen",t.Batch="batch"}(t||(t={}));var e=function(){return e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)};function o(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))}function i(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}Object.create;Object.create;var s=function(){function t(){}return t.available=function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}},t.prototype.getString=function(t){return u&&localStorage.getItem(t)||""},t.prototype.get=function(t,e){void 0===e&&(e={});var r=this.getString(t);if(r)try{return JSON.parse(r)}catch(t){return e}return e},t.prototype.set=function(t,e){if(u){var r="string"==typeof e?e:JSON.stringify(e);localStorage.setItem(t,r)}return e},t.prototype.remove=function(t){if(u)return localStorage.removeItem(t)},t}(),a=new s,u=s.available(),c=new(function(){function t(){this.configuration={writeKey:""}}return t.prototype.init=function(t,r){this.configuration=e(e({},r),{writeKey:t})},t.prototype.setUser=function(t){this.configuration.userID=t},t.prototype.checkError=function(){return this.configuration?this.configuration.writeKey?"":"Please set the writeKey in the init method":"It must be initialized"},t}()),f=r(98),p=r.n(f),h="https://stage-api.mydeepin.ir/v1/";function l(e){var r=e[0],n=r.type;return e.length>1&&(n=t.Batch,r={type:t.Batch,batch:e}),"undefined"!=typeof window&&(r.context={agent:window.navigator.userAgent}),function(t,e){var r,n=h+t;return p()(n,{headers:{Accept:"application/json","Content-Type":"application/json","write-key":null===(r=c.configuration)||void 0===r?void 0:r.writeKey},method:"POST",body:JSON.stringify(e)})}(n,r)}var d="",y="deepin_deviceId";function b(){d||Promise.resolve({data:{key:"intk",path:"https://static1.intrack.ir/api/web/download/sdk/device.html"}}).then((function(t){var e=t.data;(function(t,e,r){return new Promise((function(n){var o=document.createElement("iframe");window.addEventListener("message",(function(t){var e=t.data||{},i=e.deviceId,s=e.source;i&&s===r&&(n(i),o.remove())})),o.src=e,o.setAttribute("style","display: none !important; width: 0px !important; height: 0px !important; opacity: 0 !important; pointer-events: none !important;"),o.onload=function(){var e;null===(e=o.contentWindow)||void 0===e||e.postMessage({deviceId:t,source:r},"*")},document.body.appendChild(o)}))})("",e.path,e.key).then((function(t){d=t,a.set(y,d)}))}))}var m="DeepinEventsBulk",v=s.available(),g=function(){function t(){this.items=[],this.lockTimeItems=[],this.locked=!1,this.items=a.get(m,[])}return t.prototype.add=function(t){this.locked&&this.lockTimeItems.push(t),this.items.push(t),a.set(m,this.items)},t.prototype.clear=function(){this.items=[],a.set(m,this.items)},t.prototype.lock=function(){this.locked=!0,this.lockTimeItems=[]},t.prototype.unlock=function(){this.locked=!1,this.items=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}([],this.lockTimeItems,!0)},t}(),w=new g;function x(t,r,n){return o(this,void 0,Promise,(function(){var o;return i(this,(function(i){return c.checkError()?[2,Promise.reject(c.checkError())]:(o=e(e(e({type:t},n),r),{deviceId:d,timestamp:(new Date).toISOString()}),w.add(o),d&&(!v||w.items.length>5)?[2,E()]:[2])}))}))}function E(){return o(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return w.lock(),[4,l(w.items)];case 1:return t=e.sent(),w.clear(),w.unlock(),[2,t]}}))}))}var O=new(function(){function e(){}return e.prototype.init=function(t,e){void 0===e&&(e={}),d=a.getString(y),b(),c.init(t,e)},e.prototype.identify=function(e,r){return void 0===r&&(r={}),c.setUser(e),x(t.Identify,{userId:e},r)},e.prototype.track=function(e,r,n){return void 0===n&&(n={}),x(t.Track,{event:e,category:r},n)},e.prototype.page=function(e,r){return void 0===r&&(r={}),x(t.Page,{category:e},r)},e.prototype.group=function(e,r){return void 0===r&&(r={}),x(t.Group,{groupId:e},r)},e.prototype.alias=function(e,r){var n;return x(t.Alias,{userId:e,previousId:r||(null===(n=c.configuration)||void 0===n?void 0:n.userID)},{})},e.prototype.flush=function(){return E()},e}()),A=O,T=O.alias,_=O.group,S=O.page,I=O.track,P=O.identify,k=O.init,B=O.flush}(),n}()}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Deepin=e():t.Deepin=e()}(self,(function(){return function(){var t={98:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=l(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=d(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=c(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[c(t)]},h.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},h.prototype.set=function(t,e){this.map[c(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),p(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),p(t)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var r,n,o=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function x(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];x.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var s=new g(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new x(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=h,t.Request=g,t.Response=x),e.Headers=h,e.Request=g,e.Response=x,e.fetch=O,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return function(){"use strict";var t;r.r(n),r.d(n,{alias:function(){return T},default:function(){return A},flush:function(){return B},group:function(){return _},identify:function(){return P},init:function(){return k},page:function(){return I},track:function(){return S}}),function(t){t.Identify="identify",t.Track="track",t.Alias="alias",t.Group="group",t.Page="page",t.Screen="screen",t.Batch="batch"}(t||(t={}));var e=function(){return e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)};function o(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))}function i(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}Object.create;Object.create;var s=function(){function t(){}return t.available=function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}},t.prototype.getString=function(t){return u&&localStorage.getItem(t)||""},t.prototype.get=function(t,e){void 0===e&&(e={});var r=this.getString(t);if(r)try{return JSON.parse(r)}catch(t){return e}return e},t.prototype.set=function(t,e){if(u){var r="string"==typeof e?e:JSON.stringify(e);localStorage.setItem(t,r)}return e},t.prototype.remove=function(t){if(u)return localStorage.removeItem(t)},t}(),a=new s,u=s.available(),c=new(function(){function t(){this.configuration={writeKey:""}}return t.prototype.init=function(t,r){this.configuration=e(e({},r),{writeKey:t})},t.prototype.setUser=function(t){this.configuration.userID=t},t.prototype.checkError=function(){return this.configuration?this.configuration.writeKey?"":"Please set the writeKey in the init method":"It must be initialized"},t}()),f=r(98),p=r.n(f),h="https://stage-api.mydeepin.ir/v1/";function l(e){var r=e[0],n=r.type;return e.length>1&&(n=t.Batch,r={type:t.Batch,batch:e}),"undefined"!=typeof window&&(r.context={agent:window.navigator.userAgent}),function(t,e){var r,n=h+t;return p()(n,{headers:{Accept:"application/json","Content-Type":"application/json","write-key":null===(r=c.configuration)||void 0===r?void 0:r.writeKey},method:"POST",body:JSON.stringify(e)})}(n,r)}var d="",y="deepin_deviceId";function b(){d||Promise.resolve({data:{key:"intk",path:"https://static1.intrack.ir/api/web/download/sdk/device.html"}}).then((function(t){var e=t.data;(function(t,e,r){return new Promise((function(n){var o=document.createElement("iframe");window.addEventListener("message",(function(t){var e=t.data||{},i=e.deviceId,s=e.source;i&&s===r&&(n(i),o.remove())})),o.src=e,o.setAttribute("style","display: none !important; width: 0px !important; height: 0px !important; opacity: 0 !important; pointer-events: none !important;"),o.onload=function(){var e;null===(e=o.contentWindow)||void 0===e||e.postMessage({deviceId:t,source:r},"*")},document.body.appendChild(o)}))})("",e.path,e.key).then((function(t){d=t,a.set(y,d)}))}))}var m="DeepinEventsBulk",v=s.available(),g=function(){function t(){this.items=[],this.lockTimeItems=[],this.locked=!1,this.items=a.get(m,[])}return t.prototype.add=function(t){this.locked&&this.lockTimeItems.push(t),this.items.push(t),a.set(m,this.items)},t.prototype.clear=function(){this.items=[],a.set(m,this.items)},t.prototype.lock=function(){this.locked=!0,this.lockTimeItems=[]},t.prototype.unlock=function(){this.locked=!1,this.items=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}([],this.lockTimeItems,!0)},t}(),w=new g;function x(t,r,n){return o(this,void 0,Promise,(function(){var o;return i(this,(function(i){return c.checkError()?[2,Promise.reject(c.checkError())]:(o=e(e(e({},n),r),{type:t,deviceId:d,timestamp:(new Date).toISOString()}),c.configuration.userID&&(o.userId=c.configuration.userID),w.add(o),d&&(!v||w.items.length>5)?[2,E()]:[2])}))}))}function E(){return o(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return w.lock(),[4,l(w.items)];case 1:return t=e.sent(),w.clear(),w.unlock(),[2,t]}}))}))}var O=new(function(){function e(){}return e.prototype.init=function(t,e){void 0===e&&(e={}),d=a.getString(y),b(),c.init(t,e)},e.prototype.identify=function(e,r){return void 0===r&&(r={}),c.setUser(e),x(t.Identify,{userId:e},r)},e.prototype.track=function(e,r,n){return void 0===n&&(n={}),x(t.Track,{event:e,category:r},n)},e.prototype.page=function(e,r){return void 0===r&&(r={}),x(t.Page,{category:e},r)},e.prototype.group=function(e,r){return void 0===r&&(r={}),x(t.Group,{groupId:e},r)},e.prototype.alias=function(e,r){var n;return x(t.Alias,{userId:e,previousId:r||(null===(n=c.configuration)||void 0===n?void 0:n.userID)},{})},e.prototype.flush=function(){return E()},e}()),A=O,T=O.alias,_=O.group,I=O.page,S=O.track,P=O.identify,k=O.init,B=O.flush}(),n}()}));

@@ -1,1 +0,1 @@

!function(){var t={98:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=l(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=d(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=c(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[c(t)]},h.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},h.prototype.set=function(t,e){this.map[c(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),p(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),p(t)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var r,n,o=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function E(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},v.call(g.prototype),v.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];E.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var s=new g(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new E(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=h,t.Request=g,t.Response=E),e.Headers=h,e.Request=g,e.Response=E,e.fetch=O,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};!function(){"use strict";var t;r.r(n),r.d(n,{alias:function(){return T},default:function(){return A},flush:function(){return B},group:function(){return _},identify:function(){return P},init:function(){return k},page:function(){return S},track:function(){return I}}),function(t){t.Identify="identify",t.Track="track",t.Alias="alias",t.Group="group",t.Page="page",t.Screen="screen",t.Batch="batch"}(t||(t={}));var e=function(){return e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)};function o(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))}function i(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}Object.create;Object.create;var s=function(){function t(){}return t.available=function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}},t.prototype.getString=function(t){return u&&localStorage.getItem(t)||""},t.prototype.get=function(t,e){void 0===e&&(e={});var r=this.getString(t);if(r)try{return JSON.parse(r)}catch(t){return e}return e},t.prototype.set=function(t,e){if(u){var r="string"==typeof e?e:JSON.stringify(e);localStorage.setItem(t,r)}return e},t.prototype.remove=function(t){if(u)return localStorage.removeItem(t)},t}(),a=new s,u=s.available(),c=new(function(){function t(){this.configuration={writeKey:""}}return t.prototype.init=function(t,r){this.configuration=e(e({},r),{writeKey:t})},t.prototype.setUser=function(t){this.configuration.userID=t},t.prototype.checkError=function(){return this.configuration?this.configuration.writeKey?"":"Please set the writeKey in the init method":"It must be initialized"},t}()),f=r(98),p=r.n(f),h="https://stage-api.mydeepin.ir/v1/";function l(e){var r=e[0],n=r.type;return e.length>1&&(n=t.Batch,r={type:t.Batch,batch:e}),"undefined"!=typeof window&&(r.context={agent:window.navigator.userAgent}),function(t,e){var r,n=h+t;return p()(n,{headers:{Accept:"application/json","Content-Type":"application/json","write-key":null===(r=c.configuration)||void 0===r?void 0:r.writeKey},method:"POST",body:JSON.stringify(e)})}(n,r)}var d="",y="deepin_deviceId";function b(){d||Promise.resolve({data:{key:"intk",path:"https://static1.intrack.ir/api/web/download/sdk/device.html"}}).then((function(t){var e=t.data;(function(t,e,r){return new Promise((function(n){var o=document.createElement("iframe");window.addEventListener("message",(function(t){var e=t.data||{},i=e.deviceId,s=e.source;i&&s===r&&(n(i),o.remove())})),o.src=e,o.setAttribute("style","display: none !important; width: 0px !important; height: 0px !important; opacity: 0 !important; pointer-events: none !important;"),o.onload=function(){var e;null===(e=o.contentWindow)||void 0===e||e.postMessage({deviceId:t,source:r},"*")},document.body.appendChild(o)}))})("",e.path,e.key).then((function(t){d=t,a.set(y,d)}))}))}var v="DeepinEventsBulk",m=s.available(),g=function(){function t(){this.items=[],this.lockTimeItems=[],this.locked=!1,this.items=a.get(v,[])}return t.prototype.add=function(t){this.locked&&this.lockTimeItems.push(t),this.items.push(t),a.set(v,this.items)},t.prototype.clear=function(){this.items=[],a.set(v,this.items)},t.prototype.lock=function(){this.locked=!0,this.lockTimeItems=[]},t.prototype.unlock=function(){this.locked=!1,this.items=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}([],this.lockTimeItems,!0)},t}(),w=new g;function E(t,r,n){return o(this,void 0,Promise,(function(){var o;return i(this,(function(i){return c.checkError()?[2,Promise.reject(c.checkError())]:(o=e(e(e({type:t},n),r),{deviceId:d,timestamp:(new Date).toISOString()}),w.add(o),d&&(!m||w.items.length>5)?[2,x()]:[2])}))}))}function x(){return o(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return w.lock(),[4,l(w.items)];case 1:return t=e.sent(),w.clear(),w.unlock(),[2,t]}}))}))}var O=new(function(){function e(){}return e.prototype.init=function(t,e){void 0===e&&(e={}),d=a.getString(y),b(),c.init(t,e)},e.prototype.identify=function(e,r){return void 0===r&&(r={}),c.setUser(e),E(t.Identify,{userId:e},r)},e.prototype.track=function(e,r,n){return void 0===n&&(n={}),E(t.Track,{event:e,category:r},n)},e.prototype.page=function(e,r){return void 0===r&&(r={}),E(t.Page,{category:e},r)},e.prototype.group=function(e,r){return void 0===r&&(r={}),E(t.Group,{groupId:e},r)},e.prototype.alias=function(e,r){var n;return E(t.Alias,{userId:e,previousId:r||(null===(n=c.configuration)||void 0===n?void 0:n.userID)},{})},e.prototype.flush=function(){return x()},e}()),A=O,T=O.alias,_=O.group,S=O.page,I=O.track,P=O.identify,k=O.init,B=O.flush}(),window.Deepin=n}();
!function(){var t={98:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=l(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=d(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=c(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[c(t)]},h.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},h.prototype.set=function(t,e){this.map[c(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),p(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),p(t)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var r,n,o=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function E(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},v.call(g.prototype),v.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];E.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var s=new g(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new E(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=h,t.Request=g,t.Response=E),e.Headers=h,e.Request=g,e.Response=E,e.fetch=O,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};!function(){"use strict";var t;r.r(n),r.d(n,{alias:function(){return T},default:function(){return A},flush:function(){return B},group:function(){return _},identify:function(){return P},init:function(){return k},page:function(){return I},track:function(){return S}}),function(t){t.Identify="identify",t.Track="track",t.Alias="alias",t.Group="group",t.Page="page",t.Screen="screen",t.Batch="batch"}(t||(t={}));var e=function(){return e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)};function o(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))}function i(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}Object.create;Object.create;var s=function(){function t(){}return t.available=function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}},t.prototype.getString=function(t){return u&&localStorage.getItem(t)||""},t.prototype.get=function(t,e){void 0===e&&(e={});var r=this.getString(t);if(r)try{return JSON.parse(r)}catch(t){return e}return e},t.prototype.set=function(t,e){if(u){var r="string"==typeof e?e:JSON.stringify(e);localStorage.setItem(t,r)}return e},t.prototype.remove=function(t){if(u)return localStorage.removeItem(t)},t}(),a=new s,u=s.available(),c=new(function(){function t(){this.configuration={writeKey:""}}return t.prototype.init=function(t,r){this.configuration=e(e({},r),{writeKey:t})},t.prototype.setUser=function(t){this.configuration.userID=t},t.prototype.checkError=function(){return this.configuration?this.configuration.writeKey?"":"Please set the writeKey in the init method":"It must be initialized"},t}()),f=r(98),p=r.n(f),h="https://stage-api.mydeepin.ir/v1/";function l(e){var r=e[0],n=r.type;return e.length>1&&(n=t.Batch,r={type:t.Batch,batch:e}),"undefined"!=typeof window&&(r.context={agent:window.navigator.userAgent}),function(t,e){var r,n=h+t;return p()(n,{headers:{Accept:"application/json","Content-Type":"application/json","write-key":null===(r=c.configuration)||void 0===r?void 0:r.writeKey},method:"POST",body:JSON.stringify(e)})}(n,r)}var d="",y="deepin_deviceId";function b(){d||Promise.resolve({data:{key:"intk",path:"https://static1.intrack.ir/api/web/download/sdk/device.html"}}).then((function(t){var e=t.data;(function(t,e,r){return new Promise((function(n){var o=document.createElement("iframe");window.addEventListener("message",(function(t){var e=t.data||{},i=e.deviceId,s=e.source;i&&s===r&&(n(i),o.remove())})),o.src=e,o.setAttribute("style","display: none !important; width: 0px !important; height: 0px !important; opacity: 0 !important; pointer-events: none !important;"),o.onload=function(){var e;null===(e=o.contentWindow)||void 0===e||e.postMessage({deviceId:t,source:r},"*")},document.body.appendChild(o)}))})("",e.path,e.key).then((function(t){d=t,a.set(y,d)}))}))}var v="DeepinEventsBulk",m=s.available(),g=function(){function t(){this.items=[],this.lockTimeItems=[],this.locked=!1,this.items=a.get(v,[])}return t.prototype.add=function(t){this.locked&&this.lockTimeItems.push(t),this.items.push(t),a.set(v,this.items)},t.prototype.clear=function(){this.items=[],a.set(v,this.items)},t.prototype.lock=function(){this.locked=!0,this.lockTimeItems=[]},t.prototype.unlock=function(){this.locked=!1,this.items=function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}([],this.lockTimeItems,!0)},t}(),w=new g;function E(t,r,n){return o(this,void 0,Promise,(function(){var o;return i(this,(function(i){return c.checkError()?[2,Promise.reject(c.checkError())]:(o=e(e(e({},n),r),{type:t,deviceId:d,timestamp:(new Date).toISOString()}),c.configuration.userID&&(o.userId=c.configuration.userID),w.add(o),d&&(!m||w.items.length>5)?[2,x()]:[2])}))}))}function x(){return o(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return w.lock(),[4,l(w.items)];case 1:return t=e.sent(),w.clear(),w.unlock(),[2,t]}}))}))}var O=new(function(){function e(){}return e.prototype.init=function(t,e){void 0===e&&(e={}),d=a.getString(y),b(),c.init(t,e)},e.prototype.identify=function(e,r){return void 0===r&&(r={}),c.setUser(e),E(t.Identify,{userId:e},r)},e.prototype.track=function(e,r,n){return void 0===n&&(n={}),E(t.Track,{event:e,category:r},n)},e.prototype.page=function(e,r){return void 0===r&&(r={}),E(t.Page,{category:e},r)},e.prototype.group=function(e,r){return void 0===r&&(r={}),E(t.Group,{groupId:e},r)},e.prototype.alias=function(e,r){var n;return E(t.Alias,{userId:e,previousId:r||(null===(n=c.configuration)||void 0===n?void 0:n.userID)},{})},e.prototype.flush=function(){return x()},e}()),A=O,T=O.alias,_=O.group,I=O.page,S=O.track,P=O.identify,k=O.init,B=O.flush}(),window.Deepin=n}();
{
"name": "deepin-js-sdk",
"version": "1.1.1",
"version": "1.1.2",
"description": "Javascript SDK to use deepin platform",

@@ -5,0 +5,0 @@ "repository": "https://github.com/mydeepinir/SDK",

@@ -6,3 +6,3 @@ # Deepin SDK

[![Package Quality][packagequality-image]][packagequality-url]
[![TypeScript](typescript-image)](https://typescriptlang.org)
[![TypeScript][typescript-image]](https://typescriptlang.org)

@@ -15,3 +15,3 @@ ## Table of Contents

- [In node.js](#in-nodejs)
- [Initialize and test]()
- [Initialization And Test](#initialization-and-test)
- [Api](#api)

@@ -52,3 +52,3 @@ - [Init](#init)

```html
<script src="https://stage-web.mydeepin.ir/download/deepin-js-sdk-v1.1.1.js"></script>
<script src="https://dash.mydeepin.ir/download/deepin-js-sdk-v1.1.1.js"></script>
<script>

@@ -215,5 +215,5 @@ const deepIn = window.Deepin

[npm-url]: https://npmjs.com/package/deepin-js-sdk
[typescript-image]: https://badgen.net/badge/icon/typescript?icon=typescript&label
[typescript-image]: http://badgen.net/badge/icon/typescript?icon=typescript&label
[npm-version-image]: http://img.shields.io/npm/v/deepin-js-sdk.svg?style=flat
[packagequality-image]: http://npm.packagequality.com/shield/deepin-js-sdk.svg
[packagequality-url]: http://packagequality.com/#?package=deepin-js-sdk

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet