Free javascript Hosting


lifesightsdk.js

Uploaded on Mar 22 2022 21:53 by arudenko

var Lifesight;(()=>{var e={236:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.requestDelay=t.apiEndpoints=void 0;var i=o(n(669)),a=n(346),s=i.default.create({baseURL:a.BASE_URL}),u={EVENT_PUBLISH:function(e){var t=e.api_key,n=r(e,["api_key"]);s.post("/publish?key=".concat(t),n)}};t.apiEndpoints=u,t.requestDelay=function(e){return new Promise((function(t){return setTimeout(t,e)}))}},346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIFESIGHT_SDK_SCRIPT_ID=t.IDENTITY_SECRET=t.BASE_URL=void 0,t.BASE_URL="https://shopify-mock-apis-gateway-6sl29y88.uc.gateway.dev",t.IDENTITY_SECRET="AJjxxSeJh",t.LIFESIGHT_SDK_SCRIPT_ID="LifesightSDK"},663:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(922),u=n(236),c=n(562),l=n(346),f=n(606),d=function(){function e(){this.LDLInstance=new s.LifeSightDataLayer,this.identify(),this._initializeEventsQueueJob()}return e.prototype._initializeEventsQueueJob=function(){var e=this,t=1e3,n=1,r=function(){return o(e,void 0,void 0,(function(){var e,o;return i(this,(function(i){switch(i.label){case 0:e=this.LDLInstance.getLifesightDataLayer().events_queue,o=e[e.length-1],i.label=1;case 1:return i.trys.push([1,4,,5]),!o||o.pending?[3,3]:[4,this.track(o,!0)];case 2:i.sent(),n>1&&(n-=1),i.label=3;case 3:return e.length||(n=1),setTimeout(r,t*n),[3,5];case 4:return i.sent(),n+=1,setTimeout(r,t*n),[3,5];case 5:return[2]}}))}))};setTimeout(r,t*n)},e.prototype.identify=function(){return o(this,void 0,void 0,(function(){var e,t,n,o,s,d,p,h;return i(this,(function(i){switch(i.label){case 0:if(e=this.LDLInstance.getLifesightDataLayer(),t=e.anonymous_id,n=e.identity_sent,o=(0,f.getCustomerTraits)(t),s=o.message_id,d=a(o,["message_id"]),p=JSON.stringify(d),this.LDLInstance.putLifesightDataLayerStringValue(c.LDL_KEYS.ANONYMOUS_ID,d.identifiers.anonymous_id),(0,f.encrypter)(l.IDENTITY_SECRET)(p)===n)return[3,8];h=!1,i.label=1;case 1:if(h)return[3,7];i.label=2;case 2:return i.trys.push([2,4,,6]),[4,u.apiEndpoints.EVENT_PUBLISH(r({message_id:s},d))];case 3:return i.sent(),this.LDLInstance.putLifesightDataLayerStringValue(c.LDL_KEYS.IDENTITY_SENT,(0,f.encrypter)(l.IDENTITY_SECRET)(p)),h=!0,[3,6];case 4:return i.sent(),[4,(0,u.requestDelay)(1e3)];case 5:return i.sent(),[3,6];case 6:return[3,1];case 7:case 8:return[2]}}))}))},e.prototype.track=function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:t||this.LDLInstance.putLifesightDataLayerEvent(e),n.label=1;case 1:return n.trys.push([1,3,,4]),this.LDLInstance.updateLifesightDataLayerEventStatus(e.message_id,!0),[4,u.apiEndpoints.EVENT_PUBLISH(e)];case 2:return n.sent(),this.LDLInstance.deleteLifesightDataLayerEvent(e),[3,4];case 3:throw n.sent(),this.LDLInstance.updateLifesightDataLayerEventStatus(e.message_id,!1),new Error("Publish event - error");case 4:return[2]}}))}))},e}();t.default=d},562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STORAGE_LDL_KEY=t.LDL_KEYS=t.DEFAULT_LDL=void 0,t.DEFAULT_LDL={events_queue:[],anonymous_id:"",identity_sent:""},t.LDL_KEYS={EVENTS_QUEUE:"events_queue",ANONYMOUS_ID:"anonymous_id",IDENTITY_SENT:"identity_sent"},t.STORAGE_LDL_KEY="lifesightDataLayer"},922:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.LifeSightDataLayer=void 0;var i=n(562),a=n(18),s=function(){function e(){this._lifesighDataLayer=this._initLifesightDataLayer()}return e.prototype._initLifesightDataLayer=function(){var e=i.DEFAULT_LDL,t=(0,a.getStorageLDL)();try{if(t){var n=JSON.parse(t);Object.keys(n).forEach((function(t){Object.values(i.LDL_KEYS).includes(t)&&(e[t]=(0,a.convertDataLayerValue)(t,n[t]))}))}return e}catch(t){return e}},e.prototype._updateLifesightDataLayer=function(e){this._lifesighDataLayer=e,(0,a.updateStorageLDL)(e)},e.prototype.getLifesightDataLayer=function(){return this._lifesighDataLayer},e.prototype.clearLifesightDataLayer=function(){this._lifesighDataLayer=i.DEFAULT_LDL,(0,a.updateStorageLDL)(i.DEFAULT_LDL)},e.prototype.putLifesightDataLayerEvent=function(e){this._lifesighDataLayer.events_queue.some((function(t){return t.message_id===e.message_id}))||this._updateLifesightDataLayer(r(r({},this._lifesighDataLayer),{events_queue:o(o([],this._lifesighDataLayer.events_queue,!0),[r({},e)],!1)}))},e.prototype.updateLifesightDataLayerEventStatus=function(e,t){var n=this._lifesighDataLayer.events_queue.find((function(t){return t.message_id===e}));n&&(n.pending=t),this._updateLifesightDataLayer(this._lifesighDataLayer)},e.prototype.deleteLifesightDataLayerEvent=function(e){this._updateLifesightDataLayer(r(r({},this._lifesighDataLayer),{events_queue:this._lifesighDataLayer.events_queue.filter((function(t){return t.message_id!==e.message_id}))}))},e.prototype.putLifesightDataLayerStringValue=function(e,t){var n;this._lifesighDataLayer[e]=t,this._updateLifesightDataLayer(r(r({},this._lifesighDataLayer),((n={})[e]=t,n)))},e}();t.LifeSightDataLayer=s},18:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateStorageLDL=t.getStorageLDL=t.convertDataLayerValue=void 0;var r=n(562);t.convertDataLayerValue=function(e,t){switch(e){case r.LDL_KEYS.EVENTS_QUEUE:return!Array.isArray(t)||t.some((function(e){return"object"!=typeof e}))?[]:t.map((function(e){var t,n,r,o,i,a,s,u,c,l,f,d,p,h,v,_;return{identifiers:{anonymous_id:null!==(n=null===(t=null==e?void 0:e.identifiers)||void 0===t?void 0:t.anonymous_id)&&void 0!==n?n:""},user_agent:null!==(r=null==e?void 0:e.user_agent)&&void 0!==r?r:"",message_id:null!==(o=null==e?void 0:e.message_id)&&void 0!==o?o:"",message_type:null!==(i=null==e?void 0:e.message_type)&&void 0!==i?i:"",event_name:null!==(a=null==e?void 0:e.event_name)&&void 0!==a?a:"",event_timestamp:null!==(s=null==e?void 0:e.event_timestamp)&&void 0!==s?s:"",page_url:null!==(u=null==e?void 0:e.page_url)&&void 0!==u?u:"",utm_campaing:null!==(c=null==e?void 0:e.utm_campaing)&&void 0!==c?c:"",utm_medium:null!==(l=null==e?void 0:e.utm_medium)&&void 0!==l?l:"",utm_source:null!==(f=null==e?void 0:e.utm_source)&&void 0!==f?f:"",utm_content:null!==(d=null==e?void 0:e.utm_content)&&void 0!==d?d:"",page_title:null!==(p=null==e?void 0:e.page_title)&&void 0!==p?p:"",referrer_url:null!==(h=null==e?void 0:e.referrer_url)&&void 0!==h?h:"",pending:null,shop:null!==(v=null==e?void 0:e.shop)&&void 0!==v?v:"",api_key:null!==(_=null==e?void 0:e.api_key)&&void 0!==_?_:""}}));case r.LDL_KEYS.ANONYMOUS_ID:case r.LDL_KEYS.IDENTITY_SENT:return"string"!=typeof t?"":t;default:return[]}},t.getStorageLDL=function(){return localStorage.getItem(r.STORAGE_LDL_KEY)},t.updateStorageLDL=function(e){return localStorage.setItem(r.STORAGE_LDL_KEY,JSON.stringify(e))}},606:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.decrypter=t.encrypter=t.getCustomerTraits=void 0;var o=n(614),i=n(346);t.getCustomerTraits=function(e){var t,n,a,s,u,c=window,l=e.length,f=document.getElementById(i.LIFESIGHT_SDK_SCRIPT_ID),d=function(e,t){var n,r,o;return(null===(r=null==f?void 0:f.dataset)||void 0===r?void 0:r[e])?((n={})[null!=t?t:e]=null===(o=null==f?void 0:f.dataset)||void 0===o?void 0:o[e],n):{}};return{identifiers:r(r(r(r({anonymous_id:l?e:(0,o.v4)()},d("userid","user_id")),d("email")),d("name")),d("phone")),user_agent:null===(t=null===window||void 0===window?void 0:window.navigator)||void 0===t?void 0:t.userAgent,message_id:(0,o.v4)(),message_type:"identify",api_key:null!==(a=null===(n=null==f?void 0:f.dataset)||void 0===n?void 0:n.apikey)&&void 0!==a?a:"",shop:null!==(u=null===(s=null==c?void 0:c.Shopify)||void 0===s?void 0:s.shop)&&void 0!==u?u:""}};var a=function(e){return e.split("").map((function(e){return e.charCodeAt(0)}))},s=function(e,t){return a(e).reduce((function(e,t){return e^t}),t)};t.encrypter=function(e){var t=function(e){return("0"+Number(e).toString(16)).slice(-2)};return function(n){return n.split("").map(a).map((function(t){return s(e,t)})).map(t).join("")}},t.decrypter=function(e){return function(t){var n=t.match(/.{1,2}/g);return n?n.map((function(e){return parseInt(e,16)})).map((function(t){return s(e,t)})).map((function(e){return String.fromCharCode(e)})).join(""):""}}},497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZOOM_IN_CURSOR=t.SHOPIFY_CDN=t.SHOPIFY_EVENTS_ROUTING=t.SHOPIFY_EVENTS_LIST=t.LIFESIGHT_SDK_SCRIPT_ID=t.DOM_NODES_LIST=t.HIGH_DOM_NODES=t.EVENT_LISTENERS=t.DOCUMENT_STATE=void 0,t.DOCUMENT_STATE={COMPLETE:"complete",INTERACTIVE:"interactive"},t.EVENT_LISTENERS={CLICK:"click",DOM_CONTENT_LOADED:"DOMContentLoaded"},t.HIGH_DOM_NODES=["MAIN","BODY","HTML"],t.DOM_NODES_LIST={BUTTON:"BUTTON",LINK:"A",IMAGE:"IMG"},t.LIFESIGHT_SDK_SCRIPT_ID="LifesightSDK",t.SHOPIFY_EVENTS_LIST={CART_VIEW:"cart_view",PAGE_VIEW:"page_view",PRODUCT_VIEW:"product_view",PRODUCT_LIST_VIEW:"product_list_view",PRODUCT_IMAGE_CLICK:"product_image_click",PRODUCT_SHARE:"product_share",PRODUCT_SEARCH:"product_search",REGISTRATION_VIEW:"registration_view",THANKYOU_PAGE_VIEW:"thankyoupage_view"},t.SHOPIFY_EVENTS_ROUTING={REGISTRATION_VIEW:"/account/register",CART_VIEW:"/cart",PRODUCT_VIEW:"/products/",PRODUCT_LIST_VIEW:"/collections/",PRODUCT_SEARCH:"/search",THANKYOU_PAGE_VIEW:"/orders/"},t.SHOPIFY_CDN="cdn.shopify.com",t.ZOOM_IN_CURSOR="zoom-in"},853:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(663)),s=n(497),u=n(437),c=function(e){function t(){var t=e.call(this)||this;return t._trackEvents=t._trackEvents.bind(t),t._paveViewTracker=t._paveViewTracker.bind(t),t._clickEventTracker=t._clickEventTracker.bind(t),t}return o(t,e),t.prototype._trackEvents=function(){this._paveViewTracker(),this._clickEventTracker()},t.prototype._clickEventTracker=function(){var t=this;document.addEventListener(s.EVENT_LISTENERS.CLICK,(function(n){(0,u.isProductImageClicked)(n)&&e.prototype.track.call(t,(0,u.generateEventData)({event_name:s.SHOPIFY_EVENTS_LIST.PRODUCT_IMAGE_CLICK,anonymous_id:t.LDLInstance.getLifesightDataLayer().anonymous_id})),(0,u.isProductShareClick)(n)&&e.prototype.track.call(t,(0,u.generateEventData)({event_name:s.SHOPIFY_EVENTS_LIST.PRODUCT_SHARE,anonymous_id:t.LDLInstance.getLifesightDataLayer().anonymous_id}))}))},t.prototype._paveViewTracker=function(){var t=this;(0,u.isDocumentReady)((function(){var n,r,o=window,i=o.location.pathname,a=function(n){return e.prototype.track.call(t,(0,u.generateEventData)({event_name:n,anonymous_id:t.LDLInstance.getLifesightDataLayer().anonymous_id}))},c=null===(r=null===(n=null==o?void 0:o.Shopify)||void 0===n?void 0:n.Checkout)||void 0===r?void 0:r.isOrderStatusPage;switch(!0){case i.includes(s.SHOPIFY_EVENTS_ROUTING.REGISTRATION_VIEW):a(s.SHOPIFY_EVENTS_LIST.REGISTRATION_VIEW);break;case i.includes(s.SHOPIFY_EVENTS_ROUTING.CART_VIEW):a(s.SHOPIFY_EVENTS_LIST.CART_VIEW);break;case i.includes(s.SHOPIFY_EVENTS_ROUTING.PRODUCT_VIEW):a(s.SHOPIFY_EVENTS_LIST.PRODUCT_VIEW);break;case i.includes(s.SHOPIFY_EVENTS_ROUTING.PRODUCT_LIST_VIEW):a(s.SHOPIFY_EVENTS_LIST.PRODUCT_LIST_VIEW);break;case i.includes(s.SHOPIFY_EVENTS_ROUTING.PRODUCT_SEARCH):a(s.SHOPIFY_EVENTS_LIST.PRODUCT_SEARCH);break;case i.includes(s.SHOPIFY_EVENTS_ROUTING.THANKYOU_PAGE_VIEW)&&c:a(s.SHOPIFY_EVENTS_LIST.THANKYOU_PAGE_VIEW);break;default:a(s.SHOPIFY_EVENTS_LIST.PAGE_VIEW)}}))},t.prototype.load=function(){this._trackEvents()},t}(a.default);t.default=c,(new c).load()},437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateEventData=t.isProductShareClick=t.isProductImageClicked=t.isDocumentReady=void 0;var r=n(614),o=n(497);t.isDocumentReady=function(e){var t=document.readyState;t!==o.DOCUMENT_STATE.COMPLETE&&t!==o.DOCUMENT_STATE.INTERACTIVE?document.addEventListener(o.EVENT_LISTENERS.DOM_CONTENT_LOADED,e):setTimeout(e,1)},t.isProductImageClicked=function(e){var t=e.path||e.composedPath&&e.composedPath(),n=new RegExp("".concat(o.SHOPIFY_CDN,"/s/files/.*/products/")),r=e.target,i=!1;if(t.some((function(e){return e.tagName===o.DOM_NODES_LIST.LINK})))return i;for(var a=0;a<t.length;a++){if(!r||o.HIGH_DOM_NODES.includes(r.tagName))return;var s=r,u=r.tagName===o.DOM_NODES_LIST.IMAGE&&s.src&&n.test(s.src),c=getComputedStyle(r),l=r.tagName===o.DOM_NODES_LIST.BUTTON&&c.cursor===o.ZOOM_IN_CURSOR;if(u||l){i=!0;break}r.parentElement&&(r=r.parentElement)}return i},t.isProductShareClick=function(e){for(var t="copy",n=new RegExp("(facebook|pinterest|twitter|linkedin|plus.google|instagram).com/(share|pin|intent)"),r=new RegExp("(mailto:?)"),i=e.path||e.composedPath&&e.composedPath(),a=e.target,s=!1,u=0;u<i.length;u++){if(!a||o.HIGH_DOM_NODES.includes(a.tagName))return;var c="string"==typeof a.className&&a.className.toLowerCase().includes("share")&&a.className.toLowerCase().includes(t),l=a.tagName===o.DOM_NODES_LIST.BUTTON&&"string"==typeof a.innerText&&a.innerText.toLowerCase().includes(t),f=a,d=a.tagName===o.DOM_NODES_LIST.LINK&&f.href&&(n.test(f.href)||r.test(f.href));if(c||l||d){s=!0;break}a.parentElement&&(a=a.parentElement)}return s},t.generateEventData=function(e){var t,n,i,a,s,u,c,l,f,d,p,h,v,_=e.anonymous_id,y=e.event_name,m=window,g=(new Date).toISOString(),E=null===(t=null===window||void 0===window?void 0:window.location)||void 0===t?void 0:t.search,S=new URLSearchParams(E),L=document.getElementById(o.LIFESIGHT_SDK_SCRIPT_ID);return{identifiers:{anonymous_id:_},user_agent:null===(n=null===window||void 0===window?void 0:window.navigator)||void 0===n?void 0:n.userAgent,message_id:(0,r.v4)(),message_type:"track",event_name:y,event_timestamp:g,page_url:null===(i=null===window||void 0===window?void 0:window.location)||void 0===i?void 0:i.href,utm_campaing:null!==(a=null==S?void 0:S.get("utm_campaing"))&&void 0!==a?a:"",utm_medium:null!==(s=null==S?void 0:S.get("utm_medium"))&&void 0!==s?s:"",utm_source:null!==(u=null==S?void 0:S.get("utm_source"))&&void 0!==u?u:"",utm_content:null!==(c=null==S?void 0:S.get("utm_content"))&&void 0!==c?c:"",page_title:null!==(l=null===document||void 0===document?void 0:document.title)&&void 0!==l?l:"",referrer_url:null!==(f=null===document||void 0===document?void 0:document.referrer)&&void 0!==f?f:"",pending:null,shop:null!==(p=null===(d=null==m?void 0:m.Shopify)||void 0===d?void 0:d.shop)&&void 0!==p?p:"",api_key:null!==(v=null===(h=null==L?void 0:L.dataset)||void 0===h?void 0:h.apikey)&&void 0!==v?v:""}}},669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),s=n(97),u=n(109),c=n(985),l=n(61),f=n(655),d=n(263);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,v=e.headers,_=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete v["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(g+":"+E)}var S=s(e.baseURL,e.url);function L(){if(m){var r="getAllResponseHeaders"in m?u(m.getAllResponseHeaders()):null,i={data:_&&"text"!==_&&"json"!==_?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),m=null}}if(m.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=L:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(L)},m.onabort=function(){m&&(n(l("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(l("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var T=(e.withCredentials||c(S))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;T&&(v[e.xsrfHeaderName]=T)}"setRequestHeader"in m&&r.forEach(v,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete v[t]:m.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),_&&"json"!==_&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){m&&(n(!e||e&&e.type?new d("canceled"):e),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),m.send(h)}))}},609:(e,t,n)=>{"use strict";var r=n(867),o=n(849),i=n(321),a=n(185),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(655));s.Axios=i,s.Cancel=n(263),s.CancelToken=n(972),s.isCancel=n(502),s.VERSION=n(288).version,s.all=function(e){return Promise.all(e)},s.spread=n(713),s.isAxiosError=n(268),e.exports=s,e.exports.default=s},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,n)=>{"use strict";var r=n(263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),s=n(185),u=n(875),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,n)=>{"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},61:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},572:(e,t,n)=>{"use strict";var r=n(867),o=n(527),i=n(502),a=n(655),s=n(263);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function u(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==u||(n[e]=o)})),n}},26:(e,t,n)=>{"use strict";var r=n(61);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),o=n(655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},655:(e,t,n)=>{"use strict";var r=n(867),o=n(16),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(448)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c},288:e=>{e.exports={version:"0.26.0"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},327:(e,t,n)=>{"use strict";var r=n(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},268:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:(e,t,n)=>{"use strict";var r=n(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,n)=>{"use strict";var r=n(288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},867:(e,t,n)=>{"use strict";var r=n(849),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===o.call(e)}function u(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===o.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return u(e)&&l(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===o.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:f,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)f(arguments[r],n);return t},extend:function(e,t,n){return f(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},614:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{NIL:()=>C,parse:()=>_,stringify:()=>l,v1:()=>v,v3:()=>I,v4:()=>D,v5:()=>N,validate:()=>s,version:()=>P});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)};for(var u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));const l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var f,d,p=0,h=0;const v=function(e,t,n){var r=t&&n||0,o=t||new Array(16),a=(e=e||{}).node||f,s=void 0!==e.clockseq?e.clockseq:d;if(null==a||null==s){var u=e.random||(e.rng||i)();null==a&&(a=f=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=d=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:h+1,_=c-p+(v-h)/1e4;if(_<0&&void 0===e.clockseq&&(s=s+1&16383),(_<0||c>p)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,h=v,d=s;var y=(1e4*(268435455&(c+=122192928e5))+v)%4294967296;o[r++]=y>>>24&255,o[r++]=y>>>16&255,o[r++]=y>>>8&255,o[r++]=255&y;var m=c/4294967296*1e4&268435455;o[r++]=m>>>8&255,o[r++]=255&m,o[r++]=m>>>24&15|16,o[r++]=m>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var g=0;g<6;++g)o[r+g]=a[g];return t||l(o)},_=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function y(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=_(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return l(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function m(e){return 14+(e+64>>>9<<4)+1}function g(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function E(e,t,n,r,o,i){return g((a=g(g(t,e),g(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function S(e,t,n,r,o,i,a){return E(t&n|~t&r,e,t,o,i,a)}function L(e,t,n,r,o,i,a){return E(t&r|n&~r,e,t,o,i,a)}function T(e,t,n,r,o,i,a){return E(t^n^r,e,t,o,i,a)}function O(e,t,n,r,o,i,a){return E(n^(t|~r),e,t,o,i,a)}const I=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[m(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,u=r,c=o,l=i;n=S(n,r,o,i,e[a],7,-680876936),i=S(i,n,r,o,e[a+1],12,-389564586),o=S(o,i,n,r,e[a+2],17,606105819),r=S(r,o,i,n,e[a+3],22,-1044525330),n=S(n,r,o,i,e[a+4],7,-176418897),i=S(i,n,r,o,e[a+5],12,1200080426),o=S(o,i,n,r,e[a+6],17,-1473231341),r=S(r,o,i,n,e[a+7],22,-45705983),n=S(n,r,o,i,e[a+8],7,1770035416),i=S(i,n,r,o,e[a+9],12,-1958414417),o=S(o,i,n,r,e[a+10],17,-42063),r=S(r,o,i,n,e[a+11],22,-1990404162),n=S(n,r,o,i,e[a+12],7,1804603682),i=S(i,n,r,o,e[a+13],12,-40341101),o=S(o,i,n,r,e[a+14],17,-1502002290),n=L(n,r=S(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=L(i,n,r,o,e[a+6],9,-1069501632),o=L(o,i,n,r,e[a+11],14,643717713),r=L(r,o,i,n,e[a],20,-373897302),n=L(n,r,o,i,e[a+5],5,-701558691),i=L(i,n,r,o,e[a+10],9,38016083),o=L(o,i,n,r,e[a+15],14,-660478335),r=L(r,o,i,n,e[a+4],20,-405537848),n=L(n,r,o,i,e[a+9],5,568446438),i=L(i,n,r,o,e[a+14],9,-1019803690),o=L(o,i,n,r,e[a+3],14,-187363961),r=L(r,o,i,n,e[a+8],20,1163531501),n=L(n,r,o,i,e[a+13],5,-1444681467),i=L(i,n,r,o,e[a+2],9,-51403784),o=L(o,i,n,r,e[a+7],14,1735328473),n=T(n,r=L(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=T(i,n,r,o,e[a+8],11,-2022574463),o=T(o,i,n,r,e[a+11],16,1839030562),r=T(r,o,i,n,e[a+14],23,-35309556),n=T(n,r,o,i,e[a+1],4,-1530992060),i=T(i,n,r,o,e[a+4],11,1272893353),o=T(o,i,n,r,e[a+7],16,-155497632),r=T(r,o,i,n,e[a+10],23,-1094730640),n=T(n,r,o,i,e[a+13],4,681279174),i=T(i,n,r,o,e[a],11,-358537222),o=T(o,i,n,r,e[a+3],16,-722521979),r=T(r,o,i,n,e[a+6],23,76029189),n=T(n,r,o,i,e[a+9],4,-640364487),i=T(i,n,r,o,e[a+12],11,-421815835),o=T(o,i,n,r,e[a+15],16,530742520),n=O(n,r=T(r,o,i,n,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=O(i,n,r,o,e[a+7],10,1126891415),o=O(o,i,n,r,e[a+14],15,-1416354905),r=O(r,o,i,n,e[a+5],21,-57434055),n=O(n,r,o,i,e[a+12],6,1700485571),i=O(i,n,r,o,e[a+3],10,-1894986606),o=O(o,i,n,r,e[a+10],15,-1051523),r=O(r,o,i,n,e[a+1],21,-2054922799),n=O(n,r,o,i,e[a+8],6,1873313359),i=O(i,n,r,o,e[a+15],10,-30611744),o=O(o,i,n,r,e[a+6],15,-1560198380),r=O(r,o,i,n,e[a+13],21,1309151649),n=O(n,r,o,i,e[a+4],6,-145523070),i=O(i,n,r,o,e[a+11],10,-1120210379),o=O(o,i,n,r,e[a+2],15,718787259),r=O(r,o,i,n,e[a+9],21,-343485551),n=g(n,s),r=g(r,u),o=g(o,c),i=g(i,l)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(m(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),D=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return l(r)};function b(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function w(e,t){return e<<t|e>>>32-t}const N=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=s[f][p];for(var h=16;h<80;++h)d[h]=w(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var v=n[0],_=n[1],y=n[2],m=n[3],g=n[4],E=0;E<80;++E){var S=Math.floor(E/20),L=w(v,5)+b(S,_,y,m)+g+t[S]+d[E]>>>0;g=m,m=y,y=w(_,30)>>>0,_=v,v=L}n[0]=n[0]+v>>>0,n[1]=n[1]+_>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+m>>>0,n[4]=n[4]+g>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),C="00000000-0000-0000-0000-000000000000",P=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r=n(853);Lifesight=r})();

Back to list