@wannaby/wanna-sdk 2.7.1 → 2.7.3-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sdk/sdk.js CHANGED
@@ -1,502 +1,226 @@
1
1
  /*! Copyright © 2023 WANNABY INC. All rights reserved. */
2
- !function webpackUniversalModuleDefinition(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports.wanna=n():t.wanna=n()}("undefined"!==typeof self?self:this,(()=>(()=>{var t={"2acb82eaab1f864ee2e5":function(t,n,o){var i,l,c
3
- "undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,l=[n,o("6a8587efdf375fa70471")],i=function(t,n){"use strict"
4
- function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]
5
- for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},_extends.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
6
- var _default=t=>(0,n.h)("svg",_extends({width:40,height:40,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m20 21.415 6.76 6.762 1.415-1.414L21.413 20l6.762-6.763-1.414-1.414L20 18.586l-6.761-6.763-1.415 1.414L18.585 20l-6.762 6.763 1.415 1.414 6.761-6.762Z",fill:"currentColor"}))
7
- t.default=_default},void 0===(c="function"===typeof i?i.apply(n,l):i)||(t.exports=c)},"00c6b9d533789335552a":function(t,n,o){var i,l,c
8
- "undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,l=[n,o("6a8587efdf375fa70471")],i=function(t,n){"use strict"
9
- function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]
10
- for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},_extends.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
11
- var _default=t=>(0,n.h)("svg",_extends({width:44,height:44,xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("circle",{cx:22,cy:22,r:11,stroke:"currentColor",strokeWidth:2,fill:"none"}),(0,n.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 2a1 1 0 0 0-1 1v7a1 1 0 1 0 2 0v-7a1 1 0 0 0-1-1Z",fill:"currentColor"}))
12
- t.default=_default},void 0===(c="function"===typeof i?i.apply(n,l):i)||(t.exports=c)},"628eefe45d41851e20ae":function(t,n,o){var i,l,c
13
- "undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,l=[n,o("6a8587efdf375fa70471")],i=function(t,n){"use strict"
14
- function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]
15
- for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},_extends.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0
16
- var _default=t=>(0,n.h)("svg",_extends({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M6.652 8.943 10.76 3.61A1 1 0 0 0 9.967 2h-8a1 1 0 0 0-.807 1.59l3.892 5.333a1 1 0 0 0 1.6.02Z",fill:"currentColor"}))
17
- t.default=_default},void 0===(c="function"===typeof i?i.apply(n,l):i)||(t.exports=c)},"999bb982dce73eb05db5":function(t,n){var o,i,l
18
- i=[],void 0===(l="function"===typeof(o=function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i
19
- function indexOrEnd(t,n){return-1===t.indexOf(n)?t.length:t.indexOf(n)}function split(t){var n=t.replace(/^v/,"").replace(/\+.*$/,""),o=indexOrEnd(n,"-"),i=n.substring(0,o).split(".")
20
- return i.push(n.substring(o+1)),i}function tryParse(t){return isNaN(Number(t))?t:Number(t)}function validate(n){if("string"!==typeof n)throw new TypeError("Invalid argument expected string")
21
- if(!t.test(n))throw new Error("Invalid argument not valid semver ('"+n+"' received)")}function compareVersions(t,n){[t,n].forEach(validate)
22
- for(var o=split(t),i=split(n),l=0;l<Math.max(o.length-1,i.length-1);l++){var c=parseInt(o[l]||0,10),u=parseInt(i[l]||0,10)
23
- if(c>u)return 1
24
- if(u>c)return-1}var f=o[o.length-1],E=i[i.length-1]
25
- if(f&&E){var D=f.split(".").map(tryParse),R=E.split(".").map(tryParse)
26
- for(l=0;l<Math.max(D.length,R.length);l++){if(void 0===D[l]||"string"===typeof R[l]&&"number"===typeof D[l])return-1
27
- if(void 0===R[l]||"string"===typeof D[l]&&"number"===typeof R[l])return 1
28
- if(D[l]>R[l])return 1
29
- if(R[l]>D[l])return-1}}else if(f||E)return f?-1:1
30
- return 0}var n=[">",">=","=","<","<="],o={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]}
31
- function validateOperator(t){if("string"!==typeof t)throw new TypeError("Invalid operator type, expected string but got "+typeof t)
32
- if(-1===n.indexOf(t))throw new TypeError("Invalid operator, expected one of "+n.join("|"))}return compareVersions.validate=function(n){return"string"===typeof n&&t.test(n)},compareVersions.compare=function(t,n,i){validateOperator(i)
33
- var l=compareVersions(t,n)
34
- return o[i].indexOf(l)>-1},compareVersions})?o.apply(n,i):o)||(t.exports=l)},"937975e4c4c140de5066":t=>{"use strict"
35
- t.exports=function(t){var n=[]
36
- return n.toString=function toString(){return this.map((function(n){var o=t(n)
37
- return n[2]?"@media ".concat(n[2]," {").concat(o,"}"):o})).join("")},n.i=function(t,o,i){"string"===typeof t&&(t=[[null,t,""]])
38
- var l={}
39
- if(i)for(var c=0;c<this.length;c++){var u=this[c][0]
40
- null!=u&&(l[u]=!0)}for(var f=0;f<t.length;f++){var E=[].concat(t[f])
41
- i&&l[E[0]]||(o&&(E[2]?E[2]="".concat(o," and ").concat(E[2]):E[2]=o),n.push(E))}},n}},"365ab4f53bd46678beaa":t=>{"use strict"
42
- function _slicedToArray(t,n){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,n){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return
43
- var o=[],i=!0,l=!1,c=void 0
44
- try{for(var u,f=t[Symbol.iterator]();!(i=(u=f.next()).done)&&(o.push(u.value),!n||o.length!==n);i=!0);}catch(t){l=!0,c=t}finally{try{i||null==f.return||f.return()}finally{if(l)throw c}}return o}(t,n)||function _unsupportedIterableToArray(t,n){if(!t)return
45
- if("string"===typeof t)return _arrayLikeToArray(t,n)
46
- var o=Object.prototype.toString.call(t).slice(8,-1)
47
- "Object"===o&&t.constructor&&(o=t.constructor.name)
48
- if("Map"===o||"Set"===o)return Array.from(t)
49
- if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,n)}(t,n)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(t,n){(null==n||n>t.length)&&(n=t.length)
50
- for(var o=0,i=new Array(n);o<n;o++)i[o]=t[o]
51
- return i}t.exports=function cssWithMappingToString(t){var n=_slicedToArray(t,4),o=n[1],i=n[3]
52
- if("function"===typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),u="/*# ".concat(c," */"),f=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}))
53
- return[o].concat(f).concat([u]).join("\n")}return[o].join("\n")}},"6a8587efdf375fa70471":(t,n,o)=>{"use strict"
54
- o.r(n),o.d(n,{Component:()=>d,Fragment:()=>p,cloneElement:()=>q,createContext:()=>B,createElement:()=>h,createRef:()=>y,h:()=>h,hydrate:()=>S,isValidElement:()=>u,options:()=>l,render:()=>P,toChildArray:()=>x})
55
- var i,l,c,u,f,E,D,R={},U=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i
56
- function s(t,n){for(var o in n)t[o]=n[o]
57
- return t}function a(t){var n=t.parentNode
58
- n&&n.removeChild(t)}function h(t,n,o){var l,c,u,f={}
59
- for(u in n)"key"==u?l=n[u]:"ref"==u?c=n[u]:f[u]=n[u]
60
- if(arguments.length>2&&(f.children=arguments.length>3?i.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===f[u]&&(f[u]=t.defaultProps[u])
61
- return v(t,f,l,c,null)}function v(t,n,o,i,u){var f={type:t,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++c:u}
62
- return null==u&&null!=l.vnode&&l.vnode(f),f}function y(){return{current:null}}function p(t){return t.children}function d(t,n){this.props=t,this.context=n}function _(t,n){if(null==n)return t.__?_(t.__,t.__.__k.indexOf(t)+1):null
63
- for(var o;n<t.__k.length;n++)if(null!=(o=t.__k[n])&&null!=o.__e)return o.__e
64
- return"function"==typeof t.type?_(t):null}function k(t){var n,o
65
- if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(o=t.__k[n])&&null!=o.__e){t.__e=t.__c.base=o.__e
66
- break}return k(t)}}function b(t){(!t.__d&&(t.__d=!0)&&f.push(t)&&!g.__r++||E!==l.debounceRendering)&&((E=l.debounceRendering)||setTimeout)(g)}function g(){for(var t;g.__r=f.length;)t=f.sort((function(t,n){return t.__v.__b-n.__v.__b})),f=[],t.some((function(t){var n,o,i,l,c,u
67
- t.__d&&(c=(l=(n=t).__v).__e,(u=n.__P)&&(o=[],(i=s({},l)).__v=l.__v+1,j(u,l,i,n.__n,void 0!==u.ownerSVGElement,null!=l.__h?[c]:null,o,null==c?_(l):c,l.__h),z(o,l),l.__e!=c&&k(l)))}))}function w(t,n,o,i,l,c,u,f,E,D){var V,G,W,K,Y,Z,J,Q=i&&i.__k||U,X=Q.length
68
- for(o.__k=[],V=0;V<n.length;V++)if(null!=(K=o.__k[V]=null==(K=n[V])||"boolean"==typeof K?null:"string"==typeof K||"number"==typeof K||"bigint"==typeof K?v(null,K,null,null,K):Array.isArray(K)?v(p,{children:K},null,null,null):K.__b>0?v(K.type,K.props,K.key,null,K.__v):K)){if(K.__=o,K.__b=o.__b+1,null===(W=Q[V])||W&&K.key==W.key&&K.type===W.type)Q[V]=void 0
69
- else for(G=0;G<X;G++){if((W=Q[G])&&K.key==W.key&&K.type===W.type){Q[G]=void 0
70
- break}W=null}j(t,K,W=W||R,l,c,u,f,E,D),Y=K.__e,(G=K.ref)&&W.ref!=G&&(J||(J=[]),W.ref&&J.push(W.ref,null,K),J.push(G,K.__c||Y,K)),null!=Y?(null==Z&&(Z=Y),"function"==typeof K.type&&K.__k===W.__k?K.__d=E=m(K,E,t):E=A(t,K,W,Q,Y,E),"function"==typeof o.type&&(o.__d=E)):E&&W.__e==E&&E.parentNode!=t&&(E=_(W))}for(o.__e=Z,V=X;V--;)null!=Q[V]&&("function"==typeof o.type&&null!=Q[V].__e&&Q[V].__e==o.__d&&(o.__d=_(i,V+1)),N(Q[V],Q[V]))
71
- if(J)for(V=0;V<J.length;V++)M(J[V],J[++V],J[++V])}function m(t,n,o){for(var i,l=t.__k,c=0;l&&c<l.length;c++)(i=l[c])&&(i.__=t,n="function"==typeof i.type?m(i,n,o):A(o,i,i,l,i.__e,n))
72
- return n}function x(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){x(t,n)})):n.push(t)),n}function A(t,n,o,i,l,c){var u,f,E
73
- if(void 0!==n.__d)u=n.__d,n.__d=void 0
74
- else if(null==o||l!=c||null==l.parentNode)e:if(null==c||c.parentNode!==t)t.appendChild(l),u=null
75
- else{for(f=c,E=0;(f=f.nextSibling)&&E<i.length;E+=2)if(f==l)break e
76
- t.insertBefore(l,c),u=c}return void 0!==u?u:l.nextSibling}function $(t,n,o){"-"===n[0]?t.setProperty(n,o):t[n]=null==o?"":"number"!=typeof o||V.test(n)?o:o+"px"}function H(t,n,o,i,l){var c
77
- e:if("style"===n)if("string"==typeof o)t.style.cssText=o
78
- else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(n in i)o&&n in o||$(t.style,n,"")
79
- if(o)for(n in o)i&&o[n]===i[n]||$(t.style,n,o[n])}else if("o"===n[0]&&"n"===n[1])c=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+c]=o,o?i||t.addEventListener(n,c?T:I,c):t.removeEventListener(n,c?T:I,c)
80
- else if("dangerouslySetInnerHTML"!==n){if(l)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s")
81
- else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==o?"":o
82
- break e}catch(t){}"function"==typeof o||(null!=o&&(!1!==o||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,o):t.removeAttribute(n))}}function I(t){this.l[t.type+!1](l.event?l.event(t):t)}function T(t){this.l[t.type+!0](l.event?l.event(t):t)}function j(t,n,o,i,c,u,f,E,D){var R,U,V,G,W,K,Y,Z,J,Q,X,ee,te,re=n.type
83
- if(void 0!==n.constructor)return null
84
- null!=o.__h&&(D=o.__h,E=n.__e=o.__e,n.__h=null,u=[E]),(R=l.__b)&&R(n)
85
- try{e:if("function"==typeof re){if(Z=n.props,J=(R=re.contextType)&&i[R.__c],Q=R?J?J.props.value:R.__:i,o.__c?Y=(U=n.__c=o.__c).__=U.__E:("prototype"in re&&re.prototype.render?n.__c=U=new re(Z,Q):(n.__c=U=new d(Z,Q),U.constructor=re,U.render=O),J&&J.sub(U),U.props=Z,U.state||(U.state={}),U.context=Q,U.__n=i,V=U.__d=!0,U.__h=[]),null==U.__s&&(U.__s=U.state),null!=re.getDerivedStateFromProps&&(U.__s==U.state&&(U.__s=s({},U.__s)),s(U.__s,re.getDerivedStateFromProps(Z,U.__s))),G=U.props,W=U.state,V)null==re.getDerivedStateFromProps&&null!=U.componentWillMount&&U.componentWillMount(),null!=U.componentDidMount&&U.__h.push(U.componentDidMount)
86
- else{if(null==re.getDerivedStateFromProps&&Z!==G&&null!=U.componentWillReceiveProps&&U.componentWillReceiveProps(Z,Q),!U.__e&&null!=U.shouldComponentUpdate&&!1===U.shouldComponentUpdate(Z,U.__s,Q)||n.__v===o.__v){U.props=Z,U.state=U.__s,n.__v!==o.__v&&(U.__d=!1),U.__v=n,n.__e=o.__e,n.__k=o.__k,n.__k.forEach((function(t){t&&(t.__=n)})),U.__h.length&&f.push(U)
87
- break e}null!=U.componentWillUpdate&&U.componentWillUpdate(Z,U.__s,Q),null!=U.componentDidUpdate&&U.__h.push((function(){U.componentDidUpdate(G,W,K)}))}if(U.context=Q,U.props=Z,U.__v=n,U.__P=t,X=l.__r,ee=0,"prototype"in re&&re.prototype.render)U.state=U.__s,U.__d=!1,X&&X(n),R=U.render(U.props,U.state,U.context)
88
- else do{U.__d=!1,X&&X(n),R=U.render(U.props,U.state,U.context),U.state=U.__s}while(U.__d&&++ee<25)
89
- U.state=U.__s,null!=U.getChildContext&&(i=s(s({},i),U.getChildContext())),V||null==U.getSnapshotBeforeUpdate||(K=U.getSnapshotBeforeUpdate(G,W)),te=null!=R&&R.type===p&&null==R.key?R.props.children:R,w(t,Array.isArray(te)?te:[te],n,o,i,c,u,f,E,D),U.base=n.__e,n.__h=null,U.__h.length&&f.push(U),Y&&(U.__E=U.__=null),U.__e=!1}else null==u&&n.__v===o.__v?(n.__k=o.__k,n.__e=o.__e):n.__e=L(o.__e,n,o,i,c,u,f,D);(R=l.diffed)&&R(n)}catch(t){n.__v=null,(D||null!=u)&&(n.__e=E,n.__h=!!D,u[u.indexOf(E)]=null),l.__e(t,n,o)}}function z(t,n){l.__c&&l.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){l.__e(t,n.__v)}}))}function L(t,n,o,l,c,u,f,E){var D,U,V,G=o.props,W=n.props,K=n.type,Y=0
90
- if("svg"===K&&(c=!0),null!=u)for(;Y<u.length;Y++)if((D=u[Y])&&"setAttribute"in D==!!K&&(K?D.localName===K:3===D.nodeType)){t=D,u[Y]=null
91
- break}if(null==t){if(null===K)return document.createTextNode(W)
92
- t=c?document.createElementNS("http://www.w3.org/2000/svg",K):document.createElement(K,W.is&&W),u=null,E=!1}if(null===K)G===W||E&&t.data===W||(t.data=W)
93
- else{if(u=u&&i.call(t.childNodes),U=(G=o.props||R).dangerouslySetInnerHTML,V=W.dangerouslySetInnerHTML,!E){if(null!=u)for(G={},Y=0;Y<t.attributes.length;Y++)G[t.attributes[Y].name]=t.attributes[Y].value;(V||U)&&(V&&(U&&V.__html==U.__html||V.__html===t.innerHTML)||(t.innerHTML=V&&V.__html||""))}if(function C(t,n,o,i,l){var c
94
- for(c in o)"children"===c||"key"===c||c in n||H(t,c,null,o[c],i)
95
- for(c in n)l&&"function"!=typeof n[c]||"children"===c||"key"===c||"value"===c||"checked"===c||o[c]===n[c]||H(t,c,n[c],o[c],i)}(t,W,G,c,E),V)n.__k=[]
96
- else if(Y=n.props.children,w(t,Array.isArray(Y)?Y:[Y],n,o,l,c&&"foreignObject"!==K,u,f,u?u[0]:o.__k&&_(o,0),E),null!=u)for(Y=u.length;Y--;)null!=u[Y]&&a(u[Y])
97
- E||("value"in W&&void 0!==(Y=W.value)&&(Y!==t.value||"progress"===K&&!Y||"option"===K&&Y!==G.value)&&H(t,"value",Y,G.value,!1),"checked"in W&&void 0!==(Y=W.checked)&&Y!==t.checked&&H(t,"checked",Y,G.checked,!1))}return t}function M(t,n,o){try{"function"==typeof t?t(n):t.current=n}catch(t){l.__e(t,o)}}function N(t,n,o){var i,c
98
- if(l.unmount&&l.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||M(i,null,n)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){l.__e(t,n)}i.base=i.__P=null}if(i=t.__k)for(c=0;c<i.length;c++)i[c]&&N(i[c],n,"function"!=typeof t.type)
99
- o||null==t.__e||a(t.__e),t.__e=t.__d=void 0}function O(t,n,o){return this.constructor(t,o)}function P(t,n,o){var c,u,f
100
- l.__&&l.__(t,n),u=(c="function"==typeof o)?null:o&&o.__k||n.__k,f=[],j(n,t=(!c&&o||n).__k=h(p,null,[t]),u||R,R,void 0!==n.ownerSVGElement,!c&&o?[o]:u?null:n.firstChild?i.call(n.childNodes):null,f,!c&&o?o:u?u.__e:n.firstChild,c),z(f,t)}function S(t,n){P(t,n,S)}function q(t,n,o){var l,c,u,f=s({},t.props)
101
- for(u in n)"key"==u?l=n[u]:"ref"==u?c=n[u]:f[u]=n[u]
102
- return arguments.length>2&&(f.children=arguments.length>3?i.call(arguments,2):o),v(t.type,f,l||t.key,c||t.ref,null)}function B(t,n){var o={__c:n="__cC"+D++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t){var o,i
103
- return this.getChildContext||(o=[],(i={})[n]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&o.some(b)},this.sub=function(t){o.push(t)
104
- var n=t.componentWillUnmount
105
- t.componentWillUnmount=function(){o.splice(o.indexOf(t),1),n&&n.call(t)}}),t.children}}
106
- return o.Provider.__=o.Consumer.contextType=o}i=U.slice,l={__e:function(t,n,o,i){for(var l,c,u;n=n.__;)if((l=n.__c)&&!l.__)try{if((c=l.constructor)&&null!=c.getDerivedStateFromError&&(l.setState(c.getDerivedStateFromError(t)),u=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(t,i||{}),u=l.__d),u)return l.__E=l}catch(n){t=n}throw t}},c=0,u=function(t){return null!=t&&void 0===t.constructor},d.prototype.setState=function(t,n){var o
107
- o=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof t&&(t=t(s({},o),this.props)),t&&s(o,t),null!=t&&this.__v&&(n&&this.__h.push(n),b(this))},d.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),b(this))},d.prototype.render=p,f=[],g.__r=0,D=0},"7d493827738a5e0f9d22":function(t,n,o){var i
108
- !function(l,c){"use strict"
109
- var u="function",f="undefined",E="object",D="string",R="major",U="model",V="name",G="type",W="vendor",K="version",Y="architecture",Z="console",J="mobile",Q="tablet",X="smarttv",ee="wearable",te="embedded",re="Amazon",ne="Apple",oe="ASUS",ie="BlackBerry",ae="Browser",se="Chrome",le="Firefox",ce="Google",_e="Huawei",ue="LG",de="Microsoft",fe="Motorola",he="Opera",pe="Samsung",Ae="Sharp",Ee="Sony",me="Xiaomi",ve="Zebra",be="Facebook",ge="Chromium OS",we="Mac OS",enumerize=function(t){for(var n={},o=0;o<t.length;o++)n[t[o].toUpperCase()]=t[o]
110
- return n},has=function(t,n){return typeof t===D&&-1!==lowerize(n).indexOf(lowerize(t))},lowerize=function(t){return t.toLowerCase()},trim=function(t,n){if(typeof t===D)return t=t.replace(/^\s\s*/,""),typeof n===f?t:t.substring(0,350)},rgxMapper=function(t,n){for(var o,i,l,f,D,R,U=0;U<n.length&&!D;){var V=n[U],G=n[U+1]
111
- for(o=i=0;o<V.length&&!D&&V[o];)if(D=V[o++].exec(t))for(l=0;l<G.length;l++)R=D[++i],typeof(f=G[l])===E&&f.length>0?2===f.length?typeof f[1]==u?this[f[0]]=f[1].call(this,R):this[f[0]]=f[1]:3===f.length?typeof f[1]!==u||f[1].exec&&f[1].test?this[f[0]]=R?R.replace(f[1],f[2]):c:this[f[0]]=R?f[1].call(this,R,f[2]):c:4===f.length&&(this[f[0]]=R?f[3].call(this,R.replace(f[1],f[2])):c):this[f]=R||c
112
- U+=2}},strMapper=function(t,n){for(var o in n)if(typeof n[o]===E&&n[o].length>0){for(var i=0;i<n[o].length;i++)if(has(n[o][i],t))return"?"===o?c:o}else if(has(n[o],t))return"?"===o?c:o
113
- return t},Ce={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ye={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[K,[V,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[K,[V,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[V,K],[/opios[\/ ]+([\w\.]+)/i],[K,[V,he+" Mini"]],[/\bopr\/([\w\.]+)/i],[K,[V,he]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[V,K],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[K,[V,"UC"+ae]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[K,[V,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[K,[V,"WeChat"]],[/konqueror\/([\w\.]+)/i],[K,[V,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[K,[V,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[K,[V,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[V,/(.+)/,"$1 Secure "+ae],K],[/\bfocus\/([\w\.]+)/i],[K,[V,le+" Focus"]],[/\bopt\/([\w\.]+)/i],[K,[V,he+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[K,[V,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[K,[V,"Dolphin"]],[/coast\/([\w\.]+)/i],[K,[V,he+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[K,[V,"MIUI "+ae]],[/fxios\/([-\w\.]+)/i],[K,[V,le]],[/\bqihu|(qi?ho?o?|360)browser/i],[[V,"360 "+ae]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[V,/(.+)/,"$1 "+ae],K],[/(comodo_dragon)\/([\w\.]+)/i],[[V,/_/g," "],K],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[V,K],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[V],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[V,be],K],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[V,K],[/\bgsa\/([\w\.]+) .*safari\//i],[K,[V,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[K,[V,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[K,[V,se+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[V,se+" WebView"],K],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[K,[V,"Android "+ae]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[V,K],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[K,[V,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[K,V],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[V,[K,strMapper,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[V,K],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[V,"Netscape"],K],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[K,[V,le+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[V,K],[/(cobalt)\/([\w\.]+)/i],[V,[K,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[Y,"amd64"]],[/(ia32(?=;))/i],[[Y,lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[Y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[Y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[Y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[Y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[Y,/ower/,"",lowerize]],[/(sun4\w)[;\)]/i],[[Y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[Y,lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[U,[W,pe],[G,Q]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[U,[W,pe],[G,J]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[U,[W,ne],[G,J]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[U,[W,ne],[G,Q]],[/(macintosh);/i],[U,[W,ne]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[U,[W,Ae],[G,J]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[U,[W,_e],[G,Q]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[U,[W,_e],[G,J]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[U,/_/g," "],[W,me],[G,J]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[U,/_/g," "],[W,me],[G,Q]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[U,[W,"OPPO"],[G,J]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[U,[W,"Vivo"],[G,J]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[U,[W,"Realme"],[G,J]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[U,[W,fe],[G,J]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[U,[W,fe],[G,Q]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[U,[W,ue],[G,Q]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[U,[W,ue],[G,J]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[U,[W,"Lenovo"],[G,Q]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[U,/_/g," "],[W,"Nokia"],[G,J]],[/(pixel c)\b/i],[U,[W,ce],[G,Q]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[U,[W,ce],[G,J]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[U,[W,Ee],[G,J]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[U,"Xperia Tablet"],[W,Ee],[G,Q]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[U,[W,"OnePlus"],[G,J]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[U,[W,re],[G,Q]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[U,/(.+)/g,"Fire Phone $1"],[W,re],[G,J]],[/(playbook);[-\w\),; ]+(rim)/i],[U,W,[G,Q]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[U,[W,ie],[G,J]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[U,[W,oe],[G,Q]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[U,[W,oe],[G,J]],[/(nexus 9)/i],[U,[W,"HTC"],[G,Q]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[W,[U,/_/g," "],[G,J]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[U,[W,"Acer"],[G,Q]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[U,[W,"Meizu"],[G,J]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[W,U,[G,J]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[W,U,[G,Q]],[/(surface duo)/i],[U,[W,de],[G,Q]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[U,[W,"Fairphone"],[G,J]],[/(u304aa)/i],[U,[W,"AT&T"],[G,J]],[/\bsie-(\w*)/i],[U,[W,"Siemens"],[G,J]],[/\b(rct\w+) b/i],[U,[W,"RCA"],[G,Q]],[/\b(venue[\d ]{2,7}) b/i],[U,[W,"Dell"],[G,Q]],[/\b(q(?:mv|ta)\w+) b/i],[U,[W,"Verizon"],[G,Q]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[U,[W,"Barnes & Noble"],[G,Q]],[/\b(tm\d{3}\w+) b/i],[U,[W,"NuVision"],[G,Q]],[/\b(k88) b/i],[U,[W,"ZTE"],[G,Q]],[/\b(nx\d{3}j) b/i],[U,[W,"ZTE"],[G,J]],[/\b(gen\d{3}) b.+49h/i],[U,[W,"Swiss"],[G,J]],[/\b(zur\d{3}) b/i],[U,[W,"Swiss"],[G,Q]],[/\b((zeki)?tb.*\b) b/i],[U,[W,"Zeki"],[G,Q]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[W,"Dragon Touch"],U,[G,Q]],[/\b(ns-?\w{0,9}) b/i],[U,[W,"Insignia"],[G,Q]],[/\b((nxa|next)-?\w{0,9}) b/i],[U,[W,"NextBook"],[G,Q]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[W,"Voice"],U,[G,J]],[/\b(lvtel\-)?(v1[12]) b/i],[[W,"LvTel"],U,[G,J]],[/\b(ph-1) /i],[U,[W,"Essential"],[G,J]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[U,[W,"Envizen"],[G,Q]],[/\b(trio[-\w\. ]+) b/i],[U,[W,"MachSpeed"],[G,Q]],[/\btu_(1491) b/i],[U,[W,"Rotor"],[G,Q]],[/(shield[\w ]+) b/i],[U,[W,"Nvidia"],[G,Q]],[/(sprint) (\w+)/i],[W,U,[G,J]],[/(kin\.[onetw]{3})/i],[[U,/\./g," "],[W,de],[G,J]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[U,[W,ve],[G,Q]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[U,[W,ve],[G,J]],[/smart-tv.+(samsung)/i],[W,[G,X]],[/hbbtv.+maple;(\d+)/i],[[U,/^/,"SmartTV"],[W,pe],[G,X]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[W,ue],[G,X]],[/(apple) ?tv/i],[W,[U,ne+" TV"],[G,X]],[/crkey/i],[[U,se+"cast"],[W,ce],[G,X]],[/droid.+aft(\w)( bui|\))/i],[U,[W,re],[G,X]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[U,[W,Ae],[G,X]],[/(bravia[\w ]+)( bui|\))/i],[U,[W,Ee],[G,X]],[/(mitv-\w{5}) bui/i],[U,[W,me],[G,X]],[/Hbbtv.*(technisat) (.*);/i],[W,U,[G,X]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[W,trim],[U,trim],[G,X]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[G,X]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[W,U,[G,Z]],[/droid.+; (shield) bui/i],[U,[W,"Nvidia"],[G,Z]],[/(playstation [345portablevi]+)/i],[U,[W,Ee],[G,Z]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[U,[W,de],[G,Z]],[/((pebble))app/i],[W,U,[G,ee]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[U,[W,ne],[G,ee]],[/droid.+; (glass) \d/i],[U,[W,ce],[G,ee]],[/droid.+; (wt63?0{2,3})\)/i],[U,[W,ve],[G,ee]],[/(quest( 2| pro)?)/i],[U,[W,be],[G,ee]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[W,[G,te]],[/(aeobc)\b/i],[U,[W,re],[G,te]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[U,[G,J]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[U,[G,Q]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[G,Q]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[G,J]],[/(android[-\w\. ]{0,9});.+buil/i],[U,[W,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[K,[V,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[K,[V,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[V,K],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[K,V]],os:[[/microsoft (windows) (vista|xp)/i],[V,K],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[V,[K,strMapper,Ce]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[V,"Windows"],[K,strMapper,Ce]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[K,/_/g,"."],[V,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[V,we],[K,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[K,V],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[V,K],[/\(bb(10);/i],[K,[V,ie]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[K,[V,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[K,[V,le+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[K,[V,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[K,[V,"watchOS"]],[/crkey\/([\d\.]+)/i],[K,[V,se+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[V,ge],K],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[V,K],[/(sunos) ?([\w\.\d]*)/i],[[V,"Solaris"],K],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[V,K]]},UAParser=function(t,n){if(typeof t===E&&(n=t,t=c),!(this instanceof UAParser))return new UAParser(t,n).getResult()
114
- var o=typeof l!==f&&l.navigator?l.navigator:c,i=t||(o&&o.userAgent?o.userAgent:""),Z=o&&o.userAgentData?o.userAgentData:c,X=n?function(t,n){var o={}
115
- for(var i in t)n[i]&&n[i].length%2===0?o[i]=n[i].concat(t[i]):o[i]=t[i]
116
- return o}(ye,n):ye,ee=o&&o.userAgent==i
117
- return this.getBrowser=function(){var t,n={}
118
- return n[V]=c,n[K]=c,rgxMapper.call(n,i,X.browser),n[R]=typeof(t=n[K])===D?t.replace(/[^\d\.]/g,"").split(".")[0]:c,ee&&o&&o.brave&&typeof o.brave.isBrave==u&&(n[V]="Brave"),n},this.getCPU=function(){var t={}
119
- return t[Y]=c,rgxMapper.call(t,i,X.cpu),t},this.getDevice=function(){var t={}
120
- return t[W]=c,t[U]=c,t[G]=c,rgxMapper.call(t,i,X.device),ee&&!t[G]&&Z&&Z.mobile&&(t[G]=J),ee&&"Macintosh"==t[U]&&o&&typeof o.standalone!==f&&o.maxTouchPoints&&o.maxTouchPoints>2&&(t[U]="iPad",t[G]=Q),t},this.getEngine=function(){var t={}
121
- return t[V]=c,t[K]=c,rgxMapper.call(t,i,X.engine),t},this.getOS=function(){var t={}
122
- return t[V]=c,t[K]=c,rgxMapper.call(t,i,X.os),ee&&!t[V]&&Z&&"Unknown"!=Z.platform&&(t[V]=Z.platform.replace(/chrome os/i,ge).replace(/macos/i,we)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(t){return i=typeof t===D&&t.length>350?trim(t,350):t,this},this.setUA(i),this}
123
- UAParser.VERSION="1.0.35",UAParser.BROWSER=enumerize([V,K,R]),UAParser.CPU=enumerize([Y]),UAParser.DEVICE=enumerize([U,W,G,Z,J,X,Q,ee,te]),UAParser.ENGINE=UAParser.OS=enumerize([V,K]),typeof n!==f?(t.exports&&(n=t.exports=UAParser),n.UAParser=UAParser):o.amdO?(i=function(){return UAParser}.call(n,o,n,t))===c||(t.exports=i):typeof l!==f&&(l.UAParser=UAParser)
124
- var Te=typeof l!==f&&(l.jQuery||l.Zepto)
125
- if(Te&&!Te.ua){var Se=new UAParser
126
- Te.ua=Se.getResult(),Te.ua.get=function(){return Se.getUA()},Te.ua.set=function(t){Se.setUA(t)
127
- var n=Se.getResult()
128
- for(var o in n)Te.ua[o]=n[o]}}}("object"===typeof window?window:this)},d5e9054b262f472d997d:(t,n)=>{var o
129
- !function(){"use strict"
130
- var i={}.hasOwnProperty
131
- function classNames(){for(var t=[],n=0;n<arguments.length;n++){var o=arguments[n]
132
- if(o){var l=typeof o
133
- if("string"===l||"number"===l)t.push(o)
134
- else if(Array.isArray(o)){if(o.length){var c=classNames.apply(null,o)
135
- c&&t.push(c)}}else if("object"===l){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){t.push(o.toString())
136
- continue}for(var u in o)i.call(o,u)&&o[u]&&t.push(u)}}}return t.join(" ")}t.exports?(classNames.default=classNames,t.exports=classNames):void 0===(o=function(){return classNames}.apply(n,[]))||(t.exports=o)}()},"77784176578a0f60a72f":(t,n,o)=>{"use strict"
137
- o.r(n),o.d(n,{default:()=>f})
138
- var i=o("365ab4f53bd46678beaa"),l=o.n(i),c=o("937975e4c4c140de5066"),u=o.n(c)()(l())
139
- u.push([t.id,".styles-module__container__nKw-I{display:flex;flex-direction:column;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}.styles-module__container__nKw-I *{margin:0;padding:0}.styles-module__container__nKw-I *,.styles-module__container__nKw-I ::before,.styles-module__container__nKw-I ::after{box-sizing:border-box}","",{version:3,sources:["webpack://./../public-sdk/src/wristMeasurement/components/App/styles.module.scss"],names:[],mappings:"AAAA,iCAAW,YAAY,CAAC,qBAAqB,CAAC,UAAU,CAAC,WAAW,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,mCAAa,QAAQ,CAAC,SAAS,CAAC,sHAAoD,qBAAqB",sourcesContent:[".container{display:flex;flex-direction:column;width:100%;height:100%;touch-action:none;-webkit-user-select:none;user-select:none}.container *{margin:0;padding:0}.container *,.container ::before,.container ::after{box-sizing:border-box}"],sourceRoot:""}]),u.locals={container:"styles-module__container__nKw-I"}
140
- const f=u},"8e4c1739547f32704f9a":(t,n,o)=>{"use strict"
141
- o.r(n),o.d(n,{default:()=>f})
142
- var i=o("365ab4f53bd46678beaa"),l=o.n(i),c=o("937975e4c4c140de5066"),u=o.n(c)()(l())
143
- u.push([t.id,".styles-module__container__u-yuQ{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;font-size:20px;line-height:120%;background:var(--background-color);color:var(--primary-color);position:fixed;z-index:999}.styles-module__label__090Aq{margin-bottom:40px}","",{version:3,sources:["webpack://./../public-sdk/src/wristMeasurement/components/PortraitOrientation/styles.module.scss"],names:[],mappings:"AAAA,iCAAW,YAAY,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,UAAU,CAAC,WAAW,CAAC,cAAc,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,0BAA0B,CAAC,cAAc,CAAC,WAAW,CAAC,6BAAO,kBAAkB",sourcesContent:[".container{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;font-size:20px;line-height:120%;background:var(--background-color);color:var(--primary-color);position:fixed;z-index:999}.label{margin-bottom:40px}"],sourceRoot:""}]),u.locals={container:"styles-module__container__u-yuQ",label:"styles-module__label__090Aq"}
144
- const f=u},"8f699c08cc3fc3403542":(t,n,o)=>{"use strict"
145
- o.r(n),o.d(n,{default:()=>f})
146
- var i=o("365ab4f53bd46678beaa"),l=o.n(i),c=o("937975e4c4c140de5066"),u=o.n(c)()(l())
147
- u.push([t.id,":root{--overlay-notch-color-light-theme: #000;--overlay-notch-color-dark-theme: #fff;--background-color: #ffffff;--primary-color: #000000;--notch-color: #878787;--overlay-notch-color: var(--overlay-notch-color-light-theme);--button-outline-color: #007AFF;--ruler-color: var(--primary-color);--ruler-notches-color: #000000;--ruler-fill-color: #ececec;--icons-color: var(--primary-color);--button-fill-color: var(--primary-color);--button-text-color: var(--background-color);--button-stroke-color: transparent;--button-radius: 24px}.wanna-theme-dark{--background-color: #2d2d2d;--primary-color: #ffffff;--overlay-notch-color: var(--overlay-notch-color-dark-theme);--ruler-fill-color: rgba(255, 255, 255, 0.2)}.styles-module__layout__rbxPD{box-sizing:border-box;height:100%;position:relative;background:var(--background-color);display:flex;flex-direction:column;--notch-letter-width: 25px}.styles-module__header__6L2F4{height:65px;padding:12px 8px 8px;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;color:var(--primary-color)}.styles-module__headerButton__S6nCb{outline-color:var(--button-outline-color);outline-width:3px;height:44px;width:44px;border:0;padding:0;background:rgba(0,0,0,0);color:var(--icons-color)}.styles-module__headerButton_hidden__HsTTt{visibility:hidden}.styles-module__headerText__dRBj7{font-size:14px;line-height:16px;font-weight:500;position:relative;text-align:center}.styles-module__headerTextArrow__SJS0D{position:absolute;display:block;width:12px;height:12px;bottom:-16px;right:calc(50% - 6px)}.styles-module__content__ueRv6{flex-grow:1;display:flex;flex-direction:column}.styles-module__main__\\+tXa7{flex-grow:1;position:relative}.styles-module__footer__0tX0\\+{padding:32px 0 16px;display:flex;justify-content:center}.styles-module__footerButton__Dts2q{outline-color:var(--button-outline-color);outline-width:3px;padding:10px 40px;border-radius:var(--button-radius);background:var(--button-fill-color);color:var(--button-text-color);border:1px solid var(--button-stroke-color);font-size:16px;line-height:16px;font-weight:500;transition:opacity 150ms ease-in-out;font-family:inherit}.styles-module__footerButton__Dts2q:active{opacity:.8}.styles-module__tick__UZy2f{display:block;position:absolute;height:1px;width:25px;background:var(--notch-color);left:0}.styles-module__tick_small__j7Znm{width:16px}.styles-module__tick_right__Yn0On{left:initial;right:0}.styles-module__tickLetter__djaEg{position:absolute;color:var(--notch-color);transform:translate(100%, -50%);right:-8px;font-weight:500;user-select:none}.styles-module__notches__o4AHV,.styles-module__overlayNotches__E91fJ{position:absolute;top:0;width:100%;height:100%;overflow:hidden}.styles-module__notches__o4AHV{background-size:16px 2px;background-repeat:repeat-x}.styles-module__overlayNotches__E91fJ{--notch-color: var(--overlay-notch-color);background:linear-gradient(to right, var(--primary-color) 10px, transparent 1px) repeat-x;background-size:16px 2px}.styles-module__ruler__MOJo4{position:absolute;box-sizing:border-box;width:100%;display:flex;flex-direction:column;justify-content:flex-end}.styles-module__rulerBackground__bx65P{position:absolute;width:100%;height:100%;background:var(--ruler-fill-color)}.styles-module__rulerContent__8XrUT{display:flex;position:absolute;width:100%;bottom:0;transform:translateY(50%);flex-direction:column;align-items:center;background-image:linear-gradient(to right, var(--ruler-color), var(--ruler-color));background-repeat:repeat-x;background-position:center center;background-size:100% 4px;z-index:1}.styles-module__rulerCircle__xqkeJ{z-index:1;height:40px;width:40px;background:#fff;border-radius:50%;box-shadow:0px 4px 8px rgba(0,0,0,.2);background-image:linear-gradient(to bottom, var(--ruler-notches-color) 1px, transparent 2px, transparent 6px, var(--ruler-notches-color) 7px);background-size:16px 8px;background-position-y:16px;background-position-x:12px;background-repeat:no-repeat}.styles-module__rulerText__8sve1{position:absolute;bottom:0;font-size:14px;line-height:16px;font-weight:500;max-width:calc(100% - 96px);text-align:center;color:var(--primary-color);transform:translateY(30px);transition:opacity 150ms ease-in-out}.styles-module__rulerTextHidden__w25y6{opacity:0}","",{version:3,sources:["webpack://./../public-sdk/src/wristMeasurement/components/WristMeasure/styles.module.scss"],names:[],mappings:"AAAA,MAAM,uCAAuC,CAAC,sCAAsC,CAAC,2BAA2B,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,6DAA6D,CAAC,+BAA+B,CAAC,mCAAmC,CAAC,8BAA8B,CAAC,2BAA2B,CAAC,mCAAmC,CAAC,yCAAyC,CAAC,4CAA4C,CAAC,kCAAkC,CAAC,qBAAqB,CAAC,kBAA2B,2BAA2B,CAAC,wBAAwB,CAAC,4DAA4D,CAAC,4CAA4C,CAAC,8BAAQ,qBAAqB,CAAC,WAAW,CAAC,iBAAiB,CAAC,kCAAkC,CAAC,YAAY,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,8BAAQ,WAAW,CAAC,oBAAoB,CAAC,YAAY,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,oCAAc,yCAAyC,CAAC,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,wBAAwB,CAAC,wBAAwB,CAAC,2CAAqB,iBAAiB,CAAC,kCAAY,cAAc,CAAC,gBAAgB,CAAC,eAAe,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,uCAAiB,iBAAiB,CAAC,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC,YAAY,CAAC,qBAAqB,CAAC,+BAAS,WAAW,CAAC,YAAY,CAAC,qBAAqB,CAAC,6BAAM,WAAW,CAAC,iBAAiB,CAAC,+BAAQ,mBAAmB,CAAC,YAAY,CAAC,sBAAsB,CAAC,oCAAc,yCAAyC,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,kCAAkC,CAAC,mCAAmC,CAAC,8BAA8B,CAAC,2CAA2C,CAAC,cAAc,CAAC,gBAAgB,CAAC,eAAe,CAAC,oCAAoC,CAAC,mBAAmB,CAAC,2CAAqB,UAAU,CAAC,4BAAM,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,UAAU,CAAC,6BAA6B,CAAC,MAAM,CAAC,kCAAY,UAAU,CAAC,kCAAY,YAAY,CAAC,OAAO,CAAC,kCAAY,iBAAiB,CAAC,wBAAwB,CAAC,+BAA+B,CAAC,UAAU,CAAC,eAAe,CAAC,gBAAgB,CAAC,qEAAyB,iBAAiB,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,+BAAS,wBAAwB,CAAC,0BAA0B,CAAC,sCAAgB,yCAAyC,CAAC,yFAAyF,CAAC,wBAAwB,CAAC,6BAAO,iBAAiB,CAAC,qBAAqB,CAAC,UAAU,CAAC,YAAY,CAAC,qBAAqB,CAAC,wBAAwB,CAAC,uCAAiB,iBAAiB,CAAC,UAAU,CAAC,WAAW,CAAC,kCAAkC,CAAC,oCAAc,YAAY,CAAC,iBAAiB,CAAC,UAAU,CAAC,QAAQ,CAAC,yBAAyB,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,kFAAkF,CAAC,0BAA0B,CAAC,iCAAiC,CAAC,wBAAwB,CAAC,SAAS,CAAC,mCAAa,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,6IAA6I,CAAC,wBAAwB,CAAC,0BAA0B,CAAC,0BAA0B,CAAC,2BAA2B,CAAC,iCAAW,iBAAiB,CAAC,QAAQ,CAAC,cAAc,CAAC,gBAAgB,CAAC,eAAe,CAAC,2BAA2B,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,0BAA0B,CAAC,oCAAoC,CAAC,uCAAiB,SAAS",sourcesContent:[":root{--overlay-notch-color-light-theme: #000;--overlay-notch-color-dark-theme: #fff;--background-color: #ffffff;--primary-color: #000000;--notch-color: #878787;--overlay-notch-color: var(--overlay-notch-color-light-theme);--button-outline-color: #007AFF;--ruler-color: var(--primary-color);--ruler-notches-color: #000000;--ruler-fill-color: #ececec;--icons-color: var(--primary-color);--button-fill-color: var(--primary-color);--button-text-color: var(--background-color);--button-stroke-color: transparent;--button-radius: 24px}:global(.wanna-theme-dark){--background-color: #2d2d2d;--primary-color: #ffffff;--overlay-notch-color: var(--overlay-notch-color-dark-theme);--ruler-fill-color: rgba(255, 255, 255, 0.2)}.layout{box-sizing:border-box;height:100%;position:relative;background:var(--background-color);display:flex;flex-direction:column;--notch-letter-width: 25px}.header{height:65px;padding:12px 8px 8px;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;color:var(--primary-color)}.headerButton{outline-color:var(--button-outline-color);outline-width:3px;height:44px;width:44px;border:0;padding:0;background:rgba(0,0,0,0);color:var(--icons-color)}.headerButton_hidden{visibility:hidden}.headerText{font-size:14px;line-height:16px;font-weight:500;position:relative;text-align:center}.headerTextArrow{position:absolute;display:block;width:12px;height:12px;bottom:-16px;right:calc(50% - 6px)}.content{flex-grow:1;display:flex;flex-direction:column}.main{flex-grow:1;position:relative}.footer{padding:32px 0 16px;display:flex;justify-content:center}.footerButton{outline-color:var(--button-outline-color);outline-width:3px;padding:10px 40px;border-radius:var(--button-radius);background:var(--button-fill-color);color:var(--button-text-color);border:1px solid var(--button-stroke-color);font-size:16px;line-height:16px;font-weight:500;transition:opacity 150ms ease-in-out;font-family:inherit}.footerButton:active{opacity:.8}.tick{display:block;position:absolute;height:1px;width:25px;background:var(--notch-color);left:0}.tick_small{width:16px}.tick_right{left:initial;right:0}.tickLetter{position:absolute;color:var(--notch-color);transform:translate(100%, -50%);right:-8px;font-weight:500;user-select:none}.notches,.overlayNotches{position:absolute;top:0;width:100%;height:100%;overflow:hidden}.notches{background-size:16px 2px;background-repeat:repeat-x}.overlayNotches{--notch-color: var(--overlay-notch-color);background:linear-gradient(to right, var(--primary-color) 10px, transparent 1px) repeat-x;background-size:16px 2px}.ruler{position:absolute;box-sizing:border-box;width:100%;display:flex;flex-direction:column;justify-content:flex-end}.rulerBackground{position:absolute;width:100%;height:100%;background:var(--ruler-fill-color)}.rulerContent{display:flex;position:absolute;width:100%;bottom:0;transform:translateY(50%);flex-direction:column;align-items:center;background-image:linear-gradient(to right, var(--ruler-color), var(--ruler-color));background-repeat:repeat-x;background-position:center center;background-size:100% 4px;z-index:1}.rulerCircle{z-index:1;height:40px;width:40px;background:#fff;border-radius:50%;box-shadow:0px 4px 8px rgba(0,0,0,.2);background-image:linear-gradient(to bottom, var(--ruler-notches-color) 1px, transparent 2px, transparent 6px, var(--ruler-notches-color) 7px);background-size:16px 8px;background-position-y:16px;background-position-x:12px;background-repeat:no-repeat}.rulerText{position:absolute;bottom:0;font-size:14px;line-height:16px;font-weight:500;max-width:calc(100% - 96px);text-align:center;color:var(--primary-color);transform:translateY(30px);transition:opacity 150ms ease-in-out}.rulerTextHidden{opacity:0}"],sourceRoot:""}]),u.locals={layout:"styles-module__layout__rbxPD",header:"styles-module__header__6L2F4",headerButton:"styles-module__headerButton__S6nCb",headerButton_hidden:"styles-module__headerButton_hidden__HsTTt",headerText:"styles-module__headerText__dRBj7",headerTextArrow:"styles-module__headerTextArrow__SJS0D",content:"styles-module__content__ueRv6",main:"styles-module__main__+tXa7",footer:"styles-module__footer__0tX0+",footerButton:"styles-module__footerButton__Dts2q",tick:"styles-module__tick__UZy2f",tick_small:"styles-module__tick_small__j7Znm",tick_right:"styles-module__tick_right__Yn0On",tickLetter:"styles-module__tickLetter__djaEg",notches:"styles-module__notches__o4AHV",overlayNotches:"styles-module__overlayNotches__E91fJ",ruler:"styles-module__ruler__MOJo4",rulerBackground:"styles-module__rulerBackground__bx65P",rulerContent:"styles-module__rulerContent__8XrUT",rulerCircle:"styles-module__rulerCircle__xqkeJ",rulerText:"styles-module__rulerText__8sve1",rulerTextHidden:"styles-module__rulerTextHidden__w25y6"}
148
- const f=u},"11ba4adafc9d0c504da7":(t,n,o)=>{var i=o("e2a57f817fa881bed603"),l=o("77784176578a0f60a72f")
149
- "string"===typeof(l=l.__esModule?l.default:l)&&(l=[[t.id,l,""]])
150
- var c={insert:"head",singleton:!1}
151
- i(l,c)
152
- t.exports=l.locals||{}},d90db5b64a30977be029:(t,n,o)=>{var i=o("e2a57f817fa881bed603"),l=o("8e4c1739547f32704f9a")
153
- "string"===typeof(l=l.__esModule?l.default:l)&&(l=[[t.id,l,""]])
154
- var c={insert:"head",singleton:!1}
155
- i(l,c)
156
- t.exports=l.locals||{}},"236575b133dff5fe1733":(t,n,o)=>{var i=o("e2a57f817fa881bed603"),l=o("8f699c08cc3fc3403542")
157
- "string"===typeof(l=l.__esModule?l.default:l)&&(l=[[t.id,l,""]])
158
- var c={insert:"head",singleton:!1}
159
- i(l,c)
160
- t.exports=l.locals||{}},e2a57f817fa881bed603:(t,n,o)=>{"use strict"
161
- var i=function isOldIE(){var t
162
- return function memorize(){return"undefined"===typeof t&&(t=Boolean(window&&document&&document.all&&!window.atob)),t}}(),l=function getTarget(){var t={}
163
- return function memorize(n){if("undefined"===typeof t[n]){var o=document.querySelector(n)
164
- if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}t[n]=o}return t[n]}}(),c=[]
165
- function getIndexByIdentifier(t){for(var n=-1,o=0;o<c.length;o++)if(c[o].identifier===t){n=o
166
- break}return n}function modulesToDom(t,n){for(var o={},i=[],l=0;l<t.length;l++){var u=t[l],f=n.base?u[0]+n.base:u[0],E=o[f]||0,D="".concat(f," ").concat(E)
167
- o[f]=E+1
168
- var R=getIndexByIdentifier(D),U={css:u[1],media:u[2],sourceMap:u[3]};-1!==R?(c[R].references++,c[R].updater(U)):c.push({identifier:D,updater:addStyle(U,n),references:1}),i.push(D)}return i}function insertStyleElement(t){var n=document.createElement("style"),i=t.attributes||{}
169
- if("undefined"===typeof i.nonce){var c=o.nc
170
- c&&(i.nonce=c)}if(Object.keys(i).forEach((function(t){n.setAttribute(t,i[t])})),"function"===typeof t.insert)t.insert(n)
171
- else{var u=l(t.insert||"head")
172
- if(!u)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.")
173
- u.appendChild(n)}return n}var u=function replaceText(){var t=[]
174
- return function replace(n,o){return t[n]=o,t.filter(Boolean).join("\n")}}()
175
- function applyToSingletonTag(t,n,o,i){var l=o?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css
176
- if(t.styleSheet)t.styleSheet.cssText=u(n,l)
177
- else{var c=document.createTextNode(l),f=t.childNodes
178
- f[n]&&t.removeChild(f[n]),f.length?t.insertBefore(c,f[n]):t.appendChild(c)}}function applyToTag(t,n,o){var i=o.css,l=o.media,c=o.sourceMap
179
- if(l?t.setAttribute("media",l):t.removeAttribute("media"),c&&"undefined"!==typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(c))))," */")),t.styleSheet)t.styleSheet.cssText=i
180
- else{for(;t.firstChild;)t.removeChild(t.firstChild)
181
- t.appendChild(document.createTextNode(i))}}var f=null,E=0
182
- function addStyle(t,n){var o,i,l
183
- if(n.singleton){var c=E++
184
- o=f||(f=insertStyleElement(n)),i=applyToSingletonTag.bind(null,o,c,!1),l=applyToSingletonTag.bind(null,o,c,!0)}else o=insertStyleElement(n),i=applyToTag.bind(null,o,n),l=function remove(){!function removeStyleElement(t){if(null===t.parentNode)return!1
185
- t.parentNode.removeChild(t)}(o)}
186
- return i(t),function updateStyle(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return
187
- i(t=n)}else l()}}t.exports=function(t,n){(n=n||{}).singleton||"boolean"===typeof n.singleton||(n.singleton=i())
188
- var o=modulesToDom(t=t||[],n)
189
- return function update(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<o.length;i++){var l=getIndexByIdentifier(o[i])
190
- c[l].references--}for(var u=modulesToDom(t,n),f=0;f<o.length;f++){var E=getIndexByIdentifier(o[f])
191
- 0===c[E].references&&(c[E].updater(),c.splice(E,1))}o=u}}}}},n={}
192
- function __webpack_require__(o){var i=n[o]
193
- if(void 0!==i)return i.exports
194
- var l=n[o]={id:o,exports:{}}
195
- return t[o].call(l.exports,l,l.exports,__webpack_require__),l.exports}__webpack_require__.amdO={},__webpack_require__.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t
196
- return __webpack_require__.d(n,{a:n}),n},__webpack_require__.d=(t,n)=>{for(var o in n)__webpack_require__.o(n,o)&&!__webpack_require__.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},__webpack_require__.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),__webpack_require__.r=t=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nc=void 0
197
- var o={}
2
+ !function webpackUniversalModuleDefinition(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports.wanna=t():e.wanna=t()}("undefined"!==typeof self?self:this,(()=>(()=>{var e={"6c753cb75fab3b780c2d":function(e,t){var i,r,o
3
+ r=[],void 0===(o="function"===typeof(i=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i
4
+ function indexOrEnd(e,t){return-1===e.indexOf(t)?e.length:e.indexOf(t)}function split(e){var t=e.replace(/^v/,"").replace(/\+.*$/,""),i=indexOrEnd(t,"-"),r=t.substring(0,i).split(".")
5
+ return r.push(t.substring(i+1)),r}function tryParse(e){return isNaN(Number(e))?e:Number(e)}function validate(t){if("string"!==typeof t)throw new TypeError("Invalid argument expected string")
6
+ if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function compareVersions(e,t){[e,t].forEach(validate)
7
+ for(var i=split(e),r=split(t),o=0;o<Math.max(i.length-1,r.length-1);o++){var n=parseInt(i[o]||0,10),s=parseInt(r[o]||0,10)
8
+ if(n>s)return 1
9
+ if(s>n)return-1}var a=i[i.length-1],E=r[r.length-1]
10
+ if(a&&E){var l=a.split(".").map(tryParse),c=E.split(".").map(tryParse)
11
+ for(o=0;o<Math.max(l.length,c.length);o++){if(void 0===l[o]||"string"===typeof c[o]&&"number"===typeof l[o])return-1
12
+ if(void 0===c[o]||"string"===typeof l[o]&&"number"===typeof c[o])return 1
13
+ if(l[o]>c[o])return 1
14
+ if(c[o]>l[o])return-1}}else if(a||E)return a?-1:1
15
+ return 0}var t=[">",">=","=","<","<="],i={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]}
16
+ function validateOperator(e){if("string"!==typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e)
17
+ if(-1===t.indexOf(e))throw new TypeError("Invalid operator, expected one of "+t.join("|"))}return compareVersions.validate=function(t){return"string"===typeof t&&e.test(t)},compareVersions.compare=function(e,t,r){validateOperator(r)
18
+ var o=compareVersions(e,t)
19
+ return i[r].indexOf(o)>-1},compareVersions})?i.apply(t,r):i)||(e.exports=o)},"8e5531a739ad2a362fcc":function(e,t,i){var r
20
+ !function(o,n){"use strict"
21
+ var s="function",a="undefined",E="object",l="string",c="major",d="model",_="name",u="type",h="vendor",b="version",m="architecture",f="console",w="mobile",p="tablet",v="smarttv",T="wearable",g="embedded",S="Amazon",A="Apple",O="ASUS",I="BlackBerry",N="Browser",D="Chrome",y="Firefox",L="Google",P="Huawei",R="LG",C="Microsoft",k="Motorola",M="Opera",V="Samsung",U="Sharp",G="Sony",$="Xiaomi",x="Zebra",W="Facebook",j="Chromium OS",F="Mac OS",enumerize=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i]
22
+ return t},has=function(e,t){return typeof e===l&&-1!==lowerize(t).indexOf(lowerize(e))},lowerize=function(e){return e.toLowerCase()},trim=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,350)},rgxMapper=function(e,t){for(var i,r,o,a,l,c,d=0;d<t.length&&!l;){var _=t[d],u=t[d+1]
23
+ for(i=r=0;i<_.length&&!l&&_[i];)if(l=_[i++].exec(e))for(o=0;o<u.length;o++)c=l[++r],typeof(a=u[o])===E&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):n:this[a[0]]=c?a[1].call(this,c,a[2]):n:4===a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):n):this[a]=c||n
24
+ d+=2}},strMapper=function(e,t){for(var i in t)if(typeof t[i]===E&&t[i].length>0){for(var r=0;r<t[i].length;r++)if(has(t[i][r],e))return"?"===i?n:i}else if(has(t[i],e))return"?"===i?n:i
25
+ return e},H={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[_,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[_,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[_,b],[/opios[\/ ]+([\w\.]+)/i],[b,[_,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[_,M]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[_,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[_,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[b,[_,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[_,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[_,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[_,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[_,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[_,/(.+)/,"$1 Secure "+N],b],[/\bfocus\/([\w\.]+)/i],[b,[_,y+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[_,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[_,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[_,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[_,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[_,"MIUI "+N]],[/fxios\/([-\w\.]+)/i],[b,[_,y]],[/\bqihu|(qi?ho?o?|360)browser/i],[[_,"360 "+N]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[_,/(.+)/,"$1 "+N],b],[/(comodo_dragon)\/([\w\.]+)/i],[[_,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[_,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[_],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[_,W],b],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[_,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[_,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[_,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[_,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[_,D+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[_,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[_,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[_,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,_],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[_,[b,strMapper,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[_,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[_,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[_,y+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[_,b],[/(cobalt)\/([\w\.]+)/i],[_,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",lowerize]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,V],[u,p]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,V],[u,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,A],[u,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,A],[u,p]],[/(macintosh);/i],[d,[h,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,U],[u,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[h,P],[u,p]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,P],[u,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[h,$],[u,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[h,$],[u,p]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,"OPPO"],[u,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[u,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[u,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,k],[u,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,k],[u,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,R],[u,p]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,R],[u,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[h,"Lenovo"],[u,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[h,"Nokia"],[u,w]],[/(pixel c)\b/i],[d,[h,L],[u,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,L],[u,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,G],[u,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,G],[u,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,"OnePlus"],[u,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,S],[u,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,S],[u,w]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[u,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,I],[u,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,O],[u,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,O],[u,w]],[/(nexus 9)/i],[d,[h,"HTC"],[u,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[u,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[u,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[u,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[u,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[u,p]],[/(surface duo)/i],[d,[h,C],[u,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[u,w]],[/(u304aa)/i],[d,[h,"AT&T"],[u,w]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[u,w]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[u,p]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[u,p]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[u,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[u,p]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[u,p]],[/\b(k88) b/i],[d,[h,"ZTE"],[u,p]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[u,w]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[u,w]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[u,p]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[u,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[u,p]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[u,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[u,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[u,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[u,w]],[/\b(ph-1) /i],[d,[h,"Essential"],[u,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[u,p]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[u,p]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[u,p]],[/(shield[\w ]+) b/i],[d,[h,"Nvidia"],[u,p]],[/(sprint) (\w+)/i],[h,d,[u,w]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,C],[u,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,x],[u,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,x],[u,w]],[/smart-tv.+(samsung)/i],[h,[u,v]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,V],[u,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,R],[u,v]],[/(apple) ?tv/i],[h,[d,A+" TV"],[u,v]],[/crkey/i],[[d,D+"cast"],[h,L],[u,v]],[/droid.+aft(\w)( bui|\))/i],[d,[h,S],[u,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,U],[u,v]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,G],[u,v]],[/(mitv-\w{5}) bui/i],[d,[h,$],[u,v]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[u,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,trim],[d,trim],[u,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[u,f]],[/droid.+; (shield) bui/i],[d,[h,"Nvidia"],[u,f]],[/(playstation [345portablevi]+)/i],[d,[h,G],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,C],[u,f]],[/((pebble))app/i],[h,d,[u,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,A],[u,T]],[/droid.+; (glass) \d/i],[d,[h,L],[u,T]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,x],[u,T]],[/(quest( 2| pro)?)/i],[d,[h,W],[u,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[u,g]],[/(aeobc)\b/i],[d,[h,S],[u,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[u,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[u,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,w]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[_,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[_,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[_,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,_]],os:[[/microsoft (windows) (vista|xp)/i],[_,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[_,[b,strMapper,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[_,"Windows"],[b,strMapper,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[_,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[_,F],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,_],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[_,b],[/\(bb(10);/i],[b,[_,I]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[_,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[_,y+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[_,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[_,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[_,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[_,j],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[_,b],[/(sunos) ?([\w\.\d]*)/i],[[_,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[_,b]]},UAParser=function(e,t){if(typeof e===E&&(t=e,e=n),!(this instanceof UAParser))return new UAParser(e,t).getResult()
26
+ var i=typeof o!==a&&o.navigator?o.navigator:n,r=e||(i&&i.userAgent?i.userAgent:""),f=i&&i.userAgentData?i.userAgentData:n,v=t?function(e,t){var i={}
27
+ for(var r in e)t[r]&&t[r].length%2===0?i[r]=t[r].concat(e[r]):i[r]=e[r]
28
+ return i}(K,t):K,T=i&&i.userAgent==r
29
+ return this.getBrowser=function(){var e,t={}
30
+ return t[_]=n,t[b]=n,rgxMapper.call(t,r,v.browser),t[c]=typeof(e=t[b])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:n,T&&i&&i.brave&&typeof i.brave.isBrave==s&&(t[_]="Brave"),t},this.getCPU=function(){var e={}
31
+ return e[m]=n,rgxMapper.call(e,r,v.cpu),e},this.getDevice=function(){var e={}
32
+ return e[h]=n,e[d]=n,e[u]=n,rgxMapper.call(e,r,v.device),T&&!e[u]&&f&&f.mobile&&(e[u]=w),T&&"Macintosh"==e[d]&&i&&typeof i.standalone!==a&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[d]="iPad",e[u]=p),e},this.getEngine=function(){var e={}
33
+ return e[_]=n,e[b]=n,rgxMapper.call(e,r,v.engine),e},this.getOS=function(){var e={}
34
+ return e[_]=n,e[b]=n,rgxMapper.call(e,r,v.os),T&&!e[_]&&f&&"Unknown"!=f.platform&&(e[_]=f.platform.replace(/chrome os/i,j).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===l&&e.length>350?trim(e,350):e,this},this.setUA(r),this}
35
+ UAParser.VERSION="1.0.35",UAParser.BROWSER=enumerize([_,b,c]),UAParser.CPU=enumerize([m]),UAParser.DEVICE=enumerize([d,h,u,f,w,v,p,T,g]),UAParser.ENGINE=UAParser.OS=enumerize([_,b]),typeof t!==a?(e.exports&&(t=e.exports=UAParser),t.UAParser=UAParser):i.amdO?(r=function(){return UAParser}.call(t,i,t,e))===n||(e.exports=r):typeof o!==a&&(o.UAParser=UAParser)
36
+ var q=typeof o!==a&&(o.jQuery||o.Zepto)
37
+ if(q&&!q.ua){var z=new UAParser
38
+ q.ua=z.getResult(),q.ua.get=function(){return z.getUA()},q.ua.set=function(e){z.setUA(e)
39
+ var t=z.getResult()
40
+ for(var i in t)q.ua[i]=t[i]}}}("object"===typeof window?window:this)}},t={}
41
+ function __webpack_require__(i){var r=t[i]
42
+ if(void 0!==r)return r.exports
43
+ var o=t[i]={exports:{}}
44
+ return e[i].call(o.exports,o,o.exports,__webpack_require__),o.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e
45
+ return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}
46
+ var i={}
198
47
  return(()=>{"use strict"
199
- __webpack_require__.d(o,{default:()=>mn})
200
- var t={}
201
- function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _toPropertyKey(t){var n=function _toPrimitive(t,n){if("object"!==_typeof(t)||null===t)return t
202
- var o=t[Symbol.toPrimitive]
203
- if(void 0!==o){var i=o.call(t,n||"default")
204
- if("object"!==_typeof(i))return i
205
- throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string")
206
- return"symbol"===_typeof(n)?n:String(n)}function _defineProperty(t,n,o){return(n=_toPropertyKey(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}__webpack_require__.r(t),__webpack_require__.d(t,{EVENT_3D_SUCCEEDED:()=>ft,EVENT_CAMERAS_LIST:()=>Qe,EVENT_CAMERAS_LIST_FAILED:()=>Xe,EVENT_CAMERA_ACCESS_FAILED:()=>Ye,EVENT_CAMERA_ACCESS_GRANTED:()=>Ke,EVENT_CAMERA_ACCESS_REQUESTED:()=>ze,EVENT_CAMERA_CHANGED:()=>qe,EVENT_CAMERA_CHANGE_FAILED:()=>Fe,EVENT_CAMERA_ZOOM:()=>Mt,EVENT_CAMERA_ZOOMED:()=>Ut,EVENT_CAMERA_ZOOM_ACKNOWLEDGE:()=>Bt,EVENT_CAMERA_ZOOM_FAILED:()=>Vt,EVENT_CHANGE_CAMERA:()=>We,EVENT_CHANGE_CAMERA_ACKNOWLEDGE:()=>je,EVENT_DEBUG:()=>Et,EVENT_DEBUG_FAILED:()=>mt,EVENT_DEBUG_SUCCESS:()=>vt,EVENT_DESTROY:()=>ke,EVENT_DESTROYED:()=>xe,EVENT_DESTROY_ACKNOWLEDGE:()=>Oe,EVENT_DESTROY_FAILED:()=>Ne,EVENT_DEVICE_DETECTION_CLIENT_URL:()=>rr,EVENT_DEVICE_DETECTION_CLIENT_URL_FAILED:()=>nr,EVENT_ERROR:()=>ht,EVENT_FRAME_SIZE_CHANGED:()=>wt,EVENT_FREEZE_ON_CAMERA_CHANGE:()=>bt,EVENT_GET_CAMERAS_LIST:()=>Ze,EVENT_GET_CAMERAS_LIST_ACKNOWLEDGE:()=>Je,EVENT_GET_DEVICE_DETECTION_CLIENT_URL:()=>er,EVENT_GET_DEVICE_DETECTION_CLIENT_URL_ACKNOWLEDGE:()=>tr,EVENT_INIT_FAILED:()=>Te,EVENT_INIT_FINISHED:()=>ye,EVENT_INIT_STARTED:()=>Ce,EVENT_INIT_VIDEO:()=>Ct,EVENT_INIT_VIDEO_ACKNOWLEDGE:()=>yt,EVENT_INTERACTION_ENDED:()=>Yt,EVENT_INTERACTION_STARTED:()=>Kt,EVENT_LAZY_INIT_FAILED:()=>Se,EVENT_LOAD_RESOURCE_MODEL:()=>Ae,EVENT_LOAD_RESOURCE_MODEL_ACKNOWLEDGE:()=>Ee,EVENT_LOG:()=>kt,EVENT_LOG_3D_VIEWER_DURATION:()=>ot,EVENT_LOG_3D_VIEWER_DURATION_ACKNOWLEDGE:()=>it,EVENT_LOG_3D_VIEWER_DURATION_FAILED:()=>st,EVENT_LOG_3D_VIEWER_DURATION_SENT:()=>at,EVENT_LOG_WRIST_MEASURE_EVENT:()=>Zt,EVENT_LOG_WRIST_MEASURE_EVENT_ACKNOWLEDGE:()=>Jt,EVENT_LOG_WRIST_MEASURE_EVENT_FAILED:()=>Xt,EVENT_LOG_WRIST_MEASURE_EVENT_SUCCESS:()=>Qt,EVENT_MODEL_SET:()=>rt,EVENT_MODEL_SET_FAILED:()=>nt,EVENT_MODE_SET:()=>Nt,EVENT_OBJECT_APPEARED:()=>pt,EVENT_OBJECT_DISAPPEARED:()=>At,EVENT_ONBOARDING:()=>$t,EVENT_ONBOARDING_ACKNOWLEDGE:()=>Ht,EVENT_ONBOARDING_FAILED:()=>Wt,EVENT_ONBOARDING_SUCCESS:()=>Gt,EVENT_PAUSE_PIPELINE:()=>Re,EVENT_PAUSE_PIPELINE_ACKNOWLEDGE:()=>Me,EVENT_PHOTO_TAKEN:()=>_t,EVENT_PHOTO_TAKE_FAILED:()=>ut,EVENT_PIPELINE_PAUSED:()=>Be,EVENT_PIPELINE_PAUSE_FAILED:()=>Ue,EVENT_PIPELINE_STARTED:()=>Le,EVENT_PIPELINE_START_FAILED:()=>Pe,EVENT_PIPELINE_STOPPED:()=>He,EVENT_PIPELINE_STOP_FAILED:()=>Ge,EVENT_POI_SET:()=>Pt,EVENT_RESOURCE_LOAD_FAILED:()=>ge,EVENT_RESOURCE_LOAD_FINISHED:()=>be,EVENT_RESOURCE_LOAD_PROGRESS:()=>ve,EVENT_RESOURCE_LOAD_STARTED:()=>me,EVENT_SDK_LOADED:()=>pe,EVENT_SET_MODE:()=>Ot,EVENT_SET_MODEL:()=>et,EVENT_SET_MODEL_ACKNOWLEDGE:()=>tt,EVENT_SET_MODE_ACKNOWLEDGE:()=>xt,EVENT_SET_MODE_FAILED:()=>It,EVENT_SET_POI:()=>Dt,EVENT_SET_POI_ACKNOWLEDGE:()=>Lt,EVENT_SET_POI_FAILED:()=>Rt,EVENT_START_INIT:()=>we,EVENT_START_PIPELINE:()=>Ie,EVENT_START_PIPELINE_ACKNOWLEDGE:()=>De,EVENT_STOP_PIPELINE:()=>Ve,EVENT_STOP_PIPELINE_ACKNOWLEDGE:()=>$e,EVENT_TAKE_PHOTO:()=>lt,EVENT_TAKE_PHOTO_ACKNOWLEDGE:()=>ct,EVENT_TOGGLE_DIMENSIONS:()=>jt,EVENT_TOGGLE_DIMENSIONS_ACKNOWLEDGE:()=>qt,EVENT_TOGGLE_DIMENSIONS_FAILED:()=>zt,EVENT_TOGGLE_DIMENSIONS_SUCCESS:()=>Ft,EVENT_TRY_ON:()=>dt,EVENT_VIDEO_INITIALIZED:()=>Tt,EVENT_VIDEO_INIT_FAILED:()=>St,EVENT_WARMED_UP:()=>gt})
207
- var n=__webpack_require__("999bb982dce73eb05db5"),i=__webpack_require__.n(n)
48
+ __webpack_require__.d(i,{default:()=>ci})
49
+ var e={}
50
+ __webpack_require__.r(e),__webpack_require__.d(e,{EVENT_3D_SUCCEEDED:()=>Ge,EVENT_CAMERAS_LIST:()=>Se,EVENT_CAMERAS_LIST_FAILED:()=>Ae,EVENT_CAMERA_ACCESS_FAILED:()=>ve,EVENT_CAMERA_ACCESS_GRANTED:()=>pe,EVENT_CAMERA_ACCESS_REQUESTED:()=>we,EVENT_CAMERA_CHANGED:()=>me,EVENT_CAMERA_CHANGE_FAILED:()=>fe,EVENT_CAMERA_ZOOM:()=>at,EVENT_CAMERA_ZOOMED:()=>lt,EVENT_CAMERA_ZOOM_ACKNOWLEDGE:()=>Et,EVENT_CAMERA_ZOOM_FAILED:()=>ct,EVENT_CHANGE_CAMERA:()=>he,EVENT_CHANGE_CAMERA_ACKNOWLEDGE:()=>be,EVENT_DEBUG:()=>je,EVENT_DEBUG_FAILED:()=>Fe,EVENT_DEBUG_SUCCESS:()=>He,EVENT_DESTROY:()=>Q,EVENT_DESTROYED:()=>ee,EVENT_DESTROY_ACKNOWLEDGE:()=>X,EVENT_DESTROY_FAILED:()=>te,EVENT_ERROR:()=>$e,EVENT_FRAME_SIZE_CHANGED:()=>ze,EVENT_FREEZE_ON_CAMERA_CHANGE:()=>Ke,EVENT_GET_CAMERAS_LIST:()=>Te,EVENT_GET_CAMERAS_LIST_ACKNOWLEDGE:()=>ge,EVENT_GET_WRIST_MEASUREMENT_CONFIG:()=>Ot,EVENT_GET_WRIST_MEASUREMENT_CONFIG_ACKNOWLEDGE:()=>It,EVENT_INIT_FAILED:()=>Y,EVENT_INIT_FINISHED:()=>Z,EVENT_INIT_STARTED:()=>B,EVENT_INIT_VIDEO:()=>Be,EVENT_INIT_VIDEO_ACKNOWLEDGE:()=>Ze,EVENT_INTERACTION_ENDED:()=>vt,EVENT_INTERACTION_STARTED:()=>pt,EVENT_LAZY_INIT_FAILED:()=>J,EVENT_LOAD_RESOURCE_MODEL:()=>W,EVENT_LOAD_RESOURCE_MODEL_ACKNOWLEDGE:()=>j,EVENT_LOG:()=>Qe,EVENT_LOG_3D_VIEWER_DURATION:()=>ye,EVENT_LOG_3D_VIEWER_DURATION_ACKNOWLEDGE:()=>Le,EVENT_LOG_3D_VIEWER_DURATION_FAILED:()=>Re,EVENT_LOG_3D_VIEWER_DURATION_SENT:()=>Pe,EVENT_LOG_WRIST_MEASURE_EVENT:()=>Tt,EVENT_LOG_WRIST_MEASURE_EVENT_ACKNOWLEDGE:()=>gt,EVENT_LOG_WRIST_MEASURE_EVENT_FAILED:()=>At,EVENT_LOG_WRIST_MEASURE_EVENT_SUCCESS:()=>St,EVENT_MODEL_SET:()=>Ne,EVENT_MODEL_SET_FAILED:()=>De,EVENT_MODE_SET:()=>tt,EVENT_OBJECT_APPEARED:()=>xe,EVENT_OBJECT_DISAPPEARED:()=>We,EVENT_ONBOARDING:()=>dt,EVENT_ONBOARDING_ACKNOWLEDGE:()=>_t,EVENT_ONBOARDING_FAILED:()=>ht,EVENT_ONBOARDING_SUCCESS:()=>ut,EVENT_PAUSE_PIPELINE:()=>se,EVENT_PAUSE_PIPELINE_ACKNOWLEDGE:()=>ae,EVENT_PHOTO_TAKEN:()=>Me,EVENT_PHOTO_TAKE_FAILED:()=>Ve,EVENT_PIPELINE_PAUSED:()=>Ee,EVENT_PIPELINE_PAUSE_FAILED:()=>le,EVENT_PIPELINE_STARTED:()=>oe,EVENT_PIPELINE_START_FAILED:()=>ne,EVENT_PIPELINE_STOPPED:()=>_e,EVENT_PIPELINE_STOP_FAILED:()=>ue,EVENT_POI_SET:()=>nt,EVENT_RESOURCE_LOAD_FAILED:()=>q,EVENT_RESOURCE_LOAD_FINISHED:()=>K,EVENT_RESOURCE_LOAD_PROGRESS:()=>H,EVENT_RESOURCE_LOAD_STARTED:()=>F,EVENT_SDK_LOADED:()=>x,EVENT_SET_MODE:()=>Xe,EVENT_SET_MODEL:()=>Oe,EVENT_SET_MODEL_ACKNOWLEDGE:()=>Ie,EVENT_SET_MODE_ACKNOWLEDGE:()=>et,EVENT_SET_MODE_FAILED:()=>it,EVENT_SET_POI:()=>rt,EVENT_SET_POI_ACKNOWLEDGE:()=>ot,EVENT_SET_POI_FAILED:()=>st,EVENT_START_INIT:()=>z,EVENT_START_PIPELINE:()=>ie,EVENT_START_PIPELINE_ACKNOWLEDGE:()=>re,EVENT_STOP_PIPELINE:()=>ce,EVENT_STOP_PIPELINE_ACKNOWLEDGE:()=>de,EVENT_TAKE_PHOTO:()=>Ce,EVENT_TAKE_PHOTO_ACKNOWLEDGE:()=>ke,EVENT_TOGGLE_DIMENSIONS:()=>bt,EVENT_TOGGLE_DIMENSIONS_ACKNOWLEDGE:()=>mt,EVENT_TOGGLE_DIMENSIONS_FAILED:()=>wt,EVENT_TOGGLE_DIMENSIONS_SUCCESS:()=>ft,EVENT_TRY_ON:()=>Ue,EVENT_VIDEO_INITIALIZED:()=>Ye,EVENT_VIDEO_INIT_FAILED:()=>Je,EVENT_WARMED_UP:()=>qe,EVENT_WRIST_MEASUREMENT_CONFIG:()=>Nt,EVENT_WRIST_MEASUREMENT_CONFIG_FAILED:()=>Dt})
51
+ var t=__webpack_require__("6c753cb75fab3b780c2d"),r=__webpack_require__.n(t)
208
52
 
209
53
  ;// Copyright © 2022 WANNABY Inc. All rights reserved.
210
- const l=["ar","3d"],c={MODE_TYPE_AR:"ar",MODE_TYPE_3D:"3d"}
211
- var u=__webpack_require__("7d493827738a5e0f9d22")
54
+ const o="ar",n=[o,"3d"],s={MODE_TYPE_AR:o,MODE_TYPE_3D:"3d"}
55
+ var a=__webpack_require__("8e5531a739ad2a362fcc")
212
56
 
213
57
  ;// Copyright © 2021 WANNABY Inc. All rights reserved.
214
- const f="none",E="Facebook",D="Instagram",R="Chrome",U="Chrome WebView",V="Firefox",G="Safari",W="Edge",K="Mobile Safari",Y="Samsung Browser",Z="Android Browser",J="WeChat",Q="Line",X="WebKit",ee="KAKAOTALK",te="iOS",re="Android",ne="Windows",oe="Mac OS",ie={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Browser:void 0},getNavigatorInstance=()=>!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator),ae=new(__webpack_require__.n(u)()),se=ae.getDevice(),le=ae.getOS(),ce=ae.getBrowser()
215
- ae.getUA()
216
- ce.name===G&&le.name===te&&(ce.name=K),ce.version||ce.name!==K||(ce.version=le.version)
217
- le.version,ce.name,ce.name===G||ce.name,ce.name,ce.name,ce.name,ce.name,ce.name,ce.name,le.name===te||(t=>{const n=getNavigatorInstance()
218
- n&&n.platform&&(-1!==n.platform.indexOf(t)||"MacIntel"===n.platform&&n.maxTouchPoints>1&&window.MSStream)})("iPad"),le.name,ce.vendor,se.model,se.vendor,ce.name,se.type
219
- const _e={[te]:[{version:"15",browsers:{[K]:{},[E]:{},[D]:{},[J]:{},[Q]:{},[X]:{},[R]:{},[ee]:{}}}],[re]:[{browsers:{[R]:{version:"83"},[U]:{version:"83"},[Z]:{version:"103"},[Y]:{version:"17"},[E]:{},[D]:{},[J]:{},[Q]:{},[ee]:{}}}],[ne]:[{browsers:{[R]:{version:"102"},[V]:{version:"102"},[W]:{version:"103"}}}],[oe]:[{browsers:{[R]:{version:"102"},[V]:{version:"102"},[G]:{version:"15.0"}}}],"*":[{type:ie.Browser,browsers:{[R]:{version:"102"}}}]},ue={[te]:[{version:"15",browsers:{[K]:{},[R]:{},[E]:{},[D]:{},[J]:{},[Q]:{},[X]:{},[ee]:{}}}],[re]:[{browsers:{[R]:{version:"83"},[U]:{version:"83"},[Z]:{version:"103"},[Y]:{version:"17"},[E]:{},[D]:{},[J]:{},[ee]:{}}}]},isVersionGreaterOrEquals=(t,n)=>{let o=!1
220
- return t&&i().validate(t)&&(o=i().compare(t,n,">=")),o}
221
- function checkRequirements(t){var n
222
- const o=null===(n=t["*"])||void 0===n?void 0:n.find((t=>t.type===se.type))
223
- let i=t[le.name]
224
- if(!i&&o&&(i=[o]),!i)return!1
225
- const l=i.filter((t=>!t.version||isVersionGreaterOrEquals(le.version,t.version)))
226
- if(!l.length)return!1
227
- return!!l.find((t=>{const n=t.browsers[ce.name]
228
- return!!n&&(!n.version||isVersionGreaterOrEquals(ce.version,n.version))}))}
58
+ const E="none",l="Android Browser",c="Chrome",d="Chrome WebView",_="Edge",u="Facebook",h="Firefox",b="GSA",m="Instagram",f="KAKAOTALK",w="Line",p="NAVER",v="Whale",T="Mobile Safari",g="Safari",S="Samsung Browser",A="WebKit",O="WeChat",I="iOS",N="Android",D="Windows",y="Mac OS",L={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Browser:void 0},getNavigatorInstance=()=>!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator),P=new(__webpack_require__.n(a)()),R=P.getDevice(),C=P.getOS(),k=P.getBrowser()
59
+ P.getUA()
60
+ k.name===g&&C.name===I&&(k.name=T),k.version||k.name!==T||(k.version=C.version)
61
+ C.version,k.name,k.name===g||k.name,k.name,k.name,k.name,k.name,k.name,k.name,C.name===I||(e=>{const t=getNavigatorInstance()
62
+ t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&window.MSStream)})("iPad"),C.name,k.vendor,R.model,R.vendor,k.name,R.type
63
+ const M={[I]:[{version:"15",browsers:{[T]:{},[u]:{},[m]:{},[O]:{},[w]:{},[A]:{},[c]:{},[f]:{},[b]:{},[p]:{},[v]:{}}}],[N]:[{browsers:{[c]:{version:"83"},[d]:{version:"83"},[l]:{version:"103"},[S]:{version:"17"},[u]:{},[m]:{},[O]:{},[w]:{},[f]:{},[b]:{},[p]:{},[v]:{}}}],[D]:[{browsers:{[c]:{version:"102"},[h]:{version:"102"},[_]:{version:"103"}}}],[y]:[{browsers:{[c]:{version:"102"},[h]:{version:"102"},[g]:{version:"15.0"}}}],"*":[{type:L.Browser,browsers:{[c]:{version:"102"}}}]},V={[I]:[{version:"15",browsers:{[T]:{},[c]:{},[u]:{},[m]:{},[O]:{},[w]:{},[A]:{},[f]:{},[b]:{},[p]:{},[v]:{}}}],[N]:[{browsers:{[c]:{version:"83"},[d]:{version:"83"},[l]:{version:"103"},[S]:{version:"17"},[u]:{},[m]:{},[O]:{},[f]:{},[b]:{},[p]:{},[v]:{}}}]},isVersionGreaterOrEquals=(e,t)=>{let i=!1
64
+ return e&&r().validate(e)&&(i=r().compare(e,t,">=")),i}
65
+ function checkRequirements(e){var t
66
+ const i=null===(t=e["*"])||void 0===t?void 0:t.find((e=>e.type===R.type))
67
+ let r=e[C.name]
68
+ if(!r&&i&&(r=[i]),!r)return!1
69
+ const o=r.filter((e=>!e.version||isVersionGreaterOrEquals(C.version,e.version)))
70
+ if(!o.length)return!1
71
+ const n=o.find((e=>{const t=e.browsers[k.name]
72
+ return!!t&&(!t.version||isVersionGreaterOrEquals(k.version,t.version))}))
73
+ return Boolean(n)}
229
74
  // Copyright © 2021 WANNABY Inc. All rights reserved.
230
- const de="error",fe="model",he="WANNA_EVENT",pe=`${he}_SDK_LOADED`,Ae=`${he}_LOAD_RESOURCE_MODEL`,Ee=`${he}_LOAD_RESOURCE_MODEL_ACKNOWLEDGE`,me=`${he}_RESOURCE_LOAD_STARTED`,ve=`${he}_RESOURCE_LOAD_PROGRESS`,be=`${he}_RESOURCE_LOAD_FINISHED`,ge=`${he}_RESOURCE_LOAD_FAILED`,we=`${he}_START_INIT`,Ce=`${he}_INIT_STARTED`,ye=`${he}_INIT_FINISHED`,Te=`${he}_INIT_FAILED`,Se=`${he}_LAZY_INIT_FAILED`,ke=`${he}_DESTROY`,Oe=`${he}_DESTROY_ACKNOWLEDGE`,xe=`${he}_DESTROYED`,Ne=`${he}_DESTROY_FAILED`,Ie=`${he}_START_PIPELINE`,De=`${he}_START_PIPELINE_ACKNOWLEDGE`,Le=`${he}_PIPELINE_STARTED`,Pe=`${he}_PIPELINE_START_FAILED`,Re=`${he}_PAUSE_PIPELINE`,Me=`${he}_PAUSE_PIPELINE_ACKNOWLEDGE`,Be=`${he}_PIPELINE_PAUSED`,Ue=`${he}_PIPELINE_PAUSE_FAILED`,Ve=`${he}_STOP_PIPELINE`,$e=`${he}_STOP_PIPELINE_ACKNOWLEDGE`,He=`${he}_PIPELINE_STOPPED`,Ge=`${he}_PIPELINE_STOP_FAILED`,We=`${he}_CHANGE_CAMERA`,je=`${he}_CHANGE_CAMERA_ACKNOWLEDGE`,qe=`${he}_CAMERA_CHANGED`,Fe=`${he}_CAMERA_CHANGE_FAILED`,ze=`${he}_CAMERA_ACCESS_REQUESTED`,Ke=`${he}_CAMERA_ACCESS_GRANTED`,Ye=`${he}_CAMERA_ACCESS_FAILED`,Ze=`${he}_GET_CAMERAS_LIST`,Je=`${he}_GET_CAMERAS_LIST_ACKNOWLEDGE`,Qe=`${he}_CAMERAS_LIST`,Xe=`${he}_CAMERAS_LIST_FAILED`,et=`${he}_SET_MODEL`,tt=`${he}_SET_MODEL_ACKNOWLEDGE`,rt=`${he}_MODEL_SET`,nt=`${he}_MODEL_SET_FAILED`,ot=`${he}_LOG_3D_VIEWER_DURATION`,it=`${he}_LOG_3D_VIEWER_DURATION_ACKNOWLEDGE`,at=`${he}_LOG_3D_VIEWER_DURATION_SENT`,st=`${he}_LOG_3D_VIEWER_DURATION_FAILED`,lt=`${he}_TAKE_PHOTO`,ct=`${he}_TAKE_PHOTO_ACKNOWLEDGE`,_t=`${he}_PHOTO_TAKEN`,ut=`${he}_PHOTO_TAKE_FAILED`,dt=`${he}_TRY_ON`,ft=`${he}_3D_SUCCEEDED`,ht=`${he}_ERROR`,pt=`${he}_OBJECT_APPEARED`,At=`${he}_OBJECT_DISAPPEARED`,Et=`${he}_DEBUG`,mt=`${he}_DEBUG_FAILED`,vt=`${he}_DEBUG_SUCCESS`,bt=`${he}_FREEZE_ON_CAMERA_CHANGE`,gt=`${he}_WARMED_UP`,wt=`${he}_FRAME_SIZE_CHANGED`,Ct=`${he}_INIT_VIDEO`,yt=`${he}_INIT_VIDEO_ACKNOWLEDGE`,Tt=`${he}_VIDEO_INITIALIZED`,St=`${he}_VIDEO_INIT_FAILED`,kt=`${he}_LOG`,Ot=`${he}_SET_MODE`,xt=`${he}_SET_MODE_ACKNOWLEDGE`,Nt=`${he}_MODE_SET`,It=`${he}_SET_MODE_FAILED`,Dt=`${he}_SET_POI`,Lt=`${he}_SET_POI_ACKNOWLEDGE`,Pt=`${he}_POI_SET`,Rt=`${he}_SET_POI_FAILED`,Mt=`${he}_CAMERA_ZOOM`,Bt=`${he}_CAMERA_ZOOM_ACKNOWLEDGE`,Ut=`${he}_CAMERA_ZOOMED`,Vt=`${he}_CAMERA_ZOOM_FAILED`,$t=`${he}_ONBOARDING`,Ht=`${he}_ONBOARDING_ACKNOWLEDGE`,Gt=`${he}_ONBOARDING_SUCCESS`,Wt=`${he}_ONBOARDING_FAILED`,jt=`${he}_TOGGLE_DIMENSIONS`,qt=`${he}_TOGGLE_DIMENSIONS_ACKNOWLEDGE`,Ft=`${he}_TOGGLE_DIMENSIONS_SUCCESS`,zt=`${he}_TOGGLE_DIMENSIONS_FAILED`,Kt=`${he}_INTERACTION_STARTED`,Yt=`${he}_INTERACTION_ENDED`,Zt=`${he}_LOG_WRIST_MEASURE`,Jt=`${he}__LOG_WRIST_MEASURE_ACKNOWLEDGE`,Qt=`${he}_LOG_WRIST_MEASURE_SUCCESS`,Xt=`${he}_LOG_WRIST_MEASURE_FAILED`,er=`${he}_GET_DEVICE_DETECTION_CLIENT_URL`,tr=`${he}_GET_DEVICE_DETECTION_CLIENT_URL_ACKNOWLEDGE`,rr=`${he}_DEVICE_DETECTION_CLIENT_URL`,nr=`${he}_DEVICE_DETECTION_CLIENT_URL_FAILED`
231
- const or=
75
+ const U="error",G="model",$="WANNA_EVENT",x=`${$}_SDK_LOADED`,W=`${$}_LOAD_RESOURCE_MODEL`,j=`${$}_LOAD_RESOURCE_MODEL_ACKNOWLEDGE`,F=`${$}_RESOURCE_LOAD_STARTED`,H=`${$}_RESOURCE_LOAD_PROGRESS`,K=`${$}_RESOURCE_LOAD_FINISHED`,q=`${$}_RESOURCE_LOAD_FAILED`,z=`${$}_START_INIT`,B=`${$}_INIT_STARTED`,Z=`${$}_INIT_FINISHED`,Y=`${$}_INIT_FAILED`,J=`${$}_LAZY_INIT_FAILED`,Q=`${$}_DESTROY`,X=`${$}_DESTROY_ACKNOWLEDGE`,ee=`${$}_DESTROYED`,te=`${$}_DESTROY_FAILED`,ie=`${$}_START_PIPELINE`,re=`${$}_START_PIPELINE_ACKNOWLEDGE`,oe=`${$}_PIPELINE_STARTED`,ne=`${$}_PIPELINE_START_FAILED`,se=`${$}_PAUSE_PIPELINE`,ae=`${$}_PAUSE_PIPELINE_ACKNOWLEDGE`,Ee=`${$}_PIPELINE_PAUSED`,le=`${$}_PIPELINE_PAUSE_FAILED`,ce=`${$}_STOP_PIPELINE`,de=`${$}_STOP_PIPELINE_ACKNOWLEDGE`,_e=`${$}_PIPELINE_STOPPED`,ue=`${$}_PIPELINE_STOP_FAILED`,he=`${$}_CHANGE_CAMERA`,be=`${$}_CHANGE_CAMERA_ACKNOWLEDGE`,me=`${$}_CAMERA_CHANGED`,fe=`${$}_CAMERA_CHANGE_FAILED`,we=`${$}_CAMERA_ACCESS_REQUESTED`,pe=`${$}_CAMERA_ACCESS_GRANTED`,ve=`${$}_CAMERA_ACCESS_FAILED`,Te=`${$}_GET_CAMERAS_LIST`,ge=`${$}_GET_CAMERAS_LIST_ACKNOWLEDGE`,Se=`${$}_CAMERAS_LIST`,Ae=`${$}_CAMERAS_LIST_FAILED`,Oe=`${$}_SET_MODEL`,Ie=`${$}_SET_MODEL_ACKNOWLEDGE`,Ne=`${$}_MODEL_SET`,De=`${$}_MODEL_SET_FAILED`,ye=`${$}_LOG_3D_VIEWER_DURATION`,Le=`${$}_LOG_3D_VIEWER_DURATION_ACKNOWLEDGE`,Pe=`${$}_LOG_3D_VIEWER_DURATION_SENT`,Re=`${$}_LOG_3D_VIEWER_DURATION_FAILED`,Ce=`${$}_TAKE_PHOTO`,ke=`${$}_TAKE_PHOTO_ACKNOWLEDGE`,Me=`${$}_PHOTO_TAKEN`,Ve=`${$}_PHOTO_TAKE_FAILED`,Ue=`${$}_TRY_ON`,Ge=`${$}_3D_SUCCEEDED`,$e=`${$}_ERROR`,xe=`${$}_OBJECT_APPEARED`,We=`${$}_OBJECT_DISAPPEARED`,je=`${$}_DEBUG`,Fe=`${$}_DEBUG_FAILED`,He=`${$}_DEBUG_SUCCESS`,Ke=`${$}_FREEZE_ON_CAMERA_CHANGE`,qe=`${$}_WARMED_UP`,ze=`${$}_FRAME_SIZE_CHANGED`,Be=`${$}_INIT_VIDEO`,Ze=`${$}_INIT_VIDEO_ACKNOWLEDGE`,Ye=`${$}_VIDEO_INITIALIZED`,Je=`${$}_VIDEO_INIT_FAILED`,Qe=`${$}_LOG`,Xe=`${$}_SET_MODE`,et=`${$}_SET_MODE_ACKNOWLEDGE`,tt=`${$}_MODE_SET`,it=`${$}_SET_MODE_FAILED`,rt=`${$}_SET_POI`,ot=`${$}_SET_POI_ACKNOWLEDGE`,nt=`${$}_POI_SET`,st=`${$}_SET_POI_FAILED`,at=`${$}_CAMERA_ZOOM`,Et=`${$}_CAMERA_ZOOM_ACKNOWLEDGE`,lt=`${$}_CAMERA_ZOOMED`,ct=`${$}_CAMERA_ZOOM_FAILED`,dt=`${$}_ONBOARDING`,_t=`${$}_ONBOARDING_ACKNOWLEDGE`,ut=`${$}_ONBOARDING_SUCCESS`,ht=`${$}_ONBOARDING_FAILED`,bt=`${$}_TOGGLE_DIMENSIONS`,mt=`${$}_TOGGLE_DIMENSIONS_ACKNOWLEDGE`,ft=`${$}_TOGGLE_DIMENSIONS_SUCCESS`,wt=`${$}_TOGGLE_DIMENSIONS_FAILED`,pt=`${$}_INTERACTION_STARTED`,vt=`${$}_INTERACTION_ENDED`,Tt=`${$}_LOG_WRIST_MEASURE`,gt=`${$}__LOG_WRIST_MEASURE_ACKNOWLEDGE`,St=`${$}_LOG_WRIST_MEASURE_SUCCESS`,At=`${$}_LOG_WRIST_MEASURE_FAILED`,Ot=`${$}_GET_WRIST_MEASUREMENT_CONFIG`,It=`${$}_GET_WRIST_MEASUREMENT_CONFIG_ACKNOWLEDGE`,Nt=`${$}_WRIST_MEASUREMENT_CONFIG`,Dt=`${$}_WRIST_MEASUREMENT_CONFIG_FAILED`
76
+ const yt=
232
77
  // Copyright © 2021 WANNABY Inc. All rights reserved.
233
- class EventEmitter{constructor(){this.events={},this.verbose=!1,this.__setDefaultErrorListener()}__setDefaultErrorListener(){this.on(de,this.__defaultErrorListener.bind(this))}__defaultErrorListener(t){if(this.events.error&&1===this.events.error.length){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i]
234
- console.error(t,"details:",o)}}__addListener(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
235
- this.events[t]=this.events[t]||[],o?this.events[t].unshift(n):this.events[t].push(n)}on(t,n){return this.__addListener(t,n),this}prependListener(t,n){return this.__addListener(t,n,!0),this}once(t,n){var o=this
236
- const selfRemovedListener=function(){n(...arguments),o.off(t,selfRemovedListener)}
237
- return this.__addListener(t,selfRemovedListener),this}off(t,n){const o=this.events[t]||[]
238
- return this.events[t]=o.filter((t=>t!==n)),0===this.events[t].length&&delete this.events[t],this}removeAllListeners(t){return delete this.events[t],t===de&&this.__setDefaultErrorListener(),this}clearAll(){return this.events={},this.__setDefaultErrorListener(),this}debugEvent(t){if(this.verbose&&![kt,Et,vt].includes(t)){t||console.warn("Empty event param.")
239
- for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i]
240
- console.log(`[${this.constructor.name}] Emit event: [${t}]. Data: ${JSON.stringify(o)}`)}}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i]
241
- const l=this.events[t]
242
- if(this.debugEvent(t,...o),t===kt){const t=o[0]
243
- if("object"===typeof t){const{type:n,message:o,verbose:i}=t
244
- if(!i||!this.verbose)return
245
- o&&("log"===n||"warn"===n||"info"===n||"error"===n?console[n](`[${this.constructor.name}] ${o}`):console.log(`[${this.constructor.name}] ${o}`))}else t&&console.log(`[${this.constructor.name}] ${t}`)}return!!l&&(l.forEach((n=>{try{n(...o)}catch(i){this.emit(de,i,{event:t,data:o,callback:n})}})),!0)}},ir="sneakers",ar="watch",sr="generic",lr=[ir,ar,"bag",sr],cr=[ir,ar],_r={MODEL_TYPE_SNEAKER:ir,MODEL_TYPE_WATCH:ar,MODEL_TYPE_BAG:"bag",MODEL_TYPE_GENERIC:sr},ur="dark",dr="light",fr=[ur,dr],hr={THEME_DARK:ur,THEME_LIGHT:dr},pr={MODE_3D_ZOOM_IN:"in",MODE_3D_ZOOM_OUT:"out"},Ar={MODE_3D_DIMENSIONS_CM:"cm",MODE_3D_DIMENSIONS_INCH:"inch"},Er={ONBOARDING_3D_MODE_PINCH:"pinch",ONBOARDING_3D_MODE_DOUBLE_CLICK:"double_click"}
246
- var mr,vr=new Uint8Array(16)
247
- function rng(){if(!mr&&!(mr="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")
248
- return mr(vr)}const br=/^(?:[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
249
- const gr=function validate(t){return"string"===typeof t&&br.test(t)}
250
- for(var wr=[],Cr=0;Cr<256;++Cr)wr.push((Cr+256).toString(16).substr(1))
251
- const yr=function stringify(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(wr[t[n+0]]+wr[t[n+1]]+wr[t[n+2]]+wr[t[n+3]]+"-"+wr[t[n+4]]+wr[t[n+5]]+"-"+wr[t[n+6]]+wr[t[n+7]]+"-"+wr[t[n+8]]+wr[t[n+9]]+"-"+wr[t[n+10]]+wr[t[n+11]]+wr[t[n+12]]+wr[t[n+13]]+wr[t[n+14]]+wr[t[n+15]]).toLowerCase()
252
- if(!gr(o))throw TypeError("Stringified UUID is invalid")
253
- return o}
254
- const Tr=function v4(t,n,o){var i=(t=t||{}).random||(t.rng||rng)()
255
- if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){o=o||0
256
- for(var l=0;l<16;++l)n[o+l]=i[l]
257
- return n}return yr(i)},Sr="Error",kr="Unknown error",Or="TraceError"
258
- class TraceError_TraceError extends Error{constructor(t,n){if(super(t,n),_defineProperty(this,"name",Or),_defineProperty(this,"_name",Or),this.constructor!==TraceError_TraceError)throw new Error("Not allowed to inherit TraceError")
259
- let o=null===n||void 0===n?void 0:n.cause
260
- "string"===typeof o&&(o=new Error(o)),this.cause=o,this.name=(null===n||void 0===n?void 0:n.name)||this.name,this.messageParams=null===n||void 0===n?void 0:n.messageParams,this.params=(null===n||void 0===n?void 0:n.params)||{}}rootCause(){let t=this
261
- for(;t.cause;)t=t.cause
262
- return t}getCallStack(){let t="",n=this
263
- for(;n;){let o=null
264
- try{o=JSON.stringify(n.messageParams)}catch(t){o="*impossible to stringify*"}t+=`${TraceError_TraceError.getErrorStack(n)}${o?`\n${o}`:""}`,n.cause&&(t+="\nCaused by: "),n=n.cause}return t}getParams(){let t={},n=this
265
- for(;n;)t={...n.params,...t},n=n.cause
266
- return t}static generateErrorId(){return Tr()}static toObject(t){var n,o
267
- let i=t,l={}
268
- return TraceError_TraceError.isTraceError(t)&&(i=t.rootCause(),l=t.getParams()),{errorId:TraceError_TraceError.generateErrorId(),message:(null===(n=i)||void 0===n?void 0:n.message)||kr,name:(null===(o=i)||void 0===o?void 0:o.name)||Sr,params:l}}static getErrorStack(t){const n=`${(null===t||void 0===t?void 0:t.name)||Sr}: ${(null===t||void 0===t?void 0:t.message)||kr}`
269
- let o=(null===t||void 0===t?void 0:t.stack)||(null===t||void 0===t?void 0:t.toString())||""
270
- return o.startsWith(n)||(o=`${n}${o?`\n${o}`:""}`),o}static callStack(t){if(TraceError_TraceError.isTraceError(t))return t.getCallStack()
271
- if(t instanceof Error)return TraceError_TraceError.getErrorStack(t)
272
- if("object"===typeof t)try{return`Object received instead of Error: '${JSON.stringify(t)}'`}catch(t){return"Non-serializable object received instead of Error =("}return(null===t||void 0===t?void 0:t.toString)instanceof Function?t.toString():`${Sr}: ${kr}`}static isTraceError(t){return t instanceof Error&&t._name===Or}static containsInstance(t,n){if(TraceError_TraceError.isTraceError(t)){let o=t
273
- for(;o;){if(o instanceof n)return!0
274
- o=o.cause}return!1}return t instanceof n}static getRootCause(t){return TraceError_TraceError.isTraceError(t)?t.rootCause():t}}const xr=TraceError_TraceError,throttle=function(t,n){let o,i,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]
275
- return function(){clearTimeout(i),!o||Date.now()-o>n?(o=Date.now(),t.apply(this,arguments)):l&&(i=setTimeout((()=>{t.apply(this,arguments)}),n))}},clamp=(t,n,o)=>t<=n?n:t>=o?o:t
78
+ class EventEmitter{constructor(){this.events={},this.verbose=!1,this.__setDefaultErrorListener()}__setDefaultErrorListener(){this.on(U,this.__defaultErrorListener.bind(this))}__defaultErrorListener(e){if(this.events.error&&1===this.events.error.length){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r]
79
+ console.error(e,"details:",i)}}__addListener(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
80
+ this.events[e]=this.events[e]||[],i?this.events[e].unshift(t):this.events[e].push(t)}on(e,t){return this.__addListener(e,t),this}prependListener(e,t){return this.__addListener(e,t,!0),this}once(e,t){var i=this
81
+ const selfRemovedListener=function(){t(...arguments),i.off(e,selfRemovedListener)}
82
+ return this.__addListener(e,selfRemovedListener),this}off(e,t){const i=this.events[e]||[]
83
+ return this.events[e]=i.filter((e=>e!==t)),0===this.events[e].length&&delete this.events[e],this}removeAllListeners(e){return delete this.events[e],e===U&&this.__setDefaultErrorListener(),this}clearAll(){return this.events={},this.__setDefaultErrorListener(),this}debugEvent(e){if(this.verbose&&![Qe,je,He].includes(e)){e||console.warn("Empty event param.")
84
+ for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r]
85
+ console.log(`[${this.constructor.name}] Emit event: [${e}]. Data: ${JSON.stringify(i)}`)}}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r]
86
+ const o=this.events[e]
87
+ if(this.debugEvent(e,...i),e===Qe){const e=i[0]
88
+ if("object"===typeof e){const{type:t,message:i,verbose:r}=e
89
+ if(!r||!this.verbose)return
90
+ i&&("log"===t||"warn"===t||"info"===t||"error"===t?console[t](`[${this.constructor.name}] ${i}`):console.log(`[${this.constructor.name}] ${i}`))}else e&&console.log(`[${this.constructor.name}] ${e}`)}return!!o&&(o.forEach((t=>{try{t(...i)}catch(r){this.emit(U,r,{event:e,data:i,callback:t})}})),!0)}},Lt="sneakers",Pt="watch",Rt="generic",Ct=[Lt,Pt,"bag",Rt],kt=[Lt,Pt],Mt={MODEL_TYPE_SNEAKER:Lt,MODEL_TYPE_WATCH:Pt,MODEL_TYPE_BAG:"bag",MODEL_TYPE_GENERIC:Rt},Vt="dark",Ut="light",Gt=[Vt,Ut],$t={THEME_DARK:Vt,THEME_LIGHT:Ut},xt={MODE_3D_ZOOM_IN:"in",MODE_3D_ZOOM_OUT:"out"},Wt={MODE_3D_DIMENSIONS_CM:"cm",MODE_3D_DIMENSIONS_INCH:"inch"},jt={ONBOARDING_3D_MODE_PINCH:"pinch",ONBOARDING_3D_MODE_DOUBLE_CLICK:"double_click"}
91
+ var Ft,Ht=new Uint8Array(16)
92
+ function rng(){if(!Ft&&!(Ft="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")
93
+ return Ft(Ht)}const Kt=/^(?:[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
94
+ const qt=function validate(e){return"string"===typeof e&&Kt.test(e)}
95
+ for(var zt=[],Bt=0;Bt<256;++Bt)zt.push((Bt+256).toString(16).substr(1))
96
+ const Zt=function stringify(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(zt[e[t+0]]+zt[e[t+1]]+zt[e[t+2]]+zt[e[t+3]]+"-"+zt[e[t+4]]+zt[e[t+5]]+"-"+zt[e[t+6]]+zt[e[t+7]]+"-"+zt[e[t+8]]+zt[e[t+9]]+"-"+zt[e[t+10]]+zt[e[t+11]]+zt[e[t+12]]+zt[e[t+13]]+zt[e[t+14]]+zt[e[t+15]]).toLowerCase()
97
+ if(!qt(i))throw TypeError("Stringified UUID is invalid")
98
+ return i}
99
+ const Yt=function v4(e,t,i){var r=(e=e||{}).random||(e.rng||rng)()
100
+ if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){i=i||0
101
+ for(var o=0;o<16;++o)t[i+o]=r[o]
102
+ return t}return Zt(r)},Jt="Error",Qt="Unknown error",Xt="TraceError"
103
+ class TraceError_TraceError extends Error{constructor(e,t){if(super(e,t),this._name=Xt,this.name=Xt,this.constructor!==TraceError_TraceError)throw new Error("Not allowed to inherit TraceError")
104
+ let i=null===t||void 0===t?void 0:t.cause
105
+ "string"===typeof i&&(i=new Error(i)),this.cause=i,this.name=(null===t||void 0===t?void 0:t.name)||this.name,this.messageParams=null===t||void 0===t?void 0:t.messageParams,this.params=(null===t||void 0===t?void 0:t.params)||{}}rootCause(){let e=this
106
+ for(;e instanceof Error&&e.cause;)e=e.cause
107
+ return e}getCallStack(){let e="",t=this
108
+ for(;t;){let i=null
109
+ try{i=TraceError_TraceError.isTraceError(t)?JSON.stringify(t.messageParams):""}catch(e){i="*impossible to stringify*"}e+=`${TraceError_TraceError.getErrorStack(t)}${i?`\n${i}`:""}`,t instanceof Error&&t.cause&&(e+="\nCaused by: "),t=t instanceof Error?t.cause:null}return e}getParams(){let e={},t=this
110
+ for(;t&&TraceError_TraceError.isTraceError(t);)e=Object.assign(Object.assign({},t.params),e),t=t.cause
111
+ return e}static generateErrorId(){return Yt()}static toObject(e){let t=e,i={}
112
+ return TraceError_TraceError.isTraceError(e)&&(t=e.rootCause(),i=e.getParams()),{errorId:TraceError_TraceError.generateErrorId(),message:TraceError_TraceError.getErrorMessage(t),name:TraceError_TraceError.getErrorName(t),stack:TraceError_TraceError.callStack(e),params:i}}static getErrorStack(e){const t=`${TraceError_TraceError.getErrorName(e)}: ${TraceError_TraceError.getErrorMessage(e)}`
113
+ let i=(null===e||void 0===e?void 0:e.stack)||(null===e||void 0===e?void 0:e.toString())||""
114
+ return i.startsWith(t)||(i=`${t}${i?`\n${i}`:""}`),i}static callStack(e){var t
115
+ if(TraceError_TraceError.isTraceError(e))return e.getCallStack()
116
+ if(e instanceof Error)return TraceError_TraceError.getErrorStack(e)
117
+ if("object"===typeof e)try{return`Object received instead of Error: '${JSON.stringify(e)}'`}catch(e){return"Non-serializable object received instead of Error =("}return(null===(t=null===e||void 0===e?void 0:e.toString)||void 0===t?void 0:t.call(e))||`${Jt}: ${Qt}`}static isTraceError(e){return e instanceof Error&&e._name===Xt}static containsInstance(e,t){if(TraceError_TraceError.isTraceError(e)){let i=e
118
+ for(;i;){if(i instanceof t)return!0
119
+ i=i instanceof Error?i.cause:null}return!1}return e instanceof t}static getRootCause(e){return TraceError_TraceError.isTraceError(e)?e.rootCause():e}static getErrorName(e){return(null===e||void 0===e?void 0:e.name)||Jt}static getErrorMessage(e){return(null===e||void 0===e?void 0:e.message)||Qt}}const ei=TraceError_TraceError
276
120
 
277
121
  ;// Copyright © 2021 WANNABY Inc. All rights reserved.
278
- const isPortraitWindow=()=>window.innerHeight>window.innerWidth,getImage=t=>new Promise(((n,o)=>{const i=new Image
279
- i.onload=()=>n(i),i.onerror=()=>o(new Error(`Failed to download ${t}.`)),i.crossOrigin="anonymous",i.src=t})),Nr=((t=>{let n,o=!1,i=!1})((async()=>{const t=new Blob(['<svg width="72" height="24" viewBox="0 0 72 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g opacity="0.4">\n<path d="M11.2677 3L13.0218 13.41H13.123L14.9782 3H18.1809L14.9521 19.1538H11.5487L9.63931 8.05094H9.53985L7.63221 19.1538H4.22884L1 3H4.40337L6.20977 13.41H6.31188L8.11653 3H11.2677Z" fill="white"/>\n<path d="M25.609 3L30.2096 19.1538H26.7521L25.7608 15.4358H21.0842L20.0676 19.1538H16.8911L21.4909 3H25.609ZM21.8216 12.718H25.0234L23.4989 6.94866H23.3977L21.8216 12.718Z" fill="white"/>\n<path d="M39.5051 12.5639H39.6063V3H42.7322V19.1538H40.0636L34.5746 8.97449H34.4724V19.1538H31.3213V3H34.5501L39.5051 12.5639Z" fill="white"/>\n<path d="M52.5471 12.5639H52.6483V3H55.7742V19.1538H53.1056L47.6166 8.97449H47.5127V19.1538H44.3633V3H47.5921L52.5471 12.5639Z" fill="white"/>\n<path d="M65.6047 3L70.2019 19.1538H66.7479L65.7566 15.4358H61.0808L60.0642 19.1538H56.8868L61.4866 3H65.6047ZM61.8173 12.718H65.02L63.4945 6.94866H63.3951L61.8173 12.718Z" fill="white"/>\n</g>\n</svg>\n'],{type:"image/svg+xml"}),n=URL.createObjectURL(t),o=await getImage(n)
280
- return URL.revokeObjectURL(n),o})),t=>{const n=t.getBoundingClientRect()
281
- return n.top<(window.innerHeight||document.documentElement.clientHeight)&&n.bottom>0&&n.left>=0&&n.right<=(window.innerWidth||document.documentElement.clientWidth)}),Ir="2.7.1"
282
- var Dr=__webpack_require__("6a8587efdf375fa70471"),Lr=0
283
- function e(t,n,o,i,l){var c,u,f={}
284
- for(u in n)"ref"==u?c=n[u]:f[u]=n[u]
285
- var E={type:t,props:f,key:o,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Lr,__source:l,__self:i}
286
- if("function"==typeof t&&(c=t.defaultProps))for(u in c)void 0===f[u]&&(f[u]=c[u])
287
- return Dr.options.vnode&&Dr.options.vnode(E),E}var Pr,Rr,Mr,Br,Ur=0,Vr=[],$r=[],Hr=Dr.options.__b,Gr=Dr.options.__r,Wr=Dr.options.diffed,jr=Dr.options.__c,qr=Dr.options.unmount
288
- function d(t,n){Dr.options.__h&&Dr.options.__h(Rr,t,Ur||n),Ur=0
289
- var o=Rr.__H||(Rr.__H={__:[],__h:[]})
290
- return t>=o.__.length&&o.__.push({__V:$r}),o.__[t]}function p(t){return Ur=1,function y(t,n,o){var i=d(Pr++,2)
291
- if(i.t=t,!i.__c&&(i.__=[o?o(n):z(void 0,n),function(t){var n=i.__N?i.__N[0]:i.__[0],o=i.t(n,t)
292
- n!==o&&(i.__N=[o,i.__[1]],i.__c.setState({}))}],i.__c=Rr,!Rr.u)){Rr.u=!0
293
- var l=Rr.shouldComponentUpdate
294
- Rr.shouldComponentUpdate=function(t,n,o){if(!i.__c.__H)return!0
295
- var c=i.__c.__H.__.filter((function(t){return t.__c}))
296
- if(c.every((function(t){return!t.__N})))return!l||l.call(this,t,n,o)
297
- var u=!1
298
- return c.forEach((function(t){if(t.__N){var n=t.__[0]
299
- t.__=t.__N,t.__N=void 0,n!==t.__[0]&&(u=!0)}})),!!u&&(!l||l.call(this,t,n,o))}}return i.__N||i.__}(z,t)}function s(t,n){var o=d(Pr++,4)
300
- !Dr.options.__s&&w(o.__H,n)&&(o.__=t,o.i=n,Rr.__h.push(o))}function _(t){return Ur=5,F((function(){return{current:t}}),[])}function F(t,n){var o=d(Pr++,7)
301
- return w(o.__H,n)?(o.__V=t(),o.i=n,o.__h=t,o.__V):o.__}function T(t,n){return Ur=8,F((function(){return t}),n)}function q(t){var n=Rr.context[t.__c],o=d(Pr++,9)
302
- return o.c=t,n?(null==o.__&&(o.__=!0,n.sub(Rr)),n.props.value):t.__}function b(){for(var t;t=Vr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(j),t.__H.__h.forEach(k),t.__H.__h=[]}catch(n){t.__H.__h=[],Dr.options.__e(n,t.__v)}}Dr.options.__b=function(t){Rr=null,Hr&&Hr(t)},Dr.options.__r=function(t){Gr&&Gr(t),Pr=0
303
- var n=(Rr=t.__c).__H
304
- n&&(Mr===Rr?(n.__h=[],Rr.__h=[],n.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=$r,t.__N=t.i=void 0}))):(n.__h.forEach(j),n.__h.forEach(k),n.__h=[])),Mr=Rr},Dr.options.diffed=function(t){Wr&&Wr(t)
305
- var n=t.__c
306
- n&&n.__H&&(n.__H.__h.length&&(1!==Vr.push(n)&&Br===Dr.options.requestAnimationFrame||((Br=Dr.options.requestAnimationFrame)||function(t){var n,r=function(){clearTimeout(o),Fr&&cancelAnimationFrame(n),setTimeout(t)},o=setTimeout(r,100)
307
- Fr&&(n=requestAnimationFrame(r))})(b)),n.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==$r&&(t.__=t.__V),t.i=void 0,t.__V=$r}))),Mr=Rr=null},Dr.options.__c=function(t,n){n.some((function(t){try{t.__h.forEach(j),t.__h=t.__h.filter((function(t){return!t.__||k(t)}))}catch(o){n.some((function(t){t.__h&&(t.__h=[])})),n=[],Dr.options.__e(o,t.__v)}})),jr&&jr(t,n)},Dr.options.unmount=function(t){qr&&qr(t)
308
- var n,o=t.__c
309
- o&&o.__H&&(o.__H.__.forEach((function(t){try{j(t)}catch(t){n=t}})),n&&Dr.options.__e(n,o.__v))}
310
- var Fr="function"==typeof requestAnimationFrame
311
- function j(t){var n=Rr,o=t.__c
312
- "function"==typeof o&&(t.__c=void 0,o()),Rr=n}function k(t){var n=Rr
313
- t.__c=t.__(),Rr=n}function w(t,n){return!t||t.length!==n.length||n.some((function(n,o){return n!==t[o]}))}function z(t,n){return"function"==typeof n?n(t):n}var zr=__webpack_require__("11ba4adafc9d0c504da7"),Kr=__webpack_require__.n(zr)
314
-
315
- ;// Copyright © 2022 WANNABY Inc. All rights reserved.
316
- function usePortraitOrientation(){var t=p(!0),n=t[0],o=t[1]
317
- return function h(t,n){var o=d(Pr++,3)
318
- !Dr.options.__s&&w(o.__H,n)&&(o.__=t,o.i=n,Rr.__H.__h.push(o))}((function(){var t=throttle((function(){o(isPortraitWindow)}),300)
319
- return window.addEventListener("resize",t),t(),function(){window.removeEventListener("resize",t)}}),[]),n}const Yr=JSON.parse('{"wristMeasureHeader":"Align top of your wrist with this line","wristMeasureSave":"Save","wristMeasureRulerText":"Drag to measure width of your wrist","rotateThePhoneToTryOn":"Rotate the phone to try on","ariaWristMeasureInfo":"Help","ariaWristMeasureClose":"Close"}')
320
-
321
- ;// Copyright © 2022 WANNABY Inc. All rights reserved.
322
- var Zr,Jr=(0,Dr.createContext)(Yr),__assign=function(){return __assign=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++)for(var l in n=arguments[o])Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])
323
- return t},__assign.apply(this,arguments)},LabelProvider=function(t){return e(Jr.Provider,__assign({value:__assign(__assign({},Yr),t.labels)},{children:t.children}))}
324
- !function(t){t.Started="wrist_measure_started",t.Completed="wrist_measure_completed",t.Skipped="wrist_measure_skipped"}(Zr||(Zr={}))
325
- var Qr=__webpack_require__("d5e9054b262f472d997d"),Xr=__webpack_require__.n(Qr),en=__webpack_require__("2acb82eaab1f864ee2e5"),tn=__webpack_require__.n(en),rn=__webpack_require__("00c6b9d533789335552a"),nn=__webpack_require__.n(rn),on=__webpack_require__("628eefe45d41851e20ae"),an=__webpack_require__.n(on),normalizeColor=function(t){return t.startsWith("#")?t:"#".concat(t)},getColorsContrastRatio=function(t,n){return getContrastRatio(getRelativeLuminance(hexToRgb(t)),getRelativeLuminance(hexToRgb(n)))},getRelativeLuminance=function(t){var n=[t.r,t.g,t.b].map((function(t){var n=t/255
326
- return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}))
327
- return.2126*n[0]+.7152*n[1]+.0722*n[2]},getContrastRatio=function(t,n){return t>n?(n+.05)/(t+.05):(t+.05)/(n+.05)},hexToRgb=function(t){t=t.trim().replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,n,o,i){return n+n+o+o+i+i}))
328
- var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t)
329
- if(!n)throw new Error("'".concat(t,"' is invalid hex color"))
330
- return{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}},getMoreContrastingColor=function(t,n,o){return getColorsContrastRatio(n,t)<getColorsContrastRatio(o,t)?n:o},Text=function(t){var n=t.labelKey,o=q(Jr)
331
- return e(Dr.Fragment,{children:o[n]})},sn=__webpack_require__("236575b133dff5fe1733"),ln=__webpack_require__.n(sn),Tick_assign=function(){return Tick_assign=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++)for(var l in n=arguments[o])Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])
332
- return t},Tick_assign.apply(this,arguments)},Tick=function(t){var n=t.letter,o=t.index,i=t.notchHeight,l=Math.round((o+1)*i*2)
333
- return e(Dr.Fragment,{children:[e("div",{className:Xr()(ln().tick,ln().tick_small),style:{top:Math.round(l-i)}}),e("div",Tick_assign({"aria-hidden":!0,className:ln().tick,style:{top:l}},{children:e("span",Tick_assign({className:ln().tickLetter},{children:n}))})),e("div",{className:Xr()(ln().tick,ln().tick_small,ln().tick_right),style:{top:Math.round(l-i)}}),e("div",{className:Xr()(ln().tick,ln().tick_right),style:{top:l}})]})},WristMeasure_assign=function(){return WristMeasure_assign=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++)for(var l in n=arguments[o])Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])
334
- return t},WristMeasure_assign.apply(this,arguments)},cn=Array.from({length:26},(function(t,n){return String.fromCharCode(n+65)})),WristMeasure=function(t){var n,o,i=t.pixelsInOneMM,l=t.startWristSize,c=t.styles,u=t.onSaveClick,f=t.onCloseClick,E=t.onInfoClick,D=t.sendLogEvent,R=q(Jr),U=5*i,V=2*U,G=8*U,W=_(null),K=_(null),Y=_(null),Z=_(null),J=p(!0),Q=J[0],X=J[1],ee=p(Math.max(null!==l&&void 0!==l?l:0,G/i)),te=ee[0],re=ee[1],ne=F((function(){return function(t){var n={}
335
- if(!t)return{}
336
- var o=t.rulerFillColor,i=t.rulerColor,l=t.iconsColor,c=t.buttonFillColor,u=t.buttonRadius,f=t.buttonTextColor,E=t.buttonStrokeColor
337
- if(i&&(n["--ruler-color"]=normalizeColor(i),n["--ruler-notches-color"]=normalizeColor(i)),o){n["--ruler-fill-color"]=normalizeColor(o)
338
- var D=getComputedStyle(document.documentElement)
339
- n["--overlay-notch-color"]=getMoreContrastingColor(o,D.getPropertyValue("--overlay-notch-color-light-theme"),D.getPropertyValue("--overlay-notch-color-dark-theme"))}return l&&(n["--icons-color"]=normalizeColor(l)),c&&(n["--button-fill-color"]=normalizeColor(c)),f&&(n["--button-text-color"]=normalizeColor(f)),E&&(n["--button-stroke-color"]=normalizeColor(E)),void 0!==u&&(n["--button-radius"]="".concat(u,"px")),n}(c)}),[c]),oe=T((function(t){if(K.current&&W.current){if(Y.current){var n=K.current,o=t.clientY-Y.current,l=clamp(n.offsetHeight+o,G,W.current.offsetHeight-7)
340
- n.style.height="".concat(l,"px"),re(l/i)}Y.current=t.clientY,Z.current&&cancelAnimationFrame(Z.current),X(!1)}}),[X]),ie=T((function(){var t=K.current
341
- if(t){var n=t.offsetHeight,o=n%U,l=o>U/2?n+(U-o):n-o,c=performance.now(),fixRuler=function(o){var u=clamp((o-c)/100,0,1),f=n+(l-n)*u
342
- t.style.height="".concat(f,"px"),u<1&&(Z.current=requestAnimationFrame(fixRuler)),re(f/i)}
343
- Z.current=requestAnimationFrame(fixRuler),Y.current=null}}),[])
344
- s((function(){var t=W.current,n=K.current
345
- if(t&&n){var o=Math.max((null!==l&&void 0!==l?l:0)*i,G),c=t.offsetHeight,u=Math.min(V*cn.length,Math.floor(c/V)*V)+7
346
- return t.style.height="".concat(u,"px"),n.style.height="".concat(o,"px"),function(){Z.current&&cancelAnimationFrame(Z.current)}}}),[])
347
- var ae=T((function(){D(Zr.Completed),u(Math.round(te))}),[u,te]),se=T((function(){D(Zr.Skipped),f()}),[f]),renderTicks=function(){return cn.map((function(t,n){return e(Tick,{letter:t,index:n,notchHeight:U},t)}))}
348
- return e("div",WristMeasure_assign({className:ln().layout,style:ne,"data-testid":"wristMeasure"},{children:[e("header",WristMeasure_assign({className:ln().header},{children:[e("button",WristMeasure_assign({className:Xr()(ln().headerButton,(n={},n[ln().headerButton_hidden]=!E,n)),onClick:function(){return null===E||void 0===E?void 0:E()},"data-testid":"infoButton","aria-label":null===R||void 0===R?void 0:R.ariaWristMeasureInfo},{children:e(nn(),{})})),e("span",WristMeasure_assign({className:ln().headerText},{children:[e(Text,{labelKey:"wristMeasureHeader"}),e("span",WristMeasure_assign({className:ln().headerTextArrow},{children:e(an(),{})}))]})),e("button",WristMeasure_assign({className:ln().headerButton,onClick:se,"data-testid":"closeButton","aria-label":null===R||void 0===R?void 0:R.ariaWristMeasureClose},{children:e(tn(),{})}))]})),e("section",WristMeasure_assign({className:ln().content,onPointerMove:oe,onPointerUp:ie},{children:[e("main",WristMeasure_assign({className:ln().main},{children:[e("div",WristMeasure_assign({ref:W,className:ln().notches},{children:renderTicks()})),e("div",WristMeasure_assign({className:ln().ruler,ref:K},{children:[e("div",{className:ln().rulerBackground}),e("div",WristMeasure_assign({className:ln().rulerContent},{children:[e("div",{className:ln().rulerCircle}),e("div",WristMeasure_assign({"aria-hidden":!Q,className:Xr()(ln().rulerText,(o={},o[ln().rulerTextHidden]=!Q,o))},{children:e(Text,{labelKey:"wristMeasureRulerText"})}))]})),e("div",WristMeasure_assign({className:ln().overlayNotches},{children:renderTicks()}))]}))]})),e("footer",WristMeasure_assign({className:ln().footer},{children:e("button",WristMeasure_assign({className:ln().footerButton,onClick:ae,"data-testid":"saveButton"},{children:e(Text,{labelKey:"wristMeasureSave"})}))}))]}))]}))},RotateDeviceIcon_assign=function(){return RotateDeviceIcon_assign=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++)for(var l in n=arguments[o])Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])
349
- return t},RotateDeviceIcon_assign.apply(this,arguments)},RotateDeviceIcon=function(){return e("svg",RotateDeviceIcon_assign({width:"84",height:"83",viewBox:"0 0 84 83",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M78.0001 1.99994H39.0237C36.8145 1.99994 35.0237 3.7908 35.0237 5.99994V76.9999C35.0237 79.2091 36.8145 80.9999 39.0237 80.9999H78.0001C80.2092 80.9999 82.0001 79.2091 82.0001 76.9999V5.99994C82.0001 3.7908 80.2092 1.99994 78.0001 1.99994ZM39.0237 -6.10352e-05C35.71 -6.10352e-05 33.0237 2.68623 33.0237 5.99994V76.9999C33.0237 80.3136 35.71 82.9999 39.0237 82.9999H78.0001C81.3138 82.9999 84.0001 80.3136 84.0001 76.9999V5.99994C84.0001 2.68623 81.3138 -6.10352e-05 78.0001 -6.10352e-05H39.0237Z",fill:"currentColor"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M50.1936 0.892426V4.24726C50.1936 4.79955 50.6413 5.24726 51.1936 5.24726H65.9355C66.4878 5.24726 66.9355 4.79955 66.9355 4.24727V0.892426H68.9355V4.24727C68.9355 5.90412 67.5924 7.24726 65.9355 7.24726H51.1936C49.5367 7.24726 48.1936 5.90412 48.1936 4.24726V0.892426H50.1936Z",fill:"currentColor"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 82.9999C3.13401 82.9999 -1.36992e-07 79.8659 -3.0598e-07 75.9999L-1.87959e-06 39.9999C-2.04858e-06 36.1339 3.134 32.9999 7 32.9999L34.7323 32.9999L34.7323 34.9999L7 34.9999C4.23857 34.9999 2 37.2385 2 39.9999L2 75.9999C2 78.7614 4.23858 80.9999 7 80.9999L43 80.9999L43 82.9999L7 82.9999Z",fill:"currentColor"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 66.3817L4.35484 66.3817C4.90712 66.3817 5.35484 65.9339 5.35484 65.3817L5.35484 50.6397C5.35484 50.0874 4.90712 49.6397 4.35484 49.6397L0.999999 49.6397L0.999999 47.6397L4.35484 47.6397C6.01169 47.6397 7.35484 48.9829 7.35484 50.6397L7.35484 65.3817C7.35484 67.0385 6.01169 68.3817 4.35484 68.3817L1 68.3817L1 66.3817Z",fill:"currentColor"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.1382 4.71794C20.5288 4.32742 21.1619 4.32742 21.5524 4.71794L26.9986 10.1641C27.3892 10.5547 27.3892 11.1878 26.9986 11.5784L21.5524 17.0245C21.1619 17.4151 20.5288 17.4151 20.1382 17.0245C19.7477 16.634 19.7477 16.0009 20.1382 15.6103L24.8773 10.8712L20.1382 6.13216C19.7477 5.74163 19.7477 5.10847 20.1382 4.71794Z",fill:"currentColor"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.2206 11.8712C12.3303 11.8712 11.4764 12.2249 10.8469 12.8545C10.2173 13.484 9.86365 14.3379 9.86365 15.2282V25.467C9.86365 26.0193 9.41593 26.467 8.86365 26.467C8.31136 26.467 7.86365 26.0193 7.86365 25.467V15.2282C7.86365 13.8074 8.42804 12.4449 9.43266 11.4403C10.4373 10.4356 11.7998 9.87125 13.2206 9.87125H26.2915C26.8438 9.87125 27.2915 10.319 27.2915 10.8712C27.2915 11.4235 26.8438 11.8712 26.2915 11.8712H13.2206Z",fill:"currentColor"})]}))},_n=__webpack_require__("d90db5b64a30977be029"),un=__webpack_require__.n(_n),PortraitOrientation_assign=function(){return PortraitOrientation_assign=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++)for(var l in n=arguments[o])Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])
350
- return t},PortraitOrientation_assign.apply(this,arguments)},PortraitOrientation=function(){return e("div",PortraitOrientation_assign({className:un().container,"data-testid":"portraitOrientation"},{children:[e("p",PortraitOrientation_assign({className:un().label},{children:e(Text,{labelKey:"rotateThePhoneToTryOn"})})),e(RotateDeviceIcon,{})]}))},App_assign=function(){return App_assign=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++)for(var l in n=arguments[o])Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])
351
- return t},App_assign.apply(this,arguments)},__awaiter=function(t,n,o,i){return new(o||(o=Promise))((function(l,c){function fulfilled(t){try{step(i.next(t))}catch(t){c(t)}}function rejected(t){try{step(i.throw(t))}catch(t){c(t)}}function step(t){t.done?l(t.value):function adopt(t){return t instanceof o?t:new o((function(n){n(t)}))}(t.value).then(fulfilled,rejected)}step((i=i.apply(t,n||[])).next())}))},__generator=function(t,n){var o,i,l,c,u={label:0,sent:function(){if(1&l[0])throw l[1]
352
- return l[1]},trys:[],ops:[]}
353
- return c={next:verb(0),throw:verb(1),return:verb(2)},"function"===typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c
354
- function verb(c){return function(f){return function step(c){if(o)throw new TypeError("Generator is already executing.")
355
- for(;u;)try{if(o=1,i&&(l=2&c[0]?i.return:c[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,c[1])).done)return l
356
- switch(i=0,l&&(c=[2&c[0],l.value]),c[0]){case 0:case 1:l=c
357
- break
358
- case 4:return u.label++,{value:c[1],done:!1}
359
- case 5:u.label++,i=c[1],c=[0]
360
- continue
361
- case 7:c=u.ops.pop(),u.trys.pop()
362
- continue
363
- default:if(!(l=(l=u.trys).length>0&&l[l.length-1])&&(6===c[0]||2===c[0])){u=0
364
- continue}if(3===c[0]&&(!l||c[1]>l[0]&&c[1]<l[3])){u.label=c[1]
365
- break}if(6===c[0]&&u.label<l[1]){u.label=l[1],l=c
366
- break}if(l&&u.label<l[2]){u.label=l[2],u.ops.push(c)
367
- break}l[2]&&u.ops.pop(),u.trys.pop()
368
- continue}c=n.call(t,u)}catch(t){c=[6,t],i=0}finally{o=l=0}if(5&c[0])throw c[1]
369
- return{value:c[0]?c[1]:void 0,done:!0}}([c,f])}}},App=function(t){var n=t.font,o=t.theme,i=t.onError,l=t.onLoadingSuccess,c=p(!1),u=c[0],f=c[1],E=p(0),D=E[0],R=E[1],U=_(null),V=usePortraitOrientation()
370
- return s((function(){var t=U.current
371
- t&&(document.documentElement.classList.add("wanna-theme-".concat(o)),(null===n||void 0===n?void 0:n.family)&&__awaiter(void 0,void 0,void 0,(function(){var o,i,l
372
- return __generator(this,(function(c){switch(c.label){case 0:o=n.file,i=n.family,c.label=1
373
- case 1:return c.trys.push([1,4,,5]),n.file?[4,(l=new FontFace(i,"url(".concat(o,")"))).load()]:[3,3]
374
- case 2:c.sent(),document.fonts.add(l),c.label=3
375
- case 3:return t.style.fontFamily=i,[3,5]
376
- case 4:return c.sent(),console.warn("Can't download and set the font \"".concat(i,'" by url "').concat(o,'"')),[3,5]
377
- case 5:return[2]}}))})))}),[o,n]),e("div",App_assign({className:Kr().container,ref:U},{children:[e("script",{async:!0,crossOrigin:"anonymous",src:t.sdkUrl,onLoad:function(){return __awaiter(void 0,void 0,void 0,(function(){var n,o,c,u
378
- return __generator(this,(function(E){switch(E.label){case 0:return E.trys.push([0,5,,6]),!!window.wannaDetectDevice?[4,window.wannaDetectDevice()]:[3,2]
379
- case 1:return o=E.sent(),[3,4]
380
- case 2:return[4,new Promise((function(t,n){try{window.fod.complete((function(n){return t(n)}))}catch(t){n(t)}}))]
381
- case 3:o=E.sent(),E.label=4
382
- case 4:if(!(n=o.device).screenmmheight||!n.screenmmwidth)throw new Error("Couldn't detect device")
383
- return c=Math.max(window.screen.width,window.screen.height)/Math.max(n.screenmmwidth,n.screenmmheight),R(c),f(!0),null===l||void 0===l||l(),t.sendLogEvent(Zr.Started),[3,6]
384
- case 5:return u=E.sent(),i(u),[3,6]
385
- case 6:return[2]}}))}))},onError:function(t){return i(t)}}),e(LabelProvider,App_assign({labels:t.labels},{children:[!V&&e(PortraitOrientation,{}),u&&V&&e(WristMeasure,App_assign({pixelsInOneMM:D},t))]}))]}))},wristMeasurement_assign=function(){return wristMeasurement_assign=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++)for(var l in n=arguments[o])Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])
386
- return t},wristMeasurement_assign.apply(this,arguments)},__rest=function(t,n){var o={}
387
- for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(o[i]=t[i])
388
- if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var l=0
389
- for(i=Object.getOwnPropertySymbols(t);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(t,i[l])&&(o[i[l]]=t[i[l]])}return o},showWristMeasurement=function(t){try{var n=t.container,o=t.theme,i=__rest(t,["container","theme"])
390
- !function checkParams(t){if(!t.container)throw new Error("'container' should be specified")
391
- if(!t.sdkUrl)throw new Error("'sdkUrl' should be specified")
392
- if(!t.onCloseClick)throw new Error("'onCloseClick' should be specified")
393
- if("function"!==typeof t.onCloseClick)throw new Error("'onCloseClick' must be a function")
394
- if(!t.onSaveClick)throw new Error("'onSaveClick' should be specified")
395
- if("function"!==typeof t.onSaveClick)throw new Error("'onSaveClick' must be a function")
396
- if(t.onInfoClick&&"function"!==typeof t.onInfoClick)throw new Error("'onInfoClick' must be a function")
397
- if(t.onLoadingSuccess&&"function"!==typeof t.onLoadingSuccess)throw new Error("'onLoadingSuccess' must be a function")
398
- if(t.theme&&![dr,ur].includes(t.theme))throw new Error("'theme' must be ".concat(dr," or ").concat(ur))}(t)
399
- var l=document.getElementById(n)
400
- if(!l)throw new Error("Couldn't find element with id '".concat(n,"'"));(0,Dr.render)(e(App,wristMeasurement_assign({theme:null!==o&&void 0!==o?o:dr},i)),l)}catch(n){t.onError(n)}}
401
- const dn=
122
+ const getImage=e=>new Promise(((t,i)=>{const r=new Image
123
+ r.onload=()=>t(r),r.onerror=()=>i(new Error(`Failed to download ${e}.`)),r.crossOrigin="anonymous",r.src=e})),ti=((e=>{let t,i=!1,r=!1})((async()=>{const e=new Blob(['<svg width="72" height="24" viewBox="0 0 72 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g opacity="0.4">\n<path d="M11.2677 3L13.0218 13.41H13.123L14.9782 3H18.1809L14.9521 19.1538H11.5487L9.63931 8.05094H9.53985L7.63221 19.1538H4.22884L1 3H4.40337L6.20977 13.41H6.31188L8.11653 3H11.2677Z" fill="white"/>\n<path d="M25.609 3L30.2096 19.1538H26.7521L25.7608 15.4358H21.0842L20.0676 19.1538H16.8911L21.4909 3H25.609ZM21.8216 12.718H25.0234L23.4989 6.94866H23.3977L21.8216 12.718Z" fill="white"/>\n<path d="M39.5051 12.5639H39.6063V3H42.7322V19.1538H40.0636L34.5746 8.97449H34.4724V19.1538H31.3213V3H34.5501L39.5051 12.5639Z" fill="white"/>\n<path d="M52.5471 12.5639H52.6483V3H55.7742V19.1538H53.1056L47.6166 8.97449H47.5127V19.1538H44.3633V3H47.5921L52.5471 12.5639Z" fill="white"/>\n<path d="M65.6047 3L70.2019 19.1538H66.7479L65.7566 15.4358H61.0808L60.0642 19.1538H56.8868L61.4866 3H65.6047ZM61.8173 12.718H65.02L63.4945 6.94866H63.3951L61.8173 12.718Z" fill="white"/>\n</g>\n</svg>\n'],{type:"image/svg+xml"}),t=URL.createObjectURL(e),i=await getImage(t)
124
+ return URL.revokeObjectURL(t),i})),e=>{const t=e.getBoundingClientRect()
125
+ return t.top<(window.innerHeight||document.documentElement.clientHeight)&&t.bottom>0&&t.left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}),getViewportBlockTracker=e=>{let t,{container:i,logDuration:r,logVisible:o}=e
126
+ ti(i)&&(t=performance.now())
127
+ const __log=()=>{const e=performance.now()-t
128
+ if(t=null,e>1500)return r(e)},__handleAll=e=>{let{scroll:r,visibility:n}=e
129
+ if(r){const e=ti(i)
130
+ if(e&&!t)t=performance.now(),o()
131
+ else if(!e&&t)return __log()}if(n)if("visible"!==document.visibilityState){if(t)return __log()}else ti(i)&&(t=performance.now(),o())},__handleTabVisibility=()=>__handleAll({visibility:!0}),n=function(e,t){let i,r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]
132
+ return function(){clearTimeout(r),!i||Date.now()-i>t?(i=Date.now(),e.apply(this,arguments)):o&&(r=setTimeout((()=>{e.apply(this,arguments)}),t))}}((()=>__handleAll({scroll})),500)
133
+ return document.addEventListener("visibilitychange",__handleTabVisibility),window.addEventListener("scroll",n),{destroy:()=>{window.removeEventListener("scroll",n),document.removeEventListener("visibilitychange",__handleTabVisibility)}}},ii="2.7.3"
134
+ const ri=
402
135
  // Copyright © 2021 WANNABY Inc. All rights reserved.
403
- class MessageEmitter extends or{constructor(){let{targetToListenElement:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
404
- super(),this._setDefaultValues({targetToListenElement:t}),this.__handleEvent=this.__handleEvent.bind(this)}_setDefaultValues(){let{targetToListenElement:t=window}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
405
- this.origin=null,this.targetToPostElement=null,this.targetToListenElement=t}initListener(t){let{origin:n,targetToPostElement:o}=t
406
- return this.targetToPostElement=o,this.origin=n,this.targetToListenElement.addEventListener("message",this.__handleEvent,!1),this}__handleEvent(t){if(this.origin!==t.origin&&"*"!==this.origin)return
407
- const{data:n}=t
408
- if(n&&n.type){const{type:o,args:i=[]}=n
409
- this.emit(o,...i,t)}}remoteEmit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i]
410
- try{this.targetToPostElement.postMessage({type:t,args:o},this.origin)}catch(t){0}return this}destroy(){this.targetToListenElement.removeEventListener("message",this.__handleEvent,!1),this.clearAll(),this._setDefaultValues()}}
411
- const fn=
136
+ class MessageEmitter extends yt{constructor(){let{targetToListenElement:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
137
+ super(),this._setDefaultValues({targetToListenElement:e}),this.__handleEvent=this.__handleEvent.bind(this)}_setDefaultValues(){let{targetToListenElement:e=window}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
138
+ this.origin=null,this.targetToPostElement=null,this.targetToListenElement=e}initListener(e){let{origin:t,targetToPostElement:i}=e
139
+ return this.targetToPostElement=i,this.origin=t,this.targetToListenElement.addEventListener("message",this.__handleEvent,!1),this}__handleEvent(e){if(this.origin!==e.origin&&"*"!==this.origin)return
140
+ const{data:t}=e
141
+ if(t&&t.type){const{type:i,args:r=[]}=t
142
+ this.emit(i,...r,e)}}remoteEmit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r]
143
+ try{this.targetToPostElement.postMessage({type:e,args:i},this.origin)}catch(e){0}return this}destroy(){this.targetToListenElement.removeEventListener("message",this.__handleEvent,!1),this.clearAll(),this._setDefaultValues()}}
144
+ const oi=
412
145
  // Copyright © 2021 WANNABY Inc. All rights reserved.
413
- class CoreSdkAdapterInterface extends dn{init(){throw new Error("Not implemented")}}
414
- const hn=new
146
+ class CoreSdkAdapterInterface extends ri{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}init(e){throw new Error("Not implemented")}}
147
+ const ni=new
415
148
  // Copyright © 2021 WANNABY Inc. All rights reserved.
416
- class CoreSdkAdapter extends fn{constructor(){super(),this._setInitialValues()}_setInitialValues(){this.container=null,this.iframeSrc=null,this.iframeElement=null,this.iframeSize={height:"100%",width:"100%"},this.verbose=!1}init(t){let n,{container:o,iframeSrc:i,mode:l,iframeSize:c={},verbose:u=!1}=t
417
- if(this.iframeElement)throw new Error("Already initialized. Destroy before initializing again.")
418
- if(o instanceof HTMLElement)this.container=o
419
- else{const t=document.getElementById(o)
420
- if(!t)throw new Error(`Element with id ${o} was not found in dom.`)
421
- this.container=t}this.iframeSrc=i,this.iframeSize.height=c.height||this.iframeSize.height,this.iframeSize.width=c.width||this.iframeSize.width,this.verbose=u
422
- try{n=new URL(i,location.href)}catch(t){throw new xr(`Failed to construct iframe url from "${i}" and "${location.href}".`,{cause:t})}const{origin:f}=n
423
- return this.__createIframe(l),this.initListener({origin:f,targetToPostElement:this.iframeElement.contentWindow}),this}__createIframe(t){const n=document.createElement("iframe"),o=`iframe_${(new Date).getTime()}`
424
- n.setAttribute("src",this.iframeSrc),n.setAttribute("id",o),n.setAttribute("frameborder",0)
425
- const i=[["document-domain","'none'"],["autoplay","*"]]
426
- t===c.MODE_TYPE_AR&&i.push(["camera","*"]),n.setAttribute("allow",i.map((t=>t.join(" "))).join(";")),n.style.height=this.iframeSize.height,n.style.width=this.iframeSize.width,this.container.appendChild(n),this.iframeElement=n}destroy(){super.destroy(),this.iframeElement&&(this.iframeElement.parentNode&&this.iframeElement.parentNode.removeChild(this.iframeElement),this._setInitialValues())}},pn={STATUS_PREPARING:"STATUS_PREPARING",STATUS_SDK_LOADED:"STATUS_SDK_LOADED",STATUS_INITIALIZING:"STATUS_INITIALIZING",STATUS_INITIALIZED:"STATUS_INITIALIZED",STATUS_RUNNING:"STATUS_RUNNING",STATUS_PAUSED:"STATUS_PAUSED",STATUS_ERROR:"STATUS_ERROR"},An="SdkDestroyedError"
427
- class SdkDestroyedError extends Error{constructor(){super(...arguments),_defineProperty(this,"name",An)}}
149
+ class CoreSdkAdapter extends oi{constructor(){super(),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"iframeSrc",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"iframeElement",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"iframeSize",{enumerable:!0,configurable:!0,writable:!0,value:{height:"100%",width:"100%"}}),Object.defineProperty(this,"verbose",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._setInitialValues()}_setInitialValues(){this.container=null,this.iframeSrc=null,this.iframeElement=null,this.iframeSize={height:"100%",width:"100%"},this.verbose=!1}init({container:e,iframeSrc:t,mode:i,iframeSize:r={},verbose:o=!1}){if(this.iframeElement)throw new Error("Already initialized. Destroy before initializing again.")
150
+ if(e instanceof HTMLElement)this.container=e
151
+ else{const t=document.getElementById(e)
152
+ if(!t)throw new Error(`Element with id ${e} was not found in dom.`)
153
+ this.container=t}let n
154
+ this.iframeSrc=t,this.iframeSize.height=r.height||this.iframeSize.height,this.iframeSize.width=r.width||this.iframeSize.width,this.verbose=o
155
+ try{n=new URL(t,location.href)}catch(e){throw new ei(`Failed to construct iframe url from "${t}" and "${location.href}".`,{cause:e})}const{origin:s}=n
156
+ return this.__createIframe(i),this.initListener({origin:s,targetToPostElement:this.iframeElement.contentWindow}),this}__createIframe(e){const t=document.createElement("iframe"),i=`iframe_${(new Date).getTime()}`
157
+ t.setAttribute("src",this.iframeSrc),t.setAttribute("id",i),t.setAttribute("frameborder","0"),t.setAttribute("referrerPolicy","strict-origin-when-cross-origin")
158
+ const r=[["document-domain","'none'"],["autoplay","*"]]
159
+ e===s.MODE_TYPE_AR&&r.push(["camera","*"]),t.setAttribute("allow",r.map((e=>e.join(" "))).join(";")),t.style.height=this.iframeSize.height,t.style.width=this.iframeSize.width,this.container.appendChild(t),this.iframeElement=t}destroy(){super.destroy(),this.iframeElement&&(this.iframeElement.parentNode&&this.iframeElement.parentNode.removeChild(this.iframeElement),this._setInitialValues())}},si="SdkDestroyedError"
160
+ class SdkDestroyedError extends Error{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:si})}}
161
+ // Copyright © 2023 WANNABY Inc. All rights reserved.
162
+ class AppError extends Error{constructor(e){const{errorId:t,message:i,stack:r,name:o}=e
163
+ super(i),Object.defineProperty(this,"errorId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.errorId=t,this.name=o,this.stack=r}}function restoreError(e){return new AppError(e)}
164
+ // Copyright © 2023 WANNABY Inc. All rights reserved.
165
+ var __awaiter=function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r.throw(e))}catch(e){n(e)}}function step(e){e.done?o(e.value):function adopt(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))}
166
+ const ai={}
167
+ function loadLibrary(e,t){return __awaiter(this,void 0,void 0,(function*(){if(!ai[t]){let i
168
+ try{i=yield async function(e){let{crossOrigin:t,async:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
169
+ return new Promise(((r,o)=>{const n=document.createElement("script")
170
+ i?n.async=!0:n.defer=!0,n.src=e,t&&(n.crossOrigin="anonymous"),n.onload=()=>r(n),n.onerror=()=>o(new Error(`Failed to load "${e}"`)),document.body.appendChild(n)}))}(e,{crossOrigin:!0,async:!0})}catch(e){throw new Error(`Failed to inject script for "${t}"`,e instanceof Error?{cause:e}:void 0)}const r=window[t]
171
+ if(!r)throw new Error(`Failed to inject library "${t}", no global name found.`)
172
+ delete window[t],i.remove(),ai[t]=r}return ai[t]}))}
428
173
  // Copyright © 2021 WANNABY Inc. All rights reserved.
429
- const En={[pe]:pn.STATUS_SDK_LOADED,[ye]:pn.STATUS_INITIALIZED,[Te]:pn.STATUS_ERROR,[Le]:pn.STATUS_RUNNING,[Be]:pn.STATUS_PAUSED}
430
- class PublicSdk extends or{constructor(){super(),_defineProperty(this,"version",Ir),this._setDefaultProps(),this.coreSdkAdapter=hn}_mockAdapter(t){this.coreSdkAdapter=t}_setDefaultProps(){this.pipelineStatus=pn.STATUS_PREPARING,this.container=null,this.iframeSrc=null,this.verbose=!1,this.modelId=!1}isReady(){return[pn.STATUS_INITIALIZED,pn.STATUS_RUNNING,pn.STATUS_PAUSED].includes(this.pipelineStatus)}isInitializing(){return[pn.STATUS_SDK_LOADED,pn.STATUS_INITIALIZING].includes(this.pipelineStatus)}isLoaded(){return this.pipelineStatus===pn.STATUS_SDK_LOADED||this.isReady()}_initListeners(){var n=this
431
- Object.values(t).forEach((t=>{this.coreSdkAdapter.prependListener(t,(function(){for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l]
432
- return n.emit(t,...i)}))})),Object.entries(En).forEach((t=>{let[n,o]=t
433
- this.coreSdkAdapter.prependListener(n,(()=>this.pipelineStatus=pn[o]))}))}_logPublicMethodCall(t){this.emit(kt,{type:"log",message:`Call [${t}] method`,verbose:this.verbose})}_promisifyEvents(t){let{triggerEvent:n,successEvent:o,acknowledgeEvent:i,failEvent:l,acknowledgeTimeout:c=5e3,testData:u=(()=>!0),getResolveValue:f=(t=>t)}=t
434
- for(var E=arguments.length,D=new Array(E>1?E-1:0),R=1;R<E;R++)D[R-1]=arguments[R]
435
- return new Promise(((t,E)=>{let R,U
436
- const onSuccess=n=>{u(n)&&(R(),t(f(n)))},rejectPromise=t=>{if(R(),!(t instanceof Error)){const{message:n,name:o,errorId:i}=t
437
- t=new Error(n||t),o&&(t.name=o),i&&(t.errorId=i)}E(t)},logError=t=>{const n=xr.toObject(t)
438
- this.coreSdkAdapter.remoteEmit("error",{...n,details:xr.callStack(t)})},onError=(t,n)=>{if(!u(t))return
439
- const i=n||new Error(`Something went wrong while waiting for ${o}`)
440
- rejectPromise(i)},onTimeout=()=>{const t=new Error(`Timeout for event ${o}.`)
441
- logError(t),rejectPromise(t)},onAcknowledge=()=>{clearTimeout(U)},onDestroy=()=>{clearTimeout(U),rejectPromise(new SdkDestroyedError(`Sdk destroyed while waiting for ${o}.`))}
442
- R=()=>{this.off(xe,onDestroy),this.coreSdkAdapter.off(o,onSuccess),l&&this.coreSdkAdapter.off(l,onError),i&&(this.coreSdkAdapter.off(i,onAcknowledge),clearTimeout(U))},this.on(xe,onDestroy),this.coreSdkAdapter.on(o,onSuccess),l&&this.coreSdkAdapter.on(l,onError),i&&(this.coreSdkAdapter.on(i,onAcknowledge),U=setTimeout(onTimeout,c)),n&&this.coreSdkAdapter.remoteEmit(n,...D)}))}async _waitForInit(){return this._promisifyEvents({successEvent:ye,failEvent:Te})}async _waitForLoad(){return this._promisifyEvents({successEvent:pe})}_checkInitOptions(t){const{container:n,type:o,license:i,iframeSrc:u,mode:f,theme:E}=t
443
- if(!u)throw new Error('"iframeSrc" option is required')
444
- if(!i)throw new Error('"license" option is required')
445
- if(!n)throw new Error('"container" option is required')
446
- if(!o)throw new Error('"type" option is required')
447
- if(!lr.includes(o))throw new Error('"type" option is not correct. Please check documentation.')
448
- if(f&&!l.includes(f))throw new Error('"mode" option is not correct. Please check documentation.')
449
- if(f===c.MODE_TYPE_AR&&!cr.includes(o))throw new Error(`"type" ${o} cannot be used with "mode" ${c.MODE_TYPE_AR}`)
450
- if(E&&!fr.includes(E))throw new Error('"theme" option is not correct. Please check documentation.')}_checkEnv(){if("https:"!==location.protocol&&"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname)throw new Error("You should run the instance over HTTPS or localhost.")}async init(t){"sneaker"===t.type&&(console.warn("Type 'sneaker' is deprecated. Use type 'sneakers' instead."),t.type=ir)
451
- const{container:n,license:o,iframeSrc:i,iframeSize:l,verbose:u=!1,modelsCacheSize:f=5,type:E,metaUrlPrefix:D,query:R,loadingStubColor:U="#000",inDebugMode:V=!1,mode:G=c.MODE_TYPE_AR,theme:W=hr.THEME_DARK}=t,K=Date.now()
452
- if(this.inDebugMode=V,this.verbose=u,this.mode=G,this.type=E,this._logPublicMethodCall(this.init.name),this._checkInitOptions(t),this._checkEnv(),this.prevContainer&&this.prevContainer!==n||this.prevIframeSrc&&this.prevIframeSrc!==i)throw new Error("Destroy sdk before initializing it with different params.")
174
+ var Ei
175
+ !function(e){e.STATUS_PREPARING="STATUS_PREPARING",e.STATUS_SDK_LOADED="STATUS_SDK_LOADED",e.STATUS_INITIALIZING="STATUS_INITIALIZING",e.STATUS_INITIALIZED="STATUS_INITIALIZED",e.STATUS_RUNNING="STATUS_RUNNING",e.STATUS_PAUSED="STATUS_PAUSED",e.STATUS_ERROR="STATUS_ERROR"}(Ei||(Ei={}))
176
+
177
+ ;// Copyright © 2021 WANNABY Inc. All rights reserved.
178
+ var src_awaiter=function(e,t,i,r){return new(i||(i=Promise))((function(o,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r.throw(e))}catch(e){n(e)}}function step(e){e.done?o(e.value):function adopt(e){return e instanceof i?e:new i((function(t){t(e)}))}(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))},__rest=function(e,t){var i={}
179
+ for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r])
180
+ if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0
181
+ for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(i[r[o]]=e[r[o]])}return i}
182
+ const li={[x]:Ei.STATUS_SDK_LOADED,[Z]:Ei.STATUS_INITIALIZED,[Y]:Ei.STATUS_ERROR,[oe]:Ei.STATUS_RUNNING,[Ee]:Ei.STATUS_PAUSED}
183
+ class PublicSdk extends yt{constructor(){super(),Object.defineProperty(this,"coreSdkAdapter",{enumerable:!0,configurable:!0,writable:!0,value:ni}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:ii}),Object.defineProperty(this,"pipelineStatus",{enumerable:!0,configurable:!0,writable:!0,value:Ei.STATUS_PREPARING}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevContainer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"iframeSrc",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevIframeSrc",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"verbose",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"modelId",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inDebugMode",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"mode",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"viewportTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"wristMeasureErrors",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"wristMeasurePostponedLogs",{enumerable:!0,configurable:!0,writable:!0,value:null}),this._setDefaultProps()}_setDefaultProps(){this.pipelineStatus=Ei.STATUS_PREPARING,this.container=null,this.iframeSrc=null,this.verbose=!1,this.modelId=!1}isReady(){return[Ei.STATUS_INITIALIZED,Ei.STATUS_RUNNING,Ei.STATUS_PAUSED].includes(this.pipelineStatus)}isInitializing(){return[Ei.STATUS_SDK_LOADED,Ei.STATUS_INITIALIZING].includes(this.pipelineStatus)}isLoaded(){return this.pipelineStatus===Ei.STATUS_SDK_LOADED||this.isReady()}_initListeners(){Object.values(e).forEach((e=>{e===$e?this.coreSdkAdapter.prependListener(e,(t=>{this.emit(e,restoreError(t))})):this.coreSdkAdapter.prependListener(e,((...t)=>this.emit(e,...t)))})),Object.entries(li).forEach((([e,t])=>{this.coreSdkAdapter.prependListener(e,(()=>this.pipelineStatus=Ei[t]))}))}_logPublicMethodCall(e){this.emit(Qe,{type:"log",message:`Call [${e}] method`,verbose:this.verbose})}_promisifyEvents({triggerEvent:e,successEvent:t,acknowledgeEvent:i,failEvent:r,acknowledgeTimeout:o=5e3,testData:n=(()=>!0),getResolveValue:s=(e=>e)},...a){return new Promise(((E,l)=>{let c
184
+ const onSuccess=e=>{n(e)&&(clearCallbacks(),E(s(e)))},rejectPromise=e=>{clearCallbacks(),l(e)},logError=e=>{const t=ei.toObject(e)
185
+ this.coreSdkAdapter.remoteEmit("error",Object.assign(Object.assign({},t),{details:ei.callStack(e)}))},onError=(e,t)=>{n(e)&&rejectPromise(restoreError(t))},onTimeout=()=>{const e=new Error(`Timeout for event ${t}.`)
186
+ logError(e),rejectPromise(e)},onAcknowledge=()=>{clearTimeout(c)},onDestroy=()=>{clearTimeout(c),rejectPromise(new SdkDestroyedError(`Sdk destroyed while waiting for ${t}.`))},clearCallbacks=()=>{this.off(ee,onDestroy),this.coreSdkAdapter.off(t,onSuccess),r&&this.coreSdkAdapter.off(r,onError),i&&(this.coreSdkAdapter.off(i,onAcknowledge),clearTimeout(c))}
187
+ this.on(ee,onDestroy),this.coreSdkAdapter.on(t,onSuccess),r&&this.coreSdkAdapter.on(r,onError),i&&(this.coreSdkAdapter.on(i,onAcknowledge),c=setTimeout(onTimeout,o)),e&&this.coreSdkAdapter.remoteEmit(e,...a)}))}_waitForInit(){return src_awaiter(this,void 0,void 0,(function*(){return this._promisifyEvents({successEvent:Z,failEvent:Y})}))}_waitForLoad(){return src_awaiter(this,void 0,void 0,(function*(){return this._promisifyEvents({successEvent:x})}))}_checkInitOptions(e){const{container:t,type:i,license:r,iframeSrc:o,mode:a,theme:E}=e
188
+ if(!o)throw new Error('"iframeSrc" option is required')
189
+ if(!r)throw new Error('"license" option is required')
190
+ if(!t)throw new Error('"container" option is required')
191
+ if(!i)throw new Error('"type" option is required')
192
+ if(!Ct.includes(i))throw new Error('"type" option is not correct. Please check documentation.')
193
+ if(a&&!n.includes(a))throw new Error('"mode" option is not correct. Please check documentation.')
194
+ if(a===s.MODE_TYPE_AR&&!kt.includes(i))throw new Error(`"type" ${i} cannot be used with "mode" ${s.MODE_TYPE_AR}`)
195
+ if(E&&!Gt.includes(E))throw new Error('"theme" option is not correct. Please check documentation.')}_checkEnv(){if("https:"!==location.protocol&&"localhost"!==location.hostname&&"127.0.0.1"!==location.hostname)throw new Error("You should run the instance over HTTPS or localhost.")}init(e){return src_awaiter(this,void 0,void 0,(function*(){"sneaker"===e.type&&(console.warn("Type 'sneaker' is deprecated. Use type 'sneakers' instead."),e.type=Lt)
196
+ const{container:t,license:i,iframeSrc:r,iframeSize:n,verbose:a=!1,modelsCacheSize:E=5,type:l,metaUrlPrefix:c,query:d,loadingStubColor:_="#000",inDebugMode:u=!1,mode:h=o,theme:b=$t.THEME_DARK}=e,m=Date.now()
197
+ if(this.inDebugMode=u,this.verbose=a,this.mode=h,this.type=l,this._logPublicMethodCall(this.init.name),this._checkInitOptions(e),this._checkEnv(),this.prevContainer&&this.prevContainer!==t||this.prevIframeSrc&&this.prevIframeSrc!==r)throw new Error("Destroy sdk before initializing it with different params.")
453
198
  if(this.isReady())return
454
- if(this.isInitializing())return void await this._waitForInit()
455
- this.pipelineStatus=pn.STATUS_INITIALIZING,this.coreSdkAdapter.init({container:n,iframeSize:l,iframeSrc:i,verbose:u,mode:G}),this._initListeners(),await this._waitForLoad(),this.prevContainer=n,this.prevIframeSrc=i,this.mode===c.MODE_TYPE_3D&&this._setContainerViewportTracker(this.coreSdkAdapter.container)
456
- const Y=Nr(this.coreSdkAdapter.container)
457
- return this._promisifyEvents({triggerEvent:we,acknowledgeEvent:Ce,successEvent:ye,failEvent:Te},{license:o.trim(),query:R,inDebugMode:V,modelsCacheSize:f,type:E,metaUrlPrefix:D,initTimestamp:K,loadingStubColor:U,mode:G,theme:W,inViewport:Y})}_setContainerViewportTracker(t){this.viewportTracker=(t=>{let n,{container:o,logDuration:i,logVisible:l}=t
458
- Nr(o)&&(n=performance.now())
459
- const __log=()=>{const t=performance.now()-n
460
- if(n=null,t>1500)return i(t)},__handleAll=t=>{let{scroll:i,visibility:c}=t
461
- if(i){const t=Nr(o)
462
- if(t&&!n)n=performance.now(),l()
463
- else if(!t&&n)return __log()}if(c)if("visible"!==document.visibilityState){if(n)return __log()}else Nr(o)&&(n=performance.now(),l())},__handleTabVisibility=()=>__handleAll({visibility:!0}),c=throttle((()=>__handleAll({scroll})),500)
464
- return document.addEventListener("visibilitychange",__handleTabVisibility),window.addEventListener("scroll",c),{destroy:()=>{window.removeEventListener("scroll",c),document.removeEventListener("visibilitychange",__handleTabVisibility)}}})({container:t,logDuration:t=>{if(this.isReady())return this.log3dViewerDuration({duration:Math.trunc(t),visible:!1})},logVisible:()=>{if(this.isReady())return this.log3dViewerDuration({visible:!0})}})}_removeContainerViewportTracker(){this.viewportTracker&&(this.viewportTracker.destroy(),this.viewportTracker=null)}_validateReady(){if(!this.isReady())throw new Error("Pipeline is not initialized.")}_validateEnv(){if(!this.modelId)throw new Error("You should set a model before pipeline starting")}async startPipeline(){return this._logPublicMethodCall(this.startPipeline.name),this._validateReady(),this._validateEnv(),this._promisifyEvents({triggerEvent:Ie,acknowledgeEvent:De,successEvent:Le,failEvent:Pe})}async pausePipeline(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
465
- return this._logPublicMethodCall(this.pausePipeline.name),this._validateReady(),this._promisifyEvents({triggerEvent:Re,acknowledgeEvent:Me,successEvent:Be,failEvent:Ue},t)}async checkEnvironment(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.MODE_TYPE_AR
466
- return this._logPublicMethodCall(this.checkEnvironment.name),(t=>{switch(t){case c.MODE_TYPE_AR:return checkRequirements(ue)
467
- case c.MODE_TYPE_3D:return checkRequirements(_e)
468
- default:throw new Error("Invalid mode")}})(t)}async downloadModel(t){let{id:n,decrypted:o}=t
469
- return this._logPublicMethodCall(this.downloadModel.name),this._validateReady(),this._promisifyEvents({triggerEvent:Ae,acknowledgeEvent:Ee,successEvent:be,failEvent:ge,testData:t=>{let{id:o,type:i}=t
470
- return o===n&&i===fe}},{modelId:n,decrypted:o})}async downloadAndSetModel(t){let{id:n,decrypted:o}=t
471
- this._logPublicMethodCall(this.downloadAndSetModel.name),this._validateReady()
472
- const{modelWasSet:i,modelInfo:l}=await this._promisifyEvents({triggerEvent:et,acknowledgeEvent:tt,successEvent:rt,failEvent:nt,testData:t=>{let{modelId:o}=t
473
- return o===n}},{modelId:n,decrypted:o})
474
- return i&&(this.modelId=n,await this.startPipeline()),{modelWasSet:i,modelInfo:l}}async log3dViewerDuration(t){let{duration:n,visible:o}=t
475
- return this._logPublicMethodCall(this.log3dViewerDuration.name),this._validateReady(),this._promisifyEvents({triggerEvent:ot,acknowledgeEvent:it,successEvent:at,failEvent:st},{duration:n,visible:o})}async getCamerasList(){return this._logPublicMethodCall(this.getCamerasList.name),this._validateReady(),this._promisifyEvents({triggerEvent:Ze,acknowledgeEvent:Je,successEvent:Qe,failEvent:Xe})}async changeCamera(t){return this._logPublicMethodCall(this.changeCamera.name),this._validateReady(),this._promisifyEvents({triggerEvent:We,acknowledgeEvent:je,successEvent:qe,failEvent:Fe,testData:n=>n===t},{cameraId:t})}async initVideo(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
476
- return this.isLoaded()||await this._waitForLoad(),this._promisifyEvents({triggerEvent:Ct,acknowledgeEvent:yt,successEvent:Tt,failEvent:St},t)}getPipelineStatus(){return this._logPublicMethodCall(this.getPipelineStatus.name),this.pipelineStatus}async takePhoto(){let{watermarkUrl:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
477
- if(this._logPublicMethodCall(this.takePhoto.name),![pn.STATUS_RUNNING,pn.STATUS_PAUSED].includes(this.pipelineStatus))throw new Error("takePhoto is only available in RUNNING or PAUSED status")
478
- return this._promisifyEvents({triggerEvent:lt,acknowledgeEvent:ct,successEvent:_t,failEvent:ut},{watermarkUrl:t})}async destroy(){this._logPublicMethodCall(this.destroy.name)
479
- try{this.emit(xe),this._removeContainerViewportTracker(),this.clearAll()}finally{this.coreSdkAdapter.destroy(),this._setDefaultProps()}}async setMode(t){if(this._logPublicMethodCall(this.setMode.name),this._validateReady(),!l.includes(t))throw new Error('"mode" parameter is not correct. Please check documentation.')
480
- if(t===c.MODE_TYPE_AR&&!cr.includes(this.type))throw new Error(`"type" ${this.type} cannot be used with "mode" ${c.MODE_TYPE_AR}`)
481
- const n=performance.now(),o=this._promisifyEvents({triggerEvent:Ot,acknowledgeEvent:xt,successEvent:Nt,failEvent:It,testData:t=>t.startTime===n,getResolveValue:t=>{let{modeWasSet:n}=t
482
- return n}},{mode:t,startTime:n})
483
- return o&&(this.mode=t),o}getMode(){return this._logPublicMethodCall(this.getMode.name),this.mode}async showWristMeasurement(t){let{onError:n,...o}=t
484
- if(!n)throw new Error("'onError' should be specified")
199
+ if(this.isInitializing())return void(yield this._waitForInit())
200
+ this.pipelineStatus=Ei.STATUS_INITIALIZING,this.coreSdkAdapter.init({container:t,iframeSize:n,iframeSrc:r,verbose:a,mode:h}),this._initListeners(),yield this._waitForLoad(),this.prevContainer=t,this.prevIframeSrc=r,this.mode===s.MODE_TYPE_3D&&this._setContainerViewportTracker(this.coreSdkAdapter.container)
201
+ const f=ti(this.coreSdkAdapter.container)
202
+ return this._promisifyEvents({triggerEvent:z,acknowledgeEvent:B,successEvent:Z,failEvent:Y},{license:i.trim(),query:d,inDebugMode:u,modelsCacheSize:E,type:l,metaUrlPrefix:c,initTimestamp:m,loadingStubColor:_,mode:h,theme:b,inViewport:f})}))}_setContainerViewportTracker(e){this.viewportTracker=getViewportBlockTracker({container:e,logDuration:e=>{if(this.isReady())return this.log3dViewerDuration({duration:Math.trunc(e),visible:!1})},logVisible:()=>{if(this.isReady())return this.log3dViewerDuration({visible:!0})}})}_removeContainerViewportTracker(){this.viewportTracker&&(this.viewportTracker.destroy(),this.viewportTracker=null)}_validateReady(){if(!this.isReady())throw new Error("Pipeline is not initialized.")}_validateEnv(){if(!this.modelId)throw new Error("You should set a model before pipeline starting")}startPipeline(){return src_awaiter(this,void 0,void 0,(function*(){return this._logPublicMethodCall(this.startPipeline.name),this._validateReady(),this._validateEnv(),this._promisifyEvents({triggerEvent:ie,acknowledgeEvent:re,successEvent:oe,failEvent:ne})}))}pausePipeline(e=!1){return src_awaiter(this,void 0,void 0,(function*(){return this._logPublicMethodCall(this.pausePipeline.name),this._validateReady(),this._promisifyEvents({triggerEvent:se,acknowledgeEvent:ae,successEvent:Ee,failEvent:le},e)}))}checkEnvironment(e=o){return src_awaiter(this,void 0,void 0,(function*(){return this._logPublicMethodCall(this.checkEnvironment.name),(e=>{switch(e){case s.MODE_TYPE_AR:return checkRequirements(V)
203
+ case s.MODE_TYPE_3D:return checkRequirements(M)
204
+ default:throw new Error("Invalid mode")}})(e)}))}downloadModel({id:e,decrypted:t}){return src_awaiter(this,void 0,void 0,(function*(){return this._logPublicMethodCall(this.downloadModel.name),this._validateReady(),this._promisifyEvents({triggerEvent:W,acknowledgeEvent:j,successEvent:K,failEvent:q,testData:({id:t,type:i})=>t===e&&i===G},{modelId:e,decrypted:t})}))}downloadAndSetModel({id:e,decrypted:t}){return src_awaiter(this,void 0,void 0,(function*(){this._logPublicMethodCall(this.downloadAndSetModel.name),this._validateReady()
205
+ const{modelWasSet:i,modelInfo:r}=yield this._promisifyEvents({triggerEvent:Oe,acknowledgeEvent:Ie,successEvent:Ne,failEvent:De,testData:({modelId:t})=>t===e},{modelId:e,decrypted:t})
206
+ return i&&(this.modelId=e,yield this.startPipeline()),{modelWasSet:i,modelInfo:r}}))}log3dViewerDuration({duration:e,visible:t}){return src_awaiter(this,void 0,void 0,(function*(){return this._logPublicMethodCall(this.log3dViewerDuration.name),this._validateReady(),this._promisifyEvents({triggerEvent:ye,acknowledgeEvent:Le,successEvent:Pe,failEvent:Re},{duration:e,visible:t})}))}getCamerasList(){return src_awaiter(this,void 0,void 0,(function*(){return this._logPublicMethodCall(this.getCamerasList.name),this._validateReady(),this._promisifyEvents({triggerEvent:Te,acknowledgeEvent:ge,successEvent:Se,failEvent:Ae})}))}changeCamera(e){return src_awaiter(this,void 0,void 0,(function*(){return this._logPublicMethodCall(this.changeCamera.name),this._validateReady(),this._promisifyEvents({triggerEvent:he,acknowledgeEvent:be,successEvent:me,failEvent:fe,testData:t=>t===e},{cameraId:e})}))}initVideo(e={}){return src_awaiter(this,void 0,void 0,(function*(){return this.isLoaded()||(yield this._waitForLoad()),this._promisifyEvents({triggerEvent:Be,acknowledgeEvent:Ze,successEvent:Ye,failEvent:Je},e)}))}getPipelineStatus(){return this._logPublicMethodCall(this.getPipelineStatus.name),this.pipelineStatus}takePhoto(e={}){return src_awaiter(this,void 0,void 0,(function*(){if(this._logPublicMethodCall(this.takePhoto.name),![Ei.STATUS_RUNNING,Ei.STATUS_PAUSED].includes(this.pipelineStatus))throw new Error("takePhoto is only available in RUNNING or PAUSED status")
207
+ return this._promisifyEvents({triggerEvent:Ce,acknowledgeEvent:ke,successEvent:Me,failEvent:Ve},{watermarkUrl:e.watermarkUrl})}))}destroy(){return src_awaiter(this,void 0,void 0,(function*(){this._logPublicMethodCall(this.destroy.name)
208
+ try{this.emit(ee),this._removeContainerViewportTracker(),this.clearAll()}finally{this.coreSdkAdapter.destroy(),this._setDefaultProps()}}))}setMode(e){return src_awaiter(this,void 0,void 0,(function*(){if(this._logPublicMethodCall(this.setMode.name),this._validateReady(),!n.includes(e))throw new Error('"mode" parameter is not correct. Please check documentation.')
209
+ if(e===s.MODE_TYPE_AR&&!kt.includes(this.type))throw new Error(`"type" ${this.type} cannot be used with "mode" ${s.MODE_TYPE_AR}`)
210
+ const t=performance.now(),i=yield this._promisifyEvents({triggerEvent:Xe,acknowledgeEvent:et,successEvent:tt,failEvent:it,testData:e=>e.startTime===t,getResolveValue:e=>e.modeWasSet},{mode:e,startTime:t})
211
+ return i&&(this.mode=e),i}))}getMode(){return this._logPublicMethodCall(this.getMode.name),this.mode}showWristMeasurement(e){var{onError:t}=e,i=__rest(e,["onError"])
212
+ return src_awaiter(this,void 0,void 0,(function*(){if(!t)throw new Error("'onError' should be specified")
485
213
  this._validateReady()
486
- const{url:i}=await this._promisifyEvents({triggerEvent:er,acknowledgeEvent:tr,successEvent:rr,failEvent:nr})
487
- showWristMeasurement({...o,sdkUrl:i,onError:t=>{this._logWristMeasureError(t),n(t)},sendLogEvent:this._logWristMeasureEvent.bind(this)})}debug(t){return this._promisifyEvents({triggerEvent:Et,successEvent:vt,failEvent:mt},t)}async setPOI(t){if(this._logPublicMethodCall(this.setPOI.name),this.mode!==c.MODE_TYPE_3D)throw new Error('"setPOI" available only in 3D mode. Please check documentation.')
488
- return this._promisifyEvents({triggerEvent:Dt,acknowledgeEvent:Lt,successEvent:Pt,failEvent:Rt},{index:t})}async cameraZoom(t){if(this._logPublicMethodCall(this.cameraZoom.name),this.mode!==c.MODE_TYPE_3D)throw new Error('"cameraZoom" available only in 3D mode. Please check documentation.')
489
- if(!Object.values(pr).includes(t))throw new Error('Incorrect "to" param. Please check documentation.')
490
- return this._promisifyEvents({triggerEvent:Mt,acknowledgeEvent:Bt,successEvent:Ut,failEvent:Vt},{to:t})}async showOnboarding(t){if(this._logPublicMethodCall(this.showOnboarding.name),this.mode!==c.MODE_TYPE_3D)throw new Error('"showOnboarding" available only in 3D mode. Please check documentation.')
491
- if(!Object.values(Er).includes(t))throw new Error('Incorrect "action" param. Please check documentation.')
492
- return this._promisifyEvents({triggerEvent:$t,acknowledgeEvent:Ht,successEvent:Gt,failEvent:Wt},{action:t})}async toggleDimensions(t,n){if(this._logPublicMethodCall(this.toggleDimensions.name),this.mode!==c.MODE_TYPE_3D)throw new Error('"toggleDimensions" available only in 3D mode. Please check documentation.')
493
- if(!Object.values(Ar).includes(n))throw new Error('Incorrect "dimensionsUnit" param. Please check documentation.')
494
- return this._promisifyEvents({triggerEvent:jt,acknowledgeEvent:qt,successEvent:Ft,failEvent:zt},{show:t,dimensionsUnit:n})}async _logWristMeasureEvent(t){const sendEvent=(t,n)=>this._promisifyEvents({triggerEvent:Zt,acknowledgeEvent:Jt,successEvent:Qt,failEvent:Xt},{eventName:t,timestamp:n}),n=6e4*(new Date).getTimezoneOffset(),o=new Date(Date.now()-n).toISOString().replace("T"," ").replace("Z","")
495
- if(this.isReady())return sendEvent(t,o)
496
- this.wristMeasurePostponedLogs||(this.wristMeasurePostponedLogs=[],this.once(ye,(()=>{this.wristMeasurePostponedLogs.forEach((t=>{let{event:n,timestamp:o}=t
497
- sendEvent(n,o)})),this.wristMeasurePostponedLogs=null}))),this.wristMeasurePostponedLogs.push({event:t,timestamp:o})}_logWristMeasureError(t){const sendError=t=>{const{message:n}=t,o=new xr(n,{cause:t.error}),i=xr.toObject(o)
498
- this.coreSdkAdapter.remoteEmit("error",{...i,details:xr.callStack(o)})}
499
- this.isReady()?sendError(t):(this.wristMeasureErrors||(this.once(ye,(()=>{this.wristMeasureErrors.forEach((t=>{sendError(t)})),this.wristMeasureErrors=null})),this.wristMeasureErrors=[]),this.wristMeasureErrors.push(t))}async setCustomPOI(t){let{cameraPosition:n,cameraRotation:o,pivot:i}=t
500
- return this.debug({setCustomPOI:{cameraPosition:n,cameraRotation:o,pivot:i}})}async getCurrentPOI(){return this.debug({getCurrentPOI:!0})}async getPOIsList(){return this.debug({getPOIsList:!0})}async resetCameraPosition(){return this.debug({resetCameraPosition:!0})}debugEvent(t){if([xe].includes(t)){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i]
501
- super.debugEvent(t,...o)}}}Object.assign(PublicSdk.prototype,t),Object.assign(PublicSdk.prototype,pn),Object.assign(PublicSdk.prototype,_r),Object.assign(PublicSdk.prototype,c),Object.assign(PublicSdk.prototype,pr),Object.assign(PublicSdk.prototype,hr),Object.assign(PublicSdk.prototype,Er),Object.assign(PublicSdk.prototype,Ar),Object.assign(PublicSdk.prototype,{RESOURCE_TYPE_MODEL:fe,ERROR_SDK_DESTROYED:An})
502
- const mn=new PublicSdk})(),o=o.default})()))
214
+ const{deviceDetectionSdkUrl:e,url:r}=yield this._promisifyEvents({triggerEvent:Ot,acknowledgeEvent:It,successEvent:Nt,failEvent:Dt});(yield loadLibrary(r,"wannaWristMeasurement"))(Object.assign(Object.assign({},i),{sdkUrl:e,onError:e=>{this._logWristMeasureError(e),t(e)},sendLogEvent:this._logWristMeasureEvent.bind(this)}))}))}debug(e){return this._promisifyEvents({triggerEvent:je,successEvent:He,failEvent:Fe},e)}setPOI(e){return src_awaiter(this,void 0,void 0,(function*(){if(this._logPublicMethodCall(this.setPOI.name),this.mode!==s.MODE_TYPE_3D)throw new Error('"setPOI" available only in 3D mode. Please check documentation.')
215
+ return this._promisifyEvents({triggerEvent:rt,acknowledgeEvent:ot,successEvent:nt,failEvent:st},{index:e})}))}cameraZoom(e){return src_awaiter(this,void 0,void 0,(function*(){if(this._logPublicMethodCall(this.cameraZoom.name),this.mode!==s.MODE_TYPE_3D)throw new Error('"cameraZoom" available only in 3D mode. Please check documentation.')
216
+ if(!Object.values(xt).includes(e))throw new Error('Incorrect "to" param. Please check documentation.')
217
+ return this._promisifyEvents({triggerEvent:at,acknowledgeEvent:Et,successEvent:lt,failEvent:ct},{to:e})}))}showOnboarding(e){return src_awaiter(this,void 0,void 0,(function*(){if(this._logPublicMethodCall(this.showOnboarding.name),this.mode!==s.MODE_TYPE_3D)throw new Error('"showOnboarding" available only in 3D mode. Please check documentation.')
218
+ if(!Object.values(jt).includes(e))throw new Error('Incorrect "action" param. Please check documentation.')
219
+ return this._promisifyEvents({triggerEvent:dt,acknowledgeEvent:_t,successEvent:ut,failEvent:ht},{action:e})}))}toggleDimensions(e,t){return src_awaiter(this,void 0,void 0,(function*(){if(this._logPublicMethodCall(this.toggleDimensions.name),this.mode!==s.MODE_TYPE_3D)throw new Error('"toggleDimensions" available only in 3D mode. Please check documentation.')
220
+ if(!Object.values(Wt).includes(t))throw new Error('Incorrect "dimensionsUnit" param. Please check documentation.')
221
+ return this._promisifyEvents({triggerEvent:bt,acknowledgeEvent:mt,successEvent:ft,failEvent:wt},{show:e,dimensionsUnit:t})}))}_logWristMeasureEvent(e){return src_awaiter(this,void 0,void 0,(function*(){const sendEvent=(e,t)=>this._promisifyEvents({triggerEvent:Tt,acknowledgeEvent:gt,successEvent:St,failEvent:At},{eventName:e,timestamp:t}),t=6e4*(new Date).getTimezoneOffset(),i=new Date(Date.now()-t).toISOString().replace("T"," ").replace("Z","")
222
+ if(this.isReady())return sendEvent(e,i)
223
+ this.wristMeasurePostponedLogs||(this.wristMeasurePostponedLogs=[],this.once(Z,(()=>{this.wristMeasurePostponedLogs.forEach((({event:e,timestamp:t})=>{sendEvent(e,t)})),this.wristMeasurePostponedLogs=null}))),this.wristMeasurePostponedLogs.push({event:e,timestamp:i})}))}_logWristMeasureError(e){const sendError=e=>{const{message:t}=e,i=new ei(t,{cause:e}),r=ei.toObject(i)
224
+ this.coreSdkAdapter.remoteEmit("error",Object.assign(Object.assign({},r),{details:ei.callStack(i)}))}
225
+ this.isReady()?sendError(e):(this.wristMeasureErrors||(this.once(Z,(()=>{this.wristMeasureErrors.forEach((e=>{sendError(e)})),this.wristMeasureErrors=null})),this.wristMeasureErrors=[]),this.wristMeasureErrors.push(e))}setCustomPOI({cameraPosition:e,cameraRotation:t,pivot:i}){return src_awaiter(this,void 0,void 0,(function*(){return this.debug({setCustomPOI:{cameraPosition:e,cameraRotation:t,pivot:i}})}))}getCurrentPOI(){return src_awaiter(this,void 0,void 0,(function*(){return this.debug({getCurrentPOI:!0})}))}getPOIsList(){return src_awaiter(this,void 0,void 0,(function*(){return this.debug({getPOIsList:!0})}))}resetCameraPosition(){return src_awaiter(this,void 0,void 0,(function*(){return this.debug({resetCameraPosition:!0})}))}debugEvent(e,...t){[ee].includes(e)&&super.debugEvent(e,...t)}}Object.assign(PublicSdk.prototype,e),Object.assign(PublicSdk.prototype,Ei),Object.assign(PublicSdk.prototype,Mt),Object.assign(PublicSdk.prototype,s),Object.assign(PublicSdk.prototype,xt),Object.assign(PublicSdk.prototype,$t),Object.assign(PublicSdk.prototype,jt),Object.assign(PublicSdk.prototype,Wt),Object.assign(PublicSdk.prototype,{RESOURCE_TYPE_MODEL:G,ERROR_SDK_DESTROYED:si})
226
+ const ci=new PublicSdk})(),i=i.default})()))