@r2u/javascript-ar-sdk 6.12.4 → 6.12.6
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/dist/index.js +1 -1
- package/dist/init.bundle.js +1 -1
- package/dist/sku.bundle.js +1 -1
- package/dist/{vendors.77f2f415ea449eaedf22.bundle.js → vendors.1f9f835f05d93843940f.bundle.js} +1 -1
- package/dist/{vendors.54f83b4e0f3d687089da.bundle.js → vendors.46f23b9f09c5b355b41b.bundle.js} +4 -4
- package/dist/{vendors.54f83b4e0f3d687089da.bundle.js.LICENSE.txt → vendors.46f23b9f09c5b355b41b.bundle.js.LICENSE.txt} +0 -0
- package/dist/viewer.bundle.js +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var e,n,t,r,o={},u={};function i(e){var n=u[e];if(void 0!==n)return n.exports;var t=u[e]={exports:{}};return o[e].call(t.exports,t,t.exports,i),t.exports}i.m=o,i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,{a:n}),n},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var o=Object.create(null);i.r(o);var u={};e=e||[null,n({}),n([]),n(n)];for(var a=2&r&&t;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(e){u[e]=function(){return t[e]}}));return u.default=function(){return t},i.d(o,u),o},i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(n,t){return i.f[t](e,n),n}),[]))},i.u=function(e){return 691===e?"vendors.72e0cdbf51fef996d405.bundle.js":665===e?"vendors.6c46067ffeb7a1054cd1.bundle.js":215===e?"vendors.2864f1aaf3fa743e1983.bundle.js":410===e?"init.bundle.js":497===e?"config.bundle.js":30===e?"vendors.d0043338c48c5993c6a9.bundle.js":10===e?"vendors.
|
|
1
|
+
!function(){"use strict";var e,n,t,r,o={},u={};function i(e){var n=u[e];if(void 0!==n)return n.exports;var t=u[e]={exports:{}};return o[e].call(t.exports,t,t.exports,i),t.exports}i.m=o,i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,{a:n}),n},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var o=Object.create(null);i.r(o);var u={};e=e||[null,n({}),n([]),n(n)];for(var a=2&r&&t;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(e){u[e]=function(){return t[e]}}));return u.default=function(){return t},i.d(o,u),o},i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(n,t){return i.f[t](e,n),n}),[]))},i.u=function(e){return 691===e?"vendors.72e0cdbf51fef996d405.bundle.js":665===e?"vendors.6c46067ffeb7a1054cd1.bundle.js":215===e?"vendors.2864f1aaf3fa743e1983.bundle.js":410===e?"init.bundle.js":497===e?"config.bundle.js":30===e?"vendors.d0043338c48c5993c6a9.bundle.js":10===e?"vendors.46f23b9f09c5b355b41b.bundle.js":603===e?"vendors.5861a640ff3844504854.bundle.js":593===e?"vendors.1f9f835f05d93843940f.bundle.js":850===e?"ar.bundle.js":465===e?"sku.bundle.js":361===e?"vendors.6e3f8af05556e404968a.bundle.js":428===e?"viewer.bundle.js":142===e?"analytics.bundle.js":869===e?"qrCode.bundle.js":void 0},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t={},r="R2U:",i.l=function(e,n,o,u){if(t[e])t[e].push(n);else{var a,d;if(void 0!==o)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var l=c[f];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==r+o){a=l;break}}a||(d=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",r+o),a.src=e),t[e]=[n];var s=function(n,r){a.onerror=a.onload=null,clearTimeout(b);var o=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(r)})),n)return n(r)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),d&&document.head.appendChild(a)}},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="https://unpkg.com/@r2u/javascript-ar-sdk@6.12.6/dist/",function(){var e={179:0};i.f.j=function(n,t){var r=i.o(e,n)?e[n]:void 0;if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((function(t,o){r=e[n]=[t,o]}));t.push(r[2]=o);var u=i.p+i.u(n),a=new Error;i.l(u,(function(t){if(i.o(e,n)&&(0!==(r=e[n])&&(e[n]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),u=t&&t.target&&t.target.src;a.message="Loading chunk "+n+" failed.\n("+o+": "+u+")",a.name="ChunkLoadError",a.type=o,a.request=u,r[1](a)}}),"chunk-"+n,n)}};var n=function(n,t){var r,o,u=t[0],a=t[1],d=t[2],c=0;if(u.some((function(n){return 0!==e[n]}))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(d)d(i)}for(n&&n(t);c<u.length;c++)o=u[c],i.o(e,o)&&e[o]&&e[o][0](),e[u[c]]=0},t=self.webpackChunkR2U=self.webpackChunkR2U||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}();var a={};i.r(a),i.d(a,{init:function(){return d},sku:function(){return l},ar:function(){return f},viewer:function(){return s},analytics:function(){return b},qrCode:function(){return h},config:function(){return c}});const d=e=>Promise.all([i.e(691),i.e(665),i.e(215),i.e(410)]).then(i.bind(i,6526)).then((n=>n.default(e))),c={changeLanguage:e=>Promise.all([i.e(665),i.e(497)]).then(i.bind(i,7328)).then((n=>n.default.changeLanguage(e)))},f={open:e=>Promise.all([i.e(691),i.e(30),i.e(665),i.e(10),i.e(215),i.e(603),i.e(593),i.e(850)]).then(i.bind(i,4804)).then((n=>n.default.open(e))),attach:e=>Promise.all([i.e(691),i.e(30),i.e(665),i.e(10),i.e(215),i.e(603),i.e(593),i.e(850)]).then(i.bind(i,4804)).then((n=>n.default.attach(e))),getLink:e=>Promise.all([i.e(691),i.e(30),i.e(665),i.e(10),i.e(215),i.e(603),i.e(593),i.e(850)]).then(i.bind(i,4804)).then((n=>n.default.getLink(e)))},l={isActive:e=>Promise.all([i.e(691),i.e(465)]).then(i.bind(i,6025)).then((n=>n.default.isActive(e))),getData:e=>Promise.all([i.e(691),i.e(465)]).then(i.bind(i,6025)).then((n=>n.default.getData(e)))},s={create:e=>Promise.all([i.e(691),i.e(30),i.e(10),i.e(361),i.e(593),i.e(428)]).then(i.bind(i,8305)).then((n=>n.default.create(e)))},b={send:e=>i.e(142).then(i.bind(i,9448)).then((n=>n.default.send(e)))},h={create:e=>Promise.all([i.e(30),i.e(361),i.e(869)]).then(i.bind(i,5004)).then((n=>n.default.create(e)))};document.dispatchEvent(new CustomEvent("r2u-sdk-loaded")),window.R2U=a}();
|
package/dist/init.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[410],{6504:function(e,n,t){t.d(n,{f2:function(){return u}});var i=t(8665),a=t(1580),r=t(5538),s=t(660),o=t(2297),c=t(2367),l=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const u=i.Z.createInstance();n.ZP={init:({language:e})=>l(void 0,void 0,void 0,(function*(){const n=c.Z.customer.language,t=c.Z.customer.slug,i=e||n||"en",l=(0,o.Bv)(),d=yield(0,o.ki)(`${l}/locales/${i}/${t}.json`),p=d?t:"translation",f=["translation",...d?[t]:[]];return new Promise(((e,n)=>{u.use(a.Z).init({debug:!1,react:{useSuspense:!1},lng:i,fallbackLng:!1,supportedLngs:["pt","en","es"],ns:f,defaultNS:p,fallbackNS:"translation",load:"currentOnly",preload:[i],interpolation:{escapeValue:!1},backend:{backends:[s.Z,r.Z],backendOptions:[{prefix:"i18next_res_r2u_sdk_",enabled:!0,expirationTime:6048e5},{loadPath:`${l}/locales/{{lng}}/{{ns}}.json`,allowMultiloading:!0}]}},(t=>{t&&n(new Error("R2U - Translation init failed")),e()}))}))}))}},6526:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var i=t(2367),a=t(7374),r=t(2297),s=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};var o=t(6504),c=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};function l({customerId:e,language:n,analyticsParams:t={dataLayerIntegration:!0,sessionDuration:30},refreshCache:l=!1}){return c(this,void 0,void 0,(function*(){if(!/^(?=[a-f\d]{24}$)(\d+[a-f]|[a-f]+\d)/i.test(e)&&!/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i.test(e))throw new Error(`Invalid customer '${e}'`);i.Z.init=!0,i.Z.refreshCache=l;const c=yield function(e){return s(this,void 0,void 0,(function*(){return yield(0,r.U2)(`/customers/${e}`)}))}(e),u=yield(0,a.ZP)({client:e,dataLayerIntegration:t.dataLayerIntegration,sessionDurationMinutes:t.sessionDuration});i.Z.analytics=u,i.Z.customer=c,yield Promise.all([o.ZP.init({language:n})])}))}},7374:function(e,n,t){t.d(n,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return f},KN:function(){return b},fQ:function(){return g},hN:function(){return v},lY:function(){return y},G0:function(){return w},fm:function(){return m}});var i=t(2085),a=t(5877),r=t(2367),s=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const o="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>r.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:o},scope:"page"}),onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:o}}),onFallback:()=>r.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o}}),onLike:()=>r.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:o}}),onDislike:()=>r.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:o}}),onSessionTimeCollect:e=>r.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:o}})},d={componentDidMount:()=>r.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>r.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{r.Z.analytics.webxrSet(i.D1.session_id,(0,a.v4)())},setCompatible:e=>{r.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([r.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),r.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o},context:"webxr"})]),onFallback:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{r.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{r.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{r.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{r.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{r.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{r.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{r.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},f={onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},v=e=>{r.Z.analytics.set(i.MB.sku,e)},y=e=>{r.Z.analytics.set(i.MB.manufacturer_id,e)},w=e=>{r.Z.analytics.set(i.MB.is_active_3d,`${e}`),r.Z.analytics.send({event:i.U3.product_page_view})},b=e=>{r.Z.analytics.set(i.MB.experiment_id,e)},g=e=>{r.Z.analytics.set(i.MB.variation_id,e)},m=()=>s(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return r.Z.analytics.set(i.MB.fingerprint,e),e}));n.ZP=({client:e,dataLayerIntegration:n,sessionDurationMinutes:t,info:a={}})=>s(void 0,void 0,void 0,(function*(){const r={version:"6.12.4",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:t,dataLayerIntegration:n},s=new i.ZP(r,Object.assign(Object.assign({},a),{[i.MB.client]:e}));return yield s.init(),s}))},2297:function(e,n,t){t.d(n,{U2:function(){return s},v_:function(){return o},ki:function(){return c},Bv:function(){return l}});var i=t(2367),a=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const r="https://api.r2u.io";function s(e){return a(this,void 0,void 0,(function*(){const n={};i.Z.refreshCache&&(n["Cache-Control"]="max-age=0");return(yield fetch(`${r}${e}`,{method:"get",headers:n})).json()}))}function o(e,n){return a(this,void 0,void 0,(function*(){return(yield fetch(`${r}${e}`,{method:"POST",body:JSON.stringify(n)})).json()}))}function c(e){return a(this,void 0,void 0,(function*(){try{const{status:n}=yield fetch(e,{method:"HEAD"});return 200===n}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,n){const t={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,n)=>{},send:({event:e,data:n,scope:t})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};n.Z=t},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.12.4","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.14","@r2u/viewer":"^1.2.2","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
|
1
|
+
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[410],{6504:function(e,n,t){t.d(n,{f2:function(){return u}});var i=t(8665),a=t(1580),r=t(5538),s=t(660),o=t(2297),c=t(2367),l=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const u=i.Z.createInstance();n.ZP={init:({language:e})=>l(void 0,void 0,void 0,(function*(){const n=c.Z.customer.language,t=c.Z.customer.slug,i=e||n||"en",l=(0,o.Bv)(),d=yield(0,o.ki)(`${l}/locales/${i}/${t}.json`),p=d?t:"translation",f=["translation",...d?[t]:[]];return new Promise(((e,n)=>{u.use(a.Z).init({debug:!1,react:{useSuspense:!1},lng:i,fallbackLng:!1,supportedLngs:["pt","en","es"],ns:f,defaultNS:p,fallbackNS:"translation",load:"currentOnly",preload:[i],interpolation:{escapeValue:!1},backend:{backends:[s.Z,r.Z],backendOptions:[{prefix:"i18next_res_r2u_sdk_",enabled:!0,expirationTime:6048e5},{loadPath:`${l}/locales/{{lng}}/{{ns}}.json`,allowMultiloading:!0}]}},(t=>{t&&n(new Error("R2U - Translation init failed")),e()}))}))}))}},6526:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var i=t(2367),a=t(7374),r=t(2297),s=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};var o=t(6504),c=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};function l({customerId:e,language:n,analyticsParams:t={dataLayerIntegration:!0,sessionDuration:30},refreshCache:l=!1}){return c(this,void 0,void 0,(function*(){if(!/^(?=[a-f\d]{24}$)(\d+[a-f]|[a-f]+\d)/i.test(e)&&!/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i.test(e))throw new Error(`Invalid customer '${e}'`);i.Z.init=!0,i.Z.refreshCache=l;const c=yield function(e){return s(this,void 0,void 0,(function*(){return yield(0,r.U2)(`/customers/${e}`)}))}(e),u=yield(0,a.ZP)({client:e,dataLayerIntegration:t.dataLayerIntegration,sessionDurationMinutes:t.sessionDuration});i.Z.analytics=u,i.Z.customer=c,yield Promise.all([o.ZP.init({language:n})])}))}},7374:function(e,n,t){t.d(n,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return f},KN:function(){return b},fQ:function(){return g},hN:function(){return v},lY:function(){return y},G0:function(){return w},fm:function(){return m}});var i=t(2085),a=t(5877),r=t(2367),s=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const o="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>r.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:o},scope:"page"}),onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:o}}),onFallback:()=>r.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o}}),onLike:()=>r.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:o}}),onDislike:()=>r.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:o}}),onSessionTimeCollect:e=>r.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:o}})},d={componentDidMount:()=>r.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>r.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{r.Z.analytics.webxrSet(i.D1.session_id,(0,a.v4)())},setCompatible:e=>{r.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([r.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),r.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o},context:"webxr"})]),onFallback:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{r.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{r.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{r.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{r.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{r.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{r.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{r.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>r.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},f={onClick:()=>r.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},v=e=>{r.Z.analytics.set(i.MB.sku,e)},y=e=>{r.Z.analytics.set(i.MB.manufacturer_id,e)},w=e=>{r.Z.analytics.set(i.MB.is_active_3d,`${e}`),r.Z.analytics.send({event:i.U3.product_page_view})},b=e=>{r.Z.analytics.set(i.MB.experiment_id,e)},g=e=>{r.Z.analytics.set(i.MB.variation_id,e)},m=()=>s(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return r.Z.analytics.set(i.MB.fingerprint,e),e}));n.ZP=({client:e,dataLayerIntegration:n,sessionDurationMinutes:t,info:a={}})=>s(void 0,void 0,void 0,(function*(){const r={version:"6.12.6",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:t,dataLayerIntegration:n},s=new i.ZP(r,Object.assign(Object.assign({},a),{[i.MB.client]:e}));return yield s.init(),s}))},2297:function(e,n,t){t.d(n,{U2:function(){return s},v_:function(){return o},ki:function(){return c},Bv:function(){return l}});var i=t(2367),a=function(e,n,t,i){return new(t||(t=Promise))((function(a,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(s,o)}c((i=i.apply(e,n||[])).next())}))};const r="https://api.r2u.io";function s(e){return a(this,void 0,void 0,(function*(){const n={};i.Z.refreshCache&&(n["Cache-Control"]="max-age=0");return(yield fetch(`${r}${e}`,{method:"get",headers:n})).json()}))}function o(e,n){return a(this,void 0,void 0,(function*(){return(yield fetch(`${r}${e}`,{method:"POST",body:JSON.stringify(n)})).json()}))}function c(e){return a(this,void 0,void 0,(function*(){try{const{status:n}=yield fetch(e,{method:"HEAD"});return 200===n}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,n){const t={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,n)=>{},send:({event:e,data:n,scope:t})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};n.Z=t},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.12.6","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.15","@r2u/viewer":"^1.2.2","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
package/dist/sku.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[465],{2587:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,r){n=n||"&",i=i||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,d,p,f,v=e[l].replace(a,"%20"),y=v.indexOf(i);y>=0?(u=v.substr(0,y),d=v.substr(y+1)):(u=v,d=""),p=decodeURIComponent(u),f=decodeURIComponent(d),t(o,p)?Array.isArray(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o}},2361:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[r]))})).filter(Boolean).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},7673:function(e,t,n){t.decode=t.parse=n(2587),t.encode=t.stringify=n(2361)},6025:function(e,t,n){n.r(t);var i=n(2367),r=n(7523),o=n(7374),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};t.default={isActive:function(e){return a(this,void 0,void 0,(function*(){if(!i.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!e)return Promise.reject(new Error("R2U - Missing SKU"));o.hN(e);try{const{isActive:t,manufacturerId:n}=yield(0,r.Z)(e);return n&&o.lY(n),o.G0(t),t}catch(e){return!1}}))},getData:function(e){return a(this,void 0,void 0,(function*(){if(!i.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!e)return Promise.reject(new Error("R2U - Missing SKU"));return yield(0,r.Z)(e)}))}}},7374:function(e,t,n){n.d(t,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return f},KN:function(){return w},fQ:function(){return b},hN:function(){return v},lY:function(){return y},G0:function(){return m},fm:function(){return h}});var i=n(2085),r=n(5877),o=n(2367),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const s="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>o.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:s},scope:"page"}),onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:s}}),onFallback:()=>o.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:s}}),onLike:()=>o.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:s}}),onDislike:()=>o.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:s}}),onSessionTimeCollect:e=>o.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:s}})},d={componentDidMount:()=>o.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>o.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{o.Z.analytics.webxrSet(i.D1.session_id,(0,r.v4)())},setCompatible:e=>{o.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([o.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),o.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:s},context:"webxr"})]),onFallback:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{o.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{o.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{o.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{o.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{o.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{o.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{o.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},f={onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},v=e=>{o.Z.analytics.set(i.MB.sku,e)},y=e=>{o.Z.analytics.set(i.MB.manufacturer_id,e)},m=e=>{o.Z.analytics.set(i.MB.is_active_3d,`${e}`),o.Z.analytics.send({event:i.U3.product_page_view})},w=e=>{o.Z.analytics.set(i.MB.experiment_id,e)},b=e=>{o.Z.analytics.set(i.MB.variation_id,e)},h=()=>a(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return o.Z.analytics.set(i.MB.fingerprint,e),e}));t.ZP=({client:e,dataLayerIntegration:t,sessionDurationMinutes:n,info:r={}})=>a(void 0,void 0,void 0,(function*(){const o={version:"6.12.4",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:n,dataLayerIntegration:t},a=new i.ZP(o,Object.assign(Object.assign({},r),{[i.MB.client]:e}));return yield a.init(),a}))},7523:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(2297),r=n(2367),o=n(7673),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function s(e){return a(this,void 0,void 0,(function*(){if(r.Z.products[e])return Promise.resolve(r.Z.products[e]);const t=o.encode({"product.sku":e,"asset.types":["GLB","USDZ"].join(","),"product_review.status":"RUNNING"}),[n]=yield(0,i.U2)(`/customers/${r.Z.customer._id}/products/assets?${t}`);if(!n)throw new Error("R2U - SKU not found");const a=n.assets||[],s=n.product_reviews||[],c=a.find((e=>"GLB"===e.type)),l=a.find((e=>"USDZ"===e.type)),u={glb:c?c.url:"",usdz:l?l.url:"",isActive:s.length>0,name:n.name,placement:n.placement||"floor",resize:n.resize||!1,sound:n.soundUrl,modelId:n.modelId,manufacturerId:n.manufacturerId,pdpUrl:n.pdpUrl,hdri:n.hdri,exposure:n.exposure,bloom:n.bloom,viewerOptions:n.viewerOptions||{}};return r.Z.products[e]=u,u}))}},2297:function(e,t,n){n.d(t,{U2:function(){return a},v_:function(){return s},ki:function(){return c},Bv:function(){return l}});var i=n(2367),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const o="https://api.r2u.io";function a(e){return r(this,void 0,void 0,(function*(){const t={};i.Z.refreshCache&&(t["Cache-Control"]="max-age=0");return(yield fetch(`${o}${e}`,{method:"get",headers:t})).json()}))}function s(e,t){return r(this,void 0,void 0,(function*(){return(yield fetch(`${o}${e}`,{method:"POST",body:JSON.stringify(t)})).json()}))}function c(e){return r(this,void 0,void 0,(function*(){try{const{status:t}=yield fetch(e,{method:"HEAD"});return 200===t}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,t){const n={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,t)=>{},send:({event:e,data:t,scope:n})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};t.Z=n},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.12.4","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.14","@r2u/viewer":"^1.2.2","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
|
1
|
+
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[465],{2587:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,r){n=n||"&",i=i||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,d,p,f,v=e[l].replace(a,"%20"),y=v.indexOf(i);y>=0?(u=v.substr(0,y),d=v.substr(y+1)):(u=v,d=""),p=decodeURIComponent(u),f=decodeURIComponent(d),t(o,p)?Array.isArray(o[p])?o[p].push(f):o[p]=[o[p],f]:o[p]=f}return o}},2361:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,i,r){return n=n||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(t(r))+i;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[r]))})).filter(Boolean).join(n):r?encodeURIComponent(t(r))+i+encodeURIComponent(t(e)):""}},7673:function(e,t,n){t.decode=t.parse=n(2587),t.encode=t.stringify=n(2361)},6025:function(e,t,n){n.r(t);var i=n(2367),r=n(7523),o=n(7374),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};t.default={isActive:function(e){return a(this,void 0,void 0,(function*(){if(!i.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!e)return Promise.reject(new Error("R2U - Missing SKU"));o.hN(e);try{const{isActive:t,manufacturerId:n}=yield(0,r.Z)(e);return n&&o.lY(n),o.G0(t),t}catch(e){return!1}}))},getData:function(e){return a(this,void 0,void 0,(function*(){if(!i.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!e)return Promise.reject(new Error("R2U - Missing SKU"));return yield(0,r.Z)(e)}))}}},7374:function(e,t,n){n.d(t,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return f},KN:function(){return w},fQ:function(){return b},hN:function(){return v},lY:function(){return y},G0:function(){return m},fm:function(){return h}});var i=n(2085),r=n(5877),o=n(2367),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const s="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>o.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:s},scope:"page"}),onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:s}}),onFallback:()=>o.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:s}}),onLike:()=>o.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:s}}),onDislike:()=>o.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:s}}),onSessionTimeCollect:e=>o.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:s}})},d={componentDidMount:()=>o.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>o.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{o.Z.analytics.webxrSet(i.D1.session_id,(0,r.v4)())},setCompatible:e=>{o.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([o.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),o.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:s},context:"webxr"})]),onFallback:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{o.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{o.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{o.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{o.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{o.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{o.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{o.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>o.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},f={onClick:()=>o.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},v=e=>{o.Z.analytics.set(i.MB.sku,e)},y=e=>{o.Z.analytics.set(i.MB.manufacturer_id,e)},m=e=>{o.Z.analytics.set(i.MB.is_active_3d,`${e}`),o.Z.analytics.send({event:i.U3.product_page_view})},w=e=>{o.Z.analytics.set(i.MB.experiment_id,e)},b=e=>{o.Z.analytics.set(i.MB.variation_id,e)},h=()=>a(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return o.Z.analytics.set(i.MB.fingerprint,e),e}));t.ZP=({client:e,dataLayerIntegration:t,sessionDurationMinutes:n,info:r={}})=>a(void 0,void 0,void 0,(function*(){const o={version:"6.12.6",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:n,dataLayerIntegration:t},a=new i.ZP(o,Object.assign(Object.assign({},r),{[i.MB.client]:e}));return yield a.init(),a}))},7523:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(2297),r=n(2367),o=n(7673),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};function s(e){return a(this,void 0,void 0,(function*(){if(r.Z.products[e])return Promise.resolve(r.Z.products[e]);const t=o.encode({"product.sku":e,"asset.types":["GLB","USDZ"].join(","),"product_review.status":"RUNNING"}),[n]=yield(0,i.U2)(`/customers/${r.Z.customer._id}/products/assets?${t}`);if(!n)throw new Error("R2U - SKU not found");const a=n.assets||[],s=n.product_reviews||[],c=a.find((e=>"GLB"===e.type)),l=a.find((e=>"USDZ"===e.type)),u={glb:c?c.url:"",usdz:l?l.url:"",isActive:s.length>0,name:n.name,placement:n.placement||"floor",resize:n.resize||!1,sound:n.soundUrl,modelId:n.modelId,manufacturerId:n.manufacturerId,pdpUrl:n.pdpUrl,hdri:n.hdri,exposure:n.exposure,bloom:n.bloom,viewerOptions:n.viewerOptions||{}};return r.Z.products[e]=u,u}))}},2297:function(e,t,n){n.d(t,{U2:function(){return a},v_:function(){return s},ki:function(){return c},Bv:function(){return l}});var i=n(2367),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};const o="https://api.r2u.io";function a(e){return r(this,void 0,void 0,(function*(){const t={};i.Z.refreshCache&&(t["Cache-Control"]="max-age=0");return(yield fetch(`${o}${e}`,{method:"get",headers:t})).json()}))}function s(e,t){return r(this,void 0,void 0,(function*(){return(yield fetch(`${o}${e}`,{method:"POST",body:JSON.stringify(t)})).json()}))}function c(e){return r(this,void 0,void 0,(function*(){try{const{status:t}=yield fetch(e,{method:"HEAD"});return 200===t}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,t){const n={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,t)=>{},send:({event:e,data:t,scope:n})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};t.Z=n},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.12.6","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.15","@r2u/viewer":"^1.2.2","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
package/dist/{vendors.77f2f415ea449eaedf22.bundle.js → vendors.1f9f835f05d93843940f.bundle.js}
RENAMED
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
a:hover {
|
|
18
18
|
content: url('https://sdk.r2u.io/assets/r2u-icon.svg');
|
|
19
19
|
}
|
|
20
|
-
`;var a=({position:e})=>i.createElement(s,{position:e},i.createElement("a",{href:"https://r2u.io",target:"_blank",rel:"noopener noreferrer"},i.createElement("img",{alt:""})))},7374:function(e,t,n){n.d(t,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return C},KN:function(){return m},fQ:function(){return h},hN:function(){return f},lY:function(){return v},G0:function(){return w},fm:function(){return g}});var i=n(2085),r=n(5877),s=n(2367),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};const o="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>s.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:o},scope:"page"}),onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:o}}),onFallback:()=>s.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o}}),onLike:()=>s.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:o}}),onDislike:()=>s.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:o}}),onSessionTimeCollect:e=>s.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:o}})},d={componentDidMount:()=>s.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>s.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{s.Z.analytics.webxrSet(i.D1.session_id,(0,r.v4)())},setCompatible:e=>{s.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([s.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),s.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o},context:"webxr"})]),onFallback:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{s.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{s.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{s.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{s.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{s.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{s.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{s.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},C={onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},f=e=>{s.Z.analytics.set(i.MB.sku,e)},v=e=>{s.Z.analytics.set(i.MB.manufacturer_id,e)},w=e=>{s.Z.analytics.set(i.MB.is_active_3d,`${e}`),s.Z.analytics.send({event:i.U3.product_page_view})},m=e=>{s.Z.analytics.set(i.MB.experiment_id,e)},h=e=>{s.Z.analytics.set(i.MB.variation_id,e)},g=()=>a(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return s.Z.analytics.set(i.MB.fingerprint,e),e}));t.ZP=({client:e,dataLayerIntegration:t,sessionDurationMinutes:n,info:r={}})=>a(void 0,void 0,void 0,(function*(){const s={version:"6.12.
|
|
20
|
+
`;var a=({position:e})=>i.createElement(s,{position:e},i.createElement("a",{href:"https://r2u.io",target:"_blank",rel:"noopener noreferrer"},i.createElement("img",{alt:""})))},7374:function(e,t,n){n.d(t,{J1:function(){return u},E9:function(){return d},XH:function(){return p},ar:function(){return C},KN:function(){return m},fQ:function(){return h},hN:function(){return f},lY:function(){return v},G0:function(){return w},fm:function(){return g}});var i=n(2085),r=n(5877),s=n(2367),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};const o="ar_link",c="ar_model_viewer",l="cta",u={componentDidMount:()=>s.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:o},scope:"page"}),onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:o}}),onFallback:()=>s.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o}}),onLike:()=>s.Z.analytics.send({event:i.U3.like,data:{[i.MB.placement]:o}}),onDislike:()=>s.Z.analytics.send({event:i.U3.dislike,data:{[i.MB.placement]:o}}),onSessionTimeCollect:e=>s.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:o}})},d={componentDidMount:()=>s.Z.analytics.send({event:i.U3.impression,data:{[i.MB.placement]:c},scope:"page"}),onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:c}}),onSessionTimeCollect:e=>s.Z.analytics.send({event:i.U3.interaction_duration,eventCount:e,data:{[i.MB.placement]:c}})},p={onSessionStart:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.session_start}),onSessionEnd:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.session_end}),setSession:()=>{s.Z.analytics.webxrSet(i.D1.session_id,(0,r.v4)())},setCompatible:e=>{s.Z.analytics.webxrSet(i.D1.compatible,`${e}`)},onSceneViewerFallback:()=>Promise.all([s.Z.analytics.webxrSend({webxrEvent:i.Ui.scene_viewer_fallback}),s.Z.analytics.send({event:i.U3.fallback,data:{[i.MB.placement]:o},context:"webxr"})]),onFallback:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.fallback}),setPlaneMapped:()=>{s.Z.analytics.webxrSet(i.D1.plane_mapped,(new Date).toISOString())},setObjectPlaced:()=>{s.Z.analytics.webxrSet(i.D1.object_placed,(new Date).toISOString())},setTranslateInstructions:()=>{s.Z.analytics.webxrSet(i.D1.translate_instructions,(new Date).toISOString())},setRotateInstructions:()=>{s.Z.analytics.webxrSet(i.D1.rotate_instructions,(new Date).toISOString())},setFirstTranslation:()=>{s.Z.analytics.webxrSet(i.D1.first_translation,(new Date).toISOString())},setFirstRotation:()=>{s.Z.analytics.webxrSet(i.D1.first_rotation,(new Date).toISOString())},setReset:()=>{s.Z.analytics.webxrSet(i.D1.reset,(new Date).toISOString())},onShare:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.share}),onExit:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.exit}),onLike:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.like}),onDislike:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.dislike}),onCallToAction:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.call_to_action}),onTranslation:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.translation}),onRotation:()=>s.Z.analytics.webxrSend({webxrEvent:i.Ui.rotation})},C={onClick:()=>s.Z.analytics.send({event:i.U3.click,data:{[i.MB.placement]:l},context:"cart"})},f=e=>{s.Z.analytics.set(i.MB.sku,e)},v=e=>{s.Z.analytics.set(i.MB.manufacturer_id,e)},w=e=>{s.Z.analytics.set(i.MB.is_active_3d,`${e}`),s.Z.analytics.send({event:i.U3.product_page_view})},m=e=>{s.Z.analytics.set(i.MB.experiment_id,e)},h=e=>{s.Z.analytics.set(i.MB.variation_id,e)},g=()=>a(void 0,void 0,void 0,(function*(){const e=yield(0,i.cE)();return s.Z.analytics.set(i.MB.fingerprint,e),e}));t.ZP=({client:e,dataLayerIntegration:t,sessionDurationMinutes:n,info:r={}})=>a(void 0,void 0,void 0,(function*(){const s={version:"6.12.6",gcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportEvent",webxrGcpAnalyticsUrl:"https://us-central1-r2u-analytics.cloudfunctions.net/reportWebXREvent",debug:!!new URLSearchParams(window.location.search).get("realidade-aumentada-debug"),sessionDurationMinutes:n,dataLayerIntegration:t},a=new i.ZP(s,Object.assign(Object.assign({},r),{[i.MB.client]:e}));return yield a.init(),a}))},7523:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(2297),r=n(2367),s=n(7673),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};function o(e){return a(this,void 0,void 0,(function*(){if(r.Z.products[e])return Promise.resolve(r.Z.products[e]);const t=s.encode({"product.sku":e,"asset.types":["GLB","USDZ"].join(","),"product_review.status":"RUNNING"}),[n]=yield(0,i.U2)(`/customers/${r.Z.customer._id}/products/assets?${t}`);if(!n)throw new Error("R2U - SKU not found");const a=n.assets||[],o=n.product_reviews||[],c=a.find((e=>"GLB"===e.type)),l=a.find((e=>"USDZ"===e.type)),u={glb:c?c.url:"",usdz:l?l.url:"",isActive:o.length>0,name:n.name,placement:n.placement||"floor",resize:n.resize||!1,sound:n.soundUrl,modelId:n.modelId,manufacturerId:n.manufacturerId,pdpUrl:n.pdpUrl,hdri:n.hdri,exposure:n.exposure,bloom:n.bloom,viewerOptions:n.viewerOptions||{}};return r.Z.products[e]=u,u}))}},2297:function(e,t,n){n.d(t,{U2:function(){return a},v_:function(){return o},ki:function(){return c},Bv:function(){return l}});var i=n(2367),r=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};const s="https://api.r2u.io";function a(e){return r(this,void 0,void 0,(function*(){const t={};i.Z.refreshCache&&(t["Cache-Control"]="max-age=0");return(yield fetch(`${s}${e}`,{method:"get",headers:t})).json()}))}function o(e,t){return r(this,void 0,void 0,(function*(){return(yield fetch(`${s}${e}`,{method:"POST",body:JSON.stringify(t)})).json()}))}function c(e){return r(this,void 0,void 0,(function*(){try{const{status:t}=yield fetch(e,{method:"HEAD"});return 200===t}catch(e){return console.error(e),!1}}))}const l=()=>"https://sdk.r2u.io"},2367:function(e,t){const n={init:!1,customer:{_id:"",slug:"",language:"en",hdri:null,exposure:null,bloom:null,experiments:{overrides:{}},viewerOptions:{}},analytics:{set:(e,t)=>{},send:({event:e,data:t,scope:n})=>Promise.resolve()},products:{},hasAutoOpenedAR:!1,growthbook:{},refreshCache:!1};t.Z=n},4147:function(e){e.exports=JSON.parse('{"name":"@r2u/javascript-ar-sdk","version":"6.12.6","main":"dist/index.js","unpkg":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/r2u-io/javascript-ar-sdk","files":["dist"],"scripts":{"dev":"yarn build:dev && webpack serve --mode=development","build:dev":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=development","build":"REACT_APP_VERSION=$(jq -r \\".version\\" package.json) webpack --mode=production","clean":"rm -rf dist/ public/dist/","test":"jest --config ./jest.config.js","stage":"yarn build:dev && gsutil -m cp -R ./public gs://r2u-integrations-bucket/_staging/sdk/","prettier":"prettier --write src","lint":"eslint \'./src/**/*.{js,ts,tsx}\'","eject":"rescripts eject"},"peerDependencies":{"react":"^16.13.1","react-dom":"^16.13.1"},"dependencies":{"@r2u/analytics":"^4.3.3","@r2u/react-ar-components":"^5.4.15","@r2u/viewer":"^1.2.2","@types/react-slick":"^0.23.10","i18next":"^20.2.1","i18next-chained-backend":"^2.1.0","i18next-http-backend":"^1.2.1","i18next-localstorage-backend":"^3.1.2","qrcode.react":"^1.0.1","querystring":"^0.2.0","react":"^17.0.2","react-dom":"^17.0.2","react-i18next":"^11.8.13","react-shadow":"^19.0.2","react-slick":"^0.29.0","styled-components":"^5.2.3"},"devDependencies":{"@fingerprintjs/fingerprintjs":"^3.3.0","@growthbook/growthbook":"^0.12.0","@types/jest":"^26.0.15","@types/node":"^13.11.1","@types/qrcode.react":"^1.0.1","@types/react":"^16.9.33","@types/react-dom":"^16.9.6","@types/styled-components":"^5.1.9","@typescript-eslint/eslint-plugin":"^2.3.1","@typescript-eslint/parser":"^2.3.1","eslint":"^7.22.0","eslint-config-prettier":"^6.12.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.1.1","eslint-plugin-react":"^7.14.3","eslint-plugin-standard":"^4.0.0","file-loader":"^6.2.0","jest":"^24.9.0","prettier":"^2.1.2","process":"^0.11.10","three":"^0.131.2","ts-jest":"^26.4.4","ts-loader":"^8.0.17","tsconfig-paths-webpack-plugin":"^3.5.1","typescript":"^3.8.3","util":"^0.12.3","webpack":"^5.24.3","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^4.5.0","webpack-dev-server":"3.10.3"},"browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]}}')}}]);
|
package/dist/{vendors.54f83b4e0f3d687089da.bundle.js → vendors.46f23b9f09c5b355b41b.bundle.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! For license information please see vendors.
|
|
2
|
-
(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[10],{5865:function(e,t,r){var n,o,i,a;self,e.exports=(n=r(7294),o=r(3935),i=r(1752),a=r(9864),function(){"use strict";var e,t,r,s,c={8156:function(e){e.exports=n},7111:function(e){e.exports=o},3238:function(e){e.exports=i},2622:function(e){e.exports=a}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={id:e,loaded:!1,exports:{}};return c[e].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}l.m=c,l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},l.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);l.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},l.d(o,i),o},l.d=function(e,t){for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=function(e){return Promise.all(Object.keys(l.f).reduce((function(t,r){return l.f[r](e,t),t}),[]))},l.u=function(e){return{216:"vendors",954:"webXRSession"}[e]+".bundle.js"},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},s="@r2u/react-ar-components:",l.l=function(e,t,n,o){if(r[e])r[e].push(t);else{var i,a;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var f=c[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==s+n){i=f;break}}i||(a=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",s+n),i.src=e),r[e]=[t];var d=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),a&&document.head.appendChild(i)}},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},l.p="https://unpkg.com/@r2u/react-ar-components@5.4.14/dist/",function(){var e={179:0};l.f.j=function(t,r){var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var i=l.p+l.u(t),a=new Error;l.l(i,(function(r){if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=function(t,r){var n,o,i=r[0],a=r[1],s=r[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(n in a)l.o(a,n)&&(l.m[n]=a[n]);s&&s(l)}for(t&&t(r);c<i.length;c++)o=i[c],l.o(e,o)&&e[o]&&e[o][0](),e[i[c]]=0},r=self.webpackChunk_r2u_react_ar_components=self.webpackChunk_r2u_react_ar_components||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var f={};return function(){l.r(f),l.d(f,{ModelViewer:function(){return x},WebXREvents:function(){return z},activateAR:function(){return O},activateWebXR:function(){return E},canActivateAR:function(){return D}});var e=l(8156),t=l.n(e);let r=!1,n=[0,0,0],o=[0,0,0],i=0,a=0,s=0,c=0,u=0;const d=e=>{const t=e.getCameraOrbit(),{theta:r,phi:i,radius:a}=t,s=r-e.turntableRotation;u=.75*a/e.getBoundingClientRect().height,n=[-Math.cos(s),0,Math.sin(s)],o=[-Math.cos(i)*Math.sin(s),Math.sin(i),-Math.cos(i)*Math.cos(s)],e.interactionPrompt="none"},p=(e,t,r)=>{const i=(e-s)*u,a=(t-c)*u;s=e,c=t;const l=r.getCameraTarget();l.x+=i*n[0]+a*o[0],l.y+=i*n[1]+a*o[1],l.z+=i*n[2]+a*o[2],r.cameraTarget=`${l.x}m ${l.y}m ${l.z}m`,r.dispatchEvent(new CustomEvent("camera-change",{detail:{source:"user-interaction"}}))},h=(e,t)=>{if(r=!1,Math.abs(e.clientX-i)>2||Math.abs(e.clientY-a)>2)return;const n=t.getBoundingClientRect(),o=e.clientX-n.left,s=e.clientY-n.top,c=t.positionAndNormalFromPoint(o,s);t.cameraTarget=null===c?"auto auto auto":c.position.toString()},m=e=>{const t=e,n=t.clientX?t:t.changedTouches[0];Math.abs(n.clientX-i)<2&&Math.abs(n.clientY-a)<2&&h(n,e.target),r=!1},g=e=>{i=e.clientX,a=e.clientY;const t=2===e.button||e.ctrlKey||e.metaKey||e.shiftKey;r=t,t&&(s=e.clientX,c=e.clientY,d(e.target),e.stopPropagation())},y=e=>{i=e.touches[0].clientX,a=e.touches[0].clientY;const t=2===e.touches.length;if(r=t,!t)return;const{touches:n}=e;s=.5*(n[0].clientX+n[1].clientX),c=.5*(n[0].clientY+n[1].clientY),d(e.target)},v=e=>{r&&(p(e.clientX,e.clientY,e.target),e.stopPropagation())},b=e=>{if(!r||2!==e.touches.length)return;const{touches:t}=e,n=.5*(t[0].clientX+t[1].clientX),o=.5*(t[0].clientY+t[1].clientY);p(n,o,e.target)},w=e=>{h(e,e.target)},M=e=>{0===e.touches.length&&h(e.changedTouches[0],e.target)},S=e=>e.preventDefault();var x=t().forwardRef(((r,n)=>{const{src:o="",alt:i="",poster:a="",reveal:s="auto",ar:c=!1,arScale:u,cameraControls:l=!0,autoRotate:f=!0,interactionPromptThreshold:d=500,environmentImage:p="",exposure:h=.5,bloom:x=!1,shadowIntensity:k=1,shadowSoftness:A=0,autoPlay:j=!0,className:I,style:O,children:C,pan:N=!0,zoom:D=!0,componentDidMount:E=(()=>{}),onClick:z=(()=>{}),onSessionTimeCollect:P=(e=>{}),touchAction:T}=r,R=n,[L,Y]=(0,e.useState)(!1),{addPan:_,removePan:Z}={addPan:e=>{e.addEventListener("pointerup",m,!0),e.addEventListener("mousedown",g,!0),e.addEventListener("mousemove",v,!0),e.addEventListener("mouseup",w,!0),e.addEventListener("touchstart",y,!0),e.addEventListener("touchmove",b,!0),e.addEventListener("touchend",M,!0),e.addEventListener("contextmenu",S,!0)},removePan:e=>{e.removeEventListener("pointerup",m,!0),e.removeEventListener("mousedown",g,!0),e.removeEventListener("mousemove",v,!0),e.removeEventListener("mouseup",w,!0),e.removeEventListener("touchstart",y,!0),e.removeEventListener("touchmove",b,!0),e.removeEventListener("touchend",M,!0),e.removeEventListener("contextmenu",S,!0)}},[U,B]=(0,e.useState)();return(0,e.useEffect)((()=>{var e,t;L&&(null===(t=null===(e=R.current)||void 0===e?void 0:e.availableAnimations)||void 0===t?void 0:t.length)&&(R.current.interactionPrompt="none")}),[L]),(0,e.useEffect)((()=>{E(),R&&R.current&&(R.current.src=o,R.current.addEventListener("load",(()=>Y(!0))))}),[]),(0,e.useEffect)((()=>{R&&R.current&&(N?_(R.current):Z(R.current))}),[R,N]),t().createElement("model-viewer",Object.assign({ref:R,class:I,style:O,alt:i,poster:a,reveal:s},c?{ar:""}:{},{"ar-scale":u},l?{"camera-controls":""}:{},D?{}:{"disable-zoom":""},f?{"auto-rotate":""}:{},{"interaction-prompt-threshold":d,"environment-image":p,exposure:h,bloom:x,"shadow-intensity":k,"shadow-softness":A},j?{autoplay:""}:{},{"data-js-focus-visible":!0,onClick:z,onPointerEnter:()=>{B(new Date)},onPointerLeave:()=>{if(U){const e=(new Date).getTime()-U.getTime();P(e)}},"touch-action":T}),C)}));null!=navigator.xr&&null!=self.XRSession&&null!=navigator.xr.isSessionSupported&&self.XRSession.prototype.requestHitTestSource,self.ResizeObserver,self.IntersectionObserver,(()=>{const e=navigator.userAgent||navigator.vendor||self.opera;let t=!1;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)})(),/\bCrOS\b/.test(navigator.userAgent);const k=/android/i.test(navigator.userAgent),A=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!self.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;(()=>{const e=document.createElement("a");Boolean(e.relList&&e.relList.supports&&e.relList.supports("ar"))})(),/Safari\//.test(navigator.userAgent),/firefox/i.test(navigator.userAgent),/OculusBrowser/.test(navigator.userAgent),A&&/CriOS\//.test(navigator.userAgent);var j=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const I="#no-ar-fallback",O=e=>j(void 0,void 0,void 0,(function*(){const{hashFallback:t=I}=e,r=A?(({title:e,price:t,usdz:r,scale:n="fixed",callToAction:o,pdpUrl:i})=>{const a=new URL(r);"fixed"===n&&a.searchParams.set("allowsContentScaling","0"),i&&a.searchParams.set("canonicalWebPageURL",i);let s=a.toString().replace("?","#");if(o){const{text:r}=o;s+=`&custom=https://sdk.r2u.io/ar-components/call-to-action/banner.html?params=${encodeURIComponent(encodeURIComponent(JSON.stringify({title:e,price:t,text:r})))}`}return s})(e):k?(({glb:e="",title:t,sound:r,link:n,shareText:o,mode:i="ar_only",placement:a="floor",disableOcclusion:s=!0,scale:c="fixed",hashFallback:u=I})=>{const l=window.location.toString(),f=new URL(l),d=new URLSearchParams("");return f.hash=u,d.set("file",e),i&&d.set("mode",i),s&&d.set("disable_occlusion","true"),"fixed"===c&&d.set("resizable","false"),"wall"===a&&d.set("enable_vertical_placement","true"),r&&d.set("sound",r),n&&d.set("link",n),t&&d.set("title",t),o&&d.set("share_text",o),`intent://arvr.google.com/scene-viewer/1.2?${d.toString()}#Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(f.toString())};end;`})(e):"";if(!r)return void(window.location.hash=t);if(A){const e=document.createElement("a");if(e.relList&&e.relList.supports&&!e.relList.supports("ar"))return void(window.location.hash=t)}const n=document.createElement("a");document.body.appendChild(n);const o=document.createElement("img");n.setAttribute("rel","ar"),n.appendChild(o),n.setAttribute("href",r),n.addEventListener("click",(e=>e.stopPropagation())),n.addEventListener("message",(t=>{"_apple_ar_quicklook_button_tapped"===t.data&&e.callToAction&&e.callToAction.onClick()}),!1),n.click(),n.removeChild(o)}));var C=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const N=e=>{document.dispatchEvent(new CustomEvent("r2u-webxr-close"))},D=()=>C(void 0,void 0,void 0,(function*(){return!!(navigator&&navigator.xr&&navigator.xr.isSessionSupported&&(yield navigator.xr.isSessionSupported("immersive-ar")))})),E=({model:e,beforeClose:t=N,language:r="en",callToAction:n})=>C(void 0,void 0,void 0,(function*(){const{init:o}=yield Promise.all([l.e(216),l.e(954)]).then(l.bind(l,6504));yield o({language:r});const i=document.createElement("div");document.body.appendChild(i);const{ARSession:a}=yield Promise.all([l.e(216),l.e(954)]).then(l.bind(l,3370)),s=new a(i,e,t,n);try{if(!(yield D()))throw document.dispatchEvent(new CustomEvent("r2u-webxr-not-compatible")),new Error("WebXR not supported, falling back to Scene-Viewer");document.dispatchEvent(new CustomEvent("r2u-webxr-compatible")),yield s.enterAR(),document.dispatchEvent(new CustomEvent("r2u-webxr-session-start"))}catch(t){document.dispatchEvent(new CustomEvent("r2u-webxr-fallback-to-sceneviewer")),console.warn("Error while trying to present AR with WebXR"),console.error(t),yield s.endSession(),document.body.removeChild(i),O({glb:e.glb,scale:e.resizable?"resizable":"fixed",placement:e.placement,link:e.url,title:e.name})}}));var z;!function(e){e.r2uWebxrSessionStart="r2u-webxr-session-start",e.r2uWebxrSessionEnd="r2u-webxr-session-end",e.r2uWebxrNotCompatible="r2u-webxr-not-compatible",e.r2uWebxrCompatible="r2u-webxr-compatible",e.r2uWebxrFallbackToSceneviewer="r2u-webxr-fallback-to-sceneviewer",e.r2uWebxrPlaneMapped="r2u-webxr-plane-mapped",e.r2uWebxrObjectPlaced="r2u-webxr-object-placed",e.r2uWebxrShare="r2u-webxr-share",e.r2uWebxrReset="r2u-webxr-reset",e.r2uWebxrExit="r2u-webxr-exit",e.r2uWebxrCallToAction="r2u-webxr-call-to-action",e.r2uWebxrTranslating="r2u-webxr-translating",e.r2uWebxrRotating="r2u-webxr-rotating",e.r2uWebxrScaling="r2u-webxr-scaling",e.r2uWebxrNone="r2u-webxr-none",e.r2uWebxrShowTranslatingInstructions="r2u-webxr-show-translating-instructions",e.r2uWebxrShowRotatingInstructions="r2u-webxr-show-rotating-instructions"}(z||(z={}))}(),f}())},1841:function(e,t,r){var n,o=r(4155);self,n=e=>(()=>{var t,r,n={58:(e,t,r)=>{"use strict";var n=r(594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||n&&n[y]||m&&m[y]||s&&s[y])){var v=d(r,y);try{u(t,y,v)}catch(e){}}}}return t}},516:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,c=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))r.call(a,l)&&(c[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)n.call(a,s[f])&&(c[s[f]]=a[s[f]])}}return c}},697:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}function S(e){return M(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||M(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return M(e)===u},t.isContextProvider=function(e){return M(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return M(e)===d},t.isFragment=function(e){return M(e)===i},t.isLazy=function(e){return M(e)===g},t.isMemo=function(e){return M(e)===m},t.isPortal=function(e){return M(e)===o},t.isProfiler=function(e){return M(e)===s},t.isStrictMode=function(e){return M(e)===a},t.isSuspense=function(e){return M(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=M},594:(e,t,r)=>{"use strict";e.exports=r(697)},94:(e,t,r)=>{"use strict";r(516);var n=r(156),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},512:(e,t,r)=>{"use strict";e.exports=r(94)},7:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},156:t=>{"use strict";t.exports=e}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>167===e?"vendors.7776ebcbed5a3da9ab67.bundle.js":628===e?"threeExperience.bundle.js":27===e?"vendors.46242851acce02152166.bundle.js":322===e?"dracoCompress.bundle.js":void 0,a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="@r2u/viewer:",a.l=(e,n,o,i)=>{if(t[e])t[e].push(n);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),t[e]=[n];var d=(r,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),r)return r(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.p="https://unpkg.com/@r2u/viewer@1.2.2/dist/",(()=>{var e={179:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,s,c]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);c&&c(a)}for(t&&t(r);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_r2u_viewer=self.webpackChunk_r2u_viewer||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var s={};return(()=>{"use strict";a.r(s),a.d(s,{default:()=>He});var e=a(512),t=a(156),r=a.n(t);const n="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNjkiIHZpZXdCb3g9IjAgMCA3MCA2OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4Ml85NDcpIj4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xODJfOTQ3KSI+CjxwYXRoIGQ9Ik01NC4wNDU5IDQwLjgzNjNMNDEuMTQyNSAzNC42MzJDNDAuNjU5NCAzNC40Mzk4IDQwLjE0NzggMzQuMzMgMzkuNjA3OCAzNC4zM0MzOC40MTQ4IDM0LjMzIDM3LjQ0NzcgMzMuMzYyOSAzNy40NDc3IDMyLjE3VjE3Ljg1ODNDMzcuNDQ3NyAxNS41Nzk3IDM1LjU0MzUgMTMuNzQwNCAzMy4xODQ1IDEzLjc0MDRDMzAuODI1NSAxMy43NDA0IDI4LjkyMTMgMTUuNTc5NyAyOC45MjEzIDE3Ljg1ODNWMzcuNTU3OEMyOC45MjEzIDQyLjYxNDggMjQuMjg3OCA0Ni40MDMxIDE5LjMzMTYgNDUuMzk4MkwxOS4xNzI3IDQ1LjM2NkMxOC45NDUzIDQ1LjMzODYgMTguNzQ2NCA0NS4yODM3IDE4LjQ5MDYgNDUuMjgzN0MxNy42MDk1IDQ1LjI4MzcgMTYuODEzNyA0NS42NDA2IDE2LjI0NTMgNDYuMTg5NkMxNS4wMTU3IDQ3LjM5MjMgMTUuMDIxOSA0OS4zNzI5IDE2LjI1OTEgNTAuNTY3OUwyOC4wNDAyIDYxLjk0NzVDMjguODA3NiA2Mi42ODg4IDI5Ljg4NzYgNjMuMTU1NSAzMS4wNTI5IDYzLjE1NTVINTAuMzUxMUM1Mi40ODI3IDYzLjE1NTUgNTQuMTMxMiA2MS42NDU2IDU0LjQ0MzggNTkuNjQxNUw1Ni41NzU0IDQ1LjE3MzlDNTYuNjAzOCA0NC45ODE3IDU2LjYzMjMgNDQuNzg5NSA1Ni42MzIzIDQ0LjYyNDhDNTYuNjMyMyA0Mi45MjI3IDU1LjU1MjIgNDEuNDQwMyA1NC4wNDU5IDQwLjgzNjNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjAuNzYxOCAxOS44MjYzQzIxLjM5MTUgMjQuMTk1NCAyNi4xMDUyIDIyLjQxMjYgMjYuMTA1MiAxNy45OTgyQzI2LjEwNTIgMTQuMTY2OCAyOS4xNzA1IDExLjA1NzMgMzIuOTQ3NSAxMS4wNTczQzM2LjcyNDQgMTEuMDU3MyAzOS43ODk3IDE0LjE2NjggMzkuNzg5NyAxNy45OTgyQzM5Ljc4OTcgMjIuNDEyNiA0NC41MDM0IDI0LjE5NTQgNDUuMTMzMSAxOS44MjYzQzQ1LjIxOTEgMTkuMjI5OCA0NS4yNjM2IDE4LjYxOTQgNDUuMjYzNiAxNy45OTgyQzQ1LjI2MzYgMTEuMDg1IDM5Ljc2MjQgNS41MDQ1MiAzMi45NDc1IDUuNTA0NTJDMjYuMTMyNSA1LjUwNDUyIDIwLjYzMTMgMTEuMDg1IDIwLjYzMTMgMTcuOTk4MkMyMC42MzEzIDE4LjYxOTQgMjAuNjc1OCAxOS4yMjk4IDIwLjc2MTggMTkuODI2M1oiIGZpbGw9IiNEREREREQiLz4KPC9nPgo8L2c+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMTgyXzk0NyIgeD0iMTIuMzI3MSIgeT0iMi41MDQ1MiIgd2lkdGg9IjUxLjMwNTIiIGhlaWdodD0iNjcuNjUxIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjIiIGR5PSIyIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuNSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzE4Ml85NDciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMTgyXzk0NyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xODJfOTQ3Ij4KPHJlY3Qgd2lkdGg9IjcwIiBoZWlnaHQ9IjY4LjgwNjgiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";var i=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const c=(0,t.createContext)({}),u=r().forwardRef((({glbSrc:r,exposure:n,hdri:o,noZoom:a,minZoom:s,maxZoom:u,initialZoom:l,backgroundColor:f,backgroundImage:d,sceneBackground:p,activeShadow:h,activeBakedShadow:m,shadowOffsetX:g,shadowOffsetY:y,shadowOffsetZ:v,shadowOpacity:b,shadowRadius:w,cameraOrbitSensitivity:M,minAzimuthalAngleRotation:S,maxAzimuthalAngleRotation:x,minPolarAngleRotation:k,maxPolarAngleRotation:A,maxDragX:j,minDragX:I,maxDragY:O,minDragY:C,maxDragZ:N,minDragZ:D,activeFog:E,fogColor:z,fogNear:P,fogFar:T,cameraNear:R,cameraFar:L,bloom:Y,initialBloom:_,enableBloomButton:Z,bloomIntensity:U,bloomRadius:B,bloomThreshold:$,initialAnimation:F,children:W},G)=>{const[Q,X]=(0,t.useState)(),[H,V]=(0,t.useState)(Y?_?"bloomOn":"bloomOff":"noBloom");return(0,t.useImperativeHandle)(G,(()=>({insertModelNode:e=>{Q&&Q.insertModelNode(e)},insertSlotModelNode:e=>i(void 0,void 0,void 0,(function*(){return Q?Q.insertSlotModelNode(e):null})),deleteModelNode:e=>{Q&&Q.deleteModelNode(e)},updateBloom:e=>{V(e?"bloomOn":"bloomOff")},getAllSlotsMaterials:()=>Q?Q.getAllSlotsMaterials():null,setMaterial:(...e)=>{Q&&Q.setMaterial(...e)},getAllSlotsModels:()=>Q?Q.getAllSlotsModels():null,setModel:(...e)=>{Q&&Q.setModel(...e)},getCamera:()=>Q?Q.camera.controls.getCamera():null,setCamera:e=>{Q&&Q.camera.controls.setCamera(e)},updateShadow:e=>{var t;Q&&(null===(t=Q.world.environment)||void 0===t||t.updateShadow(e))},updateFog:e=>{var t;Q&&(null===(t=Q.world.environment)||void 0===t||t.updateFog(e))},updateBloomProps:e=>{var t;Q&&(null===(t=Q.world.environment)||void 0===t||t.updateBloom(e))},updateEnvironment:e=>{Q&&Q.updateEnvironment(e)},getCustomizedModel:(...e)=>i(void 0,void 0,void 0,(function*(){return Q?Q.getCustomizedModel(...e):null})),getCurrentCustomization:()=>Q?Q.getCurrentCustomization():null,downloadGlb:(e="model.glb",t=!0)=>{Q&&Q.getCustomizedModel(t).then((t=>{if(!t)return void console.error("Error: could not export the glb!");const r=document.createElement("a");r.href=URL.createObjectURL(t),r.download=e,r.click()}))}}))),(0,e.jsx)(c.Provider,Object.assign({value:{glbSrc:r,exposure:n,hdri:"neutral"===o?"https://sdk.r2u.io/hdri/neutral.hdr":o,noZoom:a,minZoom:s,maxZoom:u,initialZoom:l,backgroundColor:f,backgroundImage:d,sceneBackground:p,activeShadow:h,activeBakedShadow:m,shadowOffsetX:g,shadowOffsetY:y,shadowOffsetZ:v,shadowOpacity:b,shadowRadius:w,cameraOrbitSensitivity:M,minAzimuthalAngleRotation:S,maxAzimuthalAngleRotation:x,minPolarAngleRotation:k,maxPolarAngleRotation:A,maxDragX:j,minDragX:I,maxDragY:O,minDragY:C,maxDragZ:N,minDragZ:D,activeFog:E,fogColor:z,fogNear:P,fogFar:T,cameraNear:R,cameraFar:L,experience:Q,setExperience:X,bloom:Y,initialBloom:_,enableBloomButton:Z,bloomIntensity:U,bloomRadius:B,bloomThreshold:$,initialAnimation:F,hasBloom:H,setHasBloom:V}},{children:W}),void 0)})),l=()=>(0,t.useContext)(c);var f=a(594),d=a(7),p=a.n(d);const h=function(e){function t(e,n,c,u,d){for(var p,h,m,g,w,S=0,x=0,k=0,A=0,j=0,E=0,P=m=p=0,R=0,L=0,Y=0,_=0,Z=c.length,U=Z-1,B="",$="",F="",W="";R<Z;){if(h=c.charCodeAt(R),R===U&&0!==x+A+k+S&&(0!==x&&(h=47===x?10:47),A=k=S=0,Z++,U++),0===x+A+k+S){if(R===U&&(0<L&&(B=B.replace(f,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=c.charAt(R)}h=59}switch(h){case 123:for(p=(B=B.trim()).charCodeAt(0),m=1,_=++R;R<Z;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(P=R+1;P<U;++P)switch(c.charCodeAt(P)){case 47:if(42===h&&42===c.charCodeAt(P-1)&&R+2!==P){R=P+1;break e}break;case 10:if(47===h){R=P+1;break e}}R=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<U&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=c.substring(_,R),0===p&&(p=(B=B.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(B=B.replace(f,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=D}if(_=(m=t(n,L,m,h,d+1)).length,0<z&&(w=s(3,m,L=r(D,B,Y),n,O,I,_,h,d,u),B=L.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:B=B.replace(M,a);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(y,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,B,Y),m,u,d+1);F+=m,m=Y=L=P=p=0,B="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(_=(B=(0<L?B.replace(f,""):B).trim()).length))switch(0===P&&(p=B.charCodeAt(0),45===p||96<p&&123>p)&&(_=(B=B.replace(" ",":")).length),0<z&&void 0!==(w=s(1,B,n,e,O,I,$.length,u,d,u))&&0===(_=(B=w.trim()).length)&&(B="\0\0"),p=B.charCodeAt(0),h=B.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){W+=B+c.charAt(R);break}default:58!==B.charCodeAt(_-1)&&($+=o(B,p,h,B.charCodeAt(2)))}Y=L=P=p=0,B="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==u&&0<B.length&&(L=1,B+="\0"),0<z*T&&s(0,B,n,e,O,I,$.length,u,d,u),I=1,O++;break;case 59:case 125:if(0===x+A+k+S){I++;break}default:switch(I++,g=c.charAt(R),h){case 9:case 32:if(0===A+S+x)switch(j){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+x+S&&(L=Y=1,g="\f"+g);break;case 108:if(0===A+x+S+C&&0<P)switch(R-P){case 2:112===j&&58===c.charCodeAt(R-3)&&(C=j);case 8:111===E&&(C=E)}break;case 58:0===A+x+S&&(P=R);break;case 44:0===x+k+A+S&&(L=1,g+="\r");break;case 34:case 39:0===x&&(A=A===h?0:0===A?h:A);break;case 91:0===A+x+k&&S++;break;case 93:0===A+x+k&&S--;break;case 41:0===A+x+S&&k--;break;case 40:0===A+x+S&&(0===p&&(2*j+3*E==533||(p=1)),k++);break;case 64:0===x+k+A+S+P+m&&(m=1);break;case 42:case 47:if(!(0<A+S+k))switch(x){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:x=47;break;case 220:_=R,x=42}break;case 42:47===h&&42===j&&_+2!==R&&(33===c.charCodeAt(_+2)&&($+=c.substring(_,R+1)),g="",x=0)}}0===x&&(B+=g)}E=j,j=h,R++}if(0<(_=$.length)){if(L=n,0<z&&void 0!==(w=s(2,$,L,e,O,I,_,u,d,u))&&0===($=w).length)return W+$+F;if($=L.join(",")+"{"+$+"}",0!=N*C){switch(2!==N||i($,2)||(C=0),C){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}C=0}}return W+$+F}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===N||2===N&&i(c,1)?"-webkit-"+c+c:c}if(0===N||2===N&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(j,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),P(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,d=0,p=t;d<z;++d)switch(f=E[d].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?N=1:(N=2,P=e):N=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<z){var o=s(-1,r,n,n,O,I,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(D,n,r,0,0);return 0<z&&void 0!==(o=s(-2,i,n,n,O,I,i.length,0,0,0))&&(i=o),C=0,I=O=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,M=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,I=1,O=1,C=0,N=1,D=[],E=[],z=0,P=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:z=E.length=0;break;default:if("function"==typeof t)E[z++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else T=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},m={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var g=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const y=(v={},function(e){return void 0===v[e]&&(v[e]=(t=e,g.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),v[e];var t});var v,b=a(58),w=a.n(b);function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var S=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},x=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,f.typeOf)(e)},k=Object.freeze([]),A=Object.freeze({});function j(e){return"function"==typeof e}function I(e){return e.displayName||e.name||"Component"}function O(e){return e&&"string"==typeof e.styledComponentId}var C=void 0!==o&&(o.env.REACT_APP_SC_ATTR||o.env.SC_ATTR)||"data-styled",N="undefined"!=typeof window&&"HTMLElement"in window,D=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==o&&void 0!==o.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==o.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==o.env.REACT_APP_SC_DISABLE_SPEEDY&&o.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==o&&void 0!==o.env.SC_DISABLE_SPEEDY&&""!==o.env.SC_DISABLE_SPEEDY&&"false"!==o.env.SC_DISABLE_SPEEDY&&o.env.SC_DISABLE_SPEEDY);function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var z=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),P=new Map,T=new Map,R=1,L=function(e){if(P.has(e))return P.get(e);for(;T.has(R);)R++;var t=R++;return P.set(e,t),T.set(t,e),t},Y=function(e){return T.get(e)},_=function(e,t){t>=R&&(R=t+1),P.set(e,t),T.set(t,e)},Z="style["+C+'][data-styled-version="5.3.3"]',U=new RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),B=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},$=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(U);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(_(u,c),B(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},F=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},W=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(C))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(C,"active"),n.setAttribute("data-styled-version","5.3.3");var a=F();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},G=function(){function e(e){var t=this.element=W(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Q=function(){function e(e){var t=this.element=W(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),X=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=N,V={isServer:!N,useCSSOMInjection:!D},J=function(){function e(e,t,r){void 0===e&&(e=A),void 0===t&&(t={}),this.options=M({},V,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&N&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(Z),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(C)&&($(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return L(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(M({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new X(o):n?new G(o):new Q(o),new z(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(L(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(L(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(L(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=Y(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=C+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),q=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function ee(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=K(t%52)+r;return(K(t%52)+r).replace(q,"$1-$2")}var te=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},re=function(e){return te(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(j(r)&&!O(r))return!1}return!0}var oe=re("5.3.3"),ie=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ne(e),this.componentId=t,this.baseHash=te(oe,t),this.baseStyle=r,J.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Se(this.rules,e,t,r).join(""),a=ee(te(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=te(this.baseHash,r.hash),l="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)l+=d;else if(d){var p=Se(d,e,t,r),h=Array.isArray(p)?p.join(""):p;u=te(u,h+f),l+=h}}if(l){var m=ee(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),ae=/^\s*\/\/.*$/gm,se=[":","[",".","#"];function ce(e){var t,r,n,o,i=void 0===e?A:e,a=i.options,s=void 0===a?A:a,c=i.plugins,u=void 0===c?k:c,l=new h(s),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==se.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(ae,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||E(15),te(e,t.name)}),5381).toString():"",m}var ue=r().createContext(),le=(ue.Consumer,r().createContext()),fe=(le.Consumer,new J),de=ce();function pe(){return(0,t.useContext)(ue)||fe}function he(e){var n=(0,t.useState)(e.stylisPlugins),o=n[0],i=n[1],a=pe(),s=(0,t.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,t.useMemo)((function(){return ce({options:{prefix:!e.disableVendorPrefixes},plugins:o})}),[e.disableVendorPrefixes,o]);return(0,t.useEffect)((function(){p()(o,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),r().createElement(ue.Provider,{value:s},r().createElement(le.Provider,{value:c},e.children))}var me=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=de);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return E(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=de),this.name+e.hash},e}(),ge=/([A-Z])/,ye=/([A-Z])/g,ve=/^ms-/,be=function(e){return"-"+e.toLowerCase()};function we(e){return ge.test(e)?e.replace(ye,be).replace(ve,"-ms-"):e}var Me=function(e){return null==e||!1===e||""===e};function Se(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Se(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Me(e)?"":O(e)?"."+e.styledComponentId:j(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Se(e(t),t,r,n):e instanceof me?r?(e.inject(r,n),e.getName(n)):e:x(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Me(t[a])&&(Array.isArray(t[a])&&t[a].isCss||j(t[a])?i.push(we(a)+":",t[a],";"):x(t[a])?i.push.apply(i,e(t[a],a)):i.push(we(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in m?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var xe=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ke(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return j(e)||x(e)?xe(Se(S(k,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:xe(Se(S(e,r)))}new Set;var Ae=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Ie(e){return e.replace(Ae,"-").replace(je,"")}function Oe(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ne=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function De(e,t,r){var n=e[r];Ce(t)&&Ce(n)?Ee(n,t):e[r]=t}function Ee(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Ce(a))for(var s in a)Ne(s)&&De(e,a[s],s)}return e}var ze=r().createContext();ze.Consumer;var Pe={};function Te(e,n,o){var i=O(e),a=!Oe(e),s=n.attrs,c=void 0===s?k:s,u=n.componentId,l=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Ie(e);Pe[r]=(Pe[r]||0)+1;var n=r+"-"+function(e){return ee(re(e)>>>0)}("5.3.3"+r+Pe[r]);return t?t+"-"+n:n}(n.displayName,n.parentComponentId):u,f=n.displayName,d=void 0===f?function(e){return Oe(e)?"styled."+e:"Styled("+I(e)+")"}(e):f,p=n.displayName&&n.componentId?Ie(n.displayName)+"-"+n.componentId:n.componentId||l,h=i&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,m=n.shouldForwardProp;i&&e.shouldForwardProp&&(m=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var g,v=new ie(o,p,i?e.componentStyle:void 0),b=v.isStatic&&0===c.length,S=function(e,r){return function(e,r,n,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,f=e.target,d=function(e,t,r){void 0===e&&(e=A);var n=M({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in j(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=A),e.theme!==r.theme&&e.theme||t||r.theme}(r,(0,t.useContext)(ze),s)||A,r,i),p=d[0],h=d[1],m=function(e,r,n,o){var i=pe(),a=(0,t.useContext)(le)||de;return r?e.generateAndInjectStyles(A,i,a):e.generateAndInjectStyles(n,i,a)}(a,o,p),g=n,v=h.$as||r.$as||h.as||r.as||f,b=Oe(v),w=h!==r?M({},r,{},h):r,S={};for(var x in w)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?S.as=w[x]:(u?u(x,y,v):!b||y(x))&&(S[x]=w[x]));return r.style&&h.style!==r.style&&(S.style=M({},r.style,{},h.style)),S.className=Array.prototype.concat(c,l,m!==l?m:null,r.className,h.className).filter(Boolean).join(" "),S.ref=g,(0,t.createElement)(v,S)}(g,e,r,b)};return S.displayName=d,(g=r().forwardRef(S)).attrs=h,g.componentStyle=v,g.displayName=d,g.shouldForwardProp=m,g.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):k,g.styledComponentId=p,g.target=i?e.target:e,g.withComponent=function(e){var t=n.componentId,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(n,["componentId"]),i=t&&t+"-"+(Oe(e)?e:Ie(I(e)));return Te(e,M({},r,{attrs:h,componentId:i}),o)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Ee({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},a&&w()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Re,Le=function(e){return function e(t,r,n){if(void 0===n&&(n=A),!(0,f.isValidElementType)(r))return E(1,String(r));var o=function(){return t(r,n,ke.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,M({},n,{},o))},o.attrs=function(o){return e(t,r,M({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Te,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Le[e]=Le(e)})),Re=function(e,t){this.rules=e,this.componentId=t,this.isStatic=ne(e),J.registerId(this.componentId+1)}.prototype,Re.createStyles=function(e,t,r,n){var o=n(Se(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},Re.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Re.renderStyles=function(e,t,r,n){e>2&&J.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=F();return"<style "+[r&&'nonce="'+r+'"',C+'="true"','data-styled-version="5.3.3"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return E(2);var n=((t={})[C]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=F();return o&&(n.nonce=o),[r().createElement("style",M({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new J({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?E(2):r().createElement(he,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return E(3)}}();const Ye=Le,_e=Ye.div`
|
|
1
|
+
/*! For license information please see vendors.46f23b9f09c5b355b41b.bundle.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[10],{5865:function(e,t,r){var n,o,i,a;self,e.exports=(n=r(7294),o=r(3935),i=r(1752),a=r(9864),function(){"use strict";var e,t,r,s,c={8156:function(e){e.exports=n},7111:function(e){e.exports=o},3238:function(e){e.exports=i},2622:function(e){e.exports=a}},u={};function l(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={id:e,loaded:!1,exports:{}};return c[e].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}l.m=c,l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},l.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);l.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},l.d(o,i),o},l.d=function(e,t){for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=function(e){return Promise.all(Object.keys(l.f).reduce((function(t,r){return l.f[r](e,t),t}),[]))},l.u=function(e){return{216:"vendors",954:"webXRSession"}[e]+".bundle.js"},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},s="@r2u/react-ar-components:",l.l=function(e,t,n,o){if(r[e])r[e].push(t);else{var i,a;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var f=c[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==s+n){i=f;break}}i||(a=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack",s+n),i.src=e),r[e]=[t];var d=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),a&&document.head.appendChild(i)}},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},l.p="https://unpkg.com/@r2u/react-ar-components@5.4.15/dist/",function(){var e={179:0};l.f.j=function(t,r){var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var i=l.p+l.u(t),a=new Error;l.l(i,(function(r){if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=function(t,r){var n,o,i=r[0],a=r[1],s=r[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(n in a)l.o(a,n)&&(l.m[n]=a[n]);s&&s(l)}for(t&&t(r);c<i.length;c++)o=i[c],l.o(e,o)&&e[o]&&e[o][0](),e[i[c]]=0},r=self.webpackChunk_r2u_react_ar_components=self.webpackChunk_r2u_react_ar_components||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var f={};return function(){l.r(f),l.d(f,{ModelViewer:function(){return x},WebXREvents:function(){return z},activateAR:function(){return O},activateWebXR:function(){return E},canActivateAR:function(){return D}});var e=l(8156),t=l.n(e);let r=!1,n=[0,0,0],o=[0,0,0],i=0,a=0,s=0,c=0,u=0;const d=e=>{const t=e.getCameraOrbit(),{theta:r,phi:i,radius:a}=t,s=r-e.turntableRotation;u=.75*a/e.getBoundingClientRect().height,n=[-Math.cos(s),0,Math.sin(s)],o=[-Math.cos(i)*Math.sin(s),Math.sin(i),-Math.cos(i)*Math.cos(s)],e.interactionPrompt="none"},p=(e,t,r)=>{const i=(e-s)*u,a=(t-c)*u;s=e,c=t;const l=r.getCameraTarget();l.x+=i*n[0]+a*o[0],l.y+=i*n[1]+a*o[1],l.z+=i*n[2]+a*o[2],r.cameraTarget=`${l.x}m ${l.y}m ${l.z}m`,r.dispatchEvent(new CustomEvent("camera-change",{detail:{source:"user-interaction"}}))},h=(e,t)=>{if(r=!1,Math.abs(e.clientX-i)>2||Math.abs(e.clientY-a)>2)return;const n=t.getBoundingClientRect(),o=e.clientX-n.left,s=e.clientY-n.top,c=t.positionAndNormalFromPoint(o,s);t.cameraTarget=null===c?"auto auto auto":c.position.toString()},m=e=>{const t=e,n=t.clientX?t:t.changedTouches[0];Math.abs(n.clientX-i)<2&&Math.abs(n.clientY-a)<2&&h(n,e.target),r=!1},g=e=>{i=e.clientX,a=e.clientY;const t=2===e.button||e.ctrlKey||e.metaKey||e.shiftKey;r=t,t&&(s=e.clientX,c=e.clientY,d(e.target),e.stopPropagation())},y=e=>{i=e.touches[0].clientX,a=e.touches[0].clientY;const t=2===e.touches.length;if(r=t,!t)return;const{touches:n}=e;s=.5*(n[0].clientX+n[1].clientX),c=.5*(n[0].clientY+n[1].clientY),d(e.target)},v=e=>{r&&(p(e.clientX,e.clientY,e.target),e.stopPropagation())},b=e=>{if(!r||2!==e.touches.length)return;const{touches:t}=e,n=.5*(t[0].clientX+t[1].clientX),o=.5*(t[0].clientY+t[1].clientY);p(n,o,e.target)},w=e=>{h(e,e.target)},S=e=>{0===e.touches.length&&h(e.changedTouches[0],e.target)},M=e=>e.preventDefault();var x=t().forwardRef(((r,n)=>{const{src:o="",alt:i="",poster:a="",reveal:s="auto",ar:c=!1,arScale:u,cameraControls:l=!0,autoRotate:f=!0,interactionPromptThreshold:d=500,environmentImage:p="",exposure:h=.5,bloom:x=!1,shadowIntensity:k=1,shadowSoftness:A=0,autoPlay:j=!0,className:I,style:O,children:C,pan:N=!0,zoom:D=!0,componentDidMount:E=(()=>{}),onClick:z=(()=>{}),onSessionTimeCollect:P=(e=>{}),touchAction:T}=r,R=n,[L,Y]=(0,e.useState)(!1),{addPan:_,removePan:Z}={addPan:e=>{e.addEventListener("pointerup",m,!0),e.addEventListener("mousedown",g,!0),e.addEventListener("mousemove",v,!0),e.addEventListener("mouseup",w,!0),e.addEventListener("touchstart",y,!0),e.addEventListener("touchmove",b,!0),e.addEventListener("touchend",S,!0),e.addEventListener("contextmenu",M,!0)},removePan:e=>{e.removeEventListener("pointerup",m,!0),e.removeEventListener("mousedown",g,!0),e.removeEventListener("mousemove",v,!0),e.removeEventListener("mouseup",w,!0),e.removeEventListener("touchstart",y,!0),e.removeEventListener("touchmove",b,!0),e.removeEventListener("touchend",S,!0),e.removeEventListener("contextmenu",M,!0)}},[U,B]=(0,e.useState)();return(0,e.useEffect)((()=>{var e,t;L&&(null===(t=null===(e=R.current)||void 0===e?void 0:e.availableAnimations)||void 0===t?void 0:t.length)&&(R.current.interactionPrompt="none")}),[L]),(0,e.useEffect)((()=>{E(),R&&R.current&&(R.current.src=o,R.current.addEventListener("load",(()=>Y(!0))))}),[]),(0,e.useEffect)((()=>{R&&R.current&&(N?_(R.current):Z(R.current))}),[R,N]),t().createElement("model-viewer",Object.assign({ref:R,class:I,style:O,alt:i,poster:a,reveal:s},c?{ar:""}:{},{"ar-scale":u},l?{"camera-controls":""}:{},D?{}:{"disable-zoom":""},f?{"auto-rotate":""}:{},{"interaction-prompt-threshold":d,"environment-image":p,exposure:h,bloom:x,"shadow-intensity":k,"shadow-softness":A},j?{autoplay:""}:{},{"data-js-focus-visible":!0,onClick:z,onPointerEnter:()=>{B(new Date)},onPointerLeave:()=>{if(U){const e=(new Date).getTime()-U.getTime();P(e)}},"touch-action":T}),C)}));null!=navigator.xr&&null!=self.XRSession&&null!=navigator.xr.isSessionSupported&&self.XRSession.prototype.requestHitTestSource,self.ResizeObserver,self.IntersectionObserver,(()=>{const e=navigator.userAgent||navigator.vendor||self.opera;let t=!1;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)})(),/\bCrOS\b/.test(navigator.userAgent);const k=/android/i.test(navigator.userAgent),A=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!self.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;(()=>{const e=document.createElement("a");Boolean(e.relList&&e.relList.supports&&e.relList.supports("ar"))})(),/Safari\//.test(navigator.userAgent),/firefox/i.test(navigator.userAgent),/OculusBrowser/.test(navigator.userAgent),A&&/CriOS\//.test(navigator.userAgent);var j=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const I="#no-ar-fallback",O=e=>j(void 0,void 0,void 0,(function*(){const{hashFallback:t=I}=e,r=A?(({title:e,price:t,usdz:r,scale:n="fixed",callToAction:o,pdpUrl:i})=>{const a=new URL(r);"fixed"===n&&a.searchParams.set("allowsContentScaling","0"),i&&a.searchParams.set("canonicalWebPageURL",i);let s=a.toString().replace("?","#");if(o){const{text:r}=o;s+=`&custom=https://sdk.r2u.io/ar-components/call-to-action/banner.html?params=${encodeURIComponent(encodeURIComponent(JSON.stringify({title:e,price:t,text:r})))}`}return s})(e):k?(({glb:e="",title:t,sound:r,link:n,shareText:o,mode:i="ar_only",placement:a="floor",disableOcclusion:s=!0,scale:c="fixed",hashFallback:u=I})=>{const l=window.location.toString(),f=new URL(l),d=new URLSearchParams("");return f.hash=u,d.set("file",e),i&&d.set("mode",i),s&&d.set("disable_occlusion","true"),"fixed"===c&&d.set("resizable","false"),"wall"===a&&d.set("enable_vertical_placement","true"),r&&d.set("sound",r),n&&d.set("link",n),t&&d.set("title",t),o&&d.set("share_text",o),`intent://arvr.google.com/scene-viewer/1.2?${d.toString()}#Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(f.toString())};end;`})(e):"";if(!r)return void(window.location.hash=t);if(A){const e=document.createElement("a");if(e.relList&&e.relList.supports&&!e.relList.supports("ar")&&!(()=>{const{userAgent:e}=window.navigator,t=e.indexOf("OS "),r=(e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1)&&t>-1?window.Number(e.slice(t+3,t+7).replace("_",".")):0;return!!e.match("CriOS")&&r>16})())return void(window.location.hash=t)}const n=document.createElement("a");document.body.appendChild(n);const o=document.createElement("img");n.setAttribute("rel","ar"),n.appendChild(o),n.setAttribute("href",r),n.addEventListener("click",(e=>e.stopPropagation())),n.addEventListener("message",(t=>{"_apple_ar_quicklook_button_tapped"===t.data&&e.callToAction&&e.callToAction.onClick()}),!1),n.click(),n.removeChild(o)}));var C=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const N=e=>{document.dispatchEvent(new CustomEvent("r2u-webxr-close"))},D=()=>C(void 0,void 0,void 0,(function*(){return!!(navigator&&navigator.xr&&navigator.xr.isSessionSupported&&(yield navigator.xr.isSessionSupported("immersive-ar")))})),E=({model:e,beforeClose:t=N,language:r="en",callToAction:n})=>C(void 0,void 0,void 0,(function*(){const{init:o}=yield Promise.all([l.e(216),l.e(954)]).then(l.bind(l,6504));yield o({language:r});const i=document.createElement("div");document.body.appendChild(i);const{ARSession:a}=yield Promise.all([l.e(216),l.e(954)]).then(l.bind(l,3370)),s=new a(i,e,t,n);try{if(!(yield D()))throw document.dispatchEvent(new CustomEvent("r2u-webxr-not-compatible")),new Error("WebXR not supported, falling back to Scene-Viewer");document.dispatchEvent(new CustomEvent("r2u-webxr-compatible")),yield s.enterAR(),document.dispatchEvent(new CustomEvent("r2u-webxr-session-start"))}catch(t){document.dispatchEvent(new CustomEvent("r2u-webxr-fallback-to-sceneviewer")),console.warn("Error while trying to present AR with WebXR"),console.error(t),yield s.endSession(),document.body.removeChild(i),O({glb:e.glb,scale:e.resizable?"resizable":"fixed",placement:e.placement,link:e.url,title:e.name})}}));var z;!function(e){e.r2uWebxrSessionStart="r2u-webxr-session-start",e.r2uWebxrSessionEnd="r2u-webxr-session-end",e.r2uWebxrNotCompatible="r2u-webxr-not-compatible",e.r2uWebxrCompatible="r2u-webxr-compatible",e.r2uWebxrFallbackToSceneviewer="r2u-webxr-fallback-to-sceneviewer",e.r2uWebxrPlaneMapped="r2u-webxr-plane-mapped",e.r2uWebxrObjectPlaced="r2u-webxr-object-placed",e.r2uWebxrShare="r2u-webxr-share",e.r2uWebxrReset="r2u-webxr-reset",e.r2uWebxrExit="r2u-webxr-exit",e.r2uWebxrCallToAction="r2u-webxr-call-to-action",e.r2uWebxrTranslating="r2u-webxr-translating",e.r2uWebxrRotating="r2u-webxr-rotating",e.r2uWebxrScaling="r2u-webxr-scaling",e.r2uWebxrNone="r2u-webxr-none",e.r2uWebxrShowTranslatingInstructions="r2u-webxr-show-translating-instructions",e.r2uWebxrShowRotatingInstructions="r2u-webxr-show-rotating-instructions"}(z||(z={}))}(),f}())},1841:function(e,t,r){var n,o=r(4155);self,n=e=>(()=>{var t,r,n={58:(e,t,r)=>{"use strict";var n=r(594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||n&&n[y]||m&&m[y]||s&&s[y])){var v=d(r,y);try{u(t,y,v)}catch(e){}}}}return t}},516:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,c=o(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))r.call(a,l)&&(c[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)n.call(a,s[f])&&(c[s[f]]=a[s[f]])}}return c}},697:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}function M(e){return S(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return M(e)||S(e)===l},t.isConcurrentMode=M,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},594:(e,t,r)=>{"use strict";e.exports=r(697)},94:(e,t,r)=>{"use strict";r(516);var n=r(156),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},512:(e,t,r)=>{"use strict";e.exports=r(94)},7:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},156:t=>{"use strict";t.exports=e}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>167===e?"vendors.7776ebcbed5a3da9ab67.bundle.js":628===e?"threeExperience.bundle.js":27===e?"vendors.46242851acce02152166.bundle.js":322===e?"dracoCompress.bundle.js":void 0,a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="@r2u/viewer:",a.l=(e,n,o,i)=>{if(t[e])t[e].push(n);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),t[e]=[n];var d=(r,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),r)return r(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.p="https://unpkg.com/@r2u/viewer@1.2.2/dist/",(()=>{var e={179:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,s,c]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);c&&c(a)}for(t&&t(r);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunk_r2u_viewer=self.webpackChunk_r2u_viewer||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var s={};return(()=>{"use strict";a.r(s),a.d(s,{default:()=>He});var e=a(512),t=a(156),r=a.n(t);const n="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNjkiIHZpZXdCb3g9IjAgMCA3MCA2OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4Ml85NDcpIj4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xODJfOTQ3KSI+CjxwYXRoIGQ9Ik01NC4wNDU5IDQwLjgzNjNMNDEuMTQyNSAzNC42MzJDNDAuNjU5NCAzNC40Mzk4IDQwLjE0NzggMzQuMzMgMzkuNjA3OCAzNC4zM0MzOC40MTQ4IDM0LjMzIDM3LjQ0NzcgMzMuMzYyOSAzNy40NDc3IDMyLjE3VjE3Ljg1ODNDMzcuNDQ3NyAxNS41Nzk3IDM1LjU0MzUgMTMuNzQwNCAzMy4xODQ1IDEzLjc0MDRDMzAuODI1NSAxMy43NDA0IDI4LjkyMTMgMTUuNTc5NyAyOC45MjEzIDE3Ljg1ODNWMzcuNTU3OEMyOC45MjEzIDQyLjYxNDggMjQuMjg3OCA0Ni40MDMxIDE5LjMzMTYgNDUuMzk4MkwxOS4xNzI3IDQ1LjM2NkMxOC45NDUzIDQ1LjMzODYgMTguNzQ2NCA0NS4yODM3IDE4LjQ5MDYgNDUuMjgzN0MxNy42MDk1IDQ1LjI4MzcgMTYuODEzNyA0NS42NDA2IDE2LjI0NTMgNDYuMTg5NkMxNS4wMTU3IDQ3LjM5MjMgMTUuMDIxOSA0OS4zNzI5IDE2LjI1OTEgNTAuNTY3OUwyOC4wNDAyIDYxLjk0NzVDMjguODA3NiA2Mi42ODg4IDI5Ljg4NzYgNjMuMTU1NSAzMS4wNTI5IDYzLjE1NTVINTAuMzUxMUM1Mi40ODI3IDYzLjE1NTUgNTQuMTMxMiA2MS42NDU2IDU0LjQ0MzggNTkuNjQxNUw1Ni41NzU0IDQ1LjE3MzlDNTYuNjAzOCA0NC45ODE3IDU2LjYzMjMgNDQuNzg5NSA1Ni42MzIzIDQ0LjYyNDhDNTYuNjMyMyA0Mi45MjI3IDU1LjU1MjIgNDEuNDQwMyA1NC4wNDU5IDQwLjgzNjNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjAuNzYxOCAxOS44MjYzQzIxLjM5MTUgMjQuMTk1NCAyNi4xMDUyIDIyLjQxMjYgMjYuMTA1MiAxNy45OTgyQzI2LjEwNTIgMTQuMTY2OCAyOS4xNzA1IDExLjA1NzMgMzIuOTQ3NSAxMS4wNTczQzM2LjcyNDQgMTEuMDU3MyAzOS43ODk3IDE0LjE2NjggMzkuNzg5NyAxNy45OTgyQzM5Ljc4OTcgMjIuNDEyNiA0NC41MDM0IDI0LjE5NTQgNDUuMTMzMSAxOS44MjYzQzQ1LjIxOTEgMTkuMjI5OCA0NS4yNjM2IDE4LjYxOTQgNDUuMjYzNiAxNy45OTgyQzQ1LjI2MzYgMTEuMDg1IDM5Ljc2MjQgNS41MDQ1MiAzMi45NDc1IDUuNTA0NTJDMjYuMTMyNSA1LjUwNDUyIDIwLjYzMTMgMTEuMDg1IDIwLjYzMTMgMTcuOTk4MkMyMC42MzEzIDE4LjYxOTQgMjAuNjc1OCAxOS4yMjk4IDIwLjc2MTggMTkuODI2M1oiIGZpbGw9IiNEREREREQiLz4KPC9nPgo8L2c+CjxkZWZzPgo8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMTgyXzk0NyIgeD0iMTIuMzI3MSIgeT0iMi41MDQ1MiIgd2lkdGg9IjUxLjMwNTIiIGhlaWdodD0iNjcuNjUxIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CjxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIiByZXN1bHQ9ImhhcmRBbHBoYSIvPgo8ZmVPZmZzZXQgZHg9IjIiIGR5PSIyIi8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuNSIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzE4Ml85NDciLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMTgyXzk0NyIgcmVzdWx0PSJzaGFwZSIvPgo8L2ZpbHRlcj4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xODJfOTQ3Ij4KPHJlY3Qgd2lkdGg9IjcwIiBoZWlnaHQ9IjY4LjgwNjgiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";var i=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};const c=(0,t.createContext)({}),u=r().forwardRef((({glbSrc:r,exposure:n,hdri:o,noZoom:a,minZoom:s,maxZoom:u,initialZoom:l,backgroundColor:f,backgroundImage:d,sceneBackground:p,activeShadow:h,activeBakedShadow:m,shadowOffsetX:g,shadowOffsetY:y,shadowOffsetZ:v,shadowOpacity:b,shadowRadius:w,cameraOrbitSensitivity:S,minAzimuthalAngleRotation:M,maxAzimuthalAngleRotation:x,minPolarAngleRotation:k,maxPolarAngleRotation:A,maxDragX:j,minDragX:I,maxDragY:O,minDragY:C,maxDragZ:N,minDragZ:D,activeFog:E,fogColor:z,fogNear:P,fogFar:T,cameraNear:R,cameraFar:L,bloom:Y,initialBloom:_,enableBloomButton:Z,bloomIntensity:U,bloomRadius:B,bloomThreshold:$,initialAnimation:F,children:W},G)=>{const[Q,X]=(0,t.useState)(),[H,V]=(0,t.useState)(Y?_?"bloomOn":"bloomOff":"noBloom");return(0,t.useImperativeHandle)(G,(()=>({insertModelNode:e=>{Q&&Q.insertModelNode(e)},insertSlotModelNode:e=>i(void 0,void 0,void 0,(function*(){return Q?Q.insertSlotModelNode(e):null})),deleteModelNode:e=>{Q&&Q.deleteModelNode(e)},updateBloom:e=>{V(e?"bloomOn":"bloomOff")},getAllSlotsMaterials:()=>Q?Q.getAllSlotsMaterials():null,setMaterial:(...e)=>{Q&&Q.setMaterial(...e)},getAllSlotsModels:()=>Q?Q.getAllSlotsModels():null,setModel:(...e)=>{Q&&Q.setModel(...e)},getCamera:()=>Q?Q.camera.controls.getCamera():null,setCamera:e=>{Q&&Q.camera.controls.setCamera(e)},updateShadow:e=>{var t;Q&&(null===(t=Q.world.environment)||void 0===t||t.updateShadow(e))},updateFog:e=>{var t;Q&&(null===(t=Q.world.environment)||void 0===t||t.updateFog(e))},updateBloomProps:e=>{var t;Q&&(null===(t=Q.world.environment)||void 0===t||t.updateBloom(e))},updateEnvironment:e=>{Q&&Q.updateEnvironment(e)},getCustomizedModel:(...e)=>i(void 0,void 0,void 0,(function*(){return Q?Q.getCustomizedModel(...e):null})),getCurrentCustomization:()=>Q?Q.getCurrentCustomization():null,downloadGlb:(e="model.glb",t=!0)=>{Q&&Q.getCustomizedModel(t).then((t=>{if(!t)return void console.error("Error: could not export the glb!");const r=document.createElement("a");r.href=URL.createObjectURL(t),r.download=e,r.click()}))}}))),(0,e.jsx)(c.Provider,Object.assign({value:{glbSrc:r,exposure:n,hdri:"neutral"===o?"https://sdk.r2u.io/hdri/neutral.hdr":o,noZoom:a,minZoom:s,maxZoom:u,initialZoom:l,backgroundColor:f,backgroundImage:d,sceneBackground:p,activeShadow:h,activeBakedShadow:m,shadowOffsetX:g,shadowOffsetY:y,shadowOffsetZ:v,shadowOpacity:b,shadowRadius:w,cameraOrbitSensitivity:S,minAzimuthalAngleRotation:M,maxAzimuthalAngleRotation:x,minPolarAngleRotation:k,maxPolarAngleRotation:A,maxDragX:j,minDragX:I,maxDragY:O,minDragY:C,maxDragZ:N,minDragZ:D,activeFog:E,fogColor:z,fogNear:P,fogFar:T,cameraNear:R,cameraFar:L,experience:Q,setExperience:X,bloom:Y,initialBloom:_,enableBloomButton:Z,bloomIntensity:U,bloomRadius:B,bloomThreshold:$,initialAnimation:F,hasBloom:H,setHasBloom:V}},{children:W}),void 0)})),l=()=>(0,t.useContext)(c);var f=a(594),d=a(7),p=a.n(d);const h=function(e){function t(e,n,c,u,d){for(var p,h,m,g,w,M=0,x=0,k=0,A=0,j=0,E=0,P=m=p=0,R=0,L=0,Y=0,_=0,Z=c.length,U=Z-1,B="",$="",F="",W="";R<Z;){if(h=c.charCodeAt(R),R===U&&0!==x+A+k+M&&(0!==x&&(h=47===x?10:47),A=k=M=0,Z++,U++),0===x+A+k+M){if(R===U&&(0<L&&(B=B.replace(f,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=c.charAt(R)}h=59}switch(h){case 123:for(p=(B=B.trim()).charCodeAt(0),m=1,_=++R;R<Z;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(P=R+1;P<U;++P)switch(c.charCodeAt(P)){case 47:if(42===h&&42===c.charCodeAt(P-1)&&R+2!==P){R=P+1;break e}break;case 10:if(47===h){R=P+1;break e}}R=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<U&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=c.substring(_,R),0===p&&(p=(B=B.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(B=B.replace(f,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=D}if(_=(m=t(n,L,m,h,d+1)).length,0<z&&(w=s(3,m,L=r(D,B,Y),n,O,I,_,h,d,u),B=L.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:B=B.replace(S,a);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(y,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,B,Y),m,u,d+1);F+=m,m=Y=L=P=p=0,B="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(_=(B=(0<L?B.replace(f,""):B).trim()).length))switch(0===P&&(p=B.charCodeAt(0),45===p||96<p&&123>p)&&(_=(B=B.replace(" ",":")).length),0<z&&void 0!==(w=s(1,B,n,e,O,I,$.length,u,d,u))&&0===(_=(B=w.trim()).length)&&(B="\0\0"),p=B.charCodeAt(0),h=B.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){W+=B+c.charAt(R);break}default:58!==B.charCodeAt(_-1)&&($+=o(B,p,h,B.charCodeAt(2)))}Y=L=P=p=0,B="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==u&&0<B.length&&(L=1,B+="\0"),0<z*T&&s(0,B,n,e,O,I,$.length,u,d,u),I=1,O++;break;case 59:case 125:if(0===x+A+k+M){I++;break}default:switch(I++,g=c.charAt(R),h){case 9:case 32:if(0===A+M+x)switch(j){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+x+M&&(L=Y=1,g="\f"+g);break;case 108:if(0===A+x+M+C&&0<P)switch(R-P){case 2:112===j&&58===c.charCodeAt(R-3)&&(C=j);case 8:111===E&&(C=E)}break;case 58:0===A+x+M&&(P=R);break;case 44:0===x+k+A+M&&(L=1,g+="\r");break;case 34:case 39:0===x&&(A=A===h?0:0===A?h:A);break;case 91:0===A+x+k&&M++;break;case 93:0===A+x+k&&M--;break;case 41:0===A+x+M&&k--;break;case 40:0===A+x+M&&(0===p&&(2*j+3*E==533||(p=1)),k++);break;case 64:0===x+k+A+M+P+m&&(m=1);break;case 42:case 47:if(!(0<A+M+k))switch(x){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:x=47;break;case 220:_=R,x=42}break;case 42:47===h&&42===j&&_+2!==R&&(33===c.charCodeAt(_+2)&&($+=c.substring(_,R+1)),g="",x=0)}}0===x&&(B+=g)}E=j,j=h,R++}if(0<(_=$.length)){if(L=n,0<z&&void 0!==(w=s(2,$,L,e,O,I,_,u,d,u))&&0===($=w).length)return W+$+F;if($=L.join(",")+"{"+$+"}",0!=N*C){switch(2!==N||i($,2)||(C=0),C){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}C=0}}return W+$+F}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===N||2===N&&i(c,1)?"-webkit-"+c+c:c}if(0===N||2===N&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(j,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),P(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(M," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,d=0,p=t;d<z;++d)switch(f=E[d].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?N=1:(N=2,P=e):N=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<z){var o=s(-1,r,n,n,O,I,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(D,n,r,0,0);return 0<z&&void 0!==(o=s(-2,i,n,n,O,I,i.length,0,0,0))&&(i=o),C=0,I=O=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,M=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,I=1,O=1,C=0,N=1,D=[],E=[],z=0,P=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:z=E.length=0;break;default:if("function"==typeof t)E[z++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else T=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},m={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var g=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const y=(v={},function(e){return void 0===v[e]&&(v[e]=(t=e,g.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91)),v[e];var t});var v,b=a(58),w=a.n(b);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var M=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},x=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,f.typeOf)(e)},k=Object.freeze([]),A=Object.freeze({});function j(e){return"function"==typeof e}function I(e){return e.displayName||e.name||"Component"}function O(e){return e&&"string"==typeof e.styledComponentId}var C=void 0!==o&&(o.env.REACT_APP_SC_ATTR||o.env.SC_ATTR)||"data-styled",N="undefined"!=typeof window&&"HTMLElement"in window,D=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==o&&void 0!==o.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==o.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==o.env.REACT_APP_SC_DISABLE_SPEEDY&&o.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==o&&void 0!==o.env.SC_DISABLE_SPEEDY&&""!==o.env.SC_DISABLE_SPEEDY&&"false"!==o.env.SC_DISABLE_SPEEDY&&o.env.SC_DISABLE_SPEEDY);function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var z=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),P=new Map,T=new Map,R=1,L=function(e){if(P.has(e))return P.get(e);for(;T.has(R);)R++;var t=R++;return P.set(e,t),T.set(t,e),t},Y=function(e){return T.get(e)},_=function(e,t){t>=R&&(R=t+1),P.set(e,t),T.set(t,e)},Z="style["+C+'][data-styled-version="5.3.3"]',U=new RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),B=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},$=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(U);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(_(u,c),B(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},F=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},W=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(C))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(C,"active"),n.setAttribute("data-styled-version","5.3.3");var a=F();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},G=function(){function e(e){var t=this.element=W(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Q=function(){function e(e){var t=this.element=W(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),X=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=N,V={isServer:!N,useCSSOMInjection:!D},J=function(){function e(e,t,r){void 0===e&&(e=A),void 0===t&&(t={}),this.options=S({},V,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&N&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(Z),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(C)&&($(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return L(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(S({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new X(o):n?new G(o):new Q(o),new z(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(L(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(L(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(L(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=Y(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=C+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),q=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function ee(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=K(t%52)+r;return(K(t%52)+r).replace(q,"$1-$2")}var te=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},re=function(e){return te(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(j(r)&&!O(r))return!1}return!0}var oe=re("5.3.3"),ie=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ne(e),this.componentId=t,this.baseHash=te(oe,t),this.baseStyle=r,J.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Me(this.rules,e,t,r).join(""),a=ee(te(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=te(this.baseHash,r.hash),l="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)l+=d;else if(d){var p=Me(d,e,t,r),h=Array.isArray(p)?p.join(""):p;u=te(u,h+f),l+=h}}if(l){var m=ee(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),ae=/^\s*\/\/.*$/gm,se=[":","[",".","#"];function ce(e){var t,r,n,o,i=void 0===e?A:e,a=i.options,s=void 0===a?A:a,c=i.plugins,u=void 0===c?k:c,l=new h(s),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==se.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(ae,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||E(15),te(e,t.name)}),5381).toString():"",m}var ue=r().createContext(),le=(ue.Consumer,r().createContext()),fe=(le.Consumer,new J),de=ce();function pe(){return(0,t.useContext)(ue)||fe}function he(e){var n=(0,t.useState)(e.stylisPlugins),o=n[0],i=n[1],a=pe(),s=(0,t.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,t.useMemo)((function(){return ce({options:{prefix:!e.disableVendorPrefixes},plugins:o})}),[e.disableVendorPrefixes,o]);return(0,t.useEffect)((function(){p()(o,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]),r().createElement(ue.Provider,{value:s},r().createElement(le.Provider,{value:c},e.children))}var me=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=de);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return E(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=de),this.name+e.hash},e}(),ge=/([A-Z])/,ye=/([A-Z])/g,ve=/^ms-/,be=function(e){return"-"+e.toLowerCase()};function we(e){return ge.test(e)?e.replace(ye,be).replace(ve,"-ms-"):e}var Se=function(e){return null==e||!1===e||""===e};function Me(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Me(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Se(e)?"":O(e)?"."+e.styledComponentId:j(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Me(e(t),t,r,n):e instanceof me?r?(e.inject(r,n),e.getName(n)):e:x(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Se(t[a])&&(Array.isArray(t[a])&&t[a].isCss||j(t[a])?i.push(we(a)+":",t[a],";"):x(t[a])?i.push.apply(i,e(t[a],a)):i.push(we(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in m?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var xe=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ke(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return j(e)||x(e)?xe(Me(M(k,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:xe(Me(M(e,r)))}new Set;var Ae=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Ie(e){return e.replace(Ae,"-").replace(je,"")}function Oe(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ne=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function De(e,t,r){var n=e[r];Ce(t)&&Ce(n)?Ee(n,t):e[r]=t}function Ee(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Ce(a))for(var s in a)Ne(s)&&De(e,a[s],s)}return e}var ze=r().createContext();ze.Consumer;var Pe={};function Te(e,n,o){var i=O(e),a=!Oe(e),s=n.attrs,c=void 0===s?k:s,u=n.componentId,l=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Ie(e);Pe[r]=(Pe[r]||0)+1;var n=r+"-"+function(e){return ee(re(e)>>>0)}("5.3.3"+r+Pe[r]);return t?t+"-"+n:n}(n.displayName,n.parentComponentId):u,f=n.displayName,d=void 0===f?function(e){return Oe(e)?"styled."+e:"Styled("+I(e)+")"}(e):f,p=n.displayName&&n.componentId?Ie(n.displayName)+"-"+n.componentId:n.componentId||l,h=i&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,m=n.shouldForwardProp;i&&e.shouldForwardProp&&(m=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var g,v=new ie(o,p,i?e.componentStyle:void 0),b=v.isStatic&&0===c.length,M=function(e,r){return function(e,r,n,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,f=e.target,d=function(e,t,r){void 0===e&&(e=A);var n=S({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in j(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=A),e.theme!==r.theme&&e.theme||t||r.theme}(r,(0,t.useContext)(ze),s)||A,r,i),p=d[0],h=d[1],m=function(e,r,n,o){var i=pe(),a=(0,t.useContext)(le)||de;return r?e.generateAndInjectStyles(A,i,a):e.generateAndInjectStyles(n,i,a)}(a,o,p),g=n,v=h.$as||r.$as||h.as||r.as||f,b=Oe(v),w=h!==r?S({},r,{},h):r,M={};for(var x in w)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?M.as=w[x]:(u?u(x,y,v):!b||y(x))&&(M[x]=w[x]));return r.style&&h.style!==r.style&&(M.style=S({},r.style,{},h.style)),M.className=Array.prototype.concat(c,l,m!==l?m:null,r.className,h.className).filter(Boolean).join(" "),M.ref=g,(0,t.createElement)(v,M)}(g,e,r,b)};return M.displayName=d,(g=r().forwardRef(M)).attrs=h,g.componentStyle=v,g.displayName=d,g.shouldForwardProp=m,g.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):k,g.styledComponentId=p,g.target=i?e.target:e,g.withComponent=function(e){var t=n.componentId,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(n,["componentId"]),i=t&&t+"-"+(Oe(e)?e:Ie(I(e)));return Te(e,S({},r,{attrs:h,componentId:i}),o)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Ee({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},a&&w()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Re,Le=function(e){return function e(t,r,n){if(void 0===n&&(n=A),!(0,f.isValidElementType)(r))return E(1,String(r));var o=function(){return t(r,n,ke.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,S({},n,{},o))},o.attrs=function(o){return e(t,r,S({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Te,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Le[e]=Le(e)})),Re=function(e,t){this.rules=e,this.componentId=t,this.isStatic=ne(e),J.registerId(this.componentId+1)}.prototype,Re.createStyles=function(e,t,r,n){var o=n(Me(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},Re.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Re.renderStyles=function(e,t,r,n){e>2&&J.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=F();return"<style "+[r&&'nonce="'+r+'"',C+'="true"','data-styled-version="5.3.3"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return E(2);var n=((t={})[C]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=F();return o&&(n.nonce=o),[r().createElement("style",S({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new J({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?E(2):r().createElement(he,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return E(3)}}();const Ye=Le,_e=Ye.div`
|
|
3
3
|
opacity: 0;
|
|
4
4
|
|
|
5
5
|
.bloomButtonR2U {
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
opacity: 0;
|
|
96
96
|
transition: opacity 0.3s;
|
|
97
97
|
}
|
|
98
|
-
`,Qe=()=>{const r=(0,t.useRef)(null),o=(0,t.useRef)(null),i=(0,t.useRef)(null),s=(0,t.useRef)(null),{glbSrc:c,exposure:u,hdri:f,noZoom:d,minZoom:p,maxZoom:h,initialZoom:m,backgroundColor:g,backgroundImage:y,sceneBackground:v,activeShadow:b,activeBakedShadow:w,shadowOffsetX:
|
|
98
|
+
`,Qe=()=>{const r=(0,t.useRef)(null),o=(0,t.useRef)(null),i=(0,t.useRef)(null),s=(0,t.useRef)(null),{glbSrc:c,exposure:u,hdri:f,noZoom:d,minZoom:p,maxZoom:h,initialZoom:m,backgroundColor:g,backgroundImage:y,sceneBackground:v,activeShadow:b,activeBakedShadow:w,shadowOffsetX:S,shadowOffsetY:M,shadowOffsetZ:x,shadowOpacity:k,shadowRadius:A,cameraOrbitSensitivity:j,minAzimuthalAngleRotation:I,maxAzimuthalAngleRotation:O,minPolarAngleRotation:C,maxPolarAngleRotation:N,maxDragX:D,minDragX:E,maxDragY:z,minDragY:P,maxDragZ:T,minDragZ:R,activeFog:L,fogColor:Y,fogNear:_,fogFar:Z,cameraNear:U,cameraFar:B,experience:$,setExperience:F,hasBloom:W,bloomIntensity:G,bloomRadius:Q,bloomThreshold:X,initialAnimation:H}=l();return(0,t.useEffect)((()=>{r.current&&!$&&o.current&&i.current&&s.current&&Promise.all([a.e(167),a.e(628)]).then(a.bind(a,497)).then((({default:e})=>{const t=new e({canvas:r.current,glbSrc:c,exposure:u,hdri:f,noZoom:d,minZoom:p,maxZoom:h,initialZoom:m,sceneBackground:v,activeShadow:b,activeBakedShadow:w,shadowOffsetX:S,shadowOffsetY:M,shadowOffsetZ:x,shadowOpacity:k,shadowRadius:A,cameraOrbitSensitivity:j,minAzimuthalAngleRotation:I,maxAzimuthalAngleRotation:O,minPolarAngleRotation:C,maxPolarAngleRotation:N,maxDragX:D,minDragX:E,maxDragY:z,minDragY:P,maxDragZ:T,minDragZ:R,activeFog:L,fogColor:Y,fogNear:_,fogFar:Z,cameraNear:U,cameraFar:B,bloomIntensity:G,bloomRadius:Q,bloomThreshold:X,initialAnimation:H,loadingDiv:o.current,instructionsImg:i.current,bloomButton:s.current});F(t)}))}),[r,$,o,i,s]),null==$||$.updateBloom(W),(0,t.useEffect)((()=>{$&&$.updateGlb(c)}),[c]),(0,t.useEffect)((()=>{$&&$.updateBloom(W)}),[W]),(0,e.jsxs)(Ge,Object.assign({background:g,backgroundImage:y},{children:[(0,e.jsxs)(We,{children:[(0,e.jsx)($e,{ref:o},void 0),(0,e.jsx)(Ze,{ref:s},void 0)]},void 0),(0,e.jsx)("canvas",{ref:r},void 0),(0,e.jsx)("img",{ref:i,className:"instructions",src:n,alt:n,style:{height:"30px",width:"30px"}},void 0)]}),void 0)},Xe=Ye.div`
|
|
99
99
|
position: relative;
|
|
100
100
|
width: 100% !important;
|
|
101
101
|
height: 100% !important;
|
|
102
|
-
`,He=r().forwardRef(((r,n)=>{const{glbSrc:o,exposure:i=.55,hdri:a="neutral",noZoom:s=!1,minZoom:c=null,maxZoom:l=null,initialZoom:f=null,backgroundColor:d="",backgroundImage:p="",sceneBackground:h=!1,activeShadow:m=!0,activeBakedShadow:g=!1,shadowOffsetX:y=0,shadowOffsetY:v=10,shadowOffsetZ:b=0,shadowOpacity:w=.1,shadowRadius:M=1,cameraOrbitSensitivity:S=2,minAzimuthalAngleRotation:x=-60,maxAzimuthalAngleRotation:k=60,minPolarAngleRotation:A=null,maxPolarAngleRotation:j=null,maxDragX:I=null,minDragX:O=null,maxDragY:C=null,minDragY:N=null,maxDragZ:D=null,minDragZ:E=null,activeFog:z=!1,fogColor:P="",fogNear:T=null,fogFar:R=null,cameraNear:L=null,cameraFar:Y=null,bloom:_=!1,initialBloom:Z=!1,enableBloomButton:U=!0,bloomIntensity:B=3,bloomRadius:$=0,bloomThreshold:F=.21,initialAnimation:W=!0,children:G,componentDidMount:Q=(()=>{}),onClick:X=(()=>{}),onSessionTimeCollect:H=(()=>{})}=r,[V,J]=(0,t.useState)();return(0,t.useEffect)((()=>{Q()}),[]),(0,e.jsx)(Xe,Object.assign({onClick:X,onMouseEnter:()=>{J(new Date)},onMouseLeave:()=>{if(V){const e=(new Date).getTime()-V.getTime();H(e)}}},{children:(0,e.jsxs)(u,Object.assign({ref:n,glbSrc:o,exposure:i,hdri:a,noZoom:s,minZoom:c,maxZoom:l,initialZoom:f,backgroundColor:d,backgroundImage:p,sceneBackground:h,activeShadow:m,activeBakedShadow:g,shadowOffsetX:y,shadowOffsetY:v,shadowOffsetZ:b,shadowOpacity:w,shadowRadius:M,cameraOrbitSensitivity:S,minAzimuthalAngleRotation:x,maxAzimuthalAngleRotation:k,minPolarAngleRotation:A,maxPolarAngleRotation:j,maxDragX:I,minDragX:O,maxDragY:C,minDragY:N,maxDragZ:D,minDragZ:E,activeFog:z,fogColor:P,fogNear:T,fogFar:R,cameraNear:L,cameraFar:Y,bloom:_,initialBloom:Z,enableBloomButton:U,bloomIntensity:B,bloomRadius:$,bloomThreshold:F,initialAnimation:W},{children:[G,(0,e.jsx)(Qe,{},void 0)]}),void 0)}),void 0)}))})(),s})(),e.exports=n(r(7294))},8679:function(e,t,r){"use strict";var n=r(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||n&&n[y]||m&&m[y]||s&&s[y])){var v=d(r,y);try{u(t,y,v)}catch(e){}}}}return t}},2587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var l,f,d,p,h=e[u].replace(a,"%20"),m=h.indexOf(n);m>=0?(l=h.substr(0,m),f=h.substr(m+1)):(l=h,f=""),d=decodeURIComponent(l),p=decodeURIComponent(f),t(i,d)?Array.isArray(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i}},2361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,o){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+n;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(r):i+encodeURIComponent(t(e[o]))})).filter(Boolean).join(r):o?encodeURIComponent(t(o))+n+encodeURIComponent(t(e)):""}},7673:function(e,t,r){"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},6339:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(7294),o=r(8718);function i(e){var t=e.i18n,r=e.defaultNS,i=e.children,a=(0,n.useMemo)((function(){return{i18n:t,defaultNS:r}}),[t,r]);return(0,n.createElement)(o.OO.Provider,{value:a},i)}},8718:function(e,t,r){"use strict";r.d(t,{OO:function(){return f},j_:function(){return d},JP:function(){return p},zv:function(){return h},I6:function(){return m},nI:function(){return g},Db:function(){return y},qi:function(){return v},kK:function(){return b}});var n=r(5671),o=r(3144),i=r(4942),a=r(7294);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u,l={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},f=a.createContext();function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l=c(c({},l),e)}function p(){return l}var h=function(){function e(){(0,n.Z)(this,e),this.usedNamespaces={}}return(0,o.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function m(e){u=e}function g(){return u}var y={type:"3rdParty",init:function(e){d(e.options.react),m(e)}};function v(e){return function(t){return new Promise((function(r){var n=b();e.getInitialProps?e.getInitialProps(t).then((function(e){r(c(c({},e),n))})):r(n)}))}}function b(){var e=g(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],r={},n={};return e.languages.forEach((function(r){n[r]={},t.forEach((function(t){n[r][t]=e.getResourceBundle(r,t)||{}}))})),r.initialI18nStore=n,r.initialLanguage=e.language,r}},1752:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.r(t),r.d(t,{I18nContext:function(){return y.OO},I18nextProvider:function(){return L.a},Trans:function(){return O},Translation:function(){return R},composeInitialProps:function(){return y.qi},date:function(){return B},getDefaults:function(){return y.JP},getI18n:function(){return y.nI},getInitialProps:function(){return y.kK},initReactI18next:function(){return y.Db},number:function(){return F},plural:function(){return G},select:function(){return W},selectOrdinal:function(){return Q},setDefaults:function(){return y.j_},setI18n:function(){return y.I6},time:function(){return $},useSSR:function(){return Y},useTranslation:function(){return C.$},withSSR:function(){return U},withTranslation:function(){return P}});var o=r(1002),i=r(4942),a=r(7294),s=r(1739),c=r.n(s),u=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(c()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var o=new RegExp(u),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,p=Object.create(null);function h(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var r in e)t.push(r+'="'+e[r]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(h,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var m={parse:function(e,t){t||(t={}),t.components||(t.components=p);var r,n=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(f,(function(s,c){if(a){if(s!=="</"+r.name+">")return;a=!1}var u,f="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),h=c+s.length,m=e.charAt(h);if(p){var g=l(s);return i<0?(n.push(g),n):((u=o[i]).children.push(g),n)}if(f&&(i++,"tag"===(r=l(s)).type&&t.components[r.name]&&(r.type="component",a=!0),r.voidElement||a||!m||"<"===m||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&n.push(r),(u=o[i-1])&&u.children.push(r),o[i]=r),(!f||r.voidElement)&&(i>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(i--,r=-1===i?n:o[i]),!a&&"<"!==m&&m)){u=-1===i?n:o[i].children;var y=e.indexOf("<",h),v=e.slice(h,-1===y?void 0:y);d.test(v)&&(v=" "),(y>-1&&i+u.length>=0||" "!==v)&&u.push({type:"text",content:v})}})),n},stringify:function(e){return e.reduce((function(e,t){return e+h("",t)}),"")}},g=m,y=r(8718),v=r(8236),b=["format"],w=["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t"];function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function k(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function A(e){return Array.isArray(e)?e:[e]}function j(e,t){if(!e)return"";var r="",i=A(e),s=t.transKeepBasicHtmlNodesFor||[];return i.forEach((function(e,i){if("string"==typeof e)r+="".concat(e);else if(a.isValidElement(e)){var c=Object.keys(e.props).length,u=s.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===c)r+="<".concat(e.type,"/>");else if(l||u&&0===c)if(e.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(u&&1===c&&"string"==typeof l)r+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var f=j(l,t);r+="<".concat(i,">").concat(f,"</").concat(i,">")}else r+="<".concat(i,"></").concat(i,">")}else if(null===e)(0,v.ZK)("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,o.Z)(e)){var d=e.format,p=n(e,b),h=Object.keys(p);if(1===h.length){var m=d?"".concat(h[0],", ").concat(d):h[0];r+="{{".concat(m,"}}")}else(0,v.ZK)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else(0,v.ZK)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),r}function I(e,t,r,n,i){if(""===t)return[];var s=n.transKeepBasicHtmlNodesFor||[],c=t&&new RegExp(s.join("|")).test(t);if(!e&&!c)return[t];var u={};!function e(t){A(t).forEach((function(t){"string"!=typeof t&&(x(t)?e(k(t)):"object"!==(0,o.Z)(t)||a.isValidElement(t)||Object.assign(u,t))}))}(e);var l=g.parse("<0>".concat(t,"</0>")),f=S(S({},u),i);function d(e,t,r){var n=k(e),o=h(n,t.children,r);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return a.isValidElement(e)}))}(n)&&0===o.length?n:o}function p(e,t,r,n,o){e.dummy&&(e.children=t),r.push(a.cloneElement(e,S(S({},e.props),{},{key:n}),o?void 0:t))}function h(t,i,u){var l=A(t);return A(i).reduce((function(t,i,m){var g,y,v,b=i.children&&i.children[0]&&i.children[0].content&&r.services.interpolator.interpolate(i.children[0].content,f,r.language);if("tag"===i.type){var w=l[parseInt(i.name,10)];!w&&1===u.length&&u[0][i.name]&&(w=u[0][i.name]),w||(w={});var M=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(v=S({},y=w)).props=Object.assign(g.props,y.props),v):w,k=a.isValidElement(M),A=k&&x(i,!0)&&!i.voidElement,j=c&&"object"===(0,o.Z)(M)&&M.dummy&&!k,I="object"===(0,o.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof M){var O=r.services.interpolator.interpolate(M,f,r.language);t.push(O)}else if(x(M)||A){p(M,d(M,i,u),t,m)}else if(j){var C=h(l,i.children,u);t.push(a.cloneElement(M,S(S({},M.props),{},{key:m}),C))}else if(Number.isNaN(parseFloat(i.name))){if(I)p(M,d(M,i,u),t,m,i.voidElement);else if(n.transSupportBasicHtmlNodes&&s.indexOf(i.name)>-1)if(i.voidElement)t.push(a.createElement(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var N=h(l,i.children,u);t.push(a.createElement(i.name,{key:"".concat(i.name,"-").concat(m)},N))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var D=h(l,i.children,u);t.push("<".concat(i.name,">").concat(D,"</").concat(i.name,">"))}}else if("object"!==(0,o.Z)(M)||k)1===i.children.length&&b?t.push(a.cloneElement(M,S(S({},M.props),{},{key:m}),b)):t.push(a.cloneElement(M,S(S({},M.props),{},{key:m})));else{var E=i.children[0]?b:null;E&&t.push(E)}}else if("text"===i.type){var z=n.transWrapTextNodes,P=r.services.interpolator.interpolate(i.content,f,r.language);z?t.push(a.createElement(z,{key:"".concat(i.name,"-").concat(m)},P)):t.push(P)}return t}),[])}return k(h([{dummy:!0,children:e||[]}],l,A(e||[]))[0])}function O(e){var t=e.children,r=e.count,o=e.parent,i=e.i18nKey,s=e.tOptions,c=void 0===s?{}:s,u=e.values,l=e.defaults,f=e.components,d=e.ns,p=e.i18n,h=e.t,m=n(e,w),g=(0,a.useContext)(y.OO)||{},b=g.i18n,M=g.defaultNS,x=p||b||(0,y.nI)();if(!x)return(0,v.O4)("You will need to pass in an i18next instance by using i18nextReactModule"),t;var k=h||x.t.bind(x)||function(e){return e},A=S(S({},(0,y.JP)()),x.options&&x.options.react),O=d||k.ns||M||x.options&&x.options.defaultNS;O="string"==typeof O?[O]:O||["translation"];var C=l||j(t,A)||A.transEmptyNodeValue||i,N=A.hashTransKey,D=i||(N?N(C):C),E=u?c.interpolation:{interpolation:S(S({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},z=S(S(S(S({},c),{},{count:r},u),E),{},{defaultValue:C,ns:O}),P=I(f||t,D?k(D,z):C,x,A,z),T=void 0!==o?o:A.defaultTransParent;return T?a.createElement(T,m,P):P}var C=r(6793),N=r(8152),D=["forwardedRef"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){function o(o){var i=o.forwardedRef,s=n(o,D),c=(0,C.$)(e,s),u=(0,N.Z)(c,3),l=u[0],f=u[1],d=u[2],p=z(z({},s),{},{t:l,i18n:f,tReady:d});return t.withRef&&i?p.ref=i:!t.withRef&&i&&(p.forwardedRef=i),a.createElement(r,p)}o.displayName="withI18nextTranslation(".concat((0,v.Gf)(r),")"),o.WrappedComponent=r;return t.withRef?a.forwardRef((function(e,t){return a.createElement(o,Object.assign({},e,{forwardedRef:t}))})):o}}var T=["ns","children"];function R(e){var t=e.ns,r=e.children,o=n(e,T),i=(0,C.$)(t,o),a=(0,N.Z)(i,3),s=a[0],c=a[1],u=a[2];return r(s,{i18n:c,lng:c.language},u)}var L=r(6339);function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.i18n,o=(0,a.useContext)(y.OO)||{},i=o.i18n,s=n||i||(0,y.nI)();s.options&&s.options.isClone||(e&&!s.initializedStoreOnce&&(s.services.resourceStore.data=e,s.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),s.options.ns),s.initializedStoreOnce=!0,s.isInitialized=!0),t&&!s.initializedLanguageOnce&&(s.changeLanguage(t),s.initializedLanguageOnce=!0))}var _=["initialI18nStore","initialLanguage"];function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(){return function(e){function t(t){var r=t.initialI18nStore,o=t.initialLanguage,s=n(t,_);return Y(r,o),a.createElement(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},s))}return t.getInitialProps=(0,y.qi)(e),t.displayName="withI18nextSSR(".concat((0,v.Gf)(e),")"),t.WrappedComponent=e,t}}var B=function(){return""},$=function(){return""},F=function(){return""},W=function(){return""},G=function(){return""},Q=function(){return""}},6793:function(e,t,r){"use strict";r.d(t,{$:function(){return l}});var n=r(8152),o=r(4942),i=r(7294),a=r(8718),s=r(8236);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,o=(0,i.useContext)(a.OO)||{},c=o.i18n,l=o.defaultNS,f=r||c||(0,a.nI)();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new a.zv),!f){(0,s.O4)("You will need to pass in an i18next instance by using initReactI18next");var d=function(e){return Array.isArray(e)?e[e.length-1]:e},p=[d,{},!1];return p.t=d,p.i18n={},p.ready=!1,p}f.options.react&&void 0!==f.options.react.wait&&(0,s.O4)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var h=u(u(u({},(0,a.JP)()),f.options.react),t),m=h.useSuspense,g=h.keyPrefix,y=e||l||f.options&&f.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(y);var v=(f.isInitialized||f.initializedStoreOnce)&&y.every((function(e){return(0,s.F0)(e,f,h)}));function b(){return f.getFixedT(null,"fallback"===h.nsMode?y:y[0],g)}var w=(0,i.useState)(b),M=(0,n.Z)(w,2),S=M[0],x=M[1],k=(0,i.useRef)(!0);(0,i.useEffect)((function(){var e=h.bindI18n,t=h.bindI18nStore;function r(){k.current&&x(b)}return k.current=!0,v||m||(0,s.DC)(f,y,(function(){k.current&&x(b)})),e&&f&&f.on(e,r),t&&f&&f.store.on(t,r),function(){k.current=!1,e&&f&&e.split(" ").forEach((function(e){return f.off(e,r)})),t&&f&&t.split(" ").forEach((function(e){return f.store.off(e,r)}))}}),[f,y.join()]);var A=(0,i.useRef)(!0);(0,i.useEffect)((function(){k.current&&!A.current&&x(b),A.current=!1}),[f]);var j=[S,f,v];if(j.t=S,j.i18n=f,j.ready=v,v)return j;if(!v&&!m)return j;throw new Promise((function(e){(0,s.DC)(f,y,(function(){e()}))}))}},8236:function(e,t,r){"use strict";function n(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}r.d(t,{ZK:function(){return n},O4:function(){return i},DC:function(){return a},F0:function(){return s},Gf:function(){return c}});var o={};function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),n.apply(void 0,t))}function a(e,t,r){e.loadNamespaces(t,(function(){if(e.isInitialized)r();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}}))}function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return i("i18n.languages were undefined or empty",t.languages),!0;var n=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var s=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(n,e)||(!t.services.backendConnector.backend||!(!s(n,e)||o&&!s(a,e))))}function c(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},9921:function(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}function S(e){return M(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||M(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return M(e)===u},t.isContextProvider=function(e){return M(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return M(e)===d},t.isFragment=function(e){return M(e)===i},t.isLazy=function(e){return M(e)===g},t.isMemo=function(e){return M(e)===m},t.isPortal=function(e){return M(e)===o},t.isProfiler=function(e){return M(e)===s},t.isStrictMode=function(e){return M(e)===a},t.isSuspense=function(e){return M(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=M},9864:function(e,t,r){"use strict";e.exports=r(9921)},6774:function(e){e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},9163:function(e,t,r){"use strict";r.r(t),r.d(t,{ServerStyleSheet:function(){return Ue},StyleSheetConsumer:function(){return ie},StyleSheetContext:function(){return oe},StyleSheetManager:function(){return fe},ThemeConsumer:function(){return ze},ThemeContext:function(){return Ee},ThemeProvider:function(){return Pe},__PRIVATE__:function(){return Fe},createGlobalStyle:function(){return _e},css:function(){return Me},default:function(){return We},isStyledComponent:function(){return M},keyframes:function(){return Ze},useTheme:function(){return $e},version:function(){return x},withTheme:function(){return Be}});var n=r(9864),o=r(7294),i=r(6774),a=r.n(i);var s=function(e){function t(e,n,c,u,d){for(var p,h,m,g,w,S=0,x=0,k=0,A=0,j=0,E=0,P=m=p=0,R=0,L=0,Y=0,_=0,Z=c.length,U=Z-1,B="",$="",F="",W="";R<Z;){if(h=c.charCodeAt(R),R===U&&0!==x+A+k+S&&(0!==x&&(h=47===x?10:47),A=k=S=0,Z++,U++),0===x+A+k+S){if(R===U&&(0<L&&(B=B.replace(f,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=c.charAt(R)}h=59}switch(h){case 123:for(p=(B=B.trim()).charCodeAt(0),m=1,_=++R;R<Z;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(P=R+1;P<U;++P)switch(c.charCodeAt(P)){case 47:if(42===h&&42===c.charCodeAt(P-1)&&R+2!==P){R=P+1;break e}break;case 10:if(47===h){R=P+1;break e}}R=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<U&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=c.substring(_,R),0===p&&(p=(B=B.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(B=B.replace(f,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=D}if(_=(m=t(n,L,m,h,d+1)).length,0<z&&(w=s(3,m,L=r(D,B,Y),n,O,I,_,h,d,u),B=L.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:B=B.replace(M,a);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(y,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,B,Y),m,u,d+1);F+=m,m=Y=L=P=p=0,B="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(_=(B=(0<L?B.replace(f,""):B).trim()).length))switch(0===P&&(p=B.charCodeAt(0),45===p||96<p&&123>p)&&(_=(B=B.replace(" ",":")).length),0<z&&void 0!==(w=s(1,B,n,e,O,I,$.length,u,d,u))&&0===(_=(B=w.trim()).length)&&(B="\0\0"),p=B.charCodeAt(0),h=B.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){W+=B+c.charAt(R);break}default:58!==B.charCodeAt(_-1)&&($+=o(B,p,h,B.charCodeAt(2)))}Y=L=P=p=0,B="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==u&&0<B.length&&(L=1,B+="\0"),0<z*T&&s(0,B,n,e,O,I,$.length,u,d,u),I=1,O++;break;case 59:case 125:if(0===x+A+k+S){I++;break}default:switch(I++,g=c.charAt(R),h){case 9:case 32:if(0===A+S+x)switch(j){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+x+S&&(L=Y=1,g="\f"+g);break;case 108:if(0===A+x+S+C&&0<P)switch(R-P){case 2:112===j&&58===c.charCodeAt(R-3)&&(C=j);case 8:111===E&&(C=E)}break;case 58:0===A+x+S&&(P=R);break;case 44:0===x+k+A+S&&(L=1,g+="\r");break;case 34:case 39:0===x&&(A=A===h?0:0===A?h:A);break;case 91:0===A+x+k&&S++;break;case 93:0===A+x+k&&S--;break;case 41:0===A+x+S&&k--;break;case 40:if(0===A+x+S){if(0===p)if(2*j+3*E==533);else p=1;k++}break;case 64:0===x+k+A+S+P+m&&(m=1);break;case 42:case 47:if(!(0<A+S+k))switch(x){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:x=47;break;case 220:_=R,x=42}break;case 42:47===h&&42===j&&_+2!==R&&(33===c.charCodeAt(_+2)&&($+=c.substring(_,R+1)),g="",x=0)}}0===x&&(B+=g)}E=j,j=h,R++}if(0<(_=$.length)){if(L=n,0<z&&(void 0!==(w=s(2,$,L,e,O,I,_,u,d,u))&&0===($=w).length))return W+$+F;if($=L.join(",")+"{"+$+"}",0!=N*C){switch(2!==N||i($,2)||(C=0),C){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}C=0}}return W+$+F}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===N||2===N&&i(c,1)?"-webkit-"+c+c:c}if(0===N||2===N&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(j,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),P(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,d=0,p=t;d<z;++d)switch(f=E[d].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?N=1:(N=2,P=e):N=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<z){var o=s(-1,r,n,n,O,I,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(D,n,r,0,0);return 0<z&&(void 0!==(o=s(-2,i,n,n,O,I,i.length,0,0,0))&&(i=o)),"",C=0,I=O=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,M=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,I=1,O=1,C=0,N=1,D=[],E=[],z=0,P=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:z=E.length=0;break;default:if("function"==typeof t)E[z++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else T=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),f=r(8679),d=r.n(f),p=r(4155);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},y=Object.freeze([]),v=Object.freeze({});function b(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function M(e){return e&&"string"==typeof e.styledComponentId}var S=void 0!==p&&(p.env.REACT_APP_SC_ATTR||p.env.SC_ATTR)||"data-styled",x="5.3.1",k="undefined"!=typeof window&&"HTMLElement"in window,A=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==p&&void 0!==p.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==p.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==p.env.REACT_APP_SC_DISABLE_SPEEDY&&p.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==p&&void 0!==p.env.SC_DISABLE_SPEEDY&&""!==p.env.SC_DISABLE_SPEEDY&&("false"!==p.env.SC_DISABLE_SPEEDY&&p.env.SC_DISABLE_SPEEDY)),j={};function I(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var O=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&I(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),C=new Map,N=new Map,D=1,E=function(e){if(C.has(e))return C.get(e);for(;N.has(D);)D++;var t=D++;return C.set(e,t),N.set(t,e),t},z=function(e){return N.get(e)},P=function(e,t){t>=D&&(D=t+1),C.set(e,t),N.set(t,e)},T="style["+S+'][data-styled-version="5.3.1"]',R=new RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Y=function(e,t){for(var r=(t.innerHTML||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(R);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(P(u,c),L(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},_=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Z=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(S))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(S,"active"),n.setAttribute("data-styled-version","5.3.1");var a=_();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},U=function(){function e(e){var t=this.element=Z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}I(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=Z(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),F=k,W={isServer:!k,useCSSOMInjection:!A},G=function(){function e(e,t,r){void 0===e&&(e=v),void 0===t&&(t={}),this.options=h({},W,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&k&&F&&(F=!1,function(e){for(var t=document.querySelectorAll(T),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(S)&&(Y(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return E(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(h({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new $(o):n?new U(o):new B(o),new O(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(E(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(E(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(E(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=z(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=S+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Q=/(a)(d)/gi,X=function(e){return String.fromCharCode(e+(e>25?39:97))};function H(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=X(t%52)+r;return(X(t%52)+r).replace(Q,"$1-$2")}var V=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return V(5381,e)};function q(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(b(r)&&!M(r))return!1}return!0}var K=J("5.3.1"),ee=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&q(e),this.componentId=t,this.baseHash=V(K,t),this.baseStyle=r,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=be(this.rules,e,t,r).join(""),a=H(V(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=V(this.baseHash,r.hash),l="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)l+=d;else if(d){var p=be(d,e,t,r),h=Array.isArray(p)?p.join(""):p;u=V(u,h+f),l+=h}}if(l){var m=H(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),te=/^\s*\/\/.*$/gm,re=[":","[",".","#"];function ne(e){var t,r,n,o,i=void 0===e?v:e,a=i.options,c=void 0===a?v:a,u=i.plugins,l=void 0===u?y:u,f=new s(c),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,n,i){return 0===n&&-1!==re.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(te,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),f(a||!i?"":i,u)}return f.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=l.length?l.reduce((function(e,t){return t.name||I(15),V(e,t.name)}),5381).toString():"",m}var oe=o.createContext(),ie=oe.Consumer,ae=o.createContext(),se=(ae.Consumer,new G),ce=ne();function ue(){return(0,o.useContext)(oe)||se}function le(){return(0,o.useContext)(ae)||ce}function fe(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=ue(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,o.useEffect)((function(){a()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(oe.Provider,{value:s},o.createElement(ae.Provider,{value:c},e.children))}var de=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ce);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return I(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ce),this.name+e.hash},e}(),pe=/([A-Z])/,he=/([A-Z])/g,me=/^ms-/,ge=function(e){return"-"+e.toLowerCase()};function ye(e){return pe.test(e)?e.replace(he,ge).replace(me,"-ms-"):e}var ve=function(e){return null==e||!1===e||""===e};function be(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=be(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ve(e)?"":M(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:be(e(t),t,r,n):e instanceof de?r?(e.inject(r,n),e.getName(n)):e:g(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ve(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(ye(a)+":",t[a],";"):g(t[a])?i.push.apply(i,e(t[a],a)):i.push(ye(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in c?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var u}var we=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Me(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return b(e)||g(e)?we(be(m(y,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:we(be(m(e,r)))}new Set;var Se=function(e,t,r){return void 0===r&&(r=v),e.theme!==r.theme&&e.theme||t||r.theme},xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Ae(e){return e.replace(xe,"-").replace(ke,"")}var je=function(e){return H(J(e)>>>0)};function Ie(e){return"string"==typeof e&&!0}var Oe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ne(e,t,r){var n=e[r];Oe(t)&&Oe(n)?De(n,t):e[r]=t}function De(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Oe(a))for(var s in a)Ce(s)&&Ne(e,a[s],s)}return e}var Ee=o.createContext(),ze=Ee.Consumer;function Pe(e){var t=(0,o.useContext)(Ee),r=(0,o.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?I(8):t?h({},t,{},e):e:I(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(Ee.Provider,{value:r},e.children):null}var Te={};function Re(e,t,r){var n=M(e),i=!Ie(e),a=t.attrs,s=void 0===a?y:a,c=t.componentId,u=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Ae(e);Te[r]=(Te[r]||0)+1;var n=r+"-"+je("5.3.1"+r+Te[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,f=t.displayName,p=void 0===f?function(e){return Ie(e)?"styled."+e:"Styled("+w(e)+")"}(e):f,m=t.displayName&&t.componentId?Ae(t.displayName)+"-"+t.componentId:t.componentId||u,g=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,S=t.shouldForwardProp;n&&e.shouldForwardProp&&(S=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var x,k=new ee(r,m,n?e.componentStyle:void 0),A=k.isStatic&&0===s.length,j=function(e,t){return function(e,t,r,n){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,f=e.styledComponentId,d=e.target,p=function(e,t,r){void 0===e&&(e=v);var n=h({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in b(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(Se(t,(0,o.useContext)(Ee),s)||v,t,i),m=p[0],g=p[1],y=function(e,t,r,n){var o=ue(),i=le();return t?e.generateAndInjectStyles(v,o,i):e.generateAndInjectStyles(r,o,i)}(a,n,m),w=r,M=g.$as||t.$as||g.as||t.as||d,S=Ie(M),x=g!==t?h({},t,{},g):t,k={};for(var A in x)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?k.as=x[A]:(u?u(A,l,M):!S||l(A))&&(k[A]=x[A]));return t.style&&g.style!==t.style&&(k.style=h({},t.style,{},g.style)),k.className=Array.prototype.concat(c,f,y!==f?y:null,t.className,g.className).filter(Boolean).join(" "),k.ref=w,(0,o.createElement)(M,k)}(x,e,t,A)};return j.displayName=p,(x=o.forwardRef(j)).attrs=g,x.componentStyle=k,x.displayName=p,x.shouldForwardProp=S,x.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):y,x.styledComponentId=m,x.target=n?e.target:e,x.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Ie(e)?e:Ae(w(e)));return Re(e,h({},o,{attrs:g,componentId:i}),r)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?De({},e.defaultProps,t):t}}),x.toString=function(){return"."+x.styledComponentId},i&&d()(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var Le=function(e){return function e(t,r,o){if(void 0===o&&(o=v),!(0,n.isValidElementType)(r))return I(1,String(r));var i=function(){return t(r,o,Me.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,h({},o,{},n))},i.attrs=function(n){return e(t,r,h({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(Re,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Le[e]=Le(e)}));var Ye=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=q(e),G.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(be(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function _e(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Me.apply(void 0,[e].concat(r)),a="sc-global-"+je(JSON.stringify(i)),s=new Ye(i,a);function c(e){var t=ue(),r=le(),n=(0,o.useContext)(Ee),i=(0,o.useRef)(t.allocateGSInstance(a)).current;return t.server&&u(i,e,t,n,r),(0,o.useLayoutEffect)((function(){if(!t.server)return u(i,e,t,n,r),function(){return s.removeStyles(i,t)}}),[i,e,t,n,r]),null}function u(e,t,r,n,o){if(s.isStatic)s.renderStyles(e,j,r,o);else{var i=h({},t,{theme:Se(t,n,c.defaultProps)});s.renderStyles(e,i,r,o)}}return o.memo(c)}function Ze(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Me.apply(void 0,[e].concat(r)).join(""),i=je(o);return new de(i,o)}var Ue=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=_();return"<style "+[r&&'nonce="'+r+'"',S+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?I(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return I(2);var r=((t={})[S]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=_();return n&&(r.nonce=n),[o.createElement("style",h({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?I(2):o.createElement(fe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return I(3)},e}(),Be=function(e){var t=o.forwardRef((function(t,r){var n=(0,o.useContext)(Ee),i=e.defaultProps,a=Se(t,n,i);return o.createElement(e,h({},t,{theme:a,ref:r}))}));return d()(t,e),t.displayName="WithTheme("+w(e)+")",t},$e=function(){return(0,o.useContext)(Ee)},Fe={StyleSheet:G,masterSheet:se},We=Le},1739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},8152:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(t,{Z:function(){return o}})}}]);
|
|
102
|
+
`,He=r().forwardRef(((r,n)=>{const{glbSrc:o,exposure:i=.55,hdri:a="neutral",noZoom:s=!1,minZoom:c=null,maxZoom:l=null,initialZoom:f=null,backgroundColor:d="",backgroundImage:p="",sceneBackground:h=!1,activeShadow:m=!0,activeBakedShadow:g=!1,shadowOffsetX:y=0,shadowOffsetY:v=10,shadowOffsetZ:b=0,shadowOpacity:w=.1,shadowRadius:S=1,cameraOrbitSensitivity:M=2,minAzimuthalAngleRotation:x=-60,maxAzimuthalAngleRotation:k=60,minPolarAngleRotation:A=null,maxPolarAngleRotation:j=null,maxDragX:I=null,minDragX:O=null,maxDragY:C=null,minDragY:N=null,maxDragZ:D=null,minDragZ:E=null,activeFog:z=!1,fogColor:P="",fogNear:T=null,fogFar:R=null,cameraNear:L=null,cameraFar:Y=null,bloom:_=!1,initialBloom:Z=!1,enableBloomButton:U=!0,bloomIntensity:B=3,bloomRadius:$=0,bloomThreshold:F=.21,initialAnimation:W=!0,children:G,componentDidMount:Q=(()=>{}),onClick:X=(()=>{}),onSessionTimeCollect:H=(()=>{})}=r,[V,J]=(0,t.useState)();return(0,t.useEffect)((()=>{Q()}),[]),(0,e.jsx)(Xe,Object.assign({onClick:X,onMouseEnter:()=>{J(new Date)},onMouseLeave:()=>{if(V){const e=(new Date).getTime()-V.getTime();H(e)}}},{children:(0,e.jsxs)(u,Object.assign({ref:n,glbSrc:o,exposure:i,hdri:a,noZoom:s,minZoom:c,maxZoom:l,initialZoom:f,backgroundColor:d,backgroundImage:p,sceneBackground:h,activeShadow:m,activeBakedShadow:g,shadowOffsetX:y,shadowOffsetY:v,shadowOffsetZ:b,shadowOpacity:w,shadowRadius:S,cameraOrbitSensitivity:M,minAzimuthalAngleRotation:x,maxAzimuthalAngleRotation:k,minPolarAngleRotation:A,maxPolarAngleRotation:j,maxDragX:I,minDragX:O,maxDragY:C,minDragY:N,maxDragZ:D,minDragZ:E,activeFog:z,fogColor:P,fogNear:T,fogFar:R,cameraNear:L,cameraFar:Y,bloom:_,initialBloom:Z,enableBloomButton:U,bloomIntensity:B,bloomRadius:$,bloomThreshold:F,initialAnimation:W},{children:[G,(0,e.jsx)(Qe,{},void 0)]}),void 0)}),void 0)}))})(),s})(),e.exports=n(r(7294))},8679:function(e,t,r){"use strict";var n=r(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var s=c(t),m=c(r),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||n&&n[y]||m&&m[y]||s&&s[y])){var v=d(r,y);try{u(t,y,v)}catch(e){}}}}return t}},2587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var l,f,d,p,h=e[u].replace(a,"%20"),m=h.indexOf(n);m>=0?(l=h.substr(0,m),f=h.substr(m+1)):(l=h,f=""),d=decodeURIComponent(l),p=decodeURIComponent(f),t(i,d)?Array.isArray(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i}},2361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,o){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+n;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(r):i+encodeURIComponent(t(e[o]))})).filter(Boolean).join(r):o?encodeURIComponent(t(o))+n+encodeURIComponent(t(e)):""}},7673:function(e,t,r){"use strict";t.decode=t.parse=r(2587),t.encode=t.stringify=r(2361)},6339:function(e,t,r){"use strict";r.d(t,{a:function(){return i}});var n=r(7294),o=r(8718);function i(e){var t=e.i18n,r=e.defaultNS,i=e.children,a=(0,n.useMemo)((function(){return{i18n:t,defaultNS:r}}),[t,r]);return(0,n.createElement)(o.OO.Provider,{value:a},i)}},8718:function(e,t,r){"use strict";r.d(t,{OO:function(){return f},j_:function(){return d},JP:function(){return p},zv:function(){return h},I6:function(){return m},nI:function(){return g},Db:function(){return y},qi:function(){return v},kK:function(){return b}});var n=r(5671),o=r(3144),i=r(4942),a=r(7294);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u,l={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},f=a.createContext();function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l=c(c({},l),e)}function p(){return l}var h=function(){function e(){(0,n.Z)(this,e),this.usedNamespaces={}}return(0,o.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function m(e){u=e}function g(){return u}var y={type:"3rdParty",init:function(e){d(e.options.react),m(e)}};function v(e){return function(t){return new Promise((function(r){var n=b();e.getInitialProps?e.getInitialProps(t).then((function(e){r(c(c({},e),n))})):r(n)}))}}function b(){var e=g(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],r={},n={};return e.languages.forEach((function(r){n[r]={},t.forEach((function(t){n[r][t]=e.getResourceBundle(r,t)||{}}))})),r.initialI18nStore=n,r.initialLanguage=e.language,r}},1752:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.r(t),r.d(t,{I18nContext:function(){return y.OO},I18nextProvider:function(){return L.a},Trans:function(){return O},Translation:function(){return R},composeInitialProps:function(){return y.qi},date:function(){return B},getDefaults:function(){return y.JP},getI18n:function(){return y.nI},getInitialProps:function(){return y.kK},initReactI18next:function(){return y.Db},number:function(){return F},plural:function(){return G},select:function(){return W},selectOrdinal:function(){return Q},setDefaults:function(){return y.j_},setI18n:function(){return y.I6},time:function(){return $},useSSR:function(){return Y},useTranslation:function(){return C.$},withSSR:function(){return U},withTranslation:function(){return P}});var o=r(1002),i=r(4942),a=r(7294),s=r(1739),c=r.n(s),u=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(c()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var o=new RegExp(u),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,p=Object.create(null);function h(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var r in e)t.push(r+'="'+e[r]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(h,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var m={parse:function(e,t){t||(t={}),t.components||(t.components=p);var r,n=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(f,(function(s,c){if(a){if(s!=="</"+r.name+">")return;a=!1}var u,f="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),h=c+s.length,m=e.charAt(h);if(p){var g=l(s);return i<0?(n.push(g),n):((u=o[i]).children.push(g),n)}if(f&&(i++,"tag"===(r=l(s)).type&&t.components[r.name]&&(r.type="component",a=!0),r.voidElement||a||!m||"<"===m||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===i&&n.push(r),(u=o[i-1])&&u.children.push(r),o[i]=r),(!f||r.voidElement)&&(i>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(i--,r=-1===i?n:o[i]),!a&&"<"!==m&&m)){u=-1===i?n:o[i].children;var y=e.indexOf("<",h),v=e.slice(h,-1===y?void 0:y);d.test(v)&&(v=" "),(y>-1&&i+u.length>=0||" "!==v)&&u.push({type:"text",content:v})}})),n},stringify:function(e){return e.reduce((function(e,t){return e+h("",t)}),"")}},g=m,y=r(8718),v=r(8236),b=["format"],w=["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t"];function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function k(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function A(e){return Array.isArray(e)?e:[e]}function j(e,t){if(!e)return"";var r="",i=A(e),s=t.transKeepBasicHtmlNodesFor||[];return i.forEach((function(e,i){if("string"==typeof e)r+="".concat(e);else if(a.isValidElement(e)){var c=Object.keys(e.props).length,u=s.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===c)r+="<".concat(e.type,"/>");else if(l||u&&0===c)if(e.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(u&&1===c&&"string"==typeof l)r+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var f=j(l,t);r+="<".concat(i,">").concat(f,"</").concat(i,">")}else r+="<".concat(i,"></").concat(i,">")}else if(null===e)(0,v.ZK)("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,o.Z)(e)){var d=e.format,p=n(e,b),h=Object.keys(p);if(1===h.length){var m=d?"".concat(h[0],", ").concat(d):h[0];r+="{{".concat(m,"}}")}else(0,v.ZK)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else(0,v.ZK)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),r}function I(e,t,r,n,i){if(""===t)return[];var s=n.transKeepBasicHtmlNodesFor||[],c=t&&new RegExp(s.join("|")).test(t);if(!e&&!c)return[t];var u={};!function e(t){A(t).forEach((function(t){"string"!=typeof t&&(x(t)?e(k(t)):"object"!==(0,o.Z)(t)||a.isValidElement(t)||Object.assign(u,t))}))}(e);var l=g.parse("<0>".concat(t,"</0>")),f=M(M({},u),i);function d(e,t,r){var n=k(e),o=h(n,t.children,r);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return a.isValidElement(e)}))}(n)&&0===o.length?n:o}function p(e,t,r,n,o){e.dummy&&(e.children=t),r.push(a.cloneElement(e,M(M({},e.props),{},{key:n}),o?void 0:t))}function h(t,i,u){var l=A(t);return A(i).reduce((function(t,i,m){var g,y,v,b=i.children&&i.children[0]&&i.children[0].content&&r.services.interpolator.interpolate(i.children[0].content,f,r.language);if("tag"===i.type){var w=l[parseInt(i.name,10)];!w&&1===u.length&&u[0][i.name]&&(w=u[0][i.name]),w||(w={});var S=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(v=M({},y=w)).props=Object.assign(g.props,y.props),v):w,k=a.isValidElement(S),A=k&&x(i,!0)&&!i.voidElement,j=c&&"object"===(0,o.Z)(S)&&S.dummy&&!k,I="object"===(0,o.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof S){var O=r.services.interpolator.interpolate(S,f,r.language);t.push(O)}else if(x(S)||A){p(S,d(S,i,u),t,m)}else if(j){var C=h(l,i.children,u);t.push(a.cloneElement(S,M(M({},S.props),{},{key:m}),C))}else if(Number.isNaN(parseFloat(i.name))){if(I)p(S,d(S,i,u),t,m,i.voidElement);else if(n.transSupportBasicHtmlNodes&&s.indexOf(i.name)>-1)if(i.voidElement)t.push(a.createElement(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var N=h(l,i.children,u);t.push(a.createElement(i.name,{key:"".concat(i.name,"-").concat(m)},N))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var D=h(l,i.children,u);t.push("<".concat(i.name,">").concat(D,"</").concat(i.name,">"))}}else if("object"!==(0,o.Z)(S)||k)1===i.children.length&&b?t.push(a.cloneElement(S,M(M({},S.props),{},{key:m}),b)):t.push(a.cloneElement(S,M(M({},S.props),{},{key:m})));else{var E=i.children[0]?b:null;E&&t.push(E)}}else if("text"===i.type){var z=n.transWrapTextNodes,P=r.services.interpolator.interpolate(i.content,f,r.language);z?t.push(a.createElement(z,{key:"".concat(i.name,"-").concat(m)},P)):t.push(P)}return t}),[])}return k(h([{dummy:!0,children:e||[]}],l,A(e||[]))[0])}function O(e){var t=e.children,r=e.count,o=e.parent,i=e.i18nKey,s=e.tOptions,c=void 0===s?{}:s,u=e.values,l=e.defaults,f=e.components,d=e.ns,p=e.i18n,h=e.t,m=n(e,w),g=(0,a.useContext)(y.OO)||{},b=g.i18n,S=g.defaultNS,x=p||b||(0,y.nI)();if(!x)return(0,v.O4)("You will need to pass in an i18next instance by using i18nextReactModule"),t;var k=h||x.t.bind(x)||function(e){return e},A=M(M({},(0,y.JP)()),x.options&&x.options.react),O=d||k.ns||S||x.options&&x.options.defaultNS;O="string"==typeof O?[O]:O||["translation"];var C=l||j(t,A)||A.transEmptyNodeValue||i,N=A.hashTransKey,D=i||(N?N(C):C),E=u?c.interpolation:{interpolation:M(M({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},z=M(M(M(M({},c),{},{count:r},u),E),{},{defaultValue:C,ns:O}),P=I(f||t,D?k(D,z):C,x,A,z),T=void 0!==o?o:A.defaultTransParent;return T?a.createElement(T,m,P):P}var C=r(6793),N=r(8152),D=["forwardedRef"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){function o(o){var i=o.forwardedRef,s=n(o,D),c=(0,C.$)(e,s),u=(0,N.Z)(c,3),l=u[0],f=u[1],d=u[2],p=z(z({},s),{},{t:l,i18n:f,tReady:d});return t.withRef&&i?p.ref=i:!t.withRef&&i&&(p.forwardedRef=i),a.createElement(r,p)}o.displayName="withI18nextTranslation(".concat((0,v.Gf)(r),")"),o.WrappedComponent=r;return t.withRef?a.forwardRef((function(e,t){return a.createElement(o,Object.assign({},e,{forwardedRef:t}))})):o}}var T=["ns","children"];function R(e){var t=e.ns,r=e.children,o=n(e,T),i=(0,C.$)(t,o),a=(0,N.Z)(i,3),s=a[0],c=a[1],u=a[2];return r(s,{i18n:c,lng:c.language},u)}var L=r(6339);function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.i18n,o=(0,a.useContext)(y.OO)||{},i=o.i18n,s=n||i||(0,y.nI)();s.options&&s.options.isClone||(e&&!s.initializedStoreOnce&&(s.services.resourceStore.data=e,s.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),s.options.ns),s.initializedStoreOnce=!0,s.isInitialized=!0),t&&!s.initializedLanguageOnce&&(s.changeLanguage(t),s.initializedLanguageOnce=!0))}var _=["initialI18nStore","initialLanguage"];function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(){return function(e){function t(t){var r=t.initialI18nStore,o=t.initialLanguage,s=n(t,_);return Y(r,o),a.createElement(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},s))}return t.getInitialProps=(0,y.qi)(e),t.displayName="withI18nextSSR(".concat((0,v.Gf)(e),")"),t.WrappedComponent=e,t}}var B=function(){return""},$=function(){return""},F=function(){return""},W=function(){return""},G=function(){return""},Q=function(){return""}},6793:function(e,t,r){"use strict";r.d(t,{$:function(){return l}});var n=r(8152),o=r(4942),i=r(7294),a=r(8718),s=r(8236);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,o=(0,i.useContext)(a.OO)||{},c=o.i18n,l=o.defaultNS,f=r||c||(0,a.nI)();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new a.zv),!f){(0,s.O4)("You will need to pass in an i18next instance by using initReactI18next");var d=function(e){return Array.isArray(e)?e[e.length-1]:e},p=[d,{},!1];return p.t=d,p.i18n={},p.ready=!1,p}f.options.react&&void 0!==f.options.react.wait&&(0,s.O4)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var h=u(u(u({},(0,a.JP)()),f.options.react),t),m=h.useSuspense,g=h.keyPrefix,y=e||l||f.options&&f.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(y);var v=(f.isInitialized||f.initializedStoreOnce)&&y.every((function(e){return(0,s.F0)(e,f,h)}));function b(){return f.getFixedT(null,"fallback"===h.nsMode?y:y[0],g)}var w=(0,i.useState)(b),S=(0,n.Z)(w,2),M=S[0],x=S[1],k=(0,i.useRef)(!0);(0,i.useEffect)((function(){var e=h.bindI18n,t=h.bindI18nStore;function r(){k.current&&x(b)}return k.current=!0,v||m||(0,s.DC)(f,y,(function(){k.current&&x(b)})),e&&f&&f.on(e,r),t&&f&&f.store.on(t,r),function(){k.current=!1,e&&f&&e.split(" ").forEach((function(e){return f.off(e,r)})),t&&f&&t.split(" ").forEach((function(e){return f.store.off(e,r)}))}}),[f,y.join()]);var A=(0,i.useRef)(!0);(0,i.useEffect)((function(){k.current&&!A.current&&x(b),A.current=!1}),[f]);var j=[M,f,v];if(j.t=M,j.i18n=f,j.ready=v,v)return j;if(!v&&!m)return j;throw new Promise((function(e){(0,s.DC)(f,y,(function(){e()}))}))}},8236:function(e,t,r){"use strict";function n(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}r.d(t,{ZK:function(){return n},O4:function(){return i},DC:function(){return a},F0:function(){return s},Gf:function(){return c}});var o={};function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&o[t[0]]||("string"==typeof t[0]&&(o[t[0]]=new Date),n.apply(void 0,t))}function a(e,t,r){e.loadNamespaces(t,(function(){if(e.isInitialized)r();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}}))}function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return i("i18n.languages were undefined or empty",t.languages),!0;var n=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var s=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(n,e)||(!t.services.backendConnector.backend||!(!s(n,e)||o&&!s(a,e))))}function c(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},9921:function(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}function M(e){return S(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return M(e)||S(e)===l},t.isConcurrentMode=M,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===d},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},9864:function(e,t,r){"use strict";e.exports=r(9921)},6774:function(e){e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},9163:function(e,t,r){"use strict";r.r(t),r.d(t,{ServerStyleSheet:function(){return Ue},StyleSheetConsumer:function(){return ie},StyleSheetContext:function(){return oe},StyleSheetManager:function(){return fe},ThemeConsumer:function(){return ze},ThemeContext:function(){return Ee},ThemeProvider:function(){return Pe},__PRIVATE__:function(){return Fe},createGlobalStyle:function(){return _e},css:function(){return Se},default:function(){return We},isStyledComponent:function(){return S},keyframes:function(){return Ze},useTheme:function(){return $e},version:function(){return x},withTheme:function(){return Be}});var n=r(9864),o=r(7294),i=r(6774),a=r.n(i);var s=function(e){function t(e,n,c,u,d){for(var p,h,m,g,w,M=0,x=0,k=0,A=0,j=0,E=0,P=m=p=0,R=0,L=0,Y=0,_=0,Z=c.length,U=Z-1,B="",$="",F="",W="";R<Z;){if(h=c.charCodeAt(R),R===U&&0!==x+A+k+M&&(0!==x&&(h=47===x?10:47),A=k=M=0,Z++,U++),0===x+A+k+M){if(R===U&&(0<L&&(B=B.replace(f,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=c.charAt(R)}h=59}switch(h){case 123:for(p=(B=B.trim()).charCodeAt(0),m=1,_=++R;R<Z;){switch(h=c.charCodeAt(R)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(R+1)){case 42:case 47:e:{for(P=R+1;P<U;++P)switch(c.charCodeAt(P)){case 47:if(42===h&&42===c.charCodeAt(P-1)&&R+2!==P){R=P+1;break e}break;case 10:if(47===h){R=P+1;break e}}R=P}}break;case 91:h++;case 40:h++;case 34:case 39:for(;R++<U&&c.charCodeAt(R)!==h;);}if(0===m)break;R++}if(m=c.substring(_,R),0===p&&(p=(B=B.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(B=B.replace(f,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=D}if(_=(m=t(n,L,m,h,d+1)).length,0<z&&(w=s(3,m,L=r(D,B,Y),n,O,I,_,h,d,u),B=L.join(""),void 0!==w&&0===(_=(m=w.trim()).length)&&(h=0,m="")),0<_)switch(h){case 115:B=B.replace(S,a);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(y,"$1 $2"))+"{"+m+"}",m=1===N||2===N&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,B,Y),m,u,d+1);F+=m,m=Y=L=P=p=0,B="",h=c.charCodeAt(++R);break;case 125:case 59:if(1<(_=(B=(0<L?B.replace(f,""):B).trim()).length))switch(0===P&&(p=B.charCodeAt(0),45===p||96<p&&123>p)&&(_=(B=B.replace(" ",":")).length),0<z&&void 0!==(w=s(1,B,n,e,O,I,$.length,u,d,u))&&0===(_=(B=w.trim()).length)&&(B="\0\0"),p=B.charCodeAt(0),h=B.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){W+=B+c.charAt(R);break}default:58!==B.charCodeAt(_-1)&&($+=o(B,p,h,B.charCodeAt(2)))}Y=L=P=p=0,B="",h=c.charCodeAt(++R)}}switch(h){case 13:case 10:47===x?x=0:0===1+p&&107!==u&&0<B.length&&(L=1,B+="\0"),0<z*T&&s(0,B,n,e,O,I,$.length,u,d,u),I=1,O++;break;case 59:case 125:if(0===x+A+k+M){I++;break}default:switch(I++,g=c.charAt(R),h){case 9:case 32:if(0===A+M+x)switch(j){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+x+M&&(L=Y=1,g="\f"+g);break;case 108:if(0===A+x+M+C&&0<P)switch(R-P){case 2:112===j&&58===c.charCodeAt(R-3)&&(C=j);case 8:111===E&&(C=E)}break;case 58:0===A+x+M&&(P=R);break;case 44:0===x+k+A+M&&(L=1,g+="\r");break;case 34:case 39:0===x&&(A=A===h?0:0===A?h:A);break;case 91:0===A+x+k&&M++;break;case 93:0===A+x+k&&M--;break;case 41:0===A+x+M&&k--;break;case 40:if(0===A+x+M){if(0===p)if(2*j+3*E==533);else p=1;k++}break;case 64:0===x+k+A+M+P+m&&(m=1);break;case 42:case 47:if(!(0<A+M+k))switch(x){case 0:switch(2*h+3*c.charCodeAt(R+1)){case 235:x=47;break;case 220:_=R,x=42}break;case 42:47===h&&42===j&&_+2!==R&&(33===c.charCodeAt(_+2)&&($+=c.substring(_,R+1)),g="",x=0)}}0===x&&(B+=g)}E=j,j=h,R++}if(0<(_=$.length)){if(L=n,0<z&&(void 0!==(w=s(2,$,L,e,O,I,_,u,d,u))&&0===($=w).length))return W+$+F;if($=L.join(",")+"{"+$+"}",0!=N*C){switch(2!==N||i($,2)||(C=0),C){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}C=0}}return W+$+F}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===N||2===N&&i(c,1)?"-webkit-"+c+c:c}if(0===N||2===N&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(j,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(w,"tb");break;case 232:c=a.replace(w,"tb-rl");break;case 220:c=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),P(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(M," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,d=0,p=t;d<z;++d)switch(f=E[d].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?N=1:(N=2,P=e):N=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<z){var o=s(-1,r,n,n,O,I,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(D,n,r,0,0);return 0<z&&(void 0!==(o=s(-2,i,n,n,O,I,i.length,0,0,0))&&(i=o)),"",C=0,I=O=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,M=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,I=1,O=1,C=0,N=1,D=[],E=[],z=0,P=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:z=E.length=0;break;default:if("function"==typeof t)E[z++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else T=0|!!t}return e},u.set=c,void 0!==e&&c(e),u},c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),f=r(8679),d=r.n(f),p=r(4155);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},y=Object.freeze([]),v=Object.freeze({});function b(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var M=void 0!==p&&(p.env.REACT_APP_SC_ATTR||p.env.SC_ATTR)||"data-styled",x="5.3.1",k="undefined"!=typeof window&&"HTMLElement"in window,A=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==p&&void 0!==p.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==p.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==p.env.REACT_APP_SC_DISABLE_SPEEDY&&p.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==p&&void 0!==p.env.SC_DISABLE_SPEEDY&&""!==p.env.SC_DISABLE_SPEEDY&&("false"!==p.env.SC_DISABLE_SPEEDY&&p.env.SC_DISABLE_SPEEDY)),j={};function I(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var O=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&I(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),C=new Map,N=new Map,D=1,E=function(e){if(C.has(e))return C.get(e);for(;N.has(D);)D++;var t=D++;return C.set(e,t),N.set(t,e),t},z=function(e){return N.get(e)},P=function(e,t){t>=D&&(D=t+1),C.set(e,t),N.set(t,e)},T="style["+M+'][data-styled-version="5.3.1"]',R=new RegExp("^"+M+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Y=function(e,t){for(var r=(t.innerHTML||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(R);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(P(u,c),L(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},_=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Z=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(M))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(M,"active"),n.setAttribute("data-styled-version","5.3.1");var a=_();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},U=function(){function e(e){var t=this.element=Z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}I(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=Z(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),F=k,W={isServer:!k,useCSSOMInjection:!A},G=function(){function e(e,t,r){void 0===e&&(e=v),void 0===t&&(t={}),this.options=h({},W,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&k&&F&&(F=!1,function(e){for(var t=document.querySelectorAll(T),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(M)&&(Y(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return E(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(h({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new $(o):n?new U(o):new B(o),new O(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(E(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(E(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(E(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=z(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=M+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Q=/(a)(d)/gi,X=function(e){return String.fromCharCode(e+(e>25?39:97))};function H(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=X(t%52)+r;return(X(t%52)+r).replace(Q,"$1-$2")}var V=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},J=function(e){return V(5381,e)};function q(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(b(r)&&!S(r))return!1}return!0}var K=J("5.3.1"),ee=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&q(e),this.componentId=t,this.baseHash=V(K,t),this.baseStyle=r,G.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=be(this.rules,e,t,r).join(""),a=H(V(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=V(this.baseHash,r.hash),l="",f=0;f<c;f++){var d=this.rules[f];if("string"==typeof d)l+=d;else if(d){var p=be(d,e,t,r),h=Array.isArray(p)?p.join(""):p;u=V(u,h+f),l+=h}}if(l){var m=H(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),te=/^\s*\/\/.*$/gm,re=[":","[",".","#"];function ne(e){var t,r,n,o,i=void 0===e?v:e,a=i.options,c=void 0===a?v:a,u=i.plugins,l=void 0===u?y:u,f=new s(c),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,n,i){return 0===n&&-1!==re.indexOf(i[r.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(te,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),f(a||!i?"":i,u)}return f.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=l.length?l.reduce((function(e,t){return t.name||I(15),V(e,t.name)}),5381).toString():"",m}var oe=o.createContext(),ie=oe.Consumer,ae=o.createContext(),se=(ae.Consumer,new G),ce=ne();function ue(){return(0,o.useContext)(oe)||se}function le(){return(0,o.useContext)(ae)||ce}function fe(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=ue(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,o.useEffect)((function(){a()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(oe.Provider,{value:s},o.createElement(ae.Provider,{value:c},e.children))}var de=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ce);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return I(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ce),this.name+e.hash},e}(),pe=/([A-Z])/,he=/([A-Z])/g,me=/^ms-/,ge=function(e){return"-"+e.toLowerCase()};function ye(e){return pe.test(e)?e.replace(he,ge).replace(me,"-ms-"):e}var ve=function(e){return null==e||!1===e||""===e};function be(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=be(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ve(e)?"":S(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:be(e(t),t,r,n):e instanceof de?r?(e.inject(r,n),e.getName(n)):e:g(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ve(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(ye(a)+":",t[a],";"):g(t[a])?i.push.apply(i,e(t[a],a)):i.push(ye(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in c?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var u}var we=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Se(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return b(e)||g(e)?we(be(m(y,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:we(be(m(e,r)))}new Set;var Me=function(e,t,r){return void 0===r&&(r=v),e.theme!==r.theme&&e.theme||t||r.theme},xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Ae(e){return e.replace(xe,"-").replace(ke,"")}var je=function(e){return H(J(e)>>>0)};function Ie(e){return"string"==typeof e&&!0}var Oe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ne(e,t,r){var n=e[r];Oe(t)&&Oe(n)?De(n,t):e[r]=t}function De(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Oe(a))for(var s in a)Ce(s)&&Ne(e,a[s],s)}return e}var Ee=o.createContext(),ze=Ee.Consumer;function Pe(e){var t=(0,o.useContext)(Ee),r=(0,o.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?I(8):t?h({},t,{},e):e:I(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(Ee.Provider,{value:r},e.children):null}var Te={};function Re(e,t,r){var n=S(e),i=!Ie(e),a=t.attrs,s=void 0===a?y:a,c=t.componentId,u=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Ae(e);Te[r]=(Te[r]||0)+1;var n=r+"-"+je("5.3.1"+r+Te[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,f=t.displayName,p=void 0===f?function(e){return Ie(e)?"styled."+e:"Styled("+w(e)+")"}(e):f,m=t.displayName&&t.componentId?Ae(t.displayName)+"-"+t.componentId:t.componentId||u,g=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,M=t.shouldForwardProp;n&&e.shouldForwardProp&&(M=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var x,k=new ee(r,m,n?e.componentStyle:void 0),A=k.isStatic&&0===s.length,j=function(e,t){return function(e,t,r,n){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,f=e.styledComponentId,d=e.target,p=function(e,t,r){void 0===e&&(e=v);var n=h({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in b(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(Me(t,(0,o.useContext)(Ee),s)||v,t,i),m=p[0],g=p[1],y=function(e,t,r,n){var o=ue(),i=le();return t?e.generateAndInjectStyles(v,o,i):e.generateAndInjectStyles(r,o,i)}(a,n,m),w=r,S=g.$as||t.$as||g.as||t.as||d,M=Ie(S),x=g!==t?h({},t,{},g):t,k={};for(var A in x)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?k.as=x[A]:(u?u(A,l,S):!M||l(A))&&(k[A]=x[A]));return t.style&&g.style!==t.style&&(k.style=h({},t.style,{},g.style)),k.className=Array.prototype.concat(c,f,y!==f?y:null,t.className,g.className).filter(Boolean).join(" "),k.ref=w,(0,o.createElement)(S,k)}(x,e,t,A)};return j.displayName=p,(x=o.forwardRef(j)).attrs=g,x.componentStyle=k,x.displayName=p,x.shouldForwardProp=M,x.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):y,x.styledComponentId=m,x.target=n?e.target:e,x.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Ie(e)?e:Ae(w(e)));return Re(e,h({},o,{attrs:g,componentId:i}),r)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?De({},e.defaultProps,t):t}}),x.toString=function(){return"."+x.styledComponentId},i&&d()(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var Le=function(e){return function e(t,r,o){if(void 0===o&&(o=v),!(0,n.isValidElementType)(r))return I(1,String(r));var i=function(){return t(r,o,Se.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,h({},o,{},n))},i.attrs=function(n){return e(t,r,h({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(Re,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Le[e]=Le(e)}));var Ye=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=q(e),G.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(be(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function _e(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Se.apply(void 0,[e].concat(r)),a="sc-global-"+je(JSON.stringify(i)),s=new Ye(i,a);function c(e){var t=ue(),r=le(),n=(0,o.useContext)(Ee),i=(0,o.useRef)(t.allocateGSInstance(a)).current;return t.server&&u(i,e,t,n,r),(0,o.useLayoutEffect)((function(){if(!t.server)return u(i,e,t,n,r),function(){return s.removeStyles(i,t)}}),[i,e,t,n,r]),null}function u(e,t,r,n,o){if(s.isStatic)s.renderStyles(e,j,r,o);else{var i=h({},t,{theme:Me(t,n,c.defaultProps)});s.renderStyles(e,i,r,o)}}return o.memo(c)}function Ze(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Se.apply(void 0,[e].concat(r)).join(""),i=je(o);return new de(i,o)}var Ue=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=_();return"<style "+[r&&'nonce="'+r+'"',M+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?I(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return I(2);var r=((t={})[M]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=_();return n&&(r.nonce=n),[o.createElement("style",h({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?I(2):o.createElement(fe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return I(3)},e}(),Be=function(e){var t=o.forwardRef((function(t,r){var n=(0,o.useContext)(Ee),i=e.defaultProps,a=Me(t,n,i);return o.createElement(e,h({},t,{theme:a,ref:r}))}));return d()(t,e),t.displayName="WithTheme("+w(e)+")",t},$e=function(){return(0,o.useContext)(Ee)},Fe={StyleSheet:G,masterSheet:se},We=Le},1739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},8152:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(t,{Z:function(){return o}})}}]);
|
|
File without changes
|
package/dist/viewer.bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[428],{8305:function(e,t,o){o.r(t),o.d(t,{default:function(){return
|
|
1
|
+
"use strict";(self.webpackChunkR2U=self.webpackChunkR2U||[]).push([[428],{8305:function(e,t,o){o.r(t),o.d(t,{default:function(){return P}});var n=o(7294),r=o(3935),i=o(9361),a=o.n(i),l=o(2367),c=o(5060),s=o(3026),u=o(9163);const d=u.default.div`
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
4
|
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
top: 4px;
|
|
52
52
|
z-index: 9999999;
|
|
53
53
|
background: #f9f9f9;
|
|
54
|
-
${({bloom:e})=>e?
|
|
54
|
+
${({bloom:e})=>e?u.css`
|
|
55
55
|
box-shadow: inset -2px -2px 4px #ffffff,
|
|
56
56
|
inset 2px 2px 4px rgba(86, 86, 86, 0.25);
|
|
57
|
-
`:
|
|
57
|
+
`:u.css`
|
|
58
58
|
box-shadow: -2px -2px 4px #ffffff,
|
|
59
59
|
2px 2px 4px rgba(86, 86, 86, 0.25);
|
|
60
60
|
`}
|
|
@@ -120,4 +120,4 @@
|
|
|
120
120
|
box-shadow: none;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
`;var p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};var
|
|
123
|
+
`;var p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};var m=e=>{const{exitImgSrc:t="https://sdk.r2u.io/assets/exit-icon.png",expandImgSrc:o="https://sdk.r2u.io/assets/expand-icon.png",popup:r=!0,children:i=null,waterMarkPosition:a,refViewerPopup:l,ModelViewerElement:u,refViewerFunctions:m}=e,f=p(e,["exitImgSrc","expandImgSrc","popup","children","waterMarkPosition","refViewerPopup","ModelViewerElement","refViewerFunctions"]),[v,g]=(0,n.useState)(!1),b=()=>{g(!1)};(0,n.useEffect)((()=>{l&&l.current&&l.current.addEventListener("mousedown",(e=>(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1)))}),[l]);const w=(0,n.useRef)(null),[h,x]=(0,n.useState)(!1);return n.createElement(d,{expanded:v,bloom:h},n.createElement("div",{className:"viewer-container"},f.glbSrc&&n.createElement(u,Object.assign({ref:m,componentDidMount:f.componentDidMount,onClick:f.onClick,onSessionTimeCollect:f.onSessionTimeCollect},f),i,r&&n.createElement("button",{className:"expand-button",type:"button",onClick:()=>{g(!0)}},n.createElement("img",{className:"expand-image",alt:"",src:o})),a&&n.createElement(c.Z,{position:a}))),r&&v&&n.createElement("div",{className:"background",onMouseDown:b},n.createElement("div",{className:"viewer-container popup"},f.glbSrc&&n.createElement(u,Object.assign({ref:w,componentDidMount:f.componentDidMount,onClick:f.onClick,onSessionTimeCollect:f.onSessionTimeCollect},f,{enableBloomButton:!1}),i,f.bloom&&n.createElement("button",{className:"bloomButton",type:"button",onMouseDown:e=>e.stopPropagation(),onClick:()=>{x(!h),w.current&&w.current.updateBloom(!h)}},h?n.createElement(s.cu,{className:"lamp"}):n.createElement(s.H_,{className:"lamp"})),n.createElement("button",{className:"exit-button",type:"button",onClick:b},n.createElement("img",{alt:"",src:t})),a&&n.createElement(c.Z,{position:a})))))},f=o(1841),v=o.n(f),g=o(7523),b=o(7374),w=o(2297),h=function(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))};function x(e,t){return h(this,void 0,void 0,(function*(){const o=`/viewer-customization/customer/${l.Z.customer._id}/products/${e}?customization=${encodeURI(JSON.stringify(t))}`;return(yield(0,w.U2)(o))||{}}))}function y(e){return h(this,void 0,void 0,(function*(){const{status:t}=yield(0,w.U2)(`/job-status/${e}`);return["waiting","processing"].includes(t)?y(e):t}))}var E=o(5865);const S=({materialSlots:e,modelSlots:t})=>{e.sort(((e,t)=>e.slot>t.slot?1:e.slot<t.slot?-1:0)),t.sort(((e,t)=>e.slot>t.slot?1:e.slot<t.slot?-1:0)),t.forEach((e=>{S(e.activeModel)}))};var k=S;class C extends Error{constructor(e){super(e),this.name="ViewerError"}}var M=function(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function l(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}c((n=n.apply(e,t||[])).next())}))};var P={create:({element:e,sku:t,name:o,popup:i=!0,progressBarPosition:c="top",progressBarColor:s,poster:u,autoRotate:d=!0})=>M(void 0,void 0,void 0,(function*(){if(!l.Z.init)return Promise.reject(new Error("R2U - Not initialized"));if(!t)return Promise.reject(new Error("R2U - Missing SKU"));const{glb:p,name:f,viewerOptions:S}=yield(0,g.Z)(t);let P=p;const z=l.Z.customer.waterMarkPosition,O=S||l.Z.customer.viewerOptions||void 0,R=(0,n.createRef)(),N=(0,n.createRef)(),j=(0,n.createRef)(),V=()=>M(void 0,void 0,void 0,(function*(){if(!j.current)throw new C("Viewer not completely loaded!");const e=j.current.getCurrentCustomization();if(!e)throw new C("No customization returned!");k(e);const o=yield x(t,e);if(!o.glb){const n=yield j.current.getCustomizedModel();if(!n)throw new C("Could not export the customization glb!");o.glb=yield function(e,t,o){return h(this,void 0,void 0,(function*(){const n=`/viewer-customization/customer/${l.Z.customer._id}/products/${e}/upload-customization-data?customization=${encodeURI(JSON.stringify(t))}`,r=yield(0,w.U2)(n),i=new File([o],r.filename),a=new FormData;return Object.keys(r.fields).forEach((e=>a.append(e,r.fields[e]))),a.append("file",i),yield fetch(r.url,{method:"POST",body:a}),r.url.concat(r.fields.key)}))}(t,e,n)}if(!o.usdz){const e=yield function(e,t){return h(this,void 0,void 0,(function*(){const o=`/viewer-customization/customers/${l.Z.customer._id}/products/${e}/convert`;return yield(0,w.v_)(o,{filename:t})}))}(t,o.glb.split("/").pop());if("success"!==(yield y(e.jobId)))throw new C("Error while converting to usdz!");o.usdz=e.usdz}return x(t,e),o}));return r.render(n.createElement(m,Object.assign({glbSrc:P,alt:o||f,autoRotate:d,poster:u,refViewer:R,refViewerPopup:N,refViewerFunctions:j,waterMarkPosition:z,progressBarPosition:c,progressBarColor:s,popup:i,componentDidMount:b.E9.componentDidMount,onClick:b.E9.onClick,onSessionTimeCollect:b.E9.onSessionTimeCollect,ModelViewerElement:v()},O)),e),{setSku:t=>M(void 0,void 0,void 0,(function*(){const{glb:a}=yield(0,g.Z)(t);P=a,r.render(n.createElement(m,Object.assign({glbSrc:P,alt:o||f,autoRotate:d,poster:u,refViewer:R,refViewerPopup:N,refViewerFunctions:j,waterMarkPosition:z,progressBarPosition:c,progressBarColor:s,popup:i,componentDidMount:b.E9.componentDidMount,onClick:b.E9.onClick,onSessionTimeCollect:b.E9.onSessionTimeCollect,ModelViewerElement:v()},O)),e)})),insertModelNode:(...e)=>{var t;null===(t=j.current)||void 0===t||t.insertModelNode(...e)},insertSlotModelNode:(...e)=>M(void 0,void 0,void 0,(function*(){var t;yield null===(t=j.current)||void 0===t?void 0:t.insertSlotModelNode(...e)})),deleteModelNode:(...e)=>{var t;null===(t=j.current)||void 0===t||t.deleteModelNode(...e)},setMaterial:(...e)=>{var t;null===(t=j.current)||void 0===t||t.setMaterial(...e)},getAllSlotsMaterials:()=>{var e;return(null===(e=j.current)||void 0===e?void 0:e.getAllSlotsMaterials())||null},updateBloom:(...e)=>{var t;null===(t=j.current)||void 0===t||t.updateBloom(...e)},getAllSlotsModels:()=>{var e;return(null===(e=j.current)||void 0===e?void 0:e.getAllSlotsModels())||null},setModel:(...e)=>{var t;null===(t=j.current)||void 0===t||t.setModel(...e)},setCamera:(...e)=>{var t;null===(t=j.current)||void 0===t||t.setCamera(...e)},updateShadow:(...e)=>{var t;null===(t=j.current)||void 0===t||t.updateShadow(...e)},updateFog:(...e)=>{var t;null===(t=j.current)||void 0===t||t.updateFog(...e)},updateBloomProps:(...e)=>{var t;null===(t=j.current)||void 0===t||t.updateBloomProps(...e)},updateEnvironment:(...e)=>{var t;null===(t=j.current)||void 0===t||t.updateEnvironment(...e)},getCamera:()=>{var e;return(null===(e=j.current)||void 0===e?void 0:e.getCamera())||null},customization:{openAR:()=>M(void 0,void 0,void 0,(function*(){try{const e=yield V();return(0,E.activateAR)({glb:e.glb,usdz:e.usdz,mode:"ar_preferred"}),!0}catch(e){return console.error(`Error opening AR: ${e.message}`),!1}})),renderQRCode:e=>M(void 0,void 0,void 0,(function*(){try{const t=yield V(),o=`https://viewer.r2u.io/?glb=${encodeURIComponent(t.glb)}&usdz=${encodeURIComponent(t.usdz)}&autoOpen=1`;return r.render(n.createElement(a(),Object.assign({},{"data-url":o},{value:o,style:{width:"100%",height:"100%"},renderAs:"svg"})),e),!0}catch(e){return console.error(`Error generating QR Code: ${e.message}`),!1}}))},downloadGlb:(...e)=>{j.current&&j.current.downloadGlb(...e)}}}))}},5671:function(e,t,o){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o.d(t,{Z:function(){return n}})},3144:function(e,t,o){function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}o.d(t,{Z:function(){return r}})},4942:function(e,t,o){function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}o.d(t,{Z:function(){return n}})},1002:function(e,t,o){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}o.d(t,{Z:function(){return n}})}}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r2u/javascript-ar-sdk",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"unpkg": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@r2u/analytics": "^4.3.3",
|
|
28
|
-
"@r2u/react-ar-components": "^5.4.
|
|
28
|
+
"@r2u/react-ar-components": "^5.4.15",
|
|
29
29
|
"@r2u/viewer": "^1.2.2",
|
|
30
30
|
"@types/react-slick": "^0.23.10",
|
|
31
31
|
"i18next": "^20.2.1",
|